@common-origin/design-system 3.1.0 → 3.2.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.
Files changed (66) hide show
  1. package/dist/client.js +1017 -713
  2. package/dist/client.js.map +1 -1
  3. package/dist/components/atoms/Badge/Badge.d.mts +2 -2
  4. package/dist/components/atoms/Badge/Badge.d.ts +2 -2
  5. package/dist/components/atoms/Badge/Badge.mjs +15 -9
  6. package/dist/components/atoms/Box/Box.d.mts +3 -2
  7. package/dist/components/atoms/Box/Box.d.ts +3 -2
  8. package/dist/components/atoms/Button/Button.mjs +1 -1
  9. package/dist/components/atoms/Chip/shared/ChipBase.mjs +1 -1
  10. package/dist/components/atoms/IconButton/IconButton.mjs +1 -1
  11. package/dist/components/atoms/ProgressBar/ProgressBar.d.mts +1 -1
  12. package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
  13. package/dist/components/atoms/Tag/Tag.d.mts +1 -1
  14. package/dist/components/atoms/Tag/Tag.d.ts +1 -1
  15. package/dist/components/atoms/Tooltip/Tooltip.d.mts +7 -1
  16. package/dist/components/atoms/Tooltip/Tooltip.d.ts +7 -1
  17. package/dist/components/atoms/Tooltip/Tooltip.mjs +18 -8
  18. package/dist/components/molecules/ActionSheet/ActionSheet.mjs +2 -2
  19. package/dist/components/molecules/Alert/Alert.mjs +1 -1
  20. package/dist/components/molecules/Checkbox/SelectableInputBase.mjs +1 -1
  21. package/dist/components/molecules/Dropdown/Dropdown.mjs +1 -1
  22. package/dist/components/molecules/List/ListItem.mjs +3 -3
  23. package/dist/components/molecules/Menu/Menu.d.mts +8 -1
  24. package/dist/components/molecules/Menu/Menu.d.ts +8 -1
  25. package/dist/components/molecules/Menu/Menu.mjs +12 -9
  26. package/dist/components/molecules/Modal/Modal.mjs +1 -1
  27. package/dist/components/molecules/NumberInput/NumberInput.mjs +2 -1
  28. package/dist/components/molecules/PasswordField/PasswordField.mjs +3 -2
  29. package/dist/components/molecules/SearchField/SearchField.mjs +3 -3
  30. package/dist/components/molecules/Sheet/Sheet.mjs +3 -3
  31. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.d.mts +3 -2
  32. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.d.ts +3 -2
  33. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.mjs +128 -41
  34. package/dist/components/molecules/SidebarNavItem/sidebarNavMotion.d.mts +30 -0
  35. package/dist/components/molecules/SidebarNavItem/sidebarNavMotion.d.ts +30 -0
  36. package/dist/components/molecules/SidebarNavItem/sidebarNavMotion.mjs +69 -0
  37. package/dist/components/molecules/SidebarNavItem/sidebarNavMotion.mjs.map +1 -0
  38. package/dist/components/molecules/SidebarNavSection/SidebarNavSection.mjs +57 -43
  39. package/dist/components/molecules/TabBar/TabBar.mjs +3 -3
  40. package/dist/components/molecules/WorkspaceSwitcher/WorkspaceSwitcher.mjs +3 -1
  41. package/dist/components/organisms/SidebarNav/SidebarNav.mjs +173 -62
  42. package/dist/data.js +96 -59
  43. package/dist/data.js.map +1 -1
  44. package/dist/lib/styleUtils.d.mts +4 -0
  45. package/dist/lib/styleUtils.d.ts +4 -0
  46. package/dist/lib/styleUtils.mjs +5 -1
  47. package/dist/lib/styleUtils.mjs.map +1 -1
  48. package/dist/lib/tokenAliases.mjs +1 -0
  49. package/dist/lib/tokenAliases.mjs.map +1 -1
  50. package/dist/lib/useFloatingLayer.d.mts +8 -1
  51. package/dist/lib/useFloatingLayer.d.ts +8 -1
  52. package/dist/lib/useFloatingLayer.mjs +11 -2
  53. package/dist/lib/useFloatingLayer.mjs.map +1 -1
  54. package/dist/styles/tokens.d.mts +93 -24
  55. package/dist/styles/tokens.d.ts +93 -24
  56. package/dist/styles/tokens.json +96 -59
  57. package/dist/styles/tokens.json.mjs +96 -59
  58. package/dist/styles/tokens.json.mjs.map +1 -1
  59. package/dist/tokens/index.js +96 -59
  60. package/dist/tokens/index.js.map +1 -1
  61. package/dist/tokens/index.mjs +96 -59
  62. package/dist/tokens/index.mjs.map +1 -1
  63. package/dist/tokens/styles/tokens.d.mts +93 -24
  64. package/dist/tokens/styles/tokens.d.ts +93 -24
  65. package/dist/tokens.css +1105 -74
  66. package/package.json +3 -1
