@ankhorage/zora 1.4.0 → 1.4.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 (41) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +73 -0
  3. package/dist/components/form/index.d.ts +1 -1
  4. package/dist/components/form/index.d.ts.map +1 -1
  5. package/dist/components/form/index.js.map +1 -1
  6. package/dist/components/form/types.d.ts +2 -1
  7. package/dist/components/form/types.d.ts.map +1 -1
  8. package/dist/components/form/types.js.map +1 -1
  9. package/dist/index.d.ts +3 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/metadata/componentMeta.d.ts.map +1 -1
  14. package/dist/metadata/componentMeta.js +2 -0
  15. package/dist/metadata/componentMeta.js.map +1 -1
  16. package/dist/patterns/hero/Hero.d.ts +4 -0
  17. package/dist/patterns/hero/Hero.d.ts.map +1 -0
  18. package/dist/patterns/hero/Hero.js +59 -0
  19. package/dist/patterns/hero/Hero.js.map +1 -0
  20. package/dist/patterns/hero/index.d.ts +3 -0
  21. package/dist/patterns/hero/index.d.ts.map +1 -0
  22. package/dist/patterns/hero/index.js +2 -0
  23. package/dist/patterns/hero/index.js.map +1 -0
  24. package/dist/patterns/hero/meta.d.ts +101 -0
  25. package/dist/patterns/hero/meta.d.ts.map +1 -0
  26. package/dist/patterns/hero/meta.js +94 -0
  27. package/dist/patterns/hero/meta.js.map +1 -0
  28. package/dist/patterns/hero/types.d.ts +27 -0
  29. package/dist/patterns/hero/types.d.ts.map +1 -0
  30. package/dist/patterns/hero/types.js +2 -0
  31. package/dist/patterns/hero/types.js.map +1 -0
  32. package/package.json +1 -1
  33. package/src/components/form/index.ts +0 -1
  34. package/src/components/form/types.ts +1 -1
  35. package/src/index.ts +2 -1
  36. package/src/metadata/componentMeta.test.ts +1 -0
  37. package/src/metadata/componentMeta.ts +2 -0
  38. package/src/patterns/hero/Hero.tsx +112 -0
  39. package/src/patterns/hero/index.ts +2 -0
  40. package/src/patterns/hero/meta.ts +95 -0
  41. package/src/patterns/hero/types.ts +30 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 38648df: Add a first-class Hero pattern with structured content, actions, optional media, responsive layout behavior, metadata, and showcase coverage.
8
+
3
9
  ## 1.4.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -310,6 +310,7 @@ Metadata model overview:
310
310
  - `EmptyState`
311
311
  - `FilterBar`
312
312
  - `ForgotPasswordForm`
313
+ - `Hero`
313
314
  - `ImagePreview`
314
315
  - `ImageUploadField`
315
316
  - `InspectorField`
@@ -1552,6 +1553,78 @@ Picks these Surface `FieldProps`: `children`, `disabled`, `errorText`,
1552
1553
 
1553
1554
  </details>
1554
1555
 
1556
+ ### `Hero`
1557
+
1558
+ Landing-page and section hero pattern with structured title copy, actions,
1559
+ optional media, and responsive layout behavior.
1560
+
1561
+ ```tsx
1562
+ <Hero
1563
+ eyebrow="New release"
1564
+ title="Build product screens faster"
1565
+ description="Use a responsive hero pattern with strong defaults for landing pages, dashboards, and app sections."
1566
+ primaryAction={{ label: 'Get started', onPress: () => undefined }}
1567
+ secondaryAction={{ label: 'View docs', onPress: () => undefined }}
1568
+ />
1569
+ ```
1570
+
1571
+ With media:
1572
+
1573
+ ```tsx
1574
+ <Hero
1575
+ eyebrow="ZORA Pattern"
1576
+ title="Compose responsive product introductions"
1577
+ description="Hero combines ZORA typography, actions, layout, and card surfaces into one app-facing pattern."
1578
+ layout="split"
1579
+ primaryAction={{ label: 'Start building', onPress: () => undefined }}
1580
+ secondaryAction={{ label: 'Browse patterns', onPress: () => undefined }}
1581
+ media={
1582
+ <Card title="Theme-aware by default" tone="outline">
1583
+ <Text tone="muted">
1584
+ Use the media slot for previews, screenshots, metrics, or illustration cards.
1585
+ </Text>
1586
+ </Card>
1587
+ }
1588
+ />
1589
+ ```
1590
+
1591
+ <details>
1592
+ <summary>Props</summary>
1593
+
1594
+ ZORA props:
1595
+
1596
+ | Prop | Type | Default | Notes |
1597
+ | ----------------- | ----------------- | ---------- | --------------------------------------------------------- |
1598
+ | `title` | `React.ReactNode` | - | Required main hero title. |
1599
+ | `description` | `React.ReactNode` | - | Supporting copy below the title. |
1600
+ | `eyebrow` | `React.ReactNode` | - | Small label above the title. |
1601
+ | `primaryAction` | `HeroAction` | - | Primary CTA rendered as a ZORA `Button`. |
1602
+ | `secondaryAction` | `HeroAction` | - | Secondary CTA rendered as a softer ZORA `Button`. |
1603
+ | `media` | `React.ReactNode` | - | Optional media slot rendered beside or above the content. |
1604
+ | `footer` | `React.ReactNode` | - | Optional supporting footer content below the actions. |
1605
+ | `align` | `HeroAlign` | `'start'` | Content alignment: `'start'` or `'center'`. |
1606
+ | `layout` | `HeroLayout` | `'split'` | Layout strategy: `'stack'`, `'split'`, or `'mediaFirst'`. |
1607
+ | `tone` | `HeroTone` | `'subtle'` | Card tone: `'default'`, `'subtle'`, or `'outline'`. |
1608
+ | `compact` | `boolean` | `false` | Uses tighter spacing and a smaller desktop title size. |
1609
+ | `testID` | `string` | - | Test id forwarded to the underlying card surface. |
1610
+
1611
+ `HeroAction`:
1612
+
1613
+ | Prop | Type | Default | Notes |
1614
+ | ---------- | ----------------- | ------------------------- | ---------------------------------- |
1615
+ | `label` | `React.ReactNode` | - | Button label/content. |
1616
+ | `onPress` | `() => void` | - | Press handler. |
1617
+ | `tone` | `ZoraTone` | primary / neutral by role | Optional button tone override. |
1618
+ | `emphasis` | `ZoraEmphasis` | solid / soft by role | Optional button emphasis override. |
1619
+ | `disabled` | `boolean` | `false` | Disables the rendered action. |
1620
+
1621
+ Inherited props:
1622
+
1623
+ No inherited props. `HeroProps` is declared directly by ZORA to keep the
1624
+ pattern structured, theme-aware, and template-safe.
1625
+
1626
+ </details>
1627
+
1555
1628
  ### `ImagePreview`
1556
1629
 
1557
1630
  Provider-neutral image preview surface that renders `ZoraImageAsset` values.
@@ -2,7 +2,7 @@ export { Form } from './Form';
2
2
  export { FormActions } from './FormActions';
3
3
  export { FormError } from './FormError';
4
4
  export { FormField } from './FormField';
5
- export type { FormActionsProps, FormErrorProps, FormErrors, FormFieldConfig, FormFieldControlProps, FormFieldInputType, FormFieldProps, FormFieldValue, FormFieldWrapperProps, FormProps, FormValidationErrors, FormValidationResult, FormValues, UseFormControllerOptions, UseFormControllerResult, ValidationRule, } from './types';
5
+ export type { FormActionsProps, FormErrorProps, FormErrors, FormFieldConfig, FormFieldControlProps, FormFieldInputType, FormFieldProps, FormFieldValue, FormProps, FormValidationErrors, FormValidationResult, FormValues, UseFormControllerOptions, UseFormControllerResult, ValidationRule, } from './types';
6
6
  export { useFormController } from './useFormController';
