@splunk/react-ui 5.0.0 → 5.1.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 (94) hide show
  1. package/Accordion.js +59 -59
  2. package/Avatar.js +20 -20
  3. package/Breadcrumbs.js +46 -46
  4. package/Button.js +24 -24
  5. package/CHANGELOG.md +21 -2
  6. package/Calendar.js +69 -69
  7. package/Card.js +68 -68
  8. package/Chip.js +16 -16
  9. package/Clickable.js +29 -29
  10. package/Code.js +654 -519
  11. package/CollapsiblePanel.js +112 -112
  12. package/Color.js +107 -107
  13. package/ColumnLayout.js +35 -35
  14. package/ComboBox.js +190 -206
  15. package/ControlGroup.js +128 -120
  16. package/Date.js +148 -146
  17. package/DefinitionList.js +26 -26
  18. package/DualListbox.js +701 -717
  19. package/File.js +403 -403
  20. package/FormRows.js +66 -63
  21. package/Image.js +15 -15
  22. package/JSONTree.js +458 -357
  23. package/Layer.js +60 -72
  24. package/Markdown.js +66 -66
  25. package/Menu.js +44 -44
  26. package/Modal.js +49 -49
  27. package/ModalLayer.js +6 -6
  28. package/Monogram.js +16 -16
  29. package/Multiselect.js +622 -624
  30. package/Number.js +100 -100
  31. package/Paginator.js +7 -7
  32. package/Popover.js +453 -407
  33. package/Progress.js +12 -12
  34. package/Prose.js +6 -6
  35. package/RadioBar.js +180 -166
  36. package/RadioList.js +80 -79
  37. package/ResultsMenu.js +15 -15
  38. package/Scroll.js +50 -50
  39. package/Search.js +148 -164
  40. package/Select.js +668 -670
  41. package/Slider.js +30 -30
  42. package/SlidingPanels.js +24 -24
  43. package/SplitButton.js +50 -50
  44. package/StepBar.js +100 -100
  45. package/Switch.js +45 -45
  46. package/TabBar.js +196 -196
  47. package/TabLayout.js +16 -16
  48. package/Table.js +1207 -1193
  49. package/Text.js +65 -65
  50. package/TextArea.js +108 -93
  51. package/Tooltip.js +203 -197
  52. package/Tree.js +464 -366
  53. package/package.json +6 -6
  54. package/stubs-dependencies.d.ts +0 -70
  55. package/stubs-splunkui.d.ts +4 -0
  56. package/types/src/Code/Code.d.ts +17 -1
  57. package/types/src/Code/LineHighlights.d.ts +11 -0
  58. package/types/src/Code/LineNumbers.d.ts +6 -0
  59. package/types/src/Code/docs/examples/LineHighlights.d.ts +3 -0
  60. package/types/src/Code/docs/examples/LineNumbers.d.ts +3 -0
  61. package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +3 -0
  62. package/types/src/Date/Date.d.ts +6 -1
  63. package/types/src/DefinitionList/DefinitionList.d.ts +6 -6
  64. package/types/src/FormRows/FormRows.d.ts +1 -1
  65. package/types/src/JSONTree/JSONTreeItem.d.ts +5 -2
  66. package/types/src/Markdown/Markdown.d.ts +1 -1
  67. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
  68. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
  69. package/types/src/Markdown/renderers/index.d.ts +1 -1
  70. package/types/src/Popover/Popover.d.ts +1 -1
  71. package/types/src/RadioBar/Option.d.ts +1 -1
  72. package/types/src/RadioBar/RadioBar.d.ts +13 -6
  73. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  74. package/types/src/RadioList/RadioList.d.ts +2 -1
  75. package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +3 -0
  76. package/types/src/Scroll/Inner.d.ts +1 -1
  77. package/types/src/Select/Option.d.ts +1 -1
  78. package/types/src/Select/Select.d.ts +1 -1
  79. package/types/src/Slider/docs/examples/Controlled.d.ts +1 -1
  80. package/types/src/TabLayout/Panel.d.ts +0 -1
  81. package/types/src/Table/Head.d.ts +1 -0
  82. package/types/src/Table/HeadCell.d.ts +2 -3
  83. package/types/src/Table/HeadDropdownCell.d.ts +2 -2
  84. package/types/src/Table/HeadInner.d.ts +4 -4
  85. package/types/src/Table/KeyboardSensor.d.ts +1 -1
  86. package/types/src/Table/RowDragCell.d.ts +1 -1
  87. package/types/src/Tooltip/Tooltip.d.ts +10 -5
  88. package/types/src/Tree/Item.d.ts +63 -0
  89. package/types/src/Tree/Tree.d.ts +13 -6
  90. package/types/src/Tree/TreeContext.d.ts +1 -1
  91. package/types/src/Tree/index.d.ts +1 -1
  92. package/types/src/useControlled/useControlled.d.ts +3 -1
  93. package/useControlled.js +29 -13
  94. package/types/src/Tree/TreeItem.d.ts +0 -44