@@ -34,7 +34,8 @@
34
34
  "4": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
35
35
  "5": "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
36
36
  "6": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
37
- "none": "none"
37
+ "none": "none",
38
+ "inset": "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"
38
39
  },
39
40
  "zIndex": {
40
41
  "0": "0",
@@ -64,7 +65,8 @@
64
65
  "80": "0.8",
65
66
  "90": "0.9",
66
67
  "95": "0.95",
67
- "100": "1"
68
+ "100": "1",
69
+ "scrim": "0.5"
68
70
  },
69
71
  "dimension": {
70
72
  "0": "0",
@@ -113,6 +115,15 @@
113
115
  "color": {
114
116
  "transparent": "transparent",
115
117
  "white": "#ffffff",
118
+ "surface": {
119
+ "page": "#fcfcfc",
120
+ "raised": "#ffffff",
121
+ "overlay": "#ffffff"
122
+ },
123
+ "ink": {
124
+ "light": "#fcfcfc",
125
+ "dark": "#222222"
126
+ },
116
127
  "gray": {
117
128
  "100": "#fcfcfc",
118
129
  "200": "#f9f9f9",
@@ -141,6 +152,20 @@
141
152
  "1100": "rgba(34, 34, 34, 0.706)",
142
153
  "1200": "rgba(34, 34, 34, 1)"
143
154
  },
155
+ "gray-alpha-inverse": {
156
+ "100": "rgba(252, 252, 252, 0.014)",
157
+ "200": "rgba(252, 252, 252, 0.027)",
158
+ "300": "rgba(252, 252, 252, 0.059)",
159
+ "400": "rgba(252, 252, 252, 0.09)",
160
+ "500": "rgba(252, 252, 252, 0.122)",
161
+ "600": "rgba(252, 252, 252, 0.158)",
162
+ "700": "rgba(252, 252, 252, 0.208)",
163
+ "800": "rgba(252, 252, 252, 0.502)",
164
+ "900": "rgba(252, 252, 252, 0.557)",
165
+ "1000": "rgba(252, 252, 252, 0.606)",
166
+ "1100": "rgba(252, 252, 252, 0.706)",
167
+ "1200": "rgba(252, 252, 252, 1)"
168
+ },
144
169
  "accent": {
145
170
  "100": "#fbfcfd",
146
171
  "200": "#f7f9fc",
@@ -153,7 +178,8 @@
153
178
  "900": "#0082fc",
154
179
  "1000": "#0278e7",
155
180
  "1100": "#0162bf",
156
- "1200": "#0f2339"
181
+ "1200": "#0f2339",
182
+ "solid": "#0162bf"
157
183
  },
158
184
  "accent-alpha": {
159
185
  "100": "rgba(5, 68, 130, 0.016)",
@@ -181,7 +207,8 @@
181
207
  "900": "#009762",
182
208
  "1000": "#018b5a",
183
209
  "1100": "#017249",
184
- "1200": "#12261b"
210
+ "1200": "#12261b",
211
+ "solid": "#017249"
185
212
  },
186
213
  "success-alpha": {
187
214
  "100": "rgba(5, 172, 47, 0.024)",
@@ -209,7 +236,8 @@
209
236
  "900": "#ad7b00",
210
237
  "1000": "#9f7102",
211
238
  "1100": "#835c00",
212
- "1200": "#292111"
239
+ "1200": "#292111",
240
+ "solid": "#835c00"
213
241
  },
214
242
  "warning-alpha": {
215
243
  "100": "rgba(155, 105, 5, 0.02)",
@@ -237,7 +265,8 @@
237
265
  "900": "#da5f00",
238
266
  "1000": "#c85701",
239
267
  "1100": "#a54703",
240
- "1200": "#341c10"
268
+ "1200": "#341c10",
269
+ "solid": "#a54703"
241
270
  },
242
271
  "serious-alpha": {
243
272
  "100": "rgba(193, 68, 5, 0.016)",
@@ -265,7 +294,8 @@
265
294
  "900": "#ff2b21",
266
295
  "1000": "#f30004",
267
296
  "1100": "#c90002",
268
- "1200": "#3d1611"
297
+ "1200": "#3d1611",
298
+ "solid": "#c90002"
269
299
  },
270
300
  "danger-alpha": {
271
301
  "100": "rgba(172, 5, 5, 0.012)",
@@ -508,7 +538,7 @@
508
538
  "primary": {
509
539
  "backgroundColor": "#222222",
510
540
  "textColor": "#fcfcfc",
511
- "borderRadius": "0.25rem",
541
+ "borderRadius": "0.5rem",
512
542
  "font": "500 1rem/1.5rem 'Inter', sans-serif"
513
543
  },
514
544
  "hover": {
@@ -521,21 +551,21 @@
521
551
  "outline": "0.125rem solid #222222"
522
552
  },
523
553
  "disabled": {
524
- "backgroundColor": "#f2f2f2",
554
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
525
555
  "textColor": "rgba(34, 34, 34, 0.208)"
526
556
  },
527
557
  "variants": {
528
558
  "secondary": {
529
- "backgroundColor": "#f2f2f2",
559
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
530
560
  "textColor": "#222222",
531
561
  "hover": {
532
- "backgroundColor": "#ebebeb"
562
+ "backgroundColor": "rgba(34, 34, 34, 0.09)"
533
563
  },
534
564
  "active": {
535
- "backgroundColor": "#e4e4e4"
565
+ "backgroundColor": "rgba(34, 34, 34, 0.122)"
536
566
  },
537
567
  "disabled": {
538
- "backgroundColor": "#f2f2f2",
568
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
539
569
  "textColor": "rgba(34, 34, 34, 0.208)"
540
570
  }
541
571
  },
@@ -543,10 +573,10 @@
543
573
  "backgroundColor": "transparent",
544
574
  "textColor": "#222222",
545
575
  "hover": {
546
- "backgroundColor": "#f2f2f2"
576
+ "backgroundColor": "rgba(34, 34, 34, 0.059)"
547
577
  },
548
578
  "active": {
549
- "backgroundColor": "#ebebeb"
579
+ "backgroundColor": "rgba(34, 34, 34, 0.09)"
550
580
  },
551
581
  "disabled": {
552
582
  "backgroundColor": "transparent",
@@ -563,7 +593,7 @@
563
593
  "backgroundColor": "color-mix(in srgb, #0162bf, #fcfcfc calc(0.12 * 100%))"
564
594
  },
565
595
  "disabled": {
566
- "backgroundColor": "#f2f2f2",
596
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
567
597
  "textColor": "rgba(34, 34, 34, 0.208)"
568
598
  }
569
599
  },
@@ -577,7 +607,7 @@
577
607
  "backgroundColor": "color-mix(in srgb, #c90002, #fcfcfc calc(0.12 * 100%))"
578
608
  },
579
609
  "disabled": {
580
- "backgroundColor": "#f2f2f2",
610
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
581
611
  "textColor": "rgba(34, 34, 34, 0.208)"
582
612
  }
583
613
  }
@@ -600,16 +630,16 @@
600
630
  "size": "1.25rem"
601
631
  },
