@common-origin/design-system 2.14.0 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -184
- package/dist/client.esm.js +975 -610
- package/dist/client.esm.js.map +1 -1
- package/dist/client.js +978 -609
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.d.ts +2 -0
- package/dist/components/atoms/Button/Button.d.ts +13 -1
- package/dist/components/atoms/CategoryBadge/CategoryBadge.d.ts +12 -52
- package/dist/components/atoms/CategoryBadge/index.d.ts +1 -1
- package/dist/components/atoms/CategoryLabel/CategoryLabel.d.ts +69 -0
- package/dist/components/atoms/CategoryLabel/index.d.ts +2 -0
- package/dist/components/atoms/Chip/BooleanChip.d.ts +6 -1
- package/dist/components/atoms/Chip/Chip.d.ts +17 -12
- package/dist/components/atoms/Chip/FilterChip.d.ts +10 -24
- package/dist/components/atoms/Chip/InputChip.d.ts +27 -0
- package/dist/components/atoms/Chip/index.d.ts +1 -0
- package/dist/components/atoms/Chip/shared/types.d.ts +15 -1
- package/dist/components/atoms/Chip/shared/utils.d.ts +1 -82
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/components/atoms/StatusBadge/StatusBadge.d.ts +9 -55
- package/dist/components/atoms/StatusBadge/index.d.ts +1 -1
- package/dist/components/atoms/StatusLabel/StatusLabel.d.ts +17 -0
- package/dist/components/atoms/StatusLabel/StatusLabelBase.d.ts +49 -0
- package/dist/components/atoms/StatusLabel/index.d.ts +2 -0
- package/dist/components/atoms/Tag/Tag.d.ts +5 -0
- package/dist/components/atoms/index.d.ts +2 -0
- package/dist/components/layout/GridSystem/GridSystem.d.ts +6 -0
- package/dist/components/molecules/Alert/Alert.d.ts +15 -2
- package/dist/components/molecules/CardLarge/CardLarge.d.ts +3 -1
- package/dist/components/molecules/CardSmall/CardSmall.d.ts +2 -0
- package/dist/components/molecules/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/molecules/FeatureBlock/FeatureBlock.d.ts +2 -0
- package/dist/components/molecules/InlineAlert/InlineAlert.d.ts +54 -0
- package/dist/components/molecules/InlineAlert/index.d.ts +2 -0
- package/dist/components/molecules/Modal/Modal.d.ts +6 -2
- package/dist/components/molecules/PageTitle/PageTitle.d.ts +13 -0
- package/dist/components/molecules/TabBar/TabBar.d.ts +8 -5
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/data.esm.js +94 -12
- package/dist/data.esm.js.map +1 -1
- package/dist/data.js +94 -12
- package/dist/data.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/tokens.json +94 -12
- package/dist/tokens/index.esm.js +94 -12
- package/dist/tokens/index.esm.js.map +1 -1
- package/dist/tokens/index.js +94 -12
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/types/tokens.d.ts +85 -3
- package/dist/tokens.css +769 -0
- package/dist/tokens.css.d.ts +4 -0
- package/dist/types/tokens.d.ts +85 -3
- package/package.json +20 -10
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Declaration for `@common-origin/design-system/tokens.css` (decision 0017 §4). Importing the file
|
|
2
|
+
// only adds the CSS custom properties; it has no exports. TypeScript needs a declaration for the
|
|
3
|
+
// side-effect import to resolve when `noUncheckedSideEffectImports` is on (the default from TS 6).
|
|
4
|
+
export {}
|
package/dist/types/tokens.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export declare const tokens: {
|
|
|
107
107
|
fit: string;
|
|
108
108
|
};
|
|
109
109
|
color: {
|
|
110
|
+
transparent: string;
|
|
110
111
|
neutral: {
|
|
111
112
|
"100": string;
|
|
112
113
|
"200": string;
|
|
@@ -328,7 +329,6 @@ export declare const tokens: {
|
|
|
328
329
|
easeOutBack: string;
|
|
329
330
|
easeInOutBack: string;
|
|
330
331
|
};
|
|
331
|
-
$ref: string;
|
|
332
332
|
};
|
|
333
333
|
component: {
|
|
334
334
|
button: {
|
|
@@ -382,6 +382,20 @@ export declare const tokens: {
|
|
|
382
382
|
textColor: string;
|
|
383
383
|
};
|
|
384
384
|
};
|
|
385
|
+
accent: {
|
|
386
|
+
backgroundColor: string;
|
|
387
|
+
textColor: string;
|
|
388
|
+
hover: {
|
|
389
|
+
backgroundColor: string;
|
|
390
|
+
};
|
|
391
|
+
active: {
|
|
392
|
+
backgroundColor: string;
|
|
393
|
+
};
|
|
394
|
+
disabled: {
|
|
395
|
+
backgroundColor: string;
|
|
396
|
+
textColor: string;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
385
399
|
emphasis: {
|
|
386
400
|
backgroundColor: string;
|
|
387
401
|
textColor: string;
|
|
@@ -427,6 +441,9 @@ export declare const tokens: {
|
|
|
427
441
|
};
|
|
428
442
|
};
|
|
429
443
|
chip: {
|
|
444
|
+
closeButton: {
|
|
445
|
+
size: string;
|
|
446
|
+
};
|
|
430
447
|
default: {
|
|
431
448
|
backgroundColor: string;
|
|
432
449
|
textColor: string;
|
|
@@ -708,6 +725,42 @@ export declare const tokens: {
|
|
|
708
725
|
};
|
|
709
726
|
};
|
|
710
727
|
alert: {
|
|
728
|
+
severity: {
|
|
729
|
+
error: {
|
|
730
|
+
background: string;
|
|
731
|
+
text: string;
|
|
732
|
+
};
|
|
733
|
+
warning: {
|
|
734
|
+
background: string;
|
|
735
|
+
text: string;
|
|
736
|
+
};
|
|
737
|
+
info: {
|
|
738
|
+
background: string;
|
|
739
|
+
text: string;
|
|
740
|
+
};
|
|
741
|
+
success: {
|
|
742
|
+
background: string;
|
|
743
|
+
text: string;
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
appearance: {
|
|
747
|
+
outlined: {
|
|
748
|
+
borderColor: {
|
|
749
|
+
error: string;
|
|
750
|
+
warning: string;
|
|
751
|
+
info: string;
|
|
752
|
+
success: string;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
borderless: {
|
|
756
|
+
borderColor: {
|
|
757
|
+
error: string;
|
|
758
|
+
warning: string;
|
|
759
|
+
info: string;
|
|
760
|
+
success: string;
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
};
|
|
711
764
|
title: {
|
|
712
765
|
typography: string;
|
|
713
766
|
fontWeight: string;
|
|
@@ -807,7 +860,6 @@ export declare const tokens: {
|
|
|
807
860
|
transactionListItem: {
|
|
808
861
|
minHeight: string;
|
|
809
862
|
};
|
|
810
|
-
$ref: string;
|
|
811
863
|
};
|
|
812
864
|
semantic: {
|
|
813
865
|
elevation: {
|
|
@@ -894,12 +946,20 @@ export declare const tokens: {
|
|
|
894
946
|
md: string;
|
|
895
947
|
lg: string;
|
|
896
948
|
};
|
|
949
|
+
label: {
|
|
950
|
+
small: string;
|
|
951
|
+
medium: string;
|
|
952
|
+
large: string;
|
|
953
|
+
};
|
|
897
954
|
menu: {
|
|
898
955
|
maxHeight: string;
|
|
899
956
|
};
|
|
900
957
|
dimension: {
|
|
901
958
|
"1": string;
|
|
959
|
+
"2": string;
|
|
960
|
+
"4": string;
|
|
902
961
|
"5": string;
|
|
962
|
+
"6": string;
|
|
903
963
|
"8": string;
|
|
904
964
|
"12": string;
|
|
905
965
|
"15": string;
|
|
@@ -972,6 +1032,8 @@ export declare const tokens: {
|
|
|
972
1032
|
inverse: string;
|
|
973
1033
|
disabled: string;
|
|
974
1034
|
interactive: string;
|
|
1035
|
+
"interactive-hover": string;
|
|
1036
|
+
"interactive-active": string;
|
|
975
1037
|
error: string;
|
|
976
1038
|
success: string;
|
|
977
1039
|
warning: string;
|
|
@@ -980,33 +1042,46 @@ export declare const tokens: {
|
|
|
980
1042
|
default: string;
|
|
981
1043
|
subtle: string;
|
|
982
1044
|
emphasis: string;
|
|
1045
|
+
"emphasis-hover": string;
|
|
1046
|
+
"emphasis-active": string;
|
|
983
1047
|
surface: string;
|
|
984
1048
|
inverse: string;
|
|
985
1049
|
interactive: string;
|
|
986
1050
|
"interactive-subtle": string;
|
|
1051
|
+
"interactive-subtle-hover": string;
|
|
1052
|
+
"interactive-subtle-active": string;
|
|
987
1053
|
"interactive-hover": string;
|
|
988
1054
|
"interactive-active": string;
|
|
989
1055
|
error: string;
|
|
1056
|
+
"error-hover": string;
|
|
1057
|
+
"error-active": string;
|
|
990
1058
|
"error-subtle": string;
|
|
991
1059
|
success: string;
|
|
992
1060
|
"success-subtle": string;
|
|
993
1061
|
warning: string;
|
|
994
1062
|
"warning-subtle": string;
|
|
995
1063
|
disabled: string;
|
|
1064
|
+
neutral: string;
|
|
1065
|
+
"neutral-hover": string;
|
|
1066
|
+
"neutral-active": string;
|
|
1067
|
+
transparent: string;
|
|
996
1068
|
progressTrack: string;
|
|
997
1069
|
page: string;
|
|
998
1070
|
overlay: string;
|
|
999
1071
|
"hover-overlay": string;
|
|
1000
1072
|
"active-overlay": string;
|
|
1073
|
+
"inverse-overlay": string;
|
|
1001
1074
|
};
|
|
1002
1075
|
border: {
|
|
1003
1076
|
default: string;
|
|
1004
1077
|
subtle: string;
|
|
1078
|
+
control: string;
|
|
1005
1079
|
strong: string;
|
|
1006
1080
|
interactive: string;
|
|
1007
1081
|
error: string;
|
|
1008
1082
|
success: string;
|
|
1009
1083
|
warning: string;
|
|
1084
|
+
none: string;
|
|
1010
1085
|
};
|
|
1011
1086
|
icon: {
|
|
1012
1087
|
default: string;
|
|
@@ -1054,6 +1129,14 @@ export declare const tokens: {
|
|
|
1054
1129
|
gray: string;
|
|
1055
1130
|
"gray-emphasis": string;
|
|
1056
1131
|
"gray-subtle": string;
|
|
1132
|
+
"blue-text": string;
|
|
1133
|
+
"purple-text": string;
|
|
1134
|
+
"pink-text": string;
|
|
1135
|
+
"yellow-text": string;
|
|
1136
|
+
"green-text": string;
|
|
1137
|
+
"red-text": string;
|
|
1138
|
+
"orange-text": string;
|
|
1139
|
+
"gray-text": string;
|
|
1057
1140
|
};
|
|
1058
1141
|
status: {
|
|
1059
1142
|
pending: string;
|
|
@@ -1108,7 +1191,6 @@ export declare const tokens: {
|
|
|
1108
1191
|
focus: string;
|
|
1109
1192
|
interactive: string;
|
|
1110
1193
|
};
|
|
1111
|
-
$ref: string;
|
|
1112
1194
|
};
|
|
1113
1195
|
};
|
|
1114
1196
|
export type Tokens = typeof tokens;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-origin/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Common Origin Design System - Framework-agnostic atomic design components with comprehensive WCAG 2.2 AA testing",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,12 +28,19 @@
|
|
|
28
28
|
"types": "./dist/tokens/tokens.d.ts",
|
|
29
29
|
"import": "./dist/tokens/index.esm.js",
|
|
30
30
|
"require": "./dist/tokens/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./tokens.css": {
|
|
33
|
+
"types": "./dist/tokens.css.d.ts",
|
|
34
|
+
"default": "./dist/tokens.css"
|
|
31
35
|
}
|
|
32
36
|
},
|
|
33
37
|
"typesVersions": {
|
|
34
38
|
"*": {
|
|
35
39
|
"tokens": [
|
|
36
40
|
"./dist/tokens/tokens.d.ts"
|
|
41
|
+
],
|
|
42
|
+
"tokens.css": [
|
|
43
|
+
"./dist/tokens.css.d.ts"
|
|
37
44
|
]
|
|
38
45
|
}
|
|
39
46
|
},
|
|
@@ -41,26 +48,27 @@
|
|
|
41
48
|
"dev": "next dev",
|
|
42
49
|
"build": "next build",
|
|
43
50
|
"build:package": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && rollup -c",
|
|
44
|
-
"build:tokens": "node config/style-dictionary.config.
|
|
51
|
+
"build:tokens": "node config/style-dictionary.config.mjs",
|
|
45
52
|
"start": "next start",
|
|
46
53
|
"test": "jest",
|
|
47
54
|
"test:watch": "jest --watch",
|
|
48
55
|
"test:coverage": "jest --coverage",
|
|
49
56
|
"typecheck": "tsc --noEmit",
|
|
50
|
-
"lint": "eslint . --max-warnings
|
|
51
|
-
"docs:generate": "node lib/docgen/generate.js",
|
|
57
|
+
"lint": "eslint . --max-warnings 175",
|
|
52
58
|
"docs:dev": "npm run build:tokens && npm run dev",
|
|
53
59
|
"verify:types": "node scripts/verify-types.cjs",
|
|
54
60
|
"verify:no-nextjs": "node scripts/verify-no-nextjs-deps.cjs",
|
|
55
61
|
"verify:consumer": "node scripts/verify-consumer-types.cjs",
|
|
56
62
|
"verify:directives": "node scripts/verify-directives.cjs",
|
|
57
63
|
"verify:load": "node scripts/verify-load.cjs",
|
|
64
|
+
"verify:docs": "node scripts/verify-docs.cjs",
|
|
58
65
|
"verify:package": "npm run verify:types && npm run verify:no-nextjs && npm run verify:directives && npm run verify:load && npm run verify:consumer && publint && attw --pack . --ignore-rules unexpected-module-syntax",
|
|
59
66
|
"prepublishOnly": "npm run build:tokens && npm run build:package && npm run verify:package",
|
|
60
67
|
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
61
68
|
"release": "npm publish --provenance --access public",
|
|
62
69
|
"release:create": "./scripts/release.sh",
|
|
63
|
-
"release:tag": "./scripts/release.sh tag"
|
|
70
|
+
"release:tag": "./scripts/release.sh tag",
|
|
71
|
+
"tokens:golden": "node scripts/tokens-golden.cjs"
|
|
64
72
|
},
|
|
65
73
|
"peerDependencies": {
|
|
66
74
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -68,7 +76,6 @@
|
|
|
68
76
|
"styled-components": "^6.0.0"
|
|
69
77
|
},
|
|
70
78
|
"dependencies": {
|
|
71
|
-
"@babel/runtime": "^7.0.0",
|
|
72
79
|
"date-fns": "^4.1.0"
|
|
73
80
|
},
|
|
74
81
|
"devDependencies": {
|
|
@@ -88,7 +95,7 @@
|
|
|
88
95
|
"@testing-library/user-event": "^14.6.1",
|
|
89
96
|
"@types/jest": "^30.0.0",
|
|
90
97
|
"@types/jest-axe": "^3.5.9",
|
|
91
|
-
"@types/node": "^
|
|
98
|
+
"@types/node": "^22.20.4",
|
|
92
99
|
"@types/react": "^19.2.2",
|
|
93
100
|
"@types/react-dom": "^19.2.2",
|
|
94
101
|
"@vercel/analytics": "^2.0.1",
|
|
@@ -110,14 +117,17 @@
|
|
|
110
117
|
"react": "^19.2.0",
|
|
111
118
|
"react-dom": "^19.2.0",
|
|
112
119
|
"rollup": "^3.20.0",
|
|
113
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
114
120
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
115
|
-
"style-dictionary": "^
|
|
121
|
+
"style-dictionary": "^5.6.0",
|
|
116
122
|
"styled-components": "^6.1.1",
|
|
117
|
-
"ts-morph": "^27.0.2",
|
|
118
123
|
"typescript": "^5.7.3",
|
|
119
124
|
"typescript-eslint": "^8.70.1"
|
|
120
125
|
},
|
|
126
|
+
"overrides": {
|
|
127
|
+
"@istanbuljs/load-nyc-config": {
|
|
128
|
+
"js-yaml": "^4.1.0"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
121
131
|
"keywords": [
|
|
122
132
|
"design-system",
|
|
123
133
|
"react",
|