@agility/plenum-ui 2.0.0-rc9 → 2.0.0

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 (91) hide show
  1. package/README.md +104 -31
  2. package/build.js +30 -25
  3. package/dist/index.d.ts +101 -61
  4. package/dist/index.js +1 -6295
  5. package/dist/index.js.map +4 -4
  6. package/dist/{lib/tailwind.css → tailwind.css} +3729 -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/select/Select.d.ts +4 -2
  19. package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +5 -1
  20. package/dist/types/stories/molecules/inputs/toggleSwitch/ToggleSwitch.d.ts +10 -7
  21. package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +5 -5
  22. package/dist/types/stories/organisms/AnimatedLabelInput/index.d.ts +1 -1
  23. package/dist/types/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.d.ts +12 -0
  24. package/dist/types/stories/organisms/AnimatedLabelTextArea/index.d.ts +3 -0
  25. package/dist/types/stories/organisms/ButtonDropdown/ButtonDropdown.d.ts +1 -0
  26. package/dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts +24 -13
  27. package/dist/types/stories/organisms/DropdownComponent/index.d.ts +2 -2
  28. package/dist/types/stories/organisms/EmptySectionPlaceholder/index.d.ts +1 -1
  29. package/dist/types/stories/organisms/index.d.ts +4 -3
  30. package/local.sh +100 -0
  31. package/package.json +36 -19
  32. package/rollup.config.mjs +42 -0
  33. package/stories/atoms/badges/Badge.tsx +1 -1
  34. package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +10 -0
  35. package/stories/atoms/buttons/Button/Button.tsx +111 -25
  36. package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +14 -2
  37. package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +14 -2
  38. package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +13 -1
  39. package/stories/atoms/buttons/Button/defaultArgs.ts +1 -1
  40. package/stories/atoms/buttons/Capsule/Capsule.tsx +2 -1
  41. package/stories/atoms/icons/DynamicIcon.stories.ts +1 -1
  42. package/stories/atoms/icons/DynamicIcon.tsx +7 -7
  43. package/stories/atoms/icons/IconWithShadow.stories.ts +3 -3
  44. package/stories/atoms/icons/TablerIcon.tsx +1 -1
  45. package/stories/atoms/loaders/Loader.tsx +12 -6
  46. package/stories/atoms/loaders/NProgress/RadialProgress.tsx +0 -2
  47. package/stories/index.ts +8 -4
  48. package/stories/molecules/inputs/InputCounter/InputCounter.tsx +2 -2
  49. package/stories/molecules/inputs/InputField/InputField.tsx +31 -29
  50. package/stories/molecules/inputs/InputLabel/InputLabel.tsx +1 -1
  51. package/stories/molecules/inputs/TextInput/TextInput.tsx +12 -6
  52. package/stories/molecules/inputs/checkbox/Checkbox.stories.ts +1 -1
  53. package/stories/molecules/inputs/checkbox/Checkbox.tsx +1 -2
  54. package/stories/molecules/inputs/combobox/ComboBox.tsx +126 -135
  55. package/stories/molecules/inputs/radio/Radio.stories.ts +2 -2
  56. package/stories/molecules/inputs/select/Select.tsx +10 -2
  57. package/stories/molecules/inputs/textArea/TextArea.stories.ts +1 -1
  58. package/stories/molecules/inputs/textArea/TextArea.tsx +57 -27
  59. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.stories.tsx +15 -16
  60. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +63 -57
  61. package/stories/molecules/tabs/index.tsx +2 -3
  62. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +10 -1
  63. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +53 -37
  64. package/stories/organisms/AnimatedLabelInput/index.tsx +1 -1
  65. package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.stories.tsx +26 -0
  66. package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.tsx +61 -0
  67. package/stories/organisms/AnimatedLabelTextArea/index.tsx +3 -0
  68. package/stories/organisms/ButtonDropdown/ButtonDropdown.stories.tsx +59 -59
  69. package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +42 -30
  70. package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +26 -2
  71. package/stories/organisms/DropdownComponent/DropdownComponent.tsx +232 -180
  72. package/stories/organisms/DropdownComponent/dropdownItems.ts +30 -9
  73. package/stories/organisms/DropdownComponent/index.ts +2 -2
  74. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +3 -3
  75. package/stories/organisms/EmptySectionPlaceholder/index.tsx +2 -1
  76. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +1 -1
  77. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +7 -2
  78. package/stories/organisms/index.ts +12 -3
  79. package/tailwind.config.js +81 -37
  80. package/tsconfig.lib.json +13 -6
  81. package/watch.js +49 -0
  82. package/.yarnrc.yml +0 -1
  83. package/dist/types/stories/layouts/index.d.ts +0 -0
  84. package/stories/layouts/CardLayout/CardLayout.stories.tsx +0 -18
  85. package/stories/layouts/CardLayout/CardLayout.tsx +0 -22
  86. package/stories/layouts/CardLayout/index.tsx +0 -3
  87. package/stories/layouts/ModalLayout/ModalLayout.stories.tsx +0 -18
  88. package/stories/layouts/ModalLayout/ModalLayout.tsx +0 -22
  89. package/stories/layouts/ModalLayout/index.tsx +0 -3
  90. package/stories/layouts/index.ts +0 -0
  91. package/stories/organisms/DropdownComponent/Dropdown.test.tsx +0 -0