package/StepBar.js CHANGED
@@ -72,81 +72,81 @@
72
72
  var o = e.n(a);
73
73
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
74
74
  const i = require("@splunk/ui-utils/id");
75
+ // CONCATENATED MODULE: ./src/StepBar/StepBarContext.tsx
76
+ var l = (0, r.createContext)({
77
+ activeStepId: 0
78
+ });
79
+ l.displayName = "StepBar";
80
+ /* harmony default export */ const c = l;
75
81
  // CONCATENATED MODULE: external "styled-components"
76
- const l = require("styled-components");
77
- var c = e.n(l);
78
- // CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
79
- const s = require("@splunk/react-icons/CheckCircle");
82
+ const s = require("styled-components");
80
83
  var p = e.n(s);
81
- // CONCATENATED MODULE: external "@splunk/react-icons/ExclamationCircle"
82
- const d = require("@splunk/react-icons/ExclamationCircle");
84
+ // CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
85
+ const d = require("@splunk/react-icons/CheckCircle");
83
86
  var u = e.n(d);
87
+ // CONCATENATED MODULE: external "@splunk/react-icons/ExclamationCircle"
88
+ const v = require("@splunk/react-icons/ExclamationCircle");
89
+ var f = e.n(v);
84
90
  // CONCATENATED MODULE: external "@splunk/themes"
85
- const v = require("@splunk/themes");
91
+ const b = require("@splunk/themes");
86
92
  // CONCATENATED MODULE: ./src/StepBar/StepStyles.ts
