@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.
Files changed (181) hide show
  1. package/package.json +15 -14
  2. package/public/components/Accordion/Accordion.js +8 -10
  3. package/public/components/Avatar/Avatar.js +20 -19
  4. package/public/components/Button/Button.js +2 -2
  5. package/public/components/ConveyorLogo/ConveyorLogo.js +6 -6
  6. package/public/components/Drawer/Drawer.js +7 -7
  7. package/public/components/Frame/Frame.d.ts +1 -1
  8. package/public/components/Icon/Icon.d.ts +1 -0
  9. package/public/components/Icon/Icon.js +3 -1
  10. package/public/components/MenuRenderer/MenuRenderer.js +4 -7
  11. package/public/components/Modal/Modal.js +1 -1
  12. package/public/components/OptionButton/OptionButton.js +18 -13
  13. package/public/components/Select/Select.js +4 -4
  14. package/public/components/Select/SelectPopover.js +6 -6
  15. package/public/components/Select/index.d.ts +2 -0
  16. package/public/components/Select/index.js +3 -0
  17. package/public/components/Select/theme.js +22 -22
  18. package/public/components/Svg/Svg.d.ts +3 -3
  19. package/public/components/Svg/Svg.js +1 -2
  20. package/public/components/Tooltip/Tooltip.js +11 -19
  21. package/public/components/VisuallyHidden/VisuallyHidden.d.ts +2 -1
  22. package/public/components/VisuallyHidden/VisuallyHidden.js +3 -5
  23. package/public/css/styles.css +139 -59
  24. package/public/css/styles.min.css +1 -1
  25. package/public/css/styles.min.css.map +1 -1
  26. package/public/hooks/index.d.ts +3 -0
  27. package/public/hooks/index.js +7 -1
  28. package/public/hooks/useMatchMedia.d.ts +1 -0
  29. package/public/hooks/useMatchMedia.js +27 -0
  30. package/public/hooks/usePrefersReducedMotion.d.ts +1 -0
  31. package/public/hooks/usePrefersReducedMotion.js +9 -0
  32. package/public/hooks/useScreenOrientation.d.ts +1 -0
  33. package/public/hooks/useScreenOrientation.js +24 -0
  34. package/public/{style-dictionary → src/style-dictionary}/dist/tokens.css +1 -0
  35. package/public/src/style-dictionary/dist/tokens.d.ts +428 -0
  36. package/public/src/style-dictionary/dist/tokens.js +428 -0
  37. package/public/src/style-dictionary/dist/tokens.module.js +428 -0
  38. package/public/src/style-dictionary/tailwind.config.js +87 -0
  39. package/public/storybook-components/EnumTable.js +2 -1
  40. package/public/storybook-components/Story.d.ts +2 -1
  41. package/public/storybook-components/Story.js +4 -1
  42. package/public/style-dictionary/dist/tokens.d.ts +428 -422
  43. package/public/style-dictionary/dist/tokens.js +415 -416
  44. package/public/style-dictionary/dist/tokens.module.d.ts +431 -0
  45. package/public/style-dictionary/dist/tokens.module.js +412 -415
  46. package/public/style-dictionary/src/border-radius.d.ts +31 -0
  47. package/public/style-dictionary/src/border-radius.js +10 -9
  48. package/public/style-dictionary/src/border-width.d.ts +21 -0
  49. package/public/style-dictionary/src/border-width.js +9 -8
  50. package/public/style-dictionary/src/color.d.ts +249 -0
  51. package/public/style-dictionary/src/color.js +97 -95
  52. package/public/style-dictionary/src/font-size.d.ts +45 -0
  53. package/public/style-dictionary/src/font-size.js +14 -13
  54. package/public/style-dictionary/src/font-weight.d.ts +13 -0
  55. package/public/style-dictionary/src/font-weight.js +6 -5
  56. package/public/style-dictionary/src/height.d.ts +215 -0
  57. package/public/style-dictionary/src/height.js +10 -10
  58. package/public/style-dictionary/src/leading.d.ts +17 -0
  59. package/public/style-dictionary/src/leading.js +7 -6
  60. package/public/style-dictionary/src/screen-width.d.ts +17 -0
  61. package/public/style-dictionary/src/screen-width.js +7 -6
  62. package/public/style-dictionary/src/shadow.d.ts +63 -0
  63. package/public/style-dictionary/src/shadow.js +19 -18
  64. package/public/style-dictionary/src/spacing.d.ts +197 -0
  65. package/public/style-dictionary/src/spacing.js +68 -67
  66. package/public/style-dictionary/src/tracking.d.ts +13 -0
  67. package/public/style-dictionary/src/tracking.js +6 -5
  68. package/public/style-dictionary/src/type.d.ts +13 -0
  69. package/public/style-dictionary/src/type.js +32 -31
  70. package/public/style-dictionary/src/width.d.ts +287 -0
  71. package/public/style-dictionary/src/width.js +29 -29
  72. package/public/style-dictionary/src/z-index.d.ts +53 -0
  73. package/public/style-dictionary/src/z-index.js +20 -19
  74. package/public/style-dictionary/tailwind.config.d.ts +392 -0
  75. package/public/style-dictionary/tailwind.config.js +51 -72
  76. package/src/components/Accordion/Accordion.tsx +39 -27
  77. package/src/components/Avatar/Avatar.tsx +20 -19
  78. package/src/components/Button/Button.tsx +3 -3
  79. package/src/components/Button/index.css +12 -1
  80. package/src/components/Card/Card.story.mdx +45 -37
  81. package/src/components/ConveyorLogo/ConveyorLogo.tsx +6 -6
  82. package/src/components/Drawer/Drawer.tsx +1 -1
  83. package/src/components/Frame/Frame.story.mdx +140 -5
  84. package/src/components/Frame/Frame.tsx +1 -1
  85. package/src/components/Frame/index.css +8 -13
  86. package/src/components/Icon/Icon.tsx +3 -0
  87. package/src/components/MenuRenderer/MenuRenderer.tsx +7 -9
  88. package/src/components/Modal/Modal.tsx +1 -1
  89. package/src/components/Modal/index.css +8 -3
  90. package/src/components/OptionButton/OptionButton.story.mdx +91 -36
  91. package/src/components/OptionButton/OptionButton.tsx +19 -18
  92. package/src/components/OptionButton/index.css +13 -0
  93. package/src/components/Overlay/Overlay.story.mdx +26 -0
  94. package/src/components/Select/Select.tsx +4 -4
  95. package/src/components/Select/SelectPopover.tsx +6 -6
  96. package/src/components/Select/index.ts +14 -0
  97. package/src/components/Select/theme.ts +22 -22
  98. package/src/components/Svg/Svg.story.mdx +36 -0
  99. package/src/components/Svg/Svg.tsx +6 -4
  100. package/src/components/Text/Text.story.mdx +34 -0
  101. package/src/components/Tooltip/Tooltip.story.mdx +21 -0
  102. package/src/components/Tooltip/Tooltip.tsx +23 -27
  103. package/src/components/Tooltip/index.css +31 -0
  104. package/src/components/VisuallyHidden/VisuallyHidden.story.mdx +54 -0
  105. package/src/components/VisuallyHidden/VisuallyHidden.tsx +10 -5
  106. package/src/components/VisuallyHidden/index.css +3 -0
  107. package/src/css/components.css +2 -0
  108. package/src/docs/Colors.story.mdx +13 -13
  109. package/src/docs/Spacing.story.mdx +4 -20
  110. package/src/docs/Tokens.story.mdx +230 -0
  111. package/src/docs/Typography.story.mdx +17 -94
  112. package/src/docs/hooks/useDisclosureHook.story.mdx +58 -0
  113. package/src/docs/hooks/useKeyPressHook.story.mdx +54 -0
  114. package/src/docs/hooks/useMatchMediaHook.story.mdx +42 -0
  115. package/src/docs/hooks/useOutsideClickHook.story.mdx +56 -0
  116. package/src/docs/hooks/usePrefersReducedMotion.story.mdx +61 -0
  117. package/src/docs/hooks/useScreenOrientationHook.story.mdx +56 -0
  118. package/src/docs/hooks/useStepHook.story.mdx +102 -0
  119. package/src/hooks/index.ts +3 -0
  120. package/src/hooks/useMatchMedia.ts +40 -0
  121. package/src/hooks/usePrefersReducedMotion.ts +9 -0
  122. package/src/hooks/useScreenOrientation.ts +27 -0
  123. package/src/storybook-components/EnumTable.tsx +3 -2
  124. package/src/storybook-components/Story.tsx +13 -1
  125. package/src/style-dictionary/dist/tokens.css +378 -0
  126. package/src/style-dictionary/dist/tokens.d.ts +428 -0
  127. package/src/style-dictionary/dist/tokens.js +428 -0
  128. package/src/style-dictionary/dist/tokens.module.js +428 -0
  129. package/src/style-dictionary/src/border-radius.js +11 -0
  130. package/src/style-dictionary/src/border-width.js +10 -0
  131. package/src/style-dictionary/src/color.js +98 -0
  132. package/src/style-dictionary/src/font-size.js +15 -0
  133. package/src/style-dictionary/src/font-weight.js +7 -0
  134. package/src/style-dictionary/src/height.js +13 -0
  135. package/src/style-dictionary/src/leading.js +8 -0
  136. package/src/style-dictionary/src/screen-width.js +8 -0
  137. package/src/style-dictionary/src/shadow.js +19 -0
  138. package/src/style-dictionary/src/spacing.js +69 -0
  139. package/src/style-dictionary/src/tracking.js +7 -0
  140. package/src/style-dictionary/src/type.js +34 -0
  141. package/src/style-dictionary/src/width.js +32 -0
  142. package/src/style-dictionary/src/z-index.js +21 -0
  143. package/src/style-dictionary/tailwind.config.js +87 -0
  144. package/src/tokens/borders.ts +6 -0
  145. package/src/tokens/box-shadow.ts +3 -0
  146. package/src/tokens/colors.ts +6 -0
  147. package/src/tokens/font-family.ts +3 -0
  148. package/src/tokens/font-size.ts +3 -0
  149. package/src/tokens/font-weight.ts +3 -0
  150. package/src/tokens/height.ts +3 -0
  151. package/src/tokens/index.ts +3 -2
  152. package/src/tokens/letter-spacing.ts +3 -0
  153. package/src/tokens/line-height.ts +3 -0
  154. package/src/tokens/margin.ts +3 -0
  155. package/src/tokens/padding.ts +3 -0
  156. package/src/tokens/screens.ts +3 -0
  157. package/src/tokens/sizing-scale.ts +6 -0
  158. package/src/tokens/width.ts +9 -0
  159. package/src/tokens/will-change.ts +3 -0
  160. package/src/tokens/z-index.ts +3 -0
  161. package/src/types/index.ts +3 -0
  162. package/public/components/Overlay/Overlay.story.d.ts +0 -1
  163. package/public/components/Overlay/Overlay.story.js +0 -12
  164. package/public/components/Svg/Svg.story.d.ts +0 -1
  165. package/public/components/Svg/Svg.story.js +0 -14
  166. package/public/components/Text/Text.story.d.ts +0 -1
  167. package/public/components/Text/Text.story.js +0 -31
  168. package/public/components/VisuallyHidden/VisuallyHidden.story.d.ts +0 -1
  169. package/public/components/VisuallyHidden/VisuallyHidden.story.js +0 -36
  170. package/public/components/useStep/ExampleSetupWizard.d.ts +0 -4
  171. package/public/components/useStep/ExampleSetupWizard.js +0 -33
  172. package/src/components/Overlay/Overlay.md +0 -14
  173. package/src/components/Overlay/Overlay.story.tsx +0 -12
  174. package/src/components/Svg/Svg.md +0 -14
  175. package/src/components/Svg/Svg.story.tsx +0 -15
  176. package/src/components/Text/Text.md +0 -14
  177. package/src/components/Text/Text.story.tsx +0 -12
  178. package/src/components/VisuallyHidden/VisuallyHidden.md +0 -23
  179. package/src/components/VisuallyHidden/VisuallyHidden.story.tsx +0 -19
  180. package/src/components/useStep/ExampleSetupWizard.tsx +0 -63
  181. package/src/components/useStep/useStep.story.mdx +0 -76
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ tracking: {
3
+ tight: { value: "-0.05em" },
4
+ normal: { value: "0" },
5
+ wide: { value: "0.05em" },
6
+ },
7
+ };
@@ -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
+ };
@@ -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",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Please use style-dictionary/shadow
3
+ */
1
4
  export const boxShadow = {
2
5
  DEFAULT: "0 2px 4px 0 rgba(0,0,0,0.10)",
3
6
  up: "0 -2px 4px 0 rgba(0,0,0,0.10)",
@@ -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,
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Please use style-dictionary/type
3
+ */
1
4
  export const fontFamily = {
2
5
  sans: [
3
6
  "Neue Montreal",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Please use style-dictionary/font-size
3
+ */
1
4
  export const fontSize = {
2
5
  h1: "26px",
3
6
  h2: "20px",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Please use style-dictionary/font-weight
3
+ */
1
4
  export const fontWeight = {
2
5
  regular: 400,
3
6
  medium: 500,
@@ -1,5 +1,8 @@
1
1
  import { positiveScale } from "./sizing-scale";
2
2
 
3
+ /**
4
+ * @deprecated Please use style-dictionary/height
5
+ */
3
6
  export const height = {
4
7
  ...positiveScale,
5
8
  auto: "auto",
@@ -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";
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Please use style-dictionary/tracking
3
+ */
1
4
  export const letterSpacing = {
2
5
  tight: "-0.05em",
3
6
  normal: "0",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Please use style-dictionary/leading
3
+ */
1
4
  export const lineHeight = {
2
5
  none: 1,
3
6
  tight: 1.25,
@@ -1,5 +1,8 @@
1
1
  import { positiveScale, negativeScale } from "./sizing-scale";
2
2
 
3
+ /**
4
+ * @deprecated Please use style-dictionary/spacing
5
+ */
3
6
  export const margin = {
4
7
  ...positiveScale,
5
8
  ...negativeScale,
@@ -1,5 +1,8 @@
1
1
  import { positiveScale } from "./sizing-scale";
2
2
 
3
+ /**
4
+ * @deprecated Please use style-dictionary/spacing
5
+ */
3
6
  export const padding = {
4
7
  ...positiveScale,
5
8
  px: "1px",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Please use style-dictionary/screen-width
3
+ */
1
4
  export const screens = {
2
5
  sm: "576px",
3
6
  md: "768px",
@@ -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",
@@ -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",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated
3
+ */
1
4
  export const willChange = {
2
5
  auto: "auto",
3
6
  scroll: "scroll-position",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Please use style-dictionary/z-index
3
+ */
1
4
  export const zIndex = {
2
5
  auto: "auto",
3
6
  "0": 0,
@@ -3,6 +3,9 @@ import { positiveScale } from "../tokens/sizing-scale";
3
3
 
4
4
  export type ClassName = string | Array<string | ClassName>;
5
5
 
6
+ /**
7
+ * @deprecated
8
+ */
6
9
  export enum THEME {
7
10
  PRODUCT = "product",
8
11
  BRAND = "brand",
@@ -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,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,4 +0,0 @@
1
- export declare const ExampleSetupWizard: ({ steps, initialStep, }: {
2
- steps: number;
3
- initialStep?: number | undefined;
4
- }) => JSX.Element;
@@ -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,14 +0,0 @@
1
- # Usage
2
-
3
- `<Overlay />` …
4
-
5
- `import { Overlay } from "@conveyorhq/arrow-ds"`
6
-
7
- ```jsx
8
- <Overlay>{...}</Overlay>
9
- ```
10
-
11
- ## Props
12
-
13
- | Prop | Type | Required | Default Value | Description |
14
- |:--- |:--- |:--- |:--- |:--- |
@@ -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,14 +0,0 @@
1
- # Usage
2
-
3
- `<Svg />` …
4
-
5
- `import { Svg } from "@conveyorhq/arrow-ds"`
6
-
7
- ```jsx
8
- <Svg>{...}</Svg>
9
- ```
10
-
11
- ## Props
12
-
13
- | Prop | Type | Required | Default Value | Description |
14
- |:--- |:--- |:--- |:--- |:--- |
@@ -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,14 +0,0 @@
1
- # Usage
2
-
3
- `<Text />` …
4
-
5
- `import { Text } from "@conveyorhq/arrow-ds"`
6
-
7
- ```jsx
8
- <Text>{...}</Text>
9
- ```
10
-
11
- ## Props
12
-
13
- | Prop | Type | Required | Default Value | Description |
14
- |:--- |:--- |:--- |:--- |:--- |
@@ -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
- ));