@orangelogic/design-system 2.78.0 → 2.79.0

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 (184) hide show
  1. package/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
  4. package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
  5. package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
  7. package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
  8. package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
  9. package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
  10. package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
  11. package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
  12. package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
  13. package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
  14. package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
  15. package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
  16. package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
  17. package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
  18. package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
  19. package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
  20. package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
  21. package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
  22. package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
  23. package/library/chunks/button.styles.CKqn956w.js +5 -0
  24. package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
  25. package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
  26. package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
  27. package/library/chunks/component.styles.CRO4Odto.js +5 -0
  28. package/library/chunks/confirm-popover.BbHneK19.js +121 -0
  29. package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
  30. package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
  31. package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
  32. package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
  33. package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
  34. package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
  35. package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
  36. package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
  37. package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
  38. package/library/chunks/header.D68fIfe2.js +170 -0
  39. package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
  40. package/library/chunks/icon-button.BuhCp--_.js +149 -0
  41. package/library/chunks/iframe.BQFZQMTe.js +73 -0
  42. package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
  43. package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
  44. package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
  45. package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
  46. package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
  47. package/library/chunks/option.DljDoFx4.js +123 -0
  48. package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
  49. package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
  50. package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
  51. package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
  52. package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
  53. package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
  54. package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
  55. package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
  56. package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
  57. package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
  58. package/library/chunks/typography.DJC_UXgs.js +52 -0
  59. package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
  60. package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
  61. package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
  62. package/library/components/alert.js +9 -177
  63. package/library/components/am-chart.js +2 -2
  64. package/library/components/animated-image.js +12 -100
  65. package/library/components/animation.js +2 -2
  66. package/library/components/array-line-clamp.js +7 -88
  67. package/library/components/asset-link-format.js +48 -626
  68. package/library/components/atoms.js +17 -17
  69. package/library/components/avatar.js +5 -94
  70. package/library/components/badge.js +11 -139
  71. package/library/components/bicolor-picker.js +4 -23
  72. package/library/components/border-input-group.js +4 -25
  73. package/library/components/breadcrumb-item.js +24 -155
  74. package/library/components/breadcrumb.js +3 -21
  75. package/library/components/button-group.js +3 -28
  76. package/library/components/button.js +3 -3
  77. package/library/components/card.js +4 -126
  78. package/library/components/checkbox.js +11 -252
  79. package/library/components/color-picker.js +54 -725
  80. package/library/components/color-swatch-group.js +5 -5
  81. package/library/components/color-swatch.js +3 -3
  82. package/library/components/confirm-popover.js +5 -5
  83. package/library/components/copy-button.js +9 -254
  84. package/library/components/corner-position-input-group.js +4 -57
  85. package/library/components/cropper.js +2 -2
  86. package/library/components/details.js +6 -152
  87. package/library/components/dialog.js +4 -4
  88. package/library/components/divider.js +5 -67
  89. package/library/components/dot-pagination.js +2 -2
  90. package/library/components/dot-status.js +25 -95
  91. package/library/components/drawer.js +8 -239
  92. package/library/components/dropdown.js +47 -149
  93. package/library/components/dynamic-select.js +7 -72
  94. package/library/components/e-chart.js +6 -49
  95. package/library/components/element-clamp.js +5 -78
  96. package/library/components/file-on-demand.js +9 -9
  97. package/library/components/folder-select.js +3 -3
  98. package/library/components/format-date.js +2 -6
  99. package/library/components/format-time.js +2 -12
  100. package/library/components/grid-item.js +4 -171
  101. package/library/components/grid.js +5 -41
  102. package/library/components/header.js +2 -2
  103. package/library/components/icon-button.js +2 -2
  104. package/library/components/icon.js +8 -2448
  105. package/library/components/iframe.js +2 -2
  106. package/library/components/image-comparer.js +7 -127
  107. package/library/components/image.js +2 -2
  108. package/library/components/include.js +2 -6
  109. package/library/components/input-group.js +4 -29
  110. package/library/components/input.js +21 -715
  111. package/library/components/line-clamp.js +7 -83
  112. package/library/components/list-editor.js +7 -7
  113. package/library/components/markdown.js +1 -3
  114. package/library/components/masonry.js +22 -221
  115. package/library/components/menu-item.js +9 -309
  116. package/library/components/menu-label.js +3 -20
  117. package/library/components/menu-section.js +3 -17
  118. package/library/components/menu.js +4 -112
  119. package/library/components/molecules.js +5 -5
  120. package/library/components/mutation-observer.js +2 -6
  121. package/library/components/option.js +2 -2
  122. package/library/components/organisms.js +2 -2
  123. package/library/components/padding-input-group.js +5 -16
  124. package/library/components/pagination.js +5 -5
  125. package/library/components/popup.js +204 -538
  126. package/library/components/position-picker.js +3 -93
  127. package/library/components/progress-bar.js +18 -135
  128. package/library/components/progress-ring.js +3 -94
  129. package/library/components/qr-code.js +4 -16
  130. package/library/components/radio-button.js +4 -24
  131. package/library/components/radio-card.js +7 -175
  132. package/library/components/radio-group.js +20 -151
  133. package/library/components/radio.js +13 -170
  134. package/library/components/range.js +120 -657
  135. package/library/components/rating.js +56 -236
  136. package/library/components/relative-time.js +2 -12
  137. package/library/components/resize-observer.js +3 -7
  138. package/library/components/select.js +225 -933
  139. package/library/components/shadow-input-group.js +5 -24
  140. package/library/components/share-option-list.js +18 -310
  141. package/library/components/sidebar.js +14 -220
  142. package/library/components/size-input-group.js +10 -75
  143. package/library/components/skeleton.js +7 -80
  144. package/library/components/space.js +6 -143
  145. package/library/components/spinner.js +6 -75
  146. package/library/components/split-panel.js +16 -123
  147. package/library/components/step.js +21 -272
  148. package/library/components/stepper-wizard.js +9 -43
  149. package/library/components/stepper.js +16 -33
  150. package/library/components/switch.js +11 -274
  151. package/library/components/tab-group.js +4 -4
  152. package/library/components/tab-panel.js +4 -31
  153. package/library/components/tab.js +9 -255
  154. package/library/components/table.js +6 -6
  155. package/library/components/tag.js +14 -165
  156. package/library/components/textarea.js +14 -363
  157. package/library/components/timecode.js +4 -23
  158. package/library/components/tooltip.js +8 -92
  159. package/library/components/tree-item.js +2 -2
  160. package/library/components/tree.js +2 -2
  161. package/library/components/typeface.js +18 -117
  162. package/library/components/types.js +777 -12001
  163. package/library/components/typography.js +2 -2
  164. package/library/components/video.js +3522 -5919
  165. package/library/components/visually-hidden.js +3 -15
  166. package/library/package.json +4 -1
  167. package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
  168. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  169. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  170. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
  171. package/library/packages/types/src/table.d.ts +2 -0
  172. package/library/react-web-component.d.ts +7 -3
  173. package/package.json +4 -1
  174. package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
  175. package/library/chunks/component.styles.DMSLciL5.js +0 -71
  176. package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
  177. package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
  178. package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
  179. package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
  180. package/library/chunks/header.m7v3M94Z.js +0 -777
  181. package/library/chunks/icon-button.C3eqeQl9.js +0 -683
  182. package/library/chunks/iframe.CNEyWhcM.js +0 -160
  183. package/library/chunks/option.Csqefux_.js +0 -296
  184. package/library/chunks/typography.oDzoLbZS.js +0 -149
