@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,98 @@
|
|
|
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-tooltip[role=tooltip] {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-0, 0px);
|
|
27
|
+
align-items: center;
|
|
28
|
+
min-width: 48px;
|
|
29
|
+
max-width: 400px;
|
|
30
|
+
padding: var(--om-spacing-200, 8px) var(--om-spacing-300, 12px);
|
|
31
|
+
color: var(--om-text-on-neutral, #fff);
|
|
32
|
+
background-color: var(--om-bg-neutral, #131313);
|
|
33
|
+
border-radius: var(--om-radius-200, 8px);
|
|
34
|
+
box-shadow: var(--om-shadow-200, 0 10px 22px rgba(0, 0, 0, 0.1));
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
.om-component-ui-tooltip[role=tooltip] .om-component-ui-tooltip-title {
|
|
38
|
+
font-size: var(--om-title-sm-font-size);
|
|
39
|
+
font-family: var(--om-title-sm-font-family);
|
|
40
|
+
line-height: var(--om-title-sm-line-height);
|
|
41
|
+
letter-spacing: var(--om-title-sm-letter-spacing);
|
|
42
|
+
font-weight: var(--om-title-sm-strong-font-weight);
|
|
43
|
+
}
|
|
44
|
+
.om-component-ui-tooltip[role=tooltip] .om-component-ui-tooltip-body {
|
|
45
|
+
font-size: var(--om-body-sm-font-size);
|
|
46
|
+
font-family: var(--om-body-sm-font-family);
|
|
47
|
+
line-height: var(--om-body-sm-line-height);
|
|
48
|
+
letter-spacing: var(--om-body-sm-letter-spacing);
|
|
49
|
+
font-weight: var(--om-body-sm-strong-font-weight);
|
|
50
|
+
}
|
|
51
|
+
.om-component-ui-tooltip[role=tooltip].om-component-ui-tooltip-with-title {
|
|
52
|
+
align-items: flex-start;
|
|
53
|
+
text-align: left;
|
|
54
|
+
}
|
|
55
|
+
.om-component-ui-tooltip[role=tooltip] .om-component-ui-tooltip-arrow {
|
|
56
|
+
background-color: var(--om-bg-neutral, #131313);
|
|
57
|
+
border-radius: 0;
|
|
58
|
+
-webkit-mask-position: center;
|
|
59
|
+
mask-position: center;
|
|
60
|
+
-webkit-mask-repeat: no-repeat;
|
|
61
|
+
mask-repeat: no-repeat;
|
|
62
|
+
-webkit-mask-size: 100% 100%;
|
|
63
|
+
mask-size: 100% 100%;
|
|
64
|
+
}
|
|
65
|
+
.om-component-ui-tooltip[role=tooltip][class*=react-tooltip__place-top] > .om-component-ui-tooltip-arrow, .om-component-ui-tooltip[role=tooltip][class*=react-tooltip__place-bottom] > .om-component-ui-tooltip-arrow {
|
|
66
|
+
width: 36px;
|
|
67
|
+
height: 9px;
|
|
68
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzYgOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTcuMzE0NiA3LjM1NDk1TDEwLjM2NjQgMC44MTU0QzkuODA5ODcgMC4yOTE2NDIgOS4wNzQ0NyAwIDguMzEwMjcgMEgyNy42ODk3QzI2LjkyNTUgMCAyNi4xOTAxIDAuMjkxNjQyIDI1LjYzMzYgMC44MTU0MDFMMTguNjg1NCA3LjM1NDk1QzE4LjMwMDMgNy43MTczNSAxNy42OTk3IDcuNzE3MzUgMTcuMzE0NiA3LjM1NDk1WiIgZmlsbD0iIzAwMDAwMCIvPjxwYXRoIGQ9Ik04IDAuNUg4LjM0MzE1QzkuNDA0MDEgMC41IDEwLjQyMTQgMC45MjE0MjcgMTEuMTcxNiAxLjY3MTU3TDE3LjI5MjkgNy43OTI4OUMxNy42ODM0IDguMTgzNDIgMTguMzE2NiA4LjE4MzQyIDE4LjcwNzEgNy43OTI4OUwyNC44Mjg0IDEuNjcxNTdDMjUuNTc4NiAwLjkyMTQyNiAyNi41OTYgMC41IDI3LjY1NjkgMC41SDI4IiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvc3ZnPg==");
|
|
69
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzYgOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTcuMzE0NiA3LjM1NDk1TDEwLjM2NjQgMC44MTU0QzkuODA5ODcgMC4yOTE2NDIgOS4wNzQ0NyAwIDguMzEwMjcgMEgyNy42ODk3QzI2LjkyNTUgMCAyNi4xOTAxIDAuMjkxNjQyIDI1LjYzMzYgMC44MTU0MDFMMTguNjg1NCA3LjM1NDk1QzE4LjMwMDMgNy43MTczNSAxNy42OTk3IDcuNzE3MzUgMTcuMzE0NiA3LjM1NDk1WiIgZmlsbD0iIzAwMDAwMCIvPjxwYXRoIGQ9Ik04IDAuNUg4LjM0MzE1QzkuNDA0MDEgMC41IDEwLjQyMTQgMC45MjE0MjcgMTEuMTcxNiAxLjY3MTU3TDE3LjI5MjkgNy43OTI4OUMxNy42ODM0IDguMTgzNDIgMTguMzE2NiA4LjE4MzQyIDE4LjcwNzEgNy43OTI4OUwyNC44Mjg0IDEuNjcxNTdDMjUuNTc4NiAwLjkyMTQyNiAyNi41OTYgMC41IDI3LjY1NjkgMC41SDI4IiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvc3ZnPg==");
|
|
70
|
+
}
|
|
71
|
+
.om-component-ui-tooltip[role=tooltip][class*=react-tooltip__place-left] > .om-component-ui-tooltip-arrow, .om-component-ui-tooltip[role=tooltip][class*=react-tooltip__place-right] > .om-component-ui-tooltip-arrow {
|
|
72
|
+
width: 9px;
|
|
73
|
+
height: 36px;
|
|
74
|
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOSAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDM2KSByb3RhdGUoLTkwKSI+PHBhdGggZD0iTTE3LjMxNDYgNy4zNTQ5NUwxMC4zNjY0IDAuODE1NEM5LjgwOTg3IDAuMjkxNjQyIDkuMDc0NDcgMCA4LjMxMDI3IDBIMjcuNjg5N0MyNi45MjU1IDAgMjYuMTkwMSAwLjI5MTY0MiAyNS42MzM2IDAuODE1NDAxTDE4LjY4NTQgNy4zNTQ5NUMxOC4zMDAzIDcuNzE3MzUgMTcuNjk5NyA3LjcxNzM1IDE3LjMxNDYgNy4zNTQ5NVoiIGZpbGw9IiMwMDAwMDAiLz48cGF0aCBkPSJNOCAwLjVIOC4zNDMxNUM5LjQwNDAxIDAuNSAxMC40MjE0IDAuOTIxNDI3IDExLjE3MTYgMS42NzE1N0wxNy4yOTI5IDcuNzkyODlDMTcuNjgzNCA4LjE4MzQyIDE4LjMxNjYgOC4xODM0MiAxOC43MDcxIDcuNzkyODlMMjQuODI4NCAxLjY3MTU3QzI1LjU3ODYgMC45MjE0MjYgMjYuNTk2IDAuNSAyNy42NTY5IDAuNUgyOCIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L2c+PC9zdmc+");
|
|
75
|
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOSAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDM2KSByb3RhdGUoLTkwKSI+PHBhdGggZD0iTTE3LjMxNDYgNy4zNTQ5NUwxMC4zNjY0IDAuODE1NEM5LjgwOTg3IDAuMjkxNjQyIDkuMDc0NDcgMCA4LjMxMDI3IDBIMjcuNjg5N0MyNi45MjU1IDAgMjYuMTkwMSAwLjI5MTY0MiAyNS42MzM2IDAuODE1NDAxTDE4LjY4NTQgNy4zNTQ5NUMxOC4zMDAzIDcuNzE3MzUgMTcuNjk5NyA3LjcxNzM1IDE3LjMxNDYgNy4zNTQ5NVoiIGZpbGw9IiMwMDAwMDAiLz48cGF0aCBkPSJNOCAwLjVIOC4zNDMxNUM5LjQwNDAxIDAuNSAxMC40MjE0IDAuOTIxNDI3IDExLjE3MTYgMS42NzE1N0wxNy4yOTI5IDcuNzkyODlDMTcuNjgzNCA4LjE4MzQyIDE4LjMxNjYgOC4xODM0MiAxOC43MDcxIDcuNzkyODlMMjQuODI4NCAxLjY3MTU3QzI1LjU3ODYgMC45MjE0MjYgMjYuNTk2IDAuNSAyNy42NTY5IDAuNUgyOCIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L2c+PC9zdmc+");
|
|
76
|
+
}
|
|
77
|
+
.om-component-ui-tooltip[role=tooltip][class*=react-tooltip__place-top] > .om-component-ui-tooltip-arrow {
|
|
78
|
+
bottom: -8px !important;
|
|
79
|
+
transform: none;
|
|
80
|
+
}
|
|
81
|
+
.om-component-ui-tooltip[role=tooltip][class*=react-tooltip__place-bottom] > .om-component-ui-tooltip-arrow {
|
|
82
|
+
top: -8px !important;
|
|
83
|
+
transform: rotate(180deg);
|
|
84
|
+
}
|
|
85
|
+
.om-component-ui-tooltip[role=tooltip][class*=react-tooltip__place-left] > .om-component-ui-tooltip-arrow {
|
|
86
|
+
right: -8px !important;
|
|
87
|
+
transform: none;
|
|
88
|
+
}
|
|
89
|
+
.om-component-ui-tooltip[role=tooltip][class*=react-tooltip__place-right] > .om-component-ui-tooltip-arrow {
|
|
90
|
+
left: -8px !important;
|
|
91
|
+
transform: rotate(180deg);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (max-width: 767.98px) {
|
|
95
|
+
.om-component-ui-tooltip[role=tooltip] {
|
|
96
|
+
max-width: 300px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1 +1,35 @@
|
|
|
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-trigger-panel {
|
|
24
|
+
z-index: 1500;
|
|
25
|
+
padding: var(--om-spacing-200, 8px);
|
|
26
|
+
background-color: var(--om-bg-default, #fff);
|
|
27
|
+
border: 1px solid var(--om-border-neutral-tertiary, #f8f8f8);
|
|
28
|
+
border-radius: var(--om-radius-300, 12px);
|
|
29
|
+
box-shadow: var(--om-shadow-100, 0 4px 8px rgba(65, 91, 130, 0.12));
|
|
30
|
+
}
|
|
31
|
+
.om-trigger-arrow {
|
|
32
|
+
fill: var(--om-bg-default, #fff);
|
|
33
|
+
stroke: var(--om-border-neutral-tertiary, #f8f8f8);
|
|
34
|
+
stroke-width: 1px;
|
|
35
|
+
}
|
|
@@ -1 +1,444 @@
|
|
|
1
|
-
.om-component-ui-typography{margin:0;color:inherit;-webkit-text-decoration-color:currentcolor;text-decoration-color:currentcolor}.om-component-ui-typography-display-xl{font-size:var(--om-display-xl-font-size);font-family:var(--om-display-xl-font-family);line-height:var(--om-display-xl-line-height);letter-spacing:var(--om-display-xl-letter-spacing);font-weight:var(--om-display-xl-font-weight)}.om-component-ui-typography-display-lg{font-size:var(--om-display-lg-font-size);font-family:var(--om-display-lg-font-family);line-height:var(--om-display-lg-line-height);letter-spacing:var(--om-display-lg-letter-spacing);font-weight:var(--om-display-lg-font-weight)}.om-component-ui-typography-display-md{font-size:var(--om-display-md-font-size);font-family:var(--om-display-md-font-family);line-height:var(--om-display-md-line-height);letter-spacing:var(--om-display-md-letter-spacing);font-weight:var(--om-display-md-font-weight)}.om-component-ui-typography-display-sm{font-size:var(--om-display-sm-font-size);font-family:var(--om-display-sm-font-family);line-height:var(--om-display-sm-line-height);letter-spacing:var(--om-display-sm-letter-spacing);font-weight:var(--om-display-sm-font-weight)}.om-component-ui-typography-display-xs{font-size:var(--om-display-xs-font-size);font-family:var(--om-display-xs-font-family);line-height:var(--om-display-xs-line-height);letter-spacing:var(--om-display-xs-letter-spacing);font-weight:var(--om-display-xs-font-weight)}.om-component-ui-typography-headline-lg{font-size:var(--om-headline-lg-font-size);font-family:var(--om-headline-lg-font-family);line-height:var(--om-headline-lg-line-height);letter-spacing:var(--om-headline-lg-letter-spacing);font-weight:var(--om-headline-lg-font-weight)}.om-component-ui-typography-headline-md{font-size:var(--om-headline-md-font-size);font-family:var(--om-headline-md-font-family);line-height:var(--om-headline-md-line-height);letter-spacing:var(--om-headline-md-letter-spacing);font-weight:var(--om-headline-md-font-weight)}.om-component-ui-typography-headline-sm{font-size:var(--om-headline-sm-font-size);font-family:var(--om-headline-sm-font-family);line-height:var(--om-headline-sm-line-height);letter-spacing:var(--om-headline-sm-letter-spacing);font-weight:var(--om-headline-sm-font-weight)}.om-component-ui-typography-headline-xs{font-size:var(--om-headline-xs-font-size);font-family:var(--om-headline-xs-font-family);line-height:var(--om-headline-xs-line-height);letter-spacing:var(--om-headline-xs-letter-spacing);font-weight:var(--om-headline-xs-font-weight)}.om-component-ui-typography-title-lg{font-size:var(--om-title-lg-font-size);font-family:var(--om-title-lg-font-family);line-height:var(--om-title-lg-line-height);letter-spacing:var(--om-title-lg-letter-spacing);font-weight:var(--om-title-lg-font-weight)}.om-component-ui-typography-title-md{font-size:var(--om-title-md-font-size);font-family:var(--om-title-md-font-family);line-height:var(--om-title-md-line-height);letter-spacing:var(--om-title-md-letter-spacing);font-weight:var(--om-title-md-font-weight)}.om-component-ui-typography-title-sm{font-size:var(--om-title-sm-font-size);font-family:var(--om-title-sm-font-family);line-height:var(--om-title-sm-line-height);letter-spacing:var(--om-title-sm-letter-spacing);font-weight:var(--om-title-sm-font-weight)}.om-component-ui-typography-body-lg{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-typography-body-md{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-typography-body-sm{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-font-weight)}.om-component-ui-typography-label-xl{font-size:var(--om-label-xl-font-size);font-family:var(--om-label-xl-font-family);line-height:var(--om-label-xl-line-height);letter-spacing:var(--om-label-xl-letter-spacing);font-weight:var(--om-label-xl-font-weight)}.om-component-ui-typography-label-lg{font-size:var(--om-label-lg-font-size);font-family:var(--om-label-lg-font-family);line-height:var(--om-label-lg-line-height);letter-spacing:var(--om-label-lg-letter-spacing);font-weight:var(--om-label-lg-font-weight)}.om-component-ui-typography-label-md{font-size:var(--om-label-md-font-size);font-family:var(--om-label-md-font-family);line-height:var(--om-label-md-line-height);letter-spacing:var(--om-label-md-letter-spacing);font-weight:var(--om-label-md-font-weight)}.om-component-ui-typography-label-sm{font-size:var(--om-label-sm-font-size);font-family:var(--om-label-sm-font-family);line-height:var(--om-label-sm-line-height);letter-spacing:var(--om-label-sm-letter-spacing);font-weight:var(--om-label-sm-font-weight)}.om-component-ui-typography-label-xs{font-size:var(--om-label-xs-font-size);font-family:var(--om-label-xs-font-family);line-height:var(--om-label-xs-line-height);letter-spacing:var(--om-label-xs-letter-spacing);font-weight:var(--om-label-xs-font-weight)}.om-component-ui-typography-link-md{font-size:var(--om-link-md-font-size);font-family:var(--om-link-md-font-family);line-height:var(--om-link-md-line-height);letter-spacing:var(--om-link-md-letter-spacing);font-weight:var(--om-link-md-font-weight);-webkit-text-decoration:var(--om-link-md-text-decoration);text-decoration:var(--om-link-md-text-decoration);-webkit-text-decoration-skip-ink:var(--om-link-md-text-decoration-skip-ink);text-decoration-skip-ink:var(--om-link-md-text-decoration-skip-ink);color:var(--om-text-brand,#073387)}.om-component-ui-typography-link-sm{font-size:var(--om-link-sm-font-size);font-family:var(--om-link-sm-font-family);line-height:var(--om-link-sm-line-height);letter-spacing:var(--om-link-sm-letter-spacing);font-weight:var(--om-link-sm-font-weight);-webkit-text-decoration:var(--om-link-sm-text-decoration);text-decoration:var(--om-link-sm-text-decoration);-webkit-text-decoration-skip-ink:var(--om-link-sm-text-decoration-skip-ink);text-decoration-skip-ink:var(--om-link-sm-text-decoration-skip-ink);color:var(--om-text-brand,#073387)}.om-component-ui-typography-title-lg.om-component-ui-typography-strong{font-size:var(--om-title-lg-font-size);font-family:var(--om-title-lg-font-family);line-height:var(--om-title-lg-line-height);letter-spacing:var(--om-title-lg-letter-spacing);font-weight:var(--om-title-lg-strong-font-weight)}.om-component-ui-typography-title-md.om-component-ui-typography-strong{font-size:var(--om-title-md-font-size);font-family:var(--om-title-md-font-family);line-height:var(--om-title-md-line-height);letter-spacing:var(--om-title-md-letter-spacing);font-weight:var(--om-title-md-strong-font-weight)}.om-component-ui-typography-title-sm.om-component-ui-typography-strong{font-size:var(--om-title-sm-font-size);font-family:var(--om-title-sm-font-family);line-height:var(--om-title-sm-line-height);letter-spacing:var(--om-title-sm-letter-spacing);font-weight:var(--om-title-sm-strong-font-weight)}.om-component-ui-typography-body-lg.om-component-ui-typography-strong{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-typography-body-md.om-component-ui-typography-strong{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-typography-body-sm.om-component-ui-typography-strong{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)}.om-component-ui-typography-label-xl.om-component-ui-typography-strong{font-size:var(--om-label-xl-font-size);font-family:var(--om-label-xl-font-family);line-height:var(--om-label-xl-line-height);letter-spacing:var(--om-label-xl-letter-spacing);font-weight:var(--om-label-xl-strong-font-weight)}.om-component-ui-typography-label-lg.om-component-ui-typography-strong{font-size:var(--om-label-lg-font-size);font-family:var(--om-label-lg-font-family);line-height:var(--om-label-lg-line-height);letter-spacing:var(--om-label-lg-letter-spacing);font-weight:var(--om-label-lg-strong-font-weight)}.om-component-ui-typography-label-md.om-component-ui-typography-strong{font-size:var(--om-label-md-font-size);font-family:var(--om-label-md-font-family);line-height:var(--om-label-md-line-height);letter-spacing:var(--om-label-md-letter-spacing);font-weight:var(--om-label-md-strong-font-weight)}.om-component-ui-typography-label-sm.om-component-ui-typography-strong{font-size:var(--om-label-sm-font-size);font-family:var(--om-label-sm-font-family);line-height:var(--om-label-sm-line-height);letter-spacing:var(--om-label-sm-letter-spacing);font-weight:var(--om-label-sm-strong-font-weight)}.om-component-ui-typography-label-xs.om-component-ui-typography-strong{font-size:var(--om-label-xs-font-size);font-family:var(--om-label-xs-font-family);line-height:var(--om-label-xs-line-height);letter-spacing:var(--om-label-xs-letter-spacing);font-weight:var(--om-label-xs-strong-font-weight)}.om-component-ui-typography-italic{font-style:italic}.om-component-ui-typography-underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.om-component-ui-typography-delete{-webkit-text-decoration-line:line-through;text-decoration-line:line-through}.om-component-ui-typography-underline-delete{-webkit-text-decoration-line:underline line-through;text-decoration-line:underline line-through}.om-component-ui-typography-ellipsis{position:relative;display:block;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap}.om-component-ui-typography-ellipsis-measure{position:absolute;top:0;right:0;left:0;overflow:hidden;white-space:nowrap;visibility:hidden;pointer-events:none}.om-component-ui-typography-copyable-wrapper{display:inline-flex;gap:var(--om-spacing-100,4px);align-items:center;min-width:0;max-width:100%}.om-component-ui-typography-copyable-wrapper-inline{display:inline-flex;vertical-align:bottom}.om-component-ui-typography-copyable-wrapper-block{display:flex;align-items:flex-start;width:100%}.om-component-ui-typography-copyable-content{flex:1 1 auto;min-width:0}.om-component-ui-typography-color-default{color:var(--om-text-default,#131313)}.om-component-ui-typography-color-default-secondary{color:var(--om-text-default-secondary,#404042)}.om-component-ui-typography-color-default-tertiary{color:var(--om-text-default-tertiary,#646465)}.om-component-ui-typography-color-disabled{color:var(--om-text-disabled,#bbbdc1)}.om-component-ui-typography-color-disabled-black{color:var(--om-text-disabled-black,#bbbdc1)}.om-component-ui-typography-color-disabled-white{color:var(--om-text-disabled-white,#f8f8f8)}.om-component-ui-typography-color-brand{color:var(--om-text-brand,#073387)}.om-component-ui-typography-color-brand-secondary{color:var(--om-text-brand-secondary,#a4bbe1)}.om-component-ui-typography-color-brand-tertiary{color:var(--om-text-brand-tertiary,#c1d0eb)}.om-component-ui-typography-color-on-brand{color:var(--om-text-on-brand,#dde6f4)}.om-component-ui-typography-color-on-brand-secondary{color:var(--om-text-on-brand-secondary,#052561)}.om-component-ui-typography-color-on-brand-tertiary{color:var(--om-text-on-brand-tertiary,#03163a)}.om-component-ui-typography-color-neutral{color:var(--om-text-neutral,#404042)}.om-component-ui-typography-color-neutral-secondary{color:var(--om-text-neutral-secondary,#9fa3a3)}.om-component-ui-typography-color-neutral-tertiary{color:var(--om-text-neutral-tertiary,#bbbdc1)}.om-component-ui-typography-color-on-neutral{color:var(--om-text-on-neutral,#fff)}.om-component-ui-typography-color-on-neutral-secondary{color:var(--om-text-on-neutral-secondary,#d1d2d2)}.om-component-ui-typography-color-on-neutral-tertiary{color:var(--om-text-on-neutral-tertiary,#e3e4e4)}.om-component-ui-typography-color-positive{color:var(--om-text-positive,#1f5800)}.om-component-ui-typography-color-positive-secondary{color:var(--om-text-positive-secondary,rgba(31,88,0,.2))}.om-component-ui-typography-color-positive-tertiary{color:var(--om-text-positive-tertiary,rgba(31,88,0,.1))}.om-component-ui-typography-color-on-positive{color:var(--om-text-on-positive,rgba(31,88,0,.05))}.om-component-ui-typography-color-on-positive-secondary{color:var(--om-text-on-positive-secondary,#1b4404)}.om-component-ui-typography-color-on-positive-tertiary{color:var(--om-text-on-positive-tertiary,#003104)}.om-component-ui-typography-color-warning{color:var(--om-text-warning,#db8600)}.om-component-ui-typography-color-warning-secondary{color:var(--om-text-warning-secondary,rgba(244,198,0,.2))}.om-component-ui-typography-color-warning-tertiary{color:var(--om-text-warning-tertiary,rgba(244,198,0,.1))}.om-component-ui-typography-color-on-warning{color:var(--om-text-on-warning,rgba(244,198,0,.05))}.om-component-ui-typography-color-on-warning-secondary{color:var(--om-text-on-warning-secondary,#ffa000)}.om-component-ui-typography-color-on-warning-tertiary{color:var(--om-text-on-warning-tertiary,#db8600)}.om-component-ui-typography-color-danger{color:var(--om-text-danger,#ae0000)}.om-component-ui-typography-color-danger-secondary{color:var(--om-text-danger-secondary,rgba(174,0,0,.2))}.om-component-ui-typography-color-danger-tertiary{color:var(--om-text-danger-tertiary,rgba(174,0,0,.1))}.om-component-ui-typography-color-on-danger{color:var(--om-text-on-danger,rgba(174,0,0,.05))}.om-component-ui-typography-color-on-danger-secondary{color:var(--om-text-on-danger-secondary,#920000)}.om-component-ui-typography-color-on-danger-tertiary{color:var(--om-text-on-danger-tertiary,#780000)}.om-component-ui-typography-disabled{color:var(--om-text-disabled,#bbbdc1);cursor:not-allowed}.om-component-ui-typography-link-md:hover{color:var(--om-text-brand,#073387)}.om-component-ui-typography-link-md.om-component-ui-typography-disabled{color:var(--om-text-disabled,#bbbdc1);pointer-events:none}.om-component-ui-typography-link-sm:hover{color:var(--om-text-brand,#073387)}.om-component-ui-typography-link-sm.om-component-ui-typography-disabled{color:var(--om-text-disabled,#bbbdc1);pointer-events:none}
|
|
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-typography {
|
|
24
|
+
margin: 0;
|
|
25
|
+
color: inherit;
|
|
26
|
+
text-decoration-color: currentcolor;
|
|
27
|
+
}
|
|
28
|
+
.om-component-ui-typography-display-xl {
|
|
29
|
+
font-size: var(--om-display-xl-font-size);
|
|
30
|
+
font-family: var(--om-display-xl-font-family);
|
|
31
|
+
line-height: var(--om-display-xl-line-height);
|
|
32
|
+
letter-spacing: var(--om-display-xl-letter-spacing);
|
|
33
|
+
font-weight: var(--om-display-xl-font-weight);
|
|
34
|
+
}
|
|
35
|
+
.om-component-ui-typography-display-lg {
|
|
36
|
+
font-size: var(--om-display-lg-font-size);
|
|
37
|
+
font-family: var(--om-display-lg-font-family);
|
|
38
|
+
line-height: var(--om-display-lg-line-height);
|
|
39
|
+
letter-spacing: var(--om-display-lg-letter-spacing);
|
|
40
|
+
font-weight: var(--om-display-lg-font-weight);
|
|
41
|
+
}
|
|
42
|
+
.om-component-ui-typography-display-md {
|
|
43
|
+
font-size: var(--om-display-md-font-size);
|
|
44
|
+
font-family: var(--om-display-md-font-family);
|
|
45
|
+
line-height: var(--om-display-md-line-height);
|
|
46
|
+
letter-spacing: var(--om-display-md-letter-spacing);
|
|
47
|
+
font-weight: var(--om-display-md-font-weight);
|
|
48
|
+
}
|
|
49
|
+
.om-component-ui-typography-display-sm {
|
|
50
|
+
font-size: var(--om-display-sm-font-size);
|
|
51
|
+
font-family: var(--om-display-sm-font-family);
|
|
52
|
+
line-height: var(--om-display-sm-line-height);
|
|
53
|
+
letter-spacing: var(--om-display-sm-letter-spacing);
|
|
54
|
+
font-weight: var(--om-display-sm-font-weight);
|
|
55
|
+
}
|
|
56
|
+
.om-component-ui-typography-display-xs {
|
|
57
|
+
font-size: var(--om-display-xs-font-size);
|
|
58
|
+
font-family: var(--om-display-xs-font-family);
|
|
59
|
+
line-height: var(--om-display-xs-line-height);
|
|
60
|
+
letter-spacing: var(--om-display-xs-letter-spacing);
|
|
61
|
+
font-weight: var(--om-display-xs-font-weight);
|
|
62
|
+
}
|
|
63
|
+
.om-component-ui-typography-headline-lg {
|
|
64
|
+
font-size: var(--om-headline-lg-font-size);
|
|
65
|
+
font-family: var(--om-headline-lg-font-family);
|
|
66
|
+
line-height: var(--om-headline-lg-line-height);
|
|
67
|
+
letter-spacing: var(--om-headline-lg-letter-spacing);
|
|
68
|
+
font-weight: var(--om-headline-lg-font-weight);
|
|
69
|
+
}
|
|
70
|
+
.om-component-ui-typography-headline-md {
|
|
71
|
+
font-size: var(--om-headline-md-font-size);
|
|
72
|
+
font-family: var(--om-headline-md-font-family);
|
|
73
|
+
line-height: var(--om-headline-md-line-height);
|
|
74
|
+
letter-spacing: var(--om-headline-md-letter-spacing);
|
|
75
|
+
font-weight: var(--om-headline-md-font-weight);
|
|
76
|
+
}
|
|
77
|
+
.om-component-ui-typography-headline-sm {
|
|
78
|
+
font-size: var(--om-headline-sm-font-size);
|
|
79
|
+
font-family: var(--om-headline-sm-font-family);
|
|
80
|
+
line-height: var(--om-headline-sm-line-height);
|
|
81
|
+
letter-spacing: var(--om-headline-sm-letter-spacing);
|
|
82
|
+
font-weight: var(--om-headline-sm-font-weight);
|
|
83
|
+
}
|
|
84
|
+
.om-component-ui-typography-headline-xs {
|
|
85
|
+
font-size: var(--om-headline-xs-font-size);
|
|
86
|
+
font-family: var(--om-headline-xs-font-family);
|
|
87
|
+
line-height: var(--om-headline-xs-line-height);
|
|
88
|
+
letter-spacing: var(--om-headline-xs-letter-spacing);
|
|
89
|
+
font-weight: var(--om-headline-xs-font-weight);
|
|
90
|
+
}
|
|
91
|
+
.om-component-ui-typography-title-lg {
|
|
92
|
+
font-size: var(--om-title-lg-font-size);
|
|
93
|
+
font-family: var(--om-title-lg-font-family);
|
|
94
|
+
line-height: var(--om-title-lg-line-height);
|
|
95
|
+
letter-spacing: var(--om-title-lg-letter-spacing);
|
|
96
|
+
font-weight: var(--om-title-lg-font-weight);
|
|
97
|
+
}
|
|
98
|
+
.om-component-ui-typography-title-md {
|
|
99
|
+
font-size: var(--om-title-md-font-size);
|
|
100
|
+
font-family: var(--om-title-md-font-family);
|
|
101
|
+
line-height: var(--om-title-md-line-height);
|
|
102
|
+
letter-spacing: var(--om-title-md-letter-spacing);
|
|
103
|
+
font-weight: var(--om-title-md-font-weight);
|
|
104
|
+
}
|
|
105
|
+
.om-component-ui-typography-title-sm {
|
|
106
|
+
font-size: var(--om-title-sm-font-size);
|
|
107
|
+
font-family: var(--om-title-sm-font-family);
|
|
108
|
+
line-height: var(--om-title-sm-line-height);
|
|
109
|
+
letter-spacing: var(--om-title-sm-letter-spacing);
|
|
110
|
+
font-weight: var(--om-title-sm-font-weight);
|
|
111
|
+
}
|
|
112
|
+
.om-component-ui-typography-body-lg {
|
|
113
|
+
font-size: var(--om-body-lg-font-size);
|
|
114
|
+
font-family: var(--om-body-lg-font-family);
|
|
115
|
+
line-height: var(--om-body-lg-line-height);
|
|
116
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
117
|
+
font-weight: var(--om-body-lg-font-weight);
|
|
118
|
+
}
|
|
119
|
+
.om-component-ui-typography-body-md {
|
|
120
|
+
font-size: var(--om-body-md-font-size);
|
|
121
|
+
font-family: var(--om-body-md-font-family);
|
|
122
|
+
line-height: var(--om-body-md-line-height);
|
|
123
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
124
|
+
font-weight: var(--om-body-md-font-weight);
|
|
125
|
+
}
|
|
126
|
+
.om-component-ui-typography-body-sm {
|
|
127
|
+
font-size: var(--om-body-sm-font-size);
|
|
128
|
+
font-family: var(--om-body-sm-font-family);
|
|
129
|
+
line-height: var(--om-body-sm-line-height);
|
|
130
|
+
letter-spacing: var(--om-body-sm-letter-spacing);
|
|
131
|
+
font-weight: var(--om-body-sm-font-weight);
|
|
132
|
+
}
|
|
133
|
+
.om-component-ui-typography-label-xl {
|
|
134
|
+
font-size: var(--om-label-xl-font-size);
|
|
135
|
+
font-family: var(--om-label-xl-font-family);
|
|
136
|
+
line-height: var(--om-label-xl-line-height);
|
|
137
|
+
letter-spacing: var(--om-label-xl-letter-spacing);
|
|
138
|
+
font-weight: var(--om-label-xl-font-weight);
|
|
139
|
+
}
|
|
140
|
+
.om-component-ui-typography-label-lg {
|
|
141
|
+
font-size: var(--om-label-lg-font-size);
|
|
142
|
+
font-family: var(--om-label-lg-font-family);
|
|
143
|
+
line-height: var(--om-label-lg-line-height);
|
|
144
|
+
letter-spacing: var(--om-label-lg-letter-spacing);
|
|
145
|
+
font-weight: var(--om-label-lg-font-weight);
|
|
146
|
+
}
|
|
147
|
+
.om-component-ui-typography-label-md {
|
|
148
|
+
font-size: var(--om-label-md-font-size);
|
|
149
|
+
font-family: var(--om-label-md-font-family);
|
|
150
|
+
line-height: var(--om-label-md-line-height);
|
|
151
|
+
letter-spacing: var(--om-label-md-letter-spacing);
|
|
152
|
+
font-weight: var(--om-label-md-font-weight);
|
|
153
|
+
}
|
|
154
|
+
.om-component-ui-typography-label-sm {
|
|
155
|
+
font-size: var(--om-label-sm-font-size);
|
|
156
|
+
font-family: var(--om-label-sm-font-family);
|
|
157
|
+
line-height: var(--om-label-sm-line-height);
|
|
158
|
+
letter-spacing: var(--om-label-sm-letter-spacing);
|
|
159
|
+
font-weight: var(--om-label-sm-font-weight);
|
|
160
|
+
}
|
|
161
|
+
.om-component-ui-typography-label-xs {
|
|
162
|
+
font-size: var(--om-label-xs-font-size);
|
|
163
|
+
font-family: var(--om-label-xs-font-family);
|
|
164
|
+
line-height: var(--om-label-xs-line-height);
|
|
165
|
+
letter-spacing: var(--om-label-xs-letter-spacing);
|
|
166
|
+
font-weight: var(--om-label-xs-font-weight);
|
|
167
|
+
}
|
|
168
|
+
.om-component-ui-typography-link-md {
|
|
169
|
+
font-size: var(--om-link-md-font-size);
|
|
170
|
+
font-family: var(--om-link-md-font-family);
|
|
171
|
+
line-height: var(--om-link-md-line-height);
|
|
172
|
+
letter-spacing: var(--om-link-md-letter-spacing);
|
|
173
|
+
font-weight: var(--om-link-md-font-weight);
|
|
174
|
+
-webkit-text-decoration: var(--om-link-md-text-decoration);
|
|
175
|
+
text-decoration: var(--om-link-md-text-decoration);
|
|
176
|
+
-webkit-text-decoration-skip-ink: var(--om-link-md-text-decoration-skip-ink);
|
|
177
|
+
text-decoration-skip-ink: var(--om-link-md-text-decoration-skip-ink);
|
|
178
|
+
color: var(--om-text-brand, #073387);
|
|
179
|
+
}
|
|
180
|
+
.om-component-ui-typography-link-sm {
|
|
181
|
+
font-size: var(--om-link-sm-font-size);
|
|
182
|
+
font-family: var(--om-link-sm-font-family);
|
|
183
|
+
line-height: var(--om-link-sm-line-height);
|
|
184
|
+
letter-spacing: var(--om-link-sm-letter-spacing);
|
|
185
|
+
font-weight: var(--om-link-sm-font-weight);
|
|
186
|
+
-webkit-text-decoration: var(--om-link-sm-text-decoration);
|
|
187
|
+
text-decoration: var(--om-link-sm-text-decoration);
|
|
188
|
+
-webkit-text-decoration-skip-ink: var(--om-link-sm-text-decoration-skip-ink);
|
|
189
|
+
text-decoration-skip-ink: var(--om-link-sm-text-decoration-skip-ink);
|
|
190
|
+
color: var(--om-text-brand, #073387);
|
|
191
|
+
}
|
|
192
|
+
.om-component-ui-typography-title-lg.om-component-ui-typography-strong {
|
|
193
|
+
font-size: var(--om-title-lg-font-size);
|
|
194
|
+
font-family: var(--om-title-lg-font-family);
|
|
195
|
+
line-height: var(--om-title-lg-line-height);
|
|
196
|
+
letter-spacing: var(--om-title-lg-letter-spacing);
|
|
197
|
+
font-weight: var(--om-title-lg-strong-font-weight);
|
|
198
|
+
}
|
|
199
|
+
.om-component-ui-typography-title-md.om-component-ui-typography-strong {
|
|
200
|
+
font-size: var(--om-title-md-font-size);
|
|
201
|
+
font-family: var(--om-title-md-font-family);
|
|
202
|
+
line-height: var(--om-title-md-line-height);
|
|
203
|
+
letter-spacing: var(--om-title-md-letter-spacing);
|
|
204
|
+
font-weight: var(--om-title-md-strong-font-weight);
|
|
205
|
+
}
|
|
206
|
+
.om-component-ui-typography-title-sm.om-component-ui-typography-strong {
|
|
207
|
+
font-size: var(--om-title-sm-font-size);
|
|
208
|
+
font-family: var(--om-title-sm-font-family);
|
|
209
|
+
line-height: var(--om-title-sm-line-height);
|
|
210
|
+
letter-spacing: var(--om-title-sm-letter-spacing);
|
|
211
|
+
font-weight: var(--om-title-sm-strong-font-weight);
|
|
212
|
+
}
|
|
213
|
+
.om-component-ui-typography-body-lg.om-component-ui-typography-strong {
|
|
214
|
+
font-size: var(--om-body-lg-font-size);
|
|
215
|
+
font-family: var(--om-body-lg-font-family);
|
|
216
|
+
line-height: var(--om-body-lg-line-height);
|
|
217
|
+
letter-spacing: var(--om-body-lg-letter-spacing);
|
|
218
|
+
font-weight: var(--om-body-lg-strong-font-weight);
|
|
219
|
+
}
|
|
220
|
+
.om-component-ui-typography-body-md.om-component-ui-typography-strong {
|
|
221
|
+
font-size: var(--om-body-md-font-size);
|
|
222
|
+
font-family: var(--om-body-md-font-family);
|
|
223
|
+
line-height: var(--om-body-md-line-height);
|
|
224
|
+
letter-spacing: var(--om-body-md-letter-spacing);
|
|
225
|
+
font-weight: var(--om-body-md-strong-font-weight);
|
|
226
|
+
}
|
|
227
|
+
.om-component-ui-typography-body-sm.om-component-ui-typography-strong {
|
|
228
|
+
font-size: var(--om-body-sm-font-size);
|
|
229
|
+
font-family: var(--om-body-sm-font-family);
|
|
230
|
+
line-height: var(--om-body-sm-line-height);
|
|
231
|
+
letter-spacing: var(--om-body-sm-letter-spacing);
|
|
232
|
+
font-weight: var(--om-body-sm-strong-font-weight);
|
|
233
|
+
}
|
|
234
|
+
.om-component-ui-typography-label-xl.om-component-ui-typography-strong {
|
|
235
|
+
font-size: var(--om-label-xl-font-size);
|
|
236
|
+
font-family: var(--om-label-xl-font-family);
|
|
237
|
+
line-height: var(--om-label-xl-line-height);
|
|
238
|
+
letter-spacing: var(--om-label-xl-letter-spacing);
|
|
239
|
+
font-weight: var(--om-label-xl-strong-font-weight);
|
|
240
|
+
}
|
|
241
|
+
.om-component-ui-typography-label-lg.om-component-ui-typography-strong {
|
|
242
|
+
font-size: var(--om-label-lg-font-size);
|
|
243
|
+
font-family: var(--om-label-lg-font-family);
|
|
244
|
+
line-height: var(--om-label-lg-line-height);
|
|
245
|
+
letter-spacing: var(--om-label-lg-letter-spacing);
|
|
246
|
+
font-weight: var(--om-label-lg-strong-font-weight);
|
|
247
|
+
}
|
|
248
|
+
.om-component-ui-typography-label-md.om-component-ui-typography-strong {
|
|
249
|
+
font-size: var(--om-label-md-font-size);
|
|
250
|
+
font-family: var(--om-label-md-font-family);
|
|
251
|
+
line-height: var(--om-label-md-line-height);
|
|
252
|
+
letter-spacing: var(--om-label-md-letter-spacing);
|
|
253
|
+
font-weight: var(--om-label-md-strong-font-weight);
|
|
254
|
+
}
|
|
255
|
+
.om-component-ui-typography-label-sm.om-component-ui-typography-strong {
|
|
256
|
+
font-size: var(--om-label-sm-font-size);
|
|
257
|
+
font-family: var(--om-label-sm-font-family);
|
|
258
|
+
line-height: var(--om-label-sm-line-height);
|
|
259
|
+
letter-spacing: var(--om-label-sm-letter-spacing);
|
|
260
|
+
font-weight: var(--om-label-sm-strong-font-weight);
|
|
261
|
+
}
|
|
262
|
+
.om-component-ui-typography-label-xs.om-component-ui-typography-strong {
|
|
263
|
+
font-size: var(--om-label-xs-font-size);
|
|
264
|
+
font-family: var(--om-label-xs-font-family);
|
|
265
|
+
line-height: var(--om-label-xs-line-height);
|
|
266
|
+
letter-spacing: var(--om-label-xs-letter-spacing);
|
|
267
|
+
font-weight: var(--om-label-xs-strong-font-weight);
|
|
268
|
+
}
|
|
269
|
+
.om-component-ui-typography-italic {
|
|
270
|
+
font-style: italic;
|
|
271
|
+
}
|
|
272
|
+
.om-component-ui-typography-underline {
|
|
273
|
+
text-decoration-line: underline;
|
|
274
|
+
}
|
|
275
|
+
.om-component-ui-typography-delete {
|
|
276
|
+
text-decoration-line: line-through;
|
|
277
|
+
}
|
|
278
|
+
.om-component-ui-typography-underline-delete {
|
|
279
|
+
text-decoration-line: underline line-through;
|
|
280
|
+
}
|
|
281
|
+
.om-component-ui-typography-ellipsis {
|
|
282
|
+
position: relative;
|
|
283
|
+
display: block;
|
|
284
|
+
min-width: 0;
|
|
285
|
+
max-width: 100%;
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
white-space: nowrap;
|
|
288
|
+
}
|
|
289
|
+
.om-component-ui-typography-ellipsis-measure {
|
|
290
|
+
position: absolute;
|
|
291
|
+
top: 0;
|
|
292
|
+
right: 0;
|
|
293
|
+
left: 0;
|
|
294
|
+
overflow: hidden;
|
|
295
|
+
white-space: nowrap;
|
|
296
|
+
visibility: hidden;
|
|
297
|
+
pointer-events: none;
|
|
298
|
+
}
|
|
299
|
+
.om-component-ui-typography-copyable-wrapper {
|
|
300
|
+
display: inline-flex;
|
|
301
|
+
gap: var(--om-spacing-100, 4px);
|
|
302
|
+
align-items: center;
|
|
303
|
+
min-width: 0;
|
|
304
|
+
max-width: 100%;
|
|
305
|
+
}
|
|
306
|
+
.om-component-ui-typography-copyable-wrapper-inline {
|
|
307
|
+
display: inline-flex;
|
|
308
|
+
vertical-align: bottom;
|
|
309
|
+
}
|
|
310
|
+
.om-component-ui-typography-copyable-wrapper-block {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: flex-start;
|
|
313
|
+
width: 100%;
|
|
314
|
+
}
|
|
315
|
+
.om-component-ui-typography-copyable-content {
|
|
316
|
+
flex: 1 1 auto;
|
|
317
|
+
min-width: 0;
|
|
318
|
+
}
|
|
319
|
+
.om-component-ui-typography-color-default {
|
|
320
|
+
color: var(--om-text-default, #131313);
|
|
321
|
+
}
|
|
322
|
+
.om-component-ui-typography-color-default-secondary {
|
|
323
|
+
color: var(--om-text-default-secondary, #404042);
|
|
324
|
+
}
|
|
325
|
+
.om-component-ui-typography-color-default-tertiary {
|
|
326
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
327
|
+
}
|
|
328
|
+
.om-component-ui-typography-color-disabled {
|
|
329
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
330
|
+
}
|
|
331
|
+
.om-component-ui-typography-color-disabled-black {
|
|
332
|
+
color: var(--om-text-disabled-black, #bbbdc1);
|
|
333
|
+
}
|
|
334
|
+
.om-component-ui-typography-color-disabled-white {
|
|
335
|
+
color: var(--om-text-disabled-white, #f8f8f8);
|
|
336
|
+
}
|
|
337
|
+
.om-component-ui-typography-color-brand {
|
|
338
|
+
color: var(--om-text-brand, #073387);
|
|
339
|
+
}
|
|
340
|
+
.om-component-ui-typography-color-brand-secondary {
|
|
341
|
+
color: var(--om-text-brand-secondary, #a4bbe1);
|
|
342
|
+
}
|
|
343
|
+
.om-component-ui-typography-color-brand-tertiary {
|
|
344
|
+
color: var(--om-text-brand-tertiary, #c1d0eb);
|
|
345
|
+
}
|
|
346
|
+
.om-component-ui-typography-color-on-brand {
|
|
347
|
+
color: var(--om-text-on-brand, #dde6f4);
|
|
348
|
+
}
|
|
349
|
+
.om-component-ui-typography-color-on-brand-secondary {
|
|
350
|
+
color: var(--om-text-on-brand-secondary, #052561);
|
|
351
|
+
}
|
|
352
|
+
.om-component-ui-typography-color-on-brand-tertiary {
|
|
353
|
+
color: var(--om-text-on-brand-tertiary, #03163a);
|
|
354
|
+
}
|
|
355
|
+
.om-component-ui-typography-color-neutral {
|
|
356
|
+
color: var(--om-text-neutral, #404042);
|
|
357
|
+
}
|
|
358
|
+
.om-component-ui-typography-color-neutral-secondary {
|
|
359
|
+
color: var(--om-text-neutral-secondary, #9fa3a3);
|
|
360
|
+
}
|
|
361
|
+
.om-component-ui-typography-color-neutral-tertiary {
|
|
362
|
+
color: var(--om-text-neutral-tertiary, #bbbdc1);
|
|
363
|
+
}
|
|
364
|
+
.om-component-ui-typography-color-on-neutral {
|
|
365
|
+
color: var(--om-text-on-neutral, #fff);
|
|
366
|
+
}
|
|
367
|
+
.om-component-ui-typography-color-on-neutral-secondary {
|
|
368
|
+
color: var(--om-text-on-neutral-secondary, #d1d2d2);
|
|
369
|
+
}
|
|
370
|
+
.om-component-ui-typography-color-on-neutral-tertiary {
|
|
371
|
+
color: var(--om-text-on-neutral-tertiary, #e3e4e4);
|
|
372
|
+
}
|
|
373
|
+
.om-component-ui-typography-color-positive {
|
|
374
|
+
color: var(--om-text-positive, #1f5800);
|
|
375
|
+
}
|
|
376
|
+
.om-component-ui-typography-color-positive-secondary {
|
|
377
|
+
color: var(--om-text-positive-secondary, rgba(31, 88, 0, 0.2));
|
|
378
|
+
}
|
|
379
|
+
.om-component-ui-typography-color-positive-tertiary {
|
|
380
|
+
color: var(--om-text-positive-tertiary, rgba(31, 88, 0, 0.1));
|
|
381
|
+
}
|
|
382
|
+
.om-component-ui-typography-color-on-positive {
|
|
383
|
+
color: var(--om-text-on-positive, rgba(31, 88, 0, 0.05));
|
|
384
|
+
}
|
|
385
|
+
.om-component-ui-typography-color-on-positive-secondary {
|
|
386
|
+
color: var(--om-text-on-positive-secondary, #1b4404);
|
|
387
|
+
}
|
|
388
|
+
.om-component-ui-typography-color-on-positive-tertiary {
|
|
389
|
+
color: var(--om-text-on-positive-tertiary, #003104);
|
|
390
|
+
}
|
|
391
|
+
.om-component-ui-typography-color-warning {
|
|
392
|
+
color: var(--om-text-warning, #db8600);
|
|
393
|
+
}
|
|
394
|
+
.om-component-ui-typography-color-warning-secondary {
|
|
395
|
+
color: var(--om-text-warning-secondary, rgba(244, 198, 0, 0.2));
|
|
396
|
+
}
|
|
397
|
+
.om-component-ui-typography-color-warning-tertiary {
|
|
398
|
+
color: var(--om-text-warning-tertiary, rgba(244, 198, 0, 0.1));
|
|
399
|
+
}
|
|
400
|
+
.om-component-ui-typography-color-on-warning {
|
|
401
|
+
color: var(--om-text-on-warning, rgba(244, 198, 0, 0.05));
|
|
402
|
+
}
|
|
403
|
+
.om-component-ui-typography-color-on-warning-secondary {
|
|
404
|
+
color: var(--om-text-on-warning-secondary, #ffa000);
|
|
405
|
+
}
|
|
406
|
+
.om-component-ui-typography-color-on-warning-tertiary {
|
|
407
|
+
color: var(--om-text-on-warning-tertiary, #db8600);
|
|
408
|
+
}
|
|
409
|
+
.om-component-ui-typography-color-danger {
|
|
410
|
+
color: var(--om-text-danger, #ae0000);
|
|
411
|
+
}
|
|
412
|
+
.om-component-ui-typography-color-danger-secondary {
|
|
413
|
+
color: var(--om-text-danger-secondary, rgba(174, 0, 0, 0.2));
|
|
414
|
+
}
|
|
415
|
+
.om-component-ui-typography-color-danger-tertiary {
|
|
416
|
+
color: var(--om-text-danger-tertiary, rgba(174, 0, 0, 0.1));
|
|
417
|
+
}
|
|
418
|
+
.om-component-ui-typography-color-on-danger {
|
|
419
|
+
color: var(--om-text-on-danger, rgba(174, 0, 0, 0.05));
|
|
420
|
+
}
|
|
421
|
+
.om-component-ui-typography-color-on-danger-secondary {
|
|
422
|
+
color: var(--om-text-on-danger-secondary, #920000);
|
|
423
|
+
}
|
|
424
|
+
.om-component-ui-typography-color-on-danger-tertiary {
|
|
425
|
+
color: var(--om-text-on-danger-tertiary, #780000);
|
|
426
|
+
}
|
|
427
|
+
.om-component-ui-typography-disabled {
|
|
428
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
429
|
+
cursor: not-allowed;
|
|
430
|
+
}
|
|
431
|
+
.om-component-ui-typography-link-md:hover {
|
|
432
|
+
color: var(--om-text-brand, #073387);
|
|
433
|
+
}
|
|
434
|
+
.om-component-ui-typography-link-md.om-component-ui-typography-disabled {
|
|
435
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
436
|
+
pointer-events: none;
|
|
437
|
+
}
|
|
438
|
+
.om-component-ui-typography-link-sm:hover {
|
|
439
|
+
color: var(--om-text-brand, #073387);
|
|
440
|
+
}
|
|
441
|
+
.om-component-ui-typography-link-sm.om-component-ui-typography-disabled {
|
|
442
|
+
color: var(--om-text-disabled, #bbbdc1);
|
|
443
|
+
pointer-events: none;
|
|
444
|
+
}
|
|
@@ -1 +1,55 @@
|
|
|
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-upload {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-200, 8px);
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
}
|
|
29
|
+
.om-component-ui-upload-input {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
.om-component-ui-upload-label {
|
|
33
|
+
color: var(--om-text-default, #131313);
|
|
34
|
+
}
|
|
35
|
+
.om-component-ui-upload-description {
|
|
36
|
+
color: var(--om-text-default-tertiary, #646465);
|
|
37
|
+
}
|
|
38
|
+
.om-component-ui-upload-slot {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: var(--om-spacing-200, 8px);
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
.om-component-ui-upload-error-msg {
|
|
45
|
+
display: flex;
|
|
46
|
+
gap: var(--om-spacing-100, 4px);
|
|
47
|
+
align-items: flex-start;
|
|
48
|
+
color: var(--om-text-danger, #ae0000);
|
|
49
|
+
}
|
|
50
|
+
.om-component-ui-upload-error-msg-text {
|
|
51
|
+
color: inherit !important;
|
|
52
|
+
}
|
|
53
|
+
.om-component-ui-upload-disabled {
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
}
|