87
- var f = "2px";
88
- var b = "24px";
89
- var y = "10px";
90
- /* half of the actual rendered svg size (20px) */ var m = (0,
91
- l.css)([ "height:", ";width:", ";" ], b, b);
92
- var g = c().div.withConfig({
93
+ var y = "2px";
94
+ var m = "24px";
95
+ var g = "10px";
96
+ /* half of the actual rendered svg size (20px) */ var h = (0,
97
+ s.css)([ "height:", ";width:", ";" ], m, m);
98
+ var C = p().div.withConfig({
93
99
  displayName: "StepStyles__StyledBar",
94
100
  componentId: "sc-756fxp-0"
95
- })([ "position:absolute;top:10px;height:", ";width:100%;&::before,&::after{content:'';display:block;height:", ";}" ], f, f);
96
- var h = c().li.withConfig({
101
+ })([ "position:absolute;top:10px;height:", ";width:100%;&::before,&::after{content:'';display:block;height:", ";}" ], y, y);
102
+ var S = p().li.withConfig({
97
103
  displayName: "StepStyles__Styled",
98
104
  componentId: "sc-756fxp-1"
99
- })([ "", ";display:grid;gap:", ";grid-template-rows:auto 1fr;justify-items:center;min-width:min-content;position:relative;overflow:hidden;text-align:center;color:", ";counter-increment:", ";&:not(:first-of-type){", "{&::before{box-shadow:inset 500px 0 ", ";width:calc(50% - ", ");}}}&:not(:last-of-type){", "{&::after{width:50%;position:absolute;top:0;box-shadow:inset 500px 0 ", ";left:calc(50% + ", ");}}}" ], v.mixins.typography("body", {
105
+ })([ "", ";display:grid;gap:", ";grid-template-rows:auto 1fr;justify-items:center;min-width:min-content;position:relative;overflow:hidden;text-align:center;color:", ";counter-increment:", ";&:not(:first-of-type){", "{&::before{box-shadow:inset 500px 0 ", ";width:calc(50% - ", ");}}}&:not(:last-of-type){", "{&::after{width:50%;position:absolute;top:0;box-shadow:inset 500px 0 ", ";left:calc(50% + ", ");}}}" ], b.mixins.typography("body", {
100
106
  weight: "semiBold"
101
- }), v.variables.spacingXSmall, (0, v.pickVariant)("$status", {
102
- error: v.variables.contentColorActive,
103
- active: v.variables.contentColorAccent,
104
- next: v.variables.contentColorDefault,
105
- prev: v.variables.contentColorActive
107
+ }), b.variables.spacingXSmall, (0, b.pickVariant)("$status", {
108
+ error: b.variables.contentColorActive,
109
+ active: b.variables.contentColorAccent,
110
+ next: b.variables.contentColorDefault,
111
+ prev: b.variables.contentColorActive
106
112
  }), (function(e) {
107
113
  var t = e.$idCounter;
108
114
  return t;
109
- }), /* sc-sel */ g, (0, v.pickVariant)("$status", {
110
- error: v.variables.contentColorAccent,
111
- active: v.variables.contentColorAccent,
112
- next: v.variables.borderColor,
113
- prev: v.variables.contentColorAccent
114
- }), y, /* sc-sel */ g, (0, v.pickVariant)("$status", {
115
- error: v.variables.borderColor,
116
- active: v.variables.borderColor,
117
- next: v.variables.borderColor,
118
- prev: v.variables.contentColorAccent
119
- }), y);
120
- var C = "16px";
121
- var S = c().span.withConfig({
115
+ }), /* sc-sel */ C, (0, b.pickVariant)("$status", {
116
+ error: b.variables.contentColorAccent,
117
+ active: b.variables.contentColorAccent,
118
+ next: b.variables.borderColor,
119
+ prev: b.variables.contentColorAccent
120
+ }), g, /* sc-sel */ C, (0, b.pickVariant)("$status", {
121
+ error: b.variables.borderColor,
122
+ active: b.variables.borderColor,
123
+ next: b.variables.borderColor,
124
+ prev: b.variables.contentColorAccent
125
+ }), g);
126
+ var x = "16px";
127
+ var w = p().span.withConfig({
122
128
  displayName: "StepStyles__StyledCircle",
123
129
  componentId: "sc-756fxp-2"
124
- })([ "display:grid;height:", ";width:", ";border-radius:50%;margin:2px;", " &::before{content:counter(", ");line-height:", ";}" ], C, C, (0,
125
- v.pickVariant)("$status", {
126
- active: (0, l.css)([ "background-color:", ";border:2px solid ", ";color:", ";" ], v.variables.contentColorAccent, v.variables.contentColorAccent, v.variables.contentColorInverted),
127
- next: (0, l.css)([ "border:2px solid ", ";color:", ";" ], v.variables.contentColorDefault, v.variables.contentColorDefault)
130
+ })([ "display:grid;height:", ";width:", ";border-radius:50%;margin:2px;", " &::before{content:counter(", ");line-height:", ";}" ], x, x, (0,
131
+ b.pickVariant)("$status", {
132
+ active: (0, s.css)([ "background-color:", ";border:2px solid ", ";color:", ";" ], b.variables.contentColorAccent, b.variables.contentColorAccent, b.variables.contentColorInverted),
133
+ next: (0, s.css)([ "border:2px solid ", ";color:", ";" ], b.variables.contentColorDefault, b.variables.contentColorDefault)
128
134
  }), (function(e) {
129
135
  var t = e.$idCounter;
130
136
  return t;
131
- }), C);
132
- var x = c()(p()).withConfig({
137
+ }), x);
138
+ var I = p()(u()).withConfig({
133
139
  displayName: "StepStyles__StyledCheckCircleIcon",
134
140
  componentId: "sc-756fxp-3"
135
- })([ "", ";color:", ";" ], m, v.variables.contentColorAccent);
136
- var w = c()(u()).withConfig({
141
+ })([ "", ";color:", ";" ], h, b.variables.contentColorAccent);
142
+ var O = p()(f()).withConfig({
137
143
  displayName: "StepStyles__StyledExclamationCircleIcon",
138
144
  componentId: "sc-756fxp-4"
139
- })([ "", ";color:", ";" ], m, v.variables.contentColorNegative);
140
- var I = c().span.withConfig({
145
+ })([ "", ";color:", ";" ], h, b.variables.contentColorNegative);
146
+ var _ = p().span.withConfig({
141
147
  displayName: "StepStyles__StyledStepLabel",
142
148
  componentId: "sc-756fxp-5"
143
- })([ "padding-inline:calc(", " / 2);" ], v.variables.spacingXXLarge);
144
- // CONCATENATED MODULE: ./src/StepBar/StepBarContext.tsx
145
- var O = (0, r.createContext)({
146
- activeStepId: 0
147
- });
148
- O.displayName = "StepBar";
149
- /* harmony default export */ const _ = O;
149
+ })([ "padding-inline:calc(", " / 2);" ], b.variables.spacingXXLarge);
150
150
  // CONCATENATED MODULE: ./src/StepBar/Step.tsx
