@makeswift/prop-controllers 0.0.2-canary.0 → 0.1.0-canary.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 (34) hide show
  1. package/dist/index.cjs +519 -6
  2. package/dist/types/border/border.d.ts +2435 -0
  3. package/dist/types/border/border.d.ts.map +1 -0
  4. package/dist/types/border/border.test.d.ts +2 -0
  5. package/dist/types/border/border.test.d.ts.map +1 -0
  6. package/dist/types/border/index.d.ts +2 -0
  7. package/dist/types/border/index.d.ts.map +1 -0
  8. package/dist/types/border-radius/border-radius.d.ts +563 -0
  9. package/dist/types/border-radius/border-radius.d.ts.map +1 -0
  10. package/dist/types/border-radius/index.d.ts +2 -0
  11. package/dist/types/border-radius/index.d.ts.map +1 -0
  12. package/dist/types/checkbox/checkbox.d.ts +52 -0
  13. package/dist/types/checkbox/checkbox.d.ts.map +1 -0
  14. package/dist/types/checkbox/checkbox.test.d.ts +2 -0
  15. package/dist/types/checkbox/checkbox.test.d.ts.map +1 -0
  16. package/dist/types/checkbox/index.d.ts +2 -0
  17. package/dist/types/checkbox/index.d.ts.map +1 -0
  18. package/dist/types/data.d.ts +24 -0
  19. package/dist/types/data.d.ts.map +1 -0
  20. package/dist/types/index.d.ts +16 -1
  21. package/dist/types/index.d.ts.map +1 -1
  22. package/dist/types/number.d.ts +56 -0
  23. package/dist/types/number.d.ts.map +1 -0
  24. package/dist/types/prop-controllers.d.ts +19 -1
  25. package/dist/types/prop-controllers.d.ts.map +1 -1
  26. package/dist/types/responsive-color.d.ts +200 -0
  27. package/dist/types/responsive-color.d.ts.map +1 -0
  28. package/dist/types/responsive-length.d.ts +210 -0
  29. package/dist/types/responsive-length.d.ts.map +1 -0
  30. package/dist/types/shadows.d.ts +590 -0
  31. package/dist/types/shadows.d.ts.map +1 -0
  32. package/dist/types/shadows.test.d.ts +2 -0
  33. package/dist/types/shadows.test.d.ts.map +1 -0
  34. package/package.json +3 -2
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const colorDataSchema: z.ZodObject<{
3
+ swatchId: z.ZodString;
4
+ alpha: z.ZodNumber;
5
+ }, "strip", z.ZodTypeAny, {
6
+ swatchId: string;
7
+ alpha: number;
8
+ }, {
9
+ swatchId: string;
10
+ alpha: number;
11
+ }>;
12
+ export type ColorData = z.infer<typeof colorDataSchema>;
13
+ export declare const lengthDataSchema: z.ZodObject<{
14
+ value: z.ZodNumber;
15
+ unit: z.ZodUnion<[z.ZodLiteral<"px">, z.ZodLiteral<"%">]>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ value: number;
18
+ unit: "px" | "%";
19
+ }, {
20
+ value: number;
21
+ unit: "px" | "%";
22
+ }>;
23
+ export type LengthData = z.infer<typeof lengthDataSchema>;
24
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -1,3 +1,18 @@
1
- export * from './prop-controllers';
1
+ export type { ColorData, LengthData } from './data';
2
+ export { Border, BorderPropControllerFormat, borderPropControllerDataSchema, getBorderPropControllerDataResponsiveBorderData, getBorderPropControllerDataSwatchIds, createBorderPropControllerDataFromResponsiveBorderData, copyBorderPropControllerData, } from './border';
3
+ export type { ResolveBorderPropControllerValue, ResponsiveBorderData, BorderSideData, BorderDescriptor, BorderPropControllerData, } from './border';
4
+ export { BorderRadius, BorderRadiusPropControllerFormat, borderRadiusPropControllerDataSchema, getBorderRadiusPropControllerDataResponsiveBorderRadiusData, createBorderRadiusPropControllerDataFromResponsiveBorderRadiusData, } from './border-radius';
5
+ export type { BorderRadiusPropControllerData, ResponsiveBorderRadiusData, ResolveBorderRadiusPropControllerValue, BorderRadiusDescriptor, } from './border-radius';
6
+ export { Checkbox, checkboxPropControllerDataSchema, getCheckboxPropControllerDataBoolean, createCheckboxPropControllerDataFromBoolean, } from './checkbox';
7
+ export type { CheckboxDescriptor, CheckboxOptions, CheckboxPropControllerData, ResolveCheckboxPropControllerValue, } from './checkbox';
2
8
  export * from './link';
