@draftbit/core 46.4.4-9d4d9a.2 → 46.4.4-a3a3f6.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 (47) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +25 -5
  2. package/lib/commonjs/components/DatePicker/DatePicker.js +2 -1
  3. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +2 -0
  4. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +2 -0
  5. package/lib/commonjs/components/Text.js +40 -10
  6. package/lib/commonjs/mappings/StarRating.js +6 -2
  7. package/lib/commonjs/mappings/TextArea.js +14 -3
  8. package/lib/commonjs/mappings/TextField.js +14 -4
  9. package/lib/commonjs/mappings/TextInput.js +14 -3
  10. package/lib/module/components/Checkbox/context.js +1 -1
  11. package/lib/module/components/DatePicker/DatePicker.js +2 -1
  12. package/lib/module/components/DatePicker/DatePickerComponent.js +2 -0
  13. package/lib/module/components/DatePicker/DatePickerComponent.web.js +2 -0
  14. package/lib/module/components/DeprecatedButton.js +4 -21
  15. package/lib/module/components/DeprecatedCardWrapper.js +2 -19
  16. package/lib/module/components/IconButton.js +5 -22
  17. package/lib/module/components/Image.js +3 -18
  18. package/lib/module/components/ProgressBar.js +7 -23
  19. package/lib/module/components/Surface.js +2 -16
  20. package/lib/module/mappings/TextArea.js +15 -4
  21. package/lib/module/mappings/TextField.js +14 -4
  22. package/lib/module/mappings/TextInput.js +15 -4
  23. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
  24. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -1
  25. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -1
  26. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
  27. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -1
  28. package/lib/typescript/src/mappings/TextArea.d.ts +21 -1
  29. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -1
  30. package/lib/typescript/src/mappings/TextField.d.ts +22 -2
  31. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -1
  32. package/lib/typescript/src/mappings/TextInput.d.ts +21 -1
  33. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -1
  34. package/package.json +3 -3
  35. package/src/components/DatePicker/DatePicker.js +2 -1
  36. package/src/components/DatePicker/DatePicker.tsx +2 -0
  37. package/src/components/DatePicker/DatePickerComponent.js +2 -2
  38. package/src/components/DatePicker/DatePickerComponent.tsx +2 -0
  39. package/src/components/DatePicker/DatePickerComponent.web.js +2 -2
  40. package/src/components/DatePicker/DatePickerComponent.web.tsx +2 -0
  41. package/src/components/DatePicker/DatePickerComponentType.ts +1 -0
  42. package/src/mappings/TextArea.js +15 -4
  43. package/src/mappings/TextArea.ts +15 -3
  44. package/src/mappings/TextField.js +14 -4
  45. package/src/mappings/TextField.ts +14 -4
  46. package/src/mappings/TextInput.js +15 -4
  47. package/src/mappings/TextInput.ts +15 -3
@@ -62,7 +62,7 @@ const SEED_DATA_PROPS = {
62
62
  propType: PROP_TYPES.BOOLEAN
63
63
  },
