@luscii-healthtech/web-ui 2.48.0 → 2.48.1

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 (59) hide show
  1. package/README.md +9 -0
  2. package/dist/components/Icons/AddIcon.d.ts +2 -1
  3. package/dist/components/Icons/AlertsIcon.d.ts +2 -1
  4. package/dist/components/Icons/BellIcon.d.ts +2 -1
  5. package/dist/components/Icons/ChartIcon.d.ts +2 -1
  6. package/dist/components/Icons/ChartLineColoredIcon.d.ts +2 -1
  7. package/dist/components/Icons/ChatBoxIcon.d.ts +2 -1
  8. package/dist/components/Icons/CheckIcon.d.ts +2 -1
  9. package/dist/components/Icons/ChevronDoubleIcon.d.ts +2 -1
  10. package/dist/components/Icons/ChevronDownIcon.d.ts +2 -1
  11. package/dist/components/Icons/ChevronRightIcon.d.ts +2 -1
  12. package/dist/components/Icons/CrossIcon.d.ts +2 -1
  13. package/dist/components/Icons/DeleteIcon.d.ts +2 -1
  14. package/dist/components/Icons/DownArrowIcon.d.ts +2 -1
  15. package/dist/components/Icons/DragIcon.d.ts +2 -1
  16. package/dist/components/Icons/EditIcon.d.ts +2 -1
  17. package/dist/components/Icons/EmptyIcon.d.ts +2 -1
  18. package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +3 -1
  19. package/dist/components/Icons/ExclamationMarkIcon.d.ts +2 -1
  20. package/dist/components/Icons/EyeIcon.d.ts +2 -1
  21. package/dist/components/Icons/GearColoredIcon.d.ts +2 -1
  22. package/dist/components/Icons/GearIcon.d.ts +2 -1
  23. package/dist/components/Icons/GroupColoredIcon.d.ts +2 -1
  24. package/dist/components/Icons/GroupIcon.d.ts +2 -1
  25. package/dist/components/Icons/HamburgerIcon.d.ts +2 -1
  26. package/dist/components/Icons/HeartIcon.d.ts +2 -1
  27. package/dist/components/Icons/ImageIcon.d.ts +2 -2
  28. package/dist/components/Icons/InfoIcon.d.ts +2 -1
  29. package/dist/components/Icons/LeftArrowIcon.d.ts +2 -1
  30. package/dist/components/Icons/LightBulbIcon.d.ts +2 -1
  31. package/dist/components/Icons/LinkIcon.d.ts +2 -1
  32. package/dist/components/Icons/LockIcon.d.ts +2 -1
  33. package/dist/components/Icons/MessagesIcon.d.ts +2 -1
  34. package/dist/components/Icons/NotesIcon.d.ts +2 -1
  35. package/dist/components/Icons/PinIcon.d.ts +2 -1
  36. package/dist/components/Icons/PrintIcon.d.ts +2 -1
  37. package/dist/components/Icons/RightArrowIcon.d.ts +2 -1
  38. package/dist/components/Icons/SearchCancelIcon.d.ts +2 -1
  39. package/dist/components/Icons/SearchIcon.d.ts +2 -1
  40. package/dist/components/Icons/SmallCircleIcon.d.ts +2 -1
  41. package/dist/components/Icons/SmallDiamondIcon.d.ts +2 -1
  42. package/dist/components/Icons/SmallSquareIcon.d.ts +2 -1
  43. package/dist/components/Icons/SpaceRocketIcon.d.ts +2 -1
  44. package/dist/components/Icons/StarIcon.d.ts +2 -1
  45. package/dist/components/Icons/StatusColoredIcon.d.ts +2 -1
  46. package/dist/components/Icons/WarningIcon.d.ts +2 -2
  47. package/dist/components/Icons/iconWrapper/iconWrapper.d.ts +4 -0
  48. package/dist/components/Icons/iconWrapper/index.d.ts +1 -0
  49. package/dist/components/Icons/index.d.ts +45 -40
  50. package/dist/components/Icons/templates/component.d.ts +3 -0
  51. package/dist/components/Icons/templates/index.d.ts +2 -0
  52. package/dist/components/Toaster/Toaster.d.ts +1 -1
  53. package/dist/web-ui.cjs.development.js +6463 -6499
  54. package/dist/web-ui.cjs.development.js.map +1 -1
  55. package/dist/web-ui.cjs.production.min.js +1 -1
  56. package/dist/web-ui.cjs.production.min.js.map +1 -1
  57. package/dist/web-ui.esm.js +6459 -6500
  58. package/dist/web-ui.esm.js.map +1 -1
  59. package/package.json +4 -2
