@agility/plenum-ui 2.0.0-rc1 → 2.0.0-rc11

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 (63) hide show
  1. package/README.md +1 -1
  2. package/build.js +8 -0
  3. package/dist/index.d.ts +1117 -0
  4. package/dist/index.js +515 -155
  5. package/dist/index.js.map +4 -4
  6. package/dist/lib/tailwind.css +63535 -0
  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 +6 -4
  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/index.d.ts +4 -4
  13. package/dist/types/stories/molecules/index.d.ts +3 -3
  14. package/dist/types/stories/molecules/inputs/InputCounter/InputCounter.d.ts +10 -0
  15. package/dist/types/stories/molecules/inputs/InputCounter/index.d.ts +2 -0
  16. package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +3 -1
  17. package/dist/types/stories/molecules/inputs/TextInput/TextInput.d.ts +39 -0
  18. package/dist/types/stories/molecules/inputs/TextInput/index.d.ts +4 -0
  19. package/dist/types/stories/molecules/inputs/index.d.ts +5 -4
  20. package/dist/types/stories/molecules/inputs/select/Select.d.ts +2 -2
  21. package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +30 -21
  22. package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +4 -4
  23. package/dist/types/stories/molecules/inputs/textArea/index.d.ts +3 -3
  24. package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +2 -2
  25. package/dist/types/stories/organisms/AnimatedLabelInput/index.d.ts +1 -1
  26. package/dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts +3 -7
  27. package/dist/types/stories/organisms/EmptySectionPlaceholder/index.d.ts +1 -1
  28. package/dist/types/stories/organisms/TextInputSelect/InputSelect.d.ts +16 -0
  29. package/dist/types/stories/organisms/TextInputSelect/TextInputSelect.d.ts +48 -0
  30. package/dist/types/stories/organisms/TextInputSelect/index.d.ts +3 -0
  31. package/dist/types/stories/organisms/index.d.ts +3 -2
  32. package/package.json +4 -3
  33. package/stories/Introduction.mdx +1 -1
  34. package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +7 -0
  35. package/stories/atoms/buttons/Button/Button.tsx +25 -2
  36. package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +7 -0
  37. package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +7 -0
  38. package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +7 -0
  39. package/stories/index.ts +18 -8
  40. package/stories/molecules/index.ts +22 -6
  41. package/stories/molecules/inputs/InputCounter/InputCounter.stories.tsx +18 -0
  42. package/stories/molecules/inputs/InputCounter/InputCounter.tsx +24 -0
  43. package/stories/molecules/inputs/InputCounter/index.tsx +3 -0
  44. package/stories/molecules/inputs/InputField/InputField.tsx +7 -1
  45. package/stories/molecules/inputs/TextInput/TextInput.stories.tsx +32 -0
  46. package/stories/molecules/inputs/TextInput/TextInput.tsx +162 -0
  47. package/stories/molecules/inputs/TextInput/index.tsx +5 -0
  48. package/stories/molecules/inputs/index.ts +18 -4
  49. package/stories/molecules/inputs/select/Select.tsx +1 -1
  50. package/stories/molecules/inputs/textArea/TextArea.stories.ts +7 -5
  51. package/stories/molecules/inputs/textArea/TextArea.tsx +110 -49
  52. package/stories/molecules/inputs/textArea/index.ts +3 -3
  53. package/stories/molecules/tabs/index.tsx +2 -3
  54. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +3 -3
  55. package/stories/organisms/AnimatedLabelInput/index.tsx +1 -1
  56. package/stories/organisms/DropdownComponent/DropdownComponent.tsx +111 -80
  57. package/stories/organisms/DropdownComponent/dropdownItems.ts +8 -8
  58. package/stories/organisms/EmptySectionPlaceholder/index.tsx +2 -1
  59. package/stories/organisms/TextInputSelect/InputSelect.tsx +59 -0
  60. package/stories/organisms/TextInputSelect/TextInputSelect.stories.tsx +33 -0
  61. package/stories/organisms/TextInputSelect/TextInputSelect.tsx +186 -0
  62. package/stories/organisms/TextInputSelect/index.tsx +3 -0
  63. 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: [