@draftbit/core 46.7.9-b47217.2 → 46.7.9-bca9cf.2

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 (34) hide show
  1. package/lib/commonjs/components/DatePicker/DatePicker.js +6 -0
  2. package/lib/commonjs/components/DeprecatedFAB.js +3 -21
  3. package/lib/commonjs/components/Elevation.js +14 -2
  4. package/lib/commonjs/components/Picker/Picker.js +10 -3
  5. package/lib/commonjs/mappings/DatePicker.js +6 -1
  6. package/lib/commonjs/mappings/Picker.js +5 -0
  7. package/lib/commonjs/styles/overlay.js +3 -1
  8. package/lib/module/components/DatePicker/DatePicker.js +7 -1
  9. package/lib/module/components/Picker/Picker.js +11 -4
  10. package/lib/module/mappings/DatePicker.js +7 -2
  11. package/lib/module/mappings/Picker.js +6 -1
  12. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -0
  13. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
  14. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  15. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  16. package/lib/typescript/src/mappings/DatePicker.d.ts +10 -0
  17. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
  18. package/lib/typescript/src/mappings/Picker.d.ts +10 -0
  19. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -1
  20. package/package.json +3 -3
  21. package/src/components/DatePicker/DatePicker.js +7 -2
  22. package/src/components/DatePicker/DatePicker.tsx +9 -0
  23. package/src/components/Picker/Picker.js +9 -3
  24. package/src/components/Picker/Picker.tsx +14 -2
  25. package/src/mappings/DatePicker.js +6 -1
  26. package/src/mappings/DatePicker.ts +6 -0
  27. package/src/mappings/Picker.js +6 -1
  28. package/src/mappings/Picker.ts +6 -0
  29. package/lib/commonjs/mappings/DatePickerModal.js +0 -145
  30. package/lib/module/mappings/DatePickerModal.js +0 -139
  31. package/lib/typescript/src/mappings/DatePickerModal.d.ts +0 -241
  32. package/lib/typescript/src/mappings/DatePickerModal.d.ts.map +0 -1
  33. package/src/mappings/DatePickerModal.js +0 -146
  34. package/src/mappings/DatePickerModal.ts +0 -168
@@ -8,6 +8,7 @@ import {
8
8
  createIconSizeProp,
9
9
  createColorProp,
10
10
  StylesPanelSections,
11
+ createStaticBoolProp,
11
12
  } from "@draftbit/types";
12
13
 
13
14
  const SEED_DATA_PROPS = {
@@ -157,6 +158,11 @@ export const SEED_DATA = [
157
158
  },
158
159
  iconSize: createIconSizeProp({ defaultValue: 24 }),
159
160
  iconColor: createColorProp({ label: "Icon Color" }),
161
+ autoDismissKeyboard: createStaticBoolProp({
162
+ label: "Auto dismiss keyboard",
163
+ description: "Automatically dismiss keyboard when Picker is opened",
164
+ defaultValue: true,
165
+ }),
160
166
  },
161
167
  layout: {},
162
168
  },