package/README.md CHANGED
@@ -51,6 +51,15 @@ When you create new components, you must add them to storybook as well. Stories
51
51
  /stories
52
52
  ```
53
53
 
54
+ ### Adding icons
55
+
56
+ Add new icons by:
57
+
58
+ - Add the svg file(s) in `src/components/Icons/icons`
59
+ - Run `yarn icons`
60
+
61
+ The icons are optimized by SVGO and transformed into React components by [SVGR](https://react-svgr.com) which are placed in `src/components/Icons`.
62
+
54
63
  ## CI setup
55
64
 
56
65
  #### Branching
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const AddIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const AlertsIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const BellIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const ChartIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const ChartLineColoredIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const ChatBoxIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const CheckIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const ChevronDoubleIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const ChevronDownIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const ChevronRightIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const CrossIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const DeleteIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const DownArrowIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const DragIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const EditIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const EmptyIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1 +1,3 @@
1
- export declare const EmptyStateDashboardIcon: () => JSX.Element;
1
+ import { IconProps } from "./types/IconProps.type";
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const ExclamationMarkIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const EyeIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const GearColoredIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const GearIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const GroupColoredIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const GroupIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const HamburgerIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const HeartIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,3 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./types/IconProps.type";
3
- export declare const ImageIcon: React.VoidFunctionComponent<IconProps>;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const InfoIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const LeftArrowIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const LightBulbIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const LinkIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const LockIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const MessagesIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const NotesIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const PinIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const PrintIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const RightArrowIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const SearchCancelIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const SearchIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const SmallCircleIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const SmallDiamondIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const SmallSquareIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const SpaceRocketIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const StarIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  import { IconProps } from "./types/IconProps.type";
2
- export declare const StatusColoredIcon: (props: IconProps) => JSX.Element;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -1,3 +1,3 @@
1
- import React from "react";
2
1
  import { IconProps } from "./types/IconProps.type";
3
- export declare const WarningIcon: React.VoidFunctionComponent<IconProps>;
2
+ declare const _default: (props: IconProps) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { IconProps } from "../types/IconProps.type";
3
+ declare const iconWrapper: (SVGComponent: (props: IconProps & Pick<HTMLAttributes<SVGElement>, "role">) => JSX.Element) => (props: IconProps) => JSX.Element;
4
+ export default iconWrapper;
@@ -0,0 +1 @@
1
+ export { default } from "./iconWrapper";
@@ -1,40 +1,45 @@
1
- export { AddIcon } from "./AddIcon";
2
- export { AlertsIcon } from "./AlertsIcon";
3
- export { BellIcon } from "./BellIcon";
4
- export { ChartIcon } from "./ChartIcon";
5
- export { ChartLineColoredIcon } from "./ChartLineColoredIcon";
6
- export { ChatBoxIcon } from "./ChatBoxIcon";
7
- export { CheckIcon } from "./CheckIcon";
8
- export { ChevronDoubleIcon } from "./ChevronDoubleIcon";
9
- export { CrossIcon } from "./CrossIcon";
10
- export { DeleteIcon } from "./DeleteIcon";
11
- export { DownArrowIcon } from "./DownArrowIcon";
12
- export { DragIcon } from "./DragIcon";
13
- export { EditIcon } from "./EditIcon";
14
- export { EmptyStateDashboardIcon } from "./EmptyStateDashboardIcon";
15
- export { ExclamationMarkIcon } from "./ExclamationMarkIcon";
16
- export { EyeIcon } from "./EyeIcon";
17
- export { GearIcon } from "./GearIcon";
18
- export { GearColoredIcon } from "./GearColoredIcon";
19
- export { GroupIcon } from "./GroupIcon";
20
- export { GroupColoredIcon } from "./GroupColoredIcon";
21
- export { HeartIcon } from "./HeartIcon";
22
- export { LeftArrowIcon } from "./LeftArrowIcon";
23
- export { LinkIcon } from "./LinkIcon";
24
- export { LightBulbIcon } from "./LightBulbIcon";
25
- export { LockIcon } from "./LockIcon";
26
- export { MessagesIcon } from "./MessagesIcon";
27
- export { NotesIcon } from "./NotesIcon";
28
- export { PinIcon } from "./PinIcon";
29
- export { PrintIcon } from "./PrintIcon";
30
- export { RightArrowIcon } from "./RightArrowIcon";
31
- export { SmallCircleIcon } from "./SmallCircleIcon";
32
- export { SmallDiamondIcon } from "./SmallDiamondIcon";
33
- export { SmallSquareIcon } from "./SmallSquareIcon";
34
- export { SpaceRocketIcon } from "./SpaceRocketIcon";
35
- export { StarIcon } from "./StarIcon";
36
- export { HamburgerIcon } from "./HamburgerIcon";
37
- export { SearchIcon } from "./SearchIcon";
38
- export { SearchCancelIcon } from "./SearchCancelIcon";
39
- export { InfoIcon } from "./InfoIcon";
40
- export { StatusColoredIcon } from "./StatusColoredIcon";
1
+ export { default as AddIcon } from "./AddIcon";
2
+ export { default as AlertsIcon } from "./AlertsIcon";
3
+ export { default as BellIcon } from "./BellIcon";
4
+ export { default as ChartIcon } from "./ChartIcon";
5
+ export { default as ChartLineColoredIcon } from "./ChartLineColoredIcon";
6
+ export { default as ChatBoxIcon } from "./ChatBoxIcon";
7
+ export { default as CheckIcon } from "./CheckIcon";
8
+ export { default as ChevronDoubleIcon } from "./ChevronDoubleIcon";
9
+ export { default as ChevronDownIcon } from "./ChevronDownIcon";
10
+ export { default as ChevronRightIcon } from "./ChevronRightIcon";
11
+ export { default as CrossIcon } from "./CrossIcon";
12
+ export { default as DeleteIcon } from "./DeleteIcon";
13
+ export { default as DownArrowIcon } from "./DownArrowIcon";
14
+ export { default as DragIcon } from "./DragIcon";
15
+ export { default as EditIcon } from "./EditIcon";
16
+ export { default as EmptyIcon } from "./EmptyIcon";
17
+ export { default as EmptyStateDashboardIcon } from "./EmptyStateDashboardIcon";
18
+ export { default as ExclamationMarkIcon } from "./ExclamationMarkIcon";
19
+ export { default as EyeIcon } from "./EyeIcon";
20
+ export { default as GearColoredIcon } from "./GearColoredIcon";
21
+ export { default as GearIcon } from "./GearIcon";
22
+ export { default as GroupColoredIcon } from "./GroupColoredIcon";
23
+ export { default as GroupIcon } from "./GroupIcon";
24
+ export { default as HamburgerIcon } from "./HamburgerIcon";
25
+ export { default as HeartIcon } from "./HeartIcon";
26
+ export { default as ImageIcon } from "./ImageIcon";
27
+ export { default as InfoIcon } from "./InfoIcon";
28
+ export { default as LeftArrowIcon } from "./LeftArrowIcon";
29
+ export { default as LightBulbIcon } from "./LightBulbIcon";
30
+ export { default as LinkIcon } from "./LinkIcon";
31
+ export { default as LockIcon } from "./LockIcon";
32
+ export { default as MessagesIcon } from "./MessagesIcon";
33
+ export { default as NotesIcon } from "./NotesIcon";
34
+ export { default as PinIcon } from "./PinIcon";
35
+ export { default as PrintIcon } from "./PrintIcon";
36
+ export { default as RightArrowIcon } from "./RightArrowIcon";
37
+ export { default as SearchCancelIcon } from "./SearchCancelIcon";
38
+ export { default as SearchIcon } from "./SearchIcon";
39
+ export { default as SmallCircleIcon } from "./SmallCircleIcon";
40
+ export { default as SmallDiamondIcon } from "./SmallDiamondIcon";
41
+ export { default as SmallSquareIcon } from "./SmallSquareIcon";
42
+ export { default as SpaceRocketIcon } from "./SpaceRocketIcon";
43
+ export { default as StarIcon } from "./StarIcon";
44
+ export { default as StatusColoredIcon } from "./StatusColoredIcon";
45
+ export { default as WarningIcon } from "./WarningIcon";
@@ -0,0 +1,3 @@
1
+ declare const template: (variables: any, { tpl }: {
2
+ tpl: any;
3
+ }) => any;
@@ -0,0 +1,2 @@
1
+ declare const path: any;
2
+ declare function defaultIndexTemplate(filePaths: any): string;
@@ -12,6 +12,6 @@ export declare const TOASTER_TYPE_OPTIONS: {
12
12
  readonly SUCCESS: "success";
13
13
  readonly FAILURE: "failure";
14
14
  };
15
- export declare type ToasterType = typeof TOASTER_TYPE_OPTIONS[keyof typeof TOASTER_TYPE_OPTIONS];
15
+ export declare type ToasterType = (typeof TOASTER_TYPE_OPTIONS)[keyof typeof TOASTER_TYPE_OPTIONS];
16
16
  declare const Toaster: React.VoidFunctionComponent<ToasterProps>;
17
17
  export default Toaster;