@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
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, Checkbox, Radio, Link, InformationBox, Badge, images, Spinner, Toggle, Toaster, toast, } from './lib';
|
|
1
|
+
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, Checkbox, Radio, Link, InformationBox, Badge, images, illustrations, Spinner, Toggle, Toaster, toast, } from './lib';
|
|
2
2
|
export * from './lib/components/icon';
|
|
3
|
-
export type { DownloadStatus, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, } from './lib';
|
|
3
|
+
export type { DownloadStatus, IllustrationKeys, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, } from './lib';
|
package/dist/cjs/index.js
CHANGED
|
@@ -8453,7 +8453,7 @@ styleInject(css_248z$n);
|
|
|
8453
8453
|
|
|
8454
8454
|
var Radio = function (_a) {
|
|
8455
8455
|
var _b;
|
|
8456
|
-
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,
|
|
8456
|
+
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;
|
|
8457
8457
|
var entries = Object.entries(options);
|
|
8458
8458
|
return (jsxRuntime.jsx("div", __assign({ className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$m.container, 'd-flex gap8', (_b = {},
|
|
8459
8459
|
_b[styles$m.wide] = wide,
|
|
@@ -8475,10 +8475,10 @@ var Radio = function (_a) {
|
|
|
8475
8475
|
'p-radio--centered': !label,
|
|
8476
8476
|
}), id: currentValue, type: "radio", value: currentValue, onChange: function () { return onChange(currentValue); }, checked: checked, "data-testid": "radio-input-" + currentValue }, void 0),
|
|
8477
8477
|
jsxRuntime.jsxs("label", __assign({ htmlFor: currentValue, className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label', {
|
|
8478
|
-
'jc-center': customIcon,
|
|
8479
|
-
'fd-column': customIcon,
|
|
8478
|
+
'jc-center': customIcon && !inlineIcon,
|
|
8479
|
+
'fd-column': customIcon && !inlineIcon,
|
|
8480
8480
|
'p-label--bordered': bordered,
|
|
8481
|
-
}), "data-cy": "radio-" + currentValue, "data-testid": "radio-" + currentValue }, { children: [customIcon && jsxRuntime.jsx("div", __assign({ className: "mt8" }, { children: customIcon === null || customIcon === void 0 ? void 0 : customIcon(checked) }), void 0),
|
|
8481
|
+
}), "data-cy": "radio-" + currentValue, "data-testid": "radio-" + currentValue }, { children: [customIcon && (jsxRuntime.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)),
|
|
8482
8482
|
isRadioLabelObject(label) ? (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", __assign({ className: "p-p" }, { children: label.title }), void 0),
|
|
8483
8483
|
jsxRuntime.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));
|
|
8484
8484
|
}) }), void 0));
|
|
@@ -35955,6 +35955,7 @@ var Link = function (_a) {
|
|
|
35955
35955
|
};
|
|
35956
35956
|
|
|
35957
35957
|
var basePath = 'https://assets.cdn.feather-insurance.com/assets/images';
|
|
35958
|
+
var basePathIllustrations = basePath + "/illustrations";
|
|
35958
35959
|
var images = {
|
|
35959
35960
|
aid: basePath + "/aid.svg",
|
|
35960
35961
|
bed: basePath + "/bed.svg",
|
|
@@ -35977,6 +35978,138 @@ var images = {
|
|
|
35977
35978
|
finalExpenses: basePath + "/finalExpenses.svg",
|
|
35978
35979
|
mortgage: basePath + "/mortgage.svg",
|
|
35979
35980
|
};
|
|
35981
|
+
var illustrations = {
|
|
35982
|
+
aids: basePathIllustrations + "/aids.svg",
|
|
35983
|
+
allInOneAccount: basePathIllustrations + "/all-in-one-account.svg",
|
|
35984
|
+
ambulance: basePathIllustrations + "/ambulance.svg",
|
|
35985
|
+
bank: basePathIllustrations + "/bank.svg",
|
|
35986
|
+
battery: basePathIllustrations + "/battery.svg",
|
|
35987
|
+
bed: basePathIllustrations + "/bed.svg",
|
|
35988
|
+
bigDog: basePathIllustrations + "/big-dog.svg",
|
|
35989
|
+
bikeDamage: basePathIllustrations + "/bike-damage.svg",
|
|
35990
|
+
bikeDestroyedDamaged: basePathIllustrations + "/bike-destroyed-damaged.svg",
|
|
35991
|
+
bikeDetails: basePathIllustrations + "/bike-details.svg",
|
|
35992
|
+
bikeFrameNumber: basePathIllustrations + "/bike-frame-number.svg",
|
|
35993
|
+
bikeLock: basePathIllustrations + "/bike-lock.svg",
|
|
35994
|
+
bikeParts: basePathIllustrations + "/bike-parts.svg",
|
|
35995
|
+
bikeRiding: basePathIllustrations + "/bike-riding.svg",
|
|
35996
|
+
bikeStolenBroken: basePathIllustrations + "/bike-stolen-broken.svg",
|
|
35997
|
+
bikeStolen: basePathIllustrations + "/bike-stolen.svg",
|
|
35998
|
+
bikeTrailer: basePathIllustrations + "/bike-trailer.svg",
|
|
35999
|
+
bikeWear: basePathIllustrations + "/bike-wear.svg",
|
|
36000
|
+
bike: basePathIllustrations + "/bike.svg",
|
|
36001
|
+
bill: basePathIllustrations + "/bill.svg",
|
|
36002
|
+
bookOpen: basePathIllustrations + "/book-open.svg",
|
|
36003
|
+
briefcase: basePathIllustrations + "/briefcase.svg",
|
|
36004
|
+
brokenAquarium: basePathIllustrations + "/broken-aquarium.svg",
|
|
36005
|
+
brokenGlass: basePathIllustrations + "/broken-glass.svg",
|
|
36006
|
+
calculating1: basePathIllustrations + "/calculating-1.svg",
|
|
36007
|
+
calculatingDone: basePathIllustrations + "/calculating-done.svg",
|
|
36008
|
+
calculating: basePathIllustrations + "/calculating.svg",
|
|
36009
|
+
calendar: basePathIllustrations + "/calendar.svg",
|
|
36010
|
+
car: basePathIllustrations + "/car.svg",
|
|
36011
|
+
checkDoc: basePathIllustrations + "/check-doc.svg",
|
|
36012
|
+
check: basePathIllustrations + "/check.svg",
|
|
36013
|
+
concierge: basePathIllustrations + "/concierge.svg",
|
|
36014
|
+
contract: basePathIllustrations + "/contract.svg",
|
|
36015
|
+
crash: basePathIllustrations + "/crash.svg",
|
|
36016
|
+
creditCard: basePathIllustrations + "/credit-card.svg",
|
|
36017
|
+
damagedLaptop: basePathIllustrations + "/damaged-laptop.svg",
|
|
36018
|
+
dentalCleaning: basePathIllustrations + "/dental-cleaning.svg",
|
|
36019
|
+
dentalTreatment: basePathIllustrations + "/dental-treatment.svg",
|
|
36020
|
+
dental: basePathIllustrations + "/dental.svg",
|
|
36021
|
+
dependents: basePathIllustrations + "/dependents.svg",
|
|
36022
|
+
document1: basePathIllustrations + "/document-1.svg",
|
|
36023
|
+
documentCheck: basePathIllustrations + "/document-check.svg",
|
|
36024
|
+
documentCross: basePathIllustrations + "/document-cross.svg",
|
|
36025
|
+
document: basePathIllustrations + "/document.svg",
|
|
36026
|
+
door: basePathIllustrations + "/door.svg",
|
|
36027
|
+
education: basePathIllustrations + "/education.svg",
|
|
36028
|
+
electricCar: basePathIllustrations + "/electric-car.svg",
|
|
36029
|
+
email: basePathIllustrations + "/email.svg",
|
|
36030
|
+
euroMoney: basePathIllustrations + "/euro-money.svg",
|
|
36031
|
+
fastEasy: basePathIllustrations + "/fast-easy.svg",
|
|
36032
|
+
fire: basePathIllustrations + "/fire.svg",
|
|
36033
|
+
freelancerExpat: basePathIllustrations + "/freelancer-expat.svg",
|
|
36034
|
+
funeralBurial: basePathIllustrations + "/funeral-burial.svg",
|
|
36035
|
+
fuse: basePathIllustrations + "/fuse.svg",
|
|
36036
|
+
giftPolicyOptionsQuote: basePathIllustrations + "/gift-policy-options-quote.svg",
|
|
36037
|
+
grandmother: basePathIllustrations + "/grandmother.svg",
|
|
36038
|
+
healthCard: basePathIllustrations + "/health-card.svg",
|
|
36039
|
+
heart: basePathIllustrations + "/heart.svg",
|
|
36040
|
+
helmet: basePathIllustrations + "/helmet.svg",
|
|
36041
|
+
householdHome: basePathIllustrations + "/household-home.svg",
|
|
36042
|
+
keys: basePathIllustrations + "/keys.svg",
|
|
36043
|
+
legalLawyer: basePathIllustrations + "/legal-lawyer.svg",
|
|
36044
|
+
location: basePathIllustrations + "/location.svg",
|
|
36045
|
+
lock: basePathIllustrations + "/lock.svg",
|
|
36046
|
+
mail: basePathIllustrations + "/mail.svg",
|
|
36047
|
+
medicine: basePathIllustrations + "/medicine.svg",
|
|
36048
|
+
mentalHealth: basePathIllustrations + "/mental-health.svg",
|
|
36049
|
+
mentalIllness: basePathIllustrations + "/mental-llness.svg",
|
|
36050
|
+
miniJobExpat: basePathIllustrations + "/minijob-expat.svg",
|
|
36051
|
+
moneyIncome: basePathIllustrations + "/money-income.svg",
|
|
36052
|
+
movingTruck: basePathIllustrations + "/moving-truck.svg",
|
|
36053
|
+
naturalRemedies: basePathIllustrations + "/natural-remedies.svg",
|
|
36054
|
+
newArrival: basePathIllustrations + "/new-arrival.svg",
|
|
36055
|
+
noPolicies: basePathIllustrations + "/no-policies.svg",
|
|
36056
|
+
passport: basePathIllustrations + "/passport.svg",
|
|
36057
|
+
pawPet: basePathIllustrations + "/paw-pet.svg",
|
|
36058
|
+
pen: basePathIllustrations + "/pen.svg",
|
|
36059
|
+
personB: basePathIllustrations + "/person-b.svg",
|
|
36060
|
+
person: basePathIllustrations + "/person.svg",
|
|
36061
|
+
petsBunny: basePathIllustrations + "/pets-bunny.svg",
|
|
36062
|
+
petsCat: basePathIllustrations + "/pets-cat.svg",
|
|
36063
|
+
phone1: basePathIllustrations + "/phone-1.svg",
|
|
36064
|
+
phone2Fa: basePathIllustrations + "/phone-2-fa.svg",
|
|
36065
|
+
phonePerson: basePathIllustrations + "/phone-person.svg",
|
|
36066
|
+
phonePhoto: basePathIllustrations + "/phone-photo.svg",
|
|
36067
|
+
phone: basePathIllustrations + "/phone.svg",
|
|
36068
|
+
photoPerson: basePathIllustrations + "/photo-person.svg",
|
|
36069
|
+
pipes: basePathIllustrations + "/pipes.svg",
|
|
36070
|
+
planeRepatriationFlight: basePathIllustrations + "/plane-repatriation-flight.svg",
|
|
36071
|
+
pregnancy: basePathIllustrations + "/pregnancy.svg",
|
|
36072
|
+
productionDown: basePathIllustrations + "/production-down.svg",
|
|
36073
|
+
pushNotifications: basePathIllustrations + "/push-notifications.svg",
|
|
36074
|
+
radioactive: basePathIllustrations + "/radioactive.svg",
|
|
36075
|
+
referral: basePathIllustrations + "/referral.svg",
|
|
36076
|
+
researcherExpat: basePathIllustrations + "/researcher-expat.svg",
|
|
36077
|
+
restrictions: basePathIllustrations + "/restrictions.svg",
|
|
36078
|
+
ring: basePathIllustrations + "/ring.svg",
|
|
36079
|
+
screen: basePathIllustrations + "/screen.svg",
|
|
36080
|
+
screenings: basePathIllustrations + "/screenings.svg",
|
|
36081
|
+
shield1: basePathIllustrations + "/shield-1.svg",
|
|
36082
|
+
shield2: basePathIllustrations + "/shield-2.svg",
|
|
36083
|
+
shield3: basePathIllustrations + "/shield-3.svg",
|
|
36084
|
+
shieldCross: basePathIllustrations + "/shield-cross.svg",
|
|
36085
|
+
shieldQuestionMark: basePathIllustrations + "/shield-questionmark.svg",
|
|
36086
|
+
shieldWarning: basePathIllustrations + "/shield-warning.svg",
|
|
36087
|
+
shield: basePathIllustrations + "/shield.svg",
|
|
36088
|
+
sign: basePathIllustrations + "/sign.svg",
|
|
36089
|
+
spinner: basePathIllustrations + "/spinner.svg",
|
|
36090
|
+
sportLifestyleBasketball: basePathIllustrations + "/sport-lifestyle-basketball.svg",
|
|
36091
|
+
storm: basePathIllustrations + "/storm.svg",
|
|
36092
|
+
studentExpat: basePathIllustrations + "/student-expat.svg",
|
|
36093
|
+
submit: basePathIllustrations + "/submit.svg",
|
|
36094
|
+
supportAgent: basePathIllustrations + "/support-agent.svg",
|
|
36095
|
+
supportSpeakingMessageChatTalk: basePathIllustrations + "/support-speaking-message-chat-talk.svg",
|
|
36096
|
+
theft: basePathIllustrations + "/theft.svg",
|
|
36097
|
+
time: basePathIllustrations + "/time.svg",
|
|
36098
|
+
traffic: basePathIllustrations + "/traffic.svg",
|
|
36099
|
+
tree: basePathIllustrations + "/tree.svg",
|
|
36100
|
+
user: basePathIllustrations + "/user.svg",
|
|
36101
|
+
vaccination: basePathIllustrations + "/vaccination.svg",
|
|
36102
|
+
vandalism: basePathIllustrations + "/vandalism.svg",
|
|
36103
|
+
videoCall: basePathIllustrations + "/video-call.svg",
|
|
36104
|
+
visaSeekerExpat: basePathIllustrations + "/visa-seeker-expat.svg",
|
|
36105
|
+
visa: basePathIllustrations + "/visa.svg",
|
|
36106
|
+
visualAid: basePathIllustrations + "/visual-aid.svg",
|
|
36107
|
+
visual: basePathIllustrations + "/visual.svg",
|
|
36108
|
+
washingMachine: basePathIllustrations + "/washing-machine.svg",
|
|
36109
|
+
water: basePathIllustrations + "/water.svg",
|
|
36110
|
+
wavingHand: basePathIllustrations + "/waving-hand.svg",
|
|
36111
|
+
worldwide: basePathIllustrations + "/worldwide.svg",
|
|
36112
|
+
};
|
|
35980
36113
|
|
|
35981
36114
|
var Spinner = function (_a) {
|
|
35982
36115
|
var _b = _a.size, size = _b === void 0 ? 's' : _b;
|
|
@@ -36030,8 +36163,8 @@ var Toggle = function (_a) {
|
|
|
36030
36163
|
}) }), void 0));
|
|
36031
36164
|
};
|
|
36032
36165
|
|
|
36033
|
-
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:
|
|
36034
|
-
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"};
|
|
36166
|
+
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}";
|
|
36167
|
+
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"};
|
|
36035
36168
|
styleInject(css_248z);
|
|
36036
36169
|
|
|
36037
36170
|
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}}
|
|
@@ -36231,14 +36364,14 @@ var Toaster = function () { return (jsxRuntime.jsx(dist.Toaster, { toastOptions:
|
|
|
36231
36364
|
} }, void 0)); };
|
|
36232
36365
|
var Toast = function (_a) {
|
|
36233
36366
|
var action = _a.action, description = _a.description, onDismiss = _a.onDismiss, title = _a.title, _b = _a.type, type = _b === void 0 ? "success" : _b;
|
|
36234
|
-
return (jsxRuntime.jsxs("div", __assign({ className: 'd-flex jc-between w100' }, { children: [jsxRuntime.jsx("div", { className: classNames(styles.toastSidebar, styles["toastSidebar--" + type]) }, void 0),
|
|
36235
|
-
jsxRuntime.jsxs("div", __assign({ className: '
|
|
36367
|
+
return (jsxRuntime.jsxs("div", __assign({ className: classNames(styles.toastContent, 'd-flex jc-between w100') }, { children: [jsxRuntime.jsx("div", { className: classNames(styles.toastSidebar, styles["toastSidebar--" + type]) }, void 0),
|
|
36368
|
+
jsxRuntime.jsxs("div", __assign({ className: 'd-flex fd-column jc-center ta-left mr8' }, { children: [jsxRuntime.jsx("h4", __assign({ className: 'p-h4' }, { children: title }), void 0),
|
|
36236
36369
|
description && (jsxRuntime.jsx("p", __assign({ className: 'p-p p-p--small mt8 tc-grey-600' }, { children: description }), void 0)),
|
|
36237
|
-
action && (jsxRuntime.jsx("button", __assign({ className: classNames(styles.actionButton, styles["actionButton--" + type], 'mt8 c-pointer'), onClick: function () {
|
|
36370
|
+
action && (jsxRuntime.jsx("button", __assign({ className: classNames(styles.actionButton, styles["actionButton--" + type], 'mt8 c-pointer ta-left'), onClick: function () {
|
|
36238
36371
|
action.onClick();
|
|
36239
36372
|
onDismiss();
|
|
36240
36373
|
}, type: "button" }, { children: action.title }), void 0))] }), void 0),
|
|
36241
|
-
jsxRuntime.jsx("div", __assign({ className: 'd-flex ai-center' }, { children: jsxRuntime.jsx("button", __assign({ className: classNames(styles.closeButton, 'c-pointer'), onClick: onDismiss, "data-testid": "toast-close-button" }, { children: jsxRuntime.jsx(XIcon, {}, void 0) }), void 0) }), void 0)] }), void 0));
|
|
36374
|
+
jsxRuntime.jsx("div", __assign({ className: 'd-flex ai-center' }, { children: jsxRuntime.jsx("button", __assign({ className: classNames(styles.closeButton, 'c-pointer'), onClick: onDismiss, "data-testid": "toast-close-button" }, { children: jsxRuntime.jsx(XIcon, { size: 24 }, void 0) }), void 0) }), void 0)] }), void 0));
|
|
36242
36375
|
};
|
|
36243
36376
|
var toast = function (title, _a) {
|
|
36244
36377
|
var _b = _a.duration, duration = _b === void 0 ? 3000 : _b, toastOptions = __rest$1(_a, ["duration"]);
|
|
@@ -36642,6 +36775,7 @@ exports.ZapIcon = Zap;
|
|
|
36642
36775
|
exports.ZapOffIcon = ZapOff;
|
|
36643
36776
|
exports.ZoomInIcon = ZoomIn;
|
|
36644
36777
|
exports.ZoomOutIcon = ZoomOut;
|
|
36778
|
+
exports.illustrations = illustrations;
|
|
36645
36779
|
exports.images = images;
|
|
36646
36780
|
exports.toast = toast;
|
|
36647
36781
|
//# sourceMappingURL=index.js.map
|