@onereach/ui-components 4.1.2 → 4.1.3-beta.2559.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 (150) hide show
  1. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +140 -0
  2. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +115 -0
  3. package/dist/bundled/v2/components/OrCheckboxGroupV3/index.d.ts +1 -0
  4. package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +25 -0
  5. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +203 -0
  6. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +76 -0
  7. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.d.ts +1 -0
  8. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +17 -0
  9. package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.d.ts +2 -0
  10. package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.js +10 -0
  11. package/dist/bundled/v2/components/OrCheckboxTreeV3/types.d.ts +7 -0
  12. package/dist/bundled/v2/components/OrCheckboxTreeV3/types.js +1 -0
  13. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +34 -39
  14. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.vue.d.ts +18 -16
  15. package/dist/bundled/v2/components/OrCheckboxV3/index.js +1 -0
  16. package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.js +123 -0
  17. package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.vue.d.ts +85 -0
  18. package/dist/bundled/v2/components/OrFormGroupV3/index.d.ts +2 -0
  19. package/dist/bundled/v2/components/OrFormGroupV3/index.js +12 -0
  20. package/dist/bundled/v2/components/OrFormGroupV3/props.d.ts +4 -0
  21. package/dist/bundled/v2/components/OrFormGroupV3/props.js +7 -0
  22. package/dist/bundled/v2/components/OrFormGroupV3/styles.d.ts +6 -0
  23. package/dist/bundled/v2/components/OrFormGroupV3/styles.js +20 -0
  24. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +132 -0
  25. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +110 -0
  26. package/dist/bundled/v2/components/OrRadioGroupV3/index.d.ts +1 -0
  27. package/dist/bundled/v2/components/OrRadioGroupV3/index.js +19 -0
  28. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -1
  29. package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
  30. package/dist/bundled/v2/index.d.ts +1 -0
  31. package/dist/bundled/v2/index.js +4 -3
  32. package/dist/bundled/v2/utils/functions/flattenDeep.d.ts +2 -0
  33. package/dist/bundled/v2/utils/functions/flattenDeep.js +5 -0
  34. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-60cefcbd.js → OrCheckbox.vue_vue_type_script_lang-51a4f8d3.js} +26 -10
  35. package/dist/bundled/v3/OrCheckboxTree.vue_vue_type_script_lang-ffa313a0.js +102 -0
  36. package/dist/bundled/v3/OrFormGroup.vue_vue_type_script_lang-360b258b.js +60 -0
  37. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-f7601423.js → OrSelect.vue_vue_type_script_lang-c0612348.js} +1 -1
  38. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +112 -0
  39. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +115 -0
  40. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.d.ts +1 -0
  41. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +32 -0
  42. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +74 -0
  43. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +76 -0
  44. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.d.ts +1 -0
  45. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +20 -0
  46. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.d.ts +2 -0
  47. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +10 -0
  48. package/dist/bundled/v3/components/OrCheckboxTreeV3/types.d.ts +7 -0
  49. package/dist/bundled/v3/components/OrCheckboxTreeV3/types.js +1 -0
  50. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +9 -7
  51. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +18 -16
  52. package/dist/bundled/v3/components/OrCheckboxV3/index.js +2 -1
  53. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +58 -0
  54. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +85 -0
  55. package/dist/bundled/v3/components/OrFormGroupV3/index.d.ts +2 -0
  56. package/dist/bundled/v3/components/OrFormGroupV3/index.js +15 -0
  57. package/dist/bundled/v3/components/OrFormGroupV3/props.d.ts +4 -0
  58. package/dist/bundled/v3/components/OrFormGroupV3/props.js +7 -0
  59. package/dist/bundled/v3/components/OrFormGroupV3/styles.d.ts +6 -0
  60. package/dist/bundled/v3/components/OrFormGroupV3/styles.js +20 -0
  61. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +104 -0
  62. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +110 -0
  63. package/dist/bundled/v3/components/OrRadioGroupV3/index.d.ts +1 -0
  64. package/dist/bundled/v3/components/OrRadioGroupV3/index.js +24 -0
  65. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +4 -4
  66. package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
  67. package/dist/bundled/v3/components/index.js +2 -2
  68. package/dist/bundled/v3/index.d.ts +1 -0
  69. package/dist/bundled/v3/index.js +7 -7
  70. package/dist/bundled/v3/utils/functions/flattenDeep.d.ts +2 -0
  71. package/dist/bundled/v3/utils/functions/flattenDeep.js +5 -0
  72. package/dist/esm/v2/{OrCheckbox-dc587ec9.js → OrCheckbox-e55228e5.js} +34 -40
  73. package/dist/esm/v2/OrCheckboxTree-4944c6a3.js +202 -0
  74. package/dist/esm/v2/OrFormGroup-7a883bce.js +140 -0
  75. package/dist/esm/v2/{OrSelect-40183874.js → OrSelect-4031334e.js} +1 -1
  76. package/dist/esm/v2/components/index.js +2 -2
  77. package/dist/esm/v2/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +115 -0
  78. package/dist/esm/v2/components/or-checkbox-group-v3/index.d.ts +1 -0
  79. package/dist/esm/v2/components/or-checkbox-group-v3/index.js +129 -0
  80. package/dist/esm/v2/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +76 -0
  81. package/dist/esm/v2/components/or-checkbox-tree-v3/index.d.ts +1 -0
  82. package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +10 -0
  83. package/dist/esm/v2/components/or-checkbox-tree-v3/styles.d.ts +2 -0
  84. package/dist/esm/v2/components/or-checkbox-tree-v3/types.d.ts +7 -0
  85. package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -16
  86. package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
  87. package/dist/esm/v2/components/or-form-group-v3/OrFormGroup.vue.d.ts +85 -0
  88. package/dist/esm/v2/components/or-form-group-v3/index.d.ts +2 -0
  89. package/dist/esm/v2/components/or-form-group-v3/index.js +6 -0
  90. package/dist/esm/v2/components/or-form-group-v3/props.d.ts +4 -0
  91. package/dist/esm/v2/components/or-form-group-v3/styles.d.ts +6 -0
  92. package/dist/esm/v2/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +110 -0
  93. package/dist/esm/v2/components/or-radio-group-v3/index.d.ts +1 -0
  94. package/dist/esm/v2/components/or-radio-group-v3/index.js +124 -0
  95. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  96. package/dist/esm/v2/flattenDeep-e7a8b995.js +5 -0
  97. package/dist/esm/v2/index.d.ts +1 -0
  98. package/dist/esm/v2/index.js +3 -2
  99. package/dist/esm/v2/utils/functions/flattenDeep.d.ts +2 -0
  100. package/dist/esm/v3/{OrCheckbox-56f849f7.js → OrCheckbox-eab735d0.js} +32 -16
  101. package/dist/esm/v3/OrCheckboxTree-7a2a4b7d.js +162 -0
  102. package/dist/esm/v3/OrFormGroup-d9255559.js +121 -0
  103. package/dist/esm/v3/{OrSelect-5502d82d.js → OrSelect-ebdab996.js} +1 -1
  104. package/dist/esm/v3/components/index.js +2 -2
  105. package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +115 -0
  106. package/dist/esm/v3/components/or-checkbox-group-v3/index.d.ts +1 -0
  107. package/dist/esm/v3/components/or-checkbox-group-v3/index.js +94 -0
  108. package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +76 -0
  109. package/dist/esm/v3/components/or-checkbox-tree-v3/index.d.ts +1 -0
  110. package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +10 -0
  111. package/dist/esm/v3/components/or-checkbox-tree-v3/styles.d.ts +2 -0
  112. package/dist/esm/v3/components/or-checkbox-tree-v3/types.d.ts +7 -0
  113. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -16
  114. package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
  115. package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +85 -0
  116. package/dist/esm/v3/components/or-form-group-v3/index.d.ts +2 -0
  117. package/dist/esm/v3/components/or-form-group-v3/index.js +6 -0
  118. package/dist/esm/v3/components/or-form-group-v3/props.d.ts +4 -0
  119. package/dist/esm/v3/components/or-form-group-v3/styles.d.ts +6 -0
  120. package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +110 -0
  121. package/dist/esm/v3/components/or-radio-group-v3/index.d.ts +1 -0
  122. package/dist/esm/v3/components/or-radio-group-v3/index.js +91 -0
  123. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  124. package/dist/esm/v3/flattenDeep-e7a8b995.js +5 -0
  125. package/dist/esm/v3/index.d.ts +1 -0
  126. package/dist/esm/v3/index.js +3 -2
  127. package/dist/esm/v3/utils/functions/flattenDeep.d.ts +2 -0
  128. package/package.json +2 -3
  129. package/src/components/or-checkbox-group-v3/OrCheckboxGroup.docs.mdx +7 -0
  130. package/src/components/or-checkbox-group-v3/OrCheckboxGroup.stories3.ts +309 -0
  131. package/src/components/or-checkbox-group-v3/OrCheckboxGroup.vue +82 -0
  132. package/src/components/or-checkbox-group-v3/index.ts +1 -0
  133. package/src/components/or-checkbox-tree-v3/OrCheckboxTree.docs.mdx +7 -0
  134. package/src/components/or-checkbox-tree-v3/OrCheckboxTree.stories3.ts +112 -0
  135. package/src/components/or-checkbox-tree-v3/OrCheckboxTree.vue +168 -0
  136. package/src/components/or-checkbox-tree-v3/index.ts +1 -0
  137. package/src/components/or-checkbox-tree-v3/styles.ts +15 -0
  138. package/src/components/or-checkbox-tree-v3/types.ts +7 -0
  139. package/src/components/or-checkbox-v3/OrCheckbox.vue +30 -12
  140. package/src/components/or-form-group-v3/OrFormGroup.stories3.ts +114 -0
  141. package/src/components/or-form-group-v3/OrFormGroup.vue +114 -0
  142. package/src/components/or-form-group-v3/index.ts +2 -0
  143. package/src/components/or-form-group-v3/props.ts +4 -0
  144. package/src/components/or-form-group-v3/styles.ts +36 -0
  145. package/src/components/or-radio-group-v3/OrRadioGroup.stories3.ts +81 -0
  146. package/src/components/or-radio-group-v3/OrRadioGroup.vue +80 -0
  147. package/src/components/or-radio-group-v3/index.ts +1 -0
  148. package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
  149. package/src/index.ts +1 -0
  150. package/src/utils/functions/flattenDeep.ts +5 -0
