@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,191 @@
|
|
|
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-checkbox {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
gap: var(--om-spacing-300, 12px);
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
.om-component-ui-checkbox-box-wrapper {
|
|
30
|
+
position: relative;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
height: calc(var(--om-body-lg-font-size) * 1.375);
|
|
36
|
+
}
|
|
37
|
+
.om-component-ui-checkbox-input {
|
|
38
|
+
position: absolute;
|
|
39
|
+
inset: 0;
|
|
40
|
+
margin: 0;
|
|
41
|
+
cursor: inherit;
|
|
42
|
+
opacity: 0;
|
|
43
|
+
}
|
|
44
|
+
.om-component-ui-checkbox-box {
|
|
45
|
+
position: relative;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
width: var(--om-spacing-400, 16px);
|
|
50
|
+
height: var(--om-spacing-400, 16px);
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
background-color: var(--om-bg-default, #fff);
|
|
53
|
+
border: 1px solid var(--om-border-default-secondary, #9fa3a3);
|
|
54
|
+
border-radius: var(--om-radius-100, 4px);
|
|
55
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
56
|
+
}
|
|
57
|
+
.om-component-ui-checkbox-box::after {
|
|
58
|
+
position: absolute;
|
|
59
|
+
display: table;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
top: calc(var(--om-spacing-400, 16px) / 2 - 1px);
|
|
62
|
+
inset-inline-start: calc(var(--om-spacing-400, 16px) / 4 - 1px);
|
|
63
|
+
width: calc(5 * var(--om-spacing-400, 16px) / 14);
|
|
64
|
+
height: calc(8 * var(--om-spacing-400, 16px) / 14);
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
border: 1px solid var(--om-icon-on-brand, #dde6f4);
|
|
67
|
+
border-top: 0;
|
|
68
|
+
border-inline-start: 0;
|
|
69
|
+
transform: rotate(45deg) scale(0) translate(-50%, -50%);
|
|
70
|
+
transform-origin: center;
|
|
71
|
+
opacity: 0;
|
|
72
|
+
transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
|
|
73
|
+
content: "";
|
|
74
|
+
}
|
|
75
|
+
.om-component-ui-checkbox-input:checked + .om-component-ui-checkbox-box {
|
|
76
|
+
background-color: var(--om-bg-brand, #073387);
|
|
77
|
+
border-color: var(--om-bg-brand, #073387);
|
|
78
|
+
}
|
|
79
|
+
.om-component-ui-checkbox-input:checked + .om-component-ui-checkbox-box::after {
|
|
80
|
+
top: calc(var(--om-spacing-400, 16px) / 2 - 1px);
|
|
81
|
+
inset-inline-start: calc(var(--om-spacing-400, 16px) / 4 - 1px);
|
|
82
|
+
width: calc(5 * var(--om-spacing-400, 16px) / 14);
|
|
83
|
+
height: calc(8 * var(--om-spacing-400, 16px) / 14);
|
|
84
|
+
background-color: transparent;
|
|
85
|
+
border: 1px solid var(--om-icon-on-brand, #dde6f4);
|
|
86
|
+
border-top: 0;
|
|
87
|
+
border-inline-start: 0;
|
|
88
|
+
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
|
89
|
+
opacity: 1;
|
|
90
|
+
transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s, opacity 0.1s;
|
|
91
|
+
}
|
|
92
|
+
.om-component-ui-checkbox-input:focus-visible + .om-component-ui-checkbox-box {
|
|
93
|
+
border-color: var(--om-border-brand, #073387);
|
|
94
|
+
box-shadow: 0 0 0 1px var(--om-border-brand, #073387);
|
|
95
|
+
}
|
|
96
|
+
.om-component-ui-checkbox-content {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex: 1 0 0;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
min-width: 0;
|
|
102
|
+
min-height: 1px;
|
|
103
|
+
}
|
|
104
|
+
.om-component-ui-checkbox-label {
|
|
105
|
+
display: inline;
|
|
106
|
+
}
|
|
107
|
+
.om-component-ui-checkbox-description {
|
|
108
|
+
display: inline;
|
|
109
|
+
}
|
|
110
|
+
.om-component-ui-checkbox:not(.om-component-ui-checkbox-disabled):hover .om-component-ui-checkbox-box {
|
|
111
|
+
border-color: var(--om-border-default-tertiary, #404042);
|
|
112
|
+
}
|
|
113
|
+
.om-component-ui-checkbox:not(.om-component-ui-checkbox-disabled):hover .om-component-ui-checkbox-input:checked + .om-component-ui-checkbox-box {
|
|
114
|
+
background-color: var(--om-bg-brand-hover, #052561);
|
|
115
|
+
border-color: var(--om-bg-brand-hover, #052561);
|
|
116
|
+
}
|
|
117
|
+
.om-component-ui-checkbox:not(.om-component-ui-checkbox-disabled):hover .om-component-ui-checkbox-box-wrapper-indeterminate .om-component-ui-checkbox-box {
|
|
118
|
+
background-color: var(--om-bg-brand-hover, #052561);
|
|
119
|
+
border-color: var(--om-bg-brand-hover, #052561);
|
|
120
|
+
}
|
|
121
|
+
.om-component-ui-checkbox-box-wrapper-indeterminate .om-component-ui-checkbox-box {
|
|
122
|
+
background-color: var(--om-bg-brand, #073387);
|
|
123
|
+
border-color: var(--om-bg-brand, #073387);
|
|
124
|
+
}
|
|
125
|
+
.om-component-ui-checkbox-box-wrapper-indeterminate .om-component-ui-checkbox-box::after {
|
|
126
|
+
top: 50%;
|
|
127
|
+
inset-inline-start: 17.5%;
|
|
128
|
+
width: 65%;
|
|
129
|
+
height: 7.5%;
|
|
130
|
+
background-color: var(--om-icon-on-brand, #dde6f4);
|
|
131
|
+
border: 0;
|
|
132
|
+
border-radius: var(--om-radius-100, 4px);
|
|
133
|
+
transform: translateY(-50%);
|
|
134
|
+
opacity: 1;
|
|
135
|
+
}
|
|
136
|
+
.om-component-ui-checkbox-disabled {
|
|
137
|
+
cursor: not-allowed;
|
|
138
|
+
}
|
|
139
|
+
.om-component-ui-checkbox-disabled .om-component-ui-checkbox-box {
|
|
140
|
+
background-color: var(--om-bg-disabled, #f0f0f0);
|
|
141
|
+
border-color: var(--om-border-disabled, #e3e4e4);
|
|
142
|
+
}
|
|
143
|
+
.om-component-ui-checkbox-disabled .om-component-ui-checkbox-input:checked + .om-component-ui-checkbox-box {
|
|
144
|
+
background-color: var(--om-bg-disabled, #f0f0f0);
|
|
145
|
+
border-color: var(--om-border-disabled, #e3e4e4);
|
|
146
|
+
}
|
|
147
|
+
.om-component-ui-checkbox-disabled .om-component-ui-checkbox-input:checked + .om-component-ui-checkbox-box::after {
|
|
148
|
+
top: calc(var(--om-spacing-400, 16px) / 2 - 1px);
|
|
149
|
+
inset-inline-start: calc(var(--om-spacing-400, 16px) / 4 - 1px);
|
|
150
|
+
width: calc(5 * var(--om-spacing-400, 16px) / 14);
|
|
151
|
+
height: calc(8 * var(--om-spacing-400, 16px) / 14);
|
|
152
|
+
background-color: transparent;
|
|
153
|
+
border: 1px solid var(--om-icon-disabled, #d1d2d2);
|
|
154
|
+
border-top: 0;
|
|
155
|
+
border-inline-start: 0;
|
|
156
|
+
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
|
157
|
+
opacity: 1;
|
|
158
|
+
}
|
|
159
|
+
.om-component-ui-checkbox-disabled .om-component-ui-checkbox-box-wrapper-indeterminate .om-component-ui-checkbox-box {
|
|
160
|
+
background-color: var(--om-bg-disabled, #f0f0f0);
|
|
161
|
+
border-color: var(--om-border-disabled, #e3e4e4);
|
|
162
|
+
}
|
|
163
|
+
.om-component-ui-checkbox-disabled .om-component-ui-checkbox-box-wrapper-indeterminate .om-component-ui-checkbox-box::after {
|
|
164
|
+
top: 50%;
|
|
165
|
+
inset-inline-start: 17.5%;
|
|
166
|
+
width: 65%;
|
|
167
|
+
height: 7.5%;
|
|
168
|
+
background-color: var(--om-icon-disabled, #d1d2d2);
|
|
169
|
+
border: 0;
|
|
170
|
+
border-radius: var(--om-radius-100, 4px);
|
|
171
|
+
transform: translateY(-50%);
|
|
172
|
+
opacity: 1;
|
|
173
|
+
}
|
|
174
|
+
.om-component-ui-checkbox-right .om-component-ui-checkbox-box-wrapper {
|
|
175
|
+
order: 1;
|
|
176
|
+
}
|
|
177
|
+
.om-component-ui-checkbox-right .om-component-ui-checkbox-content {
|
|
178
|
+
order: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.om-component-ui-checkbox-group {
|
|
182
|
+
display: flex;
|
|
183
|
+
gap: var(--om-spacing-300, 12px);
|
|
184
|
+
align-items: flex-start;
|
|
185
|
+
}
|
|
186
|
+
.om-component-ui-checkbox-group-horizontal {
|
|
187
|
+
flex-flow: row wrap;
|
|
188
|
+
}
|
|
189
|
+
.om-component-ui-checkbox-group-vertical {
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
}
|
|
@@ -1 +1,156 @@
|
|
|
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-coach-mark {
|
|
24
|
+
--coach-mark-arrow-offset: 50%;
|
|
25
|
+
position: relative;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
width: 450px;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
padding: var(--om-spacing-1000, 40px) var(--om-spacing-1000, 40px) var(--om-spacing-800, 32px);
|
|
31
|
+
background-color: var(--om-bg-default, #fff);
|
|
32
|
+
border: 1px solid var(--om-border-neutral, #e3e4e4);
|
|
33
|
+
border-radius: var(--om-radius-600, 24px);
|
|
34
|
+
box-shadow: var(--om-shadow-200, 0 10px 22px rgba(0, 0, 0, 0.1));
|
|
35
|
+
}
|
|
36
|
+
.om-component-ui-coach-mark-content {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: var(--om-spacing-600, 24px);
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
width: 100%;
|
|
42
|
+
}
|
|
43
|
+
.om-component-ui-coach-mark-icon {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
width: 56px;
|
|
48
|
+
height: 56px;
|
|
49
|
+
color: var(--om-icon-on-brand, #dde6f4);
|
|
50
|
+
background: radial-gradient(circle at bottom left, var(--om-bg-brand, #073387) 0%, var(--om-bg-brand-secondary, #dde6f4) 50%, var(--om-bg-default-secondary, #f8f8f8) 100%);
|
|
51
|
+
border-radius: var(--om-radius-full, 9999px);
|
|
52
|
+
}
|
|
53
|
+
.om-component-ui-coach-mark-text {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
gap: var(--om-spacing-200, 8px);
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
.om-component-ui-coach-mark-footer {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
width: 100%;
|
|
64
|
+
margin-top: var(--om-spacing-600, 24px);
|
|
65
|
+
padding-top: var(--om-spacing-600, 24px);
|
|
66
|
+
border-top: 1px solid var(--om-border-neutral-secondary, #f0f0f0);
|
|
67
|
+
}
|
|
68
|
+
.om-component-ui-coach-mark-btn {
|
|
69
|
+
display: flex;
|
|
70
|
+
gap: var(--om-spacing-200, 8px);
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
width: 80px;
|
|
74
|
+
padding: var(--om-spacing-300, 12px);
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
text-align: center;
|
|
77
|
+
border: none;
|
|
78
|
+
border-radius: var(--om-radius-300, 12px);
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
font-size: var(--om-body-md-font-size);
|
|
81
|
+
font-family: var(--om-body-md-font-family);
|
|
82
|
+
line-height: var(--om-body-md-line-height);
|
|
83
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
84
|
+
font-weight: var(--om-body-md-strong-font-weight);
|
|
85
|
+
}
|
|
86
|
+
.om-component-ui-coach-mark-btn-back {
|
|
87
|
+
color: var(--om-text-brand, #073387);
|
|
88
|
+
background-color: var(--om-bg-brand-secondary, #dde6f4);
|
|
89
|
+
}
|
|
90
|
+
.om-component-ui-coach-mark-btn-back:hover {
|
|
91
|
+
background-color: var(--om-bg-brand-secondary-hover, #c1d0eb);
|
|
92
|
+
}
|
|
93
|
+
.om-component-ui-coach-mark-btn-back:disabled {
|
|
94
|
+
color: var(--om-text-brand-secondary, #a4bbe1);
|
|
95
|
+
background-color: var(--om-bg-brand-tertiary, #edf2f9);
|
|
96
|
+
cursor: default;
|
|
97
|
+
}
|
|
98
|
+
.om-component-ui-coach-mark-btn-next {
|
|
99
|
+
color: var(--om-text-on-neutral, #fff);
|
|
100
|
+
background-color: var(--om-bg-brand, #073387);
|
|
101
|
+
}
|
|
102
|
+
.om-component-ui-coach-mark-dismiss {
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: var(--om-spacing-400, 16px);
|
|
105
|
+
right: var(--om-spacing-400, 16px);
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
width: 24px;
|
|
110
|
+
height: 24px;
|
|
111
|
+
padding: 0;
|
|
112
|
+
color: var(--om-icon-default-tertiary, #646465);
|
|
113
|
+
background: none;
|
|
114
|
+
border: none;
|
|
115
|
+
border-radius: var(--om-radius-200, 8px);
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
.om-component-ui-coach-mark-dismiss:hover {
|
|
119
|
+
color: var(--om-icon-default-secondary, #404042);
|
|
120
|
+
}
|
|
121
|
+
.om-component-ui-coach-mark-arrow {
|
|
122
|
+
position: absolute;
|
|
123
|
+
width: 36px;
|
|
124
|
+
height: 9px;
|
|
125
|
+
overflow: visible;
|
|
126
|
+
pointer-events: none;
|
|
127
|
+
}
|
|
128
|
+
.om-component-ui-coach-mark-arrow-fill {
|
|
129
|
+
fill: var(--om-bg-default, #fff);
|
|
130
|
+
}
|
|
131
|
+
.om-component-ui-coach-mark-arrow-stroke {
|
|
132
|
+
fill: none;
|
|
133
|
+
stroke: var(--om-border-neutral, #e3e4e4);
|
|
134
|
+
stroke-width: 1;
|
|
135
|
+
stroke-linecap: round;
|
|
136
|
+
}
|
|
137
|
+
.om-component-ui-coach-mark-top .om-component-ui-coach-mark-arrow {
|
|
138
|
+
bottom: -9px;
|
|
139
|
+
left: var(--coach-mark-arrow-offset);
|
|
140
|
+
transform: translateX(-50%) rotate(180deg);
|
|
141
|
+
}
|
|
142
|
+
.om-component-ui-coach-mark-bottom .om-component-ui-coach-mark-arrow {
|
|
143
|
+
top: -9px;
|
|
144
|
+
left: var(--coach-mark-arrow-offset);
|
|
145
|
+
transform: translateX(-50%);
|
|
146
|
+
}
|
|
147
|
+
.om-component-ui-coach-mark-right .om-component-ui-coach-mark-arrow {
|
|
148
|
+
top: var(--coach-mark-arrow-offset);
|
|
149
|
+
left: -22.5px;
|
|
150
|
+
transform: translateY(-50%) rotate(-90deg);
|
|
151
|
+
}
|
|
152
|
+
.om-component-ui-coach-mark-left .om-component-ui-coach-mark-arrow {
|
|
153
|
+
top: var(--coach-mark-arrow-offset);
|
|
154
|
+
right: -22.5px;
|
|
155
|
+
transform: translateY(-50%) rotate(90deg);
|
|
156
|
+
}
|
|
@@ -1 +1,45 @@
|
|
|
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-clipboard {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-200, 8px);
|
|
27
|
+
}
|
|
28
|
+
.om-component-ui-clipboard-content {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
gap: var(--om-spacing-200, 8px);
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-400, 16px);
|
|
35
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
36
|
+
border: 1px solid var(--om-border-neutral, #e3e4e4);
|
|
37
|
+
border-radius: var(--om-radius-300, 12px);
|
|
38
|
+
}
|
|
39
|
+
.om-component-ui-clipboard-content-text {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
margin: 0;
|
|
42
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
43
|
+
word-wrap: break-word;
|
|
44
|
+
word-break: break-all;
|
|
45
|
+
}
|
|
@@ -1 +1,48 @@
|
|
|
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-copy {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
.om-component-ui-copy-copied {
|
|
27
|
+
cursor: default;
|
|
28
|
+
}
|
|
29
|
+
.om-component-ui-copy-inner {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
padding: var(--om-spacing-300, 12px);
|
|
34
|
+
background-color: var(--om-bg-neutral-tertiary, #f0f0f0);
|
|
35
|
+
border-radius: var(--om-radius-300, 12px);
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
transition: background-color 0.2s ease;
|
|
38
|
+
}
|
|
39
|
+
.om-component-ui-copy-inner:hover {
|
|
40
|
+
background-color: var(--om-bg-neutral-tertiary-hover, #e3e4e4);
|
|
41
|
+
}
|
|
42
|
+
.om-component-ui-copy-inner-copied {
|
|
43
|
+
background-color: var(--om-bg-positive-tertiary, rgba(31, 88, 0, 0.05));
|
|
44
|
+
cursor: default;
|
|
45
|
+
}
|
|
46
|
+
.om-component-ui-copy-inner-copied:hover {
|
|
47
|
+
background-color: var(--om-bg-positive-tertiary, rgba(31, 88, 0, 0.05));
|
|
48
|
+
}
|
|
@@ -1 +1,204 @@
|
|
|
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-dialog-root {
|
|
24
|
+
position: fixed;
|
|
25
|
+
inset: 0;
|
|
26
|
+
z-index: 1000;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.om-component-ui-dialog-overlay {
|
|
30
|
+
position: absolute;
|
|
31
|
+
inset: 0;
|
|
32
|
+
background-color: var(--om-bg-scrim-dark, rgba(0, 0, 0, 0.2));
|
|
33
|
+
opacity: 0;
|
|
34
|
+
transition: opacity 200ms ease;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.om-component-ui-dialog-wrapper {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
padding: var(--om-spacing-400, 16px);
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.om-component-ui-dialog {
|
|
49
|
+
position: relative;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
align-items: stretch;
|
|
53
|
+
justify-content: flex-start;
|
|
54
|
+
width: min(100%, 450px);
|
|
55
|
+
max-height: calc(100vh - var(--om-spacing-800, 32px));
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
background-color: var(--om-bg-default, #fff);
|
|
58
|
+
border: 1px solid var(--om-border-neutral, #e3e4e4);
|
|
59
|
+
border-radius: var(--om-radius-600, 24px);
|
|
60
|
+
outline: none;
|
|
61
|
+
box-shadow: var(--om-shadow-200, 0 10px 22px rgba(0, 0, 0, 0.1));
|
|
62
|
+
transform: translateY(var(--om-spacing-400, 16px));
|
|
63
|
+
opacity: 0;
|
|
64
|
+
transition: opacity 200ms ease, transform 200ms ease;
|
|
65
|
+
pointer-events: auto;
|
|
66
|
+
}
|
|
67
|
+
.om-component-ui-dialog-small {
|
|
68
|
+
width: min(100%, 450px);
|
|
69
|
+
}
|
|
70
|
+
.om-component-ui-dialog-large {
|
|
71
|
+
width: min(100%, 740px);
|
|
72
|
+
}
|
|
73
|
+
.om-component-ui-dialog-full-width {
|
|
74
|
+
width: calc(100vw - var(--om-spacing-800, 32px));
|
|
75
|
+
max-width: none;
|
|
76
|
+
}
|
|
77
|
+
.om-component-ui-dialog-with-media .om-component-ui-dialog-inner {
|
|
78
|
+
padding-top: var(--om-spacing-800, 32px);
|
|
79
|
+
}
|
|
80
|
+
.om-component-ui-dialog-media {
|
|
81
|
+
width: 100%;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
background-color: var(--om-bg-default-tertiary, #e3e4e4);
|
|
84
|
+
}
|
|
85
|
+
.om-component-ui-dialog-inner {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
gap: var(--om-spacing-600, 24px);
|
|
89
|
+
width: 100%;
|
|
90
|
+
padding: var(--om-spacing-800, 32px);
|
|
91
|
+
}
|
|
92
|
+
.om-component-ui-dialog-header {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
width: 100%;
|
|
96
|
+
min-height: 24px;
|
|
97
|
+
}
|
|
98
|
+
.om-component-ui-dialog-control {
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
width: 24px;
|
|
103
|
+
height: 24px;
|
|
104
|
+
padding: 0;
|
|
105
|
+
color: var(--om-icon-default-tertiary, #646465);
|
|
106
|
+
background: transparent;
|
|
107
|
+
border: none;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
.om-component-ui-dialog-control .om-component-ui-icons-wrapper {
|
|
111
|
+
--icon-color: currentcolor;
|
|
112
|
+
}
|
|
113
|
+
.om-component-ui-dialog-control:hover {
|
|
114
|
+
color: var(--om-icon-default, #131313);
|
|
115
|
+
}
|
|
116
|
+
.om-component-ui-dialog-control-close {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 15px;
|
|
119
|
+
right: 15px;
|
|
120
|
+
z-index: 1;
|
|
121
|
+
}
|
|
122
|
+
.om-component-ui-dialog-body {
|
|
123
|
+
width: 100%;
|
|
124
|
+
min-width: 0;
|
|
125
|
+
}
|
|
126
|
+
.om-component-ui-dialog-illustration {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: flex-start;
|
|
130
|
+
padding-bottom: var(--om-spacing-300, 12px);
|
|
131
|
+
line-height: 0;
|
|
132
|
+
}
|
|
133
|
+
.om-component-ui-dialog-title, .om-component-ui-dialog-content {
|
|
134
|
+
width: 100%;
|
|
135
|
+
min-width: 0;
|
|
136
|
+
}
|
|
137
|
+
.om-component-ui-dialog-title {
|
|
138
|
+
color: var(--om-text-default, #131313);
|
|
139
|
+
}
|
|
140
|
+
.om-component-ui-dialog-content {
|
|
141
|
+
padding-top: var(--om-spacing-300, 12px);
|
|
142
|
+
}
|
|
143
|
+
.om-component-ui-dialog-footer {
|
|
144
|
+
display: flex;
|
|
145
|
+
gap: var(--om-spacing-300, 12px);
|
|
146
|
+
width: 100%;
|
|
147
|
+
}
|
|
148
|
+
.om-component-ui-dialog-footer-small {
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
align-items: stretch;
|
|
151
|
+
}
|
|
152
|
+
.om-component-ui-dialog-footer-large {
|
|
153
|
+
align-items: stretch;
|
|
154
|
+
}
|
|
155
|
+
.om-component-ui-dialog-action-button {
|
|
156
|
+
width: 100%;
|
|
157
|
+
min-height: 52px;
|
|
158
|
+
border-radius: var(--om-radius-300, 12px);
|
|
159
|
+
}
|
|
160
|
+
.om-component-ui-dialog-action-button.om-component-ui-button {
|
|
161
|
+
justify-content: center;
|
|
162
|
+
}
|
|
163
|
+
.om-component-ui-dialog-action-button-cancel.om-component-ui-button {
|
|
164
|
+
color: var(--om-text-default, #131313);
|
|
165
|
+
background-color: var(--om-bg-neutral-tertiary, #f0f0f0);
|
|
166
|
+
}
|
|
167
|
+
.om-component-ui-dialog-action-button-cancel.om-component-ui-button:hover:not(:disabled) {
|
|
168
|
+
background-color: var(--om-bg-neutral-secondary, #e3e4e4);
|
|
169
|
+
}
|
|
170
|
+
.om-component-ui-dialog-footer-large > .om-component-ui-dialog-action-button {
|
|
171
|
+
flex: 1 1 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.om-component-ui-dialog-root-open .om-component-ui-dialog-overlay {
|
|
175
|
+
opacity: 1;
|
|
176
|
+
}
|
|
177
|
+
.om-component-ui-dialog-root-open .om-component-ui-dialog {
|
|
178
|
+
transform: translateY(0);
|
|
179
|
+
opacity: 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.om-component-ui-dialog-root-closed .om-component-ui-dialog-overlay {
|
|
183
|
+
opacity: 0;
|
|
184
|
+
}
|
|
185
|
+
.om-component-ui-dialog-root-closed .om-component-ui-dialog {
|
|
186
|
+
transform: translateY(var(--om-spacing-400, 16px));
|
|
187
|
+
opacity: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@media (max-width: 767.98px) {
|
|
191
|
+
.om-component-ui-dialog-wrapper {
|
|
192
|
+
align-items: flex-end;
|
|
193
|
+
}
|
|
194
|
+
.om-component-ui-dialog-full-width {
|
|
195
|
+
width: 100%;
|
|
196
|
+
}
|
|
197
|
+
.om-component-ui-dialog-inner {
|
|
198
|
+
padding-right: var(--om-spacing-800, 32px);
|
|
199
|
+
padding-left: var(--om-spacing-800, 32px);
|
|
200
|
+
}
|
|
201
|
+
.om-component-ui-dialog-footer-large {
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
}
|
|
204
|
+
}
|