@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,81 @@
|
|
|
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-icons-wrapper {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
width: var(--icon-width);
|
|
28
|
+
height: var(--icon-height);
|
|
29
|
+
color: var(--icon-color);
|
|
30
|
+
font-style: normal;
|
|
31
|
+
}
|
|
32
|
+
.om-component-ui-icons *:not(g, defs, clipPath, linearGradient, [fill], [stroke], [stroke-width]) {
|
|
33
|
+
fill: currentcolor;
|
|
34
|
+
}
|
|
35
|
+
.om-component-ui-icons *:not(g, defs, clipPath, linearGradient)[stroke-width]:not([stroke], [fill]) {
|
|
36
|
+
stroke: currentcolor;
|
|
37
|
+
}
|
|
38
|
+
.om-component-ui-icons-logo-with-words {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
}
|
|
43
|
+
.om-component-ui-icons-logo-with-words i:nth-last-child(1) {
|
|
44
|
+
padding-left: 5%;
|
|
45
|
+
}
|
|
46
|
+
.om-component-ui-icons-logo-with-words-with-network i:nth-child(2), .om-component-ui-icons-logo-with-words-with-network i:nth-child(3) {
|
|
47
|
+
padding-left: 2.5%;
|
|
48
|
+
}
|
|
49
|
+
.om-component-ui-icons-logo-with-beta {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
font-style: normal;
|
|
53
|
+
}
|
|
54
|
+
.om-component-ui-icons-logo-with-beta i:nth-of-type(2) {
|
|
55
|
+
padding-left: 4%;
|
|
56
|
+
}
|
|
57
|
+
.om-component-ui-icons-logo-with-beta i:nth-of-type(3) {
|
|
58
|
+
align-self: flex-end;
|
|
59
|
+
margin-bottom: calc(var(--logo-height) * 0.125);
|
|
60
|
+
padding-left: 1px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.om-component-ui-icons-hover-wrapper {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
padding: 8px;
|
|
68
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
69
|
+
border-radius: var(--om-radius-200, 8px);
|
|
70
|
+
}
|
|
71
|
+
.om-component-ui-icons-hover-wrapper:hover {
|
|
72
|
+
background-color: var(--om-bg-default-secondary-hover, #e3e4e4);
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
.om-component-ui-icons-hover-wrapper-disabled {
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
opacity: 0.5;
|
|
78
|
+
}
|
|
79
|
+
.om-component-ui-icons-hover-wrapper-disabled:hover {
|
|
80
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
81
|
+
}
|
|
@@ -1 +1,103 @@
|
|
|
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-amount-action {
|
|
24
|
+
font-size: var(--om-body-lg-font-size);
|
|
25
|
+
font-family: var(--om-body-lg-font-family);
|
|
26
|
+
line-height: var(--om-body-lg-line-height);
|
|
27
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
28
|
+
font-weight: var(--om-body-lg-strong-font-weight);
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
padding: 0;
|
|
32
|
+
color: var(--om-text-brand, #073387);
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
background: transparent;
|
|
35
|
+
border: none;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
.om-component-ui-input-amount-action:disabled {
|
|
39
|
+
color: var(--om-text-brand-secondary, #a4bbe1);
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
.om-component-ui-input-amount-divider {
|
|
43
|
+
width: 1px;
|
|
44
|
+
height: var(--om-spacing-400, 16px);
|
|
45
|
+
background-color: var(--om-border-default, #d1d2d2);
|
|
46
|
+
}
|
|
47
|
+
.om-component-ui-input-amount-currency {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
gap: var(--om-spacing-200, 8px);
|
|
50
|
+
align-items: center;
|
|
51
|
+
padding: 0;
|
|
52
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
53
|
+
background: transparent;
|
|
54
|
+
border: none;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
|
+
.om-component-ui-input-amount-currency:disabled {
|
|
58
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
.om-component-ui-input-amount-currency-icon {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
border-radius: var(--om-radius-full, 9999px);
|
|
68
|
+
}
|
|
69
|
+
.om-component-ui-input-amount-currency-icon > img {
|
|
70
|
+
display: block;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
-o-object-fit: cover;
|
|
74
|
+
object-fit: cover;
|
|
75
|
+
}
|
|
76
|
+
.om-component-ui-input-amount-currency-label {
|
|
77
|
+
font-size: var(--om-body-lg-font-size);
|
|
78
|
+
font-family: var(--om-body-lg-font-family);
|
|
79
|
+
line-height: var(--om-body-lg-line-height);
|
|
80
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
81
|
+
font-weight: var(--om-body-lg-font-weight);
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
.om-component-ui-input-small .om-component-ui-input-amount-action {
|
|
85
|
+
font-size: var(--om-body-md-font-size);
|
|
86
|
+
font-family: var(--om-body-md-font-family);
|
|
87
|
+
line-height: var(--om-body-md-line-height);
|
|
88
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
89
|
+
font-weight: var(--om-body-md-strong-font-weight);
|
|
90
|
+
}
|
|
91
|
+
.om-component-ui-input-small .om-component-ui-input-amount-divider {
|
|
92
|
+
height: var(--om-spacing-400, 16px);
|
|
93
|
+
}
|
|
94
|
+
.om-component-ui-input-small .om-component-ui-input-amount-currency {
|
|
95
|
+
gap: 6px;
|
|
96
|
+
}
|
|
97
|
+
.om-component-ui-input-small .om-component-ui-input-amount-currency-label {
|
|
98
|
+
font-size: var(--om-body-md-font-size);
|
|
99
|
+
font-family: var(--om-body-md-font-family);
|
|
100
|
+
line-height: var(--om-body-md-line-height);
|
|
101
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
102
|
+
font-weight: var(--om-body-md-font-weight);
|
|
103
|
+
}
|
|
@@ -1 +1,76 @@
|
|
|
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 {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-200, 8px);
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
.om-component-ui-input-label-row {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
gap: var(--om-spacing-100, 4px);
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
.om-component-ui-input-label {
|
|
35
|
+
display: inline;
|
|
36
|
+
padding: 0;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
.om-component-ui-input-optional {
|
|
40
|
+
margin-inline-start: var(--om-spacing-100, 4px);
|
|
41
|
+
}
|
|
42
|
+
.om-component-ui-input-tip-trigger {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
.om-component-ui-input-tip-trigger:hover {
|
|
49
|
+
color: var(--om-text-default, #131313);
|
|
50
|
+
}
|
|
51
|
+
.om-component-ui-input-error-msg {
|
|
52
|
+
display: flex;
|
|
53
|
+
gap: var(--om-spacing-100, 4px);
|
|
54
|
+
align-items: center;
|
|
55
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
56
|
+
}
|
|
57
|
+
.om-component-ui-input-error-msg-icon {
|
|
58
|
+
flex-shrink: 0;
|
|
59
|
+
}
|
|
60
|
+
.om-component-ui-input-control-wrapper {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
gap: var(--om-spacing-050, 2px);
|
|
64
|
+
}
|
|
65
|
+
.om-component-ui-input-error .om-component-ui-input-error-msg {
|
|
66
|
+
color: var(--om-text-danger, #ae0000) !important;
|
|
67
|
+
}
|
|
68
|
+
.om-component-ui-input-warning .om-component-ui-input-error-msg {
|
|
69
|
+
color: var(--om-text-warning, #db8600) !important;
|
|
70
|
+
}
|
|
71
|
+
.om-component-ui-input-success .om-component-ui-input-error-msg {
|
|
72
|
+
color: var(--om-text-positive, #1f5800) !important;
|
|
73
|
+
}
|
|
74
|
+
.om-component-ui-input-disabled .om-component-ui-input-label, .om-component-ui-input-disabled .om-component-ui-input-error-msg {
|
|
75
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
76
|
+
}
|
|
@@ -1 +1,124 @@
|
|
|
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-control {
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: var(--om-spacing-200, 8px);
|
|
26
|
+
align-items: center;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: var(--om-component-height-3xl, 56px);
|
|
30
|
+
padding: 0 var(--om-spacing-400, 16px);
|
|
31
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
32
|
+
border: none;
|
|
33
|
+
border-radius: var(--om-radius-300, 12px);
|
|
34
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default, #d1d2d2);
|
|
35
|
+
transition: box-shadow 0.2s ease, background-color 0.2s ease;
|
|
36
|
+
}
|
|
37
|
+
.om-component-ui-input-control:hover {
|
|
38
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default-tertiary, #404042);
|
|
39
|
+
}
|
|
40
|
+
.om-component-ui-input-control:focus-within {
|
|
41
|
+
box-shadow: inset 0 0 0 2px var(--om-border-brand, #073387);
|
|
42
|
+
}
|
|
43
|
+
.om-component-ui-input-control-disabled {
|
|
44
|
+
cursor: not-allowed;
|
|
45
|
+
}
|
|
46
|
+
.om-component-ui-input-field {
|
|
47
|
+
font-size: var(--om-body-lg-font-size);
|
|
48
|
+
font-family: var(--om-body-lg-font-family);
|
|
49
|
+
line-height: var(--om-body-lg-line-height);
|
|
50
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
51
|
+
font-weight: var(--om-body-lg-font-weight);
|
|
52
|
+
flex: 1 1 auto;
|
|
53
|
+
width: 100%;
|
|
54
|
+
color: var(--om-text-default, #131313);
|
|
55
|
+
background: transparent;
|
|
56
|
+
border: none;
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
.om-component-ui-input-field::-moz-placeholder {
|
|
60
|
+
color: var(--om-text-neutral-secondary, #9fa3a3);
|
|
61
|
+
}
|
|
62
|
+
.om-component-ui-input-field::placeholder {
|
|
63
|
+
color: var(--om-text-neutral-secondary, #9fa3a3);
|
|
64
|
+
}
|
|
65
|
+
.om-component-ui-input-field:not(:-moz-placeholder) {
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
}
|
|
68
|
+
.om-component-ui-input-field:not(:placeholder-shown) {
|
|
69
|
+
font-weight: 500;
|
|
70
|
+
}
|
|
71
|
+
.om-component-ui-input-prefix, .om-component-ui-input-suffix {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
gap: var(--om-spacing-200, 8px);
|
|
75
|
+
align-items: center;
|
|
76
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
77
|
+
}
|
|
78
|
+
.om-component-ui-input-action {
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
padding: 0;
|
|
83
|
+
color: var(--om-icon-default-tertiary, #646465);
|
|
84
|
+
background: transparent;
|
|
85
|
+
border: none;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
}
|
|
88
|
+
.om-component-ui-input-action:disabled {
|
|
89
|
+
color: var(--om-icon-disabled, #d1d2d2);
|
|
90
|
+
cursor: not-allowed;
|
|
91
|
+
}
|
|
92
|
+
.om-component-ui-input-small .om-component-ui-input-control {
|
|
93
|
+
height: var(--om-component-height-lg, 44px);
|
|
94
|
+
padding: 0 var(--om-spacing-400, 16px);
|
|
95
|
+
border-radius: var(--om-radius-200, 8px);
|
|
96
|
+
}
|
|
97
|
+
.om-component-ui-input-small .om-component-ui-input-field {
|
|
98
|
+
font-size: var(--om-body-md-font-size);
|
|
99
|
+
font-family: var(--om-body-md-font-family);
|
|
100
|
+
line-height: var(--om-body-md-line-height);
|
|
101
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
102
|
+
font-weight: var(--om-body-md-font-weight);
|
|
103
|
+
}
|
|
104
|
+
.om-component-ui-input-error .om-component-ui-input-control, .om-component-ui-input-error .om-component-ui-input-control:hover, .om-component-ui-input-error .om-component-ui-input-control:focus-within {
|
|
105
|
+
box-shadow: inset 0 0 0 1px var(--om-border-danger, #ae0000);
|
|
106
|
+
}
|
|
107
|
+
.om-component-ui-input-warning .om-component-ui-input-control, .om-component-ui-input-warning .om-component-ui-input-control:hover, .om-component-ui-input-warning .om-component-ui-input-control:focus-within {
|
|
108
|
+
box-shadow: inset 0 0 0 1px var(--om-border-warning, #db8600);
|
|
109
|
+
}
|
|
110
|
+
.om-component-ui-input-success .om-component-ui-input-control, .om-component-ui-input-success .om-component-ui-input-control:hover, .om-component-ui-input-success .om-component-ui-input-control:focus-within {
|
|
111
|
+
box-shadow: inset 0 0 0 1px var(--om-border-positive, #1f5800);
|
|
112
|
+
}
|
|
113
|
+
.om-component-ui-input-readonly .om-component-ui-input-control, .om-component-ui-input-readonly .om-component-ui-input-control:hover, .om-component-ui-input-readonly .om-component-ui-input-control:focus-within {
|
|
114
|
+
background-color: var(--om-bg-neutral-tertiary, #f0f0f0);
|
|
115
|
+
box-shadow: none;
|
|
116
|
+
}
|
|
117
|
+
.om-component-ui-input-disabled .om-component-ui-input-control {
|
|
118
|
+
background-color: var(--om-bg-disabled, #f0f0f0);
|
|
119
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default, #d1d2d2);
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
}
|
|
122
|
+
.om-component-ui-input-disabled .om-component-ui-input-field {
|
|
123
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
124
|
+
}
|
|
@@ -1 +1,79 @@
|
|
|
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-otp {
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: var(--om-spacing-200, 8px);
|
|
26
|
+
}
|
|
27
|
+
.om-component-ui-input-otp-cell {
|
|
28
|
+
font-size: var(--om-body-lg-font-size);
|
|
29
|
+
font-family: var(--om-body-lg-font-family);
|
|
30
|
+
line-height: var(--om-body-lg-line-height);
|
|
31
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
32
|
+
font-weight: var(--om-body-lg-font-weight);
|
|
33
|
+
width: 54px;
|
|
34
|
+
height: var(--om-component-height-3xl, 56px);
|
|
35
|
+
color: var(--om-text-default, #131313);
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
text-align: center;
|
|
38
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
39
|
+
border: none;
|
|
40
|
+
border-radius: var(--om-radius-300, 12px);
|
|
41
|
+
outline: none;
|
|
42
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default, #d1d2d2);
|
|
43
|
+
}
|
|
44
|
+
.om-component-ui-input-otp-cell:hover:not(:disabled) {
|
|
45
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default-tertiary, #404042);
|
|
46
|
+
}
|
|
47
|
+
.om-component-ui-input-error .om-component-ui-input-otp-cell:hover:not(:disabled) {
|
|
48
|
+
box-shadow: inset 0 0 0 1px var(--om-border-danger, #ae0000);
|
|
49
|
+
}
|
|
50
|
+
.om-component-ui-input-warning .om-component-ui-input-otp-cell:hover:not(:disabled) {
|
|
51
|
+
box-shadow: inset 0 0 0 1px var(--om-border-warning, #db8600);
|
|
52
|
+
}
|
|
53
|
+
.om-component-ui-input-success .om-component-ui-input-otp-cell:hover:not(:disabled) {
|
|
54
|
+
box-shadow: inset 0 0 0 1px var(--om-border-positive, #1f5800);
|
|
55
|
+
}
|
|
56
|
+
.om-component-ui-input-otp-cell:focus {
|
|
57
|
+
box-shadow: inset 0 0 0 2px var(--om-border-brand, #073387);
|
|
58
|
+
}
|
|
59
|
+
.om-component-ui-input-small .om-component-ui-input-otp-cell {
|
|
60
|
+
width: var(--om-component-height-lg, 44px);
|
|
61
|
+
height: var(--om-component-height-lg, 44px);
|
|
62
|
+
border-radius: var(--om-radius-200, 8px);
|
|
63
|
+
}
|
|
64
|
+
.om-component-ui-input-error .om-component-ui-input-otp-cell {
|
|
65
|
+
color: var(--om-text-danger, #ae0000);
|
|
66
|
+
box-shadow: inset 0 0 0 1px var(--om-border-danger, #ae0000);
|
|
67
|
+
}
|
|
68
|
+
.om-component-ui-input-warning .om-component-ui-input-otp-cell {
|
|
69
|
+
box-shadow: inset 0 0 0 1px var(--om-border-warning, #db8600);
|
|
70
|
+
}
|
|
71
|
+
.om-component-ui-input-success .om-component-ui-input-otp-cell {
|
|
72
|
+
box-shadow: inset 0 0 0 1px var(--om-border-positive, #1f5800);
|
|
73
|
+
}
|
|
74
|
+
.om-component-ui-input-disabled .om-component-ui-input-otp-cell {
|
|
75
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
76
|
+
background-color: var(--om-bg-disabled, #f0f0f0);
|
|
77
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default, #d1d2d2);
|
|
78
|
+
cursor: not-allowed;
|
|
79
|
+
}
|
|
@@ -1 +1,93 @@
|
|
|
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-textarea-wrapper {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-200, 8px);
|
|
27
|
+
align-items: stretch;
|
|
28
|
+
width: 100%;
|
|
29
|
+
min-height: 120px;
|
|
30
|
+
padding: var(--om-spacing-300, 12px) var(--om-spacing-400, 16px);
|
|
31
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
32
|
+
border: none;
|
|
33
|
+
border-radius: var(--om-radius-300, 12px);
|
|
34
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default, #d1d2d2);
|
|
35
|
+
transition: box-shadow 0.2s ease, background-color 0.2s ease;
|
|
36
|
+
}
|
|
37
|
+
.om-component-ui-input-textarea-wrapper:hover {
|
|
38
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default-tertiary, #404042);
|
|
39
|
+
}
|
|
40
|
+
.om-component-ui-input-textarea-wrapper:focus-within {
|
|
41
|
+
box-shadow: inset 0 0 0 2px var(--om-border-brand, #073387);
|
|
42
|
+
}
|
|
43
|
+
.om-component-ui-input-textarea {
|
|
44
|
+
font-size: var(--om-body-lg-font-size);
|
|
45
|
+
font-family: var(--om-body-lg-font-family);
|
|
46
|
+
line-height: var(--om-body-lg-line-height);
|
|
47
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
48
|
+
font-weight: var(--om-body-lg-font-weight);
|
|
49
|
+
flex: 1 1 auto;
|
|
50
|
+
width: 100%;
|
|
51
|
+
color: var(--om-text-default, #131313);
|
|
52
|
+
background: transparent;
|
|
53
|
+
border: none;
|
|
54
|
+
outline: none;
|
|
55
|
+
resize: none;
|
|
56
|
+
}
|
|
57
|
+
.om-component-ui-input-textarea::-moz-placeholder {
|
|
58
|
+
color: var(--om-text-neutral-secondary, #9fa3a3);
|
|
59
|
+
}
|
|
60
|
+
.om-component-ui-input-textarea::placeholder {
|
|
61
|
+
color: var(--om-text-neutral-secondary, #9fa3a3);
|
|
62
|
+
}
|
|
63
|
+
.om-component-ui-input-textarea:not(:-moz-placeholder) {
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
}
|
|
66
|
+
.om-component-ui-input-textarea:not(:placeholder-shown) {
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
}
|
|
69
|
+
.om-component-ui-input-count {
|
|
70
|
+
text-align: right;
|
|
71
|
+
}
|
|
72
|
+
.om-component-ui-input-small .om-component-ui-input-textarea-wrapper {
|
|
73
|
+
min-height: var(--om-component-height-lg, 44px);
|
|
74
|
+
padding: var(--om-spacing-200, 8px);
|
|
75
|
+
border-radius: var(--om-radius-200, 8px);
|
|
76
|
+
}
|
|
77
|
+
.om-component-ui-input-error .om-component-ui-input-textarea-wrapper {
|
|
78
|
+
box-shadow: inset 0 0 0 1px var(--om-border-danger, #ae0000);
|
|
79
|
+
}
|
|
80
|
+
.om-component-ui-input-warning .om-component-ui-input-textarea-wrapper {
|
|
81
|
+
box-shadow: inset 0 0 0 1px var(--om-border-warning, #db8600);
|
|
82
|
+
}
|
|
83
|
+
.om-component-ui-input-success .om-component-ui-input-textarea-wrapper {
|
|
84
|
+
box-shadow: inset 0 0 0 1px var(--om-border-positive, #1f5800);
|
|
85
|
+
}
|
|
86
|
+
.om-component-ui-input-disabled .om-component-ui-input-textarea-wrapper {
|
|
87
|
+
background-color: var(--om-bg-disabled, #f0f0f0);
|
|
88
|
+
box-shadow: inset 0 0 0 1px var(--om-border-default, #d1d2d2);
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
}
|
|
91
|
+
.om-component-ui-input-disabled .om-component-ui-input-textarea {
|
|
92
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
93
|
+
}
|