@@ -1,145 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- /**
9
- * Maps react-native-paper-dates DatePickerModal in modes: "single" and "multiple"
10
- * Cannot map mode "range" because it relies on 2 fieldNames (startDate and endDate)
11
- */
12
-
13
- const SHARED_SEED_DATA = {
14
- tag: "DatePickerModal",
15
- packageName: "react-native-paper-dates",
16
- triggers: [_types.Triggers.OnDismiss, _types.Triggers.OnConfirm, _types.Triggers.OnChange],
17
- category: _types.COMPONENT_TYPES.input,
18
- StylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position]
19
- };
20
- const SHARED_SEED_DATA_PROPS = {
21
- onDismiss: (0, _types.createActionProp)({
22
- label: "On Dismiss",
23
- description: "Called when date picker dimissed",
24
- required: true
25
- }),
26
- locale: (0, _types.createTextProp)({
27
- label: "Locale",
28
- description: "A locale can be composed of both a base language, the country (territory) of use, and possibly codeset (which is usually assumed). For example, German is de",
29
- defaultValue: "en",
30
- required: true
31
- }),
32
- visible: (0, _types.createBoolProp)({
33
- label: "Visible",
34
- description: "Flag indicating if the component should be displayed",
35
- required: true
36
- }),
37
- label: (0, _types.createTextProp)({
38
- label: "Label",
39
- description: "The label used as the header in the component",
40
- defaultValue: "Select date"
41
- }),
42
- saveLabel: (0, _types.createTextProp)({
43
- label: "Save Label",
44
- description: "Label used to confirm a date selection",
45
- defaultValue: "Save"
46
- }),
47
- saveLabelDisabled: (0, _types.createStaticBoolProp)({
48
- label: "Disable Save Label",
49
- description: "Flag indicating if the save label should be disabled and unable to receive events"
50
- }),
51
- uppercase: (0, _types.createStaticBoolProp)({
52
- label: "Uppercase",
53
- description: "Flag indicating if the text in the component should be uppercase",
54
- defaultValue: true
55
- }),
56
- startYear: (0, _types.createStaticNumberProp)({
57
- label: "Start Year",
58
- description: "The start year when the component is rendered",
59
- required: false,
60
- defaultValue: 1800
61
- }),
62
- endYear: (0, _types.createStaticNumberProp)({
63
- label: "End Year",
64
- description: "The end year when the component is rendered",
65
- required: false,
66
- defaultValue: 2200
67
- })
68
- };
69
- const SEED_DATA = [{
70
- ...SHARED_SEED_DATA,
71
- name: "Date Picker Modal",
72
- description: "Date Picker modal for date selection",
73
- props: {
74
- ...SHARED_SEED_DATA_PROPS,
75
- onConfirm: (0, _types.createActionProp)({
76
- label: "On Confirm",
77
- description: "Called when date selected and confirmed",
78
- required: true
79
- }),
80
- onChange: (0, _types.createActionProp)({
81
- label: "On Change",
82
- description: "Called when date selection changes"
83
- }),
84
- mode: (0, _types.createTextEnumProp)({
85
- label: "Mode",
86
- description: "The selection mode of the date picker",
87
- required: true,
88
- options: ["single"],
89
- editable: false,
90
- defaultValue: "single",
91
- formType: _types.FORM_TYPES.flatArray
92
- }),
93
- fieldName: (0, _types.createFieldNameProp)({
94
- defaultValue: "date",
95
- handlerPropName: "onConfirm",
96
- valuePropName: "date"
97
- })
98
- }
99
- }, {
100
- ...SHARED_SEED_DATA,
101
- name: "Multiple Date Picker Modal",
102
- description: "Date Picker modal for multiple date selection",
103
- props: {
104
- ...SHARED_SEED_DATA_PROPS,
105
- onConfirm: (0, _types.createActionProp)({
106
- label: "On Confirm",
107
- description: "Called when dates selected and confirmed",
108
- required: true
109
- }),
110
- onChange: (0, _types.createActionProp)({
111
- label: "On Change",
112
- description: "Called when dates selection changes"
113
- }),
114
- mode: (0, _types.createTextEnumProp)({
115
- label: "Mode",
116
- description: "The selection mode of the date picker",
117
- required: true,
118
- options: ["multiple"],
119
- editable: false,
120
- defaultValue: "multiple",
121
- formType: _types.FORM_TYPES.flatArray
122
- }),
123
- moreLabel: (0, _types.createTextProp)({
124
- label: "More Label",
125
- description: "The label used display when multiple dates have been selected in the component",
126
- defaultValue: "More"
127
- }),
128
- startLabel: (0, _types.createTextProp)({
129
- label: "Start Label",
130
- description: "The label used as the prefix to the starting date in the component",
131
- defaultValue: "Start"
132
- }),
133
- endLabel: (0, _types.createTextProp)({
134
- label: "End Label",
135
- description: "The label used as the suffix to the ending date in the component",
136
- defaultValue: "End"
137
- }),
138
- fieldName: (0, _types.createFieldNameProp)({
139
- defaultValue: "dates",
140
- handlerPropName: "onConfirm",
141
- valuePropName: "dates"
142
- })
143
- }
144
- }];
145
- exports.SEED_DATA = SEED_DATA;
@@ -1,139 +0,0 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, Triggers, StylesPanelSections, createBoolProp, createTextProp, createTextEnumProp, createStaticBoolProp, createStaticNumberProp, createFieldNameProp, createActionProp } from "@draftbit/types";
2
-
3
- /**
4
- * Maps react-native-paper-dates DatePickerModal in modes: "single" and "multiple"
5
- * Cannot map mode "range" because it relies on 2 fieldNames (startDate and endDate)
6
- */
7
-
8
- const SHARED_SEED_DATA = {
9
- tag: "DatePickerModal",
10
- packageName: "react-native-paper-dates",
11
- triggers: [Triggers.OnDismiss, Triggers.OnConfirm, Triggers.OnChange],
12
- category: COMPONENT_TYPES.input,
13
- StylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position]
14
- };
15
- const SHARED_SEED_DATA_PROPS = {
16
- onDismiss: createActionProp({
17
- label: "On Dismiss",
18
- description: "Called when date picker dimissed",
19
- required: true
20
- }),
21
- locale: createTextProp({
22
- label: "Locale",
23
- description: "A locale can be composed of both a base language, the country (territory) of use, and possibly codeset (which is usually assumed). For example, German is de",
24
- defaultValue: "en",
25
- required: true
26
- }),
27
- visible: createBoolProp({
28
- label: "Visible",
29
- description: "Flag indicating if the component should be displayed",
30
- required: true
31
- }),
32
- label: createTextProp({
33
- label: "Label",
34
- description: "The label used as the header in the component",
35
- defaultValue: "Select date"
36
- }),
37
- saveLabel: createTextProp({
38
- label: "Save Label",
39
- description: "Label used to confirm a date selection",
40
- defaultValue: "Save"
41
- }),
42
- saveLabelDisabled: createStaticBoolProp({
43
- label: "Disable Save Label",
44
- description: "Flag indicating if the save label should be disabled and unable to receive events"
45
- }),
46
- uppercase: createStaticBoolProp({
47
- label: "Uppercase",
48
- description: "Flag indicating if the text in the component should be uppercase",
49
- defaultValue: true
50
- }),
51
- startYear: createStaticNumberProp({
52
- label: "Start Year",
53
- description: "The start year when the component is rendered",
54
- required: false,
55
- defaultValue: 1800
56
- }),
57
- endYear: createStaticNumberProp({
58
- label: "End Year",
59
- description: "The end year when the component is rendered",
60
- required: false,
61
- defaultValue: 2200
62
- })
63
- };
64
- export const SEED_DATA = [{
65
- ...SHARED_SEED_DATA,
66
- name: "Date Picker Modal",
67
- description: "Date Picker modal for date selection",
68
- props: {
69
- ...SHARED_SEED_DATA_PROPS,
70
- onConfirm: createActionProp({
71
- label: "On Confirm",
72
- description: "Called when date selected and confirmed",
73
- required: true
74
- }),
75
- onChange: createActionProp({
76
- label: "On Change",
77
- description: "Called when date selection changes"
78
- }),
79
- mode: createTextEnumProp({
80
- label: "Mode",
81
- description: "The selection mode of the date picker",
82
- required: true,
83
- options: ["single"],
84
- editable: false,
85
- defaultValue: "single",
86
- formType: FORM_TYPES.flatArray
87
- }),
88
- fieldName: createFieldNameProp({
89
- defaultValue: "date",
90
- handlerPropName: "onConfirm",
91
- valuePropName: "date"
92
- })
93
- }
94
- }, {
95
- ...SHARED_SEED_DATA,
96
- name: "Multiple Date Picker Modal",
97
- description: "Date Picker modal for multiple date selection",
98
- props: {
99
- ...SHARED_SEED_DATA_PROPS,
100
- onConfirm: createActionProp({
101
- label: "On Confirm",
102
- description: "Called when dates selected and confirmed",
103
- required: true
104
- }),
105
- onChange: createActionProp({
106
- label: "On Change",
107
- description: "Called when dates selection changes"
108
- }),
109
- mode: createTextEnumProp({
110
- label: "Mode",
111
- description: "The selection mode of the date picker",
112
- required: true,
113
- options: ["multiple"],
114
- editable: false,
115
- defaultValue: "multiple",
116
- formType: FORM_TYPES.flatArray
117
- }),
118
- moreLabel: createTextProp({
119
- label: "More Label",
120
- description: "The label used display when multiple dates have been selected in the component",
121
- defaultValue: "More"
122
- }),
123
- startLabel: createTextProp({
124
- label: "Start Label",
125
- description: "The label used as the prefix to the starting date in the component",
126
- defaultValue: "Start"
127
- }),
128
- endLabel: createTextProp({
129
- label: "End Label",
130
- description: "The label used as the suffix to the ending date in the component",
131
- defaultValue: "End"
132
- }),
133
- fieldName: createFieldNameProp({
134
- defaultValue: "dates",
135
- handlerPropName: "onConfirm",
136
- valuePropName: "dates"
137
- })
138
- }
139
- }];
@@ -1,241 +0,0 @@
1
- export declare const SEED_DATA: ({
2
- name: string;
3
- description: string;
4
- props: {
5
- onConfirm: {
6
- label: string;
7
- description: string;
8
- editable: boolean;
9
- required: boolean;
10
- formType: string;
11
- propType: string;
12
- defaultValue: null;
13
- group: string;
14
- };
15
- onChange: {
16
- label: string;
17
- description: string;
18
- editable: boolean;
19
- required: boolean;
20
- formType: string;
21
- propType: string;
22
- defaultValue: null;
23
- group: string;
24
- };
25
- mode: {
26
- group: string;
27
- label: string;
28
- description: string;
29
- editable: boolean;
30
- required: boolean;
31
- formType: string;
32
- propType: string;
33
- defaultValue: null;
34
- options: never[];
35
- };
36
- fieldName: {
37
- handlerPropName: string;
38
- group: string;
39
- label: string;
40
- description: string;
41
- formType: string;
42
- propType: string;
43
- defaultValue: string;
44
- valuePropName: string;
45
- editable: boolean;
46
- required: boolean;
47
- };
48
- onDismiss: {
49
- label: string;
50
- description: string;
51
- editable: boolean;
52
- required: boolean;
53
- formType: string;
54
- propType: string;
55
- defaultValue: null;
56
- group: string;
57
- };
58
- locale: any;
59
- visible: {
60
- label: string;
61
- description: string;
62
- formType: string;
63
- propType: string;
64
- defaultValue: boolean;
65
- editable: boolean;
66
- required: boolean;
67
- group: string;
68
- };
69
- label: any;
70
- saveLabel: any;
71
- saveLabelDisabled: {
72
- label: string;
73
- description: string;
74
- formType: string;
75
- propType: string;
76
- defaultValue: boolean;
77
- editable: boolean;
78
- required: boolean;
79
- group: string;
80
- };
81
- uppercase: {
82
- label: string;
83
- description: string;
84
- formType: string;
85
- propType: string;
86
- defaultValue: boolean;
87
- editable: boolean;
88
- required: boolean;
89
- group: string;
90
- };
91
- startYear: {
92
- label: string;
93
- description: string;
94
- formType: string;
95
- propType: string;
96
- group: string;
97
- defaultValue: null;
98
- editable: boolean;
99
- required: boolean;
100
- step: number;
101
- };
102
- endYear: {
103
- label: string;
104
- description: string;
105
- formType: string;
106
- propType: string;
107
- group: string;
108
- defaultValue: null;
109
- editable: boolean;
110
- required: boolean;
111
- step: number;
112
- };
113
- };
114
- tag: string;
115
- packageName: string;
116
- triggers: string[];
117
- category: string;
118
- StylesPanelSections: string[];
119
- } | {
120
- name: string;
121
- description: string;
122
- props: {
123
- onConfirm: {
124
- label: string;
125
- description: string;
126
- editable: boolean;
127
- required: boolean;
128
- formType: string;
129
- propType: string;
130
- defaultValue: null;
131
- group: string;
132
- };
133
- onChange: {
134
- label: string;
135
- description: string;
136
- editable: boolean;
137
- required: boolean;
138
- formType: string;
139
- propType: string;
140
- defaultValue: null;
141
- group: string;
142
- };
143
- mode: {
144
- group: string;
145
- label: string;
146
- description: string;
147
- editable: boolean;
148
- required: boolean;
149
- formType: string;
150
- propType: string;
151
- defaultValue: null;
152
- options: never[];
153
- };
154
- moreLabel: any;
155
- startLabel: any;
156
- endLabel: any;
157
- fieldName: {
158
- handlerPropName: string;
159
- group: string;
160
- label: string;
161
- description: string;
162
- formType: string;
163
- propType: string;
164
- defaultValue: string;
165
- valuePropName: string;
166
- editable: boolean;
167
- required: boolean;
168
- };
169
- onDismiss: {
170
- label: string;
171
- description: string;
172
- editable: boolean;
173
- required: boolean;
174
- formType: string;
175
- propType: string;
176
- defaultValue: null;
177
- group: string;
178
- };
179
- locale: any;
180
- visible: {
181
- label: string;
182
- description: string;
183
- formType: string;
184
- propType: string;
185
- defaultValue: boolean;
186
- editable: boolean;
187
- required: boolean;
188
- group: string;
189
- };
190
- label: any;
191
- saveLabel: any;
192
- saveLabelDisabled: {
193
- label: string;
194
- description: string;
195
- formType: string;
196
- propType: string;
197
- defaultValue: boolean;
198
- editable: boolean;
199
- required: boolean;
200
- group: string;
201
- };
202
- uppercase: {
203
- label: string;
204
- description: string;
205
- formType: string;
206
- propType: string;
207
- defaultValue: boolean;
208
- editable: boolean;
209
- required: boolean;
210
- group: string;
211
- };
212
- startYear: {
213
- label: string;
214
- description: string;
215
- formType: string;
216
- propType: string;
217
- group: string;
218
- defaultValue: null;
219
- editable: boolean;
220
- required: boolean;
221
- step: number;
222
- };
223
- endYear: {
224
- label: string;
225
- description: string;
226
- formType: string;
227
- propType: string;
228
- group: string;
229
- defaultValue: null;
230
- editable: boolean;
231
- required: boolean;
232
- step: number;
233
- };
234
- };
235
- tag: string;
236
- packageName: string;
237
- triggers: string[];
238
- category: string;
239
- StylesPanelSections: string[];
240
- })[];
241
- //# sourceMappingURL=DatePickerModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePickerModal.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePickerModal.ts"],"names":[],"mappings":"AAsFA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiFrB,CAAC"}
@@ -1,146 +0,0 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, Triggers, StylesPanelSections, createBoolProp, createTextProp, createTextEnumProp, createStaticBoolProp, createStaticNumberProp, createFieldNameProp, createActionProp, } from "@draftbit/types";
2
- /**
3
- * Maps react-native-paper-dates DatePickerModal in modes: "single" and "multiple"
4
- * Cannot map mode "range" because it relies on 2 fieldNames (startDate and endDate)
5
- */
6
- const SHARED_SEED_DATA = {
7
- tag: "DatePickerModal",
8
- packageName: "react-native-paper-dates",
9
- triggers: [Triggers.OnDismiss, Triggers.OnConfirm, Triggers.OnChange],
10
- category: COMPONENT_TYPES.input,
11
- StylesPanelSections: [
12
- StylesPanelSections.Typography,
13
- StylesPanelSections.Background,
14
- StylesPanelSections.Size,
15
- StylesPanelSections.MarginsAndPaddings,
16
- StylesPanelSections.Position,
17
- ],
18
- };
19
- const SHARED_SEED_DATA_PROPS = {
20
- onDismiss: createActionProp({
21
- label: "On Dismiss",
22
- description: "Called when date picker dimissed",
23
- required: true,
24
- }),
25
- locale: createTextProp({
26
- label: "Locale",
27
- description: "A locale can be composed of both a base language, the country (territory) of use, and possibly codeset (which is usually assumed). For example, German is de",
28
- defaultValue: "en",
29
- required: true,
30
- }),
31
- visible: createBoolProp({
32
- label: "Visible",
33
- description: "Flag indicating if the component should be displayed",
34
- required: true,
35
- }),
36
- label: createTextProp({
37
- label: "Label",
38
- description: "The label used as the header in the component",
39
- defaultValue: "Select date",
40
- }),
41
- saveLabel: createTextProp({
42
- label: "Save Label",
43
- description: "Label used to confirm a date selection",
44
- defaultValue: "Save",
45
- }),
46
- saveLabelDisabled: createStaticBoolProp({
47
- label: "Disable Save Label",
48
- description: "Flag indicating if the save label should be disabled and unable to receive events",
49
- }),
50
- uppercase: createStaticBoolProp({
51
- label: "Uppercase",
52
- description: "Flag indicating if the text in the component should be uppercase",
53
- defaultValue: true,
54
- }),
55
- startYear: createStaticNumberProp({
56
- label: "Start Year",
57
- description: "The start year when the component is rendered",
58
- required: false,
59
- defaultValue: 1800,
60
- }),
61
- endYear: createStaticNumberProp({
62
- label: "End Year",
63
- description: "The end year when the component is rendered",
64
- required: false,
65
- defaultValue: 2200,
66
- }),
67
- };
68
- export const SEED_DATA = [
69
- {
70
- ...SHARED_SEED_DATA,
71
- name: "Date Picker Modal",
72
- description: "Date Picker modal for date selection",
73
- props: {
74
- ...SHARED_SEED_DATA_PROPS,
75
- onConfirm: createActionProp({
76
- label: "On Confirm",
77
- description: "Called when date selected and confirmed",
78
- required: true,
79
- }),
80
- onChange: createActionProp({
81
- label: "On Change",
82
- description: "Called when date selection changes",
83
- }),
84
- mode: createTextEnumProp({
85
- label: "Mode",
86
- description: "The selection mode of the date picker",
87
- required: true,
88
- options: ["single"],
89
- editable: false,
90
- defaultValue: "single",
91
- formType: FORM_TYPES.flatArray,
92
- }),
93
- fieldName: createFieldNameProp({
94
- defaultValue: "date",
95
- handlerPropName: "onConfirm",
96
- valuePropName: "date",
97
- }),
98
- },
99
- },
100
- {
101
- ...SHARED_SEED_DATA,
102
- name: "Multiple Date Picker Modal",
103
- description: "Date Picker modal for multiple date selection",
104
- props: {
105
- ...SHARED_SEED_DATA_PROPS,
106
- onConfirm: createActionProp({
107
- label: "On Confirm",
108
- description: "Called when dates selected and confirmed",
109
- required: true,
110
- }),
111
- onChange: createActionProp({
112
- label: "On Change",
113
- description: "Called when dates selection changes",
114
- }),
115
- mode: createTextEnumProp({
116
- label: "Mode",
117
- description: "The selection mode of the date picker",
118
- required: true,
119
- options: ["multiple"],
120
- editable: false,
121
- defaultValue: "multiple",
122
- formType: FORM_TYPES.flatArray,
123
- }),
124
- moreLabel: createTextProp({
125
- label: "More Label",
126
- description: "The label used display when multiple dates have been selected in the component",
127
- defaultValue: "More",
128
- }),
129
- startLabel: createTextProp({
130
- label: "Start Label",
131
- description: "The label used as the prefix to the starting date in the component",
132
- defaultValue: "Start",
133
- }),
134
- endLabel: createTextProp({
135
- label: "End Label",
136
- description: "The label used as the suffix to the ending date in the component",
137
- defaultValue: "End",
138
- }),
139
- fieldName: createFieldNameProp({
140
- defaultValue: "dates",
141
- handlerPropName: "onConfirm",
142
- valuePropName: "dates",
143
- }),
144
- },
145
- },
146
- ];