@draftbit/core 46.8.1-fe4ccb.2 → 46.8.1

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 (118) hide show
  1. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +38 -4
  2. package/lib/commonjs/components/Picker/Picker.js +8 -9
  3. package/lib/commonjs/components/ScreenContainer.js +2 -1
  4. package/lib/commonjs/constants.js +1 -1
  5. package/lib/commonjs/index.js +0 -7
  6. package/lib/commonjs/mappings/Accordion.js +1 -0
  7. package/lib/commonjs/mappings/AccordionItem.js +1 -0
  8. package/lib/commonjs/mappings/ActionSheet.js +1 -0
  9. package/lib/commonjs/mappings/ActionSheetCancel.js +1 -0
  10. package/lib/commonjs/mappings/ActionSheetItem.js +1 -0
  11. package/lib/commonjs/mappings/LinearGradient.js +1 -0
  12. package/lib/commonjs/mappings/MapCallout.js +1 -0
  13. package/lib/commonjs/mappings/MapMarker.js +1 -0
  14. package/lib/commonjs/mappings/MapView.js +1 -0
  15. package/lib/commonjs/mappings/Swiper.js +1 -0
  16. package/lib/commonjs/mappings/SwiperItem.js +2 -1
  17. package/lib/commonjs/mappings/TextArea.js +1 -0
  18. package/lib/commonjs/mappings/TextField.js +1 -0
  19. package/lib/module/components/DeckSwiper/DeckSwiper.js +38 -4
  20. package/lib/module/components/Picker/Picker.js +8 -9
  21. package/lib/module/components/ScreenContainer.js +2 -1
  22. package/lib/module/index.js +0 -1
  23. package/lib/module/mappings/Accordion.js +2 -1
  24. package/lib/module/mappings/AccordionItem.js +2 -1
  25. package/lib/module/mappings/ActionSheet.js +2 -1
  26. package/lib/module/mappings/ActionSheetCancel.js +2 -1
  27. package/lib/module/mappings/ActionSheetItem.js +2 -1
  28. package/lib/module/mappings/LinearGradient.js +2 -1
  29. package/lib/module/mappings/MapCallout.js +2 -1
  30. package/lib/module/mappings/MapMarker.js +2 -1
  31. package/lib/module/mappings/MapView.js +2 -1
  32. package/lib/module/mappings/Swiper.js +2 -1
  33. package/lib/module/mappings/SwiperItem.js +3 -2
  34. package/lib/module/mappings/TextArea.js +2 -1
  35. package/lib/module/mappings/TextField.js +1 -0
  36. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +8 -2
  37. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +1 -1
  38. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +2 -3
  39. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts.map +1 -1
  40. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  41. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -1
  42. package/lib/typescript/src/index.d.ts +0 -1
  43. package/lib/typescript/src/index.d.ts.map +1 -1
  44. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  45. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -1
  46. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  47. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -1
  48. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  49. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -1
  50. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  51. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -1
  52. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  53. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -1
  54. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  55. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -1
  56. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  57. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -1
  58. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  59. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
  60. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  61. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -1
  62. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  63. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
  64. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  65. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -1
  66. package/lib/typescript/src/mappings/TextArea.d.ts +1 -0
  67. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -1
  68. package/lib/typescript/src/mappings/TextField.d.ts +1 -1
  69. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -1
  70. package/package.json +3 -4
  71. package/src/components/DeckSwiper/DeckSwiper.js +33 -3
  72. package/src/components/DeckSwiper/DeckSwiper.tsx +51 -9
  73. package/src/components/DeckSwiper/DeckSwiperCard.js +1 -1
  74. package/src/components/DeckSwiper/DeckSwiperCard.tsx +3 -6
  75. package/src/components/Picker/Picker.js +7 -8
  76. package/src/components/Picker/Picker.tsx +7 -9
  77. package/src/components/ScreenContainer.js +2 -1
  78. package/src/components/ScreenContainer.tsx +2 -1
  79. package/src/index.js +0 -1
  80. package/src/index.tsx +0 -2
  81. package/src/mappings/Accordion.js +10 -1
  82. package/src/mappings/Accordion.ts +10 -0
  83. package/src/mappings/AccordionItem.js +2 -1
  84. package/src/mappings/AccordionItem.ts +2 -0
  85. package/src/mappings/ActionSheet.js +2 -1
  86. package/src/mappings/ActionSheet.ts +7 -1
  87. package/src/mappings/ActionSheetCancel.js +2 -1
  88. package/src/mappings/ActionSheetCancel.ts +2 -0
  89. package/src/mappings/ActionSheetItem.js +2 -1
  90. package/src/mappings/ActionSheetItem.ts +2 -0
  91. package/src/mappings/LinearGradient.js +6 -1
  92. package/src/mappings/LinearGradient.ts +6 -0
  93. package/src/mappings/MapCallout.js +2 -1
  94. package/src/mappings/MapCallout.ts +2 -0
  95. package/src/mappings/MapMarker.js +2 -1
  96. package/src/mappings/MapMarker.ts +2 -0
  97. package/src/mappings/MapView.js +2 -1
  98. package/src/mappings/MapView.ts +2 -0
  99. package/src/mappings/Swiper.js +10 -1
  100. package/src/mappings/Swiper.ts +10 -0
  101. package/src/mappings/SwiperItem.js +2 -1
  102. package/src/mappings/SwiperItem.ts +5 -1
  103. package/src/mappings/TextArea.js +10 -1
  104. package/src/mappings/TextArea.ts +10 -0
  105. package/src/mappings/TextField.js +9 -0
  106. package/src/mappings/TextField.ts +9 -0
  107. package/lib/commonjs/components/Shadow.js +0 -42
  108. package/lib/commonjs/mappings/Shadow.js +0 -94
  109. package/lib/module/components/Shadow.js +0 -34
  110. package/lib/module/mappings/Shadow.js +0 -87
  111. package/lib/typescript/src/components/Shadow.d.ts +0 -24
  112. package/lib/typescript/src/components/Shadow.d.ts.map +0 -1
  113. package/lib/typescript/src/mappings/Shadow.d.ts +0 -173
  114. package/lib/typescript/src/mappings/Shadow.d.ts.map +0 -1
  115. package/src/components/Shadow.js +0 -16
  116. package/src/components/Shadow.tsx +0 -58
  117. package/src/mappings/Shadow.js +0 -87
  118. package/src/mappings/Shadow.ts +0 -95
