@omni-design/components 0.10.0 → 0.12.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/.claude/commands/ScanComponents.md +1 -1
- package/.claude/commands/ShareComponent.md +1 -1
- package/CLAUDE.md +5 -3
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/Avatar/AvatarGlyph.d.ts +5 -0
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Button/Button.d.ts +3 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +3 -2
- package/dist/types/components/Chip/Chip.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +4 -0
- package/dist/types/components/IconBadge/IconBadge.d.ts +1 -1
- package/dist/types/components/Loader/Loader.d.ts +66 -0
- package/dist/types/components/Loader/index.d.ts +1 -0
- package/dist/types/components/MiniSwatch/MiniSwatch.d.ts +7 -0
- package/dist/types/components/MiniSwatch/index.d.ts +1 -0
- package/dist/types/components/Pagination/Pagination.d.ts +3 -1
- package/dist/types/components/Radio/Radio.d.ts +6 -2
- package/dist/types/components/Rating/Rating.d.ts +3 -1
- package/dist/types/components/Slider/Slider.d.ts +9 -3
- package/dist/types/components/Stepper/Stepper.d.ts +3 -1
- package/dist/types/components/Swatch/Swatch.d.ts +14 -0
- package/dist/types/components/Swatch/index.d.ts +1 -0
- package/dist/types/components/Switch/Switch.d.ts +24 -8
- package/dist/types/components/Switch/index.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +17 -1
- package/dist/types/components/ToggleButton/index.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +26 -42
- package/dist/types/components/index.d.ts +5 -0
- package/dist/types/docs/DocPanels.d.ts +39 -0
- package/dist/types/docs/components.d.ts +212 -0
- package/dist/types/docs/componentsData.d.ts +587 -0
- package/dist/types/docs/componentsForms.d.ts +597 -0
- package/dist/types/docs/componentsNav.d.ts +420 -0
- package/dist/types/docs/componentsOverlays.d.ts +379 -0
- package/dist/types/docs/componentsRest.d.ts +158 -0
- package/dist/types/docs/componentsSurfaces.d.ts +339 -0
- package/dist/types/docs/docsLink.d.ts +32 -0
- package/dist/types/docs/examples.d.ts +37 -0
- package/dist/types/docs/foundations.d.ts +28 -0
- package/dist/types/docs/index.d.ts +5 -0
- package/docs/components.md +71 -55
- package/package.json +1 -1
- package/public/styles/Dark-Mode.css +12056 -13009
- package/public/styles/Light-Mode.css +11240 -12370
- package/public/styles/base.css +364 -182
- package/public/styles/core.css +480 -123
- package/public/styles/foundation.css +124 -53
- package/public/styles/styles.css +5 -5
- package/public/styles/theme.json +2 -2
- package/public/styles/typography-tokens.css +686 -158
|
@@ -1,72 +1,143 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:GRAD,ROND,opsz,slnt,wdth,wght@0..100,0..100,6..144,-10..0,25..151,1..1000&display=swap');
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400&display=swap');
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@640&display=swap');
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
|
|
5
|
+
|
|
1
6
|
:root {
|
|
2
7
|
|
|
3
8
|
/* Button */
|
|
4
|
-
--Button-Radius:
|
|
5
|
-
--Button-
|
|
6
|
-
--Button-
|
|
9
|
+
--Button-Radius: 2px;
|
|
10
|
+
--Sm-Button-Radius: 2px;
|
|
11
|
+
--Lg-Button-Radius: 2px;
|
|
12
|
+
--Button-Inner-Focus-Radius: 1px;
|
|
13
|
+
--Sm-Button-Inner-Focus-Radius: 1px;
|
|
14
|
+
--Lg-Button-Inner-Focus-Radius: 1px;
|
|
15
|
+
--Button-Focus-Radius: 5px;
|
|
16
|
+
--Sm-Button-Focus-Radius: 5px;
|
|
17
|
+
--Lg-Button-Focus-Radius: 5px;
|
|
18
|
+
--Button-Icon-Radius: 32px;
|
|
19
|
+
--Sm-Button-Icon-Radius: 12px;
|
|
20
|
+
--Lg-Button-Icon-Radius: 28px;
|
|
21
|
+
--Button-Icon-Inner-Radius: 31px;
|
|
22
|
+
--Sm-Button-Icon-Inner-Radius: 11px;
|
|
23
|
+
--Lg-Button-Icon-Inner-Radius: 27px;
|
|
24
|
+
--Button-Icon-Focus-Radius: 35px;
|
|
25
|
+
--Sm-Button-Icon-Focus-Radius: 15px;
|
|
26
|
+
--Lg-Button-Icon-Focus-Radius: 31px;
|
|
27
|
+
--Button-Height: 32px;
|
|
7
28
|
--Small-Button-Height: 24px;
|
|
8
29
|
--Large-Button-Height: 56px;
|
|
9
30
|
--Button-Min-Width: 60px;
|
|
31
|
+
--Lg-Button-Min-Width: 100px;
|
|
10
32
|
--Button-Bevel: 0;
|
|
11
33
|
--Button-Bevel-Px: 0px;
|
|
12
34
|
--Button-Bevel-Opacity: 0.5;
|
|
13
|
-
|
|
35
|
+
/* Bevel geometry — the literal box-shadow numbers, same values the Figma
|
|
36
|
+
Platform/Components collections carry (there as bare numbers, here as px).
|
|
37
|
+
Small and large don't vary by platform, so they live here; medium's live
|
|
38
|
+
in core.css beside the platform button heights they're derived from. */
|
|
39
|
+
--Sm-Button-Highlight-Offset-x: 0px;
|
|
40
|
+
--Sm-Button-Highlight-Offset-y: 0px;
|
|
41
|
+
--Sm-Button-Highlight-Blur-Radius: 0px;
|
|
42
|
+
--Sm-Button-Highlight-Spread: 0px;
|
|
43
|
+
--Sm-Button-Lowlight-Offset-x: 0px;
|
|
44
|
+
--Sm-Button-Lowlight-Offset-y: 0px;
|
|
45
|
+
--Sm-Button-Lowlight-Blur-Radius: 0px;
|
|
46
|
+
--Sm-Button-Lowlight-Spread: 0px;
|
|
47
|
+
--Lg-Button-Highlight-Offset-x: 0px;
|
|
48
|
+
--Lg-Button-Highlight-Offset-y: 0px;
|
|
49
|
+
--Lg-Button-Highlight-Blur-Radius: 0px;
|
|
50
|
+
--Lg-Button-Highlight-Spread: 0px;
|
|
51
|
+
--Lg-Button-Lowlight-Offset-x: 0px;
|
|
52
|
+
--Lg-Button-Lowlight-Offset-y: 0px;
|
|
53
|
+
--Lg-Button-Lowlight-Blur-Radius: 0px;
|
|
54
|
+
--Lg-Button-Lowlight-Spread: 0px;
|
|
14
55
|
--Style-Border-Radius: var(--Button-Radius);
|
|
15
56
|
|
|
16
57
|
/* Card */
|
|
17
|
-
--
|
|
18
|
-
--Card-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
--
|
|
26
|
-
--
|
|
58
|
+
--Accordion-Radius: 2px;
|
|
59
|
+
--Card-Radius: 18px;
|
|
60
|
+
--Sm-Card-Radius: 14px;
|
|
61
|
+
--Lg-Card-Radius: 23px;
|
|
62
|
+
--Card-Inner-Radius: 17px;
|
|
63
|
+
--Sm-Card-Inner-Radius: 13px;
|
|
64
|
+
--Lg-Card-Inner-Radius: 22px;
|
|
65
|
+
--Card-Focus-Radius: 21px;
|
|
66
|
+
--List-Item-Radius: 2px;
|
|
67
|
+
--List-Item-Focus-Radius: 0px;
|
|
68
|
+
--List-Item-Padding: 12px;
|
|
69
|
+
--List-Item-Gap: 12px;
|
|
70
|
+
--Sm-List-Item-Padding: 8px;
|
|
71
|
+
--Lg-List-Item-Padding: 16px;
|
|
72
|
+
--Sm-List-Item-Gap: 8px;
|
|
73
|
+
--Lg-List-Item-Gap: 16px;
|
|
74
|
+
--Sm-List-Item-Radius: 2px;
|
|
75
|
+
--Lg-List-Item-Radius: 2px;
|
|
76
|
+
--Sm-List-Item-Focus-Radius: 0px;
|
|
77
|
+
--Lg-List-Item-Focus-Radius: 0px;
|
|
78
|
+
--List-Item-Image-Radius: 1px;
|
|
79
|
+
--List-Item-Default-Image-Width: 64px;
|
|
80
|
+
--Sm-List-Item-Default-Image-Width: 48px;
|
|
81
|
+
--Lg-List-Item-Default-Image-Width: 80px;
|
|
82
|
+
--Sm-Card-Focus-Radius: 17px;
|
|
83
|
+
--Lg-Card-Focus-Radius: 26px;
|
|
27
84
|
--Card-Padding: 16px;
|
|
85
|
+
--Sm-Card-Padding: 12px;
|
|
86
|
+
--Lg-Card-Padding: 20px;
|
|
87
|
+
|
|
88
|
+
/* Modal */
|
|
89
|
+
--Modal-Padding: 24px;
|
|
90
|
+
--Modal-Radius: 18px;
|
|
91
|
+
--Dropdown-Frame-Radius: 2px;
|
|
92
|
+
--Menu-Item-Radius: 0px;
|
|
93
|
+
--Menu-Focus-Radius: 0px;
|
|
94
|
+
--Modal-Inner-Radius: 17px;
|
|
95
|
+
--Modal-Focus-Radius: 21px;
|
|
96
|
+
|
|
97
|
+
/* Input */
|
|
98
|
+
--Input-Radius: 2px;
|
|
99
|
+
--Sm-Input-Radius: 1px;
|
|
100
|
+
--Lg-Input-Radius: 3px;
|
|
101
|
+
--Input-Inner-Focus-Radius: 1px;
|
|
102
|
+
--Input-Focus-Radius: 5px;
|
|
103
|
+
--Input-Swatch-Radius: 2px;
|
|
104
|
+
--Sm-Input-Swatch-Radius: 1px;
|
|
105
|
+
--Lg-Input-Swatch-Radius: 3px;
|
|
106
|
+
|
|
107
|
+
/* Checkbox — per-size corner radius = 20% of the box (16/20/24px).
|
|
108
|
+
Border is 2px (set in the lib component). */
|
|
109
|
+
--Sm-Checkbox-Radius: 3.2px;
|
|
110
|
+
--Checkbox-Radius: 4px;
|
|
111
|
+
--Lg-Checkbox-Radius: 4.8px;
|
|
28
112
|
--Style-Gradient-Color-1: var(--Buttons-Primary-Button);
|
|
29
113
|
--Style-Gradient-Color-2: var(--Buttons-Primary-Button);
|
|
30
114
|
--Style-Gradient-Angle: 0;
|
|
31
115
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
--Sizing-
|
|
38
|
-
--Sizing-
|
|
39
|
-
--Sizing-
|
|
40
|
-
--Sizing-
|
|
41
|
-
--Sizing-
|
|
42
|
-
--Sizing-
|
|
43
|
-
--Sizing-
|
|
44
|
-
--Sizing-
|
|
45
|
-
--Sizing-
|
|
46
|
-
--Sizing-
|
|
47
|
-
--Sizing-
|
|
48
|
-
--Sizing-
|
|
49
|
-
--Sizing-
|
|
50
|
-
--Sizing-
|
|
51
|
-
--Sizing-
|
|
52
|
-
--Sizing-
|
|
53
|
-
--Sizing-
|
|
54
|
-
--Sizing-
|
|
55
|
-
--Sizing-
|
|
56
|
-
--Sizing-
|
|
57
|
-
--Sizing-
|
|
58
|
-
--Sizing-30: 240px;
|
|
59
|
-
|
|
60
|
-
/* Negative sizing scale. Used by overlap/inset/negative-margin rules
|
|
61
|
-
(e.g. pulling a card edge into a stage's padding, hanging a label
|
|
62
|
-
into a gutter). Sizing-Negative-Quarter (-2px) is kept for the
|
|
63
|
-
hairline-overlap case even though it's not in the Figma variable
|
|
64
|
-
set — removing it would break consumers; adding it to Figma later
|
|
65
|
-
is a no-op. */
|
|
66
|
-
--Sizing-Negative-Quarter: -2px;
|
|
67
|
-
--Sizing-Negative-Half: -4px;
|
|
68
|
-
--Sizing-Negative-1: -8px;
|
|
69
|
-
--Sizing-Negative-1-and-Half:-12px;
|
|
70
|
-
--Sizing-Negative-2: -16px;
|
|
116
|
+
--Sizing-Quarter: 2px;
|
|
117
|
+
--Sizing-Half: 4px;
|
|
118
|
+
--Sizing-1: 8px;
|
|
119
|
+
--Sizing-1-and-Half: 12px;
|
|
120
|
+
--Sizing-2: 16px;
|
|
121
|
+
--Sizing-2-and-Half: 20px;
|
|
122
|
+
--Sizing-3: 24px;
|
|
123
|
+
--Sizing-4: 32px;
|
|
124
|
+
--Sizing-5: 40px;
|
|
125
|
+
--Sizing-6: 48px;
|
|
126
|
+
--Sizing-7: 56px;
|
|
127
|
+
--Sizing-8: 64px;
|
|
128
|
+
--Sizing-9: 72px;
|
|
129
|
+
--Sizing-10: 80px;
|
|
130
|
+
--Sizing-11: 88px;
|
|
131
|
+
--Sizing-12: 96px;
|
|
132
|
+
--Sizing-13: 104px;
|
|
133
|
+
--Sizing-14: 112px;
|
|
134
|
+
--Sizing-15: 120px;
|
|
135
|
+
--Sizing-16: 128px;
|
|
136
|
+
--Sizing-20: 160px;
|
|
137
|
+
--Sizing-30: 240px;
|
|
138
|
+
--Sizing-Negative-Quarter: -2px;
|
|
139
|
+
--Sizing-Negative-Half: -4px;
|
|
140
|
+
--Sizing-Negative-1: -8px;
|
|
141
|
+
--Sizing-Negative-1-and-Half: -12px;
|
|
71
142
|
--Min-Stack-Gap: 0px;
|
|
72
143
|
}
|
package/public/styles/styles.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:GRAD,ROND,opsz,slnt,wdth,wght@0..100,0..100,6..144,-10..0,25..151,1..1000&display=swap');
|
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400&display=swap');
|
|
3
|
+
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@640&display=swap');
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
|
|
5
|
+
|
|
6
6
|
/* Overrides */
|
package/public/styles/theme.json
CHANGED