@apple-pie/slice 0.1.9 → 0.1.10
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/dist/cjs/chunks/{IndexedDB-BxQn7aHU.js → IndexedDB-BaVmQgkK.js} +12 -10
- package/dist/cjs/chunks/{PromptInput-B-Wlfnhx.js → PromptInput-D317oh1e.js} +1 -1
- package/dist/cjs/chunks/{TextArea-D7E8loob.js → TextArea-2w4E6d2H.js} +1 -1
- package/dist/cjs/chunks/{UploadArea-Bfrwzo4O.js → UploadArea-CxYAAs7Q.js} +1 -1
- package/dist/cjs/chunks/localDBStore-BHEk_9fJ.js +257 -0
- package/dist/cjs/components/PromptInput/index.js +1 -1
- package/dist/cjs/components/TextArea/index.js +1 -1
- package/dist/cjs/components/UploadArea/index.js +7 -8
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/stores/LocalDB.js +6 -5
- package/dist/cjs/stores.js +7 -7
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/objects/index.js +1 -1
- package/dist/css/flexBox.module.css +85 -0
- package/dist/css/type.module.css +206 -0
- package/dist/esm/chunks/{IndexedDB-CNOziQ6p.mjs → IndexedDB-CJgzPHPB.mjs} +12 -10
- package/dist/esm/chunks/{TextArea-Ff5hxF1H.mjs → TextArea-DKRF4Irr.mjs} +1 -1
- package/dist/esm/chunks/localDBStore-C-Ch2MFq.mjs +265 -0
- package/dist/esm/components/PromptInput/index.mjs +1 -1
- package/dist/esm/components/TextArea/index.mjs +1 -1
- package/dist/esm/components/UploadArea/index.mjs +6 -6
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/stores/LocalDB.mjs +6 -2
- package/dist/esm/stores.mjs +6 -2
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/objects/index.mjs +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +3 -0
- package/dist/types/components/Avatar/_types.d.ts +22 -0
- package/dist/types/components/Avatar/index.d.ts +2 -0
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/types/components/AvatarGroup/_types.d.ts +25 -0
- package/dist/types/components/AvatarGroup/index.d.ts +2 -0
- package/dist/types/components/Badge/Badge.d.ts +3 -0
- package/dist/types/components/Badge/_types.d.ts +8 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/Button/Button.d.ts +76 -0
- package/dist/types/components/Button/_types.d.ts +45 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/ButtonBar/ButtonBar.d.ts +17 -0
- package/dist/types/components/ButtonBar/_types.d.ts +27 -0
- package/dist/types/components/ButtonBar/index.d.ts +2 -0
- package/dist/types/components/Camera/Camera.d.ts +11 -0
- package/dist/types/components/Camera/_types.d.ts +79 -0
- package/dist/types/components/Camera/index.d.ts +2 -0
- package/dist/types/components/CheckBox/CheckBox.d.ts +3 -0
- package/dist/types/components/CheckBox/_types.d.ts +11 -0
- package/dist/types/components/CheckBox/index.d.ts +2 -0
- package/dist/types/components/Chip/Chip.d.ts +3 -0
- package/dist/types/components/Chip/_types.d.ts +31 -0
- package/dist/types/components/Chip/index.d.ts +3 -0
- package/dist/types/components/DivInput/DivInput.d.ts +3 -0
- package/dist/types/components/DivInput/_types.d.ts +23 -0
- package/dist/types/components/DivInput/index.d.ts +2 -0
- package/dist/types/components/Dot/Dot.d.ts +3 -0
- package/dist/types/components/Dot/_types.d.ts +19 -0
- package/dist/types/components/Dot/index.d.ts +2 -0
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +44 -0
- package/dist/types/components/DraggablePanel/_types.d.ts +5 -0
- package/dist/types/components/DraggablePanel/index.d.ts +1 -0
- package/dist/types/components/DropDown/DropDown.d.ts +4 -0
- package/dist/types/components/DropDown/_types.d.ts +34 -0
- package/dist/types/components/DropDown/index.d.ts +2 -0
- package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +4 -0
- package/dist/types/components/ErrorSummary/_types.d.ts +12 -0
- package/dist/types/components/ErrorSummary/index.d.ts +2 -0
- package/dist/types/components/FileIcon/FileIcon.d.ts +3 -0
- package/dist/types/components/FileIcon/_types.d.ts +27 -0
- package/dist/types/components/FileIcon/fileIconRegistry.d.ts +4 -0
- package/dist/types/components/FileIcon/index.d.ts +3 -0
- package/dist/types/components/FileList/FileList.d.ts +3 -0
- package/dist/types/components/FileList/_types.d.ts +24 -0
- package/dist/types/components/FileList/index.d.ts +2 -0
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +60 -0
- package/dist/types/components/FlexDiv/_types.d.ts +34 -0
- package/dist/types/components/FlexDiv/index.d.ts +2 -0
- package/dist/types/components/Grouper/Grouper.d.ts +3 -0
- package/dist/types/components/Grouper/_types.d.ts +20 -0
- package/dist/types/components/Grouper/index.d.ts +2 -0
- package/dist/types/components/Icon/Icon.d.ts +3 -0
- package/dist/types/components/Icon/_types.d.ts +131 -0
- package/dist/types/components/Icon/iconRegistry.d.ts +17 -0
- package/dist/types/components/Icon/index.d.ts +2 -0
- package/dist/types/components/IconButton/IconButton.d.ts +3 -0
- package/dist/types/components/IconButton/_types.d.ts +34 -0
- package/dist/types/components/IconButton/index.d.ts +2 -0
- package/dist/types/components/Label/Label.d.ts +2 -0
- package/dist/types/components/Label/_types.d.ts +16 -0
- package/dist/types/components/Label/index.d.ts +2 -0
- package/dist/types/components/Overlay/Overlay.d.ts +3 -0
- package/dist/types/components/Overlay/_types.d.ts +12 -0
- package/dist/types/components/Overlay/index.d.ts +2 -0
- package/dist/types/components/Pager/Pager.d.ts +3 -0
- package/dist/types/components/Pager/_types.d.ts +13 -0
- package/dist/types/components/Pager/index.d.ts +2 -0
- package/dist/types/components/Progress/DoneCheck/DoneCheck.d.ts +3 -0
- package/dist/types/components/Progress/DoneCheck/_types.d.ts +13 -0
- package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +3 -0
- package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +14 -0
- package/dist/types/components/Progress/index.d.ts +4 -0
- package/dist/types/components/PromptInput/PromptInput.d.ts +63 -0
- package/dist/types/components/PromptInput/_types.d.ts +35 -0
- package/dist/types/components/PromptInput/index.d.ts +2 -0
- package/dist/types/components/RadioButton/RadioButton.d.ts +3 -0
- package/dist/types/components/RadioButton/_types.d.ts +26 -0
- package/dist/types/components/RadioButton/index.d.ts +2 -0
- package/dist/types/components/RadioButtonList/RadioButtonList.d.ts +3 -0
- package/dist/types/components/RadioButtonList/_types.d.ts +24 -0
- package/dist/types/components/RadioButtonList/index.d.ts +2 -0
- package/dist/types/components/Slider/Slider.d.ts +3 -0
- package/dist/types/components/Slider/_types.d.ts +18 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Spacer/Spacer.d.ts +3 -0
- package/dist/types/components/Spacer/_types.d.ts +6 -0
- package/dist/types/components/Spacer/index.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +3 -0
- package/dist/types/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/types/components/Switch/_types.d.ts +13 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/TabBar/TabBar.d.ts +3 -0
- package/dist/types/components/TabBar/_types.d.ts +52 -0
- package/dist/types/components/TabBar/index.d.ts +2 -0
- package/dist/types/components/TextArea/TextArea.d.ts +3 -0
- package/dist/types/components/TextArea/_types.d.ts +41 -0
- package/dist/types/components/TextArea/index.d.ts +2 -0
- package/dist/types/components/Textfield/TextField.d.ts +3 -0
- package/dist/types/components/Textfield/_types.d.ts +79 -0
- package/dist/types/components/Textfield/index.d.ts +2 -0
- package/dist/types/components/Tip/Tip.d.ts +3 -0
- package/dist/types/components/Tip/_types.d.ts +28 -0
- package/dist/types/components/Tip/index.d.ts +2 -0
- package/dist/types/components/Toast/Toast.d.ts +3 -0
- package/dist/types/components/Toast/_types.d.ts +24 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components/UploadArea/UploadArea.d.ts +54 -0
- package/dist/types/components/UploadArea/_types.d.ts +46 -0
- package/dist/types/components/UploadArea/index.d.ts +3 -0
- package/dist/types/components/playHelpers.d.ts +35 -0
- package/dist/types/components/sharedTypes.d.ts +21 -0
- package/dist/types/hooks/index.d.ts +9 -0
- package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +1 -0
- package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +9 -0
- package/dist/types/hooks/useLastUpdated/useLastUpdated.d.ts +4 -0
- package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +1 -0
- package/dist/types/hooks/useObserveResize/useObserveResize.d.ts +9 -0
- package/dist/types/hooks/useObserveTheme/useObserveTheme.d.ts +2 -0
- package/dist/types/hooks/useTheme/useTheme.d.ts +47 -0
- package/dist/types/hooks/useToolTip/useToolTip.d.ts +6 -0
- package/dist/types/hooks/useTrackRenders/useTrackRenders.d.ts +5 -0
- package/dist/types/hooks/useWindow/useWindow.d.ts +43 -0
- package/dist/types/index.d.ts +74 -0
- package/dist/types/providers/ThemeProvider.d.ts +13 -0
- package/dist/types/providers/index.d.ts +1 -0
- package/dist/types/stores/LocalDB/_types.d.ts +43 -0
- package/dist/types/stores/LocalDB/index.d.ts +2 -0
- package/dist/types/stores/LocalDB/localDBStore.d.ts +18 -0
- package/dist/types/stores/SSE/_types.d.ts +17 -0
- package/dist/types/stores/SSE/index.d.ts +2 -0
- package/dist/types/stores/SSE/sseStore.d.ts +28 -0
- package/dist/types/stores/WS/_types.d.ts +17 -0
- package/dist/types/stores/WS/index.d.ts +2 -0
- package/dist/types/stores/WS/wsStore.d.ts +19 -0
- package/dist/types/stores/index.d.ts +6 -0
- package/dist/types/stores/tip/_types.d.ts +8 -0
- package/dist/types/stores/tip/index.d.ts +2 -0
- package/dist/types/stores/tip/tipStore.d.ts +12 -0
- package/dist/types/stores/toast/_types.d.ts +14 -0
- package/dist/types/stores/toast/index.d.ts +2 -0
- package/dist/types/stores/toast/toastStore.d.ts +12 -0
- package/dist/types/stores/uploads/_types.d.ts +16 -0
- package/dist/types/stores/uploads/index.d.ts +2 -0
- package/dist/types/stores/uploads/uploadsStore.d.ts +22 -0
- package/dist/types/stores/window/_types.d.ts +33 -0
- package/dist/types/stores/window/index.d.ts +3 -0
- package/dist/types/stores/window/windowStore.d.ts +25 -0
- package/dist/types/theme/colors/colors.d.ts +6 -0
- package/dist/types/theme/colors/types.d.ts +174 -0
- package/dist/types/theme/corners/corners.d.ts +2 -0
- package/dist/types/theme/corners/types.d.ts +10 -0
- package/dist/types/theme/elevations/_types.d.ts +10 -0
- package/dist/types/theme/elevations/elevations.d.ts +5 -0
- package/dist/types/theme/index.d.ts +9 -0
- package/dist/types/theme/motion/_types.d.ts +8 -0
- package/dist/types/theme/motion/motion.d.ts +5 -0
- package/dist/types/theme/themes.d.ts +16 -0
- package/dist/types/theme/type/type.d.ts +5 -0
- package/dist/types/theme/type/types.d.ts +25 -0
- package/dist/types/utils/functions/colors.d.ts +8 -0
- package/dist/types/utils/functions/debounce.d.ts +9 -0
- package/dist/types/utils/functions/files.d.ts +15 -0
- package/dist/types/utils/functions/misc.d.ts +61 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/objects/IndexedDB/IndexedDB.d.ts +62 -0
- package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +187 -0
- package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +159 -0
- package/dist/types/utils/objects/index.d.ts +6 -0
- package/dist/types/workers/uploads/uploads-worker.d.ts +129 -0
- package/dist/types/workers/uploads/uploads.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/localDBStore-Cl1YFPIe.js +0 -182
- package/dist/esm/chunks/localDBStore-CbCoeN66.mjs +0 -186
- package/dist/esm/chunks/{PromptInput-Cmist_vy.mjs → PromptInput-C6liKbFf.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-6z-mVZs3.mjs → UploadArea-DNAH-Bu5.mjs} +2 -2
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type { ToolTip, ToolTipInfo } from './components/sharedTypes';
|
|
2
|
+
export { ToolTipType } from './components/sharedTypes';
|
|
3
|
+
export { light, dark, lightTheme, darkTheme, motion, elevations, Elevation, } from './theme';
|
|
4
|
+
export type { SliceTheme, Colors, Type, Corners, Elevations, } from './theme';
|
|
5
|
+
export { type KeyboardShortcut, type KeyboardShortcuts, type BreakPoints, type WindowGeolocation, type WindowGeolocationError, useKeyboardShortcuts, useTheme, useObserveTheme, useToolTip, useLastUpdated, useLocalStore, useWindow, useDoubleClick, useObserveResize, } from './hooks';
|
|
6
|
+
export { Avatar } from './components/Avatar/index';
|
|
7
|
+
export type { AvatarProps } from './components/Avatar/index';
|
|
8
|
+
export { AvatarGroup } from './components/AvatarGroup';
|
|
9
|
+
export type { AvatarGroupProps, AvatarInfo } from './components/AvatarGroup';
|
|
10
|
+
export { Badge } from './components/Badge';
|
|
11
|
+
export type { BadgeProps } from './components/Badge';
|
|
12
|
+
export { IconButton } from './components/IconButton';
|
|
13
|
+
export type { IconButtonProps } from './components/IconButton';
|
|
14
|
+
export { Camera } from './components/Camera';
|
|
15
|
+
export type { CameraElement, CameraProps, CameraSnapshotOptions, Controls, UserProfile, Settings, } from './components/Camera';
|
|
16
|
+
export { CheckBox } from './components/CheckBox';
|
|
17
|
+
export type { CheckBoxProps } from './components/CheckBox';
|
|
18
|
+
export { DivInput } from './components/DivInput';
|
|
19
|
+
export type { DivInputProps } from './components/DivInput';
|
|
20
|
+
export { Dot } from './components/Dot';
|
|
21
|
+
export type { DotProps } from './components/Dot';
|
|
22
|
+
export { DraggablePanel } from './components/DraggablePanel';
|
|
23
|
+
export type { DraggablePanelProps } from './components/DraggablePanel';
|
|
24
|
+
export { DropDown } from './components/DropDown';
|
|
25
|
+
export type { DropDownOption, DropDownProps } from './components/DropDown';
|
|
26
|
+
export { ErrorSummary } from './components/ErrorSummary';
|
|
27
|
+
export type { ErrorMessage, ErrorSummaryProps, } from './components/ErrorSummary';
|
|
28
|
+
export { Grouper } from './components/Grouper';
|
|
29
|
+
export type { GrouperProps } from './components/Grouper';
|
|
30
|
+
export { Overlay } from './components/Overlay';
|
|
31
|
+
export type { OverlayProps } from './components/Overlay';
|
|
32
|
+
export { FlexDiv } from './components/FlexDiv';
|
|
33
|
+
export type { FlexDivProps } from './components/FlexDiv';
|
|
34
|
+
export { Pager } from './components/Pager';
|
|
35
|
+
export type { PagerProps } from './components/Pager';
|
|
36
|
+
export { PromptInput } from './components/PromptInput';
|
|
37
|
+
export type { PromptProps } from './components/PromptInput';
|
|
38
|
+
export { DoneCheck, ProgressIndicator } from './components/Progress';
|
|
39
|
+
export type { DoneCheckProps, ProgressIndicatorProps, } from './components/Progress';
|
|
40
|
+
export { RadioButton } from './components/RadioButton';
|
|
41
|
+
export type { RadioButtonProps, RadioButtonOption, } from './components/RadioButton';
|
|
42
|
+
export { RadioButtonList } from './components/RadioButtonList';
|
|
43
|
+
export type { RadioButtonListProps } from './components/RadioButtonList';
|
|
44
|
+
export { Slider } from './components/Slider';
|
|
45
|
+
export type { SliderProps } from './components/Slider';
|
|
46
|
+
export { Spacer } from './components/Spacer';
|
|
47
|
+
export { Switch } from './components/Switch';
|
|
48
|
+
export type { SwitchProps } from './components/Switch';
|
|
49
|
+
export { TabBar } from './components/TabBar';
|
|
50
|
+
export type { TabOption, TabBarProps } from './components/TabBar';
|
|
51
|
+
export { TextArea } from './components/TextArea';
|
|
52
|
+
export type { TextAreaProps } from './components/TextArea';
|
|
53
|
+
export { TextField } from './components/Textfield';
|
|
54
|
+
export type { TextFieldProps } from './components/Textfield';
|
|
55
|
+
export { ThemeProvider } from './providers';
|
|
56
|
+
export { Tip } from './components/Tip';
|
|
57
|
+
export type { ToolTipProps } from './components/Tip';
|
|
58
|
+
export { Toast, ToastType } from './components/Toast';
|
|
59
|
+
export type { ToastProps } from './components/Toast';
|
|
60
|
+
export { Button } from './components/Button';
|
|
61
|
+
export type { ButtonProps, ButtonHandle } from './components/Button';
|
|
62
|
+
export { Chip } from './components/Chip';
|
|
63
|
+
export type { ChipProps } from './components/Chip';
|
|
64
|
+
export { FileIcon, FileIconNames } from './components/FileIcon';
|
|
65
|
+
export type { FileIconProps } from './components/FileIcon/_types';
|
|
66
|
+
export { Icon, SliceIcons } from './components/Icon';
|
|
67
|
+
export type { IconProps } from './components/Icon/_types';
|
|
68
|
+
export { ButtonBar } from './components/ButtonBar';
|
|
69
|
+
export type { BarButton, ButtonBarProps } from './components/ButtonBar/_types';
|
|
70
|
+
export { Label } from './components/Label';
|
|
71
|
+
export type { LabelProps } from './components/Label';
|
|
72
|
+
export { UploadArea } from './components/UploadArea';
|
|
73
|
+
export type { UploadAreaProps } from './components/UploadArea/_types';
|
|
74
|
+
export { imageTypes, videoTypes, documentTypes, audioTypes, textTypes, allTypes, } from './components/UploadArea/_types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import '../theme/colors/colors.css';
|
|
3
|
+
import '../theme/elevations/elevation.css';
|
|
4
|
+
import '../theme/type/type.css';
|
|
5
|
+
import '../theme/breakpoints/custom-media.css';
|
|
6
|
+
import '../theme/motion/motion.css';
|
|
7
|
+
interface ThemeProviderProps {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
theme?: string;
|
|
10
|
+
system?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function ThemeProvider(props: Readonly<ThemeProviderProps>): React.ReactNode;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeProvider } from './ThemeProvider';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { IndexedDB, IndexedDBOptions } from '../../utils';
|
|
2
|
+
export interface LocalDBRecord<TValue = unknown> {
|
|
3
|
+
key: IDBValidKey;
|
|
4
|
+
value: TValue;
|
|
5
|
+
}
|
|
6
|
+
export interface LocalDBConnection<TValue = unknown> {
|
|
7
|
+
name: string;
|
|
8
|
+
connection: IndexedDB<TValue>;
|
|
9
|
+
key: string | null;
|
|
10
|
+
records: LocalDBRecord<TValue>[];
|
|
11
|
+
initialized: boolean;
|
|
12
|
+
error: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface LocalDBStoreOptions extends Omit<IndexedDBOptions, 'databaseName'> {
|
|
15
|
+
create?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type LocalDBActionResult = {
|
|
18
|
+
ok: true;
|
|
19
|
+
} | {
|
|
20
|
+
ok: false;
|
|
21
|
+
error: Error;
|
|
22
|
+
};
|
|
23
|
+
export type LocalDBActionValueResult<TValue> = {
|
|
24
|
+
ok: true;
|
|
25
|
+
value: TValue;
|
|
26
|
+
} | {
|
|
27
|
+
ok: false;
|
|
28
|
+
error: Error;
|
|
29
|
+
};
|
|
30
|
+
export interface LocalDBActions {
|
|
31
|
+
addStore: (name: string, options?: LocalDBStoreOptions) => Promise<LocalDBActionResult>;
|
|
32
|
+
removeStore: (name: string) => Promise<LocalDBActionResult>;
|
|
33
|
+
refreshStore: (name: string) => Promise<LocalDBActionResult>;
|
|
34
|
+
setValue: (name: string, value: unknown | unknown[]) => Promise<LocalDBActionValueResult<IDBValidKey | IDBValidKey[]>>;
|
|
35
|
+
addValue: (name: string, value: unknown | unknown[]) => Promise<LocalDBActionValueResult<IDBValidKey | IDBValidKey[]>>;
|
|
36
|
+
removeValue: (name: string, value: unknown | unknown[]) => Promise<LocalDBActionResult>;
|
|
37
|
+
clearStore: (name: string) => Promise<LocalDBActionResult>;
|
|
38
|
+
destroyStore: (name: string) => Promise<LocalDBActionResult>;
|
|
39
|
+
}
|
|
40
|
+
export interface LocalDBStoreState {
|
|
41
|
+
stores: LocalDBConnection[];
|
|
42
|
+
actions: LocalDBActions;
|
|
43
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { LocalDBActions, LocalDBStoreState } from './_types';
|
|
2
|
+
export declare const useLocalDBStore: import("zustand").UseBoundStore<import("zustand").StoreApi<LocalDBStoreState>>;
|
|
3
|
+
type BoundLocalDBActions = {
|
|
4
|
+
refresh: () => ReturnType<LocalDBActions['refreshStore']>;
|
|
5
|
+
set: (value: unknown) => ReturnType<LocalDBActions['setValue']>;
|
|
6
|
+
add: (value: unknown) => ReturnType<LocalDBActions['addValue']>;
|
|
7
|
+
remove: (value: unknown) => ReturnType<LocalDBActions['removeValue']>;
|
|
8
|
+
clear: () => ReturnType<LocalDBActions['clearStore']>;
|
|
9
|
+
destroy: () => ReturnType<LocalDBActions['destroyStore']>;
|
|
10
|
+
};
|
|
11
|
+
export declare const useLocalDB: (name: string) => BoundLocalDBActions;
|
|
12
|
+
export declare function useLocalDBValues<TValue = Record<string, unknown>>(name: string): TValue[];
|
|
13
|
+
export declare function useLocalDBValues<TValue = Record<string, unknown>>(name: string, key: IDBValidKey): TValue | null;
|
|
14
|
+
export declare function useLocalDBValues<TValue = Record<string, unknown>>(name: string, field: keyof TValue, value: TValue[keyof TValue]): TValue[];
|
|
15
|
+
export declare const useLocalDBError: (name: string) => string | null;
|
|
16
|
+
export declare const useManageLocalDB: () => LocalDBActions;
|
|
17
|
+
export declare const localDBActions: LocalDBActions;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SSEConnection, SSEConnectionOptions, SSEEventMap, SSEUnifiedMessage } from '../../utils';
|
|
2
|
+
export type SSEStoreConnectionOptions = Omit<SSEConnectionOptions<unknown, SSEEventMap>, 'unifiedOnMessage'> & {
|
|
3
|
+
onMessageCallback?: (message: SSEUnifiedMessage<unknown, SSEEventMap>) => void;
|
|
4
|
+
};
|
|
5
|
+
export interface SSEStoreConnection {
|
|
6
|
+
name: string;
|
|
7
|
+
connection: SSEConnection<unknown, SSEEventMap>;
|
|
8
|
+
}
|
|
9
|
+
export interface SSEStore {
|
|
10
|
+
connections: SSEStoreConnection[];
|
|
11
|
+
message: SSEUnifiedMessage<unknown, SSEEventMap> | null;
|
|
12
|
+
closedConnection: string | null;
|
|
13
|
+
actions: {
|
|
14
|
+
addConnection: (name: string, options: SSEStoreConnectionOptions) => SSEStoreConnection;
|
|
15
|
+
removeConnection: (name: string) => void;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type SSEEventMap, type SSEUnifiedMessage } from '../../utils';
|
|
2
|
+
import type { SSEStore, SSEStoreConnectionOptions } from './_types';
|
|
3
|
+
export declare const useSSEStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SSEStore>>;
|
|
4
|
+
export declare const useSSE: () => {
|
|
5
|
+
addConnection: (name: string, options: SSEStoreConnectionOptions) => import("./_types").SSEStoreConnection;
|
|
6
|
+
removeConnection: (name: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useConnectionClose: () => string | null;
|
|
9
|
+
export declare const useConnectionMessage: (connection: string) => {
|
|
10
|
+
type: "error";
|
|
11
|
+
event: Event;
|
|
12
|
+
} | {
|
|
13
|
+
type: "open";
|
|
14
|
+
event: Event;
|
|
15
|
+
} | {
|
|
16
|
+
type: "close";
|
|
17
|
+
event: Event;
|
|
18
|
+
} | import("../../utils").SSEUnifiedCustomMessage<SSEEventMap, string> | null;
|
|
19
|
+
export declare const useIsConnected: (connection?: string) => boolean;
|
|
20
|
+
export declare function useMessage(): SSEUnifiedMessage<unknown, SSEEventMap> | null;
|
|
21
|
+
export declare function useMessage<T = unknown>(type: 'message', connection?: string): T | string | null;
|
|
22
|
+
export declare function useMessage(type: 'open' | 'error' | 'close', connection?: string): Event | null;
|
|
23
|
+
export declare function useMessage<T = unknown>(type: string, connection?: string): T | string | null;
|
|
24
|
+
export declare const useSSEActions: {
|
|
25
|
+
addConnection: (name: string, options: SSEStoreConnectionOptions) => import("./_types").SSEStoreConnection;
|
|
26
|
+
removeConnection: (name: string) => void;
|
|
27
|
+
};
|
|
28
|
+
export declare const useLastSSEMessage: () => SSEUnifiedMessage<unknown, SSEEventMap> | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { UnifiedMessageEvent, WSConnection, WSConnectionOptions } from '../../utils';
|
|
2
|
+
export type WSStoreConnectionOptions = Omit<WSConnectionOptions<unknown>, 'unifiedMessages'> & {
|
|
3
|
+
onMessageCallback?: (message: UnifiedMessageEvent<unknown>) => void;
|
|
4
|
+
};
|
|
5
|
+
export interface WSStoreConnection {
|
|
6
|
+
name: string;
|
|
7
|
+
connection: WSConnection<unknown>;
|
|
8
|
+
}
|
|
9
|
+
export interface WSStore {
|
|
10
|
+
connections: WSStoreConnection[];
|
|
11
|
+
message: UnifiedMessageEvent<unknown> | null;
|
|
12
|
+
closedConnection: string | null;
|
|
13
|
+
actions: {
|
|
14
|
+
addConnection: (name: string, options: WSStoreConnectionOptions) => WSStoreConnection;
|
|
15
|
+
removeConnection: (name: string) => void;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type UnifiedMessageEvent } from '../../utils';
|
|
2
|
+
import type { WSStore, WSStoreConnectionOptions } from './_types';
|
|
3
|
+
export declare const useWSStore: import("zustand").UseBoundStore<import("zustand").StoreApi<WSStore>>;
|
|
4
|
+
export declare const useWS: () => {
|
|
5
|
+
addConnection: (name: string, options: WSStoreConnectionOptions) => import("./_types").WSStoreConnection;
|
|
6
|
+
removeConnection: (name: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useConnectionClose: () => string | null;
|
|
9
|
+
export declare const useConnectionMessage: (connection: string) => UnifiedMessageEvent<unknown> | null;
|
|
10
|
+
export declare const useIsConnected: (connection?: string) => boolean;
|
|
11
|
+
export declare function useMessage(): UnifiedMessageEvent<unknown> | null;
|
|
12
|
+
export declare function useMessage<T = unknown>(type: 'message', connection?: string): T | string | Blob | ArrayBuffer | null;
|
|
13
|
+
export declare function useMessage(type: 'open' | 'error' | 'close', connection?: string): Event | ErrorEvent | CloseEvent | null;
|
|
14
|
+
export declare function useMessage<T = unknown>(type: string, connection?: string): T | string | Blob | ArrayBuffer | null;
|
|
15
|
+
export declare const useWSActions: {
|
|
16
|
+
addConnection: (name: string, options: WSStoreConnectionOptions) => import("./_types").WSStoreConnection;
|
|
17
|
+
removeConnection: (name: string) => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const useLastWSMessage: () => UnifiedMessageEvent<unknown> | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TipStore } from './_types';
|
|
2
|
+
export declare const useTipStore: import("zustand").UseBoundStore<import("zustand").StoreApi<TipStore>>;
|
|
3
|
+
export declare const useTip: () => import("../..").ToolTip | null;
|
|
4
|
+
export declare const useTipActions: () => {
|
|
5
|
+
push: (tip: import("../..").ToolTip | null) => void;
|
|
6
|
+
clear: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const tipActions: {
|
|
9
|
+
push: (tip: import("../..").ToolTip | null) => void;
|
|
10
|
+
clear: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const getTip: () => import("../..").ToolTip | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ToastType } from '../../components/Toast';
|
|
2
|
+
export type Toast = {
|
|
3
|
+
message: string | null;
|
|
4
|
+
duration?: number;
|
|
5
|
+
type?: ToastType;
|
|
6
|
+
close?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface ToastStore {
|
|
9
|
+
toast: Toast | null;
|
|
10
|
+
actions: {
|
|
11
|
+
push: (toast: Toast | null) => void;
|
|
12
|
+
clear: () => void;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Toast, ToastStore } from './_types';
|
|
2
|
+
export declare const useToastStore: import("zustand").UseBoundStore<import("zustand").StoreApi<ToastStore>>;
|
|
3
|
+
export declare const useToast: () => Toast | null;
|
|
4
|
+
export declare const useToastActions: () => {
|
|
5
|
+
push: (toast: Toast | null) => void;
|
|
6
|
+
clear: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const toastActions: {
|
|
9
|
+
push: (toast: Toast | null) => void;
|
|
10
|
+
clear: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const getToast: () => Toast | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ConfigurationOptions, Upload, UploadInput, UploadWorkerMessage, UploadWorkerResponse, WorkerStatus } from '../../workers/uploads/uploads-worker';
|
|
2
|
+
export type UploadsStoreState = {
|
|
3
|
+
uploads: Upload[];
|
|
4
|
+
workerStatus: WorkerStatus;
|
|
5
|
+
initialized: boolean;
|
|
6
|
+
error: string | null;
|
|
7
|
+
actions: {
|
|
8
|
+
initialize: (options: ConfigurationOptions, worker: UploadsWorkerInstance) => UploadsWorkerInstance;
|
|
9
|
+
push: (files: File | UploadInput | Array<File | UploadInput>) => void;
|
|
10
|
+
reset: () => void;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type UploadsWorkerInstance = Worker & {
|
|
14
|
+
postMessage: (message: UploadWorkerMessage) => void;
|
|
15
|
+
onmessage: ((event: MessageEvent<UploadWorkerResponse>) => void) | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ConfigurationOptions, type UploadInput, WorkerStatus } from '../../workers/uploads/uploads-worker';
|
|
2
|
+
import type { UploadsStoreState, UploadsWorkerInstance } from './_types';
|
|
3
|
+
export declare function createUploadsWorker(workerUrl?: string | URL): UploadsWorkerInstance;
|
|
4
|
+
export declare const useUploadsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<UploadsStoreState>>;
|
|
5
|
+
export declare const useUploads: () => import("../../workers/uploads/uploads-worker").Upload[];
|
|
6
|
+
export declare const useUploadsWorkerStatus: () => WorkerStatus;
|
|
7
|
+
export declare const useUploadsInitialized: () => boolean;
|
|
8
|
+
export declare const useUploadsError: () => string | null;
|
|
9
|
+
export declare const useUploadsActions: () => {
|
|
10
|
+
initialize: (options: ConfigurationOptions, worker: UploadsWorkerInstance) => UploadsWorkerInstance;
|
|
11
|
+
push: (files: File | UploadInput | Array<File | UploadInput>) => void;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const uploadsActions: {
|
|
15
|
+
initialize: (options: ConfigurationOptions, worker: UploadsWorkerInstance) => UploadsWorkerInstance;
|
|
16
|
+
push: (files: File | UploadInput | Array<File | UploadInput>) => void;
|
|
17
|
+
reset: () => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const getUploads: () => import("../../workers/uploads/uploads-worker").Upload[];
|
|
20
|
+
export declare const getUploadsWorkerStatus: () => WorkerStatus;
|
|
21
|
+
export declare const uploadsInitialized: () => boolean;
|
|
22
|
+
export declare const getUploadsError: () => string | null;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { WindowGeolocation } from '../../hooks/useWindow/useWindow';
|
|
2
|
+
export type WindowStore = {
|
|
3
|
+
formFactor: FormFactor;
|
|
4
|
+
dpr: 1 | 2 | 3;
|
|
5
|
+
isAppleDevice: boolean;
|
|
6
|
+
isTouchDevice: boolean;
|
|
7
|
+
isElectron: boolean;
|
|
8
|
+
height: string;
|
|
9
|
+
viewportWidth: number;
|
|
10
|
+
viewportHeight: number;
|
|
11
|
+
location: WindowGeolocation | null;
|
|
12
|
+
locationError: Error | null;
|
|
13
|
+
gettingLocation: boolean;
|
|
14
|
+
actions: {
|
|
15
|
+
initialize: () => () => void;
|
|
16
|
+
getLocation: () => Promise<WindowGeolocation>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Form factor names
|
|
21
|
+
*/
|
|
22
|
+
export declare enum FormFactor {
|
|
23
|
+
Mobile = "mobile",
|
|
24
|
+
Tablet = "tablet",
|
|
25
|
+
Desktop = "desktop",
|
|
26
|
+
DesktopL = "desktopL",
|
|
27
|
+
DesktopXL = "desktopXL"
|
|
28
|
+
}
|
|
29
|
+
export type BreakPoints = Record<FormFactor, number>;
|
|
30
|
+
/**
|
|
31
|
+
* Use bootstrap breakpoints
|
|
32
|
+
*/
|
|
33
|
+
export declare const bootstrapBreakPoints: BreakPoints;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { useWindowStore, useFormFactor, useViewportWidth, useViewportHeight, useIsAppleDevice, useIsTouchDevice, useIsElectron, useDpr, useLocation, useLocationError, useGettingLocation, useInitializeWindow, useGetLocation, formFactor, viewportWidth, viewportHeight, isAppleDevice, isTouchDevice, isElectron, dpr, location, locationError, gettingLocation, } from './windowStore';
|
|
2
|
+
export { FormFactor, type BreakPoints, type WindowStore } from './_types';
|
|
3
|
+
export type { WindowGeolocation, WindowGeolocationError, } from '../../hooks/useWindow/useWindow';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { WindowGeolocation } from '../../hooks/useWindow/useWindow';
|
|
2
|
+
import { FormFactor, type WindowStore } from './_types';
|
|
3
|
+
export declare const useWindowStore: import("zustand").UseBoundStore<import("zustand").StoreApi<WindowStore>>;
|
|
4
|
+
export declare const useFormFactor: () => FormFactor;
|
|
5
|
+
export declare const useViewportWidth: () => number;
|
|
6
|
+
export declare const useViewportHeight: () => number;
|
|
7
|
+
export declare const useIsAppleDevice: () => boolean;
|
|
8
|
+
export declare const useIsTouchDevice: () => boolean;
|
|
9
|
+
export declare const useIsElectron: () => boolean;
|
|
10
|
+
export declare const useDpr: () => 2 | 1 | 3;
|
|
11
|
+
export declare const useLocation: () => WindowGeolocation | null;
|
|
12
|
+
export declare const useLocationError: () => Error | null;
|
|
13
|
+
export declare const useGettingLocation: () => boolean;
|
|
14
|
+
export declare const useInitializeWindow: () => () => () => void;
|
|
15
|
+
export declare const useGetLocation: () => () => Promise<WindowGeolocation>;
|
|
16
|
+
export declare const formFactor: () => FormFactor;
|
|
17
|
+
export declare const viewportWidth: () => number;
|
|
18
|
+
export declare const viewportHeight: () => number;
|
|
19
|
+
export declare const isAppleDevice: () => boolean;
|
|
20
|
+
export declare const isTouchDevice: () => boolean;
|
|
21
|
+
export declare const isElectron: () => boolean;
|
|
22
|
+
export declare const dpr: () => 2 | 1 | 3;
|
|
23
|
+
export declare const location: () => WindowGeolocation | null;
|
|
24
|
+
export declare const locationError: () => Error | null;
|
|
25
|
+
export declare const gettingLocation: () => boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Colors, CoreColors } from './types';
|
|
2
|
+
export declare const coreColors: CoreColors;
|
|
3
|
+
export declare const light: Colors;
|
|
4
|
+
export declare const dark: Colors;
|
|
5
|
+
export declare const colorCssVars: Record<keyof Colors, string>;
|
|
6
|
+
export declare const colorClass: Record<keyof Colors, string>;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export type CoreColors = {
|
|
2
|
+
'brand-grey-100': string;
|
|
3
|
+
'brand-grey-200': string;
|
|
4
|
+
'brand-grey-300': string;
|
|
5
|
+
'brand-grey-400': string;
|
|
6
|
+
'brand-grey-50': string;
|
|
7
|
+
'brand-grey-500': string;
|
|
8
|
+
'brand-grey-600': string;
|
|
9
|
+
'brand-grey-700': string;
|
|
10
|
+
'brand-grey-800': string;
|
|
11
|
+
'brand-grey-900': string;
|
|
12
|
+
'brand-grey-950': string;
|
|
13
|
+
'brand-land-100': string;
|
|
14
|
+
'brand-land-200': string;
|
|
15
|
+
'brand-land-300': string;
|
|
16
|
+
'brand-land-400': string;
|
|
17
|
+
'brand-land-50': string;
|
|
18
|
+
'brand-land-500': string;
|
|
19
|
+
'brand-land-600': string;
|
|
20
|
+
'brand-land-700': string;
|
|
21
|
+
'brand-land-800': string;
|
|
22
|
+
'brand-land-900': string;
|
|
23
|
+
'brand-land-950': string;
|
|
24
|
+
'brand-magenta-100': string;
|
|
25
|
+
'brand-magenta-200': string;
|
|
26
|
+
'brand-magenta-300': string;
|
|
27
|
+
'brand-magenta-400': string;
|
|
28
|
+
'brand-magenta-50': string;
|
|
29
|
+
'brand-magenta-500': string;
|
|
30
|
+
'brand-magenta-600': string;
|
|
31
|
+
'brand-magenta-700': string;
|
|
32
|
+
'brand-magenta-800': string;
|
|
33
|
+
'brand-magenta-900': string;
|
|
34
|
+
'brand-magenta-950': string;
|
|
35
|
+
'brand-orange-100': string;
|
|
36
|
+
'brand-orange-200': string;
|
|
37
|
+
'brand-orange-300': string;
|
|
38
|
+
'brand-orange-400': string;
|
|
39
|
+
'brand-orange-50': string;
|
|
40
|
+
'brand-orange-500': string;
|
|
41
|
+
'brand-orange-600': string;
|
|
42
|
+
'brand-orange-700': string;
|
|
43
|
+
'brand-orange-800': string;
|
|
44
|
+
'brand-orange-900': string;
|
|
45
|
+
'brand-orange-950': string;
|
|
46
|
+
'brand-purple-100': string;
|
|
47
|
+
'brand-purple-200': string;
|
|
48
|
+
'brand-purple-300': string;
|
|
49
|
+
'brand-purple-400': string;
|
|
50
|
+
'brand-purple-50': string;
|
|
51
|
+
'brand-purple-500': string;
|
|
52
|
+
'brand-purple-600': string;
|
|
53
|
+
'brand-purple-700': string;
|
|
54
|
+
'brand-purple-800': string;
|
|
55
|
+
'brand-purple-900': string;
|
|
56
|
+
'brand-purple-950': string;
|
|
57
|
+
'brand-sea-100': string;
|
|
58
|
+
'brand-sea-200': string;
|
|
59
|
+
'brand-sea-300': string;
|
|
60
|
+
'brand-sea-400': string;
|
|
61
|
+
'brand-sea-50': string;
|
|
62
|
+
'brand-sea-500': string;
|
|
63
|
+
'brand-sea-600': string;
|
|
64
|
+
'brand-sea-700': string;
|
|
65
|
+
'brand-sea-800': string;
|
|
66
|
+
'brand-sea-900': string;
|
|
67
|
+
'brand-sea-950': string;
|
|
68
|
+
'brand-sky-100': string;
|
|
69
|
+
'brand-sky-200': string;
|
|
70
|
+
'brand-sky-300': string;
|
|
71
|
+
'brand-sky-400': string;
|
|
72
|
+
'brand-sky-50': string;
|
|
73
|
+
'brand-sky-500': string;
|
|
74
|
+
'brand-sky-600': string;
|
|
75
|
+
'brand-sky-700': string;
|
|
76
|
+
'brand-sky-800': string;
|
|
77
|
+
'brand-sky-900': string;
|
|
78
|
+
'brand-sky-950': string;
|
|
79
|
+
'brand-white-0': string;
|
|
80
|
+
'brand-yellow-100': string;
|
|
81
|
+
'brand-yellow-200': string;
|
|
82
|
+
'brand-yellow-300': string;
|
|
83
|
+
'brand-yellow-400': string;
|
|
84
|
+
'brand-yellow-50': string;
|
|
85
|
+
'brand-yellow-500': string;
|
|
86
|
+
'brand-yellow-600': string;
|
|
87
|
+
'brand-yellow-700': string;
|
|
88
|
+
'brand-yellow-800': string;
|
|
89
|
+
'brand-yellow-900': string;
|
|
90
|
+
'brand-yellow-950': string;
|
|
91
|
+
'product-red-400': string;
|
|
92
|
+
'product-red-500': string;
|
|
93
|
+
'core-drop-shadow-light': string;
|
|
94
|
+
'core-drop-shadow-dark': string;
|
|
95
|
+
'core-surface-coverup-translucent-light': string;
|
|
96
|
+
'core-surface-coverup-translucent-dark': string;
|
|
97
|
+
'core-surface-overlay-translucent-light': string;
|
|
98
|
+
'core-surface-overlay-translucent-dark': string;
|
|
99
|
+
'scroll-bar-light': string;
|
|
100
|
+
'scroll-bar-dark': string;
|
|
101
|
+
'scroll-bar-hover-light': string;
|
|
102
|
+
'scroll-bar-hover-dark': string;
|
|
103
|
+
'surface-shadow-soft-light': string;
|
|
104
|
+
'surface-shadow-soft-dark': string;
|
|
105
|
+
'surface-shadow-strong-light': string;
|
|
106
|
+
'surface-shadow-strong-dark': string;
|
|
107
|
+
};
|
|
108
|
+
export type Colors = {
|
|
109
|
+
'array-land': string;
|
|
110
|
+
'array-land-label': string;
|
|
111
|
+
'array-magenta': string;
|
|
112
|
+
'array-magenta-label': string;
|
|
113
|
+
'array-orange': string;
|
|
114
|
+
'array-orange-label': string;
|
|
115
|
+
'array-purple': string;
|
|
116
|
+
'array-purple-label': string;
|
|
117
|
+
'array-sea': string;
|
|
118
|
+
'array-sea-label': string;
|
|
119
|
+
'array-sky': string;
|
|
120
|
+
'array-sky-label': string;
|
|
121
|
+
'array-yellow': string;
|
|
122
|
+
'array-yellow-label': string;
|
|
123
|
+
'core-badge-primary': string;
|
|
124
|
+
'core-badge-secondary': string;
|
|
125
|
+
'core-button-disabled': string;
|
|
126
|
+
'core-button-primary': string;
|
|
127
|
+
'core-drop-shadow': string;
|
|
128
|
+
'core-gp-logo-primary': string;
|
|
129
|
+
'core-gp-logo-secondary': string;
|
|
130
|
+
'core-icon-dark': string;
|
|
131
|
+
'core-icon-disabled': string;
|
|
132
|
+
'core-icon-error': string;
|
|
133
|
+
'core-icon-light': string;
|
|
134
|
+
'core-icon-primary': string;
|
|
135
|
+
'core-icon-secondary': string;
|
|
136
|
+
'core-icon-tertiary': string;
|
|
137
|
+
'core-outline-secondary': string;
|
|
138
|
+
'core-outline-primary': string;
|
|
139
|
+
'core-outline-special': string;
|
|
140
|
+
'core-outline-tertiary': string;
|
|
141
|
+
'core-surface-coverup-translucent': string;
|
|
142
|
+
'core-surface-overlay-translucent': string;
|
|
143
|
+
'core-surface-primary': string;
|
|
144
|
+
'core-surface-secondary': string;
|
|
145
|
+
'core-surface-special': string;
|
|
146
|
+
'core-text-dark': string;
|
|
147
|
+
'core-text-disabled': string;
|
|
148
|
+
'core-text-error': string;
|
|
149
|
+
'core-text-light': string;
|
|
150
|
+
'core-text-primary': string;
|
|
151
|
+
'core-text-secondary': string;
|
|
152
|
+
'core-text-special': string;
|
|
153
|
+
'core-text-tertiary': string;
|
|
154
|
+
'core-link-primary': string;
|
|
155
|
+
'eor-tag-employee': string;
|
|
156
|
+
'eor-tag-overdue': string;
|
|
157
|
+
'eor-tag-paid': string;
|
|
158
|
+
'eor-tag-pending': string;
|
|
159
|
+
'eor-tag-professional': string;
|
|
160
|
+
'feedback-attention': string;
|
|
161
|
+
'feedback-informative': string;
|
|
162
|
+
'feedback-positive': string;
|
|
163
|
+
'feedback-urgency': string;
|
|
164
|
+
'feedback-warning': string;
|
|
165
|
+
'gia-tag-risk-high': string;
|
|
166
|
+
'gia-tag-risk-low': string;
|
|
167
|
+
'gia-tag-risk-moderate': string;
|
|
168
|
+
'gia-text-excerpt-highlight': string;
|
|
169
|
+
'gia-text-selection': string;
|
|
170
|
+
'scroll-bar': string;
|
|
171
|
+
'scroll-bar-hover': string;
|
|
172
|
+
'surface-shadow-soft': string;
|
|
173
|
+
'surface-shadow-strong': string;
|
|
174
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Elevations = {
|
|
2
|
+
'elevation-below-surface': number;
|
|
3
|
+
'elevation-surface': number;
|
|
4
|
+
'elevation-float': number;
|
|
5
|
+
'elevation-describe': number;
|
|
6
|
+
'elevation-status': number;
|
|
7
|
+
'elevation-notify': number;
|
|
8
|
+
'elevation-overlay': number;
|
|
9
|
+
'elevation-confirm': number;
|
|
10
|
+
};
|