@draftbit/core 47.0.1-df014a.2 → 47.0.1-e04fa3.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 (95) hide show
  1. package/lib/commonjs/index.js +25 -82
  2. package/lib/commonjs/mappings/NativeBase/AlertDialog.js +102 -0
  3. package/lib/commonjs/mappings/NativeBase/Button.js +84 -0
  4. package/lib/commonjs/mappings/NativeBase/DataDisplay.js +61 -0
  5. package/lib/commonjs/mappings/NativeBase/Feedback.js +74 -0
  6. package/lib/commonjs/mappings/NativeBase/Layout.js +114 -0
  7. package/lib/commonjs/mappings/NativeBase/Media.js +49 -0
  8. package/lib/commonjs/mappings/NativeBase/Menu.js +111 -0
  9. package/lib/commonjs/mappings/NativeBase/Modal.js +93 -0
  10. package/lib/commonjs/mappings/NativeBase/Other.js +94 -0
  11. package/lib/commonjs/mappings/NativeBase/Popover.js +99 -0
  12. package/lib/commonjs/mappings/NativeBase/Select.js +65 -0
  13. package/lib/commonjs/mappings/NativeBase/Slider.js +81 -0
  14. package/lib/module/components/AvatarEdit.js +4 -15
  15. package/lib/module/components/CardBlock.js +4 -14
  16. package/lib/module/components/CircleImage.js +1 -16
  17. package/lib/module/components/DeprecatedCardWrapper.js +1 -18
  18. package/lib/module/components/FAB.js +4 -22
  19. package/lib/module/components/Picker/PickerComponent.ios.js +11 -36
  20. package/lib/module/components/Picker/PickerComponent.web.js +3 -21
  21. package/lib/module/components/Switch.js +10 -21
  22. package/lib/module/components/TextField.js +28 -78
  23. package/lib/module/components/Touchable.js +1 -18
  24. package/lib/module/index.js +121 -31
  25. package/lib/module/mappings/NativeBase/AlertDialog.js +95 -0
  26. package/lib/module/mappings/NativeBase/Button.js +86 -0
  27. package/lib/module/mappings/NativeBase/DataDisplay.js +54 -0
  28. package/lib/module/mappings/NativeBase/Feedback.js +67 -0
  29. package/lib/module/mappings/NativeBase/Layout.js +107 -0
  30. package/lib/module/mappings/NativeBase/Media.js +42 -0
  31. package/lib/module/mappings/NativeBase/Menu.js +104 -0
  32. package/lib/module/mappings/NativeBase/Modal.js +86 -0
  33. package/lib/module/mappings/NativeBase/Other.js +87 -0
  34. package/lib/module/mappings/NativeBase/Popover.js +92 -0
  35. package/lib/module/mappings/NativeBase/Select.js +58 -0
  36. package/lib/module/mappings/NativeBase/Slider.js +74 -0
  37. package/lib/typescript/src/index.d.ts +102 -29
  38. package/lib/typescript/src/index.d.ts.map +1 -1
  39. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts +146 -0
  40. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts.map +1 -0
  41. package/lib/typescript/src/mappings/NativeBase/Button.d.ts +1 -0
  42. package/lib/typescript/src/mappings/NativeBase/Button.d.ts.map +1 -0
  43. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts +96 -0
  44. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts.map +1 -0
  45. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts +2 -0
  46. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts.map +1 -0
  47. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +146 -0
  48. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  49. package/lib/typescript/src/mappings/NativeBase/Media.d.ts +48 -0
  50. package/lib/typescript/src/mappings/NativeBase/Media.d.ts.map +1 -0
  51. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts +227 -0
  52. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts.map +1 -0
  53. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts +133 -0
  54. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts.map +1 -0
  55. package/lib/typescript/src/mappings/NativeBase/Other.d.ts +179 -0
  56. package/lib/typescript/src/mappings/NativeBase/Other.d.ts.map +1 -0
  57. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts +136 -0
  58. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts.map +1 -0
  59. package/lib/typescript/src/mappings/NativeBase/Select.d.ts +156 -0
  60. package/lib/typescript/src/mappings/NativeBase/Select.d.ts.map +1 -0
  61. package/lib/typescript/src/mappings/NativeBase/Slider.d.ts +200 -0
  62. package/lib/typescript/src/mappings/NativeBase/Slider.d.ts.map +1 -0
  63. package/package.json +3 -3
  64. package/src/index.js +112 -31
  65. package/src/index.tsx +123 -43
  66. package/src/mappings/NativeBase/AlertDialog.js +112 -0
  67. package/src/mappings/NativeBase/AlertDialog.ts +128 -0
  68. package/src/mappings/NativeBase/Button.js +84 -0
  69. package/src/mappings/NativeBase/Button.ts +83 -0
  70. package/src/mappings/NativeBase/DataDisplay.js +67 -0
  71. package/src/mappings/NativeBase/DataDisplay.ts +79 -0
  72. package/src/mappings/NativeBase/Feedback.js +89 -0
  73. package/src/mappings/NativeBase/Feedback.ts +100 -0
  74. package/src/mappings/NativeBase/Layout.js +140 -0
  75. package/src/mappings/NativeBase/Layout.ts +152 -0
  76. package/src/mappings/NativeBase/Media.js +56 -0
  77. package/src/mappings/NativeBase/Media.ts +65 -0
  78. package/src/mappings/NativeBase/Menu.js +134 -0
  79. package/src/mappings/NativeBase/Menu.ts +150 -0
  80. package/src/mappings/NativeBase/Modal.js +103 -0
  81. package/src/mappings/NativeBase/Modal.ts +118 -0
  82. package/src/mappings/NativeBase/Other.js +123 -0
  83. package/src/mappings/NativeBase/Other.ts +139 -0
  84. package/src/mappings/NativeBase/Popover.js +123 -0
  85. package/src/mappings/NativeBase/Popover.ts +136 -0
  86. package/src/mappings/NativeBase/Select.js +71 -0
  87. package/src/mappings/NativeBase/Select.ts +85 -0
  88. package/src/mappings/NativeBase/Slider.js +89 -0
  89. package/src/mappings/NativeBase/Slider.ts +105 -0
  90. package/lib/commonjs/mappings/DatePickerModal.js +0 -74
  91. package/lib/module/mappings/DatePickerModal.js +0 -65
  92. package/lib/typescript/src/mappings/DatePickerModal.d.ts +0 -153
  93. package/lib/typescript/src/mappings/DatePickerModal.d.ts.map +0 -1
  94. package/src/mappings/DatePickerModal.js +0 -73
  95. package/src/mappings/DatePickerModal.ts +0 -91
