@ankhorage/zora 1.0.1 → 1.0.2
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.
- package/CHANGELOG.md +22 -0
- package/dist/components/card/Card.d.ts.map +1 -1
- package/dist/components/card/Card.js +2 -1
- package/dist/components/card/Card.js.map +1 -1
- package/dist/components/checkbox/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/checkbox/CheckboxGroup.js +2 -1
- package/dist/components/checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/drawer/Drawer.js +2 -1
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/form/Form.d.ts.map +1 -1
- package/dist/components/form/Form.js +1 -1
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/form/FormActions.d.ts.map +1 -1
- package/dist/components/form/FormActions.js +1 -1
- package/dist/components/form/FormActions.js.map +1 -1
- package/dist/components/form/FormError.d.ts.map +1 -1
- package/dist/components/form/FormError.js +1 -1
- package/dist/components/form/FormError.js.map +1 -1
- package/dist/components/form/FormField.d.ts.map +1 -1
- package/dist/components/form/FormField.js +2 -1
- package/dist/components/form/FormField.js.map +1 -1
- package/dist/components/modal/Modal.d.ts.map +1 -1
- package/dist/components/modal/Modal.js +2 -1
- package/dist/components/modal/Modal.js.map +1 -1
- package/dist/components/radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/radio/RadioGroup.js +2 -1
- package/dist/components/radio/RadioGroup.js.map +1 -1
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/toolbar/Toolbar.d.ts.map +1 -1
- package/dist/components/toolbar/Toolbar.js +1 -1
- package/dist/components/toolbar/Toolbar.js.map +1 -1
- package/dist/layout/app-shell/AppShell.d.ts.map +1 -1
- package/dist/layout/app-shell/AppShell.js +1 -1
- package/dist/layout/app-shell/AppShell.js.map +1 -1
- package/dist/layout/auth-layout/AuthLayout.d.ts.map +1 -1
- package/dist/layout/auth-layout/AuthLayout.js +1 -1
- package/dist/layout/auth-layout/AuthLayout.js.map +1 -1
- package/dist/layout/page/Page.d.ts.map +1 -1
- package/dist/layout/page/Page.js +1 -1
- package/dist/layout/page/Page.js.map +1 -1
- package/dist/layout/page-header/PageHeader.d.ts.map +1 -1
- package/dist/layout/page-header/PageHeader.js +1 -1
- package/dist/layout/page-header/PageHeader.js.map +1 -1
- package/dist/layout/page-section/PageSection.d.ts.map +1 -1
- package/dist/layout/page-section/PageSection.js +1 -1
- package/dist/layout/page-section/PageSection.js.map +1 -1
- package/dist/layout/sidebar-layout/SidebarLayout.d.ts.map +1 -1
- package/dist/layout/sidebar-layout/SidebarLayout.js +1 -1
- package/dist/layout/sidebar-layout/SidebarLayout.js.map +1 -1
- package/dist/layout/topbar-layout/TopbarLayout.d.ts.map +1 -1
- package/dist/layout/topbar-layout/TopbarLayout.js +1 -1
- package/dist/layout/topbar-layout/TopbarLayout.js.map +1 -1
- package/dist/patterns/auth/ForgotPasswordForm.d.ts.map +1 -1
- package/dist/patterns/auth/ForgotPasswordForm.js +1 -1
- package/dist/patterns/auth/ForgotPasswordForm.js.map +1 -1
- package/dist/patterns/auth/OtpForm.d.ts.map +1 -1
- package/dist/patterns/auth/OtpForm.js +1 -1
- package/dist/patterns/auth/OtpForm.js.map +1 -1
- package/dist/patterns/auth/SignInForm.d.ts.map +1 -1
- package/dist/patterns/auth/SignInForm.js +1 -1
- package/dist/patterns/auth/SignInForm.js.map +1 -1
- package/dist/patterns/auth/SignUpForm.d.ts.map +1 -1
- package/dist/patterns/auth/SignUpForm.js +1 -1
- package/dist/patterns/auth/SignUpForm.js.map +1 -1
- package/dist/patterns/collection-editor/CollectionEditor.d.ts.map +1 -1
- package/dist/patterns/collection-editor/CollectionEditor.js +1 -1
- package/dist/patterns/collection-editor/CollectionEditor.js.map +1 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.js +1 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
- package/dist/patterns/disclosure-section/DisclosureSection.d.ts.map +1 -1
- package/dist/patterns/disclosure-section/DisclosureSection.js +1 -1
- package/dist/patterns/disclosure-section/DisclosureSection.js.map +1 -1
- package/dist/patterns/empty-state/EmptyState.d.ts.map +1 -1
- package/dist/patterns/empty-state/EmptyState.js +1 -1
- package/dist/patterns/empty-state/EmptyState.js.map +1 -1
- package/dist/patterns/form-field/FormField.d.ts.map +1 -1
- package/dist/patterns/form-field/FormField.js +2 -1
- package/dist/patterns/form-field/FormField.js.map +1 -1
- package/dist/patterns/inspector-field/InspectorField.d.ts.map +1 -1
- package/dist/patterns/inspector-field/InspectorField.js +1 -1
- package/dist/patterns/inspector-field/InspectorField.js.map +1 -1
- package/dist/patterns/notice/Notice.d.ts.map +1 -1
- package/dist/patterns/notice/Notice.js +1 -1
- package/dist/patterns/notice/Notice.js.map +1 -1
- package/dist/patterns/section-header/SectionHeader.d.ts.map +1 -1
- package/dist/patterns/section-header/SectionHeader.js +1 -1
- package/dist/patterns/section-header/SectionHeader.js.map +1 -1
- package/dist/patterns/settings-row/SettingsRow.d.ts.map +1 -1
- package/dist/patterns/settings-row/SettingsRow.js +1 -1
- package/dist/patterns/settings-row/SettingsRow.js.map +1 -1
- package/dist/patterns/theme-composer/ThemeComposer.d.ts.map +1 -1
- package/dist/patterns/theme-composer/ThemeComposer.js +4 -3
- package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
- package/dist/patterns/tile-grid/PaletteItem.d.ts.map +1 -1
- package/dist/patterns/tile-grid/PaletteItem.js +1 -1
- package/dist/patterns/tile-grid/PaletteItem.js.map +1 -1
- package/dist/patterns/tile-grid/TileGrid.d.ts.map +1 -1
- package/dist/patterns/tile-grid/TileGrid.js +1 -1
- package/dist/patterns/tile-grid/TileGrid.js.map +1 -1
- package/dist/patterns/tree-view/TreeItem.d.ts.map +1 -1
- package/dist/patterns/tree-view/TreeItem.js +1 -1
- package/dist/patterns/tree-view/TreeItem.js.map +1 -1
- package/dist/patterns/tree-view/TreeView.d.ts.map +1 -1
- package/dist/patterns/tree-view/TreeView.js +1 -1
- package/dist/patterns/tree-view/TreeView.js.map +1 -1
- package/package.json +1 -1
- package/src/audit.test.ts +242 -0
- package/src/components/card/Card.tsx +2 -1
- package/src/components/checkbox/CheckboxGroup.tsx +2 -1
- package/src/components/drawer/Drawer.tsx +2 -1
- package/src/components/form/Form.tsx +1 -1
- package/src/components/form/FormActions.tsx +1 -1
- package/src/components/form/FormError.tsx +1 -1
- package/src/components/form/FormField.tsx +2 -1
- package/src/components/modal/Modal.tsx +2 -1
- package/src/components/radio/RadioGroup.tsx +2 -1
- package/src/components/select/Select.tsx +1 -1
- package/src/components/tabs/Tabs.tsx +1 -1
- package/src/components/toolbar/Toolbar.tsx +1 -1
- package/src/layout/app-shell/AppShell.tsx +1 -1
- package/src/layout/auth-layout/AuthLayout.tsx +1 -1
- package/src/layout/page/Page.tsx +1 -1
- package/src/layout/page-header/PageHeader.tsx +1 -1
- package/src/layout/page-section/PageSection.tsx +1 -1
- package/src/layout/sidebar-layout/SidebarLayout.tsx +1 -1
- package/src/layout/topbar-layout/TopbarLayout.tsx +1 -1
- package/src/patterns/auth/ForgotPasswordForm.tsx +1 -1
- package/src/patterns/auth/OtpForm.tsx +1 -1
- package/src/patterns/auth/SignInForm.tsx +1 -1
- package/src/patterns/auth/SignUpForm.tsx +1 -1
- package/src/patterns/collection-editor/CollectionEditor.tsx +1 -1
- package/src/patterns/confirm-dialog/ConfirmDialog.tsx +1 -1
- package/src/patterns/disclosure-section/DisclosureSection.tsx +1 -1
- package/src/patterns/empty-state/EmptyState.tsx +1 -1
- package/src/patterns/form-field/FormField.tsx +2 -1
- package/src/patterns/inspector-field/InspectorField.tsx +1 -1
- package/src/patterns/notice/Notice.tsx +1 -1
- package/src/patterns/section-header/SectionHeader.tsx +1 -1
- package/src/patterns/settings-row/SettingsRow.tsx +1 -1
- package/src/patterns/theme-composer/ThemeComposer.tsx +4 -3
- package/src/patterns/tile-grid/PaletteItem.tsx +1 -1
- package/src/patterns/tile-grid/TileGrid.tsx +1 -1
- package/src/patterns/tree-view/TreeItem.tsx +1 -1
- package/src/patterns/tree-view/TreeView.tsx +1 -1
|
@@ -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
|
|
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 {
|
|
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
|
|
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
|
|
package/src/layout/page/Page.tsx
CHANGED
|
@@ -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 { 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
|
|
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
|
|
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=
|
|
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,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';
|