@@ -1,87 +0,0 @@
1
- import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Shadow",
4
- tag: "Shadow View",
5
- description: "A cross-platform, universal shadow.",
6
- category: COMPONENT_TYPES.view,
7
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
- props: {
9
- disabled: createDisabledProp({
10
- description: "Disables the shadow."
11
- }),
12
- startColor: createColorProp({
13
- label: "Start Color",
14
- description: "The initial gradient color of the shadow.",
15
- defaultValue: null
16
- }),
17
- endColor: createColorProp({
18
- label: "End Color",
19
- description: "The final gradient color of the shadow.",
20
- defaultValue: null
21
- }),
22
- distance: createStaticNumberProp({
23
- label: "Distance",
24
- description: "The distance of the shadow."
25
- }),
26
- paintInside: createStaticBoolProp({
27
- label: "Paint Inside",
28
- description: "Apply the shadow below/inside the content.",
29
- defaultValue: null
30
- }),
31
- stretch: createStaticBoolProp({
32
- label: "Stretch",
33
- description: "Force children to occupy all available horizontal space.",
34
- defaultValue: null
35
- }),
36
- offsetX: createStaticNumberProp({
37
- label: "Offset X",
38
- description: "Moved the shadow in the x direction",
39
- defeaultValue: 0
40
- }),
41
- offsetY: createStaticNumberProp({
42
- label: "Offset Y",
43
- description: "Moved the shadow in the y direction",
44
- defeaultValue: 0
45
- }),
46
- showShadowSideStart: createStaticBoolProp({
47
- label: "Show Shadow Start",
48
- description: "Whether to show shadow on the start side or not",
49
- defaultValue: true
50
- }),
51
- showShadowSideEnd: createStaticBoolProp({
52
- label: "Show Shadow End",
53
- description: "Whether to show shadow on the end side or not",
54
- defaultValue: true
55
- }),
56
- showShadowSideTop: createStaticBoolProp({
57
- label: "Show Shadow Top",
58
- description: "Whether to show shadow on the top side or not",
59
- defaultValue: true
60
- }),
61
- showShadowSideBottom: createStaticBoolProp({
62
- label: "Show Shadow Bottom",
63
- description: "Whether to show shadow on the bottom side or not",
64
- defaultValue: true
65
- }),
66
- showShadowCornerTopStart: createStaticBoolProp({
67
- label: "Show Shadow Top Start Corner",
68
- description: "Whether to show shadow on the top start corner or not",
69
- defaultValue: true
70
- }),
71
- showShadowCornerTopEnd: createStaticBoolProp({
72
- label: "Show Shadow Top End Corner",
73
- description: "Whether to show shadow on the top end corner or not",
74
- defaultValue: true
75
- }),
76
- showShadowCornerBottomStart: createStaticBoolProp({
77
- label: "Show Shadow Bottom Start Corner",
78
- description: "Whether to show shadow on the bottom start corner or not",
79
- defaultValue: true
80
- }),
81
- showShadowCornerBottomEnd: createStaticBoolProp({
82
- label: "Show Shadow Bottom End Corner",
83
- description: "Whether to show shadow on the bottom end corner or not",
84
- defaultValue: true
85
- })
86
- }
87
- };
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
3
- interface ShadowProps {
4
- disabled?: boolean;
5
- startColor?: string;
6
- endColor?: string;
7
- distance?: number;
8
- paintInside?: boolean;
9
- stretch?: boolean;
10
- offsetX?: number;
11
- offsetY?: number;
12
- showShadowSideStart?: boolean;
13
- showShadowSideEnd?: boolean;
14
- showShadowSideTop?: boolean;
15
- showShadowSideBottom?: boolean;
16
- showShadowCornerTopStart?: boolean;
17
- showShadowCornerTopEnd?: boolean;
18
- showShadowCornerBottomStart?: boolean;
19
- showShadowCornerBottomEnd?: boolean;
20
- style?: StyleProp<ViewStyle>;
21
- }
22
- declare const Shadow: React.FC<React.PropsWithChildren<ShadowProps>>;
23
- export default Shadow;
24
- //# sourceMappingURL=Shadow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Shadow.d.ts","sourceRoot":"","sources":["../../../../src/components/Shadow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CA+B1D,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,173 +0,0 @@
1
- export declare const SEED_DATA: {
2
- name: string;
3
- tag: string;
4
- description: string;
5
- category: string;
6
- stylesPanelSections: string[];
7
- props: {
8
- disabled: {
9
- label: string;
10
- description: string;
11
- group: string;
12
- editable: boolean;
13
- required: boolean;
14
- formType: string;
15
- propType: string;
16
- defaultValue: null;
17
- };
18
- startColor: {
19
- group: string;
20
- label: string;
21
- description: string;
22
- editable: boolean;
23
- required: boolean;
24
- defaultValue: null;
25
- formType: string;
26
- propType: string;
27
- };
28
- endColor: {
29
- group: string;
30
- label: string;
31
- description: string;
32
- editable: boolean;
33
- required: boolean;
34
- defaultValue: null;
35
- formType: string;
36
- propType: string;
37
- };
38
- distance: {
39
- label: string;
40
- description: string;
41
- formType: string;
42
- propType: string;
43
- group: string;
44
- defaultValue: null;
45
- editable: boolean;
46
- required: boolean;
47
- step: number;
48
- };
49
- paintInside: {
50
- label: string;
51
- description: string;
52
- formType: string;
53
- propType: string;
54
- defaultValue: boolean;
55
- editable: boolean;
56
- required: boolean;
57
- group: string;
58
- };
59
- stretch: {
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
- offsetX: {
70
- label: string;
71
- description: string;
72
- formType: string;
73
- propType: string;
74
- group: string;
75
- defaultValue: null;
76
- editable: boolean;
77
- required: boolean;
78
- step: number;
79
- };
80
- offsetY: {
81
- label: string;
82
- description: string;
83
- formType: string;
84
- propType: string;
85
- group: string;
86
- defaultValue: null;
87
- editable: boolean;
88
- required: boolean;
89
- step: number;
90
- };
91
- showShadowSideStart: {
92
- label: string;
93
- description: string;
94
- formType: string;
95
- propType: string;
96
- defaultValue: boolean;
97
- editable: boolean;
98
- required: boolean;
99
- group: string;
100
- };
101
- showShadowSideEnd: {
102
- label: string;
103
- description: string;
104
- formType: string;
105
- propType: string;
106
- defaultValue: boolean;
107
- editable: boolean;
108
- required: boolean;
109
- group: string;
110
- };
111
- showShadowSideTop: {
112
- label: string;
113
- description: string;
114
- formType: string;
115
- propType: string;
116
- defaultValue: boolean;
117
- editable: boolean;
118
- required: boolean;
119
- group: string;
120
- };
121
- showShadowSideBottom: {
122
- label: string;
123
- description: string;
124
- formType: string;
125
- propType: string;
126
- defaultValue: boolean;
127
- editable: boolean;
128
- required: boolean;
129
- group: string;
130
- };
131
- showShadowCornerTopStart: {
132
- label: string;
133
- description: string;
134
- formType: string;
135
- propType: string;
136
- defaultValue: boolean;
137
- editable: boolean;
138
- required: boolean;
139
- group: string;
140
- };
141
- showShadowCornerTopEnd: {
142
- label: string;
143
- description: string;
144
- formType: string;
145
- propType: string;
146
- defaultValue: boolean;
147
- editable: boolean;
148
- required: boolean;
149
- group: string;
150
- };
151
- showShadowCornerBottomStart: {
152
- label: string;
153
- description: string;
154
- formType: string;
155
- propType: string;
156
- defaultValue: boolean;
157
- editable: boolean;
158
- required: boolean;
159
- group: string;
160
- };
161
- showShadowCornerBottomEnd: {
162
- label: string;
163
- description: string;
164
- formType: string;
165
- propType: string;
166
- defaultValue: boolean;
167
- editable: boolean;
168
- required: boolean;
169
- group: string;
170
- };
171
- };
172
- };
173
- //# sourceMappingURL=Shadow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Shadow.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Shadow.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFrB,CAAC"}
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { Shadow as ShadowComponent } from "react-native-shadow-2";
3
- const Shadow = ({ offsetX = 0, offsetY = 0, showShadowSideStart = true, showShadowSideEnd = true, showShadowSideTop = true, showShadowSideBottom = true, showShadowCornerTopStart = true, showShadowCornerTopEnd = true, showShadowCornerBottomStart = true, showShadowCornerBottomEnd = true, ...rest }) => {
4
- return (React.createElement(ShadowComponent, { offset: [offsetX, offsetY], sides: {
5
- start: showShadowSideStart,
6
- end: showShadowSideEnd,
7
- top: showShadowSideTop,
8
- bottom: showShadowSideBottom,
9
- }, corners: {
10
- topStart: showShadowCornerTopStart,
11
- topEnd: showShadowCornerTopEnd,
12
- bottomStart: showShadowCornerBottomStart,
13
- bottomEnd: showShadowCornerBottomEnd,
14
- }, ...rest }));
15
- };
16
- export default Shadow;
@@ -1,58 +0,0 @@
1
- import React from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
3
- import { Shadow as ShadowComponent } from "react-native-shadow-2";
4
-
5
- interface ShadowProps {
6
- disabled?: boolean;
7
- startColor?: string;
8
- endColor?: string;
9
- distance?: number;
10
- paintInside?: boolean;
11
- stretch?: boolean;
12
- offsetX?: number;
13
- offsetY?: number;
14
- showShadowSideStart?: boolean;
15
- showShadowSideEnd?: boolean;
16
- showShadowSideTop?: boolean;
17
- showShadowSideBottom?: boolean;
18
- showShadowCornerTopStart?: boolean;
19
- showShadowCornerTopEnd?: boolean;
20
- showShadowCornerBottomStart?: boolean;
21
- showShadowCornerBottomEnd?: boolean;
22
- style?: StyleProp<ViewStyle>;
23
- }
24
-
25
- const Shadow: React.FC<React.PropsWithChildren<ShadowProps>> = ({
26
- offsetX = 0,
27
- offsetY = 0,
28
- showShadowSideStart = true,
29
- showShadowSideEnd = true,
30
- showShadowSideTop = true,
31
- showShadowSideBottom = true,
32
- showShadowCornerTopStart = true,
33
- showShadowCornerTopEnd = true,
34
- showShadowCornerBottomStart = true,
35
- showShadowCornerBottomEnd = true,
36
- ...rest
37
- }) => {
38
- return (
39
- <ShadowComponent
40
- offset={[offsetX, offsetY]}
41
- sides={{
42
- start: showShadowSideStart,
43
- end: showShadowSideEnd,
44
- top: showShadowSideTop,
45
- bottom: showShadowSideBottom,
46
- }}
47
- corners={{
48
- topStart: showShadowCornerTopStart,
49
- topEnd: showShadowCornerTopEnd,
50
- bottomStart: showShadowCornerBottomStart,
51
- bottomEnd: showShadowCornerBottomEnd,
52
- }}
53
- {...rest}
54
- />
55
- );
56
- };
57
-
58
- export default Shadow;
@@ -1,87 +0,0 @@
1
- import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Shadow",
4
- tag: "Shadow View",
5
- description: "A cross-platform, universal shadow.",
6
- category: COMPONENT_TYPES.view,
7
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
- props: {
9
- disabled: createDisabledProp({
10
- description: "Disables the shadow.",
11
- }),
12
- startColor: createColorProp({
13
- label: "Start Color",
14
- description: "The initial gradient color of the shadow.",
15
- defaultValue: null,
16
- }),
17
- endColor: createColorProp({
18
- label: "End Color",
19
- description: "The final gradient color of the shadow.",
20
- defaultValue: null,
21
- }),
22
- distance: createStaticNumberProp({
23
- label: "Distance",
24
- description: "The distance of the shadow.",
25
- }),
26
- paintInside: createStaticBoolProp({
27
- label: "Paint Inside",
28
- description: "Apply the shadow below/inside the content.",
29
- defaultValue: null,
30
- }),
31
- stretch: createStaticBoolProp({
32
- label: "Stretch",
33
- description: "Force children to occupy all available horizontal space.",
34
- defaultValue: null,
35
- }),
36
- offsetX: createStaticNumberProp({
37
- label: "Offset X",
38
- description: "Moved the shadow in the x direction",
39
- defeaultValue: 0,
40
- }),
41
- offsetY: createStaticNumberProp({
42
- label: "Offset Y",
43
- description: "Moved the shadow in the y direction",
44
- defeaultValue: 0,
45
- }),
46
- showShadowSideStart: createStaticBoolProp({
47
- label: "Show Shadow Start",
48
- description: "Whether to show shadow on the start side or not",
49
- defaultValue: true,
50
- }),
51
- showShadowSideEnd: createStaticBoolProp({
52
- label: "Show Shadow End",
53
- description: "Whether to show shadow on the end side or not",
54
- defaultValue: true,
55
- }),
56
- showShadowSideTop: createStaticBoolProp({
57
- label: "Show Shadow Top",
58
- description: "Whether to show shadow on the top side or not",
59
- defaultValue: true,
60
- }),
61
- showShadowSideBottom: createStaticBoolProp({
62
- label: "Show Shadow Bottom",
63
- description: "Whether to show shadow on the bottom side or not",
64
- defaultValue: true,
65
- }),
66
- showShadowCornerTopStart: createStaticBoolProp({
67
- label: "Show Shadow Top Start Corner",
68
- description: "Whether to show shadow on the top start corner or not",
69
- defaultValue: true,
70
- }),
71
- showShadowCornerTopEnd: createStaticBoolProp({
72
- label: "Show Shadow Top End Corner",
73
- description: "Whether to show shadow on the top end corner or not",
74
- defaultValue: true,
75
- }),
76
- showShadowCornerBottomStart: createStaticBoolProp({
77
- label: "Show Shadow Bottom Start Corner",
78
- description: "Whether to show shadow on the bottom start corner or not",
79
- defaultValue: true,
80
- }),
81
- showShadowCornerBottomEnd: createStaticBoolProp({
82
- label: "Show Shadow Bottom End Corner",
83
- description: "Whether to show shadow on the bottom end corner or not",
84
- defaultValue: true,
85
- }),
86
- },
87
- };
@@ -1,95 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- CONTAINER_COMPONENT_STYLES_SECTIONS,
4
- createColorProp,
5
- createStaticNumberProp,
6
- createStaticBoolProp,
7
- createDisabledProp,
8
- } from "@draftbit/types";
9
-
10
- export const SEED_DATA = {
11
- name: "Shadow",
12
- tag: "Shadow View",
13
- description: "A cross-platform, universal shadow.",
14
- category: COMPONENT_TYPES.view,
15
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
16
- props: {
17
- disabled: createDisabledProp({
18
- description: "Disables the shadow.",
19
- }),
20
- startColor: createColorProp({
21
- label: "Start Color",
22
- description: "The initial gradient color of the shadow.",
23
- defaultValue: null,
24
- }),
25
- endColor: createColorProp({
26
- label: "End Color",
27
- description: "The final gradient color of the shadow.",
28
- defaultValue: null,
29
- }),
30
- distance: createStaticNumberProp({
31
- label: "Distance",
32
- description: "The distance of the shadow.",
33
- }),
34
- paintInside: createStaticBoolProp({
35
- label: "Paint Inside",
36
- description: "Apply the shadow below/inside the content.",
37
- defaultValue: null,
38
- }),
39
- stretch: createStaticBoolProp({
40
- label: "Stretch",
41
- description: "Force children to occupy all available horizontal space.",
42
- defaultValue: null,
43
- }),
44
- offsetX: createStaticNumberProp({
45
- label: "Offset X",
46
- description: "Moved the shadow in the x direction",
47
- defeaultValue: 0,
48
- }),
49
- offsetY: createStaticNumberProp({
50
- label: "Offset Y",
51
- description: "Moved the shadow in the y direction",
52
- defeaultValue: 0,
53
- }),
54
- showShadowSideStart: createStaticBoolProp({
55
- label: "Show Shadow Start",
56
- description: "Whether to show shadow on the start side or not",
57
- defaultValue: true,
58
- }),
59
- showShadowSideEnd: createStaticBoolProp({
60
- label: "Show Shadow End",
61
- description: "Whether to show shadow on the end side or not",
62
- defaultValue: true,
63
- }),
64
- showShadowSideTop: createStaticBoolProp({
65
- label: "Show Shadow Top",
66
- description: "Whether to show shadow on the top side or not",
67
- defaultValue: true,
68
- }),
69
- showShadowSideBottom: createStaticBoolProp({
70
- label: "Show Shadow Bottom",
71
- description: "Whether to show shadow on the bottom side or not",
72
- defaultValue: true,
73
- }),
74
- showShadowCornerTopStart: createStaticBoolProp({
75
- label: "Show Shadow Top Start Corner",
76
- description: "Whether to show shadow on the top start corner or not",
77
- defaultValue: true,
78
- }),
79
- showShadowCornerTopEnd: createStaticBoolProp({
80
- label: "Show Shadow Top End Corner",
81
- description: "Whether to show shadow on the top end corner or not",
82
- defaultValue: true,
83
- }),
84
- showShadowCornerBottomStart: createStaticBoolProp({
85
- label: "Show Shadow Bottom Start Corner",
86
- description: "Whether to show shadow on the bottom start corner or not",
87
- defaultValue: true,
88
- }),
89
- showShadowCornerBottomEnd: createStaticBoolProp({
90
- label: "Show Shadow Bottom End Corner",
91
- description: "Whether to show shadow on the bottom end corner or not",
92
- defaultValue: true,
93
- }),
94
- },
95
- };