@pareto-engineering/design-system 2.0.0-alpha.55 → 2.0.0-alpha.57

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 (54) hide show
  1. package/dist/cjs/a/Alert/Alert.js +141 -0
  2. package/dist/cjs/a/Alert/index.js +15 -0
  3. package/dist/cjs/a/Alert/styles.scss +74 -0
  4. package/dist/cjs/a/index.js +9 -1
  5. package/dist/cjs/f/fields/IntlTelInput/IntlTelInput.js +170 -0
  6. package/dist/cjs/f/fields/IntlTelInput/index.js +15 -0
  7. package/dist/cjs/f/fields/IntlTelInput/styles.scss +37 -0
  8. package/dist/cjs/f/fields/PhoneIntlTelInput/PhoneIntlTelInput.js +180 -0
  9. package/dist/cjs/f/fields/PhoneIntlTelInput/index.js +15 -0
  10. package/dist/cjs/f/fields/PhoneIntlTelInput/styles.scss +43 -0
  11. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +2 -1
  12. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +10 -3
  13. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +10 -3
  14. package/dist/es/a/Alert/Alert.js +118 -0
  15. package/dist/es/a/Alert/index.js +2 -0
  16. package/dist/es/a/Alert/styles.scss +74 -0
  17. package/dist/es/a/index.js +2 -1
  18. package/dist/es/f/fields/IntlTelInput/IntlTelInput.js +152 -0
  19. package/dist/es/f/fields/IntlTelInput/index.js +2 -0
  20. package/dist/es/f/fields/IntlTelInput/styles.scss +37 -0
  21. package/dist/es/f/fields/PhoneIntlTelInput/PhoneIntlTelInput.js +163 -0
  22. package/dist/es/f/fields/PhoneIntlTelInput/index.js +2 -0
  23. package/dist/es/f/fields/PhoneIntlTelInput/styles.scss +43 -0
  24. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -1
  25. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +10 -3
  26. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +10 -3
  27. package/package.json +2 -2
  28. package/src/__snapshots__/Storyshots.test.js.snap +330 -26
  29. package/src/stories/a/Alert.stories.jsx +75 -0
  30. package/src/stories/a/DotInfo.stories.jsx +2 -1
  31. package/src/stories/a/ProgressBar.stories.jsx +4 -1
  32. package/src/stories/a/Timestamp.stories.jsx +3 -1
  33. package/src/stories/b/Logo.stories.jsx +2 -1
  34. package/src/stories/b/QuestionDropdown.stories.jsx +3 -0
  35. package/src/stories/b/SocialMediaButton.stories.jsx +2 -1
  36. package/src/stories/b/Title.stories.jsx +2 -2
  37. package/src/stories/c/ContentSlides.stories.jsx +3 -1
  38. package/src/stories/c/Shortener.stories.jsx +9 -3
  39. package/src/stories/c/SocialMediaShareButton.stories.jsx +14 -6
  40. package/src/stories/f/ChoicesInput.stories.jsx +4 -1
  41. package/src/stories/f/Description.stories.jsx +11 -3
  42. package/src/stories/f/QueryCombobox.stories.jsx +7 -3
  43. package/src/stories/f/QuerySelect.stories.jsx +2 -1
  44. package/src/stories/f/RatingsInput.stories.jsx +8 -1
  45. package/src/stories/f/SelectInput.stories.jsx +2 -1
  46. package/src/stories/f/TextInput.stories.jsx +7 -1
  47. package/src/stories/f/TextareaInput.stories.jsx +6 -1
  48. package/src/ui/a/Alert/Alert.jsx +144 -0
  49. package/src/ui/a/Alert/index.js +2 -0
  50. package/src/ui/a/Alert/styles.scss +74 -0
  51. package/src/ui/a/index.js +1 -0
  52. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +1 -0
  53. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +7 -1
  54. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +6 -0