9
+ export { Number, createNumberPropControllerDataFromNumber, getNumberPropControllerDataNumber, numberPropControllerDataSchema, } from './number';
10
+ export type { NumberDescriptor, NumberOptions, NumberPropControllerData, ResolveNumberPropControllerValue, } from './number';
11
+ export * from './prop-controllers';
12
+ export { ResponsiveColor, copyResponsiveColorPropControllerData, createResponsiveColorPropControllerDataFromResponsiveColorData, getResponsiveColorDataSwatchIds, getResponsiveColorPropControllerDataResponsiveColorData, getResponsiveColorPropControllerDataSawtchIds, responsiveColorPropControllerDataSchema, } from './responsive-color';
13
+ export type { ResponsiveColorData, ResponsiveColorDescriptor, ResponsiveColorOptions, ResponsiveColorPropControllerData, } from './responsive-color';
14
+ export { ResponsiveLength, ResponsiveLengthPropControllerDataV1Type, createResponsiveLengthPropControllerDataFromResponsiveLengthData, getResponsiveLengthPropControllerDataResponsiveLengthData, responsiveLengthPropControllerDataSchema, } from './responsive-length';
15
+ export type { ResolveResponsiveLengthPropControllerValue, ResponsiveLengthData, ResponsiveLengthDescriptor, ResponsiveLengthOptions, ResponsiveLengthPropControllerData, } from './responsive-length';
16
+ export { Shadows, copyShadowsPropControllerData, createShadowsPropControllerDataFromResponsiveShadowsData, getShadowsPropControllerDataResponsiveShadowsData, getShadowsPropControllerDataSwatchIds, shadowsPropControllerDataSchema, } from './shadows';
17
+ export type { ResolveShadowsPropControllerValue, ShadowData, ShadowsData, ShadowsDescriptor, ShadowsPropControllerData, } from './shadows';
3
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnD,OAAO,EACL,MAAM,EACN,0BAA0B,EAC1B,8BAA8B,EAC9B,+CAA+C,EAC/C,oCAAoC,EACpC,sDAAsD,EACtD,4BAA4B,GAC7B,MAAM,UAAU,CAAA;AACjB,YAAY,EACV,gCAAgC,EAChC,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,YAAY,EACZ,gCAAgC,EAChC,oCAAoC,EACpC,2DAA2D,EAC3D,kEAAkE,GACnE,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,8BAA8B,EAC9B,0BAA0B,EAC1B,sCAAsC,EACtC,sBAAsB,GACvB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,QAAQ,EACR,gCAAgC,EAChC,oCAAoC,EACpC,2CAA2C,GAC5C,MAAM,YAAY,CAAA;AACnB,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,YAAY,CAAA;AACnB,cAAc,QAAQ,CAAA;AACtB,OAAO,EACL,MAAM,EACN,wCAAwC,EACxC,iCAAiC,EACjC,8BAA8B,GAC/B,MAAM,UAAU,CAAA;AACjB,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,wBAAwB,EACxB,gCAAgC,GACjC,MAAM,UAAU,CAAA;AACjB,cAAc,oBAAoB,CAAA;AAClC,OAAO,EACL,eAAe,EACf,qCAAqC,EACrC,8DAA8D,EAC9D,+BAA+B,EAC/B,uDAAuD,EACvD,6CAA6C,EAC7C,uCAAuC,GACxC,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,gBAAgB,EAChB,wCAAwC,EACxC,gEAAgE,EAChE,yDAAyD,EACzD,wCAAwC,GACzC,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,0CAA0C,EAC1C,oBAAoB,EACpB,0BAA0B,EAC1B,uBAAuB,EACvB,kCAAkC,GACnC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,OAAO,EACP,6BAA6B,EAC7B,wDAAwD,EACxD,iDAAiD,EACjD,qCAAqC,EACrC,+BAA+B,GAChC,MAAM,WAAW,CAAA;AAClB,YAAY,EACV,iCAAiC,EACjC,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,WAAW,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { z } from 'zod';
2
+ import { Options, Types } from './prop-controllers';
3
+ declare const numberPropControllerDataV0Schema: z.ZodNumber;
4
+ type NumberPropControllerDataV0 = z.infer<typeof numberPropControllerDataV0Schema>;
5
+ declare const numberPropControllerDataV1Schema: z.ZodObject<{
6
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::number::v1">;
7
+ value: z.ZodNumber;
8
+ }, "strip", z.ZodTypeAny, {
9
+ value: number;
10
+ "@@makeswift/type": "prop-controllers::number::v1";
11
+ }, {
12
+ value: number;
13
+ "@@makeswift/type": "prop-controllers::number::v1";
14
+ }>;
15
+ type NumberPropControllerDataV1 = z.infer<typeof numberPropControllerDataV1Schema>;
16
+ export declare const numberPropControllerDataSchema: z.ZodUnion<[z.ZodNumber, z.ZodObject<{
17
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::number::v1">;
18
+ value: z.ZodNumber;
19
+ }, "strip", z.ZodTypeAny, {
20
+ value: number;
21
+ "@@makeswift/type": "prop-controllers::number::v1";
22
+ }, {
23
+ value: number;
24
+ "@@makeswift/type": "prop-controllers::number::v1";
25
+ }>]>;
26
+ export type NumberPropControllerData = z.infer<typeof numberPropControllerDataSchema>;
27
+ export type NumberOptions = Options<{
28
+ preset?: NumberPropControllerData;
29
+ label?: string;
30
+ defaultValue?: number;
31
+ min?: number;
32
+ max?: number;
33
+ step?: number;
34
+ suffix?: string;
35
+ hidden?: boolean;
36
+ }>;
37
+ type NumberDescriptorV0<_T = NumberPropControllerDataV0> = {
38
+ type: typeof Types.Number;
39
+ options: NumberOptions;
40
+ };
41
+ type NumberDescriptorV1<_T = NumberPropControllerDataV1> = {
42
+ type: typeof Types.Number;
43
+ version: 1;
44
+ options: NumberOptions;
45
+ };
46
+ export type NumberDescriptor<_T = NumberPropControllerData> = NumberDescriptorV0 | NumberDescriptorV1;
47
+ export type ResolveNumberPropControllerValue<T extends NumberDescriptor> = T extends NumberDescriptor ? number | undefined : never;
48
+ /**
49
+ * @deprecated Imports from `@makeswift/runtime/prop-controllers` are deprecated. Use
50
+ * `@makeswift/runtime/controls` instead.
51
+ */
52
+ export declare function Number(options?: NumberOptions): NumberDescriptorV1;
53
+ export declare function getNumberPropControllerDataNumber(data: NumberPropControllerData): number;
54
+ export declare function createNumberPropControllerDataFromNumber(value: number, definition?: NumberDescriptor): NumberPropControllerData;
55
+ export {};
56
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAsB,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAGvE,QAAA,MAAM,gCAAgC,aAAa,CAAA;AAEnD,KAAK,0BAA0B,GAAG,CAAC,CAAC,KAAK,CACvC,OAAO,gCAAgC,CACxC,CAAA;AAID,QAAA,MAAM,gCAAgC;;;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AC7B,MAAM,CAOR;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,gBAAgB,GAC5B,wBAAwB,CAY1B"}
@@ -1,16 +1,34 @@
1
+ import { z } from 'zod';
1
2
  export declare const Types: {
3
+ readonly Border: "Border";
4
+ readonly BorderRadius: "BorderRadius";
5
+ readonly Checkbox: "Checkbox";
2
6
  readonly Link: "Link";
7
+ readonly Number: "Number";
8
+ readonly Shadows: "Shadows";
9
+ readonly ResponsiveColor: "ResponsiveColor";
10
+ readonly ResponsiveLength: "ResponsiveLength";
3
11
  };
