@popsure/dirty-swan 0.50.0 → 0.51.0

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 (98) hide show
  1. package/Readme.md +7 -0
  2. package/dist/cjs/index.js +225 -169
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/lib/components/button/index.d.ts +1 -1
  5. package/dist/cjs/lib/components/button/index.stories.d.ts +1 -1
  6. package/dist/cjs/lib/components/{card → cards/card}/index.d.ts +3 -1
  7. package/dist/{esm/lib/components → cjs/lib/components/cards}/card/index.stories.d.ts +9 -2
  8. package/dist/cjs/lib/components/cards/cardButton/index.d.ts +5 -11
  9. package/dist/cjs/lib/components/cards/cardButton/index.stories.d.ts +1 -1
  10. package/dist/cjs/lib/components/icon/icons/ArrowRightFilled.d.ts +4 -0
  11. package/dist/cjs/lib/components/icon/icons/index.d.ts +4 -1
  12. package/dist/cjs/lib/components/input/index.d.ts +1 -1
  13. package/dist/cjs/lib/components/input/input.stories.d.ts +1 -1
  14. package/dist/cjs/lib/components/modal/bottomModal/index.d.ts +2 -1
  15. package/dist/cjs/lib/components/modal/genericModal/index.d.ts +20 -0
  16. package/dist/cjs/lib/components/modal/hooks/useOnClose.d.ts +2 -0
  17. package/dist/cjs/lib/components/modal/index.d.ts +4 -3
  18. package/dist/cjs/lib/components/modal/index.stories.d.ts +2 -0
  19. package/dist/cjs/lib/components/modal/regularModal/index.d.ts +2 -1
  20. package/dist/cjs/lib/index.d.ts +1 -1
  21. package/dist/esm/components/{card → cards/card}/index.js +19 -11
  22. package/dist/esm/components/cards/card/index.js.map +1 -0
  23. package/dist/esm/components/{card → cards/card}/index.stories.js +21 -16
  24. package/dist/esm/components/cards/card/index.stories.js.map +1 -0
  25. package/dist/esm/components/cards/cardButton/index.js +12 -14
  26. package/dist/esm/components/cards/cardButton/index.js.map +1 -1
  27. package/dist/esm/components/cards/cardButton/index.stories.js +4 -4
  28. package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -1
  29. package/dist/esm/components/cards/index.js +2 -1
  30. package/dist/esm/components/cards/index.js.map +1 -1
  31. package/dist/esm/components/cards/infoCard/index.js +2 -1
  32. package/dist/esm/components/cards/infoCard/index.js.map +1 -1
  33. package/dist/esm/components/cards/infoCard/index.stories.js +2 -1
  34. package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -1
  35. package/dist/esm/components/icon/icons/ArrowRightFilled.js +13 -0
  36. package/dist/esm/components/icon/icons/ArrowRightFilled.js.map +1 -0
  37. package/dist/esm/components/icon/icons.stories.js +5 -2
  38. package/dist/esm/components/icon/icons.stories.js.map +1 -1
  39. package/dist/esm/components/icon/index.stories.js +5 -2
  40. package/dist/esm/components/icon/index.stories.js.map +1 -1
  41. package/dist/esm/components/modal/bottomModal/index.js +19 -24
  42. package/dist/esm/components/modal/bottomModal/index.js.map +1 -1
  43. package/dist/esm/components/modal/bottomOrRegularModal/index.js +3 -2
  44. package/dist/esm/components/modal/bottomOrRegularModal/index.js.map +1 -1
  45. package/dist/esm/components/modal/genericModal/index.js +94 -0
  46. package/dist/esm/components/modal/genericModal/index.js.map +1 -0
  47. package/dist/esm/components/modal/index.stories.js +26 -3
  48. package/dist/esm/components/modal/index.stories.js.map +1 -1
  49. package/dist/esm/components/modal/regularModal/index.js +18 -16
  50. package/dist/esm/components/modal/regularModal/index.js.map +1 -1
  51. package/dist/esm/{index-e506c4ca.js → index-73378a46.js} +9 -3
  52. package/dist/esm/{index-e506c4ca.js.map → index-73378a46.js.map} +1 -1
  53. package/dist/esm/index.js +6 -3
  54. package/dist/esm/index.js.map +1 -1
  55. package/dist/esm/lib/components/button/index.d.ts +1 -1
  56. package/dist/esm/lib/components/button/index.stories.d.ts +1 -1
  57. package/dist/esm/lib/components/{card → cards/card}/index.d.ts +3 -1
  58. package/dist/{cjs/lib/components → esm/lib/components/cards}/card/index.stories.d.ts +9 -2
  59. package/dist/esm/lib/components/cards/cardButton/index.d.ts +5 -11
  60. package/dist/esm/lib/components/cards/cardButton/index.stories.d.ts +1 -1
  61. package/dist/esm/lib/components/icon/icons/ArrowRightFilled.d.ts +4 -0
  62. package/dist/esm/lib/components/icon/icons/index.d.ts +4 -1
  63. package/dist/esm/lib/components/input/index.d.ts +1 -1
  64. package/dist/esm/lib/components/input/input.stories.d.ts +1 -1
  65. package/dist/esm/lib/components/modal/bottomModal/index.d.ts +2 -1
  66. package/dist/esm/lib/components/modal/genericModal/index.d.ts +20 -0
  67. package/dist/esm/lib/components/modal/hooks/useOnClose.d.ts +2 -0
  68. package/dist/esm/lib/components/modal/index.d.ts +4 -3
  69. package/dist/esm/lib/components/modal/index.stories.d.ts +2 -0
  70. package/dist/esm/lib/components/modal/regularModal/index.d.ts +2 -1
  71. package/dist/esm/lib/index.d.ts +1 -1
  72. package/package.json +1 -1
  73. package/src/lib/components/{card → cards/card}/index.stories.tsx +12 -5
  74. package/src/lib/components/{card → cards/card}/index.tsx +19 -6
  75. package/src/lib/components/{card → cards/card}/style.module.scss +5 -1
  76. package/src/lib/components/cards/cardButton/index.stories.tsx +11 -15
  77. package/src/lib/components/cards/cardButton/index.tsx +33 -48
  78. package/src/lib/components/cards/cardButton/style.module.scss +4 -37
  79. package/src/lib/components/icon/assets/arrow-right-filled.svg +4 -0
  80. package/src/lib/components/icon/icons/ArrowRightFilled.tsx +23 -0
  81. package/src/lib/components/icon/icons/index.ts +4 -1
  82. package/src/lib/components/modal/bottomModal/index.tsx +18 -78
  83. package/src/lib/components/modal/bottomModal/style.module.scss +11 -71
  84. package/src/lib/components/modal/genericModal/index.tsx +133 -0
  85. package/src/lib/components/modal/genericModal/style.module.scss +71 -0
  86. package/src/lib/components/modal/hooks/useOnClose.ts +27 -5
  87. package/src/lib/components/modal/index.stories.tsx +95 -0
  88. package/src/lib/components/modal/index.ts +4 -2
  89. package/src/lib/components/modal/regularModal/index.tsx +20 -61
  90. package/src/lib/components/modal/regularModal/style.module.scss +6 -74
  91. package/src/lib/index.tsx +1 -1
  92. package/dist/esm/components/card/index.js.map +0 -1
  93. package/dist/esm/components/card/index.stories.js.map +0 -1
  94. package/dist/esm/useOnClose-d818a54f.js +0 -46
  95. package/dist/esm/useOnClose-d818a54f.js.map +0 -1
  96. package/src/lib/components/cards/a.stories.mdx +0 -44
  97. package/src/lib/components/modal/bottomModal/img/close.svg +0 -4
  98. package/src/lib/components/modal/regularModal/img/close.svg +0 -4
