@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,23 +1,23 @@
1
1
  import { default as s } from "./alert.js";
2
- import { bw as C } from "../chunks/am-chart.oZVBmpnn.js";
2
+ import { bw as C } from "../chunks/am-chart.H2jnOzFc.js";
3
3
  import { default as l } from "./animated-image.js";
4
- import { a, e as o } from "../chunks/animation.DU8t6mrk.js";
5
- import { C as n } from "../chunks/animation.DU8t6mrk.js";
4
+ import { a, e as o } from "../chunks/animation.7ifl4x2S.js";
5
+ import { C as n } from "../chunks/animation.7ifl4x2S.js";
6
6
  import { default as g } from "./array-line-clamp.js";
7
7
  import { default as b } from "./avatar.js";
8
8
  import { default as T } from "./badge.js";
9
9
  import { default as A } from "./breadcrumb.js";
10
10
  import { default as D } from "./breadcrumb-item.js";
11
- import { C as P } from "../chunks/button.DS64Tr8Z.js";
11
+ import { C as P } from "../chunks/button.B-ktz-w4.js";
12
12
  import { default as G } from "./button-group.js";
13
13
  import { default as h } from "./card.js";
14
14
  import { default as w } from "./checkbox.js";
15
15
  import { default as k } from "./color-picker.js";
16
16
  import { default as E } from "./copy-button.js";
17
17
  import { default as L } from "./details.js";
18
- import { C as j } from "../chunks/dialog.BdXQkCKY.js";
18
+ import { C as j } from "../chunks/dialog.B1nzoJak.js";
19
19
  import { default as z } from "./divider.js";
20
- import { C as q } from "../chunks/dot-pagination.CIVxMAAS.js";
20
+ import { C as q } from "../chunks/dot-pagination.C26bQ3vy.js";
21
21
  import { default as K } from "./dot-status.js";
22
22
  import { default as W } from "./drawer.js";
23
23
  import { default as Y } from "./dropdown.js";
@@ -29,12 +29,12 @@ import { default as fe } from "./format-number.js";
29
29
  import { default as se } from "./format-time.js";
30
30
  import { default as Ce } from "./grid.js";
31
31
  import { default as le } from "./grid-item.js";
32
- import { C as ne } from "../chunks/header.m7v3M94Z.js";
32
+ import { C as ne } from "../chunks/header.D68fIfe2.js";
33
33
  import { C as ge } from "../chunks/hub-connection.Ot2odiCz.js";
34
34
  import { default as be } from "./icon.js";
35
- import { C as Te } from "../chunks/icon-button.C3eqeQl9.js";
36
- import { C as Ae } from "../chunks/iframe.CNEyWhcM.js";
37
- import { C as De } from "../chunks/image.DHBgKeJp.js";
35
+ import { C as Te } from "../chunks/icon-button.BuhCp--_.js";
36
+ import { C as Ae } from "../chunks/iframe.BQFZQMTe.js";
37
+ import { C as De } from "../chunks/image.4eLWAZ3-.js";
38
38
  import { default as Pe } from "./image-comparer.js";
39
39
  import { default as Ge } from "./include.js";
40
40
  import { default as he } from "./input.js";
@@ -46,8 +46,8 @@ import { default as je } from "./menu-item.js";
46
46
  import { default as ze } from "./menu-label.js";
47
47
  import { default as qe } from "./menu-section.js";
48
48
  import { default as Ke } from "./mutation-observer.js";
49
- import { C as We } from "../chunks/option.Csqefux_.js";
50
- import { C as Ye } from "../chunks/pagination.g4zErKN2.js";
49
+ import { C as We } from "../chunks/option.DljDoFx4.js";
50
+ import { C as Ye } from "../chunks/pagination.BiRyMwhM.js";
51
51
  import { default as _e } from "./popup.js";
52
52
  import { default as ea } from "./progress-bar.js";
53
53
  import { default as oa } from "./progress-ring.js";
@@ -69,18 +69,18 @@ import { default as wa } from "./step.js";
69
69
  import { default as ka } from "./stepper.js";
70
70
  import { default as Ea } from "./switch.js";