7
7
  export { hasRequiredRule, validateField, validateFields, validateValue } from './validation';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,uBAAuB,EACvB,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,uBAAuB,EACvB,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAmBxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { Form } from './Form';\nexport { FormActions } from './FormActions';\nexport { FormError } from './FormError';\nexport { FormField } from './FormField';\nexport type {\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldControlProps,\n FormFieldInputType,\n FormFieldProps,\n FormFieldValue,\n FormFieldWrapperProps,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './types';\nexport { useFormController } from './useFormController';\nexport { hasRequiredRule, validateField, validateFields, validateValue } from './validation';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAkBxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { Form } from './Form';\nexport { FormActions } from './FormActions';\nexport { FormError } from './FormError';\nexport { FormField } from './FormField';\nexport type {\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldControlProps,\n FormFieldInputType,\n FormFieldProps,\n FormFieldValue,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './types';\nexport { useFormController } from './useFormController';\nexport { hasRequiredRule, validateField, validateFields, validateValue } from './validation';\n"]}
@@ -41,7 +41,7 @@ export interface FormFieldConfig<TName extends string = string> {
41
41
  disabled?: boolean;
42
42
  testID?: string;
43
43
  }
44
- export interface FormFieldWrapperProps extends ZoraBaseProps, Pick<Omit<SurfaceFieldProps, 'mode' | 'themeId'>, 'children' | 'disabled' | 'errorText' | 'invalid' | 'readOnly' | 'required'> {
44
+ interface FormFieldWrapperProps extends ZoraBaseProps, Pick<Omit<SurfaceFieldProps, 'mode' | 'themeId'>, 'children' | 'disabled' | 'errorText' | 'invalid' | 'readOnly' | 'required'> {
45
45
  label: React.ReactNode;
46
46
  description?: React.ReactNode;
47
47
  helperText?: React.ReactNode;
@@ -101,4 +101,5 @@ export interface UseFormControllerResult<TName extends string = string> {
101
101
  handleSubmit: () => Promise<void>;
102
102
  reset: () => void;
103
103
  }
104
+ export {};
104
105
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/form/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AACtF,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC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,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM;IACpE,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1B,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1B,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC/C,aAAa,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC5D,QAAQ,EAAE,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAC5C,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/form/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { FieldProps as SurfaceFieldProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\nimport type { InputProps } from '../input';\n\nexport type ValidationRule =\n | { kind: 'required'; message?: string }\n | { kind: 'email'; message?: string }\n | { kind: 'minLength'; value: number; message?: string }\n | { kind: 'pattern'; value: string; message?: string };\n\nexport type FormFieldValue = string;\nexport type FormValues<TName extends string = string> = Record<TName, FormFieldValue>;\nexport type FormErrors<TName extends string = string> = Partial<Record<TName, React.ReactNode>>;\nexport type FormValidationErrors<TName extends string = string> = Partial<Record<TName, string>>;\n\nexport type FormFieldInputType = 'email' | 'number' | 'otp' | 'password' | 'tel' | 'text' | 'url';\n\nexport interface FormFieldConfig<TName extends string = string> {\n name: TName;\n label: React.ReactNode;\n description?: React.ReactNode;\n helperText?: React.ReactNode;\n type?: FormFieldInputType;\n placeholder?: string;\n rules?: readonly ValidationRule[];\n autoCapitalize?: InputProps['autoCapitalize'];\n autoComplete?: InputProps['autoComplete'];\n keyboardType?: InputProps['keyboardType'];\n maxLength?: InputProps['maxLength'];\n readOnly?: boolean;\n required?: boolean;\n secureTextEntry?: boolean;\n textContentType?: InputProps['textContentType'];\n disabled?: boolean;\n testID?: string;\n}\n\nexport interface FormFieldWrapperProps\n extends\n ZoraBaseProps,\n Pick<\n Omit<SurfaceFieldProps, 'mode' | 'themeId'>,\n 'children' | 'disabled' | 'errorText' | 'invalid' | 'readOnly' | 'required'\n > {\n label: React.ReactNode;\n description?: React.ReactNode;\n helperText?: React.ReactNode;\n}\n\nexport interface FormFieldControlProps<TName extends string = string> extends ZoraBaseProps {\n field: FormFieldConfig<TName>;\n value: FormFieldValue;\n onChange: (name: TName, value: FormFieldValue) => void;\n error?: React.ReactNode;\n disabled?: boolean;\n loading?: boolean;\n}\n\nexport type FormFieldProps<TName extends string = string> =\n | FormFieldControlProps<TName>\n | FormFieldWrapperProps;\n\nexport interface FormActionsProps extends ZoraBaseProps {\n submitLabel?: React.ReactNode;\n loading?: boolean;\n disabled?: boolean;\n onSubmit?: () => void;\n children?: React.ReactNode;\n}\n\nexport interface FormErrorProps extends ZoraBaseProps {\n error?: React.ReactNode;\n}\n\nexport interface FormProps<TName extends string = string> extends ZoraBaseProps {\n fields: readonly FormFieldConfig<TName>[];\n values: FormValues<TName>;\n onChange: (values: FormValues<TName>) => void;\n onSubmit: (values: FormValues<TName>) => void | Promise<void>;\n errors?: FormErrors<TName>;\n error?: React.ReactNode;\n loading?: boolean;\n disabled?: boolean;\n submitLabel?: React.ReactNode;\n actions?: React.ReactNode;\n footer?: React.ReactNode;\n validateOnChange?: boolean;\n}\n\nexport interface FormValidationResult<TName extends string = string> {\n errors: FormValidationErrors<TName>;\n valid: boolean;\n}\n\nexport interface UseFormControllerOptions<TName extends string = string> {\n fields: readonly FormFieldConfig<TName>[];\n initialValues?: Partial<FormValues<TName>>;\n values?: FormValues<TName>;\n errors?: FormErrors<TName>;\n onChange?: (values: FormValues<TName>) => void;\n onSubmit?: (values: FormValues<TName>) => void | Promise<void>;\n validateOnChange?: boolean;\n}\n\nexport interface UseFormControllerResult<TName extends string = string> {\n values: FormValues<TName>;\n errors: FormErrors<TName>;\n setValues: (values: FormValues<TName>) => void;\n setFieldValue: (name: TName, value: FormFieldValue) => void;\n validate: () => FormValidationResult<TName>;\n handleSubmit: () => Promise<void>;\n reset: () => void;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/form/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { FieldProps as SurfaceFieldProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\nimport type { InputProps } from '../input';\n\nexport type ValidationRule =\n | { kind: 'required'; message?: string }\n | { kind: 'email'; message?: string }\n | { kind: 'minLength'; value: number; message?: string }\n | { kind: 'pattern'; value: string; message?: string };\n\nexport type FormFieldValue = string;\nexport type FormValues<TName extends string = string> = Record<TName, FormFieldValue>;\nexport type FormErrors<TName extends string = string> = Partial<Record<TName, React.ReactNode>>;\nexport type FormValidationErrors<TName extends string = string> = Partial<Record<TName, string>>;\n\nexport type FormFieldInputType = 'email' | 'number' | 'otp' | 'password' | 'tel' | 'text' | 'url';\n\nexport interface FormFieldConfig<TName extends string = string> {\n name: TName;\n label: React.ReactNode;\n description?: React.ReactNode;\n helperText?: React.ReactNode;\n type?: FormFieldInputType;\n placeholder?: string;\n rules?: readonly ValidationRule[];\n autoCapitalize?: InputProps['autoCapitalize'];\n autoComplete?: InputProps['autoComplete'];\n keyboardType?: InputProps['keyboardType'];\n maxLength?: InputProps['maxLength'];\n readOnly?: boolean;\n required?: boolean;\n secureTextEntry?: boolean;\n textContentType?: InputProps['textContentType'];\n disabled?: boolean;\n testID?: string;\n}\n\ninterface FormFieldWrapperProps\n extends\n ZoraBaseProps,\n Pick<\n Omit<SurfaceFieldProps, 'mode' | 'themeId'>,\n 'children' | 'disabled' | 'errorText' | 'invalid' | 'readOnly' | 'required'\n > {\n label: React.ReactNode;\n description?: React.ReactNode;\n helperText?: React.ReactNode;\n}\n\nexport interface FormFieldControlProps<TName extends string = string> extends ZoraBaseProps {\n field: FormFieldConfig<TName>;\n value: FormFieldValue;\n onChange: (name: TName, value: FormFieldValue) => void;\n error?: React.ReactNode;\n disabled?: boolean;\n loading?: boolean;\n}\n\nexport type FormFieldProps<TName extends string = string> =\n | FormFieldControlProps<TName>\n | FormFieldWrapperProps;\n\nexport interface FormActionsProps extends ZoraBaseProps {\n submitLabel?: React.ReactNode;\n loading?: boolean;\n disabled?: boolean;\n onSubmit?: () => void;\n children?: React.ReactNode;\n}\n\nexport interface FormErrorProps extends ZoraBaseProps {\n error?: React.ReactNode;\n}\n\nexport interface FormProps<TName extends string = string> extends ZoraBaseProps {\n fields: readonly FormFieldConfig<TName>[];\n values: FormValues<TName>;\n onChange: (values: FormValues<TName>) => void;\n onSubmit: (values: FormValues<TName>) => void | Promise<void>;\n errors?: FormErrors<TName>;\n error?: React.ReactNode;\n loading?: boolean;\n disabled?: boolean;\n submitLabel?: React.ReactNode;\n actions?: React.ReactNode;\n footer?: React.ReactNode;\n validateOnChange?: boolean;\n}\n\nexport interface FormValidationResult<TName extends string = string> {\n errors: FormValidationErrors<TName>;\n valid: boolean;\n}\n\nexport interface UseFormControllerOptions<TName extends string = string> {\n fields: readonly FormFieldConfig<TName>[];\n initialValues?: Partial<FormValues<TName>>;\n values?: FormValues<TName>;\n errors?: FormErrors<TName>;\n onChange?: (values: FormValues<TName>) => void;\n onSubmit?: (values: FormValues<TName>) => void | Promise<void>;\n validateOnChange?: boolean;\n}\n\nexport interface UseFormControllerResult<TName extends string = string> {\n values: FormValues<TName>;\n errors: FormErrors<TName>;\n setValues: (values: FormValues<TName>) => void;\n setFieldValue: (name: TName, value: FormFieldValue) => void;\n validate: () => FormValidationResult<TName>;\n handleSubmit: () => Promise<void>;\n reset: () => void;\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export type { ChipGroupItem, ChipGroupProps } from './components/chip-group';
18
18
  export { ChipGroup } from './components/chip-group';
19
19
  export type { DrawerProps } from './components/drawer';
20
20
  export { Drawer } from './components/drawer';
21
- export type { FormActionsProps, FormErrorProps, FormErrors, FormFieldConfig, FormFieldControlProps, FormFieldInputType, FormFieldProps, FormFieldValue, FormFieldWrapperProps, FormProps, FormValidationErrors, FormValidationResult, FormValues, UseFormControllerOptions, UseFormControllerResult, ValidationRule, } from './components/form';
21
+ export type { FormActionsProps, FormErrorProps, FormErrors, FormFieldConfig, FormFieldControlProps, FormFieldInputType, FormFieldProps, FormFieldValue, FormProps, FormValidationErrors, FormValidationResult, FormValues, UseFormControllerOptions, UseFormControllerResult, ValidationRule, } from './components/form';
22
22
  export { Form, FormActions, FormError, FormField, hasRequiredRule, useFormController, validateField, validateFields, validateValue, } from './components/form';
23
23
  export type { HeadingAlign, HeadingLevel, HeadingProps, HeadingSize, HeadingTone, HeadingWeight, } from './components/heading';
24
24
  export { Heading } from './components/heading';
@@ -90,6 +90,8 @@ export type { EmptyStateAction, EmptyStateProps } from './patterns/empty-state';
90
90
  export { EmptyState } from './patterns/empty-state';
91
91
  export type { FilterBarProps } from './patterns/filter-bar';
92
92
  export { FilterBar } from './patterns/filter-bar';
93
+ export type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './patterns/hero';
94
+ export { Hero } from './patterns/hero';
93
95
  export type { ImagePreviewProps, ZoraImageAsset, ZoraImageMetadata, } from './patterns/image-preview';
94
96
  export { ImagePreview } from './patterns/image-preview';
95
97
  export type { ImageUploadFieldProps, ImageUploadProgressContext, ZoraPickedImage, } from './patterns/image-upload-field';
@@ -1 +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,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -44,6 +44,7 @@ export { ConfirmDialog } from './patterns/confirm-dialog';
44
44
  export { DisclosureSection } from './patterns/disclosure-section';
45
45
  export { EmptyState } from './patterns/empty-state';
46
46
  export { FilterBar } from './patterns/filter-bar';
47
+ export { Hero } from './patterns/hero';
47
48
  export { ImagePreview } from './patterns/image-preview';
48
49
  export { ImageUploadField } from './patterns/image-upload-field';
49
50
  export { InspectorField } from './patterns/inspector-field';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uB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,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAOzC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAS1D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,cAAc,SAAS,CAAC","sourcesContent":["export type { AppBarMode, AppBarOverflowAction, AppBarProps } from './components/app-bar';\nexport { AppBar } from './components/app-bar';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './components/avatar';\nexport { Avatar, resolveAvatarInitials } from './components/avatar';\nexport type { AvatarGroupItem, AvatarGroupProps } from './components/avatar-group';\nexport { AvatarGroup } from './components/avatar-group';\nexport type { BadgeProps } from './components/badge';\nexport { Badge } from './components/badge';\nexport type { ButtonProps } from './components/button';\nexport { Button } from './components/button';\nexport type { CardProps } from './components/card';\nexport { Card } from './components/card';\nexport type { CheckboxGroupOption, CheckboxGroupProps, CheckboxProps } from './components/checkbox';\nexport { Checkbox, CheckboxGroup } from './components/checkbox';\nexport type { ChipProps } from './components/chip';\nexport { Chip } from './components/chip';\nexport type { ChipGroupItem, ChipGroupProps } from './components/chip-group';\nexport { ChipGroup } from './components/chip-group';\nexport type { DrawerProps } from './components/drawer';\nexport { Drawer } from './components/drawer';\nexport type {\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldControlProps,\n FormFieldInputType,\n FormFieldProps,\n FormFieldValue,\n FormFieldWrapperProps,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './components/form';\nexport {\n Form,\n FormActions,\n FormError,\n FormField,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './components/form';\nexport type {\n HeadingAlign,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingTone,\n HeadingWeight,\n} from './components/heading';\nexport { Heading } from './components/heading';\nexport type { IconProps } from './components/icon';\nexport { Icon } from './components/icon';\nexport type { IconButtonProps } from './components/icon-button';\nexport { IconButton } from './components/icon-button';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './components/image';\nexport { Image } from './components/image';\nexport type { InputProps, InputTrailingAction } from './components/input';\nexport { Input } from './components/input';\nexport type { MediaCardImageProps, MediaCardProps } from './components/media-card';\nexport { MediaCard } from './components/media-card';\nexport type { MetricCardProps } from './components/metric-card';\nexport { MetricCard } from './components/metric-card';\nexport type { ModalProps } from './components/modal';\nexport { Modal } from './components/modal';\nexport type {\n NavigationItemProps,\n ZoraNavigationRouteMetadata,\n ZoraNavigationRouteState,\n} from './components/navigation-item';\nexport { NavigationItem } from './components/navigation-item';\nexport type { NavigationListProps, ZoraNavigationRouteMap } from './components/navigation-list';\nexport { NavigationList } from './components/navigation-list';\nexport type { ProgressProps } from './components/progress';\nexport { Progress } from './components/progress';\nexport type { RadioGroupOption, RadioGroupProps, RadioProps } from './components/radio';\nexport { Radio, RadioGroup } from './components/radio';\nexport type { RatingProps } from './components/rating';\nexport { Rating } from './components/rating';\nexport type { SearchBarProps } from './components/search-bar';\nexport { SearchBar } from './components/search-bar';\nexport type { SelectOption, SelectProps } from './components/select';\nexport { Select } from './components/select';\nexport type { TabItem, TabsProps, TabsVariant } from './components/tabs';\nexport { Tabs } from './components/tabs';\nexport type { TextAlign, TextProps, TextTone, TextVariant, TextWeight } from './components/text';\nexport { Text } from './components/text';\nexport type { TextareaProps } from './components/textarea';\nexport { Textarea } from './components/textarea';\nexport type { ToolbarActionProps, ToolbarPosition, ToolbarProps } from './components/toolbar';\nexport { Toolbar, ToolbarAction } from './components/toolbar';\nexport type {\n BoxProps,\n CenterProps,\n ContainerProps,\n DividerProps,\n GridProps,\n InlineProps,\n ShowProps,\n SpacerProps,\n StackProps,\n SurfaceProps,\n SurfaceVariant,\n} from './foundation';\nexport {\n Box,\n Center,\n Container,\n Divider,\n Grid,\n Inline,\n Show,\n Spacer,\n Stack,\n Surface,\n} from './foundation';\nexport type { AppShellProps } from './layout/app-shell';\nexport { AppShell } from './layout/app-shell';\nexport type { AuthLayoutProps } from './layout/auth-layout';\nexport { AuthLayout } from './layout/auth-layout';\nexport type { PageProps } from './layout/page';\nexport { Page } from './layout/page';\nexport type { PageHeaderProps } from './layout/page-header';\nexport { PageHeader } from './layout/page-header';\nexport type { PageSectionProps } from './layout/page-section';\nexport { PageSection } from './layout/page-section';\nexport type { SettingsLayoutProps } from './layout/settings-layout';\nexport { SettingsLayout } from './layout/settings-layout';\nexport type { SidebarLayoutProps } from './layout/sidebar-layout';\nexport { SidebarLayout } from './layout/sidebar-layout';\nexport type { TopbarLayoutProps } from './layout/topbar-layout';\nexport { TopbarLayout } from './layout/topbar-layout';\nexport type {\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentI18nMeta,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n} from './metadata';\nexport { ZORA_COMPONENT_META } from './metadata';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './patterns/auth';\nexport { ForgotPasswordForm, OtpForm, SignInForm, SignUpForm } from './patterns/auth';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './patterns/collection-editor';\nexport { CollectionEditor } from './patterns/collection-editor';\nexport type { ConfirmDialogProps } from './patterns/confirm-dialog';\nexport { ConfirmDialog } from './patterns/confirm-dialog';\nexport type { DisclosureSectionProps } from './patterns/disclosure-section';\nexport { DisclosureSection } from './patterns/disclosure-section';\nexport type { EmptyStateAction, EmptyStateProps } from './patterns/empty-state';\nexport { EmptyState } from './patterns/empty-state';\nexport type { FilterBarProps } from './patterns/filter-bar';\nexport { FilterBar } from './patterns/filter-bar';\nexport type {\n ImagePreviewProps,\n ZoraImageAsset,\n ZoraImageMetadata,\n} from './patterns/image-preview';\nexport { ImagePreview } from './patterns/image-preview';\nexport type {\n ImageUploadFieldProps,\n ImageUploadProgressContext,\n ZoraPickedImage,\n} from './patterns/image-upload-field';\nexport { ImageUploadField } from './patterns/image-upload-field';\nexport type { InspectorFieldProps } from './patterns/inspector-field';\nexport { InspectorField } from './patterns/inspector-field';\nexport type {\n ListChildrenProps,\n ListItemsProps,\n ListProps,\n ListRowProps,\n ListRowVariant,\n ListSectionProps,\n} from './patterns/list';\nexport { List, ListRow, ListSection } from './patterns/list';\nexport type { NoticeProps } from './patterns/notice';\nexport { Notice } from './patterns/notice';\nexport type { PanelProps } from './patterns/panel';\nexport { Panel } from './patterns/panel';\nexport type {\n ResponsivePanelDesktopMode,\n ResponsivePanelMobileMode,\n ResponsivePanelProps,\n ResponsivePanelSide,\n} from './patterns/responsive-panel';\nexport { ResponsivePanel } from './patterns/responsive-panel';\nexport type { SectionHeaderProps } from './patterns/section-header';\nexport { SectionHeader } from './patterns/section-header';\nexport type {\n SelectableItemProps,\n SelectableItemState,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './patterns/selection';\nexport { SelectableItem, SelectionProvider, useSelection } from './patterns/selection';\nexport type { SettingsRowProps } from './patterns/settings-row';\nexport { SettingsRow } from './patterns/settings-row';\nexport type { SwitchFieldProps } from './patterns/switch-field';\nexport { SwitchField } from './patterns/switch-field';\nexport type { ThemeComposerProps } from './patterns/theme-composer';\nexport { ThemeComposer } from './patterns/theme-composer';\nexport type { PaletteItemProps, TileGridProps } from './patterns/tile-grid';\nexport { PaletteItem, TileGrid } from './patterns/tile-grid';\nexport type { TimelineItem, TimelineProps } from './patterns/timeline';\nexport { Timeline } from './patterns/timeline';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './patterns/tree-view';\nexport { TreeItem, TreeView } from './patterns/tree-view';\nexport type { ZoraDrawerContentProps } from './patterns/zora-drawer-content';\nexport { ZoraDrawerContent } from './patterns/zora-drawer-content';\nexport type { ZoraTabBarProps } from './patterns/zora-tab-bar';\nexport { ZoraTabBar } from './patterns/zora-tab-bar';\nexport * from './theme';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAA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S5D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAOzC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAS1D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,cAAc,SAAS,CAAC","sourcesContent":["export type { AppBarMode, AppBarOverflowAction, AppBarProps } from './components/app-bar';\nexport { AppBar } from './components/app-bar';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './components/avatar';\nexport { Avatar, resolveAvatarInitials } from './components/avatar';\nexport type { AvatarGroupItem, AvatarGroupProps } from './components/avatar-group';\nexport { AvatarGroup } from './components/avatar-group';\nexport type { BadgeProps } from './components/badge';\nexport { Badge } from './components/badge';\nexport type { ButtonProps } from './components/button';\nexport { Button } from './components/button';\nexport type { CardProps } from './components/card';\nexport { Card } from './components/card';\nexport type { CheckboxGroupOption, CheckboxGroupProps, CheckboxProps } from './components/checkbox';\nexport { Checkbox, CheckboxGroup } from './components/checkbox';\nexport type { ChipProps } from './components/chip';\nexport { Chip } from './components/chip';\nexport type { ChipGroupItem, ChipGroupProps } from './components/chip-group';\nexport { ChipGroup } from './components/chip-group';\nexport type { DrawerProps } from './components/drawer';\nexport { Drawer } from './components/drawer';\nexport type {\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldControlProps,\n FormFieldInputType,\n FormFieldProps,\n FormFieldValue,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './components/form';\nexport {\n Form,\n FormActions,\n FormError,\n FormField,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './components/form';\nexport type {\n HeadingAlign,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingTone,\n HeadingWeight,\n} from './components/heading';\nexport { Heading } from './components/heading';\nexport type { IconProps } from './components/icon';\nexport { Icon } from './components/icon';\nexport type { IconButtonProps } from './components/icon-button';\nexport { IconButton } from './components/icon-button';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './components/image';\nexport { Image } from './components/image';\nexport type { InputProps, InputTrailingAction } from './components/input';\nexport { Input } from './components/input';\nexport type { MediaCardImageProps, MediaCardProps } from './components/media-card';\nexport { MediaCard } from './components/media-card';\nexport type { MetricCardProps } from './components/metric-card';\nexport { MetricCard } from './components/metric-card';\nexport type { ModalProps } from './components/modal';\nexport { Modal } from './components/modal';\nexport type {\n NavigationItemProps,\n ZoraNavigationRouteMetadata,\n ZoraNavigationRouteState,\n} from './components/navigation-item';\nexport { NavigationItem } from './components/navigation-item';\nexport type { NavigationListProps, ZoraNavigationRouteMap } from './components/navigation-list';\nexport { NavigationList } from './components/navigation-list';\nexport type { ProgressProps } from './components/progress';\nexport { Progress } from './components/progress';\nexport type { RadioGroupOption, RadioGroupProps, RadioProps } from './components/radio';\nexport { Radio, RadioGroup } from './components/radio';\nexport type { RatingProps } from './components/rating';\nexport { Rating } from './components/rating';\nexport type { SearchBarProps } from './components/search-bar';\nexport { SearchBar } from './components/search-bar';\nexport type { SelectOption, SelectProps } from './components/select';\nexport { Select } from './components/select';\nexport type { TabItem, TabsProps, TabsVariant } from './components/tabs';\nexport { Tabs } from './components/tabs';\nexport type { TextAlign, TextProps, TextTone, TextVariant, TextWeight } from './components/text';\nexport { Text } from './components/text';\nexport type { TextareaProps } from './components/textarea';\nexport { Textarea } from './components/textarea';\nexport type { ToolbarActionProps, ToolbarPosition, ToolbarProps } from './components/toolbar';\nexport { Toolbar, ToolbarAction } from './components/toolbar';\nexport type {\n BoxProps,\n CenterProps,\n ContainerProps,\n DividerProps,\n GridProps,\n InlineProps,\n ShowProps,\n SpacerProps,\n StackProps,\n SurfaceProps,\n SurfaceVariant,\n} from './foundation';\nexport {\n Box,\n Center,\n Container,\n Divider,\n Grid,\n Inline,\n Show,\n Spacer,\n Stack,\n Surface,\n} from './foundation';\nexport type { AppShellProps } from './layout/app-shell';\nexport { AppShell } from './layout/app-shell';\nexport type { AuthLayoutProps } from './layout/auth-layout';\nexport { AuthLayout } from './layout/auth-layout';\nexport type { PageProps } from './layout/page';\nexport { Page } from './layout/page';\nexport type { PageHeaderProps } from './layout/page-header';\nexport { PageHeader } from './layout/page-header';\nexport type { PageSectionProps } from './layout/page-section';\nexport { PageSection } from './layout/page-section';\nexport type { SettingsLayoutProps } from './layout/settings-layout';\nexport { SettingsLayout } from './layout/settings-layout';\nexport type { SidebarLayoutProps } from './layout/sidebar-layout';\nexport { SidebarLayout } from './layout/sidebar-layout';\nexport type { TopbarLayoutProps } from './layout/topbar-layout';\nexport { TopbarLayout } from './layout/topbar-layout';\nexport type {\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentI18nMeta,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n} from './metadata';\nexport { ZORA_COMPONENT_META } from './metadata';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './patterns/auth';\nexport { ForgotPasswordForm, OtpForm, SignInForm, SignUpForm } from './patterns/auth';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './patterns/collection-editor';\nexport { CollectionEditor } from './patterns/collection-editor';\nexport type { ConfirmDialogProps } from './patterns/confirm-dialog';\nexport { ConfirmDialog } from './patterns/confirm-dialog';\nexport type { DisclosureSectionProps } from './patterns/disclosure-section';\nexport { DisclosureSection } from './patterns/disclosure-section';\nexport type { EmptyStateAction, EmptyStateProps } from './patterns/empty-state';\nexport { EmptyState } from './patterns/empty-state';\nexport type { FilterBarProps } from './patterns/filter-bar';\nexport { FilterBar } from './patterns/filter-bar';\nexport type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './patterns/hero';\nexport { Hero } from './patterns/hero';\nexport type {\n ImagePreviewProps,\n ZoraImageAsset,\n ZoraImageMetadata,\n} from './patterns/image-preview';\nexport { ImagePreview } from './patterns/image-preview';\nexport type {\n ImageUploadFieldProps,\n ImageUploadProgressContext,\n ZoraPickedImage,\n} from './patterns/image-upload-field';\nexport { ImageUploadField } from './patterns/image-upload-field';\nexport type { InspectorFieldProps } from './patterns/inspector-field';\nexport { InspectorField } from './patterns/inspector-field';\nexport type {\n ListChildrenProps,\n ListItemsProps,\n ListProps,\n ListRowProps,\n ListRowVariant,\n ListSectionProps,\n} from './patterns/list';\nexport { List, ListRow, ListSection } from './patterns/list';\nexport type { NoticeProps } from './patterns/notice';\nexport { Notice } from './patterns/notice';\nexport type { PanelProps } from './patterns/panel';\nexport { Panel } from './patterns/panel';\nexport type {\n ResponsivePanelDesktopMode,\n ResponsivePanelMobileMode,\n ResponsivePanelProps,\n ResponsivePanelSide,\n} from './patterns/responsive-panel';\nexport { ResponsivePanel } from './patterns/responsive-panel';\nexport type { SectionHeaderProps } from './patterns/section-header';\nexport { SectionHeader } from './patterns/section-header';\nexport type {\n SelectableItemProps,\n SelectableItemState,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './patterns/selection';\nexport { SelectableItem, SelectionProvider, useSelection } from './patterns/selection';\nexport type { SettingsRowProps } from './patterns/settings-row';\nexport { SettingsRow } from './patterns/settings-row';\nexport type { SwitchFieldProps } from './patterns/switch-field';\nexport { SwitchField } from './patterns/switch-field';\nexport type { ThemeComposerProps } from './patterns/theme-composer';\nexport { ThemeComposer } from './patterns/theme-composer';\nexport type { PaletteItemProps, TileGridProps } from './patterns/tile-grid';\nexport { PaletteItem, TileGrid } from './patterns/tile-grid';\nexport type { TimelineItem, TimelineProps } from './patterns/timeline';\nexport { Timeline } from './patterns/timeline';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './patterns/tree-view';\nexport { TreeItem, TreeView } from './patterns/tree-view';\nexport type { ZoraDrawerContentProps } from './patterns/zora-drawer-content';\nexport { ZoraDrawerContent } from './patterns/zora-drawer-content';\nexport type { ZoraTabBarProps } from './patterns/zora-tab-bar';\nexport { ZoraTabBar } from './patterns/zora-tab-bar';\nexport * from './theme';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"componentMeta.d.ts","sourceRoot":"","sources":["../../src/metadata/componentMeta.ts"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,mBAAmB,EAAE,yBA6EjC,CAAC"}
1
+ {"version":3,"file":"componentMeta.d.ts","sourceRoot":"","sources":["../../src/metadata/componentMeta.ts"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,mBAAmB,EAAE,yBA8EjC,CAAC"}
@@ -43,6 +43,7 @@ import { confirmDialogMeta } from '../patterns/confirm-dialog/meta';
43
43
  import { disclosureSectionMeta } from '../patterns/disclosure-section/meta';
44
44
  import { emptyStateMeta } from '../patterns/empty-state/meta';
45
45
  import { filterBarMeta } from '../patterns/filter-bar/meta';
46
+ import { heroMeta } from '../patterns/hero/meta';
46
47
  import { imagePreviewMeta } from '../patterns/image-preview/meta';
47
48
  import { imageUploadFieldMeta } from '../patterns/image-upload-field/meta';
48
49
  import { inspectorFieldMeta } from '../patterns/inspector-field/meta';
@@ -115,6 +116,7 @@ export const ZORA_COMPONENT_META = {
115
116
  DisclosureSection: disclosureSectionMeta,
116
117
  EmptyState: emptyStateMeta,
117
118
  FilterBar: filterBarMeta,
119
+ Hero: heroMeta,
118
120
  ImagePreview: imagePreviewMeta,
119
121
  ImageUploadField: imageUploadFieldMeta,
120
122
  InspectorField: inspectorFieldMeta,
@@ -1 +1 @@
1
- {"version":3,"file":"componentMeta.js","sourceRoot":"","sources":["../../src/metadata/componentMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,aAA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QAAQ,EAAE,YAAY;IACtB,OAAO,EAAE,WAAW;IACpB,aAAa,EAAE,iBAAiB;IAChC,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE,cAAc;IAC1B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,cAAc;IAC1B,WAAW,EAAE,eAAe;IAC5B,cAAc,EAAE,kBAAkB;IAClC,aAAa,EAAE,iBAAiB;IAChC,YAAY,EAAE,gBAAgB;IAC9B,kBAAkB,EAAE,sBAAsB;IAC1C,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,cAAc;IAC1B,gBAAgB,EAAE,oBAAoB;IACtC,aAAa,EAAE,iBAAiB;IAChC,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,cAAc;IAC1B,SAAS,EAAE,aAAa;IACxB,YAAY,EAAE,gBAAgB;IAC9B,gBAAgB,EAAE,oBAAoB;IACtC,cAAc,EAAE,kBAAkB;IAClC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,eAAe;IAC5B,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,SAAS;IAChB,eAAe,EAAE,mBAAmB;IACpC,aAAa,EAAE,iBAAiB;IAChC,cAAc,EAAE,kBAAkB;IAClC,iBAAiB,EAAE,qBAAqB;IACxC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,iBAAiB;IAChC,WAAW,EAAE,eAAe;IAC5B,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,cAAc;CAC3B,CAAC","sourcesContent":["import { appBarMeta } from '../components/app-bar/meta';\nimport { avatarMeta } from '../components/avatar/meta';\nimport { avatarGroupMeta } from '../components/avatar-group/meta';\nimport { badgeMeta } from '../components/badge/meta';\nimport { buttonMeta } from '../components/button/meta';\nimport { cardMeta } from '../components/card/meta';\nimport { checkboxGroupMeta, checkboxMeta } from '../components/checkbox/meta';\nimport { chipMeta } from '../components/chip/meta';\nimport { chipGroupMeta } from '../components/chip-group/meta';\nimport { drawerMeta } from '../components/drawer/meta';\nimport { formActionsMeta, formErrorMeta, formFieldMeta, formMeta } from '../components/form/meta';\nimport { headingMeta } from '../components/heading/meta';\nimport { iconMeta } from '../components/icon/meta';\nimport { iconButtonMeta } from '../components/icon-button/meta';\nimport { imageMeta } from '../components/image/meta';\nimport { inputMeta } from '../components/input/meta';\nimport { mediaCardMeta } from '../components/media-card/meta';\nimport { metricCardMeta } from '../components/metric-card/meta';\nimport { modalMeta } from '../components/modal/meta';\nimport { navigationItemMeta } from '../components/navigation-item/meta';\nimport { navigationListMeta } from '../components/navigation-list/meta';\nimport { progressMeta } from '../components/progress/meta';\nimport { radioGroupMeta, radioMeta } from '../components/radio/meta';\nimport { ratingMeta } from '../components/rating/meta';\nimport { searchBarMeta } from '../components/search-bar/meta';\nimport { selectMeta } from '../components/select/meta';\nimport { tabsMeta } from '../components/tabs/meta';\nimport { textMeta } from '../components/text/meta';\nimport { textareaMeta } from '../components/textarea/meta';\nimport { toolbarActionMeta, toolbarMeta } from '../components/toolbar/meta';\nimport { foundationMetas } from '../foundation/meta';\nimport { appShellMeta } from '../layout/app-shell/meta';\nimport { authLayoutMeta } from '../layout/auth-layout/meta';\nimport { pageMeta } from '../layout/page/meta';\nimport { pageHeaderMeta } from '../layout/page-header/meta';\nimport { pageSectionMeta } from '../layout/page-section/meta';\nimport { settingsLayoutMeta } from '../layout/settings-layout/meta';\nimport { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';\nimport { topbarLayoutMeta } from '../layout/topbar-layout/meta';\nimport {\n forgotPasswordFormMeta,\n otpFormMeta,\n signInFormMeta,\n signUpFormMeta,\n} from '../patterns/auth/meta';\nimport { collectionEditorMeta } from '../patterns/collection-editor/meta';\nimport { confirmDialogMeta } from '../patterns/confirm-dialog/meta';\nimport { disclosureSectionMeta } from '../patterns/disclosure-section/meta';\nimport { emptyStateMeta } from '../patterns/empty-state/meta';\nimport { filterBarMeta } from '../patterns/filter-bar/meta';\nimport { imagePreviewMeta } from '../patterns/image-preview/meta';\nimport { imageUploadFieldMeta } from '../patterns/image-upload-field/meta';\nimport { inspectorFieldMeta } from '../patterns/inspector-field/meta';\nimport { listMeta, listRowMeta, listSectionMeta } from '../patterns/list/meta';\nimport { noticeMeta } from '../patterns/notice/meta';\nimport { panelMeta } from '../patterns/panel/meta';\nimport { responsivePanelMeta } from '../patterns/responsive-panel/meta';\nimport { sectionHeaderMeta } from '../patterns/section-header/meta';\nimport { selectableItemMeta, selectionProviderMeta } from '../patterns/selection/meta';\nimport { settingsRowMeta } from '../patterns/settings-row/meta';\nimport { switchFieldMeta } from '../patterns/switch-field/meta';\nimport { themeComposerMeta } from '../patterns/theme-composer/meta';\nimport { paletteItemMeta, tileGridMeta } from '../patterns/tile-grid/meta';\nimport { timelineMeta } from '../patterns/timeline/meta';\nimport { treeItemMeta, treeViewMeta } from '../patterns/tree-view/meta';\nimport { zoraDrawerContentMeta } from '../patterns/zora-drawer-content/meta';\nimport { zoraTabBarMeta } from '../patterns/zora-tab-bar/meta';\nimport type { ZoraComponentMetaRegistry } from './types';\n\nexport const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = {\n ...foundationMetas,\n AppBar: appBarMeta,\n Avatar: avatarMeta,\n AvatarGroup: avatarGroupMeta,\n Badge: badgeMeta,\n Button: buttonMeta,\n Card: cardMeta,\n Checkbox: checkboxMeta,\n CheckboxGroup: checkboxGroupMeta,\n Chip: chipMeta,\n ChipGroup: chipGroupMeta,\n Drawer: drawerMeta,\n Form: formMeta,\n FormActions: formActionsMeta,\n FormError: formErrorMeta,\n FormField: formFieldMeta,\n Heading: headingMeta,\n Icon: iconMeta,\n IconButton: iconButtonMeta,\n Image: imageMeta,\n Input: inputMeta,\n MediaCard: mediaCardMeta,\n MetricCard: metricCardMeta,\n Modal: modalMeta,\n NavigationItem: navigationItemMeta,\n NavigationList: navigationListMeta,\n Progress: progressMeta,\n Radio: radioMeta,\n RadioGroup: radioGroupMeta,\n Rating: ratingMeta,\n SearchBar: searchBarMeta,\n Select: selectMeta,\n Tabs: tabsMeta,\n Text: textMeta,\n Textarea: textareaMeta,\n Toolbar: toolbarMeta,\n ToolbarAction: toolbarActionMeta,\n AppShell: appShellMeta,\n AuthLayout: authLayoutMeta,\n Page: pageMeta,\n PageHeader: pageHeaderMeta,\n PageSection: pageSectionMeta,\n SettingsLayout: settingsLayoutMeta,\n SidebarLayout: sidebarLayoutMeta,\n TopbarLayout: topbarLayoutMeta,\n ForgotPasswordForm: forgotPasswordFormMeta,\n OtpForm: otpFormMeta,\n SignInForm: signInFormMeta,\n SignUpForm: signUpFormMeta,\n CollectionEditor: collectionEditorMeta,\n ConfirmDialog: confirmDialogMeta,\n DisclosureSection: disclosureSectionMeta,\n EmptyState: emptyStateMeta,\n FilterBar: filterBarMeta,\n ImagePreview: imagePreviewMeta,\n ImageUploadField: imageUploadFieldMeta,\n InspectorField: inspectorFieldMeta,\n List: listMeta,\n ListRow: listRowMeta,\n ListSection: listSectionMeta,\n Notice: noticeMeta,\n Panel: panelMeta,\n ResponsivePanel: responsivePanelMeta,\n SectionHeader: sectionHeaderMeta,\n SelectableItem: selectableItemMeta,\n SelectionProvider: selectionProviderMeta,\n SettingsRow: settingsRowMeta,\n SwitchField: switchFieldMeta,\n ThemeComposer: themeComposerMeta,\n PaletteItem: paletteItemMeta,\n TileGrid: tileGridMeta,\n Timeline: timelineMeta,\n TreeItem: treeItemMeta,\n TreeView: treeViewMeta,\n ZoraDrawerContent: zoraDrawerContentMeta,\n ZoraTabBar: zoraTabBarMeta,\n};\n"]}
1
+ {"version":3,"file":"componentMeta.js","sourceRoot":"","sources":["../../src/metadata/componentMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;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B,WAAW,EAAE,eAAe;IAC5B,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,SAAS;IAChB,eAAe,EAAE,mBAAmB;IACpC,aAAa,EAAE,iBAAiB;IAChC,cAAc,EAAE,kBAAkB;IAClC,iBAAiB,EAAE,qBAAqB;IACxC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,iBAAiB;IAChC,WAAW,EAAE,eAAe;IAC5B,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,cAAc;CAC3B,CAAC","sourcesContent":["import { appBarMeta } from '../components/app-bar/meta';\nimport { avatarMeta } from '../components/avatar/meta';\nimport { avatarGroupMeta } from '../components/avatar-group/meta';\nimport { badgeMeta } from '../components/badge/meta';\nimport { buttonMeta } from '../components/button/meta';\nimport { cardMeta } from '../components/card/meta';\nimport { checkboxGroupMeta, checkboxMeta } from '../components/checkbox/meta';\nimport { chipMeta } from '../components/chip/meta';\nimport { chipGroupMeta } from '../components/chip-group/meta';\nimport { drawerMeta } from '../components/drawer/meta';\nimport { formActionsMeta, formErrorMeta, formFieldMeta, formMeta } from '../components/form/meta';\nimport { headingMeta } from '../components/heading/meta';\nimport { iconMeta } from '../components/icon/meta';\nimport { iconButtonMeta } from '../components/icon-button/meta';\nimport { imageMeta } from '../components/image/meta';\nimport { inputMeta } from '../components/input/meta';\nimport { mediaCardMeta } from '../components/media-card/meta';\nimport { metricCardMeta } from '../components/metric-card/meta';\nimport { modalMeta } from '../components/modal/meta';\nimport { navigationItemMeta } from '../components/navigation-item/meta';\nimport { navigationListMeta } from '../components/navigation-list/meta';\nimport { progressMeta } from '../components/progress/meta';\nimport { radioGroupMeta, radioMeta } from '../components/radio/meta';\nimport { ratingMeta } from '../components/rating/meta';\nimport { searchBarMeta } from '../components/search-bar/meta';\nimport { selectMeta } from '../components/select/meta';\nimport { tabsMeta } from '../components/tabs/meta';\nimport { textMeta } from '../components/text/meta';\nimport { textareaMeta } from '../components/textarea/meta';\nimport { toolbarActionMeta, toolbarMeta } from '../components/toolbar/meta';\nimport { foundationMetas } from '../foundation/meta';\nimport { appShellMeta } from '../layout/app-shell/meta';\nimport { authLayoutMeta } from '../layout/auth-layout/meta';\nimport { pageMeta } from '../layout/page/meta';\nimport { pageHeaderMeta } from '../layout/page-header/meta';\nimport { pageSectionMeta } from '../layout/page-section/meta';\nimport { settingsLayoutMeta } from '../layout/settings-layout/meta';\nimport { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';\nimport { topbarLayoutMeta } from '../layout/topbar-layout/meta';\nimport {\n forgotPasswordFormMeta,\n otpFormMeta,\n signInFormMeta,\n signUpFormMeta,\n} from '../patterns/auth/meta';\nimport { collectionEditorMeta } from '../patterns/collection-editor/meta';\nimport { confirmDialogMeta } from '../patterns/confirm-dialog/meta';\nimport { disclosureSectionMeta } from '../patterns/disclosure-section/meta';\nimport { emptyStateMeta } from '../patterns/empty-state/meta';\nimport { filterBarMeta } from '../patterns/filter-bar/meta';\nimport { heroMeta } from '../patterns/hero/meta';\nimport { imagePreviewMeta } from '../patterns/image-preview/meta';\nimport { imageUploadFieldMeta } from '../patterns/image-upload-field/meta';\nimport { inspectorFieldMeta } from '../patterns/inspector-field/meta';\nimport { listMeta, listRowMeta, listSectionMeta } from '../patterns/list/meta';\nimport { noticeMeta } from '../patterns/notice/meta';\nimport { panelMeta } from '../patterns/panel/meta';\nimport { responsivePanelMeta } from '../patterns/responsive-panel/meta';\nimport { sectionHeaderMeta } from '../patterns/section-header/meta';\nimport { selectableItemMeta, selectionProviderMeta } from '../patterns/selection/meta';\nimport { settingsRowMeta } from '../patterns/settings-row/meta';\nimport { switchFieldMeta } from '../patterns/switch-field/meta';\nimport { themeComposerMeta } from '../patterns/theme-composer/meta';\nimport { paletteItemMeta, tileGridMeta } from '../patterns/tile-grid/meta';\nimport { timelineMeta } from '../patterns/timeline/meta';\nimport { treeItemMeta, treeViewMeta } from '../patterns/tree-view/meta';\nimport { zoraDrawerContentMeta } from '../patterns/zora-drawer-content/meta';\nimport { zoraTabBarMeta } from '../patterns/zora-tab-bar/meta';\nimport type { ZoraComponentMetaRegistry } from './types';\n\nexport const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = {\n ...foundationMetas,\n AppBar: appBarMeta,\n Avatar: avatarMeta,\n AvatarGroup: avatarGroupMeta,\n Badge: badgeMeta,\n Button: buttonMeta,\n Card: cardMeta,\n Checkbox: checkboxMeta,\n CheckboxGroup: checkboxGroupMeta,\n Chip: chipMeta,\n ChipGroup: chipGroupMeta,\n Drawer: drawerMeta,\n Form: formMeta,\n FormActions: formActionsMeta,\n FormError: formErrorMeta,\n FormField: formFieldMeta,\n Heading: headingMeta,\n Icon: iconMeta,\n IconButton: iconButtonMeta,\n Image: imageMeta,\n Input: inputMeta,\n MediaCard: mediaCardMeta,\n MetricCard: metricCardMeta,\n Modal: modalMeta,\n NavigationItem: navigationItemMeta,\n NavigationList: navigationListMeta,\n Progress: progressMeta,\n Radio: radioMeta,\n RadioGroup: radioGroupMeta,\n Rating: ratingMeta,\n SearchBar: searchBarMeta,\n Select: selectMeta,\n Tabs: tabsMeta,\n Text: textMeta,\n Textarea: textareaMeta,\n Toolbar: toolbarMeta,\n ToolbarAction: toolbarActionMeta,\n AppShell: appShellMeta,\n AuthLayout: authLayoutMeta,\n Page: pageMeta,\n PageHeader: pageHeaderMeta,\n PageSection: pageSectionMeta,\n SettingsLayout: settingsLayoutMeta,\n SidebarLayout: sidebarLayoutMeta,\n TopbarLayout: topbarLayoutMeta,\n ForgotPasswordForm: forgotPasswordFormMeta,\n OtpForm: otpFormMeta,\n SignInForm: signInFormMeta,\n SignUpForm: signUpFormMeta,\n CollectionEditor: collectionEditorMeta,\n ConfirmDialog: confirmDialogMeta,\n DisclosureSection: disclosureSectionMeta,\n EmptyState: emptyStateMeta,\n FilterBar: filterBarMeta,\n Hero: heroMeta,\n ImagePreview: imagePreviewMeta,\n ImageUploadField: imageUploadFieldMeta,\n InspectorField: inspectorFieldMeta,\n List: listMeta,\n ListRow: listRowMeta,\n ListSection: listSectionMeta,\n Notice: noticeMeta,\n Panel: panelMeta,\n ResponsivePanel: responsivePanelMeta,\n SectionHeader: sectionHeaderMeta,\n SelectableItem: selectableItemMeta,\n SelectionProvider: selectionProviderMeta,\n SettingsRow: settingsRowMeta,\n SwitchField: switchFieldMeta,\n ThemeComposer: themeComposerMeta,\n PaletteItem: paletteItemMeta,\n TileGrid: tileGridMeta,\n Timeline: timelineMeta,\n TreeItem: treeItemMeta,\n TreeView: treeViewMeta,\n ZoraDrawerContent: zoraDrawerContentMeta,\n ZoraTabBar: zoraTabBarMeta,\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { HeroProps } from './types';
3
+ export declare const Hero: (props: HeroProps) => React.ReactElement | null;
4
+ //# sourceMappingURL=Hero.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/patterns/hero/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAqC,SAAS,EAAE,MAAM,SAAS,CAAC;AAuG5E,eAAO,MAAM,IAAI,iDAAgC,CAAC"}
@@ -0,0 +1,59 @@
1
+ import React from 'react';
2
+ import { Button } from '../../components/button';
3
+ import { Card } from '../../components/card';
4
+ import { Heading } from '../../components/heading';
5
+ import { Text } from '../../components/text';
6
+ import { Box, Stack } from '../../foundation';
7
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
8
+ function HeroInner({ themeId: _themeId, mode: _mode, title, description, eyebrow, primaryAction, secondaryAction, media, footer, align = 'start', layout = 'split', tone = 'subtle', compact = false, testID, }) {
9
+ const hasActions = primaryAction !== undefined || secondaryAction !== undefined;
10
+ const hasMedia = media !== undefined;
11
+ const direction = resolveDirection(layout, hasMedia);
12
+ const contentAlign = resolveContentAlign(align);
13
+ const textAlign = align === 'center' ? 'center' : undefined;
14
+ const mediaFirst = layout === 'mediaFirst';
15
+ const content = (<Box flex={1}>
16
+ <Stack align={contentAlign} gap={compact ? 's' : 'm'}>
17
+ <Stack align={contentAlign} gap="xs">
18
+ {eyebrow !== undefined ? (<Text align={textAlign} tone="primary" variant="eyebrow">
19
+ {eyebrow}
20
+ </Text>) : null}
21
+ <Heading align={textAlign} level={1} size={{ base: 'h2', md: compact ? 'h2' : 'display' }}>
22
+ {title}
23
+ </Heading>
24
+ {description !== undefined ? (<Text tone="muted" align={textAlign} variant={{ base: 'body', md: compact ? 'body' : 'lead' }}>
25
+ {description}
26
+ </Text>) : null}
27
+ </Stack>
28
+
29
+ {hasActions ? (<Stack align={contentAlign} direction={{ base: 'column', md: 'row' }} gap="s" justify={align === 'center' ? 'center' : 'flex-start'}>
30
+ {primaryAction !== undefined ? renderAction(primaryAction, 'primary') : null}
31
+ {secondaryAction !== undefined ? renderAction(secondaryAction, 'secondary') : null}
32
+ </Stack>) : null}
33
+
34
+ {footer}
35
+ </Stack>
36
+ </Box>);
37
+ const mediaSlot = hasMedia ? <Box flex={1}>{media}</Box> : null;
38
+ return (<Card compact={compact} testID={testID} tone={tone}>
39
+ <Stack align="center" direction={direction} gap={compact ? 'm' : 'l'}>
40
+ {mediaFirst ? mediaSlot : content}
41
+ {mediaFirst ? content : mediaSlot}
42
+ </Stack>
43
+ </Card>);
44
+ }
45
+ function renderAction(action, role) {
46
+ return (<Button disabled={action.disabled} emphasis={action.emphasis ?? (role === 'primary' ? 'solid' : 'soft')} onPress={action.onPress} tone={action.tone ?? (role === 'primary' ? 'primary' : 'neutral')}>
47
+ {action.label}
48
+ </Button>);
49
+ }
50
+ function resolveContentAlign(align) {
51
+ return align === 'center' ? 'center' : 'flex-start';
52
+ }
53
+ function resolveDirection(layout, hasMedia) {
54
+ if (!hasMedia || layout === 'stack')
55
+ return 'column';
56
+ return { base: 'column', md: 'row' };
57
+ }
58
+ export const Hero = withZoraThemeScope(HeroInner);
59
+ //# sourceMappingURL=Hero.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.js","sourceRoot":"","sources":["../../../src/patterns/hero/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,SAAS,CAAC,EACjB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,WAAW,EACX,OAAO,EACP,aAAa,EACb,eAAe,EACf,KAAK,EACL,MAAM,EACN,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,OAAO,EAChB,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,KAAK,EACf,MAAM,GACI;IACV,MAAM,UAAU,GAAG,aAAa,KAAK,SAAS,IAAI,eAAe,KAAK,SAAS,CAAC;IAChF,MAAM,QAAQ,GAAG,KAAK,KAAK,SAAS,CAAC;IACrC,MAAM,SAAS,GAAG,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACrD,MAAM,YAAY,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5D,MAAM,UAAU,GAAG,MAAM,KAAK,YAAY,CAAC;IAE3C,MAAM,OAAO,GAAG,CACd,CA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AA,EAAE,KAAK,CACT;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,MAAkB,EAAE,IAA6B;IACrE,OAAO,CACL,CAAC,MAAM,CACL,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC1B,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CACrE,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CACxB,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAElE;MAAA,CAAC,MAAM,CAAC,KAAK,CACf;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAgB;IAC3C,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;AACtD,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAkB,EAAE,QAAiB;IAC7D,IAAI,CAAC,QAAQ,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,QAAiB,CAAC;IAC9D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAW,CAAC;AAChD,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Button } from '../../components/button';\nimport { Card } from '../../components/card';\nimport { Heading } from '../../components/heading';\nimport { Text } from '../../components/text';\nimport { Box, Stack } from '../../foundation';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { HeroAction, HeroAlign, HeroLayout, HeroProps } from './types';\n\nfunction HeroInner({\n themeId: _themeId,\n mode: _mode,\n title,\n description,\n eyebrow,\n primaryAction,\n secondaryAction,\n media,\n footer,\n align = 'start',\n layout = 'split',\n tone = 'subtle',\n compact = false,\n testID,\n}: HeroProps) {\n const hasActions = primaryAction !== undefined || secondaryAction !== undefined;\n const hasMedia = media !== undefined;\n const direction = resolveDirection(layout, hasMedia);\n const contentAlign = resolveContentAlign(align);\n const textAlign = align === 'center' ? 'center' : undefined;\n const mediaFirst = layout === 'mediaFirst';\n\n const content = (\n <Box flex={1}>\n <Stack align={contentAlign} gap={compact ? 's' : 'm'}>\n <Stack align={contentAlign} gap=\"xs\">\n {eyebrow !== undefined ? (\n <Text align={textAlign} tone=\"primary\" variant=\"eyebrow\">\n {eyebrow}\n </Text>\n ) : null}\n <Heading\n align={textAlign}\n level={1}\n size={{ base: 'h2', md: compact ? 'h2' : 'display' }}\n >\n {title}\n </Heading>\n {description !== undefined ? (\n <Text\n tone=\"muted\"\n align={textAlign}\n variant={{ base: 'body', md: compact ? 'body' : 'lead' }}\n >\n {description}\n </Text>\n ) : null}\n </Stack>\n\n {hasActions ? (\n <Stack\n align={contentAlign}\n direction={{ base: 'column', md: 'row' }}\n gap=\"s\"\n justify={align === 'center' ? 'center' : 'flex-start'}\n >\n {primaryAction !== undefined ? renderAction(primaryAction, 'primary') : null}\n {secondaryAction !== undefined ? renderAction(secondaryAction, 'secondary') : null}\n </Stack>\n ) : null}\n\n {footer}\n </Stack>\n </Box>\n );\n\n const mediaSlot = hasMedia ? <Box flex={1}>{media}</Box> : null;\n\n return (\n <Card compact={compact} testID={testID} tone={tone}>\n <Stack align=\"center\" direction={direction} gap={compact ? 'm' : 'l'}>\n {mediaFirst ? mediaSlot : content}\n {mediaFirst ? content : mediaSlot}\n </Stack>\n </Card>\n );\n}\n\nfunction renderAction(action: HeroAction, role: 'primary' | 'secondary') {\n return (\n <Button\n disabled={action.disabled}\n emphasis={action.emphasis ?? (role === 'primary' ? 'solid' : 'soft')}\n onPress={action.onPress}\n tone={action.tone ?? (role === 'primary' ? 'primary' : 'neutral')}\n >\n {action.label}\n </Button>\n );\n}\n\nfunction resolveContentAlign(align: HeroAlign) {\n return align === 'center' ? 'center' : 'flex-start';\n}\n\nfunction resolveDirection(layout: HeroLayout, hasMedia: boolean) {\n if (!hasMedia || layout === 'stack') return 'column' as const;\n return { base: 'column', md: 'row' } as const;\n}\n\nexport const Hero = withZoraThemeScope(HeroInner);\n"]}
@@ -0,0 +1,3 @@
1
+ export { Hero } from './Hero';
2
+ export type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Hero } from './Hero';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC","sourcesContent":["export { Hero } from './Hero';\nexport type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './types';\n"]}
@@ -0,0 +1,101 @@
1
+ export declare const heroMeta: {
2
+ readonly name: "Hero";
3
+ readonly category: "pattern";
4
+ readonly description: "Landing-page and section hero with title copy, actions, and optional media.";
5
+ readonly directManifestNode: true;
6
+ readonly allowedChildren: readonly [];
7
+ readonly blueprint: {
8
+ readonly label: "Hero";
9
+ readonly icon: {
10
+ readonly name: "sparkles-outline";
11
+ };
12
+ readonly defaultProps: {
13
+ readonly eyebrow: "New release";
14
+ readonly title: "Build product screens faster";
15
+ readonly description: "Use a responsive hero pattern with strong defaults and structured actions.";
16
+ readonly align: "start";
17
+ readonly layout: "split";
18
+ readonly tone: "subtle";
19
+ };
20
+ };
21
+ readonly i18n: {
22
+ readonly fields: readonly [{
23
+ readonly keyProp: "eyebrowI18nKey";
24
+ readonly defaultTextProp: "eyebrow";
25
+ }, {
26
+ readonly keyProp: "titleI18nKey";
27
+ readonly defaultTextProp: "title";
28
+ }, {
29
+ readonly keyProp: "descriptionI18nKey";
30
+ readonly defaultTextProp: "description";
31
+ }];
32
+ };
33
+ readonly slots: {
34
+ readonly media: {
35
+ readonly label: "Media";
36
+ readonly allowedChildren: readonly ["Image", "Card", "MetricCard", "MediaCard"];
37
+ };
38
+ readonly footer: {
39
+ readonly label: "Footer";
40
+ readonly allowedChildren: readonly ["Badge", "Text", "AvatarGroup"];
41
+ };
42
+ };
43
+ readonly props: {
44
+ readonly eyebrow: {
45
+ readonly type: "string";
46
+ readonly category: "Content";
47
+ readonly label: "Eyebrow";
48
+ readonly default: "New release";
49
+ };
50
+ readonly title: {
51
+ readonly type: "string";
52
+ readonly category: "Content";
53
+ readonly label: "Title";
54
+ readonly default: "Build product screens faster";
55
+ };
56
+ readonly description: {
57
+ readonly type: "string";
58
+ readonly category: "Content";
59
+ readonly label: "Description";
60
+ readonly default: "Use a responsive hero pattern with strong defaults and structured actions.";
61
+ };
62
+ readonly align: {
63
+ readonly type: "enum";
64
+ readonly category: "Layout";
65
+ readonly label: "Alignment";
66
+ readonly enum: readonly ["start", "center"];
67
+ readonly default: "start";
68
+ };
69
+ readonly layout: {
70
+ readonly type: "enum";
71
+ readonly category: "Layout";
72
+ readonly label: "Layout";
73
+ readonly enum: readonly ["stack", "split", "mediaFirst"];
74
+ readonly default: "split";
75
+ };
76
+ readonly tone: {
77
+ readonly type: "enum";
78
+ readonly category: "Appearance";
79
+ readonly label: "Tone";
80
+ readonly enum: readonly ["default", "subtle", "outline"];
81
+ readonly default: "subtle";
82
+ };
83
+ readonly compact: {
84
+ readonly type: "boolean";
85
+ readonly category: "Layout";
86
+ readonly label: "Compact";
87
+ readonly default: false;
88
+ };
89
+ readonly primaryAction: {
90
+ readonly type: "action";
91
+ readonly category: "Actions";
92
+ readonly label: "Primary action";
93
+ };
94
+ readonly secondaryAction: {
95
+ readonly type: "action";
96
+ readonly category: "Actions";
97
+ readonly label: "Secondary action";
98
+ };
99
+ };
100
+ };
101
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/hero/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FiB,CAAC"}
@@ -0,0 +1,94 @@
1
+ export const heroMeta = {
2
+ name: 'Hero',
3
+ category: 'pattern',
4
+ description: 'Landing-page and section hero with title copy, actions, and optional media.',
5
+ directManifestNode: true,
6
+ allowedChildren: [],
7
+ blueprint: {
8
+ label: 'Hero',
9
+ icon: { name: 'sparkles-outline' },
10
+ defaultProps: {
11
+ eyebrow: 'New release',
12
+ title: 'Build product screens faster',
13
+ description: 'Use a responsive hero pattern with strong defaults and structured actions.',
14
+ align: 'start',
15
+ layout: 'split',
16
+ tone: 'subtle',
17
+ },
18
+ },
19
+ i18n: {
20
+ fields: [
21
+ { keyProp: 'eyebrowI18nKey', defaultTextProp: 'eyebrow' },
22
+ { keyProp: 'titleI18nKey', defaultTextProp: 'title' },
23
+ { keyProp: 'descriptionI18nKey', defaultTextProp: 'description' },
24
+ ],
25
+ },
26
+ slots: {
27
+ media: {
28
+ label: 'Media',
29
+ allowedChildren: ['Image', 'Card', 'MetricCard', 'MediaCard'],
30
+ },
31
+ footer: {
32
+ label: 'Footer',
33
+ allowedChildren: ['Badge', 'Text', 'AvatarGroup'],
34
+ },
35
+ },
36
+ props: {
37
+ eyebrow: {
38
+ type: 'string',
39
+ category: 'Content',
40
+ label: 'Eyebrow',
41
+ default: 'New release',
42
+ },
43
+ title: {
44
+ type: 'string',
45
+ category: 'Content',
46
+ label: 'Title',
47
+ default: 'Build product screens faster',
48
+ },
49
+ description: {
50
+ type: 'string',
51
+ category: 'Content',
52
+ label: 'Description',
53
+ default: 'Use a responsive hero pattern with strong defaults and structured actions.',
54
+ },
55
+ align: {
56
+ type: 'enum',
57
+ category: 'Layout',
58
+ label: 'Alignment',
59
+ enum: ['start', 'center'],
60
+ default: 'start',
61
+ },
62
+ layout: {
63
+ type: 'enum',
64
+ category: 'Layout',
65
+ label: 'Layout',
66
+ enum: ['stack', 'split', 'mediaFirst'],
67
+ default: 'split',
68
+ },
69
+ tone: {
70
+ type: 'enum',
71
+ category: 'Appearance',
72
+ label: 'Tone',
73
+ enum: ['default', 'subtle', 'outline'],
74
+ default: 'subtle',
75
+ },
76
+ compact: {
77
+ type: 'boolean',
78
+ category: 'Layout',
79
+ label: 'Compact',
80
+ default: false,
81
+ },
82
+ primaryAction: {
83
+ type: 'action',
84
+ category: 'Actions',
85
+ label: 'Primary action',
86
+ },
87
+ secondaryAction: {
88
+ type: 'action',
89
+ category: 'Actions',
90
+ label: 'Secondary action',
91
+ },
92
+ },
93
+ };
94
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/hero/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,6EAA6E;IAC1F,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAClC,YAAY,EAAE;YACZ,OAAO,EAAE,aAAa;YACtB,KAAK,EAAE,8BAA8B;Y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AAE,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC;YACtC,OAAO,EAAE,OAAO;SACjB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;YACtC,OAAO,EAAE,QAAQ;SAClB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;SACf;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,gBAAgB;SACxB;QACD,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,kBAAkB;SAC1B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const heroMeta = {\n name: 'Hero',\n category: 'pattern',\n description: 'Landing-page and section hero with title copy, actions, and optional media.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Hero',\n icon: { name: 'sparkles-outline' },\n defaultProps: {\n eyebrow: 'New release',\n title: 'Build product screens faster',\n description: 'Use a responsive hero pattern with strong defaults and structured actions.',\n align: 'start',\n layout: 'split',\n tone: 'subtle',\n },\n },\n i18n: {\n fields: [\n { keyProp: 'eyebrowI18nKey', defaultTextProp: 'eyebrow' },\n { keyProp: 'titleI18nKey', defaultTextProp: 'title' },\n { keyProp: 'descriptionI18nKey', defaultTextProp: 'description' },\n ],\n },\n slots: {\n media: {\n label: 'Media',\n allowedChildren: ['Image', 'Card', 'MetricCard', 'MediaCard'],\n },\n footer: {\n label: 'Footer',\n allowedChildren: ['Badge', 'Text', 'AvatarGroup'],\n },\n },\n props: {\n eyebrow: {\n type: 'string',\n category: 'Content',\n label: 'Eyebrow',\n default: 'New release',\n },\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n default: 'Build product screens faster',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n default: 'Use a responsive hero pattern with strong defaults and structured actions.',\n },\n align: {\n type: 'enum',\n category: 'Layout',\n label: 'Alignment',\n enum: ['start', 'center'],\n default: 'start',\n },\n layout: {\n type: 'enum',\n category: 'Layout',\n label: 'Layout',\n enum: ['stack', 'split', 'mediaFirst'],\n default: 'split',\n },\n tone: {\n type: 'enum',\n category: 'Appearance',\n label: 'Tone',\n enum: ['default', 'subtle', 'outline'],\n default: 'subtle',\n },\n compact: {\n type: 'boolean',\n category: 'Layout',\n label: 'Compact',\n default: false,\n },\n primaryAction: {\n type: 'action',\n category: 'Actions',\n label: 'Primary action',\n },\n secondaryAction: {\n type: 'action',\n category: 'Actions',\n label: 'Secondary action',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,27 @@
1
+ import type React from 'react';
2
+ import type { ZoraEmphasis, ZoraTone } from '../../internal/recipes';
3
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
+ export type HeroAlign = 'start' | 'center';
5
+ export type HeroLayout = 'stack' | 'split' | 'mediaFirst';
6
+ export type HeroTone = 'default' | 'subtle' | 'outline';
7
+ export interface HeroAction {
8
+ label: React.ReactNode;
9
+ onPress: () => void;
10
+ tone?: ZoraTone;
11
+ emphasis?: ZoraEmphasis;
12
+ disabled?: boolean;
13
+ }
14
+ export interface HeroProps extends ZoraBaseProps {
15
+ title: React.ReactNode;
16
+ description?: React.ReactNode;
17
+ eyebrow?: React.ReactNode;
18
+ primaryAction?: HeroAction;
19
+ secondaryAction?: HeroAction;
20
+ media?: React.ReactNode;
21
+ footer?: React.ReactNode;
22
+ align?: HeroAlign;
23
+ layout?: HeroLayout;
24
+ tone?: HeroTone;
25
+ compact?: boolean;
26
+ }
27
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"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"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/hero/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraEmphasis, ZoraTone } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport type HeroAlign = 'start' | 'center';\nexport type HeroLayout = 'stack' | 'split' | 'mediaFirst';\nexport type HeroTone = 'default' | 'subtle' | 'outline';\n\nexport interface HeroAction {\n label: React.ReactNode;\n onPress: () => void;\n tone?: ZoraTone;\n emphasis?: ZoraEmphasis;\n disabled?: boolean;\n}\n\nexport interface HeroProps extends ZoraBaseProps {\n title: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n primaryAction?: HeroAction;\n secondaryAction?: HeroAction;\n media?: React.ReactNode;\n footer?: React.ReactNode;\n align?: HeroAlign;\n layout?: HeroLayout;\n tone?: HeroTone;\n compact?: boolean;\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora",
3
3
  "type": "module",
4
- "version": "1.4.0",
4
+ "version": "1.4.1",
5
5
  "description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
6
6
  "homepage": "https://github.com/ankhorage/zora#readme",
7
7
  "bugs": {
@@ -11,7 +11,6 @@ export type {
11
11
  FormFieldInputType,
12
12
  FormFieldProps,
13
13
  FormFieldValue,
14
- FormFieldWrapperProps,
15
14
  FormProps,
16
15
  FormValidationErrors,
17
16
  FormValidationResult,
@@ -37,7 +37,7 @@ export interface FormFieldConfig<TName extends string = string> {
37
37
  testID?: string;
38
38
  }
39
39
 
40
- export interface FormFieldWrapperProps
40
+ interface FormFieldWrapperProps
41
41
  extends
42
42
  ZoraBaseProps,
43
43
  Pick<
package/src/index.ts CHANGED
@@ -27,7 +27,6 @@ export type {
27
27
  FormFieldInputType,
28
28
  FormFieldProps,
29
29
  FormFieldValue,
30
- FormFieldWrapperProps,
31
30
  FormProps,
32
31
  FormValidationErrors,
33
32
  FormValidationResult,
@@ -177,6 +176,8 @@ export type { EmptyStateAction, EmptyStateProps } from './patterns/empty-state';
177
176
  export { EmptyState } from './patterns/empty-state';
178
177
  export type { FilterBarProps } from './patterns/filter-bar';
179
178
  export { FilterBar } from './patterns/filter-bar';
179
+ export type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './patterns/hero';
180
+ export { Hero } from './patterns/hero';
180
181
  export type {
181
182
  ImagePreviewProps,
182
183
  ZoraImageAsset,
@@ -134,6 +134,7 @@ describe('ZORA_COMPONENT_META invariants', () => {
134
134
  'SectionHeader',
135
135
  'SettingsRow',
136
136
  'EmptyState',
137
+ 'Hero',
137
138
  'Button',
138
139
  'Input',
139
140
  'Textarea',
@@ -48,6 +48,7 @@ import { confirmDialogMeta } from '../patterns/confirm-dialog/meta';
48
48
  import { disclosureSectionMeta } from '../patterns/disclosure-section/meta';
49
49
  import { emptyStateMeta } from '../patterns/empty-state/meta';
50
50
  import { filterBarMeta } from '../patterns/filter-bar/meta';
51
+ import { heroMeta } from '../patterns/hero/meta';
51
52
  import { imagePreviewMeta } from '../patterns/image-preview/meta';
52
53
  import { imageUploadFieldMeta } from '../patterns/image-upload-field/meta';
53
54
  import { inspectorFieldMeta } from '../patterns/inspector-field/meta';
@@ -122,6 +123,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = {
122
123
  DisclosureSection: disclosureSectionMeta,
123
124
  EmptyState: emptyStateMeta,
124
125
  FilterBar: filterBarMeta,
126
+ Hero: heroMeta,
125
127
  ImagePreview: imagePreviewMeta,
126
128
  ImageUploadField: imageUploadFieldMeta,
127
129
  InspectorField: inspectorFieldMeta,
@@ -0,0 +1,112 @@
1
+ import React from 'react';
2
+
3
+ import { Button } from '../../components/button';
4
+ import { Card } from '../../components/card';
5
+ import { Heading } from '../../components/heading';
6
+ import { Text } from '../../components/text';
7
+ import { Box, Stack } from '../../foundation';
8
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
9
+ import type { HeroAction, HeroAlign, HeroLayout, HeroProps } from './types';
10
+
11
+ function HeroInner({
12
+ themeId: _themeId,
13
+ mode: _mode,
14
+ title,
15
+ description,
16
+ eyebrow,
17
+ primaryAction,
18
+ secondaryAction,
19
+ media,
20
+ footer,
21
+ align = 'start',
22
+ layout = 'split',
23
+ tone = 'subtle',
24
+ compact = false,
25
+ testID,
26
+ }: HeroProps) {
27
+ const hasActions = primaryAction !== undefined || secondaryAction !== undefined;
28
+ const hasMedia = media !== undefined;
29
+ const direction = resolveDirection(layout, hasMedia);
30
+ const contentAlign = resolveContentAlign(align);
31
+ const textAlign = align === 'center' ? 'center' : undefined;
32
+ const mediaFirst = layout === 'mediaFirst';
33
+
34
+ const content = (
35
+ <Box flex={1}>
36
+ <Stack align={contentAlign} gap={compact ? 's' : 'm'}>
37
+ <Stack align={contentAlign} gap="xs">
38
+ {eyebrow !== undefined ? (
39
+ <Text align={textAlign} tone="primary" variant="eyebrow">
40
+ {eyebrow}
41
+ </Text>
42
+ ) : null}
43
+ <Heading
44
+ align={textAlign}
45
+ level={1}
46
+ size={{ base: 'h2', md: compact ? 'h2' : 'display' }}
47
+ >
48
+ {title}
49
+ </Heading>
50
+ {description !== undefined ? (
51
+ <Text
52
+ tone="muted"
53
+ align={textAlign}
54
+ variant={{ base: 'body', md: compact ? 'body' : 'lead' }}
55
+ >
56
+ {description}
57
+ </Text>
58
+ ) : null}
59
+ </Stack>
60
+
61
+ {hasActions ? (
62
+ <Stack
63
+ align={contentAlign}
64
+ direction={{ base: 'column', md: 'row' }}
65
+ gap="s"
66
+ justify={align === 'center' ? 'center' : 'flex-start'}
67
+ >
68
+ {primaryAction !== undefined ? renderAction(primaryAction, 'primary') : null}
69
+ {secondaryAction !== undefined ? renderAction(secondaryAction, 'secondary') : null}
70
+ </Stack>
71
+ ) : null}
72
+
73
+ {footer}
74
+ </Stack>
75
+ </Box>
76
+ );
77
+
78
+ const mediaSlot = hasMedia ? <Box flex={1}>{media}</Box> : null;
79
+
80
+ return (
81
+ <Card compact={compact} testID={testID} tone={tone}>
82
+ <Stack align="center" direction={direction} gap={compact ? 'm' : 'l'}>
83
+ {mediaFirst ? mediaSlot : content}
84
+ {mediaFirst ? content : mediaSlot}
85
+ </Stack>
86
+ </Card>
87
+ );
88
+ }
89
+
90
+ function renderAction(action: HeroAction, role: 'primary' | 'secondary') {
91
+ return (
92
+ <Button
93
+ disabled={action.disabled}
94
+ emphasis={action.emphasis ?? (role === 'primary' ? 'solid' : 'soft')}
95
+ onPress={action.onPress}
96
+ tone={action.tone ?? (role === 'primary' ? 'primary' : 'neutral')}
97
+ >
98
+ {action.label}
99
+ </Button>
100
+ );
101
+ }
102
+
103
+ function resolveContentAlign(align: HeroAlign) {
104
+ return align === 'center' ? 'center' : 'flex-start';
105
+ }
106
+
107
+ function resolveDirection(layout: HeroLayout, hasMedia: boolean) {
108
+ if (!hasMedia || layout === 'stack') return 'column' as const;
109
+ return { base: 'column', md: 'row' } as const;
110
+ }
111
+
112
+ export const Hero = withZoraThemeScope(HeroInner);
@@ -0,0 +1,2 @@
1
+ export { Hero } from './Hero';
2
+ export type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './types';
@@ -0,0 +1,95 @@
1
+ import type { ZoraComponentMeta } from '../../metadata';
2
+
3
+ export const heroMeta = {
4
+ name: 'Hero',
5
+ category: 'pattern',
6
+ description: 'Landing-page and section hero with title copy, actions, and optional media.',
7
+ directManifestNode: true,
8
+ allowedChildren: [],
9
+ blueprint: {
10
+ label: 'Hero',
11
+ icon: { name: 'sparkles-outline' },
12
+ defaultProps: {
13
+ eyebrow: 'New release',
14
+ title: 'Build product screens faster',
15
+ description: 'Use a responsive hero pattern with strong defaults and structured actions.',
16
+ align: 'start',
17
+ layout: 'split',
18
+ tone: 'subtle',
19
+ },
20
+ },
21
+ i18n: {
22
+ fields: [
23
+ { keyProp: 'eyebrowI18nKey', defaultTextProp: 'eyebrow' },
24
+ { keyProp: 'titleI18nKey', defaultTextProp: 'title' },
25
+ { keyProp: 'descriptionI18nKey', defaultTextProp: 'description' },
26
+ ],
27
+ },
28
+ slots: {
29
+ media: {
30
+ label: 'Media',
31
+ allowedChildren: ['Image', 'Card', 'MetricCard', 'MediaCard'],
32
+ },
33
+ footer: {
34
+ label: 'Footer',
35
+ allowedChildren: ['Badge', 'Text', 'AvatarGroup'],
36
+ },
37
+ },
38
+ props: {
39
+ eyebrow: {
40
+ type: 'string',
41
+ category: 'Content',
42
+ label: 'Eyebrow',
43
+ default: 'New release',
44
+ },
45
+ title: {
46
+ type: 'string',
47
+ category: 'Content',
48
+ label: 'Title',
49
+ default: 'Build product screens faster',
50
+ },
51
+ description: {
52
+ type: 'string',
53
+ category: 'Content',
54
+ label: 'Description',
55
+ default: 'Use a responsive hero pattern with strong defaults and structured actions.',
56
+ },
57
+ align: {
58
+ type: 'enum',
59
+ category: 'Layout',
60
+ label: 'Alignment',
61
+ enum: ['start', 'center'],
62
+ default: 'start',
63
+ },
64
+ layout: {
65
+ type: 'enum',
66
+ category: 'Layout',
67
+ label: 'Layout',
68
+ enum: ['stack', 'split', 'mediaFirst'],
69
+ default: 'split',
70
+ },
71
+ tone: {
72
+ type: 'enum',
73
+ category: 'Appearance',
74
+ label: 'Tone',
75
+ enum: ['default', 'subtle', 'outline'],
76
+ default: 'subtle',
77
+ },
78
+ compact: {
79
+ type: 'boolean',
80
+ category: 'Layout',
81
+ label: 'Compact',
82
+ default: false,
83
+ },
84
+ primaryAction: {
85
+ type: 'action',
86
+ category: 'Actions',
87
+ label: 'Primary action',
88
+ },
89
+ secondaryAction: {
90
+ type: 'action',
91
+ category: 'Actions',
92
+ label: 'Secondary action',
93
+ },
94
+ },
95
+ } as const satisfies ZoraComponentMeta;
@@ -0,0 +1,30 @@
1
+ import type React from 'react';
2
+
3
+ import type { ZoraEmphasis, ZoraTone } from '../../internal/recipes';
4
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
5
+
6
+ export type HeroAlign = 'start' | 'center';
7
+ export type HeroLayout = 'stack' | 'split' | 'mediaFirst';
8
+ export type HeroTone = 'default' | 'subtle' | 'outline';
9
+
10
+ export interface HeroAction {
11
+ label: React.ReactNode;
12
+ onPress: () => void;
13
+ tone?: ZoraTone;
14
+ emphasis?: ZoraEmphasis;
15
+ disabled?: boolean;
16
+ }
17
+
18
+ export interface HeroProps extends ZoraBaseProps {
19
+ title: React.ReactNode;
20
+ description?: React.ReactNode;
21
+ eyebrow?: React.ReactNode;
22
+ primaryAction?: HeroAction;
23
+ secondaryAction?: HeroAction;
24
+ media?: React.ReactNode;
25
+ footer?: React.ReactNode;
26
+ align?: HeroAlign;
27
+ layout?: HeroLayout;
28
+ tone?: HeroTone;
29
+ compact?: boolean;
30
+ }