@popsure/dirty-swan 0.41.0-rc.3 → 0.41.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +144 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/card/index.d.ts +25 -0
- package/dist/cjs/lib/components/card/index.stories.d.ts +72 -0
- package/dist/cjs/lib/components/input/radio/index.d.ts +2 -1
- package/dist/cjs/lib/components/input/radio/index.stories.d.ts +2 -1
- package/dist/cjs/lib/index.d.ts +3 -3
- package/dist/cjs/lib/models/styles.d.ts +1 -1
- package/dist/cjs/lib/util/images/index.d.ts +135 -1
- package/dist/cjs/lib/util/images/index.stories.d.ts +1 -1
- package/dist/esm/components/card/index.js +39 -0
- package/dist/esm/components/card/index.js.map +1 -0
- package/dist/esm/components/card/index.stories.js +111 -0
- package/dist/esm/components/card/index.stories.js.map +1 -0
- package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js +1 -1
- package/dist/esm/components/cards/cardWithTopIcon/index.stories.js +1 -1
- package/dist/esm/components/cards/infoCard/index.stories.js +1 -1
- package/dist/esm/components/icon/icons/Meh.js +2 -2
- package/dist/esm/components/icon/icons/Meh.js.map +1 -1
- package/dist/esm/components/icon/icons/PlusCircle.js +2 -2
- package/dist/esm/components/icon/icons/PlusCircle.js.map +1 -1
- package/dist/esm/components/icon/icons.stories.js +1 -1
- package/dist/esm/components/icon/index.stories.js +1 -1
- package/dist/esm/components/input/checkbox/index.stories.js +1 -1
- package/dist/esm/components/input/radio/index.js +4 -4
- package/dist/esm/components/input/radio/index.js.map +1 -1
- package/dist/esm/components/input/radio/index.stories.js +24 -2
- package/dist/esm/components/input/radio/index.stories.js.map +1 -1
- package/dist/esm/components/toast/index.js +1 -1
- package/dist/esm/components/toast/index.stories.js +5 -3
- package/dist/esm/components/toast/index.stories.js.map +1 -1
- package/dist/esm/components/toast/index.test.js +1 -1
- package/dist/esm/index-1693701e.js +159 -0
- package/dist/esm/index-1693701e.js.map +1 -0
- package/dist/esm/{index-eff726d3.js → index-45edc7d0.js} +7 -7
- package/dist/esm/index-45edc7d0.js.map +1 -0
- package/dist/esm/{index-0a8de35a.js → index-83ae7f18.js} +5 -5
- package/dist/esm/{index-0a8de35a.js.map → index-83ae7f18.js.map} +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/lib/components/card/index.d.ts +25 -0
- package/dist/esm/lib/components/card/index.stories.d.ts +72 -0
- package/dist/esm/lib/components/input/radio/index.d.ts +2 -1
- package/dist/esm/lib/components/input/radio/index.stories.d.ts +2 -1
- package/dist/esm/lib/index.d.ts +3 -3
- package/dist/esm/lib/models/styles.d.ts +1 -1
- package/dist/esm/lib/util/images/index.d.ts +135 -1
- package/dist/esm/lib/util/images/index.stories.d.ts +1 -1
- package/dist/esm/util/images/index.stories.js +43 -12
- package/dist/esm/util/images/index.stories.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/lib/scss/public/shadows.scss +1 -1
- package/package.json +1 -1
- package/src/index.tsx +2 -0
- package/src/lib/components/card/index.stories.tsx +245 -0
- package/src/lib/components/card/index.tsx +144 -0
- package/src/lib/components/card/style.module.scss +37 -0
- package/src/lib/components/input/radio/index.stories.tsx +33 -0
- package/src/lib/components/input/radio/index.tsx +14 -3
- package/src/lib/components/toast/index.stories.tsx +7 -2
- package/src/lib/components/toast/index.tsx +8 -4
- package/src/lib/components/toast/style.module.scss +9 -5
- package/src/lib/index.tsx +4 -2
- package/src/lib/models/styles.ts +1 -1
- package/src/lib/scss/public/shadows.scss +1 -1
- package/src/lib/util/images/index.stories.tsx +63 -21
- package/src/lib/util/images/index.ts +138 -1
- package/src/lib/util/images/style.module.scss +20 -0
- package/dist/esm/index-31224f74.js +0 -26
- package/dist/esm/index-31224f74.js.map +0 -1
- package/dist/esm/index-eff726d3.js.map +0 -1
|
@@ -9,7 +9,7 @@ styleInject(css_248z);
|
|
|
9
9
|
|
|
10
10
|
var Radio = function (_a) {
|
|
11
11
|
var _b;
|
|
12
|
-
var options = _a.options, value = _a.value, onChange = _a.onChange, _c = _a.wide, wide = _c === void 0 ? false : _c, _d = _a.inlineLayout, inlineLayout = _d === void 0 ? false : _d, classNamesObj = _a.classNames,
|
|
12
|
+
var options = _a.options, value = _a.value, onChange = _a.onChange, _c = _a.wide, wide = _c === void 0 ? false : _c, _d = _a.inlineLayout, inlineLayout = _d === void 0 ? false : _d, _e = _a.inlineIcon, inlineIcon = _e === void 0 ? false : _e, classNamesObj = _a.classNames, _f = _a.bordered, bordered = _f === void 0 ? true : _f;
|
|
13
13
|
var entries = Object.entries(options);
|
|
14
14
|
return (jsx("div", __assign({ className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles.container, 'd-flex gap8', (_b = {},
|
|
15
15
|
_b[styles.wide] = wide,
|
|
@@ -31,10 +31,10 @@ var Radio = function (_a) {
|
|
|
31
31
|
'p-radio--centered': !label,
|
|
32
32
|
}), id: currentValue, type: "radio", value: currentValue, onChange: function () { return onChange(currentValue); }, checked: checked, "data-testid": "radio-input-" + currentValue }, void 0),
|
|
33
33
|
jsxs("label", __assign({ htmlFor: currentValue, className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label', {
|
|
34
|
-
'jc-center': customIcon,
|
|
35
|
-
'fd-column': customIcon,
|
|
34
|
+
'jc-center': customIcon && !inlineIcon,
|
|
35
|
+
'fd-column': customIcon && !inlineIcon,
|
|
36
36
|
'p-label--bordered': bordered,
|
|
37
|
-
}), "data-cy": "radio-" + currentValue, "data-testid": "radio-" + currentValue }, { children: [customIcon && jsx("div", __assign({ className: "mt8" }, { children: customIcon === null || customIcon === void 0 ? void 0 : customIcon(checked) }), void 0),
|
|
37
|
+
}), "data-cy": "radio-" + currentValue, "data-testid": "radio-" + currentValue }, { children: [customIcon && (jsx("div", __assign({ className: classNames("d-inline-flex ai-center jc-center", inlineIcon ? "mr8" : "mt8") }, { children: customIcon === null || customIcon === void 0 ? void 0 : customIcon(checked) }), void 0)),
|
|
38
38
|
isRadioLabelObject(label) ? (jsxs("div", { children: [jsx("p", __assign({ className: "p-p" }, { children: label.title }), void 0),
|
|
39
39
|
jsx("span", __assign({ className: "d-block p-p p-p--small tc-grey-600" }, { children: label.description }), void 0)] }, void 0)) : (label)] }), void 0)] }), currentValue));
|
|
40
40
|
}) }), void 0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/lib/components/input/radio/index.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { ReactNode } from 'react';\n\nimport styles from './styles.module.scss';\nexport interface RadioWithDescription {\n title: ReactNode;\n description?: string;\n icon?: (selected: boolean) => ReactNode;\n hideBox?: boolean;\n}\n\nexport interface RadioProps<ValueType extends string> {\n options: Record<ValueType, ReactNode | RadioWithDescription>;\n value?: ValueType;\n onChange: (value: ValueType) => void;\n wide?: boolean;\n inlineLayout?: boolean;\n classNames?: {\n container?: string;\n label?: string;\n option?: string;\n };\n bordered?: boolean;\n}\n\nexport const Radio = <ValueType extends string>({\n options,\n value,\n onChange,\n wide = false,\n inlineLayout = false,\n classNames: classNamesObj,\n bordered = true,\n}: RadioProps<ValueType>) => {\n const entries = Object.entries(options) as [\n ValueType,\n ReactNode | RadioWithDescription\n ][];\n\n return (\n <div\n className={classNames(\n classNamesObj?.container,\n styles.container,\n 'd-flex gap8',\n {\n [styles.wide]: wide,\n [styles.narrow]: !wide,\n 'fd-row': inlineLayout,\n 'f-wrap': inlineLayout,\n 'fd-column': !inlineLayout,\n }\n )}\n >\n {entries.map(([currentValue, label]) => {\n const checked = value === currentValue;\n const customIcon = (label as RadioWithDescription)?.icon;\n const hideIcon = (label as RadioWithDescription)?.hideBox;\n\n const isRadioLabelObject = (\n label: ReactNode | RadioWithDescription\n ): label is RadioWithDescription => {\n return (label as RadioWithDescription).title !== undefined;\n };\n\n return (\n <div className={classNamesObj?.option} key={currentValue}>\n <input\n className={classNames('p-radio', {\n 'p-radio--no-icon': customIcon || hideIcon,\n 'p-radio--centered': !label,\n })}\n id={currentValue}\n type=\"radio\"\n value={currentValue}\n onChange={() => onChange(currentValue)}\n checked={checked}\n data-testid={`radio-input-${currentValue}`}\n />\n\n <label\n htmlFor={currentValue}\n className={classNames(classNamesObj?.label, 'p-label', {\n 'jc-center': customIcon,\n 'fd-column': customIcon,\n 'p-label--bordered': bordered,\n })}\n data-cy={`radio-${currentValue}`}\n data-testid={`radio-${currentValue}`}\n >\n {customIcon && <div className
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/lib/components/input/radio/index.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { ReactNode } from 'react';\n\nimport styles from './styles.module.scss';\nexport interface RadioWithDescription {\n title: ReactNode;\n description?: string;\n icon?: (selected: boolean) => ReactNode;\n hideBox?: boolean;\n}\n\nexport interface RadioProps<ValueType extends string> {\n options: Record<ValueType, ReactNode | RadioWithDescription>;\n value?: ValueType;\n onChange: (value: ValueType) => void;\n wide?: boolean;\n inlineLayout?: boolean;\n inlineIcon?: boolean;\n classNames?: {\n container?: string;\n label?: string;\n option?: string;\n };\n bordered?: boolean;\n}\n\nexport const Radio = <ValueType extends string>({\n options,\n value,\n onChange,\n wide = false,\n inlineLayout = false,\n inlineIcon = false,\n classNames: classNamesObj,\n bordered = true,\n}: RadioProps<ValueType>) => {\n const entries = Object.entries(options) as [\n ValueType,\n ReactNode | RadioWithDescription\n ][];\n\n return (\n <div\n className={classNames(\n classNamesObj?.container,\n styles.container,\n 'd-flex gap8',\n {\n [styles.wide]: wide,\n [styles.narrow]: !wide,\n 'fd-row': inlineLayout,\n 'f-wrap': inlineLayout,\n 'fd-column': !inlineLayout,\n }\n )}\n >\n {entries.map(([currentValue, label]) => {\n const checked = value === currentValue;\n const customIcon = (label as RadioWithDescription)?.icon;\n const hideIcon = (label as RadioWithDescription)?.hideBox;\n\n const isRadioLabelObject = (\n label: ReactNode | RadioWithDescription\n ): label is RadioWithDescription => {\n return (label as RadioWithDescription).title !== undefined;\n };\n\n return (\n <div className={classNamesObj?.option} key={currentValue}>\n <input\n className={classNames('p-radio', {\n 'p-radio--no-icon': customIcon || hideIcon,\n 'p-radio--centered': !label,\n })}\n id={currentValue}\n type=\"radio\"\n value={currentValue}\n onChange={() => onChange(currentValue)}\n checked={checked}\n data-testid={`radio-input-${currentValue}`}\n />\n\n <label\n htmlFor={currentValue}\n className={classNames(classNamesObj?.label, 'p-label', {\n 'jc-center': customIcon && !inlineIcon,\n 'fd-column': customIcon && !inlineIcon,\n 'p-label--bordered': bordered,\n })}\n data-cy={`radio-${currentValue}`}\n data-testid={`radio-${currentValue}`}\n >\n {customIcon && (\n <div \n className={classNames(\n \"d-inline-flex ai-center jc-center\", \n inlineIcon ? \"mr8\" : \"mt8\"\n )}\n >\n {customIcon?.(checked)}\n </div>\n )}\n\n {isRadioLabelObject(label) ? (\n <div>\n <p className=\"p-p\">{label.title}</p>\n <span className=\"d-block p-p p-p--small tc-grey-600\">\n {label.description}\n </span>\n </div>\n ) : (\n label\n )}\n </label>\n </div>\n );\n })}\n </div>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;IA0Ba,KAAK,GAAG,UAA2B,EASxB;;QARtB,OAAO,aAAA,EACP,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,YAAY,EAAZ,IAAI,mBAAG,KAAK,KAAA,EACZ,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACpB,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EACN,aAAa,gBAAA,EACzB,gBAAe,EAAf,QAAQ,mBAAG,IAAI,KAAA;IAEf,IAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAGnC,CAAC;IAEJ,QACEA,sBACE,SAAS,EAAE,UAAU,CACnB,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,SAAS,EACxB,M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BACnB,WAAS,YAAc,iBAEnC,UAAU,KACTD,sBACE,SAAS,EAAE,UAAU,CACnB,mCAAmC,EACnC,UAAU,GAAG,KAAK,GAAG,KAAK,CAC3B,gBAEA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAG,OAAO,CAAC,YAClB,CACP;4BAEA,kBAAkB,CAAC,KAAK,CAAC,IACxBC,yBACED,oBAAG,SAAS,EAAC,KAAK,gBAAE,KAAK,CAAC,KAAK,YAAK;oCACpCA,uBAAM,SAAS,EAAC,oCAAoC,gBACjD,KAAK,CAAC,WAAW,YACb,YACH,KAEN,KAAK,CACN,aACK,MA7CkC,YAAY,CA8ClD,EACN;SACH,CAAC,YACE,EACN;AACJ;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Radio } from './index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { a as images } from '../../../index-1693701e.js';
|
|
5
5
|
import '../../../tslib.es6-5bc94358.js';
|
|
6
6
|
import '../../../index-6ea95111.js';
|
|
7
7
|
import '../../../style-inject.es-1f59c1d0.js';
|
|
@@ -142,6 +142,28 @@ var RadioWithCustomLabel = function (_a) {
|
|
|
142
142
|
}
|
|
143
143
|
}, onChange: handleOnChange, value: checkedValues, classNames: { option: "w30" }, inlineLayout: true }, void 0));
|
|
144
144
|
};
|
|
145
|
+
var RadioWithCustomLabelInline = function (_a) {
|
|
146
|
+
var onChange = _a.onChange; _a.wide; _a.classNames; _a.inlineLayout;
|
|
147
|
+
var _b = useState(), checkedValues = _b[0], setCheckedValues = _b[1];
|
|
148
|
+
var handleOnChange = function (newValue) {
|
|
149
|
+
setCheckedValues(newValue);
|
|
150
|
+
onChange(newValue);
|
|
151
|
+
};
|
|
152
|
+
return (jsx(Radio, { options: {
|
|
153
|
+
BIGDOG: {
|
|
154
|
+
icon: function () { return jsx("img", { src: images.bigDog, alt: '' }, void 0); },
|
|
155
|
+
title: 'Dog',
|
|
156
|
+
},
|
|
157
|
+
FISH: {
|
|
158
|
+
icon: function () { return jsx("img", { src: images.brokenAquarium, alt: '' }, void 0); },
|
|
159
|
+
title: 'Fish',
|
|
160
|
+
},
|
|
161
|
+
OTHER: {
|
|
162
|
+
icon: function () { return jsx("img", { src: images.brokenGlass, alt: '' }, void 0); },
|
|
163
|
+
title: 'Other',
|
|
164
|
+
}
|
|
165
|
+
}, onChange: handleOnChange, inlineIcon: true, value: checkedValues, classNames: { option: "w30" }, inlineLayout: true }, void 0));
|
|
166
|
+
};
|
|
145
167
|
RadioStory.storyName = 'Radio';
|
|
146
168
|
var RadioIconOnly = function (_a) {
|
|
147
169
|
var onChange = _a.onChange;
|
|
@@ -155,5 +177,5 @@ var RadioIconOnly = function (_a) {
|
|
|
155
177
|
RadioStory.storyName = 'Radio';
|
|
156
178
|
|
|
157
179
|
export default story;
|
|
158
|
-
export { RadioIconOnly, RadioStory, RadioWithCustomLabel, RadioWithCustomLabelStyles, RadioWithCustomOptionStyles, RadioWithCustomWrapperStyles, RadioWithInlineLayout };
|
|
180
|
+
export { RadioIconOnly, RadioStory, RadioWithCustomLabel, RadioWithCustomLabelInline, RadioWithCustomLabelStyles, RadioWithCustomOptionStyles, RadioWithCustomWrapperStyles, RadioWithInlineLayout };
|
|
159
181
|
//# sourceMappingURL=index.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/input/radio/index.stories.tsx"],"sourcesContent":["\nimport { useState } from 'react';\nimport { Radio, RadioProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Inputs/Radio',\n component: Radio,\n argTypes: {\n options: {\n description: 'Object that contains the possible options for rendering in the input.',\n defaultValue: {\n CAT:{\n title: 'Cat',\n description: 'At least 1'\n },\n DOG:{\n title: 'Dog',\n description: 'At least 2'\n },\n NONE:{\n title: 'None',\n description: 'No pets'\n }\n }\n },\n value: {\n description: 'Current checked values.',\n },\n onChange: {\n description: 'Function called everytime a value changes.',\n action: true,\n table: {\n category: \"Callbacks\",\n },\n },\n wide: {\n description: 'Property that defines if options should fill 100% of available horizontal space',\n defaultValue: false\n },\n inlineLayout: {\n description: 'Property that defines if options should show inline instead of block. Check inline radio options story for examples.',\n defaultValue: false\n },\n classNames: {\n description: 'ClassNames for custom styling',\n defaultValue: {\n container: '',\n label: '',\n option: ''\n }\n },\n bordered: {\n description: 'Property that defines if option should show with border',\n defaultValue: true\n },\n }\n};\n\nexport const RadioStory = ({ \n onChange,\n options,\n wide,\n classNames,\n inlineLayout,\n bordered,\n}: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n wide={wide}\n options={options} \n onChange={handleOnChange}\n value={checkedValues}\n classNames={classNames}\n inlineLayout={inlineLayout}\n bordered={bordered}\n />\n );\n}\n\nexport const RadioWithCustomWrapperStyles = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n onChange={handleOnChange}\n value={checkedValues}\n options={{\n CAT1: 'Cat',\n DOG1: 'Dog',\n }} \n classNames={{ container: \"p32 bg-primary-300 br24 bs-lg\" }}\n />\n );\n}\n\nexport const RadioWithCustomOptionStyles = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n onChange={handleOnChange}\n value={checkedValues}\n options={{\n CAT2: 'Cat',\n DOG2: 'Dog',\n }} \n classNames={{ option: \"mb32 p24 bg-green-100 br12 bs-lg\" }}\n />\n );\n}\n\nexport const RadioWithCustomLabelStyles = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string ) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n onChange={handleOnChange}\n value={checkedValues}\n options={{\n CAT3: 'Cat',\n DOG3: 'Dog',\n }} \n classNames={{ label: \"bg-grey-900 tc-white\" }}\n />\n );\n}\n\nexport const RadioWithInlineLayout = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n onChange={handleOnChange}\n value={checkedValues}\n options={{\n CAT4: 'Cat',\n DOG4: 'Dog',\n FISHER: 'Fish',\n RABBIT: 'Rabbit',\n RAT: 'Rat',\n ANOTHER: 'Other',\n }} \n classNames={{ option: \"w30\" }}\n inlineLayout\n wide\n />\n );\n}\n\nexport const RadioWithCustomLabel = ({ onChange, wide, classNames, inlineLayout }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n options={{\n BIGDOG: {\n icon: () => <img src={images.bigDog} alt='' />,\n title: 'Dog',\n },\n FISH:{\n icon: () => <img src={images.brokenAquarium} alt='' />,\n title: 'Fish',\n },\n OTHER:{\n icon: () => <img src={images.brokenGlass} alt='' />,\n title: 'Other',\n }\n }} \n onChange={handleOnChange}\n value={checkedValues}\n classNames={{ option: \"w30\" }}\n inlineLayout\n />\n );\n}\n\nRadioStory.storyName = 'Radio';\n\nexport const RadioIconOnly = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n options={{ NOTHING: '' }} \n onChange={handleOnChange}\n classNames={{ label: 'jc-start' }}\n value={checkedValues}\n bordered={false}\n />\n );\n}\n\nRadioStory.storyName = 'Radio';\n\nexport default story;\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Aa,EACpB,QAAQ,EAAE,KAAK,WACf,EACF;AACJ,EAAC;AAED,UAAU,CAAC,SAAS,GAAG,OAAO;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/input/radio/index.stories.tsx"],"sourcesContent":["\nimport { useState } from 'react';\nimport { Radio, RadioProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Inputs/Radio',\n component: Radio,\n argTypes: {\n options: {\n description: 'Object that contains the possible options for rendering in the input.',\n defaultValue: {\n CAT:{\n title: 'Cat',\n description: 'At least 1'\n },\n DOG:{\n title: 'Dog',\n description: 'At least 2'\n },\n NONE:{\n title: 'None',\n description: 'No pets'\n }\n }\n },\n value: {\n description: 'Current checked values.',\n },\n onChange: {\n description: 'Function called everytime a value changes.',\n action: true,\n table: {\n category: \"Callbacks\",\n },\n },\n wide: {\n description: 'Property that defines if options should fill 100% of available horizontal space',\n defaultValue: false\n },\n inlineLayout: {\n description: 'Property that defines if options should show inline instead of block. Check inline radio options story for examples.',\n defaultValue: false\n },\n classNames: {\n description: 'ClassNames for custom styling',\n defaultValue: {\n container: '',\n label: '',\n option: ''\n }\n },\n bordered: {\n description: 'Property that defines if option should show with border',\n defaultValue: true\n },\n }\n};\n\nexport const RadioStory = ({ \n onChange,\n options,\n wide,\n classNames,\n inlineLayout,\n bordered,\n}: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n wide={wide}\n options={options} \n onChange={handleOnChange}\n value={checkedValues}\n classNames={classNames}\n inlineLayout={inlineLayout}\n bordered={bordered}\n />\n );\n}\n\nexport const RadioWithCustomWrapperStyles = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n onChange={handleOnChange}\n value={checkedValues}\n options={{\n CAT1: 'Cat',\n DOG1: 'Dog',\n }} \n classNames={{ container: \"p32 bg-primary-300 br24 bs-lg\" }}\n />\n );\n}\n\nexport const RadioWithCustomOptionStyles = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n onChange={handleOnChange}\n value={checkedValues}\n options={{\n CAT2: 'Cat',\n DOG2: 'Dog',\n }} \n classNames={{ option: \"mb32 p24 bg-green-100 br12 bs-lg\" }}\n />\n );\n}\n\nexport const RadioWithCustomLabelStyles = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string ) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n onChange={handleOnChange}\n value={checkedValues}\n options={{\n CAT3: 'Cat',\n DOG3: 'Dog',\n }} \n classNames={{ label: \"bg-grey-900 tc-white\" }}\n />\n );\n}\n\nexport const RadioWithInlineLayout = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n onChange={handleOnChange}\n value={checkedValues}\n options={{\n CAT4: 'Cat',\n DOG4: 'Dog',\n FISHER: 'Fish',\n RABBIT: 'Rabbit',\n RAT: 'Rat',\n ANOTHER: 'Other',\n }} \n classNames={{ option: \"w30\" }}\n inlineLayout\n wide\n />\n );\n}\n\nexport const RadioWithCustomLabel = ({ onChange, wide, classNames, inlineLayout }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n options={{\n BIGDOG: {\n icon: () => <img src={images.bigDog} alt='' />,\n title: 'Dog',\n },\n FISH:{\n icon: () => <img src={images.brokenAquarium} alt='' />,\n title: 'Fish',\n },\n OTHER:{\n icon: () => <img src={images.brokenGlass} alt='' />,\n title: 'Other',\n }\n }} \n onChange={handleOnChange}\n value={checkedValues}\n classNames={{ option: \"w30\" }}\n inlineLayout\n />\n );\n}\n\nexport const RadioWithCustomLabelInline = ({ onChange, wide, classNames, inlineLayout }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n options={{\n BIGDOG: {\n icon: () => <img src={images.bigDog} alt='' />,\n title: 'Dog',\n },\n FISH:{\n icon: () => <img src={images.brokenAquarium} alt='' />,\n title: 'Fish',\n },\n OTHER:{\n icon: () => <img src={images.brokenGlass} alt='' />,\n title: 'Other',\n }\n }} \n onChange={handleOnChange}\n inlineIcon\n value={checkedValues}\n classNames={{ option: \"w30\" }}\n inlineLayout\n />\n );\n}\n\nRadioStory.storyName = 'Radio';\n\nexport const RadioIconOnly = ({ onChange }: RadioProps<string>) => {\n const [checkedValues, setCheckedValues] = useState<string>();\n\n const handleOnChange = (newValue: string) => {\n setCheckedValues(newValue);\n onChange(newValue);\n }\n\n return (\n <Radio \n options={{ NOTHING: '' }} \n onChange={handleOnChange}\n classNames={{ label: 'jc-start' }}\n value={checkedValues}\n bordered={false}\n />\n );\n}\n\nRadioStory.storyName = 'Radio';\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;;IAKM,KAAK,GAAG;IACZ,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,WAAW,EAAE,uEAAuE;YACpF,YAAY,EAAE;gBACZ,GAAG,EAAC;oBACF,KAAK,EAAE,KAAK;oBACZ,WAAW,EAAE,YAAY;iBAC1B;gBACD,GAAG,EAAC;oBACF,KAAK,EAAE,KAAK;oBACZ,WAAW,EAAE,YAAY;iBAC1B;gBACD,IAAI,EA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ACV,KAAK,EAAE,aAAa,EACpB,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC7B,YAAY,iBACZ,EACF;AACJ,EAAC;AAED,UAAU,CAAC,SAAS,GAAG,OAAO,CAAC;IAElB,aAAa,GAAG,UAAC,EAAgC;QAA9B,QAAQ,cAAA;IAChC,IAAA,KAAoC,QAAQ,EAAU,EAArD,aAAa,QAAA,EAAE,gBAAgB,QAAsB,CAAC;IAE7D,IAAM,cAAc,GAAG,UAAC,QAAgB;QACtC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAC3B,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACpB,CAAA;IAED,QACEA,IAAC,KAAK,IACJ,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EACxB,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,EACjC,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,KAAK,WACf,EACF;AACJ,EAAC;AAED,UAAU,CAAC,SAAS,GAAG,OAAO;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../tslib.es6-5bc94358.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '../../index-6ea95111.js';
|
|
4
|
-
export { T as Toast, a as Toaster, t as toast } from '../../index-
|
|
4
|
+
export { T as Toast, a as Toaster, t as toast } from '../../index-45edc7d0.js';
|
|
5
5
|
import '../icon/icons/X.js';
|
|
6
6
|
import '../../style-inject.es-1f59c1d0.js';
|
|
7
7
|
import 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __assign } from '../../tslib.es6-5bc94358.js';
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { c as classNames } from '../../index-6ea95111.js';
|
|
4
|
-
import { T as Toast, a as Toaster, s as styles, t as toast } from '../../index-
|
|
4
|
+
import { T as Toast, a as Toaster, s as styles, t as toast } from '../../index-45edc7d0.js';
|
|
5
5
|
import { Button } from '../button/index.js';
|
|
6
6
|
import '../../style-inject.es-1f59c1d0.js';
|
|
7
7
|
import 'react';
|
|
@@ -40,7 +40,7 @@ var story = {
|
|
|
40
40
|
},
|
|
41
41
|
args: {
|
|
42
42
|
title: 'We couldn’t open the chat',
|
|
43
|
-
description: '
|
|
43
|
+
description: "We couldn't open the chat description. We couldn't open the chat description.",
|
|
44
44
|
action: {
|
|
45
45
|
title: 'Send an email',
|
|
46
46
|
onClick: function () { }
|
|
@@ -51,7 +51,9 @@ var story = {
|
|
|
51
51
|
};
|
|
52
52
|
var FakeInlineToast = function (_a) {
|
|
53
53
|
var title = _a.title, description = _a.description, action = _a.action, type = _a.type;
|
|
54
|
-
return (jsx("div", __assign({ className: 'mb32' }, { children: jsx("div", __assign({ className: classNames(styles.toast, 'br8 bs-lg d-inline-flex')
|
|
54
|
+
return (jsx("div", __assign({ className: 'mb32' }, { children: jsx("div", __assign({ className: classNames(styles.toast, 'br8 bs-lg d-inline-flex'), style: {
|
|
55
|
+
padding: "12px 20px"
|
|
56
|
+
} }, { children: jsx(Toast, { title: title, onDismiss: function () { }, description: description, action: action, type: type }, void 0) }), void 0) }), void 0));
|
|
55
57
|
};
|
|
56
58
|
var ToastStory = function (_a) {
|
|
57
59
|
var title = _a.title, description = _a.description, action = _a.action, type = _a.type, duration = _a.duration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/toast/index.stories.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { Toast, ToastProps, ToastType, Toaster, toast } from '.';\nimport { Button } from '../button';\nimport styles from './style.module.scss';\n\nconst toastTypes: ToastType[] = ['success', 'warning', 'error', 'information'];\n\nconst story = {\n title: 'JSX/Toast',\n component: Toast,\n argTypes: {\n title: {\n description: 'Title of the toast.',\n },\n description: {\n description: 'Additional description content to be displayed inside the toast.',\n },\n type: {\n description: 'Type of toast to display. This changes the styles/colors of the toast.',\n },\n action: {\n description: 'Object containing a possible action button inside the toast.',\n },\n duration: {\n description: 'Duration in ms that the toast should be displayed.',\n table: {\n defaultValue: { summary: 3000 },\n }\n },\n onDismiss: {\n table: {\n disable: true,\n },\n }\n },\n args: {\n title: 'We couldn’t open the chat',\n description: '
|
|
1
|
+
{"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/toast/index.stories.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { Toast, ToastProps, ToastType, Toaster, toast } from '.';\nimport { Button } from '../button';\nimport styles from './style.module.scss';\n\nconst toastTypes: ToastType[] = ['success', 'warning', 'error', 'information'];\n\nconst story = {\n title: 'JSX/Toast',\n component: Toast,\n argTypes: {\n title: {\n description: 'Title of the toast.',\n },\n description: {\n description: 'Additional description content to be displayed inside the toast.',\n },\n type: {\n description: 'Type of toast to display. This changes the styles/colors of the toast.',\n },\n action: {\n description: 'Object containing a possible action button inside the toast.',\n },\n duration: {\n description: 'Duration in ms that the toast should be displayed.',\n table: {\n defaultValue: { summary: 3000 },\n }\n },\n onDismiss: {\n table: {\n disable: true,\n },\n }\n },\n args: {\n title: 'We couldn’t open the chat',\n description: \"We couldn't open the chat description. We couldn't open the chat description.\",\n action: {\n title: 'Send an email',\n onClick: () => {}\n },\n type: 'success',\n duration: 3000,\n },\n};\n\nconst FakeInlineToast = ({ \n title, \n description, \n action, \n type\n}: Omit<ToastProps, 'onDismiss'>) => (\n <div className='mb32'>\n <div\n className={classNames(styles.toast, 'br8 bs-lg d-inline-flex')}\n style={{\n padding: \"12px 20px\"\n }}\n >\n <Toast \n title={title}\n onDismiss={() => {}}\n description={description}\n action={action}\n type={type}\n />\n </div>\n </div>\n);\n\nexport const ToastStory = ({ title, description, action, type, duration }: ToastProps) => {\n const showToast = () => toast(\n title, \n {\n description,\n duration,\n type,\n action\n }\n );\n\n return (\n <>\n <div className='mb16'>\n <div>\n Show a toast using the following code:\n </div>\n <pre className='bg-grey-300 br4 d-inline-flex p8 mt8'>\n {\"() => toast(title, { description, type, action })\"}\n </pre>\n </div>\n <Toaster />\n\n <Button onClick={showToast}>Click here to trigger toast</Button>\n </>\n );\n};\n\nToastStory.storyName = \"Toast\";\n\nexport const ToastTypes = (props: ToastProps) => {\n return (\n <>\n {toastTypes.map((toastType) => (\n <div key={toastType} className='d-flex fd-column'>\n <h3 className='p-h3 mb16'>{toastType}</h3>\n <FakeInlineToast {...props} type={toastType} />\n </div>\n ))}\n </>\n );\n};\n\nexport const ToastContent = ({ title, description, action }: ToastProps) => {\n return (\n <div className='d-flex fd-column'>\n <FakeInlineToast title={title} />\n <FakeInlineToast title={title} description={description} />\n <FakeInlineToast title={title} description={description} action={action} />\n <FakeInlineToast title={title} action={action} />\n </div>\n );\n};\n\nexport default story;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAKA,IAAM,UAAU,GAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAEzE,KAAK,GAAG;IACZ,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,WAAW,EAAE,qBAAqB;SACnC;QACD,WAAW,EAAE;YACX,WAAW,EAAE,kEAAkE;SAChF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,wEAAwE;SACtF;QACD,MAAM,EAAE;YACN,WAAW,EAAE,8DAA8D;SAC5E;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACL,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAChC;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI;aACd;SACF;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,2BAA2B;QAClC,WAAW,EAAE,+EAA+E;QAC5F,MAAM,EAAE;YACN,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,eAAQ;SAClB;QACD,IAAI,EAAE,SA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Ae,eAAK,KAAK,IAAE,IAAI,EAAE,SAAS,YAAI,MAFvC,SAAS,CAGb,IACP,CAAC,WACD,EACH;AACJ,EAAE;IAEW,YAAY,GAAG,UAAC,EAA0C;QAAxC,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA;IACvD,QACEC,uBAAK,SAAS,EAAC,kBAAkB,iBAC/BD,IAAC,eAAe,IAAC,KAAK,EAAE,KAAK,WAAI;YACjCA,IAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,WAAI;YAC3DA,IAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,WAAI;YAC3EA,IAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,WAAI,aAC7C,EACN;AACJ;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as __awaiter, c as __generator } from '../../tslib.es6-5bc94358.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { c as customRender, s as screen } from '../../customRender-9fd06f5b.js';
|
|
4
|
-
import { T as Toast } from '../../index-
|
|
4
|
+
import { T as Toast } from '../../index-45edc7d0.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import '../../_commonjsHelpers-e7f67fd8.js';
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
var basePath = 'https://assets.cdn.feather-insurance.com/assets/images';
|
|
2
|
+
var basePathIllustrations = basePath + "/illustrations";
|
|
3
|
+
var images = {
|
|
4
|
+
aid: basePath + "/aid.svg",
|
|
5
|
+
bed: basePath + "/bed.svg",
|
|
6
|
+
bigDog: basePath + "/bigDog.svg",
|
|
7
|
+
verticalIcons: {
|
|
8
|
+
dogLiability: basePath + "/dogLiabilityIcon.png",
|
|
9
|
+
dogLiability2x: basePath + "/dogLiabilityIcon2x.png",
|
|
10
|
+
dogLiability3x: basePath + "/dogLiabilityIcon3x.png",
|
|
11
|
+
lifeIcon: basePath + "/lifeIcon.png",
|
|
12
|
+
lifeIcon2x: basePath + "/lifeIcon2x.png",
|
|
13
|
+
lifeIcon3x: basePath + "/lifeIcon3x.png",
|
|
14
|
+
},
|
|
15
|
+
brokenAquarium: basePath + "/brokenAquarium.svg",
|
|
16
|
+
brokenGlass: basePath + "/brokenGlass.svg",
|
|
17
|
+
damagedLaptop: basePath + "/damagedLaptop.svg",
|
|
18
|
+
moneyIncome: basePath + "/moneyIncome.svg",
|
|
19
|
+
washingMachine: basePath + "/washingMachine.svg",
|
|
20
|
+
bill: basePath + "/bill.svg",
|
|
21
|
+
books: basePath + "/books.svg",
|
|
22
|
+
finalExpenses: basePath + "/finalExpenses.svg",
|
|
23
|
+
mortgage: basePath + "/mortgage.svg",
|
|
24
|
+
};
|
|
25
|
+
var illustrations = {
|
|
26
|
+
aids: basePathIllustrations + "/aids.svg",
|
|
27
|
+
allInOneAccount: basePathIllustrations + "/all-in-one-account.svg",
|
|
28
|
+
ambulance: basePathIllustrations + "/ambulance.svg",
|
|
29
|
+
bank: basePathIllustrations + "/bank.svg",
|
|
30
|
+
battery: basePathIllustrations + "/battery.svg",
|
|
31
|
+
bed: basePathIllustrations + "/bed.svg",
|
|
32
|
+
bigDog: basePathIllustrations + "/big-dog.svg",
|
|
33
|
+
bikeDamage: basePathIllustrations + "/bike-damage.svg",
|
|
34
|
+
bikeDestroyedDamaged: basePathIllustrations + "/bike-destroyed-damaged.svg",
|
|
35
|
+
bikeDetails: basePathIllustrations + "/bike-details.svg",
|
|
36
|
+
bikeFrameNumber: basePathIllustrations + "/bike-frame-number.svg",
|
|
37
|
+
bikeLock: basePathIllustrations + "/bike-lock.svg",
|
|
38
|
+
bikeParts: basePathIllustrations + "/bike-parts.svg",
|
|
39
|
+
bikeRiding: basePathIllustrations + "/bike-riding.svg",
|
|
40
|
+
bikeStolenBroken: basePathIllustrations + "/bike-stolen-broken.svg",
|
|
41
|
+
bikeStolen: basePathIllustrations + "/bike-stolen.svg",
|
|
42
|
+
bikeTrailer: basePathIllustrations + "/bike-trailer.svg",
|
|
43
|
+
bikeWear: basePathIllustrations + "/bike-wear.svg",
|
|
44
|
+
bike: basePathIllustrations + "/bike.svg",
|
|
45
|
+
bill: basePathIllustrations + "/bill.svg",
|
|
46
|
+
bookOpen: basePathIllustrations + "/book-open.svg",
|
|
47
|
+
briefcase: basePathIllustrations + "/briefcase.svg",
|
|
48
|
+
brokenAquarium: basePathIllustrations + "/broken-aquarium.svg",
|
|
49
|
+
brokenGlass: basePathIllustrations + "/broken-glass.svg",
|
|
50
|
+
calculating1: basePathIllustrations + "/calculating-1.svg",
|
|
51
|
+
calculatingDone: basePathIllustrations + "/calculating-done.svg",
|
|
52
|
+
calculating: basePathIllustrations + "/calculating.svg",
|
|
53
|
+
calendar: basePathIllustrations + "/calendar.svg",
|
|
54
|
+
car: basePathIllustrations + "/car.svg",
|
|
55
|
+
checkDoc: basePathIllustrations + "/check-doc.svg",
|
|
56
|
+
check: basePathIllustrations + "/check.svg",
|
|
57
|
+
concierge: basePathIllustrations + "/concierge.svg",
|
|
58
|
+
contract: basePathIllustrations + "/contract.svg",
|
|
59
|
+
crash: basePathIllustrations + "/crash.svg",
|
|
60
|
+
creditCard: basePathIllustrations + "/credit-card.svg",
|
|
61
|
+
damagedLaptop: basePathIllustrations + "/damaged-laptop.svg",
|
|
62
|
+
dentalCleaning: basePathIllustrations + "/dental-cleaning.svg",
|
|
63
|
+
dentalTreatment: basePathIllustrations + "/dental-treatment.svg",
|
|
64
|
+
dental: basePathIllustrations + "/dental.svg",
|
|
65
|
+
dependents: basePathIllustrations + "/dependents.svg",
|
|
66
|
+
document1: basePathIllustrations + "/document-1.svg",
|
|
67
|
+
documentCheck: basePathIllustrations + "/document-check.svg",
|
|
68
|
+
documentCross: basePathIllustrations + "/document-cross.svg",
|
|
69
|
+
document: basePathIllustrations + "/document.svg",
|
|
70
|
+
door: basePathIllustrations + "/door.svg",
|
|
71
|
+
education: basePathIllustrations + "/education.svg",
|
|
72
|
+
electricCar: basePathIllustrations + "/electric-car.svg",
|
|
73
|
+
email: basePathIllustrations + "/email.svg",
|
|
74
|
+
euroMoney: basePathIllustrations + "/euro-money.svg",
|
|
75
|
+
fastEasy: basePathIllustrations + "/fast-easy.svg",
|
|
76
|
+
fire: basePathIllustrations + "/fire.svg",
|
|
77
|
+
freelancerExpat: basePathIllustrations + "/freelancer-expat.svg",
|
|
78
|
+
funeralBurial: basePathIllustrations + "/funeral-burial.svg",
|
|
79
|
+
fuse: basePathIllustrations + "/fuse.svg",
|
|
80
|
+
giftPolicyOptionsQuote: basePathIllustrations + "/gift-policy-options-quote.svg",
|
|
81
|
+
grandmother: basePathIllustrations + "/grandmother.svg",
|
|
82
|
+
healthCard: basePathIllustrations + "/health-card.svg",
|
|
83
|
+
heart: basePathIllustrations + "/heart.svg",
|
|
84
|
+
helmet: basePathIllustrations + "/helmet.svg",
|
|
85
|
+
householdHome: basePathIllustrations + "/household-home.svg",
|
|
86
|
+
keys: basePathIllustrations + "/keys.svg",
|
|
87
|
+
legalLawyer: basePathIllustrations + "/legal-lawyer.svg",
|
|
88
|
+
location: basePathIllustrations + "/location.svg",
|
|
89
|
+
lock: basePathIllustrations + "/lock.svg",
|
|
90
|
+
mail: basePathIllustrations + "/mail.svg",
|
|
91
|
+
medicine: basePathIllustrations + "/medicine.svg",
|
|
92
|
+
mentalHealth: basePathIllustrations + "/mental-health.svg",
|
|
93
|
+
mentalIllness: basePathIllustrations + "/mental-llness.svg",
|
|
94
|
+
miniJobExpat: basePathIllustrations + "/minijob-expat.svg",
|
|
95
|
+
moneyIncome: basePathIllustrations + "/money-income.svg",
|
|
96
|
+
movingTruck: basePathIllustrations + "/moving-truck.svg",
|
|
97
|
+
naturalRemedies: basePathIllustrations + "/natural-remedies.svg",
|
|
98
|
+
newArrival: basePathIllustrations + "/new-arrival.svg",
|
|
99
|
+
noPolicies: basePathIllustrations + "/no-policies.svg",
|
|
100
|
+
passport: basePathIllustrations + "/passport.svg",
|
|
101
|
+
pawPet: basePathIllustrations + "/paw-pet.svg",
|
|
102
|
+
pen: basePathIllustrations + "/pen.svg",
|
|
103
|
+
personB: basePathIllustrations + "/person-b.svg",
|
|
104
|
+
person: basePathIllustrations + "/person.svg",
|
|
105
|
+
petsBunny: basePathIllustrations + "/pets-bunny.svg",
|
|
106
|
+
petsCat: basePathIllustrations + "/pets-cat.svg",
|
|
107
|
+
phone1: basePathIllustrations + "/phone-1.svg",
|
|
108
|
+
phone2Fa: basePathIllustrations + "/phone-2-fa.svg",
|
|
109
|
+
phonePerson: basePathIllustrations + "/phone-person.svg",
|
|
110
|
+
phonePhoto: basePathIllustrations + "/phone-photo.svg",
|
|
111
|
+
phone: basePathIllustrations + "/phone.svg",
|
|
112
|
+
photoPerson: basePathIllustrations + "/photo-person.svg",
|
|
113
|
+
pipes: basePathIllustrations + "/pipes.svg",
|
|
114
|
+
planeRepatriationFlight: basePathIllustrations + "/plane-repatriation-flight.svg",
|
|
115
|
+
pregnancy: basePathIllustrations + "/pregnancy.svg",
|
|
116
|
+
productionDown: basePathIllustrations + "/production-down.svg",
|
|
117
|
+
pushNotifications: basePathIllustrations + "/push-notifications.svg",
|
|
118
|
+
radioactive: basePathIllustrations + "/radioactive.svg",
|
|
119
|
+
referral: basePathIllustrations + "/referral.svg",
|
|
120
|
+
researcherExpat: basePathIllustrations + "/researcher-expat.svg",
|
|
121
|
+
restrictions: basePathIllustrations + "/restrictions.svg",
|
|
122
|
+
ring: basePathIllustrations + "/ring.svg",
|
|
123
|
+
screen: basePathIllustrations + "/screen.svg",
|
|
124
|
+
screenings: basePathIllustrations + "/screenings.svg",
|
|
125
|
+
shield1: basePathIllustrations + "/shield-1.svg",
|
|
126
|
+
shield2: basePathIllustrations + "/shield-2.svg",
|
|
127
|
+
shield3: basePathIllustrations + "/shield-3.svg",
|
|
128
|
+
shieldCross: basePathIllustrations + "/shield-cross.svg",
|
|
129
|
+
shieldQuestionMark: basePathIllustrations + "/shield-questionmark.svg",
|
|
130
|
+
shieldWarning: basePathIllustrations + "/shield-warning.svg",
|
|
131
|
+
shield: basePathIllustrations + "/shield.svg",
|
|
132
|
+
sign: basePathIllustrations + "/sign.svg",
|
|
133
|
+
spinner: basePathIllustrations + "/spinner.svg",
|
|
134
|
+
sportLifestyleBasketball: basePathIllustrations + "/sport-lifestyle-basketball.svg",
|
|
135
|
+
storm: basePathIllustrations + "/storm.svg",
|
|
136
|
+
studentExpat: basePathIllustrations + "/student-expat.svg",
|
|
137
|
+
submit: basePathIllustrations + "/submit.svg",
|
|
138
|
+
supportAgent: basePathIllustrations + "/support-agent.svg",
|
|
139
|
+
supportSpeakingMessageChatTalk: basePathIllustrations + "/support-speaking-message-chat-talk.svg",
|
|
140
|
+
theft: basePathIllustrations + "/theft.svg",
|
|
141
|
+
time: basePathIllustrations + "/time.svg",
|
|
142
|
+
traffic: basePathIllustrations + "/traffic.svg",
|
|
143
|
+
tree: basePathIllustrations + "/tree.svg",
|
|
144
|
+
user: basePathIllustrations + "/user.svg",
|
|
145
|
+
vaccination: basePathIllustrations + "/vaccination.svg",
|
|
146
|
+
vandalism: basePathIllustrations + "/vandalism.svg",
|
|
147
|
+
videoCall: basePathIllustrations + "/video-call.svg",
|
|
148
|
+
visaSeekerExpat: basePathIllustrations + "/visa-seeker-expat.svg",
|
|
149
|
+
visa: basePathIllustrations + "/visa.svg",
|
|
150
|
+
visualAid: basePathIllustrations + "/visual-aid.svg",
|
|
151
|
+
visual: basePathIllustrations + "/visual.svg",
|
|
152
|
+
washingMachine: basePathIllustrations + "/washing-machine.svg",
|
|
153
|
+
water: basePathIllustrations + "/water.svg",
|
|
154
|
+
wavingHand: basePathIllustrations + "/waving-hand.svg",
|
|
155
|
+
worldwide: basePathIllustrations + "/worldwide.svg",
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export { images as a, illustrations as i };
|
|
159
|
+
//# sourceMappingURL=index-1693701e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-1693701e.js","sources":["../../../src/lib/util/images/index.ts"],"sourcesContent":["const basePath = 'https://assets.cdn.feather-insurance.com/assets/images';\nconst basePathIllustrations = `${basePath}/illustrations`;\n\nconst images = {\n aid: `${basePath}/aid.svg`,\n bed: `${basePath}/bed.svg`,\n bigDog: `${basePath}/bigDog.svg`,\n verticalIcons: {\n dogLiability: `${basePath}/dogLiabilityIcon.png`,\n dogLiability2x: `${basePath}/dogLiabilityIcon2x.png`,\n dogLiability3x: `${basePath}/dogLiabilityIcon3x.png`,\n lifeIcon: `${basePath}/lifeIcon.png`,\n lifeIcon2x: `${basePath}/lifeIcon2x.png`,\n lifeIcon3x: `${basePath}/lifeIcon3x.png`,\n },\n brokenAquarium: `${basePath}/brokenAquarium.svg`,\n brokenGlass: `${basePath}/brokenGlass.svg`,\n damagedLaptop: `${basePath}/damagedLaptop.svg`,\n moneyIncome: `${basePath}/moneyIncome.svg`,\n washingMachine: `${basePath}/washingMachine.svg`,\n bill: `${basePath}/bill.svg`,\n books: `${basePath}/books.svg`,\n finalExpenses: `${basePath}/finalExpenses.svg`,\n mortgage: `${basePath}/mortgage.svg`,\n} as const;\n\nconst illustrations = {\n aids: `${basePathIllustrations}/aids.svg`,\n allInOneAccount: `${basePathIllustrations}/all-in-one-account.svg`,\n ambulance: `${basePathIllustrations}/ambulance.svg`,\n bank: `${basePathIllustrations}/bank.svg`,\n battery: `${basePathIllustrations}/battery.svg`,\n bed: `${basePathIllustrations}/bed.svg`,\n bigDog: `${basePathIllustrations}/big-dog.svg`,\n bikeDamage: `${basePathIllustrations}/bike-damage.svg`,\n bikeDestroyedDamaged: `${basePathIllustrations}/bike-destroyed-damaged.svg`,\n bikeDetails: `${basePathIllustrations}/bike-details.svg`,\n bikeFrameNumber: `${basePathIllustrations}/bike-frame-number.svg`,\n bikeLock: `${basePathIllustrations}/bike-lock.svg`,\n bikeParts: `${basePathIllustrations}/bike-parts.svg`,\n bikeRiding: `${basePathIllustrations}/bike-riding.svg`,\n bikeStolenBroken: `${basePathIllustrations}/bike-stolen-broken.svg`,\n bikeStolen: `${basePathIllustrations}/bike-stolen.svg`,\n bikeTrailer: `${basePathIllustrations}/bike-trailer.svg`,\n bikeWear: `${basePathIllustrations}/bike-wear.svg`,\n bike: `${basePathIllustrations}/bike.svg`,\n bill: `${basePathIllustrations}/bill.svg`,\n bookOpen: `${basePathIllustrations}/book-open.svg`,\n briefcase: `${basePathIllustrations}/briefcase.svg`,\n brokenAquarium: `${basePathIllustrations}/broken-aquarium.svg`,\n brokenGlass: `${basePathIllustrations}/broken-glass.svg`,\n calculating1: `${basePathIllustrations}/calculating-1.svg`,\n calculatingDone: `${basePathIllustrations}/calculating-done.svg`,\n calculating: `${basePathIllustrations}/calculating.svg`,\n calendar: `${basePathIllustrations}/calendar.svg`,\n car: `${basePathIllustrations}/car.svg`,\n checkDoc: `${basePathIllustrations}/check-doc.svg`,\n check: `${basePathIllustrations}/check.svg`,\n concierge: `${basePathIllustrations}/concierge.svg`,\n contract: `${basePathIllustrations}/contract.svg`,\n crash: `${basePathIllustrations}/crash.svg`,\n creditCard: `${basePathIllustrations}/credit-card.svg`,\n damagedLaptop: `${basePathIllustrations}/damaged-laptop.svg`,\n dentalCleaning: `${basePathIllustrations}/dental-cleaning.svg`,\n dentalTreatment: `${basePathIllustrations}/dental-treatment.svg`,\n dental: `${basePathIllustrations}/dental.svg`,\n dependents: `${basePathIllustrations}/dependents.svg`,\n document1: `${basePathIllustrations}/document-1.svg`,\n documentCheck: `${basePathIllustrations}/document-check.svg`,\n documentCross: `${basePathIllustrations}/document-cross.svg`,\n document: `${basePathIllustrations}/document.svg`,\n door: `${basePathIllustrations}/door.svg`,\n education: `${basePathIllustrations}/education.svg`,\n electricCar: `${basePathIllustrations}/electric-car.svg`,\n email: `${basePathIllustrations}/email.svg`,\n euroMoney: `${basePathIllustrations}/euro-money.svg`,\n fastEasy: `${basePathIllustrations}/fast-easy.svg`,\n fire: `${basePathIllustrations}/fire.svg`,\n freelancerExpat: `${basePathIllustrations}/freelancer-expat.svg`,\n funeralBurial: `${basePathIllustrations}/funeral-burial.svg`,\n fuse: `${basePathIllustrations}/fuse.svg`,\n giftPolicyOptionsQuote: `${basePathIllustrations}/gift-policy-options-quote.svg`,\n grandmother: `${basePathIllustrations}/grandmother.svg`,\n healthCard: `${basePathIllustrations}/health-card.svg`,\n heart: `${basePathIllustrations}/heart.svg`,\n helmet: `${basePathIllustrations}/helmet.svg`,\n householdHome: `${basePathIllustrations}/household-home.svg`,\n keys: `${basePathIllustrations}/keys.svg`,\n legalLawyer: `${basePathIllustrations}/legal-lawyer.svg`,\n location: `${basePathIllustrations}/location.svg`,\n lock: `${basePathIllustrations}/lock.svg`,\n mail: `${basePathIllustrations}/mail.svg`,\n medicine: `${basePathIllustrations}/medicine.svg`,\n mentalHealth: `${basePathIllustrations}/mental-health.svg`,\n mentalIllness: `${basePathIllustrations}/mental-llness.svg`,\n miniJobExpat: `${basePathIllustrations}/minijob-expat.svg`,\n moneyIncome: `${basePathIllustrations}/money-income.svg`,\n movingTruck: `${basePathIllustrations}/moving-truck.svg`,\n naturalRemedies: `${basePathIllustrations}/natural-remedies.svg`,\n newArrival: `${basePathIllustrations}/new-arrival.svg`,\n noPolicies: `${basePathIllustrations}/no-policies.svg`,\n passport: `${basePathIllustrations}/passport.svg`,\n pawPet: `${basePathIllustrations}/paw-pet.svg`,\n pen: `${basePathIllustrations}/pen.svg`,\n personB: `${basePathIllustrations}/person-b.svg`,\n person: `${basePathIllustrations}/person.svg`,\n petsBunny: `${basePathIllustrations}/pets-bunny.svg`,\n petsCat: `${basePathIllustrations}/pets-cat.svg`,\n phone1: `${basePathIllustrations}/phone-1.svg`,\n phone2Fa: `${basePathIllustrations}/phone-2-fa.svg`,\n phonePerson: `${basePathIllustrations}/phone-person.svg`,\n phonePhoto: `${basePathIllustrations}/phone-photo.svg`,\n phone: `${basePathIllustrations}/phone.svg`,\n photoPerson: `${basePathIllustrations}/photo-person.svg`,\n pipes: `${basePathIllustrations}/pipes.svg`,\n planeRepatriationFlight: `${basePathIllustrations}/plane-repatriation-flight.svg`,\n pregnancy: `${basePathIllustrations}/pregnancy.svg`,\n productionDown: `${basePathIllustrations}/production-down.svg`,\n pushNotifications: `${basePathIllustrations}/push-notifications.svg`,\n radioactive: `${basePathIllustrations}/radioactive.svg`,\n referral: `${basePathIllustrations}/referral.svg`,\n researcherExpat: `${basePathIllustrations}/researcher-expat.svg`,\n restrictions: `${basePathIllustrations}/restrictions.svg`,\n ring: `${basePathIllustrations}/ring.svg`,\n screen: `${basePathIllustrations}/screen.svg`,\n screenings: `${basePathIllustrations}/screenings.svg`,\n shield1: `${basePathIllustrations}/shield-1.svg`,\n shield2: `${basePathIllustrations}/shield-2.svg`,\n shield3: `${basePathIllustrations}/shield-3.svg`,\n shieldCross: `${basePathIllustrations}/shield-cross.svg`,\n shieldQuestionMark: `${basePathIllustrations}/shield-questionmark.svg`,\n shieldWarning: `${basePathIllustrations}/shield-warning.svg`,\n shield: `${basePathIllustrations}/shield.svg`,\n sign: `${basePathIllustrations}/sign.svg`,\n spinner: `${basePathIllustrations}/spinner.svg`,\n sportLifestyleBasketball: `${basePathIllustrations}/sport-lifestyle-basketball.svg`,\n storm: `${basePathIllustrations}/storm.svg`,\n studentExpat: `${basePathIllustrations}/student-expat.svg`,\n submit: `${basePathIllustrations}/submit.svg`,\n supportAgent: `${basePathIllustrations}/support-agent.svg`,\n supportSpeakingMessageChatTalk: `${basePathIllustrations}/support-speaking-message-chat-talk.svg`,\n theft: `${basePathIllustrations}/theft.svg`,\n time: `${basePathIllustrations}/time.svg`,\n traffic: `${basePathIllustrations}/traffic.svg`,\n tree: `${basePathIllustrations}/tree.svg`,\n user: `${basePathIllustrations}/user.svg`,\n vaccination: `${basePathIllustrations}/vaccination.svg`,\n vandalism: `${basePathIllustrations}/vandalism.svg`,\n videoCall: `${basePathIllustrations}/video-call.svg`,\n visaSeekerExpat: `${basePathIllustrations}/visa-seeker-expat.svg`,\n visa: `${basePathIllustrations}/visa.svg`,\n visualAid: `${basePathIllustrations}/visual-aid.svg`,\n visual: `${basePathIllustrations}/visual.svg`,\n washingMachine: `${basePathIllustrations}/washing-machine.svg`,\n water: `${basePathIllustrations}/water.svg`,\n wavingHand: `${basePathIllustrations}/waving-hand.svg`,\n worldwide: `${basePathIllustrations}/worldwide.svg`,\n} as const;\n\ntype IllustrationKeys = keyof typeof illustrations;\n\nexport type { IllustrationKeys }\nexport { illustrations, images };\n"],"names":[],"mappings":"AAAA,IAAM,QAAQ,GAAG,wDAAwD,CAAC;AAC1E,IAAM,qBAAqB,GAAM,QAAQ,mBAAgB,CAAC;IAEpD,MAAM,GAAG;IACb,GAAG,EAAK,QAAQ,aAAU;IAC1B,GAAG,EAAK,QAAQ,aAAU;IAC1B,MAAM,EAAK,QAAQ,gBAAa;IAChC,aAAa,EAAE;QACb,YAAY,EAAK,QAAQ,0BAAuB;QAChD,cAAc,EAAK,QAAQ,4BAAyB;QACpD,cAAc,EAAK,QAAQ,4BAAyB;QACpD,QAAQ,EAAK,QAAQ,kBAAe;QACpC,UAAU,EAAK,QAAQ,oBAAiB;QACxC,UAAU,EAAK,QAAQ,oBAAiB;KACzC;IACD,cAAc,EAAK,QAAQ,wBAAqB;IAChD,WAAW,EAAK,QAAQ,qBAAkB;IAC1C,aAAa,EAAK,QAAQ,uBAAoB;IAC9C,WAAW,EAAK,QAAQ,qBAAkB;IAC1C,cAAc,EAAK,QAAQ,wBAAqB;IAChD,IAAI,EAAK,QAAQ,cAAW;IAC5B,KAAK,EAAK,QAAQ,eAAY;IAC9B,aAAa,EAAK,QAAQ,uBAAoB;IAC9C,QAAQ,EAAK,QAAQ,kBAAe;EAC3B;IAEL,aAAa,GAAG;IACpB,IAAI,EAAK,qBAAqB,cAAW;IACzC,eAAe,EAAK,qBAAqB,4BAAyB;IAClE,SAAS,EAAK,qBAAqB,mBAAgB;IACnD,IAAI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AK,qBAAqB,eAAY;IAC3C,YAAY,EAAK,qBAAqB,uBAAoB;IAC1D,MAAM,EAAK,qBAAqB,gBAAa;IAC7C,YAAY,EAAK,qBAAqB,uBAAoB;IAC1D,8BAA8B,EAAK,qBAAqB,4CAAyC;IACjG,KAAK,EAAK,qBAAqB,eAAY;IAC3C,IAAI,EAAK,qBAAqB,cAAW;IACzC,OAAO,EAAK,qBAAqB,iBAAc;IAC/C,IAAI,EAAK,qBAAqB,cAAW;IACzC,IAAI,EAAK,qBAAqB,cAAW;IACzC,WAAW,EAAK,qBAAqB,qBAAkB;IACvD,SAAS,EAAK,qBAAqB,mBAAgB;IACnD,SAAS,EAAK,qBAAqB,oBAAiB;IACpD,eAAe,EAAK,qBAAqB,2BAAwB;IACjE,IAAI,EAAK,qBAAqB,cAAW;IACzC,SAAS,EAAK,qBAAqB,oBAAiB;IACpD,MAAM,EAAK,qBAAqB,gBAAa;IAC7C,cAAc,EAAK,qBAAqB,yBAAsB;IAC9D,KAAK,EAAK,qBAAqB,eAAY;IAC3C,UAAU,EAAK,qBAAqB,qBAAkB;IACtD,SAAS,EAAK,qBAAqB,mBAAgB;;;;;"}
|
|
@@ -6,8 +6,8 @@ import require$$0__default from 'react';
|
|
|
6
6
|
import { g as getAugmentedNamespace } from './_commonjsHelpers-e7f67fd8.js';
|
|
7
7
|
import XIcon from './components/icon/icons/X.js';
|
|
8
8
|
|
|
9
|
-
var css_248z = ".style-module_toastWrapper__1SC4C {\n margin: 0;\n padding: 0;\n}\n\n.style-module_toast__NY8bo {\n position: relative;\n margin: 0;\n width: 392px;\n overflow: hidden;\n padding:
|
|
10
|
-
var styles = {"toastWrapper":"style-module_toastWrapper__1SC4C","toast":"style-module_toast__NY8bo","toastSidebar":"style-module_toastSidebar__NUxSa","toastSidebar--information":"style-module_toastSidebar--information__2nKT_","toastSidebar--error":"style-module_toastSidebar--error__15Vwo","toastSidebar--warning":"style-module_toastSidebar--warning__33N9y","toastSidebar--success":"style-module_toastSidebar--success__27652","closeButton":"style-module_closeButton__3S_5n","actionButton":"style-module_actionButton__3ziRG","actionButton--warning":"style-module_actionButton--warning__2I0LT","actionButton--error":"style-module_actionButton--error__1kJIR","actionButton--success":"style-module_actionButton--success__y96NI","actionButton--information":"style-module_actionButton--information__1oeAG"};
|
|
9
|
+
var css_248z = ".style-module_toastWrapper__1SC4C {\n margin: 0;\n padding: 0;\n}\n\n.style-module_toast__NY8bo {\n position: relative;\n margin: 0;\n padding: 0;\n width: 392px;\n overflow: hidden;\n}\n\n.style-module_toastContent__3RHpU {\n padding: 4px 0 4px 8px;\n}\n\n.style-module_toastSidebar__NUxSa {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 8px;\n}\n.style-module_toastSidebar--information__2nKT_ {\n background-color: #8bb4ea;\n}\n.style-module_toastSidebar--error__15Vwo {\n background-color: #e55454;\n}\n.style-module_toastSidebar--warning__33N9y {\n background-color: #f7ce5c;\n}\n.style-module_toastSidebar--success__27652 {\n background-color: #84de8a;\n}\n\n.style-module_closeButton__3S_5n {\n background-color: transparent;\n color: #d2d2d8;\n min-width: 24px;\n}\n.style-module_closeButton__3S_5n:hover {\n color: #696970;\n}\n\n.style-module_actionButton__3ziRG {\n background-color: transparent;\n}\n.style-module_actionButton--warning__2I0LT {\n color: #cc9e21;\n}\n.style-module_actionButton--warning__2I0LT:hover {\n color: #4a3d10;\n}\n.style-module_actionButton--error__1kJIR {\n color: #e55454;\n}\n.style-module_actionButton--error__1kJIR:hover {\n color: #c64848;\n}\n.style-module_actionButton--success__y96NI {\n color: #599278;\n}\n.style-module_actionButton--success__y96NI:hover {\n color: #2b4639;\n}\n.style-module_actionButton--information__1oeAG {\n color: #5f7ba0;\n}\n.style-module_actionButton--information__1oeAG:hover {\n color: #2d394a;\n}";
|
|
10
|
+
var styles = {"toastWrapper":"style-module_toastWrapper__1SC4C","toast":"style-module_toast__NY8bo","toastContent":"style-module_toastContent__3RHpU","toastSidebar":"style-module_toastSidebar__NUxSa","toastSidebar--information":"style-module_toastSidebar--information__2nKT_","toastSidebar--error":"style-module_toastSidebar--error__15Vwo","toastSidebar--warning":"style-module_toastSidebar--warning__33N9y","toastSidebar--success":"style-module_toastSidebar--success__27652","closeButton":"style-module_closeButton__3S_5n","actionButton":"style-module_actionButton__3ziRG","actionButton--warning":"style-module_actionButton--warning__2I0LT","actionButton--error":"style-module_actionButton--error__1kJIR","actionButton--success":"style-module_actionButton--success__y96NI","actionButton--information":"style-module_actionButton--information__1oeAG"};
|
|
11
11
|
styleInject(css_248z);
|
|
12
12
|
|
|
13
13
|
let e={data:""},t=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||e,r=e=>{let r=t(e),l=r.data;return r.data="",l},l$1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n$1=/\n+/g,o=(e,t)=>{let r="",l="",a="";for(let n in e){let c=e[n];"@"==n[0]?"i"==n[1]?r=n+" "+c+";":l+="f"==n[1]?o(c,n):n+"{"+o(c,"k"==n[1]?"":t)+"}":"object"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=o.p?o.p(n,c):n+":"+c+";");}return r+(t&&a?t+"{"+a+"}":a)+l},c={},s=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+s(e[r]);return t}return e},i=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l$1.exec(e.replace(a,""));)t[4]?o.shift():t[3]?(r=t[3].replace(n$1," ").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n$1," ").trim();return o[0]})(e);c[d]=o(p?{["@keyframes "+d]:t}:t,r?"":"."+d);}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?"."+t:e&&"object"==typeof e?e.props?"":o(e,""):!1===e?"":e;}return e+l+(null==n?"":n)},"");function u$1(e){let r=this||{},l=e.call?e(r.p):e;return i(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f$1,g,b$1=u$1.bind({g:1}),h$1=u$1.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f$1=r,g=l;}function j$1(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f$1&&f$1()},c),r.o=/ *go\d+/.test(s),c.className=u$1.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}
|
|
@@ -207,14 +207,14 @@ var Toaster = function () { return (jsx(dist.Toaster, { toastOptions: {
|
|
|
207
207
|
} }, void 0)); };
|
|
208
208
|
var Toast = function (_a) {
|
|
209
209
|
var action = _a.action, description = _a.description, onDismiss = _a.onDismiss, title = _a.title, _b = _a.type, type = _b === void 0 ? "success" : _b;
|
|
210
|
-
return (jsxs("div", __assign({ className: 'd-flex jc-between w100' }, { children: [jsx("div", { className: classNames(styles.toastSidebar, styles["toastSidebar--" + type]) }, void 0),
|
|
211
|
-
jsxs("div", __assign({ className: '
|
|
210
|
+
return (jsxs("div", __assign({ className: classNames(styles.toastContent, 'd-flex jc-between w100') }, { children: [jsx("div", { className: classNames(styles.toastSidebar, styles["toastSidebar--" + type]) }, void 0),
|
|
211
|
+
jsxs("div", __assign({ className: 'd-flex fd-column jc-center ta-left mr8' }, { children: [jsx("h4", __assign({ className: 'p-h4' }, { children: title }), void 0),
|
|
212
212
|
description && (jsx("p", __assign({ className: 'p-p p-p--small mt8 tc-grey-600' }, { children: description }), void 0)),
|
|
213
|
-
action && (jsx("button", __assign({ className: classNames(styles.actionButton, styles["actionButton--" + type], 'mt8 c-pointer'), onClick: function () {
|
|
213
|
+
action && (jsx("button", __assign({ className: classNames(styles.actionButton, styles["actionButton--" + type], 'mt8 c-pointer ta-left'), onClick: function () {
|
|
214
214
|
action.onClick();
|
|
215
215
|
onDismiss();
|
|
216
216
|
}, type: "button" }, { children: action.title }), void 0))] }), void 0),
|
|
217
|
-
jsx("div", __assign({ className: 'd-flex ai-center' }, { children: jsx("button", __assign({ className: classNames(styles.closeButton, 'c-pointer'), onClick: onDismiss, "data-testid": "toast-close-button" }, { children: jsx(XIcon, {}, void 0) }), void 0) }), void 0)] }), void 0));
|
|
217
|
+
jsx("div", __assign({ className: 'd-flex ai-center' }, { children: jsx("button", __assign({ className: classNames(styles.closeButton, 'c-pointer'), onClick: onDismiss, "data-testid": "toast-close-button" }, { children: jsx(XIcon, { size: 24 }, void 0) }), void 0) }), void 0)] }), void 0));
|
|
218
218
|
};
|
|
219
219
|
var toast = function (title, _a) {
|
|
220
220
|
var _b = _a.duration, duration = _b === void 0 ? 3000 : _b, toastOptions = __rest(_a, ["duration"]);
|
|
@@ -222,4 +222,4 @@ var toast = function (title, _a) {
|
|
|
222
222
|
};
|
|
223
223
|
|
|
224
224
|
export { Toast as T, Toaster as a, styles as s, toast as t };
|
|
225
|
-
//# sourceMappingURL=index-
|
|
225
|
+
//# sourceMappingURL=index-45edc7d0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-45edc7d0.js","sources":["../../node_modules/goober/dist/goober.esm.js","../../node_modules/react-hot-toast/dist/index.js","../../../src/lib/components/toast/index.tsx"],"sourcesContent":["let e={data:\"\"},t=t=>\"object\"==typeof window?((t?t.querySelector(\"#_goober\"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement(\"style\")),{innerHTML:\" \",id:\"_goober\"})).firstChild:t||e,r=e=>{let r=t(e),l=r.data;return r.data=\"\",l},l=/(?:([\\u0080-\\uFFFF\\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\\s*)/g,a=/\\/\\*[^]*?\\*\\/| +/g,n=/\\n+/g,o=(e,t)=>{let r=\"\",l=\"\",a=\"\";for(let n in e){let c=e[n];\"@\"==n[0]?\"i\"==n[1]?r=n+\" \"+c+\";\":l+=\"f\"==n[1]?o(c,n):n+\"{\"+o(c,\"k\"==n[1]?\"\":t)+\"}\":\"object\"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+\" \"+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,\"-$&\").toLowerCase(),a+=o.p?o.p(n,c):n+\":\"+c+\";\")}return r+(t&&a?t+\"{\"+a+\"}\":a)+l},c={},s=e=>{if(\"object\"==typeof e){let t=\"\";for(let r in e)t+=r+s(e[r]);return t}return e},i=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return\"go\"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l.exec(e.replace(a,\"\"));)t[4]?o.shift():t[3]?(r=t[3].replace(n,\" \").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n,\" \").trim();return o[0]})(e);c[d]=o(p?{[\"@keyframes \"+d]:t}:t,r?\"\":\".\"+d)}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?\".\"+t:e&&\"object\"==typeof e?e.props?\"\":o(e,\"\"):!1===e?\"\":e}return e+l+(null==n?\"\":n)},\"\");function u(e){let r=this||{},l=e.call?e(r.p):e;return i(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f,g,b=u.bind({g:1}),h=u.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f=r,g=l}function j(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\\d+/.test(s),c.className=u.apply(r,l)+(s?\" \"+s:\"\"),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}export{u as css,r as extractCss,b as glob,h as keyframes,m as setup,j as styled};\n","\"use client\";\n\"use strict\";var Y=Object.create;var E=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var K=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var ee=(e,t)=>{for(var o in t)E(e,o,{get:t[o],enumerable:!0})},j=(e,t,o,s)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let r of G(t))!Z.call(e,r)&&r!==o&&E(e,r,{get:()=>t[r],enumerable:!(s=q(t,r))||s.enumerable});return e};var W=(e,t,o)=>(o=e!=null?Y(K(e)):{},j(t||!e||!e.__esModule?E(o,\"default\",{value:e,enumerable:!0}):o,e)),te=e=>j(E({},\"__esModule\",{value:!0}),e);var Ve={};ee(Ve,{CheckmarkIcon:()=>F,ErrorIcon:()=>w,LoaderIcon:()=>M,ToastBar:()=>$,ToastIcon:()=>U,Toaster:()=>J,default:()=>_e,resolveValue:()=>u,toast:()=>n,useToaster:()=>V,useToasterStore:()=>_});module.exports=te(Ve);var oe=e=>typeof e==\"function\",u=(e,t)=>oe(e)?e(t):e;var Q=(()=>{let e=0;return()=>(++e).toString()})(),R=(()=>{let e;return()=>{if(e===void 0&&typeof window<\"u\"){let t=matchMedia(\"(prefers-reduced-motion: reduce)\");e=!t||t.matches}return e}})();var k=require(\"react\"),re=20;var v=new Map,se=1e3,X=e=>{if(v.has(e))return;let t=setTimeout(()=>{v.delete(e),l({type:4,toastId:e})},se);v.set(e,t)},ae=e=>{let t=v.get(e);t&&clearTimeout(t)},H=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,re)};case 1:return t.toast.id&&ae(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:o}=t;return e.toasts.find(a=>a.id===o.id)?H(e,{type:1,toast:o}):H(e,{type:0,toast:o});case 3:let{toastId:s}=t;return s?X(s):e.toasts.forEach(a=>{X(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===s||s===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let r=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+r}))}}},I=[],D={toasts:[],pausedAt:void 0},l=e=>{D=H(D,e),I.forEach(t=>{t(D)})},ie={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},_=(e={})=>{let[t,o]=(0,k.useState)(D);(0,k.useEffect)(()=>(I.push(o),()=>{let r=I.indexOf(o);r>-1&&I.splice(r,1)}),[t]);let s=t.toasts.map(r=>{var a,c;return{...e,...e[r.type],...r,duration:r.duration||((a=e[r.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||ie[r.type],style:{...e.style,...(c=e[r.type])==null?void 0:c.style,...r.style}}});return{...t,toasts:s}};var ce=(e,t=\"blank\",o)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:\"status\",\"aria-live\":\"polite\"},message:e,pauseDuration:0,...o,id:(o==null?void 0:o.id)||Q()}),S=e=>(t,o)=>{let s=ce(t,e,o);return l({type:2,toast:s}),s.id},n=(e,t)=>S(\"blank\")(e,t);n.error=S(\"error\");n.success=S(\"success\");n.loading=S(\"loading\");n.custom=S(\"custom\");n.dismiss=e=>{l({type:3,toastId:e})};n.remove=e=>l({type:4,toastId:e});n.promise=(e,t,o)=>{let s=n.loading(t.loading,{...o,...o==null?void 0:o.loading});return e.then(r=>(n.success(u(t.success,r),{id:s,...o,...o==null?void 0:o.success}),r)).catch(r=>{n.error(u(t.error,r),{id:s,...o,...o==null?void 0:o.error})}),e};var A=require(\"react\");var pe=(e,t)=>{l({type:1,toast:{id:e,height:t}})},de=()=>{l({type:5,time:Date.now()})},V=e=>{let{toasts:t,pausedAt:o}=_(e);(0,A.useEffect)(()=>{if(o)return;let a=Date.now(),c=t.map(i=>{if(i.duration===1/0)return;let d=(i.duration||0)+i.pauseDuration-(a-i.createdAt);if(d<0){i.visible&&n.dismiss(i.id);return}return setTimeout(()=>n.dismiss(i.id),d)});return()=>{c.forEach(i=>i&&clearTimeout(i))}},[t,o]);let s=(0,A.useCallback)(()=>{o&&l({type:6,time:Date.now()})},[o]),r=(0,A.useCallback)((a,c)=>{let{reverseOrder:i=!1,gutter:d=8,defaultPosition:p}=c||{},g=t.filter(m=>(m.position||p)===(a.position||p)&&m.height),z=g.findIndex(m=>m.id===a.id),O=g.filter((m,B)=>B<z&&m.visible).length;return g.filter(m=>m.visible).slice(...i?[O+1]:[0,O]).reduce((m,B)=>m+(B.height||0)+d,0)},[t]);return{toasts:t,handlers:{updateHeight:pe,startPause:de,endPause:s,calculateOffset:r}}};var T=W(require(\"react\")),b=require(\"goober\");var y=W(require(\"react\")),x=require(\"goober\");var h=require(\"goober\"),me=h.keyframes`\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}`,ue=h.keyframes`\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}`,le=h.keyframes`\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}`,w=(0,h.styled)(\"div\")`\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ${e=>e.primary||\"#ff4b4b\"};\n position: relative;\n transform: rotate(45deg);\n\n animation: ${me} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: ${ue} 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ${e=>e.secondary||\"#fff\"};\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: ${le} 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n`;var C=require(\"goober\"),Te=C.keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`,M=(0,C.styled)(\"div\")`\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ${e=>e.secondary||\"#e0e0e0\"};\n border-right-color: ${e=>e.primary||\"#616161\"};\n animation: ${Te} 1s linear infinite;\n`;var P=require(\"goober\"),fe=P.keyframes`\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}`,ye=P.keyframes`\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}`,F=(0,P.styled)(\"div\")`\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ${e=>e.primary||\"#61d345\"};\n position: relative;\n transform: rotate(45deg);\n\n animation: ${fe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: ${ye} 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ${e=>e.secondary||\"#fff\"};\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n`;var ge=(0,x.styled)(\"div\")`\n position: absolute;\n`,he=(0,x.styled)(\"div\")`\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n`,xe=x.keyframes`\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}`,be=(0,x.styled)(\"div\")`\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: ${xe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n`,U=({toast:e})=>{let{icon:t,type:o,iconTheme:s}=e;return t!==void 0?typeof t==\"string\"?y.createElement(be,null,t):t:o===\"blank\"?null:y.createElement(he,null,y.createElement(M,{...s}),o!==\"loading\"&&y.createElement(ge,null,o===\"error\"?y.createElement(w,{...s}):y.createElement(F,{...s})))};var Se=e=>`\n0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Ae=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}\n`,Pe=\"0%{opacity:0;} 100%{opacity:1;}\",Oe=\"0%{opacity:1;} 100%{opacity:0;}\",Ee=(0,b.styled)(\"div\")`\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n`,Re=(0,b.styled)(\"div\")`\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n`,ve=(e,t)=>{let s=e.includes(\"top\")?1:-1,[r,a]=R()?[Pe,Oe]:[Se(s),Ae(s)];return{animation:t?`${(0,b.keyframes)(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${(0,b.keyframes)(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},$=T.memo(({toast:e,position:t,style:o,children:s})=>{let r=e.height?ve(e.position||t||\"top-center\",e.visible):{opacity:0},a=T.createElement(U,{toast:e}),c=T.createElement(Re,{...e.ariaProps},u(e.message,e));return T.createElement(Ee,{className:e.className,style:{...r,...o,...e.style}},typeof s==\"function\"?s({icon:a,message:c}):T.createElement(T.Fragment,null,a,c))});var N=require(\"goober\"),f=W(require(\"react\"));(0,N.setup)(f.createElement);var Ie=({id:e,className:t,style:o,onHeightUpdate:s,children:r})=>{let a=f.useCallback(c=>{if(c){let i=()=>{let d=c.getBoundingClientRect().height;s(e,d)};i(),new MutationObserver(i).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return f.createElement(\"div\",{ref:a,className:t,style:o},r)},De=(e,t)=>{let o=e.includes(\"top\"),s=o?{top:0}:{bottom:0},r=e.includes(\"center\")?{justifyContent:\"center\"}:e.includes(\"right\")?{justifyContent:\"flex-end\"}:{};return{left:0,right:0,display:\"flex\",position:\"absolute\",transition:R()?void 0:\"all 230ms cubic-bezier(.21,1.02,.73,1)\",transform:`translateY(${t*(o?1:-1)}px)`,...s,...r}},ke=N.css`\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n`,L=16,J=({reverseOrder:e,position:t=\"top-center\",toastOptions:o,gutter:s,children:r,containerStyle:a,containerClassName:c})=>{let{toasts:i,handlers:d}=V(o);return f.createElement(\"div\",{style:{position:\"fixed\",zIndex:9999,top:L,left:L,right:L,bottom:L,pointerEvents:\"none\",...a},className:c,onMouseEnter:d.startPause,onMouseLeave:d.endPause},i.map(p=>{let g=p.position||t,z=d.calculateOffset(p,{reverseOrder:e,gutter:s,defaultPosition:t}),O=De(g,z);return f.createElement(Ie,{id:p.id,key:p.id,onHeightUpdate:d.updateHeight,className:p.visible?ke:\"\",style:O},p.type===\"custom\"?u(p.message,p):r?r(p):f.createElement($,{toast:p,position:g}))}))};var _e=n;0&&(module.exports={CheckmarkIcon,ErrorIcon,LoaderIcon,ToastBar,ToastIcon,Toaster,resolveValue,toast,useToaster,useToasterStore});\n//# sourceMappingURL=index.js.map","import { ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport styles from './style.module.scss';\nimport { Toaster as HotToaster, toast as hotToast } from 'react-hot-toast';\nimport { XIcon } from '../icon';\n\nexport type ToastType = 'warning' | 'error' | 'success' | 'information';\n\nexport interface ToastOptions {\n type?: ToastType;\n description?: ReactNode;\n duration?: number;\n action?: {\n title: string;\n onClick: () => void;\n }\n};\n\nexport interface ToastProps extends ToastOptions { \n onDismiss: () => void,\n title: string \n};\n\nconst Toaster = () => (\n <HotToaster \n toastOptions={{\n className: classNames(styles.toast, 'bs-lg'),\n }}\n />\n);\n\nconst Toast = ({\n action,\n description,\n onDismiss,\n title,\n type = \"success\"\n}: ToastProps) => (\n <div \n className={classNames(\n styles.toastContent,\n 'd-flex jc-between w100'\n )}>\n <div\n className={classNames(\n styles.toastSidebar, \n styles[`toastSidebar--${type}`]\n )}\n />\n <div className='d-flex fd-column jc-center ta-left mr8'>\n <h4 className='p-h4'>{title}</h4>\n \n {description && (\n <p className='p-p p-p--small mt8 tc-grey-600'>{description}</p>\n )}\n\n {action && (\n <button\n className={classNames(\n styles.actionButton,\n styles[`actionButton--${type}`],\n 'mt8 c-pointer ta-left'\n )}\n onClick={() => {\n action.onClick();\n onDismiss();\n }}\n type=\"button\"\n >\n {action.title}\n </button>\n )}\n </div>\n\n <div className='d-flex ai-center'>\n <button\n className={classNames(styles.closeButton, 'c-pointer')}\n onClick={onDismiss}\n data-testid=\"toast-close-button\"\n >\n <XIcon size={24} /> \n </button>\n </div>\n </div>\n);\n\nconst toast = (title: string, { duration = 3000, ...toastOptions }: ToastOptions) => (\n hotToast((t) => (\n <Toast\n title={title} \n onDismiss={() => hotToast.dismiss(t.id)} \n {...toastOptions}\n />\n ), { duration })\n);\n\nexport { Toaster, Toast, toast };\n"],"names":["l","n","u","f","b","h","j","require$$0","_jsx","HotToaster","_jsxs","hotToast"],"mappings":";;;;;;;;;;;;AAAA,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAACA,GAAC,CAAC,mEAAmE,CAAC,CAAC,C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