@@ -1,718 +0,0 @@
1
- import { i as t } from "./lit-element.jLBm65_O.js";
2
- const r = t`
3
- :host {
4
- --background-color: var(--cx-color-primary);
5
- --color: light-dark(
6
- var(--cx-color-neutral-0),
7
- var(--cx-color-neutral-1000)
8
- );
9
- --font-size: var(--cx-font-size-medium);
10
- --height: var(--cx-input-height-medium);
11
- --padding: 0;
12
- --button-custom-height: 32px;
13
- --button-custom-padding: 4px 8px 4px 8px;
14
- --button-custom-font-size: var(--cx-font-size-medium);
15
- display: inline-block;
16
- position: relative;
17
- width: auto;
18
- cursor: pointer;
19
- line-height: normal;
20
- max-width: 100%;
21
- }
22
- :host([width-type='fill']),
23
- :host([width-type='adaptive'][device-type='tablet']),
24
- :host([width-type='adaptive'][device-type='mobile']) {
25
- width: 100%;
26
- }
27
-
28
- .button {
29
- display: inline-flex;
30
- align-items: center;
31
- justify-content: center;
32
- width: 100%;
33
- border-style: solid;
34
- border-width: var(--cx-input-border-width);
35
- font-family: var(--cx-input-font-family);
36
- font-weight: var(--cx-font-weight-regular);
37
- font-size: var(--font-size, var(--cx-font-size-medium));
38
- height: var(--height, var(--cx-input-height-medium));
39
- padding: var(--padding, 0);
40
- text-decoration: none;
41
- text-transform: var(--cx-button-text-transform, none);
42
- user-select: none;
43
- -webkit-user-select: none;
44
- white-space: nowrap;
45
- vertical-align: middle;
46
- transition:
47
- var(--cx-transition-x-fast) background-color,
48
- var(--cx-transition-x-fast) color,
49
- var(--cx-transition-x-fast) border,
50
- var(--cx-transition-x-fast) box-shadow;
51
- cursor: inherit;
52
- }
53
-
54
- .button::-moz-focus-inner {
55
- border: 0;
56
- }
57
-
58
- .button:focus {
59
- outline: none;
60
- }
61
-
62
- .button:focus-visible {
63
- outline: var(--cx-focus-ring);
64
- outline-offset: var(--cx-focus-ring-offset);
65
- }
66
-
67
- .button--disabled {
68
- opacity: 0.5;
69
- cursor: default;
70
- }
71
-
72
- /* When disabled, prevent mouse events from bubbling up from children */
73
- .button--disabled * {
74
- pointer-events: none;
75
- }
76
-
77
- .button__prefix,
78
- .button__suffix {
79
- flex: 0 0 auto;
80
- display: flex;
81
- align-items: center;
82
- pointer-events: none;
83
- }
84
-
85
- .button__label {
86
- display: inline-block;
87
- line-height: 1.15;
88
- overflow: hidden;
89
- white-space: nowrap;
90
- text-overflow: ellipsis;
91
- }
92
-
93
- .button__label::slotted(cx-icon) {
94
- vertical-align: -2px;
95
- }
96
-
97
- /*
98
- * Standard buttons
99
- */
100
-
101
- /* Default */
102
- .button--standard.button--default {
103
- background-color: var(--cx-color-neutral-100);
104
- border-color: var(--cx-color-neutral-100);
105
- color: var(--cx-color-neutral);
106
- }
107
-
108
- .button--standard.button--default:hover:not(.button--disabled),
109
- .button--standard.button--default.button--focused:not(.button--disabled) {
110
- background-color: var(--cx-color-neutral-200);
111
- border-color: var(--cx-color-neutral-200);
112
- color: var(--cx-color-neutral);
113
- }
114
-
115
- .button--standard.button--default:active:not(.button--disabled) {
116
- background-color: var(--cx-color-neutral-300);
117
- border-color: var(--cx-color-neutral-300);
118
- color: var(--cx-color-neutral);
119
- }
120
-
121
- /* Primary */
122
- .button--standard.button--primary {
123
- background-color: var(--cx-color-primary);
124
- border-color: var(--cx-color-primary);
125
- color: var(--cx-color-neutral-0);
126
- }
127
-
128
- .button--standard.button--primary:hover:not(.button--disabled),
129
- .button--standard.button--primary.button--focused:not(.button--disabled) {
130
- background-color: var(--cx-color-primary-500);
131
- border-color: var(--cx-color-primary-500);
132
- color: var(--cx-color-neutral-0);
133
- }
134
-
135
- .button--standard.button--primary:active:not(.button--disabled) {
136
- background-color: var(--cx-color-primary-700);
137
- border-color: var(--cx-color-primary-700);
138
- color: var(--cx-color-neutral-0);
139
- }
140
-
141
- /* Success */
142
- .button--standard.button--success {
143
- background-color: var(--cx-color-success);
144
- border-color: var(--cx-color-success);
145
- color: var(--cx-color-neutral-0);
146
- }
147
-
148
- .button--standard.button--success:hover:not(.button--disabled),
149
- .button--standard.button--success.button--focused:not(.button--disabled) {
150
- background-color: var(--cx-color-success-500);
151
- border-color: var(--cx-color-success-500);
152
- color: var(--cx-color-neutral-0);
153
- }
154
-
155
- .button--standard.button--success:active:not(.button--disabled) {
156
- background-color: var(--cx-color-success-700);
157
- border-color: var(--cx-color-success-700);
158
- color: var(--cx-color-neutral-0);
159
- }
160
-
161
- /* Warning */
162
- .button--standard.button--warning {
163
- background-color: var(--cx-color-warning);
164
- border-color: var(--cx-color-warning);
165
- color: var(--cx-color-neutral-0);
166
- }
167
- .button--standard.button--warning:hover:not(.button--disabled),
168
- .button--standard.button--warning.button--focused:not(.button--disabled) {
169
- background-color: var(--cx-color-warning-500);
170
- border-color: var(--cx-color-warning-500);
171
- color: var(--cx-color-neutral-0);
172
- }
173
-
174
- .button--standard.button--warning:active:not(.button--disabled) {
175
- background-color: var(--cx-color-warning-700);
176
- border-color: var(--cx-color-warning-700);
177
- color: var(--cx-color-neutral-0);
178
- }
179
-
180
- /* Danger */
181
- .button--standard.button--danger {
182
- background-color: var(--cx-color-danger);
183
- border-color: var(--cx-color-danger);
184
- color: var(--cx-color-neutral-0);
185
- }
186
-
187
- .button--standard.button--danger:hover:not(.button--disabled),
188
- .button--standard.button--danger.button--focused:not(.button--disabled) {
189
- background-color: var(--cx-color-danger-500);
190
- border-color: var(--cx-color-danger-500);
191
- color: var(--cx-color-neutral-0);
192
- }
193
-
194
- .button--standard.button--danger:active:not(.button--disabled) {
195
- background-color: var(--cx-color-danger-700);
196
- border-color: var(--cx-color-danger-700);
197
- color: var(--cx-color-neutral-0);
198
- }
199
-
200
- /* Custom */
201
- .button--standard.button--custom {
202
- background-color: var(--background-color);
203
- border-color: var(--background-color);
204
- color: var(--color);
205
- }
206
-
207
- .button--standard.button--custom:hover:not(.button--disabled),
208
- .button--standard.button--custom.button--focused:not(.button--disabled) {
209
- background-color: var(--background-color-focus, var(--background-color));
210
- border-color: var(--background-color-focus, var(--background-color));
211
- color: var(--color-focus, var(--color));
212
- }
213
-
214
- .button--standard.button--custom:active:not(.button--disabled) {
215
- background-color: var(--background-color-active, var(--background-color));
216
- border-color: var(--background-color-active, var(--background-color));
217
- color: var(--color-active, var(--color));
218
- }
219
-
220
- /*
221
- * Outline buttons
222
- */
223
-
224
- .button--outline {
225
- background: none;
226
- border: solid var(--cx-input-border-width);
227
- }
228
-
229
- /* Default */
230
- .button--outline.button--default {
231
- border-color: var(--cx-input-border-color);
232
- color: var(--cx-color-neutral);
233
- }
234
-
235
- .button--outline.button--default:hover:not(.button--disabled),
236
- .button--outline.button--default.button--focused:not(.button--disabled),
237
- .button--outline.button--default.button--checked:not(.button--disabled) {
238
- border-color: var(--cx-color-neutral-300);
239
- background-color: var(--cx-color-neutral-100);
240
- color: var(--cx-color-neutral);
241
- }
242
-
243
- .button--outline.button--default:active:not(.button--disabled) {
244
- border-color: var(--cx-color-neutral-300);
245
- background-color: var(--cx-color-neutral-200);
246
- color: var(--cx-color-neutral);
247
- }
248
-
249
- /* Primary */
250
- .button--outline.button--primary {
251
- border-color: var(--cx-color-primary);
252
- color: var(--cx-color-primary);
253
- }
254
-
255
- .button--outline.button--primary:hover:not(.button--disabled),
256
- .button--outline.button--primary.button--focused:not(.button--disabled),
257
- .button--outline.button--primary.button--checked:not(.button--disabled) {
258
- background-color: var(--cx-color-primary-500);
259
- color: var(--cx-color-neutral-0);
260
- }
261
-
262
- .button--outline.button--primary:active:not(.button--disabled) {
263
- border-color: var(--cx-color-primary-700);
264
- background-color: var(--cx-color-primary-700);
265
- color: var(--cx-color-neutral-0);
266
- }
267
-
268
- /* Success */
269
- .button--outline.button--success {
270
- border-color: var(--cx-color-success);
271
- color: var(--cx-color-success);
272
- }
273
-
274
- .button--outline.button--success:hover:not(.button--disabled),
275
- .button--outline.button--success.button--focused:not(.button--disabled),
276
- .button--outline.button--success.button--checked:not(.button--disabled) {
277
- background-color: var(--cx-color-success-500);
278
- color: var(--cx-color-neutral-0);
279
- }
280
-
281
- .button--outline.button--success:active:not(.button--disabled) {
282
- border-color: var(--cx-color-success);
283
- background-color: var(--cx-color-success);
284
- color: var(--cx-color-neutral-0);
285
- }
286
-
287
- /* Warning */
288
- .button--outline.button--warning {
289
- border-color: var(--cx-color-warning);
290
- color: var(--cx-color-warning);
291
- }
292
-
293
- .button--outline.button--warning:hover:not(.button--disabled),
294
- .button--outline.button--warning.button--focused:not(.button--disabled),
295
- .button--outline.button--warning.button--checked:not(.button--disabled) {
296
- background-color: var(--cx-color-warning-500);
297
- color: var(--cx-color-neutral-0);
298
- }
299
-
300
- .button--outline.button--warning:active:not(.button--disabled) {
301
- border-color: var(--cx-color-warning-700);
302
- background-color: var(--cx-color-warning-700);
303
- color: var(--cx-color-neutral-0);
304
- }
305
-
306
- /* Danger */
307
- .button--outline.button--danger {
308
- border-color: var(--cx-color-danger);
309
- color: var(--cx-color-danger);
310
- }
311
-
312
- .button--outline.button--danger:hover:not(.button--disabled),
313
- .button--outline.button--danger.button--focused:not(.button--disabled),
314
- .button--outline.button--danger.button--checked:not(.button--disabled) {
315
- background-color: var(--cx-color-danger-500);
316
- color: var(--cx-color-neutral-0);
317
- }
318
-
319
- .button--outline.button--danger:active:not(.button--disabled) {
320
- border-color: var(--cx-color-danger-700);
321
- background-color: var(--cx-color-danger-700);
322
- color: var(--cx-color-neutral-0);
323
- }
324
-
325
- @media (forced-colors: active) {
326
- .button.button--outline.button--checked:not(.button--disabled) {
327
- outline: solid 2px transparent;
328
- }
329
- }
330
-
331
- /*
332
- * Text buttons
333
- */
334
-
335
- .button--text {
336
- background-color: transparent;
337
- border-color: transparent;
338
- color: var(--cx-color-neutral);
339
- }
340
-
341
- .button--text:hover:not(.button--disabled),
342
- .button--text.button--focused:not(.button--disabled) {
343
- background-color: var(--cx-color-neutral-100);
344
- border-color: var(--cx-color-neutral-100);
345
- color: var(--cx-color-neutral);
346
- }
347
-
348
- .button--text:focus-visible:not(.button--disabled) {
349
- background-color: transparent;
350
- border-color: transparent;
351
- color: var(--cx-color-neutral-800);
352
- }
353
-
354
- .button--text:active:not(.button--disabled) {
355
- background-color: var(--cx-color-neutral-200);
356
- border-color: var(--cx-color-neutral-200);
357
- color: var(--cx-color-neutral);
358
- }
359
-
360
- /*
361
- * Tertiary buttons
362
- */
363
-
364
- .button--tertiary {
365
- background-color: transparent;
366
- border-color: transparent;
367
- color: var(--cx-color-neutral);
368
- }
369
-
370
- .button--tertiary:hover:not(.button--disabled),
371
- .button--tertiary.button--focused:not(.button--disabled) {
372
- background-color: var(--cx-color-neutral-100);
373
- border-color: transparent;
374
- color: var(--cx-color-neutral);
375
- }
376
-
377
- .button--tertiary:focus-visible:not(.button--disabled) {
378
- background-color: var(--cx-color-neutral-200);
379
- border-color: transparent;
380
- color: var(--cx-color-neutral);
381
- }
382
-
383
- .button--tertiary:active:not(.button--disabled) {
384
- background-color: var(--cx-color-neutral-300);
385
- border-color: transparent;
386
- color: var(--cx-color-neutral);
387
- }
388
-
389
- /*
390
- * Size modifiers
391
- */
392
-
393
- .button--small {
394
- height: auto;
395
- min-height: var(--cx-input-height-small);
396
- font-size: var(--cx-button-font-size-medium);
397
- border-radius: var(--cx-button-border-radius-small);
398
- }
399
-
400
- .button--small ::slotted(cx-icon) {
401
- --font-size: var(--cx-font-size-medium);
402
- }
403
-
404
- .button--medium {
405
- height: auto;
406
- min-height: var(--cx-input-height-medium);
407
- font-size: var(--cx-button-font-size-medium);
408
- border-radius: var(--cx-button-border-radius-medium);
409
- }
410
-
411
- .button--large {
412
- height: auto;
413
- min-height: var(--cx-input-height-large);
414
- font-size: var(--cx-button-font-size-medium);
415
- border-radius: var(--cx-button-border-radius-large);
416
- }
417
-
418
- .button--x-large {
419
- height: auto;
420
- min-height: var(--cx-input-height-x-large);
421
- font-size: var(--cx-button-font-size-medium);
422
- border-radius: var(--cx-button-border-radius-large);
423
- }
424
-
425
- .button--custom-size {
426
- --height: var(--button-custom-height);
427
- --padding: var(--button-custom-padding);
428
- --font-size: var(--button-custom-font-size);
429
- border-radius: var(--cx-button-border-radius-medium);
430
- }
431
-
432
- /*
433
- * Pill modifier
434
- */
435
-
436
- .button--pill.button--small {
437
- border-radius: var(--cx-input-height-small);
438
- }
439
-
440
- .button--pill.button--medium {
441
- border-radius: var(--cx-input-height-medium);
442
- }
443
-
444
- .button--pill.button--large {
445
- border-radius: var(--cx-input-height-large);
446
- }
447
-
448
- .button--pill.button--x-large {
449
- border-radius: var(--cx-input-height-x-large);
450
- }
451
-
452
- /*
453
- * Circle modifier
454
- */
455
-
456
- .button--circle {
457
- padding-left: 0;
458
- padding-right: 0;
459
- }
460
-
461
- .button--circle.button--small {
462
- width: var(--cx-input-height-small);
463
- border-radius: 50%;
464
- }
465
-
466
- .button--circle.button--medium {
467
- width: var(--cx-input-height-medium);
468
- border-radius: 50%;
469
- }
470
-
471
- .button--circle.button--large {
472
- width: var(--cx-input-height-large);
473
- border-radius: 50%;
474
- }
475
-
476
- .button--circle.button--x-large {
477
- width: var(--cx-input-height-x-large);
478
- border-radius: 50%;
479
- }
480
-
481
- .button--circle .button__prefix,
482
- .button--circle .button__suffix,
483
- .button--circle .button__caret {
484
- display: none;
485
- }
486
-
487
- .button--circle .button__label {
488
- display: inline-flex;
489
- align-items: center;
490
- justify-content: center;
491
- line-height: 1;
492
- }
493
-
494
- /*
495
- * Caret modifier
496
- */
497
- .button--caret .button__caret {
498
- --font-size: var(--cx-font-size-large);
499
- margin-block: auto;
500
- }
501
-
502
- .button--caret.button--small .button__caret {
503
- --font-size: var(--cx-font-size-medium);
504
- }
505
-
506
- .button--caret .button__suffix {
507
- display: none;
508
- }
509
-
510
- /*
511
- * Loading modifier
512
- */
513
-
514
- .button--loading {
515
- position: relative;
516
- cursor: wait;
517
- }
518
-
519
- .button--loading .button__prefix,
520
- .button--loading .button__label,
521
- .button--loading .button__suffix,
522
- .button--loading .button__caret {
523
- visibility: hidden;
524
- }
525
-
526
- .button--loading cx-spinner {
527
- --indicator-color: currentColor;
528
- position: absolute;
529
- font-size: calc(1em);
530
- height: calc(1em);
531
- width: calc(1em);
532
- top: calc(50% - 0.5em);
533
- left: calc(50% - 0.5em);
534
- }
535
-
536
- /*
537
- * Badges
538
- */
539
-
540
- .button ::slotted(cx-badge) {
541
- position: absolute;
542
- top: 0;
543
- right: 0;
544
- translate: 50% -50%;
545
- pointer-events: none;
546
- }
547
-
548
- .button--rtl ::slotted(cx-badge) {
549
- right: auto;
550
- left: 0;
551
- translate: -50% -50%;
552
- }
553
-
554
- /*
555
- * Button spacing
556
- */
557
-
558
- .button--has-label.button--small .button__label {
559
- padding: 0 var(--cx-spacing-x-small);
560
- }
561
-
562
- .button--has-label.button--medium .button__label {
563
- padding: 0 var(--cx-spacing-small);
564
- }
565
-
566
- .button--has-label.button--large .button__label {
567
- padding: 0 var(--cx-spacing-medium);
568
- }
569
-
570
- .button--has-label.button--x-large .button__label {
571
- padding: 0 var(--cx-spacing-large);
572
- }
573
-
574
- .button--has-prefix.button--small {
575
- padding-inline-start: var(--cx-spacing-x-small);
576
- }
577
-
578
- .button--has-prefix.button--small .button__label {
579
- padding-inline-start: var(--cx-spacing-x-small);
580
- }
581
-
582
- .button--has-prefix.button--medium {
583
- padding-inline-start: var(--cx-spacing-x-small);
584
- }
585
-
586
- .button--has-prefix.button--medium .button__label {
587
- padding-inline-start: var(--cx-spacing-x-small);
588
- }
589
-
590
- .button--has-prefix.button--large {
591
- padding-inline-start: var(--cx-spacing-small);
592
- }
593
-
594
- .button--has-prefix.button--large .button__label {
595
- padding-inline-start: var(--cx-spacing-x-small);
596
- }
597
-
598
- .button--has-prefix.button--x-large {
599
- padding-inline-start: var(--cx-spacing-medium);
600
- }
601
-
602
- .button--has-prefix.button--x-large .button__label {
603
- padding-inline-start: var(--cx-spacing-medium);
604
- }
605
-
606
- .button--has-suffix.button--small,
607
- .button--caret.button--small {
608
- padding-inline-end: var(--cx-spacing-x-small);
609
- }
610
-
611
- .button--has-suffix.button--small .button__label,
612
- .button--caret.button--small .button__label {
613
- padding-inline-end: var(--cx-spacing-x-small);
614
- }
615
-
616
- .button--has-suffix.button--medium,
617
- .button--caret.button--medium {
618
- padding-inline-end: var(--cx-spacing-x-small);
619
- }
620
-
621
- .button--has-suffix.button--medium .button__label,
622
- .button--caret.button--medium .button__label {
623
- padding-inline-end: var(--cx-spacing-x-small);
624
- }
625
-
626
- .button--has-suffix.button--large,
627
- .button--caret.button--large {
628
- padding-inline-end: var(--cx-spacing-small);
629
- }
630
-
631
- .button--has-suffix.button--large .button__label,
632
- .button--caret.button--large .button__label {
633
- padding-inline-end: var(--cx-spacing-x-small);
634
- }
635
-
636
- .button--has-suffix.button--x-large,
637
- .button--caret.button--x-large {
638
- padding-inline-end: var(--cx-spacing-medium);
639
- }
640
-
641
- .button--has-suffix.button--x-large .button__label,
642
- .button--caret.button--x-large .button__label {
643
- padding-inline-end: var(--cx-spacing-medium);
644
- }
645
-
646
- .button--caret cx-icon::part(span) {
647
- height: auto;
648
- }
649
- /*
650
- * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
651
- * This means buttons aren't always direct descendants of the button group, thus we can't target them with the
652
- * ::slotted selector. To work around this, the button group component does some magic to add these special classes to
653
- * buttons and we style them here instead.
654
- */
655
-
656
- :host(
657
- [data-cx-button-group__button--first]:not(
658
- [data-cx-button-group__button--last]
659
- )
660
- )
661
- .button {
662
- border-start-end-radius: 0;
663
- border-end-end-radius: 0;
664
- }
665
-
666
- :host([data-cx-button-group__button--inner]) .button {
667
- border-radius: 0;
668
- }
669
-
670
- :host(
671
- [data-cx-button-group__button--last]:not(
672
- [data-cx-button-group__button--first]
673
- )
674
- )
675
- .button {
676
- border-start-start-radius: 0;
677
- border-end-start-radius: 0;
678
- }
679
-
680
- /* All except the first */
681
- :host(
682
- [data-cx-button-group__button]:not([data-cx-button-group__button--first])
683
- ) {
684
- margin-inline-start: calc(-1 * var(--cx-input-border-width));
685
- }
686
-
687
- /* Add a visual separator between solid buttons */
688
- :host(
689
- [data-cx-button-group__button]:not(
690
- [data-cx-button-group__button--first],
691
- [data-cx-button-group__button--radio],
692
- [variant='default']
693
- ):not(:hover)
694
- )
695
- .button:after {
696
- content: '';
697
- position: absolute;
698
- top: 0;
699
- inset-inline-start: 0;
700
- bottom: 0;
701
- border-left: solid 1px rgb(128 128 128 / 33%);
702
- mix-blend-mode: multiply;
703
- }
704
-
705
- /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
706
- :host([data-cx-button-group__button--hover]) {
707
- z-index: 1;
708
- }
709
-
710
- /* Focus and checked are always on top */
711
- :host([data-cx-button-group__button--focus]),
712
- :host([data-cx-button-group__button][checked]) {
713
- z-index: 2;
714
- }
715
- `;
716
- export {
717
- r as b
718
- };