@@ -0,0 +1,43 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ @use "@pareto-engineering/bem";
3
+
4
+ $default-padding: 0.75em 0.75em 0.55em;
5
+
6
+ .#{bem.$base}.phone-intl-tel-input {
7
+ display: flex;
8
+ flex-direction: column;
9
+
10
+ &.error {
11
+ >.#{bem.$base}.description {
12
+ color: var(--error);
13
+ }
14
+ }
15
+
16
+ .input-wrapper {
17
+ width: 100%;
18
+ }
19
+
20
+ .input {
21
+ border: var(--theme-border-style) var(--dark-y);
22
+ background: var(--light-y);
23
+ color: var(--on-y);
24
+ padding: $default-padding;
25
+ width: 100%;
26
+
27
+ &::placeholder {
28
+ color: var(--metadata);
29
+ }
30
+
31
+ &:not(:disabled):hover {
32
+ border: var(--theme-border-style) var(--light-background4);
33
+ }
34
+
35
+ &:disabled {
36
+ background-color: var(--dark-y);
37
+ }
38
+
39
+ &:focus {
40
+ background: var(--light-background4);
41
+ }
42
+ }
43
+ }
@@ -206,6 +206,7 @@ QueryCombobox.defaultProps = {
206
206
  color: 'background2',
207
207
  searchVariable: 'search',
208
208
  transformSearch: search => search,
209
- minLength: 2
209
+ minLength: 2,
210
+ disabled: false
210
211
  };
211
212
  export default QueryCombobox;