@@ -0,0 +1,76 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { CheckboxNode } from './types';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
5
+ parentStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
+ hasChildren: import("@vue/composition-api").ComputedRef<boolean | undefined>;
7
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]> | import("@vue/composition-api").Ref<string[]>;
8
+ isOpen: import("@vue/composition-api").Ref<boolean>;
9
+ setIsOpen: (value?: boolean | undefined) => boolean;
10
+ isIntermediate: import("@vue/composition-api").ComputedRef<boolean>;
11
+ isAllChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
12
+ isAnyChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
13
+ childrenValues: import("@vue/composition-api").ComputedRef<any[]>;
14
+ handleParentClick: () => void;
15
+ }> & import("@vue/composition-api").Data, {}, {}, {
16
+ modelValue: {
17
+ type: PropType<string[]>;
18
+ default: () => never[];
19
+ };
20
+ item: {
21
+ type: PropType<CheckboxNode>;
22
+ required: true;
23
+ };
24
+ collapsible: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ disabled: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }, import("@vue/composition-api").ExtractPropTypes<{
33
+ modelValue: {
34
+ type: PropType<string[]>;
35
+ default: () => never[];
36
+ };
37
+ item: {
38
+ type: PropType<CheckboxNode>;
39
+ required: true;
40
+ };
41
+ collapsible: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ disabled: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
50
+ modelValue: string[];
51
+ item: CheckboxNode;
52
+ collapsible: boolean;
53
+ disabled: boolean;
54
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
55
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
56
+ parentStyles: import("@vue/composition-api").ComputedRef<string[]>;
57
+ hasChildren: import("@vue/composition-api").ComputedRef<boolean | undefined>;
58
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]> | import("@vue/composition-api").Ref<string[]>;
59
+ isOpen: import("@vue/composition-api").Ref<boolean>;
60
+ setIsOpen: (value?: boolean | undefined) => boolean;
61
+ isIntermediate: import("@vue/composition-api").ComputedRef<boolean>;
62
+ isAllChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
63
+ isAnyChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
64
+ childrenValues: import("@vue/composition-api").ComputedRef<any[]>;
65
+ handleParentClick: () => void;
66
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
67
+ modelValue: string[];
68
+ item: CheckboxNode;
69
+ collapsible: boolean;
70
+ disabled: boolean;
71
+ } & {}, {
72
+ modelValue: string[];
73
+ collapsible: boolean;
74
+ disabled: boolean;
75
+ }, true>);
76
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OrCheckboxTreeV3 } from './OrCheckboxTree.vue';
@@ -0,0 +1,10 @@
1
+ export { s as OrCheckboxTreeV3 } from '../../OrCheckboxTree-7a2a4b7d.js';
2
+ import 'vue-demi';
3
+ import '@vueuse/core';
4
+ import '../../OrCheckbox-eab735d0.js';
5
+ import '../../useIdAttribute-859439f0.js';
6
+ import '../../OrLabel-4da56db0.js';
7
+ import 'vue';
8
+ import '../../style-inject.es-4c6f2515.js';
9
+ import '../../OrIcon-62793572.js';
10
+ import '../../flattenDeep-e7a8b995.js';
@@ -0,0 +1,2 @@
1
+ export declare const CheckboxTreeRoot: string[];
2
+ export declare const CheckboxTreeRootParent: string[];
@@ -0,0 +1,7 @@
1
+ export type CheckboxNode = {
2
+ label: string;
3
+ value: string;
4
+ children?: CheckboxNode[];
5
+ collapsible?: boolean;
6
+ disabled?: boolean;
7
+ };
@@ -11,17 +11,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
11
11
  'force-state': string | undefined;
