@ankhorage/zora 4.5.0 → 6.0.0

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 (206) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +13 -10
  3. package/dist/components/button/resolveButtonThemeRecipe.d.ts +1 -1
  4. package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
  5. package/dist/components/date-picker/DatePicker.js +92 -86
  6. package/dist/components/date-picker/DatePicker.js.map +1 -1
  7. package/dist/components/date-picker/meta.d.ts +1 -1
  8. package/dist/components/date-picker/meta.js +1 -1
  9. package/dist/components/date-picker/meta.js.map +1 -1
  10. package/dist/components/heading/resolveHeadingThemeRecipe.d.ts +1 -1
  11. package/dist/components/text/resolveTextThemeRecipe.d.ts +1 -1
  12. package/dist/components/time-picker/TimePicker.d.ts +1 -3
  13. package/dist/components/time-picker/TimePicker.d.ts.map +1 -1
  14. package/dist/components/time-picker/TimePicker.js +55 -32
  15. package/dist/components/time-picker/TimePicker.js.map +1 -1
  16. package/dist/components/time-picker/meta.d.ts +1 -1
  17. package/dist/components/time-picker/meta.js +1 -1
  18. package/dist/components/time-picker/meta.js.map +1 -1
  19. package/dist/features/bottom-sheet/public.d.ts +3 -0
  20. package/dist/features/bottom-sheet/public.d.ts.map +1 -0
  21. package/dist/features/bottom-sheet/public.js +2 -0
  22. package/dist/features/bottom-sheet/public.js.map +1 -0
  23. package/dist/index.d.ts +0 -14
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +0 -7
  26. package/dist/index.js.map +1 -1
  27. package/dist/metadata/componentMeta.d.ts.map +1 -1
  28. package/dist/metadata/componentMeta.js +0 -15
  29. package/dist/metadata/componentMeta.js.map +1 -1
  30. package/dist/registry.d.ts.map +1 -1
  31. package/dist/registry.js +0 -15
  32. package/dist/registry.js.map +1 -1
  33. package/dist/theme/ZoraProvider.d.ts +1 -1
  34. package/dist/theme/ZoraProvider.d.ts.map +1 -1
  35. package/dist/theme/ZoraProvider.js +3 -2
  36. package/dist/theme/ZoraProvider.js.map +1 -1
  37. package/dist/theme/useZoraTheme.d.ts +1 -1
  38. package/package.json +16 -3
  39. package/src/audit.test.ts +0 -29
  40. package/src/components/date-picker/DatePicker.tsx +197 -129
  41. package/src/components/date-picker/meta.ts +1 -1
  42. package/src/components/time-picker/TimePicker.tsx +147 -60
  43. package/src/components/time-picker/meta.ts +1 -1
  44. package/src/expo57Migration.test.ts +56 -0
  45. package/src/features/bottom-sheet/public.test.ts +39 -0
  46. package/src/features/bottom-sheet/public.ts +5 -0
  47. package/src/index.ts +0 -25
  48. package/src/interactionPolicy.test.ts +0 -17
  49. package/src/metadata/componentMeta.ts +0 -15
  50. package/src/platformAcceptance.test.ts +1 -1
  51. package/src/registry.ts +0 -15
  52. package/src/showcaseCoverage.test.ts +0 -6
  53. package/src/theme/ZoraProvider.tsx +3 -2
  54. package/src/theme/themeScopeStructure.test.ts +0 -4
  55. package/dist/components/action-sheet/ActionSheet.d.ts +0 -7
  56. package/dist/components/action-sheet/ActionSheet.d.ts.map +0 -1
  57. package/dist/components/action-sheet/ActionSheet.js +0 -11
  58. package/dist/components/action-sheet/ActionSheet.js.map +0 -1
  59. package/dist/components/action-sheet/ActionSheetItem.d.ts +0 -7
  60. package/dist/components/action-sheet/ActionSheetItem.d.ts.map +0 -1
  61. package/dist/components/action-sheet/ActionSheetItem.js +0 -17
  62. package/dist/components/action-sheet/ActionSheetItem.js.map +0 -1
  63. package/dist/components/action-sheet/index.d.ts +0 -4
  64. package/dist/components/action-sheet/index.d.ts.map +0 -1
  65. package/dist/components/action-sheet/index.js +0 -3
  66. package/dist/components/action-sheet/index.js.map +0 -1
  67. package/dist/components/action-sheet/meta.d.ts +0 -17
  68. package/dist/components/action-sheet/meta.d.ts.map +0 -1
  69. package/dist/components/action-sheet/meta.js +0 -17
  70. package/dist/components/action-sheet/meta.js.map +0 -1
  71. package/dist/components/action-sheet/types.d.ts +0 -13
  72. package/dist/components/action-sheet/types.d.ts.map +0 -1
  73. package/dist/components/action-sheet/types.js +0 -2
  74. package/dist/components/action-sheet/types.js.map +0 -1
  75. package/dist/components/drawer/Drawer.d.ts +0 -7
  76. package/dist/components/drawer/Drawer.d.ts.map +0 -1
  77. package/dist/components/drawer/Drawer.js +0 -36
  78. package/dist/components/drawer/Drawer.js.map +0 -1
  79. package/dist/components/drawer/index.d.ts +0 -3
  80. package/dist/components/drawer/index.d.ts.map +0 -1
  81. package/dist/components/drawer/index.js +0 -2
  82. package/dist/components/drawer/index.js.map +0 -1
  83. package/dist/components/drawer/meta.d.ts +0 -9
  84. package/dist/components/drawer/meta.d.ts.map +0 -1
  85. package/dist/components/drawer/meta.js +0 -9
  86. package/dist/components/drawer/meta.js.map +0 -1
  87. package/dist/components/drawer/types.d.ts +0 -10
  88. package/dist/components/drawer/types.d.ts.map +0 -1
  89. package/dist/components/drawer/types.js +0 -2
  90. package/dist/components/drawer/types.js.map +0 -1
  91. package/dist/components/navigation-item/NavigationItem.d.ts +0 -7
  92. package/dist/components/navigation-item/NavigationItem.d.ts.map +0 -1
  93. package/dist/components/navigation-item/NavigationItem.js +0 -21
  94. package/dist/components/navigation-item/NavigationItem.js.map +0 -1
  95. package/dist/components/navigation-item/index.d.ts +0 -3
  96. package/dist/components/navigation-item/index.d.ts.map +0 -1
  97. package/dist/components/navigation-item/index.js +0 -2
  98. package/dist/components/navigation-item/index.js.map +0 -1
  99. package/dist/components/navigation-item/meta.d.ts +0 -9
  100. package/dist/components/navigation-item/meta.d.ts.map +0 -1
  101. package/dist/components/navigation-item/meta.js +0 -9
  102. package/dist/components/navigation-item/meta.js.map +0 -1
  103. package/dist/components/navigation-item/types.d.ts +0 -23
  104. package/dist/components/navigation-item/types.d.ts.map +0 -1
  105. package/dist/components/navigation-item/types.js +0 -2
  106. package/dist/components/navigation-item/types.js.map +0 -1
  107. package/dist/components/navigation-list/NavigationList.d.ts +0 -7
  108. package/dist/components/navigation-list/NavigationList.d.ts.map +0 -1
  109. package/dist/components/navigation-list/NavigationList.js +0 -29
  110. package/dist/components/navigation-list/NavigationList.js.map +0 -1
  111. package/dist/components/navigation-list/index.d.ts +0 -3
  112. package/dist/components/navigation-list/index.d.ts.map +0 -1
  113. package/dist/components/navigation-list/index.js +0 -2
  114. package/dist/components/navigation-list/index.js.map +0 -1
  115. package/dist/components/navigation-list/meta.d.ts +0 -9
  116. package/dist/components/navigation-list/meta.d.ts.map +0 -1
  117. package/dist/components/navigation-list/meta.js +0 -9
  118. package/dist/components/navigation-list/meta.js.map +0 -1
  119. package/dist/components/navigation-list/types.d.ts +0 -15
  120. package/dist/components/navigation-list/types.d.ts.map +0 -1
  121. package/dist/components/navigation-list/types.js +0 -2
  122. package/dist/components/navigation-list/types.js.map +0 -1
  123. package/dist/internal/resolveZoraNavigationItems.d.ts +0 -65
  124. package/dist/internal/resolveZoraNavigationItems.d.ts.map +0 -1
  125. package/dist/internal/resolveZoraNavigationItems.js +0 -56
  126. package/dist/internal/resolveZoraNavigationItems.js.map +0 -1
  127. package/dist/patterns/responsive-panel/ResponsivePanel.d.ts +0 -16
  128. package/dist/patterns/responsive-panel/ResponsivePanel.d.ts.map +0 -1
  129. package/dist/patterns/responsive-panel/ResponsivePanel.js +0 -101
  130. package/dist/patterns/responsive-panel/ResponsivePanel.js.map +0 -1
  131. package/dist/patterns/responsive-panel/index.d.ts +0 -3
  132. package/dist/patterns/responsive-panel/index.d.ts.map +0 -1
  133. package/dist/patterns/responsive-panel/index.js +0 -3
  134. package/dist/patterns/responsive-panel/index.js.map +0 -1
  135. package/dist/patterns/responsive-panel/meta.d.ts +0 -9
  136. package/dist/patterns/responsive-panel/meta.d.ts.map +0 -1
  137. package/dist/patterns/responsive-panel/meta.js +0 -9
  138. package/dist/patterns/responsive-panel/meta.js.map +0 -1
  139. package/dist/patterns/responsive-panel/types.d.ts +0 -23
  140. package/dist/patterns/responsive-panel/types.d.ts.map +0 -1
  141. package/dist/patterns/responsive-panel/types.js +0 -2
  142. package/dist/patterns/responsive-panel/types.js.map +0 -1
  143. package/dist/patterns/zora-drawer-content/ZoraDrawerContent.d.ts +0 -9
  144. package/dist/patterns/zora-drawer-content/ZoraDrawerContent.d.ts.map +0 -1
  145. package/dist/patterns/zora-drawer-content/ZoraDrawerContent.js +0 -31
  146. package/dist/patterns/zora-drawer-content/ZoraDrawerContent.js.map +0 -1
  147. package/dist/patterns/zora-drawer-content/index.d.ts +0 -3
  148. package/dist/patterns/zora-drawer-content/index.d.ts.map +0 -1
  149. package/dist/patterns/zora-drawer-content/index.js +0 -2
  150. package/dist/patterns/zora-drawer-content/index.js.map +0 -1
  151. package/dist/patterns/zora-drawer-content/meta.d.ts +0 -9
  152. package/dist/patterns/zora-drawer-content/meta.d.ts.map +0 -1
  153. package/dist/patterns/zora-drawer-content/meta.js +0 -9
  154. package/dist/patterns/zora-drawer-content/meta.js.map +0 -1
  155. package/dist/patterns/zora-drawer-content/types.d.ts +0 -15
  156. package/dist/patterns/zora-drawer-content/types.d.ts.map +0 -1
  157. package/dist/patterns/zora-drawer-content/types.js +0 -2
  158. package/dist/patterns/zora-drawer-content/types.js.map +0 -1
  159. package/dist/patterns/zora-tab-bar/ZoraTabBar.d.ts +0 -9
  160. package/dist/patterns/zora-tab-bar/ZoraTabBar.d.ts.map +0 -1
  161. package/dist/patterns/zora-tab-bar/ZoraTabBar.js +0 -89
  162. package/dist/patterns/zora-tab-bar/ZoraTabBar.js.map +0 -1
  163. package/dist/patterns/zora-tab-bar/index.d.ts +0 -3
  164. package/dist/patterns/zora-tab-bar/index.d.ts.map +0 -1
  165. package/dist/patterns/zora-tab-bar/index.js +0 -2
  166. package/dist/patterns/zora-tab-bar/index.js.map +0 -1
  167. package/dist/patterns/zora-tab-bar/meta.d.ts +0 -9
  168. package/dist/patterns/zora-tab-bar/meta.d.ts.map +0 -1
  169. package/dist/patterns/zora-tab-bar/meta.js +0 -9
  170. package/dist/patterns/zora-tab-bar/meta.js.map +0 -1
  171. package/dist/patterns/zora-tab-bar/types.d.ts +0 -19
  172. package/dist/patterns/zora-tab-bar/types.d.ts.map +0 -1
  173. package/dist/patterns/zora-tab-bar/types.js +0 -2
  174. package/dist/patterns/zora-tab-bar/types.js.map +0 -1
  175. package/src/components/action-sheet/ActionSheet.tsx +0 -14
  176. package/src/components/action-sheet/ActionSheetItem.tsx +0 -30
  177. package/src/components/action-sheet/index.ts +0 -3
  178. package/src/components/action-sheet/meta.ts +0 -19
  179. package/src/components/action-sheet/types.ts +0 -23
  180. package/src/components/drawer/Drawer.tsx +0 -59
  181. package/src/components/drawer/index.ts +0 -2
  182. package/src/components/drawer/meta.ts +0 -10
  183. package/src/components/drawer/types.ts +0 -17
  184. package/src/components/navigation-item/NavigationItem.tsx +0 -41
  185. package/src/components/navigation-item/index.ts +0 -6
  186. package/src/components/navigation-item/meta.ts +0 -10
  187. package/src/components/navigation-item/types.ts +0 -26
  188. package/src/components/navigation-list/NavigationList.tsx +0 -68
  189. package/src/components/navigation-list/index.ts +0 -2
  190. package/src/components/navigation-list/meta.ts +0 -10
  191. package/src/components/navigation-list/types.ts +0 -17
  192. package/src/internal/resolveZoraNavigationItems.test.ts +0 -174
  193. package/src/internal/resolveZoraNavigationItems.ts +0 -157
  194. package/src/navigationExports.test.ts +0 -15
  195. package/src/patterns/responsive-panel/ResponsivePanel.tsx +0 -172
  196. package/src/patterns/responsive-panel/index.ts +0 -2
  197. package/src/patterns/responsive-panel/meta.ts +0 -10
  198. package/src/patterns/responsive-panel/types.ts +0 -25
  199. package/src/patterns/zora-drawer-content/ZoraDrawerContent.tsx +0 -60
  200. package/src/patterns/zora-drawer-content/index.ts +0 -2
  201. package/src/patterns/zora-drawer-content/meta.ts +0 -10
  202. package/src/patterns/zora-drawer-content/types.ts +0 -20
  203. package/src/patterns/zora-tab-bar/ZoraTabBar.tsx +0 -157
  204. package/src/patterns/zora-tab-bar/index.ts +0 -2
  205. package/src/patterns/zora-tab-bar/meta.ts +0 -10
  206. package/src/patterns/zora-tab-bar/types.ts +0 -18
