@onereach/ui-components 4.2.0 → 4.2.1-beta.2573.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "4.2.0",
3
+ "version": "4.2.1-beta.2573.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -152,6 +152,5 @@
152
152
  "default": "./dist/bundled/v3/components/*/index.js"
153
153
  },
154
154
  "./package.json": "./package.json"
155
- },
156
- "gitHead": "caaae29335c5bb84b2f07e000d8b63fae03c6a97"
155
+ }
157
156
  }
@@ -22,8 +22,8 @@ export default {
22
22
  direction: {
23
23
  control: {
24
24
  type: 'radio',
25
- options: Object.values(FormGroupDirection),
26
25
  },
26
+ options: Object.values(FormGroupDirection),
27
27
  },
28
28
  },
29
29
  parameters: {
@@ -66,9 +66,9 @@ const Template: StoryFn<typeof OrCheckboxGroup> = (args) => ({
66
66
  `,
67
67
  });
68
68
 
69
- export const CheckboxGroup = Template.bind({});
69
+ export const FlatGroup = Template.bind({});
70
70
 
71
- CheckboxGroup.args = {
71
+ FlatGroup.args = {
72
72
  label: 'Checkbox Group',
73
73
  options: [
74
74
  {
@@ -86,9 +86,35 @@ CheckboxGroup.args = {
86
86
  ],
87
87
  };
88
88
 
89
- export const CheckboxGroupTree = Template.bind({});
89
+ export const CollapsibleGroup = Template.bind({});
90
90
 
91
- CheckboxGroupTree.args = {
91
+ CollapsibleGroup.args = {
92
+ label: 'Checkbox Group',
93
+ options: [
94
+ {
95
+ label: 'Parent switcher label',
96
+ collapsible: true,
97
+ children: [
98
+ {
99
+ label: 'Option 1',
100
+ value: '1',
101
+ },
102
+ {
103
+ label: 'Option 2',
104
+ value: '2',
105
+ },
106
+ {
107
+ label: 'Option 3',
108
+ value: '3',
109
+ },
110
+ ],
111
+ },
112
+ ],
113
+ };
114
+
115
+ export const Tree = Template.bind({});
116
+
117
+ Tree.args = {
92
118
  label: 'Checkbox Group tree',
93
119
  options: [
94
120
  {
@@ -112,9 +138,9 @@ CheckboxGroupTree.args = {
112
138
  };
113
139
 
114
140
 
115
- export const CheckboxGroupDeepTree = Template.bind({});
141
+ export const DeepTree = Template.bind({});
116
142
 
117
- CheckboxGroupDeepTree.args = {
143
+ DeepTree.args = {
118
144
  label: 'Checkbox Group tree',
119
145
  options: [
120
146
  {
@@ -159,9 +185,9 @@ CheckboxGroupDeepTree.args = {
159
185
  };
160
186
 
161
187
 
162
- export const CheckboxGroupDeepCollapsibleTree = Template.bind({});
188
+ export const DeepCollapsibleTree = Template.bind({});
163
189
 
164
- CheckboxGroupDeepCollapsibleTree.args = {
190
+ DeepCollapsibleTree.args = {
165
191
  label: 'Checkbox Group tree',
166
192
  options: [
167
193
  {
@@ -207,9 +233,9 @@ CheckboxGroupDeepCollapsibleTree.args = {
207
233
  ],
208
234
  };
209
235
 
210
- export const CheckboxGroupDeepPartiallyCollapsibleTree = Template.bind({});
236
+ export const DeepPartiallyCollapsibleTree = Template.bind({});
211
237
 
212
- CheckboxGroupDeepPartiallyCollapsibleTree.args = {
238
+ DeepPartiallyCollapsibleTree.args = {
213
239
  label: 'Checkbox Group tree',
214
240
  options: [
215
241
  {
@@ -288,9 +314,9 @@ const TemplateWithAddon: StoryFn<typeof OrCheckboxGroup> = (args) => ({
288
314
  `,
289
315
  });
290
316
 
291
- export const CheckboxGroupWithAddon = TemplateWithAddon.bind({});
317
+ export const WithAddon = TemplateWithAddon.bind({});
292
318
 
293
- CheckboxGroupWithAddon.args = {
319
+ WithAddon.args = {
294
320
  label: 'Checkbox Group',
295
321
  options: [
296
322
  {
@@ -308,9 +334,9 @@ CheckboxGroupWithAddon.args = {
308
334
  ],
309
335
  };
310
336
 
311
- export const CheckboxGroupDeepPartiallyCollapsed = Template.bind({});
337
+ export const DeepPartiallyCollapsed = Template.bind({});
312
338
 
313
- CheckboxGroupDeepPartiallyCollapsed.args = {
339
+ DeepPartiallyCollapsed.args = {
314
340
  label: 'Checkbox Group tree',
315
341
  options: [
316
342
  {