@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.
Files changed (127) hide show
  1. package/es/components/Accordion/style/Accordion.css +94 -1
  2. package/es/components/Alert/style/Alert.css +101 -1
  3. package/es/components/Button/style/Button.css +178 -1
  4. package/es/components/Calendar/style/Calendar.css +400 -1
  5. package/es/components/Carousel/style/Carousel.css +57 -1
  6. package/es/components/Cell/style/Cell.css +80 -1
  7. package/es/components/Checkbox/style/Checkbox.css +191 -1
  8. package/es/components/CoachMark/style/CoachMark.css +156 -1
  9. package/es/components/Copy/style/Clipboard.css +45 -1
  10. package/es/components/Copy/style/Copy.css +48 -1
  11. package/es/components/Dialog/style/Dialog.css +204 -1
  12. package/es/components/Divider/style/Divider.css +128 -1
  13. package/es/components/Drawer/style/Drawer.css +145 -1
  14. package/es/components/Dropdown/style/Dropdown.css +48 -1
  15. package/es/components/Empty/style/Empty.css +58 -1
  16. package/es/components/Flex/style/Flex.css +71 -1
  17. package/es/components/Grid/style/Grid.css +952 -1
  18. package/es/components/Icons/style/Icons.css +81 -1
  19. package/es/components/Input/Amount/style/Amount.css +103 -1
  20. package/es/components/Input/FieldShell/FieldShell.css +76 -1
  21. package/es/components/Input/Input/Input.css +124 -1
  22. package/es/components/Input/OTP/OTP.css +79 -1
  23. package/es/components/Input/TextArea/TextArea.css +93 -1
  24. package/es/components/Input/Trade/Trade.css +192 -1
  25. package/es/components/Link/style/Link.css +70 -1
  26. package/es/components/Navigation/style/Nav.css +158 -1
  27. package/es/components/Navigation/style/Navigation.css +373 -1
  28. package/es/components/Navigation/style/NavigationStepper.css +97 -1
  29. package/es/components/Notification/NotificationStatic.js +22 -22
  30. package/es/components/Notification/style/Notification.css +170 -1
  31. package/es/components/Pagination/style/Pagination.css +89 -1
  32. package/es/components/Popconfirm/style/Popconfirm.css +137 -1
  33. package/es/components/ProForm/ProForm.js +38 -38
  34. package/es/components/ProForm/ProFormDependency.js +5 -5
  35. package/es/components/ProForm/Submitter.js +4 -4
  36. package/es/components/ProForm/core/hooks/useForm.js +101 -101
  37. package/es/components/ProForm/core/useFormItem.js +5 -5
  38. package/es/components/ProForm/hooks/useFieldRequest.js +12 -12
  39. package/es/components/ProForm/layouts/useOverlayForm.js +5 -5
  40. package/es/components/ProForm/style/ProForm.css +168 -1
  41. package/es/components/Progress/style/Progress.css +103 -1
  42. package/es/components/Radio/style/Radio.css +362 -1
  43. package/es/components/Segment/style/Segment.css +79 -1
  44. package/es/components/Select/style/Select.css +468 -1
  45. package/es/components/Skeleton/style/Skeleton.css +54 -1
  46. package/es/components/Slider/style/Slider.css +161 -1
  47. package/es/components/Space/style/Space.css +47 -1
  48. package/es/components/Spinner/Spinner.js +7 -7
  49. package/es/components/Spinner/style/Spinner.css +99 -1
  50. package/es/components/Step/style/Step.css +107 -1
  51. package/es/components/Switch/style/Switch.css +102 -1
  52. package/es/components/Table/style/Table.css +370 -1
  53. package/es/components/Tabs/style/Tabs.css +118 -1
  54. package/es/components/Tag/style/Tag.css +87 -1
  55. package/es/components/Tooltip/style/Tooltip.css +98 -1
  56. package/es/components/Trigger/style/Trigger.css +35 -1
  57. package/es/components/Typography/style/Typography.css +444 -1
  58. package/es/components/Upload/style/Upload.css +55 -1
  59. package/es/components/Upload/style/UploadFileBar.css +88 -1
  60. package/es/components/VirtualList/style/VirtualList.css +25 -1
  61. package/es/index.css +1 -1
  62. package/es/stories/docs/storybook-docs.css +323 -1
  63. package/es/styles/index.css +5328 -1
  64. package/lib/components/Accordion/style/Accordion.css +94 -1
  65. package/lib/components/Alert/style/Alert.css +101 -1
  66. package/lib/components/Button/style/Button.css +178 -1
  67. package/lib/components/Calendar/style/Calendar.css +400 -1
  68. package/lib/components/Carousel/style/Carousel.css +57 -1
  69. package/lib/components/Cell/style/Cell.css +80 -1
  70. package/lib/components/Checkbox/style/Checkbox.css +191 -1
  71. package/lib/components/CoachMark/style/CoachMark.css +156 -1
  72. package/lib/components/Copy/style/Clipboard.css +45 -1
  73. package/lib/components/Copy/style/Copy.css +48 -1
  74. package/lib/components/Dialog/style/Dialog.css +204 -1
  75. package/lib/components/Divider/style/Divider.css +128 -1
  76. package/lib/components/Drawer/style/Drawer.css +145 -1
  77. package/lib/components/Dropdown/style/Dropdown.css +48 -1
  78. package/lib/components/Empty/style/Empty.css +58 -1
  79. package/lib/components/Flex/style/Flex.css +71 -1
  80. package/lib/components/Grid/style/Grid.css +952 -1
  81. package/lib/components/Icons/style/Icons.css +81 -1
  82. package/lib/components/Input/Amount/style/Amount.css +103 -1
  83. package/lib/components/Input/FieldShell/FieldShell.css +76 -1
  84. package/lib/components/Input/Input/Input.css +124 -1
  85. package/lib/components/Input/OTP/OTP.css +79 -1
  86. package/lib/components/Input/TextArea/TextArea.css +93 -1
  87. package/lib/components/Input/Trade/Trade.css +192 -1
  88. package/lib/components/Link/style/Link.css +70 -1
  89. package/lib/components/Navigation/style/Nav.css +158 -1
  90. package/lib/components/Navigation/style/Navigation.css +373 -1
  91. package/lib/components/Navigation/style/NavigationStepper.css +97 -1
  92. package/lib/components/Notification/NotificationStatic.js +22 -22
  93. package/lib/components/Notification/style/Notification.css +170 -1
  94. package/lib/components/Pagination/style/Pagination.css +89 -1
  95. package/lib/components/Popconfirm/style/Popconfirm.css +137 -1
  96. package/lib/components/ProForm/ProForm.js +38 -38
  97. package/lib/components/ProForm/ProFormDependency.js +5 -5
  98. package/lib/components/ProForm/Submitter.js +4 -4
  99. package/lib/components/ProForm/core/hooks/useForm.js +101 -101
  100. package/lib/components/ProForm/core/useFormItem.js +5 -5
  101. package/lib/components/ProForm/hooks/useFieldRequest.js +12 -12
  102. package/lib/components/ProForm/layouts/useOverlayForm.js +5 -5
  103. package/lib/components/ProForm/style/ProForm.css +168 -1
  104. package/lib/components/Progress/style/Progress.css +103 -1
  105. package/lib/components/Radio/style/Radio.css +362 -1
  106. package/lib/components/Segment/style/Segment.css +79 -1
  107. package/lib/components/Select/style/Select.css +468 -1
  108. package/lib/components/Skeleton/style/Skeleton.css +54 -1
  109. package/lib/components/Slider/style/Slider.css +161 -1
  110. package/lib/components/Space/style/Space.css +47 -1
  111. package/lib/components/Spinner/Spinner.js +7 -7
  112. package/lib/components/Spinner/style/Spinner.css +99 -1
  113. package/lib/components/Step/style/Step.css +107 -1
  114. package/lib/components/Switch/style/Switch.css +102 -1
  115. package/lib/components/Table/style/Table.css +370 -1
  116. package/lib/components/Tabs/style/Tabs.css +118 -1
  117. package/lib/components/Tag/style/Tag.css +87 -1
  118. package/lib/components/Tooltip/style/Tooltip.css +98 -1
  119. package/lib/components/Trigger/style/Trigger.css +35 -1
  120. package/lib/components/Typography/style/Typography.css +444 -1
  121. package/lib/components/Upload/style/Upload.css +55 -1
  122. package/lib/components/Upload/style/UploadFileBar.css +88 -1
  123. package/lib/components/VirtualList/style/VirtualList.css +25 -1
  124. package/lib/index.css +1 -1
  125. package/lib/stories/docs/storybook-docs.css +323 -1
  126. package/lib/styles/index.css +5328 -1
  127. package/package.json +65 -34