12
12
  id: string | undefined;
13
13
  };
14
- proxyModelValue: import("@vue/composition-api").WritableComputedRef<boolean | string[]>;
14
+ isChecked: import("@vue/composition-api").ComputedRef<boolean | "" | 0>;
15
+ handleChange: () => void;
15
16
  focus: () => void;
16
17
  blur: () => void;
17
18
  }> & import("@vue/composition-api").Data, {}, {}, {
18
19
  modelValue: {
19
- type: PropType<boolean | string[]>;
20
- default: undefined;
20
+ type: any;
21
+ default: null;
21
22
  };
22
23
  value: {
23
- type: StringConstructor;
24
- default: undefined;
24
+ type: PropType<string | number | boolean>;
25
+ default: null;
25
26
  };
26
27
  label: {
27
28
  type: StringConstructor;
@@ -45,12 +46,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
45
46
  };
46
47
  }, import("@vue/composition-api").ExtractPropTypes<{
47
48
  modelValue: {
48
- type: PropType<boolean | string[]>;
49
- default: undefined;
49
+ type: any;
50
+ default: null;
50
51
  };
51
52
  value: {
52
- type: StringConstructor;
53
- default: undefined;
53
+ type: PropType<string | number | boolean>;
54
+ default: null;
54
55
  };
55
56
  label: {
56
57
  type: StringConstructor;
@@ -73,8 +74,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
73
74
  default: boolean;
74
75
  };
75
76
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
76
- modelValue: boolean | string[];
77
- value: string;
77
+ modelValue: any;
78
+ value: string | number | boolean;
78
79
  label: string;
79
80
  labelVariant: LabelVariant;
80
81
  indeterminate: boolean;
@@ -93,12 +94,13 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
93
94
  'force-state': string | undefined;
94
95
  id: string | undefined;
95
96
  };