@@ -0,0 +1,71 @@
1
+ import { COMPONENT_TYPES, createActionProp, StylesPanelSections, Triggers, createBoolProp, createColorProp, createDisabledProp, createTextProp, createIconProp, } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.NBForms,
4
+ packageName: "native-base",
5
+ doc_link: "https://docs.nativebase.io/select",
6
+ code_link: "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/primitives/Select",
7
+ stylesPanelSections: [
8
+ StylesPanelSections.LayoutFlexItems,
9
+ StylesPanelSections.LayoutSelectedItem,
10
+ StylesPanelSections.LayoutContent,
11
+ StylesPanelSections.Background,
12
+ StylesPanelSections.Size,
13
+ StylesPanelSections.MarginsAndPaddings,
14
+ StylesPanelSections.Position,
15
+ StylesPanelSections.Borders,
16
+ StylesPanelSections.Effects,
17
+ ],
18
+ layout: {},
19
+ allowChildren: true,
20
+ };
21
+ export const SEED_DATA = [
22
+ {
23
+ name: "Select",
24
+ tag: "Select",
25
+ description: "Select creates a dropdown list of items with the selected item in closed view.",
26
+ ...SHARED_SEED_DATA,
27
+ triggers: [Triggers.OnOpen, Triggers.OnClose],
28
+ props: {
29
+ onOpen: createActionProp(),
30
+ onClose: createActionProp(),
31
+ placeholder: createTextProp({
32
+ label: "Placeholder",
33
+ defaultValue: "Select an option",
34
+ }),
35
+ color: createColorProp(),
36
+ placeholderTextColor: createColorProp(),
37
+ isDisabled: createDisabledProp(),
38
+ isHovered: createBoolProp({
39
+ label: "Hovered?",
40
+ description: "Whether the select is hovered",
41
+ }),
42
+ isFocused: createBoolProp({
43
+ label: "Focused?",
44
+ description: "Whether the select is hovered",
45
+ }),
46
+ isFocusVisible: createBoolProp({
47
+ label: "Focus Visible?",
48
+ description: "WIf true, the focus ring of select will be visible.",
49
+ }),
50
+ dropdownIcon: createIconProp(),
51
+ dropdownOpenIcon: createIconProp(),
52
+ dropdownCloseIcon: createIconProp(),
53
+ },
54
+ },
55
+ {
56
+ name: "Select Item",
57
+ tag: "Select.Item",
58
+ description: "An individual item in the menu.",
59
+ ...SHARED_SEED_DATA,
60
+ props: {
61
+ label: createTextProp({
62
+ label: "Label",
63
+ description: "The label of the item",
64
+ }),
65
+ value: createTextProp({
66
+ label: "Value",
67
+ description: "The value of the item",
68
+ }),
69
+ },
70
+ },
71
+ ];
@@ -0,0 +1,85 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createActionProp,
4
+ StylesPanelSections,
5
+ Triggers,
6
+ createBoolProp,
7
+ createColorProp,
8
+ createDisabledProp,
9
+ createTextProp,
10
+ createIconProp,
11
+ } from "@draftbit/types";
12
+
13
+ const SHARED_SEED_DATA = {
14
+ category: COMPONENT_TYPES.NBForms,
15
+ packageName: "native-base",
16
+ doc_link: "https://docs.nativebase.io/select",
17
+ code_link:
18
+ "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/primitives/Select",
19
+ stylesPanelSections: [
20
+ StylesPanelSections.LayoutFlexItems,
21
+ StylesPanelSections.LayoutSelectedItem,
22
+ StylesPanelSections.LayoutContent,
23
+ StylesPanelSections.Background,
24
+ StylesPanelSections.Size,
25
+ StylesPanelSections.MarginsAndPaddings,
26
+ StylesPanelSections.Position,
27
+ StylesPanelSections.Borders,
28
+ StylesPanelSections.Effects,
29
+ ],
30
+ layout: {},
31
+ allowChildren: true,
32
+ };
33
+
34
+ export const SEED_DATA = [
35
+ {
36
+ name: "Select",
37
+ tag: "Select",
38
+ description:
39
+ "Select creates a dropdown list of items with the selected item in closed view.",
40
+ ...SHARED_SEED_DATA,
41
+ triggers: [Triggers.OnOpen, Triggers.OnClose],
42
+ props: {
43
+ onOpen: createActionProp(),
44
+ onClose: createActionProp(),
45
+ placeholder: createTextProp({
46
+ label: "Placeholder",
47
+ defaultValue: "Select an option",
48
+ }),
49
+ color: createColorProp(),
50
+ placeholderTextColor: createColorProp(),
51
+ isDisabled: createDisabledProp(),
52
+ isHovered: createBoolProp({
53
+ label: "Hovered?",
54
+ description: "Whether the select is hovered",
55
+ }),
56
+ isFocused: createBoolProp({
57
+ label: "Focused?",
58
+ description: "Whether the select is hovered",
59
+ }),
60
+ isFocusVisible: createBoolProp({
61
+ label: "Focus Visible?",
62
+ description: "WIf true, the focus ring of select will be visible.",
63
+ }),
64
+ dropdownIcon: createIconProp(),
65
+ dropdownOpenIcon: createIconProp(),
66
+ dropdownCloseIcon: createIconProp(),
67
+ },
68
+ },
69
+ {
70
+ name: "Select Item",
71
+ tag: "Select.Item",
72
+ description: "An individual item in the menu.",
73
+ ...SHARED_SEED_DATA,
74
+ props: {
75
+ label: createTextProp({
76
+ label: "Label",
77
+ description: "The label of the item",
78
+ }),
79
+ value: createTextProp({
80
+ label: "Value",
81
+ description: "The value of the item",
82
+ }),
83
+ },
84
+ },
85
+ ];
@@ -0,0 +1,89 @@
1
+ import { COMPONENT_TYPES, createActionProp, createStaticBoolProp, createTextEnumProp, StylesPanelSections, Triggers, createNumberProp, createStaticNumberProp, createBoolProp, createDisabledProp, createAccessibilityLabelProp, } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.NBForms,
4
+ packageName: "native-base",
5
+ stylesPanelSections: [
6
+ StylesPanelSections.LayoutFlexItems,
7
+ StylesPanelSections.LayoutSelectedItem,
8
+ StylesPanelSections.LayoutContent,
9
+ StylesPanelSections.Background,
10
+ StylesPanelSections.Size,
11
+ StylesPanelSections.MarginsAndPaddings,
12
+ StylesPanelSections.Position,
13
+ StylesPanelSections.Borders,
14
+ StylesPanelSections.Effects,
15
+ ],
16
+ layout: {},
17
+ allowChildren: true,
18
+ };
19
+ export const SEED_DATA = [
20
+ {
21
+ name: "Slider",
22
+ tag: "Slider",
23
+ description: "The Slider allows users to select options from a given range of values.",
24
+ ...SHARED_SEED_DATA,
25
+ triggers: [Triggers.OnChange, Triggers.OnChangeEnd],
26
+ props: {
27
+ onChange: createActionProp(),
28
+ onChangeEnd: createActionProp(),
29
+ defaultValue: createNumberProp(),
30
+ thumbSize: createStaticNumberProp({
31
+ label: "Thumb Size",
32
+ description: "The size of the slider thumb",
33
+ }),
34
+ sliderTrackHeight: createStaticNumberProp({
35
+ label: "Slider Track Height",
36
+ description: "The height of the slider track",
37
+ }),
38
+ minValue: createStaticNumberProp({
39
+ label: "Min Value",
40
+ }),
41
+ maxValue: createStaticNumberProp({
42
+ label: "Max Value",
43
+ }),
44
+ step: createStaticNumberProp({
45
+ label: "Step",
46
+ }),
47
+ isReadOnly: createBoolProp({
48
+ label: "Read Only",
49
+ description: "Whether the slider is read only",
50
+ defaultValue: false,
51
+ }),
52
+ isReversed: createStaticBoolProp({
53
+ label: "Reversed",
54
+ description: "If true, the value will be incremented or decremented in reverse.",
55
+ defaultValue: false,
56
+ }),
57
+ orientation: createTextEnumProp({
58
+ label: "Orientation",
59
+ description: "The orientation of the Slider.",
60
+ options: ["horizontal", "vertical"],
61
+ defaultValue: "horizontal",
62
+ }),
63
+ isDisabled: createDisabledProp(),
64
+ accessibilityLabel: createAccessibilityLabelProp(),
65
+ },
66
+ },
67
+ {
68
+ name: "Slider Track",
69
+ tag: "Menu.Item",
70
+ description: "An individual item in the menu.",
71
+ ...SHARED_SEED_DATA,
72
+ props: {},
73
+ },
74
+ {
75
+ name: "Slider Filled Track",
76
+ tag: "Menu.Group",
77
+ description: "A wrapper to group related menu items.",
78
+ ...SHARED_SEED_DATA,
79
+ props: {},
80
+ },
81
+ {
82
+ name: "Slider Thumb",
83
+ tag: "Menu.OptionGroup",
84
+ description: "A wrapper for checkable menu items (radio and checkbox).",
85
+ ...SHARED_SEED_DATA,
86
+ triggers: [Triggers.OnChange],
87
+ props: {},
88
+ },
89
+ ];
@@ -0,0 +1,105 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createActionProp,
4
+ createStaticBoolProp,
5
+ createTextEnumProp,
6
+ StylesPanelSections,
7
+ Triggers,
8
+ createNumberProp,
9
+ createStaticNumberProp,
10
+ createBoolProp,
11
+ createDisabledProp,
12
+ createAccessibilityLabelProp,
13
+ } from "@draftbit/types";
14
+
15
+ const SHARED_SEED_DATA = {
16
+ category: COMPONENT_TYPES.NBForms,
17
+ packageName: "native-base",
18
+ stylesPanelSections: [
19
+ StylesPanelSections.LayoutFlexItems,
20
+ StylesPanelSections.LayoutSelectedItem,
21
+ StylesPanelSections.LayoutContent,
22
+ StylesPanelSections.Background,
23
+ StylesPanelSections.Size,
24
+ StylesPanelSections.MarginsAndPaddings,
25
+ StylesPanelSections.Position,
26
+ StylesPanelSections.Borders,
27
+ StylesPanelSections.Effects,
28
+ ],
29
+ layout: {},
30
+ allowChildren: true,
31
+ };
32
+
33
+ export const SEED_DATA = [
34
+ {
35
+ name: "Slider",
36
+ tag: "Slider",
37
+ description:
38
+ "The Slider allows users to select options from a given range of values.",
39
+ ...SHARED_SEED_DATA,
40
+ triggers: [Triggers.OnChange, Triggers.OnChangeEnd],
41
+ props: {
42
+ onChange: createActionProp(),
43
+ onChangeEnd: createActionProp(),
44
+ defaultValue: createNumberProp(),
45
+ thumbSize: createStaticNumberProp({
46
+ label: "Thumb Size",
47
+ description: "The size of the slider thumb",
48
+ }),
49
+ sliderTrackHeight: createStaticNumberProp({
50
+ label: "Slider Track Height",
51
+ description: "The height of the slider track",
52
+ }),
53
+ minValue: createStaticNumberProp({
54
+ label: "Min Value",
55
+ }),
56
+ maxValue: createStaticNumberProp({
57
+ label: "Max Value",
58
+ }),
59
+ step: createStaticNumberProp({
60
+ label: "Step",
61
+ }),
62
+ isReadOnly: createBoolProp({
63
+ label: "Read Only",
64
+ description: "Whether the slider is read only",
65
+ defaultValue: false,
66
+ }),
67
+ isReversed: createStaticBoolProp({
68
+ label: "Reversed",
69
+ description:
70
+ "If true, the value will be incremented or decremented in reverse.",
71
+ defaultValue: false,
72
+ }),
73
+ orientation: createTextEnumProp({
74
+ label: "Orientation",
75
+ description: "The orientation of the Slider.",
76
+ options: ["horizontal", "vertical"],
77
+ defaultValue: "horizontal",
78
+ }),
79
+ isDisabled: createDisabledProp(),
80
+ accessibilityLabel: createAccessibilityLabelProp(),
81
+ },
82
+ },
83
+ {
84
+ name: "Slider Track",
85
+ tag: "Menu.Item",
86
+ description: "An individual item in the menu.",
87
+ ...SHARED_SEED_DATA,
88
+ props: {},
89
+ },
90
+ {
91
+ name: "Slider Filled Track",
92
+ tag: "Menu.Group",
93
+ description: "A wrapper to group related menu items.",
94
+ ...SHARED_SEED_DATA,
95
+ props: {},
96
+ },
97
+ {
98
+ name: "Slider Thumb",
99
+ tag: "Menu.OptionGroup",
100
+ description: "A wrapper for checkable menu items (radio and checkbox).",
101
+ ...SHARED_SEED_DATA,
102
+ triggers: [Triggers.OnChange],
103
+ props: {},
104
+ },
105
+ ];
@@ -1,74 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SHARED_SEED_DATA_PROPS = exports.SHARED_SEED_DATA = exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SHARED_SEED_DATA = {
9
- triggers: [_types.Triggers.OnDismiss, _types.Triggers.OnConfirm, _types.Triggers.OnChange],
10
- category: _types.COMPONENT_TYPES.input,
11
- StylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
12
- layout: null
13
- };
14
- exports.SHARED_SEED_DATA = SHARED_SEED_DATA;
15
- const SHARED_SEED_DATA_PROPS = {
16
- locale: {},
17
- visible: (0, _types.createBoolProp)({
18
- label: "Visible",
19
- description: "If true, show the modal. If false, hide the modal.",
20
- required: true
21
- }),
22
- label: (0, _types.createTextProp)({
23
- label: "Label",
24
- description: "Label used as the header in the component, defaults to `Select Date`"
25
- }),
26
- saveLabel: (0, _types.createTextProp)({
27
- label: "Save Label",
28
- description: "Label used to confirm a date selection. Defaults to `Save`."
29
- }),
30
- saveLabelDisabled: (0, _types.createStaticBoolProp)({
31
- label: "Disable Save Label",
32
- description: "Flag indicating if the save label should be disabled and unable to receive events"
33
- }),
34
- uppercase: (0, _types.createStaticBoolProp)({
35
- label: "Uppercase",
36
- description: "Flag indicating if the text in the component should be uppercase. Defaults to true."
37
- }),
38
- startYear: (0, _types.createStaticNumberProp)({
39
- label: "Start Year",
40
- description: "The start year when the component is rendered. Defaults to 1800.",
41
- required: false
42
- }),
43
- endYear: (0, _types.createStaticNumberProp)({
44
- label: "End Year",
45
- description: "The end year when the component is rendered. Defaults to 2200.",
46
- required: false
47
- })
48
- };
49
- exports.SHARED_SEED_DATA_PROPS = SHARED_SEED_DATA_PROPS;
50
- const SEED_DATA = [{
51
- name: "Single Date Picker Modal",
52
- tag: "SingleDatePickerModal",
53
- description: "A modal allowing date selection.",
54
- ...SHARED_SEED_DATA,
55
- props: {
56
- mode: (0, _types.createTextEnumProp)({
57
- label: "Mode",
58
- description: "The selection mode of the date picker",
59
- required: true,
60
- options: ["single", "multiple", "range"],
61
- editable: false,
62
- defaultValue: "single",
63
- formType: _types.FORM_TYPES.flatArray
64
- }),
65
- fieldName: {
66
- ..._types.FIELD_NAME,
67
- handlerPropName: "onConfirm",
68
- valuePropName: "date",
69
- defaultValue: "date"
70
- },
71
- ...SHARED_SEED_DATA_PROPS
72
- }
73
- }];
74
- exports.SEED_DATA = SEED_DATA;
@@ -1,65 +0,0 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, FIELD_NAME, Triggers, StylesPanelSections, createBoolProp, createTextProp, createTextEnumProp, createStaticBoolProp, createStaticNumberProp } from "@draftbit/types";
2
- export const SHARED_SEED_DATA = {
3
- triggers: [Triggers.OnDismiss, Triggers.OnConfirm, Triggers.OnChange],
4
- category: COMPONENT_TYPES.input,
5
- StylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position],
6
- layout: null
7
- };
8
- export const SHARED_SEED_DATA_PROPS = {
9
- locale: {},
10
- visible: createBoolProp({
11
- label: "Visible",
12
- description: "If true, show the modal. If false, hide the modal.",
13
- required: true
14
- }),
15
- label: createTextProp({
16
- label: "Label",
17
- description: "Label used as the header in the component, defaults to `Select Date`"
18
- }),
19
- saveLabel: createTextProp({
20
- label: "Save Label",
21
- description: "Label used to confirm a date selection. Defaults to `Save`."
22
- }),
23
- saveLabelDisabled: createStaticBoolProp({
24
- label: "Disable Save Label",
25
- description: "Flag indicating if the save label should be disabled and unable to receive events"
26
- }),
27
- uppercase: createStaticBoolProp({
28
- label: "Uppercase",
29
- description: "Flag indicating if the text in the component should be uppercase. Defaults to true."
30
- }),
31
- startYear: createStaticNumberProp({
32
- label: "Start Year",
33
- description: "The start year when the component is rendered. Defaults to 1800.",
34
- required: false
35
- }),
36
- endYear: createStaticNumberProp({
37
- label: "End Year",
38
- description: "The end year when the component is rendered. Defaults to 2200.",
39
- required: false
40
- })
41
- };
42
- export const SEED_DATA = [{
43
- name: "Single Date Picker Modal",
44
- tag: "SingleDatePickerModal",
45
- description: "A modal allowing date selection.",
46
- ...SHARED_SEED_DATA,
47
- props: {
48
- mode: createTextEnumProp({
49
- label: "Mode",
50
- description: "The selection mode of the date picker",
51
- required: true,
52
- options: ["single", "multiple", "range"],
53
- editable: false,
54
- defaultValue: "single",
55
- formType: FORM_TYPES.flatArray
56
- }),
57
- fieldName: {
58
- ...FIELD_NAME,
59
- handlerPropName: "onConfirm",
60
- valuePropName: "date",
61
- defaultValue: "date"
62
- },
63
- ...SHARED_SEED_DATA_PROPS
64
- }
65
- }];
@@ -1,153 +0,0 @@
1
- export declare const SHARED_SEED_DATA: {
2
- triggers: string[];
3
- category: string;
4
- StylesPanelSections: string[];
5
- layout: null;
6
- };
7
- export declare const SHARED_SEED_DATA_PROPS: {
8
- locale: {};
9
- visible: {
10
- label: string;
11
- description: string;
12
- formType: string;
13
- propType: string;
14
- defaultValue: boolean;
15
- editable: boolean;
16
- required: boolean;
17
- group: string;
18
- };
19
- label: any;
20
- saveLabel: any;
21
- saveLabelDisabled: {
22
- label: string;
23
- description: string;
24
- formType: string;
25
- propType: string;
26
- defaultValue: boolean;
27
- editable: boolean;
28
- required: boolean;
29
- group: string;
30
- };
31
- uppercase: {
32
- label: string;
33
- description: string;
34
- formType: string;
35
- propType: string;
36
- defaultValue: boolean;
37
- editable: boolean;
38
- required: boolean;
39
- group: string;
40
- };
41
- startYear: {
42
- label: string;
43
- description: string;
44
- formType: string;
45
- propType: string;
46
- group: string;
47
- defaultValue: null;
48
- editable: boolean;
49
- required: boolean;
50
- step: number;
51
- };
52
- endYear: {
53
- label: string;
54
- description: string;
55
- formType: string;
56
- propType: string;
57
- group: string;
58
- defaultValue: null;
59
- editable: boolean;
60
- required: boolean;
61
- step: number;
62
- };
63
- };
64
- export declare const SEED_DATA: {
65
- props: {
66
- locale: {};
67
- visible: {
68
- label: string;
69
- description: string;
70
- formType: string;
71
- propType: string;
72
- defaultValue: boolean;
73
- editable: boolean;
74
- required: boolean;
75
- group: string;
76
- };
77
- label: any;
78
- saveLabel: any;
79
- saveLabelDisabled: {
80
- label: string;
81
- description: string;
82
- formType: string;
83
- propType: string;
84
- defaultValue: boolean;
85
- editable: boolean;
86
- required: boolean;
87
- group: string;
88
- };
89
- uppercase: {
90
- label: string;
91
- description: string;
92
- formType: string;
93
- propType: string;
94
- defaultValue: boolean;
95
- editable: boolean;
96
- required: boolean;
97
- group: string;
98
- };
99
- startYear: {
100
- label: string;
101
- description: string;
102
- formType: string;
103
- propType: string;
104
- group: string;
105
- defaultValue: null;
106
- editable: boolean;
107
- required: boolean;
108
- step: number;
109
- };
110
- endYear: {
111
- label: string;
112
- description: string;
113
- formType: string;
114
- propType: string;
115
- group: string;
116
- defaultValue: null;
117
- editable: boolean;
118
- required: boolean;
119
- step: number;
120
- };
121
- mode: {
122
- group: string;
123
- label: string;
124
- description: string;
125
- editable: boolean;
126
- required: boolean;
127
- formType: string;
128
- propType: string;
129
- defaultValue: null;
130
- options: never[];
131
- };
132
- fieldName: {
133
- handlerPropName: string;
134
- valuePropName: string;
135
- defaultValue: string;
136
- group: string;
137
- label: string;
138
- description: string;
139
- formType: string;
140
- propType: string;
141
- editable: boolean;
142
- required: boolean;
143
- };
144
- };
145
- triggers: string[];
146
- category: string;
147
- StylesPanelSections: string[];
148
- layout: null;
149
- name: string;
150
- tag: string;
151
- description: string;
152
- }[];
153
- //# sourceMappingURL=DatePickerModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePickerModal.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePickerModal.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,gBAAgB;;;;;CAW5B,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClC,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyBrB,CAAC"}