4
12
  export declare const ControlDataTypeKey = "@@makeswift/type";
5
13
  export type Options<T> = T | ((props: Record<string, unknown>, deviceMode: Device) => T);
6
14
  export type ResolveOptions<T extends Options<unknown>> = T extends Options<infer U> ? U : never;
7
- export type Device = string;
15
+ declare const deviceSchema: z.ZodString;
16
+ export type Device = z.infer<typeof deviceSchema>;
17
+ declare function createDeviceOverrideSchema<T extends z.ZodTypeAny>(schema: T): z.ZodObject<{
18
+ deviceId: typeof deviceSchema;
19
+ value: T;
20
+ }>;
8
21
  export type DeviceOverride<T> = {
9
22
  deviceId: Device;
10
23
  value: T;
11
24
  };
25
+ export declare function createResponsiveValueSchema<T extends z.ZodTypeAny>(schema: T): z.ZodArray<ReturnType<typeof createDeviceOverrideSchema<T>>>;
12
26
  export type ResponsiveValue<T> = DeviceOverride<T>[];
13
27
  export type ResponsiveValueType<T> = T extends ResponsiveValue<infer U> ? U : never;
28
+ export type Color = {
29
+ swatchId: string;
30
+ alpha: number;
31
+ };
14
32
  type Data = undefined | null | boolean | number | string | Data[] | {
15
33
  [key: string]: Data;
16
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"prop-controllers.d.ts","sourceRoot":"","sources":["../../src/prop-controllers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;CAER,CAAA;AAEV,eAAO,MAAM,kBAAkB,qBAAqB,CAAA;AAEpD,MAAM,M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E,IAAI,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEzE,KAAK,OAAO,GAAG,WAAW,GAAG,gBAAgB,CAAA;AAE7C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;CAC5C,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAA;CACxC,CAAA"}
@@ -0,0 +1,200 @@
1
+ import { z } from 'zod';
2
+ import { CopyContext, Options, Types } from './prop-controllers';
3
+ declare const responsiveColorDataSchema: z.ZodArray<z.ZodObject<{
4
+ deviceId: z.ZodString;
5
+ value: z.ZodObject<{
6
+ swatchId: z.ZodString;
7
+ alpha: z.ZodNumber;
8
+ }, "strip", z.ZodTypeAny, {
9
+ swatchId: string;
10
+ alpha: number;
11
+ }, {
12
+ swatchId: string;
13
+ alpha: number;
14
+ }>;
15
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
16
+ value: {
17
+ swatchId: string;
18
+ alpha: number;
19
+ };
20
+ deviceId: string;
21
+ }, {
22
+ value: {
23
+ swatchId: string;
24
+ alpha: number;
25
+ };
26
+ deviceId: string;
27
+ }>, "many">;
28
+ export type ResponsiveColorData = z.infer<typeof responsiveColorDataSchema>;
29
+ declare const responsiveColorPropControllerDataV0Schema: z.ZodArray<z.ZodObject<{
30
+ deviceId: z.ZodString;
31
+ value: z.ZodObject<{
32
+ swatchId: z.ZodString;
33
+ alpha: z.ZodNumber;
34
+ }, "strip", z.ZodTypeAny, {
35
+ swatchId: string;
36
+ alpha: number;
37
+ }, {
38
+ swatchId: string;
39
+ alpha: number;
40
+ }>;
41
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
42
+ value: {
43
+ swatchId: string;
44
+ alpha: number;
45
+ };
46
+ deviceId: string;
47
+ }, {
48
+ value: {
49
+ swatchId: string;
50
+ alpha: number;
51
+ };
52
+ deviceId: string;
53
+ }>, "many">;
54
+ type ResponsiveColorPropControllerDataV0 = z.infer<typeof responsiveColorPropControllerDataV0Schema>;
55
+ declare const responsiveColorPropControllerDataV1Schema: z.ZodObject<{
56
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::responsive-color::v1">;
57
+ value: z.ZodArray<z.ZodObject<{
58
+ deviceId: z.ZodString;
59
+ value: z.ZodObject<{
60
+ swatchId: z.ZodString;
61
+ alpha: z.ZodNumber;
62
+ }, "strip", z.ZodTypeAny, {
63
+ swatchId: string;
64
+ alpha: number;
65
+ }, {
66
+ swatchId: string;
67
+ alpha: number;
68
+ }>;
69
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
70
+ value: {
71
+ swatchId: string;
72
+ alpha: number;
73
+ };
74
+ deviceId: string;
75
+ }, {
76
+ value: {
77
+ swatchId: string;
78
+ alpha: number;
79
+ };
80
+ deviceId: string;
81
+ }>, "many">;
82
+ }, "strip", z.ZodTypeAny, {
83
+ value: {
84
+ value: {
85
+ swatchId: string;
86
+ alpha: number;
87
+ };
88
+ deviceId: string;
89
+ }[];
90
+ "@@makeswift/type": "prop-controllers::responsive-color::v1";
91
+ }, {
92
+ value: {
93
+ value: {
94
+ swatchId: string;
95
+ alpha: number;
96
+ };
97
+ deviceId: string;
98
+ }[];
99
+ "@@makeswift/type": "prop-controllers::responsive-color::v1";
100
+ }>;
101
+ type ResponsiveColorPropControllerDataV1 = z.infer<typeof responsiveColorPropControllerDataV1Schema>;
102
+ export declare const responsiveColorPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
103
+ deviceId: z.ZodString;
104
+ value: z.ZodObject<{
105
+ swatchId: z.ZodString;
106
+ alpha: z.ZodNumber;
107
+ }, "strip", z.ZodTypeAny, {
108
+ swatchId: string;
109
+ alpha: number;
110
+ }, {
111
+ swatchId: string;
112
+ alpha: number;
113
+ }>;
114
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
115
+ value: {
116
+ swatchId: string;
117
+ alpha: number;
118
+ };
119
+ deviceId: string;
120
+ }, {
121
+ value: {
122
+ swatchId: string;
123
+ alpha: number;
124
+ };
125
+ deviceId: string;
126
+ }>, "many">, z.ZodObject<{
127
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::responsive-color::v1">;
128
+ value: z.ZodArray<z.ZodObject<{
129
+ deviceId: z.ZodString;
130
+ value: z.ZodObject<{
131
+ swatchId: z.ZodString;
132
+ alpha: z.ZodNumber;
133
+ }, "strip", z.ZodTypeAny, {
134
+ swatchId: string;
135
+ alpha: number;
136
+ }, {
137
+ swatchId: string;
138
+ alpha: number;
139
+ }>;
140
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
141
+ value: {
142
+ swatchId: string;
143
+ alpha: number;
144
+ };
145
+ deviceId: string;
146
+ }, {
147
+ value: {
148
+ swatchId: string;
149
+ alpha: number;
150
+ };
151
+ deviceId: string;
152
+ }>, "many">;
153
+ }, "strip", z.ZodTypeAny, {
154
+ value: {
155
+ value: {
156
+ swatchId: string;
157
+ alpha: number;
158
+ };
159
+ deviceId: string;
160
+ }[];
161
+ "@@makeswift/type": "prop-controllers::responsive-color::v1";
162
+ }, {
163
+ value: {
164
+ value: {
165
+ swatchId: string;
166
+ alpha: number;
167
+ };
168
+ deviceId: string;
169
+ }[];
170
+ "@@makeswift/type": "prop-controllers::responsive-color::v1";
171
+ }>]>;
172
+ export type ResponsiveColorPropControllerData = z.infer<typeof responsiveColorPropControllerDataSchema>;
173
+ export type ResponsiveColorOptions = Options<{
174
+ label?: string;
175
+ placeholder?: string;
176
+ hidden?: boolean;
177
+ }>;
178
+ type ResponsiveColorDescriptorV0<_T = ResponsiveColorPropControllerDataV0> = {
179
+ type: typeof Types.ResponsiveColor;
180
+ options: ResponsiveColorOptions;
181
+ };
182
+ type ResponsiveColorDescriptorV1<_T = ResponsiveColorPropControllerDataV1> = {
183
+ type: typeof Types.ResponsiveColor;
184
+ version: 1;
185
+ options: ResponsiveColorOptions;
186
+ };
187
+ export type ResponsiveColorDescriptor<_T = ResponsiveColorPropControllerData> = ResponsiveColorDescriptorV0 | ResponsiveColorDescriptorV1;
188
+ /**
189
+ * @deprecated Imports from `@makeswift/prop-controllers` are deprecated. Use
190
+ * `@makeswift/runtime/controls` instead.
191
+ */
192
+ export declare function ResponsiveColor(options?: ResponsiveColorOptions): ResponsiveColorDescriptorV1;
193
+ export declare function getResponsiveColorPropControllerDataResponsiveColorData(data: ResponsiveColorPropControllerData): ResponsiveColorData;
194
+ export declare function createResponsiveColorPropControllerDataFromResponsiveColorData(definition: ResponsiveColorDescriptor, responsiveColorData: ResponsiveColorData): ResponsiveColorPropControllerData;
195
+ export declare function getResponsiveColorDataSwatchIds(data: ResponsiveColorData): string[];
196
+ export declare function getResponsiveColorPropControllerDataSawtchIds(data: ResponsiveColorPropControllerData | undefined | null): string[];
197
+ export declare function copyResponsiveColorData(data: ResponsiveColorData, context: CopyContext): ResponsiveColorData;
198
+ export declare function copyResponsiveColorPropControllerData(data: ResponsiveColorPropControllerData | undefined, context: CopyContext): ResponsiveColorPropControllerData | undefined;
199
+ export {};
200
+ //# sourceMappingURL=responsive-color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsive-color.d.ts","sourceRoot":"","sources":["../../src/responsive-color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAEL,WAAW,EACX,OAAO,EACP,KAAK,EAEN,MAAM,oBAAoB,CAAA;AAG3B,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;WAA+C,CAAA;AAE9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,QAAA,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;WAA4B,CAAA;AAE3E,KAAK,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,yCAAyC,CACjD,CAAA;AAKD,QAAA,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7C,CAAA;AAEF,KAAK,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,yCAAyC,CACjD,CAAA;AAED,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGlD,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC,CAAA;AAEF,KAAK,2BAA2B,CAAC,EAAE,GAAG,mCAAmC,IAAI;IAC3E,IAAI,EAAE,OAAO,KAAK,CAAC,eAAe,CAAA;IAClC,OAAO,EAAE,sBAAsB,CAAA;CAChC,CAAA;AAED,KAAK,2BAA2B,CAAC,EAAE,GAAG,mCAAmC,IAAI;IAC3E,IAAI,EAAE,OAAO,KAAK,CAAC,eAAe,CAAA;IAClC,OAAO,EAAE,CAAC,CAAA;IACV,OAAO,EAAE,sBAAsB,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,yBAAyB,CAAC,EAAE,GAAG,iCAAiC,IACxE,2BAA2B,GAC3B,2BAA2B,CAAA;AAE/B;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,OAAO,GAAE,sBAA2B,GACnC,2BAA2B,CAE7B;AAED,wBAAgB,uDAAuD,CACrE,IAAI,EAAE,iCAAiC,GACtC,mBAAmB,CAOrB;AAED,wBAAgB,8DAA8D,CAC5E,UAAU,EAAE,yBAAyB,EACrC,mBAAmB,EAAE,mBAAmB,GACvC,iCAAiC,CAWnC;AAED,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,mBAAmB,GACxB,MAAM,EAAE,CAEV;AAED,wBAAgB,6CAA6C,CAC3D,IAAI,EAAE,iCAAiC,GAAG,SAAS,GAAG,IAAI,GACzD,MAAM,EAAE,CAMV;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,WAAW,GACnB,mBAAmB,CAcrB;AAED,wBAAgB,qCAAqC,CACnD,IAAI,EAAE,iCAAiC,GAAG,SAAS,EACnD,OAAO,EAAE,WAAW,GACnB,iCAAiC,GAAG,SAAS,CAY/C"}
@@ -0,0 +1,210 @@
1
+ import { z } from 'zod';
2
+ import { LengthData } from './data';
3
+ import { Options, Types } from './prop-controllers';
4
+ declare const responsiveLengthDataSchema: z.ZodArray<z.ZodObject<{
5
+ deviceId: z.ZodString;
6
+ value: z.ZodObject<{
7
+ value: z.ZodNumber;
8
+ unit: z.ZodUnion<[z.ZodLiteral<"px">, z.ZodLiteral<"%">]>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ value: number;
11
+ unit: "px" | "%";
12
+ }, {
13
+ value: number;
14
+ unit: "px" | "%";
15
+ }>;
16
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
17
+ value: {
18
+ value: number;
19
+ unit: "px" | "%";
20
+ };
21
+ deviceId: string;
22
+ }, {
23
+ value: {
24
+ value: number;
25
+ unit: "px" | "%";
26
+ };
27
+ deviceId: string;
28
+ }>, "many">;
29
+ export type ResponsiveLengthData = z.infer<typeof responsiveLengthDataSchema>;
30
+ export declare const responsiveLengthPropControllerDataV0Schema: z.ZodArray<z.ZodObject<{
31
+ deviceId: z.ZodString;
32
+ value: z.ZodObject<{
33
+ value: z.ZodNumber;
34
+ unit: z.ZodUnion<[z.ZodLiteral<"px">, z.ZodLiteral<"%">]>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ value: number;
37
+ unit: "px" | "%";
38
+ }, {
39
+ value: number;
40
+ unit: "px" | "%";
41
+ }>;
42
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
43
+ value: {
44
+ value: number;
45
+ unit: "px" | "%";
46
+ };
47
+ deviceId: string;
48
+ }, {
49
+ value: {
50
+ value: number;
51
+ unit: "px" | "%";
52
+ };
53
+ deviceId: string;
54
+ }>, "many">;
55
+ type ResponsiveLengthPropControllerDataV0 = z.infer<typeof responsiveLengthPropControllerDataV0Schema>;
56
+ export declare const ResponsiveLengthPropControllerDataV1Type = "prop-controllers::responsive-length::v1";
57
+ declare const responsiveLengthPropControllerDataV1Schema: z.ZodObject<{
58
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::responsive-length::v1">;
59
+ value: z.ZodArray<z.ZodObject<{
60
+ deviceId: z.ZodString;
61
+ value: z.ZodObject<{
62
+ value: z.ZodNumber;
63
+ unit: z.ZodUnion<[z.ZodLiteral<"px">, z.ZodLiteral<"%">]>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ value: number;
66
+ unit: "px" | "%";
67
+ }, {
68
+ value: number;
69
+ unit: "px" | "%";
70
+ }>;
71
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
72
+ value: {
73
+ value: number;
74
+ unit: "px" | "%";
75
+ };
76
+ deviceId: string;
77
+ }, {
78
+ value: {
79
+ value: number;
80
+ unit: "px" | "%";
81
+ };
82
+ deviceId: string;
83
+ }>, "many">;
84
+ }, "strip", z.ZodTypeAny, {
85
+ value: {
86
+ value: {
87
+ value: number;
88
+ unit: "px" | "%";
89
+ };
90
+ deviceId: string;
91
+ }[];
92
+ "@@makeswift/type": "prop-controllers::responsive-length::v1";
93
+ }, {
94
+ value: {
95
+ value: {
96
+ value: number;
97
+ unit: "px" | "%";
98
+ };
99
+ deviceId: string;
100
+ }[];
101
+ "@@makeswift/type": "prop-controllers::responsive-length::v1";
102
+ }>;
103
+ type ResponsiveLengthPropControllerDataV1 = z.infer<typeof responsiveLengthPropControllerDataV1Schema>;
104
+ export declare const responsiveLengthPropControllerDataSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
105
+ deviceId: z.ZodString;
106
+ value: z.ZodObject<{
107
+ value: z.ZodNumber;
108
+ unit: z.ZodUnion<[z.ZodLiteral<"px">, z.ZodLiteral<"%">]>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ value: number;
111
+ unit: "px" | "%";
112
+ }, {
113
+ value: number;
114
+ unit: "px" | "%";
115
+ }>;
116
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
117
+ value: {
118
+ value: number;
119
+ unit: "px" | "%";
120
+ };
121
+ deviceId: string;
122
+ }, {
123
+ value: {
124
+ value: number;
125
+ unit: "px" | "%";
126
+ };
127
+ deviceId: string;
128
+ }>, "many">, z.ZodObject<{
129
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::responsive-length::v1">;
130
+ value: z.ZodArray<z.ZodObject<{
131
+ deviceId: z.ZodString;
132
+ value: z.ZodObject<{
133
+ value: z.ZodNumber;
134
+ unit: z.ZodUnion<[z.ZodLiteral<"px">, z.ZodLiteral<"%">]>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ value: number;
137
+ unit: "px" | "%";
138
+ }, {
139
+ value: number;
140
+ unit: "px" | "%";
141
+ }>;
142
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
143
+ value: {
144
+ value: number;
145
+ unit: "px" | "%";
146
+ };
147
+ deviceId: string;
148
+ }, {
149
+ value: {
150
+ value: number;
151
+ unit: "px" | "%";
152
+ };
153
+ deviceId: string;
154
+ }>, "many">;
155
+ }, "strip", z.ZodTypeAny, {
156
+ value: {
157
+ value: {
158
+ value: number;
159
+ unit: "px" | "%";
160
+ };
161
+ deviceId: string;
162
+ }[];
163
+ "@@makeswift/type": "prop-controllers::responsive-length::v1";
164
+ }, {
165
+ value: {
166
+ value: {
167
+ value: number;
168
+ unit: "px" | "%";
169
+ };
170
+ deviceId: string;
171
+ }[];
172
+ "@@makeswift/type": "prop-controllers::responsive-length::v1";
173
+ }>]>;
174
+ export type ResponsiveLengthPropControllerData = z.infer<typeof responsiveLengthPropControllerDataSchema>;
175
+ export type LengthOption = {
176
+ value: 'px';
177
+ label: 'Pixels';
178
+ icon: 'Px16';
179
+ } | {
180
+ value: '%';
181
+ label: 'Percentage';
182
+ icon: 'Percent16';
183
+ };
184
+ export type ResponsiveLengthOptions = Options<{
185
+ preset?: ResponsiveLengthPropControllerData;
186
+ label?: string;
187
+ options?: LengthOption[];
188
+ defaultValue?: LengthData;
189
+ hidden?: boolean;
190
+ }>;
191
+ type ResponsiveLengthDescriptorV0<_T = ResponsiveLengthPropControllerDataV0> = {
192
+ type: typeof Types.ResponsiveLength;
193
+ options: ResponsiveLengthOptions;
194
+ };
195
+ type ResponsiveLengthDescriptorV1<_T = ResponsiveLengthPropControllerDataV1> = {
196
+ type: typeof Types.ResponsiveLength;
197
+ version: 1;
198
+ options: ResponsiveLengthOptions;
199
+ };
200
+ export type ResponsiveLengthDescriptor<_T = ResponsiveLengthPropControllerData> = ResponsiveLengthDescriptorV0<_T> | ResponsiveLengthDescriptorV1<_T>;
201
+ export type ResolveResponsiveLengthPropControllerValue<T extends ResponsiveLengthDescriptor> = T extends ResponsiveLengthDescriptor ? ResponsiveLengthData | undefined : never;
202
+ /**
203
+ * @deprecated Imports from `@makeswift/prop-controllers` are deprecated. Use
204
+ * `@makeswift/runtime/controls` instead.
205
+ */
206
+ export declare function ResponsiveLength(options?: ResponsiveLengthOptions): ResponsiveLengthDescriptorV1;
207
+ export declare function getResponsiveLengthPropControllerDataResponsiveLengthData(data: ResponsiveLengthPropControllerData): ResponsiveLengthData;
208
+ export declare function createResponsiveLengthPropControllerDataFromResponsiveLengthData(definition: ResponsiveLengthDescriptor, responsiveLengthData: ResponsiveLengthData): ResponsiveLengthPropControllerData;
209
+ export {};
210
+ //# sourceMappingURL=responsive-length.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsive-length.d.ts","sourceRoot":"","sources":["../../src/responsive-length.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,UAAU,EAAoB,MAAM,QAAQ,CAAA;AACrD,OAAO,EAEL,OAAO,EACP,KAAK,EAEN,MAAM,oBAAoB,CAAA;AAG3B,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;WAAgD,CAAA;AAEhF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;WAC3B,CAAA;AAE5B,KAAK,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,0CAA0C,CAClD,CAAA;AAED,eAAO,MAAM,wCAAwC,4CACV,CAAA;AAE3C,QAAA,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG9C,CAAA;AAEF,KAAK,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,0CAA0C,CAClD,C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