96
- proxyModelValue: import("@vue/composition-api").WritableComputedRef<boolean | string[]>;
97
+ isChecked: import("@vue/composition-api").ComputedRef<boolean | "" | 0>;
98
+ handleChange: () => void;
97
99
  focus: () => void;
98
100
  blur: () => void;
99
101
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
100
- modelValue: boolean | string[];
101
- value: string;
102
+ modelValue: any;
103
+ value: string | number | boolean;
102
104
  label: string;
103
105
  labelVariant: LabelVariant;
104
106
  indeterminate: boolean;
@@ -107,8 +109,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
107
109
  } & {} & {
108
110
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
109
111
  }, {
110
- modelValue: boolean | string[];
111
- value: string;
112
+ modelValue: any;
113
+ value: string | number | boolean;
112
114
  label: string;
113
115
  labelVariant: LabelVariant;
114
116
  indeterminate: boolean;
@@ -1,7 +1,7 @@
1
- export { s as OrCheckboxV3 } from '../../OrCheckbox-56f849f7.js';
1
+ export { s as OrCheckboxV3 } from '../../OrCheckbox-eab735d0.js';
2
2
  import 'vue-demi';
3
- import '../../useIdAttribute-859439f0.js';
4
3
  import '@vueuse/core';
4
+ import '../../useIdAttribute-859439f0.js';
5
5
  import '../../OrLabel-4da56db0.js';
6
6
  import 'vue';
7
7
  import '../../style-inject.es-4c6f2515.js';
@@ -0,0 +1,85 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { FormGroupDirection } from './props';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
+ labelStyles: import("@vue/composition-api").ComputedRef<string[]>;
7
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
8
+ }> & import("@vue/composition-api").Data, {}, {}, {
9
+ label: {
10
+ type: StringConstructor;
11
+ default: undefined;
12
+ };
13
+ required: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ disabled: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ direction: {
22
+ type: PropType<FormGroupDirection>;
23
+ default: FormGroupDirection;
24
+ };
25
+ error: {
26
+ type: (BooleanConstructor | StringConstructor)[];
27
+ default: undefined;
28
+ };
29
+ hint: {
30
+ type: StringConstructor;
31
+ default: undefined;
32
+ };
33
+ }, import("@vue/composition-api").ExtractPropTypes<{
34
+ label: {
35
+ type: StringConstructor;
36
+ default: undefined;
37
+ };
38
+ required: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ disabled: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ direction: {
47
+ type: PropType<FormGroupDirection>;
48
+ default: FormGroupDirection;
49
+ };
50
+ error: {
51
+ type: (BooleanConstructor | StringConstructor)[];
52
+ default: undefined;
53
+ };
54
+ hint: {
55
+ type: StringConstructor;
56
+ default: undefined;
57
+ };
58
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
59
+ label: string;
60
+ required: boolean;
61
+ disabled: boolean;
62
+ direction: FormGroupDirection;
63
+ error: string | boolean;
64
+ hint: string;
65
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
66
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
67
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
68
+ labelStyles: import("@vue/composition-api").ComputedRef<string[]>;
69
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
70
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
71
+ label: string;
72
+ required: boolean;
73
+ disabled: boolean;
74
+ direction: FormGroupDirection;
75
+ error: string | boolean;
76
+ hint: string;
77
+ } & {}, {
78
+ label: string;
79
+ required: boolean;
80
+ disabled: boolean;
81
+ direction: FormGroupDirection;
82
+ error: string | boolean;
83
+ hint: string;
84
+ }, true>);
85
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as OrFormGroupV3 } from './OrFormGroup.vue';
2
+ export * from './props';
@@ -0,0 +1,6 @@
1
+ export { F as FormGroupDirection, s as OrFormGroupV3 } from '../../OrFormGroup-d9255559.js';
2
+ import 'vue-demi';
3
+ import '../../OrLabel-4da56db0.js';
4
+ import 'vue';
5
+ import '../../OrError-c01d0c29.js';
6
+ import '../../OrHint-06ab89d7.js';
@@ -0,0 +1,4 @@
1
+ export declare enum FormGroupDirection {
2
+ Vertical = "vertical",
3
+ Horizontal = "horizontal"
4
+ }
@@ -0,0 +1,6 @@
1
+ import { FormGroupDirection } from './props';
2
+ export declare const FormGroupRoot: string[];
3
+ export declare const FormGroupContent: string[];
4
+ export declare const FormGroupLabel: string[];
5
+ export declare const FormGroupLabelError: string[];
6
+ export declare const FormGroupContentDirections: Record<FormGroupDirection, string[]>;
@@ -0,0 +1,110 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { FormGroupDirection } from '../or-form-group-v3';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ proxyModelValue: import("@vue/composition-api").Ref<any> | import("@vue/composition-api").WritableComputedRef<any>;
5
+ }> & import("@vue/composition-api").Data, {}, {}, {
6
+ modelValue: {
7
+ type: any;
8
+ default: null;
9
+ };
10
+ direction: {
11
+ type: PropType<FormGroupDirection>;
12
+ default: string;
13
+ };
14
+ label: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ options: {
19
+ type: PropType<{
20
+ label: string;
21
+ value: any;
22
+ disabled?: boolean | undefined;
23
+ }[]>;
24
+ default: () => never[];
25
+ };
26
+ error: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ hint: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ disabled: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }, import("@vue/composition-api").ExtractPropTypes<{
39
+ modelValue: {
40
+ type: any;
41
+ default: null;
42
+ };
43
+ direction: {
44
+ type: PropType<FormGroupDirection>;
45
+ default: string;
46
+ };
47
+ label: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ options: {
52
+ type: PropType<{
53
+ label: string;
54
+ value: any;
55
+ disabled?: boolean | undefined;
56
+ }[]>;
57
+ default: () => never[];
58
+ };
59
+ error: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ hint: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ disabled: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
72
+ modelValue: any;
73
+ direction: FormGroupDirection;
74
+ label: string;
75
+ options: {
76
+ label: string;
77
+ value: any;
78
+ disabled?: boolean | undefined;
79
+ }[];
80
+ error: string;
81
+ hint: string;
82
+ disabled: boolean;
83
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
84
+ proxyModelValue: import("@vue/composition-api").Ref<any> | import("@vue/composition-api").WritableComputedRef<any>;
85
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
86
+ modelValue: any;
87
+ direction: FormGroupDirection;
88
+ label: string;
89
+ options: {
90
+ label: string;
91
+ value: any;
92
+ disabled?: boolean | undefined;
93
+ }[];
94
+ error: string;
95
+ hint: string;
96
+ disabled: boolean;
97
+ } & {}, {
98
+ modelValue: any;
99
+ direction: FormGroupDirection;
100
+ label: string;
101
+ options: {
102
+ label: string;
103
+ value: any;
104
+ disabled?: boolean | undefined;
105
+ }[];
106
+ error: string;
107
+ hint: string;
108
+ disabled: boolean;
109
+ }, true>);
110
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OrRadioGroupV3 } from './OrRadioGroup.vue';
@@ -0,0 +1,91 @@
1
+ import { defineComponent } from 'vue-demi';
2
+ import { useVModel } from '@vueuse/core';
3
+ import { s as script$1 } from '../../OrFormGroup-d9255559.js';
4
+ import { s as script$2 } from '../../OrRadio-a890ee7c.js';
5
+ import { resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
6
+ import '../../OrLabel-4da56db0.js';
7
+ import '../../OrError-c01d0c29.js';
8
+ import '../../OrHint-06ab89d7.js';
9
+ import '../../useIdAttribute-859439f0.js';
10
+ import '../../style-inject.es-4c6f2515.js';
11
+
12
+ var script = defineComponent({
13
+ name: 'OrRadioGroup',
14
+ components: {
15
+ OrFormGroup: script$1,
16
+ OrRadio: script$2
17
+ },
18
+ model: {
19
+ prop: 'modelValue',
20
+ event: 'update:modelValue'
21
+ },
22
+ props: {
23
+ modelValue: {
24
+ type: null,
25
+ default: null
26
+ },
27
+ direction: {
28
+ type: String,
29
+ default: 'vertical'
30
+ },
31
+ label: {
32
+ type: String,
33
+ default: ''
34
+ },
35
+ options: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ error: {
40
+ type: String,
41
+ default: ''
42
+ },
43
+ hint: {
44
+ type: String,
45
+ default: ''
46
+ },
47
+ disabled: {
48
+ type: Boolean,
49
+ default: false
50
+ }
51
+ },
52
+ setup(props, {
53
+ emit
54
+ }) {
55
+ const proxyModelValue = useVModel(props, 'modelValue', emit);
56
+ return {
57
+ proxyModelValue
58
+ };
59
+ }
60
+ });
61
+
62
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
63
+ const _component_OrRadio = resolveComponent("OrRadio");
64
+ const _component_OrFormGroup = resolveComponent("OrFormGroup");
65
+ return openBlock(), createBlock(_component_OrFormGroup, {
66
+ direction: _ctx.direction,
67
+ label: _ctx.label,
68
+ error: _ctx.error,
69
+ hint: _ctx.hint,
70
+ disabled: _ctx.disabled
71
+ }, {
72
+ addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
73
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, option => {
74
+ return openBlock(), createBlock(_component_OrRadio, {
75
+ key: option.value,
76
+ modelValue: _ctx.proxyModelValue,
77
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
78
+ label: option.label,
79
+ value: option.value,
80
+ disabled: _ctx.disabled || option.disabled
81
+ }, null, 8 /* PROPS */, ["modelValue", "label", "value", "disabled"]);
82
+ }), 128 /* KEYED_FRAGMENT */))]),
83
+
84
+ _: 3 /* FORWARDED */
85
+ }, 8 /* PROPS */, ["direction", "label", "error", "hint", "disabled"]);
86
+ }
87
+
88
+ script.render = render;
89
+ script.__file = "src/components/or-radio-group-v3/OrRadioGroup.vue";
90
+
91
+ export { script as OrRadioGroupV3 };
@@ -1,10 +1,10 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-5502d82d.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-ebdab996.js';
2
2
  export { a as SelectSize } from '../../OrInputBox-11389afd.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
