aidos-ui 4.0.3 → 4.0.5
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/LICENSE +1 -1
- package/README.md +23 -3
- package/dist/index.d.ts +797 -68
- package/dist/index.js +3868 -68
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.d.ts +6 -2
- package/dist/jsx-dev-runtime.js +87 -42
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +2 -2
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/vite-plugin-jss-debug.d.ts +12 -6
- package/dist/vite-plugin-jss-debug.js +57 -72
- package/dist/vite-plugin-jss-debug.js.map +1 -1
- package/package.json +58 -27
- package/.claude/settings.local.json +0 -22
- package/.prettierrc +0 -4
- package/CLAUDE.md +0 -72
- package/dist/Badge.d.ts +0 -6
- package/dist/Badge.js +0 -22
- package/dist/Badge.js.map +0 -1
- package/dist/BaseButton.d.ts +0 -14
- package/dist/BaseButton.js +0 -23
- package/dist/BaseButton.js.map +0 -1
- package/dist/BaseInput.d.ts +0 -14
- package/dist/BaseInput.js +0 -15
- package/dist/BaseInput.js.map +0 -1
- package/dist/BaseLink.d.ts +0 -18
- package/dist/BaseLink.js +0 -29
- package/dist/BaseLink.js.map +0 -1
- package/dist/BaseList.d.ts +0 -6
- package/dist/BaseList.js +0 -14
- package/dist/BaseList.js.map +0 -1
- package/dist/BaseListAddOn.d.ts +0 -5
- package/dist/BaseListAddOn.js +0 -7
- package/dist/BaseListAddOn.js.map +0 -1
- package/dist/BaseListItem.d.ts +0 -26
- package/dist/BaseListItem.js +0 -29
- package/dist/BaseListItem.js.map +0 -1
- package/dist/BaseView.d.ts +0 -12
- package/dist/BaseView.js +0 -26
- package/dist/BaseView.js.map +0 -1
- package/dist/Box.d.ts +0 -4
- package/dist/Box.js +0 -6
- package/dist/Box.js.map +0 -1
- package/dist/Button.d.ts +0 -20
- package/dist/Button.js +0 -19
- package/dist/Button.js.map +0 -1
- package/dist/Calendar.d.ts +0 -18
- package/dist/Calendar.js +0 -57
- package/dist/Calendar.js.map +0 -1
- package/dist/Card.d.ts +0 -4
- package/dist/Card.js +0 -14
- package/dist/Card.js.map +0 -1
- package/dist/Checkbox.d.ts +0 -11
- package/dist/Checkbox.js +0 -32
- package/dist/Checkbox.js.map +0 -1
- package/dist/Circle.d.ts +0 -5
- package/dist/Circle.js +0 -12
- package/dist/Circle.js.map +0 -1
- package/dist/Column.d.ts +0 -6
- package/dist/Column.js +0 -7
- package/dist/Column.js.map +0 -1
- package/dist/DarkMode.d.ts +0 -13
- package/dist/DarkMode.js +0 -62
- package/dist/DarkMode.js.map +0 -1
- package/dist/DateInput.d.ts +0 -13
- package/dist/DateInput.js +0 -29
- package/dist/DateInput.js.map +0 -1
- package/dist/DatePicker.d.ts +0 -11
- package/dist/DatePicker.js +0 -34
- package/dist/DatePicker.js.map +0 -1
- package/dist/DatetimeInput.d.ts +0 -13
- package/dist/DatetimeInput.js +0 -31
- package/dist/DatetimeInput.js.map +0 -1
- package/dist/DesignBook.d.ts +0 -1
- package/dist/DesignBook.js +0 -55
- package/dist/DesignBook.js.map +0 -1
- package/dist/Dialog.d.ts +0 -17
- package/dist/Dialog.js +0 -92
- package/dist/Dialog.js.map +0 -1
- package/dist/Dropdown.d.ts +0 -14
- package/dist/Dropdown.js +0 -65
- package/dist/Dropdown.js.map +0 -1
- package/dist/Emitter.d.ts +0 -6
- package/dist/Emitter.js +0 -19
- package/dist/Emitter.js.map +0 -1
- package/dist/FlexLayout.d.ts +0 -11
- package/dist/FlexLayout.js +0 -18
- package/dist/FlexLayout.js.map +0 -1
- package/dist/Icon.d.ts +0 -12
- package/dist/Icon.js +0 -60
- package/dist/Icon.js.map +0 -1
- package/dist/IconButton.d.ts +0 -9
- package/dist/IconButton.js +0 -31
- package/dist/IconButton.js.map +0 -1
- package/dist/IconLink.d.ts +0 -9
- package/dist/IconLink.js +0 -32
- package/dist/IconLink.js.map +0 -1
- package/dist/IconType.d.ts +0 -1
- package/dist/IconType.js +0 -2
- package/dist/IconType.js.map +0 -1
- package/dist/Interactable.d.ts +0 -50
- package/dist/Interactable.js +0 -169
- package/dist/Interactable.js.map +0 -1
- package/dist/JSSComment.d.ts +0 -10
- package/dist/JSSComment.js +0 -52
- package/dist/JSSComment.js.map +0 -1
- package/dist/Link.d.ts +0 -22
- package/dist/Link.js +0 -29
- package/dist/Link.js.map +0 -1
- package/dist/List.d.ts +0 -15
- package/dist/List.js +0 -29
- package/dist/List.js.map +0 -1
- package/dist/ListButtonItem.d.ts +0 -14
- package/dist/ListButtonItem.js +0 -11
- package/dist/ListButtonItem.js.map +0 -1
- package/dist/ListDivider.d.ts +0 -1
- package/dist/ListDivider.js +0 -12
- package/dist/ListDivider.js.map +0 -1
- package/dist/ListHeaderItem.d.ts +0 -10
- package/dist/ListHeaderItem.js +0 -15
- package/dist/ListHeaderItem.js.map +0 -1
- package/dist/ListItem.d.ts +0 -9
- package/dist/ListItem.js +0 -9
- package/dist/ListItem.js.map +0 -1
- package/dist/ListLinkItem.d.ts +0 -16
- package/dist/ListLinkItem.js +0 -11
- package/dist/ListLinkItem.js.map +0 -1
- package/dist/ListSpacer.d.ts +0 -1
- package/dist/ListSpacer.js +0 -13
- package/dist/ListSpacer.js.map +0 -1
- package/dist/MenuIcon.d.ts +0 -5
- package/dist/MenuIcon.js +0 -31
- package/dist/MenuIcon.js.map +0 -1
- package/dist/NextJSRouter.d.ts +0 -1
- package/dist/NextJSRouter.js +0 -37
- package/dist/NextJSRouter.js.map +0 -1
- package/dist/NextJSRouterState.d.ts +0 -38
- package/dist/NextJSRouterState.js +0 -111
- package/dist/NextJSRouterState.js.map +0 -1
- package/dist/OnVisible.d.ts +0 -5
- package/dist/OnVisible.js +0 -28
- package/dist/OnVisible.js.map +0 -1
- package/dist/Popover.d.ts +0 -22
- package/dist/Popover.js +0 -90
- package/dist/Popover.js.map +0 -1
- package/dist/ProgressBar.d.ts +0 -7
- package/dist/ProgressBar.js +0 -42
- package/dist/ProgressBar.js.map +0 -1
- package/dist/ProgressCircle.d.ts +0 -5
- package/dist/ProgressCircle.js +0 -12
- package/dist/ProgressCircle.js.map +0 -1
- package/dist/Providers.d.ts +0 -9
- package/dist/Providers.js +0 -16
- package/dist/Providers.js.map +0 -1
- package/dist/RangeInput.d.ts +0 -14
- package/dist/RangeInput.js +0 -32
- package/dist/RangeInput.js.map +0 -1
- package/dist/ResultOrError.d.ts +0 -13
- package/dist/ResultOrError.js +0 -7
- package/dist/ResultOrError.js.map +0 -1
- package/dist/RootView.d.ts +0 -5
- package/dist/RootView.js +0 -35
- package/dist/RootView.js.map +0 -1
- package/dist/Row.d.ts +0 -6
- package/dist/Row.js +0 -7
- package/dist/Row.js.map +0 -1
- package/dist/Select.d.ts +0 -9
- package/dist/Select.js +0 -17
- package/dist/Select.js.map +0 -1
- package/dist/StackContext.d.ts +0 -8
- package/dist/StackContext.js +0 -25
- package/dist/StackContext.js.map +0 -1
- package/dist/StaticCheckbox.d.ts +0 -16
- package/dist/StaticCheckbox.js +0 -48
- package/dist/StaticCheckbox.js.map +0 -1
- package/dist/Storage.d.ts +0 -13
- package/dist/Storage.js +0 -146
- package/dist/Storage.js.map +0 -1
- package/dist/Stream.d.ts +0 -9
- package/dist/Stream.js +0 -36
- package/dist/Stream.js.map +0 -1
- package/dist/Sublist.d.ts +0 -12
- package/dist/Sublist.js +0 -18
- package/dist/Sublist.js.map +0 -1
- package/dist/SubmitIconInput.d.ts +0 -8
- package/dist/SubmitIconInput.js +0 -25
- package/dist/SubmitIconInput.js.map +0 -1
- package/dist/Tabs.d.ts +0 -23
- package/dist/Tabs.js +0 -39
- package/dist/Tabs.js.map +0 -1
- package/dist/Text.d.ts +0 -25
- package/dist/Text.js +0 -52
- package/dist/Text.js.map +0 -1
- package/dist/TextArea.d.ts +0 -11
- package/dist/TextArea.js +0 -27
- package/dist/TextArea.js.map +0 -1
- package/dist/TextInput.d.ts +0 -15
- package/dist/TextInput.js +0 -61
- package/dist/TextInput.js.map +0 -1
- package/dist/TextInputWithState.d.ts +0 -8
- package/dist/TextInputWithState.js +0 -14
- package/dist/TextInputWithState.js.map +0 -1
- package/dist/TextPairing.d.ts +0 -21
- package/dist/TextPairing.js +0 -26
- package/dist/TextPairing.js.map +0 -1
- package/dist/TimeInput.d.ts +0 -15
- package/dist/TimeInput.js +0 -58
- package/dist/TimeInput.js.map +0 -1
- package/dist/Tooltip.d.ts +0 -11
- package/dist/Tooltip.js +0 -73
- package/dist/Tooltip.js.map +0 -1
- package/dist/aria.d.ts +0 -8
- package/dist/aria.js +0 -42
- package/dist/aria.js.map +0 -1
- package/dist/guid.d.ts +0 -1
- package/dist/guid.js +0 -7
- package/dist/guid.js.map +0 -1
- package/dist/hash.d.ts +0 -1
- package/dist/hash.js +0 -20
- package/dist/hash.js.map +0 -1
- package/dist/isServer.d.ts +0 -1
- package/dist/isServer.js +0 -4
- package/dist/isServer.js.map +0 -1
- package/dist/jss.d.ts +0 -122
- package/dist/jss.js +0 -515
- package/dist/jss.js.map +0 -1
- package/dist/numberToBase.d.ts +0 -1
- package/dist/numberToBase.js +0 -44
- package/dist/numberToBase.js.map +0 -1
- package/dist/stateMachineContextFactory.d.ts +0 -36
- package/dist/stateMachineContextFactory.js +0 -48
- package/dist/stateMachineContextFactory.js.map +0 -1
- package/dist/useCookie.d.ts +0 -9
- package/dist/useCookie.js +0 -67
- package/dist/useCookie.js.map +0 -1
- package/dist/useKeyboard.d.ts +0 -8
- package/dist/useKeyboard.js +0 -26
- package/dist/useKeyboard.js.map +0 -1
- package/dist/useNavigation.d.ts +0 -5
- package/dist/useNavigation.js +0 -79
- package/dist/useNavigation.js.map +0 -1
- package/dist/usePromise.d.ts +0 -1
- package/dist/usePromise.js +0 -12
- package/dist/usePromise.js.map +0 -1
- package/dist/useRefEffect.d.ts +0 -1
- package/dist/useRefEffect.js +0 -15
- package/dist/useRefEffect.js.map +0 -1
- package/jss-debug-loader.mjs +0 -44
- package/next-env.d.ts +0 -6
- package/next.config.js +0 -33
- package/scripts/embeddings.js +0 -93
- package/scripts/openai_embeddings.js +0 -100
- package/scripts/publish.js +0 -28
- package/scripts/test_embeddings.js +0 -47
- package/src/Badge.tsx +0 -36
- package/src/BaseButton.tsx +0 -62
- package/src/BaseInput.tsx +0 -63
- package/src/BaseLink.tsx +0 -80
- package/src/BaseList.tsx +0 -26
- package/src/BaseListAddOn.tsx +0 -10
- package/src/BaseListItem.tsx +0 -119
- package/src/BaseView.tsx +0 -57
- package/src/Box.tsx +0 -20
- package/src/Button.tsx +0 -90
- package/src/Calendar.tsx +0 -125
- package/src/Card.tsx +0 -30
- package/src/Checkbox.tsx +0 -63
- package/src/Circle.tsx +0 -24
- package/src/Column.tsx +0 -12
- package/src/DarkMode.tsx +0 -100
- package/src/DateInput.tsx +0 -63
- package/src/DatePicker.tsx +0 -67
- package/src/DatetimeInput.tsx +0 -64
- package/src/DesignBook.tsx +0 -677
- package/src/Dialog.tsx +0 -150
- package/src/Dropdown.tsx +0 -146
- package/src/Emitter.ts +0 -26
- package/src/FlexLayout.tsx +0 -53
- package/src/Icon.tsx +0 -80
- package/src/IconButton.tsx +0 -58
- package/src/IconLink.tsx +0 -59
- package/src/IconType.ts +0 -787
- package/src/Interactable.tsx +0 -210
- package/src/JSSComment.tsx +0 -56
- package/src/Link.tsx +0 -110
- package/src/List.tsx +0 -58
- package/src/ListButtonItem.tsx +0 -69
- package/src/ListDivider.tsx +0 -13
- package/src/ListHeaderItem.tsx +0 -45
- package/src/ListItem.tsx +0 -24
- package/src/ListLinkItem.tsx +0 -76
- package/src/ListSpacer.tsx +0 -14
- package/src/MenuIcon.tsx +0 -50
- package/src/NextJSRouter.tsx +0 -62
- package/src/NextJSRouterState.tsx +0 -154
- package/src/OnVisible.tsx +0 -42
- package/src/Popover.tsx +0 -145
- package/src/ProgressBar.tsx +0 -63
- package/src/ProgressCircle.tsx +0 -38
- package/src/Providers.tsx +0 -33
- package/src/RangeInput.tsx +0 -82
- package/src/ResultOrError.ts +0 -15
- package/src/RootView.tsx +0 -55
- package/src/Row.tsx +0 -12
- package/src/Select.tsx +0 -39
- package/src/StackContext.tsx +0 -52
- package/src/StaticCheckbox.tsx +0 -72
- package/src/Storage.tsx +0 -198
- package/src/Stream.tsx +0 -50
- package/src/Sublist.tsx +0 -61
- package/src/SubmitIconInput.tsx +0 -45
- package/src/Tabs.tsx +0 -110
- package/src/Text.tsx +0 -111
- package/src/TextArea.tsx +0 -58
- package/src/TextInput.tsx +0 -123
- package/src/TextInputWithState.tsx +0 -32
- package/src/TextPairing.tsx +0 -115
- package/src/TimeInput.tsx +0 -109
- package/src/Tooltip.tsx +0 -109
- package/src/aria.ts +0 -72
- package/src/docs/mdx.tsx +0 -137
- package/src/docs/pages.ts +0 -115
- package/src/docs/searchIndex.ts +0 -1
- package/src/examples/ExampleDialog.tsx +0 -28
- package/src/guid.ts +0 -7
- package/src/hash.ts +0 -21
- package/src/index.ts +0 -68
- package/src/isServer.ts +0 -3
- package/src/jss.tsx +0 -712
- package/src/jsx-dev-runtime.ts +0 -74
- package/src/jsx-runtime.ts +0 -2
- package/src/numberToBase.ts +0 -52
- package/src/pages/Badge.mdx +0 -152
- package/src/pages/Button.mdx +0 -163
- package/src/pages/Calendar.mdx +0 -254
- package/src/pages/Card.mdx +0 -147
- package/src/pages/Checkbox.mdx +0 -131
- package/src/pages/Dialog.mdx +0 -197
- package/src/pages/FlexLayout.mdx +0 -211
- package/src/pages/Hashing.mdx +0 -211
- package/src/pages/Icon.mdx +0 -171
- package/src/pages/IconButton.mdx +0 -155
- package/src/pages/Link.mdx +0 -160
- package/src/pages/List.mdx +0 -262
- package/src/pages/ListHeader.mdx +0 -220
- package/src/pages/Popover.mdx +0 -223
- package/src/pages/ProgressBar.mdx +0 -200
- package/src/pages/ProgressCircle.mdx +0 -218
- package/src/pages/RangeInput.mdx +0 -237
- package/src/pages/Tabs.mdx +0 -281
- package/src/pages/Text.mdx +0 -154
- package/src/pages/TextInput.mdx +0 -235
- package/src/pages/TextPairing.mdx +0 -204
- package/src/pages/TimeInput.mdx +0 -178
- package/src/pages/Tooltip.mdx +0 -115
- package/src/pages/_app.tsx +0 -466
- package/src/pages/_document.tsx +0 -30
- package/src/pages/css-in-js.mdx +0 -240
- package/src/pages/index.mdx +0 -58
- package/src/pages/navigation.mdx +0 -158
- package/src/pages/prism.css +0 -3
- package/src/pages/useCookie.mdx +0 -176
- package/src/pages/useKeyboard.mdx +0 -257
- package/src/pages/useNavigation.mdx +0 -258
- package/src/pages/usePromise.mdx +0 -280
- package/src/pages/useRefEffect.mdx +0 -251
- package/src/stateMachineContextFactory.tsx +0 -111
- package/src/useCookie.tsx +0 -95
- package/src/useKeyboard.tsx +0 -43
- package/src/useNavigation.tsx +0 -89
- package/src/usePromise.tsx +0 -18
- package/src/useRefEffect.tsx +0 -18
- package/src/vite-plugin-jss-debug.ts +0 -75
- package/tsconfig.build.json +0 -23
- package/tsconfig.json +0 -38
package/dist/index.d.ts
CHANGED
|
@@ -1,68 +1,797 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import CSS from 'csstype';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import React__default, { ReactNode, ReactElement } from 'react';
|
|
5
|
+
|
|
6
|
+
type Styles = CSS.Properties<string | number | CSS.Properties<string | number>>;
|
|
7
|
+
type JSS = Styles | null | false | undefined | {
|
|
8
|
+
[key: string]: Styles;
|
|
9
|
+
} | Array<JSS>;
|
|
10
|
+
declare const toClassnames: (jss: JSS, componentName?: string) => string;
|
|
11
|
+
declare function JSSProvider({ themes, children, }: {
|
|
12
|
+
themes: {
|
|
13
|
+
dark: Theme;
|
|
14
|
+
light: Theme;
|
|
15
|
+
};
|
|
16
|
+
children: React__default.JSX.Element;
|
|
17
|
+
}): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function JSServerStyles(): react_jsx_runtime.JSX.Element;
|
|
19
|
+
type Size = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | "xxxlarge";
|
|
20
|
+
type Spacing = "none" | Size;
|
|
21
|
+
type Gap = Spacing;
|
|
22
|
+
type Padding = Spacing | [Spacing, Spacing];
|
|
23
|
+
type Margin = Spacing | [Spacing, Spacing];
|
|
24
|
+
type Direction = "horizontal" | "vertical";
|
|
25
|
+
type Position = "start" | "end";
|
|
26
|
+
type Justify = "none" | "center" | "flex-start" | "space-between" | "flex-end" | "stretch";
|
|
27
|
+
type Align = "none" | "center" | "stretch" | "flex-start" | "flex-end";
|
|
28
|
+
type FlexDirection = "row" | "column";
|
|
29
|
+
type Color = "none" | "light" | "dark" | "negative" | "warning" | "highlight" | "primary-background" | "secondary-background" | "divider" | "inherit";
|
|
30
|
+
type TextColor = "primary" | "secondary" | "highlight" | "negative" | "subtle" | "light" | "inherit";
|
|
31
|
+
declare function cssVar(string: keyof Theme): string;
|
|
32
|
+
declare function getSize(size: Size): string;
|
|
33
|
+
declare function getSpacing(spacing: Spacing): string;
|
|
34
|
+
declare function getPadding(padding: Padding): JSS;
|
|
35
|
+
declare function getMargin(margin: Margin): JSS;
|
|
36
|
+
type Theme = {
|
|
37
|
+
["--overlay-background"]: string;
|
|
38
|
+
["--primary-background"]: string;
|
|
39
|
+
["--secondary-background"]: string;
|
|
40
|
+
["--divider"]: string;
|
|
41
|
+
["--strong-divider"]: string;
|
|
42
|
+
["--pressed-background"]: string;
|
|
43
|
+
["--hovered-background"]: string;
|
|
44
|
+
["--selected-background"]: string;
|
|
45
|
+
["--nav-bar"]: string;
|
|
46
|
+
["--warning"]: string;
|
|
47
|
+
["--highlight"]: string;
|
|
48
|
+
["--outline"]: string;
|
|
49
|
+
["--light-highlight"]: string;
|
|
50
|
+
["--primary-text"]: string;
|
|
51
|
+
["--secondary-text"]: string;
|
|
52
|
+
["--subtle-text"]: string;
|
|
53
|
+
["--highlight-text"]: string;
|
|
54
|
+
["--negative-text"]: string;
|
|
55
|
+
["--light-text"]: string;
|
|
56
|
+
["--font-xsmall"]: string;
|
|
57
|
+
["--font-small"]: string;
|
|
58
|
+
["--font-medium"]: string;
|
|
59
|
+
["--font-large"]: string;
|
|
60
|
+
["--font-xlarge"]: string;
|
|
61
|
+
["--font-xxlarge"]: string;
|
|
62
|
+
["--font-xxxlarge"]: string;
|
|
63
|
+
["--background-button-positive"]: string;
|
|
64
|
+
["--background-button-secondary"]: string;
|
|
65
|
+
["--background-button-negative"]: string;
|
|
66
|
+
["--background-button-disabled"]: string;
|
|
67
|
+
["--spacing-xs"]: string;
|
|
68
|
+
["--spacing-s"]: string;
|
|
69
|
+
["--spacing-m"]: string;
|
|
70
|
+
["--spacing-l"]: string;
|
|
71
|
+
["--spacing-xl"]: string;
|
|
72
|
+
["--spacing-xxl"]: string;
|
|
73
|
+
["--spacing-xxxl"]: string;
|
|
74
|
+
["--border-radius-s"]: string;
|
|
75
|
+
["--border-radius-m"]: string;
|
|
76
|
+
["--border-radius-l"]: string;
|
|
77
|
+
["--nav-bar-height"]: string;
|
|
78
|
+
["--shadow-sm"]: string;
|
|
79
|
+
["--shadow-md"]: string;
|
|
80
|
+
["--shadow-lg"]: string;
|
|
81
|
+
["--transition-fast"]: string;
|
|
82
|
+
["--transition-normal"]: string;
|
|
83
|
+
};
|
|
84
|
+
declare const lightTheme: Theme;
|
|
85
|
+
declare const darkTheme: Theme;
|
|
86
|
+
declare const baseStyles: string;
|
|
87
|
+
declare const getBackground: (color: Color) => JSS;
|
|
88
|
+
declare const MOBILE = 750;
|
|
89
|
+
declare const TABLET = 1000;
|
|
90
|
+
declare const LAPTOP = 1200;
|
|
91
|
+
declare const MOBILE_MEDIA = "@media (min-width: 0px) and (max-width: 750px)";
|
|
92
|
+
declare const TABLET_MEDIA = "@media (min-width: 750px) and (max-width: 1000px)";
|
|
93
|
+
declare const LAPTOP_MEDIA = "@media (min-width: 1000px) and (max-width: 1200px)";
|
|
94
|
+
declare const DESKTOP_MEDIA = "@media (min-width: 1200px)";
|
|
95
|
+
declare function mobile(jss: JSS): {
|
|
96
|
+
[key: string]: JSS;
|
|
97
|
+
};
|
|
98
|
+
declare function tablet(jss: JSS): {
|
|
99
|
+
[key: string]: JSS;
|
|
100
|
+
};
|
|
101
|
+
declare function laptop(jss: JSS): {
|
|
102
|
+
[key: string]: JSS;
|
|
103
|
+
};
|
|
104
|
+
declare function desktop(jss: JSS): {
|
|
105
|
+
[key: string]: JSS;
|
|
106
|
+
};
|
|
107
|
+
declare const getTextColor: (color: TextColor) => {
|
|
108
|
+
color: string;
|
|
109
|
+
} | {
|
|
110
|
+
color: string;
|
|
111
|
+
} | {
|
|
112
|
+
color: string;
|
|
113
|
+
} | {
|
|
114
|
+
color: string;
|
|
115
|
+
} | {
|
|
116
|
+
color: string;
|
|
117
|
+
} | {
|
|
118
|
+
color: string;
|
|
119
|
+
} | {
|
|
120
|
+
color: string;
|
|
121
|
+
};
|
|
122
|
+
declare function getBaseStyles(themes: {
|
|
123
|
+
light: Theme;
|
|
124
|
+
dark: Theme;
|
|
125
|
+
}): string[];
|
|
126
|
+
|
|
127
|
+
declare function Badge({ size, color, jss, }: {
|
|
128
|
+
size?: Size;
|
|
129
|
+
color?: Color;
|
|
130
|
+
jss?: JSS;
|
|
131
|
+
}): react_jsx_runtime.JSX.Element;
|
|
132
|
+
|
|
133
|
+
type InteractableColor = "positive" | "primary" | "negative" | "dark" | "light";
|
|
134
|
+
|
|
135
|
+
interface BaseButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
136
|
+
onClick: (e: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
137
|
+
jss?: JSS;
|
|
138
|
+
color: InteractableColor;
|
|
139
|
+
bare?: boolean;
|
|
140
|
+
border?: boolean;
|
|
141
|
+
className?: undefined;
|
|
142
|
+
animateInteraction?: boolean;
|
|
143
|
+
padding?: Padding;
|
|
144
|
+
}
|
|
145
|
+
declare const BaseButton: React__default.ForwardRefExoticComponent<BaseButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
146
|
+
|
|
147
|
+
interface BaseInputProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
148
|
+
jss?: JSS;
|
|
149
|
+
className?: undefined;
|
|
150
|
+
size?: undefined;
|
|
151
|
+
children?: undefined;
|
|
152
|
+
label?: ReactNode;
|
|
153
|
+
labelSize?: Size;
|
|
154
|
+
labelColor?: TextColor;
|
|
155
|
+
labelBold?: boolean;
|
|
156
|
+
labelPosition?: "start" | "end";
|
|
157
|
+
}
|
|
158
|
+
declare const BaseInput: React__default.ForwardRefExoticComponent<BaseInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
159
|
+
|
|
160
|
+
interface BaseLinkProps extends React__default.LinkHTMLAttributes<HTMLAnchorElement> {
|
|
161
|
+
onClick?: (e: React__default.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
162
|
+
target?: string;
|
|
163
|
+
jss?: JSS;
|
|
164
|
+
color: InteractableColor;
|
|
165
|
+
href: string;
|
|
166
|
+
disabled?: boolean;
|
|
167
|
+
bare?: boolean;
|
|
168
|
+
border?: boolean;
|
|
169
|
+
className?: undefined;
|
|
170
|
+
animateInteraction?: boolean;
|
|
171
|
+
padding?: Padding;
|
|
172
|
+
}
|
|
173
|
+
declare const BaseLinkComponentOverrideContext: React__default.Context<(props: any) => react_jsx_runtime.JSX.Element>;
|
|
174
|
+
declare const BaseLink: React__default.ForwardRefExoticComponent<BaseLinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
175
|
+
|
|
176
|
+
interface BaseViewProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
177
|
+
jss?: JSS;
|
|
178
|
+
ref?: React__default.Ref<HTMLDivElement>;
|
|
179
|
+
className?: undefined;
|
|
180
|
+
grow?: boolean;
|
|
181
|
+
shrink?: boolean;
|
|
182
|
+
relative?: boolean;
|
|
183
|
+
tag?: keyof HTMLElementTagNameMap;
|
|
184
|
+
}
|
|
185
|
+
declare const BaseView: React__default.ForwardRefExoticComponent<Omit<BaseViewProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
186
|
+
|
|
187
|
+
interface FlexLayoutProps extends BaseViewProps {
|
|
188
|
+
justify?: Justify;
|
|
189
|
+
gap?: Gap;
|
|
190
|
+
align?: Align;
|
|
191
|
+
padding?: Padding;
|
|
192
|
+
direction?: FlexDirection;
|
|
193
|
+
}
|
|
194
|
+
declare const FlexLayout: React__default.ForwardRefExoticComponent<Omit<FlexLayoutProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
195
|
+
|
|
196
|
+
interface ColumnProps extends FlexLayoutProps {
|
|
197
|
+
direction?: "column";
|
|
198
|
+
}
|
|
199
|
+
declare const Column: React__default.ForwardRefExoticComponent<Omit<ColumnProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
200
|
+
|
|
201
|
+
interface BaseListProps extends ColumnProps {
|
|
202
|
+
tag?: undefined;
|
|
203
|
+
}
|
|
204
|
+
declare const BaseList: React__default.ForwardRefExoticComponent<Omit<BaseListProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
205
|
+
|
|
206
|
+
interface BaseListAddOnProps extends BaseViewProps {
|
|
207
|
+
}
|
|
208
|
+
declare const BaseListAddOn: React__default.ForwardRefExoticComponent<Omit<BaseListAddOnProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
209
|
+
|
|
210
|
+
interface RowProps extends FlexLayoutProps {
|
|
211
|
+
direction?: "row";
|
|
212
|
+
}
|
|
213
|
+
declare const Row: React__default.ForwardRefExoticComponent<Omit<RowProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
214
|
+
|
|
215
|
+
interface BaseListItemProps extends RowProps {
|
|
216
|
+
children: (elements: {
|
|
217
|
+
content: React__default.JSX.Element;
|
|
218
|
+
}) => ReactNode;
|
|
219
|
+
jss?: JSS;
|
|
220
|
+
withDivider?: boolean;
|
|
221
|
+
headline: string;
|
|
222
|
+
headlineSize?: Size;
|
|
223
|
+
headlineColor?: TextColor;
|
|
224
|
+
headlineAddOn?: ReactNode;
|
|
225
|
+
headlineBold?: boolean;
|
|
226
|
+
body?: string;
|
|
227
|
+
bodySize?: Size;
|
|
228
|
+
bodyColor?: TextColor;
|
|
229
|
+
addOn?: ReactNode;
|
|
230
|
+
addOnPosition?: Position;
|
|
231
|
+
outerAddOn?: ReactNode;
|
|
232
|
+
disabled?: boolean;
|
|
233
|
+
role?: undefined;
|
|
234
|
+
gap?: Spacing;
|
|
235
|
+
selected?: boolean;
|
|
236
|
+
}
|
|
237
|
+
declare const BaseListItem: React__default.ForwardRefExoticComponent<Omit<BaseListItemProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
238
|
+
|
|
239
|
+
interface BoxProps extends FlexLayoutProps {
|
|
240
|
+
}
|
|
241
|
+
declare function Box({ padding, align, justify, ...otherProps }: BoxProps): react_jsx_runtime.JSX.Element;
|
|
242
|
+
|
|
243
|
+
type IconType = "fa-address-book" | "fa-address-book-o" | "fa-address-card" | "fa-address-card-o" | "fa-adjust" | "fa-adn" | "fa-align-center" | "fa-align-justify" | "fa-align-left" | "fa-align-right" | "fa-amazon" | "fa-ambulance" | "fa-american-sign-language-interpreting" | "fa-anchor" | "fa-android" | "fa-angellist" | "fa-angle-double-down" | "fa-angle-double-left" | "fa-angle-double-right" | "fa-angle-double-up" | "fa-angle-down" | "fa-angle-left" | "fa-angle-right" | "fa-angle-up" | "fa-apple" | "fa-archive" | "fa-area-chart" | "fa-arrow-circle-down" | "fa-arrow-circle-left" | "fa-arrow-circle-o-down" | "fa-arrow-circle-o-left" | "fa-arrow-circle-o-right" | "fa-arrow-circle-o-up" | "fa-arrow-circle-right" | "fa-arrow-circle-up" | "fa-arrow-down" | "fa-arrow-left" | "fa-arrow-right" | "fa-arrow-up" | "fa-arrows" | "fa-arrows-alt" | "fa-arrows-h" | "fa-arrows-v" | "fa-asl-interpretin" | "fa-assistive-listening-systems" | "fa-asterisk" | "fa-at" | "fa-audio-description" | "fa-automobil" | "fa-backward" | "fa-balance-scale" | "fa-ban" | "fa-bandcamp" | "fa-ban" | "fa-bar-chart" | "fa-bar-chart-" | "fa-barcode" | "fa-bars" | "fa-bath" | "fa-bathtu" | "fa-batter" | "fa-battery-" | "fa-battery-" | "fa-battery-" | "fa-battery-" | "fa-battery-" | "fa-battery-empty" | "fa-battery-full" | "fa-battery-half" | "fa-battery-quarter" | "fa-battery-three-quarters" | "fa-bed" | "fa-beer" | "fa-behance" | "fa-behance-square" | "fa-bell" | "fa-bell-o" | "fa-bell-slash" | "fa-bell-slash-o" | "fa-bicycle" | "fa-binoculars" | "fa-birthday-cake" | "fa-bitbucket" | "fa-bitbucket-square" | "fa-bitcoi" | "fa-black-tie" | "fa-blind" | "fa-bluetooth" | "fa-bluetooth-b" | "fa-bold" | "fa-bolt" | "fa-bomb" | "fa-book" | "fa-bookmark" | "fa-bookmark-o" | "fa-braille" | "fa-briefcase" | "fa-btc" | "fa-bug" | "fa-building" | "fa-building-o" | "fa-bullhorn" | "fa-bullseye" | "fa-bus" | "fa-buysellads" | "fa-ca" | "fa-calculator" | "fa-calendar" | "fa-calendar-check-o" | "fa-calendar-minus-o" | "fa-calendar-o" | "fa-calendar-plus-o" | "fa-calendar-times-o" | "fa-camera" | "fa-camera-retro" | "fa-car" | "fa-caret-down" | "fa-caret-left" | "fa-caret-right" | "fa-caret-square-o-down" | "fa-caret-square-o-left" | "fa-caret-square-o-right" | "fa-caret-square-o-up" | "fa-caret-up" | "fa-cart-arrow-down" | "fa-cart-plus" | "fa-cc" | "fa-cc-amex" | "fa-cc-diners-club" | "fa-cc-discover" | "fa-cc-jcb" | "fa-cc-mastercard" | "fa-cc-paypal" | "fa-cc-stripe" | "fa-cc-visa" | "fa-certificate" | "fa-chai" | "fa-chain-broken" | "fa-check" | "fa-check-circle" | "fa-check-circle-o" | "fa-check-square" | "fa-check-square-o" | "fa-chevron-circle-down" | "fa-chevron-circle-left" | "fa-chevron-circle-right" | "fa-chevron-circle-up" | "fa-chevron-down" | "fa-chevron-left" | "fa-solid:chevron-right" | "fa-chevron-right" | "fa-chevron-up" | "fa-child" | "fa-chrome" | "fa-circle" | "fa-circle-o" | "fa-circle-o-notch" | "fa-circle-thin" | "fa-clipboard" | "fa-clock-o" | "fa-clone" | "fa-close" | "fa-cloud" | "fa-cloud-download" | "fa-cloud-upload" | "fa-cn" | "fa-code" | "fa-code-fork" | "fa-codepen" | "fa-codiepie" | "fa-coffee" | "fa-cog" | "fa-cogs" | "fa-columns" | "fa-comment" | "fa-comment-o" | "fa-commenting" | "fa-commenting-o" | "fa-comments" | "fa-comments-o" | "fa-compass" | "fa-compress" | "fa-connectdevelop" | "fa-contao" | "fa-cop" | "fa-copyright" | "fa-creative-commons" | "fa-credit-card" | "fa-credit-card-alt" | "fa-crop" | "fa-crosshairs" | "fa-css3" | "fa-cube" | "fa-cubes" | "fa-cu" | "fa-cutlery" | "fa-dashboar" | "fa-dashcube" | "fa-database" | "fa-deaf" | "fa-deafnes" | "fa-deden" | "fa-delicious" | "fa-desktop" | "fa-deviantart" | "fa-diamond" | "fa-digg" | "fa-dolla" | "fa-dot-circle-o" | "fa-download" | "fa-dribbble" | "fa-drivers-licens" | "fa-drivers-license-" | "fa-dropbox" | "fa-drupal" | "fa-edge" | "fa-edi" | "fa-eercast" | "fa-eject" | "fa-ellipsis-h" | "fa-ellipsis-v" | "fa-empire" | "fa-envelope" | "fa-envelope-o" | "fa-envelope-open" | "fa-envelope-open-o" | "fa-envelope-square" | "fa-envira" | "fa-eraser" | "fa-etsy" | "fa-eur" | "fa-eur" | "fa-exchange" | "fa-exclamation" | "fa-exclamation-circle" | "fa-exclamation-triangle" | "fa-expand" | "fa-expeditedssl" | "fa-external-link" | "fa-external-link-square" | "fa-eye" | "fa-eye-slash" | "fa-eyedropper" | "fa-f" | "fa-facebook" | "fa-facebook-" | "fa-facebook-official" | "fa-facebook-square" | "fa-fast-backward" | "fa-fast-forward" | "fa-fax" | "fa-fee" | "fa-female" | "fa-fighter-jet" | "fa-file" | "fa-file-archive-o" | "fa-file-audio-o" | "fa-file-code-o" | "fa-file-excel-o" | "fa-file-image-o" | "fa-file-movie-" | "fa-file-o" | "fa-file-pdf-o" | "fa-file-photo-" | "fa-file-picture-" | "fa-file-powerpoint-o" | "fa-file-sound-" | "fa-file-text" | "fa-file-text-o" | "fa-file-video-o" | "fa-file-word-o" | "fa-file-zip-" | "fa-files-o" | "fa-film" | "fa-filter" | "fa-fire" | "fa-fire-extinguisher" | "fa-firefox" | "fa-first-order" | "fa-flag" | "fa-flag-checkered" | "fa-flag-o" | "fa-flas" | "fa-flask" | "fa-flickr" | "fa-floppy-o" | "fa-folder" | "fa-folder-o" | "fa-folder-open" | "fa-folder-open-o" | "fa-font" | "fa-font-awesome" | "fa-fonticons" | "fa-fort-awesome" | "fa-forumbee" | "fa-forward" | "fa-foursquare" | "fa-free-code-camp" | "fa-frown-o" | "fa-futbol-o" | "fa-gamepad" | "fa-gavel" | "fa-gbp" | "fa-g" | "fa-gea" | "fa-gear" | "fa-genderless" | "fa-get-pocket" | "fa-gg" | "fa-gg-circle" | "fa-gift" | "fa-git" | "fa-git-square" | "fa-github" | "fa-github-alt" | "fa-github-square" | "fa-gitlab" | "fa-gitti" | "fa-glass" | "fa-glide" | "fa-glide-g" | "fa-globe" | "fa-google" | "fa-google-plus" | "fa-google-plus-circl" | "fa-google-plus-official" | "fa-google-plus-square" | "fa-google-wallet" | "fa-graduation-cap" | "fa-gratipay" | "fa-grav" | "fa-grou" | "fa-h-square" | "fa-hacker-news" | "fa-hand-grab-" | "fa-hand-lizard-o" | "fa-hand-o-down" | "fa-hand-o-left" | "fa-hand-o-right" | "fa-hand-o-up" | "fa-hand-paper-o" | "fa-hand-peace-o" | "fa-hand-pointer-o" | "fa-hand-rock-o" | "fa-hand-scissors-o" | "fa-hand-spock-o" | "fa-hand-stop-" | "fa-handshake-o" | "fa-hard-of-hearin" | "fa-hashtag" | "fa-hdd-o" | "fa-header" | "fa-headphones" | "fa-heart" | "fa-heart-o" | "fa-heartbeat" | "fa-history" | "fa-home" | "fa-hospital-o" | "fa-hote" | "fa-hourglass" | "fa-hourglass-" | "fa-hourglass-" | "fa-hourglass-" | "fa-hourglass-end" | "fa-hourglass-half" | "fa-hourglass-o" | "fa-hourglass-start" | "fa-houzz" | "fa-html5" | "fa-i-cursor" | "fa-id-badge" | "fa-id-card" | "fa-id-card-o" | "fa-ils" | "fa-imag" | "fa-imdb" | "fa-inbox" | "fa-indent" | "fa-industry" | "fa-info" | "fa-info-circle" | "fa-inr" | "fa-instagram" | "fa-institutio" | "fa-internet-explorer" | "fa-interse" | "fa-ioxhost" | "fa-italic" | "fa-joomla" | "fa-jpy" | "fa-jsfiddle" | "fa-key" | "fa-keyboard-o" | "fa-krw" | "fa-language" | "fa-laptop" | "fa-lastfm" | "fa-lastfm-square" | "fa-leaf" | "fa-leanpub" | "fa-lega" | "fa-lemon-o" | "fa-level-down" | "fa-level-up" | "fa-life-bou" | "fa-life-buo" | "fa-life-ring" | "fa-life-save" | "fa-lightbulb-o" | "fa-line-chart" | "fa-link" | "fa-linkedin" | "fa-linkedin-square" | "fa-linode" | "fa-linux" | "fa-list" | "fa-list-alt" | "fa-list-ol" | "fa-list-ul" | "fa-location-arrow" | "fa-lock" | "fa-long-arrow-down" | "fa-long-arrow-left" | "fa-long-arrow-right" | "fa-long-arrow-up" | "fa-low-vision" | "fa-magic" | "fa-magnet" | "fa-mail-forwar" | "fa-mail-repl" | "fa-mail-reply-al" | "fa-male" | "fa-map" | "fa-map-marker" | "fa-map-o" | "fa-map-pin" | "fa-map-signs" | "fa-mars" | "fa-mars-double" | "fa-mars-stroke" | "fa-mars-stroke-h" | "fa-mars-stroke-v" | "fa-maxcdn" | "fa-meanpath" | "fa-medium" | "fa-medkit" | "fa-meetup" | "fa-meh-o" | "fa-mercury" | "fa-microchip" | "fa-microphone" | "fa-microphone-slash" | "fa-minus" | "fa-minus-circle" | "fa-minus-square" | "fa-minus-square-o" | "fa-mixcloud" | "fa-mobile" | "fa-mobile-phon" | "fa-modx" | "fa-money" | "fa-moon-o" | "fa-mortar-boar" | "fa-motorcycle" | "fa-mouse-pointer" | "fa-music" | "fa-navico" | "fa-neuter" | "fa-newspaper-o" | "fa-object-group" | "fa-object-ungroup" | "fa-odnoklassniki" | "fa-odnoklassniki-square" | "fa-opencart" | "fa-openid" | "fa-opera" | "fa-optin-monster" | "fa-outdent" | "fa-pagelines" | "fa-paint-brush" | "fa-paper-plane" | "fa-paper-plane-o" | "fa-paperclip" | "fa-paragraph" | "fa-past" | "fa-pause" | "fa-pause-circle" | "fa-pause-circle-o" | "fa-paw" | "fa-paypal" | "fa-pencil" | "fa-pencil-square" | "fa-pencil-square-o" | "fa-percent" | "fa-phone" | "fa-phone-square" | "fa-phot" | "fa-picture-o" | "fa-pie-chart" | "fa-pied-piper" | "fa-pied-piper-alt" | "fa-pied-piper-pp" | "fa-pinterest" | "fa-pinterest-p" | "fa-pinterest-square" | "fa-plane" | "fa-play" | "fa-play-circle" | "fa-play-circle-o" | "fa-plug" | "fa-plus" | "fa-plus-circle" | "fa-plus-square" | "fa-plus-square-o" | "fa-podcast" | "fa-power-off" | "fa-print" | "fa-product-hunt" | "fa-puzzle-piece" | "fa-qq" | "fa-qrcode" | "fa-question" | "fa-question-circle" | "fa-question-circle-o" | "fa-quora" | "fa-quote-left" | "fa-quote-right" | "fa-r" | "fa-random" | "fa-ravelry" | "fa-rebel" | "fa-recycle" | "fa-reddit" | "fa-reddit-alien" | "fa-reddit-square" | "fa-refresh" | "fa-registered" | "fa-remove" | "fa-renren" | "fa-reorde" | "fa-repeat" | "fa-reply" | "fa-reply-all" | "fa-resistanc" | "fa-retweet" | "fa-rm" | "fa-road" | "fa-rocket" | "fa-rotate-lef" | "fa-rotate-right" | "fa-roubl" | "fa-rss" | "fa-rss-square" | "fa-rub" | "fa-rubl" | "fa-rupe" | "fa-s1" | "fa-safari" | "fa-sav" | "fa-scissors" | "fa-scribd" | "fa-search" | "fa-search-minus" | "fa-search-plus" | "fa-sellsy" | "fa-sen" | "fa-send-" | "fa-server" | "fa-share" | "fa-share-alt" | "fa-share-alt-square" | "fa-share-square" | "fa-share-square-o" | "fa-sheke" | "fa-sheqe" | "fa-shield" | "fa-ship" | "fa-shirtsinbulk" | "fa-shopping-bag" | "fa-shopping-basket" | "fa-shopping-cart" | "fa-shower" | "fa-sign-in" | "fa-sign-language" | "fa-sign-out" | "fa-signal" | "fa-signin" | "fa-simplybuilt" | "fa-sitemap" | "fa-skyatlas" | "fa-skype" | "fa-slack" | "fa-sliders" | "fa-slideshare" | "fa-smile-o" | "fa-snapchat" | "fa-snapchat-ghost" | "fa-snapchat-square" | "fa-snowflake-o" | "fa-soccer-ball-" | "fa-sort" | "fa-sort-alpha-asc" | "fa-sort-alpha-desc" | "fa-sort-amount-asc" | "fa-sort-amount-desc" | "fa-sort-asc" | "fa-sort-desc" | "fa-sort-dow" | "fa-sort-numeric-asc" | "fa-sort-numeric-desc" | "fa-sort-u" | "fa-soundcloud" | "fa-space-shuttle" | "fa-spinner" | "fa-spoon" | "fa-spotify" | "fa-square" | "fa-square-o" | "fa-stack-exchange" | "fa-stack-overflow" | "fa-star" | "fa-star-half" | "fa-star-half-empt" | "fa-star-half-ful" | "fa-star-half-o" | "fa-star-o" | "fa-steam" | "fa-steam-square" | "fa-step-backward" | "fa-step-forward" | "fa-stethoscope" | "fa-sticky-note" | "fa-sticky-note-o" | "fa-stop" | "fa-stop-circle" | "fa-stop-circle-o" | "fa-street-view" | "fa-strikethrough" | "fa-stumbleupon" | "fa-stumbleupon-circle" | "fa-subscript" | "fa-subway" | "fa-suitcase" | "fa-sun-o" | "fa-superpowers" | "fa-superscript" | "fa-suppor" | "fa-table" | "fa-tablet" | "fa-tachometer" | "fa-tag" | "fa-tags" | "fa-tasks" | "fa-taxi" | "fa-telegram" | "fa-television" | "fa-tencent-weibo" | "fa-terminal" | "fa-text-height" | "fa-text-width" | "fa-th" | "fa-th-large" | "fa-th-list" | "fa-themeisle" | "fa-thermomete" | "fa-thermometer-" | "fa-thermometer-" | "fa-thermometer-" | "fa-thermometer-" | "fa-thermometer-" | "fa-thermometer-empty" | "fa-thermometer-full" | "fa-thermometer-half" | "fa-thermometer-quarter" | "fa-thermometer-three-quarters" | "fa-thumb-tack" | "fa-thumbs-down" | "fa-thumbs-o-down" | "fa-thumbs-o-up" | "fa-thumbs-up" | "fa-ticket" | "fa-times" | "fa-times-circle" | "fa-times-circle-o" | "fa-times-rectangl" | "fa-times-rectangle-" | "fa-tint" | "fa-toggle-dow" | "fa-toggle-lef" | "fa-toggle-off" | "fa-toggle-on" | "fa-toggle-righ" | "fa-toggle-u" | "fa-trademark" | "fa-train" | "fa-transgender" | "fa-transgender-alt" | "fa-trash" | "fa-trash-o" | "fa-tree" | "fa-trello" | "fa-tripadvisor" | "fa-trophy" | "fa-truck" | "fa-try" | "fa-tty" | "fa-tumblr" | "fa-tumblr-square" | "fa-turkish-lir" | "fa-t" | "fa-twitch" | "fa-twitter" | "fa-twitter-square" | "fa-umbrella" | "fa-underline" | "fa-undo" | "fa-universal-access" | "fa-university" | "fa-unlin" | "fa-unlock" | "fa-unlock-alt" | "fa-unsorte" | "fa-upload" | "fa-usb" | "fa-usd" | "fa-user" | "fa-user-circle" | "fa-user-circle-o" | "fa-user-md" | "fa-user-o" | "fa-user-plus" | "fa-user-secret" | "fa-user-times" | "fa-users" | "fa-vcar" | "fa-vcard-" | "fa-venus" | "fa-venus-double" | "fa-venus-mars" | "fa-viacoin" | "fa-viadeo" | "fa-viadeo-square" | "fa-video-camera" | "fa-vimeo" | "fa-vimeo-square" | "fa-vine" | "fa-vk" | "fa-volume-control-phone" | "fa-volume-down" | "fa-volume-off" | "fa-volume-up" | "fa-warnin" | "fa-wecha" | "fa-weibo" | "fa-weixin" | "fa-whatsapp" | "fa-wheelchair" | "fa-wheelchair-alt" | "fa-wifi" | "fa-wikipedia-w" | "fa-window-close" | "fa-window-close-o" | "fa-window-maximize" | "fa-window-minimize" | "fa-window-restore" | "fa-windows" | "fa-wo" | "fa-wordpress" | "fa-wpbeginner" | "fa-wpexplorer" | "fa-wpforms" | "fa-wrench" | "fa-xing" | "fa-xing-square" | "fa-y-combinator" | "fa-y-combinator-squar" | "fa-yahoo" | "fa-y" | "fa-yc-squar" | "fa-yelp" | "fa-ye" | "fa-yoast" | "fa-youtube" | "fa-youtube-play" | "fa-youtube-squar";
|
|
244
|
+
|
|
245
|
+
interface ButtonProps extends BaseButtonProps {
|
|
246
|
+
children: string;
|
|
247
|
+
color: InteractableColor;
|
|
248
|
+
size?: Size;
|
|
249
|
+
icon?: IconType;
|
|
250
|
+
iconSize?: Size;
|
|
251
|
+
iconPosition?: "left" | "right";
|
|
252
|
+
rowProps?: FlexLayoutProps;
|
|
253
|
+
align?: Align;
|
|
254
|
+
gap?: Gap;
|
|
255
|
+
justify?: Justify;
|
|
256
|
+
bold?: boolean;
|
|
257
|
+
}
|
|
258
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
259
|
+
|
|
260
|
+
declare const Calendar: React__default.ForwardRefExoticComponent<{
|
|
261
|
+
date: Date;
|
|
262
|
+
header: (props: {
|
|
263
|
+
weekday: string;
|
|
264
|
+
}) => React__default.JSX.Element;
|
|
265
|
+
jss?: JSS;
|
|
266
|
+
cell: (props: {
|
|
267
|
+
today?: boolean;
|
|
268
|
+
date: Date;
|
|
269
|
+
outOfMonth: boolean;
|
|
270
|
+
top: boolean;
|
|
271
|
+
left: boolean;
|
|
272
|
+
right: boolean;
|
|
273
|
+
bottom: boolean;
|
|
274
|
+
}) => React__default.JSX.Element;
|
|
275
|
+
} & React__default.RefAttributes<HTMLElement>>;
|
|
276
|
+
|
|
277
|
+
interface CardProps extends FlexLayoutProps {
|
|
278
|
+
}
|
|
279
|
+
declare function Card({ children, jss, padding, gap, ...otherProps }: CardProps): react_jsx_runtime.JSX.Element;
|
|
280
|
+
|
|
281
|
+
interface CheckboxProps extends BaseInputProps {
|
|
282
|
+
checked: boolean;
|
|
283
|
+
onClick: () => void;
|
|
284
|
+
size: Size;
|
|
285
|
+
value?: undefined;
|
|
286
|
+
onChange?: undefined;
|
|
287
|
+
}
|
|
288
|
+
declare function Checkbox({ checked, onClick, size, ...inputProps }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
289
|
+
|
|
290
|
+
interface CircleProps extends BoxProps {
|
|
291
|
+
}
|
|
292
|
+
declare function Circle({ jss, padding, ...otherProps }: CircleProps): react_jsx_runtime.JSX.Element;
|
|
293
|
+
|
|
294
|
+
type State = {
|
|
295
|
+
enabled: boolean;
|
|
296
|
+
toggle: () => void;
|
|
297
|
+
};
|
|
298
|
+
declare const DarkModeContext: React__default.Context<State>;
|
|
299
|
+
declare function DarkModeProvider({ children, enabled, toggle, }: {
|
|
300
|
+
children: ReactNode;
|
|
301
|
+
enabled: boolean;
|
|
302
|
+
toggle: () => void;
|
|
303
|
+
}): react_jsx_runtime.JSX.Element;
|
|
304
|
+
declare function DarkModeToggle(): react_jsx_runtime.JSX.Element;
|
|
305
|
+
|
|
306
|
+
interface DateInputProps extends BaseInputProps {
|
|
307
|
+
onDateChange: (date: Date) => void;
|
|
308
|
+
date: Date;
|
|
309
|
+
icon?: IconType;
|
|
310
|
+
addOn?: ReactNode;
|
|
311
|
+
onChange?: undefined;
|
|
312
|
+
jss?: JSS;
|
|
313
|
+
}
|
|
314
|
+
declare const DateInput: React__default.ForwardRefExoticComponent<DateInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
315
|
+
|
|
316
|
+
interface DatePickerProps {
|
|
317
|
+
id: string;
|
|
318
|
+
label: string;
|
|
319
|
+
date: Date;
|
|
320
|
+
color?: TextColor;
|
|
321
|
+
min?: string;
|
|
322
|
+
max?: string;
|
|
323
|
+
onDateChange: (date: Date) => void;
|
|
324
|
+
}
|
|
325
|
+
declare function DatePicker({ id, label, color, date, onDateChange, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
326
|
+
|
|
327
|
+
interface DatetimeInputProps extends BaseInputProps {
|
|
328
|
+
onDateChange: (date: Date) => void;
|
|
329
|
+
date: Date;
|
|
330
|
+
icon?: IconType;
|
|
331
|
+
addOn?: ReactNode;
|
|
332
|
+
onChange?: undefined;
|
|
333
|
+
jss?: JSS;
|
|
334
|
+
}
|
|
335
|
+
declare const DatetimeInput: React__default.ForwardRefExoticComponent<DatetimeInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
336
|
+
|
|
337
|
+
declare const Dialog: ({ label, children, close, }: {
|
|
338
|
+
label: string;
|
|
339
|
+
children: React__default.JSX.Element;
|
|
340
|
+
close: () => void;
|
|
341
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
342
|
+
declare function DialogProvider({ children }: {
|
|
343
|
+
children: any;
|
|
344
|
+
}): react_jsx_runtime.JSX.Element;
|
|
345
|
+
declare function useDialog<Input>(DialogComponent: (props: {
|
|
346
|
+
close: () => void;
|
|
347
|
+
} & Input) => React__default.JSX.Element, options: {
|
|
348
|
+
closeOnOutsideClick: boolean;
|
|
349
|
+
}): {
|
|
350
|
+
open: (input: Input) => void;
|
|
351
|
+
close: () => any;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
declare function Dropdown<T extends string | number>({ id: propId, label, options, selection, setSelection, jss, jssButton, optionLabel, padding, size, gap, }: {
|
|
355
|
+
id?: string;
|
|
356
|
+
label: string;
|
|
357
|
+
options: Set<T>;
|
|
358
|
+
setSelection: (selection: T) => void;
|
|
359
|
+
selection: T;
|
|
360
|
+
jss?: JSS;
|
|
361
|
+
jssButton?: JSS;
|
|
362
|
+
optionLabel: (option: T) => string;
|
|
363
|
+
padding?: Padding;
|
|
364
|
+
gap?: Gap;
|
|
365
|
+
size?: Size;
|
|
366
|
+
}): react_jsx_runtime.JSX.Element;
|
|
367
|
+
|
|
368
|
+
type Callback<Value> = (value: Value) => void;
|
|
369
|
+
type Subscribe<Value> = (callback: Callback<Value>) => () => void;
|
|
370
|
+
declare function createEmitter<Value>(): {
|
|
371
|
+
subscribe: Subscribe<Value>;
|
|
372
|
+
emit: (value: Value) => void;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
declare function guid(): string;
|
|
376
|
+
|
|
377
|
+
declare function hash(source: string, modulus?: number): number;
|
|
378
|
+
|
|
379
|
+
declare function IconProvider({ children }: {
|
|
380
|
+
children: React__default.JSX.Element;
|
|
381
|
+
}): React__default.JSX.Element;
|
|
382
|
+
declare function Icon({ icon, size, color, ariaLabel, }: {
|
|
383
|
+
ariaLabel?: string;
|
|
384
|
+
icon: IconType;
|
|
385
|
+
size: Size;
|
|
386
|
+
color: TextColor;
|
|
387
|
+
}): react_jsx_runtime.JSX.Element;
|
|
388
|
+
|
|
389
|
+
interface IconButtonProps extends BaseButtonProps {
|
|
390
|
+
icon: IconType;
|
|
391
|
+
size: Size;
|
|
392
|
+
label?: string;
|
|
393
|
+
labelSize?: Size;
|
|
394
|
+
}
|
|
395
|
+
declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
396
|
+
|
|
397
|
+
interface IconLinkProps extends BaseLinkProps {
|
|
398
|
+
icon: IconType;
|
|
399
|
+
size: Size;
|
|
400
|
+
}
|
|
401
|
+
declare const IconLink: React__default.ForwardRefExoticComponent<IconLinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
402
|
+
|
|
403
|
+
interface LinkProps extends BaseLinkProps {
|
|
404
|
+
children?: ReactNode;
|
|
405
|
+
color: InteractableColor;
|
|
406
|
+
size?: Size;
|
|
407
|
+
icon?: IconType;
|
|
408
|
+
underline?: boolean;
|
|
409
|
+
iconSize?: Size;
|
|
410
|
+
iconPosition?: "left" | "right";
|
|
411
|
+
rowProps?: FlexLayoutProps;
|
|
412
|
+
align?: Align;
|
|
413
|
+
gap?: Gap;
|
|
414
|
+
justify?: Justify;
|
|
415
|
+
bold?: boolean;
|
|
416
|
+
inline?: boolean;
|
|
417
|
+
}
|
|
418
|
+
declare const Link: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
419
|
+
|
|
420
|
+
interface ListProps extends BaseListProps {
|
|
421
|
+
ariaLabel: string;
|
|
422
|
+
bare?: boolean;
|
|
423
|
+
autofocus?: boolean;
|
|
424
|
+
role?: undefined;
|
|
425
|
+
navigation?: boolean;
|
|
426
|
+
carded?: boolean;
|
|
427
|
+
}
|
|
428
|
+
declare function List({ ariaLabel, jss, autofocus, navigation, bare, carded, ...otherProps }: ListProps): react_jsx_runtime.JSX.Element;
|
|
429
|
+
declare const useListContext: () => {
|
|
430
|
+
bare: boolean;
|
|
431
|
+
carded: boolean;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
interface ListButtonItemProps extends BaseListItemProps {
|
|
435
|
+
color: InteractableColor;
|
|
436
|
+
onClick: () => void;
|
|
437
|
+
headline: string;
|
|
438
|
+
body?: string;
|
|
439
|
+
disabled?: boolean;
|
|
440
|
+
selected?: boolean;
|
|
441
|
+
children?: void;
|
|
442
|
+
}
|
|
443
|
+
declare const ListButtonItem: React__default.ForwardRefExoticComponent<Omit<ListButtonItemProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
444
|
+
|
|
445
|
+
declare function ListDivider(): react_jsx_runtime.JSX.Element;
|
|
446
|
+
|
|
447
|
+
declare function ListHeaderItem({ highlight, headline, body, withDivider, addOn, addOnPosition, }: {
|
|
448
|
+
highlight?: boolean;
|
|
449
|
+
headline: string;
|
|
450
|
+
body?: string;
|
|
451
|
+
withDivider?: boolean;
|
|
452
|
+
addOn?: ReactNode;
|
|
453
|
+
addOnPosition?: Position;
|
|
454
|
+
}): react_jsx_runtime.JSX.Element;
|
|
455
|
+
|
|
456
|
+
interface ListItemProps extends BaseListItemProps {
|
|
457
|
+
headline: string;
|
|
458
|
+
body?: string;
|
|
459
|
+
children?: void;
|
|
460
|
+
}
|
|
461
|
+
declare const ListItem: React__default.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React__default.RefAttributes<HTMLLIElement>>;
|
|
462
|
+
|
|
463
|
+
interface ListLinkItemProps extends BaseListItemProps {
|
|
464
|
+
color?: InteractableColor;
|
|
465
|
+
children?: void;
|
|
466
|
+
onClick?: () => void;
|
|
467
|
+
href: string;
|
|
468
|
+
headline: string;
|
|
469
|
+
body?: string;
|
|
470
|
+
disabled?: boolean;
|
|
471
|
+
selected?: boolean;
|
|
472
|
+
target?: string;
|
|
473
|
+
}
|
|
474
|
+
declare const ListLinkItem: React__default.ForwardRefExoticComponent<Omit<ListLinkItemProps, "ref"> & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
475
|
+
|
|
476
|
+
declare function ListSpacer(): react_jsx_runtime.JSX.Element;
|
|
477
|
+
|
|
478
|
+
declare function MenuIcon({ open, color }: {
|
|
479
|
+
open: boolean;
|
|
480
|
+
color: Color;
|
|
481
|
+
}): react_jsx_runtime.JSX.Element;
|
|
482
|
+
|
|
483
|
+
declare function numberToBase(number: number, base?: Array<string>): string;
|
|
484
|
+
|
|
485
|
+
declare function OnVisible({ children, onVisible, }: {
|
|
486
|
+
children: (refCallback: React__default.RefCallback<HTMLElement>) => ReactElement;
|
|
487
|
+
onVisible: () => void;
|
|
488
|
+
}): React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>>;
|
|
489
|
+
|
|
490
|
+
declare function Popover({ children, close }: {
|
|
491
|
+
children: any;
|
|
492
|
+
close: any;
|
|
493
|
+
}): react_jsx_runtime.JSX.Element;
|
|
494
|
+
interface PopoverTriggerProps<Input> {
|
|
495
|
+
PopoverComponent: (props: {
|
|
496
|
+
close: () => void;
|
|
497
|
+
} & Input) => React__default.JSX.Element;
|
|
498
|
+
jss?: JSS;
|
|
499
|
+
jssDialog?: JSS;
|
|
500
|
+
className?: undefined;
|
|
501
|
+
grow?: boolean;
|
|
502
|
+
shrink?: boolean;
|
|
503
|
+
tag?: keyof HTMLElementTagNameMap;
|
|
504
|
+
children: (props: {
|
|
505
|
+
toggle: (input: Input) => void;
|
|
506
|
+
}) => React__default.JSX.Element;
|
|
507
|
+
}
|
|
508
|
+
declare function PopoverTrigger<Input>({ PopoverComponent, jss, jssDialog, grow, shrink, tag, children, }: PopoverTriggerProps<Input>): react_jsx_runtime.JSX.Element;
|
|
509
|
+
|
|
510
|
+
declare function ProgressBar({ color, progress, size, jss, }: {
|
|
511
|
+
progress: number;
|
|
512
|
+
color: Color;
|
|
513
|
+
size: Size;
|
|
514
|
+
jss?: JSS;
|
|
515
|
+
}): react_jsx_runtime.JSX.Element;
|
|
516
|
+
|
|
517
|
+
declare function ProgressCircle({ progress, stroke, outerRadius, }: {
|
|
518
|
+
progress: number;
|
|
519
|
+
stroke?: number;
|
|
520
|
+
outerRadius: number;
|
|
521
|
+
}): react_jsx_runtime.JSX.Element;
|
|
522
|
+
|
|
523
|
+
declare function Providers({ children, themes, }: {
|
|
524
|
+
children: React__default.JSX.Element;
|
|
525
|
+
themes: {
|
|
526
|
+
light: Theme;
|
|
527
|
+
dark: Theme;
|
|
528
|
+
};
|
|
529
|
+
}): react_jsx_runtime.JSX.Element;
|
|
530
|
+
|
|
531
|
+
interface RangeInputProps extends BaseInputProps {
|
|
532
|
+
onValueChange: (value: number) => void;
|
|
533
|
+
value: number;
|
|
534
|
+
jssRoot?: JSS;
|
|
535
|
+
onChange?: undefined;
|
|
536
|
+
padding?: Padding;
|
|
537
|
+
gap?: Gap;
|
|
538
|
+
addOn?: React__default.JSX.Element;
|
|
539
|
+
addOnPosition?: "start" | "end";
|
|
540
|
+
}
|
|
541
|
+
declare const RangeInput: React__default.ForwardRefExoticComponent<RangeInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
542
|
+
|
|
543
|
+
declare function RootView({ children, focusOnlyOnFirstMount, }: {
|
|
544
|
+
children: ReactNode;
|
|
545
|
+
focusOnlyOnFirstMount?: boolean;
|
|
546
|
+
}): react_jsx_runtime.JSX.Element;
|
|
547
|
+
|
|
548
|
+
interface SelectProps extends React.HTMLAttributes<HTMLSelectElement> {
|
|
549
|
+
value: string;
|
|
550
|
+
onValueChange: (value: string) => void;
|
|
551
|
+
jss?: JSS;
|
|
552
|
+
ref?: React.Ref<HTMLSelectElement>;
|
|
553
|
+
className?: undefined;
|
|
554
|
+
}
|
|
555
|
+
declare const Select: React$1.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React$1.RefAttributes<HTMLSelectElement>>;
|
|
556
|
+
|
|
557
|
+
type Props = {
|
|
558
|
+
children: ReactNode;
|
|
559
|
+
isTopOfStack: boolean;
|
|
560
|
+
};
|
|
561
|
+
declare function StackContextProvider({ children, isTopOfStack }: Props): react_jsx_runtime.JSX.Element;
|
|
562
|
+
declare function useIsTopOfStack(): boolean;
|
|
563
|
+
|
|
564
|
+
type Reducer<State, Context> = <Data extends any>({ state, context, data, }: {
|
|
565
|
+
state: State;
|
|
566
|
+
context: Context;
|
|
567
|
+
data: Data;
|
|
568
|
+
}) => {
|
|
569
|
+
state: State;
|
|
570
|
+
context: Context;
|
|
571
|
+
};
|
|
572
|
+
type StateMachineConfig<State, Transition, Context> = {
|
|
573
|
+
states: {
|
|
574
|
+
[state: string]: {
|
|
575
|
+
on: {
|
|
576
|
+
[transition: Transition]: Reducer<State, Context>;
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
context: Context;
|
|
581
|
+
state: State;
|
|
582
|
+
};
|
|
583
|
+
type Send = <Transition, Data>(transition: Transition, data: Data) => void;
|
|
584
|
+
type StateMachineContextType<State, Context> = {
|
|
585
|
+
subscribe: Subscribe<{
|
|
586
|
+
state: State;
|
|
587
|
+
context: Context;
|
|
588
|
+
}>;
|
|
589
|
+
send: Send;
|
|
590
|
+
};
|
|
591
|
+
declare function stateMachineContextFactory<State, Transition, Context>(stateMachineConfig: StateMachineConfig<State, Transition, Context>): {
|
|
592
|
+
Provider: ({ children }: {
|
|
593
|
+
children: ReactNode;
|
|
594
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
595
|
+
useStateMachine: () => StateMachineContextType<State, Context>;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
type StaticCheckboxProps = {
|
|
599
|
+
checked: boolean;
|
|
600
|
+
size: Size;
|
|
601
|
+
icon?: IconType;
|
|
602
|
+
};
|
|
603
|
+
declare const sizes: {
|
|
604
|
+
xsmall: number;
|
|
605
|
+
small: number;
|
|
606
|
+
medium: number;
|
|
607
|
+
large: number;
|
|
608
|
+
xlarge: number;
|
|
609
|
+
};
|
|
610
|
+
declare function StaticCheckbox({ checked, size, icon, }: StaticCheckboxProps): react_jsx_runtime.JSX.Element;
|
|
611
|
+
|
|
612
|
+
declare function createStorage<State>({ initialState, name, }: {
|
|
613
|
+
initialState: State;
|
|
614
|
+
name?: string;
|
|
615
|
+
}): {
|
|
616
|
+
Storage: ({ children }: {
|
|
617
|
+
children: ReactNode;
|
|
618
|
+
}) => React__default.JSX.Element;
|
|
619
|
+
useStorage: <T>(selector: (state: State) => T) => T;
|
|
620
|
+
useMutation: () => (mutator: (state: State) => State) => void;
|
|
621
|
+
usePersist: () => () => Promise<void>;
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
declare const useStream: ({ render, bufferStart, bufferEnd, index, debounce, }: {
|
|
625
|
+
render: any;
|
|
626
|
+
bufferStart: any;
|
|
627
|
+
bufferEnd: any;
|
|
628
|
+
index: any;
|
|
629
|
+
debounce?: number;
|
|
630
|
+
}) => {
|
|
631
|
+
frame: any;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
declare function Sublist({ children, label, labelBold, initialState, jss, secondaryAddOn, }: {
|
|
635
|
+
children: React__default.ReactNode;
|
|
636
|
+
label: string;
|
|
637
|
+
labelBold?: boolean;
|
|
638
|
+
initialState?: {
|
|
639
|
+
collapsed: boolean;
|
|
640
|
+
};
|
|
641
|
+
jss?: JSS;
|
|
642
|
+
secondaryAddOn?: ReactNode;
|
|
643
|
+
}): react_jsx_runtime.JSX.Element;
|
|
644
|
+
|
|
645
|
+
interface SubmitIconInputProps extends BaseInputProps {
|
|
646
|
+
icon: IconType;
|
|
647
|
+
type?: "submit";
|
|
648
|
+
}
|
|
649
|
+
declare function SubmitIconInput({ icon, ...otherProps }: SubmitIconInputProps): react_jsx_runtime.JSX.Element;
|
|
650
|
+
|
|
651
|
+
type Tab = {
|
|
652
|
+
label: string;
|
|
653
|
+
href?: string;
|
|
654
|
+
onClick?: () => void;
|
|
655
|
+
selected?: boolean;
|
|
656
|
+
addOn?: ReactNode;
|
|
657
|
+
addOnPosition?: "start" | "end";
|
|
658
|
+
};
|
|
659
|
+
interface TabsProps extends RowProps {
|
|
660
|
+
["aria-controls"]: string;
|
|
661
|
+
tabs: Array<Tab>;
|
|
662
|
+
labelSize?: Size;
|
|
663
|
+
bare?: boolean;
|
|
664
|
+
tabPadding?: Padding;
|
|
665
|
+
jssTab?: JSS | ((data: {
|
|
666
|
+
selected: boolean;
|
|
667
|
+
}) => JSS);
|
|
668
|
+
labelRenderer?: (label: string) => ReactNode;
|
|
669
|
+
}
|
|
670
|
+
declare function Tabs({ tabs, gap, padding, tabPadding, labelSize, jss, jssTab, labelRenderer, ["aria-controls"]: ariaControls, ...otherProps }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
671
|
+
|
|
672
|
+
type Display = "inline" | "block";
|
|
673
|
+
interface TextProps {
|
|
674
|
+
children: ReactNode;
|
|
675
|
+
color?: TextColor;
|
|
676
|
+
size?: Size;
|
|
677
|
+
bold?: boolean;
|
|
678
|
+
ellipsis?: boolean | "default";
|
|
679
|
+
align?: "center" | "none";
|
|
680
|
+
type?: TextType;
|
|
681
|
+
grow?: boolean;
|
|
682
|
+
jss?: JSS;
|
|
683
|
+
id?: string;
|
|
684
|
+
htmlFor?: string;
|
|
685
|
+
}
|
|
686
|
+
type TextType = "label" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "li";
|
|
687
|
+
declare function Text({ children, color, size, align, bold, ellipsis, grow, type: Type, jss, id, htmlFor, }: TextProps): react_jsx_runtime.JSX.Element;
|
|
688
|
+
declare function Label({ size, type, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
689
|
+
declare function Span({ size, type, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
690
|
+
declare function P({ size, type, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
691
|
+
declare function H1({ size, type, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
692
|
+
declare function H2({ size, type, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
693
|
+
declare function H3({ size, type, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
694
|
+
declare function Li({ size, type, ...rest }: TextProps): react_jsx_runtime.JSX.Element;
|
|
695
|
+
|
|
696
|
+
interface TextAreaProps extends React__default.InputHTMLAttributes<HTMLTextAreaElement> {
|
|
697
|
+
jss?: JSS;
|
|
698
|
+
onValueChange?: (value: string) => void;
|
|
699
|
+
value?: string;
|
|
700
|
+
className?: undefined;
|
|
701
|
+
size?: undefined;
|
|
702
|
+
padding?: Padding;
|
|
703
|
+
}
|
|
704
|
+
declare const TextArea: React__default.ForwardRefExoticComponent<TextAreaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
705
|
+
|
|
706
|
+
interface TextInputProps extends Omit<BaseInputProps, "size"> {
|
|
707
|
+
onValueChange?: (value: string) => void;
|
|
708
|
+
jssRoot?: JSS;
|
|
709
|
+
addOn?: ReactNode;
|
|
710
|
+
addOnPosition?: "start" | "end";
|
|
711
|
+
gap?: Gap;
|
|
712
|
+
onChange?: undefined;
|
|
713
|
+
padding?: Padding;
|
|
714
|
+
bare?: boolean;
|
|
715
|
+
size?: Size;
|
|
716
|
+
}
|
|
717
|
+
declare const TextInput: React__default.ForwardRefExoticComponent<TextInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
718
|
+
|
|
719
|
+
interface TextInputWithStateProps extends BaseInputProps {
|
|
720
|
+
onValueChange?: (value: string) => void;
|
|
721
|
+
valueRef: React__default.MutableRefObject<string>;
|
|
722
|
+
onChange?: undefined;
|
|
723
|
+
}
|
|
724
|
+
declare function TextInputWithState({ valueRef, onValueChange: externalOnChange, ...otherProps }: TextInputWithStateProps): react_jsx_runtime.JSX.Element;
|
|
725
|
+
|
|
726
|
+
interface TextPairingProps {
|
|
727
|
+
headline: ReactNode;
|
|
728
|
+
body?: ReactNode;
|
|
729
|
+
headlineColor?: TextColor;
|
|
730
|
+
headlineSize?: Size;
|
|
731
|
+
headlineAddOn?: ReactNode;
|
|
732
|
+
bodyColor?: TextColor;
|
|
733
|
+
bodySize?: Size;
|
|
734
|
+
addOn?: ReactNode;
|
|
735
|
+
addOnPosition?: Position;
|
|
736
|
+
gap?: Gap;
|
|
737
|
+
padding?: Padding;
|
|
738
|
+
align?: Align;
|
|
739
|
+
grow?: boolean;
|
|
740
|
+
shrink?: boolean;
|
|
741
|
+
headlineBold?: boolean;
|
|
742
|
+
jss?: JSS;
|
|
743
|
+
}
|
|
744
|
+
declare function TextPairing({ headline, body, headlineColor, headlineSize, headlineAddOn, bodyColor, bodySize, addOn, addOnPosition, gap, align, grow, shrink, headlineBold, padding, jss, }: TextPairingProps): react_jsx_runtime.JSX.Element;
|
|
745
|
+
|
|
746
|
+
interface TimeInputProps extends BaseInputProps {
|
|
747
|
+
onTimeChange: (date: Date) => void;
|
|
748
|
+
time: Date;
|
|
749
|
+
gap?: Gap;
|
|
750
|
+
padding?: Padding;
|
|
751
|
+
addOn?: ReactNode;
|
|
752
|
+
addOnPosition?: "start" | "end";
|
|
753
|
+
onChange?: undefined;
|
|
754
|
+
bare?: boolean;
|
|
755
|
+
}
|
|
756
|
+
declare const timeFormatter: Intl.DateTimeFormat;
|
|
757
|
+
declare const TimeInput: React__default.ForwardRefExoticComponent<TimeInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
758
|
+
|
|
759
|
+
interface TooltipProps {
|
|
760
|
+
content: string;
|
|
761
|
+
jss?: JSS;
|
|
762
|
+
className?: undefined;
|
|
763
|
+
tag?: keyof HTMLElementTagNameMap;
|
|
764
|
+
children: React__default.JSX.Element;
|
|
765
|
+
}
|
|
766
|
+
declare function Tooltip({ content, jss, tag, children }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
767
|
+
|
|
768
|
+
declare function hasCookie(key: string): boolean;
|
|
769
|
+
declare function getCookie<T>(key: string, deserialize?: (s: string) => T): T;
|
|
770
|
+
declare function useCookie<T, L>(key: string, { initialValue, loadingValue, serialize, deserialize, maxAge, }: {
|
|
771
|
+
initialValue: T;
|
|
772
|
+
loadingValue: L;
|
|
773
|
+
serialize?: (t: T) => string;
|
|
774
|
+
deserialize?: (s: string) => T;
|
|
775
|
+
maxAge?: number;
|
|
776
|
+
}): [T | L, (t: T | ((prevValue: T | L) => T)) => void];
|
|
777
|
+
|
|
778
|
+
type KeyboardShortcut<T> = {
|
|
779
|
+
key: string;
|
|
780
|
+
metaKey?: boolean;
|
|
781
|
+
ctrlKey?: boolean;
|
|
782
|
+
action: (root: T) => void;
|
|
783
|
+
onlyWhenFocused?: boolean;
|
|
784
|
+
};
|
|
785
|
+
declare function useKeyboard<T extends HTMLElement>(shortcuts: Array<KeyboardShortcut<T>>): (root: T) => void;
|
|
786
|
+
|
|
787
|
+
declare function useNavigation({ autofocus, rowLength, enabled, }?: {
|
|
788
|
+
autofocus?: boolean;
|
|
789
|
+
rowLength?: number;
|
|
790
|
+
enabled?: boolean;
|
|
791
|
+
}): (root: HTMLElement) => void;
|
|
792
|
+
|
|
793
|
+
declare function usePromise<T>(promiseFactory: () => Promise<T>, inputs: Array<any>, initialValue: T): [T | null, any];
|
|
794
|
+
|
|
795
|
+
declare function useRefEffect<T>(callback: (root: T) => (() => void) | void): (root: T) => void;
|
|
796
|
+
|
|
797
|
+
export { type Align, Badge, BaseButton, type BaseButtonProps, BaseInput, type BaseInputProps, BaseLink, BaseLinkComponentOverrideContext, type BaseLinkProps, BaseList, BaseListAddOn, type BaseListAddOnProps, BaseListItem, type BaseListItemProps, type BaseListProps, BaseView, type BaseViewProps, Box, type BoxProps, Button, type ButtonProps, Calendar, type Callback, Card, type CardProps, Checkbox, Circle, type Color, Column, type ColumnProps, DESKTOP_MEDIA, DarkModeContext, DarkModeProvider, DarkModeToggle, DateInput, type DateInputProps, DatePicker, type DatePickerProps, DatetimeInput, type DatetimeInputProps, Dialog, DialogProvider, type Direction, type Display, Dropdown, type FlexDirection, FlexLayout, type FlexLayoutProps, type Gap, H1, H2, H3, Icon, IconButton, type IconButtonProps, IconLink, type IconLinkProps, IconProvider, type IconType, type JSS, JSSProvider, JSServerStyles, type Justify, type KeyboardShortcut, LAPTOP, LAPTOP_MEDIA, Label, Li, Link, type LinkProps, List, ListButtonItem, ListDivider, ListHeaderItem, ListItem, ListLinkItem, ListSpacer, MOBILE, MOBILE_MEDIA, type Margin, MenuIcon, OnVisible, P, type Padding, Popover, PopoverTrigger, type Position, ProgressBar, ProgressCircle, Providers, RangeInput, type RangeInputProps, type Reducer, RootView, Row, type RowProps, Select, type SelectProps, type Size, type Spacing, Span, StackContextProvider, StaticCheckbox, type Styles, Sublist, SubmitIconInput, type Subscribe, TABLET, TABLET_MEDIA, type Tab, Tabs, type TabsProps, Text, TextArea, type TextAreaProps, type TextColor, TextInput, type TextInputProps, TextInputWithState, type TextInputWithStateProps, TextPairing, type TextPairingProps, type TextProps, type TextType, type Theme, TimeInput, type TimeInputProps, Tooltip, baseStyles, createEmitter, createStorage, cssVar, darkTheme, desktop, getBackground, getBaseStyles, getCookie, getMargin, getPadding, getSize, getSpacing, getTextColor, guid, hasCookie, hash, laptop, lightTheme, mobile, numberToBase, sizes, stateMachineContextFactory, tablet, timeFormatter, toClassnames, useCookie, useDialog, useIsTopOfStack, useKeyboard, useListContext, useNavigation, usePromise, useRefEffect, useStream };
|