@common-origin/design-system 2.15.0 → 2.17.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 +1 -1
- package/dist/client.esm.js +949 -649
- package/dist/client.esm.js.map +1 -1
- package/dist/client.js +951 -647
- package/dist/client.js.map +1 -1
- 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 -85
- package/dist/components/atoms/DateFormatter/DateFormatter.d.ts +11 -1
- package/dist/components/atoms/Icon/Icon.d.ts +11 -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/molecules/Alert/Alert.d.ts +15 -2
- package/dist/components/molecules/DateGroup/DateGroup.d.ts +4 -1
- package/dist/components/molecules/InlineAlert/InlineAlert.d.ts +54 -0
- package/dist/components/molecules/InlineAlert/index.d.ts +2 -0
- package/dist/components/molecules/List/List.d.ts +3 -2
- package/dist/components/molecules/List/ListContext.d.ts +6 -0
- package/dist/components/molecules/List/ListItem.d.ts +5 -4
- package/dist/components/molecules/Modal/Modal.d.ts +6 -2
- package/dist/components/molecules/TabBar/TabBar.d.ts +8 -5
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/data.esm.js +89 -11
- package/dist/data.esm.js.map +1 -1
- package/dist/data.js +89 -11
- 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 +89 -11
- package/dist/tokens/index.esm.js +89 -11
- package/dist/tokens/index.esm.js.map +1 -1
- package/dist/tokens/index.js +89 -11
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/types/tokens.d.ts +81 -3
- package/dist/tokens.css +769 -0
- package/dist/tokens.css.d.ts +4 -0
- package/dist/types/tokens.d.ts +81 -3
- package/package.json +18 -6
|
@@ -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;
|
|
@@ -711,6 +725,42 @@ export declare const tokens: {
|
|
|
711
725
|
};
|
|
712
726
|
};
|
|
713
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
|
+
};
|
|
714
764
|
title: {
|
|
715
765
|
typography: string;
|
|
716
766
|
fontWeight: string;
|
|
@@ -810,7 +860,6 @@ export declare const tokens: {
|
|
|
810
860
|
transactionListItem: {
|
|
811
861
|
minHeight: string;
|
|
812
862
|
};
|
|
813
|
-
$ref: string;
|
|
814
863
|
};
|
|
815
864
|
semantic: {
|
|
816
865
|
elevation: {
|
|
@@ -897,12 +946,20 @@ export declare const tokens: {
|
|
|
897
946
|
md: string;
|
|
898
947
|
lg: string;
|
|
899
948
|
};
|
|
949
|
+
label: {
|
|
950
|
+
small: string;
|
|
951
|
+
medium: string;
|
|
952
|
+
large: string;
|
|
953
|
+
};
|
|
900
954
|
menu: {
|
|
901
955
|
maxHeight: string;
|
|
902
956
|
};
|
|
903
957
|
dimension: {
|
|
904
958
|
"1": string;
|
|
959
|
+
"2": string;
|
|
960
|
+
"4": string;
|
|
905
961
|
"5": string;
|
|
962
|
+
"6": string;
|
|
906
963
|
"8": string;
|
|
907
964
|
"12": string;
|
|
908
965
|
"15": string;
|
|
@@ -975,6 +1032,8 @@ export declare const tokens: {
|
|
|
975
1032
|
inverse: string;
|
|
976
1033
|
disabled: string;
|
|
977
1034
|
interactive: string;
|
|
1035
|
+
"interactive-hover": string;
|
|
1036
|
+
"interactive-active": string;
|
|
978
1037
|
error: string;
|
|
979
1038
|
success: string;
|
|
980
1039
|
warning: string;
|
|
@@ -983,19 +1042,29 @@ export declare const tokens: {
|
|
|
983
1042
|
default: string;
|
|
984
1043
|
subtle: string;
|
|
985
1044
|
emphasis: string;
|
|
1045
|
+
"emphasis-hover": string;
|
|
1046
|
+
"emphasis-active": string;
|
|
986
1047
|
surface: string;
|
|
987
1048
|
inverse: string;
|
|
988
1049
|
interactive: string;
|
|
989
1050
|
"interactive-subtle": string;
|
|
1051
|
+
"interactive-subtle-hover": string;
|
|
1052
|
+
"interactive-subtle-active": string;
|
|
990
1053
|
"interactive-hover": string;
|
|
991
1054
|
"interactive-active": string;
|
|
992
1055
|
error: string;
|
|
1056
|
+
"error-hover": string;
|
|
1057
|
+
"error-active": string;
|
|
993
1058
|
"error-subtle": string;
|
|
994
1059
|
success: string;
|
|
995
1060
|
"success-subtle": string;
|
|
996
1061
|
warning: string;
|
|
997
1062
|
"warning-subtle": string;
|
|
998
1063
|
disabled: string;
|
|
1064
|
+
neutral: string;
|
|
1065
|
+
"neutral-hover": string;
|
|
1066
|
+
"neutral-active": string;
|
|
1067
|
+
transparent: string;
|
|
999
1068
|
progressTrack: string;
|
|
1000
1069
|
page: string;
|
|
1001
1070
|
overlay: string;
|
|
@@ -1006,11 +1075,13 @@ export declare const tokens: {
|
|
|
1006
1075
|
border: {
|
|
1007
1076
|
default: string;
|
|
1008
1077
|
subtle: string;
|
|
1078
|
+
control: string;
|
|
1009
1079
|
strong: string;
|
|
1010
1080
|
interactive: string;
|
|
1011
1081
|
error: string;
|
|
1012
1082
|
success: string;
|
|
1013
1083
|
warning: string;
|
|
1084
|
+
none: string;
|
|
1014
1085
|
};
|
|
1015
1086
|
icon: {
|
|
1016
1087
|
default: string;
|
|
@@ -1058,6 +1129,14 @@ export declare const tokens: {
|
|
|
1058
1129
|
gray: string;
|
|
1059
1130
|
"gray-emphasis": string;
|
|
1060
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;
|
|
1061
1140
|
};
|
|
1062
1141
|
status: {
|
|
1063
1142
|
pending: string;
|
|
@@ -1112,7 +1191,6 @@ export declare const tokens: {
|
|
|
1112
1191
|
focus: string;
|
|
1113
1192
|
interactive: string;
|
|
1114
1193
|
};
|
|
1115
|
-
$ref: string;
|
|
1116
1194
|
};
|
|
1117
1195
|
};
|
|
1118
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.17.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,13 +48,13 @@
|
|
|
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
|
|
57
|
+
"lint": "eslint . --max-warnings 175",
|
|
51
58
|
"docs:dev": "npm run build:tokens && npm run dev",
|
|
52
59
|
"verify:types": "node scripts/verify-types.cjs",
|
|
53
60
|
"verify:no-nextjs": "node scripts/verify-no-nextjs-deps.cjs",
|
|
@@ -60,7 +67,8 @@
|
|
|
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",
|
|
@@ -109,13 +117,17 @@
|
|
|
109
117
|
"react": "^19.2.0",
|
|
110
118
|
"react-dom": "^19.2.0",
|
|
111
119
|
"rollup": "^3.20.0",
|
|
112
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
113
120
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
114
|
-
"style-dictionary": "^
|
|
121
|
+
"style-dictionary": "^5.6.0",
|
|
115
122
|
"styled-components": "^6.1.1",
|
|
116
123
|
"typescript": "^5.7.3",
|
|
117
124
|
"typescript-eslint": "^8.70.1"
|
|
118
125
|
},
|
|
126
|
+
"overrides": {
|
|
127
|
+
"@istanbuljs/load-nyc-config": {
|
|
128
|
+
"js-yaml": "^4.1.0"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
119
131
|
"keywords": [
|
|
120
132
|
"design-system",
|
|
121
133
|
"react",
|