@pareto-engineering/design-system 4.6.0 → 4.7.1-alpha.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.
@@ -36,6 +36,7 @@ $default-height: var(--notification-height, 5rem);
36
36
  > .message {
37
37
  font-size: calc(var(--s0) * 1rem);
38
38
  margin-left: calc($default-margin / 2);
39
+ text-transform: capitalize;
39
40
  }
40
41
 
41
42
  > span {
@@ -78,9 +78,9 @@ ToggleSwitch.propTypes = {
78
78
  /**
79
79
  * The ID of the elelment to be toggled
80
80
  */
81
- inputId: _propTypes.default.string
81
+ inputId: _propTypes.default.string.isRequired
82
82
  };
83
83
  ToggleSwitch.defaultProps = {
84
- inputId: 'switch'
84
+ // someProp: 'someValue',
85
85
  };
86
86
  var _default = exports.default = ToggleSwitch;
@@ -37,12 +37,17 @@ const Button = _ref => {
37
37
  const buttonText = isSimple ? /*#__PURE__*/React.createElement("span", {
38
38
  className: _exports.default.modifierUnderlined
39
39
  }, children) : children;
40
+ const {
41
+ disabled,
42
+ ...rest
43
+ } = otherProps;
40
44
  return /*#__PURE__*/React.createElement("button", _extends({
41
45
  id: id,
42
46
  className: [baseClassName, componentClassName, userClassName, `x-${color}`, textColor && `y-${textColor}`, isGhost && _exports.default.modifierGhost, isCompact && _exports.default.modifierCompact, isSimple && _exports.default.modifierSimple, isGradient && _exports.default.modifierGradient, isSpaced && _exports.default.modifierSpaced, !isLoading && arrowDirection && `arrow-${arrowDirection}`].filter(e => e).join(' '),
43
47
  style: style,
44
- type: "button"
45
- }, otherProps), isLoading ? /*#__PURE__*/React.createElement(_.LoadingCircle, {
48
+ type: "button",
49
+ disabled: disabled || isLoading
50
+ }, rest), isLoading ? /*#__PURE__*/React.createElement(_.LoadingCircle, {
46
51
  style: {
47
52
  '--x': 'var(--stroke-color, var(--on-x))'
48
53
  },
@@ -46,7 +46,8 @@ const ThemeSelector = _ref => {
46
46
  className: "c-x x-paragraph"
47
47
  }, userTheme && userTheme[0].toUpperCase() + userTheme.slice(1), ' ', "Theme"), /*#__PURE__*/React.createElement(_a.ToggleSwitch, {
48
48
  checked: userTheme === 'dark',
49
- handleOnChange: loopThemes
49
+ handleOnChange: loopThemes,
50
+ inputId: "theme-toggle"
50
51
  }));
51
52
  };
52
53
  ThemeSelector.propTypes = {
@@ -31,6 +31,7 @@ const DragAndDrop = _ref => {
31
31
  // ...otherProps
32
32
  } = _ref;
33
33
  const [draggableItems, setDraggableItems] = (0, _react.useState)(items);
34
+ const [dragOverIndex, setDragOverIndex] = (0, _react.useState)(null);
34
35
  const handleDrop = (e, dragOverItemIndex) => {
35
36
  e.preventDefault();
36
37
  const dragItemIndex = e.dataTransfer.getData('text');
@@ -39,6 +40,7 @@ const DragAndDrop = _ref => {
39
40
  orderedItems.splice(dragOverItemIndex, 0, reorderedItem);
40
41
  setDraggableItems(orderedItems);
41
42
  onOrderChange?.(orderedItems);
43
+ setDragOverIndex(null);
42
44
  };
43
45
  return /*#__PURE__*/React.createElement(Wrapper, {
44
46
  id: id,
@@ -53,8 +55,13 @@ const DragAndDrop = _ref => {
53
55
  ...rest
54
56
  } = _ref2;
55
57
  return /*#__PURE__*/React.createElement(_common.DraggableItem, _extends({
58
+ className: dragOverIndex === index && 'drag-over',
56
59
  draggable: true,
57
60
  onDrop: e => handleDrop(e, index),
61
+ onDragOver: e => {
62
+ e.preventDefault();
63
+ setDragOverIndex(index);
64
+ },
58
65
  index: index,
59
66
  key: identifier
60
67
  }, rest), Content);
@@ -40,15 +40,11 @@ const DraggableItem = _ref => {
40
40
  const handleDragEnd = () => {
41
41
  setIsDragging(false);
42
42
  };
43
- const handleDragOver = e => {
44
- e.preventDefault();
45
- };
46
43
  return /*#__PURE__*/React.createElement(Wrapper, _extends({
47
44
  id: id,
48
45
  className: [baseClassName, componentClassName, userClassName, isDragging && 'dragging'].filter(e => e).join(' '),
49
46
  style: style,
50
47
  onDragStart: e => handleDragStart(e),
51
- onDragOver: e => handleDragOver(e),
52
48
  onDragEnd: e => handleDragEnd(e)
53
49
  }, otherProps), children);
54
50
  };
@@ -19,7 +19,17 @@ $default-margin: 1rem;
19
19
  }
20
20
 
21
21
  > form {
22
+
22
23
  /* stylelint-disable selector-max-compound-selectors -- required */
24
+
25
+ > .#{bem.$base}.drag-and-drop {
26
+ >.drag-over {
27
+ > .#{bem.$base}.input-builder {
28
+ border: 1px dashed var(--ui-lines);
29
+ }
30
+ }
31
+ }
32
+
23
33
  > .add-question-cta {
24
34
  align-items: center;
25
35
  background-color: transparent;
@@ -36,6 +36,7 @@ $default-height: var(--notification-height, 5rem);
36
36
  > .message {
37
37
  font-size: calc(var(--s0) * 1rem);
38
38
  margin-left: calc($default-margin / 2);
39
+ text-transform: capitalize;
39
40
  }
40
41
 
41
42
  > span {
@@ -66,9 +66,9 @@ ToggleSwitch.propTypes = {
66
66
  /**
67
67
  * The ID of the elelment to be toggled
68
68
  */
69
- inputId: PropTypes.string
69
+ inputId: PropTypes.string.isRequired
70
70
  };
71
71
  ToggleSwitch.defaultProps = {
72
- inputId: 'switch'
72
+ // someProp: 'someValue',
73
73
  };
74
74
  export default ToggleSwitch;
@@ -31,12 +31,17 @@ const Button = ({
31
31
  const buttonText = isSimple ? /*#__PURE__*/React.createElement("span", {
32
32
  className: styleNames.modifierUnderlined
33
33
  }, children) : children;
34
+ const {
35
+ disabled,
36
+ ...rest
37
+ } = otherProps;
34
38
  return /*#__PURE__*/React.createElement("button", _extends({
35
39
  id: id,
36
40
  className: [baseClassName, componentClassName, userClassName, `x-${color}`, textColor && `y-${textColor}`, isGhost && styleNames.modifierGhost, isCompact && styleNames.modifierCompact, isSimple && styleNames.modifierSimple, isGradient && styleNames.modifierGradient, isSpaced && styleNames.modifierSpaced, !isLoading && arrowDirection && `arrow-${arrowDirection}`].filter(e => e).join(' '),
37
41
  style: style,
38
- type: "button"
39
- }, otherProps), isLoading ? /*#__PURE__*/React.createElement(LoadingCircle, {
42
+ type: "button",
43
+ disabled: disabled || isLoading
44
+ }, rest), isLoading ? /*#__PURE__*/React.createElement(LoadingCircle, {
40
45
  style: {
41
46
  '--x': 'var(--stroke-color, var(--on-x))'
42
47
  },
@@ -36,7 +36,8 @@ const ThemeSelector = ({
36
36
  className: "c-x x-paragraph"
37
37
  }, userTheme && userTheme[0].toUpperCase() + userTheme.slice(1), ' ', "Theme"), /*#__PURE__*/React.createElement(ToggleSwitch, {
38
38
  checked: userTheme === 'dark',
39
- handleOnChange: loopThemes
39
+ handleOnChange: loopThemes,
40
+ inputId: "theme-toggle"
40
41
  }));
41
42
  };
42
43
  ThemeSelector.propTypes = {
@@ -25,6 +25,7 @@ const DragAndDrop = ({
25
25
  // ...otherProps
26
26
  }) => {
27
27
  const [draggableItems, setDraggableItems] = useState(items);
28
+ const [dragOverIndex, setDragOverIndex] = useState(null);
28
29
  const handleDrop = (e, dragOverItemIndex) => {
29
30
  e.preventDefault();
30
31
  const dragItemIndex = e.dataTransfer.getData('text');
@@ -33,6 +34,7 @@ const DragAndDrop = ({
33
34
  orderedItems.splice(dragOverItemIndex, 0, reorderedItem);
34
35
  setDraggableItems(orderedItems);
35
36
  onOrderChange?.(orderedItems);
37
+ setDragOverIndex(null);
36
38
  };
37
39
  return /*#__PURE__*/React.createElement(Wrapper, {
38
40
  id: id,
@@ -45,8 +47,13 @@ const DragAndDrop = ({
45
47
  Content,
46
48
  ...rest
47
49
  }, index) => /*#__PURE__*/React.createElement(DraggableItem, _extends({
50
+ className: dragOverIndex === index && 'drag-over',
48
51
  draggable: true,
49
52
  onDrop: e => handleDrop(e, index),
53
+ onDragOver: e => {
54
+ e.preventDefault();
55
+ setDragOverIndex(index);
56
+ },
50
57
  index: index,
51
58
  key: identifier
52
59
  }, rest), Content)));
@@ -32,15 +32,11 @@ const DraggableItem = ({
32
32
  const handleDragEnd = () => {
33
33
  setIsDragging(false);
34
34
  };
35
- const handleDragOver = e => {
36
- e.preventDefault();
37
- };
38
35
  return /*#__PURE__*/React.createElement(Wrapper, _extends({
39
36
  id: id,
40
37
  className: [baseClassName, componentClassName, userClassName, isDragging && 'dragging'].filter(e => e).join(' '),
41
38
  style: style,
42
39
  onDragStart: e => handleDragStart(e),
43
- onDragOver: e => handleDragOver(e),
44
40
  onDragEnd: e => handleDragEnd(e)
45
41
  }, otherProps), children);
46
42
  };
@@ -19,7 +19,17 @@ $default-margin: 1rem;
19
19
  }
20
20
 
21
21
  > form {
22
+
22
23
  /* stylelint-disable selector-max-compound-selectors -- required */
24
+
25
+ > .#{bem.$base}.drag-and-drop {
26
+ >.drag-over {
27
+ > .#{bem.$base}.input-builder {
28
+ border: 1px dashed var(--ui-lines);
29
+ }
30
+ }
31
+ }
32
+
23
33
  > .add-question-cta {
24
34
  align-items: center;
25
35
  background-color: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pareto-engineering/design-system",
3
- "version": "4.6.0",
3
+ "version": "4.7.1-alpha.0",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",
@@ -82,5 +82,5 @@
82
82
  "relay-test-utils": "^15.0.0"
83
83
  },
84
84
  "browserslist": "> 2%",
85
- "gitHead": "55eab180bec6adf2c4acb1908e2e1381495cf4ca"
85
+ "gitHead": "583a2500521c8da9aa2dfc7778c9df8b00b79516"
86
86
  }
@@ -36,6 +36,7 @@ $default-height: var(--notification-height, 5rem);
36
36
  > .message {
37
37
  font-size: calc(var(--s0) * 1rem);
38
38
  margin-left: calc($default-margin / 2);
39
+ text-transform: capitalize;
39
40
  }
40
41
 
41
42
  > span {
@@ -89,11 +89,11 @@ ToggleSwitch.propTypes = {
89
89
  /**
90
90
  * The ID of the elelment to be toggled
91
91
  */
92
- inputId:PropTypes.string,
92
+ inputId:PropTypes.string.isRequired,
93
93
  }
94
94
 
95
95
  ToggleSwitch.defaultProps = {
96
- inputId:'switch',
96
+ // someProp: 'someValue',
97
97
  }
98
98
 
99
99
  export default ToggleSwitch
@@ -31,6 +31,8 @@ const Button = ({
31
31
  const buttonText = isSimple ? <span className={styleNames.modifierUnderlined}>{children}</span>
32
32
  : children
33
33
 
34
+ const { disabled, ...rest } = otherProps
35
+
34
36
  return (
35
37
  <button
36
38
  id={id}
@@ -51,7 +53,8 @@ const Button = ({
51
53
  .join(' ')}
52
54
  style={style}
53
55
  type="button"
54
- {...otherProps}
56
+ disabled={disabled || isLoading}
57
+ {...rest}
55
58
  >
56
59
  {isLoading ? (
57
60
  <LoadingCircle
@@ -51,7 +51,7 @@ const ThemeSelector = ({
51
51
  {' '}
52
52
  Theme
53
53
  </span>
54
- <ToggleSwitch checked={userTheme === 'dark'} handleOnChange={loopThemes} />
54
+ <ToggleSwitch checked={userTheme === 'dark'} handleOnChange={loopThemes} inputId="theme-toggle" />
55
55
  </div>
56
56
  )
57
57
  }
@@ -30,6 +30,7 @@ const DragAndDrop = ({
30
30
  // ...otherProps
31
31
  }) => {
32
32
  const [draggableItems, setDraggableItems] = useState(items)
33
+ const [dragOverIndex, setDragOverIndex] = useState(null)
33
34
 
34
35
  const handleDrop = (e, dragOverItemIndex) => {
35
36
  e.preventDefault()
@@ -39,6 +40,7 @@ const DragAndDrop = ({
39
40
  orderedItems.splice(dragOverItemIndex, 0, reorderedItem)
40
41
  setDraggableItems(orderedItems)
41
42
  onOrderChange?.(orderedItems)
43
+ setDragOverIndex(null)
42
44
  }
43
45
 
44
46
  return (
@@ -60,8 +62,13 @@ const DragAndDrop = ({
60
62
  identifier, disabled, Content, ...rest
61
63
  }, index) => (
62
64
  <DraggableItem
65
+ className={dragOverIndex === index && 'drag-over'}
63
66
  draggable
64
67
  onDrop={(e) => handleDrop(e, index)}
68
+ onDragOver={(e) => {
69
+ e.preventDefault()
70
+ setDragOverIndex(index)
71
+ }}
65
72
  index={index}
66
73
  key={identifier}
67
74
  {...rest}
@@ -39,10 +39,6 @@ const DraggableItem = ({
39
39
  setIsDragging(false)
40
40
  }
41
41
 
42
- const handleDragOver = (e) => {
43
- e.preventDefault()
44
- }
45
-
46
42
  return (
47
43
  <Wrapper
48
44
  id={id}
@@ -56,7 +52,6 @@ const DraggableItem = ({
56
52
  .join(' ')}
57
53
  style={style}
58
54
  onDragStart={(e) => handleDragStart(e)}
59
- onDragOver={(e) => handleDragOver(e)}
60
55
  onDragEnd={(e) => handleDragEnd(e)}
61
56
  {...otherProps}
62
57
  >
@@ -19,7 +19,17 @@ $default-margin: 1rem;
19
19
  }
20
20
 
21
21
  > form {
22
+
22
23
  /* stylelint-disable selector-max-compound-selectors -- required */
24
+
25
+ > .#{bem.$base}.drag-and-drop {
26
+ >.drag-over {
27
+ > .#{bem.$base}.input-builder {
28
+ border: 1px dashed var(--ui-lines);
29
+ }
30
+ }
31
+ }
32
+
23
33
  > .add-question-cta {
24
34
  align-items: center;
25
35
  background-color: transparent;
@@ -11916,7 +11916,7 @@ exports[`Storyshots a/Timestamp Distance Format 1`] = `
11916
11916
  className="base timestamp"
11917
11917
  onClick={[Function]}
11918
11918
  >
11919
- almost 2 years ago
11919
+ about 2 years ago
11920
11920
  </p>
11921
11921
  `;
11922
11922
 
@@ -12022,12 +12022,9 @@ exports[`Storyshots a/ToggleSwitch Single 1`] = `
12022
12022
  type="button"
12023
12023
  >
12024
12024
  <input
12025
- id="switch"
12026
12025
  type="checkbox"
12027
12026
  />
12028
- <label
12029
- htmlFor="switch"
12030
- />
12027
+ <label />
12031
12028
  </button>
12032
12029
  `;
12033
12030
 
@@ -17562,6 +17559,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17562
17559
  [
17563
17560
  <button
17564
17561
  className="base button x-main"
17562
+ disabled={true}
17565
17563
  type="button"
17566
17564
  >
17567
17565
  <div
@@ -17603,6 +17601,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17603
17601
  </button>,
17604
17602
  <button
17605
17603
  className="base button x-main2"
17604
+ disabled={true}
17606
17605
  type="button"
17607
17606
  >
17608
17607
  <div
@@ -17644,6 +17643,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17644
17643
  </button>,
17645
17644
  <button
17646
17645
  className="base button x-red"
17646
+ disabled={true}
17647
17647
  type="button"
17648
17648
  >
17649
17649
  <div
@@ -17685,6 +17685,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17685
17685
  </button>,
17686
17686
  <button
17687
17687
  className="base button x-green"
17688
+ disabled={true}
17688
17689
  type="button"
17689
17690
  >
17690
17691
  <div
@@ -17726,6 +17727,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17726
17727
  </button>,
17727
17728
  <button
17728
17729
  className="base button x-orange"
17730
+ disabled={true}
17729
17731
  type="button"
17730
17732
  >
17731
17733
  <div
@@ -17767,6 +17769,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17767
17769
  </button>,
17768
17770
  <button
17769
17771
  className="base button x-gray"
17772
+ disabled={true}
17770
17773
  type="button"
17771
17774
  >
17772
17775
  <div
@@ -17808,6 +17811,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17808
17811
  </button>,
17809
17812
  <button
17810
17813
  className="base button x-blue"
17814
+ disabled={true}
17811
17815
  type="button"
17812
17816
  >
17813
17817
  <div
@@ -17849,6 +17853,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17849
17853
  </button>,
17850
17854
  <button
17851
17855
  className="base button x-purple"
17856
+ disabled={true}
17852
17857
  type="button"
17853
17858
  >
17854
17859
  <div
@@ -17890,6 +17895,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17890
17895
  </button>,
17891
17896
  <button
17892
17897
  className="base button x-yellow"
17898
+ disabled={true}
17893
17899
  type="button"
17894
17900
  >
17895
17901
  <div
@@ -17931,6 +17937,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17931
17937
  </button>,
17932
17938
  <button
17933
17939
  className="base button x-seagreen"
17940
+ disabled={true}
17934
17941
  type="button"
17935
17942
  >
17936
17943
  <div
@@ -17972,6 +17979,7 @@ exports[`Storyshots b/Button Loading 1`] = `
17972
17979
  </button>,
17973
17980
  <button
17974
17981
  className="base button x-deepblue"
17982
+ disabled={true}
17975
17983
  type="button"
17976
17984
  >
17977
17985
  <div
@@ -18013,6 +18021,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18013
18021
  </button>,
18014
18022
  <button
18015
18023
  className="base button x-light-blue"
18024
+ disabled={true}
18016
18025
  type="button"
18017
18026
  >
18018
18027
  <div
@@ -18054,6 +18063,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18054
18063
  </button>,
18055
18064
  <button
18056
18065
  className="base button x-light-purple"
18066
+ disabled={true}
18057
18067
  type="button"
18058
18068
  >
18059
18069
  <div
@@ -18095,6 +18105,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18095
18105
  </button>,
18096
18106
  <button
18097
18107
  className="base button x-light-seagreen"
18108
+ disabled={true}
18098
18109
  type="button"
18099
18110
  >
18100
18111
  <div
@@ -18136,6 +18147,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18136
18147
  </button>,
18137
18148
  <button
18138
18149
  className="base button x-ui-main"
18150
+ disabled={true}
18139
18151
  type="button"
18140
18152
  >
18141
18153
  <div
@@ -18177,6 +18189,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18177
18189
  </button>,
18178
18190
  <button
18179
18191
  className="base button x-ui-main-2"
18192
+ disabled={true}
18180
18193
  type="button"
18181
18194
  >
18182
18195
  <div
@@ -18218,6 +18231,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18218
18231
  </button>,
18219
18232
  <button
18220
18233
  className="base button x-ui-lines"
18234
+ disabled={true}
18221
18235
  type="button"
18222
18236
  >
18223
18237
  <div
@@ -18259,6 +18273,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18259
18273
  </button>,
18260
18274
  <button
18261
18275
  className="base button x-ui-icons"
18276
+ disabled={true}
18262
18277
  type="button"
18263
18278
  >
18264
18279
  <div
@@ -18300,6 +18315,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18300
18315
  </button>,
18301
18316
  <button
18302
18317
  className="base button x-heading"
18318
+ disabled={true}
18303
18319
  type="button"
18304
18320
  >
18305
18321
  <div
@@ -18341,6 +18357,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18341
18357
  </button>,
18342
18358
  <button
18343
18359
  className="base button x-paragraph"
18360
+ disabled={true}
18344
18361
  type="button"
18345
18362
  >
18346
18363
  <div
@@ -18382,6 +18399,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18382
18399
  </button>,
18383
18400
  <button
18384
18401
  className="base button x-subtitle"
18402
+ disabled={true}
18385
18403
  type="button"
18386
18404
  >
18387
18405
  <div
@@ -18423,6 +18441,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18423
18441
  </button>,
18424
18442
  <button
18425
18443
  className="base button x-metadata"
18444
+ disabled={true}
18426
18445
  type="button"
18427
18446
  >
18428
18447
  <div
@@ -18464,6 +18483,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18464
18483
  </button>,
18465
18484
  <button
18466
18485
  className="base button x-link"
18486
+ disabled={true}
18467
18487
  type="button"
18468
18488
  >
18469
18489
  <div
@@ -18505,6 +18525,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18505
18525
  </button>,
18506
18526
  <button
18507
18527
  className="base button x-disabled"
18528
+ disabled={true}
18508
18529
  type="button"
18509
18530
  >
18510
18531
  <div
@@ -18546,6 +18567,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18546
18567
  </button>,
18547
18568
  <button
18548
18569
  className="base button x-shadow"
18570
+ disabled={true}
18549
18571
  type="button"
18550
18572
  >
18551
18573
  <div
@@ -18587,6 +18609,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18587
18609
  </button>,
18588
18610
  <button
18589
18611
  className="base button x-transparent"
18612
+ disabled={true}
18590
18613
  type="button"
18591
18614
  >
18592
18615
  <div
@@ -18628,6 +18651,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18628
18651
  </button>,
18629
18652
  <button
18630
18653
  className="base button x-highlighted"
18654
+ disabled={true}
18631
18655
  type="button"
18632
18656
  >
18633
18657
  <div
@@ -18669,6 +18693,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18669
18693
  </button>,
18670
18694
  <button
18671
18695
  className="base button x-interactive"
18696
+ disabled={true}
18672
18697
  type="button"
18673
18698
  >
18674
18699
  <div
@@ -18710,6 +18735,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18710
18735
  </button>,
18711
18736
  <button
18712
18737
  className="base button x-background-far"
18738
+ disabled={true}
18713
18739
  type="button"
18714
18740
  >
18715
18741
  <div
@@ -18751,6 +18777,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18751
18777
  </button>,
18752
18778
  <button
18753
18779
  className="base button x-background-near"
18780
+ disabled={true}
18754
18781
  type="button"
18755
18782
  >
18756
18783
  <div
@@ -18792,6 +18819,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18792
18819
  </button>,
18793
18820
  <button
18794
18821
  className="base button x-background-inputs"
18822
+ disabled={true}
18795
18823
  type="button"
18796
18824
  >
18797
18825
  <div
@@ -18833,6 +18861,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18833
18861
  </button>,
18834
18862
  <button
18835
18863
  className="base button x-background-cards"
18864
+ disabled={true}
18836
18865
  type="button"
18837
18866
  >
18838
18867
  <div
@@ -18874,6 +18903,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18874
18903
  </button>,
18875
18904
  <button
18876
18905
  className="base button x-background-mesh"
18906
+ disabled={true}
18877
18907
  type="button"
18878
18908
  >
18879
18909
  <div
@@ -18915,6 +18945,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18915
18945
  </button>,
18916
18946
  <button
18917
18947
  className="base button x-outline-inputs"
18948
+ disabled={true}
18918
18949
  type="button"
18919
18950
  >
18920
18951
  <div
@@ -18956,6 +18987,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18956
18987
  </button>,
18957
18988
  <button
18958
18989
  className="base button x-twitter"
18990
+ disabled={true}
18959
18991
  type="button"
18960
18992
  >
18961
18993
  <div
@@ -18997,6 +19029,7 @@ exports[`Storyshots b/Button Loading 1`] = `
18997
19029
  </button>,
18998
19030
  <button
18999
19031
  className="base button x-facebook"
19032
+ disabled={true}
19000
19033
  type="button"
19001
19034
  >
19002
19035
  <div
@@ -19038,6 +19071,7 @@ exports[`Storyshots b/Button Loading 1`] = `
19038
19071
  </button>,
19039
19072
  <button
19040
19073
  className="base button x-instagram"
19074
+ disabled={true}
19041
19075
  type="button"
19042
19076
  >
19043
19077
  <div
@@ -19079,6 +19113,7 @@ exports[`Storyshots b/Button Loading 1`] = `
19079
19113
  </button>,
19080
19114
  <button
19081
19115
  className="base button x-google"
19116
+ disabled={true}
19082
19117
  type="button"
19083
19118
  >
19084
19119
  <div
@@ -19120,6 +19155,7 @@ exports[`Storyshots b/Button Loading 1`] = `
19120
19155
  </button>,
19121
19156
  <button
19122
19157
  className="base button x-black"
19158
+ disabled={true}
19123
19159
  type="button"
19124
19160
  >
19125
19161
  <div
@@ -19161,6 +19197,7 @@ exports[`Storyshots b/Button Loading 1`] = `
19161
19197
  </button>,
19162
19198
  <button
19163
19199
  className="base button x-anchor"
19200
+ disabled={true}
19164
19201
  type="button"
19165
19202
  >
19166
19203
  <div
@@ -19202,6 +19239,7 @@ exports[`Storyshots b/Button Loading 1`] = `
19202
19239
  </button>,
19203
19240
  <button
19204
19241
  className="base button x-grey"
19242
+ disabled={true}
19205
19243
  type="button"
19206
19244
  >
19207
19245
  <div
@@ -19243,6 +19281,7 @@ exports[`Storyshots b/Button Loading 1`] = `
19243
19281
  </button>,
19244
19282
  <button
19245
19283
  className="base button x-pearl"
19284
+ disabled={true}
19246
19285
  type="button"
19247
19286
  >
19248
19287
  <div
@@ -19284,6 +19323,7 @@ exports[`Storyshots b/Button Loading 1`] = `
19284
19323
  </button>,
19285
19324
  <button
19286
19325
  className="base button x-white"
19326
+ disabled={true}
19287
19327
  type="button"
19288
19328
  >
19289
19329
  <div
@@ -23994,12 +24034,12 @@ exports[`Storyshots b/ThemeSelector Base 1`] = `
23994
24034
  >
23995
24035
  <input
23996
24036
  checked={false}
23997
- id="switch"
24037
+ id="theme-toggle"
23998
24038
  onChange={[Function]}
23999
24039
  type="checkbox"
24000
24040
  />
24001
24041
  <label
24002
- htmlFor="switch"
24042
+ htmlFor="theme-toggle"
24003
24043
  />
24004
24044
  </button>
24005
24045
  </div>