@common-origin/design-system 2.13.0 → 2.15.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 +767 -466
- package/dist/client.esm.js.map +1 -1
- package/dist/client.js +766 -465
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.d.ts +2 -0
- package/dist/components/atoms/Chip/shared/utils.d.ts +3 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/components/layout/GridSystem/GridSystem.d.ts +6 -0
- package/dist/components/molecules/Alert/Alert.d.ts +2 -1
- 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/PageTitle/PageTitle.d.ts +13 -0
- package/dist/components/molecules/Sheet/Sheet.d.ts +2 -2
- package/dist/data.esm.js +236 -4
- package/dist/data.esm.js.map +1 -1
- package/dist/data.js +236 -4
- package/dist/data.js.map +1 -1
- package/dist/lib/styleUtils.d.ts +3 -0
- package/dist/lib/usePresence.d.ts +16 -0
- package/dist/styles/tokens.json +236 -4
- package/dist/tokens/index.esm.js +236 -4
- package/dist/tokens/index.esm.js.map +1 -1
- package/dist/tokens/index.js +236 -4
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/types/tokens.d.ts +232 -0
- package/dist/types/tokens.d.ts +232 -0
- package/package.json +5 -7
package/dist/data.js
CHANGED
|
@@ -77,17 +77,29 @@ var base = {
|
|
|
77
77
|
"8": "2rem",
|
|
78
78
|
"9": "2.25rem",
|
|
79
79
|
"10": "2.5rem",
|
|
80
|
+
"11": "2.75rem",
|
|
80
81
|
"12": "3rem",
|
|
81
82
|
"14": "3.5rem",
|
|
83
|
+
"15": "3.75rem",
|
|
82
84
|
"16": "4rem",
|
|
85
|
+
"18": "4.5rem",
|
|
83
86
|
"20": "5rem",
|
|
84
87
|
"24": "6rem",
|
|
85
88
|
"28": "7rem",
|
|
89
|
+
"30": "7.5rem",
|
|
86
90
|
"32": "8rem",
|
|
87
91
|
"40": "10rem",
|
|
92
|
+
"45": "11.25rem",
|
|
88
93
|
"48": "12rem",
|
|
94
|
+
"50": "12.5rem",
|
|
89
95
|
"56": "14rem",
|
|
90
96
|
"64": "16rem",
|
|
97
|
+
"75": "18.75rem",
|
|
98
|
+
"90": "22.5rem",
|
|
99
|
+
"100": "25rem",
|
|
100
|
+
"140": "35rem",
|
|
101
|
+
"180": "45rem",
|
|
102
|
+
"192": "48rem",
|
|
91
103
|
auto: "auto",
|
|
92
104
|
full: "100%",
|
|
93
105
|
screen: "100vh",
|
|
@@ -277,7 +289,8 @@ var base = {
|
|
|
277
289
|
"8": "2.5rem",
|
|
278
290
|
"9": "3rem",
|
|
279
291
|
"10": "4.5rem",
|
|
280
|
-
"11": "5rem"
|
|
292
|
+
"11": "5rem",
|
|
293
|
+
none: "1"
|
|
281
294
|
},
|
|
282
295
|
letterSpacing: {
|
|
283
296
|
"0": "-0.125rem",
|
|
@@ -415,6 +428,9 @@ var component = {
|
|
|
415
428
|
}
|
|
416
429
|
},
|
|
417
430
|
chip: {
|
|
431
|
+
closeButton: {
|
|
432
|
+
size: "1.25rem"
|
|
433
|
+
},
|
|
418
434
|
"default": {
|
|
419
435
|
backgroundColor: "#e9ecef",
|
|
420
436
|
textColor: "#212529",
|
|
@@ -650,6 +666,9 @@ var component = {
|
|
|
650
666
|
textColor: "#adb5bd",
|
|
651
667
|
borderColor: "#dee2e6",
|
|
652
668
|
cursor: "not-allowed"
|
|
669
|
+
},
|
|
670
|
+
textarea: {
|
|
671
|
+
minHeight: "7.5rem"
|
|
653
672
|
}
|
|
654
673
|
},
|
|
655
674
|
badge: {
|
|
@@ -659,12 +678,138 @@ var component = {
|
|
|
659
678
|
count: {
|
|
660
679
|
minWidth: "1rem",
|
|
661
680
|
height: "1rem",
|
|
662
|
-
paddingX: "0.25rem"
|
|
681
|
+
paddingX: "0.25rem",
|
|
682
|
+
lineHeight: "1"
|
|
663
683
|
},
|
|
664
684
|
ring: {
|
|
665
685
|
width: "0.125rem"
|
|
666
686
|
},
|
|
667
|
-
borderRadius: "10rem"
|
|
687
|
+
borderRadius: "10rem",
|
|
688
|
+
label: {
|
|
689
|
+
fontWeight: "500",
|
|
690
|
+
typography: {
|
|
691
|
+
small: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
692
|
+
medium: "400 0.875rem/1.25rem 'Inter', sans-serif"
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
field: {
|
|
697
|
+
gap: "0.5rem",
|
|
698
|
+
label: {
|
|
699
|
+
typography: "600 0.875rem/1.25rem 'Inter', sans-serif",
|
|
700
|
+
color: "#212529",
|
|
701
|
+
colorDisabled: "#adb5bd",
|
|
702
|
+
gap: "0.25rem"
|
|
703
|
+
},
|
|
704
|
+
requiredIndicator: {
|
|
705
|
+
color: "#D31510",
|
|
706
|
+
fontWeight: "700"
|
|
707
|
+
},
|
|
708
|
+
helperText: {
|
|
709
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
710
|
+
color: "#495057",
|
|
711
|
+
colorError: "#D31510"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
alert: {
|
|
715
|
+
title: {
|
|
716
|
+
typography: "500 1.125rem/1.5rem 'Inter', sans-serif",
|
|
717
|
+
fontWeight: "600",
|
|
718
|
+
lineHeight: "1.25rem"
|
|
719
|
+
},
|
|
720
|
+
message: {
|
|
721
|
+
typography: "400 1rem/1.5rem 'Inter', sans-serif",
|
|
722
|
+
lineHeight: "1.25rem"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
tabBar: {
|
|
726
|
+
badge: {
|
|
727
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
728
|
+
fontWeight: "700",
|
|
729
|
+
size: "1.25rem"
|
|
730
|
+
},
|
|
731
|
+
scrollbar: {
|
|
732
|
+
height: "0.25rem"
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
searchField: {
|
|
736
|
+
sectionHeader: {
|
|
737
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
738
|
+
letterSpacing: "0.125rem"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
avatar: {
|
|
742
|
+
initials: {
|
|
743
|
+
fontFamily: "'Inter', sans-serif",
|
|
744
|
+
fontWeight: "500",
|
|
745
|
+
lineHeight: "1",
|
|
746
|
+
fontSize: {
|
|
747
|
+
xs: "0.75rem",
|
|
748
|
+
sm: "0.875rem",
|
|
749
|
+
md: "1rem",
|
|
750
|
+
lg: "1.125rem",
|
|
751
|
+
xl: "1.25rem"
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
codeBlock: {
|
|
756
|
+
fontFamily: "Menlo, Monaco, Consolas, Courier New, monospace",
|
|
757
|
+
fontSize: "0.75rem",
|
|
758
|
+
lineHeight: "1.25rem"
|
|
759
|
+
},
|
|
760
|
+
slider: {
|
|
761
|
+
thumb: {
|
|
762
|
+
shadow: {
|
|
763
|
+
"default": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
764
|
+
hover: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
765
|
+
active: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
accountCard: {
|
|
770
|
+
header: {
|
|
771
|
+
minHeight: "3rem"
|
|
772
|
+
},
|
|
773
|
+
minWidth: "18.75rem"
|
|
774
|
+
},
|
|
775
|
+
breadcrumbs: {
|
|
776
|
+
item: {
|
|
777
|
+
maxWidth: "11.25rem"
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
cardLarge: {
|
|
781
|
+
maxWidth: "48rem"
|
|
782
|
+
},
|
|
783
|
+
checkbox: {
|
|
784
|
+
box: {
|
|
785
|
+
size: "1.25rem"
|
|
786
|
+
},
|
|
787
|
+
row: {
|
|
788
|
+
minHeight: "2rem"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
emptyState: {
|
|
792
|
+
illustration: {
|
|
793
|
+
small: "5rem",
|
|
794
|
+
medium: "7.5rem",
|
|
795
|
+
large: "12.5rem"
|
|
796
|
+
},
|
|
797
|
+
maxWidth: "25rem",
|
|
798
|
+
text: {
|
|
799
|
+
maxWidth: "22.5rem"
|
|
800
|
+
},
|
|
801
|
+
actions: {
|
|
802
|
+
maxWidth: "18.75rem"
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
listItem: {
|
|
806
|
+
expandedIndent: {
|
|
807
|
+
compact: "3rem",
|
|
808
|
+
comfortable: "3.75rem"
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
transactionListItem: {
|
|
812
|
+
minHeight: "4.5rem"
|
|
668
813
|
},
|
|
669
814
|
$ref: "./component/index.json"
|
|
670
815
|
};
|
|
@@ -677,12 +822,63 @@ var semantic = {
|
|
|
677
822
|
overlay: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
678
823
|
sticky: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"
|
|
679
824
|
},
|
|
825
|
+
breakpoint: {
|
|
826
|
+
xs: "0px",
|
|
827
|
+
sm: "640px",
|
|
828
|
+
md: "768px",
|
|
829
|
+
lg: "1024px",
|
|
830
|
+
xl: "1280px",
|
|
831
|
+
"2xl": "1536px"
|
|
832
|
+
},
|
|
833
|
+
opacity: {
|
|
834
|
+
disabled: "0.5",
|
|
835
|
+
full: "1"
|
|
836
|
+
},
|
|
837
|
+
fontFamily: {
|
|
838
|
+
body: "'Inter', sans-serif",
|
|
839
|
+
monospace: "Menlo, Monaco, Consolas, Courier New, monospace"
|
|
840
|
+
},
|
|
841
|
+
fontSize: {
|
|
842
|
+
xs: "0.75rem",
|
|
843
|
+
sm: "0.875rem",
|
|
844
|
+
md: "1rem",
|
|
845
|
+
lg: "1.125rem",
|
|
846
|
+
xl: "1.25rem"
|
|
847
|
+
},
|
|
848
|
+
lineHeight: {
|
|
849
|
+
none: "1",
|
|
850
|
+
tight: "1.25rem",
|
|
851
|
+
normal: "1.5rem"
|
|
852
|
+
},
|
|
853
|
+
letterSpacing: {
|
|
854
|
+
tighter: "-0.125rem",
|
|
855
|
+
tight: "-0.0625rem",
|
|
856
|
+
normal: "0rem",
|
|
857
|
+
wide: "0.125rem"
|
|
858
|
+
},
|
|
859
|
+
fontWeight: {
|
|
860
|
+
regular: "400",
|
|
861
|
+
medium: "500",
|
|
862
|
+
semibold: "600",
|
|
863
|
+
bold: "700"
|
|
864
|
+
},
|
|
865
|
+
zIndex: {
|
|
866
|
+
sticky: "10",
|
|
867
|
+
dropdown: "1000",
|
|
868
|
+
overlay: "1010",
|
|
869
|
+
modal: "1020"
|
|
870
|
+
},
|
|
680
871
|
border: {
|
|
681
872
|
"default": "0.0625rem solid #e9ecef",
|
|
682
873
|
subtle: "0.0625rem solid #dee2e6",
|
|
683
874
|
strong: "0.0625rem solid #343a40",
|
|
684
875
|
focus: "0.125rem solid #343a40",
|
|
685
876
|
tooltip: "0.125rem dotted #dee2e6",
|
|
877
|
+
width: {
|
|
878
|
+
thin: "0.0625rem",
|
|
879
|
+
thick: "0.125rem"
|
|
880
|
+
},
|
|
881
|
+
focusOffset: "0.125rem",
|
|
686
882
|
radius: {
|
|
687
883
|
none: "0",
|
|
688
884
|
xs: "0.125rem",
|
|
@@ -696,6 +892,31 @@ var semantic = {
|
|
|
696
892
|
}
|
|
697
893
|
},
|
|
698
894
|
size: {
|
|
895
|
+
touchTarget: "2.75rem",
|
|
896
|
+
overlay: {
|
|
897
|
+
sm: "25rem",
|
|
898
|
+
md: "35rem",
|
|
899
|
+
lg: "45rem"
|
|
900
|
+
},
|
|
901
|
+
menu: {
|
|
902
|
+
maxHeight: "18.75rem"
|
|
903
|
+
},
|
|
904
|
+
dimension: {
|
|
905
|
+
"1": "0.25rem",
|
|
906
|
+
"5": "1.25rem",
|
|
907
|
+
"8": "2rem",
|
|
908
|
+
"12": "3rem",
|
|
909
|
+
"15": "3.75rem",
|
|
910
|
+
"18": "4.5rem",
|
|
911
|
+
"20": "5rem",
|
|
912
|
+
"30": "7.5rem",
|
|
913
|
+
"45": "11.25rem",
|
|
914
|
+
"50": "12.5rem",
|
|
915
|
+
"75": "18.75rem",
|
|
916
|
+
"90": "22.5rem",
|
|
917
|
+
"100": "25rem",
|
|
918
|
+
"192": "48rem"
|
|
919
|
+
},
|
|
699
920
|
icon: {
|
|
700
921
|
xs: "0.75rem",
|
|
701
922
|
sm: "1rem",
|
|
@@ -743,6 +964,7 @@ var semantic = {
|
|
|
743
964
|
"8xl": "3.5rem",
|
|
744
965
|
"9xl": "4rem",
|
|
745
966
|
"10xl": "5rem",
|
|
967
|
+
"11xl": "6rem",
|
|
746
968
|
auto: "auto"
|
|
747
969
|
}
|
|
748
970
|
},
|
|
@@ -779,7 +1001,8 @@ var semantic = {
|
|
|
779
1001
|
page: "#f8f9fa",
|
|
780
1002
|
overlay: "rgba(33, 37, 41, 0.5)",
|
|
781
1003
|
"hover-overlay": "rgba(33, 37, 41, 0.1)",
|
|
782
|
-
"active-overlay": "rgba(33, 37, 41, 0.15)"
|
|
1004
|
+
"active-overlay": "rgba(33, 37, 41, 0.15)",
|
|
1005
|
+
"inverse-overlay": "rgba(255, 255, 255, 0.2)"
|
|
783
1006
|
},
|
|
784
1007
|
border: {
|
|
785
1008
|
"default": "#e9ecef",
|
|
@@ -872,6 +1095,15 @@ var semantic = {
|
|
|
872
1095
|
breadcrumb: "400 0.75rem/1.125rem 'Inter', sans-serif"
|
|
873
1096
|
},
|
|
874
1097
|
motion: {
|
|
1098
|
+
duration: {
|
|
1099
|
+
normal: "200ms",
|
|
1100
|
+
fast: "150ms",
|
|
1101
|
+
slow: "300ms"
|
|
1102
|
+
},
|
|
1103
|
+
easing: {
|
|
1104
|
+
easeInOut: "ease-in-out",
|
|
1105
|
+
easeOut: "ease-out"
|
|
1106
|
+
},
|
|
875
1107
|
transition: {
|
|
876
1108
|
fast: "all 150ms ease-out",
|
|
877
1109
|
normal: "all 200ms ease-in-out",
|
package/dist/data.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sources":["../src/types/tokens.ts","../src/types/icons.ts"],"sourcesContent":["import tokensJson from '../styles/tokens.json'\n\n// Re-declared as a const so emitted .d.ts files inline the token shape instead of importing JSON,\n// which consumers can only resolve with `resolveJsonModule`.\nexport const tokens = tokensJson\n\nexport type Tokens = typeof tokens\nexport type TokensBase = Tokens['base']\nexport type TokensSemantic = Tokens['semantic']\nexport type TokensComponent = Tokens['component']\n","// Icon type definitions for external consumption\n// This is a self-contained type that doesn't depend on JSON imports\n// to ensure it works correctly in consuming projects\n\nimport iconsJson from '../styles/icons.json'\n\nexport type IconName =\n | 'add'\n | 'addRing'\n | 'arrowDown'\n | 'arrowLeft'\n | 'arrowRight'\n | 'arrowUp'\n | 'back'\n | 'bell'\n | 'cancel'\n | 'caret'\n | 'caretDown'\n | 'caretUp'\n | 'check'\n | 'checkRing'\n | 'close'\n | 'copy'\n | 'creditCard'\n | 'crossCircle'\n | 'directionRight'\n | 'directionUp'\n | 'edit'\n | 'export'\n | 'fileDocSearch'\n | 'filter'\n | 'info'\n | 'kebab'\n | 'lamp'\n | 'lineOut'\n | 'link'\n | 'meatballs'\n | 'menu'\n | 'message'\n | 'move'\n | 'mic'\n | 'order'\n | 'paper'\n | 'pause'\n | 'play'\n | 'playBack'\n | 'refresh'\n | 'remove'\n | 'search'\n | 'star'\n | 'starFilled'\n | 'table'\n | 'trash'\n | 'userBox'\n | 'view'\n | 'viewHide'\n | 'wallet'\n\n/** Semantic category for grouping icons by purpose */\nexport type IconCategory =\n | 'action'\n | 'communication'\n | 'content'\n | 'feedback'\n | 'media'\n | 'navigation'\n | 'object'\n | 'status'\n | 'user'\n\n/** Enriched metadata for each icon entry in icons.json */\nexport interface IconMetadata {\n /** SVG path data */\n path: string\n /** Display name of the icon */\n name: string\n /** What the icon visually depicts */\n description: string\n /** Semantic category for grouping */\n category: IconCategory\n /** Alternative names and search terms */\n aliases: string[]\n /** When and why to use this icon */\n intent: string\n /** Whether the icon is typically decorative (true) or informative (false) */\n decorativeDefault: boolean\n /** Suggested accessible label when the icon conveys meaning */\n ariaLabelDefault: string\n}\n\n/** The full icon registry keyed by IconName */\nexport type IconRegistry = Record<IconName, IconMetadata>\n\n// Typed as IconRegistry so emitted .d.ts files don't import JSON (needs `resolveJsonModule` in consumers).\nexport const iconsData = iconsJson as IconRegistry\n"],"names":["tokens","tokensJson","iconsData","iconsJson"],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.js","sources":["../src/types/tokens.ts","../src/types/icons.ts"],"sourcesContent":["import tokensJson from '../styles/tokens.json'\n\n// Re-declared as a const so emitted .d.ts files inline the token shape instead of importing JSON,\n// which consumers can only resolve with `resolveJsonModule`.\nexport const tokens = tokensJson\n\nexport type Tokens = typeof tokens\nexport type TokensBase = Tokens['base']\nexport type TokensSemantic = Tokens['semantic']\nexport type TokensComponent = Tokens['component']\n","// Icon type definitions for external consumption\n// This is a self-contained type that doesn't depend on JSON imports\n// to ensure it works correctly in consuming projects\n\nimport iconsJson from '../styles/icons.json'\n\nexport type IconName =\n | 'add'\n | 'addRing'\n | 'arrowDown'\n | 'arrowLeft'\n | 'arrowRight'\n | 'arrowUp'\n | 'back'\n | 'bell'\n | 'cancel'\n | 'caret'\n | 'caretDown'\n | 'caretUp'\n | 'check'\n | 'checkRing'\n | 'close'\n | 'copy'\n | 'creditCard'\n | 'crossCircle'\n | 'directionRight'\n | 'directionUp'\n | 'edit'\n | 'export'\n | 'fileDocSearch'\n | 'filter'\n | 'info'\n | 'kebab'\n | 'lamp'\n | 'lineOut'\n | 'link'\n | 'meatballs'\n | 'menu'\n | 'message'\n | 'move'\n | 'mic'\n | 'order'\n | 'paper'\n | 'pause'\n | 'play'\n | 'playBack'\n | 'refresh'\n | 'remove'\n | 'search'\n | 'star'\n | 'starFilled'\n | 'table'\n | 'trash'\n | 'userBox'\n | 'view'\n | 'viewHide'\n | 'wallet'\n\n/** Semantic category for grouping icons by purpose */\nexport type IconCategory =\n | 'action'\n | 'communication'\n | 'content'\n | 'feedback'\n | 'media'\n | 'navigation'\n | 'object'\n | 'status'\n | 'user'\n\n/** Enriched metadata for each icon entry in icons.json */\nexport interface IconMetadata {\n /** SVG path data */\n path: string\n /** Display name of the icon */\n name: string\n /** What the icon visually depicts */\n description: string\n /** Semantic category for grouping */\n category: IconCategory\n /** Alternative names and search terms */\n aliases: string[]\n /** When and why to use this icon */\n intent: string\n /** Whether the icon is typically decorative (true) or informative (false) */\n decorativeDefault: boolean\n /** Suggested accessible label when the icon conveys meaning */\n ariaLabelDefault: string\n}\n\n/** The full icon registry keyed by IconName */\nexport type IconRegistry = Record<IconName, IconMetadata>\n\n// Typed as IconRegistry so emitted .d.ts files don't import JSON (needs `resolveJsonModule` in consumers).\nexport const iconsData = iconsJson as IconRegistry\n"],"names":["tokens","tokensJson","iconsData","iconsJson"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA;AACO,IAAMA,MAAM,GAAGC;;ACJtB;AACA;AACA;AA2FA;AACO,IAAMC,SAAS,GAAGC;;;;;;;"}
|
package/dist/lib/styleUtils.d.ts
CHANGED
|
@@ -14,3 +14,6 @@ export declare const media: {
|
|
|
14
14
|
xl: string;
|
|
15
15
|
'2xl': string;
|
|
16
16
|
};
|
|
17
|
+
export declare const reducedMotion = "@media (prefers-reduced-motion: reduce)";
|
|
18
|
+
export declare const exitAnimation: import("styled-components").RuleSet<object>;
|
|
19
|
+
export declare const visuallyHidden: import("styled-components").RuleSet<object>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
export declare const EXIT_DURATION_MS: number;
|
|
3
|
+
/**
|
|
4
|
+
* Keeps an element mounted for `exitMs` after `isOpen` turns false, so its exit
|
|
5
|
+
* animation can run before it unmounts (decision 0005).
|
|
6
|
+
*/
|
|
7
|
+
export declare function usePresence(isOpen: boolean, exitMs?: number): {
|
|
8
|
+
isPresent: boolean;
|
|
9
|
+
isExiting: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Makes an element inert while `isInert` is true, so an exiting overlay's controls leave
|
|
13
|
+
* the tab order and can't be activated. Set through the DOM because React 18 has no
|
|
14
|
+
* `inert` prop.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useInert(ref: RefObject<HTMLElement | null>, isInert: boolean): void;
|
package/dist/styles/tokens.json
CHANGED
|
@@ -76,17 +76,29 @@
|
|
|
76
76
|
"8": "2rem",
|
|
77
77
|
"9": "2.25rem",
|
|
78
78
|
"10": "2.5rem",
|
|
79
|
+
"11": "2.75rem",
|
|
79
80
|
"12": "3rem",
|
|
80
81
|
"14": "3.5rem",
|
|
82
|
+
"15": "3.75rem",
|
|
81
83
|
"16": "4rem",
|
|
84
|
+
"18": "4.5rem",
|
|
82
85
|
"20": "5rem",
|
|
83
86
|
"24": "6rem",
|
|
84
87
|
"28": "7rem",
|
|
88
|
+
"30": "7.5rem",
|
|
85
89
|
"32": "8rem",
|
|
86
90
|
"40": "10rem",
|
|
91
|
+
"45": "11.25rem",
|
|
87
92
|
"48": "12rem",
|
|
93
|
+
"50": "12.5rem",
|
|
88
94
|
"56": "14rem",
|
|
89
95
|
"64": "16rem",
|
|
96
|
+
"75": "18.75rem",
|
|
97
|
+
"90": "22.5rem",
|
|
98
|
+
"100": "25rem",
|
|
99
|
+
"140": "35rem",
|
|
100
|
+
"180": "45rem",
|
|
101
|
+
"192": "48rem",
|
|
90
102
|
"auto": "auto",
|
|
91
103
|
"full": "100%",
|
|
92
104
|
"screen": "100vh",
|
|
@@ -276,7 +288,8 @@
|
|
|
276
288
|
"8": "2.5rem",
|
|
277
289
|
"9": "3rem",
|
|
278
290
|
"10": "4.5rem",
|
|
279
|
-
"11": "5rem"
|
|
291
|
+
"11": "5rem",
|
|
292
|
+
"none": "1"
|
|
280
293
|
},
|
|
281
294
|
"letterSpacing": {
|
|
282
295
|
"0": "-0.125rem",
|
|
@@ -414,6 +427,9 @@
|
|
|
414
427
|
}
|
|
415
428
|
},
|
|
416
429
|
"chip": {
|
|
430
|
+
"closeButton": {
|
|
431
|
+
"size": "1.25rem"
|
|
432
|
+
},
|
|
417
433
|
"default": {
|
|
418
434
|
"backgroundColor": "#e9ecef",
|
|
419
435
|
"textColor": "#212529",
|
|
@@ -649,6 +665,9 @@
|
|
|
649
665
|
"textColor": "#adb5bd",
|
|
650
666
|
"borderColor": "#dee2e6",
|
|
651
667
|
"cursor": "not-allowed"
|
|
668
|
+
},
|
|
669
|
+
"textarea": {
|
|
670
|
+
"minHeight": "7.5rem"
|
|
652
671
|
}
|
|
653
672
|
},
|
|
654
673
|
"badge": {
|
|
@@ -658,12 +677,138 @@
|
|
|
658
677
|
"count": {
|
|
659
678
|
"minWidth": "1rem",
|
|
660
679
|
"height": "1rem",
|
|
661
|
-
"paddingX": "0.25rem"
|
|
680
|
+
"paddingX": "0.25rem",
|
|
681
|
+
"lineHeight": "1"
|
|
662
682
|
},
|
|
663
683
|
"ring": {
|
|
664
684
|
"width": "0.125rem"
|
|
665
685
|
},
|
|
666
|
-
"borderRadius": "10rem"
|
|
686
|
+
"borderRadius": "10rem",
|
|
687
|
+
"label": {
|
|
688
|
+
"fontWeight": "500",
|
|
689
|
+
"typography": {
|
|
690
|
+
"small": "400 0.75rem/1rem 'Inter', sans-serif",
|
|
691
|
+
"medium": "400 0.875rem/1.25rem 'Inter', sans-serif"
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"field": {
|
|
696
|
+
"gap": "0.5rem",
|
|
697
|
+
"label": {
|
|
698
|
+
"typography": "600 0.875rem/1.25rem 'Inter', sans-serif",
|
|
699
|
+
"color": "#212529",
|
|
700
|
+
"colorDisabled": "#adb5bd",
|
|
701
|
+
"gap": "0.25rem"
|
|
702
|
+
},
|
|
703
|
+
"requiredIndicator": {
|
|
704
|
+
"color": "#D31510",
|
|
705
|
+
"fontWeight": "700"
|
|
706
|
+
},
|
|
707
|
+
"helperText": {
|
|
708
|
+
"typography": "400 0.75rem/1rem 'Inter', sans-serif",
|
|
709
|
+
"color": "#495057",
|
|
710
|
+
"colorError": "#D31510"
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
"alert": {
|
|
714
|
+
"title": {
|
|
715
|
+
"typography": "500 1.125rem/1.5rem 'Inter', sans-serif",
|
|
716
|
+
"fontWeight": "600",
|
|
717
|
+
"lineHeight": "1.25rem"
|
|
718
|
+
},
|
|
719
|
+
"message": {
|
|
720
|
+
"typography": "400 1rem/1.5rem 'Inter', sans-serif",
|
|
721
|
+
"lineHeight": "1.25rem"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"tabBar": {
|
|
725
|
+
"badge": {
|
|
726
|
+
"typography": "400 0.75rem/1rem 'Inter', sans-serif",
|
|
727
|
+
"fontWeight": "700",
|
|
728
|
+
"size": "1.25rem"
|
|
729
|
+
},
|
|
730
|
+
"scrollbar": {
|
|
731
|
+
"height": "0.25rem"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"searchField": {
|
|
735
|
+
"sectionHeader": {
|
|
736
|
+
"typography": "400 0.75rem/1rem 'Inter', sans-serif",
|
|
737
|
+
"letterSpacing": "0.125rem"
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
"avatar": {
|
|
741
|
+
"initials": {
|
|
742
|
+
"fontFamily": "'Inter', sans-serif",
|
|
743
|
+
"fontWeight": "500",
|
|
744
|
+
"lineHeight": "1",
|
|
745
|
+
"fontSize": {
|
|
746
|
+
"xs": "0.75rem",
|
|
747
|
+
"sm": "0.875rem",
|
|
748
|
+
"md": "1rem",
|
|
749
|
+
"lg": "1.125rem",
|
|
750
|
+
"xl": "1.25rem"
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"codeBlock": {
|
|
755
|
+
"fontFamily": "Menlo, Monaco, Consolas, Courier New, monospace",
|
|
756
|
+
"fontSize": "0.75rem",
|
|
757
|
+
"lineHeight": "1.25rem"
|
|
758
|
+
},
|
|
759
|
+
"slider": {
|
|
760
|
+
"thumb": {
|
|
761
|
+
"shadow": {
|
|
762
|
+
"default": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
763
|
+
"hover": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
764
|
+
"active": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"accountCard": {
|
|
769
|
+
"header": {
|
|
770
|
+
"minHeight": "3rem"
|
|
771
|
+
},
|
|
772
|
+
"minWidth": "18.75rem"
|
|
773
|
+
},
|
|
774
|
+
"breadcrumbs": {
|
|
775
|
+
"item": {
|
|
776
|
+
"maxWidth": "11.25rem"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"cardLarge": {
|
|
780
|
+
"maxWidth": "48rem"
|
|
781
|
+
},
|
|
782
|
+
"checkbox": {
|
|
783
|
+
"box": {
|
|
784
|
+
"size": "1.25rem"
|
|
785
|
+
},
|
|
786
|
+
"row": {
|
|
787
|
+
"minHeight": "2rem"
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"emptyState": {
|
|
791
|
+
"illustration": {
|
|
792
|
+
"small": "5rem",
|
|
793
|
+
"medium": "7.5rem",
|
|
794
|
+
"large": "12.5rem"
|
|
795
|
+
},
|
|
796
|
+
"maxWidth": "25rem",
|
|
797
|
+
"text": {
|
|
798
|
+
"maxWidth": "22.5rem"
|
|
799
|
+
},
|
|
800
|
+
"actions": {
|
|
801
|
+
"maxWidth": "18.75rem"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
"listItem": {
|
|
805
|
+
"expandedIndent": {
|
|
806
|
+
"compact": "3rem",
|
|
807
|
+
"comfortable": "3.75rem"
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"transactionListItem": {
|
|
811
|
+
"minHeight": "4.5rem"
|
|
667
812
|
},
|
|
668
813
|
"$ref": "./component/index.json"
|
|
669
814
|
},
|
|
@@ -676,12 +821,63 @@
|
|
|
676
821
|
"overlay": "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
677
822
|
"sticky": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"
|
|
678
823
|
},
|
|
824
|
+
"breakpoint": {
|
|
825
|
+
"xs": "0px",
|
|
826
|
+
"sm": "640px",
|
|
827
|
+
"md": "768px",
|
|
828
|
+
"lg": "1024px",
|
|
829
|
+
"xl": "1280px",
|
|
830
|
+
"2xl": "1536px"
|
|
831
|
+
},
|
|
832
|
+
"opacity": {
|
|
833
|
+
"disabled": "0.5",
|
|
834
|
+
"full": "1"
|
|
835
|
+
},
|
|
836
|
+
"fontFamily": {
|
|
837
|
+
"body": "'Inter', sans-serif",
|
|
838
|
+
"monospace": "Menlo, Monaco, Consolas, Courier New, monospace"
|
|
839
|
+
},
|
|
840
|
+
"fontSize": {
|
|
841
|
+
"xs": "0.75rem",
|
|
842
|
+
"sm": "0.875rem",
|
|
843
|
+
"md": "1rem",
|
|
844
|
+
"lg": "1.125rem",
|
|
845
|
+
"xl": "1.25rem"
|
|
846
|
+
},
|
|
847
|
+
"lineHeight": {
|
|
848
|
+
"none": "1",
|
|
849
|
+
"tight": "1.25rem",
|
|
850
|
+
"normal": "1.5rem"
|
|
851
|
+
},
|
|
852
|
+
"letterSpacing": {
|
|
853
|
+
"tighter": "-0.125rem",
|
|
854
|
+
"tight": "-0.0625rem",
|
|
855
|
+
"normal": "0rem",
|
|
856
|
+
"wide": "0.125rem"
|
|
857
|
+
},
|
|
858
|
+
"fontWeight": {
|
|
859
|
+
"regular": "400",
|
|
860
|
+
"medium": "500",
|
|
861
|
+
"semibold": "600",
|
|
862
|
+
"bold": "700"
|
|
863
|
+
},
|
|
864
|
+
"zIndex": {
|
|
865
|
+
"sticky": "10",
|
|
866
|
+
"dropdown": "1000",
|
|
867
|
+
"overlay": "1010",
|
|
868
|
+
"modal": "1020"
|
|
869
|
+
},
|
|
679
870
|
"border": {
|
|
680
871
|
"default": "0.0625rem solid #e9ecef",
|
|
681
872
|
"subtle": "0.0625rem solid #dee2e6",
|
|
682
873
|
"strong": "0.0625rem solid #343a40",
|
|
683
874
|
"focus": "0.125rem solid #343a40",
|
|
684
875
|
"tooltip": "0.125rem dotted #dee2e6",
|
|
876
|
+
"width": {
|
|
877
|
+
"thin": "0.0625rem",
|
|
878
|
+
"thick": "0.125rem"
|
|
879
|
+
},
|
|
880
|
+
"focusOffset": "0.125rem",
|
|
685
881
|
"radius": {
|
|
686
882
|
"none": "0",
|
|
687
883
|
"xs": "0.125rem",
|
|
@@ -695,6 +891,31 @@
|
|
|
695
891
|
}
|
|
696
892
|
},
|
|
697
893
|
"size": {
|
|
894
|
+
"touchTarget": "2.75rem",
|
|
895
|
+
"overlay": {
|
|
896
|
+
"sm": "25rem",
|
|
897
|
+
"md": "35rem",
|
|
898
|
+
"lg": "45rem"
|
|
899
|
+
},
|
|
900
|
+
"menu": {
|
|
901
|
+
"maxHeight": "18.75rem"
|
|
902
|
+
},
|
|
903
|
+
"dimension": {
|
|
904
|
+
"1": "0.25rem",
|
|
905
|
+
"5": "1.25rem",
|
|
906
|
+
"8": "2rem",
|
|
907
|
+
"12": "3rem",
|
|
908
|
+
"15": "3.75rem",
|
|
909
|
+
"18": "4.5rem",
|
|
910
|
+
"20": "5rem",
|
|
911
|
+
"30": "7.5rem",
|
|
912
|
+
"45": "11.25rem",
|
|
913
|
+
"50": "12.5rem",
|
|
914
|
+
"75": "18.75rem",
|
|
915
|
+
"90": "22.5rem",
|
|
916
|
+
"100": "25rem",
|
|
917
|
+
"192": "48rem"
|
|
918
|
+
},
|
|
698
919
|
"icon": {
|
|
699
920
|
"xs": "0.75rem",
|
|
700
921
|
"sm": "1rem",
|
|
@@ -742,6 +963,7 @@
|
|
|
742
963
|
"8xl": "3.5rem",
|
|
743
964
|
"9xl": "4rem",
|
|
744
965
|
"10xl": "5rem",
|
|
966
|
+
"11xl": "6rem",
|
|
745
967
|
"auto": "auto"
|
|
746
968
|
}
|
|
747
969
|
},
|
|
@@ -778,7 +1000,8 @@
|
|
|
778
1000
|
"page": "#f8f9fa",
|
|
779
1001
|
"overlay": "rgba(33, 37, 41, 0.5)",
|
|
780
1002
|
"hover-overlay": "rgba(33, 37, 41, 0.1)",
|
|
781
|
-
"active-overlay": "rgba(33, 37, 41, 0.15)"
|
|
1003
|
+
"active-overlay": "rgba(33, 37, 41, 0.15)",
|
|
1004
|
+
"inverse-overlay": "rgba(255, 255, 255, 0.2)"
|
|
782
1005
|
},
|
|
783
1006
|
"border": {
|
|
784
1007
|
"default": "#e9ecef",
|
|
@@ -871,6 +1094,15 @@
|
|
|
871
1094
|
"breadcrumb": "400 0.75rem/1.125rem 'Inter', sans-serif"
|
|
872
1095
|
},
|
|
873
1096
|
"motion": {
|
|
1097
|
+
"duration": {
|
|
1098
|
+
"normal": "200ms",
|
|
1099
|
+
"fast": "150ms",
|
|
1100
|
+
"slow": "300ms"
|
|
1101
|
+
},
|
|
1102
|
+
"easing": {
|
|
1103
|
+
"easeInOut": "ease-in-out",
|
|
1104
|
+
"easeOut": "ease-out"
|
|
1105
|
+
},
|
|
874
1106
|
"transition": {
|
|
875
1107
|
"fast": "all 150ms ease-out",
|
|
876
1108
|
"normal": "all 200ms ease-in-out",
|