@agility/plenum-ui 2.0.0 → 2.0.2
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/dist/index.d.ts +3 -18
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/tailwind.css +45 -11
- package/dist/types/stories/molecules/inputs/checkbox/Checkbox.d.ts +2 -0
- package/dist/types/stories/organisms/DropdownComponent/dropdownItems.d.ts +1 -0
- package/package.json +2 -2
- package/stories/molecules/inputs/InputLabel/InputLabel.tsx +5 -5
- package/stories/molecules/inputs/TextInput/TextInput.stories.tsx +31 -1
- package/stories/molecules/inputs/TextInput/TextInput.tsx +5 -3
- package/stories/molecules/inputs/checkbox/Checkbox.tsx +6 -2
- package/stories/molecules/inputs/select/Select.stories.tsx +53 -0
- package/stories/molecules/inputs/select/Select.tsx +1 -1
- package/stories/molecules/inputs/textArea/{TextArea.stories.ts → TextArea.stories.tsx} +24 -1
- package/stories/molecules/inputs/textArea/TextArea.tsx +1 -1
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +22 -1
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +21 -8
- package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +7 -2
- package/stories/organisms/DropdownComponent/DropdownComponent.tsx +14 -3
- package/stories/organisms/DropdownComponent/dropdownItems.ts +38 -32
- package/tailwind.config.js +57 -0
- package/dist/types/stories/molecules/inputs/select/Select.stories.d.ts +0 -6
- package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +0 -6
- package/stories/molecules/inputs/select/Select.stories.ts +0 -23
package/tailwind.config.js
CHANGED
|
@@ -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"
|
|
@@ -59,6 +63,7 @@ module.exports = {
|
|
|
59
63
|
"transparent-white-80": "rgba(255, 255, 255, 0.8)",
|
|
60
64
|
"transparent-white-90": "rgba(255, 255, 255, 0.9)",
|
|
61
65
|
|
|
66
|
+
"transparent-black-03": "rgba(0, 0, 0, 0.03)",
|
|
62
67
|
"transparent-black-05": "rgba(0, 0, 0, 0.05)",
|
|
63
68
|
"transparent-black-10": "rgba(0, 0, 0, 0.1)",
|
|
64
69
|
"transparent-black-20": "rgba(0, 0, 0, 0.2)",
|
|
@@ -229,6 +234,58 @@ module.exports = {
|
|
|
229
234
|
"7xl": ["4.5rem", "4.5rem"],
|
|
230
235
|
"8xl": ["6rem", "6rem"],
|
|
231
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"
|
|
232
289
|
}
|
|
233
290
|
}
|
|
234
291
|
},
|
|
@@ -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
|