@agility/plenum-ui 2.0.0-rc9 → 2.0.1

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 (97) hide show
  1. package/README.md +104 -31
  2. package/build.js +30 -25
  3. package/dist/index.d.ts +103 -79
  4. package/dist/index.js +1 -6295
  5. package/dist/index.js.map +4 -4
  6. package/dist/{lib/tailwind.css → tailwind.css} +3754 -8120
  7. package/dist/types/stories/atoms/buttons/Button/Alternative/Alternative.stories.d.ts +1 -0
  8. package/dist/types/stories/atoms/buttons/Button/Button.d.ts +3 -7
  9. package/dist/types/stories/atoms/buttons/Button/Danger/Danger.stories.d.ts +1 -0
  10. package/dist/types/stories/atoms/buttons/Button/Primary/Primary.stories.d.ts +1 -0
  11. package/dist/types/stories/atoms/buttons/Button/Secondary/Secondary.stories.d.ts +1 -0
  12. package/dist/types/stories/atoms/buttons/Capsule/Capsule.d.ts +1 -1
  13. package/dist/types/stories/atoms/icons/DynamicIcon.d.ts +2 -2
  14. package/dist/types/stories/atoms/icons/TablerIcon.d.ts +1 -1
  15. package/dist/types/stories/index.d.ts +4 -4
  16. package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +7 -7
  17. package/dist/types/stories/molecules/inputs/TextInput/TextInput.d.ts +1 -1
  18. package/dist/types/stories/molecules/inputs/checkbox/Checkbox.d.ts +2 -0
  19. package/dist/types/stories/molecules/inputs/select/Select.d.ts +4 -2
  20. package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +5 -1
  21. package/dist/types/stories/molecules/inputs/toggleSwitch/ToggleSwitch.d.ts +10 -7
  22. package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +5 -5
  23. package/dist/types/stories/organisms/AnimatedLabelInput/index.d.ts +1 -1
  24. package/dist/types/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.d.ts +12 -0
  25. package/dist/types/stories/organisms/AnimatedLabelTextArea/index.d.ts +3 -0
  26. package/dist/types/stories/organisms/ButtonDropdown/ButtonDropdown.d.ts +1 -0
  27. package/dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts +24 -13
  28. package/dist/types/stories/organisms/DropdownComponent/index.d.ts +2 -2
  29. package/dist/types/stories/organisms/EmptySectionPlaceholder/index.d.ts +1 -1
  30. package/dist/types/stories/organisms/index.d.ts +4 -3
  31. package/local.sh +100 -0
  32. package/package.json +35 -18
  33. package/rollup.config.mjs +42 -0
  34. package/stories/atoms/badges/Badge.tsx +1 -1
  35. package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +10 -0
  36. package/stories/atoms/buttons/Button/Button.tsx +111 -25
  37. package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +14 -2
  38. package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +14 -2
  39. package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +13 -1
  40. package/stories/atoms/buttons/Button/defaultArgs.ts +1 -1
  41. package/stories/atoms/buttons/Capsule/Capsule.tsx +2 -1
  42. package/stories/atoms/icons/DynamicIcon.stories.ts +1 -1
  43. package/stories/atoms/icons/DynamicIcon.tsx +7 -7
  44. package/stories/atoms/icons/IconWithShadow.stories.ts +3 -3
  45. package/stories/atoms/icons/TablerIcon.tsx +1 -1
  46. package/stories/atoms/loaders/Loader.tsx +12 -6
  47. package/stories/atoms/loaders/NProgress/RadialProgress.tsx +0 -2
  48. package/stories/index.ts +8 -4
  49. package/stories/molecules/inputs/InputCounter/InputCounter.tsx +2 -2
  50. package/stories/molecules/inputs/InputField/InputField.tsx +31 -29
  51. package/stories/molecules/inputs/InputLabel/InputLabel.tsx +6 -6
  52. package/stories/molecules/inputs/TextInput/TextInput.stories.tsx +31 -1
  53. package/stories/molecules/inputs/TextInput/TextInput.tsx +15 -7
  54. package/stories/molecules/inputs/checkbox/Checkbox.stories.ts +1 -1
  55. package/stories/molecules/inputs/checkbox/Checkbox.tsx +7 -4
  56. package/stories/molecules/inputs/combobox/ComboBox.tsx +126 -135
  57. package/stories/molecules/inputs/radio/Radio.stories.ts +2 -2
  58. package/stories/molecules/inputs/select/Select.stories.tsx +53 -0
  59. package/stories/molecules/inputs/select/Select.tsx +11 -3
  60. package/stories/molecules/inputs/textArea/{TextArea.stories.ts → TextArea.stories.tsx} +25 -2
  61. package/stories/molecules/inputs/textArea/TextArea.tsx +58 -28
  62. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.stories.tsx +15 -16
  63. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +63 -57
  64. package/stories/molecules/tabs/index.tsx +2 -3
  65. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +32 -2
  66. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +66 -37
  67. package/stories/organisms/AnimatedLabelInput/index.tsx +1 -1
  68. package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.stories.tsx +26 -0
  69. package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.tsx +61 -0
  70. package/stories/organisms/AnimatedLabelTextArea/index.tsx +3 -0
  71. package/stories/organisms/ButtonDropdown/ButtonDropdown.stories.tsx +59 -59
  72. package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +42 -30
  73. package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +26 -2
  74. package/stories/organisms/DropdownComponent/DropdownComponent.tsx +232 -180
  75. package/stories/organisms/DropdownComponent/dropdownItems.ts +30 -9
  76. package/stories/organisms/DropdownComponent/index.ts +2 -2
  77. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +3 -3
  78. package/stories/organisms/EmptySectionPlaceholder/index.tsx +2 -1
  79. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +1 -1
  80. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +7 -2
  81. package/stories/organisms/index.ts +12 -3
  82. package/tailwind.config.js +139 -38
  83. package/tsconfig.lib.json +13 -6
  84. package/watch.js +49 -0
  85. package/.yarnrc.yml +0 -1
  86. package/dist/types/stories/layouts/index.d.ts +0 -0
  87. package/dist/types/stories/molecules/inputs/select/Select.stories.d.ts +0 -6
  88. package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +0 -6
  89. package/stories/layouts/CardLayout/CardLayout.stories.tsx +0 -18
  90. package/stories/layouts/CardLayout/CardLayout.tsx +0 -22
  91. package/stories/layouts/CardLayout/index.tsx +0 -3
  92. package/stories/layouts/ModalLayout/ModalLayout.stories.tsx +0 -18
  93. package/stories/layouts/ModalLayout/ModalLayout.tsx +0 -22
  94. package/stories/layouts/ModalLayout/index.tsx +0 -3
  95. package/stories/layouts/index.ts +0 -0
  96. package/stories/molecules/inputs/select/Select.stories.ts +0 -23
  97. package/stories/organisms/DropdownComponent/Dropdown.test.tsx +0 -0
