@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
@@ -198,7 +198,7 @@ import _Map from './components/icon/icons/Map.js';
198
198
  import Maximize2 from './components/icon/icons/Maximize2.js';
199
199
  import Maximize from './components/icon/icons/Maximize.js';
200
200
  import MedicationPills from './components/icon/icons/MedicationPills.js';
201
- import Meh from './components/icon/icons/Meh.js';
201
+ import MehIcon from './components/icon/icons/Meh.js';
202
202
  import MentalHealth from './components/icon/icons/MentalHealth.js';
203
203
  import MenuDotsMoreHorizontal from './components/icon/icons/MenuDotsMoreHorizontal.js';
204
204
  import MenuDotsMoreVertical from './components/icon/icons/MenuDotsMoreVertical.js';
@@ -241,7 +241,7 @@ import PlaneFilled from './components/icon/icons/PlaneFilled.js';
241
241
  import Plane from './components/icon/icons/Plane.js';
242
242
  import PlayCircle from './components/icon/icons/PlayCircle.js';
243
243
  import Play from './components/icon/icons/Play.js';
244
- import PlusCircle from './components/icon/icons/PlusCircle.js';
244
+ import PlusCircleIcon from './components/icon/icons/PlusCircle.js';
245
245
  import PlusSquare from './components/icon/icons/PlusSquare.js';
246
246
  import PlusIcon from './components/icon/icons/Plus.js';
247
247
  import Pocket from './components/icon/icons/Pocket.js';
