Skip to content

Commit

Permalink
Nordstar: Combine components.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps committed Sep 29, 2024
1 parent eab5787 commit d44088d
Show file tree
Hide file tree
Showing 20 changed files with 71 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-rules-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@nordcom/nordstar': patch
---

- Combine components in the primary nordstar package.
4 changes: 3 additions & 1 deletion packages/components/accented/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Highlight text with an accent color.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/components/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Nordstar Button",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/components/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Card is a consistent card-like container for blocks of content.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/components/details/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Hide/Show content using a styled <details> element.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/components/header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Generic simple component to render headers for landing pages and similar.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/components/heading/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Component used to display title/heading text.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/components/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Component for single-line text and number input with formatting support.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/components/label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "A component used to describe other components or groups of components.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/components/view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Display a dedicated view; (aka page) somewhere in your app.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default mergeConfig(
root: resolve(__dirname),
build: {
rollupOptions: {
external: [/^@nordcom\/nordstar-/, 'clsx']
external: [/^@nordcom\/nordstar-/, 'class-variance-authority', 'clsx', 'tailwind-merge']
}
},
plugins: [
Expand Down
8 changes: 6 additions & 2 deletions packages/core/nordstar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "An opinionated component library for building human-centric user interfaces.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down Expand Up @@ -87,7 +89,8 @@
"@nordcom/nordstar-input": "workspace:*",
"@nordcom/nordstar-label": "workspace:*",
"@nordcom/nordstar-system": "workspace:*",
"@nordcom/nordstar-view": "workspace:*"
"@nordcom/nordstar-view": "workspace:*",
"class-variance-authority": "0.7.0"
},
"peerDependencies": {
"react": ">=18",
Expand All @@ -99,6 +102,7 @@
"@types/react-dom": "18.3.0",
"@types/react": "18.3.10",
"autoprefixer": "10.4.20",
"postcss-import": "16.1.0",
"postcss": "8.4.47",
"prettier": "3.3.3",
"react-dom": "18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/nordstar/postcss.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const process = require('node:process');

module.exports = {
plugins: [
require('postcss-import')(),
require('tailwindcss')(path.resolve(path.join(process.cwd().split('/packages')[0], 'tailwind.config.cjs'))),
,
require('autoprefixer')
]
};
4 changes: 3 additions & 1 deletion packages/core/nordstar/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ export default mergeConfig(
root: resolve(__dirname),
build: {
rollupOptions: {
external: ['@nordcom/nordstar-system', 'class-variance-authority', 'clsx', 'tailwind-merge'],
output: {
name
name,
preserveModules: true
}
}
},
Expand Down
4 changes: 3 additions & 1 deletion packages/core/system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.69",
"description": "Utilities used by all of the Nordstar Components, shouldn't be used directly outside of the Nordstar library.",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
1 change: 1 addition & 0 deletions packages/core/system/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default mergeConfig(
root: resolve(__dirname),
build: {
rollupOptions: {
external: [/^@nordcom\/nordstar-/, 'class-variance-authority', 'clsx', 'tailwind-merge'],
output: {
name
}
Expand Down
4 changes: 3 additions & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"sideEffects": true,
"private": true,
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"scripts": {
"build": "storybook build --disable-telemetry",
Expand Down
4 changes: 3 additions & 1 deletion plop/component/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"version": "0.0.0",
"description": "{{escapeJsonString description}}",
"files": [
"dist"
"dist",
"CHANGELOG.md",
"README.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
28 changes: 18 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export default defineConfig({
sourcemap: true,
target: 'esnext',
rollupOptions: {
external: [/^@nordcom\/nordstar-/, 'class-variance-authority', 'clsx', 'tailwind-merge'],
treeshake: true,
output: {
intro: (chunk) => {
Expand Down

0 comments on commit d44088d

Please sign in to comment.