@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.
Files changed (72) hide show
  1. package/dist/cjs/index.d.ts +2 -2
  2. package/dist/cjs/index.js +144 -10
  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/components/toast/index.js +1 -1
  31. package/dist/esm/components/toast/index.stories.js +5 -3
  32. package/dist/esm/components/toast/index.stories.js.map +1 -1
  33. package/dist/esm/components/toast/index.test.js +1 -1
  34. package/dist/esm/index-1693701e.js +159 -0
  35. package/dist/esm/index-1693701e.js.map +1 -0
  36. package/dist/esm/{index-eff726d3.js → index-45edc7d0.js} +7 -7
  37. package/dist/esm/index-45edc7d0.js.map +1 -0
  38. package/dist/esm/{index-0a8de35a.js → index-83ae7f18.js} +5 -5
  39. package/dist/esm/{index-0a8de35a.js.map → index-83ae7f18.js.map} +1 -1
  40. package/dist/esm/index.d.ts +2 -2
  41. package/dist/esm/index.js +2 -2
  42. package/dist/esm/lib/components/card/index.d.ts +25 -0
  43. package/dist/esm/lib/components/card/index.stories.d.ts +72 -0
  44. package/dist/esm/lib/components/input/radio/index.d.ts +2 -1
  45. package/dist/esm/lib/components/input/radio/index.stories.d.ts +2 -1
  46. package/dist/esm/lib/index.d.ts +3 -3
  47. package/dist/esm/lib/models/styles.d.ts +1 -1
  48. package/dist/esm/lib/util/images/index.d.ts +135 -1
  49. package/dist/esm/lib/util/images/index.stories.d.ts +1 -1
  50. package/dist/esm/util/images/index.stories.js +43 -12
  51. package/dist/esm/util/images/index.stories.js.map +1 -1
  52. package/dist/index.css +1 -1
  53. package/dist/lib/scss/public/shadows.scss +1 -1
  54. package/package.json +1 -1
  55. package/src/index.tsx +2 -0
  56. package/src/lib/components/card/index.stories.tsx +245 -0
  57. package/src/lib/components/card/index.tsx +144 -0
  58. package/src/lib/components/card/style.module.scss +37 -0
  59. package/src/lib/components/input/radio/index.stories.tsx +33 -0
  60. package/src/lib/components/input/radio/index.tsx +14 -3
  61. package/src/lib/components/toast/index.stories.tsx +7 -2
  62. package/src/lib/components/toast/index.tsx +8 -4
  63. package/src/lib/components/toast/style.module.scss +9 -5
  64. package/src/lib/index.tsx +4 -2
  65. package/src/lib/models/styles.ts +1 -1
  66. package/src/lib/scss/public/shadows.scss +1 -1
  67. package/src/lib/util/images/index.stories.tsx +63 -21
  68. package/src/lib/util/images/index.ts +138 -1
  69. package/src/lib/util/images/style.module.scss +20 -0
  70. package/dist/esm/index-31224f74.js +0 -26
  71. package/dist/esm/index-31224f74.js.map +0 -1
  72. package/dist/esm/index-eff726d3.js.map +0 -1
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ export interface CardProps {
3
+ children?: ReactNode;
4
+ classNames?: {
5
+ wrapper?: string;
6
+ label?: string;
7
+ title?: string;
8
+ description?: string;
9
+ children?: string;
10
+ icon?: string;
11
+ actionIcon?: string;
12
+ };
13
+ density?: 'balanced' | 'compact' | 'spacious';
14
+ dropShadow?: boolean;
15
+ icon?: ReactNode;
16
+ title?: ReactNode;
17
+ titleVariant?: 'small' | 'medium' | 'large';
18
+ description?: ReactNode;
19
+ descriptionVariant?: 'small' | 'large';
20
+ label?: ReactNode;
21
+ onClick?: () => void;
22
+ actionIcon?: ReactNode;
23
+ }
24
+ declare const Card: (props: CardProps) => JSX.Element;
25
+ export { Card };
@@ -0,0 +1,72 @@
1
+ import { CardProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: (props: CardProps) => JSX.Element;
5
+ argTypes: {
6
+ density: {
7
+ description: string;
8
+ };
9
+ label: {
10
+ description: string;
11
+ };
12
+ title: {
13
+ description: string;
14
+ };
15
+ titleVariant: {
16
+ description: string;
17
+ };
18
+ description: {
19
+ description: string;
20
+ };
21
+ descriptionVariant: {
22
+ description: string;
23
+ };
24
+ icon: {
25
+ description: string;
26
+ };
27
+ children: {
28
+ control: {
29
+ type: string;
30
+ };
31
+ description: string;
32
+ };
33
+ onClick: {
34
+ description: string;
35
+ };
36
+ dropShadow: {
37
+ description: string;
38
+ };
39
+ actionIcon: {
40
+ description: string;
41
+ };
42
+ };
43
+ args: {
44
+ density: string;
45
+ description: string;
46
+ descriptionVariant: string;
47
+ label: string;
48
+ title: string;
49
+ titleVariant: string;
50
+ icon: string;
51
+ children: string;
52
+ classNames: {
53
+ wrapper: string;
54
+ label: string;
55
+ title: string;
56
+ description: string;
57
+ children: string;
58
+ icon: string;
59
+ };
60
+ dropShadow: boolean;
61
+ };
62
+ };
63
+ export declare const CardStory: {
64
+ ({ actionIcon, children, classNames, density, description, descriptionVariant, dropShadow, icon, label, onClick, title, titleVariant, }: CardProps): JSX.Element;
65
+ storyName: string;
66
+ };
67
+ export declare const CardDensities: () => JSX.Element;
68
+ export declare const CardsWithIcons: ({ children, icon, title, }: CardProps) => JSX.Element;
69
+ export declare const CardWithOnClickAction: ({ children, icon, title, }: CardProps) => JSX.Element;
70
+ export declare const CardOverridesStyles: ({ children, label, title, }: CardProps) => JSX.Element;
71
+ export declare const CardsWithinCardsAndComplexLayout: ({ children, label, title, }: CardProps) => JSX.Element;
72
+ export default story;
@@ -11,6 +11,7 @@ export interface RadioProps<ValueType extends string> {
11
11
  onChange: (value: ValueType) => void;
12
12
  wide?: boolean;
13
13
  inlineLayout?: boolean;
14
+ inlineIcon?: boolean;
14
15
  classNames?: {
15
16
  container?: string;
16
17
  label?: string;
@@ -18,4 +19,4 @@ export interface RadioProps<ValueType extends string> {
18
19
  };
19
20
  bordered?: boolean;
20
21
  }
21
- export declare const Radio: <ValueType extends string>({ options, value, onChange, wide, inlineLayout, classNames: classNamesObj, bordered, }: RadioProps<ValueType>) => JSX.Element;
22
+ export declare const Radio: <ValueType extends string>({ options, value, onChange, wide, inlineLayout, inlineIcon, classNames: classNamesObj, bordered, }: RadioProps<ValueType>) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { RadioProps } from '.';
2
2
  declare const story: {
3
3
  title: string;
4
- component: <ValueType extends string>({ options, value, onChange, wide, inlineLayout, classNames: classNamesObj, bordered, }: RadioProps<ValueType>) => JSX.Element;
4
+ component: <ValueType extends string>({ options, value, onChange, wide, inlineLayout, inlineIcon, classNames: classNamesObj, bordered, }: RadioProps<ValueType>) => JSX.Element;
5
5
  argTypes: {
6
6
  options: {
7
7
  description: string;
@@ -61,5 +61,6 @@ export declare const RadioWithCustomOptionStyles: ({ onChange }: RadioProps<stri
61
61
  export declare const RadioWithCustomLabelStyles: ({ onChange }: RadioProps<string>) => JSX.Element;
62
62
  export declare const RadioWithInlineLayout: ({ onChange }: RadioProps<string>) => JSX.Element;
63
63
  export declare const RadioWithCustomLabel: ({ onChange, wide, classNames, inlineLayout }: RadioProps<string>) => JSX.Element;
64
+ export declare const RadioWithCustomLabelInline: ({ onChange, wide, classNames, inlineLayout }: RadioProps<string>) => JSX.Element;
64
65
  export declare const RadioIconOnly: ({ onChange }: RadioProps<string>) => JSX.Element;
65
66
  export default story;
@@ -20,11 +20,11 @@ import { ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButt
20
20
  import { SegmentedControl } from './components/segmentedControl';
21
21
  import { Markdown } from './components/markdown';
22
22
  import { Link } from './components/link';
23
- import { images } from './util/images';
23
+ import { illustrations, images, IllustrationKeys } from './util/images';
24
24
  import { Spinner } from './components/spinner';
25
25
  import { Toggle } from './components/input/toggle';
26
26
  import { Toaster, toast } from './components/toast';
27
27
  export * from './components/icon';
28
- export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, DownloadButton, IbanInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, CurrencyInput, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, Markdown, Checkbox, Radio, Link, InformationBox, Badge, images, Spinner, Toggle, Toaster, toast };
29
- export type { FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, };
28
+ export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, DownloadButton, IbanInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, CurrencyInput, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, Markdown, Checkbox, Radio, Link, InformationBox, Badge, images, illustrations, Spinner, Toggle, Toaster, toast, };
29
+ export type { IllustrationKeys, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, };
30
30
  export type { DownloadStatus } from './models/download';
@@ -1,2 +1,2 @@
1
1
  export declare type Color = 'transparent' | 'blue-100' | 'blue-300' | 'blue-500' | 'blue-700' | 'blue-900' | 'purple-25' | 'purple-50' | 'purple-100' | 'purple-300' | 'purple-500' | 'purple-700' | 'purple-900' | 'primary-25' | 'primary-50' | 'primary-100' | 'primary-300' | 'primary-500' | 'primary-700' | 'primary-900' | 'red-100' | 'red-300' | 'red-500' | 'red-700' | 'red-900' | 'grey-100' | 'grey-200' | 'grey-300' | 'grey-400' | 'grey-500' | 'grey-600' | 'grey-700' | 'grey-900' | 'green-100' | 'green-300' | 'green-500' | 'green-700' | 'green-900' | 'glacier-100' | 'glacier-300' | 'glacier-500' | 'glacier-700' | 'glacier-900' | 'spearmint-100' | 'spearmint-300' | 'spearmint-500' | 'spearmint-700' | 'spearmint-900' | 'pink-100' | 'pink-300' | 'pink-500' | 'pink-700' | 'pink-900' | 'yellow-100' | 'yellow-300' | 'yellow-500' | 'yellow-700' | 'yellow-900';
2
- export declare type Size = 0 | 8 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96;
2
+ export declare type Size = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96;
@@ -20,4 +20,138 @@ declare const images: {
20
20
  readonly finalExpenses: "https://assets.cdn.feather-insurance.com/assets/images/finalExpenses.svg";
21
21
  readonly mortgage: "https://assets.cdn.feather-insurance.com/assets/images/mortgage.svg";
22
22
  };
23
- export { images };
23
+ declare const illustrations: {
24
+ readonly aids: `${string}/aids.svg`;
25
+ readonly allInOneAccount: `${string}/all-in-one-account.svg`;
26
+ readonly ambulance: `${string}/ambulance.svg`;
27
+ readonly bank: `${string}/bank.svg`;
28
+ readonly battery: `${string}/battery.svg`;
29
+ readonly bed: `${string}/bed.svg`;
30
+ readonly bigDog: `${string}/big-dog.svg`;
31
+ readonly bikeDamage: `${string}/bike-damage.svg`;
32
+ readonly bikeDestroyedDamaged: `${string}/bike-destroyed-damaged.svg`;
33
+ readonly bikeDetails: `${string}/bike-details.svg`;
34
+ readonly bikeFrameNumber: `${string}/bike-frame-number.svg`;
35
+ readonly bikeLock: `${string}/bike-lock.svg`;
36
+ readonly bikeParts: `${string}/bike-parts.svg`;
37
+ readonly bikeRiding: `${string}/bike-riding.svg`;
38
+ readonly bikeStolenBroken: `${string}/bike-stolen-broken.svg`;
39
+ readonly bikeStolen: `${string}/bike-stolen.svg`;
40
+ readonly bikeTrailer: `${string}/bike-trailer.svg`;
41
+ readonly bikeWear: `${string}/bike-wear.svg`;
42
+ readonly bike: `${string}/bike.svg`;
43
+ readonly bill: `${string}/bill.svg`;
44
+ readonly bookOpen: `${string}/book-open.svg`;
45
+ readonly briefcase: `${string}/briefcase.svg`;
46
+ readonly brokenAquarium: `${string}/broken-aquarium.svg`;
47
+ readonly brokenGlass: `${string}/broken-glass.svg`;
48
+ readonly calculating1: `${string}/calculating-1.svg`;
49
+ readonly calculatingDone: `${string}/calculating-done.svg`;
50
+ readonly calculating: `${string}/calculating.svg`;
51
+ readonly calendar: `${string}/calendar.svg`;
52
+ readonly car: `${string}/car.svg`;
53
+ readonly checkDoc: `${string}/check-doc.svg`;
54
+ readonly check: `${string}/check.svg`;
55
+ readonly concierge: `${string}/concierge.svg`;
56
+ readonly contract: `${string}/contract.svg`;
57
+ readonly crash: `${string}/crash.svg`;
58
+ readonly creditCard: `${string}/credit-card.svg`;
59
+ readonly damagedLaptop: `${string}/damaged-laptop.svg`;
60
+ readonly dentalCleaning: `${string}/dental-cleaning.svg`;
61
+ readonly dentalTreatment: `${string}/dental-treatment.svg`;
62
+ readonly dental: `${string}/dental.svg`;
63
+ readonly dependents: `${string}/dependents.svg`;
64
+ readonly document1: `${string}/document-1.svg`;
65
+ readonly documentCheck: `${string}/document-check.svg`;
66
+ readonly documentCross: `${string}/document-cross.svg`;
67
+ readonly document: `${string}/document.svg`;
68
+ readonly door: `${string}/door.svg`;
69
+ readonly education: `${string}/education.svg`;
70
+ readonly electricCar: `${string}/electric-car.svg`;
71
+ readonly email: `${string}/email.svg`;
72
+ readonly euroMoney: `${string}/euro-money.svg`;
73
+ readonly fastEasy: `${string}/fast-easy.svg`;
74
+ readonly fire: `${string}/fire.svg`;
75
+ readonly freelancerExpat: `${string}/freelancer-expat.svg`;
76
+ readonly funeralBurial: `${string}/funeral-burial.svg`;
77
+ readonly fuse: `${string}/fuse.svg`;
78
+ readonly giftPolicyOptionsQuote: `${string}/gift-policy-options-quote.svg`;
79
+ readonly grandmother: `${string}/grandmother.svg`;
80
+ readonly healthCard: `${string}/health-card.svg`;
81
+ readonly heart: `${string}/heart.svg`;
82
+ readonly helmet: `${string}/helmet.svg`;
83
+ readonly householdHome: `${string}/household-home.svg`;
84
+ readonly keys: `${string}/keys.svg`;
85
+ readonly legalLawyer: `${string}/legal-lawyer.svg`;
86
+ readonly location: `${string}/location.svg`;
87
+ readonly lock: `${string}/lock.svg`;
88
+ readonly mail: `${string}/mail.svg`;
89
+ readonly medicine: `${string}/medicine.svg`;
90
+ readonly mentalHealth: `${string}/mental-health.svg`;
91
+ readonly mentalIllness: `${string}/mental-llness.svg`;
92
+ readonly miniJobExpat: `${string}/minijob-expat.svg`;
93
+ readonly moneyIncome: `${string}/money-income.svg`;
94
+ readonly movingTruck: `${string}/moving-truck.svg`;
95
+ readonly naturalRemedies: `${string}/natural-remedies.svg`;
96
+ readonly newArrival: `${string}/new-arrival.svg`;
97
+ readonly noPolicies: `${string}/no-policies.svg`;
98
+ readonly passport: `${string}/passport.svg`;
99
+ readonly pawPet: `${string}/paw-pet.svg`;
100
+ readonly pen: `${string}/pen.svg`;
101
+ readonly personB: `${string}/person-b.svg`;
102
+ readonly person: `${string}/person.svg`;
103
+ readonly petsBunny: `${string}/pets-bunny.svg`;
104
+ readonly petsCat: `${string}/pets-cat.svg`;
105
+ readonly phone1: `${string}/phone-1.svg`;
106
+ readonly phone2Fa: `${string}/phone-2-fa.svg`;
107
+ readonly phonePerson: `${string}/phone-person.svg`;
108
+ readonly phonePhoto: `${string}/phone-photo.svg`;
109
+ readonly phone: `${string}/phone.svg`;
110
+ readonly photoPerson: `${string}/photo-person.svg`;
111
+ readonly pipes: `${string}/pipes.svg`;
112
+ readonly planeRepatriationFlight: `${string}/plane-repatriation-flight.svg`;
113
+ readonly pregnancy: `${string}/pregnancy.svg`;
114
+ readonly productionDown: `${string}/production-down.svg`;
115
+ readonly pushNotifications: `${string}/push-notifications.svg`;
116
+ readonly radioactive: `${string}/radioactive.svg`;
117
+ readonly referral: `${string}/referral.svg`;
118
+ readonly researcherExpat: `${string}/researcher-expat.svg`;
119
+ readonly restrictions: `${string}/restrictions.svg`;
120
+ readonly ring: `${string}/ring.svg`;
121
+ readonly screen: `${string}/screen.svg`;
122
+ readonly screenings: `${string}/screenings.svg`;
123
+ readonly shield1: `${string}/shield-1.svg`;
124
+ readonly shield2: `${string}/shield-2.svg`;
125
+ readonly shield3: `${string}/shield-3.svg`;
126
+ readonly shieldCross: `${string}/shield-cross.svg`;
127
+ readonly shieldQuestionMark: `${string}/shield-questionmark.svg`;
128
+ readonly shieldWarning: `${string}/shield-warning.svg`;
129
+ readonly shield: `${string}/shield.svg`;
130
+ readonly sign: `${string}/sign.svg`;
131
+ readonly spinner: `${string}/spinner.svg`;
132
+ readonly sportLifestyleBasketball: `${string}/sport-lifestyle-basketball.svg`;
133
+ readonly storm: `${string}/storm.svg`;
134
+ readonly studentExpat: `${string}/student-expat.svg`;
135
+ readonly submit: `${string}/submit.svg`;
136
+ readonly supportAgent: `${string}/support-agent.svg`;
137
+ readonly supportSpeakingMessageChatTalk: `${string}/support-speaking-message-chat-talk.svg`;
138
+ readonly theft: `${string}/theft.svg`;
139
+ readonly time: `${string}/time.svg`;
140
+ readonly traffic: `${string}/traffic.svg`;
141
+ readonly tree: `${string}/tree.svg`;
142
+ readonly user: `${string}/user.svg`;
143
+ readonly vaccination: `${string}/vaccination.svg`;
144
+ readonly vandalism: `${string}/vandalism.svg`;
145
+ readonly videoCall: `${string}/video-call.svg`;
146
+ readonly visaSeekerExpat: `${string}/visa-seeker-expat.svg`;
147
+ readonly visa: `${string}/visa.svg`;
148
+ readonly visualAid: `${string}/visual-aid.svg`;
149
+ readonly visual: `${string}/visual.svg`;
150
+ readonly washingMachine: `${string}/washing-machine.svg`;
151
+ readonly water: `${string}/water.svg`;
152
+ readonly wavingHand: `${string}/waving-hand.svg`;
153
+ readonly worldwide: `${string}/worldwide.svg`;
154
+ };
155
+ declare type IllustrationKeys = keyof typeof illustrations;
156
+ export type { IllustrationKeys };
157
+ export { illustrations, images };
@@ -8,5 +8,5 @@ declare const story: {
8
8
  };
9
9
  };
10
10
  };
11
- export declare const Images: () => JSX.Element;
11
+ export declare const Illustrations: () => JSX.Element;
12
12
  export default story;
@@ -0,0 +1,39 @@
1
+ import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { c as classNames } from '../../index-6ea95111.js';
4
+ import ChevronRightIcon from '../icon/icons/ChevronRight.js';
5
+ import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
6
+ import 'react';
7
+ import '../icon/IconWrapper/IconWrapper.js';
8
+
9
+ var css_248z = ".style-module_button__KWY7b {\n border: 1px solid transparent;\n color: #26262e;\n outline-color: #8e8cee;\n transition: all 0.2s ease-in-out;\n}\n.style-module_button__KWY7b:hover {\n border-color: #8e8cee;\n color: #8e8cee;\n}\n\n.style-module_icon__N6B2P {\n margin-right: 12px;\n}\n.style-module_iconbalanced__3JdKC {\n margin-right: 16px;\n}\n.style-module_iconspacious__36ovv {\n margin-right: 24px;\n}\n\n.style-module_actionIcon__2klnb {\n margin-left: 12px;\n}\n.style-module_actionIconbalanced__1duYl {\n margin-left: 16px;\n}\n.style-module_actionIconspacious__1sjsd {\n margin-left: 24px;\n}";
10
+ var styles = {"button":"style-module_button__KWY7b","icon":"style-module_icon__N6B2P","iconbalanced":"style-module_iconbalanced__3JdKC","iconspacious":"style-module_iconspacious__36ovv","actionIcon":"style-module_actionIcon__2klnb","actionIconbalanced":"style-module_actionIconbalanced__1duYl","actionIconspacious":"style-module_actionIconspacious__1sjsd"};
11
+ styleInject(css_248z);
12
+
13
+ var CardContent = function (_a) {
14
+ var children = _a.children, classNames$1 = _a.classNames, _b = _a.density, density = _b === void 0 ? 'balanced' : _b, description = _a.description, _c = _a.descriptionVariant, descriptionVariant = _c === void 0 ? 'large' : _c, _d = _a.dropShadow, dropShadow = _d === void 0 ? true : _d, icon = _a.icon, label = _a.label, onClick = _a.onClick, actionIcon = _a.actionIcon, title = _a.title, _e = _a.titleVariant, titleVariant = _e === void 0 ? 'large' : _e;
15
+ return (jsxs("section", __assign({ className: classNames('d-flex fd-column jc-center br8 bg-white w100 ta-left', { 'bs-sm': dropShadow }, {
16
+ compact: 'p16',
17
+ balanced: 'p24',
18
+ spacious: 'p32'
19
+ }[density], classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.wrapper) }, { children: [jsxs("div", __assign({ className: 'd-flex w100' }, { children: [icon && (jsx("div", __assign({ className: classNames("d-flex ai-center tc-primary-500", styles.icon, styles["icon" + density], classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.icon) }, { children: icon }), void 0)),
20
+ jsxs("div", __assign({ className: 'd-flex jc-between w100' }, { children: [jsxs("div", __assign({ className: 'd-flex jc-center gap8 fd-column tc-grey-900 w100' }, { children: [label && (jsx("h3", __assign({ className: classNames('p-p--small', classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.label) }, { children: label }), void 0)),
21
+ title && (jsx("h2", __assign({ className: classNames(classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.title, {
22
+ large: 'p-h3',
23
+ medium: 'p-h4',
24
+ small: 'p-p',
25
+ }[titleVariant]) }, { children: title }), void 0)),
26
+ description && (jsx("div", __assign({ className: classNames('tc-grey-600', classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.description, descriptionVariant === 'small' ? 'p-p--small' : 'p-p') }, { children: description }), void 0))] }), void 0),
27
+ onClick && (jsx("div", __assign({ className: classNames(styles.actionIcon, classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.actionIcon, styles["actionIcon" + density], 'd-flex ai-center') }, { children: actionIcon || jsx(ChevronRightIcon, { size: 24 }, void 0) }), void 0))] }), void 0)] }), void 0),
28
+ children && (jsx("div", __assign({ className: classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.children }, { children: children }), void 0))] }), void 0));
29
+ };
30
+ var Card = function (props) {
31
+ var onClick = props.onClick;
32
+ if (onClick) {
33
+ return (jsx("button", __assign({ className: classNames('c-pointer d-flex w100 br8', styles.button), onClick: onClick, type: "button" }, { children: jsx(CardContent, __assign({}, props), void 0) }), void 0));
34
+ }
35
+ return jsx(CardContent, __assign({}, props), void 0);
36
+ };
37
+
38
+ export { Card };
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/lib/components/card/index.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNamesUtil from 'classnames';\nimport { ChevronRightIcon } from '../icon';\n\nimport styles from './style.module.scss';\n\nexport interface CardProps {\n children?: ReactNode;\n classNames?: {\n wrapper?: string;\n label?: string;\n title?: string;\n description?: string;\n children?: string;\n icon?: string;\n actionIcon?: string;\n };\n density?: 'balanced' | 'compact' | 'spacious';\n dropShadow?: boolean;\n icon?: ReactNode;\n title?: ReactNode;\n titleVariant?: 'small' | 'medium' | 'large';\n description?: ReactNode;\n descriptionVariant?: 'small' | 'large';\n label?: ReactNode;\n onClick?: () => void;\n actionIcon?: ReactNode;\n} \n\nconst CardContent = ({ \n children,\n classNames,\n density = 'balanced',\n description,\n descriptionVariant = 'large',\n dropShadow = true,\n icon,\n label,\n onClick,\n actionIcon,\n title,\n titleVariant = 'large',\n}: CardProps) => (\n <section\n className={classNamesUtil(\n 'd-flex fd-column jc-center br8 bg-white w100 ta-left', \n { 'bs-sm': dropShadow },\n {\n compact: 'p16',\n balanced: 'p24',\n spacious: 'p32'\n }[density],\n classNames?.wrapper,\n )}\n >\n <div className='d-flex w100'>\n {icon && (\n <div \n className={classNamesUtil(\n `d-flex ai-center tc-primary-500`,\n styles.icon,\n styles[`icon${density}`],\n classNames?.icon\n )}\n >\n {icon}\n </div>\n )}\n\n <div className='d-flex jc-between w100'>\n <div className='d-flex jc-center gap8 fd-column tc-grey-900 w100'>\n {label && (\n <h3\n className={classNamesUtil('p-p--small', classNames?.label)}\n >\n {label}\n </h3>\n )}\n\n {title && (\n <h2\n className={classNamesUtil(classNames?.title, {\n large:'p-h3',\n medium:'p-h4',\n small:'p-p',\n }[titleVariant])}\n >\n {title}\n </h2>\n )}\n\n {description && (\n <div\n className={classNamesUtil(\n 'tc-grey-600',\n classNames?.description,\n descriptionVariant === 'small' ? 'p-p--small' : 'p-p'\n )}\n >\n {description}\n </div>\n )}\n </div>\n\n {onClick && (\n <div\n className={classNamesUtil(\n styles.actionIcon,\n classNames?.actionIcon,\n styles[`actionIcon${density}`],\n 'd-flex ai-center'\n )}\n >\n {actionIcon || <ChevronRightIcon size={24} />}\n </div>\n )}\n </div>\n </div>\n\n {children && (\n <div className={classNames?.children}>{children}</div>\n )}\n </section>\n);\n\nconst Card = (props: CardProps) => {\n const { onClick } = props;\n\n if (onClick) {\n return (\n <button\n className={classNamesUtil('c-pointer d-flex w100 br8', styles.button)}\n onClick={onClick} \n type=\"button\"\n >\n <CardContent {...props} />\n </button>\n )\n }\n\n return <CardContent {...props} />;\n}\n\nexport { Card };\n"],"names":["classNames","_jsxs","classNamesUtil","_jsx"],"mappings":";;;;;;;;;;;;AA6BA,IAAM,WAAW,GAAG,U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,CAAC,gBAEf,KAAK,YACH,CACN;oCAEA,WAAW,KACVG,sBACE,SAAS,EAAED,UAAc,CACvB,aAAa,EACbF,YAAU,aAAVA,YAAU,uBAAVA,YAAU,CAAE,WAAW,EACvB,kBAAkB,KAAK,OAAO,GAAG,YAAY,GAAG,KAAK,CACtD,gBAEA,WAAW,YACR,CACP,aACG;4BAEL,OAAO,KACNG,sBACE,SAAS,EAAED,UAAc,CACvB,MAAM,CAAC,UAAU,EACjBF,YAAU,aAAVA,YAAU,uBAAVA,YAAU,CAAE,UAAU,EACtB,MAAM,CAAC,eAAa,OAAS,CAAC,EAC9B,kBAAkB,CACnB,gBAEA,UAAU,IAAIG,IAAC,gBAAgB,IAAC,IAAI,EAAE,EAAE,WAAI,YACzC,CACP,aACG,aACF;YAEL,QAAQ,KACPA,sBAAK,SAAS,EAAEH,YAAU,aAAVA,YAAU,uBAAVA,YAAU,CAAE,QAAQ,gBAAG,QAAQ,YAAO,CACvD,aACO;AAhFK,CAiFhB,CAAC;IAEI,IAAI,GAAG,UAAC,KAAgB;IACpB,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;IAE1B,IAAI,OAAO,EAAE;QACX,QACEG,yBACE,SAAS,EAAED,UAAc,CAAC,2BAA2B,EAAE,MAAM,CAAC,MAAM,CAAC,EACrE,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,QAAQ,gBAEbC,IAAC,WAAW,eAAK,KAAK,UAAI,YACnB,EACV;KACF;IAED,OAAOA,IAAC,WAAW,eAAK,KAAK,UAAI,CAAC;AACpC;;;;"}
@@ -0,0 +1,111 @@
1
+ import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { Card } from './index.js';
4
+ import { i as illustrations } from '../../index-1693701e.js';
5
+ import { Button } from '../button/index.js';
6
+ import { Badge } from '../badge/index.js';
7
+ import CheckIcon from '../icon/icons/Check.js';
8
+ import MehIcon from '../icon/icons/Meh.js';
9
+ import PlusCircleIcon from '../icon/icons/PlusCircle.js';
10
+ import XIcon from '../icon/icons/X.js';
11
+ import '../../index-6ea95111.js';
12
+ import '../icon/icons/ChevronRight.js';
13
+ import 'react';
14
+ import '../icon/IconWrapper/IconWrapper.js';
15
+ import '../../style-inject.es-1f59c1d0.js';
16
+
17
+ var story = {
18
+ title: 'JSX/Card',
19
+ component: Card,
20
+ argTypes: {
21
+ density: {
22
+ description: 'Spacing around the card'
23
+ },
24
+ label: {
25
+ description: 'Content to be rendered as label'
26
+ },
27
+ title: {
28
+ description: 'Content to be rendered as title'
29
+ },
30
+ titleVariant: {
31
+ description: 'Variant that allows changing title sizing styles.'
32
+ },
33
+ description: {
34
+ description: 'Content to be rendered as description'
35
+ },
36
+ descriptionVariant: {
37
+ description: 'Variant that allows changing description sizing styles.'
38
+ },
39
+ icon: {
40
+ description: 'ReactNode to be rendered on the left side of the card',
41
+ },
42
+ children: {
43
+ control: { type: 'text' },
44
+ description: 'Content that is displayed inside the card under the pre-defined props',
45
+ },
46
+ onClick: {
47
+ description: 'On click action to be triggered on card click.',
48
+ },
49
+ dropShadow: {
50
+ description: 'Wether to display card with drop shadow styles or not.',
51
+ },
52
+ actionIcon: {
53
+ description: 'ReactNode to be rendered on the right side of the card when there is an onClick action. By default it renders the ChevronRightIcon.',
54
+ },
55
+ },
56
+ args: {
57
+ density: 'balanced',
58
+ description: 'Believe you’re a great fit but can’t find a position listed for your skill set? We’d love to hear from you!',
59
+ descriptionVariant: 'large',
60
+ label: 'Label',
61
+ title: 'Honest, simple insurance',
62
+ titleVariant: 'large',
63
+ icon: 'ABC',
64
+ children: '',
65
+ classNames: {
66
+ wrapper: '',
67
+ label: '',
68
+ title: '',
69
+ description: '',
70
+ children: '',
71
+ icon: ''
72
+ },
73
+ dropShadow: true,
74
+ }
75
+ };
76
+ var CardStory = function (_a) {
77
+ var actionIcon = _a.actionIcon, children = _a.children, classNames = _a.classNames, density = _a.density, description = _a.description, descriptionVariant = _a.descriptionVariant, dropShadow = _a.dropShadow, icon = _a.icon, label = _a.label, onClick = _a.onClick, title = _a.title, titleVariant = _a.titleVariant;
78
+ return (jsx("div", __assign({ className: 'd-flex p24 bg-grey-200' }, { children: jsx(Card, __assign({ classNames: classNames, description: description, descriptionVariant: descriptionVariant, density: density, dropShadow: dropShadow, icon: icon, label: label, title: title, titleVariant: titleVariant, onClick: onClick, actionIcon: actionIcon }, { children: children }), void 0) }), void 0));
79
+ };
80
+ CardStory.storyName = "Card";
81
+ var CardDensities = function () { return (jsxs("div", __assign({ className: 'd-flex fd-column gap16 p24 bg-grey-200' }, { children: [jsx(Card, { title: 'Card density: Compact', density: 'compact' }, void 0),
82
+ jsx(Card, { title: 'Card density: Balanced', density: 'balanced' }, void 0),
83
+ jsx(Card, { title: 'Card density: Spacious', density: 'spacious' }, void 0)] }), void 0)); };
84
+ var CardsWithIcons = function (_a) {
85
+ _a.children; _a.icon; var title = _a.title;
86
+ return (jsxs("div", __assign({ className: 'd-flex gap16 p24 bg-grey-200' }, { children: [jsx(Card, { icon: jsx("img", { alt: "", src: illustrations.aids, width: 24 }, void 0), title: title }, void 0),
87
+ jsx(Card, { icon: jsx(MehIcon, { size: 24 }, void 0), title: title }, void 0)] }), void 0));
88
+ };
89
+ var CardWithOnClickAction = function (_a) {
90
+ var children = _a.children; _a.icon; var title = _a.title;
91
+ return (jsx("div", __assign({ className: 'd-flex p24 bg-grey-200' }, { children: jsx(Card, __assign({ icon: jsx("img", { alt: "", src: illustrations.aids, width: 24 }, void 0), title: title, titleVariant: 'medium', onClick: function () { } }, { children: children }), void 0) }), void 0));
92
+ };
93
+ var CardOverridesStyles = function (_a) {
94
+ var children = _a.children, label = _a.label, title = _a.title;
95
+ return (jsx("div", __assign({ className: 'd-flex p24 bg-grey-200' }, { children: jsx(Card, __assign({ label: label, title: title, titleVariant: 'medium', icon: jsx(PlusCircleIcon, { color: "grey-100", size: 32 }, void 0), classNames: {
96
+ wrapper: 'bg-grey-700',
97
+ label: 'tc-white',
98
+ title: 'tc-white'
99
+ } }, { children: children }), void 0) }), void 0));
100
+ };
101
+ var CardsWithinCardsAndComplexLayout = function (_a) {
102
+ _a.children; _a.label; _a.title;
103
+ return (jsx("div", __assign({ className: 'd-flex p24 bg-grey-200' }, { children: jsxs(Card, __assign({ label: (jsx(Badge, __assign({ size: 'small', variant: 'success' }, { children: "Active" }), void 0)), title: (jsxs("div", __assign({ className: 'd-flex jc-between ai-center w100' }, { children: ["Coverage overview", jsx(Button, __assign({ onClick: function () { }, variant: 'filledGray' }, { children: "Full coverage details" }), void 0)] }), void 0)) }, { children: [jsxs("div", __assign({ className: 'd-flex gap16 mt16' }, { children: [jsx(Card, { description: "Lost keys", classNames: { wrapper: 'bg-grey-300' }, icon: jsx(CheckIcon, { color: 'primary-500' }, void 0), density: 'compact' }, void 0),
104
+ jsx(Card, { description: "Broken glass", classNames: { wrapper: 'bg-grey-300' }, icon: jsx(XIcon, { color: 'primary-500' }, void 0), density: 'compact' }, void 0)] }), void 0),
105
+ jsxs("div", __assign({ className: 'd-flex gap16 mt16' }, { children: [jsx(Card, { description: "Damage to property", classNames: { wrapper: 'bg-grey-300' }, icon: jsx(CheckIcon, { color: 'primary-500' }, void 0), density: 'compact' }, void 0),
106
+ jsx(Card, { description: "Drones", classNames: { wrapper: 'bg-grey-300' }, icon: jsx(XIcon, { color: 'primary-500' }, void 0), density: 'compact' }, void 0)] }), void 0)] }), void 0) }), void 0));
107
+ };
108
+
109
+ export default story;
110
+ export { CardDensities, CardOverridesStyles, CardStory, CardWithOnClickAction, CardsWithIcons, CardsWithinCardsAndComplexLayout };
111
+ //# sourceMappingURL=index.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/card/index.stories.tsx"],"sourcesContent":["import { Card, CardProps } from '.';\nimport { illustrations } from '../../util/images';\nimport { Button } from '../button';\nimport { Badge } from '../badge';\nimport { CheckIcon, MehIcon, PlusCircleIcon, XIcon } from '../icon';\n\nconst story = {\n title: 'JSX/Card',\n component: Card,\n argTypes: {\n density: {\n description: 'Spacing around the card'\n },\n label: {\n description: 'Content to be rendered as label'\n },\n title: {\n description: 'Content to be rendered as title'\n },\n titleVariant: {\n description: 'Variant that allows changing title sizing styles.'\n },\n description: {\n description: 'Content to be rendered as description'\n },\n descriptionVariant: {\n description: 'Variant that allows changing description sizing styles.'\n },\n icon: {\n description: 'ReactNode to be rendered on the left side of the card',\n },\n children: {\n control: { type: 'text' },\n description: 'Content that is displayed inside the card under the pre-defined props',\n },\n onClick: {\n description: 'On click action to be triggered on card click.',\n },\n dropShadow: {\n description: 'Wether to display card with drop shadow styles or not.',\n },\n actionIcon: {\n description: 'ReactNode to be rendered on the right side of the card when there is an onClick action. By default it renders the ChevronRightIcon.',\n },\n },\n args: {\n density: 'balanced',\n description: 'Believe you’re a great fit but can’t find a position listed for your skill set? We’d love to hear from you!',\n descriptionVariant: 'large',\n label: 'Label',\n title: 'Honest, simple insurance',\n titleVariant: 'large',\n icon: 'ABC',\n children: '',\n classNames: {\n wrapper: '',\n label: '',\n title: '',\n description: '',\n children: '',\n icon: ''\n },\n dropShadow: true,\n }\n};\n\nexport const CardStory = ({ \n actionIcon,\n children,\n classNames,\n density,\n description,\n descriptionVariant,\n dropShadow,\n icon,\n label,\n onClick,\n title,\n titleVariant,\n}: CardProps) => (\n <div className='d-flex p24 bg-grey-200'>\n <Card\n classNames={classNames}\n description={description}\n descriptionVariant={descriptionVariant}\n density={density}\n dropShadow={dropShadow}\n icon={icon}\n label={label}\n title={title}\n titleVariant={titleVariant}\n onClick={onClick}\n actionIcon={actionIcon}\n >\n {children}\n </Card>\n </div>\n);\n\nCardStory.storyName = \"Card\";\n\nexport const CardDensities = () => (\n <div className='d-flex fd-column gap16 p24 bg-grey-200'>\n <Card\n title={'Card density: Compact'}\n density='compact'\n />\n <Card\n title={'Card density: Balanced'}\n density='balanced'\n />\n <Card\n title={'Card density: Spacious'}\n density='spacious'\n />\n </div>\n);\n\nexport const CardsWithIcons = ({ \n children,\n icon,\n title,\n}: CardProps) => (\n <div className='d-flex gap16 p24 bg-grey-200'>\n <Card\n icon={\n <img\n alt=\"\"\n src={illustrations.aids}\n width={24}\n />\n }\n title={title}\n />\n <Card\n icon={<MehIcon size={24} />}\n title={title}\n />\n </div>\n);\n\nexport const CardWithOnClickAction = ({ \n children,\n icon,\n title,\n}: CardProps) => (\n <div className='d-flex p24 bg-grey-200'>\n <Card\n icon={\n <img\n alt=\"\"\n src={illustrations.aids}\n width={24}\n />\n }\n title={title}\n titleVariant={'medium'}\n onClick={() => {}}\n >\n {children}\n </Card>\n </div>\n);\n\nexport const CardOverridesStyles = ({ \n children,\n label,\n title,\n}: CardProps) => (\n <div className='d-flex p24 bg-grey-200'>\n <Card\n label={label}\n title={title}\n titleVariant={'medium'}\n icon={<PlusCircleIcon color=\"grey-100\" size={32} />}\n classNames={{ \n wrapper: 'bg-grey-700',\n label: 'tc-white',\n title: 'tc-white'\n }}\n >\n {children}\n </Card>\n </div>\n);\n\nexport const CardsWithinCardsAndComplexLayout = ({ \n children,\n label,\n title,\n}: CardProps) => (\n <div className='d-flex p24 bg-grey-200'>\n <Card\n label={(\n <Badge size='small' variant='success'>\n Active\n </Badge>\n )}\n title={(\n <div className='d-flex jc-between ai-center w100'>\n Coverage overview\n\n <Button\n onClick={() => {}}\n variant='filledGray'\n >\n Full coverage details\n </Button>\n </div>\n )}\n >\n <div className='d-flex gap16 mt16'>\n <Card\n description=\"Lost keys\"\n classNames={{ wrapper: 'bg-grey-300' }}\n icon={<CheckIcon color={'primary-500'} />}\n density='compact'\n />\n <Card\n description=\"Broken glass\"\n classNames={{ wrapper: 'bg-grey-300' }}\n icon={<XIcon color={'primary-500'} />}\n density='compact'\n />\n </div>\n \n <div className='d-flex gap16 mt16'>\n <Card\n description=\"Damage to property\"\n classNames={{ wrapper: 'bg-grey-300' }}\n icon={<CheckIcon color={'primary-500'} />}\n density='compact'\n />\n <Card\n description=\"Drones\"\n classNames={{ wrapper: 'bg-grey-300' }}\n icon={<XIcon color={'primary-500'} />}\n density='compact'\n />\n </div>\n </Card>\n </div>\n);\n\nexport default story;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;IAMM,KAAK,GAAG;IACZ,KAAK,EAAE,UAAU;IACjB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,WAAW,EAAE,yBAAyB;SACvC;QACD,KAAK,EAAE;YACL,WAAW,EAAE,iCAAiC;SAC/C;QACD,KAAK,EAAE;YACL,WAAW,EAAE,iCAAiC;SAC/C;QACD,YAAY,EAAE;YACZ,WAAW,EAAE,mDAAmD;SACjE;QACD,WAAW,EAAE;YACX,WAAW,EAAE,uCAAuC;SACrD;QACD,kBAAkB,EAAE;YAClB,WAAW,EAAE,yDAAyD;SACvE;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,uDAAuD;SACrE;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,WAAW,EAAE,uEAAuE;SACrF;QACD,OAAO,EAAE;YACP,WAAW,EAAE,gDAAgD;SAC9D;QACD,UAAU,EAAE;YACV,WAAW,EAAE,wDAAwD;SACtE;QACD,UAAU,EAAE;YACV,WAAW,EAAE,qIAAqI;SACnJ;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,6GAA6G;QAC1H,kBAAkB,EAAE,OAAO;QAC3B,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,0BAA0B;QACjC,YAAY,EAAE,OAAO;QACrB,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACV,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;YACT,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,EAAE;SACT;QACD,UAAU,EAAE,IAAI;KACjB;EACD;IAEW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AC,mBAAmB,iBAChCD,IAAC,IAAI,IACH,WAAW,EAAC,WAAW,EACvB,UAAU,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EACtC,IAAI,EAAEA,IAAC,SAAS,IAAC,KAAK,EAAE,aAAa,WAAI,EACzC,OAAO,EAAC,SAAS,WACjB;wBACFA,IAAC,IAAI,IACH,WAAW,EAAC,cAAc,EAC1B,UAAU,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EACtC,IAAI,EAAEA,IAAC,KAAK,IAAC,KAAK,EAAE,aAAa,WAAI,EACrC,OAAO,EAAC,SAAS,WACjB,aACE;gBAENC,uBAAK,SAAS,EAAC,mBAAmB,iBAChCD,IAAC,IAAI,IACH,WAAW,EAAC,oBAAoB,EAChC,UAAU,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EACtC,IAAI,EAAEA,IAAC,SAAS,IAAC,KAAK,EAAE,aAAa,WAAI,EACzC,OAAO,EAAC,SAAS,WACjB;wBACFA,IAAC,IAAI,IACH,WAAW,EAAC,QAAQ,EACpB,UAAU,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EACtC,IAAI,EAAEA,IAAC,KAAK,IAAC,KAAK,EAAE,aAAa,WAAI,EACrC,OAAO,EAAC,SAAS,WACjB,aACE,aACD,YACH;AAnDS;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { _ as __assign } from '../../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { CardWithLeftIcon } from '../index.js';
4
- import { i as images } from '../../../index-31224f74.js';
4
+ import { a as images } from '../../../index-1693701e.js';
5
5
  import '../../../feather-logo-a3f07990.js';
6
6
  import '../../../style-inject.es-1f59c1d0.js';
7
7
  import '../cardButton/index.js';
@@ -1,7 +1,7 @@
1
1
  import { _ as __assign } from '../../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { CardWithTopIcon } from '../index.js';
4
- import { i as images } from '../../../index-31224f74.js';
4
+ import { a as images } from '../../../index-1693701e.js';
5
5
  import '../../../feather-logo-a3f07990.js';
6
6
  import '../../../style-inject.es-1f59c1d0.js';
7
7
  import '../cardButton/index.js';
@@ -1,7 +1,7 @@
1
1
  import { _ as __assign } from '../../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { InfoCard } from '../index.js';
4
- import { i as images } from '../../../index-31224f74.js';
4
+ import { a as images } from '../../../index-1693701e.js';
5
5
  import '../../../feather-logo-a3f07990.js';
6
6
  import '../../../style-inject.es-1f59c1d0.js';
7
7
  import '../cardButton/index.js';
@@ -5,9 +5,9 @@ import '../../../tslib.es6-5bc94358.js';
5
5
  import '../../../index-6ea95111.js';
6
6
  import '../../../style-inject.es-1f59c1d0.js';
7
7
 
8
- var Meh = (function (props) {
8
+ var MehIcon = (function (props) {
9
9
  return createElement(IconWrapper, props, jsx("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 10v-.04m6 .04v-.04M8.5 15h7m6.5-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" }, void 0));
10
10
  });
11
11
 
12
- export default Meh;
12
+ export default MehIcon;
13
13
  //# sourceMappingURL=Meh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Meh.js","sources":["../../../../../../src/lib/components/icon/icons/Meh.tsx"],"sourcesContent":["/* Generated file. Do not modify. */\nimport { createElement } from 'react';\nimport { IconWrapper } from '../IconWrapper';\nimport type { IconWrapperProps } from '../IconWrapper';\nexport default (props: IconWrapperProps) =>\n createElement(\n IconWrapper,\n props,\n <path\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={2}\n d=\"M9 10v-.04m6 .04v-.04M8.5 15h7m6.5-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z\"\n />\n );\n"],"names":["_jsx"],"mappings":";;;;;;;AAIA,WAAe,UAAC,KAAuB;IACrC,OAAA,aAAa,CACX,WAAW,EACX,KAAK,EACLA,cACE,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,wGAAwG,WAC1G,CACH;AAVD,CAUC;;;;"}
1
+ {"version":3,"file":"Meh.js","sources":["../../../../../../src/lib/components/icon/icons/Meh.tsx"],"sourcesContent":["/* Generated file. Do not modify. */\nimport { createElement } from 'react';\nimport { IconWrapper } from '../IconWrapper';\nimport type { IconWrapperProps } from '../IconWrapper';\nexport default (props: IconWrapperProps) =>\n createElement(\n IconWrapper,\n props,\n <path\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={2}\n d=\"M9 10v-.04m6 .04v-.04M8.5 15h7m6.5-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z\"\n />\n );\n"],"names":["_jsx"],"mappings":";;;;;;;AAIA,eAAe,UAAC,KAAuB;IACrC,OAAA,aAAa,CACX,WAAW,EACX,KAAK,EACLA,cACE,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,wGAAwG,WAC1G,CACH;AAVD,CAUC;;;;"}
@@ -5,9 +5,9 @@ import '../../../tslib.es6-5bc94358.js';
5
5
  import '../../../index-6ea95111.js';
6
6
  import '../../../style-inject.es-1f59c1d0.js';
7
7
 
8
- var PlusCircle = (function (props) {
8
+ var PlusCircleIcon = (function (props) {
9
9
  return createElement(IconWrapper, props, jsx("circle", { cx: 12, cy: 12, r: 10, stroke: "currentColor", strokeWidth: 2 }, void 0), jsx("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12h6M12 15V9M8 12h8M12 16V8" }, void 0));
10
10
  });
11
11
 
12
- export default PlusCircle;
12
+ export default PlusCircleIcon;
13
13
  //# sourceMappingURL=PlusCircle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlusCircle.js","sources":["../../../../../../src/lib/components/icon/icons/PlusCircle.tsx"],"sourcesContent":["/* Generated file. Do not modify. */\nimport { createElement } from 'react';\nimport { IconWrapper } from '../IconWrapper';\nimport type { IconWrapperProps } from '../IconWrapper';\nexport default (props: IconWrapperProps) =>\n createElement(\n IconWrapper,\n props,\n <circle cx={12} cy={12} r={10} stroke=\"currentColor\" strokeWidth={2} />,\n <path\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={2}\n d=\"M9 12h6M12 15V9M8 12h8M12 16V8\"\n />\n );\n"],"names":["_jsx"],"mappings":";;;;;;;AAIA,kBAAe,UAAC,KAAuB;IACrC,OAAA,aAAa,CACX,WAAW,EACX,KAAK,EACLA,gBAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAC,cAAc,EAAC,WAAW,EAAE,CAAC,WAAI,EACvEA,cACE,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,gCAAgC,WAClC,CACH;AAXD,CAWC;;;;"}
1
+ {"version":3,"file":"PlusCircle.js","sources":["../../../../../../src/lib/components/icon/icons/PlusCircle.tsx"],"sourcesContent":["/* Generated file. Do not modify. */\nimport { createElement } from 'react';\nimport { IconWrapper } from '../IconWrapper';\nimport type { IconWrapperProps } from '../IconWrapper';\nexport default (props: IconWrapperProps) =>\n createElement(\n IconWrapper,\n props,\n <circle cx={12} cy={12} r={10} stroke=\"currentColor\" strokeWidth={2} />,\n <path\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={2}\n d=\"M9 12h6M12 15V9M8 12h8M12 16V8\"\n />\n );\n"],"names":["_jsx"],"mappings":";;;;;;;AAIA,sBAAe,UAAC,KAAuB;IACrC,OAAA,aAAa,CACX,WAAW,EACX,KAAK,EACLA,gBAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAC,cAAc,EAAC,WAAW,EAAE,CAAC,WAAI,EACvEA,cACE,MAAM,EAAC,cAAc,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,gCAAgC,WAClC,CACH;AAXD,CAWC;;;;"}
@@ -2,7 +2,7 @@ import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useState } from 'react';
4
4
  import { Input } from '../input/index.js';
5
- import { i as icons } from '../../index-0a8de35a.js';
5
+ import { i as icons } from '../../index-83ae7f18.js';
6
6
  import { Button } from '../button/index.js';
7
7
  import { c as classNames } from '../../index-6ea95111.js';
8
8
  import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { IconWrapper } from './IconWrapper/IconWrapper.js';
3
- import { i as icons } from '../../index-0a8de35a.js';
3
+ import { i as icons } from '../../index-83ae7f18.js';
4
4
  import '../../tslib.es6-5bc94358.js';
5
5
  import '../../index-6ea95111.js';
6
6
  import '../../style-inject.es-1f59c1d0.js';
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { useState } from 'react';
3
3
  import { Checkbox } from './index.js';
4
- import { i as images } from '../../../index-31224f74.js';
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';