5
5
  import '../../useOverflow-af6161c8.js';
6
6
  import '@vueuse/core';
7
- import '../../OrCheckbox-56f849f7.js';
7
+ import '../../OrCheckbox-eab735d0.js';
8
8
  import '../../useIdAttribute-859439f0.js';
9
9
  import '../../OrLabel-4da56db0.js';
10
10
  import 'vue';
@@ -0,0 +1,5 @@
1
+ function flattenDeep(arr = []) {
2
+ return arr.flatMap(subArray => Array.isArray(subArray) ? flattenDeep(subArray) : subArray);
3
+ }
4
+
5
+ export { flattenDeep as f };
@@ -2,3 +2,4 @@ export * from './components';
2
2
  export * from './directives';
3
3
  export * from './hooks';
4
4
  export * from './utils/functions/text';
5
+ export { default as flattenDeep } from './utils/functions/flattenDeep';
@@ -12,7 +12,7 @@ export { s as OrCardV3 } from './OrCard-cc82902c.js';
12
12
  export { s as OrCarousel } from './OrCarousel-03597740.js';
13
13
  export { s as OrCarouselItem } from './OrCarouselItem-8c7ccd0f.js';
14
14
  export { s as OrCheckbox } from './OrCheckbox-7efd5f26.js';
15
- export { s as OrCheckboxV3 } from './OrCheckbox-56f849f7.js';
15
+ export { s as OrCheckboxV3 } from './OrCheckbox-eab735d0.js';
16
16
  export { s as OrChip } from './OrChip-97a85e10.js';
