@ankhorage/zora 21.0.6 → 21.0.7
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 +6 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/web-dist/chunks/{Accordion-e44js4wd.js → Accordion-31aeqxak.js} +1 -1
- package/web-dist/chunks/{Accordion-n2vxcm6e.js → Accordion-33rd76r7.js} +1 -1
- package/web-dist/chunks/{Accordion-0807vg3c.js → Accordion-3404tth9.js} +6 -6
- package/web-dist/chunks/{Accordion-fmgs799n.js → Accordion-4a6wj3ez.js} +2 -2
- package/web-dist/chunks/{Accordion-jftka3t5.js → Accordion-7ja4mtbz.js} +2 -2
- package/web-dist/chunks/{Accordion-hsbv8mrv.js → Accordion-8kgtg62g.js} +4 -4
- package/web-dist/chunks/{Accordion-4nnxzn40.js → Accordion-ch67q4t0.js} +1 -1
- package/web-dist/chunks/{Accordion-0exp2200.js → Accordion-f05a7r28.js} +5 -5
- package/web-dist/chunks/{Accordion-1xv7q28g.js → Accordion-f1h2f05v.js} +4 -4
- package/web-dist/chunks/{Accordion-m1ae9dzy.js → Accordion-far6szrp.js} +1 -1
- package/web-dist/chunks/{Accordion-qyc49ygk.js → Accordion-fmxygyb6.js} +3 -3
- package/web-dist/chunks/{Accordion-v1t7m5kk.js → Accordion-gbba10rg.js} +5 -5
- package/web-dist/chunks/{Accordion-dy17cf8h.js → Accordion-hxfa71g9.js} +1 -1
- package/web-dist/chunks/{Accordion-gf3hxf5v.js → Accordion-j2c7btke.js} +5 -5
- package/web-dist/chunks/{Accordion-3tmvwk1n.js → Accordion-jzbq36ec.js} +6 -6
- package/web-dist/chunks/{Accordion-42tn3yha.js → Accordion-kpq8dhze.js} +6 -6
- package/web-dist/chunks/{Accordion-ddt106dy.js → Accordion-pkqj4g3r.js} +5 -5
- package/web-dist/chunks/{Accordion-xctsc2hx.js → Accordion-qpwhmqzd.js} +10 -10
- package/web-dist/chunks/{Accordion-g9r7fyzg.js → Accordion-rrpej6sv.js} +1 -1
- package/web-dist/chunks/{Accordion-g1yeftrh.js → Accordion-s42wwh6m.js} +4 -4
- package/web-dist/chunks/{Accordion-wn04ytqz.js → Accordion-sz21xsf4.js} +3 -3
- package/web-dist/chunks/{Accordion-pznmbhc3.js → Accordion-t3p4ykg7.js} +7 -7
- package/web-dist/chunks/{Accordion-6g3bqvf5.js → Accordion-tx78txec.js} +5 -5
- package/web-dist/chunks/{Accordion-w9xmhjv6.js → Accordion-v6ykq9hv.js} +3 -3
- package/web-dist/chunks/{Accordion-wx5e97wt.js → Accordion-x0j8b2by.js} +3 -3
- package/web-dist/chunks/{Accordion-4cpnj7mw.js → Accordion-xshn7k8f.js} +2 -2
- package/web-dist/components/accordion/Accordion.js +4 -4
- package/web-dist/components/accordion-item/AccordionItem.js +4 -4
- package/web-dist/components/activity-indicator/ActivityIndicator.js +3 -3
- package/web-dist/components/app-bar/AppBar.js +6 -6
- package/web-dist/components/avatar/Avatar.js +4 -4
- package/web-dist/components/avatar-group/AvatarGroup.js +4 -4
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +8 -8
- package/web-dist/components/bottom-sheet/BottomSheet.js +2 -2
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +2 -2
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +2 -2
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +2 -2
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +2 -2
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +2 -2
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +6 -6
- package/web-dist/components/button/Button.js +3 -3
- package/web-dist/components/button-group/ButtonGroup.js +3 -3
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +8 -8
- package/web-dist/components/card/Card.js +7 -7
- package/web-dist/components/chat-list-item/ChatListItem.js +5 -5
- package/web-dist/components/checkbox/Checkbox.js +4 -4
- package/web-dist/components/checkbox-group/CheckboxGroup.js +4 -4
- package/web-dist/components/chip/Chip.js +4 -4
- package/web-dist/components/chip-group/ChipGroup.js +4 -4
- package/web-dist/components/collection-editor/CollectionEditor.js +7 -7
- package/web-dist/components/content-rail/ContentRail.js +7 -7
- package/web-dist/components/data-table/DataTable.js +12 -12
- package/web-dist/components/date-picker/DatePicker.js +4 -4
- package/web-dist/components/dialog/Dialog.js +4 -4
- package/web-dist/components/empty-state/EmptyState.js +8 -8
- package/web-dist/components/field/Field.js +4 -4
- package/web-dist/components/flat-list/FlatList.js +5 -5
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +8 -8
- package/web-dist/components/form/Form.js +6 -6
- package/web-dist/components/form-actions/FormActions.js +6 -6
- package/web-dist/components/form-error/FormError.js +6 -6
- package/web-dist/components/heading/Heading.js +3 -3
- package/web-dist/components/hero/Hero.js +7 -7
- package/web-dist/components/icon-button/IconButton.js +3 -3
- package/web-dist/components/image/Image.js +2 -2
- package/web-dist/components/list/List.js +5 -5
- package/web-dist/components/list-item/ListItem.js +5 -5
- package/web-dist/components/list-section/ListSection.js +5 -5
- package/web-dist/components/media-card/MediaCard.js +7 -7
- package/web-dist/components/message-bubble/MessageBubble.js +5 -5
- package/web-dist/components/metric-card/MetricCard.js +7 -7
- package/web-dist/components/missing-element/MissingElement.js +5 -5
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +8 -8
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +8 -8
- package/web-dist/components/otp-form/OtpForm.js +8 -8
- package/web-dist/components/pagination/Pagination.js +4 -4
- package/web-dist/components/palette-item/PaletteItem.js +9 -9
- package/web-dist/components/popover-menu/PopoverMenu.js +2 -2
- package/web-dist/components/post-card/PostCard.js +7 -7
- package/web-dist/components/product-card/ProductCard.js +7 -7
- package/web-dist/components/progress/Progress.js +4 -4
- package/web-dist/components/progress-ring/ProgressRing.js +4 -4
- package/web-dist/components/radio/Radio.js +4 -4
- package/web-dist/components/radio-group/RadioGroup.js +4 -4
- package/web-dist/components/rating/Rating.js +3 -3
- package/web-dist/components/reader-surface/ReaderSurface.js +10 -10
- package/web-dist/components/scan-overlay/ScanOverlay.js +8 -8
- package/web-dist/components/screen-section/ScreenSection.js +4 -4
- package/web-dist/components/search-input/SearchInput.js +4 -4
- package/web-dist/components/section-header/SectionHeader.js +4 -4
- package/web-dist/components/section-list/SectionList.js +5 -5
- package/web-dist/components/select/Select.js +3 -3
- package/web-dist/components/sign-in-form/SignInForm.js +8 -8
- package/web-dist/components/sign-up-form/SignUpForm.js +8 -8
- package/web-dist/components/skeleton/Skeleton.js +10 -10
- package/web-dist/components/skeleton-card/SkeletonCard.js +10 -10
- package/web-dist/components/skeleton-list/SkeletonList.js +10 -10
- package/web-dist/components/skeleton-text/SkeletonText.js +10 -10
- package/web-dist/components/text/Text.js +3 -3
- package/web-dist/components/text-input/TextInput.js +4 -4
- package/web-dist/components/time-picker/TimePicker.js +4 -4
- package/web-dist/components/timeline/Timeline.js +5 -5
- package/web-dist/components/toolbar/Toolbar.js +7 -7
- package/web-dist/components/tree-item/TreeItem.js +6 -6
- package/web-dist/components/uploader/Uploader.js +9 -9
- package/web-dist/manifest.json +424 -423
- package/web-dist/runtime/ZoraProvider.d.ts +74 -2
- package/web-dist/runtime/ZoraProvider.js +5 -1
|
@@ -1,12 +1,84 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
|
|
3
|
+
export type ZoraThemeMode = 'light' | 'dark';
|
|
4
|
+
|
|
5
|
+
export interface ZoraRuntimeRoleSemantics {
|
|
6
|
+
base: string;
|
|
7
|
+
hover: string;
|
|
8
|
+
strong: string;
|
|
9
|
+
softBg: string;
|
|
10
|
+
softHover: string;
|
|
11
|
+
softActive: string;
|
|
12
|
+
outline: string;
|
|
13
|
+
onSurfaceText: string;
|
|
14
|
+
onSolidText: string;
|
|
15
|
+
onHoverText: string;
|
|
16
|
+
onStrongText: string;
|
|
17
|
+
onSoftText: string;
|
|
18
|
+
onSoftHoverText: string;
|
|
19
|
+
onSoftActiveText: string;
|
|
20
|
+
disabledBg: string;
|
|
21
|
+
onDisabledText: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ZoraRuntimeTheme {
|
|
25
|
+
colors: Readonly<Record<string, string>>;
|
|
26
|
+
spacing: Readonly<Record<string, number>>;
|
|
27
|
+
radii: Readonly<Record<string, number>>;
|
|
28
|
+
semantics: {
|
|
29
|
+
brand: ZoraRuntimeRoleSemantics;
|
|
30
|
+
secondary: ZoraRuntimeRoleSemantics;
|
|
31
|
+
accent: ZoraRuntimeRoleSemantics;
|
|
32
|
+
highlight: ZoraRuntimeRoleSemantics;
|
|
33
|
+
danger: ZoraRuntimeRoleSemantics;
|
|
34
|
+
success: ZoraRuntimeRoleSemantics;
|
|
35
|
+
warning: ZoraRuntimeRoleSemantics;
|
|
36
|
+
error: ZoraRuntimeRoleSemantics;
|
|
37
|
+
info: ZoraRuntimeRoleSemantics;
|
|
38
|
+
surface: {
|
|
39
|
+
default: string;
|
|
40
|
+
subtle: string;
|
|
41
|
+
raised: string;
|
|
42
|
+
sunken: string;
|
|
43
|
+
overlay: string;
|
|
44
|
+
disabled: string;
|
|
45
|
+
inverse: string;
|
|
46
|
+
};
|
|
47
|
+
content: {
|
|
48
|
+
default: string;
|
|
49
|
+
muted: string;
|
|
50
|
+
subtle: string;
|
|
51
|
+
disabled: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
link: string;
|
|
54
|
+
visited: string;
|
|
55
|
+
inverse: string;
|
|
56
|
+
};
|
|
57
|
+
border: {
|
|
58
|
+
default: string;
|
|
59
|
+
subtle: string;
|
|
60
|
+
strong: string;
|
|
61
|
+
divider: string;
|
|
62
|
+
focus: string;
|
|
63
|
+
};
|
|
64
|
+
selection: { background: string; content: string; border: string };
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface ZoraThemeRuntime {
|
|
69
|
+
readonly theme: ZoraRuntimeTheme;
|
|
70
|
+
readonly mode: ZoraThemeMode;
|
|
71
|
+
readonly setMode: (mode: ZoraThemeMode) => void;
|
|
72
|
+
}
|
|
73
|
+
|
|
3
74
|
export interface ZoraProviderProps {
|
|
4
75
|
children: React.ReactNode;
|
|
5
|
-
initialMode?:
|
|
6
|
-
mode?:
|
|
76
|
+
initialMode?: ZoraThemeMode;
|
|
77
|
+
mode?: ZoraThemeMode;
|
|
7
78
|
theme?: { id: string; name: string; appCategory: string; primaryColor: string; harmony: string };
|
|
8
79
|
themeConfig?: Record<string, unknown>;
|
|
9
80
|
toast?: boolean | Record<string, unknown>;
|
|
10
81
|
bottomSheet?: boolean;
|
|
11
82
|
}
|
|
12
83
|
export declare function ZoraProvider(props: ZoraProviderProps): React.ReactElement;
|
|
84
|
+
export declare function useZoraTheme(): ZoraThemeRuntime;
|
|
@@ -29,6 +29,9 @@ import {
|
|
|
29
29
|
import"../chunks/Accordion-r4c9k9y7.js";
|
|
30
30
|
import"../chunks/Accordion-0jkm3y3w.js";
|
|
31
31
|
import"../chunks/Accordion-eqvdv7tt.js";
|
|
32
|
+
import {
|
|
33
|
+
useZoraTheme2
|
|
34
|
+
} from "../chunks/Accordion-7ja4mtbz.js";
|
|
32
35
|
import"../chunks/Accordion-ys214jt5.js";
|
|
33
36
|
import"../chunks/Accordion-f5swy5bs.js";
|
|
34
37
|
import"../chunks/Accordion-fre84yaq.js";
|
|
@@ -202,5 +205,6 @@ function ZoraProviderMode({ children, mode }) {
|
|
|
202
205
|
return children;
|
|
203
206
|
}
|
|
204
207
|
export {
|
|
205
|
-
ZoraProvider
|
|
208
|
+
ZoraProvider,
|
|
209
|
+
useZoraTheme2 as useZoraTheme
|
|
206
210
|
};
|