@@ -562,7 +562,7 @@ var icons = /*#__PURE__*/Object.freeze({
562
562
  Maximize2Icon: Maximize2,
563
563
  MaximizeIcon: Maximize,
564
564
  MedicationPillsIcon: MedicationPills,
565
- MehIcon: Meh,
565
+ MehIcon: MehIcon,
566
566
  MentalHealthIcon: MentalHealth,
567
567
  MenuDotsMoreHorizontalIcon: MenuDotsMoreHorizontal,
568
568
  MenuDotsMoreVerticalIcon: MenuDotsMoreVertical,
@@ -605,7 +605,7 @@ var icons = /*#__PURE__*/Object.freeze({
605
605
  PlaneIcon: Plane,
606
606
  PlayCircleIcon: PlayCircle,
607
607
  PlayIcon: Play,
608
- PlusCircleIcon: PlusCircle,
608
+ PlusCircleIcon: PlusCircleIcon,
609
609
  PlusSquareIcon: PlusSquare,
610
610
  PlusIcon: PlusIcon,
611
611
  PocketIcon: Pocket,
@@ -726,4 +726,4 @@ var icons = /*#__PURE__*/Object.freeze({
726
726
  });
727
727
 
728
728
  export { icons as i };
729
- //# sourceMappingURL=index-0a8de35a.js.map
729
+ //# sourceMappingURL=index-83ae7f18.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-0a8de35a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index-83ae7f18.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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/esm/index.js CHANGED
@@ -23,10 +23,10 @@ export { ComparisonTable } from './components/comparisonTable/index.js';
23
23
  export { SegmentedControl } from './components/segmentedControl/index.js';
24
24
  export { Markdown } from './components/markdown/index.js';
25
25
  export { Link } from './components/link/index.js';
26
- export { i as images } from './index-31224f74.js';
26
+ export { i as illustrations, a as images } from './index-1693701e.js';
27
27
  export { Spinner } from './components/spinner/index.js';
28
28
  export { Toggle } from './components/input/toggle/index.js';
29
- export { a as Toaster, t as toast } from './index-eff726d3.js';
29
+ export { a as Toaster, t as toast } from './index-45edc7d0.js';
30
30
  export { default as Svg1Icon } from './components/icon/icons/1.js';
31
31
  export { default as Svg2Icon } from './components/icon/icons/2.js';
32
32
  export { default as Svg3Icon } from './components/icon/icons/3.js';
@@ -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;
@@ -1,26 +1,57 @@
1
1
  import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { i as images } from '../../index-31224f74.js';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { useState } from 'react';
4
+ import { i as illustrations } from '../../index-1693701e.js';
5
+ import { c as classNames } from '../../index-6ea95111.js';
6
+ import { Input } from '../../components/input/index.js';
7
+ import { Button } from '../../components/button/index.js';
8
+ import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
9
+ import '../../index-fb46adf9.js';
10
+
11
+ var css_248z = ".style-module_searchBar__1ADz1 {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n border-bottom: 1px solid #ededf2;\n padding: 4px 20px;\n z-index: 9;\n}\n\n.style-module_imageWrapper__1t-SZ {\n width: 32px;\n height: 32px;\n}\n.style-module_imageWrapper__1t-SZ img {\n width: 100%;\n}";
12
+ var styles = {"searchBar":"style-module_searchBar__1ADz1","imageWrapper":"style-module_imageWrapper__1t-SZ"};
13
+ styleInject(css_248z);
4
14
 
5
15
  var story = {
6
- title: 'Utils/Images',
16
+ title: 'Utils/Illustrations',
7
17
  parameters: {
8
18
  docs: {
9
19
  description: {
10
- component: 'Use the `images` object export to access our list of available images.',
20
+ component: 'Use the `illustrations` object export to access our list of available images.',
11
21
  },
12
22
  },
13
23
  },
14
24
  };
15
- var Images = function () { return (jsx("div", __assign({ className: "d-flex gap8 f-wrap" }, { children: Object.entries(images).map(function (_a) {
16
- var key = _a[0], value = _a[1];
17
- if (typeof value !== 'string') {
18
- return null;
25
+ var initialImages = Object.entries(illustrations);
26
+ var Illustrations = function () {
27
+ var _a = useState(''), value = _a[0], setValue = _a[1];
28
+ var _b = useState(initialImages), options = _b[0], setOptions = _b[1];
29
+ var clearSearch = function () {
30
+ setValue('');
31
+ setOptions(initialImages);
32
+ };
33
+ var handleOnSearch = function (event) {
34
+ var searchValue = event.target.value;
35
+ setValue(event.target.value);
36
+ if (searchValue === '') {
37
+ setOptions(initialImages);
38
+ return;
19
39
  }
20
- return (jsxs("div", __assign({ className: "ws3 d-flex fd-column ai-center br4 p24 pt16 pb16 bg-grey-100" }, { children: [jsx("span", __assign({ className: "p-p--small mb8" }, { children: key }), void 0),
21
- jsx("img", { alt: key, src: value }, void 0)] }), key));
22
- }) }), void 0)); };
40
+ setOptions(initialImages.filter(function (_a) {
41
+ var key = _a[0];
42
+ return key.toLowerCase()
43
+ .includes(searchValue.toLowerCase());
44
+ }));
45
+ };
46
+ return (jsxs("div", { children: [jsx("div", __assign({ className: classNames(styles.searchBar, 'bg-white') }, { children: jsxs("div", __assign({ className: 'd-flex gap8 wmx12 m-auto' }, { children: [jsx(Input, { className: 'w70', onChange: handleOnSearch, placeholder: 'Search icon', value: value }, void 0),
47
+ jsx(Button, __assign({ className: 'w30', disabled: !value, onClick: clearSearch }, { children: "Clear search" }), void 0)] }), void 0) }), void 0),
48
+ jsx("div", __assign({ className: 'd-flex f-wrap' }, { children: options.map(function (_a) {
49
+ var iconKey = _a[0], src = _a[1];
50
+ return (jsx("div", __assign({ className: "w20 p8" }, { children: jsxs("div", __assign({ className: 'br4 p24 pt16 pb16 bg-grey-100 w100 d-flex fd-column ai-center' }, { children: [jsx("div", __assign({ className: styles.imageWrapper }, { children: jsx("img", { src: src, alt: iconKey }, void 0) }), void 0),
51
+ jsx("span", __assign({ className: 'p-p--small mt16' }, { children: iconKey }), void 0)] }), void 0) }), iconKey));
52
+ }) }), void 0)] }, void 0));
53
+ };
23
54
 
24
55
  export default story;
25
- export { Images };
56
+ export { Illustrations };
26
57
  //# sourceMappingURL=index.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/util/images/index.stories.tsx"],"sourcesContent":["import { images } from '../../util/images';\n\nconst story = {\n title: 'Utils/Images',\n parameters: {\n docs: {\n description: {\n component:\n 'Use the `images` object export to access our list of available images.',\n },\n },\n },\n};\n\nexport const Images = () => (\n <div className=\"d-flex gap8 f-wrap\">\n {Object.entries(images).map(([key, value]) => {\n if (typeof value !== 'string') {\n return null;\n }\n return (\n <div\n key={key}\n className=\"ws3 d-flex fd-column ai-center br4 p24 pt16 pb16 bg-grey-100\"\n >\n <span className=\"p-p--small mb8\">{key}</span>\n\n <img alt={key} src={value} />\n </div>\n );\n })}\n </div>\n);\n\nexport default story;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;IAEM,KAAK,GAAG;IACZ,KAAK,EAAE,cAAc;IACrB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EACP,wEAAwE;aAC3E;SACF;KACF;EACD;IAEW,MAAM,GAAG,cAAM,QAC1BA,sBAAK,SAAS,EAAC,oBAAoB,gBAChC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,UAAC,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QACtC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,OAAO,IAAI,CAAC;SACb;QACD,QACEC,uBAEE,SAAS,EAAC,8DAA8D,iBAExED,uBAAM,SAAS,EAAC,gBAAgB,gBAAE,GAAG,YAAQ;gBAE7CA,aAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,WAAI,MALxB,GAAG,CAMJ,EACN;KACH,CAAC,YACE;;;;;"}
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/util/images/index.stories.tsx"],"sourcesContent":["import { ChangeEvent, useState } from 'react';\nimport { illustrations } from '../../util/images';\nimport classNames from 'classnames';\nimport { Button, Input } from '../..';\nimport styles from './style.module.scss';\n\nconst story = {\n title: 'Utils/Illustrations',\n parameters: {\n docs: {\n description: {\n component:\n 'Use the `illustrations` object export to access our list of available images.',\n },\n },\n },\n};\n\nconst initialImages = Object.entries(illustrations)\n\nexport const Illustrations = () => {\n const [value, setValue] = useState('');\n const [options, setOptions] = useState(initialImages);\n\n const clearSearch = () => {\n setValue('');\n setOptions(initialImages);\n };\n\n const handleOnSearch = (event: ChangeEvent<HTMLInputElement>) => {\n const searchValue = event.target.value;\n setValue(event.target.value);\n\n if (searchValue === '') {\n setOptions(initialImages);\n return;\n }\n\n setOptions(initialImages.filter(([key]) => \n key.toLowerCase()\n .includes(searchValue.toLowerCase())\n ));\n };\n\n return (\n <div>\n <div className={classNames(styles.searchBar, 'bg-white')}>\n <div className='d-flex gap8 wmx12 m-auto'>\n <Input\n className='w70'\n onChange={handleOnSearch}\n placeholder='Search icon'\n value={value} \n />\n <Button className='w30' disabled={!value} onClick={clearSearch}>\n Clear search\n </Button>\n </div>\n </div>\n\n <div className='d-flex f-wrap'>\n {options.map(([iconKey, src]) => (\n <div key={iconKey} className=\"w20 p8\">\n <div className='br4 p24 pt16 pb16 bg-grey-100 w100 d-flex fd-column ai-center'>\n <div className={styles.imageWrapper}>\n <img src={src} alt={iconKey} />\n </div>\n <span className='p-p--small mt16'>{iconKey}</span>\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport default story;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;IAMM,KAAK,GAAG;IACZ,KAAK,EAAE,qBAAqB;IAC5B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EACP,+EAA+E;aAClF;SACF;KACF;EACD;AAEF,IAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IAEtC,aAAa,GAAG;IACrB,IAAA,KAAoB,QAAQ,CAAC,EAAE,CAAC,EAA/B,KAAK,QAAA,EAAE,QAAQ,QAAgB,CAAC;IACjC,IAAA,KAAwB,QAAQ,CAAC,aAAa,CAAC,EAA9C,OAAO,QAAA,EAAE,UAAU,QAA2B,CAAC;IAEtD,IAAM,WAAW,GAAG;QAClB,QAAQ,CAAC,EAAE,CAAC,CAAC;QACb,UAAU,CAAC,aAAa,CAAC,CAAC;KAC3B,CAAC;IAEF,IAAM,cAAc,GAAG,UAAC,KAAoC;QAC1D,IAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;QACvC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,WAAW,KAAK,EAAE,EAAE;YACtB,UAAU,CAAC,aAAa,CAAC,CAAC;YAC1B,OAAO;SACR;QAED,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,UAAC,EAAK;gBAAJ,GAAG,QAAA;YACnC,OAAA,GAAG,CAAC,WAAW,EAAE;iBACd,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;SAAA,CACvC,CAAC,CAAC;KACJ,CAAC;IAEF,QACEA,yBACEC,sBAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,gBACtDD,uBAAK,SAAS,EAAC,0BAA0B,iBACzCC,IAAC,KAAK,IACJ,SAAS,EAAC,KAAK,EACf,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAC,aAAa,EACzB,KAAK,EAAE,KAAK,WACZ;wBACFA,IAAC,MAAM,aAAC,SAAS,EAAC,KAAK,EAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,0CAErD,aACH,YACF;YAENA,sBAAK,SAAS,EAAC,eAAe,gBAC3B,OAAO,CAAC,GAAG,CAAC,UAAC,EAAc;wBAAb,OAAO,QAAA,EAAE,GAAG,QAAA;oBAAM,QAC/BA,sBAAmB,SAAS,EAAC,QAAQ,gBACnCD,uBAAK,SAAS,EAAC,+DAA+D,iBAC5EC,sBAAK,SAAS,EAAE,MAAM,CAAC,YAAY,gBACjCA,aAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,WAAI,YAC3B;gCACNA,uBAAM,SAAS,EAAC,iBAAiB,gBAAE,OAAO,YAAQ,aAC9C,KANE,OAAO,CAOX;iBACP,CAAC,YACE,YACF,EACN;AACJ;;;;;"}
package/dist/index.css CHANGED
@@ -2773,7 +2773,7 @@ input:checked[type=checkbox] + .p-label--bordered {
2773
2773
  }
2774
2774
 
2775
2775
  .bs-sm {
2776
- box-shadow: 0px 2px 28px rgba(97, 96, 162, 0.1);
2776
+ box-shadow: 0px 2px 20px 0px rgba(97, 96, 162, 0.06);
2777
2777
  }
2778
2778
 
2779
2779
  .bs-md {
@@ -1,5 +1,5 @@
1
1
  $bs-xs: 0px 4px 6px rgba(97, 96, 162, 0.01);
2
- $bs-sm: 0px 2px 28px rgba(97, 96, 162, 0.1);
2
+ $bs-sm: 0px 2px 20px 0px rgba(97, 96, 162, 0.06);
3
3
  $bs-md: 0px 2px 28px rgba(97, 96, 162, 0.12);
4
4
  $bs-l: 0px 2px 28px rgba(97, 96, 162, 0.15);
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popsure/dirty-swan",
3
- "version": "0.41.0-rc.3",
3
+ "version": "0.41.2",
4
4
  "author": "Vincent Audoire <vincent@getpopsure.com>",
5
5
  "license": "MIT",
6
6
  "private": false,
package/src/index.tsx CHANGED
@@ -36,6 +36,7 @@ export {
36
36
  InformationBox,
37
37
  Badge,
38
38
  images,
39
+ illustrations,
39
40
  Spinner,
40
41
  Toggle,
41
42
  Toaster,
@@ -46,6 +47,7 @@ export * from './lib/components/icon';
46
47
 
47
48
  export type {
48
49
  DownloadStatus,
50
+ IllustrationKeys,
49
51
  FileType,
50
52
  MultiDropzoneProps,
51
53
  TableHeader,