@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,192 @@
|
|
|
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-input-trade {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-200, 8px);
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
.om-component-ui-input-trade-main {
|
|
30
|
+
padding-bottom: var(--om-spacing-200, 8px);
|
|
31
|
+
border-bottom: 1px solid var(--om-border-default, #d1d2d2);
|
|
32
|
+
transition: border-color 0.2s ease;
|
|
33
|
+
}
|
|
34
|
+
.om-component-ui-input-trade-value-line {
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: var(--om-spacing-200, 8px);
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
.om-component-ui-input-trade-symbol {
|
|
40
|
+
font-size: var(--om-display-lg-font-size);
|
|
41
|
+
font-family: var(--om-display-lg-font-family);
|
|
42
|
+
line-height: var(--om-display-lg-line-height);
|
|
43
|
+
letter-spacing: var(--om-display-lg-letter-spacing);
|
|
44
|
+
font-weight: var(--om-display-lg-font-weight);
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
color: var(--om-text-brand, #073387);
|
|
47
|
+
}
|
|
48
|
+
.om-component-ui-input-trade-input-wrapper {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex: 1 1 auto;
|
|
51
|
+
align-items: center;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
}
|
|
54
|
+
.om-component-ui-input-trade-field {
|
|
55
|
+
font-size: var(--om-display-lg-font-size);
|
|
56
|
+
font-family: var(--om-display-lg-font-family);
|
|
57
|
+
line-height: var(--om-display-lg-line-height);
|
|
58
|
+
letter-spacing: var(--om-display-lg-letter-spacing);
|
|
59
|
+
font-weight: var(--om-display-lg-font-weight);
|
|
60
|
+
flex: 1 1 auto;
|
|
61
|
+
width: 100%;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
color: var(--om-text-brand, #073387);
|
|
64
|
+
background: transparent;
|
|
65
|
+
border: none;
|
|
66
|
+
outline: none;
|
|
67
|
+
}
|
|
68
|
+
.om-component-ui-input-trade-field::-moz-placeholder {
|
|
69
|
+
color: var(--om-text-brand, #073387);
|
|
70
|
+
}
|
|
71
|
+
.om-component-ui-input-trade-field::placeholder {
|
|
72
|
+
color: var(--om-text-brand, #073387);
|
|
73
|
+
}
|
|
74
|
+
.om-component-ui-input-trade-unit {
|
|
75
|
+
font-size: var(--om-display-lg-font-size);
|
|
76
|
+
font-family: var(--om-display-lg-font-family);
|
|
77
|
+
line-height: var(--om-display-lg-line-height);
|
|
78
|
+
letter-spacing: var(--om-display-lg-letter-spacing);
|
|
79
|
+
font-weight: var(--om-display-lg-font-weight);
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
color: var(--om-text-brand, #073387);
|
|
82
|
+
}
|
|
83
|
+
.om-component-ui-input-trade-unit-placeholder {
|
|
84
|
+
color: var(--om-text-neutral-tertiary, #bbbdc1);
|
|
85
|
+
}
|
|
86
|
+
.om-component-ui-input-trade-max {
|
|
87
|
+
font-size: var(--om-body-sm-font-size);
|
|
88
|
+
font-family: var(--om-body-sm-font-family);
|
|
89
|
+
line-height: var(--om-body-sm-line-height);
|
|
90
|
+
letter-spacing: var(--om-body-sm-letter-spacing);
|
|
91
|
+
font-weight: var(--om-body-sm-strong-font-weight);
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
padding: var(--om-spacing-200, 8px);
|
|
97
|
+
color: var(--om-text-default, #131313);
|
|
98
|
+
background-color: var(--om-bg-neutral-tertiary, #f0f0f0);
|
|
99
|
+
border: none;
|
|
100
|
+
border-radius: var(--om-radius-200, 8px);
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
.om-component-ui-input-trade-max:hover:not(:disabled) {
|
|
104
|
+
background-color: var(--om-bg-neutral-tertiary-hover, #e3e4e4);
|
|
105
|
+
}
|
|
106
|
+
.om-component-ui-input-trade-max:disabled {
|
|
107
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
108
|
+
background-color: var(--om-bg-disabled, #f0f0f0);
|
|
109
|
+
cursor: not-allowed;
|
|
110
|
+
}
|
|
111
|
+
.om-component-ui-input-trade-subline {
|
|
112
|
+
display: flex;
|
|
113
|
+
gap: var(--om-spacing-100, 4px);
|
|
114
|
+
align-items: center;
|
|
115
|
+
padding-top: var(--om-spacing-200, 8px);
|
|
116
|
+
}
|
|
117
|
+
.om-component-ui-input-trade-swap {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
padding: 0;
|
|
122
|
+
color: var(--om-icon-default-tertiary, #646465);
|
|
123
|
+
background: transparent;
|
|
124
|
+
border: none;
|
|
125
|
+
transform: rotate(-90deg);
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
}
|
|
128
|
+
.om-component-ui-input-trade-swap:disabled {
|
|
129
|
+
color: var(--om-icon-disabled, #d1d2d2);
|
|
130
|
+
cursor: not-allowed;
|
|
131
|
+
}
|
|
132
|
+
.om-component-ui-input-trade-exchange {
|
|
133
|
+
font-size: var(--om-body-lg-font-size);
|
|
134
|
+
font-family: var(--om-body-lg-font-family);
|
|
135
|
+
line-height: var(--om-body-lg-line-height);
|
|
136
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
137
|
+
font-weight: var(--om-body-lg-strong-font-weight);
|
|
138
|
+
color: var(--om-text-brand, #073387);
|
|
139
|
+
}
|
|
140
|
+
.om-component-ui-input-trade-error-msg {
|
|
141
|
+
font-size: var(--om-body-sm-font-size);
|
|
142
|
+
font-family: var(--om-body-sm-font-family);
|
|
143
|
+
line-height: var(--om-body-sm-line-height);
|
|
144
|
+
letter-spacing: var(--om-body-sm-letter-spacing);
|
|
145
|
+
font-weight: var(--om-body-sm-font-weight);
|
|
146
|
+
display: flex;
|
|
147
|
+
gap: var(--om-spacing-100, 4px);
|
|
148
|
+
align-items: center;
|
|
149
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
150
|
+
}
|
|
151
|
+
.om-component-ui-input-trade:focus-within .om-component-ui-input-trade-main {
|
|
152
|
+
padding-bottom: calc(var(--om-spacing-200, 8px) - 1px);
|
|
153
|
+
border-bottom: 2px solid var(--om-border-brand, #073387);
|
|
154
|
+
}
|
|
155
|
+
.om-component-ui-input-trade-error .om-component-ui-input-trade-symbol,
|
|
156
|
+
.om-component-ui-input-trade-error .om-component-ui-input-trade-field,
|
|
157
|
+
.om-component-ui-input-trade-error .om-component-ui-input-trade-unit {
|
|
158
|
+
color: var(--om-text-danger, #ae0000);
|
|
159
|
+
}
|
|
160
|
+
.om-component-ui-input-trade-error .om-component-ui-input-trade-field::-moz-placeholder {
|
|
161
|
+
color: var(--om-text-danger, #ae0000);
|
|
162
|
+
}
|
|
163
|
+
.om-component-ui-input-trade-error .om-component-ui-input-trade-field::placeholder {
|
|
164
|
+
color: var(--om-text-danger, #ae0000);
|
|
165
|
+
}
|
|
166
|
+
.om-component-ui-input-trade-error .om-component-ui-input-trade-main {
|
|
167
|
+
border-bottom-color: var(--om-border-danger, #ae0000);
|
|
168
|
+
}
|
|
169
|
+
.om-component-ui-input-trade-error .om-component-ui-input-trade-error-msg {
|
|
170
|
+
color: var(--om-text-danger, #ae0000);
|
|
171
|
+
}
|
|
172
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-symbol,
|
|
173
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-field,
|
|
174
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-unit,
|
|
175
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-unit-placeholder {
|
|
176
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
177
|
+
}
|
|
178
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-field::-moz-placeholder {
|
|
179
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
180
|
+
}
|
|
181
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-field::placeholder {
|
|
182
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
183
|
+
}
|
|
184
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-main {
|
|
185
|
+
border-bottom-color: var(--om-border-disabled, #e3e4e4);
|
|
186
|
+
}
|
|
187
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-exchange {
|
|
188
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
189
|
+
}
|
|
190
|
+
.om-component-ui-input-trade-disabled .om-component-ui-input-trade-error-msg {
|
|
191
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
192
|
+
}
|
|
@@ -1 +1,70 @@
|
|
|
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-link {
|
|
24
|
+
--om-link-text: var(--om-text-brand, #073387);
|
|
25
|
+
--om-link-hover-text: var(--om-text-on-brand-secondary, #052561);
|
|
26
|
+
--om-link-disabled-text: var(--om-text-brand-secondary, #a4bbe1);
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
color: var(--om-link-text);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
transition: color 0.2s ease;
|
|
32
|
+
font-size: var(--om-link-md-font-size);
|
|
33
|
+
font-family: var(--om-link-md-font-family);
|
|
34
|
+
line-height: var(--om-link-md-line-height);
|
|
35
|
+
letter-spacing: var(--om-link-md-letter-spacing);
|
|
36
|
+
font-weight: var(--om-link-md-font-weight);
|
|
37
|
+
-webkit-text-decoration: var(--om-link-md-text-decoration);
|
|
38
|
+
text-decoration: var(--om-link-md-text-decoration);
|
|
39
|
+
-webkit-text-decoration-skip-ink: var(--om-link-md-text-decoration-skip-ink);
|
|
40
|
+
text-decoration-skip-ink: var(--om-link-md-text-decoration-skip-ink);
|
|
41
|
+
}
|
|
42
|
+
.om-component-ui-link:hover:not(.om-component-ui-link-disabled) {
|
|
43
|
+
color: var(--om-link-hover-text);
|
|
44
|
+
}
|
|
45
|
+
.om-component-ui-link-disabled {
|
|
46
|
+
color: var(--om-link-disabled-text);
|
|
47
|
+
cursor: not-allowed;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
.om-component-ui-link-small {
|
|
51
|
+
font-size: var(--om-link-sm-font-size);
|
|
52
|
+
font-family: var(--om-link-sm-font-family);
|
|
53
|
+
line-height: var(--om-link-sm-line-height);
|
|
54
|
+
letter-spacing: var(--om-link-sm-letter-spacing);
|
|
55
|
+
font-weight: var(--om-link-sm-font-weight);
|
|
56
|
+
-webkit-text-decoration: var(--om-link-sm-text-decoration);
|
|
57
|
+
text-decoration: var(--om-link-sm-text-decoration);
|
|
58
|
+
-webkit-text-decoration-skip-ink: var(--om-link-sm-text-decoration-skip-ink);
|
|
59
|
+
text-decoration-skip-ink: var(--om-link-sm-text-decoration-skip-ink);
|
|
60
|
+
}
|
|
61
|
+
.om-component-ui-link-black {
|
|
62
|
+
--om-link-text: var(--om-text-default, #131313);
|
|
63
|
+
--om-link-hover-text: var(--om-text-default-secondary, #404042);
|
|
64
|
+
--om-link-disabled-text: var(--om-text-disabled, #bbbdc1);
|
|
65
|
+
}
|
|
66
|
+
.om-component-ui-link-grey {
|
|
67
|
+
--om-link-text: var(--om-text-default-tertiary, #646465);
|
|
68
|
+
--om-link-hover-text: var(--om-text-default-secondary, #404042);
|
|
69
|
+
--om-link-disabled-text: var(--om-text-disabled, #bbbdc1);
|
|
70
|
+
}
|
|
@@ -1 +1,158 @@
|
|
|
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-nav {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
width: 280px;
|
|
27
|
+
height: 100%;
|
|
28
|
+
padding: var(--om-spacing-1000, 40px) var(--om-spacing-400, 16px) var(--om-spacing-600, 24px);
|
|
29
|
+
background-color: var(--om-bg-default, #fff);
|
|
30
|
+
border-right: 1px solid var(--om-border-neutral, #e3e4e4);
|
|
31
|
+
}
|
|
32
|
+
.om-component-ui-nav-content {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex: 1;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
min-height: 0;
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
}
|
|
39
|
+
.om-component-ui-nav-divider {
|
|
40
|
+
height: 1px;
|
|
41
|
+
background-color: var(--om-border-neutral, #e3e4e4);
|
|
42
|
+
}
|
|
43
|
+
.om-component-ui-nav-group {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
}
|
|
47
|
+
.om-component-ui-nav-group-header {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
min-height: var(--om-component-height-md, 40px);
|
|
51
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-400, 16px);
|
|
52
|
+
color: var(--om-text-default-secondary, #404042);
|
|
53
|
+
border-radius: var(--om-radius-300, 12px);
|
|
54
|
+
}
|
|
55
|
+
.om-component-ui-nav-group-header-content {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex: 1;
|
|
58
|
+
gap: var(--om-spacing-200, 8px);
|
|
59
|
+
align-items: center;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
}
|
|
62
|
+
.om-component-ui-nav-group-header-icon {
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
color: var(--om-icon-default-secondary, #404042);
|
|
68
|
+
}
|
|
69
|
+
.om-component-ui-nav-group-header-label {
|
|
70
|
+
flex: 1;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
white-space: normal;
|
|
73
|
+
overflow-wrap: anywhere;
|
|
74
|
+
}
|
|
75
|
+
.om-component-ui-nav-group-header .om-component-ui-typography {
|
|
76
|
+
color: inherit;
|
|
77
|
+
}
|
|
78
|
+
.om-component-ui-nav-item-wrapper {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
}
|
|
82
|
+
.om-component-ui-nav-item {
|
|
83
|
+
display: flex;
|
|
84
|
+
gap: var(--om-spacing-600, 24px);
|
|
85
|
+
align-items: center;
|
|
86
|
+
width: 100%;
|
|
87
|
+
min-height: var(--om-component-height-md, 40px);
|
|
88
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-400, 16px);
|
|
89
|
+
padding-left: calc(var(--om-spacing-400, 16px) + var(--om-nav-indent, 0) * var(--om-spacing-600, 24px));
|
|
90
|
+
color: var(--om-text-default-secondary, #404042);
|
|
91
|
+
background-color: transparent;
|
|
92
|
+
border: none;
|
|
93
|
+
border-radius: var(--om-radius-300, 12px);
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
.om-component-ui-nav-item .om-component-ui-typography {
|
|
97
|
+
color: inherit;
|
|
98
|
+
}
|
|
99
|
+
.om-component-ui-nav-item[data-depth="1"]:hover:not(:disabled) {
|
|
100
|
+
color: var(--om-text-brand, #073387);
|
|
101
|
+
}
|
|
102
|
+
.om-component-ui-nav-item:not([data-depth="1"]):hover:not(:disabled) {
|
|
103
|
+
color: var(--om-text-default, #131313);
|
|
104
|
+
}
|
|
105
|
+
.om-component-ui-nav-item-content {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex: 1;
|
|
108
|
+
align-items: center;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
}
|
|
111
|
+
.om-component-ui-nav-item-label {
|
|
112
|
+
flex: 1;
|
|
113
|
+
min-width: 0;
|
|
114
|
+
white-space: normal;
|
|
115
|
+
text-align: left;
|
|
116
|
+
overflow-wrap: anywhere;
|
|
117
|
+
}
|
|
118
|
+
.om-component-ui-nav-item-suffix {
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
}
|
|
121
|
+
.om-component-ui-nav-item-arrow {
|
|
122
|
+
display: inline-flex;
|
|
123
|
+
flex-shrink: 0;
|
|
124
|
+
align-items: center;
|
|
125
|
+
color: var(--om-icon-default-secondary, #404042);
|
|
126
|
+
transition: transform 200ms ease-in-out;
|
|
127
|
+
}
|
|
128
|
+
.om-component-ui-nav-item-arrow-open {
|
|
129
|
+
transform: rotate(-180deg);
|
|
130
|
+
}
|
|
131
|
+
.om-component-ui-nav-item-link {
|
|
132
|
+
display: flex;
|
|
133
|
+
color: inherit;
|
|
134
|
+
text-decoration: none;
|
|
135
|
+
}
|
|
136
|
+
.om-component-ui-nav-item-active {
|
|
137
|
+
color: var(--om-text-brand, #073387);
|
|
138
|
+
}
|
|
139
|
+
.om-component-ui-nav-item-disabled {
|
|
140
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
141
|
+
cursor: not-allowed;
|
|
142
|
+
}
|
|
143
|
+
.om-component-ui-nav-item-disabled:hover {
|
|
144
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
145
|
+
}
|
|
146
|
+
.om-component-ui-nav-submenu {
|
|
147
|
+
display: grid;
|
|
148
|
+
grid-template-rows: 0fr;
|
|
149
|
+
transition: grid-template-rows 200ms ease-in-out;
|
|
150
|
+
}
|
|
151
|
+
.om-component-ui-nav-submenu-open {
|
|
152
|
+
grid-template-rows: 1fr;
|
|
153
|
+
}
|
|
154
|
+
.om-component-ui-nav-submenu-inner {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
}
|