@@ -5,11 +5,12 @@ import { BottomModal } from './bottomModal/index.js';
5
5
  import { RegularModal } from './regularModal/index.js';
6
6
  import { BottomOrRegularModal } from './bottomOrRegularModal/index.js';
7
7
  import { Markdown } from '../markdown/index.js';
8
+ import { Button } from '../button/index.js';
8
9
  import '../../style-inject.es-1f59c1d0.js';
10
+ import '../../index-6ea95111.js';
11
+ import './genericModal/index.js';
9
12
  import '../icon/icons/X.js';
10
13
  import '../icon/IconWrapper/IconWrapper.js';
11
- import '../../index-6ea95111.js';
12
- import '../../useOnClose-d818a54f.js';
13
14
  import '../../index-171a0108.js';
14
15
  import '../../index-dd80248b.js';
15
16
  import '../../_commonjsHelpers-e7f67fd8.js';
@@ -114,7 +115,29 @@ var NonDismissibleModal = function (_a) {
114
115
  jsx(BottomOrRegularModal, __assign({ dismissible: false, title: title, isOpen: display, onClose: handleOnClose }, { children: jsxs("div", __assign({ style: { padding: '0 24px 24px 24px' } }, { children: [jsx("div", { children: children }, void 0),
115
116
  jsx("button", __assign({ className: "p-btn--primary mt24 wmn3", onClick: function () { return setDisplay(false); } }, { children: "Continue" }), void 0)] }), void 0) }), void 0)] }, void 0));
116
117
  };
118
+ var ModalWithFooter = function (_a) {
119
+ var children = _a.children, isOpen = _a.isOpen, onClose = _a.onClose, title = _a.title;
120
+ var _b = useState(isOpen), display = _b[0], setDisplay = _b[1];
121
+ var handleOnClose = function () {
122
+ onClose();
123
+ setDisplay(false);
124
+ };
125
+ return (jsxs(Fragment, { children: [jsx("button", __assign({ className: "p-btn--primary wmn2", onClick: function () { return setDisplay(true); } }, { children: "Click to open modal" }), void 0),
126
+ jsx(BottomOrRegularModal, __assign({ title: title, isOpen: display, onClose: handleOnClose, footer: (jsxs("div", __assign({ className: 'd-flex fd-row gap8' }, { children: [jsx(Button, __assign({ variant: 'textColor', className: 'w100', onClick: handleOnClose }, { children: "Skip" }), void 0),
127
+ jsx(Button, __assign({ className: 'w100', onClick: handleOnClose }, { children: "Continue" }), void 0)] }), void 0)) }, { children: jsx("div", __assign({ className: 'p24' }, { children: jsx("div", { children: children }, void 0) }), void 0) }), void 0)] }, void 0));
128
+ };
129
+ var ModalWithFooterAndScroll = function (_a) {
130
+ var children = _a.children, isOpen = _a.isOpen, onClose = _a.onClose, title = _a.title;
131
+ var _b = useState(isOpen), display = _b[0], setDisplay = _b[1];
132
+ var handleOnClose = function () {
133
+ onClose();
134
+ setDisplay(false);
135
+ };
136
+ return (jsxs(Fragment, { children: [jsx("button", __assign({ className: "p-btn--primary wmn2", onClick: function () { return setDisplay(true); } }, { children: "Click to open modal" }), void 0),
137
+ jsx(BottomOrRegularModal, __assign({ title: title, isOpen: display, onClose: handleOnClose, footer: (jsxs("div", __assign({ className: 'd-flex fd-row gap8' }, { children: [jsx(Button, __assign({ variant: 'textColor', className: 'w100', onClick: handleOnClose }, { children: "Skip" }), void 0),
138
+ jsx(Button, __assign({ className: 'w100', onClick: handleOnClose }, { children: "Continue" }), void 0)] }), void 0)) }, { children: jsx("div", __assign({ className: 'p24' }, { children: jsxs("div", { children: ["Lorem ipsum dolor sit amet, consectetur adipiscing elit.", jsx("div", { style: { height: '840px' } }, void 0), children] }, void 0) }), void 0) }), void 0)] }, void 0));
139
+ };
117
140
 
118
141
  export default story;