602
632
  "default": {
603
- "backgroundColor": "#f2f2f2",
633
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
604
634
  "textColor": "#222222",
605
- "borderRadius": "0.75rem",
635
+ "borderRadius": "10rem",
606
636
  "font": "400 1rem/1.5rem 'Inter', sans-serif"
607
637
  },
608
638
  "focus": {
609
639
  "outline": "0.125rem solid #222222"
610
640
  },
611
641
  "disabled": {
612
- "backgroundColor": "#f2f2f2",
642
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
613
643
  "textColor": "rgba(34, 34, 34, 0.208)"
614
644
  },
615
645
  "variants": {
@@ -620,7 +650,7 @@
620
650
  "backgroundColor": "#fcfcfc"
621
651
  },
622
652
  "active": {
623
- "backgroundColor": "#f2f2f2"
653
+ "backgroundColor": "rgba(34, 34, 34, 0.059)"
624
654
  },
625
655
  "disabled": {
626
656
  "backgroundColor": "#ffffff",
@@ -636,7 +666,7 @@
636
666
  },
637
667
  "iconButton": {
638
668
  "primary": {
639
- "borderRadius": "0.25rem"
669
+ "borderRadius": "0.5rem"
640
670
  },
641
671
  "focus": {
642
672
  "outline": "0.125rem solid #222222"
@@ -657,7 +687,7 @@
657
687
  }
658
688
  },