17
17
  export { s as OrChips } from './OrChips-64b86761.js';
18
18
  export { s as OrCode, O as OrCodeLanguages } from './OrCode-6f2e4d99.js';
@@ -69,7 +69,7 @@ export { s as OrSearch } from './OrSearch-c4caf04e.js';
69
69
  export { s as OrSearchV3 } from './OrSearch-d5d46937.js';
70
70
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-4587c7a9.js';
71
71
  export { s as OrSelect } from './OrSelect-d8a78242.js';
72
- export { s as OrSelectV3 } from './OrSelect-5502d82d.js';
72
+ export { s as OrSelectV3 } from './OrSelect-ebdab996.js';
73
73
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
74
74
  export { s as OrSidebarV3 } from './OrSidebar-0d715029.js';
75
75
  export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-4d7497ec.js';
@@ -113,6 +113,7 @@ export { u as useResponsive } from './useResponsive-a02e95b7.js';
113
113
  export { u as useToggle } from './useToggle-29e4d7c7.js';
114
114
  export { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
115
115
  import { R as RX_ABBREVIATION_FROM_STRING } from './color-1f348774.js';
116
+ export { f as flattenDeep } from './flattenDeep-e7a8b995.js';
116
117
  import 'vue-demi';
117
118
  import 'lodash';
118
119
  import 'vue';
@@ -0,0 +1,2 @@
1
+ declare function flattenDeep(arr?: any[]): any[];
2
+ export default flattenDeep;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "4.1.2",
3
+ "version": "4.1.3-beta.2559.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": "26bf58770624d260c6b33bf1c13ba22e60a88461"
155
+ }
157
156
  }
@@ -0,0 +1,7 @@
1
+ import { DocsPage } from '@storybook/addon-docs';
2
+
3
+ ```ts
4
+ import { OrCheckboxGroupV3 as OrCheckboxGroup } from '@onereach/ui-components';
5
+ ```
6
+
7
+ <DocsPage />