119
- export { BottomModalStory, BottomOrRegularModalStory, NonDismissibleModal, RegularModalStory };
142
+ export { BottomModalStory, BottomOrRegularModalStory, ModalWithFooter, ModalWithFooterAndScroll, NonDismissibleModal, RegularModalStory };
120
143
  //# sourceMappingURL=index.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/modal/index.stories.tsx"],"sourcesContent":["\nimport { useState } from 'react';\nimport { BottomModal, BottomOrRegularModal, Props, RegularModal } from '.';\nimport { Markdown } from '../markdown';\n\nconst story = {\n title: 'JSX/Modals',\n component: BottomOrRegularModal,\n argTypes: {\n title: {\n defaultValue: \"Modal title\",\n description: \"The title that needs to be displayed on the modal\",\n },\n isOpen: {\n defaultValue: false,\n description: \"When set to `true`, the modal is displayed. When set to `false` the modal gets removed\",\n },\n dismissible: {\n defaultValue: true,\n description: \"The content that gets displayed on the modal\",\n },\n className: {\n defaultValue: '',\n description: 'Any additional className',\n },\n children: {\n defaultValue: 'Modal content to be displayed',\n description: 'The content that gets displayed on the modal',\n type: 'text',\n table: {\n type: {\n summary: 'ReactNode'\n }\n }\n },\n onClose: {\n description: 'Callback when the user close the modal',\n action: true,\n table: {\n category: \"Callbacks\",\n },\n },\n },\n parameters: {\n componentSubtitle: 'Bottom or Regular modal will automatically choose what’s best to display based on the users screen width.',\n docs: {\n description: {\n component: 'Modals are dialog overlays that prevent the user from interacting with the rest of the website until an action is taken or the dialog is dismissed. Modals are purposefully disruptive and should be used thoughtfully and sparingly.',\n }\n },\n },\n};\n\nexport const BottomOrRegularModalStory = ({\n children,\n className,\n dismissible,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n <button\n className=\"p-btn--primary wmn2\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <BottomOrRegularModal\n dismissible={dismissible}\n className={className}\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n >\n <div style={{ padding: '0 24px 24px 24px' }}>\n <div>\n {children}\n </div>\n <button\n className=\"p-btn--primary mt24 wmn3\"\n onClick={() => setDisplay(false)}\n >\n Continue\n </button>\n </div>\n </BottomOrRegularModal>\n </>\n );\n}\n\nBottomOrRegularModalStory.storyName = 'BottomOrRegularModal';\n\nexport const RegularModalStory = ({\n children,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n Regular modals are primary meant to be used on Desktop or Tablet environment. The modal will appear in the middle of the screen and the user will be able to dismiss them using the top left \"X\" icon. \n <Markdown>\n If you want to use it for Mobile only, you should check [Bottom modal](#bottommodal) instead.\n Want to use either Regular Modal or Bottom Modal based on the screen width? You can use [Bottom or Regular modal](#bottomorregularmodal).\n </Markdown>\n\n <button\n className=\"p-btn--primary wmn2 mt24\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <RegularModal\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n >\n <div style={{ padding: '0 24px 24px 24px' }}>\n <div>\n {children}\n </div>\n <button\n className=\"p-btn--primary mt24 wmn3\"\n onClick={() => setDisplay(false)}\n >\n Continue\n </button>\n </div>\n </RegularModal>\n </>\n );\n}\n\nRegularModalStory.storyName = 'RegularModal';\n\nexport const BottomModalStory = ({\n children,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n Bottom modals are primary meant to be used on Mobile environment. The modal will appear from the bottom of the screen and the user will be able to dismiss them using the top left \"X\" icon.\n <Markdown>\n If you want to use it for Desktop only, you should check [Regular modal](#regularmodal) instead.\n Want to use either Regular Modal or Bottom Modal based on the screen width? You can use [Bottom or Regular modal](#bottomorregularmodal).\n </Markdown>\n\n <button\n className=\"p-btn--primary wmn2 mt24\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <BottomModal\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n >\n <div style={{ padding: '0 24px 24px 24px' }}>\n <div>\n {children}\n </div>\n <button\n className=\"p-btn--primary mt24 wmn3\"\n onClick={() => setDisplay(false)}\n >\n Continue\n </button>\n </div>\n </BottomModal>\n </>\n );\n}\n\nBottomModalStory.storyName = 'BottomModal';\n\nexport const NonDismissibleModal = ({\n children,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n <Markdown>\n Setting the dismissible prop to false will hide the close button and prevent the user from closing it using the escape key or clicking outside.\n This prop can be useful if we want the user to explicitly interact with the modal options.\n </Markdown>\n\n <Markdown>\n **Warning:** a modal with the dismissible prop can only be closed by changing the isOpen prop to false.\n </Markdown>\n\n <button\n className=\"p-btn--primary wmn2 mt24\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <BottomOrRegularModal\n dismissible={false}\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n >\n <div style={{ padding: '0 24px 24px 24px' }}>\n <div>\n {children}\n </div>\n <button\n className=\"p-btn--primary mt24 wmn3\"\n onClick={() => setDisplay(false)}\n >\n Continue\n </button>\n </div>\n </BottomOrRegularModal>\n </>\n );\n}\n\nexport default story;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;IAKM,KAAK,GAAG;IACZ,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,mDAAmD;SACjE;QACD,MAAM,EAAE;YACN,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,wFAAwF;SACtG;QACD,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,8CAA8C;SAC5D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,0BAA0B;SACxC;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,+BAA+B;YAC7C,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE;oBACF,OAAO,EAAE,WAAW;iBACvB;a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kB,EAAE,iBACzCC,uBACG,QAAQ,WACL;wBACNA,yBACE,SAAS,EAAC,0BAA0B,EACpC,OAAO,EAAE,cAAM,OAAA,UAAU,CAAC,KAAK,CAAC,GAAA,sCAGzB,aACL,YACM,YACb,EACH;AACJ,EAAC;AAED,gBAAgB,CAAC,SAAS,GAAG,aAAa,CAAC;IAE9B,mBAAmB,GAAG,UAAC,EAK5B;QAJN,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,OAAO,aAAA,EACP,KAAK,WAAA;IAEC,IAAA,KAAwB,QAAQ,CAAC,MAAM,CAAC,EAAvC,OAAO,QAAA,EAAE,UAAU,QAAoB,CAAC;IAC/C,IAAM,aAAa,GAAG;QACpB,OAAO,EAAE,CAAC;QACV,UAAU,CAAC,KAAK,CAAC,CAAC;KACnB,CAAC;IAEF,QACED,4BACEC,IAAC,QAAQ,qQAGE;YAEXA,IAAC,QAAQ,kIAEG;YAEZA,yBACE,SAAS,EAAC,0BAA0B,EACpC,OAAO,EAAE,cAAM,OAAA,UAAU,CAAC,IAAI,CAAC,GAAA,iDAGxB;YAETA,IAAC,oBAAoB,aACnB,WAAW,EAAE,KAAK,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,aAAa,gBAEtBD,uBAAK,KAAK,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,iBACzCC,uBACG,QAAQ,WACL;wBACNA,yBACE,SAAS,EAAC,0BAA0B,EACpC,OAAO,EAAE,cAAM,OAAA,UAAU,CAAC,KAAK,CAAC,GAAA,sCAGzB,aACL,YACe,YACtB,EACH;AACJ;;;;;"}
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/modal/index.stories.tsx"],"sourcesContent":["\nimport { useState } from 'react';\nimport { BottomModal, BottomOrRegularModal, Props, RegularModal } from '.';\nimport { Markdown } from '../markdown';\nimport { Button } from '../button';\n\nconst story = {\n title: 'JSX/Modals',\n component: BottomOrRegularModal,\n argTypes: {\n title: {\n defaultValue: \"Modal title\",\n description: \"The title that needs to be displayed on the modal\",\n },\n isOpen: {\n defaultValue: false,\n description: \"When set to `true`, the modal is displayed. When set to `false` the modal gets removed\",\n },\n dismissible: {\n defaultValue: true,\n description: \"The content that gets displayed on the modal\",\n },\n className: {\n defaultValue: '',\n description: 'Any additional className',\n },\n children: {\n defaultValue: 'Modal content to be displayed',\n description: 'The content that gets displayed on the modal',\n type: 'text',\n table: {\n type: {\n summary: 'ReactNode'\n }\n }\n },\n onClose: {\n description: 'Callback when the user close the modal',\n action: true,\n table: {\n category: \"Callbacks\",\n },\n },\n },\n parameters: {\n componentSubtitle: 'Bottom or Regular modal will automatically choose what’s best to display based on the users screen width.',\n docs: {\n description: {\n component: 'Modals are dialog overlays that prevent the user from interacting with the rest of the website until an action is taken or the dialog is dismissed. Modals are purposefully disruptive and should be used thoughtfully and sparingly.',\n }\n },\n },\n};\n\nexport const BottomOrRegularModalStory = ({\n children,\n className,\n dismissible,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n <button\n className=\"p-btn--primary wmn2\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <BottomOrRegularModal\n dismissible={dismissible}\n className={className}\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n >\n <div style={{ padding: '0 24px 24px 24px' }}>\n <div>\n {children}\n </div>\n <button\n className=\"p-btn--primary mt24 wmn3\"\n onClick={() => setDisplay(false)}\n >\n Continue\n </button>\n </div>\n </BottomOrRegularModal>\n </>\n );\n}\n\nBottomOrRegularModalStory.storyName = 'BottomOrRegularModal';\n\nexport const RegularModalStory = ({\n children,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n Regular modals are primary meant to be used on Desktop or Tablet environment. The modal will appear in the middle of the screen and the user will be able to dismiss them using the top left \"X\" icon. \n <Markdown>\n If you want to use it for Mobile only, you should check [Bottom modal](#bottommodal) instead.\n Want to use either Regular Modal or Bottom Modal based on the screen width? You can use [Bottom or Regular modal](#bottomorregularmodal).\n </Markdown>\n\n <button\n className=\"p-btn--primary wmn2 mt24\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <RegularModal\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n >\n <div style={{ padding: '0 24px 24px 24px' }}>\n <div>\n {children}\n </div>\n <button\n className=\"p-btn--primary mt24 wmn3\"\n onClick={() => setDisplay(false)}\n >\n Continue\n </button>\n </div>\n </RegularModal>\n </>\n );\n}\n\nRegularModalStory.storyName = 'RegularModal';\n\nexport const BottomModalStory = ({\n children,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n Bottom modals are primary meant to be used on Mobile environment. The modal will appear from the bottom of the screen and the user will be able to dismiss them using the top left \"X\" icon.\n <Markdown>\n If you want to use it for Desktop only, you should check [Regular modal](#regularmodal) instead.\n Want to use either Regular Modal or Bottom Modal based on the screen width? You can use [Bottom or Regular modal](#bottomorregularmodal).\n </Markdown>\n\n <button\n className=\"p-btn--primary wmn2 mt24\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <BottomModal\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n >\n <div style={{ padding: '0 24px 24px 24px' }}>\n <div>\n {children}\n </div>\n <button\n className=\"p-btn--primary mt24 wmn3\"\n onClick={() => setDisplay(false)}\n >\n Continue\n </button>\n </div>\n </BottomModal>\n </>\n );\n}\n\nBottomModalStory.storyName = 'BottomModal';\n\nexport const NonDismissibleModal = ({\n children,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n <Markdown>\n Setting the dismissible prop to false will hide the close button and prevent the user from closing it using the escape key or clicking outside.\n This prop can be useful if we want the user to explicitly interact with the modal options.\n </Markdown>\n\n <Markdown>\n **Warning:** a modal with the dismissible prop can only be closed by changing the isOpen prop to false.\n </Markdown>\n\n <button\n className=\"p-btn--primary wmn2 mt24\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <BottomOrRegularModal\n dismissible={false}\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n >\n <div style={{ padding: '0 24px 24px 24px' }}>\n <div>\n {children}\n </div>\n <button\n className=\"p-btn--primary mt24 wmn3\"\n onClick={() => setDisplay(false)}\n >\n Continue\n </button>\n </div>\n </BottomOrRegularModal>\n </>\n );\n}\n\nexport const ModalWithFooter = ({\n children,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n <button\n className=\"p-btn--primary wmn2\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <BottomOrRegularModal\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n footer={(\n <div className='d-flex fd-row gap8'>\n <Button variant='textColor' className='w100' onClick={handleOnClose}>\n Skip\n </Button>\n <Button className='w100' onClick={handleOnClose}>\n Continue\n </Button>\n </div>\n )}\n >\n <div className='p24'>\n <div>\n {children}\n </div>\n </div>\n </BottomOrRegularModal>\n </>\n );\n}\n\nexport const ModalWithFooterAndScroll = ({\n children,\n isOpen,\n onClose,\n title,\n}: Props) => {\n const [display, setDisplay] = useState(isOpen);\n const handleOnClose = () => {\n onClose();\n setDisplay(false);\n };\n\n return (\n <>\n <button\n className=\"p-btn--primary wmn2\"\n onClick={() => setDisplay(true)}\n >\n Click to open modal\n </button>\n\n <BottomOrRegularModal\n title={title}\n isOpen={display}\n onClose={handleOnClose}\n footer={(\n <div className='d-flex fd-row gap8'>\n <Button variant='textColor' className='w100' onClick={handleOnClose}>\n Skip\n </Button>\n <Button className='w100' onClick={handleOnClose}>\n Continue\n </Button>\n </div>\n )}\n >\n <div className='p24'>\n <div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n <div style={{ height: '840px' }} />\n {children}\n </div>\n </div>\n </BottomOrRegularModal>\n </>\n );\n}\n\nexport default story;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;IAMM,KAAK,GAAG;IACZ,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,mDAAmD;SACjE;QACD,MAAM,EAAE;YACN,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,wFAAwF;SACtG;QACD,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,8CAA8C;SAC5D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,0BAA0B;SACxC;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,+BAA+B;YAC7C,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE;oBACF,OAAO,EAAE,WAAW;iBACvB;aACF;SACF;QACD,OAAO,EAAE;YACP,WAAW,EAAE,wCAAwC;YACrD,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE;gBACL,QAAQ,EAAE,WAAW;aACtB;SACF;KACF;IACD,UAAU,EAAE;QACV,iBAAiB,EAAE,2GAA2G;QAC9H,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EAAE,uOAAuO;aACnP;SACF;KACF;EACD;IAEW,yBAAyB,GAAG,UAAC,EAOlC;QANN,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,WAAW,iBAAA,EACX,MAAM,YAAA,EACN,OAAO,aAAA,EACP,KAAK,WAAA;IAEC,IAAA,KAAwB,QAAQ,CAAC,MAA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aAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,aAAa,sCAEtC,aACL,CACP,gBAEDA,sBAAK,SAAS,EAAC,KAAK,gBAClBA,uBACG,QAAQ,WACL,YACF,YACe,YACtB,EACH;AACJ,EAAC;IAEY,wBAAwB,GAAG,UAAC,EAKjC;QAJN,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,OAAO,aAAA,EACP,KAAK,WAAA;IAEC,IAAA,KAAwB,QAAQ,CAAC,MAAM,CAAC,EAAvC,OAAO,QAAA,EAAE,UAAU,QAAoB,CAAC;IAC/C,IAAM,aAAa,GAAG;QACpB,OAAO,EAAE,CAAC;QACV,UAAU,CAAC,KAAK,CAAC,CAAC;KACnB,CAAC;IAEF,QACED,4BACEC,yBACE,SAAS,EAAC,qBAAqB,EAC/B,OAAO,EAAE,cAAM,OAAA,UAAU,CAAC,IAAI,CAAC,GAAA,iDAGxB;YAETA,IAAC,oBAAoB,aACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,aAAa,EACtB,MAAM,GACJD,uBAAK,SAAS,EAAC,oBAAoB,iBACjCC,IAAC,MAAM,aAAC,OAAO,EAAC,WAAW,EAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,aAAa,kCAE1D;wBACTA,IAAC,MAAM,aAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,aAAa,sCAEtC,aACL,CACP,gBAEDA,sBAAK,SAAS,EAAC,KAAK,gBAClBD,qFAEEC,aAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,WAAI,EAClC,QAAQ,YACL,YACF,YACe,YACtB,EACH;AACJ;;;;;"}
@@ -1,27 +1,29 @@
1
- import { _ as __assign } from '../../../tslib.es6-5bc94358.js';
2
- import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
- import { u as useOnClose } from '../../../useOnClose-d818a54f.js';
1
+ import { a as __rest, _ as __assign } from '../../../tslib.es6-5bc94358.js';
2
+ import { jsx } from 'react/jsx-runtime';
4
3
  import { s as styleInject } from '../../../style-inject.es-1f59c1d0.js';
5
- import XIcon from '../../icon/icons/X.js';
6
4
  import { c as classNames } from '../../../index-6ea95111.js';
5
+ import { GenericModal } from '../genericModal/index.js';
7
6
  import 'react';
7
+ import '../../button/index.js';
8
+ import '../../icon/icons/X.js';
8
9
  import '../../icon/IconWrapper/IconWrapper.js';
9
10
 
10
- var css_248z = "@keyframes style-module_fade-in__nLzzO {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n}\n@keyframes style-module_fade-out__IuSV7 {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n}\n@keyframes style-module_appear-in__2ZMqz {\n 0% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n}\n@keyframes style-module_disappear-out__38TSV {\n 0% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n 100% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n}\n.style-module_overlay__1Zbce, .style-module_overlay--close__2dytn {\n position: fixed;\n z-index: 100;\n overflow: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__nLzzO 0.3s both;\n}\n.style-module_overlay--close__2dytn {\n animation-delay: 0.1s;\n animation: style-module_fade-out__IuSV7 0.3s both;\n}\n\n.style-module_container__1XZj_, .style-module_container--close__3UYsJ {\n position: relative;\n display: flex;\n align-items: center;\n max-width: 592px;\n width: 100%;\n min-height: 100%;\n margin: 0 auto;\n animation-name: style-module_appear-in__2ZMqz;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n.style-module_container--close__3UYsJ {\n animation-name: style-module_disappear-out__38TSV;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n.style-module_body__lbUih {\n background-color: white;\n border-radius: 8px;\n margin: 80px auto;\n}\n\n.style-module_header__2oEKp {\n display: flex;\n align-items: center;\n padding: 24px 24px 0 24px;\n}\n\n.style-module_close__p3Axi {\n border: none;\n background-color: transparent;\n cursor: pointer;\n}\n\n.style-module_closeIcon__1KNwx {\n margin: 0;\n}";
11
- var styles = {"overlay":"style-module_overlay__1Zbce","overlay--close":"style-module_overlay--close__2dytn","fade-in":"style-module_fade-in__nLzzO","fade-out":"style-module_fade-out__IuSV7","container":"style-module_container__1XZj_","container--close":"style-module_container--close__3UYsJ","appear-in":"style-module_appear-in__2ZMqz","disappear-out":"style-module_disappear-out__38TSV","body":"style-module_body__lbUih","header":"style-module_header__2oEKp","close":"style-module_close__p3Axi","closeIcon":"style-module_closeIcon__1KNwx"};
11
+ var css_248z = "@keyframes style-module_appear-in__2ZMqz {\n 0% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n}\n@keyframes style-module_disappear-out__38TSV {\n 0% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n 100% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n}\n.style-module_wrapper__qQirD {\n position: relative;\n min-height: 100%;\n animation-name: style-module_appear-in__2ZMqz;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n.style-module_wrapperClose__2aXSB {\n animation-name: style-module_disappear-out__38TSV;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n.style-module_container__1XZj_ {\n max-height: 96vh;\n overflow: hidden;\n}";
12
+ var styles = {"wrapper":"style-module_wrapper__qQirD","appear-in":"style-module_appear-in__2ZMqz","wrapperClose":"style-module_wrapperClose__2aXSB","disappear-out":"style-module_disappear-out__38TSV","container":"style-module_container__1XZj_"};
12
13
  styleInject(css_248z);
13
14
 
14
15
  var RegularModal = function (_a) {
15
- var title = _a.title, isOpen = _a.isOpen, children = _a.children, onClose = _a.onClose, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.dismissible, dismissible = _c === void 0 ? true : _c;
16
- var _d = useOnClose(onClose, isOpen, dismissible), isClosing = _d.isClosing, handleContainerClick = _d.handleContainerClick, handleOnClose = _d.handleOnClose, handleOnOverlayClick = _d.handleOnOverlayClick;
17
- if (!isOpen) {
18
- return jsx(Fragment, {}, void 0);
19
- }
20
- return (jsx("div", __assign({ className: isClosing ? styles['overlay--close'] : styles.overlay, onClick: handleOnOverlayClick }, { children: jsx("div", __assign({ className: (isClosing ? styles['container--close'] : styles.container) + " " + className }, { children: jsxs("div", __assign({ className: styles.body, onClick: handleContainerClick }, { children: [jsxs("div", __assign({ className: classNames(styles.header, {
21
- 'jc-between': !!title,
22
- 'jc-end': !title,
23
- }) }, { children: [title && jsx("div", __assign({ className: "p-h2 " + styles.title }, { children: title }), void 0),
24
- dismissible && (jsx("button", __assign({ type: "button", className: styles.close, onClick: handleOnClose }, { children: jsx(XIcon, { size: 24, color: 'grey-700', className: "" + styles.closeIcon }, void 0) }), void 0))] }), void 0), children] }), void 0) }), void 0) }), void 0));
16
+ var _b = _a.className, className = _b === void 0 ? '' : _b, rest = __rest(_a, ["className"]);
17
+ return (jsx(GenericModal, __assign({ classNames: {
18
+ wrapper: function (_a) {
19
+ var _b;
20
+ var isClosing = _a.isClosing;
21
+ return classNames('d-flex ai-center w90 mx-auto my0', className, styles.wrapper, (_b = {},
22
+ _b[styles.wrapperClose] = isClosing,
23
+ _b));
24
+ },
25
+ container: classNames('bg-white br8 d-flex ai-center fd-column mx-auto my0 wmx8', styles.container)
26
+ } }, rest), void 0));
25
27
  };
26
28
 
27
29
  export { RegularModal };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../src/lib/components/modal/regularModal/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Props } from '..';\nimport useOnClose from '../hooks/useOnClose';\n\nimport styles from './style.module.scss';\nimport { XIcon } from '../../icon/icons';\nimport classNames from 'classnames';\n\nexport const RegularModal = ({\n title,\n isOpen,\n children,\n onClose,\n className = '',\n dismissible = true,\n}: Props) => {\n const {\n isClosing,\n handleContainerClick,\n handleOnClose,\n handleOnOverlayClick,\n } = useOnClose(onClose, isOpen, dismissible);\n\n if (!isOpen) {\n return <></>;\n }\n\n return (\n <div\n className={isClosing ? styles['overlay--close'] : styles.overlay}\n onClick={handleOnOverlayClick}\n >\n <div\n className={`${\n isClosing ? styles['container--close'] : styles.container\n } ${className}`}\n >\n <div className={styles.body} onClick={handleContainerClick}>\n <div\n className={classNames(styles.header, {\n 'jc-between': !!title,\n 'jc-end': !title,\n })}\n >\n {title && <div className={`p-h2 ${styles.title}`}>{title}</div>}\n {dismissible && (\n <button\n type=\"button\"\n className={styles.close}\n onClick={handleOnClose}\n >\n <XIcon\n size={24}\n color={'grey-700'}\n className={`${styles.closeIcon}`}\n />\n </button>\n )}\n </div>\n {children}\n </div>\n </div>\n </div>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;IASa,YAAY,GAAG,UAAC,EAOrB;QANN,KAAK,WAAA,EACL,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,mBAAkB,EAAlB,WAAW,mBAAG,IAAI,KAAA;IAEZ,IAAA,KAKF,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAJ1C,SAAS,eAAA,EACT,oBAAoB,0BAAA,EACpB,aAAa,mBAAA,EACb,oBAAoB,0BACsB,CAAC;IAE7C,IAAI,CAAC,MAAM,EAAE;QACX,OAAOA,yBAAK,CAAC;KACd;IAED,QACEA,sBACE,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,OAAO,EAChE,OAAO,EAAE,oBAAoB,gBAE7BA,sBACE,SAAS,EAAE,CACT,SAAS,GAAG,MAAM,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAC,SAAS,UACvD,SAAW,gBAEfC,uBAAK,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,iBACxDA,uBACE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE;4BACnC,YAAY,EAAE,CAAC,CAAC,KAAK;4BACrB,QAAQ,EAAE,CAAC,KAAK;yBACjB,CAAC,iBAED,KAAK,IAAID,sBAAK,SAAS,EAAE,UAAQ,MAAM,CAAC,KAAO,gBAAG,KAAK,YAAO;4BAC9D,WAAW,KACVA,yBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,OAAO,EAAE,aAAa,gBAEtBA,IAAC,KAAK,IACJ,IAAI,EAAE,EAAE,EACR,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,KAAG,MAAM,CAAC,SAAW,WAChC,YACK,CACV,aACG,EACL,QAAQ,aACL,YACF,YACF,EACN;AACJ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/lib/components/modal/regularModal/index.tsx"],"sourcesContent":["import { Props } from '..';\nimport styles from './style.module.scss';\nimport classNames from 'classnames';\nimport { GenericModal } from '../genericModal';\n\nconst RegularModal = ({ className = '', ...rest }: Props) => (\n <GenericModal\n classNames={{\n wrapper: ({ isClosing }) => classNames(\n 'd-flex ai-center w90 mx-auto my0',\n className,\n styles.wrapper, {\n [styles.wrapperClose]: isClosing,\n }\n ),\n container: classNames(\n 'bg-white br8 d-flex ai-center fd-column mx-auto my0 wmx8',\n styles.container\n )\n }}\n {...rest}\n />\n);\n\nexport { RegularModal };\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;IAKM,YAAY,GAAG,UAAC,EAAkC;IAAhC,IAAA,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EAAK,IAAI,cAAzB,aAA2B,CAAF;IAAc,QAC3DA,IAAC,YAAY,aACX,UAAU,EAAE;YACV,OAAO,EAAE,UAAC,EAAa;;oBAAX,SAAS,eAAA;gBAAO,OAAA,UAAU,CACpC,kCAAkC,EAClC,SAAS,EACT,MAAM,CAAC,OAAO;oBACZ,GAAC,MAAM,CAAC,YAAY,IAAG,SAAS;wBAEnC;aAAA;YACD,SAAS,EAAE,UAAU,CACnB,0DAA0D,EAC1D,MAAM,CAAC,SAAS,CACjB;SACF,IACG,IAAI,UACR,EACH;;;;;"}
@@ -6,6 +6,7 @@ import _5 from './components/icon/icons/5.js';
6
6
  import _6 from './components/icon/icons/6.js';
7
7
  import _7 from './components/icon/icons/7.js';
8
8
  import _8 from './components/icon/icons/8.js';
9
+ import Cancer from './components/icon/icons/Cancer.js';
9
10
  import Activity from './components/icon/icons/Activity.js';
10
11
  import Adhd from './components/icon/icons/Adhd.js';
11
12
  import AdviceRecommendation from './components/icon/icons/AdviceRecommendation.js';
@@ -27,6 +28,7 @@ import ArrowDown from './components/icon/icons/ArrowDown.js';
27
28
  import ArrowLeftCircle from './components/icon/icons/ArrowLeftCircle.js';
28
29
  import ArrowLeft from './components/icon/icons/ArrowLeft.js';
29
30
  import ArrowRightCircle from './components/icon/icons/ArrowRightCircle.js';
31
+ import ArrowRightFilled from './components/icon/icons/ArrowRightFilled.js';
30
32
  import ArrowRight from './components/icon/icons/ArrowRight.js';
31
33
  import ArrowUpCircle from './components/icon/icons/ArrowUpCircle.js';
32
34
  import ArrowUpLeft from './components/icon/icons/ArrowUpLeft.js';
@@ -61,7 +63,6 @@ import Calculator from './components/icon/icons/Calculator.js';
61
63
  import CalendarIcon from './components/icon/icons/Calendar.js';
62
64
  import CameraOff from './components/icon/icons/CameraOff.js';
63
65
  import Camera from './components/icon/icons/Camera.js';
64
- import Cancer from './components/icon/icons/Cancer.js';
65
66
  import Cast from './components/icon/icons/Cast.js';
66
67
  import CheckCircle from './components/icon/icons/CheckCircle.js';
67
68
  import CheckInCircleFilled from './components/icon/icons/CheckInCircleFilled.js';
@@ -238,6 +239,8 @@ import PhoneOutgoing from './components/icon/icons/PhoneOutgoing.js';
238
239
  import Phone from './components/icon/icons/Phone.js';
239
240
  import PieChart from './components/icon/icons/PieChart.js';
240
241
  import PlaneFilled from './components/icon/icons/PlaneFilled.js';
242
+ import PlaneRepatriationFilled from './components/icon/icons/PlaneRepatriationFilled.js';
243
+ import PlaneRepatriation from './components/icon/icons/PlaneRepatriation.js';
241
244
  import Plane from './components/icon/icons/Plane.js';
242
245
  import PlayCircle from './components/icon/icons/PlayCircle.js';
243
246
  import Play from './components/icon/icons/Play.js';
@@ -370,6 +373,7 @@ var icons = /*#__PURE__*/Object.freeze({
370
373
  Svg6Icon: _6,
371
374
  Svg7Icon: _7,
372
375
  Svg8Icon: _8,
376
+ CancerIcon: Cancer,
373
377
  ActivityIcon: Activity,
374
378
  AdhdIcon: Adhd,
375
379
  AdviceRecommendationIcon: AdviceRecommendation,
@@ -391,6 +395,7 @@ var icons = /*#__PURE__*/Object.freeze({
391
395
  ArrowLeftCircleIcon: ArrowLeftCircle,
392
396
  ArrowLeftIcon: ArrowLeft,
393
397
  ArrowRightCircleIcon: ArrowRightCircle,
398
+ ArrowRightFilledIcon: ArrowRightFilled,
394
399
  ArrowRightIcon: ArrowRight,
395
400
  ArrowUpCircleIcon: ArrowUpCircle,
396
401
  ArrowUpLeftIcon: ArrowUpLeft,
@@ -425,7 +430,6 @@ var icons = /*#__PURE__*/Object.freeze({
425
430
  CalendarIcon: CalendarIcon,
426
431
  CameraOffIcon: CameraOff,
427
432
  CameraIcon: Camera,
428
- CancerIcon: Cancer,
429
433
  CastIcon: Cast,
430
434
  CheckCircleIcon: CheckCircle,
431
435
  CheckInCircleFilledIcon: CheckInCircleFilled,
@@ -602,6 +606,8 @@ var icons = /*#__PURE__*/Object.freeze({
602
606
  PhoneIcon: Phone,
603
607
  PieChartIcon: PieChart,
604
608
  PlaneFilledIcon: PlaneFilled,
609
+ PlaneRepatriationFilledIcon: PlaneRepatriationFilled,
610
+ PlaneRepatriationIcon: PlaneRepatriation,
605
611
  PlaneIcon: Plane,
606
612
  PlayCircleIcon: PlayCircle,
607
613
  PlayIcon: Play,
@@ -726,4 +732,4 @@ var icons = /*#__PURE__*/Object.freeze({
726
732
  });
727
733
 
728
734
  export { icons as i };
729
- //# sourceMappingURL=index-e506c4ca.js.map
735
+ //# sourceMappingURL=index-73378a46.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-e506c4ca.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index-73378a46.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/esm/index.js CHANGED
@@ -15,7 +15,7 @@ export { RegularModal } from './components/modal/regularModal/index.js';
15
15
  export { BottomOrRegularModal } from './components/modal/bottomOrRegularModal/index.js';
16
16
  export { InfoCard } from './components/cards/index.js';
17
17
  export { CardButton } from './components/cards/cardButton/index.js';
18
- export { Card } from './components/card/index.js';
18
+ export { Card } from './components/cards/card/index.js';
19
19
  export { Button } from './components/button/index.js';
20
20
  export { AutoSuggestMultiSelect } from './components/input/autoSuggestMultiSelect/index.js';
21
21
  export { default as Chip } from './components/chip/index.js';
@@ -36,6 +36,7 @@ export { default as Svg5Icon } from './components/icon/icons/5.js';
36
36
  export { default as Svg6Icon } from './components/icon/icons/6.js';
37
37
  export { default as Svg7Icon } from './components/icon/icons/7.js';
38
38
  export { default as Svg8Icon } from './components/icon/icons/8.js';
39
+ export { default as CancerIcon } from './components/icon/icons/Cancer.js';
39
40
  export { default as ActivityIcon } from './components/icon/icons/Activity.js';
40
41
  export { default as AdhdIcon } from './components/icon/icons/Adhd.js';
41
42
  export { default as AdviceRecommendationIcon } from './components/icon/icons/AdviceRecommendation.js';
@@ -57,6 +58,7 @@ export { default as ArrowDownIcon } from './components/icon/icons/ArrowDown.js';
57
58
  export { default as ArrowLeftCircleIcon } from './components/icon/icons/ArrowLeftCircle.js';
58
59
  export { default as ArrowLeftIcon } from './components/icon/icons/ArrowLeft.js';
59
60
  export { default as ArrowRightCircleIcon } from './components/icon/icons/ArrowRightCircle.js';
61
+ export { default as ArrowRightFilledIcon } from './components/icon/icons/ArrowRightFilled.js';
60
62
  export { default as ArrowRightIcon } from './components/icon/icons/ArrowRight.js';
61
63
  export { default as ArrowUpCircleIcon } from './components/icon/icons/ArrowUpCircle.js';
62
64
  export { default as ArrowUpLeftIcon } from './components/icon/icons/ArrowUpLeft.js';
@@ -91,7 +93,6 @@ export { default as CalculatorIcon } from './components/icon/icons/Calculator.js
91
93
  export { default as CalendarIcon } from './components/icon/icons/Calendar.js';
92
94
  export { default as CameraOffIcon } from './components/icon/icons/CameraOff.js';
93
95
  export { default as CameraIcon } from './components/icon/icons/Camera.js';
94
- export { default as CancerIcon } from './components/icon/icons/Cancer.js';
95
96
  export { default as CastIcon } from './components/icon/icons/Cast.js';
96
97
  export { default as CheckCircleIcon } from './components/icon/icons/CheckCircle.js';
97
98
  export { default as CheckInCircleFilledIcon } from './components/icon/icons/CheckInCircleFilled.js';
@@ -268,6 +269,8 @@ export { default as PhoneOutgoingIcon } from './components/icon/icons/PhoneOutgo
268
269
  export { default as PhoneIcon } from './components/icon/icons/Phone.js';
269
270
  export { default as PieChartIcon } from './components/icon/icons/PieChart.js';
270
271
  export { default as PlaneFilledIcon } from './components/icon/icons/PlaneFilled.js';
272
+ export { default as PlaneRepatriationFilledIcon } from './components/icon/icons/PlaneRepatriationFilled.js';
273
+ export { default as PlaneRepatriationIcon } from './components/icon/icons/PlaneRepatriation.js';
271
274
  export { default as PlaneIcon } from './components/icon/icons/Plane.js';
272
275
  export { default as PlayCircleIcon } from './components/icon/icons/PlayCircle.js';
273
276
  export { default as PlayIcon } from './components/icon/icons/Play.js';
@@ -407,7 +410,7 @@ import './index-1463d5e9.js';
407
410
  import './index-dd80248b.js';
408
411
  import './index-a0ef2ab4.js';
409
412
  import './components/multiDropzone/UploadFileCell/index.js';
410
- import './useOnClose-d818a54f.js';
413
+ import './components/modal/genericModal/index.js';
411
414
  import './index-171a0108.js';
412
415
  import './components/comparisonTable/components/Chevron.js';
413
416
  import './components/comparisonTable/components/Row/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -15,6 +15,6 @@ declare const Button: React.ForwardRefExoticComponent<Pick<{
15
15
  rightIcon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
16
16
  loading?: boolean | undefined;
17
17
  hideLabel?: boolean | undefined;
18
- } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children">, "className" | "form" | "slot" | "style" | "title" | "children" | "onClick" | "color" | "hidden" | "type" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "placeholder" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "hideLabel" | "loading" | "variant" | "leftIcon" | "rightIcon"> & React.RefAttributes<HTMLButtonElement>>;
18
+ } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children">, "className" | "form" | "slot" | "style" | "title" | "children" | "onClick" | "color" | "hidden" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "loading" | "variant" | "leftIcon" | "rightIcon" | "hideLabel"> & React.RefAttributes<HTMLButtonElement>>;
19
19
  export { Button };
20
20
  export type { ButtonProps, ButtonVariant };
@@ -9,7 +9,7 @@ declare const story: {
9
9
  rightIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
10
10
  loading?: boolean | undefined;
11
11
  hideLabel?: boolean | undefined;
12
- } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children">, "className" | "form" | "slot" | "style" | "title" | "children" | "onClick" | "color" | "hidden" | "type" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "placeholder" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "hideLabel" | "loading" | "variant" | "leftIcon" | "rightIcon"> & import("react").RefAttributes<HTMLButtonElement>>;
12
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children">, "className" | "form" | "slot" | "style" | "title" | "children" | "onClick" | "color" | "hidden" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "loading" | "variant" | "leftIcon" | "rightIcon" | "hideLabel"> & import("react").RefAttributes<HTMLButtonElement>>;
13
13
  argTypes: {
14
14
  children: {
15
15
  control: {
@@ -3,6 +3,7 @@ declare const cardDefaultAs: "section";
3
3
  declare type CardDefaultAsType = typeof cardDefaultAs;
4
4
  declare type DensityType = 'balanced' | 'compact' | 'spacious';
5
5
  declare type TitleVariantType = 'small' | 'medium' | 'large';
6
+ declare type VerticalAlignmentType = 'top' | 'center' | 'bottom';
6
7
  declare type CardOwnProps<E extends ElementType = CardDefaultAsType> = {
7
8
  as?: E;
8
9
  children?: ReactNode;
@@ -27,7 +28,8 @@ declare type CardOwnProps<E extends ElementType = CardDefaultAsType> = {
27
28
  onClick?: () => void;
28
29
  actionIcon?: ReactNode;
29
30
  showActionIcon?: boolean;
31
+ verticalAlignment?: VerticalAlignmentType;
30
32
  };
31
33
  export declare type CardProps<E extends ElementType = CardDefaultAsType> = CardOwnProps<E> & Omit<ComponentProps<E>, keyof CardOwnProps<E>>;
32
- declare const Card: <E extends ElementType<any> = "section">({ as, children, classNames, density, description, descriptionVariant, dropShadow, icon, label, onClick, actionIcon, title, titleVariant, showActionIcon, ...rest }: CardProps<E>) => JSX.Element;
34
+ declare const Card: <E extends ElementType<any> = "section">({ as, children, classNames, density, description, descriptionVariant, dropShadow, icon, label, onClick, actionIcon, title, titleVariant, showActionIcon, verticalAlignment, ...rest }: CardProps<E>) => JSX.Element;
33
35
  export { Card };
@@ -2,7 +2,7 @@
2
2
  import { CardProps } from '.';
3
3
  declare const story: {
4
4
  title: string;
5
- component: <E extends import("react").ElementType<any> = "section">({ as, children, classNames, density, description, descriptionVariant, dropShadow, icon, label, onClick, actionIcon, title, titleVariant, showActionIcon, ...rest }: CardProps<E>) => JSX.Element;
5
+ component: <E extends import("react").ElementType<any> = "section">({ as, children, classNames, density, description, descriptionVariant, dropShadow, icon, label, onClick, actionIcon, title, titleVariant, showActionIcon, verticalAlignment, ...rest }: CardProps<E>) => JSX.Element;
6
6
  argTypes: {
7
7
  as: {
8
8
  control: {
@@ -52,6 +52,12 @@ declare const story: {
52
52
  showActionIcon: {
53
53
  description: string;
54
54
  };
55
+ verticalAlignment: {
56
+ description: string;
57
+ control: {
58
+ type: string;
59
+ };
60
+ };
55
61
  };
56
62
  args: {
57
63
  density: string;
@@ -71,10 +77,11 @@ declare const story: {
71
77
  icon: string;
72
78
  };
73
79
  dropShadow: boolean;
80
+ verticalAlignment: string;
74
81
  };
75
82
  };
76
83
  export declare const CardStory: {
77
- ({ as, actionIcon, showActionIcon, children, classNames, density, description, descriptionVariant, dropShadow, icon, label, onClick, title, titleVariant, }: CardProps): JSX.Element;
84
+ ({ as, actionIcon, showActionIcon, children, classNames, density, description, descriptionVariant, dropShadow, icon, label, onClick, title, titleVariant, verticalAlignment, }: CardProps): JSX.Element;
78
85
  storyName: string;
79
86
  };
80
87
  export declare const CardAsOtherComponents: () => JSX.Element;
@@ -1,16 +1,10 @@
1
- import { FormEvent, ReactNode } from 'react';
2
- declare type ActionProps = {
3
- href: string;
4
- onClick?: (e: FormEvent) => void;
5
- } | {
6
- href?: string;
7
- onClick: (e: FormEvent) => void;
8
- };
1
+ import { ReactNode } from 'react';
2
+ import { CardProps } from '../card';
9
3
  export declare type CardButtonProps = {
10
4
  title: string;
11
5
  description: string | ReactNode;
12
6
  disabled?: boolean;
13
7
  className?: string;
14
- } & ActionProps;
15
- export declare const CardButton: ({ title, description, disabled, onClick, href, className, }: CardButtonProps) => JSX.Element;
16
- export {};
8
+ href?: string;
9
+ } & CardProps;
10
+ export declare const CardButton: ({ title, description, disabled, className, href, }: CardButtonProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { CardButtonProps } from '.';
2
2
  declare const story: {
3
3
  title: string;
4
- component: ({ title, description, disabled, onClick, href, className, }: CardButtonProps) => JSX.Element;
4
+ component: ({ title, description, disabled, className, href, }: CardButtonProps) => JSX.Element;
5
5
  argTypes: {
6
6
  title: {
7
7
  defaultValue: string;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { IconWrapperProps } from '../IconWrapper';
3
+ declare const _default: (props: IconWrapperProps) => import("react").FunctionComponentElement<IconWrapperProps>;
4
+ export default _default;
@@ -6,6 +6,7 @@ export { default as Svg5Icon } from './5';
6
6
  export { default as Svg6Icon } from './6';
7
7
  export { default as Svg7Icon } from './7';
8
8
  export { default as Svg8Icon } from './8';
9
+ export { default as CancerIcon } from './Cancer';
9
10
  export { default as ActivityIcon } from './Activity';
10
11
  export { default as AdhdIcon } from './Adhd';
11
12
  export { default as AdviceRecommendationIcon } from './AdviceRecommendation';
@@ -27,6 +28,7 @@ export { default as ArrowDownIcon } from './ArrowDown';
27
28
  export { default as ArrowLeftCircleIcon } from './ArrowLeftCircle';
28
29
  export { default as ArrowLeftIcon } from './ArrowLeft';
29
30
  export { default as ArrowRightCircleIcon } from './ArrowRightCircle';
31
+ export { default as ArrowRightFilledIcon } from './ArrowRightFilled';
30
32
  export { default as ArrowRightIcon } from './ArrowRight';
31
33
  export { default as ArrowUpCircleIcon } from './ArrowUpCircle';
32
34
  export { default as ArrowUpLeftIcon } from './ArrowUpLeft';
@@ -61,7 +63,6 @@ export { default as CalculatorIcon } from './Calculator';
61
63
  export { default as CalendarIcon } from './Calendar';
62
64
  export { default as CameraOffIcon } from './CameraOff';
63
65
  export { default as CameraIcon } from './Camera';
64
- export { default as CancerIcon } from './Cancer';
65
66
  export { default as CastIcon } from './Cast';
66
67
  export { default as CheckCircleIcon } from './CheckCircle';
67
68
  export { default as CheckInCircleFilledIcon } from './CheckInCircleFilled';
@@ -238,6 +239,8 @@ export { default as PhoneOutgoingIcon } from './PhoneOutgoing';
238
239
  export { default as PhoneIcon } from './Phone';
239
240
  export { default as PieChartIcon } from './PieChart';
240
241
  export { default as PlaneFilledIcon } from './PlaneFilled';
242
+ export { default as PlaneRepatriationFilledIcon } from './PlaneRepatriationFilled';
243
+ export { default as PlaneRepatriationIcon } from './PlaneRepatriation';
241
244
  export { default as PlaneIcon } from './Plane';
242
245
  export { default as PlayCircleIcon } from './PlayCircle';
243
246
  export { default as PlayIcon } from './Play';
@@ -14,4 +14,4 @@ export declare const Input: React.ForwardRefExoticComponent<Pick<Omit<React.Deta
14
14
  id?: string | undefined;
15
15
  hideLabel?: boolean | undefined;
16
16
  labelInsideInput?: boolean | undefined;
17
- }, "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "onClick" | "error" | "size" | "color" | "hidden" | "type" | "list" | "enterKeyHint" | "key" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "hideLabel" | "labelInsideInput"> & React.RefAttributes<HTMLInputElement>>;
17
+ }, "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "children" | "onClick" | "error" | "size" | "color" | "hidden" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "hideLabel" | "list" | "step" | "enterKeyHint" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width" | "labelInsideInput"> & React.RefAttributes<HTMLInputElement>>;