@agility/plenum-ui 2.0.0-rc1 → 2.0.0-rc10
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/README.md +1 -1
- package/build.js +8 -0
- package/dist/index.d.ts +1117 -0
- package/dist/index.js +515 -155
- package/dist/index.js.map +4 -4
- package/dist/lib/tailwind.css +63535 -0
- package/dist/types/stories/atoms/buttons/Button/Alternative/Alternative.stories.d.ts +1 -0
- package/dist/types/stories/atoms/buttons/Button/Button.d.ts +6 -4
- package/dist/types/stories/atoms/buttons/Button/Danger/Danger.stories.d.ts +1 -0
- package/dist/types/stories/atoms/buttons/Button/Primary/Primary.stories.d.ts +1 -0
- package/dist/types/stories/atoms/buttons/Button/Secondary/Secondary.stories.d.ts +1 -0
- package/dist/types/stories/index.d.ts +4 -4
- package/dist/types/stories/molecules/index.d.ts +3 -3
- package/dist/types/stories/molecules/inputs/InputCounter/InputCounter.d.ts +10 -0
- package/dist/types/stories/molecules/inputs/InputCounter/index.d.ts +2 -0
- package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +3 -1
- package/dist/types/stories/molecules/inputs/TextInput/TextInput.d.ts +39 -0
- package/dist/types/stories/molecules/inputs/TextInput/index.d.ts +4 -0
- package/dist/types/stories/molecules/inputs/index.d.ts +5 -4
- package/dist/types/stories/molecules/inputs/select/Select.d.ts +2 -2
- package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +30 -21
- package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +4 -4
- package/dist/types/stories/molecules/inputs/textArea/index.d.ts +3 -3
- package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +2 -2
- package/dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts +3 -7
- package/dist/types/stories/organisms/TextInputSelect/InputSelect.d.ts +16 -0
- package/dist/types/stories/organisms/TextInputSelect/TextInputSelect.d.ts +48 -0
- package/dist/types/stories/organisms/TextInputSelect/index.d.ts +3 -0
- package/dist/types/stories/organisms/index.d.ts +3 -2
- package/package.json +4 -3
- package/stories/Introduction.mdx +1 -1
- package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +7 -0
- package/stories/atoms/buttons/Button/Button.tsx +25 -2
- package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +7 -0
- package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +7 -0
- package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +7 -0
- package/stories/index.ts +18 -8
- package/stories/molecules/index.ts +22 -6
- package/stories/molecules/inputs/InputCounter/InputCounter.stories.tsx +18 -0
- package/stories/molecules/inputs/InputCounter/InputCounter.tsx +24 -0
- package/stories/molecules/inputs/InputCounter/index.tsx +3 -0
- package/stories/molecules/inputs/InputField/InputField.tsx +7 -1
- package/stories/molecules/inputs/TextInput/TextInput.stories.tsx +32 -0
- package/stories/molecules/inputs/TextInput/TextInput.tsx +162 -0
- package/stories/molecules/inputs/TextInput/index.tsx +5 -0
- package/stories/molecules/inputs/index.ts +18 -4
- package/stories/molecules/inputs/select/Select.tsx +1 -1
- package/stories/molecules/inputs/textArea/TextArea.stories.ts +7 -5
- package/stories/molecules/inputs/textArea/TextArea.tsx +110 -49
- package/stories/molecules/inputs/textArea/index.ts +3 -3
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +3 -3
- package/stories/organisms/DropdownComponent/DropdownComponent.tsx +111 -80
- package/stories/organisms/DropdownComponent/dropdownItems.ts +8 -8
- package/stories/organisms/TextInputSelect/InputSelect.tsx +59 -0
- package/stories/organisms/TextInputSelect/TextInputSelect.stories.tsx +33 -0
- package/stories/organisms/TextInputSelect/TextInputSelect.tsx +186 -0
- package/stories/organisms/TextInputSelect/index.tsx +3 -0
- package/stories/organisms/index.ts +4 -2
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ In your app entry point (i.e. \`_app.tsx\`), import the \`globals.css\` file fro
|
|
|
27
27
|
|
|
28
28
|
```jsx
|
|
29
29
|
import "<RELATIVE_PATH>/globals.css";
|
|
30
|
-
import "@agility/plenum-ui/lib/tailwind.css";
|
|
30
|
+
import "@agility/plenum-ui/dist/lib/tailwind.css";
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
Make sure to add any additional styles before these two import statements to prevent overwriting the Plenum styling.
|
package/build.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
const { execSync } = require("child_process")
|
|
2
2
|
const esbuild = require("esbuild")
|
|
3
3
|
const path = require("path")
|
|
4
|
+
const { Generator } = require('npm-dts');
|
|
5
|
+
|
|
6
|
+
new Generator({
|
|
7
|
+
entry: path.resolve(__dirname, "stories/index.ts"),
|
|
8
|
+
output: path.resolve(__dirname, 'dist/index.d.ts'),
|
|
9
|
+
tsc: "--emitDeclarationOnly --project tsconfig.lib.json"
|
|
10
|
+
}).generate();
|
|
4
11
|
|
|
5
12
|
// Run TypeScript to generate type declarations using the new tsconfig.lib.json
|
|
6
13
|
execSync("tsc --emitDeclarationOnly --project tsconfig.lib.json", { stdio: "inherit" })
|
|
@@ -12,6 +19,7 @@ esbuild
|
|
|
12
19
|
bundle: true,
|
|
13
20
|
platform: "browser",
|
|
14
21
|
target: ["es6"],
|
|
22
|
+
//HACK outfile: "dist/index.js,"
|
|
15
23
|
outdir: path.resolve(__dirname, "dist"),
|
|
16
24
|
sourcemap: true,
|
|
17
25
|
external: [
|