@@ -48,6 +48,28 @@ module.exports = {
48
48
  header: "max-content 1fr 1fr"
49
49
  },
50
50
  colors: {
51
+ "transparent-white-05": "rgba(255, 255, 255, 0.05)",
52
+ "transparent-white-10": "rgba(255, 255, 255, 0.1)",
53
+ "transparent-white-20": "rgba(255, 255, 255, 0.2)",
54
+ "transparent-white-30": "rgba(255, 255, 255, 0.3)",
55
+ "transparent-white-40": "rgba(255, 255, 255, 0.4)",
56
+ "transparent-white-50": "rgba(255, 255, 255, 0.5)",
57
+ "transparent-white-60": "rgba(255, 255, 255, 0.6)",
58
+ "transparent-white-70": "rgba(255, 255, 255, 0.7)",
59
+ "transparent-white-80": "rgba(255, 255, 255, 0.8)",
60
+ "transparent-white-90": "rgba(255, 255, 255, 0.9)",
61
+
62
+ "transparent-black-05": "rgba(0, 0, 0, 0.05)",
63
+ "transparent-black-10": "rgba(0, 0, 0, 0.1)",
64
+ "transparent-black-20": "rgba(0, 0, 0, 0.2)",
65
+ "transparent-black-30": "rgba(0, 0, 0, 0.3)",
66
+ "transparent-black-40": "rgba(0, 0, 0, 0.4)",
67
+ "transparent-black-50": "rgba(0, 0, 0, 0.5)",
68
+ "transparent-black-60": "rgba(0, 0, 0, 0.6)",
69
+ "transparent-black-70": "rgba(0, 0, 0, 0.7)",
70
+ "transparent-black-80": "rgba(0, 0, 0, 0.8)",
71
+ "transparent-black-90": "rgba(0, 0, 0, 0.9)",
72
+
51
73
  "gray-50": "#F9FAFB",
52
74
  "gray-100": "#F3F4F6",
53
75
  "gray-200": "#E5E7EB",
@@ -56,7 +78,6 @@ module.exports = {
56
78
  "gray-500": "#6B7280",
57
79
  "gray-600": "#4B5563",
58
80
  "gray-700": "#374151",
59
- "gray-800": "#1F2937",
60
81
  "gray-900": "#111827",
61
82
 
62
83
  "red-50": "#FEF2F2",
@@ -92,6 +113,17 @@ module.exports = {
92
113
  "yellow-800": "#997A18",
93
114
  "yellow-900": "#806614",
94
115
 
116
+ "green-50": "#ECFDF5",
117
+ "green-100": "#D1FAE5",
118
+ "green-200": "#A7F3D0",
119
+ "green-300": "#6EE7B7",
120
+ "green-400": "#34D399",
121
+ "green-500": "#10B981",
122
+ "green-600": "#059669",
123
+ "green-700": "#047857",
124
+ "green-800": "#065F46",
125
+ "green-900": "#064E3B",
126
+
95
127
  "teal-50": "#F0FDFA",
96
128
  "teal-100": "#CCFBF1",
97
129
  "teal-200": "#99F6E4",
@@ -103,33 +135,33 @@ module.exports = {
103
135
  "teal-800": "#115E59",
104
136
  "teal-900": "#134E4A",
105
137
 
106
- "cyan-50": "#CFFAFE",
107
- "cyan-100": "#A5F3FC",
108
- "cyan-200": "#67E8F9",
109
- "cyan-300": "#22D3EE",
110
- "cyan-400": "#ECFEFF",
138
+ "cyan-50": "#ECFEFF",
139
+ "cyan-100": "#CFFAFE",
140
+ "cyan-200": "#A5F3FC",
141
+ "cyan-300": "#67E8F9",
142
+ "cyan-400": "#22D3EE",
111
143
  "cyan-500": "#06B6D4",
112
144
  "cyan-600": "#0891B2",
113
145
  "cyan-700": "#0E7490",
114
146
  "cyan-800": "#155E75",
115
147
  "cyan-900": "#164E63",
116
148
 
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",
149
+ "lightBlue-50": "#F0F9FF",
150
+ "lightBlue-100": "#E0F2FE",
151
+ "lightBlue-200": "#BAE6FD",
152
+ "lightBlue-300": "#7DD3FC",
153
+ "lightBlue-400": "#38BDF8",
154
+ "lightBlue-500": "#0EA5E9",
155
+ "lightBlue-600": "#0284C7",
156
+ "lightBlue-700": "#0369A1",
157
+ "lightBlue-800": "#075985",
158
+ "lightBlue-900": "#0C4A6E",
127
159
 
128
- "blue-50": "#DBEAFE",
129
- "blue-100": "#BFDBFE",
130
- "blue-200": "#93C5FD",
131
- "blue-300": "#60A5FA",
132
- "blue-400": "#EFF6FF",
160
+ "blue-50": "#EFF6FF",
161
+ "blue-100": "#DBEAFE",
162
+ "blue-200": "#BFDBFE",
163
+ "blue-300": "#93C5FD",
164
+ "blue-400": "#60A5FA",
133
165
  "blue-500": "#3B82F6",
134
166
  "blue-600": "#2563EB",
135
167
  "blue-700": "#1D4ED8",
@@ -147,20 +179,21 @@ module.exports = {
147
179
  "purple-800": "#4F00BF",
148
180
  "purple-900": "#4600AA",
149
181
 
150
- "violet-50": "#EDE9FE",
151
- "violet-100": "#DDD6FE",
152
- "violet-200": "#C4B5FD",
153
- "violet-300": "#A78BFA",
154
- "violet-400": "#F5F3FF",
182
+ "violet-50": "#F5F3FF",
183
+ "violet-100": "#EDE9FE",
184
+ "violet-200": "#DDD6FE",
185
+ "violet-300": "#C4B5FD",
186
+ "violet-400": "#A78BFA",
155
187
  "violet-500": "#8B5CF6",
156
188
  "violet-600": "#7C3AED",
157
189
  "violet-700": "#6D28D9",
158
190
  "violet-800": "#5B21B6",
159
191
  "violet-900": "#4C1D95",
160
192
 
161
- "pink-50": "#FCE7F3",
193
+ "pink-50": "#FDF2F8",
162
194
  "pink-100": "#FCE7F3",
163
195
  "pink-200": "#FBCFE8",
196
+ "pink-300": "#F9A8D4",
164
197
  "pink-400": "#F472B6",
165
198
  "pink-500": "#EC4899",
166
199
  "pink-600": "#DB2777",
@@ -168,11 +201,11 @@ module.exports = {
168
201
  "pink-800": "#9D174D",
169
202
  "pink-900": "#831843",
170
203
 
171
- "rose-50": "#FFE4E6",
172
- "rose-100": "#FECDD3",
173
- "rose-200": "#FDA4AF",
174
- "rose-300": "#FB7185",
175
- "rose-400": "#FFF1F2",
204
+ "rose-50": "#FFF1F2",
205
+ "rose-100": "#FFE4E6",
206
+ "rose-200": "#FECDD3",
207
+ "rose-300": "#FDA4AF",
208
+ "rose-400": "#FB7185",
176
209
  "rose-500": "#F43F5E",
177
210
  "rose-600": "#E11D48",
178
211
  "rose-700": "#BE123C",
@@ -181,12 +214,23 @@ module.exports = {
181
214
  },
182
215
  fontWeight: {
183
216
  medium: 600
217
+ },
218
+ fontSize: {
219
+ xs: ["0.75rem", "1rem"],
220
+ sm: ["0.875rem", "1.25rem"],
221
+ base: ["1rem", "1.5rem"],
222
+ lg: ["1.125rem", "1.75rem"],
223
+ xl: ["1.25rem", "1.75rem"],
224
+ "2xl": ["1.5rem", "2rem"],
225
+ "3xl": ["1.875rem", "2.25rem"],
226
+ "4xl": ["2.25rem", "2.5rem"],
227
+ "5xl": ["3rem", "3rem"],
228
+ "6xl": ["3.75rem", "3.75rem"],
229
+ "7xl": ["4.5rem", "4.5rem"],
230
+ "8xl": ["6rem", "6rem"],
231
+ "9xl": ["8rem", "8rem"]
184
232
  }
185
233
  }
186
234
  },
187
- plugins: [
188
- require("@tailwindcss/forms"),
189
- require("@tailwindcss/typography"),
190
- require("@headlessui/tailwindcss")
191
- ]
235
+ plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography"), require("@headlessui/tailwindcss")]
192
236
  }
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,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