@@ -30,7 +30,8 @@ const Combobox = ({
30
30
  color,
31
31
  minLength,
32
32
  isFetching,
33
- transformSearch // ...otherProps
33
+ transformSearch,
34
+ disabled // ...otherProps
34
35
 
35
36
  }) => {
36
37
  const {
@@ -81,7 +82,8 @@ const Combobox = ({
81
82
  }), label), /*#__PURE__*/React.createElement("div", _extends({}, getComboboxProps(), {
82
83
  className: "input-wrapper"
83
84
  }), /*#__PURE__*/React.createElement("input", _extends({}, getInputProps(), {
84
- className: "input"
85
+ className: "input",
86
+ disabled: disabled
85
87
  })), isFetching && /*#__PURE__*/React.createElement(LoadingCircle, {
86
88
  className: "x-main2"
87
89
  })), /*#__PURE__*/React.createElement(Popover, {
@@ -174,7 +176,12 @@ Combobox.propTypes = {
174
176
  /**
175
177
  * The function to transform the search input
176
178
  */
177
- transformSearch: PropTypes.func
179
+ transformSearch: PropTypes.func,
180
+
181
+ /**
182
+ * Whether the input filed shpuld be disabled
183
+ */
184
+ disabled: PropTypes.bool
178
185
  };
179
186
  Combobox.defaultProps = {// someProp: false
180
187
  };
@@ -40,7 +40,8 @@ const MultipleCombobox = ({
40
40
  color,
41
41
  isFetching,
42
42
  minLength,
43
- transformSearch // ...otherProps
43
+ transformSearch,
44
+ disabled // ...otherProps
44
45
 
45
46
  }) => {
46
47
  const [searchInputValue, setSearchInputValue] = useState('');
@@ -172,7 +173,8 @@ const MultipleCombobox = ({
172
173
  }), /*#__PURE__*/React.createElement("input", _extends({}, getInputProps(getDropdownProps({
173
174
  preventKeyAction: isOpen
174
175
  })), {
175
- className: "input"
176
+ className: "input",
177
+ disabled: disabled
176
178
  })), isFetching && /*#__PURE__*/React.createElement(LoadingCircle, {
177
179
  className: "x-main2"
178
180
  })), /*#__PURE__*/React.createElement(Popover, {
@@ -265,7 +267,12 @@ MultipleCombobox.propTypes = {
265
267
  /**
266
268
  * The function to transform the search input
267
269
  */
268
- transformSearch: PropTypes.func
270
+ transformSearch: PropTypes.func,
271
+
272
+ /**
273
+ * Whether the input filed shpuld be disabled
274
+ */
275
+ disabled: PropTypes.bool
269
276
  };
270
277
  MultipleCombobox.defaultProps = {// someProp: false
271
278
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pareto-engineering/design-system",
3
- "version": "2.0.0-alpha.55",
3
+ "version": "2.0.0-alpha.57",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",
@@ -88,7 +88,7 @@
88
88
  "stylelint-config-palantir": "^5.1.0"
89
89
  },
90
90
  "dependencies": {
91
- "@pareto-engineering/assets": "^2.0.0-alpha.22",
91
+ "@pareto-engineering/assets": "^2.0.0-alpha.24",
92
92
  "@pareto-engineering/bem": "^0.1.5",
93
93
  "@pareto-engineering/styles": "^2.0.0-alpha.8",
94
94
  "date-fns": "^2.22.1",
@@ -1,5 +1,302 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Storyshots a/Alert Base 1`] = `
4
+ <div
5
+ className="base alert x-error top"
6
+ style={
7
+ Object {
8
+ "--width": undefined,
9
+ }
10
+ }
11
+ >
12
+ <div
13
+ className="bar"
14
+ />
15
+ <div
16
+ className="close"
17
+ >
18
+ <button
19
+ className="base button x-heading modifierSimple"
20
+ onClick={[Function]}
21
+ type="button"
22
+ >
23
+ <span
24
+ className="f-icons"
25
+ >
26
+ Y
27
+ </span>
28
+ </button>
29
+ </div>
30
+ <div
31
+ className="content"
32
+ >
33
+ <div
34
+ className="v1"
35
+ style={
36
+ Object {
37
+ "alignItems": "center",
38
+ "display": "flex",
39
+ }
40
+ }
41
+ >
42
+ <span
43
+ className="icon mr-v f-icons"
44
+ >
45
+ g
46
+ </span>
47
+ <p>
48
+ This is the alert content This is the alert content
49
+ </p>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ `;
54
+
55
+ exports[`Storyshots a/Alert Bottom Left 1`] = `
56
+ <div
57
+ className="base alert x-error bottom left"
58
+ style={
59
+ Object {
60
+ "--width": undefined,
61
+ }
62
+ }
63
+ >
64
+ <div
65
+ className="bar"
66
+ />
67
+ <div
68
+ className="close"
69
+ >
70
+ <button
71
+ className="base button x-heading modifierSimple"
72
+ onClick={[Function]}
73
+ type="button"
74
+ >
75
+ <span
76
+ className="f-icons"
77
+ >
78
+ Y
79
+ </span>
80
+ </button>
81
+ </div>
82
+ <div
83
+ className="content"
84
+ >
85
+ <div
86
+ className="v1"
87
+ style={
88
+ Object {
89
+ "alignItems": "center",
90
+ "display": "flex",
91
+ }
92
+ }
93
+ >
94
+ <span
95
+ className="icon mr-v f-icons"
96
+ >
97
+ g
98
+ </span>
99
+ <p>
100
+ This is the alert content This is the alert content
101
+ </p>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ `;
106
+
107
+ exports[`Storyshots a/Alert Centered 1`] = `
108
+ <div
109
+ className="base alert x-error center"
110
+ style={
111
+ Object {
112
+ "--width": undefined,
113
+ }
114
+ }
115
+ >
116
+ <div
117
+ className="bar"
118
+ />
119
+ <div
120
+ className="close"
121
+ >
122
+ <button
123
+ className="base button x-heading modifierSimple"
124
+ onClick={[Function]}
125
+ type="button"
126
+ >
127
+ <span
128
+ className="f-icons"
129
+ >
130
+ Y
131
+ </span>
132
+ </button>
133
+ </div>
134
+ <div
135
+ className="content"
136
+ >
137
+ <div
138
+ className="v1"
139
+ style={
140
+ Object {
141
+ "alignItems": "center",
142
+ "display": "flex",
143
+ }
144
+ }
145
+ >
146
+ <span
147
+ className="icon mr-v f-icons"
148
+ >
149
+ g
150
+ </span>
151
+ <p>
152
+ This is the alert content This is the alert content
153
+ </p>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ `;
158
+
159
+ exports[`Storyshots a/Alert Top Right 1`] = `
160
+ <div
161
+ className="base alert x-error top right"
162
+ style={
163
+ Object {
164
+ "--width": undefined,
165
+ }
166
+ }
167
+ >
168
+ <div
169
+ className="bar"
170
+ />
171
+ <div
172
+ className="close"
173
+ >
174
+ <button
175
+ className="base button x-heading modifierSimple"
176
+ onClick={[Function]}
177
+ type="button"
178
+ >
179
+ <span
180
+ className="f-icons"
181
+ >
182
+ Y
183
+ </span>
184
+ </button>
185
+ </div>
186
+ <div
187
+ className="content"
188
+ >
189
+ <div
190
+ className="v1"
191
+ style={
192
+ Object {
193
+ "alignItems": "center",
194
+ "display": "flex",
195
+ }
196
+ }
197
+ >
198
+ <span
199
+ className="icon mr-v f-icons"
200
+ >
201
+ g
202
+ </span>
203
+ <p>
204
+ This is the alert content This is the alert content
205
+ </p>
206
+ </div>
207
+ </div>
208
+ </div>
209
+ `;
210
+
211
+ exports[`Storyshots a/Alert With Auto Close 1`] = `
212
+ <div
213
+ className="base alert x-error top"
214
+ style={
215
+ Object {
216
+ "--width": undefined,
217
+ }
218
+ }
219
+ >
220
+ <div
221
+ className="bar"
222
+ />
223
+ <div
224
+ className="close"
225
+ >
226
+ <button
227
+ className="base button x-heading modifierSimple"
228
+ onClick={[Function]}
229
+ type="button"
230
+ >
231
+ <span
232
+ className="f-icons"
233
+ >
234
+ Y
235
+ </span>
236
+ </button>
237
+ </div>
238
+ <div
239
+ className="content"
240
+ >
241
+ <div
242
+ className="v1"
243
+ style={
244
+ Object {
245
+ "alignItems": "center",
246
+ "display": "flex",
247
+ }
248
+ }
249
+ >
250
+ <span
251
+ className="icon mr-v f-icons"
252
+ >
253
+ g
254
+ </span>
255
+ <p>
256
+ This is the alert content This is the alert content
257
+ </p>
258
+ </div>
259
+ </div>
260
+ </div>
261
+ `;
262
+
263
+ exports[`Storyshots a/Alert Without Close Icon 1`] = `
264
+ <div
265
+ className="base alert x-error top"
266
+ style={
267
+ Object {
268
+ "--width": undefined,
269
+ }
270
+ }
271
+ >
272
+ <div
273
+ className="bar"
274
+ />
275
+ <div
276
+ className="content"
277
+ >
278
+ <div
279
+ className="v1"
280
+ style={
281
+ Object {
282
+ "alignItems": "center",
283
+ "display": "flex",
284
+ }
285
+ }
286
+ >
287
+ <span
288
+ className="icon mr-v f-icons"
289
+ >
290
+ g
291
+ </span>
292
+ <p>
293
+ This is the alert content This is the alert content
294
+ </p>
295
+ </div>
296
+ </div>
297
+ </div>
298
+ `;
299
+
3
300
  exports[`Storyshots a/AnimatedCounter After 1`] = `
4
301
  <div
5
302
  className="base animated-counter x-main1"
@@ -2653,7 +2950,7 @@ exports[`Storyshots a/Timestamp Distance Format 1`] = `
2653
2950
  className="base timestamp"
2654
2951
  onClick={[Function]}
2655
2952
  >
2656
- in 3 months
2953
+ in about 1 month
2657
2954
  </p>
2658
2955
  `;
2659
2956
 
@@ -10199,33 +10496,34 @@ exports[`Storyshots c/Shortener Base 1`] = `
10199
10496
  </span>
10200
10497
  `;
10201
10498
 
10202
- exports[`Storyshots c/SocialMediaShareButton Base 1`] = `
10203
- <div>
10204
- <a
10205
- className="base social-media-share-button x-facebook"
10206
- href="https://www.facebook.com/sharer/sharer.php?u=http://localhost/#/welcome"
10207
- rel="noreferrer"
10208
- target="_blank"
10499
+ exports[`Storyshots c/SocialMediaShareButton Facebook 1`] = `
10500
+ <a
10501
+ className="base social-media-share-button x-facebook"
10502
+ href="https://www.facebook.com/sharer/sharer.php?u=http://localhost/#/welcome"
10503
+ rel="noreferrer"
10504
+ target="_blank"
10505
+ >
10506
+ <button
10507
+ type="button"
10209
10508
  >
10210
- <button
10211
- type="button"
10212
- >
10213
- f
10214
- </button>
10215
- </a>
10216
- <a
10217
- className="base social-media-share-button x-twitter"
10218
- href="https://twitter.com/intent/tweet?url=http://localhost/#/welcome"
10219
- rel="noreferrer"
10220
- target="_blank"
10509
+ f
10510
+ </button>
10511
+ </a>
10512
+ `;
10513
+
10514
+ exports[`Storyshots c/SocialMediaShareButton Twitter 1`] = `
10515
+ <a
10516
+ className="base social-media-share-button x-twitter"
10517
+ href="https://twitter.com/intent/tweet?url=http://localhost/#/welcome"
10518
+ rel="noreferrer"
10519
+ target="_blank"
10520
+ >
10521
+ <button
10522
+ type="button"
10221
10523
  >
10222
- <button
10223
- type="button"
10224
- >
10225
- t
10226
- </button>
10227
- </a>
10228
- </div>
10524
+ t
10525
+ </button>
10526
+ </a>
10229
10527
  `;
10230
10528
 
10231
10529
  exports[`Storyshots f/FormInput Base 1`] = `
@@ -10909,6 +11207,7 @@ exports[`Storyshots f/FormInput With Query Combobox 1`] = `
10909
11207
  aria-labelledby="downshift-0-label"
10910
11208
  autoComplete="off"
10911
11209
  className="input"
11210
+ disabled={false}
10912
11211
  id="downshift-0-input"
10913
11212
  onBlur={[Function]}
10914
11213
  onChange={[Function]}
@@ -10951,6 +11250,7 @@ exports[`Storyshots f/FormInput With Query Combobox 1`] = `
10951
11250
  aria-labelledby="downshift-1-label"
10952
11251
  autoComplete="off"
10953
11252
  className="input"
11253
+ disabled={false}
10954
11254
  id="downshift-1-input"
10955
11255
  onBlur={[Function]}
10956
11256
  onChange={[Function]}
@@ -11941,6 +12241,7 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select 1`] = `
11941
12241
  aria-labelledby="downshift-4-label"
11942
12242
  autoComplete="off"
11943
12243
  className="input"
12244
+ disabled={false}
11944
12245
  id="downshift-4-input"
11945
12246
  onBlur={[Function]}
11946
12247
  onChange={[Function]}
@@ -12071,6 +12372,7 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Default Formik S
12071
12372
  aria-labelledby="downshift-5-label"
12072
12373
  autoComplete="off"
12073
12374
  className="input"
12375
+ disabled={false}
12074
12376
  id="downshift-5-input"
12075
12377
  onBlur={[Function]}
12076
12378
  onChange={[Function]}
@@ -12151,6 +12453,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
12151
12453
  aria-labelledby="downshift-2-label"
12152
12454
  autoComplete="off"
12153
12455
  className="input"
12456
+ disabled={false}
12154
12457
  id="downshift-2-input"
12155
12458
  onBlur={[Function]}
12156
12459
  onChange={[Function]}
@@ -12230,6 +12533,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
12230
12533
  aria-labelledby="downshift-3-label"
12231
12534
  autoComplete="off"
12232
12535
  className="input"
12536
+ disabled={false}
12233
12537
  id="downshift-3-input"
12234
12538
  onBlur={[Function]}
12235
12539
  onChange={[Function]}
@@ -0,0 +1,75 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react'
3
+
4
+ import { Alert } from 'ui'
5
+
6
+ export default {
7
+ title :'a/Alert',
8
+ component :Alert,
9
+ subcomponents:{
10
+ // Item:Alert.Item
11
+ },
12
+ decorators:[
13
+ // storyfn => <div className="">{ storyfn() }</div>,
14
+ ],
15
+ argTypes:{
16
+ withCloseIcon :{ control: 'boolean' },
17
+ primaryPosition :{ control: 'select', options: ['top', 'bottom', 'center'] },
18
+ secondaryPosition:{ control: 'select', options: ['left', 'right'] },
19
+ autoCloseMs :{ control: 'text' },
20
+ type :{ control: 'select', options: ['success', 'warning', 'error'] },
21
+ },
22
+ }
23
+
24
+ const Template = (args) => (
25
+ <Alert {...args}>
26
+ <div
27
+ style={{
28
+ display :'flex',
29
+ alignItems:'center',
30
+ }}
31
+ className="v1"
32
+ >
33
+ <span className="icon mr-v f-icons">g</span>
34
+ <p>This is the alert content This is the alert content</p>
35
+ </div>
36
+ </Alert>
37
+ )
38
+
39
+ export const Base = Template.bind({})
40
+ Base.args = {
41
+ type:'error',
42
+ }
43
+
44
+ export const WithoutCloseIcon = Template.bind({})
45
+ WithoutCloseIcon.args = {
46
+ ...Base.args,
47
+ withCloseIcon:false,
48
+ }
49
+
50
+ export const WithAutoClose = Template.bind({})
51
+ WithAutoClose.args = {
52
+ ...WithoutCloseIcon.args,
53
+ withCloseIcon:true,
54
+ autoCloseMs :'2000',
55
+ }
56
+
57
+ export const Centered = Template.bind({})
58
+ Centered.args = {
59
+ ...Base.args,
60
+ primaryPosition:'center',
61
+ }
62
+
63
+ export const TopRight = Template.bind({})
64
+ TopRight.args = {
65
+ ...Base.args,
66
+ primaryPosition :'top',
67
+ secondaryPosition:'right',
68
+ }
69
+
70
+ export const BottomLeft = Template.bind({})
71
+ BottomLeft.args = {
72
+ ...Base.args,
73
+ primaryPosition :'bottom',
74
+ secondaryPosition:'left',
75
+ }
@@ -13,7 +13,8 @@ export default {
13
13
  // storyfn => <div className="">{ storyfn() }</div>,
14
14
  ],
15
15
  argTypes:{
16
- backgroundColor:{ control: 'color' },
16
+ // backgroundColor:{ control: 'color' },
17
+ booleanValue:{ control: 'boolean' },
17
18
  },
18
19
  }
19
20
 
@@ -14,7 +14,10 @@ export default {
14
14
  // storyfn => <div className="">{ storyfn() }</div>,
15
15
  ],
16
16
  argTypes:{
17
- backgroundColor:{ control: 'color' },
17
+ // backgroundColor:{ control: 'color' },
18
+ progress:{ control: 'number' },
19
+ color :{ control: 'text' },
20
+ height :{ control: 'text' },
18
21
  },
19
22
  }
20
23
 
@@ -15,7 +15,9 @@ export default {
15
15
  // storyfn => <div className="">{ storyfn() }</div>,
16
16
  ],
17
17
  argTypes:{
18
- backgroundColor:{ control: 'color' },
18
+ // backgroundColor:{ control: 'color' },
19
+ dateFormat :{ control: 'select' },
20
+ enabledFormats:{ control: 'select', options: ['distance', 'date', 'relative'] },
19
21
  },
20
22
  }
21
23
 
@@ -14,7 +14,8 @@ export default {
14
14
  // storyfn => <div className="">{ storyfn() }</div>,
15
15
  ],
16
16
  argTypes:{
17
- backgroundColor:{ control: 'color' },
17
+ // backgroundColor:{ control: 'color' },
18
+ square:{ control: 'boolean' },
18
19
  },
19
20
  }
20
21
 
@@ -13,6 +13,9 @@ export default {
13
13
  // storyfn => <div className="">{ storyfn() }</div>,
14
14
  ],
15
15
  argTypes:{
16
+ question :{ control: 'text' },
17
+ isFAQSchema :{ control: 'boolean' },
18
+ defaultIsOpen:{ control: 'boolean' },
16
19
  },
17
20
  }
18
21
 
@@ -13,7 +13,8 @@ export default {
13
13
  // storyfn => <div className="">{ storyfn() }</div>,
14
14
  ],
15
15
  argTypes:{
16
- backgroundColor:{ control: 'color' },
16
+ // backgroundColor:{ control: 'color' },
17
+ isTransparent:{ control: 'boolean' },
17
18
  },
18
19
  }
19
20