659
689
  "progressBar": {
660
- "backgroundColor": "#f2f2f2",
690
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
661
691
  "sizes": {
662
692
  "sm": {
663
693
  "height": "0.25rem"
@@ -678,7 +708,7 @@
678
708
  "backgroundColor": "#ffffff",
679
709
  "textColor": "#222222",
680
710
  "borderColor": "#909090",
681
- "borderRadius": "0.25rem",
711
+ "borderRadius": "0.5rem",
682
712
  "borderWidth": "0.0625rem",
683
713
  "font": "400 1rem/1.5rem 'Inter', sans-serif"
684
714
  },
@@ -703,7 +733,7 @@
703
733
  }
704
734
  },
705
735
  "disabled": {
706
- "backgroundColor": "#f2f2f2",
736
+ "backgroundColor": "rgba(34, 34, 34, 0.059)",
707
737
  "textColor": "rgba(34, 34, 34, 0.208)",
708
738
  "borderColor": "#d1d1d1"
709
739
  },
@@ -751,19 +781,19 @@
751
781
  "alert": {
752
782
  "severity": {
753
783
  "error": {
754
- "background": "#faf0ee",
784
+ "background": "rgba(180, 31, 1, 0.067)",
755
785
  "text": "#c90002"
756
786
  },
757
787
  "warning": {
758
- "background": "#faf1e3",
788
+ "background": "rgba(210, 128, 0, 0.11)",
759
789
  "text": "#835c00"
760
790
  },
761
791
  "info": {
762
- "background": "#edf3fa",
792
+ "background": "rgba(1, 86, 185, 0.071)",
763
793
  "text": "#0162bf"
764
794
  },
765
795
  "success": {
766
- "background": "#dbf9e8",
796
+ "background": "rgba(1, 213, 93, 0.142)",
767
797
  "text": "#017249"
768
798
  }
769
799
  },
@@ -864,7 +894,8 @@
864
894
  },