71
71
  import { default as La } from "./tab.js";
72
- import { C as ja } from "../chunks/tab-group.Dg6a82ei.js";
73
- import { C as za } from "../chunks/table.CcqrVieF.js";
72
+ import { C as ja } from "../chunks/tab-group.9HbDE1AF.js";
73
+ import { C as za } from "../chunks/table.B8LpbiGE.js";
74
74
  import { default as qa } from "./tab-panel.js";
75
75
  import { default as Ka } from "./tag.js";
76
76
  import { default as Wa } from "./textarea.js";
77
77
  import { default as Ya } from "./timecode.js";
78
78
  import { default as _a } from "./tooltip.js";
79
- import { a as eo, C as ao } from "../chunks/tree.OXvhEOjS.js";
80
- import { C as ro } from "../chunks/typography.oDzoLbZS.js";
79
+ import { a as eo, C as ao } from "../chunks/tree.q7xRVYyh.js";
80
+ import { C as ro } from "../chunks/typography.DJC_UXgs.js";
81
81
  import { default as xo } from "./video.js";
82
82
  import { default as mo } from "./visually-hidden.js";
83
- import { c as po } from "../chunks/component.styles.DMSLciL5.js";
83
+ import { c as po } from "../chunks/component.styles.CRO4Odto.js";
84
84
  import { g as uo, a as lo, s as no } from "../chunks/animation-registry.HmpwNuGH.js";