64
64
  disabled: {
65
- group: GROUPS.basic,
65
+ group: GROUPS.data,
66
66
  label: "Disabled",
67
67
  description: "Whether the input should be disabled. Will prevent input and show a greyed out state.",
68
68
  formType: FORM_TYPES.boolean,
@@ -72,12 +72,22 @@ const SEED_DATA_PROPS = {
72
72
  required: false
73
73
  },
74
74
  editable: {
75
- group: GROUPS.advanced,
76
- label: "Editable",
75
+ group: GROUPS.data,
76
+ label: "Editable?",
77
77
  description: "If false, the text is not editable",
78
78
  editable: true,
79
79
  required: false,
80
- defaultValue: true,
80
+ defaultValue: null,
81
+ formType: FORM_TYPES.boolean,
82
+ propType: PROP_TYPES.BOOLEAN
83
+ },
84
+ blurOnSubmit: {
85
+ group: GROUPS.advanced,
86
+ label: "Blur On Submit",
87
+ description: "If true, the text field will blur when submitted. ",
88
+ editable: true,
89
+ required: false,
90
+ defaultValue: null,
81
91
  formType: FORM_TYPES.boolean,
82
92
  propType: PROP_TYPES.BOOLEAN
83
93
  },
@@ -1,4 +1,4 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections, createDisabledProp } from "@draftbit/types";
2
2
  export const SEED_DATA_PROPS = {
3
3
  style: {
4
4
  group: GROUPS.basic,
@@ -140,12 +140,12 @@ export const SEED_DATA = [{
140
140
  propType: PROP_TYPES.BOOLEAN
141
141
  },
142
142
  editable: {
143
- group: GROUPS.advanced,
144
- label: "Editable",
143
+ group: GROUPS.data,
144
+ label: "Editable?",
145
145
  description: "If false, the text is not editable",
146
146
  editable: true,
147
147
  required: false,
148
- defaultValue: true,
148
+ defaultValue: null,
149
149
  formType: FORM_TYPES.boolean,
150
150
  propType: PROP_TYPES.BOOLEAN
151
151
  },
@@ -214,6 +214,16 @@ export const SEED_DATA = [{
214
214
  formType: FORM_TYPES.string,
215
215
  propType: PROP_TYPES.STRING
216
216
  },
217
+ blurOnSubmit: {
218
+ group: GROUPS.advanced,
219
+ label: "Blur On Submit",
220
+ description: "If true, the text field will blur when submitted. ",
221
+ editable: true,
222
+ required: false,
223
+ defaultValue: null,
224
+ formType: FORM_TYPES.boolean,
225
+ propType: PROP_TYPES.BOOLEAN
226
+ },
217
227
  returnKeyType: {
218
228
  group: GROUPS.advanced,
219
229
  label: "Return Key Type",
@@ -279,6 +289,7 @@ export const SEED_DATA = [{
279
289
  formType: FORM_TYPES.number,
280
290
  propType: PROP_TYPES.NUMBER
281
291
  },
292
+ disabled: createDisabledProp(),
282
293
  scrollEnabled: {
283
294
  group: GROUPS.basic,
284
295
  label: "Scroll Enabled",
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EAET,cAAc,EAKf,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAStD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,KAAK,EAAE,KAAK,CAAC;IAOb,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,QAAQ,GACV,cAAc,CAAC;;;;AA2fjB,wBAAqC"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EAET,cAAc,EAKf,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAStD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,KAAK,EAAE,KAAK,CAAC;IAOb,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,QAAQ,GACV,cAAc,CAAC;;;;AA6fjB,wBAAqC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,wBAAwB,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAE9E,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CA4BjE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"DatePickerComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,wBAAwB,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAE9E,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CA8BjE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerComponent.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerComponent.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,wBAAwB,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmD9E,wBAA8C"}
@@ -3,6 +3,7 @@ export interface DatePickerComponentProps {
3
3
  value: Date;
4
4
  onChange: (e: any, data?: any) => void;
5
5
  mode: "date" | "time" | "datetime";
6
+ style?: any;
6
7
  toggleVisibility: () => void;
7
8
  isVisible?: boolean;
8
9
  theme?: typeof theme;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerComponentType.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerComponentType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAE9C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACnC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB"}
1
+ {"version":3,"file":"DatePickerComponentType.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePickerComponentType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAE9C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACnC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB"}
@@ -58,6 +58,26 @@ export declare const SEED_DATA: {
58
58
  formType: string;
59
59
  propType: string;
60
60
  };
61
+ blurOnSubmit: {
62
+ group: string;
63
+ label: string;
64
+ description: string;
65
+ editable: boolean;
66
+ required: boolean;
67
+ defaultValue: null;
68
+ formType: string;
69
+ propType: string;
70
+ };
71
+ disabled: {
72
+ label: string;
73
+ description: string;
74
+ group: string;
75
+ editable: boolean;
76
+ required: boolean;
77
+ formType: string;
78
+ propType: string;
79
+ defaultValue: null;
80
+ };
61
81
  caretHidden: {
62
82
  group: string;
63
83
  label: string;
@@ -84,7 +104,7 @@ export declare const SEED_DATA: {
84
104
  description: string;
85
105
  editable: boolean;
86
106
  required: boolean;
87
- defaultValue: boolean;
107
+ defaultValue: null;
88
108
  formType: string;
89
109
  propType: string;
90
110
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextArea.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4QrB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextArea.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuRrB,CAAC"}
@@ -125,7 +125,17 @@ export declare const SEED_DATA: ({
125
125
  description: string;
126
126
  editable: boolean;
127
127
  required: boolean;
128
- defaultValue: boolean;
128
+ defaultValue: null;
129
+ formType: string;
130
+ propType: string;
131
+ };
132
+ blurOnSubmit: {
133
+ group: string;
134
+ label: string;
135
+ description: string;
136
+ editable: boolean;
137
+ required: boolean;
138
+ defaultValue: null;
129
139
  formType: string;
130
140
  propType: string;
131
141
  };
@@ -432,7 +442,17 @@ export declare const SEED_DATA: ({
432
442
  description: string;
433
443
  editable: boolean;
434
444
  required: boolean;
435
- defaultValue: boolean;
445
+ defaultValue: null;
446
+ formType: string;
447
+ propType: string;
448
+ };
449
+ blurOnSubmit: {
450
+ group: string;
451
+ label: string;
452
+ description: string;
453
+ editable: boolean;
454
+ required: boolean;
455
+ defaultValue: null;
436
456
  formType: string;
437
457
  propType: string;
438
458
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextField.ts"],"names":[],"mappings":"AAmTA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgGrB,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextField.ts"],"names":[],"mappings":"AA6TA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgGrB,CAAC"}
@@ -108,6 +108,16 @@ export declare const SEED_DATA: {
108
108
  formType: string;
109
109
  propType: string;
110
110
  };
111
+ disabled: {
112
+ label: string;
113
+ description: string;
114
+ group: string;
115
+ editable: boolean;
116
+ required: boolean;
117
+ formType: string;
118
+ propType: string;
119
+ defaultValue: null;
120
+ };
111
121
  scrollEnabled: {
112
122
  group: string;
113
123
  label: string;
@@ -280,7 +290,7 @@ export declare const SEED_DATA: {
280
290
  description: string;
281
291
  editable: boolean;
282
292
  required: boolean;
283
- defaultValue: boolean;
293
+ defaultValue: null;
284
294
  formType: string;
285
295
  propType: string;
286
296
  };
@@ -349,6 +359,16 @@ export declare const SEED_DATA: {
349
359
  formType: string;
350
360
  propType: string;
351
361
  };
362
+ blurOnSubmit: {
363
+ group: string;
364
+ label: string;
365
+ description: string;
366
+ editable: boolean;
367
+ required: boolean;
368
+ defaultValue: null;
369
+ formType: string;
370
+ propType: string;
371
+ };
352
372
  returnKeyType: {
353
373
  group: string;
354
374
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextInput.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D3B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyVrB,CAAC"}
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextInput.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D3B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoWrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.4.4-9d4d9a.2+9d4d9a3",
3
+ "version": "46.4.4-a3a3f6.2+a3a3f67",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.4.4-9d4d9a.2+9d4d9a3",
44
+ "@draftbit/types": "^46.4.4-a3a3f6.2+a3a3f67",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.3",
@@ -91,5 +91,5 @@
91
91
  ]
92
92
  ]
93
93
  },
94
- "gitHead": "9d4d9a3c413bc30fba56038519b63e7b60db4511"
94
+ "gitHead": "a3a3f67c897883306f235632cdb7e7fcf5219a1c"
95
95
  }
@@ -252,6 +252,7 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
252
252
  inputStyle,
253
253
  type === "solid" ? { marginHorizontal: 12 } : {},
254
254
  textStyles,
255
+ style,
255
256
  ];
256
257
  // const render = (props) => <NativeTextInput {...props} />;
257
258
  return (React.createElement(View, { style: [styles.container, style] },
@@ -331,7 +332,7 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
331
332
  paddingRight: insets.right,
332
333
  },
333
334
  ] },
334
- React.createElement(DateTimePicker, { value: getValidDate(), mode: mode, isVisible: pickerVisible, toggleVisibility: toggleVisibility, onChange: (_event, data) => {
335
+ React.createElement(DateTimePicker, { value: getValidDate(), mode: mode, style: inputStyles, isVisible: pickerVisible, toggleVisibility: toggleVisibility, onChange: (_event, data) => {
335
336
  toggleVisibility();
336
337
  setValue(data);
337
338
  onDateChange(data);
@@ -368,6 +368,7 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
368
368
  inputStyle,
369
369
  type === "solid" ? { marginHorizontal: 12 } : {},
370
370
  textStyles,
371
+ style,
371
372
  ];
372
373
 
373
374
  // const render = (props) => <NativeTextInput {...props} />;
@@ -512,6 +513,7 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
512
513
  <DateTimePicker
513
514
  value={getValidDate()}
514
515
  mode={mode}
516
+ style={inputStyles}
515
517
  isVisible={pickerVisible}
516
518
  toggleVisibility={toggleVisibility}
517
519
  onChange={(_event: any, data: any) => {
@@ -2,12 +2,12 @@ import React from "react";
2
2
  import { Platform } from "react-native";
3
3
  import DateTimePicker from "@react-native-community/datetimepicker";
4
4
  import DateTimePickerModal from "react-native-modal-datetime-picker";
5
- const DatePickerComponent = ({ value, onChange, mode, toggleVisibility, }) => {
5
+ const DatePickerComponent = ({ value, onChange, style, mode, toggleVisibility, }) => {
6
6
  return Platform.OS === "ios" || Platform.OS === "android" ? (React.createElement(DateTimePickerModal, { date: value, mode: mode, isVisible: true, display: Platform.OS === "ios" ? "spinner" : "default", onCancel: () => {
7
7
  console.log("Picker cancelled before selecting anything.");
8
8
  toggleVisibility();
9
9
  }, onConfirm: (data) => {
10
10
  onChange(null, data);
11
- } })) : (React.createElement(DateTimePicker, { value: value, mode: mode, onChange: onChange, display: "default" }));
11
+ } })) : (React.createElement(DateTimePicker, { style: style, value: value, mode: mode, onChange: onChange, display: "default" }));
12
12
  };
13
13
  export default DatePickerComponent;
@@ -7,6 +7,7 @@ import { DatePickerComponentProps as Props } from "./DatePickerComponentType";
7
7
  const DatePickerComponent: React.FC<React.PropsWithChildren<Props>> = ({
8
8
  value,
9
9
  onChange,
10
+ style,
10
11
  mode,
11
12
  toggleVisibility,
12
13
  }) => {
@@ -26,6 +27,7 @@ const DatePickerComponent: React.FC<React.PropsWithChildren<Props>> = ({
26
27
  />
27
28
  ) : (
28
29
  <DateTimePicker
30
+ style={style}
29
31
  value={value}
30
32
  mode={mode}
31
33
  onChange={onChange}
@@ -4,7 +4,7 @@ import { MuiPickersUtilsProvider, DatePicker, TimePicker, DateTimePicker, } from
4
4
  import { createMuiTheme, ThemeProvider } from "@material-ui/core/styles";
5
5
  import { withTheme } from "../../theming";
6
6
  import Theme from "../../styles/DefaultTheme";
7
- const DatePickerComponent = ({ value, onChange, mode, toggleVisibility, isVisible, theme, }) => {
7
+ const DatePickerComponent = ({ value, onChange, mode, style, toggleVisibility, isVisible, theme, }) => {
8
8
  const internalTheme = createMuiTheme({
9
9
  palette: {
10
10
  primary: {
@@ -25,6 +25,6 @@ const DatePickerComponent = ({ value, onChange, mode, toggleVisibility, isVisibl
25
25
  React.createElement(Picker, { value: value, open: isVisible, onChange: (d) => {
26
26
  toggleVisibility();
27
27
  onChange(null, d);
28
- }, onClose: () => toggleVisibility(), variant: "dialog", TextFieldComponent: () => null }))));
28
+ }, onClose: () => toggleVisibility(), variant: "dialog", style: style, TextFieldComponent: () => null }))));
29
29
  };
30
30
  export default withTheme(DatePickerComponent);
@@ -15,6 +15,7 @@ const DatePickerComponent: React.FC<Props & { theme: typeof Theme }> = ({
15
15
  value,
16
16
  onChange,
17
17
  mode,
18
+ style,
18
19
  toggleVisibility,
19
20
  isVisible,
20
21
  theme,
@@ -49,6 +50,7 @@ const DatePickerComponent: React.FC<Props & { theme: typeof Theme }> = ({
49
50
  }}
50
51
  onClose={() => toggleVisibility()}
51
52
  variant="dialog"
53
+ style={style}
52
54
  TextFieldComponent={() => null}
53
55
  />
54
56
  </ThemeProvider>
@@ -4,6 +4,7 @@ export interface DatePickerComponentProps {
4
4
  value: Date;
5
5
  onChange: (e: any, data?: any) => void;
6
6
  mode: "date" | "time" | "datetime";
7
+ style?: any;
7
8
  toggleVisibility: () => void;
8
9
  isVisible?: boolean;
9
10
  theme?: typeof theme;
@@ -1,4 +1,4 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createDisabledProp, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Text Area",
4
4
  tag: "TextInput",
@@ -59,6 +59,17 @@ export const SEED_DATA = {
59
59
  formType: FORM_TYPES.boolean,
60
60
  propType: PROP_TYPES.BOOLEAN,
61
61
  },
62
+ blurOnSubmit: {
63
+ group: GROUPS.advanced,
64
+ label: "Blur On Submit",
65
+ description: "If true, the text field will blur when submitted. ",
66
+ editable: true,
67
+ required: false,
68
+ defaultValue: null,
69
+ formType: FORM_TYPES.boolean,
70
+ propType: PROP_TYPES.BOOLEAN,
71
+ },
72
+ disabled: createDisabledProp(),
62
73
  caretHidden: {
63
74
  group: GROUPS.advanced,
64
75
  label: "Hide Caret",
@@ -80,12 +91,12 @@ export const SEED_DATA = {
80
91
  propType: PROP_TYPES.BOOLEAN,
81
92
  },
82
93
  editable: {
83
- group: GROUPS.advanced,
84
- label: "Editable",
94
+ group: GROUPS.data,
95
+ label: "Editable?",
85
96
  description: "If false, the text is not editable",
86
97
  editable: true,
87
98
  required: false,
88
- defaultValue: true,
99
+ defaultValue: null,
89
100
  formType: FORM_TYPES.boolean,
90
101
  propType: PROP_TYPES.BOOLEAN,
91
102
  },
@@ -5,6 +5,7 @@ import {
5
5
  PROP_TYPES,
6
6
  FIELD_NAME,
7
7
  Triggers,
8
+ createDisabledProp,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  export const SEED_DATA = {
@@ -69,6 +70,17 @@ export const SEED_DATA = {
69
70
  formType: FORM_TYPES.boolean,
70
71
  propType: PROP_TYPES.BOOLEAN,
71
72
  },
73
+ blurOnSubmit: {
74
+ group: GROUPS.advanced,
75
+ label: "Blur On Submit",
76
+ description: "If true, the text field will blur when submitted. ",
77
+ editable: true,
78
+ required: false,
79
+ defaultValue: null,
80
+ formType: FORM_TYPES.boolean,
81
+ propType: PROP_TYPES.BOOLEAN,
82
+ },
83
+ disabled: createDisabledProp(),
72
84
  caretHidden: {
73
85
  group: GROUPS.advanced,
74
86
  label: "Hide Caret",
@@ -91,12 +103,12 @@ export const SEED_DATA = {
91
103
  propType: PROP_TYPES.BOOLEAN,
92
104
  },
93
105
  editable: {
94
- group: GROUPS.advanced,
95
- label: "Editable",
106
+ group: GROUPS.data,
107
+ label: "Editable?",
96
108
  description: "If false, the text is not editable",
97
109
  editable: true,
98
110
  required: false,
99
- defaultValue: true,
111
+ defaultValue: null,
100
112
  formType: FORM_TYPES.boolean,
101
113
  propType: PROP_TYPES.BOOLEAN,
102
114
  },
@@ -62,7 +62,7 @@ const SEED_DATA_PROPS = {
62
62
  propType: PROP_TYPES.BOOLEAN,
63
63
  },
64
64
  disabled: {
65
- group: GROUPS.basic,
65
+ group: GROUPS.data,
66
66
  label: "Disabled",
67
67
  description: "Whether the input should be disabled. Will prevent input and show a greyed out state.",
68
68
  formType: FORM_TYPES.boolean,
@@ -72,12 +72,22 @@ const SEED_DATA_PROPS = {
72
72
  required: false,
73
73
  },
74
74
  editable: {
75
- group: GROUPS.advanced,
76
- label: "Editable",
75
+ group: GROUPS.data,
76
+ label: "Editable?",
77
77
  description: "If false, the text is not editable",
78
78
  editable: true,
79
79
  required: false,
80
- defaultValue: true,
80
+ defaultValue: null,
81
+ formType: FORM_TYPES.boolean,
82
+ propType: PROP_TYPES.BOOLEAN,
83
+ },
84
+ blurOnSubmit: {
85
+ group: GROUPS.advanced,
86
+ label: "Blur On Submit",
87
+ description: "If true, the text field will blur when submitted. ",
88
+ editable: true,
89
+ required: false,
90
+ defaultValue: null,
81
91
  formType: FORM_TYPES.boolean,
82
92
  propType: PROP_TYPES.BOOLEAN,
83
93
  },
@@ -77,7 +77,7 @@ const SEED_DATA_PROPS = {
77
77
  propType: PROP_TYPES.BOOLEAN,
78
78
  },
79
79
  disabled: {
80
- group: GROUPS.basic,
80
+ group: GROUPS.data,
81
81
  label: "Disabled",
82
82
  description:
83
83
  "Whether the input should be disabled. Will prevent input and show a greyed out state.",
@@ -88,12 +88,22 @@ const SEED_DATA_PROPS = {
88
88
  required: false,
89
89
  },
90
90
  editable: {
91
- group: GROUPS.advanced,
92
- label: "Editable",
91
+ group: GROUPS.data,
92
+ label: "Editable?",
93
93
  description: "If false, the text is not editable",
94
94
  editable: true,
95
95
  required: false,
96
- defaultValue: true,
96
+ defaultValue: null,
97
+ formType: FORM_TYPES.boolean,
98
+ propType: PROP_TYPES.BOOLEAN,
99
+ },
100
+ blurOnSubmit: {
101
+ group: GROUPS.advanced,
102
+ label: "Blur On Submit",
103
+ description: "If true, the text field will blur when submitted. ",
104
+ editable: true,
105
+ required: false,
106
+ defaultValue: null,
97
107
  formType: FORM_TYPES.boolean,
98
108
  propType: PROP_TYPES.BOOLEAN,
99
109
  },
@@ -1,4 +1,4 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections, createDisabledProp, } from "@draftbit/types";
2
2
  export const SEED_DATA_PROPS = {
3
3
  style: {
4
4
  group: GROUPS.basic,
@@ -150,12 +150,12 @@ export const SEED_DATA = [
150
150
  propType: PROP_TYPES.BOOLEAN,
151
151
  },
152
152
  editable: {
153
- group: GROUPS.advanced,
154
- label: "Editable",
153
+ group: GROUPS.data,
154
+ label: "Editable?",
155
155
  description: "If false, the text is not editable",
156
156
  editable: true,
157
157
  required: false,
158
- defaultValue: true,
158
+ defaultValue: null,
159
159
  formType: FORM_TYPES.boolean,
160
160
  propType: PROP_TYPES.BOOLEAN,
161
161
  },
@@ -238,6 +238,16 @@ export const SEED_DATA = [
238
238
  formType: FORM_TYPES.string,
239
239
  propType: PROP_TYPES.STRING,
240
240
  },
241
+ blurOnSubmit: {
242
+ group: GROUPS.advanced,
243
+ label: "Blur On Submit",
244
+ description: "If true, the text field will blur when submitted. ",
245
+ editable: true,
246
+ required: false,
247
+ defaultValue: null,
248
+ formType: FORM_TYPES.boolean,
249
+ propType: PROP_TYPES.BOOLEAN,
250
+ },
241
251
  returnKeyType: {
242
252
  group: GROUPS.advanced,
243
253
  label: "Return Key Type",
@@ -317,6 +327,7 @@ export const SEED_DATA = [
317
327
  formType: FORM_TYPES.number,
318
328
  propType: PROP_TYPES.NUMBER,
319
329
  },
330
+ disabled: createDisabledProp(),
320
331
  scrollEnabled: {
321
332
  group: GROUPS.basic,
322
333
  label: "Scroll Enabled",
@@ -6,6 +6,7 @@ import {
6
6
  FIELD_NAME,
7
7
  Triggers,
8
8
  StylesPanelSections,
9
+ createDisabledProp,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  export const SEED_DATA_PROPS = {
@@ -168,12 +169,12 @@ export const SEED_DATA = [
168
169
  propType: PROP_TYPES.BOOLEAN,
169
170
  },
170
171
  editable: {
171
- group: GROUPS.advanced,
172
- label: "Editable",
172
+ group: GROUPS.data,
173
+ label: "Editable?",
173
174
  description: "If false, the text is not editable",
174
175
  editable: true,
175
176
  required: false,
176
- defaultValue: true,
177
+ defaultValue: null,
177
178
  formType: FORM_TYPES.boolean,
178
179
  propType: PROP_TYPES.BOOLEAN,
179
180
  },
@@ -258,6 +259,16 @@ export const SEED_DATA = [
258
259
  formType: FORM_TYPES.string,
259
260
  propType: PROP_TYPES.STRING,
260
261
  },
262
+ blurOnSubmit: {
263
+ group: GROUPS.advanced,
264
+ label: "Blur On Submit",
265
+ description: "If true, the text field will blur when submitted. ",
266
+ editable: true,
267
+ required: false,
268
+ defaultValue: null,
269
+ formType: FORM_TYPES.boolean,
270
+ propType: PROP_TYPES.BOOLEAN,
271
+ },
261
272
  returnKeyType: {
262
273
  group: GROUPS.advanced,
263
274
  label: "Return Key Type",
@@ -341,6 +352,7 @@ export const SEED_DATA = [
341
352
  formType: FORM_TYPES.number,
342
353
  propType: PROP_TYPES.NUMBER,
343
354
  },
355
+ disabled: createDisabledProp(),
344
356
  scrollEnabled: {
345
357
  group: GROUPS.basic,
346
358
  label: "Scroll Enabled",