151
151
  function $() {
152
152
  return $ = Object.assign ? Object.assign.bind() : function(e) {
@@ -188,57 +188,57 @@
188
188
  stepId: o().any
189
189
  };
190
190
  function k(e) {
191
- var t = e.children, a = e.elementRef, o = e.error, i = o === void 0 ? false : o, l = e.stepId, c = E(e, [ "children", "elementRef", "error", "stepId" ]);
191
+ var t = e.children, a = e.elementRef, o = e.error, i = o === void 0 ? false : o, c = e.stepId, s = E(e, [ "children", "elementRef", "error", "stepId" ]);
192
192
  // @docs-props-type StepPropsBase
193
- var s = (0, r.useContext)(O), p = s.activeStepId, d = s.idCounter;
194
- var u = "next";
195
- var v = p === l;
196
- if (l != null && l < p) {
197
- u = "prev";
193
+ var p = (0, r.useContext)(l), d = p.activeStepId, u = p.idCounter;
194
+ var v = "next";
195
+ var f = d === c;
196
+ if (c != null && c < d) {
197
+ v = "prev";
198
198
  }
199
- if (v && !i) {
200
- u = "active";
199
+ if (f && !i) {
200
+ v = "active";
201
201
  }
202
- if (v && i) {
203
- u = "error";
202
+ if (f && i) {
203
+ v = "error";
204
204
  }
205
- var f = {
206
- error: n().createElement(w, null),
207
- prev: n().createElement(x, null),
208
- next: n().createElement(S, {
209
- $status: u,
210
- $idCounter: d
205
+ var b = {
206
+ error: n().createElement(O, null),
207
+ prev: n().createElement(I, null),
208
+ next: n().createElement(w, {
209
+ $status: v,
210
+ $idCounter: u
211
211
  }),
212
- active: n().createElement(S, {
213
- $status: u,
214
- $idCounter: d
212
+ active: n().createElement(w, {
213
+ $status: v,
214
+ $idCounter: u
215
215
  })
216
216
  };
217
217
 
218
- return n().createElement(h, $({
219
- $status: u,
220
- "data-test-status": u,
218
+ return n().createElement(S, $({
219
+ $status: v,
220
+ "data-test-status": v,
221
221
  "data-test": "step",
222
- "data-test-step-id": l,
222
+ "data-test-step-id": c,
223
223
  ref: a
224
- }, c, {
225
- $idCounter: d
226
- }), n().createElement(g, {
227
- $status: u
228
- }), n().createElement("div", null, f[u]), n().createElement(I, null, t));
224
+ }, s, {
225
+ $idCounter: u
226
+ }), n().createElement(C, {
227
+ $status: v
228
+ }), n().createElement("div", null, b[v]), n().createElement(_, null, t));
229
229
  }
230
230
  k.propTypes = P;
231
231
  /* harmony default export */ const A = k;
232
232
  // CONCATENATED MODULE: ./src/StepBar/StepBarStyles.ts
233
- var N = c().ul.withConfig({
233
+ var N = p().ul.withConfig({
234
234
  displayName: "StepBarStyles__Styled",
235
235
  componentId: "sc-13bf2x4-0"
236
- })([ "", ";grid-auto-flow:column;padding:", ";counter-reset:", ";", ";" ], v.mixins.reset("grid"), v.variables.spacingXLarge, (function(e) {
236
+ })([ "", ";grid-auto-flow:column;padding:", ";counter-reset:", ";", ";" ], b.mixins.reset("grid"), b.variables.spacingXLarge, (function(e) {
237
237
  var t = e.$idCounter;
238
238
  return t;
239
239
  }), (function(e) {
240
240
  var t = e.$inline;
241
- return t && (0, l.css)([ "display:inline-flex;" ]);
241
+ return t && (0, s.css)([ "display:inline-flex;" ]);
242
242
  }));
243
243
  // CONCATENATED MODULE: ./src/StepBar/StepBar.tsx
244
244
  function q() {
@@ -281,17 +281,17 @@
281
281
  inline: o().bool
282
282
  };
283
283
  function M(e) {
284
- var t = e.activeStepId, a = e.children, o = e.elementRef, l = e.inline, c = l === void 0 ? false : l, s = R(e, [ "activeStepId", "children", "elementRef", "inline" ]);
284
+ var t = e.activeStepId, a = e.children, o = e.elementRef, l = e.inline, s = l === void 0 ? false : l, p = R(e, [ "activeStepId", "children", "elementRef", "inline" ]);
285
285
  // @docs-props-type StepBarPropsBase
286
- var p = (0, r.useRef)((0, i.createDOMID)("stepbar")), d = p.current;
287
- var u = 0;
288
- var v = r.Children.toArray(a).filter(r.isValidElement);
289
- var f = v.length - 1;
290
- var b = v.map((function(e, n) {
286
+ var d = (0, r.useRef)((0, i.createDOMID)("stepbar")), u = d.current;
287
+ var v = 0;
288
+ var f = r.Children.toArray(a).filter(r.isValidElement);
289
+ var b = f.length - 1;
290
+ var y = f.map((function(e, n) {
291
291
  var a = e.props.stepId || n;
292
292
  var o = e.props.error;
293
293
  if (a === t) {
294
- u = n;
294
+ v = n;
295
295
  }
296
296
 
297
297
  return (0, r.cloneElement)(e, {
@@ -299,27 +299,27 @@
299
299
  error: o
300
300
  });
301
301
  }));
302
- var y = (0, r.useMemo)((function() {
302
+ var m = (0, r.useMemo)((function() {
303
303
  return {
304
- idCounter: d,
305
- lastChildIndex: f,
304
+ idCounter: u,
305
+ lastChildIndex: b,
306
306
  activeStepId: t
307
307
  };
308
- }), [ t, d, f ]);
308
+ }), [ t, u, b ]);
309
309
 
310
310
  return n().createElement(N, q({
311
- $inline: c,
311
+ $inline: s,
312
312
  "data-test": "step-bar",
313
313
  "data-test-active-step-id": t,
314
314
  role: "progressbar",
315
315
  "aria-valuemin": 1,
316
- "aria-valuemax": f + 1,
317
- "aria-valuenow": u + 1,
318
- $idCounter: d,
316
+ "aria-valuemax": b + 1,
317
+ "aria-valuenow": v + 1,
318
+ $idCounter: u,
319
319
  ref: o
320
- }, s), n().createElement(_.Provider, {
321
- value: y
322
- }, b));
320
+ }, p), n().createElement(c.Provider, {
321
+ value: m
322
+ }, y));
323
323
  }
324
324
  M.propTypes = D;
325
325
  M.Step = A;
package/Switch.js CHANGED
@@ -79,108 +79,108 @@
79
79
  // CONCATENATED MODULE: external "styled-components"
80
80
  const d = require("styled-components");
81
81
  var u = e.n(d);
82
- // CONCATENATED MODULE: external "@splunk/react-ui/Box"
83
- const b = require("@splunk/react-ui/Box");
82
+ // CONCATENATED MODULE: external "@splunk/react-icons/CheckBoxCompleted"
83
+ const b = require("@splunk/react-icons/CheckBoxCompleted");
84
84
  var v = e.n(b);
85
- // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
86
- const f = require("@splunk/react-ui/Clickable");
85
+ // CONCATENATED MODULE: external "@splunk/react-icons/CheckBoxIndeterminate"
86
+ const f = require("@splunk/react-icons/CheckBoxIndeterminate");
87
87
  var p = e.n(f);
88
+ // CONCATENATED MODULE: external "@splunk/react-ui/Box"
89
+ const g = require("@splunk/react-ui/Box");
90
+ var y = e.n(g);
91
+ // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
92
+ const m = require("@splunk/react-ui/Clickable");
93
+ var h = e.n(m);
88
94
  // CONCATENATED MODULE: external "@splunk/themes"
89
- const g = require("@splunk/themes");
90
- // CONCATENATED MODULE: external "@splunk/react-icons/CheckBoxCompleted"
91
- const y = require("@splunk/react-icons/CheckBoxCompleted");
92
- var m = e.n(y);
93
- // CONCATENATED MODULE: external "@splunk/react-icons/CheckBoxIndeterminate"
94
- const h = require("@splunk/react-icons/CheckBoxIndeterminate");
95
- var k = e.n(h);
95
+ const k = require("@splunk/themes");
96
96
  // CONCATENATED MODULE: ./src/Switch/SwitchStyles.ts
97
97
  var C = "20px";
98
98
  var S = "12px";
99
99
  var w = "4px";
100
100
  // diameter - toggleIndicatorDiameter / 2
101
- var O = u()(v()).withConfig({
101
+ var O = u()(y()).withConfig({
102
102
  displayName: "SwitchStyles__StyledBox",
103
103
  componentId: "sc-844ieu-0"
104
- })([ "display:inline;position:relative;flex-shrink:0;gap:", ";min-height:", ";align-items:center;color:", ";", "" ], g.variables.spacingSmall, g.variables.inputHeight, g.variables.contentColorActive, (function(e) {
104
+ })([ "display:inline;position:relative;flex-shrink:0;gap:", ";min-height:", ";align-items:center;color:", ";", "" ], k.variables.spacingSmall, k.variables.inputHeight, k.variables.contentColorActive, (function(e) {
105
105
  var r = e.$disabled;
106
- return r && (0, d.css)([ "color:", ";" ], g.variables.contentColorDisabled);
106
+ return r && (0, d.css)([ "color:", ";" ], k.variables.contentColorDisabled);
107
107
  }));
108
- var x = (0, d.css)([ "", " position:relative;width:", ";height:", ";line-height:", ";border-radius:", ";border:", " solid ", ";background-color:", ";cursor:pointer;flex:0 0 auto;&:not([disabled]){&:focus{box-shadow:", ";}color:", ";", "}&[disabled]{border-color:", ";background-color:", ";color:", ";cursor:not-allowed;", ";}" ], g.mixins.reset("inline"), C, C, C, g.variables.borderRadius, g.variables.inputBorderWidth, g.variables.interactiveColorBorder, g.variables.interactiveColorBackground, g.variables.focusShadow, (0,
109
- g.pick)({
110
- light: g.variables.white,
111
- dark: g.variables.black
108
+ var x = (0, d.css)([ "", " position:relative;width:", ";height:", ";line-height:", ";border-radius:", ";border:", " solid ", ";background-color:", ";cursor:pointer;flex:0 0 auto;&:not([disabled]){&:focus{box-shadow:", ";}color:", ";", "}&[disabled]{border-color:", ";background-color:", ";color:", ";cursor:not-allowed;", ";}" ], k.mixins.reset("inline"), C, C, C, k.variables.borderRadius, k.variables.inputBorderWidth, k.variables.interactiveColorBorder, k.variables.interactiveColorBackground, k.variables.focusShadow, (0,
109
+ k.pick)({
110
+ light: k.variables.white,
111
+ dark: k.variables.black
112
112
  }), (function(e) {
113
113
  var r = e.$error, a = e.$selected;
114
114
  if (a && !r) {
115
- return (0, d.css)([ "background-color:", ";border:none;" ], g.variables.interactiveColorAccent);
115
+ return (0, d.css)([ "background-color:", ";border:none;" ], k.variables.interactiveColorAccent);
116
116
  }
117
117
  if (!a && r) {
118
- return (0, d.css)([ "border-color:", ";&:hover{border-color:", ";background-color:", ";}" ], g.variables.interactiveColorAccentError, g.mixins.overlayColors(g.variables.interactiveColorAccentError, g.variables.interactiveColorBorderHover), g.mixins.overlayColors(g.variables.interactiveColorBackground, g.variables.interactiveColorOverlayHover));
118
+ return (0, d.css)([ "border-color:", ";&:hover{border-color:", ";background-color:", ";}" ], k.variables.interactiveColorAccentError, k.mixins.overlayColors(k.variables.interactiveColorAccentError, k.variables.interactiveColorBorderHover), k.mixins.overlayColors(k.variables.interactiveColorBackground, k.variables.interactiveColorOverlayHover));
119
119
  }
120
120
  if (a && r) {
121
- return (0, d.css)([ "background-color:", ";border:none;" ], g.variables.interactiveColorAccentError);
121
+ return (0, d.css)([ "background-color:", ";border:none;" ], k.variables.interactiveColorAccentError);
122
122
  }
123
- return (0, d.css)([ "&:hover{border-color:", ";background-color:", ";}" ], g.variables.interactiveColorBorderHover, g.mixins.overlayColors(g.variables.interactiveColorBackground, g.variables.interactiveColorOverlayHover));
124
- }), g.variables.interactiveColorBorderDisabled, g.variables.interactiveColorBackgroundDisabled, g.variables.contentColorDisabled, (function(e) {
123
+ return (0, d.css)([ "&:hover{border-color:", ";background-color:", ";}" ], k.variables.interactiveColorBorderHover, k.mixins.overlayColors(k.variables.interactiveColorBackground, k.variables.interactiveColorOverlayHover));
124
+ }), k.variables.interactiveColorBorderDisabled, k.variables.interactiveColorBackgroundDisabled, k.variables.contentColorDisabled, (function(e) {
125
125
  var r = e.$selected;
126
- return r && (0, d.css)([ "border:none;background-color:", ";" ], g.variables.neutral100);
126
+ return r && (0, d.css)([ "border:none;background-color:", ";" ], k.variables.neutral100);
127
127
  }));
128
- var B = u()(p()).withConfig({
128
+ var B = u()(h()).withConfig({
129
129
  displayName: "SwitchStyles__StyledCheckboxClickable",
130
130
  componentId: "sc-844ieu-1"
131
131
  })([ "", "" ], x);
132
132
  var j = (0, d.css)([ "display:block;height:", ";width:", ";" ], C, C);
133
- var $ = u()(m()).withConfig({
133
+ var $ = u()(v()).withConfig({
134
134
  displayName: "SwitchStyles__StyledCheck",
135
135
  componentId: "sc-844ieu-2"
136
136
  })([ "", "" ], j);
137
- var I = u()(k()).withConfig({
137
+ var I = u()(p()).withConfig({
138
138
  displayName: "SwitchStyles__StyledSome",
139
139
  componentId: "sc-844ieu-3"
140
140
  })([ "", "" ], j);
141
141
  var q = u().div.withConfig({
142
142
  displayName: "SwitchStyles__StyledToggleIndicator",
143
143
  componentId: "sc-844ieu-4"
144
- })([ "--toggle-indicator-margin:calc(", " - ", ");background-color:", ";border-radius:50%;box-sizing:border-box;width:", ";height:", ";position:absolute;left:var(--toggle-indicator-margin);top:var(--toggle-indicator-margin);", ";", " ", " ", ";" ], w, g.variables.inputBorderWidth, (0,
145
- g.pick)({
146
- light: g.variables.black,
147
- dark: g.variables.white
144
+ })([ "--toggle-indicator-margin:calc(", " - ", ");background-color:", ";border-radius:50%;box-sizing:border-box;width:", ";height:", ";position:absolute;left:var(--toggle-indicator-margin);top:var(--toggle-indicator-margin);", ";", " ", " ", ";" ], w, k.variables.inputBorderWidth, (0,
145
+ k.pick)({
146
+ light: k.variables.black,
147
+ dark: k.variables.white
148
148
  }), S, S, (function(e) {
149
149
  var r = e.$delay;
150
150
  return r && (0, d.css)([ "transition:left ", ";" ], r);
151
- }), (0, g.pick)({
152
- prisma: (0, d.css)([ "box-shadow:", ";" ], g.variables.embossShadow)
151
+ }), (0, k.pick)({
152
+ prisma: (0, d.css)([ "box-shadow:", ";" ], k.variables.embossShadow)
153
153
  }), (function(e) {
154
154
  var r = e.$selected, a = e.$disabled;
155
155
  return (0, d.css)([ "", " ", "" ], r && (0, d.css)([ "left:calc(100% - (", " + var(--toggle-indicator-margin)));" ], S), !a && r && (0,
156
- d.css)([ "background-color:", ";" ], (0, g.pick)({
157
- light: g.variables.white,
158
- dark: g.variables.black
156
+ d.css)([ "background-color:", ";" ], (0, k.pick)({
157
+ light: k.variables.white,
158
+ dark: k.variables.black
159
159
  })));
160
160
  }), (function(e) {
161
161
  var r = e.$disabled;
162
- return r && (0, d.css)([ "background-color:", ";" ], g.variables.neutral400);
162
+ return r && (0, d.css)([ "background-color:", ";" ], k.variables.neutral400);
163
163
  }));
164
- var E = (0, d.css)([ "position:relative;width:calc(", " * 2);height:", ";background-color:", ";transition:background-color ", ";flex:0 0 auto;border-radius:calc(", " / 2);border:", " solid ", ";&:not([disabled]){&:focus{box-shadow:", ";}", "}&[disabled]{border:", " solid ", ";background-color:", ";", "}" ], C, C, g.variables.interactiveColorBackground, (function(e) {
164
+ var E = (0, d.css)([ "position:relative;width:calc(", " * 2);height:", ";background-color:", ";transition:background-color ", ";flex:0 0 auto;border-radius:calc(", " / 2);border:", " solid ", ";&:not([disabled]){&:focus{box-shadow:", ";}", "}&[disabled]{border:", " solid ", ";background-color:", ";", "}" ], C, C, k.variables.interactiveColorBackground, (function(e) {
165
165
  return e.$delay;
166
- }), C, g.variables.inputBorderWidth, g.variables.interactiveColorBorder, g.variables.focusShadow, (function(e) {
166
+ }), C, k.variables.inputBorderWidth, k.variables.interactiveColorBorder, k.variables.focusShadow, (function(e) {
167
167
  var r = e.$selected;
168
168
  if (!r) {
169
- return (0, d.css)([ "&:hover{border-color:", ";background-color:", ";}" ], g.variables.interactiveColorBorderHover, g.mixins.overlayColors(g.variables.interactiveColorBackground, g.variables.interactiveColorOverlayHover));
169
+ return (0, d.css)([ "&:hover{border-color:", ";background-color:", ";}" ], k.variables.interactiveColorBorderHover, k.mixins.overlayColors(k.variables.interactiveColorBackground, k.variables.interactiveColorOverlayHover));
170
170
  }
171
- return (0, d.css)([ "border-color:transparent;background-color:", ";" ], g.variables.interactiveColorAccent);
172
- }), g.variables.inputBorderWidth, g.variables.interactiveColorBorderDisabled, g.variables.interactiveColorBackgroundDisabled, (function(e) {
171
+ return (0, d.css)([ "border-color:transparent;background-color:", ";" ], k.variables.interactiveColorAccent);
172
+ }), k.variables.inputBorderWidth, k.variables.interactiveColorBorderDisabled, k.variables.interactiveColorBackgroundDisabled, (function(e) {
173
173
  var r = e.$selected;
174
- return r && (0, d.css)([ "background-color:", ";" ], g.variables.neutral100);
174
+ return r && (0, d.css)([ "background-color:", ";" ], k.variables.neutral100);
175
175
  }));
176
- var P = u()(p()).withConfig({
176
+ var P = u()(h()).withConfig({
177
177
  displayName: "SwitchStyles__StyledToggleClickable",
178
178
  componentId: "sc-844ieu-5"
179
179
  })([ "", "" ], E);
180
180
  var _ = u().label.withConfig({
181
181
  displayName: "SwitchStyles__StyledLabel",
182
182
  componentId: "sc-844ieu-6"
183
- })([ "", " flex:1 1 auto;color:inherit;line-height:", ";", ";" ], g.mixins.reset("inline-block"), g.variables.lineHeight, (function(e) {
183
+ })([ "", " flex:1 1 auto;color:inherit;line-height:", ";", ";" ], k.mixins.reset("inline-block"), k.variables.lineHeight, (function(e) {
184
184
  var r = e.$disabled;
185
185
  return !r && (0, d.css)([ "cursor:pointer;" ]);
186
186
  }));