@makeswift/prop-controllers 0.1.0-canary.3 → 0.1.0-canary.5

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 (85) hide show
  1. package/dist/index.cjs +635 -225
  2. package/dist/types/border/border.d.ts +4 -4
  3. package/dist/types/border-radius/border-radius.d.ts +2 -2
  4. package/dist/types/checkbox/checkbox.d.ts +4 -4
  5. package/dist/types/data.d.ts +37 -0
  6. package/dist/types/data.d.ts.map +1 -1
  7. package/dist/types/date/date.d.ts +4 -4
  8. package/dist/types/date copy/date.d.ts +1 -1
  9. package/dist/types/date copy/date.d.ts.map +1 -1
  10. package/dist/types/deleted.d.ts +1 -0
  11. package/dist/types/deleted.d.ts.map +1 -0
  12. package/dist/types/deteted.d.ts +1 -0
  13. package/dist/types/deteted.d.ts.map +1 -0
  14. package/dist/types/font/font.d.ts +4 -4
  15. package/dist/types/gap-x/gap-x.d.ts +177 -0
  16. package/dist/types/gap-x/gap-x.d.ts.map +1 -0
  17. package/dist/types/gap-x/gap-x.test.d.ts +2 -0
  18. package/dist/types/gap-x/gap-x.test.d.ts.map +1 -0
  19. package/dist/types/gap-x/index.d.ts +2 -0
  20. package/dist/types/gap-x/index.d.ts.map +1 -0
  21. package/dist/types/gap-x/text-style.d.ts +589 -0
  22. package/dist/types/gap-x/text-style.d.ts.map +1 -0
  23. package/dist/types/gap-x/text-style.test.d.ts +2 -0
  24. package/dist/types/gap-x/text-style.test.d.ts.map +1 -0
  25. package/dist/types/gap-x copy/gap-x.d.ts +177 -0
  26. package/dist/types/gap-x copy/gap-x.d.ts.map +1 -0
  27. package/dist/types/gap-x copy/gap-x.test.d.ts +2 -0
  28. package/dist/types/gap-x copy/gap-x.test.d.ts.map +1 -0
  29. package/dist/types/gap-x copy/index.d.ts +2 -0
  30. package/dist/types/gap-x copy/index.d.ts.map +1 -0
  31. package/dist/types/gap-y/gap-x.d.ts +177 -0
  32. package/dist/types/gap-y/gap-x.d.ts.map +1 -0
  33. package/dist/types/gap-y/gap-x.test.d.ts +2 -0
  34. package/dist/types/gap-y/gap-x.test.d.ts.map +1 -0
  35. package/dist/types/gap-y/gap-y.d.ts +177 -0
  36. package/dist/types/gap-y/gap-y.d.ts.map +1 -0
  37. package/dist/types/gap-y/gap-y.test.d.ts +2 -0
  38. package/dist/types/gap-y/gap-y.test.d.ts.map +1 -0
  39. package/dist/types/gap-y/index.d.ts +2 -0
  40. package/dist/types/gap-y/index.d.ts.map +1 -0
  41. package/dist/types/index.d.ts +12 -3
  42. package/dist/types/index.d.ts.map +1 -1
  43. package/dist/types/link/link.d.ts +944 -34
  44. package/dist/types/link/link.d.ts.map +1 -1
  45. package/dist/types/margin/margin.d.ts +4 -4
  46. package/dist/types/navigation-links/navigation-links.d.ts +80 -77
  47. package/dist/types/navigation-links/navigation-links.d.ts.map +1 -1
  48. package/dist/types/number.d.ts +4 -4
  49. package/dist/types/padding/padding.d.ts +4 -4
  50. package/dist/types/prop-controllers.d.ts +5 -1
  51. package/dist/types/prop-controllers.d.ts.map +1 -1
  52. package/dist/types/responsive-color.d.ts +4 -4
  53. package/dist/types/responsive-length.d.ts +4 -4
  54. package/dist/types/shadows.d.ts +2 -2
  55. package/dist/types/table/table.d.ts +4 -4
  56. package/dist/types/text-area/date.d.ts +50 -0
  57. package/dist/types/text-area/date.d.ts.map +1 -0
  58. package/dist/types/text-area/date.test.d.ts +2 -0
  59. package/dist/types/text-area/date.test.d.ts.map +1 -0
  60. package/dist/types/text-area/index.d.ts +2 -0
  61. package/dist/types/text-area/index.d.ts.map +1 -0
  62. package/dist/types/text-area/text-area.d.ts +52 -0
  63. package/dist/types/text-area/text-area.d.ts.map +1 -0
  64. package/dist/types/text-area/text-area.test.d.ts +2 -0
  65. package/dist/types/text-area/text-area.test.d.ts.map +1 -0
  66. package/dist/types/text-style/text-style.d.ts +4 -4
  67. package/dist/types/text-style copy/index.d.ts +2 -0
  68. package/dist/types/text-style copy/index.d.ts.map +1 -0
  69. package/dist/types/text-style copy/text-style.d.ts +589 -0
  70. package/dist/types/text-style copy/text-style.d.ts.map +1 -0
  71. package/dist/types/text-style copy/text-style.test.d.ts +2 -0
  72. package/dist/types/text-style copy/text-style.test.d.ts.map +1 -0
  73. package/dist/types/typeahead/date.d.ts +50 -0
  74. package/dist/types/typeahead/date.d.ts.map +1 -0
  75. package/dist/types/typeahead/date.test.d.ts +2 -0
  76. package/dist/types/typeahead/date.test.d.ts.map +1 -0
  77. package/dist/types/typeahead/index.d.ts +2 -0
  78. package/dist/types/typeahead/index.d.ts.map +1 -0
  79. package/dist/types/typeahead/typeahead.d.ts +50 -0
  80. package/dist/types/typeahead/typeahead.d.ts.map +1 -0
  81. package/dist/types/typeahead/typeahead.test.d.ts +2 -0
  82. package/dist/types/typeahead/typeahead.test.d.ts.map +1 -0
  83. package/dist/types/video/video.d.ts +4 -4
  84. package/dist/types/width/width.d.ts +4 -4
  85. package/package.json +1 -1
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ import { Options, Types } from '../prop-controllers';
3
+ declare const typeaheadPropControllerDataV0Schema: z.ZodString;
4
+ export type TypeaheadPropControllerDataV0 = z.infer<typeof typeaheadPropControllerDataV0Schema>;
5
+ export declare const TypeaheadPropControllerDataV1Type = "prop-controllers::typeahead::v1";
6
+ declare const typeaheadPropControllerDataV1Schema: z.ZodObject<{
7
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::typeahead::v1">;
8
+ value: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ value: string;
11
+ "@@makeswift/type": "prop-controllers::typeahead::v1";
12
+ }, {
13
+ value: string;
14
+ "@@makeswift/type": "prop-controllers::typeahead::v1";
15
+ }>;
16
+ export type TypeaheadPropControllerDataV1 = z.infer<typeof typeaheadPropControllerDataV1Schema>;
17
+ export declare const typeaheadPropControllerDataSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
18
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::typeahead::v1">;
19
+ value: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: string;
22
+ "@@makeswift/type": "prop-controllers::typeahead::v1";
23
+ }, {
24
+ value: string;
25
+ "@@makeswift/type": "prop-controllers::typeahead::v1";
26
+ }>]>;
27
+ export type TypeaheadPropControllerData = z.infer<typeof typeaheadPropControllerDataSchema>;
28
+ export type TypeaheadOptions = Options<{
29
+ preset?: TypeaheadPropControllerData;
30
+ }>;
31
+ type TypeaheadDescriptorV0<_T = TypeaheadPropControllerDataV0> = {
32
+ type: typeof Types.Typeahead;
33
+ options: TypeaheadOptions;
34
+ };
35
+ type TypeaheadDescriptorV1<_T = TypeaheadPropControllerData, U extends TypeaheadOptions = TypeaheadOptions> = {
36
+ type: typeof Types.Typeahead;
37
+ version: 1;
38
+ options: U;
39
+ };
40
+ export type TypeaheadDescriptor<_T = TypeaheadPropControllerData> = TypeaheadDescriptorV0 | TypeaheadDescriptorV1;
41
+ export type ResolveTypeaheadPropControllerValue<T extends TypeaheadDescriptor> = T extends TypeaheadDescriptor ? string | undefined : never;
42
+ /**
43
+ * @deprecated Imports from @makeswift/prop-controllers are deprecated. Use
44
+ * @makeswift/runtime/controls instead.
45
+ */
46
+ export declare function Typeahead(options?: TypeaheadOptions): TypeaheadDescriptorV1;
47
+ export declare function getTypeaheadPropControllerDataString(data: TypeaheadPropControllerData | undefined): string | undefined;
48
+ export declare function createTypeaheadPropControllerDataFromString(value: string, definition?: TypeaheadDescriptor): TypeaheadPropControllerData;
49
+ export {};
50
+ //# sourceMappingURL=typeahead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeahead.d.ts","sourceRoot":"","sources":["../../../src/typeahead/typeahead.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAsB,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAGxE,QAAA,MAAM,mCAAmC,aAAa,CAAA;AAEtD,MAAM,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BAAgB,2CAA2C,CACzD,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,mBAAmB,GAC/B,2BAA2B,CAY7B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=typeahead.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeahead.test.d.ts","sourceRoot":"","sources":["../../../src/typeahead/typeahead.test.ts"],"names":[],"mappings":""}
@@ -63,6 +63,7 @@ declare const videoPropControllerDataV1Schema: z.ZodObject<{
63
63
  controls?: boolean | undefined;
64
64
  }>;
