aidos-ui 4.0.4 → 4.0.6
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 +801 -68
- package/dist/index.js +3934 -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 +3 -1
- package/dist/vite-plugin-jss-debug.js +57 -74
- package/dist/vite-plugin-jss-debug.js.map +1 -1
- package/package.json +61 -27
- 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 -11
- package/dist/IconButton.js +0 -34
- 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 -123
- 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 -81
- 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 -60
- 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 -77
- package/tsconfig.build.json +0 -23
- package/tsconfig.json +0 -38
package/src/Interactable.tsx
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { JSS, Padding, TextColor, cssVar, getPadding } from "./jss";
|
|
2
|
-
|
|
3
|
-
export type InteractableColor =
|
|
4
|
-
| "positive"
|
|
5
|
-
| "primary"
|
|
6
|
-
| "negative"
|
|
7
|
-
| "dark"
|
|
8
|
-
| "light";
|
|
9
|
-
|
|
10
|
-
const styles = {
|
|
11
|
-
root: {
|
|
12
|
-
cursor: "pointer",
|
|
13
|
-
display: "inline-flex",
|
|
14
|
-
alignItems: "center",
|
|
15
|
-
transition: "opacity 0.1s ease-in",
|
|
16
|
-
outlineColor: cssVar("--outline"),
|
|
17
|
-
"[aria-disabled=true]": {
|
|
18
|
-
color: cssVar("--secondary-text"),
|
|
19
|
-
backgroundColor: cssVar("--background-button-secondary"),
|
|
20
|
-
},
|
|
21
|
-
":focus-visible": {
|
|
22
|
-
outlineWidth: "2px",
|
|
23
|
-
outlineStyle: "solid",
|
|
24
|
-
outlineOffset: -2,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
dark: {
|
|
28
|
-
backgroundColor: "black",
|
|
29
|
-
"[aria-disabled=true]": {
|
|
30
|
-
backgroundColor: cssVar("--background-button-disabled"),
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
light: {
|
|
34
|
-
backgroundColor: "white",
|
|
35
|
-
"[aria-disabled=true]": {
|
|
36
|
-
backgroundColor: cssVar("--background-button-disabled"),
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
positive: {
|
|
40
|
-
backgroundColor: cssVar("--background-button-positive"),
|
|
41
|
-
"[aria-disabled=true]": {
|
|
42
|
-
backgroundColor: cssVar("--background-button-disabled"),
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
primary: {
|
|
46
|
-
backgroundColor: cssVar("--background-button-secondary"),
|
|
47
|
-
"[aria-disabled=true]": {
|
|
48
|
-
backgroundColor: cssVar("--background-button-disabled"),
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
negative: {
|
|
52
|
-
backgroundColor: cssVar("--background-button-negative"),
|
|
53
|
-
"[aria-disabled=true]": {
|
|
54
|
-
backgroundColor: cssVar("--background-button-disabled"),
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
disabled: {
|
|
58
|
-
cursor: "default",
|
|
59
|
-
},
|
|
60
|
-
bare: {
|
|
61
|
-
backgroundColor: "inherit",
|
|
62
|
-
outlineColor: cssVar("--outline"),
|
|
63
|
-
"[aria-disabled=true]": {
|
|
64
|
-
backgroundColor: "inherit",
|
|
65
|
-
},
|
|
66
|
-
"[aria-disabled=true]:hover": {
|
|
67
|
-
backgroundColor: "inherit",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
opacityHover: {
|
|
71
|
-
":hover": {
|
|
72
|
-
opacity: 0.8,
|
|
73
|
-
},
|
|
74
|
-
"[aria-disabled=true]:hover": {
|
|
75
|
-
opacity: 1,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
colorHover: {},
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export function getInteractableJSS({
|
|
82
|
-
color,
|
|
83
|
-
bare,
|
|
84
|
-
disabled,
|
|
85
|
-
animateInteraction,
|
|
86
|
-
padding,
|
|
87
|
-
border,
|
|
88
|
-
}: {
|
|
89
|
-
color: InteractableColor;
|
|
90
|
-
bare: boolean;
|
|
91
|
-
disabled: boolean;
|
|
92
|
-
animateInteraction: boolean;
|
|
93
|
-
padding: Padding;
|
|
94
|
-
border: boolean;
|
|
95
|
-
}): Array<JSS> {
|
|
96
|
-
return [
|
|
97
|
-
styles.root,
|
|
98
|
-
color === "dark" && styles.dark,
|
|
99
|
-
color === "light" && styles.light,
|
|
100
|
-
color === "positive" && styles.positive,
|
|
101
|
-
color === "primary" && styles.primary,
|
|
102
|
-
color === "negative" && styles.negative,
|
|
103
|
-
border && {
|
|
104
|
-
border: `1px solid ${getCSSColor(color, disabled, bare)}`,
|
|
105
|
-
},
|
|
106
|
-
bare && styles.bare,
|
|
107
|
-
disabled && styles.disabled,
|
|
108
|
-
!bare && styles.opacityHover,
|
|
109
|
-
animateInteraction &&
|
|
110
|
-
!disabled && {
|
|
111
|
-
position: "relative",
|
|
112
|
-
":active": {
|
|
113
|
-
opacity: 0.95,
|
|
114
|
-
top: 1,
|
|
115
|
-
},
|
|
116
|
-
"[aria-disabled=true]:active": {
|
|
117
|
-
top: 0,
|
|
118
|
-
opacity: 1,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
getPadding(padding),
|
|
122
|
-
];
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export const getGlyphColor = (
|
|
126
|
-
color: InteractableColor,
|
|
127
|
-
disabled: boolean | undefined,
|
|
128
|
-
bare: boolean | undefined
|
|
129
|
-
): TextColor => {
|
|
130
|
-
if (disabled) {
|
|
131
|
-
return "subtle";
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
switch (color) {
|
|
135
|
-
case "positive":
|
|
136
|
-
return bare ? "highlight" : "light";
|
|
137
|
-
case "negative":
|
|
138
|
-
return bare ? "negative" : "light";
|
|
139
|
-
case "primary":
|
|
140
|
-
return bare ? "primary" : "secondary";
|
|
141
|
-
case "dark":
|
|
142
|
-
return bare ? "primary" : "light";
|
|
143
|
-
case "light":
|
|
144
|
-
return bare ? "light" : "primary";
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
export const getCSSColor = (
|
|
149
|
-
color: InteractableColor,
|
|
150
|
-
disabled: boolean | undefined,
|
|
151
|
-
bare: boolean | undefined
|
|
152
|
-
): string => {
|
|
153
|
-
if (disabled) {
|
|
154
|
-
return cssVar("--subtle-text");
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
switch (color) {
|
|
158
|
-
case "positive":
|
|
159
|
-
return bare ? cssVar("--highlight") : cssVar("--light-text");
|
|
160
|
-
case "negative":
|
|
161
|
-
return bare ? cssVar("--negative-text") : cssVar("--light-text");
|
|
162
|
-
case "primary":
|
|
163
|
-
return bare ? cssVar("--primary-text") : cssVar("--secondary-text");
|
|
164
|
-
case "dark":
|
|
165
|
-
return bare ? cssVar("--primary-text") : cssVar("--light-text");
|
|
166
|
-
case "light":
|
|
167
|
-
return bare ? cssVar("--light-text") : cssVar("--primary-text");
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
export const getInteractableListItemJSS = ({
|
|
172
|
-
bare,
|
|
173
|
-
selected,
|
|
174
|
-
}: {
|
|
175
|
-
bare: boolean;
|
|
176
|
-
selected: boolean;
|
|
177
|
-
}) => {
|
|
178
|
-
return [
|
|
179
|
-
{
|
|
180
|
-
overflow: "hidden",
|
|
181
|
-
flexGrow: 1,
|
|
182
|
-
borderRadius: bare ? cssVar("--border-radius-m") : null,
|
|
183
|
-
textDecoration: "none",
|
|
184
|
-
":hover": {
|
|
185
|
-
backgroundColor: cssVar("--hovered-background"),
|
|
186
|
-
},
|
|
187
|
-
":active:hover": {
|
|
188
|
-
backgroundColor: cssVar("--pressed-background"),
|
|
189
|
-
},
|
|
190
|
-
"[aria-disabled=true]": {
|
|
191
|
-
backgroundColor: cssVar("--primary-background"),
|
|
192
|
-
},
|
|
193
|
-
"[aria-disabled=true]:active:hover": {
|
|
194
|
-
backgroundColor: cssVar("--primary-background"),
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
selected && {
|
|
198
|
-
backgroundColor: bare
|
|
199
|
-
? cssVar("--light-highlight")
|
|
200
|
-
: cssVar("--selected-background"),
|
|
201
|
-
boxShadow: bare ? "" : "inset 1px 1px 2px -1px #0000004a",
|
|
202
|
-
":hover": {
|
|
203
|
-
backgroundColor: cssVar("--hovered-background"),
|
|
204
|
-
},
|
|
205
|
-
":active:hover": {
|
|
206
|
-
backgroundColor: cssVar("--pressed-background"),
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
];
|
|
210
|
-
};
|
package/src/JSSComment.tsx
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from "react";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Injects a real HTML comment node (<!-- ComponentName -->) into the DOM.
|
|
5
|
-
*
|
|
6
|
-
* Renders nothing (null). Uses the React fiber tree to locate the sibling
|
|
7
|
-
* component's first DOM node, then inserts a comment before it.
|
|
8
|
-
* Client-only — no SSR output, no hydration mismatch.
|
|
9
|
-
*/
|
|
10
|
-
export function JSSComment({ name }: { name: string }) {
|
|
11
|
-
const fiberRef = useRef<any>(null);
|
|
12
|
-
|
|
13
|
-
// Capture our fiber during render
|
|
14
|
-
try {
|
|
15
|
-
const internals = (React as any)
|
|
16
|
-
.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
17
|
-
fiberRef.current = internals?.ReactCurrentOwner?.current;
|
|
18
|
-
} catch {}
|
|
19
|
-
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
const fiber = fiberRef.current;
|
|
22
|
-
if (!fiber) return;
|
|
23
|
-
|
|
24
|
-
// Our sibling in the Fragment is the actual component
|
|
25
|
-
const sibling = fiber.sibling;
|
|
26
|
-
if (!sibling) return;
|
|
27
|
-
|
|
28
|
-
// Walk down the sibling's fiber tree to find its first DOM node
|
|
29
|
-
const hostNode = findFirstDOMNode(sibling);
|
|
30
|
-
if (!hostNode?.parentNode) return;
|
|
31
|
-
|
|
32
|
-
const comment = document.createComment(` ${name} `);
|
|
33
|
-
hostNode.parentNode.insertBefore(comment, hostNode);
|
|
34
|
-
|
|
35
|
-
return () => {
|
|
36
|
-
comment.remove();
|
|
37
|
-
};
|
|
38
|
-
}, [name]);
|
|
39
|
-
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function findFirstDOMNode(fiber: any): Node | null {
|
|
44
|
-
let current = fiber;
|
|
45
|
-
while (current) {
|
|
46
|
-
if (current.stateNode instanceof Node) {
|
|
47
|
-
return current.stateNode;
|
|
48
|
-
}
|
|
49
|
-
if (current.child) {
|
|
50
|
-
current = current.child;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
return null;
|
|
56
|
-
}
|
package/src/Link.tsx
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
import { BaseLink, BaseLinkProps } from "./BaseLink";
|
|
4
|
-
import { Text } from "./Text";
|
|
5
|
-
import { IconType } from "./IconType";
|
|
6
|
-
import { Row } from "./Row";
|
|
7
|
-
import { Icon } from "./Icon";
|
|
8
|
-
import { FlexLayoutProps } from "./FlexLayout";
|
|
9
|
-
import { InteractableColor, getGlyphColor, getCSSColor } from "./Interactable";
|
|
10
|
-
import { Size, Align, Gap, Justify, cssVar } from "./jss";
|
|
11
|
-
|
|
12
|
-
export interface LinkProps extends BaseLinkProps {
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
color: InteractableColor;
|
|
15
|
-
size?: Size;
|
|
16
|
-
icon?: IconType;
|
|
17
|
-
underline?: boolean;
|
|
18
|
-
iconSize?: Size;
|
|
19
|
-
iconPosition?: "left" | "right";
|
|
20
|
-
rowProps?: FlexLayoutProps;
|
|
21
|
-
align?: Align;
|
|
22
|
-
gap?: Gap;
|
|
23
|
-
justify?: Justify;
|
|
24
|
-
bold?: boolean;
|
|
25
|
-
inline?: boolean;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const Link = React.forwardRef(
|
|
29
|
-
(
|
|
30
|
-
{
|
|
31
|
-
children,
|
|
32
|
-
color,
|
|
33
|
-
bare,
|
|
34
|
-
disabled,
|
|
35
|
-
icon,
|
|
36
|
-
underline,
|
|
37
|
-
iconSize = "medium",
|
|
38
|
-
iconPosition = "left",
|
|
39
|
-
align = "center",
|
|
40
|
-
gap = "small",
|
|
41
|
-
justify = "center",
|
|
42
|
-
jss,
|
|
43
|
-
size = "medium",
|
|
44
|
-
padding = "medium",
|
|
45
|
-
inline = true,
|
|
46
|
-
bold,
|
|
47
|
-
...otherProps
|
|
48
|
-
}: LinkProps,
|
|
49
|
-
ref?: React.Ref<HTMLAnchorElement>
|
|
50
|
-
) => {
|
|
51
|
-
return (
|
|
52
|
-
<BaseLink
|
|
53
|
-
{...otherProps}
|
|
54
|
-
bare={bare}
|
|
55
|
-
ref={ref}
|
|
56
|
-
color={color}
|
|
57
|
-
disabled={disabled}
|
|
58
|
-
padding={padding}
|
|
59
|
-
jss={[
|
|
60
|
-
{
|
|
61
|
-
borderRadius: cssVar("--border-radius-m"),
|
|
62
|
-
justifyContent: "center",
|
|
63
|
-
userSelect: "none",
|
|
64
|
-
display: inline ? "inline-flex" : "flex",
|
|
65
|
-
textDecoration: "none",
|
|
66
|
-
},
|
|
67
|
-
underline && {
|
|
68
|
-
textDecorationLine: "underline",
|
|
69
|
-
textDecorationThickness: "2px",
|
|
70
|
-
textUnderlineOffset: "2px",
|
|
71
|
-
textDecorationColor: getCSSColor(color, disabled, bare),
|
|
72
|
-
},
|
|
73
|
-
jss,
|
|
74
|
-
]}
|
|
75
|
-
>
|
|
76
|
-
<Row
|
|
77
|
-
jss={{
|
|
78
|
-
display: inline ? "inline-flex" : "flex",
|
|
79
|
-
}}
|
|
80
|
-
grow={true}
|
|
81
|
-
align={align}
|
|
82
|
-
gap={gap}
|
|
83
|
-
justify={justify}
|
|
84
|
-
>
|
|
85
|
-
{icon && iconPosition === "left" && (
|
|
86
|
-
<Icon
|
|
87
|
-
icon={icon}
|
|
88
|
-
size={iconSize}
|
|
89
|
-
color={getGlyphColor(color, disabled, bare)}
|
|
90
|
-
/>
|
|
91
|
-
)}
|
|
92
|
-
<Text
|
|
93
|
-
bold={bold}
|
|
94
|
-
size={size}
|
|
95
|
-
color={getGlyphColor(color, disabled, bare)}
|
|
96
|
-
>
|
|
97
|
-
{children}
|
|
98
|
-
</Text>
|
|
99
|
-
{icon && iconPosition === "right" && (
|
|
100
|
-
<Icon
|
|
101
|
-
icon={icon}
|
|
102
|
-
size={iconSize}
|
|
103
|
-
color={getGlyphColor(color, disabled, bare)}
|
|
104
|
-
/>
|
|
105
|
-
)}
|
|
106
|
-
</Row>
|
|
107
|
-
</BaseLink>
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
);
|
package/src/List.tsx
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React, { useContext, useMemo } from "react";
|
|
2
|
-
import { BaseList, BaseListProps } from "./BaseList";
|
|
3
|
-
import { useNavigation } from "./useNavigation";
|
|
4
|
-
import { cssVar } from "./jss";
|
|
5
|
-
|
|
6
|
-
interface ListProps extends BaseListProps {
|
|
7
|
-
ariaLabel: string;
|
|
8
|
-
bare?: boolean;
|
|
9
|
-
autofocus?: boolean;
|
|
10
|
-
role?: undefined;
|
|
11
|
-
navigation?: boolean;
|
|
12
|
-
carded?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const ListContext = React.createContext({ bare: false, carded: true });
|
|
16
|
-
|
|
17
|
-
export function List({
|
|
18
|
-
ariaLabel,
|
|
19
|
-
jss,
|
|
20
|
-
autofocus = false,
|
|
21
|
-
navigation = true,
|
|
22
|
-
bare,
|
|
23
|
-
carded = true,
|
|
24
|
-
...otherProps
|
|
25
|
-
}: ListProps) {
|
|
26
|
-
const rootRef = useNavigation({ autofocus, enabled: navigation });
|
|
27
|
-
const contextValue = useMemo(() => ({ bare, carded }), [bare, carded]);
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<ListContext.Provider value={contextValue}>
|
|
31
|
-
<BaseList
|
|
32
|
-
role="grid"
|
|
33
|
-
aria-label={ariaLabel}
|
|
34
|
-
ref={rootRef}
|
|
35
|
-
jss={[
|
|
36
|
-
{ overflow: "hidden" },
|
|
37
|
-
!bare && {
|
|
38
|
-
backgroundColor: cssVar("--overlay-background"),
|
|
39
|
-
},
|
|
40
|
-
!bare &&
|
|
41
|
-
!carded && {
|
|
42
|
-
borderBottom: `1px solid ${cssVar("--divider")}`,
|
|
43
|
-
borderTop: `1px solid ${cssVar("--divider")}`,
|
|
44
|
-
},
|
|
45
|
-
!bare &&
|
|
46
|
-
carded && {
|
|
47
|
-
border: `1px solid ${cssVar("--divider")}`,
|
|
48
|
-
borderRadius: cssVar("--border-radius-l"),
|
|
49
|
-
},
|
|
50
|
-
jss,
|
|
51
|
-
]}
|
|
52
|
-
{...otherProps}
|
|
53
|
-
/>
|
|
54
|
-
</ListContext.Provider>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export const useListContext = () => useContext(ListContext);
|
package/src/ListButtonItem.tsx
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { BaseListItem, BaseListItemProps } from "./BaseListItem";
|
|
4
|
-
import {
|
|
5
|
-
InteractableColor,
|
|
6
|
-
getGlyphColor,
|
|
7
|
-
getInteractableListItemJSS,
|
|
8
|
-
} from "./Interactable";
|
|
9
|
-
import { BaseButton } from "./BaseButton";
|
|
10
|
-
import { useListContext } from "./List";
|
|
11
|
-
|
|
12
|
-
// @ts-ignore
|
|
13
|
-
interface ListButtonItemProps extends BaseListItemProps {
|
|
14
|
-
color: InteractableColor;
|
|
15
|
-
onClick: () => void;
|
|
16
|
-
headline: string;
|
|
17
|
-
body?: string;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
selected?: boolean;
|
|
20
|
-
children?: void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const ListButtonItem = React.forwardRef(
|
|
24
|
-
(
|
|
25
|
-
{
|
|
26
|
-
onClick,
|
|
27
|
-
color = "primary",
|
|
28
|
-
disabled = false,
|
|
29
|
-
padding = "medium",
|
|
30
|
-
jss,
|
|
31
|
-
gap,
|
|
32
|
-
selected,
|
|
33
|
-
...otherProps
|
|
34
|
-
}: ListButtonItemProps,
|
|
35
|
-
ref?: React.Ref<HTMLButtonElement>
|
|
36
|
-
) => {
|
|
37
|
-
const { bare } = useListContext();
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<BaseListItem
|
|
41
|
-
withDivider={!bare}
|
|
42
|
-
disabled={disabled}
|
|
43
|
-
padding="none"
|
|
44
|
-
gap={gap}
|
|
45
|
-
headlineColor={getGlyphColor(color, disabled, true)}
|
|
46
|
-
bodyColor={getGlyphColor(color, disabled, true)}
|
|
47
|
-
selected={selected}
|
|
48
|
-
aria-selected={selected}
|
|
49
|
-
{...otherProps}
|
|
50
|
-
jss={jss}
|
|
51
|
-
>
|
|
52
|
-
{({ content }) => (
|
|
53
|
-
<BaseButton
|
|
54
|
-
padding={padding}
|
|
55
|
-
disabled={disabled}
|
|
56
|
-
animateInteraction={false}
|
|
57
|
-
bare={true}
|
|
58
|
-
color={bare ? "primary" : color}
|
|
59
|
-
ref={ref}
|
|
60
|
-
jss={getInteractableListItemJSS({ bare, selected })}
|
|
61
|
-
onClick={onClick}
|
|
62
|
-
>
|
|
63
|
-
{content}
|
|
64
|
-
</BaseButton>
|
|
65
|
-
)}
|
|
66
|
-
</BaseListItem>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
);
|
package/src/ListDivider.tsx
DELETED
package/src/ListHeaderItem.tsx
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { BaseListItem } from "./BaseListItem";
|
|
3
|
-
import { Position, cssVar } from "./jss";
|
|
4
|
-
import { useListContext } from "./List";
|
|
5
|
-
|
|
6
|
-
export function ListHeaderItem({
|
|
7
|
-
highlight,
|
|
8
|
-
headline,
|
|
9
|
-
body,
|
|
10
|
-
withDivider,
|
|
11
|
-
addOn,
|
|
12
|
-
addOnPosition,
|
|
13
|
-
}: {
|
|
14
|
-
highlight?: boolean;
|
|
15
|
-
headline: string;
|
|
16
|
-
body?: string;
|
|
17
|
-
withDivider?: boolean;
|
|
18
|
-
addOn?: ReactNode;
|
|
19
|
-
addOnPosition?: Position;
|
|
20
|
-
}) {
|
|
21
|
-
const { bare } = useListContext();
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<BaseListItem
|
|
25
|
-
headline={headline}
|
|
26
|
-
headlineColor={highlight ? (bare ? "highlight" : "light") : "primary"}
|
|
27
|
-
headlineBold={true}
|
|
28
|
-
body={body}
|
|
29
|
-
addOn={addOn}
|
|
30
|
-
addOnPosition={addOnPosition}
|
|
31
|
-
withDivider={bare ? false : withDivider}
|
|
32
|
-
jss={
|
|
33
|
-
bare
|
|
34
|
-
? null
|
|
35
|
-
: {
|
|
36
|
-
backgroundColor: highlight
|
|
37
|
-
? cssVar("--highlight")
|
|
38
|
-
: cssVar("--secondary-background"),
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
>
|
|
42
|
-
{({ content }) => content}
|
|
43
|
-
</BaseListItem>
|
|
44
|
-
);
|
|
45
|
-
}
|
package/src/ListItem.tsx
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { BaseListItem, BaseListItemProps } from "./BaseListItem";
|
|
4
|
-
import { cssVar } from "./jss";
|
|
5
|
-
import { useListContext } from "./List";
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
interface ListItemProps extends BaseListItemProps {
|
|
9
|
-
headline: string;
|
|
10
|
-
body?: string;
|
|
11
|
-
children?: void;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const ListItem = React.forwardRef(
|
|
15
|
-
(props: ListItemProps, ref?: React.Ref<HTMLLIElement>) => {
|
|
16
|
-
const { bare } = useListContext();
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<BaseListItem withDivider={!bare} {...props} jss={props.jss} ref={ref}>
|
|
20
|
-
{({ content }) => content}
|
|
21
|
-
</BaseListItem>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
);
|
package/src/ListLinkItem.tsx
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { BaseListItem, BaseListItemProps } from "./BaseListItem";
|
|
4
|
-
import {
|
|
5
|
-
InteractableColor,
|
|
6
|
-
getGlyphColor,
|
|
7
|
-
getInteractableListItemJSS,
|
|
8
|
-
} from "./Interactable";
|
|
9
|
-
import { BaseLink } from "./BaseLink";
|
|
10
|
-
import { useListContext } from "./List";
|
|
11
|
-
|
|
12
|
-
// @ts-ignore
|
|
13
|
-
interface ListLinkItemProps extends BaseListItemProps {
|
|
14
|
-
color?: InteractableColor;
|
|
15
|
-
children?: void;
|
|
16
|
-
onClick?: () => void;
|
|
17
|
-
href: string;
|
|
18
|
-
headline: string;
|
|
19
|
-
body?: string;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
selected?: boolean;
|
|
22
|
-
target?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const ListLinkItem = React.forwardRef(
|
|
26
|
-
(
|
|
27
|
-
{
|
|
28
|
-
onClick,
|
|
29
|
-
href,
|
|
30
|
-
disabled = false,
|
|
31
|
-
padding = "medium",
|
|
32
|
-
jss,
|
|
33
|
-
gap,
|
|
34
|
-
selected,
|
|
35
|
-
color = "primary",
|
|
36
|
-
target,
|
|
37
|
-
...otherProps
|
|
38
|
-
}: ListLinkItemProps,
|
|
39
|
-
ref?: React.Ref<HTMLAnchorElement>
|
|
40
|
-
) => {
|
|
41
|
-
const { bare } = useListContext();
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<BaseListItem
|
|
45
|
-
withDivider={!bare}
|
|
46
|
-
disabled={disabled}
|
|
47
|
-
aria-selected={selected}
|
|
48
|
-
padding="none"
|
|
49
|
-
gap={gap}
|
|
50
|
-
headlineColor={getGlyphColor(color, disabled, true)}
|
|
51
|
-
bodyColor={getGlyphColor(color, disabled, true)}
|
|
52
|
-
selected={selected}
|
|
53
|
-
{...otherProps}
|
|
54
|
-
jss={jss}
|
|
55
|
-
>
|
|
56
|
-
{({ content }) => (
|
|
57
|
-
<BaseLink
|
|
58
|
-
target={target}
|
|
59
|
-
padding={padding}
|
|
60
|
-
aria-current={selected ? "page" : undefined}
|
|
61
|
-
disabled={disabled}
|
|
62
|
-
animateInteraction={false}
|
|
63
|
-
bare={true}
|
|
64
|
-
color={color}
|
|
65
|
-
href={href}
|
|
66
|
-
ref={ref}
|
|
67
|
-
jss={getInteractableListItemJSS({ bare, selected })}
|
|
68
|
-
onClick={onClick}
|
|
69
|
-
>
|
|
70
|
-
{content}
|
|
71
|
-
</BaseLink>
|
|
72
|
-
)}
|
|
73
|
-
</BaseListItem>
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
);
|
package/src/ListSpacer.tsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseView } from "./BaseView";
|
|
3
|
-
|
|
4
|
-
const styles = {
|
|
5
|
-
root: {
|
|
6
|
-
height: "var(--spacing-xl)",
|
|
7
|
-
backgroundColor: "var(--secondary-background)",
|
|
8
|
-
width: "100%",
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export function ListSpacer() {
|
|
13
|
-
return <BaseView jss={styles.root} />;
|
|
14
|
-
}
|