865
895
  "checkbox": {
866
896
  "box": {
867
- "size": "1.25rem"
897
+ "size": "1.25rem",
898
+ "borderRadius": "0.25rem"
868
899
  },
869
900
  "row": {
870
901
  "minHeight": "2rem"
@@ -896,31 +927,34 @@
896
927
  "status": {
897
928
  "pending": {
898
929
  "text": "#636363",
899
- "background": "#f2f2f2"
930
+ "background": "rgba(34, 34, 34, 0.059)"
900
931
  },
901
932
  "completed": {
902
933
  "text": "#017249",
903
- "background": "#dbf9e8"
934
+ "background": "rgba(1, 213, 93, 0.142)"
904
935
  },
905
936
  "failed": {
906
937
  "text": "#c90002",
907
- "background": "#faf0ee"
938
+ "background": "rgba(180, 31, 1, 0.067)"
908
939
  },
909
940
  "cancelled": {
910
941
  "text": "#636363",
911
- "background": "#f2f2f2"
942
+ "background": "rgba(34, 34, 34, 0.059)"
912
943
  },
913
944
  "processing": {
914
945
  "text": "#0162bf",
915
- "background": "#edf3fa"
946
+ "background": "rgba(1, 86, 185, 0.071)"
916
947
  },
917
948
  "scheduled": {
918
949
  "text": "#636363",
919
- "background": "#f2f2f2"
950
+ "background": "rgba(34, 34, 34, 0.059)"
920
951
  }
921
952
  },
922
953
  "track": {
923
- "background": "#f2f2f2"
954
+ "background": "rgba(34, 34, 34, 0.059)"
955
+ },
956
+ "overlay": {
957
+ "borderRadius": "1.5rem"
924
958
  }
925
959
  },
926
960
  "semantic": {
@@ -1059,6 +1093,7 @@
1059
1093
  "text": {
1060
1094
  "default": "#222222",
1061
1095
  "inverse": "#fcfcfc",
1096
+ "on-fill": "#fcfcfc",
1062
1097
  "disabled": "rgba(34, 34, 34, 0.208)",
1063
1098
  "success": "#017249",
1064
1099
  "warning": "#835c00",
@@ -1085,6 +1120,7 @@
1085
1120
  "default": "#222222",
1086
1121
  "disabled": "rgba(34, 34, 34, 0.208)",
1087
1122
  "inverse": "#fcfcfc",
1123
+ "on-fill": "#fcfcfc",
1088
1124
  "success": "#017249",
1089
1125
  "warning": "#835c00",
1090
1126
  "muted": "#636363",
@@ -1097,53 +1133,53 @@
1097
1133
  "gray": "#909090",
1098
1134
  "gray-strong": "#636363",
1099
1135
  "gray-text": "#636363",
1100
- "gray-muted": "#f2f2f2",
1136
+ "gray-muted": "rgba(34, 34, 34, 0.059)",
1101
1137
  "olive": "#889903",
1102
1138
  "olive-strong": "#5d6900",
1103
1139
  "olive-text": "#5d6900",
1104
- "olive-muted": "#eff6d4",
1140
+ "olive-muted": "rgba(160, 202, 1, 0.169)",
1105
1141
  "periwinkle": "#7a84ff",
1106
1142
  "periwinkle-strong": "#533eff",
1107
1143
  "periwinkle-text": "#533eff",
1108
- "periwinkle-muted": "#f0f2fa",
1144
+ "periwinkle-muted": "rgba(1, 35, 170, 0.059)",
1109
1145
  "rose": "#ff4989",
1110
1146
  "rose-strong": "#c4005d",
1111
1147
  "rose-text": "#c4005d",
1112
- "rose-muted": "#faeff1",
1148
+ "rose-muted": "rgba(176, 1, 33, 0.063)",
1113
1149
  "magenta": "#fd00fa",
1114
1150
  "magenta-strong": "#b100af",
1115
1151
  "magenta-text": "#b100af",
1116
- "magenta-muted": "#faeff9"
1152
+ "magenta-muted": "rgba(176, 1, 160, 0.063)"
1117
1153
  },
1118
1154
  "fill": {
1119
1155
  "emphasis": "#222222",
1120
- "muted": "#f2f2f2",
1156
+ "muted": "rgba(34, 34, 34, 0.059)",
1121
1157
  "inverse": "#222222",
1122
1158
  "accent": "#0162bf",
1123
- "accent-muted": "#edf3fa",
1124
- "accent-muted-hover": "#e3ecf8",
1125
- "accent-muted-pressed": "#d8e5f6",
1159
+ "accent-muted": "rgba(1, 86, 185, 0.071)",
1160
+ "accent-muted-hover": "rgba(0, 82, 191, 0.11)",
1161
+ "accent-muted-pressed": "rgba(0, 85, 196, 0.153)",
1126
1162
  "accent-hover": "color-mix(in srgb, #0162bf, #fcfcfc calc(0.08 * 100%))",
1127
1163
  "accent-pressed": "color-mix(in srgb, #0162bf, #fcfcfc calc(0.12 * 100%))",
1128
1164
  "danger": "#c90002",
1129
1165
  "danger-hover": "color-mix(in srgb, #c90002, #fcfcfc calc(0.08 * 100%))",
1130
1166
  "danger-pressed": "color-mix(in srgb, #c90002, #fcfcfc calc(0.12 * 100%))",
1131
- "danger-muted": "#faf0ee",
1167
+ "danger-muted": "rgba(180, 31, 1, 0.067)",
1132
1168
  "success": "#017249",
1133
- "success-muted": "#dbf9e8",
1169
+ "success-muted": "rgba(1, 213, 93, 0.142)",
1134
1170
  "warning": "#835c00",
1135
- "warning-muted": "#faf1e3",
1136
- "disabled": "#f2f2f2",
1137
- "default": "#f2f2f2",
1138
- "default-hover": "#ebebeb",
1139
- "default-pressed": "#e4e4e4",
1171
+ "warning-muted": "rgba(210, 128, 0, 0.11)",
1172
+ "disabled": "rgba(34, 34, 34, 0.059)",
1173
+ "default": "rgba(34, 34, 34, 0.059)",
1174
+ "default-hover": "rgba(34, 34, 34, 0.09)",
1175
+ "default-pressed": "rgba(34, 34, 34, 0.122)",
1140
1176
  "none": "transparent",
1141
- "none-hover": "rgba(34, 34, 34, 0.1)",
1142
- "none-pressed": "rgba(34, 34, 34, 0.15)",
1143
- "inverse-none-hover": "rgba(255, 255, 255, 0.2)",
1177
+ "none-hover": "rgba(34, 34, 34, 0.09)",
1178
+ "none-pressed": "rgba(34, 34, 34, 0.158)",
1179
+ "inverse-none-hover": "rgba(252, 252, 252, 0.208)",
1144
1180
  "serious": "#a54703",
1145
- "serious-muted": "#faf0eb",
1146
- "ai-muted": "#f4f0fa"
1181
+ "serious-muted": "rgba(192, 65, 2, 0.079)",
1182
+ "ai-muted": "rgba(69, 1, 170, 0.059)"
1147
1183
  },
1148
1184
  "data": {
1149
1185
  "positive": "#009762",
@@ -1260,7 +1296,8 @@
1260
1296
  "surface": {
1261
1297
  "base": "#fcfcfc",
1262
1298
  "raised": "#ffffff",
1263
- "scrim": "rgba(34, 34, 34, 0.5)"
1299
+ "overlay": "#ffffff",
1300
+ "scrim": "color-mix(in srgb, #222222 calc(0.5 * 100%), transparent)"
1264
1301
  }
1265
1302
  }
1266
1303
  }