@ankhorage/zora 2.9.1 → 2.9.3

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 (74) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/components/button/meta.d.ts +15 -0
  4. package/dist/components/button/meta.d.ts.map +1 -1
  5. package/dist/components/button/meta.js +4 -0
  6. package/dist/components/button/meta.js.map +1 -1
  7. package/dist/components/button/themeRecipeMeta.d.ts +33 -0
  8. package/dist/components/button/themeRecipeMeta.d.ts.map +1 -0
  9. package/dist/components/button/themeRecipeMeta.js +33 -0
  10. package/dist/components/button/themeRecipeMeta.js.map +1 -0
  11. package/dist/components/card/meta.d.ts +17 -0
  12. package/dist/components/card/meta.d.ts.map +1 -1
  13. package/dist/components/card/meta.js +5 -0
  14. package/dist/components/card/meta.js.map +1 -1
  15. package/dist/components/card/themeRecipeMeta.d.ts +31 -0
  16. package/dist/components/card/themeRecipeMeta.d.ts.map +1 -0
  17. package/dist/components/card/themeRecipeMeta.js +31 -0
  18. package/dist/components/card/themeRecipeMeta.js.map +1 -0
  19. package/dist/components/heading/meta.d.ts +42 -0
  20. package/dist/components/heading/meta.d.ts.map +1 -1
  21. package/dist/components/heading/meta.js +16 -0
  22. package/dist/components/heading/meta.js.map +1 -1
  23. package/dist/components/text/meta.d.ts +33 -0
  24. package/dist/components/text/meta.d.ts.map +1 -1
  25. package/dist/components/text/meta.js +9 -0
  26. package/dist/components/text/meta.js.map +1 -1
  27. package/dist/components/text/themeRecipeMeta.d.ts +32 -0
  28. package/dist/components/text/themeRecipeMeta.d.ts.map +1 -0
  29. package/dist/components/text/themeRecipeMeta.js +32 -0
  30. package/dist/components/text/themeRecipeMeta.js.map +1 -0
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/index.js.map +1 -1
  35. package/dist/metadata/index.d.ts +4 -1
  36. package/dist/metadata/index.d.ts.map +1 -1
  37. package/dist/metadata/index.js +2 -0
  38. package/dist/metadata/index.js.map +1 -1
  39. package/dist/metadata/themeRecipeMeta.d.ts +3 -0
  40. package/dist/metadata/themeRecipeMeta.d.ts.map +1 -0
  41. package/dist/metadata/themeRecipeMeta.js +11 -0
  42. package/dist/metadata/themeRecipeMeta.js.map +1 -0
  43. package/dist/metadata/themeRecipeTypes.d.ts +31 -0
  44. package/dist/metadata/themeRecipeTypes.d.ts.map +1 -0
  45. package/dist/metadata/themeRecipeTypes.js +8 -0
  46. package/dist/metadata/themeRecipeTypes.js.map +1 -0
  47. package/dist/metadata/types.d.ts +7 -0
  48. package/dist/metadata/types.d.ts.map +1 -1
  49. package/dist/metadata/types.js.map +1 -1
  50. package/dist/patterns/panel/meta.d.ts +17 -0
  51. package/dist/patterns/panel/meta.d.ts.map +1 -1
  52. package/dist/patterns/panel/meta.js +5 -0
  53. package/dist/patterns/panel/meta.js.map +1 -1
  54. package/dist/patterns/panel/themeRecipeMeta.d.ts +31 -0
  55. package/dist/patterns/panel/themeRecipeMeta.d.ts.map +1 -0
  56. package/dist/patterns/panel/themeRecipeMeta.js +31 -0
  57. package/dist/patterns/panel/themeRecipeMeta.js.map +1 -0
  58. package/package.json +1 -1
  59. package/src/components/button/meta.ts +4 -0
  60. package/src/components/button/themeRecipeMeta.ts +34 -0
  61. package/src/components/card/meta.ts +5 -0
  62. package/src/components/card/themeRecipeMeta.ts +32 -0
  63. package/src/components/heading/meta.ts +16 -0
  64. package/src/components/text/meta.ts +9 -0
  65. package/src/components/text/themeRecipeMeta.ts +33 -0
  66. package/src/index.ts +15 -1
  67. package/src/metadata/authoringMeta.test.ts +72 -0
  68. package/src/metadata/index.ts +13 -0
  69. package/src/metadata/themeRecipeMeta.test.ts +70 -0
  70. package/src/metadata/themeRecipeMeta.ts +12 -0
  71. package/src/metadata/themeRecipeTypes.ts +47 -0
  72. package/src/metadata/types.ts +8 -0
  73. package/src/patterns/panel/meta.ts +5 -0
  74. package/src/patterns/panel/themeRecipeMeta.ts +32 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 72f5814: Classify Heading content and semantics for instance authoring while keeping visual presentation under component theme authority.