@@ -28,7 +28,6 @@ const REQUIRED_SHOWCASE_COVERAGE = {
28
28
  'CheckboxGroup',
29
29
  'Chip',
30
30
  'ChipGroup',
31
- 'Drawer',
32
31
  'Form',
33
32
  'FormActions',
34
33
  'FormError',
@@ -41,8 +40,6 @@ const REQUIRED_SHOWCASE_COVERAGE = {
41
40
  'MediaCard',
42
41
  'MetricCard',
43
42
  'Modal',
44
- 'NavigationItem',
45
- 'NavigationList',
46
43
  'Progress',
47
44
  'ProgressRing',
48
45
  'Radio',
@@ -97,7 +94,6 @@ const REQUIRED_SHOWCASE_COVERAGE = {
97
94
  'ImageUploadField',
98
95
  'Notice',
99
96
  'Panel',
100
- 'ResponsivePanel',
101
97
  'ReaderSurface',
102
98
  'SectionHeader',
103
99
  'SettingsRow',
@@ -108,8 +104,6 @@ const REQUIRED_SHOWCASE_COVERAGE = {
108
104
  'TileGrid',
109
105
  'TreeItem',
110
106
  'TreeView',
111
- 'ZoraDrawerContent',
112
- 'ZoraTabBar',
113
107
  ],
114
108
  } as const;
115
109
 
@@ -1,5 +1,6 @@
1
1
  import type { ThemeConfig } from '@ankhorage/contracts';
2
2
  import { ThemeProvider } from '@ankhorage/surface';
3
+ import { BottomSheetProvider } from '@ankhorage/surface/bottom-sheet';
3
4
  import React from 'react';
4
5
 
5
6
  import { createZoraThemeConfig } from './createZoraThemeConfig';
@@ -14,7 +15,7 @@ export interface ZoraProviderProps {
14
15
  initialMode?: ZoraThemeMode;
15
16
  }
16
17
 
17
- /** Installs the ZORA theme runtime and underlying Surface theme provider. */
18
+ /** Installs the ZORA theme runtime, Surface theme, and shared bottom-sheet controller. */
18
19
  export function ZoraProvider({
19
20
  children,
20
21
  theme = zoraDefaultTheme,
@@ -30,7 +31,7 @@ export function ZoraProvider({
30
31
  return (
31
32
  <ZoraThemeRuntimeContext.Provider value={runtimeValue}>
32
33
  <ThemeProvider initialConfig={resolvedConfig} initialMode={initialMode}>
33
- {children}
34
+ <BottomSheetProvider>{children}</BottomSheetProvider>
34
35
  </ThemeProvider>
35
36
  </ZoraThemeRuntimeContext.Provider>
36
37
  );
@@ -62,7 +62,6 @@ const scopedComponentFiles = [
62
62
  join(srcDir, 'components', 'metric-card', 'MetricCard.tsx'),
63
63
  join(srcDir, 'components', 'checkbox', 'Checkbox.tsx'),
64
64
  join(srcDir, 'components', 'checkbox', 'CheckboxGroup.tsx'),
65
- join(srcDir, 'components', 'drawer', 'Drawer.tsx'),
66
65
  join(srcDir, 'components', 'form', 'Form.tsx'),
67
66
  join(srcDir, 'components', 'form', 'FormActions.tsx'),
68
67
  join(srcDir, 'components', 'form', 'FormError.tsx'),
@@ -105,7 +104,6 @@ const scopedComponentFiles = [
105
104
  join(srcDir, 'patterns', 'list', 'ListSection.tsx'),
106
105
  join(srcDir, 'patterns', 'notice', 'Notice.tsx'),
107
106
  join(srcDir, 'patterns', 'panel', 'Panel.tsx'),
108
- join(srcDir, 'patterns', 'responsive-panel', 'ResponsivePanel.tsx'),
109
107
  join(srcDir, 'patterns', 'section-header', 'SectionHeader.tsx'),
110
108
  join(srcDir, 'patterns', 'settings-row', 'SettingsRow.tsx'),
111
109
  join(srcDir, 'patterns', 'switch-field', 'SwitchField.tsx'),
@@ -136,7 +134,6 @@ const scopedPropTypeFiles = [
136
134
  join(srcDir, 'components', 'media-card', 'types.ts'),
137
135
  join(srcDir, 'components', 'metric-card', 'types.ts'),
138
136
  join(srcDir, 'components', 'checkbox', 'types.ts'),
139
- join(srcDir, 'components', 'drawer', 'types.ts'),
140
137
  join(srcDir, 'components', 'form', 'types.ts'),
141
138
  join(srcDir, 'components', 'heading', 'types.ts'),
142
139
  join(srcDir, 'components', 'icon', 'Icon.tsx'),
@@ -169,7 +166,6 @@ const scopedPropTypeFiles = [
169
166
  join(srcDir, 'patterns', 'list', 'types.ts'),
170
167
  join(srcDir, 'patterns', 'notice', 'types.ts'),
171
168
  join(srcDir, 'patterns', 'panel', 'types.ts'),
172
- join(srcDir, 'patterns', 'responsive-panel', 'types.ts'),
173
169
  join(srcDir, 'patterns', 'section-header', 'types.ts'),
174
170
  join(srcDir, 'patterns', 'settings-row', 'types.ts'),
175
171
  join(srcDir, 'patterns', 'switch-field', 'types.ts'),
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ActionSheetProps } from './types';
3
- /***
4
- * Presents a modal bottom sheet with a list of actions.
5
- */
6
- export declare const ActionSheet: (props: ActionSheetProps) => React.ReactElement | null;
7
- //# sourceMappingURL=ActionSheet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/ActionSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD;;GAEG;AACH,eAAO,MAAM,WAAW,wDAAuC,CAAC"}
@@ -1,11 +0,0 @@
1
- import { ActionSheet as SurfaceActionSheet } from '@ankhorage/surface';
2
- import React from 'react';
3
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
4
- function ActionSheetInner({ mode: _mode, themeId: _themeId, ...props }) {
5
- return <SurfaceActionSheet {...props}/>;
6
- }
7
- /***
8
- * Presents a modal bottom sheet with a list of actions.
9
- */
10
- export const ActionSheet = withZoraThemeScope(ActionSheetInner);
11
- //# sourceMappingURL=ActionSheet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionSheet.js","sourceRoot":"","sources":["../../../src/components/action-sheet/ActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAoB;IACtF,OAAO,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import { ActionSheet as SurfaceActionSheet } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ActionSheetProps } from './types';\n\nfunction ActionSheetInner({ mode: _mode, themeId: _themeId, ...props }: ActionSheetProps) {\n return <SurfaceActionSheet {...props} />;\n}\n\n/***\n * Presents a modal bottom sheet with a list of actions.\n */\nexport const ActionSheet = withZoraThemeScope(ActionSheetInner);\n"]}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ActionSheetItemProps } from './types';
3
- /***
4
- * Renders a single selectable action row within an `ActionSheet`.
5
- */
6
- export declare const ActionSheetItem: (props: ActionSheetItemProps) => React.ReactElement | null;
7
- //# sourceMappingURL=ActionSheetItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionSheetItem.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/ActionSheetItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAmBpD;;GAEG;AACH,eAAO,MAAM,eAAe,4DAA2C,CAAC"}
@@ -1,17 +0,0 @@
1
- import { ActionSheetItem as SurfaceActionSheetItem } from '@ankhorage/surface';
2
- import React from 'react';
3
- import { resolveIconSize } from '../../internal/recipes';
4
- import { useZoraTheme } from '../../theme/useZoraTheme';
5
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
- import { Icon } from '../icon';
7
- function ActionSheetItemInner({ themeId: _themeId, mode: _mode, icon, leading, ...props }) {
8
- const { theme } = useZoraTheme();
9
- const resolvedLeading = leading ??
10
- (icon ? (<Icon {...icon} color={theme.semantics.content.muted} size={resolveIconSize('s')}/>) : undefined);
11
- return <SurfaceActionSheetItem {...props} leading={resolvedLeading}/>;
12
- }
13
- /***
14
- * Renders a single selectable action row within an `ActionSheet`.
15
- */
16
- export const ActionSheetItem = withZoraThemeScope(ActionSheetItemInner);
17
- //# sourceMappingURL=ActionSheetItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionSheetItem.js","sourceRoot":"","sources":["../../../src/components/action-sheet/ActionSheetItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,SAAS,oBAAoB,CAAC,EAC5B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,IAAI,EACJ,OAAO,EACP,GAAG,KAAK,EACa;IACrB,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,eAAe,GACnB,OAAO;QACP,CAAC,IAAI,CAAC,CAAC,CAAC,CACN,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAG,CACrF,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEjB,OAAO,CAAC,sBAAsB,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,EAAG,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAC,oBAAoB,CAAC,CAAC","sourcesContent":["import { ActionSheetItem as SurfaceActionSheetItem } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { resolveIconSize } from '../../internal/recipes';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Icon } from '../icon';\nimport type { ActionSheetItemProps } from './types';\n\nfunction ActionSheetItemInner({\n themeId: _themeId,\n mode: _mode,\n icon,\n leading,\n ...props\n}: ActionSheetItemProps) {\n const { theme } = useZoraTheme();\n const resolvedLeading =\n leading ??\n (icon ? (\n <Icon {...icon} color={theme.semantics.content.muted} size={resolveIconSize('s')} />\n ) : undefined);\n\n return <SurfaceActionSheetItem {...props} leading={resolvedLeading} />;\n}\n\n/***\n * Renders a single selectable action row within an `ActionSheet`.\n */\nexport const ActionSheetItem = withZoraThemeScope(ActionSheetItemInner);\n"]}
@@ -1,4 +0,0 @@
1
- export { ActionSheet } from './ActionSheet';
2
- export { ActionSheetItem } from './ActionSheetItem';
3
- export type { ActionSheetItemProps, ActionSheetProps } from './types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,3 +0,0 @@
1
- export { ActionSheet } from './ActionSheet';
2
- export { ActionSheetItem } from './ActionSheetItem';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/action-sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["export { ActionSheet } from './ActionSheet';\nexport { ActionSheetItem } from './ActionSheetItem';\nexport type { ActionSheetItemProps, ActionSheetProps } from './types';\n"]}
@@ -1,17 +0,0 @@
1
- export declare const actionSheetMeta: {
2
- readonly name: "ActionSheet";
3
- readonly category: "component";
4
- readonly directManifestNode: false;
5
- readonly allowedChildren: readonly [];
6
- readonly note: "Surface-backed contextual action sheet; not represented as a manifest node in v1.";
7
- readonly props: {};
8
- };
9
- export declare const actionSheetItemMeta: {
10
- readonly name: "ActionSheetItem";
11
- readonly category: "component";
12
- readonly directManifestNode: false;
13
- readonly allowedChildren: readonly [];
14
- readonly note: "Surface-backed contextual action sheet row; not represented as a manifest node in v1.";
15
- readonly props: {};
16
- };
17
- //# sourceMappingURL=meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;CAOU,CAAC;AAEvC,eAAO,MAAM,mBAAmB;;;;;;;CAOM,CAAC"}
@@ -1,17 +0,0 @@
1
- export const actionSheetMeta = {
2
- name: 'ActionSheet',
3
- category: 'component',
4
- directManifestNode: false,
5
- allowedChildren: [],
6
- note: 'Surface-backed contextual action sheet; not represented as a manifest node in v1.',
7
- props: {},
8
- };
9
- export const actionSheetItemMeta = {
10
- name: 'ActionSheetItem',
11
- category: 'component',
12
- directManifestNode: false,
13
- allowedChildren: [],
14
- note: 'Surface-backed contextual action sheet row; not represented as a manifest node in v1.',
15
- props: {},
16
- };
17
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/action-sheet/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,mFAAmF;IACzF,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,uFAAuF;IAC7F,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const actionSheetMeta = {\n name: 'ActionSheet',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Surface-backed contextual action sheet; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const actionSheetItemMeta = {\n name: 'ActionSheetItem',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Surface-backed contextual action sheet row; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,13 +0,0 @@
1
- import type { ActionSheetItemProps as SurfaceActionSheetItemProps, ActionSheetProps as SurfaceActionSheetProps, ButtonIconSpec } from '@ankhorage/surface';
2
- import type React from 'react';
3
- import type { ZoraColor } from '../../internal/recipes';
4
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
5
- export interface ActionSheetProps extends ZoraBaseProps, Omit<SurfaceActionSheetProps, 'children' | 'mode' | 'themeId'> {
6
- children?: React.ReactNode;
7
- }
8
- export interface ActionSheetItemProps extends ZoraBaseProps, Omit<SurfaceActionSheetItemProps, 'color' | 'leading' | 'mode' | 'themeId'> {
9
- color?: ZoraColor;
10
- icon?: ButtonIconSpec;
11
- leading?: React.ReactNode;
12
- }
13
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,IAAI,2BAA2B,EACnD,gBAAgB,IAAI,uBAAuB,EAC3C,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,gBACf,SAAQ,aAAa,EAAE,IAAI,CAAC,uBAAuB,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;IACrF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,oBACf,SACE,aAAa,EACb,IAAI,CAAC,2BAA2B,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IAC7E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/action-sheet/types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n ActionSheetItemProps as SurfaceActionSheetItemProps,\n ActionSheetProps as SurfaceActionSheetProps,\n ButtonIconSpec,\n} from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraColor } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface ActionSheetProps\n extends ZoraBaseProps, Omit<SurfaceActionSheetProps, 'children' | 'mode' | 'themeId'> {\n children?: React.ReactNode;\n}\n\nexport interface ActionSheetItemProps\n extends\n ZoraBaseProps,\n Omit<SurfaceActionSheetItemProps, 'color' | 'leading' | 'mode' | 'themeId'> {\n color?: ZoraColor;\n icon?: ButtonIconSpec;\n leading?: React.ReactNode;\n}\n"]}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { DrawerProps } from './types';
3
- /***
4
- * Side panel overlay for navigation, settings, and secondary content.
5
- */
6
- export declare const Drawer: (props: DrawerProps) => React.ReactElement | null;
7
- //# sourceMappingURL=Drawer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAM9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAgD3C;;GAEG;AACH,eAAO,MAAM,MAAM,mDAAkC,CAAC"}
@@ -1,36 +0,0 @@
1
- import { Drawer as SurfaceDrawer } from '@ankhorage/surface';
2
- import React, { useCallback, useEffect, useRef } from 'react';
3
- import { Box, Stack } from '../../foundation';
4
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
- import { Heading } from '../heading';
6
- import { Text } from '../text';
7
- function useStableCallback(callback) {
8
- const callbackRef = useRef(callback);
9
- useEffect(() => {
10
- callbackRef.current = callback;
11
- }, [callback]);
12
- return useCallback(() => {
13
- callbackRef.current?.();
14
- }, []);
15
- }
16
- function DrawerInner({ themeId: _themeId, mode: _mode, children, title, description, footer, onDismiss, interactionPolicy, ...props }) {
17
- const hasHeader = title != null || description != null;
18
- const stableOnDismiss = useStableCallback(onDismiss);
19
- return (<SurfaceDrawer {...props} onDismiss={stableOnDismiss} interactionPolicy={interactionPolicy}>
20
- <Stack gap="m">
21
- {hasHeader ? (<Stack gap="xs">
22
- {title ? <Heading level={3}>{title}</Heading> : null}
23
- {description ? (<Text emphasis="muted" variant="bodySmall">
24
- {description}
25
- </Text>) : null}
26
- </Stack>) : null}
27
- {children ? <Box flex={1}>{children}</Box> : null}
28
- {footer ? <Box pt="xs">{footer}</Box> : null}
29
- </Stack>
30
- </SurfaceDrawer>);
31
- }
32
- /***
33
- * Side panel overlay for navigation, settings, and secondary content.
34
- */
35
- export const Drawer = withZoraThemeScope(DrawerInner);
36
- //# sourceMappingURL=Drawer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src/components/drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,SAAS,iBAAiB,CAAC,QAAkC;IAC3D,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAErC,SAAS,CAAC,GAAG,EAAE;QACb,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IACjC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,WAAW,CAAC,GAAG,EAAE;QACtB,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC;IAC1B,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAED,SAAS,WAAW,CAAC,EACnB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,QAAQ,EACR,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,GAAG,KAAK,EACI;IACZ,MAAM,SAAS,GAAG,KAAK,IAAI,IAAI,IAAI,WAAW,IAAI,IAAI,CAAC;IACvD,MAAM,eAAe,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAErD,OAAO,CACL,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACzF;MAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CACZ;QAAA,CAAC,SAAS,CAAC,CAAC,CAAC,CACX,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CACb;YAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CACpD;YAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CACxC;gBAAA,CAAC,WAAW,CACd;cAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;UAAA,EAAE,KAAK,CAAC,CACT,CAAC,CAAC,CAAC,IAAI,CACR;QAAA,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CACjD;QAAA,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAC9C;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import { Drawer as SurfaceDrawer } from '@ankhorage/surface';\nimport React, { useCallback, useEffect, useRef } from 'react';\n\nimport { Box, Stack } from '../../foundation';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Heading } from '../heading';\nimport { Text } from '../text';\nimport type { DrawerProps } from './types';\n\nfunction useStableCallback(callback: (() => void) | undefined): (() => void) | undefined {\n const callbackRef = useRef(callback);\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n return useCallback(() => {\n callbackRef.current?.();\n }, []);\n}\n\nfunction DrawerInner({\n themeId: _themeId,\n mode: _mode,\n children,\n title,\n description,\n footer,\n onDismiss,\n interactionPolicy,\n ...props\n}: DrawerProps) {\n const hasHeader = title != null || description != null;\n const stableOnDismiss = useStableCallback(onDismiss);\n\n return (\n <SurfaceDrawer {...props} onDismiss={stableOnDismiss} interactionPolicy={interactionPolicy}>\n <Stack gap=\"m\">\n {hasHeader ? (\n <Stack gap=\"xs\">\n {title ? <Heading level={3}>{title}</Heading> : null}\n {description ? (\n <Text emphasis=\"muted\" variant=\"bodySmall\">\n {description}\n </Text>\n ) : null}\n </Stack>\n ) : null}\n {children ? <Box flex={1}>{children}</Box> : null}\n {footer ? <Box pt=\"xs\">{footer}</Box> : null}\n </Stack>\n </SurfaceDrawer>\n );\n}\n\n/***\n * Side panel overlay for navigation, settings, and secondary content.\n */\nexport const Drawer = withZoraThemeScope(DrawerInner);\n"]}
@@ -1,3 +0,0 @@
1
- export { Drawer } from './Drawer';
2
- export type { DrawerProps } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Drawer } from './Drawer';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC","sourcesContent":["export { Drawer } from './Drawer';\nexport type { DrawerProps } from './types';\n"]}
@@ -1,9 +0,0 @@
1
- export declare const drawerMeta: {
2
- readonly name: "Drawer";
3
- readonly category: "component";
4
- readonly directManifestNode: false;
5
- readonly allowedChildren: readonly [];
6
- readonly note: "Shell/navigation component; not represented as a manifest node in v1.";
7
- readonly props: {};
8
- };
9
- //# sourceMappingURL=meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;CAOe,CAAC"}
@@ -1,9 +0,0 @@
1
- export const drawerMeta = {
2
- name: 'Drawer',
3
- category: 'component',
4
- directManifestNode: false,
5
- allowedChildren: [],
6
- note: 'Shell/navigation component; not represented as a manifest node in v1.',
7
- props: {},
8
- };
9
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/drawer/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,uEAAuE;IAC7E,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const drawerMeta = {\n name: 'Drawer',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Shell/navigation component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,10 +0,0 @@
1
- import type { DrawerProps as SurfaceDrawerProps } from '@ankhorage/surface';
2
- import type React from 'react';
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
- export interface DrawerProps extends ZoraBaseProps, Pick<Omit<SurfaceDrawerProps, 'mode' | 'themeId'>, 'closeOnBackdrop' | 'onDismiss' | 'position' | 'visible'> {
5
- children?: React.ReactNode;
6
- title?: React.ReactNode;
7
- description?: React.ReactNode;
8
- footer?: React.ReactNode;
9
- }
10
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,WACf,SACE,aAAa,EACb,IAAI,CACF,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC,EAC5C,iBAAiB,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,CACzD;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/drawer/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { DrawerProps as SurfaceDrawerProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface DrawerProps\n extends\n ZoraBaseProps,\n Pick<\n Omit<SurfaceDrawerProps, 'mode' | 'themeId'>,\n 'closeOnBackdrop' | 'onDismiss' | 'position' | 'visible'\n > {\n children?: React.ReactNode;\n title?: React.ReactNode;\n description?: React.ReactNode;\n footer?: React.ReactNode;\n}\n"]}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { NavigationItemProps } from './types';
3
- /***
4
- * Renders a single navigation entry with active/disabled state support.
5
- */
6
- export declare const NavigationItem: (props: NavigationItemProps) => React.ReactElement | null;
7
- //# sourceMappingURL=NavigationItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavigationItem.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-item/NavigationItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAiCnD;;GAEG;AACH,eAAO,MAAM,cAAc,2DAA0C,CAAC"}
@@ -1,21 +0,0 @@
1
- import { NavigationItem as SurfaceNavigationItem } from '@ankhorage/surface';
2
- import React from 'react';
3
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
4
- function NavigationItemInner({ themeId: _themeId, mode: _mode, route, metadata, active = false, compact = false, onPress, testID, interactionPolicy, }) {
5
- return (<SurfaceNavigationItem compact={compact} interactionPolicy={interactionPolicy} item={{
6
- id: route.key,
7
- label: metadata?.label ?? route.name,
8
- icon: metadata?.icon,
9
- badge: metadata?.badge,
10
- active,
11
- disabled: metadata?.disabled,
12
- onPress,
13
- accessibilityLabel: metadata?.accessibilityLabel,
14
- testID: metadata?.testID,
15
- }} testID={testID}/>);
16
- }
17
- /***
18
- * Renders a single navigation entry with active/disabled state support.
19
- */
20
- export const NavigationItem = withZoraThemeScope(NavigationItemInner);
21
- //# sourceMappingURL=NavigationItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavigationItem.js","sourceRoot":"","sources":["../../../src/components/navigation-item/NavigationItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,mBAAmB,CAAC,EAC3B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,QAAQ,EACR,MAAM,GAAG,KAAK,EACd,OAAO,GAAG,KAAK,EACf,OAAO,EACP,MAAM,EACN,iBAAiB,GACG;IACpB,OAAO,CACL,CAAC,qBAAqB,CACpB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,IAAI,CAAC,CAAC;YACJ,EAAE,EAAE,KAAK,CAAC,GAAG;YACb,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,KAAK,CAAC,IAAI;YACpC,IAAI,EAAE,QAAQ,EAAE,IAAI;YACpB,KAAK,EAAE,QAAQ,EAAE,KAAK;YACtB,MAAM;YACN,QAAQ,EAAE,QAAQ,EAAE,QAAQ;YAC5B,OAAO;YACP,kBAAkB,EAAE,QAAQ,EAAE,kBAAkB;YAChD,MAAM,EAAE,QAAQ,EAAE,MAAM;SACzB,CAAC,CACF,MAAM,CAAC,CAAC,MAAM,CAAC,EACf,CACH,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import { NavigationItem as SurfaceNavigationItem } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { NavigationItemProps } from './types';\n\nfunction NavigationItemInner({\n themeId: _themeId,\n mode: _mode,\n route,\n metadata,\n active = false,\n compact = false,\n onPress,\n testID,\n interactionPolicy,\n}: NavigationItemProps) {\n return (\n <SurfaceNavigationItem\n compact={compact}\n interactionPolicy={interactionPolicy}\n item={{\n id: route.key,\n label: metadata?.label ?? route.name,\n icon: metadata?.icon,\n badge: metadata?.badge,\n active,\n disabled: metadata?.disabled,\n onPress,\n accessibilityLabel: metadata?.accessibilityLabel,\n testID: metadata?.testID,\n }}\n testID={testID}\n />\n );\n}\n\n/***\n * Renders a single navigation entry with active/disabled state support.\n */\nexport const NavigationItem = withZoraThemeScope(NavigationItemInner);\n"]}
@@ -1,3 +0,0 @@
1
- export { NavigationItem } from './NavigationItem';
2
- export type { NavigationItemProps, ZoraNavigationRouteMetadata, ZoraNavigationRouteState, } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export { NavigationItem } from './NavigationItem';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/navigation-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { NavigationItem } from './NavigationItem';\nexport type {\n NavigationItemProps,\n ZoraNavigationRouteMetadata,\n ZoraNavigationRouteState,\n} from './types';\n"]}
@@ -1,9 +0,0 @@
1
- export declare const navigationItemMeta: {
2
- readonly name: "NavigationItem";
3
- readonly category: "component";
4
- readonly directManifestNode: false;
5
- readonly allowedChildren: readonly [];
6
- readonly note: "Navigation chrome component; not represented as a manifest node in v1.";
7
- readonly props: {};
8
- };
9
- //# sourceMappingURL=meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-item/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;CAOO,CAAC"}
@@ -1,9 +0,0 @@
1
- export const navigationItemMeta = {
2
- name: 'NavigationItem',
3
- category: 'component',
4
- directManifestNode: false,
5
- allowedChildren: [],
6
- note: 'Navigation chrome component; not represented as a manifest node in v1.',
7
- props: {},
8
- };
9
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/navigation-item/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,wEAAwE;IAC9E,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const navigationItemMeta = {\n name: 'NavigationItem',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Navigation chrome component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,23 +0,0 @@
1
- import type { ButtonIconSpec } from '@ankhorage/surface';
2
- import type React from 'react';
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
- export interface ZoraNavigationRouteMetadata {
5
- label?: React.ReactNode;
6
- icon?: ButtonIconSpec;
7
- badge?: React.ReactNode;
8
- disabled?: boolean;
9
- testID?: string;
10
- accessibilityLabel?: string;
11
- }
12
- export interface ZoraNavigationRouteState {
13
- key: string;
14
- name: string;
15
- }
16
- export interface NavigationItemProps extends ZoraBaseProps {
17
- route: ZoraNavigationRouteState;
18
- metadata?: ZoraNavigationRouteMetadata;
19
- active?: boolean;
20
- compact?: boolean;
21
- onPress?: () => void;
22
- }
23
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,KAAK,EAAE,wBAAwB,CAAC;IAChC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/navigation-item/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface ZoraNavigationRouteMetadata {\n label?: React.ReactNode;\n icon?: ButtonIconSpec;\n badge?: React.ReactNode;\n disabled?: boolean;\n testID?: string;\n accessibilityLabel?: string;\n}\n\nexport interface ZoraNavigationRouteState {\n key: string;\n name: string;\n}\n\nexport interface NavigationItemProps extends ZoraBaseProps {\n route: ZoraNavigationRouteState;\n metadata?: ZoraNavigationRouteMetadata;\n active?: boolean;\n compact?: boolean;\n onPress?: () => void;\n}\n"]}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { NavigationListProps } from './types';
3
- /***
4
- * Renders a navigation list from route metadata with active state mapping.
5
- */
6
- export declare const NavigationList: (props: NavigationListProps) => React.ReactElement | null;
7
- //# sourceMappingURL=NavigationList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavigationList.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-list/NavigationList.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAyDnD;;GAEG;AACH,eAAO,MAAM,cAAc,2DAA0C,CAAC"}
@@ -1,29 +0,0 @@
1
- import { DrawerNavigation as SurfaceDrawerNavigation, NavigationList as SurfaceNavigationList, } from '@ankhorage/surface';
2
- import React from 'react';
3
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
4
- function NavigationListInner({ themeId: _themeId, mode: _mode, routes, routeMap, activeRouteKey, orientation = 'vertical', compact = false, onRoutePress, header, footer, testID, interactionPolicy, }) {
5
- const items = routes.map((route) => {
6
- const metadata = routeMap?.[route.name];
7
- const active = activeRouteKey ? route.key === activeRouteKey : false;
8
- return {
9
- id: route.key,
10
- label: metadata?.label ?? route.name,
11
- icon: metadata?.icon,
12
- badge: metadata?.badge,
13
- active,
14
- disabled: metadata?.disabled,
15
- onPress: metadata?.disabled ? undefined : () => onRoutePress?.(route),
16
- accessibilityLabel: metadata?.accessibilityLabel,
17
- testID: metadata?.testID,
18
- };
19
- });
20
- if (header || footer) {
21
- return (<SurfaceDrawerNavigation compact={compact} footer={footer} header={header} interactionPolicy={interactionPolicy} items={items} testID={testID}/>);
22
- }
23
- return (<SurfaceNavigationList compact={compact} interactionPolicy={interactionPolicy} items={items} orientation={orientation} testID={testID}/>);
24
- }
25
- /***
26
- * Renders a navigation list from route metadata with active state mapping.
27
- */
28
- export const NavigationList = withZoraThemeScope(NavigationListInner);
29
- //# sourceMappingURL=NavigationList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavigationList.js","sourceRoot":"","sources":["../../../src/components/navigation-list/NavigationList.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,IAAI,uBAAuB,EAC3C,cAAc,IAAI,qBAAqB,GACxC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,mBAAmB,CAAC,EAC3B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,QAAQ,EACR,cAAc,EACd,WAAW,GAAG,UAAU,EACxB,OAAO,GAAG,KAAK,EACf,YAAY,EACZ,MAAM,EACN,MAAM,EACN,MAAM,EACN,iBAAiB,GACG;IACpB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACjC,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC;QAErE,OAAO;YACL,EAAE,EAAE,KAAK,CAAC,GAAG;YACb,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,KAAK,CAAC,IAAI;YACpC,IAAI,EAAE,QAAQ,EAAE,IAAI;YACpB,KAAK,EAAE,QAAQ,EAAE,KAAK;YACtB,MAAM;YACN,QAAQ,EAAE,QAAQ,EAAE,QAAQ;YAC5B,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC;YACrE,kBAAkB,EAAE,QAAQ,EAAE,kBAAkB;YAChD,MAAM,EAAE,QAAQ,EAAE,MAAM;SACzB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;QACrB,OAAO,CACL,CAAC,uBAAuB,CACtB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,MAAM,CAAC,CAAC,MAAM,CAAC,EACf,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CACL,CAAC,qBAAqB,CACpB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,MAAM,CAAC,CAAC,MAAM,CAAC,EACf,CACH,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import {\n DrawerNavigation as SurfaceDrawerNavigation,\n NavigationList as SurfaceNavigationList,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { NavigationListProps } from './types';\n\nfunction NavigationListInner({\n themeId: _themeId,\n mode: _mode,\n routes,\n routeMap,\n activeRouteKey,\n orientation = 'vertical',\n compact = false,\n onRoutePress,\n header,\n footer,\n testID,\n interactionPolicy,\n}: NavigationListProps) {\n const items = routes.map((route) => {\n const metadata = routeMap?.[route.name];\n const active = activeRouteKey ? route.key === activeRouteKey : false;\n\n return {\n id: route.key,\n label: metadata?.label ?? route.name,\n icon: metadata?.icon,\n badge: metadata?.badge,\n active,\n disabled: metadata?.disabled,\n onPress: metadata?.disabled ? undefined : () => onRoutePress?.(route),\n accessibilityLabel: metadata?.accessibilityLabel,\n testID: metadata?.testID,\n };\n });\n\n if (header || footer) {\n return (\n <SurfaceDrawerNavigation\n compact={compact}\n footer={footer}\n header={header}\n interactionPolicy={interactionPolicy}\n items={items}\n testID={testID}\n />\n );\n }\n\n return (\n <SurfaceNavigationList\n compact={compact}\n interactionPolicy={interactionPolicy}\n items={items}\n orientation={orientation}\n testID={testID}\n />\n );\n}\n\n/***\n * Renders a navigation list from route metadata with active state mapping.\n */\nexport const NavigationList = withZoraThemeScope(NavigationListInner);\n"]}
@@ -1,3 +0,0 @@
1
- export { NavigationList } from './NavigationList';
2
- export type { NavigationListProps, ZoraNavigationRouteMap } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export { NavigationList } from './NavigationList';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/navigation-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { NavigationList } from './NavigationList';\nexport type { NavigationListProps, ZoraNavigationRouteMap } from './types';\n"]}
@@ -1,9 +0,0 @@
1
- export declare const navigationListMeta: {
2
- readonly name: "NavigationList";
3
- readonly category: "component";
4
- readonly directManifestNode: false;
5
- readonly allowedChildren: readonly [];
6
- readonly note: "Navigation chrome component; not represented as a manifest node in v1.";
7
- readonly props: {};
8
- };
9
- //# sourceMappingURL=meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-list/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;CAOO,CAAC"}