@kroo-web/design-system 1.0.39 → 1.0.41

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 (70) hide show
  1. package/README.MD +5 -0
  2. package/dist/cjs/icons/Icon.stories.d.ts +2 -2
  3. package/dist/cjs/index.js +40 -4
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/product/components/Button/button.stories.d.ts +5 -1
  6. package/dist/cjs/product/components/Button/index.d.ts +24 -3
  7. package/dist/cjs/product/components/Callout/Callout.stories.d.ts +1 -1
  8. package/dist/cjs/product/components/Columns/Columns.stories.d.ts +6 -0
  9. package/dist/cjs/product/components/DatePicker/DatePicker.stories.d.ts +1 -1
  10. package/dist/cjs/product/components/Disclosure/Disclosure.stories.d.ts +1 -1
  11. package/dist/cjs/product/components/Form/Form.stories.d.ts +12 -0
  12. package/dist/cjs/product/components/Loading/Loading.stories.d.ts +7 -0
  13. package/dist/cjs/product/components/Loading/Loading.test.d.ts +1 -0
  14. package/dist/cjs/product/components/Loading/index.d.ts +12 -0
  15. package/dist/cjs/product/components/Modal/Modal.stories.d.ts +7 -0
  16. package/dist/cjs/product/components/Modal/Modal.test.d.ts +1 -0
  17. package/dist/cjs/product/components/Modal/index.d.ts +25 -0
  18. package/dist/cjs/product/components/NumberField/numberField.stories.d.ts +1 -1
  19. package/dist/cjs/product/components/ProgressIndicator/ProgressIndicator.stories.d.ts +1 -1
  20. package/dist/cjs/product/components/ProgressIndicator/index.d.ts +2 -2
  21. package/dist/cjs/product/components/RadioGroup/radioGroup.stories.d.ts +1 -1
  22. package/dist/cjs/product/components/Range/range.stories.d.ts +2 -2
  23. package/dist/cjs/product/components/Select/select.stories.d.ts +2 -2
  24. package/dist/cjs/product/components/TextField/textField.stories.d.ts +1 -1
  25. package/dist/cjs/product/components/Toast/Toast.stories.d.ts +7 -0
  26. package/dist/cjs/product/components/Toast/index.d.ts +16 -0
  27. package/dist/cjs/product/components/Tooltip/Tooltip.stories.d.ts +7 -0
  28. package/dist/cjs/product/components/Tooltip/Tooltip.test.d.ts +1 -0
  29. package/dist/cjs/product/components/Tooltip/index.d.ts +10 -0
  30. package/dist/cjs/product/components/Typography/typography.stories.d.ts +1 -1
  31. package/dist/cjs/product/components/index.d.ts +6 -1
  32. package/dist/esm/icons/Icon.stories.d.ts +2 -2
  33. package/dist/esm/index.js +40 -4
  34. package/dist/esm/index.js.map +1 -1
  35. package/dist/esm/product/components/Button/button.stories.d.ts +5 -1
  36. package/dist/esm/product/components/Button/index.d.ts +24 -3
  37. package/dist/esm/product/components/Callout/Callout.stories.d.ts +1 -1
  38. package/dist/esm/product/components/Columns/Columns.stories.d.ts +6 -0
  39. package/dist/esm/product/components/DatePicker/DatePicker.stories.d.ts +1 -1
  40. package/dist/esm/product/components/Disclosure/Disclosure.stories.d.ts +1 -1
  41. package/dist/esm/product/components/Form/Form.stories.d.ts +12 -0
  42. package/dist/esm/product/components/Loading/Loading.stories.d.ts +7 -0
  43. package/dist/esm/product/components/Loading/Loading.test.d.ts +1 -0
  44. package/dist/esm/product/components/Loading/index.d.ts +12 -0
  45. package/dist/esm/product/components/Modal/Modal.stories.d.ts +7 -0
  46. package/dist/esm/product/components/Modal/Modal.test.d.ts +1 -0
  47. package/dist/esm/product/components/Modal/index.d.ts +25 -0
  48. package/dist/esm/product/components/NumberField/numberField.stories.d.ts +1 -1
  49. package/dist/esm/product/components/ProgressIndicator/ProgressIndicator.stories.d.ts +1 -1
  50. package/dist/esm/product/components/ProgressIndicator/index.d.ts +2 -2
  51. package/dist/esm/product/components/RadioGroup/radioGroup.stories.d.ts +1 -1
  52. package/dist/esm/product/components/Range/range.stories.d.ts +2 -2
  53. package/dist/esm/product/components/Select/select.stories.d.ts +2 -2
  54. package/dist/esm/product/components/TextField/textField.stories.d.ts +1 -1
  55. package/dist/esm/product/components/Toast/Toast.stories.d.ts +7 -0
  56. package/dist/esm/product/components/Toast/index.d.ts +16 -0
  57. package/dist/esm/product/components/Tooltip/Tooltip.stories.d.ts +7 -0
  58. package/dist/esm/product/components/Tooltip/Tooltip.test.d.ts +1 -0
  59. package/dist/esm/product/components/Tooltip/index.d.ts +10 -0
  60. package/dist/esm/product/components/Typography/typography.stories.d.ts +1 -1
  61. package/dist/esm/product/components/index.d.ts +6 -1
  62. package/dist/styles/dev.global.css +2 -0
  63. package/dist/styles/global.css +4 -0
  64. package/dist/styles/tokens/product.css +1 -0
  65. package/dist/types.d.ts +117 -26
  66. package/package.json +8 -5
  67. /package/dist/cjs/product/components/{FormField → shared/FormField}/FormField.stories.d.ts +0 -0
  68. /package/dist/cjs/product/components/{FormField → shared/FormField}/index.d.ts +0 -0
  69. /package/dist/esm/product/components/{FormField → shared/FormField}/FormField.stories.d.ts +0 -0
  70. /package/dist/esm/product/components/{FormField → shared/FormField}/index.d.ts +0 -0
package/README.MD CHANGED
@@ -38,6 +38,11 @@ That's all folks! You can now use the components in the design system in your ap
38
38
  import { TextField } from '@kroo-web/design-system';
39
39
  ```
40
40
 
41
+ ## react-toastify
42
+
43
+ Our toasts have been styled via the design system however how the toast is displayed is handled by the `react-toastify` library. This means that you can use the `toast` function from `react-toastify` to display the toast in the project of your choosing and pass the Design System toast component to display it.
44
+
45
+ for setup you will need to add the `ToastContainer` component from `react-toastify` to the root of your project.
41
46
 
42
47
  ## Next Steps
43
48
 
@@ -1,8 +1,8 @@
1
1
  import { StoryObj } from "@storybook/react";
2
2
  import { Icon } from ".";
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, {
4
- size?: "large" | "regular" | "xlarge" | undefined;
5
- weight?: "medium" | "normal" | "light" | undefined;
4
+ size?: "regular" | "large" | "xlarge" | undefined;
5
+ weight?: "light" | "normal" | "medium" | undefined;
6
6
  } & Omit<import("react-material-symbols").MaterialSymbolProps, "size" | "weight">>;
7
7
  export default _default;
8
8
  type Story = StoryObj<typeof Icon>;