@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,468 @@
|
|
|
1
|
-
.om-component-ui-select{display:flex;flex-direction:column;gap:var(--om-spacing-200,8px);width:100%}.om-component-ui-select-label-row{display:inline-flex;gap:var(--om-spacing-100,4px);align-items:center}.om-component-ui-select-label-text{display:inline}.om-component-ui-select-required{color:var(--om-text-danger,#ae0000)}.om-component-ui-select-info{display:inline-flex;align-items:center;color:var(--om-icon-default-tertiary,#646465)}.om-component-ui-select-description-text{display:block}.om-component-ui-select-trigger{display:flex;gap:var(--om-spacing-200,8px);align-items:center;width:100%;min-width:120px;color:inherit;text-align:left;border:1px solid var(--om-border-default,#d1d2d2);cursor:pointer;transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.om-component-ui-select-trigger-large{min-height:var(--om-component-height-3xl,56px);padding:var(--om-spacing-300,12px);border-radius:var(--om-radius-300,12px)}.om-component-ui-select-trigger-small{min-height:var(--om-component-height-lg,44px);padding:var(--om-spacing-200,8px) var(--om-spacing-300,12px);border-radius:var(--om-radius-200,8px)}.om-component-ui-select-trigger-fill{background-color:var(--om-bg-default-secondary,#f8f8f8)}.om-component-ui-select-trigger-stroke{background-color:transparent}.om-component-ui-select-trigger-frameless{justify-content:flex-start;width:auto;min-width:auto;min-height:auto;padding:0;background:transparent;border:none;border-radius:0}.om-component-ui-select-trigger:not(.om-component-ui-select-trigger-disabled,.om-component-ui-select-trigger-readonly):hover{border-color:var(--om-border-default-tertiary,#404042)}.om-component-ui-select-trigger-open:focus-visible,.om-component-ui-select-trigger:focus-visible{outline:none}.om-component-ui-select-trigger-frameless:not(.om-component-ui-select-trigger-disabled,.om-component-ui-select-trigger-readonly):hover{border-color:transparent}.om-component-ui-select-trigger-open{border-color:var(--om-border-brand,#073387);box-shadow:inset 0 0 0 1px var(--om-border-brand,#073387)}.om-component-ui-select-trigger-error{border-color:var(--om-border-danger,#ae0000)}.om-component-ui-select-trigger-warning{border-color:var(--om-border-warning,#db8600)}.om-component-ui-select-trigger-success{border-color:var(--om-border-positive,#1f5800)}.om-component-ui-select-trigger-disabled{color:var(--om-text-disabled,#bbbdc1);background-color:var(--om-bg-disabled,#f0f0f0);border-color:var(--om-border-disabled,#e3e4e4);box-shadow:none;cursor:not-allowed}.om-component-ui-select-trigger-readonly,.om-component-ui-select-trigger-readonly:focus,.om-component-ui-select-trigger-readonly:focus-visible,.om-component-ui-select-trigger-readonly:hover{background-color:var(--om-bg-neutral-tertiary,#f0f0f0);border-color:transparent;outline:none;box-shadow:none;cursor:default}.om-component-ui-select-trigger-error,.om-component-ui-select-trigger-frameless,.om-component-ui-select-trigger-success,.om-component-ui-select-trigger-warning{box-shadow:none}.om-component-ui-select-trigger-disabled .om-component-ui-select-icon,.om-component-ui-select-trigger-disabled .om-component-ui-select-prefix{color:var(--om-icon-disabled,#d1d2d2)}.om-component-ui-select-content{display:flex;flex:1 1 auto;gap:var(--om-spacing-200,8px);align-items:center;min-width:0}.om-component-ui-select-prefix{display:inline-flex;flex-shrink:0;align-items:center;color:var(--om-icon-default-tertiary,#646465)}.om-component-ui-select-placeholder,.om-component-ui-select-value{display:inline-flex;flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.om-component-ui-select-value-large{font-size:var(--om-body-lg-font-size);font-family:var(--om-body-lg-font-family);line-height:var(--om-body-lg-line-height);letter-spacing:var(--om-body-lg-letter-spacing);font-weight:var(--om-body-lg-strong-font-weight)}.om-component-ui-select-value-small{font-size:var(--om-body-md-font-size);font-family:var(--om-body-md-font-family);line-height:var(--om-body-md-line-height);letter-spacing:var(--om-body-md-letter-spacing);font-weight:var(--om-body-md-strong-font-weight)}.om-component-ui-select-placeholder-large{font-size:var(--om-body-lg-font-size);font-family:var(--om-body-lg-font-family);line-height:var(--om-body-lg-line-height);letter-spacing:var(--om-body-lg-letter-spacing);font-weight:var(--om-body-lg-font-weight)}.om-component-ui-select-placeholder-small{font-size:var(--om-body-md-font-size);font-family:var(--om-body-md-font-family);line-height:var(--om-body-md-line-height);letter-spacing:var(--om-body-md-letter-spacing);font-weight:var(--om-body-md-font-weight)}.om-component-ui-select-value{color:var(--om-text-default,#131313)}.om-component-ui-select-value-multiple{display:flex;flex-wrap:wrap;gap:var(--om-spacing-200,8px);align-content:flex-start;align-items:center;max-height:88px;overflow:hidden;white-space:normal;text-overflow:clip}.om-component-ui-select-placeholder{color:var(--om-text-neutral-secondary,#9fa3a3)}.om-component-ui-select-placeholder-disabled,.om-component-ui-select-value-disabled{color:var(--om-text-disabled,#bbbdc1)}.om-component-ui-select-icon{display:inline-flex;flex-shrink:0;align-items:center;color:var(--om-icon-default,#131313)}.om-component-ui-select-trigger-multiple-filled{padding-top:var(--om-spacing-200,8px);padding-bottom:var(--om-spacing-200,8px)}.om-component-ui-select-tag{font-size:var(--om-body-sm-font-size);font-family:var(--om-body-sm-font-family);line-height:var(--om-body-sm-line-height);letter-spacing:var(--om-body-sm-letter-spacing);font-weight:var(--om-body-sm-strong-font-weight);display:inline-flex;flex-shrink:0;gap:var(--om-spacing-100,4px);align-items:center;justify-content:center;max-width:100%;padding:var(--om-spacing-100,4px) var(--om-spacing-200,8px);color:var(--om-text-default-tertiary,#646465);background-color:var(--om-bg-neutral-tertiary,#f0f0f0);border-radius:var(--om-radius-full,9999px)}.om-component-ui-select-tag-label{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.om-component-ui-select-tag-remove{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;color:currentcolor}.om-component-ui-select-collapsed-values{display:inline-flex;flex:1 1 auto;gap:var(--om-spacing-100,4px);align-items:center;min-width:0}.om-component-ui-select-collapsed-values-list{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.om-component-ui-select-collapsed-values-extra{flex-shrink:0;color:var(--om-text-default-secondary,#404042)}.om-component-ui-select-collapsed-values-extra-disabled{color:var(--om-text-disabled,#bbbdc1)}.om-component-ui-select-feedback{display:inline-flex;gap:var(--om-spacing-100,4px);align-items:center;color:var(--om-text-default-secondary,#404042)}.om-component-ui-select-feedback-error{color:var(--om-text-danger,#ae0000)!important}.om-component-ui-select-feedback-warning{color:var(--om-text-warning,#db8600)}.om-component-ui-select-feedback-success{color:var(--om-text-positive,#1f5800)}.om-component-ui-select-feedback-disabled{color:var(--om-text-disabled,#bbbdc1)}.om-component-ui-select-feedback-icon{display:inline-flex;flex-shrink:0;align-items:center;margin-top:1px}.om-component-ui-select-panel{z-index:1500;display:flex;flex-direction:column;padding:var(--om-spacing-200,8px);overflow:hidden;background-color:var(--om-bg-default,#fff);border:1px solid var(--om-border-neutral-tertiary,#f8f8f8);border-radius:var(--om-radius-300,12px);box-shadow:var(--om-shadow-100,0 4px 8px rgba(65,91,130,.12))}.om-component-ui-select-search{display:flex;flex-shrink:0;gap:var(--om-spacing-200,8px);align-items:center;width:100%;margin-bottom:var(--om-spacing-200,8px);background-color:var(--om-bg-default,#fff);border:1px solid var(--om-border-default,#d1d2d2);transition:border-color .2s ease,box-shadow .2s ease}.om-component-ui-select-search-large{min-height:var(--om-component-height-3xl,56px);padding:var(--om-spacing-300,12px) var(--om-spacing-400,16px);border-radius:var(--om-radius-300,12px)}.om-component-ui-select-search-small{min-height:var(--om-component-height-lg,44px);padding:var(--om-spacing-200,8px) var(--om-spacing-300,12px);border-radius:var(--om-radius-200,8px)}.om-component-ui-select-search:hover{border-color:var(--om-border-default-tertiary,#404042)}.om-component-ui-select-search:focus-within{border-color:var(--om-border-brand,#073387);box-shadow:inset 0 0 0 1px var(--om-border-brand,#073387)}.om-component-ui-select-search-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;color:var(--om-icon-default,#131313)}.om-component-ui-select-search-input{flex:1 1 auto;min-width:0;color:var(--om-text-default,#131313);background:transparent;border:none;outline:none}.om-component-ui-select-search-input-large{font-size:var(--om-body-lg-font-size);font-family:var(--om-body-lg-font-family);line-height:var(--om-body-lg-line-height);letter-spacing:var(--om-body-lg-letter-spacing);font-weight:var(--om-body-lg-font-weight)}.om-component-ui-select-search-input-small{font-size:var(--om-body-md-font-size);font-family:var(--om-body-md-font-family);line-height:var(--om-body-md-line-height);letter-spacing:var(--om-body-md-letter-spacing);font-weight:var(--om-body-md-font-weight)}.om-component-ui-select-search-input::placeholder{color:var(--om-text-neutral-secondary,#9fa3a3)}.om-component-ui-select-panel-body{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--om-spacing-050,2px);min-height:0;overflow-y:auto}.om-component-ui-select-panel-footer{flex-shrink:0;width:100%;padding-top:var(--om-spacing-300,12px);padding-bottom:var(--om-spacing-100,4px);border-top:1px solid var(--om-border-neutral-secondary,#f0f0f0)}.om-component-ui-select-group{display:flex;flex-direction:column;width:100%}.om-component-ui-select-group-label{padding:var(--om-spacing-200,8px) 0}.om-component-ui-select-group-label,.om-component-ui-select-option{display:flex;align-items:center;width:100%;color:var(--om-text-default,#131313)}.om-component-ui-select-option{gap:var(--om-spacing-300,12px);min-height:40px;margin:var(--om-spacing-100,4px) 0;padding:var(--om-spacing-200,8px);text-align:left;background:transparent;border:none;border-radius:var(--om-radius-200,8px);cursor:pointer;transition:background-color .2s ease}.om-component-ui-select-option:focus,.om-component-ui-select-option:focus-visible{outline:none;box-shadow:none}.om-component-ui-select-option-active,.om-component-ui-select-option-selected,.om-component-ui-select-option:hover{background-color:var(--om-bg-default-secondary,#f8f8f8)}.om-component-ui-select-option-disabled{color:var(--om-text-disabled,#bbbdc1);background-color:transparent;cursor:not-allowed}.om-component-ui-select-option-content{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--om-spacing-050,2px);min-width:0}.om-component-ui-select-option-label{color:currentcolor}.om-component-ui-select-option-description,.om-component-ui-select-option-label{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.om-component-ui-select-option-check{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:16px;height:16px;margin-left:auto;color:var(--om-icon-brand,#073387)}.om-component-ui-select-empty{padding:var(--om-spacing-200,8px);text-align:center}.om-component-ui-select-frameless{width:auto}.om-component-ui-select-frameless .om-component-ui-select-placeholder-large,.om-component-ui-select-frameless .om-component-ui-select-value-large{font-size:var(--om-body-lg-font-size);font-family:var(--om-body-lg-font-family);line-height:var(--om-body-lg-line-height);letter-spacing:var(--om-body-lg-letter-spacing);font-weight:var(--om-body-lg-font-weight);color:var(--om-text-default-tertiary,#646465)}.om-component-ui-select-frameless .om-component-ui-select-placeholder-small,.om-component-ui-select-frameless .om-component-ui-select-value-small{font-size:var(--om-body-md-font-size);font-family:var(--om-body-md-font-family);line-height:var(--om-body-md-line-height);letter-spacing:var(--om-body-md-letter-spacing);font-weight:var(--om-body-md-font-weight);color:var(--om-text-default-tertiary,#646465)}.om-component-ui-select-frameless.om-component-ui-select-disabled{color:var(--om-text-disabled,#bbbdc1)}
|
|
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-select {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-200, 8px);
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
.om-component-ui-select-label-row {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
gap: var(--om-spacing-100, 4px);
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
.om-component-ui-select-label-text {
|
|
35
|
+
display: inline;
|
|
36
|
+
}
|
|
37
|
+
.om-component-ui-select-required {
|
|
38
|
+
color: var(--om-text-danger, #ae0000);
|
|
39
|
+
}
|
|
40
|
+
.om-component-ui-select-info {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
color: var(--om-icon-default-tertiary, #646465);
|
|
44
|
+
}
|
|
45
|
+
.om-component-ui-select-description-text {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
.om-component-ui-select-trigger {
|
|
49
|
+
display: flex;
|
|
50
|
+
gap: var(--om-spacing-200, 8px);
|
|
51
|
+
align-items: center;
|
|
52
|
+
width: 100%;
|
|
53
|
+
min-width: 120px;
|
|
54
|
+
color: inherit;
|
|
55
|
+
text-align: left;
|
|
56
|
+
border: 1px solid var(--om-border-default, #d1d2d2);
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
59
|
+
}
|
|
60
|
+
.om-component-ui-select-trigger-large {
|
|
61
|
+
min-height: var(--om-component-height-3xl, 56px);
|
|
62
|
+
padding: var(--om-spacing-300, 12px);
|
|
63
|
+
border-radius: var(--om-radius-300, 12px);
|
|
64
|
+
}
|
|
65
|
+
.om-component-ui-select-trigger-small {
|
|
66
|
+
min-height: var(--om-component-height-lg, 44px);
|
|
67
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-300, 12px);
|
|
68
|
+
border-radius: var(--om-radius-200, 8px);
|
|
69
|
+
}
|
|
70
|
+
.om-component-ui-select-trigger-fill {
|
|
71
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
72
|
+
}
|
|
73
|
+
.om-component-ui-select-trigger-stroke {
|
|
74
|
+
background-color: transparent;
|
|
75
|
+
}
|
|
76
|
+
.om-component-ui-select-trigger-frameless {
|
|
77
|
+
justify-content: flex-start;
|
|
78
|
+
width: auto;
|
|
79
|
+
min-width: auto;
|
|
80
|
+
min-height: auto;
|
|
81
|
+
padding: 0;
|
|
82
|
+
background: transparent;
|
|
83
|
+
border: none;
|
|
84
|
+
border-radius: 0;
|
|
85
|
+
}
|
|
86
|
+
.om-component-ui-select-trigger:not(.om-component-ui-select-trigger-disabled, .om-component-ui-select-trigger-readonly):hover {
|
|
87
|
+
border-color: var(--om-border-default-tertiary, #404042);
|
|
88
|
+
}
|
|
89
|
+
.om-component-ui-select-trigger:focus-visible {
|
|
90
|
+
outline: none;
|
|
91
|
+
}
|
|
92
|
+
.om-component-ui-select-trigger-open:focus-visible {
|
|
93
|
+
outline: none;
|
|
94
|
+
}
|
|
95
|
+
.om-component-ui-select-trigger-frameless:not(.om-component-ui-select-trigger-disabled, .om-component-ui-select-trigger-readonly):hover {
|
|
96
|
+
border-color: transparent;
|
|
97
|
+
}
|
|
98
|
+
.om-component-ui-select-trigger-open {
|
|
99
|
+
border-color: var(--om-border-brand, #073387);
|
|
100
|
+
box-shadow: inset 0 0 0 1px var(--om-border-brand, #073387);
|
|
101
|
+
}
|
|
102
|
+
.om-component-ui-select-trigger-error {
|
|
103
|
+
border-color: var(--om-border-danger, #ae0000);
|
|
104
|
+
}
|
|
105
|
+
.om-component-ui-select-trigger-warning {
|
|
106
|
+
border-color: var(--om-border-warning, #db8600);
|
|
107
|
+
}
|
|
108
|
+
.om-component-ui-select-trigger-success {
|
|
109
|
+
border-color: var(--om-border-positive, #1f5800);
|
|
110
|
+
}
|
|
111
|
+
.om-component-ui-select-trigger-disabled {
|
|
112
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
113
|
+
background-color: var(--om-bg-disabled, #f0f0f0);
|
|
114
|
+
border-color: var(--om-border-disabled, #e3e4e4);
|
|
115
|
+
box-shadow: none;
|
|
116
|
+
cursor: not-allowed;
|
|
117
|
+
}
|
|
118
|
+
.om-component-ui-select-trigger-readonly, .om-component-ui-select-trigger-readonly:hover, .om-component-ui-select-trigger-readonly:focus, .om-component-ui-select-trigger-readonly:focus-visible {
|
|
119
|
+
background-color: var(--om-bg-neutral-tertiary, #f0f0f0);
|
|
120
|
+
border-color: transparent;
|
|
121
|
+
outline: none;
|
|
122
|
+
box-shadow: none;
|
|
123
|
+
cursor: default;
|
|
124
|
+
}
|
|
125
|
+
.om-component-ui-select-trigger-error, .om-component-ui-select-trigger-warning, .om-component-ui-select-trigger-success, .om-component-ui-select-trigger-frameless {
|
|
126
|
+
box-shadow: none;
|
|
127
|
+
}
|
|
128
|
+
.om-component-ui-select-trigger-disabled .om-component-ui-select-prefix, .om-component-ui-select-trigger-disabled .om-component-ui-select-icon {
|
|
129
|
+
color: var(--om-icon-disabled, #d1d2d2);
|
|
130
|
+
}
|
|
131
|
+
.om-component-ui-select-content {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex: 1 1 auto;
|
|
134
|
+
gap: var(--om-spacing-200, 8px);
|
|
135
|
+
align-items: center;
|
|
136
|
+
min-width: 0;
|
|
137
|
+
}
|
|
138
|
+
.om-component-ui-select-prefix {
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
flex-shrink: 0;
|
|
141
|
+
align-items: center;
|
|
142
|
+
color: var(--om-icon-default-tertiary, #646465);
|
|
143
|
+
}
|
|
144
|
+
.om-component-ui-select-value, .om-component-ui-select-placeholder {
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
flex: 1 1 auto;
|
|
147
|
+
min-width: 0;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
text-overflow: ellipsis;
|
|
151
|
+
}
|
|
152
|
+
.om-component-ui-select-value-large {
|
|
153
|
+
font-size: var(--om-body-lg-font-size);
|
|
154
|
+
font-family: var(--om-body-lg-font-family);
|
|
155
|
+
line-height: var(--om-body-lg-line-height);
|
|
156
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
157
|
+
font-weight: var(--om-body-lg-strong-font-weight);
|
|
158
|
+
}
|
|
159
|
+
.om-component-ui-select-value-small {
|
|
160
|
+
font-size: var(--om-body-md-font-size);
|
|
161
|
+
font-family: var(--om-body-md-font-family);
|
|
162
|
+
line-height: var(--om-body-md-line-height);
|
|
163
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
164
|
+
font-weight: var(--om-body-md-strong-font-weight);
|
|
165
|
+
}
|
|
166
|
+
.om-component-ui-select-placeholder-large {
|
|
167
|
+
font-size: var(--om-body-lg-font-size);
|
|
168
|
+
font-family: var(--om-body-lg-font-family);
|
|
169
|
+
line-height: var(--om-body-lg-line-height);
|
|
170
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
171
|
+
font-weight: var(--om-body-lg-font-weight);
|
|
172
|
+
}
|
|
173
|
+
.om-component-ui-select-placeholder-small {
|
|
174
|
+
font-size: var(--om-body-md-font-size);
|
|
175
|
+
font-family: var(--om-body-md-font-family);
|
|
176
|
+
line-height: var(--om-body-md-line-height);
|
|
177
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
178
|
+
font-weight: var(--om-body-md-font-weight);
|
|
179
|
+
}
|
|
180
|
+
.om-component-ui-select-value {
|
|
181
|
+
color: var(--om-text-default, #131313);
|
|
182
|
+
}
|
|
183
|
+
.om-component-ui-select-value-multiple {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-wrap: wrap;
|
|
186
|
+
gap: var(--om-spacing-200, 8px);
|
|
187
|
+
align-content: flex-start;
|
|
188
|
+
align-items: center;
|
|
189
|
+
max-height: 88px;
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
white-space: normal;
|
|
192
|
+
text-overflow: clip;
|
|
193
|
+
}
|
|
194
|
+
.om-component-ui-select-placeholder {
|
|
195
|
+
color: var(--om-text-neutral-secondary, #9fa3a3);
|
|
196
|
+
}
|
|
197
|
+
.om-component-ui-select-value-disabled, .om-component-ui-select-placeholder-disabled {
|
|
198
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
199
|
+
}
|
|
200
|
+
.om-component-ui-select-icon {
|
|
201
|
+
display: inline-flex;
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
align-items: center;
|
|
204
|
+
color: var(--om-icon-default, #131313);
|
|
205
|
+
}
|
|
206
|
+
.om-component-ui-select-trigger-multiple-filled {
|
|
207
|
+
padding-top: var(--om-spacing-200, 8px);
|
|
208
|
+
padding-bottom: var(--om-spacing-200, 8px);
|
|
209
|
+
}
|
|
210
|
+
.om-component-ui-select-tag {
|
|
211
|
+
font-size: var(--om-body-sm-font-size);
|
|
212
|
+
font-family: var(--om-body-sm-font-family);
|
|
213
|
+
line-height: var(--om-body-sm-line-height);
|
|
214
|
+
letter-spacing: var(--om-body-sm-letter-spacing);
|
|
215
|
+
font-weight: var(--om-body-sm-strong-font-weight);
|
|
216
|
+
display: inline-flex;
|
|
217
|
+
flex-shrink: 0;
|
|
218
|
+
gap: var(--om-spacing-100, 4px);
|
|
219
|
+
align-items: center;
|
|
220
|
+
justify-content: center;
|
|
221
|
+
max-width: 100%;
|
|
222
|
+
padding: var(--om-spacing-100, 4px) var(--om-spacing-200, 8px);
|
|
223
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
224
|
+
background-color: var(--om-bg-neutral-tertiary, #f0f0f0);
|
|
225
|
+
border-radius: var(--om-radius-full, 9999px);
|
|
226
|
+
}
|
|
227
|
+
.om-component-ui-select-tag-label {
|
|
228
|
+
min-width: 0;
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
white-space: nowrap;
|
|
231
|
+
text-overflow: ellipsis;
|
|
232
|
+
}
|
|
233
|
+
.om-component-ui-select-tag-remove {
|
|
234
|
+
display: inline-flex;
|
|
235
|
+
flex-shrink: 0;
|
|
236
|
+
align-items: center;
|
|
237
|
+
justify-content: center;
|
|
238
|
+
color: currentcolor;
|
|
239
|
+
}
|
|
240
|
+
.om-component-ui-select-collapsed-values {
|
|
241
|
+
display: inline-flex;
|
|
242
|
+
flex: 1 1 auto;
|
|
243
|
+
gap: var(--om-spacing-100, 4px);
|
|
244
|
+
align-items: center;
|
|
245
|
+
min-width: 0;
|
|
246
|
+
}
|
|
247
|
+
.om-component-ui-select-collapsed-values-list {
|
|
248
|
+
min-width: 0;
|
|
249
|
+
overflow: hidden;
|
|
250
|
+
white-space: nowrap;
|
|
251
|
+
text-overflow: ellipsis;
|
|
252
|
+
}
|
|
253
|
+
.om-component-ui-select-collapsed-values-extra {
|
|
254
|
+
flex-shrink: 0;
|
|
255
|
+
color: var(--om-text-default-secondary, #404042);
|
|
256
|
+
}
|
|
257
|
+
.om-component-ui-select-collapsed-values-extra-disabled {
|
|
258
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
259
|
+
}
|
|
260
|
+
.om-component-ui-select-feedback {
|
|
261
|
+
display: inline-flex;
|
|
262
|
+
gap: var(--om-spacing-100, 4px);
|
|
263
|
+
align-items: center;
|
|
264
|
+
color: var(--om-text-default-secondary, #404042);
|
|
265
|
+
}
|
|
266
|
+
.om-component-ui-select-feedback-error {
|
|
267
|
+
color: var(--om-text-danger, #ae0000) !important;
|
|
268
|
+
}
|
|
269
|
+
.om-component-ui-select-feedback-warning {
|
|
270
|
+
color: var(--om-text-warning, #db8600);
|
|
271
|
+
}
|
|
272
|
+
.om-component-ui-select-feedback-success {
|
|
273
|
+
color: var(--om-text-positive, #1f5800);
|
|
274
|
+
}
|
|
275
|
+
.om-component-ui-select-feedback-disabled {
|
|
276
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
277
|
+
}
|
|
278
|
+
.om-component-ui-select-feedback-icon {
|
|
279
|
+
display: inline-flex;
|
|
280
|
+
flex-shrink: 0;
|
|
281
|
+
align-items: center;
|
|
282
|
+
margin-top: 1px;
|
|
283
|
+
}
|
|
284
|
+
.om-component-ui-select-panel {
|
|
285
|
+
z-index: 1500;
|
|
286
|
+
display: flex;
|
|
287
|
+
flex-direction: column;
|
|
288
|
+
padding: var(--om-spacing-200, 8px);
|
|
289
|
+
overflow: hidden;
|
|
290
|
+
background-color: var(--om-bg-default, #fff);
|
|
291
|
+
border: 1px solid var(--om-border-neutral-tertiary, #f8f8f8);
|
|
292
|
+
border-radius: var(--om-radius-300, 12px);
|
|
293
|
+
box-shadow: var(--om-shadow-100, 0 4px 8px rgba(65, 91, 130, 0.12));
|
|
294
|
+
}
|
|
295
|
+
.om-component-ui-select-search {
|
|
296
|
+
display: flex;
|
|
297
|
+
flex-shrink: 0;
|
|
298
|
+
gap: var(--om-spacing-200, 8px);
|
|
299
|
+
align-items: center;
|
|
300
|
+
width: 100%;
|
|
301
|
+
margin-bottom: var(--om-spacing-200, 8px);
|
|
302
|
+
background-color: var(--om-bg-default, #fff);
|
|
303
|
+
border: 1px solid var(--om-border-default, #d1d2d2);
|
|
304
|
+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
305
|
+
}
|
|
306
|
+
.om-component-ui-select-search-large {
|
|
307
|
+
min-height: var(--om-component-height-3xl, 56px);
|
|
308
|
+
padding: var(--om-spacing-300, 12px) var(--om-spacing-400, 16px);
|
|
309
|
+
border-radius: var(--om-radius-300, 12px);
|
|
310
|
+
}
|
|
311
|
+
.om-component-ui-select-search-small {
|
|
312
|
+
min-height: var(--om-component-height-lg, 44px);
|
|
313
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-300, 12px);
|
|
314
|
+
border-radius: var(--om-radius-200, 8px);
|
|
315
|
+
}
|
|
316
|
+
.om-component-ui-select-search:hover {
|
|
317
|
+
border-color: var(--om-border-default-tertiary, #404042);
|
|
318
|
+
}
|
|
319
|
+
.om-component-ui-select-search:focus-within {
|
|
320
|
+
border-color: var(--om-border-brand, #073387);
|
|
321
|
+
box-shadow: inset 0 0 0 1px var(--om-border-brand, #073387);
|
|
322
|
+
}
|
|
323
|
+
.om-component-ui-select-search-icon {
|
|
324
|
+
display: inline-flex;
|
|
325
|
+
flex-shrink: 0;
|
|
326
|
+
align-items: center;
|
|
327
|
+
justify-content: center;
|
|
328
|
+
color: var(--om-icon-default, #131313);
|
|
329
|
+
}
|
|
330
|
+
.om-component-ui-select-search-input {
|
|
331
|
+
flex: 1 1 auto;
|
|
332
|
+
min-width: 0;
|
|
333
|
+
color: var(--om-text-default, #131313);
|
|
334
|
+
background: transparent;
|
|
335
|
+
border: none;
|
|
336
|
+
outline: none;
|
|
337
|
+
}
|
|
338
|
+
.om-component-ui-select-search-input-large {
|
|
339
|
+
font-size: var(--om-body-lg-font-size);
|
|
340
|
+
font-family: var(--om-body-lg-font-family);
|
|
341
|
+
line-height: var(--om-body-lg-line-height);
|
|
342
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
343
|
+
font-weight: var(--om-body-lg-font-weight);
|
|
344
|
+
}
|
|
345
|
+
.om-component-ui-select-search-input-small {
|
|
346
|
+
font-size: var(--om-body-md-font-size);
|
|
347
|
+
font-family: var(--om-body-md-font-family);
|
|
348
|
+
line-height: var(--om-body-md-line-height);
|
|
349
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
350
|
+
font-weight: var(--om-body-md-font-weight);
|
|
351
|
+
}
|
|
352
|
+
.om-component-ui-select-search-input::-moz-placeholder {
|
|
353
|
+
color: var(--om-text-neutral-secondary, #9fa3a3);
|
|
354
|
+
}
|
|
355
|
+
.om-component-ui-select-search-input::placeholder {
|
|
356
|
+
color: var(--om-text-neutral-secondary, #9fa3a3);
|
|
357
|
+
}
|
|
358
|
+
.om-component-ui-select-panel-body {
|
|
359
|
+
display: flex;
|
|
360
|
+
flex: 1 1 auto;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
gap: var(--om-spacing-050, 2px);
|
|
363
|
+
min-height: 0;
|
|
364
|
+
overflow-y: auto;
|
|
365
|
+
}
|
|
366
|
+
.om-component-ui-select-panel-footer {
|
|
367
|
+
flex-shrink: 0;
|
|
368
|
+
width: 100%;
|
|
369
|
+
padding-top: var(--om-spacing-300, 12px);
|
|
370
|
+
padding-bottom: var(--om-spacing-100, 4px);
|
|
371
|
+
border-top: 1px solid var(--om-border-neutral-secondary, #f0f0f0);
|
|
372
|
+
}
|
|
373
|
+
.om-component-ui-select-group {
|
|
374
|
+
display: flex;
|
|
375
|
+
flex-direction: column;
|
|
376
|
+
width: 100%;
|
|
377
|
+
}
|
|
378
|
+
.om-component-ui-select-group-label {
|
|
379
|
+
display: flex;
|
|
380
|
+
align-items: center;
|
|
381
|
+
width: 100%;
|
|
382
|
+
padding: var(--om-spacing-200, 8px) 0;
|
|
383
|
+
color: var(--om-text-default, #131313);
|
|
384
|
+
}
|
|
385
|
+
.om-component-ui-select-option {
|
|
386
|
+
display: flex;
|
|
387
|
+
gap: var(--om-spacing-300, 12px);
|
|
388
|
+
align-items: center;
|
|
389
|
+
width: 100%;
|
|
390
|
+
min-height: 40px;
|
|
391
|
+
margin: var(--om-spacing-100, 4px) 0;
|
|
392
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-200, 8px);
|
|
393
|
+
color: var(--om-text-default, #131313);
|
|
394
|
+
text-align: left;
|
|
395
|
+
background: transparent;
|
|
396
|
+
border: none;
|
|
397
|
+
border-radius: var(--om-radius-200, 8px);
|
|
398
|
+
cursor: pointer;
|
|
399
|
+
transition: background-color 0.2s ease;
|
|
400
|
+
}
|
|
401
|
+
.om-component-ui-select-option:focus, .om-component-ui-select-option:focus-visible {
|
|
402
|
+
outline: none;
|
|
403
|
+
box-shadow: none;
|
|
404
|
+
}
|
|
405
|
+
.om-component-ui-select-option:hover, .om-component-ui-select-option-active, .om-component-ui-select-option-selected {
|
|
406
|
+
background-color: var(--om-bg-default-secondary, #f8f8f8);
|
|
407
|
+
}
|
|
408
|
+
.om-component-ui-select-option-disabled {
|
|
409
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
410
|
+
background-color: transparent;
|
|
411
|
+
cursor: not-allowed;
|
|
412
|
+
}
|
|
413
|
+
.om-component-ui-select-option-content {
|
|
414
|
+
display: flex;
|
|
415
|
+
flex: 1 1 auto;
|
|
416
|
+
flex-direction: column;
|
|
417
|
+
gap: var(--om-spacing-050, 2px);
|
|
418
|
+
min-width: 0;
|
|
419
|
+
}
|
|
420
|
+
.om-component-ui-select-option-label {
|
|
421
|
+
min-width: 0;
|
|
422
|
+
overflow: hidden;
|
|
423
|
+
color: currentcolor;
|
|
424
|
+
white-space: nowrap;
|
|
425
|
+
text-overflow: ellipsis;
|
|
426
|
+
}
|
|
427
|
+
.om-component-ui-select-option-description {
|
|
428
|
+
min-width: 0;
|
|
429
|
+
overflow: hidden;
|
|
430
|
+
white-space: nowrap;
|
|
431
|
+
text-overflow: ellipsis;
|
|
432
|
+
}
|
|
433
|
+
.om-component-ui-select-option-check {
|
|
434
|
+
display: inline-flex;
|
|
435
|
+
flex-shrink: 0;
|
|
436
|
+
align-items: center;
|
|
437
|
+
justify-content: center;
|
|
438
|
+
width: 16px;
|
|
439
|
+
height: 16px;
|
|
440
|
+
margin-left: auto;
|
|
441
|
+
color: var(--om-icon-brand, #073387);
|
|
442
|
+
}
|
|
443
|
+
.om-component-ui-select-empty {
|
|
444
|
+
padding: var(--om-spacing-200, 8px);
|
|
445
|
+
text-align: center;
|
|
446
|
+
}
|
|
447
|
+
.om-component-ui-select-frameless {
|
|
448
|
+
width: auto;
|
|
449
|
+
}
|
|
450
|
+
.om-component-ui-select-frameless .om-component-ui-select-value-large, .om-component-ui-select-frameless .om-component-ui-select-placeholder-large {
|
|
451
|
+
font-size: var(--om-body-lg-font-size);
|
|
452
|
+
font-family: var(--om-body-lg-font-family);
|
|
453
|
+
line-height: var(--om-body-lg-line-height);
|
|
454
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
455
|
+
font-weight: var(--om-body-lg-font-weight);
|
|
456
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
457
|
+
}
|
|
458
|
+
.om-component-ui-select-frameless .om-component-ui-select-value-small, .om-component-ui-select-frameless .om-component-ui-select-placeholder-small {
|
|
459
|
+
font-size: var(--om-body-md-font-size);
|
|
460
|
+
font-family: var(--om-body-md-font-family);
|
|
461
|
+
line-height: var(--om-body-md-line-height);
|
|
462
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
463
|
+
font-weight: var(--om-body-md-font-weight);
|
|
464
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
465
|
+
}
|
|
466
|
+
.om-component-ui-select-frameless.om-component-ui-select-disabled {
|
|
467
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
468
|
+
}
|
|
@@ -1 +1,54 @@
|
|
|
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-skeleton {
|
|
24
|
+
position: relative;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
background-color: var(--om-bg-neutral-tertiary-hover, #e3e4e4);
|
|
27
|
+
border-radius: var(--om-radius-100, 4px);
|
|
28
|
+
}
|
|
29
|
+
.om-component-ui-skeleton::after {
|
|
30
|
+
position: absolute;
|
|
31
|
+
inset: 0;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
background: linear-gradient(90deg, transparent, var(--om-bg-scrim-light, rgba(255, 255, 255, 0.8)), transparent);
|
|
34
|
+
transform: translateX(-100%);
|
|
35
|
+
animation: om-skeleton-wave 1.2s infinite;
|
|
36
|
+
content: "";
|
|
37
|
+
}
|
|
38
|
+
.om-component-ui-skeleton-circle {
|
|
39
|
+
border-radius: var(--om-radius-full, 9999px);
|
|
40
|
+
}
|
|
41
|
+
.om-component-ui-skeleton-none::after {
|
|
42
|
+
animation: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* stylelint-disable at-rule-prelude-no-invalid */
|
|
46
|
+
@keyframes om-skeleton-wave {
|
|
47
|
+
from {
|
|
48
|
+
transform: translateX(-100%);
|
|
49
|
+
}
|
|
50
|
+
to {
|
|
51
|
+
transform: translateX(100%);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/* stylelint-enable at-rule-prelude-no-invalid */
|