@conveyorhq/arrow-ds 2.0.0-beta.7 → 2.0.0-beta.9
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/package.json +15 -14
- package/public/components/Accordion/Accordion.js +8 -10
- package/public/components/Avatar/Avatar.js +20 -19
- package/public/components/Button/Button.js +2 -2
- package/public/components/ConveyorLogo/ConveyorLogo.js +6 -6
- package/public/components/Drawer/Drawer.js +7 -7
- package/public/components/Frame/Frame.d.ts +1 -1
- package/public/components/Icon/Icon.d.ts +1 -0
- package/public/components/Icon/Icon.js +3 -1
- package/public/components/MenuRenderer/MenuRenderer.js +4 -7
- package/public/components/Modal/Modal.js +1 -1
- package/public/components/OptionButton/OptionButton.js +18 -13
- package/public/components/Select/Select.js +4 -4
- package/public/components/Select/SelectPopover.js +6 -6
- package/public/components/Select/index.d.ts +2 -0
- package/public/components/Select/index.js +3 -0
- package/public/components/Select/theme.js +22 -22
- package/public/components/Svg/Svg.d.ts +3 -3
- package/public/components/Svg/Svg.js +1 -2
- package/public/components/Tooltip/Tooltip.js +11 -19
- package/public/components/VisuallyHidden/VisuallyHidden.d.ts +2 -1
- package/public/components/VisuallyHidden/VisuallyHidden.js +3 -5
- package/public/css/styles.css +139 -59
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/public/hooks/index.d.ts +3 -0
- package/public/hooks/index.js +7 -1
- package/public/hooks/useMatchMedia.d.ts +1 -0
- package/public/hooks/useMatchMedia.js +27 -0
- package/public/hooks/usePrefersReducedMotion.d.ts +1 -0
- package/public/hooks/usePrefersReducedMotion.js +9 -0
- package/public/hooks/useScreenOrientation.d.ts +1 -0
- package/public/hooks/useScreenOrientation.js +24 -0
- package/public/{style-dictionary → src/style-dictionary}/dist/tokens.css +1 -0
- package/public/src/style-dictionary/dist/tokens.d.ts +428 -0
- package/public/src/style-dictionary/dist/tokens.js +428 -0
- package/public/src/style-dictionary/dist/tokens.module.js +428 -0
- package/public/src/style-dictionary/tailwind.config.js +87 -0
- package/public/storybook-components/EnumTable.js +2 -1
- package/public/storybook-components/Story.d.ts +2 -1
- package/public/storybook-components/Story.js +4 -1
- package/public/style-dictionary/dist/tokens.d.ts +428 -422
- package/public/style-dictionary/dist/tokens.js +415 -416
- package/public/style-dictionary/dist/tokens.module.d.ts +431 -0
- package/public/style-dictionary/dist/tokens.module.js +412 -415
- package/public/style-dictionary/src/border-radius.d.ts +31 -0
- package/public/style-dictionary/src/border-radius.js +10 -9
- package/public/style-dictionary/src/border-width.d.ts +21 -0
- package/public/style-dictionary/src/border-width.js +9 -8
- package/public/style-dictionary/src/color.d.ts +249 -0
- package/public/style-dictionary/src/color.js +97 -95
- package/public/style-dictionary/src/font-size.d.ts +45 -0
- package/public/style-dictionary/src/font-size.js +14 -13
- package/public/style-dictionary/src/font-weight.d.ts +13 -0
- package/public/style-dictionary/src/font-weight.js +6 -5
- package/public/style-dictionary/src/height.d.ts +215 -0
- package/public/style-dictionary/src/height.js +10 -10
- package/public/style-dictionary/src/leading.d.ts +17 -0
- package/public/style-dictionary/src/leading.js +7 -6
- package/public/style-dictionary/src/screen-width.d.ts +17 -0
- package/public/style-dictionary/src/screen-width.js +7 -6
- package/public/style-dictionary/src/shadow.d.ts +63 -0
- package/public/style-dictionary/src/shadow.js +19 -18
- package/public/style-dictionary/src/spacing.d.ts +197 -0
- package/public/style-dictionary/src/spacing.js +68 -67
- package/public/style-dictionary/src/tracking.d.ts +13 -0
- package/public/style-dictionary/src/tracking.js +6 -5
- package/public/style-dictionary/src/type.d.ts +13 -0
- package/public/style-dictionary/src/type.js +32 -31
- package/public/style-dictionary/src/width.d.ts +287 -0
- package/public/style-dictionary/src/width.js +29 -29
- package/public/style-dictionary/src/z-index.d.ts +53 -0
- package/public/style-dictionary/src/z-index.js +20 -19
- package/public/style-dictionary/tailwind.config.d.ts +392 -0
- package/public/style-dictionary/tailwind.config.js +51 -72
- package/src/components/Accordion/Accordion.tsx +39 -27
- package/src/components/Avatar/Avatar.tsx +20 -19
- package/src/components/Button/Button.tsx +3 -3
- package/src/components/Button/index.css +12 -1
- package/src/components/Card/Card.story.mdx +45 -37
- package/src/components/ConveyorLogo/ConveyorLogo.tsx +6 -6
- package/src/components/Drawer/Drawer.tsx +1 -1
- package/src/components/Frame/Frame.story.mdx +140 -5
- package/src/components/Frame/Frame.tsx +1 -1
- package/src/components/Frame/index.css +8 -13
- package/src/components/Icon/Icon.tsx +3 -0
- package/src/components/MenuRenderer/MenuRenderer.tsx +7 -9
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/Modal/index.css +8 -3
- package/src/components/OptionButton/OptionButton.story.mdx +91 -36
- package/src/components/OptionButton/OptionButton.tsx +19 -18
- package/src/components/OptionButton/index.css +13 -0
- package/src/components/Overlay/Overlay.story.mdx +26 -0
- package/src/components/Select/Select.tsx +4 -4
- package/src/components/Select/SelectPopover.tsx +6 -6
- package/src/components/Select/index.ts +14 -0
- package/src/components/Select/theme.ts +22 -22
- package/src/components/Svg/Svg.story.mdx +36 -0
- package/src/components/Svg/Svg.tsx +6 -4
- package/src/components/Text/Text.story.mdx +34 -0
- package/src/components/Tooltip/Tooltip.story.mdx +21 -0
- package/src/components/Tooltip/Tooltip.tsx +23 -27
- package/src/components/Tooltip/index.css +31 -0
- package/src/components/VisuallyHidden/VisuallyHidden.story.mdx +54 -0
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +10 -5
- package/src/components/VisuallyHidden/index.css +3 -0
- package/src/css/components.css +2 -0
- package/src/docs/Colors.story.mdx +13 -13
- package/src/docs/Spacing.story.mdx +4 -20
- package/src/docs/Tokens.story.mdx +230 -0
- package/src/docs/Typography.story.mdx +17 -94
- package/src/docs/hooks/useDisclosureHook.story.mdx +58 -0
- package/src/docs/hooks/useKeyPressHook.story.mdx +54 -0
- package/src/docs/hooks/useMatchMediaHook.story.mdx +42 -0
- package/src/docs/hooks/useOutsideClickHook.story.mdx +56 -0
- package/src/docs/hooks/usePrefersReducedMotion.story.mdx +61 -0
- package/src/docs/hooks/useScreenOrientationHook.story.mdx +56 -0
- package/src/docs/hooks/useStepHook.story.mdx +102 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useMatchMedia.ts +40 -0
- package/src/hooks/usePrefersReducedMotion.ts +9 -0
- package/src/hooks/useScreenOrientation.ts +27 -0
- package/src/storybook-components/EnumTable.tsx +3 -2
- package/src/storybook-components/Story.tsx +13 -1
- package/src/style-dictionary/dist/tokens.css +378 -0
- package/src/style-dictionary/dist/tokens.d.ts +428 -0
- package/src/style-dictionary/dist/tokens.js +428 -0
- package/src/style-dictionary/dist/tokens.module.js +428 -0
- package/src/style-dictionary/src/border-radius.js +11 -0
- package/src/style-dictionary/src/border-width.js +10 -0
- package/src/style-dictionary/src/color.js +98 -0
- package/src/style-dictionary/src/font-size.js +15 -0
- package/src/style-dictionary/src/font-weight.js +7 -0
- package/src/style-dictionary/src/height.js +13 -0
- package/src/style-dictionary/src/leading.js +8 -0
- package/src/style-dictionary/src/screen-width.js +8 -0
- package/src/style-dictionary/src/shadow.js +19 -0
- package/src/style-dictionary/src/spacing.js +69 -0
- package/src/style-dictionary/src/tracking.js +7 -0
- package/src/style-dictionary/src/type.js +34 -0
- package/src/style-dictionary/src/width.js +32 -0
- package/src/style-dictionary/src/z-index.js +21 -0
- package/src/style-dictionary/tailwind.config.js +87 -0
- package/src/tokens/borders.ts +6 -0
- package/src/tokens/box-shadow.ts +3 -0
- package/src/tokens/colors.ts +6 -0
- package/src/tokens/font-family.ts +3 -0
- package/src/tokens/font-size.ts +3 -0
- package/src/tokens/font-weight.ts +3 -0
- package/src/tokens/height.ts +3 -0
- package/src/tokens/index.ts +3 -2
- package/src/tokens/letter-spacing.ts +3 -0
- package/src/tokens/line-height.ts +3 -0
- package/src/tokens/margin.ts +3 -0
- package/src/tokens/padding.ts +3 -0
- package/src/tokens/screens.ts +3 -0
- package/src/tokens/sizing-scale.ts +6 -0
- package/src/tokens/width.ts +9 -0
- package/src/tokens/will-change.ts +3 -0
- package/src/tokens/z-index.ts +3 -0
- package/src/types/index.ts +3 -0
- package/public/components/Overlay/Overlay.story.d.ts +0 -1
- package/public/components/Overlay/Overlay.story.js +0 -12
- package/public/components/Svg/Svg.story.d.ts +0 -1
- package/public/components/Svg/Svg.story.js +0 -14
- package/public/components/Text/Text.story.d.ts +0 -1
- package/public/components/Text/Text.story.js +0 -31
- package/public/components/VisuallyHidden/VisuallyHidden.story.d.ts +0 -1
- package/public/components/VisuallyHidden/VisuallyHidden.story.js +0 -36
- package/public/components/useStep/ExampleSetupWizard.d.ts +0 -4
- package/public/components/useStep/ExampleSetupWizard.js +0 -33
- package/src/components/Overlay/Overlay.md +0 -14
- package/src/components/Overlay/Overlay.story.tsx +0 -12
- package/src/components/Svg/Svg.md +0 -14
- package/src/components/Svg/Svg.story.tsx +0 -15
- package/src/components/Text/Text.md +0 -14
- package/src/components/Text/Text.story.tsx +0 -12
- package/src/components/VisuallyHidden/VisuallyHidden.md +0 -23
- package/src/components/VisuallyHidden/VisuallyHidden.story.tsx +0 -19
- package/src/components/useStep/ExampleSetupWizard.tsx +0 -63
- package/src/components/useStep/useStep.story.mdx +0 -76
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
type: {
|
|
3
|
+
sans: {
|
|
4
|
+
value: [
|
|
5
|
+
"'Neue Montreal'",
|
|
6
|
+
"system-ui",
|
|
7
|
+
"BlinkMacSystemFont",
|
|
8
|
+
"-apple-system",
|
|
9
|
+
"'Segoe UI'",
|
|
10
|
+
"'Roboto'",
|
|
11
|
+
"'Oxygen'",
|
|
12
|
+
"'Ubuntu'",
|
|
13
|
+
"'Cantarell'",
|
|
14
|
+
"'Fira Sans'",
|
|
15
|
+
"'Droid Sans'",
|
|
16
|
+
"'Helvetica Neue'",
|
|
17
|
+
"sans-serif",
|
|
18
|
+
].join(", "),
|
|
19
|
+
},
|
|
20
|
+
serif: {
|
|
21
|
+
value: ["'Copernicus'", "serif"].join(", "),
|
|
22
|
+
},
|
|
23
|
+
mono: {
|
|
24
|
+
value: [
|
|
25
|
+
"'Menlo'",
|
|
26
|
+
"'Monaco'",
|
|
27
|
+
"'Consolas'",
|
|
28
|
+
"'Liberation Mono'",
|
|
29
|
+
"'Courier New'",
|
|
30
|
+
"monospace",
|
|
31
|
+
].join(", "),
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const spacing = require("./spacing").spacing;
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
width: {
|
|
5
|
+
...spacing,
|
|
6
|
+
"one-half": { value: "50%", tailwindId: "1/2" },
|
|
7
|
+
"one-third": { value: "33.33333%", tailwindId: "1/3" },
|
|
8
|
+
"two-thirds": { value: "66.66667%", tailwindId: "2/3" },
|
|
9
|
+
"one-quarter": { value: "25%", tailwindId: "1/4" },
|
|
10
|
+
"three-quarters": { value: "75%", tailwindId: "3/4" },
|
|
11
|
+
"one-fifth": { value: "20%", tailwindId: "1/5" },
|
|
12
|
+
"two-fifths": { value: "40%", tailwindId: "2/5" },
|
|
13
|
+
"three-fifths": { value: "60%", tailwindId: "3/5" },
|
|
14
|
+
"four-fifths": { value: "80%", tailwindId: "4/5" },
|
|
15
|
+
"one-sixth": { value: "16.66667%", tailwindId: "1/6" },
|
|
16
|
+
"five-sixths": { value: "83.33333%", tailwindId: "5/6" },
|
|
17
|
+
auto: { value: "auto" },
|
|
18
|
+
px: { value: "1px" },
|
|
19
|
+
full: { value: "100%" },
|
|
20
|
+
screen: { value: "100vw" },
|
|
21
|
+
"max-content": { value: "max-content" },
|
|
22
|
+
xs: { value: "20rem" },
|
|
23
|
+
sm: { value: "30rem" },
|
|
24
|
+
md: { value: "40rem" },
|
|
25
|
+
lg: { value: "50rem" },
|
|
26
|
+
xl: { value: "60rem" },
|
|
27
|
+
"two-xl": { value: "70rem", tailwindId: "2xl" },
|
|
28
|
+
"three-xl": { value: "80rem", tailwindId: "3xl" },
|
|
29
|
+
"four-xl": { value: "90rem", tailwindId: "4xl" },
|
|
30
|
+
"five-xl": { value: "100rem", tailwindId: "5xl" },
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
zIndex: {
|
|
3
|
+
auto: { value: "auto" },
|
|
4
|
+
"0": { value: 0 },
|
|
5
|
+
"10": { value: 10 },
|
|
6
|
+
"20": { value: 20 },
|
|
7
|
+
"30": { value: 30 },
|
|
8
|
+
"40": { value: 40 },
|
|
9
|
+
"50": { value: 50 },
|
|
10
|
+
below: { value: -1 },
|
|
11
|
+
default: { value: 1 },
|
|
12
|
+
popup: { value: 400 },
|
|
13
|
+
dialog: { value: 500 },
|
|
14
|
+
dropdown: { value: 600 },
|
|
15
|
+
overlay: { value: 700 },
|
|
16
|
+
menu: { value: 800 },
|
|
17
|
+
modal: { value: 900 },
|
|
18
|
+
toast: { value: 1000 },
|
|
19
|
+
max: { value: 2147483647 },
|
|
20
|
+
},
|
|
21
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const {
|
|
2
|
+
borderRadius,
|
|
3
|
+
borderWidth,
|
|
4
|
+
color,
|
|
5
|
+
fontSize,
|
|
6
|
+
fontWeight,
|
|
7
|
+
height,
|
|
8
|
+
leading,
|
|
9
|
+
screenWidth,
|
|
10
|
+
shadow,
|
|
11
|
+
spacing,
|
|
12
|
+
tracking,
|
|
13
|
+
type,
|
|
14
|
+
width,
|
|
15
|
+
zIndex,
|
|
16
|
+
} = require("./dist/tokens.module");
|
|
17
|
+
|
|
18
|
+
const colors = {
|
|
19
|
+
...color,
|
|
20
|
+
current: "currentColor",
|
|
21
|
+
transparent: "transparent",
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const borderColor = {
|
|
25
|
+
DEFAULT: color.gray[400],
|
|
26
|
+
...colors,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const margin = {
|
|
30
|
+
...spacing,
|
|
31
|
+
auto: "auto",
|
|
32
|
+
px: "1px",
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const padding = {
|
|
36
|
+
...spacing,
|
|
37
|
+
px: "1px",
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const willChange = {
|
|
41
|
+
auto: "auto",
|
|
42
|
+
scroll: "scroll-position",
|
|
43
|
+
contents: "contents",
|
|
44
|
+
opacity: "opacity",
|
|
45
|
+
transform: "transform",
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const extend = {
|
|
49
|
+
transitionProperty: {
|
|
50
|
+
input: ["border-color", "box-shadow", "color"],
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
module.exports = {
|
|
55
|
+
config: {
|
|
56
|
+
content: [],
|
|
57
|
+
theme: {
|
|
58
|
+
backgroundColor: colors,
|
|
59
|
+
borderColor,
|
|
60
|
+
borderRadius,
|
|
61
|
+
borderWidth,
|
|
62
|
+
boxShadow: shadow,
|
|
63
|
+
colors,
|
|
64
|
+
fontFamily: type,
|
|
65
|
+
fontSize,
|
|
66
|
+
fontWeight,
|
|
67
|
+
gap: spacing,
|
|
68
|
+
height,
|
|
69
|
+
letterSpacing: tracking,
|
|
70
|
+
lineHeight: leading,
|
|
71
|
+
margin,
|
|
72
|
+
maxHeight: height,
|
|
73
|
+
maxWidth: width,
|
|
74
|
+
minHeight: height,
|
|
75
|
+
minWidth: width,
|
|
76
|
+
padding,
|
|
77
|
+
screens: screenWidth,
|
|
78
|
+
spacing,
|
|
79
|
+
textColor: colors,
|
|
80
|
+
width,
|
|
81
|
+
willChange,
|
|
82
|
+
zIndex,
|
|
83
|
+
extend,
|
|
84
|
+
},
|
|
85
|
+
plugins: [],
|
|
86
|
+
},
|
|
87
|
+
};
|
package/src/tokens/borders.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Please use style-dictionary/border-width
|
|
3
|
+
*/
|
|
1
4
|
export const borderWidth = {
|
|
2
5
|
DEFAULT: "1px",
|
|
3
6
|
"0": "0",
|
|
@@ -6,6 +9,9 @@ export const borderWidth = {
|
|
|
6
9
|
"8": "8px",
|
|
7
10
|
};
|
|
8
11
|
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Please use style-dictionary/border-radius
|
|
14
|
+
*/
|
|
9
15
|
export const borderRadius = {
|
|
10
16
|
none: "0",
|
|
11
17
|
px: "1px",
|
package/src/tokens/box-shadow.ts
CHANGED
package/src/tokens/colors.ts
CHANGED
|
@@ -106,6 +106,9 @@ const functionalColors = {
|
|
|
106
106
|
link: blue["400"],
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated Please use style-dictionary/color
|
|
111
|
+
*/
|
|
109
112
|
export const colors = {
|
|
110
113
|
transparent: "transparent",
|
|
111
114
|
white: "#fff",
|
|
@@ -126,6 +129,9 @@ export const colors = {
|
|
|
126
129
|
...functionalColors,
|
|
127
130
|
};
|
|
128
131
|
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated Please use style-dictionary/color
|
|
134
|
+
*/
|
|
129
135
|
export const borderColors = {
|
|
130
136
|
DEFAULT: gray["400"],
|
|
131
137
|
...colors,
|
package/src/tokens/font-size.ts
CHANGED
package/src/tokens/height.ts
CHANGED
package/src/tokens/index.ts
CHANGED
|
@@ -14,6 +14,9 @@ import { maxWidth, minWidth, width } from "./width";
|
|
|
14
14
|
import { willChange } from "./will-change";
|
|
15
15
|
import { zIndex } from "./z-index";
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Please use the tokens from style-dictionary instead
|
|
19
|
+
*/
|
|
17
20
|
export const tokens = {
|
|
18
21
|
borderColors,
|
|
19
22
|
borderRadius,
|
|
@@ -37,8 +40,6 @@ export const tokens = {
|
|
|
37
40
|
zIndex,
|
|
38
41
|
};
|
|
39
42
|
|
|
40
|
-
// Deprecated: tokens should be exported as part of the tokens object
|
|
41
|
-
// These exports should be removed in arrow-ds 2.0
|
|
42
43
|
export * from "./borders";
|
|
43
44
|
export * from "./colors";
|
|
44
45
|
export * from "./height";
|
package/src/tokens/margin.ts
CHANGED
package/src/tokens/padding.ts
CHANGED
package/src/tokens/screens.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Please use style-dictionary/spacing
|
|
3
|
+
*/
|
|
1
4
|
export const positiveScale = {
|
|
2
5
|
0: "0",
|
|
3
6
|
1: "4px",
|
|
@@ -66,6 +69,9 @@ export const positiveScale = {
|
|
|
66
69
|
64: "256px",
|
|
67
70
|
};
|
|
68
71
|
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Please use style-dictionary/spacing
|
|
74
|
+
*/
|
|
69
75
|
export const negativeScale = {
|
|
70
76
|
"-1": "-4px",
|
|
71
77
|
"-2": "-8px",
|
package/src/tokens/width.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { positiveScale } from "./sizing-scale";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Please use style-dictionary/width
|
|
5
|
+
*/
|
|
3
6
|
export const width = {
|
|
4
7
|
...positiveScale,
|
|
5
8
|
"1/2": "50%",
|
|
@@ -20,11 +23,17 @@ export const width = {
|
|
|
20
23
|
"max-content": "max-content",
|
|
21
24
|
};
|
|
22
25
|
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Please use style-dictionary/width
|
|
28
|
+
*/
|
|
23
29
|
export const minWidth = {
|
|
24
30
|
...positiveScale,
|
|
25
31
|
full: "100%",
|
|
26
32
|
};
|
|
27
33
|
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Please use style-dictionary/width
|
|
36
|
+
*/
|
|
28
37
|
export const maxWidth = {
|
|
29
38
|
...positiveScale,
|
|
30
39
|
xs: "20rem",
|
package/src/tokens/z-index.ts
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const react_2 = require("@storybook/react");
|
|
8
|
-
const Story_1 = __importDefault(require("../../storybook-components/Story"));
|
|
9
|
-
const Overlay_1 = require("./Overlay");
|
|
10
|
-
const stories = react_2.storiesOf("Components/Layout/Overlay", module);
|
|
11
|
-
stories.add("Default", () => (react_1.default.createElement(Story_1.default, { title: "Overlay" },
|
|
12
|
-
react_1.default.createElement(Overlay_1.Overlay, null))));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const react_2 = require("@storybook/react");
|
|
8
|
-
const Story_1 = __importDefault(require("../../storybook-components/Story"));
|
|
9
|
-
const tokens_1 = require("../../tokens");
|
|
10
|
-
const Svg_1 = require("./Svg");
|
|
11
|
-
const stories = react_2.storiesOf("Components/Images/Svg", module);
|
|
12
|
-
stories.add("Default", () => (react_1.default.createElement(Story_1.default, { title: "Svg" },
|
|
13
|
-
react_1.default.createElement(Svg_1.Svg, { viewBox: "0 0 300 100", fill: tokens_1.colors.gray["900"] },
|
|
14
|
-
react_1.default.createElement("circle", { cx: "50", cy: "50", r: "40" })))));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
const React = __importStar(require("react"));
|
|
26
|
-
const react_1 = require("@storybook/react");
|
|
27
|
-
const Story_1 = __importDefault(require("../../storybook-components/Story"));
|
|
28
|
-
const Text_1 = require("./Text");
|
|
29
|
-
const stories = react_1.storiesOf("Components/Typography/Text", module);
|
|
30
|
-
stories.add("Default", () => (React.createElement(Story_1.default, { title: "Text" },
|
|
31
|
-
React.createElement(Text_1.Text, null, "This is the Text component"))));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
const React = __importStar(require("react"));
|
|
26
|
-
const react_1 = require("@storybook/react");
|
|
27
|
-
const Story_1 = __importDefault(require("../../storybook-components/Story"));
|
|
28
|
-
const Box_1 = require("../Box");
|
|
29
|
-
const Icon_1 = require("../Icon");
|
|
30
|
-
const VisuallyHidden_1 = require("./VisuallyHidden");
|
|
31
|
-
const stories = react_1.storiesOf("Components/Disclosure/Visually Hidden", module);
|
|
32
|
-
stories.add("Default", () => (React.createElement(Story_1.default, { title: "VisuallyHidden" },
|
|
33
|
-
React.createElement(Box_1.Box, { className: "p-12" },
|
|
34
|
-
React.createElement("button", { type: "button" },
|
|
35
|
-
React.createElement(VisuallyHidden_1.VisuallyHidden, { as: "span" }, "Sync"),
|
|
36
|
-
React.createElement(Icon_1.Icon, { icon: Icon_1.ICON_TYPE.SYNC }))))));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ExampleSetupWizard = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const Box_1 = require("../Box");
|
|
9
|
-
const Panel_1 = require("../Panel");
|
|
10
|
-
const Button_1 = require("../Button");
|
|
11
|
-
const useStep_1 = require("../../hooks/useStep");
|
|
12
|
-
const ExampleSetupWizard = ({ steps, initialStep, }) => {
|
|
13
|
-
const { step, goToNextStep, goToPreviousStep, goToStep } = useStep_1.useStep({
|
|
14
|
-
steps,
|
|
15
|
-
initialStep,
|
|
16
|
-
});
|
|
17
|
-
return (react_1.default.createElement(Box_1.Box, null,
|
|
18
|
-
react_1.default.createElement(Panel_1.Panel, { className: "p-8" },
|
|
19
|
-
step === 1 && react_1.default.createElement(react_1.default.Fragment, null, "Step 1"),
|
|
20
|
-
step === 2 && react_1.default.createElement(react_1.default.Fragment, null, "Step 2"),
|
|
21
|
-
step === 3 && react_1.default.createElement(react_1.default.Fragment, null, "Step 3"),
|
|
22
|
-
step === 4 && react_1.default.createElement(react_1.default.Fragment, null, "Step 4")),
|
|
23
|
-
react_1.default.createElement(Button_1.Button.Group, { className: "mt-4 justify-end" },
|
|
24
|
-
step !== 1 && (react_1.default.createElement(Button_1.Button.Group, { className: "mr-auto" },
|
|
25
|
-
react_1.default.createElement(Button_1.Button, { variant: Button_1.BUTTON_VARIANT.SECONDARY, onClick: goToPreviousStep }, "Previous Step"))),
|
|
26
|
-
react_1.default.createElement(Button_1.Button, { variant: Button_1.BUTTON_VARIANT.SECONDARY, onClick: () => {
|
|
27
|
-
goToStep(1);
|
|
28
|
-
} }, "Cancel"),
|
|
29
|
-
step === 4 ? (react_1.default.createElement(Button_1.Button, { onClick: () => {
|
|
30
|
-
console.log("Create button clicked");
|
|
31
|
-
} }, "Create")) : (react_1.default.createElement(Button_1.Button, { onClick: goToNextStep }, "Next Step")))));
|
|
32
|
-
};
|
|
33
|
-
exports.ExampleSetupWizard = ExampleSetupWizard;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
|
-
import Story from "../../storybook-components/Story";
|
|
4
|
-
import { Overlay } from "./Overlay";
|
|
5
|
-
|
|
6
|
-
const stories = storiesOf("Components/Layout/Overlay", module);
|
|
7
|
-
|
|
8
|
-
stories.add("Default", () => (
|
|
9
|
-
<Story title="Overlay">
|
|
10
|
-
<Overlay />
|
|
11
|
-
</Story>
|
|
12
|
-
));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
|
-
import Story from "../../storybook-components/Story";
|
|
4
|
-
import { colors } from "../../tokens";
|
|
5
|
-
import { Svg } from "./Svg";
|
|
6
|
-
|
|
7
|
-
const stories = storiesOf("Components/Images/Svg", module);
|
|
8
|
-
|
|
9
|
-
stories.add("Default", () => (
|
|
10
|
-
<Story title="Svg">
|
|
11
|
-
<Svg viewBox="0 0 300 100" fill={colors.gray["900"]}>
|
|
12
|
-
<circle cx="50" cy="50" r="40" />
|
|
13
|
-
</Svg>
|
|
14
|
-
</Story>
|
|
15
|
-
));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
|
-
import Story from "../../storybook-components/Story";
|
|
4
|
-
import { Text } from "./Text";
|
|
5
|
-
|
|
6
|
-
const stories = storiesOf("Components/Typography/Text", module);
|
|
7
|
-
|
|
8
|
-
stories.add("Default", () => (
|
|
9
|
-
<Story title="Text">
|
|
10
|
-
<Text>This is the Text component</Text>
|
|
11
|
-
</Story>
|
|
12
|
-
));
|