@@ -1 +1,94 @@
1
- .om-component-ui-accordion{gap:var(--om-spacing-400,16px)}.om-component-ui-accordion,.om-component-ui-accordion-item{display:flex;flex-direction:column;width:100%}.om-component-ui-accordion-item-disabled{cursor:not-allowed;opacity:.5}.om-component-ui-accordion-header{display:flex;gap:var(--om-spacing-400,16px);align-items:center;width:100%;margin:0;padding:0;color:inherit;text-align:left;background:none;border:none;cursor:pointer}.om-component-ui-accordion-header:disabled{cursor:not-allowed}.om-component-ui-accordion-title{flex:1 0 0;color:var(--om-text-default,#131313)}.om-component-ui-accordion-icon{flex-shrink:0;color:var(--om-icon-default,#131313)}.om-component-ui-accordion-content{width:100%;color:var(--om-text-default,#131313)}.om-component-ui-accordion-fill .om-component-ui-accordion-item{padding:var(--om-spacing-600,24px);background-color:var(--om-bg-default-secondary,#f8f8f8)}.om-component-ui-accordion-fill .om-component-ui-accordion-header:hover:not(:disabled) .om-component-ui-accordion-icon{color:var(--om-icon-default-secondary,#404042)}.om-component-ui-accordion-stroke{gap:0}.om-component-ui-accordion-stroke .om-component-ui-accordion-item{padding:var(--om-spacing-600,24px) 0;border-bottom:1px solid var(--om-border-neutral,#e3e4e4)}.om-component-ui-accordion-stroke .om-component-ui-accordion-header:hover:not(:disabled) .om-component-ui-accordion-icon{color:var(--om-icon-default-secondary,#404042)}.om-component-ui-accordion-large .om-component-ui-accordion-content{margin-top:var(--om-spacing-600,24px)}.om-component-ui-accordion-large.om-component-ui-accordion-fill .om-component-ui-accordion-item{border-radius:var(--om-radius-600,24px)}.om-component-ui-accordion-small .om-component-ui-accordion-content{margin-top:var(--om-spacing-400,16px)}.om-component-ui-accordion-small.om-component-ui-accordion-fill .om-component-ui-accordion-item{border-radius:var(--om-radius-400,16px)}
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-accordion {
24
+ display: flex;
25
+ flex-direction: column;
26
+ gap: var(--om-spacing-400, 16px);
27
+ width: 100%;
28
+ }
29
+ .om-component-ui-accordion-item {
30
+ display: flex;
31
+ flex-direction: column;
32
+ width: 100%;
33
+ }
34
+ .om-component-ui-accordion-item-disabled {
35
+ cursor: not-allowed;
36
+ opacity: 0.5;
37
+ }
38
+ .om-component-ui-accordion-header {
39
+ display: flex;
40
+ gap: var(--om-spacing-400, 16px);
41
+ align-items: center;
42
+ width: 100%;
43
+ margin: 0;
44
+ padding: 0;
45
+ color: inherit;
46
+ text-align: left;
47
+ background: none;
48
+ border: none;
49
+ cursor: pointer;
50
+ }
51
+ .om-component-ui-accordion-header:disabled {
52
+ cursor: not-allowed;
53
+ }
54
+ .om-component-ui-accordion-title {
55
+ flex: 1 0 0;
56
+ color: var(--om-text-default, #131313);
57
+ }
58
+ .om-component-ui-accordion-icon {
59
+ flex-shrink: 0;
60
+ color: var(--om-icon-default, #131313);
61
+ }
62
+ .om-component-ui-accordion-content {
63
+ width: 100%;
64
+ color: var(--om-text-default, #131313);
65
+ }
66
+ .om-component-ui-accordion-fill .om-component-ui-accordion-item {
67
+ padding: var(--om-spacing-600, 24px);
68
+ background-color: var(--om-bg-default-secondary, #f8f8f8);
69
+ }
70
+ .om-component-ui-accordion-fill .om-component-ui-accordion-header:hover:not(:disabled) .om-component-ui-accordion-icon {
71
+ color: var(--om-icon-default-secondary, #404042);
72
+ }
73
+ .om-component-ui-accordion-stroke {
74
+ gap: 0;
75
+ }
76
+ .om-component-ui-accordion-stroke .om-component-ui-accordion-item {
77
+ padding: var(--om-spacing-600, 24px) 0;
78
+ border-bottom: 1px solid var(--om-border-neutral, #e3e4e4);
79
+ }
80
+ .om-component-ui-accordion-stroke .om-component-ui-accordion-header:hover:not(:disabled) .om-component-ui-accordion-icon {
81
+ color: var(--om-icon-default-secondary, #404042);
82
+ }
83
+ .om-component-ui-accordion-large .om-component-ui-accordion-content {
84
+ margin-top: var(--om-spacing-600, 24px);
85
+ }
86
+ .om-component-ui-accordion-large.om-component-ui-accordion-fill .om-component-ui-accordion-item {
87
+ border-radius: var(--om-radius-600, 24px);
88
+ }
89
+ .om-component-ui-accordion-small .om-component-ui-accordion-content {
90
+ margin-top: var(--om-spacing-400, 16px);
91
+ }
92
+ .om-component-ui-accordion-small.om-component-ui-accordion-fill .om-component-ui-accordion-item {
93
+ border-radius: var(--om-radius-400, 16px);
94
+ }
@@ -1 +1,101 @@
1
- .om-component-ui-alert{--om-alert-container-bg:var(--om-bg-default-secondary,#f8f8f8);--om-alert-container-border:transparent;display:flex;gap:var(--om-spacing-300,12px);align-items:flex-start;padding:var(--om-spacing-300,12px);background-color:var(--om-alert-container-bg);border:1px solid var(--om-alert-container-border);border-radius:var(--om-radius-300,12px)}.om-component-ui-alert-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center}.om-component-ui-alert-icon-center{align-self:center}.om-component-ui-alert-icon-top{align-self:flex-start}.om-component-ui-alert-content{display:flex;flex:1 0 0;flex-direction:column;gap:var(--om-spacing-100,4px);align-self:center;min-width:0}.om-component-ui-alert-content-title-body{padding-top:var(--om-spacing-200,8px)}.om-component-ui-alert-right{display:inline-flex;flex-shrink:0;gap:var(--om-spacing-200,8px);align-items:flex-start;align-self:stretch}.om-component-ui-alert-action{display:inline-flex;gap:var(--om-spacing-200,8px);align-items:center;align-self:center}.om-component-ui-alert-close{display:inline-flex;align-items:center;justify-content:center;padding:0;color:var(--om-icon-on-neutral-tertiary,#646465);background:none;border:none;cursor:pointer}.om-component-ui-alert-close .om-component-ui-icons-wrapper{color:inherit!important;--icon-color:currentcolor}.om-component-ui-alert-close:hover{color:var(--om-icon-neutral,#404042)}.om-component-ui-alert-close-top{align-self:flex-start}.om-component-ui-alert-success{--om-alert-container-bg:var(--om-bg-default,#fff);--om-alert-container-border:var(--om-border-neutral-secondary,#f0f0f0)}.om-component-ui-alert-warning{--om-alert-container-bg:var(--om-bg-warning-tertiary-hover,rgba(244,198,0,.1));--om-alert-container-border:transparent}.om-component-ui-alert-error{--om-alert-container-bg:var(--om-bg-danger-tertiary,rgba(174,0,0,.05));--om-alert-container-border:transparent}
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-alert {
24
+ --om-alert-container-bg: var(--om-bg-default-secondary, #f8f8f8);
25
+ --om-alert-container-border: transparent;
26
+ display: flex;
27
+ gap: var(--om-spacing-300, 12px);
28
+ align-items: flex-start;
29
+ padding: var(--om-spacing-300, 12px);
30
+ background-color: var(--om-alert-container-bg);
31
+ border: 1px solid var(--om-alert-container-border);
32
+ border-radius: var(--om-radius-300, 12px);
33
+ }
34
+ .om-component-ui-alert-icon {
35
+ display: inline-flex;
36
+ flex-shrink: 0;
37
+ align-items: center;
38
+ justify-content: center;
39
+ }
40
+ .om-component-ui-alert-icon-center {
41
+ align-self: center;
42
+ }
43
+ .om-component-ui-alert-icon-top {
44
+ align-self: flex-start;
45
+ }
46
+ .om-component-ui-alert-content {
47
+ display: flex;
48
+ flex: 1 0 0;
49
+ flex-direction: column;
50
+ gap: var(--om-spacing-100, 4px);
51
+ align-self: center;
52
+ min-width: 0;
53
+ }
54
+ .om-component-ui-alert-content-title-body {
55
+ padding-top: var(--om-spacing-200, 8px);
56
+ }
57
+ .om-component-ui-alert-right {
58
+ display: inline-flex;
59
+ flex-shrink: 0;
60
+ gap: var(--om-spacing-200, 8px);
61
+ align-items: flex-start;
62
+ align-self: stretch;
63
+ }
64
+ .om-component-ui-alert-action {
65
+ display: inline-flex;
66
+ gap: var(--om-spacing-200, 8px);
67
+ align-items: center;
68
+ align-self: center;
69
+ }
70
+ .om-component-ui-alert-close {
71
+ display: inline-flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ padding: 0;
75
+ color: var(--om-icon-on-neutral-tertiary, #646465);
76
+ background: none;
77
+ border: none;
78
+ cursor: pointer;
79
+ }
80
+ .om-component-ui-alert-close .om-component-ui-icons-wrapper {
81
+ color: inherit !important;
82
+ --icon-color: currentcolor;
83
+ }
84
+ .om-component-ui-alert-close:hover {
85
+ color: var(--om-icon-neutral, #404042);
86
+ }
87
+ .om-component-ui-alert-close-top {
88
+ align-self: flex-start;
89
+ }
90
+ .om-component-ui-alert-success {
91
+ --om-alert-container-bg: var(--om-bg-default, #fff);
92
+ --om-alert-container-border: var(--om-border-neutral-secondary, #f0f0f0);
93
+ }
94
+ .om-component-ui-alert-warning {
95
+ --om-alert-container-bg: var(--om-bg-warning-tertiary-hover, rgba(244, 198, 0, 0.1));
96
+ --om-alert-container-border: transparent;
97
+ }
98
+ .om-component-ui-alert-error {
99
+ --om-alert-container-bg: var(--om-bg-danger-tertiary, rgba(174, 0, 0, 0.05));
100
+ --om-alert-container-border: transparent;
101
+ }
@@ -1 +1,178 @@
1
- .om-component-ui-button{--om-button-text:var(--om-text-on-neutral,#fff);--om-button-bg:var(--om-bg-brand,#073387);--om-button-hover-bg:var(--om-bg-brand-hover,#052561);--om-button-disabled-text:var(--om-text-disabled-white,#f8f8f8);--om-button-disabled-bg:var(--om-bg-disabled-brand,#a4bbe1);--om-button-gap:var(--om-spacing-200,8px);display:inline-flex;gap:var(--om-button-gap);align-items:center;justify-content:center;height:52px;padding:var(--om-spacing-400,16px);color:var(--om-button-text);line-height:1.25;background-color:var(--om-button-bg);border:none;border-radius:var(--om-radius-300,12px);outline:none;box-shadow:none;cursor:pointer}.om-component-ui-button-disabled,.om-component-ui-button:disabled{color:var(--om-button-disabled-text);background-color:var(--om-button-disabled-bg);cursor:not-allowed}.om-component-ui-button:hover:not(:disabled){background-color:var(--om-button-hover-bg)}.om-component-ui-button-medium{height:40px;padding:var(--om-spacing-300,12px);line-height:1.14;border-radius:var(--om-radius-300,12px)}.om-component-ui-button-small{height:32px;padding:var(--om-spacing-200,8px) var(--om-spacing-300,12px);line-height:1.33;border-radius:var(--om-radius-200,8px)}.om-component-ui-button-rounded{border-radius:var(--om-radius-full,9999px)}.om-component-ui-button-text{--om-button-text:var(--om-text-brand,#073387);--om-button-hover-text:var(--om-text-on-brand-secondary,#052561);--om-button-bg:transparent;--om-button-hover-bg:transparent;--om-button-disabled-text:var(--om-text-brand-secondary,#a4bbe1);--om-button-disabled-bg:transparent;--om-button-gap:var(--om-spacing-100,4px);height:auto;padding:0;border-radius:0}.om-component-ui-button-text:hover:not(:disabled){--om-button-text:var(--om-button-hover-text);color:var(--om-button-text)}.om-component-ui-button-text-danger{--om-button-text:var(--om-text-danger,#ae0000);--om-button-hover-text:var(--om-text-on-danger-secondary,#920000);--om-button-disabled-text:var(--om-text-danger-secondary,rgba(174,0,0,.2))}.om-component-ui-button-text-positive{--om-button-text:var(--om-text-positive,#1f5800);--om-button-hover-text:var(--om-text-on-positive-secondary,#1b4404);--om-button-disabled-text:var(--om-text-positive-secondary,rgba(31,88,0,.2))}.om-component-ui-button-text.om-component-ui-button-large{line-height:1.08}.om-component-ui-button-text.om-component-ui-button-medium,.om-component-ui-button-text.om-component-ui-button-small{line-height:1.4}.om-component-ui-button-icon-end,.om-component-ui-button-icon-start{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;color:currentcolor;line-height:0}.om-component-ui-button-icon-end>.om-component-ui-icons-wrapper,.om-component-ui-button-icon-start>.om-component-ui-icons-wrapper{color:currentcolor}.om-component-ui-button-loading-icon{display:inline-flex;width:20px;height:20px}.om-component-ui-button-loading-icon-medium{width:16px;height:16px}.om-component-ui-button-loading-icon-small{width:14px;height:14px}.om-component-ui-button-loading-icon.om-component-ui-spinner{color:inherit}.om-component-ui-button-secondary{--om-button-text:var(--om-text-brand,#073387);--om-button-bg:var(--om-bg-brand-secondary,#dde6f4);--om-button-hover-bg:var(--om-bg-brand-secondary-hover,#c1d0eb);--om-button-disabled-text:var(--om-text-brand-secondary,#a4bbe1);--om-button-disabled-bg:var(--om-bg-brand-tertiary,#edf2f9)}.om-component-ui-button-grey{--om-button-text:var(--om-text-default,#131313);--om-button-bg:var(--om-bg-neutral-tertiary,#f0f0f0);--om-button-hover-bg:var(--om-bg-neutral-tertiary-hover,#e3e4e4);--om-button-disabled-text:var(--om-text-disabled,#bbbdc1);--om-button-disabled-bg:var(--om-bg-disabled,#f0f0f0)}.om-component-ui-button-black{--om-button-text:var(--om-text-on-neutral,#fff);--om-button-bg:var(--om-bg-neutral,#131313);--om-button-hover-bg:var(--om-bg-neutral-hover,#404042);--om-button-disabled-text:var(--om-text-disabled-white,#f8f8f8);--om-button-disabled-bg:var(--om-bg-disabled-black,rgba(0,0,0,.1))}.om-component-ui-button-white{--om-button-text:var(--om-text-default,#131313);--om-button-bg:var(--om-bg-default,#fff);--om-button-hover-bg:var(--om-bg-default-hover,#f0f0f0);--om-button-disabled-text:var(--om-text-disabled,#bbbdc1);--om-button-disabled-bg:var(--om-bg-disabled,#f0f0f0)}.om-component-ui-button-danger{--om-button-text:var(--om-text-danger,#ae0000);--om-button-bg:var(--om-bg-danger-secondary,rgba(174,0,0,.1));--om-button-hover-bg:var(--om-bg-danger-secondary-hover,rgba(174,0,0,.2));--om-button-disabled-text:var(--om-text-danger-secondary,rgba(174,0,0,.2));--om-button-disabled-bg:var(--om-bg-danger-tertiary,rgba(174,0,0,.05))}.om-component-ui-button-positive{--om-button-text:var(--om-text-positive,#1f5800);--om-button-bg:var(--om-bg-positive-secondary,rgba(31,88,0,.1));--om-button-hover-bg:var(--om-bg-positive-secondary-hover,rgba(31,88,0,.2));--om-button-disabled-text:var(--om-text-positive-secondary,rgba(31,88,0,.2));--om-button-disabled-bg:var(--om-bg-positive-tertiary,rgba(31,88,0,.05))}.om-component-ui-button-warning{--om-button-text:var(--om-text-default,#131313);--om-button-bg:var(--om-bg-warning,#f4c600);--om-button-hover-bg:var(--om-bg-warning-hover,#ffb300);--om-button-disabled-text:var(--om-text-disabled,#bbbdc1);--om-button-disabled-bg:var(--om-bg-warning-secondary-hover,rgba(244,198,0,.2))}
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-button {
24
+ --om-button-text: var(--om-text-on-neutral, #fff);
25
+ --om-button-bg: var(--om-bg-brand, #073387);
26
+ --om-button-hover-bg: var(--om-bg-brand-hover, #052561);
27
+ --om-button-disabled-text: var(--om-text-disabled-white, #f8f8f8);
28
+ --om-button-disabled-bg: var(--om-bg-disabled-brand, #a4bbe1);
29
+ --om-button-gap: var(--om-spacing-200, 8px);
30
+ display: inline-flex;
31
+ gap: var(--om-button-gap);
32
+ align-items: center;
33
+ justify-content: center;
34
+ height: 52px;
35
+ padding: var(--om-spacing-400, 16px);
36
+ color: var(--om-button-text);
37
+ line-height: 1.25;
38
+ background-color: var(--om-button-bg);
39
+ border: none;
40
+ border-radius: var(--om-radius-300, 12px);
41
+ outline: none;
42
+ box-shadow: none;
43
+ cursor: pointer;
44
+ }
45
+ .om-component-ui-button:disabled, .om-component-ui-button-disabled {
46
+ color: var(--om-button-disabled-text);
47
+ background-color: var(--om-button-disabled-bg);
48
+ cursor: not-allowed;
49
+ }
50
+ .om-component-ui-button:hover:not(:disabled) {
51
+ background-color: var(--om-button-hover-bg);
52
+ }
53
+ .om-component-ui-button-medium {
54
+ height: 40px;
55
+ padding: var(--om-spacing-300, 12px);
56
+ line-height: 1.14;
57
+ border-radius: var(--om-radius-300, 12px);
58
+ }
59
+ .om-component-ui-button-small {
60
+ height: 32px;
61
+ padding: var(--om-spacing-200, 8px) var(--om-spacing-300, 12px);
62
+ line-height: 1.33;
63
+ border-radius: var(--om-radius-200, 8px);
64
+ }
65
+ .om-component-ui-button-rounded {
66
+ border-radius: var(--om-radius-full, 9999px);
67
+ }
68
+ .om-component-ui-button-text {
69
+ --om-button-text: var(--om-text-brand, #073387);
70
+ --om-button-hover-text: var(--om-text-on-brand-secondary, #052561);
71
+ --om-button-bg: transparent;
72
+ --om-button-hover-bg: transparent;
73
+ --om-button-disabled-text: var(--om-text-brand-secondary, #a4bbe1);
74
+ --om-button-disabled-bg: transparent;
75
+ --om-button-gap: var(--om-spacing-100, 4px);
76
+ height: auto;
77
+ padding: 0;
78
+ border-radius: 0;
79
+ }
80
+ .om-component-ui-button-text:hover:not(:disabled) {
81
+ --om-button-text: var(--om-button-hover-text);
82
+ color: var(--om-button-text);
83
+ }
84
+ .om-component-ui-button-text-danger {
85
+ --om-button-text: var(--om-text-danger, #ae0000);
86
+ --om-button-hover-text: var(--om-text-on-danger-secondary, #920000);
87
+ --om-button-disabled-text: var(--om-text-danger-secondary, rgba(174, 0, 0, 0.2));
88
+ }
89
+ .om-component-ui-button-text-positive {
90
+ --om-button-text: var(--om-text-positive, #1f5800);
91
+ --om-button-hover-text: var(--om-text-on-positive-secondary, #1b4404);
92
+ --om-button-disabled-text: var(--om-text-positive-secondary, rgba(31, 88, 0, 0.2));
93
+ }
94
+ .om-component-ui-button-text.om-component-ui-button-large {
95
+ line-height: 1.08;
96
+ }
97
+ .om-component-ui-button-text.om-component-ui-button-medium {
98
+ line-height: 1.4;
99
+ }
100
+ .om-component-ui-button-text.om-component-ui-button-small {
101
+ line-height: 1.4;
102
+ }
103
+ .om-component-ui-button-icon-start, .om-component-ui-button-icon-end {
104
+ display: inline-flex;
105
+ flex-shrink: 0;
106
+ align-items: center;
107
+ justify-content: center;
108
+ color: currentcolor;
109
+ line-height: 0;
110
+ }
111
+ .om-component-ui-button-icon-start > .om-component-ui-icons-wrapper, .om-component-ui-button-icon-end > .om-component-ui-icons-wrapper {
112
+ color: currentcolor;
113
+ }
114
+ .om-component-ui-button-loading-icon {
115
+ display: inline-flex;
116
+ width: 20px;
117
+ height: 20px;
118
+ }
119
+ .om-component-ui-button-loading-icon-medium {
120
+ width: 16px;
121
+ height: 16px;
122
+ }
123
+ .om-component-ui-button-loading-icon-small {
124
+ width: 14px;
125
+ height: 14px;
126
+ }
127
+ .om-component-ui-button-loading-icon.om-component-ui-spinner {
128
+ color: inherit;
129
+ }
130
+ .om-component-ui-button-secondary {
131
+ --om-button-text: var(--om-text-brand, #073387);
132
+ --om-button-bg: var(--om-bg-brand-secondary, #dde6f4);
133
+ --om-button-hover-bg: var(--om-bg-brand-secondary-hover, #c1d0eb);
134
+ --om-button-disabled-text: var(--om-text-brand-secondary, #a4bbe1);
135
+ --om-button-disabled-bg: var(--om-bg-brand-tertiary, #edf2f9);
136
+ }
137
+ .om-component-ui-button-grey {
138
+ --om-button-text: var(--om-text-default, #131313);
139
+ --om-button-bg: var(--om-bg-neutral-tertiary, #f0f0f0);
140
+ --om-button-hover-bg: var(--om-bg-neutral-tertiary-hover, #e3e4e4);
141
+ --om-button-disabled-text: var(--om-text-disabled, #bbbdc1);
142
+ --om-button-disabled-bg: var(--om-bg-disabled, #f0f0f0);
143
+ }
144
+ .om-component-ui-button-black {
145
+ --om-button-text: var(--om-text-on-neutral, #fff);
146
+ --om-button-bg: var(--om-bg-neutral, #131313);
147
+ --om-button-hover-bg: var(--om-bg-neutral-hover, #404042);
148
+ --om-button-disabled-text: var(--om-text-disabled-white, #f8f8f8);
149
+ --om-button-disabled-bg: var(--om-bg-disabled-black, rgba(0, 0, 0, 0.1));
150
+ }
151
+ .om-component-ui-button-white {
152
+ --om-button-text: var(--om-text-default, #131313);
153
+ --om-button-bg: var(--om-bg-default, #fff);
154
+ --om-button-hover-bg: var(--om-bg-default-hover, #f0f0f0);
155
+ --om-button-disabled-text: var(--om-text-disabled, #bbbdc1);
156
+ --om-button-disabled-bg: var(--om-bg-disabled, #f0f0f0);
157
+ }
158
+ .om-component-ui-button-danger {
159
+ --om-button-text: var(--om-text-danger, #ae0000);
160
+ --om-button-bg: var(--om-bg-danger-secondary, rgba(174, 0, 0, 0.1));
161
+ --om-button-hover-bg: var(--om-bg-danger-secondary-hover, rgba(174, 0, 0, 0.2));
162
+ --om-button-disabled-text: var(--om-text-danger-secondary, rgba(174, 0, 0, 0.2));
163
+ --om-button-disabled-bg: var(--om-bg-danger-tertiary, rgba(174, 0, 0, 0.05));
164
+ }
165
+ .om-component-ui-button-positive {
166
+ --om-button-text: var(--om-text-positive, #1f5800);
167
+ --om-button-bg: var(--om-bg-positive-secondary, rgba(31, 88, 0, 0.1));
168
+ --om-button-hover-bg: var(--om-bg-positive-secondary-hover, rgba(31, 88, 0, 0.2));
169
+ --om-button-disabled-text: var(--om-text-positive-secondary, rgba(31, 88, 0, 0.2));
170
+ --om-button-disabled-bg: var(--om-bg-positive-tertiary, rgba(31, 88, 0, 0.05));
171
+ }
172
+ .om-component-ui-button-warning {
173
+ --om-button-text: var(--om-text-default, #131313);
174
+ --om-button-bg: var(--om-bg-warning, #f4c600);
175
+ --om-button-hover-bg: var(--om-bg-warning-hover, #ffb300);
176
+ --om-button-disabled-text: var(--om-text-disabled, #bbbdc1);
177
+ --om-button-disabled-bg: var(--om-bg-warning-secondary-hover, rgba(244, 198, 0, 0.2));
178
+ }