8
+
9
+ ## 2.9.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 2f1bf27: Add canonical prop authoring authority metadata and a separate ZORA-owned component and pattern theme recipe metadata registry.
14
+
3
15
  ## 2.9.1
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # ZORA
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v2.9.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v2.9.2](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
7
7
 
8
8
  Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.
9
9
 
@@ -26,6 +26,9 @@ export declare const buttonMeta: {
26
26
  readonly category: "Content";
27
27
  readonly label: "Label";
28
28
  readonly default: "Continue";
29
+ readonly authoring: {
30
+ readonly authority: "instance";
31
+ };
29
32
  };
30
33
  readonly color: {
31
34
  readonly type: "enum";
@@ -33,6 +36,10 @@ export declare const buttonMeta: {
33
36
  readonly label: "Color";
34
37
  readonly enum: readonly ["primary", "secondary", "tertiary", "quaternary", "neutral", "success", "warning", "error", "info", "danger"];
35
38
  readonly default: "primary";
39
+ readonly authoring: {
40
+ readonly authority: "theme";
41
+ readonly scope: "component";
42
+ };
36
43
  };
37
44
  readonly variant: {
38
45
  readonly type: "enum";
@@ -40,6 +47,10 @@ export declare const buttonMeta: {
40
47
  readonly label: "Variant";
41
48
  readonly enum: readonly ["solid", "outline", "ghost", "soft"];
42
49
  readonly default: "solid";
50
+ readonly authoring: {
51
+ readonly authority: "theme";
52
+ readonly scope: "component";
53
+ };
43
54
  };
44
55
  readonly size: {
45
56
  readonly type: "enum";
@@ -47,6 +58,10 @@ export declare const buttonMeta: {
47
58
  readonly label: "Size";
48
59
  readonly enum: readonly ["s", "m", "l"];
49
60
  readonly default: "m";
61
+ readonly authoring: {
62
+ readonly authority: "theme";
63
+ readonly scope: "component";
64
+ };
50
65
  };
51
66
  };
52
67
  };
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/button/meta.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDe,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/button/meta.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDe,CAAC"}
@@ -27,6 +27,7 @@ export const buttonMeta = {
27
27
  category: 'Content',
28
28
  label: 'Label',
29
29
  default: 'Continue',
30
+ authoring: { authority: 'instance' },
30
31
  },
31
32
  color: {
32
33
  type: 'enum',
@@ -34,6 +35,7 @@ export const buttonMeta = {
34
35
  label: 'Color',
35
36
  enum: [...ZORA_COLORS],
36
37
  default: 'primary',
38
+ authoring: { authority: 'theme', scope: 'component' },
37
39
  },
38
40
  variant: {
39
41
  type: 'enum',
@@ -41,6 +43,7 @@ export const buttonMeta = {
41
43
  label: 'Variant',
42
44
  enum: ['solid', 'outline', 'ghost', 'soft'],
43
45
  default: 'solid',
46
+ authoring: { authority: 'theme', scope: 'component' },
44
47
  },
45
48
  size: {
46
49
  type: 'enum',
@@ -48,6 +51,7 @@ export const buttonMeta = {
48
51
  label: 'Size',
49
52
  enum: ['s', 'm', 'l'],
50
53
  default: 'm',
54
+ authoring: { authority: 'theme', scope: 'component' },
51
55
  },
52
56
  },
53
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/button/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE;YACZ,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,GAAG;SACV;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,cAAc;YACzB,WAAW,EAAE,sCAAsC;YACnD,aAAa,EAAE,EAAE;SAClB;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,UAAU;SACpB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC;YACtB,OAAO,EAAE,SAAS;SACnB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC;YAC3C,OAAO,EAAE,OAAO;SACjB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;YACrB,OAAO,EAAE,GAAG;SACb;KACF;CACmC,CAAC","sourcesContent":["import { ZORA_COLORS } from '../../internal/colorModel';\nimport type { ZoraComponentMeta } from '../../metadata';\n\nexport const buttonMeta = {\n name: 'Button',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Button',\n defaultProps: {\n children: 'Continue',\n color: 'primary',\n variant: 'solid',\n size: 'm',\n },\n },\n events: {\n press: {\n label: 'Press',\n eventType: 'button.press',\n description: 'Emitted when the button action runs.',\n payloadFields: [],\n },\n },\n props: {\n children: {\n type: 'string',\n category: 'Content',\n label: 'Label',\n default: 'Continue',\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: [...ZORA_COLORS],\n default: 'primary',\n },\n variant: {\n type: 'enum',\n category: 'Style',\n label: 'Variant',\n enum: ['solid', 'outline', 'ghost', 'soft'],\n default: 'solid',\n },\n size: {\n type: 'enum',\n category: 'Style',\n label: 'Size',\n enum: ['s', 'm', 'l'],\n default: 'm',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/button/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IAC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ACtD;KACF;CACmC,CAAC","sourcesContent":["import { ZORA_COLORS } from '../../internal/colorModel';\nimport type { ZoraComponentMeta } from '../../metadata';\n\nexport const buttonMeta = {\n name: 'Button',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Button',\n defaultProps: {\n children: 'Continue',\n color: 'primary',\n variant: 'solid',\n size: 'm',\n },\n },\n events: {\n press: {\n label: 'Press',\n eventType: 'button.press',\n description: 'Emitted when the button action runs.',\n payloadFields: [],\n },\n },\n props: {\n children: {\n type: 'string',\n category: 'Content',\n label: 'Label',\n default: 'Continue',\n authoring: { authority: 'instance' },\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: [...ZORA_COLORS],\n default: 'primary',\n authoring: { authority: 'theme', scope: 'component' },\n },\n variant: {\n type: 'enum',\n category: 'Style',\n label: 'Variant',\n enum: ['solid', 'outline', 'ghost', 'soft'],\n default: 'solid',\n authoring: { authority: 'theme', scope: 'component' },\n },\n size: {\n type: 'enum',\n category: 'Style',\n label: 'Size',\n enum: ['s', 'm', 'l'],\n default: 'm',\n authoring: { authority: 'theme', scope: 'component' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,33 @@
1
+ export declare const buttonThemeRecipeMeta: {
2
+ readonly name: "Button";
3
+ readonly kind: "component";
4
+ readonly description: "Maps shared theme tokens and semantic choices into Button presentation.";
5
+ readonly fields: {
6
+ readonly color: {
7
+ readonly type: "token";
8
+ readonly tokenFamily: "colors";
9
+ readonly label: "Color";
10
+ readonly default: "primary";
11
+ };
12
+ readonly variant: {
13
+ readonly type: "choice";
14
+ readonly label: "Variant";
15
+ readonly options: readonly ["solid", "outline", "ghost", "soft"];
16
+ readonly default: "solid";
17
+ };
18
+ readonly size: {
19
+ readonly type: "choice";
20
+ readonly label: "Size";
21
+ readonly description: "A Button-specific semantic scale, not a universal pixel size.";
22
+ readonly options: readonly ["s", "m", "l"];
23
+ readonly default: "m";
24
+ };
25
+ readonly radius: {
26
+ readonly type: "token";
27
+ readonly tokenFamily: "radii";
28
+ readonly label: "Corner radius";
29
+ readonly default: "m";
30
+ };
31
+ };
32
+ };
33
+ //# sourceMappingURL=themeRecipeMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themeRecipeMeta.d.ts","sourceRoot":"","sources":["../../../src/components/button/themeRecipeMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BM,CAAC"}
@@ -0,0 +1,33 @@
1
+ export const buttonThemeRecipeMeta = {
2
+ name: 'Button',
3
+ kind: 'component',
4
+ description: 'Maps shared theme tokens and semantic choices into Button presentation.',
5
+ fields: {
6
+ color: {
7
+ type: 'token',
8
+ tokenFamily: 'colors',
9
+ label: 'Color',
10
+ default: 'primary',
11
+ },
12
+ variant: {
13
+ type: 'choice',
14
+ label: 'Variant',
15
+ options: ['solid', 'outline', 'ghost', 'soft'],
16
+ default: 'solid',
17
+ },
18
+ size: {
19
+ type: 'choice',
20
+ label: 'Size',
21
+ description: 'A Button-specific semantic scale, not a universal pixel size.',
22
+ options: ['s', 'm', 'l'],
23
+ default: 'm',
24
+ },
25
+ radius: {
26
+ type: 'token',
27
+ tokenFamily: 'radii',
28
+ label: 'Corner radius',
29
+ default: 'm',
30
+ },
31
+ },
32
+ };
33
+ //# sourceMappingURL=themeRecipeMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themeRecipeMeta.js","sourceRoot":"","sources":["../../../src/components/button/themeRecipeMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,yEAAyE;IACtF,MAAM,EAAE;QACN,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,QAAQ;YACrB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;SACnB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC;YAC9C,OAAO,EAAE,OAAO;SACjB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;YACxB,OAAO,EAAE,GAAG;SACb;QACD,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO;YACpB,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,GAAG;SACb;KACF;CACqC,CAAC","sourcesContent":["import type { ZoraThemeRecipeMeta } from '../../metadata/themeRecipeTypes';\n\nexport const buttonThemeRecipeMeta = {\n name: 'Button',\n kind: 'component',\n description: 'Maps shared theme tokens and semantic choices into Button presentation.',\n fields: {\n color: {\n type: 'token',\n tokenFamily: 'colors',\n label: 'Color',\n default: 'primary',\n },\n variant: {\n type: 'choice',\n label: 'Variant',\n options: ['solid', 'outline', 'ghost', 'soft'],\n default: 'solid',\n },\n size: {\n type: 'choice',\n label: 'Size',\n description: 'A Button-specific semantic scale, not a universal pixel size.',\n options: ['s', 'm', 'l'],\n default: 'm',\n },\n radius: {\n type: 'token',\n tokenFamily: 'radii',\n label: 'Corner radius',\n default: 'm',\n },\n },\n} as const satisfies ZoraThemeRecipeMeta;\n"]}
@@ -15,16 +15,25 @@ export declare const cardMeta: {
15
15
  readonly type: "string";
16
16
  readonly category: "Content";
17
17
  readonly label: "Title";
18
+ readonly authoring: {
19
+ readonly authority: "instance";
20
+ };
18
21
  };
19
22
  readonly description: {
20
23
  readonly type: "string";
21
24
  readonly category: "Content";
22
25
  readonly label: "Description";
26
+ readonly authoring: {
27
+ readonly authority: "instance";
28
+ };
23
29
  };
24
30
  readonly eyebrow: {
25
31
  readonly type: "string";
26
32
  readonly category: "Content";
27
33
  readonly label: "Eyebrow";
34
+ readonly authoring: {
35
+ readonly authority: "instance";
36
+ };
28
37
  };
29
38
  readonly tone: {
30
39
  readonly type: "enum";
@@ -32,12 +41,20 @@ export declare const cardMeta: {
32
41
  readonly label: "Tone";
33
42
  readonly enum: readonly ["default", "subtle", "outline"];
34
43
  readonly default: "default";
44
+ readonly authoring: {
45
+ readonly authority: "theme";
46
+ readonly scope: "component";
47
+ };
35
48
  };
36
49
  readonly compact: {
37
50
  readonly type: "boolean";
38
51
  readonly category: "Layout";
39
52
  readonly label: "Compact";
40
53
  readonly default: false;
54
+ readonly authoring: {
55
+ readonly authority: "theme";
56
+ readonly scope: "component";
57
+ };
41
58
  };
42
59
  };
43
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/card/meta.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CiB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/card/meta.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CiB,CAAC"}
@@ -16,16 +16,19 @@ export const cardMeta = {
16
16
  type: 'string',
17
17
  category: 'Content',
18
18
  label: 'Title',
19
+ authoring: { authority: 'instance' },
19
20
  },
20
21
  description: {
21
22
  type: 'string',
22
23
  category: 'Content',
23
24
  label: 'Description',
25
+ authoring: { authority: 'instance' },
24
26
  },
25
27
  eyebrow: {
26
28
  type: 'string',
27
29
  category: 'Content',
28
30
  label: 'Eyebrow',
31
+ authoring: { authority: 'instance' },
29
32
  },
30
33
  tone: {
31
34
  type: 'enum',
@@ -33,12 +36,14 @@ export const cardMeta = {
33
36
  label: 'Tone',
34
37
  enum: ['default', 'subtle', 'outline'],
35
38
  default: 'default',
39
+ authoring: { authority: 'theme', scope: 'component' },
36
40
  },
37
41
  compact: {
38
42
  type: 'boolean',
39
43
  category: 'Layout',
40
44
  label: 'Compact',
41
45
  default: false,
46
+ authoring: { authority: 'theme', scope: 'component' },
42
47
  },
43
48
  },
44
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/card/meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,YAAY,EAAE;YACZ,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,SAAS;SAChB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;SACf;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;SACrB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,SAAS;SACjB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;YACtC,OAAO,EAAE,SAAS;SACnB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;SACf;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';\n\nexport const cardMeta = {\n name: 'Card',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Card',\n defaultProps: {\n title: 'Card',\n tone: 'default',\n },\n },\n props: {\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n },\n eyebrow: {\n type: 'string',\n category: 'Content',\n label: 'Eyebrow',\n },\n tone: {\n type: 'enum',\n category: 'Style',\n label: 'Tone',\n enum: ['default', 'subtle', 'outline'],\n default: 'default',\n },\n compact: {\n type: 'boolean',\n category: 'Layout',\n label: 'Compact',\n default: false,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/card/meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,YAAY,EAAE;YACZ,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,SAAS;SAChB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;YACtC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE;SACtD;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE;SACtD;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';\n\nexport const cardMeta = {\n name: 'Card',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Card',\n defaultProps: {\n title: 'Card',\n tone: 'default',\n },\n },\n props: {\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n authoring: { authority: 'instance' },\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n authoring: { authority: 'instance' },\n },\n eyebrow: {\n type: 'string',\n category: 'Content',\n label: 'Eyebrow',\n authoring: { authority: 'instance' },\n },\n tone: {\n type: 'enum',\n category: 'Style',\n label: 'Tone',\n enum: ['default', 'subtle', 'outline'],\n default: 'default',\n authoring: { authority: 'theme', scope: 'component' },\n },\n compact: {\n type: 'boolean',\n category: 'Layout',\n label: 'Compact',\n default: false,\n authoring: { authority: 'theme', scope: 'component' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,31 @@
1
+ export declare const cardThemeRecipeMeta: {
2
+ readonly name: "Card";
3
+ readonly kind: "component";
4
+ readonly description: "Maps global rhythm and surface tokens into Card presentation.";
5
+ readonly fields: {
6
+ readonly tone: {
7
+ readonly type: "choice";
8
+ readonly label: "Tone";
9
+ readonly options: readonly ["default", "subtle", "outline"];
10
+ readonly default: "default";
11
+ };
12
+ readonly padding: {
13
+ readonly type: "token";
14
+ readonly tokenFamily: "spacing";
15
+ readonly label: "Padding";
16
+ readonly default: "l";
17
+ };
18
+ readonly radius: {
19
+ readonly type: "token";
20
+ readonly tokenFamily: "radii";
21
+ readonly label: "Corner radius";
22
+ readonly default: "l";
23
+ };
24
+ readonly compact: {
25
+ readonly type: "boolean";
26
+ readonly label: "Compact";
27
+ readonly default: false;
28
+ };
29
+ };
30
+ };
31
+ //# sourceMappingURL=themeRecipeMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themeRecipeMeta.d.ts","sourceRoot":"","sources":["../../../src/components/card/themeRecipeMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BQ,CAAC"}
@@ -0,0 +1,31 @@
1
+ export const cardThemeRecipeMeta = {
2
+ name: 'Card',
3
+ kind: 'component',
4
+ description: 'Maps global rhythm and surface tokens into Card presentation.',
5
+ fields: {
6
+ tone: {
7
+ type: 'choice',
8
+ label: 'Tone',
9
+ options: ['default', 'subtle', 'outline'],
10
+ default: 'default',
11
+ },
12
+ padding: {
13
+ type: 'token',
14
+ tokenFamily: 'spacing',
15
+ label: 'Padding',
16
+ default: 'l',
17
+ },
18
+ radius: {
19
+ type: 'token',
20
+ tokenFamily: 'radii',
21
+ label: 'Corner radius',
22
+ default: 'l',
23
+ },
24
+ compact: {
25
+ type: 'boolean',
26
+ label: 'Compact',
27
+ default: false,
28
+ },
29
+ },
30
+ };
31
+ //# sourceMappingURL=themeRecipeMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themeRecipeMeta.js","sourceRoot":"","sources":["../../../src/components/card/themeRecipeMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,+DAA+D;IAC5E,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;YACzC,OAAO,EAAE,SAAS;SACnB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,SAAS;YACtB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,GAAG;SACb;QACD,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO;YACpB,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,GAAG;SACb;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;SACf;KACF;CACqC,CAAC","sourcesContent":["import type { ZoraThemeRecipeMeta } from '../../metadata/themeRecipeTypes';\n\nexport const cardThemeRecipeMeta = {\n name: 'Card',\n kind: 'component',\n description: 'Maps global rhythm and surface tokens into Card presentation.',\n fields: {\n tone: {\n type: 'choice',\n label: 'Tone',\n options: ['default', 'subtle', 'outline'],\n default: 'default',\n },\n padding: {\n type: 'token',\n tokenFamily: 'spacing',\n label: 'Padding',\n default: 'l',\n },\n radius: {\n type: 'token',\n tokenFamily: 'radii',\n label: 'Corner radius',\n default: 'l',\n },\n compact: {\n type: 'boolean',\n label: 'Compact',\n default: false,\n },\n },\n} as const satisfies ZoraThemeRecipeMeta;\n"]}
@@ -22,11 +22,17 @@ export declare const headingMeta: {
22
22
  readonly category: "Content";
23
23
  readonly label: "Text";
24
24
  readonly default: "Heading";
25
+ readonly authoring: {
26
+ readonly authority: "instance";
27
+ };
25
28
  };
26
29
  readonly i18nKey: {
27
30
  readonly type: "string";
28
31
  readonly category: "Content";
29
32
  readonly label: "i18n key";
33
+ readonly authoring: {
34
+ readonly authority: "instance";
35
+ };
30
36
  };
31
37
  readonly level: {
32
38
  readonly type: "enum";
@@ -34,41 +40,77 @@ export declare const headingMeta: {
34
40
  readonly label: "Level";
35
41
  readonly enum: readonly [1, 2, 3, 4, 5, 6];
36
42
  readonly default: 2;
43
+ readonly authoring: {
44
+ readonly authority: "instance";
45
+ };
46
+ };
47
+ readonly size: {
48
+ readonly type: "enum";
49
+ readonly category: "Typography";
50
+ readonly label: "Size";
51
+ readonly enum: readonly ["display", "h1", "h2", "h3", "h4", "h5", "h6"];
52
+ readonly authoring: {
53
+ readonly authority: "theme";
54
+ readonly scope: "component";
55
+ };
37
56
  };
38
57
  readonly color: {
39
58
  readonly type: "enum";
40
59
  readonly category: "Style";
41
60
  readonly label: "Color";
42
61
  readonly enum: readonly ["primary", "secondary", "tertiary", "quaternary", "neutral", "success", "warning", "error", "info", "danger"];
62
+ readonly authoring: {
63
+ readonly authority: "theme";
64
+ readonly scope: "component";
65
+ };
43
66
  };
44
67
  readonly emphasis: {
45
68
  readonly type: "enum";
46
69
  readonly category: "Style";
47
70
  readonly label: "Emphasis";
48
71
  readonly enum: readonly ["default", "muted", "subtle", "inverse"];
72
+ readonly authoring: {
73
+ readonly authority: "theme";
74
+ readonly scope: "component";
75
+ };
49
76
  };
50
77
  readonly align: {
51
78
  readonly type: "enum";
52
79
  readonly category: "Layout";
53
80
  readonly label: "Align";
54
81
  readonly enum: readonly ["auto", "left", "right", "center", "justify"];
82
+ readonly authoring: {
83
+ readonly authority: "theme";
84
+ readonly scope: "component";
85
+ };
55
86
  };
56
87
  readonly weight: {
57
88
  readonly type: "enum";
58
89
  readonly category: "Typography";
59
90
  readonly label: "Weight";
60
91
  readonly enum: readonly ["regular", "medium", "semiBold", "bold"];
92
+ readonly authoring: {
93
+ readonly authority: "theme";
94
+ readonly scope: "component";
95
+ };
61
96
  };
62
97
  readonly italic: {
63
98
  readonly type: "boolean";
64
99
  readonly category: "Typography";
65
100
  readonly label: "Italic";
66
101
  readonly default: false;
102
+ readonly authoring: {
103
+ readonly authority: "theme";
104
+ readonly scope: "component";
105
+ };
67
106
  };
68
107
  readonly numberOfLines: {
69
108
  readonly type: "number";
70
109
  readonly category: "Layout";
71
110
  readonly label: "Line clamp";
111
+ readonly authoring: {
112
+ readonly authority: "instance";
113
+ };
72
114
  };
73
115
  };
74
116
  };
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/heading/meta.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEc,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/heading/meta.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFc,CAAC"}
@@ -20,11 +20,13 @@ export const headingMeta = {
20
20
  category: 'Content',
21
21
  label: 'Text',
22
22
  default: 'Heading',
23
+ authoring: { authority: 'instance' },
23
24
  },
24
25
  i18nKey: {
25
26
  type: 'string',
26
27
  category: 'Content',
27
28
  label: 'i18n key',
29
+ authoring: { authority: 'instance' },
28
30
  },
29
31
  level: {
30
32
  type: 'enum',
@@ -32,41 +34,55 @@ export const headingMeta = {
32
34
  label: 'Level',
33
35
  enum: [1, 2, 3, 4, 5, 6],
34
36
  default: 2,
37
+ authoring: { authority: 'instance' },
38
+ },
39
+ size: {
40
+ type: 'enum',
41
+ category: 'Typography',
42
+ label: 'Size',
43
+ enum: ['display', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
44
+ authoring: { authority: 'theme', scope: 'component' },
35
45
  },
36
46
  color: {
37
47
  type: 'enum',
38
48
  category: 'Style',
39
49
  label: 'Color',
40
50
  enum: ZORA_COLORS,
51
+ authoring: { authority: 'theme', scope: 'component' },
41
52
  },
42
53
  emphasis: {
43
54
  type: 'enum',
44
55
  category: 'Style',
45
56
  label: 'Emphasis',
46
57
  enum: ZORA_EMPHASES,
58
+ authoring: { authority: 'theme', scope: 'component' },
47
59
  },
48
60
  align: {
49
61
  type: 'enum',
50
62
  category: 'Layout',
51
63
  label: 'Align',
52
64
  enum: ['auto', 'left', 'right', 'center', 'justify'],
65
+ authoring: { authority: 'theme', scope: 'component' },
53
66
  },
54
67
  weight: {
55
68
  type: 'enum',
56
69
  category: 'Typography',
57
70
  label: 'Weight',
58
71
  enum: ['regular', 'medium', 'semiBold', 'bold'],
72
+ authoring: { authority: 'theme', scope: 'component' },
59
73
  },
60
74
  italic: {
61
75
  type: 'boolean',
62
76
  category: 'Typography',
63
77
  label: 'Italic',
64
78
  default: false,
79
+ authoring: { authority: 'theme', scope: 'component' },
65
80
  },
66
81
  numberOfLines: {
67
82
  type: 'number',
68
83
  category: 'Layout',
69
84
  label: 'Line clamp',
85
+ authoring: { authority: 'instance' },
70
86
  },
71
87
  },
72
88
  };
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/heading/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGvE,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,YAAY,EAAE;YACZ,IAAI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AQ,EAAE,YAAY;YACtB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,KAAK;SACf;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,YAAY;SACpB;KACF;CACmC,CAAC","sourcesContent":["import { ZORA_COLORS, ZORA_EMPHASES } from '../../internal/colorModel';\nimport type { ZoraComponentMeta } from '../../metadata';\n\nexport const headingMeta = {\n name: 'Heading',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Heading',\n defaultProps: {\n text: 'Heading',\n level: 2,\n },\n },\n i18n: {\n fields: [{ keyProp: 'i18nKey', defaultTextProp: 'text' }],\n },\n props: {\n text: {\n type: 'string',\n category: 'Content',\n label: 'Text',\n default: 'Heading',\n },\n i18nKey: {\n type: 'string',\n category: 'Content',\n label: 'i18n key',\n },\n level: {\n type: 'enum',\n category: 'Semantics',\n label: 'Level',\n enum: [1, 2, 3, 4, 5, 6],\n default: 2,\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: ZORA_COLORS,\n },\n emphasis: {\n type: 'enum',\n category: 'Style',\n label: 'Emphasis',\n enum: ZORA_EMPHASES,\n },\n align: {\n type: 'enum',\n category: 'Layout',\n label: 'Align',\n enum: ['auto', 'left', 'right', 'center', 'justify'],\n },\n weight: {\n type: 'enum',\n category: 'Typography',\n label: 'Weight',\n enum: ['regular', 'medium', 'semiBold', 'bold'],\n },\n italic: {\n type: 'boolean',\n category: 'Typography',\n label: 'Italic',\n default: false,\n },\n numberOfLines: {\n type: 'number',\n category: 'Layout',\n label: 'Line clamp',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/heading/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAGvE,MAAM,CAAC,MAAM,WAAW,GAAG;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el';\nimport type { ZoraComponentMeta } from '../../metadata';\n\nexport const headingMeta = {\n name: 'Heading',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Heading',\n defaultProps: {\n text: 'Heading',\n level: 2,\n },\n },\n i18n: {\n fields: [{ keyProp: 'i18nKey', defaultTextProp: 'text' }],\n },\n props: {\n text: {\n type: 'string',\n category: 'Content',\n label: 'Text',\n default: 'Heading',\n authoring: { authority: 'instance' },\n },\n i18nKey: {\n type: 'string',\n category: 'Content',\n label: 'i18n key',\n authoring: { authority: 'instance' },\n },\n level: {\n type: 'enum',\n category: 'Semantics',\n label: 'Level',\n enum: [1, 2, 3, 4, 5, 6],\n default: 2,\n authoring: { authority: 'instance' },\n },\n size: {\n type: 'enum',\n category: 'Typography',\n label: 'Size',\n enum: ['display', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],\n authoring: { authority: 'theme', scope: 'component' },\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: ZORA_COLORS,\n authoring: { authority: 'theme', scope: 'component' },\n },\n emphasis: {\n type: 'enum',\n category: 'Style',\n label: 'Emphasis',\n enum: ZORA_EMPHASES,\n authoring: { authority: 'theme', scope: 'component' },\n },\n align: {\n type: 'enum',\n category: 'Layout',\n label: 'Align',\n enum: ['auto', 'left', 'right', 'center', 'justify'],\n authoring: { authority: 'theme', scope: 'component' },\n },\n weight: {\n type: 'enum',\n category: 'Typography',\n label: 'Weight',\n enum: ['regular', 'medium', 'semiBold', 'bold'],\n authoring: { authority: 'theme', scope: 'component' },\n },\n italic: {\n type: 'boolean',\n category: 'Typography',\n label: 'Italic',\n default: false,\n authoring: { authority: 'theme', scope: 'component' },\n },\n numberOfLines: {\n type: 'number',\n category: 'Layout',\n label: 'Line clamp',\n authoring: { authority: 'instance' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}