@@ -3,15 +3,26 @@ import { IItemProp } from "./DropdownComponent"
3
3
  export const dropdownDataBase: IItemProp[][] = [
4
4
  [
5
5
  {
6
+ icon: {
7
+ icon: "IconCopy"
8
+ // pos: "leading",
9
+ // className: "h-5 w-5",
10
+ // outline: false
11
+ },
6
12
  key: "Copy",
7
- label: "Copy",
13
+ label: "Copy to Clipboard",
8
14
  onClick: () => {
9
15
  console.log("Copy action")
10
16
  }
11
- }
12
- ],
13
- [
17
+ },
18
+
14
19
  {
20
+ icon: {
21
+ icon: "IconPlus"
22
+ // pos: "leading",
23
+ // className: "h-5 w-5",
24
+ // outline: false
25
+ },
15
26
  key: "Add to Batch",
16
27
  label: "Add to Batch",
17
28
  onClick: () => {
@@ -19,15 +30,25 @@ export const dropdownDataBase: IItemProp[][] = [
19
30
  }
20
31
  },
21
32
  {
33
+ icon: {
34
+ icon: "IconEye"
35
+ // pos: "leading",
36
+ // className: "h-5 w-5",
37
+ // outline: false
38
+ },
22
39
  key: "View Batch",
23
40
  label: "View Batch",
24
41
  onClick: () => {
25
42
  console.log("View Batch action")
26
43
  }
27
- }
28
- ],
29
- [
44
+ },
30
45
  {
46
+ icon: {
47
+ icon: "IconTrash"
48
+ // pos: "leading",
49
+ // className: "h-5 w-5",
50
+ // outline: false
51
+ },
31
52
  label: "Delete",
32
53
  onClick: () => {
33
54
  console.log("Delete action")
@@ -42,13 +63,13 @@ export const dropdownDataWithIcons: IItemProp[][] = [
42
63
  [
43
64
  {
44
65
  icon: {
45
- icon: "IconClipboardCopy",
66
+ icon: "IconCopy",
46
67
  className: "h-5 w-5",
47
68
  outline: false
48
69
  },
49
70
  iconPosition: "leading",
50
71
  key: "Copy",
51
- label: "Copy",
72
+ label: "Copy Item",
52
73
  onClick: () => {
53
74
  console.log("Copy action")
54
75
  }
@@ -1,4 +1,4 @@
1
- import Dropdown, { IItemProp, IDropdownClassnames, IDropdownProps, defaultClassNames } from "./DropdownComponent"
2
- export type { IItemProp, IDropdownClassnames, IDropdownProps }
1
+ import Dropdown, { IItemProp, IDropdownProps, defaultClassNames } from "./DropdownComponent"
2
+ export type { IItemProp, IDropdownProps }
3
3
  export { defaultClassNames }
4
4
  export default Dropdown
@@ -39,7 +39,7 @@ export const CallsToAction: Story = {
39
39
  {
40
40
  actionType: "alternative",
41
41
  icon: {
42
- icon: "UploadIcon",
42
+ icon: "IconUpload",
43
43
  outline: true
44
44
  },
45
45
  iconPosition: "leading",
@@ -49,7 +49,7 @@ export const CallsToAction: Story = {
49
49
  {
50
50
  actionType: "alternative",
51
51
  icon: {
52
- icon: "ViewGridIcon",
52
+ icon: "IconGridDots",
53
53
  outline: true
54
54
  },
55
55
  size: "lg",
@@ -64,7 +64,7 @@ export const CallsToAction: Story = {
64
64
  export const NoActions: Story = {
65
65
  args: {
66
66
  icon: {
67
- icon: "PencilAltIcon",
67
+ icon: "IconPencil",
68
68
  className: "h-5 w-5 text-gray-400 ",
69
69
  outline: true
70
70
  },
@@ -1,3 +1,4 @@
1
1
  import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "./EmptySectionPlaceholder"
2
- export default EmptySectionPlaceholder
2
+
3
3
  export type { IEmptySectionPlaceholderProps }
4
+ export default EmptySectionPlaceholder
@@ -24,6 +24,6 @@ export const DefaultFormInputWithAddons: Story = {
24
24
  leadLabel: "Search",
25
25
  addonOffset: 60,
26
26
  labelClass: "text-gray-900",
27
- trailIcon: { icon: "SearchIcon" }
27
+ trailIcon: { icon: "IconSearch" }
28
28
  }
29
29
  }
@@ -79,7 +79,12 @@ const FormInputWithAddons: React.FC<IFormInputWithAddonsProps> = ({
79
79
  <DynamicIcon
80
80
  {...{
81
81
  ...leadIcon,
82
- className: cn("h-5 w-5 text-gray-400", leadIconClassNames, customIconClass),
82
+ className: cn(
83
+ "h-5 w-5 text-gray-400",
84
+ leadIconClassNames,
85
+ customIconClass,
86
+ leadIcon.className
87
+ ),
83
88
  outline: iconOutlined
84
89
  }}
85
90
  />
@@ -123,7 +128,7 @@ const FormInputWithAddons: React.FC<IFormInputWithAddonsProps> = ({
123
128
  <DynamicIcon
124
129
  {...{
125
130
  ...trailIcon,
126
- className: cn("h-5 w-5 text-gray-400", customIconClass),
131
+ className: cn("h-5 w-5 text-gray-400", customIconClass, trailIcon.className),
127
132
  outline: iconOutlined
128
133
  }}
129
134
  />
@@ -1,18 +1,27 @@
1
1
  import AnimatedLabelInput, { IAnimatedLabelInputProps } from "./AnimatedLabelInput"
2
+ import AnimatedLabelTextArea, { IAnimatedLabelTextAreaProps } from "./AnimatedLabelTextArea"
2
3
  import ButtonDropdown, { IButtonDropdownProps } from "./ButtonDropdown"
3
- import Dropdown, { IDropdownClassnames, IDropdownProps, IItemProp } from "./DropdownComponent"
4
+ import Dropdown, { IDropdownProps, IItemProp } from "./DropdownComponent"
4
5
  import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "./EmptySectionPlaceholder"
5
6
  import FormInputWithAddons, { IFormInputWithAddonsProps } from "./FormInputWithAddons"
6
7
  import TextInputSelect, { ITextInputSelectProps } from "./TextInputSelect"
7
8
 
8
9
  export type {
9
10
  IAnimatedLabelInputProps,
11
+ IAnimatedLabelTextAreaProps,
10
12
  IButtonDropdownProps,
11
- IDropdownClassnames,
12
13
  IDropdownProps,
13
14
  IEmptySectionPlaceholderProps,
14
15
  IItemProp,
15
16
  IFormInputWithAddonsProps,
16
17
  ITextInputSelectProps
17
18
  }
18
- export { AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect }
19
+ export {
20
+ AnimatedLabelInput,
21
+ AnimatedLabelTextArea,
22
+ ButtonDropdown,
23
+ Dropdown,
24
+ EmptySectionPlaceholder,
25
+ FormInputWithAddons,
26
+ TextInputSelect
27
+ }
@@ -39,6 +39,10 @@ module.exports = {
39
39
  mulish: ["Mulish", "sans-serif"]
40
40
  },
41
41
  extend: {
42
+ backgroundImage: (theme) => ({
43
+ "label-gradient-focus": "linear-gradient(to top, #FFF 9px, transparent 9px)",
44
+ "label-gradient-idle": "linear-gradient(to top, #FFF 8px, transparent 8px)"
45
+ }),
42
46
  gridTemplateColumns: {
43
47
  // Simple 16 column grid
44
48
  mainContainer: "max-content 1fr 1fr"
@@ -48,6 +52,29 @@ module.exports = {
48
52
  header: "max-content 1fr 1fr"
49
53
  },
50
54
  colors: {
55
+ "transparent-white-05": "rgba(255, 255, 255, 0.05)",
56
+ "transparent-white-10": "rgba(255, 255, 255, 0.1)",
57
+ "transparent-white-20": "rgba(255, 255, 255, 0.2)",
58
+ "transparent-white-30": "rgba(255, 255, 255, 0.3)",
59
+ "transparent-white-40": "rgba(255, 255, 255, 0.4)",
60
+ "transparent-white-50": "rgba(255, 255, 255, 0.5)",
61
+ "transparent-white-60": "rgba(255, 255, 255, 0.6)",
62
+ "transparent-white-70": "rgba(255, 255, 255, 0.7)",
63
+ "transparent-white-80": "rgba(255, 255, 255, 0.8)",
64
+ "transparent-white-90": "rgba(255, 255, 255, 0.9)",
65
+
66
+ "transparent-black-03": "rgba(0, 0, 0, 0.03)",
67
+ "transparent-black-05": "rgba(0, 0, 0, 0.05)",
68
+ "transparent-black-10": "rgba(0, 0, 0, 0.1)",
69
+ "transparent-black-20": "rgba(0, 0, 0, 0.2)",
70
+ "transparent-black-30": "rgba(0, 0, 0, 0.3)",
71
+ "transparent-black-40": "rgba(0, 0, 0, 0.4)",
72
+ "transparent-black-50": "rgba(0, 0, 0, 0.5)",
73
+ "transparent-black-60": "rgba(0, 0, 0, 0.6)",
74
+ "transparent-black-70": "rgba(0, 0, 0, 0.7)",
75
+ "transparent-black-80": "rgba(0, 0, 0, 0.8)",
76
+ "transparent-black-90": "rgba(0, 0, 0, 0.9)",
77
+
51
78
  "gray-50": "#F9FAFB",
52
79
  "gray-100": "#F3F4F6",
53
80
  "gray-200": "#E5E7EB",
@@ -56,7 +83,6 @@ module.exports = {
56
83
  "gray-500": "#6B7280",
57
84
  "gray-600": "#4B5563",
58
85
  "gray-700": "#374151",
59
- "gray-800": "#1F2937",
60
86
  "gray-900": "#111827",
61
87
 
62
88
  "red-50": "#FEF2F2",
@@ -92,6 +118,17 @@ module.exports = {
92
118
  "yellow-800": "#997A18",
93
119
  "yellow-900": "#806614",
94
120
 
121
+ "green-50": "#ECFDF5",
122
+ "green-100": "#D1FAE5",
123
+ "green-200": "#A7F3D0",
124
+ "green-300": "#6EE7B7",
125
+ "green-400": "#34D399",
126
+ "green-500": "#10B981",
127
+ "green-600": "#059669",
128
+ "green-700": "#047857",
129
+ "green-800": "#065F46",
130
+ "green-900": "#064E3B",
131
+
95
132
  "teal-50": "#F0FDFA",
96
133
  "teal-100": "#CCFBF1",
97
134
  "teal-200": "#99F6E4",
@@ -103,33 +140,33 @@ module.exports = {
103
140
  "teal-800": "#115E59",
104
141
  "teal-900": "#134E4A",
105
142
 
106
- "cyan-50": "#CFFAFE",
107
- "cyan-100": "#A5F3FC",
108
- "cyan-200": "#67E8F9",
109
- "cyan-300": "#22D3EE",
110
- "cyan-400": "#ECFEFF",
143
+ "cyan-50": "#ECFEFF",
144
+ "cyan-100": "#CFFAFE",
145
+ "cyan-200": "#A5F3FC",
146
+ "cyan-300": "#67E8F9",
147
+ "cyan-400": "#22D3EE",
111
148
  "cyan-500": "#06B6D4",
112
149
  "cyan-600": "#0891B2",
113
150
  "cyan-700": "#0E7490",
114
151
  "cyan-800": "#155E75",
115
152
  "cyan-900": "#164E63",
116
153
 
117
- "light-blue-50": "#E0F2FE",
118
- "light-blue-100": "#BAE6FD",
119
- "light-blue-200": "#7DD3FC",
120
- "light-blue-300": "#38BDF8",
121
- "light-blue-400": "#F0F9FF",
122
- "light-blue-500": "#0EA5E9",
123
- "light-blue-600": "#0284C7",
124
- "light-blue-700": "#0369A1",
125
- "light-blue-800": "#075985",
126
- "light-blue-900": "#0C4A6E",
127
-
128
- "blue-50": "#DBEAFE",
129
- "blue-100": "#BFDBFE",
130
- "blue-200": "#93C5FD",
131
- "blue-300": "#60A5FA",
132
- "blue-400": "#EFF6FF",
154
+ "lightBlue-50": "#F0F9FF",
155
+ "lightBlue-100": "#E0F2FE",
156
+ "lightBlue-200": "#BAE6FD",
157
+ "lightBlue-300": "#7DD3FC",
158
+ "lightBlue-400": "#38BDF8",
159
+ "lightBlue-500": "#0EA5E9",
160
+ "lightBlue-600": "#0284C7",
161
+ "lightBlue-700": "#0369A1",
162
+ "lightBlue-800": "#075985",
163
+ "lightBlue-900": "#0C4A6E",
164
+
165
+ "blue-50": "#EFF6FF",
166
+ "blue-100": "#DBEAFE",
167
+ "blue-200": "#BFDBFE",
168
+ "blue-300": "#93C5FD",
169
+ "blue-400": "#60A5FA",
133
170
  "blue-500": "#3B82F6",
134
171
  "blue-600": "#2563EB",
135
172
  "blue-700": "#1D4ED8",
@@ -147,20 +184,21 @@ module.exports = {
147
184
  "purple-800": "#4F00BF",
148
185
  "purple-900": "#4600AA",
149
186
 
150
- "violet-50": "#EDE9FE",
151
- "violet-100": "#DDD6FE",
152
- "violet-200": "#C4B5FD",
153
- "violet-300": "#A78BFA",
154
- "violet-400": "#F5F3FF",
187
+ "violet-50": "#F5F3FF",
188
+ "violet-100": "#EDE9FE",
189
+ "violet-200": "#DDD6FE",
190
+ "violet-300": "#C4B5FD",
191
+ "violet-400": "#A78BFA",
155
192
  "violet-500": "#8B5CF6",
156
193
  "violet-600": "#7C3AED",
157
194
  "violet-700": "#6D28D9",
158
195
  "violet-800": "#5B21B6",
159
196
  "violet-900": "#4C1D95",
160
197
 
161
- "pink-50": "#FCE7F3",
198
+ "pink-50": "#FDF2F8",
162
199
  "pink-100": "#FCE7F3",
163
200
  "pink-200": "#FBCFE8",
201
+ "pink-300": "#F9A8D4",
164
202
  "pink-400": "#F472B6",
165
203
  "pink-500": "#EC4899",
166
204
  "pink-600": "#DB2777",
@@ -168,11 +206,11 @@ module.exports = {
168
206
  "pink-800": "#9D174D",
169
207
  "pink-900": "#831843",
170
208
 
171
- "rose-50": "#FFE4E6",
172
- "rose-100": "#FECDD3",
173
- "rose-200": "#FDA4AF",
174
- "rose-300": "#FB7185",
175
- "rose-400": "#FFF1F2",
209
+ "rose-50": "#FFF1F2",
210
+ "rose-100": "#FFE4E6",
211
+ "rose-200": "#FECDD3",
212
+ "rose-300": "#FDA4AF",
213
+ "rose-400": "#FB7185",
176
214
  "rose-500": "#F43F5E",
177
215
  "rose-600": "#E11D48",
178
216
  "rose-700": "#BE123C",
@@ -181,12 +219,75 @@ module.exports = {
181
219
  },
182
220
  fontWeight: {
183
221
  medium: 600
222
+ },
223
+ fontSize: {
224
+ xs: ["0.75rem", "1rem"],
225
+ sm: ["0.875rem", "1.25rem"],
226
+ base: ["1rem", "1.5rem"],
227
+ lg: ["1.125rem", "1.75rem"],
228
+ xl: ["1.25rem", "1.75rem"],
229
+ "2xl": ["1.5rem", "2rem"],
230
+ "3xl": ["1.875rem", "2.25rem"],
231
+ "4xl": ["2.25rem", "2.5rem"],
232
+ "5xl": ["3rem", "3rem"],
233
+ "6xl": ["3.75rem", "3.75rem"],
234
+ "7xl": ["4.5rem", "4.5rem"],
235
+ "8xl": ["6rem", "6rem"],
236
+ "9xl": ["8rem", "8rem"]
237
+ },
238
+ animation: {
239
+ enter: "fadeInLeft 300ms ease-out",
240
+ exit: "fadeOutLeft 300ms ease-in forwards",
241
+ quickBounce: "quickBounce 200ms ease-out forwards",
242
+ fadeIn: "fadeIn 400ms ease-in-out forwards"
243
+ },
244
+
245
+ keyframes: {
246
+ fadeIn: {
247
+ "0%": {
248
+ opacity: "0"
249
+ },
250
+ "100%": {
251
+ opacity: "1"
252
+ }
253
+ },
254
+ fadeInLeft: {
255
+ "0%": {
256
+ opacity: "0",
257
+ transform: "translate(-2rem)"
258
+ },
259
+ "100%": {
260
+ opacity: "1",
261
+ transform: "translate(0)"
262
+ }
263
+ },
264
+ quickBounce: {
265
+ "0%": {
266
+ transform: "translateY(0px)"
267
+ },
268
+ "50%": {
269
+ transform: "translateY(-8px)"
270
+ },
271
+ "100%": {
272
+ transform: "translateY(-4px)"
273
+ }
274
+ },
275
+ fadeOutLeft: {
276
+ "0%": {
277
+ opacity: "1",
278
+ transform: "translate(0)"
279
+ },
280
+ "100%": {
281
+ opacity: "0",
282
+ transform: "translate(-2rem)"
283
+ }
284
+ }
285
+ },
286
+ transitionProperty: {
287
+ left: "left",
288
+ height: "height"
184
289
  }
185
290
  }
186
291
  },
187
- plugins: [
188
- require("@tailwindcss/forms"),
189
- require("@tailwindcss/typography"),
190
- require("@headlessui/tailwindcss")
191
- ]
292
+ plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography"), require("@headlessui/tailwindcss")]
192
293
  }
package/tsconfig.lib.json CHANGED
@@ -3,17 +3,24 @@
3
3
  "declaration": true,
4
4
  "declarationDir": "./dist/types",
5
5
  "outDir": "./dist",
6
- "module": "esnext",
6
+ "module": "ESNext",
7
7
  "rootDir": "./",
8
- "target": "es2021",
8
+ "target": "ESNext",
9
9
  "esModuleInterop": true,
10
10
  "moduleResolution": "node",
11
11
  "baseUrl": ".",
12
12
  "paths": {
13
- "@/*": ["./*"]
13
+ "@/*": [
14
+ "./*"
15
+ ]
14
16
  },
15
17
  "jsx": "react-jsx"
16
18
  },
17
- "include": ["stories/**/*.ts", "utils/**/*.ts"],
18
- "exclude": ["node_modules"]
19
- }
19
+ "include": [
20
+ "stories/**/*.ts",
21
+ "utils/**/*.ts"
22
+ ],
23
+ "exclude": [
24
+ "node_modules"
25
+ ]
26
+ }
package/watch.js ADDED
@@ -0,0 +1,49 @@
1
+ const path = require('path')
2
+ const esbuild = require("esbuild")
3
+
4
+ const context = {
5
+ logLevel: "info",
6
+ entryPoints: [path.resolve(__dirname, "stories/index.ts")],
7
+ bundle: true,
8
+ platform: "browser",
9
+ target: ["esnext"],
10
+ minify: true,
11
+ pure: ["React.createElement"],
12
+ jsx: 'transform',
13
+ loader: { '.js': 'jsx' },
14
+ outdir: path.resolve(__dirname, "dist"),
15
+ sourcemap: true,
16
+ external: [
17
+ "react",
18
+ "react-dom",
19
+ "@floating-ui/react",
20
+ "@headlessui/react",
21
+ "@headlessui/tailwindcss",
22
+ "@heroicons/react",
23
+ "@tabler/icons",
24
+ "@tabler/icons-react",
25
+ "classnames",
26
+ "react-icons",
27
+ "@storybook/react",
28
+ "@storybook/addon-designs",
29
+ "@storybook/addon-essentials",
30
+ "@storybook/addon-interactions",
31
+ "@storybook/addon-links",
32
+ "@storybook/blocks",
33
+ "@storybook/manager-api",
34
+ "@storybook/nextjs",
35
+ "@storybook/react",
36
+ "@storybook/testing-library",
37
+ "@storybook/theming",
38
+ "storybook"
39
+ ],
40
+ format: "esm"
41
+ }
42
+
43
+ async function watch() {
44
+ const ctx = await esbuild.context(context)
45
+ ctx.watch()
46
+ console.log(`Watching....`)
47
+ }
48
+
49
+ watch()
package/.yarnrc.yml DELETED
@@ -1 +0,0 @@
1
- nodeLinker: node-modules
File without changes
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import Select from "./Select";
3
- declare const meta: Meta<typeof Select>;
4
- type Story = StoryObj<typeof Select>;
5
- export declare const DefaultSelect: Story;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import Textarea from "./TextArea";
3
- declare const meta: Meta<typeof Textarea>;
4
- type Story = StoryObj<typeof Textarea>;
5
- export declare const DefaultTextarea: Story;
6
- export default meta;
@@ -1,18 +0,0 @@
1
-
2
- import type { Meta, StoryObj } from "@storybook/react"
3
- import CardLayout, { ICardLayoutProps } from "./CardLayout"
4
-
5
- const meta: Meta<typeof CardLayout> = {
6
- title: "Design System/layouts/CardLayout",
7
- component: CardLayout,
8
- tags: ["autodocs"],
9
- argTypes: {}
10
- }
11
-
12
- export default meta
13
- type Story = StoryObj<typeof CardLayout>
14
- export const DefaultCardLayoutStory: Story = {
15
- args: {
16
-
17
- }
18
- }
@@ -1,22 +0,0 @@
1
-
2
- import React from "react"
3
- import EmptySectionPlaceholder from "@/stories/organisms/EmptySectionPlaceholder"
4
-
5
- export interface ICardLayoutProps {}
6
-
7
- const CardLayout: React.FC<ICardLayoutProps> = ({}) => {
8
- return (
9
- <EmptySectionPlaceholder
10
- {...{
11
- icon: {
12
- icon: "IconCode"
13
- },
14
- mutedText: "Coming Soon! 🚧",
15
- primaryMessage: "We're working on this component. Be sure to check back soon!",
16
- actions: []
17
- }}
18
- />
19
- )
20
- };
21
-
22
- export default CardLayout;
@@ -1,3 +0,0 @@
1
-
2
- export { default } from './CardLayout';
3
- export * from './CardLayout';
@@ -1,18 +0,0 @@
1
-
2
- import type { Meta, StoryObj } from "@storybook/react"
3
- import ModalLayout, { IModalLayoutProps } from "./ModalLayout"
4
-
5
- const meta: Meta<typeof ModalLayout> = {
6
- title: "Design System/layouts/ModalLayout",
7
- component: ModalLayout,
8
- tags: ["autodocs"],
9
- argTypes: {}
10
- }
11
-
12
- export default meta
13
- type Story = StoryObj<typeof ModalLayout>
14
- export const DefaultModalLayoutStory: Story = {
15
- args: {
16
-
17
- }
18
- }
@@ -1,22 +0,0 @@
1
-
2
- import React from "react"
3
- import EmptySectionPlaceholder from "@/stories/organisms/EmptySectionPlaceholder"
4
-
5
- export interface IModalLayoutProps {}
6
-
7
- const ModalLayout: React.FC<IModalLayoutProps> = ({}) => {
8
- return (
9
- <EmptySectionPlaceholder
10
- {...{
11
- icon: {
12
- icon: "IconCode"
13
- },
14
- mutedText: "Coming Soon! 🚧",
15
- primaryMessage: "We're working on this component. Be sure to check back soon!",
16
- actions: []
17
- }}
18
- />
19
- )
20
- };
21
-
22
- export default ModalLayout;
@@ -1,3 +0,0 @@
1
-
2
- export { default } from './ModalLayout';
3
- export * from './ModalLayout';
File without changes
@@ -1,23 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react"
2
- import Select from "./Select"
3
- const meta: Meta<typeof Select> = {
4
- title: "Design System/Molecules/Inputs/Select",
5
- component: Select,
6
- tags: ["autodocs"]
7
- }
8
- type Story = StoryObj<typeof Select>
9
- export const DefaultSelect: Story = {
10
- args: {
11
- label: "Label",
12
- id: "select",
13
- name: "select",
14
- options: [
15
- { label: "Canada", value: "value1" },
16
- { label: "USA", value: "value2" }
17
- ],
18
- isDisabled: false,
19
- isError: false,
20
- isRequired: false
21
- }
22
- }
23
- export default meta