@1money/component-ui 0.0.48 → 0.0.50
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/es/components/Accordion/style/Accordion.css +94 -1
- package/es/components/Alert/style/Alert.css +101 -1
- package/es/components/Button/style/Button.css +178 -1
- package/es/components/Calendar/style/Calendar.css +400 -1
- package/es/components/Carousel/style/Carousel.css +57 -1
- package/es/components/Cell/style/Cell.css +80 -1
- package/es/components/Checkbox/style/Checkbox.css +191 -1
- package/es/components/CoachMark/style/CoachMark.css +156 -1
- package/es/components/Copy/style/Clipboard.css +45 -1
- package/es/components/Copy/style/Copy.css +48 -1
- package/es/components/Dialog/style/Dialog.css +204 -1
- package/es/components/Divider/style/Divider.css +128 -1
- package/es/components/Drawer/style/Drawer.css +145 -1
- package/es/components/Dropdown/style/Dropdown.css +48 -1
- package/es/components/Empty/style/Empty.css +58 -1
- package/es/components/Flex/style/Flex.css +71 -1
- package/es/components/Grid/style/Grid.css +952 -1
- package/es/components/Icons/style/Icons.css +81 -1
- package/es/components/Input/Amount/style/Amount.css +103 -1
- package/es/components/Input/FieldShell/FieldShell.css +76 -1
- package/es/components/Input/Input/Input.css +124 -1
- package/es/components/Input/OTP/OTP.css +79 -1
- package/es/components/Input/TextArea/TextArea.css +93 -1
- package/es/components/Input/Trade/Trade.css +192 -1
- package/es/components/Link/style/Link.css +70 -1
- package/es/components/Navigation/style/Nav.css +158 -1
- package/es/components/Navigation/style/Navigation.css +373 -1
- package/es/components/Navigation/style/NavigationStepper.css +97 -1
- package/es/components/Notification/NotificationStatic.js +22 -22
- package/es/components/Notification/style/Notification.css +170 -1
- package/es/components/Pagination/style/Pagination.css +89 -1
- package/es/components/Popconfirm/style/Popconfirm.css +137 -1
- package/es/components/ProForm/ProForm.js +38 -38
- package/es/components/ProForm/ProFormDependency.js +5 -5
- package/es/components/ProForm/Submitter.js +4 -4
- package/es/components/ProForm/core/hooks/useForm.js +101 -101
- package/es/components/ProForm/core/useFormItem.js +5 -5
- package/es/components/ProForm/hooks/useFieldRequest.js +12 -12
- package/es/components/ProForm/layouts/useOverlayForm.js +5 -5
- package/es/components/ProForm/style/ProForm.css +168 -1
- package/es/components/Progress/style/Progress.css +103 -1
- package/es/components/Radio/style/Radio.css +362 -1
- package/es/components/Segment/style/Segment.css +79 -1
- package/es/components/Select/style/Select.css +468 -1
- package/es/components/Skeleton/style/Skeleton.css +54 -1
- package/es/components/Slider/style/Slider.css +161 -1
- package/es/components/Space/style/Space.css +47 -1
- package/es/components/Spinner/Spinner.js +7 -7
- package/es/components/Spinner/style/Spinner.css +99 -1
- package/es/components/Step/style/Step.css +107 -1
- package/es/components/Switch/style/Switch.css +102 -1
- package/es/components/Table/style/Table.css +370 -1
- package/es/components/Tabs/style/Tabs.css +118 -1
- package/es/components/Tag/style/Tag.css +87 -1
- package/es/components/Tooltip/style/Tooltip.css +98 -1
- package/es/components/Trigger/style/Trigger.css +35 -1
- package/es/components/Typography/style/Typography.css +444 -1
- package/es/components/Upload/style/Upload.css +55 -1
- package/es/components/Upload/style/UploadFileBar.css +88 -1
- package/es/components/VirtualList/style/VirtualList.css +25 -1
- package/es/index.css +1 -1
- package/es/stories/docs/storybook-docs.css +323 -1
- package/es/styles/index.css +5328 -1
- package/lib/components/Accordion/style/Accordion.css +94 -1
- package/lib/components/Alert/style/Alert.css +101 -1
- package/lib/components/Button/style/Button.css +178 -1
- package/lib/components/Calendar/style/Calendar.css +400 -1
- package/lib/components/Carousel/style/Carousel.css +57 -1
- package/lib/components/Cell/style/Cell.css +80 -1
- package/lib/components/Checkbox/style/Checkbox.css +191 -1
- package/lib/components/CoachMark/style/CoachMark.css +156 -1
- package/lib/components/Copy/style/Clipboard.css +45 -1
- package/lib/components/Copy/style/Copy.css +48 -1
- package/lib/components/Dialog/style/Dialog.css +204 -1
- package/lib/components/Divider/style/Divider.css +128 -1
- package/lib/components/Drawer/style/Drawer.css +145 -1
- package/lib/components/Dropdown/style/Dropdown.css +48 -1
- package/lib/components/Empty/style/Empty.css +58 -1
- package/lib/components/Flex/style/Flex.css +71 -1
- package/lib/components/Grid/style/Grid.css +952 -1
- package/lib/components/Icons/style/Icons.css +81 -1
- package/lib/components/Input/Amount/style/Amount.css +103 -1
- package/lib/components/Input/FieldShell/FieldShell.css +76 -1
- package/lib/components/Input/Input/Input.css +124 -1
- package/lib/components/Input/OTP/OTP.css +79 -1
- package/lib/components/Input/TextArea/TextArea.css +93 -1
- package/lib/components/Input/Trade/Trade.css +192 -1
- package/lib/components/Link/style/Link.css +70 -1
- package/lib/components/Navigation/style/Nav.css +158 -1
- package/lib/components/Navigation/style/Navigation.css +373 -1
- package/lib/components/Navigation/style/NavigationStepper.css +97 -1
- package/lib/components/Notification/NotificationStatic.js +22 -22
- package/lib/components/Notification/style/Notification.css +170 -1
- package/lib/components/Pagination/style/Pagination.css +89 -1
- package/lib/components/Popconfirm/style/Popconfirm.css +137 -1
- package/lib/components/ProForm/ProForm.js +38 -38
- package/lib/components/ProForm/ProFormDependency.js +5 -5
- package/lib/components/ProForm/Submitter.js +4 -4
- package/lib/components/ProForm/core/hooks/useForm.js +101 -101
- package/lib/components/ProForm/core/useFormItem.js +5 -5
- package/lib/components/ProForm/hooks/useFieldRequest.js +12 -12
- package/lib/components/ProForm/layouts/useOverlayForm.js +5 -5
- package/lib/components/ProForm/style/ProForm.css +168 -1
- package/lib/components/Progress/style/Progress.css +103 -1
- package/lib/components/Radio/style/Radio.css +362 -1
- package/lib/components/Segment/style/Segment.css +79 -1
- package/lib/components/Select/style/Select.css +468 -1
- package/lib/components/Skeleton/style/Skeleton.css +54 -1
- package/lib/components/Slider/style/Slider.css +161 -1
- package/lib/components/Space/style/Space.css +47 -1
- package/lib/components/Spinner/Spinner.js +7 -7
- package/lib/components/Spinner/style/Spinner.css +99 -1
- package/lib/components/Step/style/Step.css +107 -1
- package/lib/components/Switch/style/Switch.css +102 -1
- package/lib/components/Table/style/Table.css +370 -1
- package/lib/components/Tabs/style/Tabs.css +118 -1
- package/lib/components/Tag/style/Tag.css +87 -1
- package/lib/components/Tooltip/style/Tooltip.css +98 -1
- package/lib/components/Trigger/style/Trigger.css +35 -1
- package/lib/components/Typography/style/Typography.css +444 -1
- package/lib/components/Upload/style/Upload.css +55 -1
- package/lib/components/Upload/style/UploadFileBar.css +88 -1
- package/lib/components/VirtualList/style/VirtualList.css +25 -1
- package/lib/index.css +1 -1
- package/lib/stories/docs/storybook-docs.css +323 -1
- package/lib/styles/index.css +5328 -1
- package/package.json +65 -34
|
@@ -1 +1,373 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the spacing value for a given token key.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} $key - The spacing token key (e.g., '100', '200').
|
|
5
|
+
* @return {length|null} The computed spacing value or null if the key is invalid.
|
|
6
|
+
* @example
|
|
7
|
+
* .element {
|
|
8
|
+
* padding: om-spacing-token('200'); // Returns 8px if $om-sys-spacing-unit is 4px
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Computes the spacing value based on a token key or a direct length value.
|
|
13
|
+
*
|
|
14
|
+
* @param {string|length} $value - The spacing token key (e.g., '100') or a direct length value (e.g., '16px').
|
|
15
|
+
* @return {length} The computed spacing value.
|
|
16
|
+
* @example
|
|
17
|
+
* .element {
|
|
18
|
+
* margin: om-spacing-value('300'); // Returns 12px if $om-sys-spacing-unit is 4px
|
|
19
|
+
* padding: om-spacing-value(16px); // Returns 16px
|
|
20
|
+
* gap: om-spacing-value(2); // Returns 8px if $om-sys-spacing-unit is 4px
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
.om-component-ui-navigation {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-600, 24px);
|
|
27
|
+
width: 280px;
|
|
28
|
+
height: 100vh;
|
|
29
|
+
padding: var(--om-spacing-1000, 40px) var(--om-spacing-400, 16px) var(--om-spacing-600, 24px);
|
|
30
|
+
background-color: var(--om-bg-default, #fff);
|
|
31
|
+
border-right: 1px solid var(--om-border-neutral, #e3e4e4);
|
|
32
|
+
transition: width 150ms ease-in-out;
|
|
33
|
+
}
|
|
34
|
+
.om-component-ui-navigation-header {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding: 0 var(--om-spacing-200, 8px);
|
|
38
|
+
}
|
|
39
|
+
.om-component-ui-navigation-selector {
|
|
40
|
+
display: flex;
|
|
41
|
+
gap: var(--om-spacing-600, 24px);
|
|
42
|
+
align-items: center;
|
|
43
|
+
height: 40px;
|
|
44
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-300, 12px);
|
|
45
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
46
|
+
border-radius: var(--om-radius-300, 12px);
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
.om-component-ui-navigation-nav {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex: 1;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: var(--om-spacing-600, 24px);
|
|
54
|
+
min-height: 0;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
overflow-y: auto;
|
|
57
|
+
}
|
|
58
|
+
.om-component-ui-navigation-menu {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: var(--om-spacing-100, 4px);
|
|
62
|
+
}
|
|
63
|
+
.om-component-ui-navigation-item-wrapper {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: var(--om-spacing-100, 4px);
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
.om-component-ui-navigation-item {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
width: 100%;
|
|
73
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-400, 16px);
|
|
74
|
+
color: var(--om-text-default-secondary, #404042);
|
|
75
|
+
background-color: transparent;
|
|
76
|
+
border: none;
|
|
77
|
+
border-radius: var(--om-radius-300, 12px);
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
.om-component-ui-navigation-item-content {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex: 1;
|
|
83
|
+
gap: var(--om-spacing-200, 8px);
|
|
84
|
+
align-items: center;
|
|
85
|
+
min-width: 0;
|
|
86
|
+
}
|
|
87
|
+
.om-component-ui-navigation-item:hover:not(:disabled) {
|
|
88
|
+
background-color: var(--om-bg-default-hover, #f0f0f0);
|
|
89
|
+
}
|
|
90
|
+
.om-component-ui-navigation-item-icon {
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
color: var(--om-icon-default-secondary, #404042);
|
|
96
|
+
}
|
|
97
|
+
.om-component-ui-navigation-item-label {
|
|
98
|
+
flex: 1;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
text-align: left;
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
}
|
|
104
|
+
.om-component-ui-navigation-item .om-component-ui-typography {
|
|
105
|
+
color: inherit;
|
|
106
|
+
}
|
|
107
|
+
.om-component-ui-navigation-item-suffix {
|
|
108
|
+
flex-shrink: 0;
|
|
109
|
+
}
|
|
110
|
+
.om-component-ui-navigation-item-link {
|
|
111
|
+
display: flex;
|
|
112
|
+
color: inherit;
|
|
113
|
+
text-decoration: none;
|
|
114
|
+
}
|
|
115
|
+
.om-component-ui-navigation-item-arrow {
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
flex-shrink: 0;
|
|
118
|
+
align-items: center;
|
|
119
|
+
color: var(--om-icon-default-secondary, #404042);
|
|
120
|
+
transition: transform 200ms ease-in-out;
|
|
121
|
+
}
|
|
122
|
+
.om-component-ui-navigation-item-arrow-open {
|
|
123
|
+
transform: rotate(-180deg);
|
|
124
|
+
}
|
|
125
|
+
.om-component-ui-navigation-item-expandable .om-component-ui-navigation-item-content {
|
|
126
|
+
flex: 1;
|
|
127
|
+
}
|
|
128
|
+
.om-component-ui-navigation-item-active {
|
|
129
|
+
color: var(--om-text-default, #131313);
|
|
130
|
+
background-color: var(--om-bg-brand-tertiary, #edf2f9);
|
|
131
|
+
}
|
|
132
|
+
.om-component-ui-navigation-item-active .om-component-ui-navigation-item-icon {
|
|
133
|
+
color: var(--om-icon-default, #131313);
|
|
134
|
+
}
|
|
135
|
+
.om-component-ui-navigation-item-active:hover:not(:disabled) {
|
|
136
|
+
background-color: var(--om-bg-brand-tertiary-hover, #dde6f4);
|
|
137
|
+
}
|
|
138
|
+
.om-component-ui-navigation-item-disabled {
|
|
139
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
}
|
|
142
|
+
.om-component-ui-navigation-item-disabled .om-component-ui-navigation-item-icon {
|
|
143
|
+
color: var(--om-icon-disabled, #d1d2d2);
|
|
144
|
+
}
|
|
145
|
+
.om-component-ui-navigation-item-disabled .om-component-ui-navigation-item-arrow {
|
|
146
|
+
color: var(--om-icon-disabled, #d1d2d2);
|
|
147
|
+
}
|
|
148
|
+
.om-component-ui-navigation-item-disabled:hover {
|
|
149
|
+
background-color: transparent;
|
|
150
|
+
}
|
|
151
|
+
.om-component-ui-navigation-submenu {
|
|
152
|
+
display: grid;
|
|
153
|
+
grid-template-rows: 0fr;
|
|
154
|
+
transition: grid-template-rows 200ms ease-in-out;
|
|
155
|
+
}
|
|
156
|
+
.om-component-ui-navigation-submenu-open {
|
|
157
|
+
grid-template-rows: 1fr;
|
|
158
|
+
}
|
|
159
|
+
.om-component-ui-navigation-submenu-inner {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-direction: column;
|
|
162
|
+
gap: var(--om-spacing-100, 4px);
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
}
|
|
165
|
+
.om-component-ui-navigation-submenu-item {
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
width: 100%;
|
|
169
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-400, 16px) var(--om-spacing-200, 8px) var(--om-spacing-1000, 40px);
|
|
170
|
+
color: var(--om-text-default-secondary, #404042);
|
|
171
|
+
background-color: transparent;
|
|
172
|
+
border: none;
|
|
173
|
+
border-radius: var(--om-radius-300, 12px);
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
}
|
|
176
|
+
.om-component-ui-navigation-submenu-item .om-component-ui-typography {
|
|
177
|
+
color: inherit;
|
|
178
|
+
}
|
|
179
|
+
.om-component-ui-navigation-submenu-item:hover:not(:disabled) {
|
|
180
|
+
background-color: var(--om-bg-default-hover, #f0f0f0);
|
|
181
|
+
}
|
|
182
|
+
.om-component-ui-navigation-submenu-item-active {
|
|
183
|
+
color: var(--om-text-default, #131313);
|
|
184
|
+
background-color: var(--om-bg-brand-tertiary, #edf2f9);
|
|
185
|
+
}
|
|
186
|
+
.om-component-ui-navigation-submenu-item-active .om-component-ui-navigation-item-icon {
|
|
187
|
+
color: var(--om-icon-default, #131313);
|
|
188
|
+
}
|
|
189
|
+
.om-component-ui-navigation-submenu-item-active:hover:not(:disabled) {
|
|
190
|
+
background-color: var(--om-bg-brand-tertiary-hover, #dde6f4);
|
|
191
|
+
}
|
|
192
|
+
.om-component-ui-navigation-submenu-item-disabled {
|
|
193
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
194
|
+
cursor: not-allowed;
|
|
195
|
+
}
|
|
196
|
+
.om-component-ui-navigation-submenu-item-disabled .om-component-ui-navigation-item-icon {
|
|
197
|
+
color: var(--om-icon-disabled, #d1d2d2);
|
|
198
|
+
}
|
|
199
|
+
.om-component-ui-navigation-submenu-item-disabled:hover {
|
|
200
|
+
background-color: transparent;
|
|
201
|
+
}
|
|
202
|
+
.om-component-ui-navigation-collapsed-submenu-panel.om-trigger-panel {
|
|
203
|
+
margin-top: -12px;
|
|
204
|
+
padding: 0;
|
|
205
|
+
background-color: transparent;
|
|
206
|
+
border: none;
|
|
207
|
+
border-radius: 0;
|
|
208
|
+
box-shadow: none;
|
|
209
|
+
}
|
|
210
|
+
.om-component-ui-navigation-collapsed-submenu {
|
|
211
|
+
display: flex;
|
|
212
|
+
flex-direction: column;
|
|
213
|
+
min-width: 196px;
|
|
214
|
+
padding: 0;
|
|
215
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
216
|
+
border-radius: var(--om-radius-300, 12px);
|
|
217
|
+
box-shadow: 0 10px 22px 0 rgba(0, 0, 0, 0.1);
|
|
218
|
+
}
|
|
219
|
+
.om-component-ui-navigation-collapsed-submenu-item {
|
|
220
|
+
display: flex;
|
|
221
|
+
gap: var(--om-spacing-200, 8px);
|
|
222
|
+
align-items: center;
|
|
223
|
+
width: 100%;
|
|
224
|
+
padding: var(--om-spacing-300, 12px) var(--om-spacing-300, 12px);
|
|
225
|
+
color: var(--om-text-default-secondary, #404042);
|
|
226
|
+
background-color: transparent;
|
|
227
|
+
border: none;
|
|
228
|
+
border-radius: var(--om-radius-300, 12px);
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
}
|
|
231
|
+
.om-component-ui-navigation-collapsed-submenu-item .om-component-ui-typography {
|
|
232
|
+
color: inherit;
|
|
233
|
+
}
|
|
234
|
+
.om-component-ui-navigation-collapsed-submenu-item:hover:not(:disabled) {
|
|
235
|
+
background-color: var(--om-bg-default-hover, #f0f0f0);
|
|
236
|
+
}
|
|
237
|
+
.om-component-ui-navigation-collapsed-submenu-item-active {
|
|
238
|
+
color: var(--om-text-default, #131313);
|
|
239
|
+
background-color: var(--om-bg-neutral-tertiary, #f0f0f0);
|
|
240
|
+
}
|
|
241
|
+
.om-component-ui-navigation-collapsed-submenu-item-active .om-component-ui-navigation-item-icon {
|
|
242
|
+
color: var(--om-icon-default, #131313);
|
|
243
|
+
}
|
|
244
|
+
.om-component-ui-navigation-collapsed-submenu-item-disabled {
|
|
245
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
246
|
+
cursor: not-allowed;
|
|
247
|
+
}
|
|
248
|
+
.om-component-ui-navigation-collapsed-submenu-item-disabled .om-component-ui-navigation-item-icon {
|
|
249
|
+
color: var(--om-icon-disabled, #d1d2d2);
|
|
250
|
+
}
|
|
251
|
+
.om-component-ui-navigation-collapsed-submenu-item-disabled:hover {
|
|
252
|
+
background-color: transparent;
|
|
253
|
+
}
|
|
254
|
+
.om-component-ui-navigation-collapsed-submenu-divider {
|
|
255
|
+
height: 1px;
|
|
256
|
+
margin: 0 var(--om-spacing-300, 12px);
|
|
257
|
+
background-color: var(--om-border-neutral, #e3e4e4);
|
|
258
|
+
}
|
|
259
|
+
.om-component-ui-navigation-settings {
|
|
260
|
+
display: flex;
|
|
261
|
+
flex-direction: column;
|
|
262
|
+
gap: var(--om-spacing-100, 4px);
|
|
263
|
+
margin-top: auto;
|
|
264
|
+
overflow: clip;
|
|
265
|
+
}
|
|
266
|
+
.om-component-ui-navigation-divider {
|
|
267
|
+
height: 1px;
|
|
268
|
+
margin: 0 var(--om-spacing-300, 12px);
|
|
269
|
+
background-color: var(--om-border-neutral, #e3e4e4);
|
|
270
|
+
}
|
|
271
|
+
.om-component-ui-navigation-collapse-toggle {
|
|
272
|
+
display: inline-flex;
|
|
273
|
+
align-items: center;
|
|
274
|
+
justify-content: center;
|
|
275
|
+
width: 36px;
|
|
276
|
+
height: 36px;
|
|
277
|
+
padding: var(--om-spacing-200, 8px);
|
|
278
|
+
color: var(--om-icon-default-secondary, #404042);
|
|
279
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
280
|
+
border: none;
|
|
281
|
+
border-radius: var(--om-radius-300, 12px);
|
|
282
|
+
cursor: pointer;
|
|
283
|
+
}
|
|
284
|
+
.om-component-ui-navigation-collapse-toggle:hover {
|
|
285
|
+
background-color: var(--om-bg-default-secondary-hover, #e3e4e4);
|
|
286
|
+
}
|
|
287
|
+
.om-component-ui-navigation-collapsed-item {
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
gap: var(--om-spacing-100, 4px);
|
|
291
|
+
align-items: center;
|
|
292
|
+
justify-content: center;
|
|
293
|
+
width: 100%;
|
|
294
|
+
padding: var(--om-spacing-200, 8px);
|
|
295
|
+
color: var(--om-text-default-secondary, #404042);
|
|
296
|
+
font-size: inherit;
|
|
297
|
+
background-color: transparent;
|
|
298
|
+
border: none;
|
|
299
|
+
border-radius: var(--om-radius-300, 12px);
|
|
300
|
+
cursor: pointer;
|
|
301
|
+
}
|
|
302
|
+
.om-component-ui-navigation-collapsed-item .om-component-ui-typography {
|
|
303
|
+
color: inherit;
|
|
304
|
+
}
|
|
305
|
+
.om-component-ui-navigation-collapsed-item:hover:not(:disabled) {
|
|
306
|
+
background-color: var(--om-bg-neutral-tertiary, #f0f0f0);
|
|
307
|
+
}
|
|
308
|
+
.om-component-ui-navigation-collapsed-item-icon {
|
|
309
|
+
display: inline-flex;
|
|
310
|
+
flex-shrink: 0;
|
|
311
|
+
align-items: center;
|
|
312
|
+
justify-content: center;
|
|
313
|
+
color: var(--om-icon-default-secondary, #404042);
|
|
314
|
+
}
|
|
315
|
+
.om-component-ui-navigation-collapsed-item-label {
|
|
316
|
+
width: 100%;
|
|
317
|
+
text-align: center;
|
|
318
|
+
overflow-wrap: break-word;
|
|
319
|
+
}
|
|
320
|
+
.om-component-ui-navigation-collapsed-item-active {
|
|
321
|
+
color: var(--om-text-default, #131313);
|
|
322
|
+
background-color: var(--om-bg-brand-tertiary, #edf2f9);
|
|
323
|
+
}
|
|
324
|
+
.om-component-ui-navigation-collapsed-item-active .om-component-ui-navigation-collapsed-item-icon {
|
|
325
|
+
color: var(--om-icon-default, #131313);
|
|
326
|
+
}
|
|
327
|
+
.om-component-ui-navigation-collapsed-item-active:hover:not(:disabled) {
|
|
328
|
+
background-color: var(--om-bg-brand-tertiary-hover, #dde6f4);
|
|
329
|
+
}
|
|
330
|
+
.om-component-ui-navigation-collapsed-item-disabled {
|
|
331
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
332
|
+
cursor: not-allowed;
|
|
333
|
+
}
|
|
334
|
+
.om-component-ui-navigation-collapsed-item-disabled .om-component-ui-navigation-collapsed-item-icon {
|
|
335
|
+
color: var(--om-icon-disabled, #d1d2d2);
|
|
336
|
+
}
|
|
337
|
+
.om-component-ui-navigation-collapsed-item-disabled:hover {
|
|
338
|
+
background-color: transparent;
|
|
339
|
+
}
|
|
340
|
+
.om-component-ui-navigation-collapsed {
|
|
341
|
+
align-items: center;
|
|
342
|
+
width: 84px;
|
|
343
|
+
padding: var(--om-spacing-1000, 40px) var(--om-spacing-100, 4px) var(--om-spacing-600, 24px);
|
|
344
|
+
}
|
|
345
|
+
.om-component-ui-navigation-collapsed .om-component-ui-navigation-header {
|
|
346
|
+
justify-content: center;
|
|
347
|
+
padding: 0;
|
|
348
|
+
}
|
|
349
|
+
.om-component-ui-navigation-collapsed .om-component-ui-navigation-selector {
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
gap: var(--om-spacing-100, 4px);
|
|
352
|
+
align-items: center;
|
|
353
|
+
justify-content: center;
|
|
354
|
+
height: auto;
|
|
355
|
+
padding: var(--om-spacing-200, 8px);
|
|
356
|
+
}
|
|
357
|
+
.om-component-ui-navigation-collapsed .om-component-ui-navigation-nav {
|
|
358
|
+
align-items: center;
|
|
359
|
+
width: 100%;
|
|
360
|
+
}
|
|
361
|
+
.om-component-ui-navigation-collapsed .om-component-ui-navigation-menu {
|
|
362
|
+
gap: var(--om-spacing-200, 8px);
|
|
363
|
+
align-items: center;
|
|
364
|
+
width: 100%;
|
|
365
|
+
}
|
|
366
|
+
.om-component-ui-navigation-collapsed .om-component-ui-navigation-settings {
|
|
367
|
+
gap: var(--om-spacing-200, 8px);
|
|
368
|
+
align-items: center;
|
|
369
|
+
width: 100%;
|
|
370
|
+
}
|
|
371
|
+
.om-component-ui-navigation-collapsed .om-component-ui-navigation-divider {
|
|
372
|
+
margin: 0 var(--om-spacing-100, 4px);
|
|
373
|
+
}
|
|
@@ -1 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the spacing value for a given token key.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} $key - The spacing token key (e.g., '100', '200').
|
|
5
|
+
* @return {length|null} The computed spacing value or null if the key is invalid.
|
|
6
|
+
* @example
|
|
7
|
+
* .element {
|
|
8
|
+
* padding: om-spacing-token('200'); // Returns 8px if $om-sys-spacing-unit is 4px
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Computes the spacing value based on a token key or a direct length value.
|
|
13
|
+
*
|
|
14
|
+
* @param {string|length} $value - The spacing token key (e.g., '100') or a direct length value (e.g., '16px').
|
|
15
|
+
* @return {length} The computed spacing value.
|
|
16
|
+
* @example
|
|
17
|
+
* .element {
|
|
18
|
+
* margin: om-spacing-value('300'); // Returns 12px if $om-sys-spacing-unit is 4px
|
|
19
|
+
* padding: om-spacing-value(16px); // Returns 16px
|
|
20
|
+
* gap: om-spacing-value(2); // Returns 8px if $om-sys-spacing-unit is 4px
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
.om-component-ui-navigation-stepper {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
width: 280px;
|
|
27
|
+
height: 100vh;
|
|
28
|
+
padding: var(--om-spacing-1000, 40px) var(--om-spacing-400, 16px) var(--om-spacing-600, 24px);
|
|
29
|
+
color: var(--om-text-default, #131313);
|
|
30
|
+
background-color: var(--om-bg-default, #fff);
|
|
31
|
+
border-right: 1px solid var(--om-border-neutral, #e3e4e4);
|
|
32
|
+
}
|
|
33
|
+
.om-component-ui-navigation-stepper-header {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
padding: 0 var(--om-spacing-200, 8px);
|
|
37
|
+
}
|
|
38
|
+
.om-component-ui-navigation-stepper-header-logo {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
padding: 0;
|
|
41
|
+
color: inherit;
|
|
42
|
+
background: transparent;
|
|
43
|
+
border: none;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
.om-component-ui-navigation-stepper-header-logo:focus-visible {
|
|
47
|
+
outline: 2px solid var(--om-border-brand, #073387);
|
|
48
|
+
outline-offset: 2px;
|
|
49
|
+
}
|
|
50
|
+
.om-component-ui-navigation-stepper-steps {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: var(--om-spacing-200, 8px);
|
|
54
|
+
width: 100%;
|
|
55
|
+
margin: var(--om-spacing-800, 32px) 0 0;
|
|
56
|
+
padding: 0;
|
|
57
|
+
list-style: none;
|
|
58
|
+
}
|
|
59
|
+
.om-component-ui-navigation-stepper-steps .om-component-ui-navigation-stepper-step {
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
width: 100%;
|
|
64
|
+
padding: var(--om-spacing-400, 16px) var(--om-spacing-300, 12px);
|
|
65
|
+
color: var(--om-text-default-secondary, #404042);
|
|
66
|
+
background-color: transparent;
|
|
67
|
+
border-radius: var(--om-radius-300, 12px);
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
.om-component-ui-navigation-stepper-steps .om-component-ui-navigation-stepper-step-label {
|
|
71
|
+
flex: 1;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
font-size: 16px;
|
|
74
|
+
line-height: 18px;
|
|
75
|
+
}
|
|
76
|
+
.om-component-ui-navigation-stepper-steps .om-component-ui-navigation-stepper-step-active {
|
|
77
|
+
color: var(--om-text-default, #131313);
|
|
78
|
+
background-color: var(--om-bg-brand-tertiary, #edf2f9);
|
|
79
|
+
}
|
|
80
|
+
.om-component-ui-navigation-stepper-steps .om-component-ui-navigation-stepper-step-done {
|
|
81
|
+
color: var(--om-text-default, #131313);
|
|
82
|
+
}
|
|
83
|
+
.om-component-ui-navigation-stepper-steps .om-component-ui-navigation-stepper-step-done-active {
|
|
84
|
+
color: var(--om-text-default, #131313);
|
|
85
|
+
background-color: var(--om-bg-brand-tertiary, #edf2f9);
|
|
86
|
+
}
|
|
87
|
+
.om-component-ui-navigation-stepper-steps .om-component-ui-navigation-stepper-step-disabled {
|
|
88
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
}
|
|
91
|
+
.om-component-ui-navigation-stepper-footer {
|
|
92
|
+
margin-top: auto;
|
|
93
|
+
color: var(--om-text-default-secondary, #404042);
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
font-size: 12px;
|
|
96
|
+
line-height: 13px;
|
|
97
|
+
}
|