@popsure/dirty-swan 0.41.0-rc.3 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/cjs/index.d.ts +2 -2
  2. package/dist/cjs/index.js +138 -4
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/lib/components/card/index.d.ts +25 -0
  5. package/dist/cjs/lib/components/card/index.stories.d.ts +72 -0
  6. package/dist/cjs/lib/components/input/radio/index.d.ts +2 -1
  7. package/dist/cjs/lib/components/input/radio/index.stories.d.ts +2 -1
  8. package/dist/cjs/lib/index.d.ts +3 -3
  9. package/dist/cjs/lib/models/styles.d.ts +1 -1
  10. package/dist/cjs/lib/util/images/index.d.ts +135 -1
  11. package/dist/cjs/lib/util/images/index.stories.d.ts +1 -1
  12. package/dist/esm/components/card/index.js +39 -0
  13. package/dist/esm/components/card/index.js.map +1 -0
  14. package/dist/esm/components/card/index.stories.js +111 -0
  15. package/dist/esm/components/card/index.stories.js.map +1 -0
  16. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js +1 -1
  17. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js +1 -1
  18. package/dist/esm/components/cards/infoCard/index.stories.js +1 -1
  19. package/dist/esm/components/icon/icons/Meh.js +2 -2
  20. package/dist/esm/components/icon/icons/Meh.js.map +1 -1
  21. package/dist/esm/components/icon/icons/PlusCircle.js +2 -2
  22. package/dist/esm/components/icon/icons/PlusCircle.js.map +1 -1
  23. package/dist/esm/components/icon/icons.stories.js +1 -1
  24. package/dist/esm/components/icon/index.stories.js +1 -1
  25. package/dist/esm/components/input/checkbox/index.stories.js +1 -1
  26. package/dist/esm/components/input/radio/index.js +4 -4
  27. package/dist/esm/components/input/radio/index.js.map +1 -1
  28. package/dist/esm/components/input/radio/index.stories.js +24 -2
  29. package/dist/esm/components/input/radio/index.stories.js.map +1 -1
  30. package/dist/esm/index-1693701e.js +159 -0
  31. package/dist/esm/index-1693701e.js.map +1 -0
  32. package/dist/esm/{index-0a8de35a.js → index-83ae7f18.js} +5 -5
  33. package/dist/esm/{index-0a8de35a.js.map → index-83ae7f18.js.map} +1 -1
  34. package/dist/esm/index.d.ts +2 -2
  35. package/dist/esm/index.js +1 -1
  36. package/dist/esm/lib/components/card/index.d.ts +25 -0
  37. package/dist/esm/lib/components/card/index.stories.d.ts +72 -0
  38. package/dist/esm/lib/components/input/radio/index.d.ts +2 -1
  39. package/dist/esm/lib/components/input/radio/index.stories.d.ts +2 -1
  40. package/dist/esm/lib/index.d.ts +3 -3
  41. package/dist/esm/lib/models/styles.d.ts +1 -1
  42. package/dist/esm/lib/util/images/index.d.ts +135 -1
  43. package/dist/esm/lib/util/images/index.stories.d.ts +1 -1
  44. package/dist/esm/util/images/index.stories.js +43 -12
  45. package/dist/esm/util/images/index.stories.js.map +1 -1
  46. package/dist/index.css +1 -1
  47. package/dist/lib/scss/public/shadows.scss +1 -1
  48. package/package.json +1 -1
  49. package/src/index.tsx +2 -0
  50. package/src/lib/components/card/index.stories.tsx +245 -0
  51. package/src/lib/components/card/index.tsx +144 -0
  52. package/src/lib/components/card/style.module.scss +37 -0
  53. package/src/lib/components/input/radio/index.stories.tsx +33 -0
  54. package/src/lib/components/input/radio/index.tsx +14 -3
  55. package/src/lib/index.tsx +4 -2
  56. package/src/lib/models/styles.ts +1 -1
  57. package/src/lib/scss/public/shadows.scss +1 -1
  58. package/src/lib/util/images/index.stories.tsx +63 -21
  59. package/src/lib/util/images/index.ts +138 -1
  60. package/src/lib/util/images/style.module.scss +20 -0
  61. package/dist/esm/index-31224f74.js +0 -26
  62. package/dist/esm/index-31224f74.js.map +0 -1
@@ -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, _e = _a.bordered, bordered = _e === void 0 ? true : _e;
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;
@@ -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