65
65
  }, "strip", z.ZodTypeAny, {
66
+ "@@makeswift/type": "prop-controllers::video::v1";
66
67
  value: {
67
68
  url?: string | undefined;
68
69
  muted?: boolean | undefined;
@@ -70,8 +71,8 @@ declare const videoPropControllerDataV1Schema: z.ZodObject<{
70
71
  loop?: boolean | undefined;
71
72
  controls?: boolean | undefined;
72
73
  };
73
- "@@makeswift/type": "prop-controllers::video::v1";
74
74
  }, {
75
+ "@@makeswift/type": "prop-controllers::video::v1";
75
76
  value: {
76
77
  url?: string | undefined;
77
78
  muted?: boolean | undefined;
@@ -79,7 +80,6 @@ declare const videoPropControllerDataV1Schema: z.ZodObject<{
79
80
  loop?: boolean | undefined;
80
81
  controls?: boolean | undefined;
81
82
  };
82
- "@@makeswift/type": "prop-controllers::video::v1";
83
83
  }>;
84
84
  export type VideoPropControllerDataV1 = z.infer<typeof videoPropControllerDataV1Schema>;
85
85
  export declare const videoPropControllerDataSchema: z.ZodUnion<[z.ZodObject<{
@@ -104,6 +104,7 @@ export declare const videoPropControllerDataSchema: z.ZodUnion<[z.ZodObject<{
104
104
  controls?: boolean | undefined;
105
105
  }>;
106
106
  }, "strip", z.ZodTypeAny, {
107
+ "@@makeswift/type": "prop-controllers::video::v1";
107
108
  value: {
108
109
  url?: string | undefined;
109
110
  muted?: boolean | undefined;
@@ -111,8 +112,8 @@ export declare const videoPropControllerDataSchema: z.ZodUnion<[z.ZodObject<{
111
112
  loop?: boolean | undefined;
112
113
  controls?: boolean | undefined;
113
114
  };
114
- "@@makeswift/type": "prop-controllers::video::v1";
115
115
  }, {
116
+ "@@makeswift/type": "prop-controllers::video::v1";
116
117
  value: {
117
118
  url?: string | undefined;
118
119
  muted?: boolean | undefined;
@@ -120,7 +121,6 @@ export declare const videoPropControllerDataSchema: z.ZodUnion<[z.ZodObject<{
120
121
  loop?: boolean | undefined;
121
122
  controls?: boolean | undefined;
122
123
  };
123
- "@@makeswift/type": "prop-controllers::video::v1";
124
124
  }>, z.ZodObject<{
125
125
  url: z.ZodOptional<z.ZodString>;
126
126
  muted: z.ZodOptional<z.ZodBoolean>;
@@ -57,6 +57,7 @@ declare const widthPropControllerDataV1Schema: z.ZodObject<{
57
57
  deviceId: string;
58
58
  }>, "many">;
59
59
  }, "strip", z.ZodTypeAny, {
60
+ "@@makeswift/type": "prop-controllers::width::v1";
60
61
  value: {
61
62
  value: {
62
63
  value: number;
@@ -64,8 +65,8 @@ declare const widthPropControllerDataV1Schema: z.ZodObject<{
64
65
  };
65
66
  deviceId: string;
66
67
  }[];
67
- "@@makeswift/type": "prop-controllers::width::v1";
68
68
  }, {
69
+ "@@makeswift/type": "prop-controllers::width::v1";
69
70
  value: {
70
71
  value: {
71
72
  value: number;
@@ -73,7 +74,6 @@ declare const widthPropControllerDataV1Schema: z.ZodObject<{
73
74
  };
74
75
  deviceId: string;
75
76
  }[];
76
- "@@makeswift/type": "prop-controllers::width::v1";
77
77
  }>;
78
78
  export type WidthPropControllerDataV1 = z.infer<typeof widthPropControllerDataV1Schema>;
79
79
  export declare const widthPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
@@ -128,6 +128,7 @@ export declare const widthPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.Zod
128
128
  deviceId: string;
129
129
  }>, "many">;
130
130
  }, "strip", z.ZodTypeAny, {
131
+ "@@makeswift/type": "prop-controllers::width::v1";
131
132
  value: {
132
133
  value: {
133
134
  value: number;
@@ -135,8 +136,8 @@ export declare const widthPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.Zod
135
136
  };
136
137
  deviceId: string;
137
138
  }[];
138
- "@@makeswift/type": "prop-controllers::width::v1";
139
139
  }, {
140
+ "@@makeswift/type": "prop-controllers::width::v1";
140
141
  value: {
141
142
  value: {
142
143
  value: number;
@@ -144,7 +145,6 @@ export declare const widthPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.Zod
144
145
  };
145
146
  deviceId: string;
146
147
  }[];
147
- "@@makeswift/type": "prop-controllers::width::v1";
148
148
  }>]>;
149
149
  export type WidthPropControllerData = z.infer<typeof widthPropControllerDataSchema>;
150
150
  export declare const WidthPropControllerFormat: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/prop-controllers",
3
- "version": "0.1.0-canary.3",
3
+ "version": "0.1.0-canary.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [