@ankhorage/zora 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/card/Card.d.ts.map +1 -1
  3. package/dist/components/card/Card.js +2 -1
  4. package/dist/components/card/Card.js.map +1 -1
  5. package/dist/components/checkbox/CheckboxGroup.d.ts.map +1 -1
  6. package/dist/components/checkbox/CheckboxGroup.js +2 -1
  7. package/dist/components/checkbox/CheckboxGroup.js.map +1 -1
  8. package/dist/components/drawer/Drawer.d.ts.map +1 -1
  9. package/dist/components/drawer/Drawer.js +2 -1
  10. package/dist/components/drawer/Drawer.js.map +1 -1
  11. package/dist/components/form/Form.d.ts.map +1 -1
  12. package/dist/components/form/Form.js +1 -1
  13. package/dist/components/form/Form.js.map +1 -1
  14. package/dist/components/form/FormActions.d.ts.map +1 -1
  15. package/dist/components/form/FormActions.js +1 -1
  16. package/dist/components/form/FormActions.js.map +1 -1
  17. package/dist/components/form/FormError.d.ts.map +1 -1
  18. package/dist/components/form/FormError.js +1 -1
  19. package/dist/components/form/FormError.js.map +1 -1
  20. package/dist/components/form/FormField.d.ts.map +1 -1
  21. package/dist/components/form/FormField.js +2 -1
  22. package/dist/components/form/FormField.js.map +1 -1
  23. package/dist/components/modal/Modal.d.ts.map +1 -1
  24. package/dist/components/modal/Modal.js +2 -1
  25. package/dist/components/modal/Modal.js.map +1 -1
  26. package/dist/components/radio/RadioGroup.d.ts.map +1 -1
  27. package/dist/components/radio/RadioGroup.js +2 -1
  28. package/dist/components/radio/RadioGroup.js.map +1 -1
  29. package/dist/components/select/Select.d.ts.map +1 -1
  30. package/dist/components/select/Select.js +1 -1
  31. package/dist/components/select/Select.js.map +1 -1
  32. package/dist/components/tabs/Tabs.d.ts.map +1 -1
  33. package/dist/components/tabs/Tabs.js +1 -1
  34. package/dist/components/tabs/Tabs.js.map +1 -1
  35. package/dist/components/toolbar/Toolbar.d.ts.map +1 -1
  36. package/dist/components/toolbar/Toolbar.js +1 -1
  37. package/dist/components/toolbar/Toolbar.js.map +1 -1
  38. package/dist/layout/app-shell/AppShell.d.ts.map +1 -1
  39. package/dist/layout/app-shell/AppShell.js +1 -1
  40. package/dist/layout/app-shell/AppShell.js.map +1 -1
  41. package/dist/layout/auth-layout/AuthLayout.d.ts.map +1 -1
  42. package/dist/layout/auth-layout/AuthLayout.js +1 -1
  43. package/dist/layout/auth-layout/AuthLayout.js.map +1 -1
  44. package/dist/layout/page/Page.d.ts.map +1 -1
  45. package/dist/layout/page/Page.js +1 -1
  46. package/dist/layout/page/Page.js.map +1 -1
  47. package/dist/layout/page-header/PageHeader.d.ts.map +1 -1
  48. package/dist/layout/page-header/PageHeader.js +1 -1
  49. package/dist/layout/page-header/PageHeader.js.map +1 -1
  50. package/dist/layout/page-section/PageSection.d.ts.map +1 -1
  51. package/dist/layout/page-section/PageSection.js +1 -1
  52. package/dist/layout/page-section/PageSection.js.map +1 -1
  53. package/dist/layout/sidebar-layout/SidebarLayout.d.ts.map +1 -1
  54. package/dist/layout/sidebar-layout/SidebarLayout.js +1 -1
  55. package/dist/layout/sidebar-layout/SidebarLayout.js.map +1 -1
  56. package/dist/layout/topbar-layout/TopbarLayout.d.ts.map +1 -1
  57. package/dist/layout/topbar-layout/TopbarLayout.js +1 -1
  58. package/dist/layout/topbar-layout/TopbarLayout.js.map +1 -1
  59. package/dist/patterns/auth/ForgotPasswordForm.d.ts.map +1 -1
  60. package/dist/patterns/auth/ForgotPasswordForm.js +1 -1
  61. package/dist/patterns/auth/ForgotPasswordForm.js.map +1 -1
  62. package/dist/patterns/auth/OtpForm.d.ts.map +1 -1
  63. package/dist/patterns/auth/OtpForm.js +1 -1
  64. package/dist/patterns/auth/OtpForm.js.map +1 -1
  65. package/dist/patterns/auth/SignInForm.d.ts.map +1 -1
  66. package/dist/patterns/auth/SignInForm.js +1 -1
  67. package/dist/patterns/auth/SignInForm.js.map +1 -1
  68. package/dist/patterns/auth/SignUpForm.d.ts.map +1 -1
  69. package/dist/patterns/auth/SignUpForm.js +1 -1
  70. package/dist/patterns/auth/SignUpForm.js.map +1 -1
  71. package/dist/patterns/collection-editor/CollectionEditor.d.ts.map +1 -1
  72. package/dist/patterns/collection-editor/CollectionEditor.js +1 -1
  73. package/dist/patterns/collection-editor/CollectionEditor.js.map +1 -1
  74. package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts.map +1 -1
  75. package/dist/patterns/confirm-dialog/ConfirmDialog.js +1 -1
  76. package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
  77. package/dist/patterns/disclosure-section/DisclosureSection.d.ts.map +1 -1
  78. package/dist/patterns/disclosure-section/DisclosureSection.js +1 -1
  79. package/dist/patterns/disclosure-section/DisclosureSection.js.map +1 -1
  80. package/dist/patterns/empty-state/EmptyState.d.ts.map +1 -1
  81. package/dist/patterns/empty-state/EmptyState.js +1 -1
  82. package/dist/patterns/empty-state/EmptyState.js.map +1 -1
  83. package/dist/patterns/form-field/FormField.d.ts.map +1 -1
  84. package/dist/patterns/form-field/FormField.js +2 -1
  85. package/dist/patterns/form-field/FormField.js.map +1 -1
  86. package/dist/patterns/inspector-field/InspectorField.d.ts.map +1 -1
  87. package/dist/patterns/inspector-field/InspectorField.js +1 -1
  88. package/dist/patterns/inspector-field/InspectorField.js.map +1 -1
  89. package/dist/patterns/notice/Notice.d.ts.map +1 -1
  90. package/dist/patterns/notice/Notice.js +1 -1
  91. package/dist/patterns/notice/Notice.js.map +1 -1
  92. package/dist/patterns/section-header/SectionHeader.d.ts.map +1 -1
  93. package/dist/patterns/section-header/SectionHeader.js +1 -1
  94. package/dist/patterns/section-header/SectionHeader.js.map +1 -1
  95. package/dist/patterns/settings-row/SettingsRow.d.ts.map +1 -1
  96. package/dist/patterns/settings-row/SettingsRow.js +1 -1
  97. package/dist/patterns/settings-row/SettingsRow.js.map +1 -1
  98. package/dist/patterns/theme-composer/ThemeComposer.d.ts.map +1 -1
  99. package/dist/patterns/theme-composer/ThemeComposer.js +4 -3
  100. package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
  101. package/dist/patterns/tile-grid/PaletteItem.d.ts.map +1 -1
  102. package/dist/patterns/tile-grid/PaletteItem.js +1 -1
  103. package/dist/patterns/tile-grid/PaletteItem.js.map +1 -1
  104. package/dist/patterns/tile-grid/TileGrid.d.ts.map +1 -1
  105. package/dist/patterns/tile-grid/TileGrid.js +1 -1
  106. package/dist/patterns/tile-grid/TileGrid.js.map +1 -1
  107. package/dist/patterns/tree-view/TreeItem.d.ts.map +1 -1
  108. package/dist/patterns/tree-view/TreeItem.js +1 -1
  109. package/dist/patterns/tree-view/TreeItem.js.map +1 -1
  110. package/dist/patterns/tree-view/TreeView.d.ts.map +1 -1
  111. package/dist/patterns/tree-view/TreeView.js +1 -1
  112. package/dist/patterns/tree-view/TreeView.js.map +1 -1
  113. package/package.json +2 -2
  114. package/src/audit.test.ts +242 -0
  115. package/src/components/card/Card.tsx +2 -1
  116. package/src/components/checkbox/CheckboxGroup.tsx +2 -1
  117. package/src/components/drawer/Drawer.tsx +2 -1
  118. package/src/components/form/Form.tsx +1 -1
  119. package/src/components/form/FormActions.tsx +1 -1
  120. package/src/components/form/FormError.tsx +1 -1
  121. package/src/components/form/FormField.tsx +2 -1
  122. package/src/components/modal/Modal.tsx +2 -1
  123. package/src/components/radio/RadioGroup.tsx +2 -1
  124. package/src/components/select/Select.tsx +1 -1
  125. package/src/components/tabs/Tabs.tsx +1 -1
  126. package/src/components/toolbar/Toolbar.tsx +1 -1
  127. package/src/layout/app-shell/AppShell.tsx +1 -1
  128. package/src/layout/auth-layout/AuthLayout.tsx +1 -1
  129. package/src/layout/page/Page.tsx +1 -1
  130. package/src/layout/page-header/PageHeader.tsx +1 -1
  131. package/src/layout/page-section/PageSection.tsx +1 -1
  132. package/src/layout/sidebar-layout/SidebarLayout.tsx +1 -1
  133. package/src/layout/topbar-layout/TopbarLayout.tsx +1 -1
  134. package/src/patterns/auth/ForgotPasswordForm.tsx +1 -1
  135. package/src/patterns/auth/OtpForm.tsx +1 -1
  136. package/src/patterns/auth/SignInForm.tsx +1 -1
  137. package/src/patterns/auth/SignUpForm.tsx +1 -1
  138. package/src/patterns/collection-editor/CollectionEditor.tsx +1 -1
  139. package/src/patterns/confirm-dialog/ConfirmDialog.tsx +1 -1
  140. package/src/patterns/disclosure-section/DisclosureSection.tsx +1 -1
  141. package/src/patterns/empty-state/EmptyState.tsx +1 -1
  142. package/src/patterns/form-field/FormField.tsx +2 -1
  143. package/src/patterns/inspector-field/InspectorField.tsx +1 -1
  144. package/src/patterns/notice/Notice.tsx +1 -1
  145. package/src/patterns/section-header/SectionHeader.tsx +1 -1
  146. package/src/patterns/settings-row/SettingsRow.tsx +1 -1
  147. package/src/patterns/theme-composer/ThemeComposer.tsx +4 -3
  148. package/src/patterns/tile-grid/PaletteItem.tsx +1 -1
  149. package/src/patterns/tile-grid/TileGrid.tsx +1 -1
  150. package/src/patterns/tree-view/TreeItem.tsx +1 -1
  151. package/src/patterns/tree-view/TreeView.tsx +1 -1
@@ -1,6 +1,7 @@
1
- import { Box, Drawer as SurfaceDrawer, Stack } from '@ankhorage/surface';
1
+ import { Drawer as SurfaceDrawer } from '@ankhorage/surface';
2
2
  import React, { useCallback, useEffect, useRef } from 'react';
3
3
 
4
+ import { Box, Stack } from '../../foundation';
4
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
6
  import { Heading } from '../heading';
6
7
  import { Text } from '../text';
@@ -1,6 +1,6 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Box, Stack } from '../../foundation';
4
4
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
5
  import { FormActions } from './FormActions';
6
6
  import { FormError } from './FormError';
@@ -1,6 +1,6 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Box, Stack } from '../../foundation';
4
4
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
5
  import { Button } from '../button';
6
6
  import type { FormActionsProps } from './types';
@@ -1,6 +1,6 @@
1
- import { Box } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Box } from '../../foundation';
4
4
  import { useZoraTheme } from '../../theme/useZoraTheme';
5
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
6
  import { Text } from '../text';
@@ -1,6 +1,7 @@
1
- import { Field, Stack } from '@ankhorage/surface';
1
+ import { Field } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
 
4
+ import { Stack } from '../../foundation';
4
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
6
  import { Input } from '../input';
6
7
  import { Text } from '../text';
@@ -1,6 +1,7 @@
1
- import { Box, Modal as SurfaceModal, Stack } from '@ankhorage/surface';
1
+ import { Modal as SurfaceModal } from '@ankhorage/surface';
2
2
  import React, { useCallback, useEffect, useRef } from 'react';
3
3
 
4
+ import { Box, Stack } from '../../foundation';
4
5
  import { resolveDialogWidth } from '../../internal/recipes';
5
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
7
  import { Heading } from '../heading';
@@ -1,7 +1,8 @@
1
- import { Radio, Stack } from '@ankhorage/surface';
1
+ import { Radio } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
  import { View } from 'react-native';
4
4
 
5
+ import { Stack } from '../../foundation';
5
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
7
  import { Text } from '../text';
7
8
  import type { RadioGroupOption, RadioGroupProps } from './types';
@@ -1,7 +1,7 @@
1
- import { Box } from '@ankhorage/surface';
2
1
  import { Picker } from '@react-native-picker/picker';
3
2
  import React from 'react';
4
3
 
4
+ import { Box } from '../../foundation';
5
5
  import { useZoraTheme } from '../../theme/useZoraTheme';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { SelectProps } from './types';
@@ -1,6 +1,6 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Box, Stack } from '../../foundation';
4
4
  import { useZoraTheme } from '../../theme/useZoraTheme';
5
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
6
  import { Button } from '../button';
@@ -1,6 +1,6 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Stack } from '../../foundation';
4
4
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
5
  import { Card } from '../card';
6
6
  import type { ToolbarProps } from './types';
@@ -1,7 +1,7 @@
1
- import { Box } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
  import { StyleSheet, View } from 'react-native';
4
3
 
4
+ import { Box } from '../../foundation';
5
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
6
  import type { AppShellProps } from './types';
7
7
 
@@ -1,7 +1,7 @@
1
- import { Center, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Card } from '../../components/card';
4
+ import { Center, Stack } from '../../foundation';
5
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
6
  import type { AuthLayoutProps } from './types';
7
7
 
@@ -1,6 +1,6 @@
1
- import { Container, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Container, Stack } from '../../foundation';
4
4
  import { resolvePageMaxWidth } from '../../internal/recipes';
5
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
6
  import type { PageProps } from './types';
@@ -1,8 +1,8 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Heading } from '../../components/heading';
5
4
  import { Text } from '../../components/text';
5
+ import { Box, Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { PageHeaderProps } from './types';
8
8
 
@@ -1,6 +1,6 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Stack } from '../../foundation';
4
4
  import { SectionHeader } from '../../patterns/section-header';
5
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
6
  import type { PageSectionProps } from './types';
@@ -1,6 +1,6 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Box, Stack } from '../../foundation';
4
4
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
5
  import type { SidebarLayoutProps } from './types';
6
6
 
@@ -1,6 +1,6 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Box, Stack } from '../../foundation';
4
4
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
5
  import { SidebarLayout } from '../sidebar-layout';
6
6
  import type { TopbarLayoutProps } from './types';
@@ -1,8 +1,8 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Button } from '../../components/button';
5
4
  import { Form, type FormFieldConfig, type FormValues } from '../../components/form';
5
+ import { Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { ForgotPasswordFormProps } from './types';
8
8
  import {
@@ -1,8 +1,8 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Button } from '../../components/button';
5
4
  import { Form, type FormFieldConfig, type FormValues } from '../../components/form';
5
+ import { Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { OtpFormProps } from './types';
8
8
 
@@ -1,8 +1,8 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Button } from '../../components/button';
5
4
  import { Form, type FormFieldConfig, type FormValues } from '../../components/form';
5
+ import { Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { SignInFormProps } from './types';
8
8
  import {
@@ -1,8 +1,8 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Button } from '../../components/button';
5
4
  import { Form, type FormFieldConfig, type FormValues } from '../../components/form';
5
+ import { Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { SignUpFormProps } from './types';
8
8
 
@@ -1,9 +1,9 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Button } from '../../components/button';
5
4
  import { IconButton } from '../../components/icon-button';
6
5
  import { Text } from '../../components/text';
6
+ import { Box, Stack } from '../../foundation';
7
7
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
8
8
  import { Panel } from '../panel';
9
9
  import type { CollectionEditorProps } from './types';
@@ -1,8 +1,8 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Button } from '../../components/button';
5
4
  import { Modal } from '../../components/modal';
5
+ import { Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { ConfirmDialogProps } from './types';
8
8
 
@@ -1,7 +1,7 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { IconButton } from '../../components/icon-button';
4
+ import { Box, Stack } from '../../foundation';
5
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
6
  import { Panel } from '../panel';
7
7
  import type { DisclosureSectionProps } from './types';
@@ -1,8 +1,8 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Button } from '../../components/button';
5
4
  import { Card } from '../../components/card';
5
+ import { Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { EmptyStateProps } from './types';
8
8
 
@@ -1,7 +1,8 @@
1
- import { Field, Stack } from '@ankhorage/surface';
1
+ import { Field } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
 
4
4
  import { Text } from '../../components/text';
5
+ import { Stack } from '../../foundation';
5
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
7
  import type { FormFieldProps } from './types';
7
8
 
@@ -1,6 +1,6 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Box, Stack } from '../../foundation';
4
4
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
5
  import { FormField } from '../form-field';
6
6
  import type { InspectorFieldProps } from './types';
@@ -1,8 +1,8 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Badge } from '../../components/badge';
5
4
  import { Card } from '../../components/card';
5
+ import { Box, Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { NoticeProps } from './types';
8
8
 
@@ -1,8 +1,8 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Heading } from '../../components/heading';
5
4
  import { Text } from '../../components/text';
5
+ import { Box, Stack } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { SectionHeaderProps } from './types';
8
8
 
@@ -1,8 +1,8 @@
1
- import { Box } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Card } from '../../components/card';
5
4
  import { Text } from '../../components/text';
5
+ import { Box } from '../../foundation';
6
6
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
7
  import type { SettingsRowProps } from './types';
8
8
 
@@ -1,7 +1,6 @@
1
1
  import { COLOR_HARMONIES, parseHexColorOrThrow } from '@ankhorage/color-theory';
2
2
  import type { AppCategory } from '@ankhorage/contracts';
3
3
  import { APP_CATEGORIES } from '@ankhorage/contracts';
4
- import { Box, Stack } from '@ankhorage/surface';
5
4
  import React from 'react';
6
5
 
7
6
  import { Badge } from '../../components/badge';
@@ -12,12 +11,14 @@ import { Input } from '../../components/input';
12
11
  import { Select } from '../../components/select';
13
12
  import { Tabs } from '../../components/tabs';
14
13
  import { Text } from '../../components/text';
14
+ import { Box, Stack } from '../../foundation';
15
15
  import type { ZoraThemeMode } from '../../theme/types';
16
16
  import { useZoraTheme } from '../../theme/useZoraTheme';
17
17
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
18
18
  import type { ThemeComposerProps } from './types';
19
19
 
20
- const HEX_ERROR_MESSAGE = 'Enter a valid 6-digit hex color (e.g. #0f766e).';
20
+ const HEX_ERROR_MESSAGE = 'Enter a valid 6-digit hex color.';
21
+ const HEX_INPUT_PLACEHOLDER = 'Enter hex color';
21
22
  const NAME_ERROR_MESSAGE = 'Theme name cannot be empty.';
22
23
 
23
24
  function isValidHex(value: string): boolean {
@@ -179,7 +180,7 @@ function ThemeComposerInner({
179
180
  <Input
180
181
  value={hexInput}
181
182
  onChangeText={handleHexChange}
182
- placeholder="#0f766e"
183
+ placeholder={HEX_INPUT_PLACEHOLDER}
183
184
  autoCapitalize="none"
184
185
  autoCorrect={false}
185
186
  maxLength={7}
@@ -1,9 +1,9 @@
1
- import { Box } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { Card } from '../../components/card';
5
4
  import { Heading } from '../../components/heading';
6
5
  import { Text } from '../../components/text';
6
+ import { Box } from '../../foundation';
7
7
  import { useZoraTheme } from '../../theme/useZoraTheme';
8
8
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
9
9
  import type { PaletteItemProps } from './types';
@@ -1,6 +1,6 @@
1
- import { Box } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Box } from '../../foundation';
4
4
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
5
  import type { TileGridProps } from './types';
6
6
 
@@ -1,7 +1,7 @@
1
- import { Box, Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
4
3
  import { IconButton } from '../../components/icon-button';
4
+ import { Box, Stack } from '../../foundation';
5
5
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
6
  import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
7
7
  import { SettingsRow } from '../settings-row';
@@ -1,6 +1,6 @@
1
- import { Stack } from '@ankhorage/surface';
2
1
  import React from 'react';
3
2
 
3
+ import { Stack } from '../../foundation';
4
4
  import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
5
  import { TreeItem } from './TreeItem';
6
6
  import type { TreeViewProps } from './types';