85
85
  function t() {
86
86
  return Object.entries(a).filter(([e]) => e !== "easings").map(([e]) => e);
@@ -1,75 +1,12 @@
1
1
  import { n as i, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
- import { c as d } from "../chunks/component.styles.DMSLciL5.js";
2
+ import { c as d } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
4
4
  import { w as v } from "../chunks/watch.BCJD77bD.js";
5
5
  import { i as g, x as l } from "../chunks/lit-element.jLBm65_O.js";
6
6
  import { r as u } from "../chunks/state.CSDxrqLd.js";
7
7
  import { e as f } from "../chunks/class-map.BiVq-cVR.js";
8
8
  import _ from "./icon.js";
9
- const x = g`
10
- :host {
11
- display: inline-block;
12
-
13
- --size: 3rem;
14
- }
15
-
16
- .avatar {
17
- display: inline-flex;
18
- align-items: center;
19
- justify-content: center;
20
- position: relative;
21
- width: var(--size);
22
- height: var(--size);
23
- background-color: var(--cx-color-neutral-400);
24
- font-family: var(--cx-font-sans);
25
- font-size: calc(var(--size) * 0.5);
26
- font-weight: var(--cx-font-weight-regular);
27
- color: var(--cx-color-neutral-0);
28
- user-select: none;
29
- -webkit-user-select: none;
30
- vertical-align: middle;
31
- }
32
-
33
- .avatar--circle,
34
- .avatar--circle .avatar__image {
35
- border-radius: var(--cx-border-radius-circle);
36
- }
37
-
38
- .avatar--rounded,
39
- .avatar--rounded .avatar__image {
40
- border-radius: var(--cx-border-radius-small);
41
- }
42
-
43
- .avatar--square {
44
- border-radius: 0;
45
- }
46
-
47
- .avatar__icon {
48
- display: flex;
49
- align-items: center;
50
- justify-content: center;
51
- position: absolute;
52
- top: 0;
53
- left: 0;
54
- width: 100%;
55
- height: 100%;
56
- }
57
-
58
- .avatar__initials {
59
- line-height: 1;
60
- text-transform: uppercase;
61
- }
62
-
63
- .avatar__image {
64
- position: absolute;
65
- top: 0;
66
- left: 0;
67
- width: 100%;
68
- height: 100%;
69
- object-fit: cover;
70
- overflow: hidden;
71
- }
72
- `;
9
+ const x = g`:host{--size:3rem;display:inline-block}.avatar{width:var(--size);height:var(--size);background-color:var(--cx-color-neutral-400);font-family:var(--cx-font-sans);font-size:calc(var(--size) * .5);font-weight:var(--cx-font-weight-regular);color:var(--cx-color-neutral-0);-webkit-user-select:none;user-select:none;vertical-align:middle;justify-content:center;align-items:center;display:inline-flex;position:relative}.avatar--circle,.avatar--circle .avatar__image{border-radius:var(--cx-border-radius-circle)}.avatar--rounded,.avatar--rounded .avatar__image{border-radius:var(--cx-border-radius-small)}.avatar--square{border-radius:0}.avatar__icon{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.avatar__initials{text-transform:uppercase;line-height:1}.avatar__image{object-fit:cover;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden}`;
73
10
  var b = Object.defineProperty, y = Object.getOwnPropertyDescriptor, e = (o, r, n, s) => {
74
11
  for (var t = s > 1 ? void 0 : s ? y(r, n) : r, c = o.length - 1, h; c >= 0; c--)
75
12
  (h = o[c]) && (t = (s ? h(r, n, t) : h(t)) || t);
@@ -86,40 +23,14 @@ let a = class extends p {
86
23
  this.hasError = !0, this.emit("cx-error");
87
24
  }
88
25
  render() {
89
- const o = l`
90
- <img
91
- part="image"
92
- class="avatar__image"
93
- src=${this.image}
94
- loading=${this.loading}
95
- alt=""
96
- @error=${this.handleImageLoadError}
97
- />
98
- `;
26
+ const o = l`<img part="image" class="avatar__image" src=${this.image} loading=${this.loading} alt="" @error=${this.handleImageLoadError}>`;
99
27
  let r = null;
100
- return this.initials ? r = l`<div part="initials" class="avatar__initials">
101
- ${this.initials}
102
- </div>` : r = l`
103
- <div part="icon" class="avatar__icon" aria-hidden="true">
104
- <slot name="icon">
105
- <cx-icon name="person"></cx-icon>
106
- </slot>
107
- </div>
108
- `, l`
109
- <div
110
- part="base"
111
- class=${f({
28
+ return this.initials ? r = l`<div part="initials" class="avatar__initials">${this.initials}</div>` : r = l`<div part="icon" class="avatar__icon" aria-hidden="true"><slot name="icon"><cx-icon name="person"></cx-icon></slot></div>`, l`<div part="base" class=${f({
112
29
  avatar: !0,
113
30
  "avatar--circle": this.shape === "circle",
114
31
  "avatar--rounded": this.shape === "rounded",
115
32
  "avatar--square": this.shape === "square"
116
- })}
117
- role="img"
118
- aria-label=${this.label}
119
- >
120
- ${this.image && !this.hasError ? o : r}
121
- </div>
122
- `;
33
+ })} role="img" aria-label=${this.label}>${this.image && !this.hasError ? o : r}</div>`;
123
34
  }
124
35
  };
125
36
  a.styles = [d, x];
@@ -1,143 +1,20 @@
1
- import { n as s, C as d } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
- import { c as g } from "../chunks/component.styles.DMSLciL5.js";
1
+ import { n as s, C as g } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as d } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { c as p } from "../chunks/custom-element.L4WJXn1j.js";
4
4
  import { i as u, x as m } from "../chunks/lit-element.jLBm65_O.js";
5
5
  import { e as x } from "../chunks/class-map.BiVq-cVR.js";
6
- const v = u`
7
- :host {
8
- display: inline-flex;
9
- }
10
-
11
- .badge {
12
- display: inline-flex;
13
- align-items: center;
14
- justify-content: center;
15
- font-size: var(--font-size, var(--cx-font-size-small));
16
- font-weight: var(--cx-font-weight-medium);
17
- letter-spacing: var(--cx-letter-spacing-normal);
18
- line-height: 1;
19
- border-radius: var(--cx-border-radius-small);
20
- border: solid 1px var(--cx-color-neutral-0);
21
- white-space: nowrap;
22
- user-select: none;
23
- -webkit-user-select: none;
24
- cursor: inherit;
25
- line-height: normal;
26
- }
27
-
28
- /* Variant modifiers */
29
- .badge--primary {
30
- background-color: var(--cx-color-primary);
31
- border-color: var(--cx-color-primary);
32
- color: var(--cx-color-neutral-0);
33
- }
34
-
35
- .badge--success {
36
- background-color: var(--cx-color-success);
37
- border-color: var(--cx-color-success);
38
- color: var(--cx-color-neutral-0);
39
- }
40
-
41
- .badge--neutral {
42
- background-color: var(--cx-color-neutral-100);
43
- border-color: var(--cx-color-neutral-100);
44
- color: var(--cx-color-neutral);
45
- }
46
-
47
- .badge--warning {
48
- background-color: var(--cx-color-warning);
49
- border-color: var(--cx-color-warning);
50
- color: var(--cx-color-neutral-0);
51
- }
52
-
53
- .badge--danger {
54
- background-color: var(--cx-color-danger);
55
- border-color: var(--cx-color-danger);
56
- color: var(--cx-color-danger-0);
57
- }
58
-
59
- /* Size modifiers */
60
- .badge--x-small {
61
- padding: var(--cx-spacing-2x-small) var(--cx-spacing-x-small);
62
- height: var(--cx-spacing-x-small);
63
- min-width: var(--cx-spacing-x-small);
64
- font-size: var(--font-size, var(--cx-font-size-2x-small));
65
- }
66
-
67
- .badge--small {
68
- padding: var(--cx-spacing-2x-small) var(--cx-spacing-x-small);
69
- height: var(--cx-input-height-small);
70
- min-width: var(--cx-input-height-small);
71
- }
72
-
73
- .badge--medium {
74
- padding: var(--cx-spacing-x-small) var(--cx-spacing-small);
75
- height: var(--cx-input-height-medium);
76
- min-width: var(--cx-input-height-medium);
77
- }
78
-
79
- .badge--large {
80
- padding: var(--cx-spacing-small) var(--cx-spacing-medium);
81
- height: var(--cx-input-height-large);
82
- min-width: var(--cx-input-height-large);
83
- }
84
-
85
- /* Pill modifier */
86
- .badge--pill {
87
- border-radius: var(--cx-border-radius-pill);
88
- }
89
-
90
- /* Pulse modifier */
91
- .badge--pulse {
92
- animation: pulse 1.5s infinite;
93
- }
94
-
95
- .badge--pulse.badge--primary {
96
- --pulse-color: var(--cx-color-primary);
97
- }
98
-
99
- .badge--pulse.badge--success {
100
- --pulse-color: var(--cx-color-success);
101
- }
102
-
103
- .badge--pulse.badge--neutral {
104
- --pulse-color: var(--cx-color-neutral-600);
105
- }
106
-
107
- .badge--pulse.badge--warning {
108
- --pulse-color: var(--cx-color-warning);
109
- }
110
-
111
- .badge--pulse.badge--danger {
112
- --pulse-color: var(--cx-color-danger);
113
- }
114
-
115
- @keyframes pulse {
116
- 0% {
117
- box-shadow: 0 0 0 0 var(--pulse-color);
118
- }
119
- 70% {
120
- box-shadow: 0 0 0 0.5rem transparent;
121
- }
122
- 100% {
123
- box-shadow: 0 0 0 0 transparent;
124
- }
125
- }
126
- `;
127
- var b = Object.defineProperty, h = Object.getOwnPropertyDescriptor, a = (n, l, i, o) => {
128
- for (var r = o > 1 ? void 0 : o ? h(l, i) : l, c = n.length - 1, t; c >= 0; c--)
129
- (t = n[c]) && (r = (o ? t(l, i, r) : t(r)) || r);
130
- return o && r && b(l, i, r), r;
6
+ const v = u`:host{display:inline-flex}.badge{font-size:var(--font-size,var(--cx-font-size-small));font-weight:var(--cx-font-weight-medium);letter-spacing:var(--cx-letter-spacing-normal);border-radius:var(--cx-border-radius-small);border:solid 1px var(--cx-color-neutral-0);white-space:nowrap;-webkit-user-select:none;user-select:none;cursor:inherit;justify-content:center;align-items:center;line-height:normal;display:inline-flex}.badge--primary{background-color:var(--cx-color-primary);border-color:var(--cx-color-primary);color:var(--cx-color-neutral-0)}.badge--success{background-color:var(--cx-color-success);border-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.badge--neutral{background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.badge--warning{background-color:var(--cx-color-warning);border-color:var(--cx-color-warning);color:var(--cx-color-neutral-0)}.badge--danger{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-danger-0)}.badge--x-small{padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);height:var(--cx-spacing-x-small);min-width:var(--cx-spacing-x-small);font-size:var(--font-size,var(--cx-font-size-2x-small))}.badge--small{padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);height:var(--cx-input-height-small);min-width:var(--cx-input-height-small)}.badge--medium{padding:var(--cx-spacing-x-small) var(--cx-spacing-small);height:var(--cx-input-height-medium);min-width:var(--cx-input-height-medium)}.badge--large{padding:var(--cx-spacing-small) var(--cx-spacing-medium);height:var(--cx-input-height-large);min-width:var(--cx-input-height-large)}.badge--pill{border-radius:var(--cx-border-radius-pill)}.badge--pulse{animation:1.5s infinite pulse}.badge--pulse.badge--primary{--pulse-color:var(--cx-color-primary)}.badge--pulse.badge--success{--pulse-color:var(--cx-color-success)}.badge--pulse.badge--neutral{--pulse-color:var(--cx-color-neutral-600)}.badge--pulse.badge--warning{--pulse-color:var(--cx-color-warning)}.badge--pulse.badge--danger{--pulse-color:var(--cx-color-danger)}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--pulse-color)}70%{box-shadow:0 0 0 .5rem #0000}to{box-shadow:0 0 #0000}}`;
7
+ var b = Object.defineProperty, h = Object.getOwnPropertyDescriptor, a = (n, l, c, o) => {
8
+ for (var r = o > 1 ? void 0 : o ? h(l, c) : l, i = n.length - 1, t; i >= 0; i--)
9
+ (t = n[i]) && (r = (o ? t(l, c, r) : t(r)) || r);
10
+ return o && r && b(l, c, r), r;
131
11
  };
132
- let e = class extends d {
12
+ let e = class extends g {
133
13
  constructor() {
134
14
  super(...arguments), this.variant = "primary", this.pill = !1, this.pulse = !1, this.size = "medium";
135
15
  }
136
16
  render() {
137
- return m`
138
- <span
139
- part="base"
140
- class=${x({
17
+ return m`<span part="base" class=${x({
141
18
  badge: !0,
142
19
  "badge--danger": this.variant === "danger",
143
20
  "badge--large": this.size === "large",
@@ -150,15 +27,10 @@ let e = class extends d {
150
27
  "badge--success": this.variant === "success",
151
28
  "badge--warning": this.variant === "warning",
152
29
  "badge--x-small": this.size === "x-small"
153
- })}
154
- role="status"
155
- >
156
- <slot></slot>
157
- </span>
158
- `;
30
+ })} role="status"><slot></slot></span>`;
159
31
  }
160
32
  };
161
- e.styles = [g, v];
33
+ e.styles = [d, v];
162
34
  a([
163
35
  s({ reflect: !0 })
164
36
  ], e.prototype, "variant", 2);
@@ -1,7 +1,7 @@
1
1
  import h from "./color-picker.js";
2
2
  import m from "./space.js";
3
3
  import { n as p, C as u } from "../chunks/lib-cortex-element.CVMmyPMC.js";
4
- import { c as f } from "../chunks/component.styles.DMSLciL5.js";
4
+ import { c as f } from "../chunks/component.styles.CRO4Odto.js";
5
5
  import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
6
6
  import { i as x, x as C } from "../chunks/lit-element.jLBm65_O.js";
7
7
  import { o as n } from "../chunks/style-map.llVFPd__.js";
@@ -32,32 +32,13 @@ let t = class extends u {
32
32
  });
33
33
  }
34
34
  render() {
35
- return C`<cx-space spacing="x-small" wrap="nowrap">
36
- <cx-color-picker
37
- variant="button"
38
- value=${this.value[0]}
39
- hoist
40
- opacity
41
- .form=${this.form || this.closest("form")}
42
- @cx-change=${this.handleFirstColorPickerChange}
43
- style=${n({
35
+ return C`<cx-space spacing="x-small" wrap="nowrap"><cx-color-picker variant="button" value=${this.value[0]} hoist opacity .form=${this.form || this.closest("form")} @cx-change=${this.handleFirstColorPickerChange} style=${n({
44
36
  "--control-button-color": "#FFFFFF",
45
37
  "--control-caret-color": "#1A1A1E"
46
- })}
47
- ></cx-color-picker>
48
- <cx-color-picker
49
- variant="button"
50
- value=${this.value[1]}
51
- hoist
52
- opacity
53
- .form=${this.form || this.closest("form")}
54
- @cx-change=${this.handleSecondColorPickerChange}
55
- style=${n({
38
+ })}></cx-color-picker><cx-color-picker variant="button" value=${this.value[1]} hoist opacity .form=${this.form || this.closest("form")} @cx-change=${this.handleSecondColorPickerChange} style=${n({
56
39
  "--control-button-color": "#1A1A1E",
57
40
  "--control-caret-color": "#FFFFFF"
58
- })}
59
- ></cx-color-picker>
60
- </cx-space>`;
41
+ })}></cx-color-picker></cx-space>`;
61
42
  }
62
43
  };
63
44
  t.styles = [f, g];
@@ -1,16 +1,12 @@
1
1
  import n from "./input.js";
2
2
  import p from "./space.js";
3
3
  import { n as u, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
4
- import { c as h } from "../chunks/component.styles.DMSLciL5.js";
4
+ import { c as h } from "../chunks/component.styles.CRO4Odto.js";
5
5
  import { c as d } from "../chunks/custom-element.L4WJXn1j.js";
6
6
  import { L as x } from "../chunks/i18n.BUW7B9hr.js";
7
7
  import { i as v, x as b } from "../chunks/lit-element.jLBm65_O.js";
8
8
  import f from "./bicolor-picker.js";
9
- const g = v`
10
- .border-width {
11
- width: 72px;
12
- }
13
- `;
9
+ const g = v`.border-width{width:72px}`;
14
10
  var C = Object.defineProperty, w = Object.getOwnPropertyDescriptor, c = (r, e, t, o) => {
15
11
  for (var a = o > 1 ? void 0 : o ? w(e, t) : e, s = r.length - 1, l; s >= 0; s--)
16
12
  (l = r[s]) && (a = (o ? l(e, t, a) : l(a)) || a);
@@ -39,31 +35,14 @@ let i = class extends m {
39
35
  });
40
36
  }
41
37
  render() {
42
- return b`<cx-space spacing="x-small" wrap="nowrap">
43
- <cx-bicolor-picker
44
- part="border-color"
45
- value=${`${this.value[0]} ${this.value[1]}`}
46
- .form=${this.closest("form")}
47
- @cx-bicolor-picker-change=${this.handleBiColorPickerChange}
48
- ></cx-bicolor-picker>
49
- <cx-input
50
- part="border-width"
51
- class="border-width"
52
- value=${this.value[2]}
53
- mask="numpx"
54
- .maskBlocks=${{
38
+ return b`<cx-space spacing="x-small" wrap="nowrap"><cx-bicolor-picker part="border-color" value=${`${this.value[0]} ${this.value[1]}`} .form=${this.closest("form")} @cx-bicolor-picker-change=${this.handleBiColorPickerChange}></cx-bicolor-picker><cx-input part="border-width" class="border-width" value=${this.value[2]} mask="numpx" .maskBlocks=${{
55
39
  num: {
56
40
  mask: Number,
57
41
  min: 0,
58
42
  scale: 0,
59
43
  thousandsSeparator: ""
60
44
  }
61
- }}
62
- .form=${this.closest("form")}
63
- @cx-change=${this.handleBorderWidthInputChange}
64
- placeholder=${this.localize.term("borderWidth")}
65
- ></cx-input>
66
- </cx-space>`;
45
+ }} .form=${this.closest("form")} @cx-change=${this.handleBorderWidthInputChange} placeholder=${this.localize.term("borderWidth")}></cx-input></cx-space>`;
67
46
  }
68
47
  };
69
48
  i.styles = [h, g];