@popsure/dirty-swan 0.35.0 → 0.36.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 (83) hide show
  1. package/dist/cjs/index.d.ts +1 -1
  2. package/dist/cjs/index.js +101 -79
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/lib/components/badge/index.d.ts +10 -0
  5. package/dist/cjs/lib/components/badge/index.stories.d.ts +34 -0
  6. package/dist/cjs/lib/components/badge/index.test.d.ts +1 -0
  7. package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -3
  8. package/dist/cjs/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +13 -2
  9. package/dist/cjs/lib/components/input/autoSuggestInput/index.d.ts +7 -7
  10. package/dist/cjs/lib/components/input/autoSuggestInput/index.stories.d.ts +84 -0
  11. package/dist/cjs/lib/components/input/autoSuggestMultiSelect/index.d.ts +7 -7
  12. package/dist/cjs/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +77 -0
  13. package/dist/cjs/lib/index.d.ts +4 -3
  14. package/dist/esm/components/badge/index.js +27 -0
  15. package/dist/esm/components/badge/index.js.map +1 -0
  16. package/dist/esm/components/badge/index.stories.js +39 -0
  17. package/dist/esm/components/badge/index.stories.js.map +1 -0
  18. package/dist/esm/components/badge/index.test.js +21 -0
  19. package/dist/esm/components/badge/index.test.js.map +1 -0
  20. package/dist/esm/components/cards/cardButton/index.js +2 -1
  21. package/dist/esm/components/cards/cardButton/index.js.map +1 -1
  22. package/dist/esm/components/cards/cardButton/index.stories.js +2 -1
  23. package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -1
  24. package/dist/esm/components/cards/cardWithLeftIcon/index.js +2 -1
  25. package/dist/esm/components/cards/cardWithLeftIcon/index.js.map +1 -1
  26. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js +15 -3
  27. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js.map +1 -1
  28. package/dist/esm/components/cards/cardWithTopIcon/index.js +2 -1
  29. package/dist/esm/components/cards/cardWithTopIcon/index.js.map +1 -1
  30. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js +2 -1
  31. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js.map +1 -1
  32. package/dist/esm/components/cards/cardWithTopLeftIcon/index.js +2 -1
  33. package/dist/esm/components/cards/cardWithTopLeftIcon/index.js.map +1 -1
  34. package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js +2 -1
  35. package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js.map +1 -1
  36. package/dist/esm/components/cards/index.js +7 -5
  37. package/dist/esm/components/cards/index.js.map +1 -1
  38. package/dist/esm/components/cards/infoCard/index.js +2 -1
  39. package/dist/esm/components/cards/infoCard/index.js.map +1 -1
  40. package/dist/esm/components/cards/infoCard/index.stories.js +2 -1
  41. package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -1
  42. package/dist/esm/components/input/autoSuggestInput/index.js +3 -3
  43. package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
  44. package/dist/esm/components/input/autoSuggestInput/index.stories.js +131 -0
  45. package/dist/esm/components/input/autoSuggestInput/index.stories.js.map +1 -0
  46. package/dist/esm/components/input/autoSuggestMultiSelect/index.js +4 -4
  47. package/dist/esm/components/input/autoSuggestMultiSelect/index.js.map +1 -1
  48. package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js +107 -0
  49. package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js.map +1 -0
  50. package/dist/esm/feather-logo-a3f07990.js +4 -0
  51. package/dist/esm/feather-logo-a3f07990.js.map +1 -0
  52. package/dist/esm/{index-47663d39.js → index-29ac387a.js} +3 -4
  53. package/dist/esm/index-29ac387a.js.map +1 -0
  54. package/dist/esm/index.d.ts +1 -1
  55. package/dist/esm/index.js +5 -3
  56. package/dist/esm/index.js.map +1 -1
  57. package/dist/esm/lib/components/badge/index.d.ts +10 -0
  58. package/dist/esm/lib/components/badge/index.stories.d.ts +34 -0
  59. package/dist/esm/lib/components/badge/index.test.d.ts +1 -0
  60. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -3
  61. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +13 -2
  62. package/dist/esm/lib/components/input/autoSuggestInput/index.d.ts +7 -7
  63. package/dist/esm/lib/components/input/autoSuggestInput/index.stories.d.ts +84 -0
  64. package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.d.ts +7 -7
  65. package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +77 -0
  66. package/dist/esm/lib/index.d.ts +4 -3
  67. package/package.json +1 -1
  68. package/src/index.tsx +1 -0
  69. package/src/lib/components/badge/index.stories.tsx +45 -0
  70. package/src/lib/components/badge/index.test.tsx +11 -0
  71. package/src/lib/components/badge/index.tsx +54 -0
  72. package/src/lib/components/badge/style.module.scss +13 -0
  73. package/src/lib/components/cards/cardWithLeftIcon/index.stories.tsx +15 -0
  74. package/src/lib/components/cards/cardWithLeftIcon/index.tsx +19 -5
  75. package/src/lib/components/input/autoSuggestInput/index.stories.tsx +162 -0
  76. package/src/lib/components/input/autoSuggestInput/index.tsx +15 -13
  77. package/src/lib/components/input/autoSuggestMultiSelect/index.stories.tsx +125 -0
  78. package/src/lib/components/input/autoSuggestMultiSelect/index.tsx +13 -11
  79. package/src/lib/index.tsx +4 -2
  80. package/dist/esm/index-47663d39.js.map +0 -1
  81. package/src/lib/components/input/autoSuggestInput/index.stories.mdx +0 -138
  82. package/src/lib/components/input/autoSuggestMultiSelect/index.stories.mdx +0 -115
  83. package/src/lib/scss/private/components/badge.stories.mdx +0 -43
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ declare type Variant = 'warning' | 'error' | 'success' | 'information' | 'neutral' | 'neutral200' | 'neutral300' | 'primary' | 'primary900';
3
+ export interface BadgeProps {
4
+ className?: string;
5
+ variant?: Variant;
6
+ size?: 'small' | 'medium' | 'large';
7
+ children: ReactNode;
8
+ }
9
+ declare const Badge: ({ className, size, variant, children, }: BadgeProps) => JSX.Element;
10
+ export { Badge };
@@ -0,0 +1,34 @@
1
+ import { BadgeProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: ({ className, size, variant, children, }: BadgeProps) => JSX.Element;
5
+ argTypes: {
6
+ children: {
7
+ control: {
8
+ type: string;
9
+ };
10
+ defaultValue: string;
11
+ description: string;
12
+ };
13
+ className: {
14
+ defaultValue: string;
15
+ description: string;
16
+ control: {
17
+ type: string;
18
+ };
19
+ };
20
+ size: {
21
+ defaultValue: string;
22
+ description: string;
23
+ };
24
+ variant: {
25
+ defaultValue: string;
26
+ description: string;
27
+ };
28
+ };
29
+ };
30
+ export declare const BadgeStory: {
31
+ ({ children, className, size, variant, }: BadgeProps): JSX.Element;
32
+ storyName: string;
33
+ };
34
+ export default story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,8 +1,11 @@
1
1
  import { CardProps } from '..';
2
- import { Icon } from '../icons';
3
- export declare type CardWithLeftIconProps = CardProps & {
2
+ import { Icon, IconSize } from '../icons';
3
+ export declare type CardWithLeftIconProps = Omit<CardProps, 'title'> & {
4
4
  cardSize?: 'xsmall' | 'small' | 'medium' | 'big';
5
5
  leftIcon?: Icon;
6
6
  rightIcon?: 'arrow' | Icon;
7
+ leftIconSize?: IconSize;
8
+ title?: string;
9
+ subtitle?: string;
7
10
  };
8
- export declare const CardWithLeftIcon: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: CardWithLeftIconProps) => JSX.Element;
11
+ export declare const CardWithLeftIcon: ({ className, title, subtitle, cardSize, children, leftIcon, rightIcon, state, dropshadow, leftIconSize, ...props }: CardWithLeftIconProps) => JSX.Element;
@@ -1,12 +1,16 @@
1
1
  import { CardWithLeftIconProps } from '.';
2
2
  declare const story: {
3
3
  title: string;
4
- component: ({ className, title, cardSize, children, leftIcon, rightIcon, state, dropshadow, ...props }: CardWithLeftIconProps) => JSX.Element;
4
+ component: ({ className, title, subtitle, cardSize, children, leftIcon, rightIcon, state, dropshadow, leftIconSize, ...props }: CardWithLeftIconProps) => JSX.Element;
5
5
  argTypes: {
6
6
  title: {
7
7
  defaultValue: string;
8
8
  description: string;
9
9
  };
10
+ subtitle: {
11
+ defaultValue: string;
12
+ description: string;
13
+ };
10
14
  children: {
11
15
  type: string;
12
16
  defaultValue: string;
@@ -23,6 +27,13 @@ declare const story: {
23
27
  };
24
28
  description: string;
25
29
  };
30
+ leftIconSize: {
31
+ defaultValue: {
32
+ width: number;
33
+ height: number;
34
+ };
35
+ description: string;
36
+ };
26
37
  rightIcon: {
27
38
  defaultValue: {
28
39
  src: "https://assets.cdn.feather-insurance.com/assets/images/washingMachine.svg";
@@ -49,7 +60,7 @@ declare const story: {
49
60
  };
50
61
  };
51
62
  export declare const CardWithLeftIconStory: {
52
- ({ title, dropshadow, children, className, cardSize, leftIcon, rightIcon, state, }: CardWithLeftIconProps): JSX.Element;
63
+ ({ title, subtitle, dropshadow, children, className, cardSize, leftIcon, leftIconSize, rightIcon, state, }: CardWithLeftIconProps): JSX.Element;
53
64
  storyName: string;
54
65
  };
55
66
  export default story;
@@ -1,6 +1,6 @@
1
- import Autosuggest, { RenderInputComponentProps } from 'react-autosuggest';
1
+ import { RenderInputComponentProps } from 'react-autosuggest';
2
2
  import { Option } from '../../../models/autoSuggestInput';
3
- declare const _default: ({ currentOption, suggestions, handleSuggestionSelected, onChange, handleSuggestionFetchRequest, handleSuggestionClearRequest, placeholder, className, wrapText, inputProps }: {
3
+ export interface AutoSuggestInputProps {
4
4
  currentOption: string;
5
5
  suggestions: Option[];
6
6
  handleSuggestionSelected: (value: Option) => void;
@@ -8,8 +8,8 @@ declare const _default: ({ currentOption, suggestions, handleSuggestionSelected,
8
8
  handleSuggestionFetchRequest: (value: Option) => void;
9
9
  handleSuggestionClearRequest: () => void;
10
10
  placeholder: string;
11
- className?: string | undefined;
12
- wrapText?: boolean | undefined;
13
- inputProps?: Omit<Autosuggest.RenderInputComponentProps, "value" | "onChange"> | undefined;
14
- }) => JSX.Element;
15
- export default _default;
11
+ className?: string;
12
+ wrapText?: boolean;
13
+ inputProps?: Omit<RenderInputComponentProps, 'value' | 'onChange'>;
14
+ }
15
+ export declare const AutoSuggestInput: ({ currentOption, suggestions, handleSuggestionSelected, onChange, handleSuggestionFetchRequest, handleSuggestionClearRequest, placeholder, className, wrapText, inputProps }: AutoSuggestInputProps) => JSX.Element;
@@ -0,0 +1,84 @@
1
+ import { AutoSuggestInputProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: ({ currentOption, suggestions, handleSuggestionSelected, onChange, handleSuggestionFetchRequest, handleSuggestionClearRequest, placeholder, className, wrapText, inputProps }: AutoSuggestInputProps) => JSX.Element;
5
+ argTypes: {
6
+ suggestions: {
7
+ description: string;
8
+ defaultValue: {
9
+ value: string;
10
+ leftIcon: string;
11
+ }[];
12
+ };
13
+ currentOption: {
14
+ defaultValue: string;
15
+ description: string;
16
+ };
17
+ placeholder: {
18
+ defaultValue: string;
19
+ description: string;
20
+ };
21
+ className: {
22
+ defaultValue: string;
23
+ description: string;
24
+ control: {
25
+ type: string;
26
+ };
27
+ };
28
+ wrapText: {
29
+ defaultValue: boolean;
30
+ description: string;
31
+ };
32
+ inputProps: {
33
+ defaultValue: {};
34
+ description: string;
35
+ control: {
36
+ type: string;
37
+ };
38
+ table: {
39
+ type: {
40
+ summary: string;
41
+ };
42
+ };
43
+ };
44
+ handleSuggestionSelected: {
45
+ description: string;
46
+ action: boolean;
47
+ table: {
48
+ category: string;
49
+ };
50
+ };
51
+ onChange: {
52
+ description: string;
53
+ action: boolean;
54
+ table: {
55
+ category: string;
56
+ };
57
+ };
58
+ handleSuggestionFetchRequest: {
59
+ description: string;
60
+ action: boolean;
61
+ table: {
62
+ category: string;
63
+ };
64
+ };
65
+ handleSuggestionClearRequest: {
66
+ description: string;
67
+ action: boolean;
68
+ table: {
69
+ category: string;
70
+ };
71
+ };
72
+ };
73
+ parameters: {
74
+ componentSubtitle: string;
75
+ customTypes: {
76
+ Option: string;
77
+ };
78
+ };
79
+ };
80
+ export declare const AutoSuggestInputStory: {
81
+ ({ currentOption, suggestions, handleSuggestionSelected, onChange, handleSuggestionFetchRequest, handleSuggestionClearRequest, placeholder, className, wrapText, inputProps, }: AutoSuggestInputProps): JSX.Element;
82
+ storyName: string;
83
+ };
84
+ export default story;
@@ -1,11 +1,11 @@
1
1
  import { Option } from '../../../models/autoSuggestInput';
2
- declare const _default: ({ options, selectedValues, setValues, placeholder, chipsListClassName, multiSelectClassName, wrapText, }: {
2
+ export interface AutoSuggestMultiSelectProps {
3
3
  options: Option[];
4
- selectedValues?: Option[] | undefined;
4
+ selectedValues?: Option[];
5
5
  setValues: (values: Option[]) => void;
6
6
  placeholder: string;
7
- chipsListClassName?: string | undefined;
8
- multiSelectClassName?: string | undefined;
9
- wrapText?: boolean | undefined;
10
- }) => JSX.Element;
11
- export default _default;
7
+ chipsListClassName?: string;
8
+ multiSelectClassName?: string;
9
+ wrapText?: boolean;
10
+ }
11
+ export declare const AutoSuggestMultiSelect: ({ options, selectedValues, setValues, placeholder, chipsListClassName, multiSelectClassName, wrapText, }: AutoSuggestMultiSelectProps) => JSX.Element;
@@ -0,0 +1,77 @@
1
+ import { AutoSuggestMultiSelectProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ subtitle: string;
5
+ component: ({ options, selectedValues, setValues, placeholder, chipsListClassName, multiSelectClassName, wrapText, }: AutoSuggestMultiSelectProps) => JSX.Element;
6
+ argTypes: {
7
+ options: {
8
+ description: string;
9
+ defaultValue: {
10
+ value: string;
11
+ leftIcon: string;
12
+ }[];
13
+ table: {
14
+ type: {
15
+ summary: string;
16
+ };
17
+ };
18
+ };
19
+ selectedValues: {
20
+ description: string;
21
+ defaultValue: {
22
+ value: string;
23
+ leftIcon: string;
24
+ }[];
25
+ table: {
26
+ type: {
27
+ summary: string;
28
+ };
29
+ };
30
+ };
31
+ placeholder: {
32
+ defaultValue: string;
33
+ description: string;
34
+ };
35
+ chipsListClassName: {
36
+ defaultValue: string;
37
+ description: string;
38
+ control: {
39
+ type: string;
40
+ };
41
+ };
42
+ multiSelectClassName: {
43
+ defaultValue: string;
44
+ description: string;
45
+ control: {
46
+ type: string;
47
+ };
48
+ };
49
+ wrapText: {
50
+ defaultValue: boolean;
51
+ description: string;
52
+ };
53
+ setValues: {
54
+ description: string;
55
+ action: boolean;
56
+ table: {
57
+ category: string;
58
+ };
59
+ };
60
+ };
61
+ parameters: {
62
+ componentSubtitle: string;
63
+ docs: {
64
+ description: {
65
+ component: string;
66
+ };
67
+ };
68
+ customTypes: {
69
+ Option: string;
70
+ };
71
+ };
72
+ };
73
+ export declare const AutoSuggestMultiSelectStory: {
74
+ ({ options, selectedValues, setValues, placeholder, chipsListClassName, multiSelectClassName, wrapText, }: AutoSuggestMultiSelectProps): JSX.Element;
75
+ storyName: string;
76
+ };
77
+ export default story;
@@ -7,18 +7,19 @@ import { DownloadButton } from './components/downloadButton';
7
7
  import { InformationBox } from './components/informationBox';
8
8
  import IbanInput from './components/input/iban';
9
9
  import CurrencyInput from './components/input/currency';
10
+ import { Badge } from './components/badge';
10
11
  import { Checkbox } from './components/input/checkbox';
11
12
  import { BottomModal, RegularModal, BottomOrRegularModal } from './components/modal';
12
13
  import { CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton } from './components/cards';
13
14
  import Button from './components/button';
14
- import AutoSuggestMultiSelect from './components/input/autoSuggestMultiSelect';
15
+ import { AutoSuggestMultiSelect } from './components/input/autoSuggestMultiSelect';
15
16
  import Chip from './components/chip';
16
- import AutoSuggestInput from './components/input/autoSuggestInput';
17
+ import { AutoSuggestInput } from './components/input/autoSuggestInput';
17
18
  import { ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, TableHeader } from './components/comparisonTable';
18
19
  import { SegmentedControl } from './components/segmentedControl';
19
20
  import { Markdown } from './components/markdown';
20
21
  import { Link } from './components/link';
21
22
  import { images } from './util/images';
22
- 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, Link, InformationBox, images, };
23
+ 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, Link, InformationBox, Badge, images, };
23
24
  export type { FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus };
24
25
  export type { DownloadStatus } from './models/download';
@@ -0,0 +1,27 @@
1
+ import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { c as classnames } from '../../index-e9e37a34.js';
4
+ import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
5
+
6
+ var css_248z = ".style-module_badge--small__cHO6v, .style-module_badge--medium__3CekE {\n padding-bottom: 6px;\n padding-top: 6px;\n}\n.style-module_badge--large__3_tWC {\n padding-bottom: 8px;\n padding-top: 8px;\n}";
7
+ var styles = {"badge--small":"style-module_badge--small__cHO6v","badge--medium":"style-module_badge--medium__3CekE","badge--large":"style-module_badge--large__3_tWC"};
8
+ styleInject(css_248z);
9
+
10
+ var getVariantClassNames = function (variant) { return ({
11
+ information: 'bg-blue-100',
12
+ neutral: 'bg-white',
13
+ neutral200: 'bg-grey-200',
14
+ neutral300: 'bg-grey-300',
15
+ warning: 'bg-yellow-100',
16
+ error: 'bg-red-100',
17
+ success: 'bg-green-100',
18
+ primary: 'bg-purple-100',
19
+ primary900: 'bg-purple-900 tc-white',
20
+ }[variant]); };
21
+ var Badge = function (_a) {
22
+ var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.variant, variant = _d === void 0 ? 'information' : _d, children = _a.children;
23
+ return (jsx("div", __assign({ className: classnames(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles["badge--" + size], getVariantClassNames(variant)) }, { children: children }), void 0));
24
+ };
25
+
26
+ export { Badge };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/lib/components/badge/index.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\nimport styles from './style.module.scss';\n\ntype Variant = \n | 'warning'\n | 'error'\n | 'success'\n | 'information'\n | 'neutral'\n | 'neutral200'\n | 'neutral300'\n | 'primary'\n | 'primary900';\n\nexport interface BadgeProps {\n className?: string;\n variant?: Variant;\n size?: 'small' | 'medium' | 'large';\n children: ReactNode;\n}\n\nconst getVariantClassNames = (variant: Variant) => ({\n information: 'bg-blue-100',\n neutral: 'bg-white',\n neutral200: 'bg-grey-200',\n neutral300: 'bg-grey-300',\n warning: 'bg-yellow-100',\n error: 'bg-red-100',\n success: 'bg-green-100',\n primary: 'bg-purple-100',\n primary900: 'bg-purple-900 tc-white',\n}[variant])\n\nconst Badge = ({\n className = '',\n size = 'medium',\n variant = 'information',\n children,\n}: BadgeProps) => (\n <div\n className={classNames(\n className, \n 'px16 br8 d-inline-block ai-center fw-bold p-p', \n { 'p-p--small': size === 'small' },\n styles[`badge--${size}`],\n getVariantClassNames(variant)\n )}\n >\n {children}\n </div>\n);\n\nexport { Badge };\n"],"names":["_jsx","classNames"],"mappings":";;;;;;;;;AAsBA,IAAM,oBAAoB,GAAG,UAAC,OAAgB,IAAK,QAAC;IAClD,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,eAAe;IACxB,UAAU,EAAE,wBAAwB;CACrC,CAAC,OAAO,CAAC,IAAC,CAAA;IAEL,KAAK,GAAG,UAAC,EAKF;QAJX,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACf,eAAuB,EAAvB,OAAO,mBAAG,aAAa,KAAA,EACvB,QAAQ,cAAA;IACQ,QAChBA,sBACE,SAAS,EAAEC,UAAU,CACnB,SAAS,EACT,+CAA+C,EAC/C,EAAE,YAAY,EAAE,IAAI,KAAK,OAAO,EAAE,EAClC,MAAM,CAAC,YAAU,IAAM,CAAC,EACxB,oBAAoB,CAAC,OAAO,CAAC,CAC9B,gBAEA,QAAQ,YACL;AAXU;;;;"}
@@ -0,0 +1,39 @@
1
+ import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { Badge } from './index.js';
4
+ import '../../index-e9e37a34.js';
5
+ import '../../style-inject.es-1f59c1d0.js';
6
+
7
+ var story = {
8
+ title: 'JSX/Badge',
9
+ component: Badge,
10
+ argTypes: {
11
+ children: {
12
+ control: { type: 'text' },
13
+ defaultValue: 'Value',
14
+ description: 'Content that is displayed inside the badge',
15
+ },
16
+ className: {
17
+ defaultValue: '',
18
+ description: 'Class name for the most parent element',
19
+ control: { type: 'text' }
20
+ },
21
+ size: {
22
+ defaultValue: 'medium',
23
+ description: 'Define the size of the badge',
24
+ },
25
+ variant: {
26
+ defaultValue: 'information',
27
+ description: 'Variant that defines the style of the Badge',
28
+ },
29
+ }
30
+ };
31
+ var BadgeStory = function (_a) {
32
+ var children = _a.children, className = _a.className, size = _a.size, variant = _a.variant;
33
+ return (jsx(Badge, __assign({ className: className, size: size, variant: variant }, { children: children }), void 0));
34
+ };
35
+ BadgeStory.storyName = "Badge";
36
+
37
+ export default story;
38
+ export { BadgeStory };
39
+ //# sourceMappingURL=index.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/badge/index.stories.tsx"],"sourcesContent":["import { Badge, BadgeProps } from '.';\n\nconst story = {\n title: 'JSX/Badge',\n component: Badge,\n argTypes: {\n children: {\n control: { type: 'text' },\n defaultValue: 'Value',\n description: 'Content that is displayed inside the badge',\n },\n className: {\n defaultValue: '',\n description: 'Class name for the most parent element',\n control: { type: 'text' }\n },\n size: {\n defaultValue: 'medium',\n description: 'Define the size of the badge',\n },\n variant: {\n defaultValue: 'information',\n description: 'Variant that defines the style of the Badge',\n },\n }\n};\n \nexport const BadgeStory = ({\n children,\n className,\n size,\n variant,\n}: BadgeProps) => (\n <Badge\n className={className}\n size={size}\n variant={variant}\n >\n {children}\n </Badge>\n);\n\nBadgeStory.storyName = \"Badge\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;IAEM,KAAK,GAAG;IACZ,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,4CAA4C;SAC1D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B;QACD,IAAI,EAAE;YACJ,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,8BAA8B;SAC5C;QACD,OAAO,EAAE;YACP,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,6CAA6C;SAC3D;KACF;EACD;IAEW,UAAU,GAAG,UAAC,EAKd;QAJX,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,IAAI,UAAA,EACJ,OAAO,aAAA;IACS,QAChBA,IAAC,KAAK,aACJ,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,gBAEf,QAAQ,YACH;AAPQ,EAQhB;AAEF,UAAU,CAAC,SAAS,GAAG,OAAO;;;;;"}
@@ -0,0 +1,21 @@
1
+ import { b as __awaiter, c as __generator } from '../../tslib.es6-5bc94358.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { c as customRender, s as screen } from '../../customRender-20b5f7ec.js';
4
+ import { Badge } from './index.js';
5
+ import 'react';
6
+ import 'react-dom';
7
+ import '../../_commonjsHelpers-e7f67fd8.js';
8
+ import 'react-dom/test-utils';
9
+ import '../../index-e9e37a34.js';
10
+ import '../../style-inject.es-1f59c1d0.js';
11
+
12
+ describe('Badge component', function () {
13
+ it('Should render content', function () { return __awaiter(void 0, void 0, void 0, function () {
14
+ return __generator(this, function (_a) {
15
+ customRender(jsx(Badge, { children: "Content" }, void 0));
16
+ expect(screen.getByText('Content')).toBeInTheDocument();
17
+ return [2 /*return*/];
18
+ });
19
+ }); });
20
+ });
21
+ //# sourceMappingURL=index.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.js","sources":["../../../../../src/lib/components/badge/index.test.tsx"],"sourcesContent":["import { render, screen } from '../../util/testUtils';\n\nimport { Badge } from '.';\n\ndescribe('Badge component', () => {\n it('Should render content', async () => {\n render(<Badge>Content</Badge>);\n\n expect(screen.getByText('Content')).toBeInTheDocument();\n });\n});\n"],"names":["render","_jsx"],"mappings":";;;;;;;;;;;AAIA,QAAQ,CAAC,iBAAiB,EAAE;IAC1B,EAAE,CAAC,uBAAuB,EAAE;;YAC1BA,YAAM,CAACC,IAAC,KAAK,kCAAgB,CAAC,CAAC;YAE/B,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;;;SACzD,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import '../../../tslib.es6-5bc94358.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
- export { C as CardButton } from '../../../index-47663d39.js';
4
+ export { C as CardButton } from '../../../index-29ac387a.js';
5
5
  import '../../../style-inject.es-1f59c1d0.js';
6
+ import '../../../feather-logo-a3f07990.js';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,8 +1,9 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { C as CardButton } from '../../../index-47663d39.js';
2
+ import { C as CardButton } from '../../../index-29ac387a.js';
3
3
  import '../../../tslib.es6-5bc94358.js';
4
4
  import 'react';
5
5
  import '../../../style-inject.es-1f59c1d0.js';
6
+ import '../../../feather-logo-a3f07990.js';
6
7
 
7
8
  var story = {
8
9
  title: 'JSX/Cards/CardButton',
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardButton/index.stories.tsx"],"sourcesContent":["import { FormEvent } from 'react';\nimport { CardButton, CardButtonProps } from '.';\n\nconst story = {\n title: 'JSX/Cards/CardButton',\n component: CardButton,\n argTypes: {\n title: {\n defaultValue: 'Risky Sports',\n description: 'Title text that needs to be displayed',\n },\n description: {\n defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',\n description: 'Description text that is displayed under title',\n },\n disabled: {\n defaultValue: false,\n description: 'Disabled state of the button',\n },\n className: {\n defaultValue: '',\n description: 'Class name for most top parent element',\n },\n onClick: {\n description: 'Function that runs on click of the button',\n action: true,\n table: {\n category: 'Callbacks',\n },\n },\n href: {\n defaultValue: '',\n description: 'Redirect URL on click of the button',\n },\n },\n};\n\nexport const CardButtonStory = ({\n title,\n description,\n disabled,\n className,\n href,\n onClick,\n}: CardButtonProps) => {\n const handleOnClick = (e: FormEvent) => onClick?.(e);\n return (\n <CardButton\n title={title}\n description={description}\n disabled={disabled}\n className={className}\n href={href}\n onClick={handleOnClick}\n />\n );\n}\n\nCardButtonStory.storyName = \"CardButton\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,cAAc;YAC5B,WAAW,EAAE,uCAAuC;SACrD;QACD,WAAW,EAAE;YACX,YAAY,EAAE,qKAAqK;YACnL,WAAW,EAAE,gDAAgD;SAC9D;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,8BAA8B;SAC5C;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wCAAwC;SACtD;QACD,OAAO,EAAE;YACP,WAAW,EAAE,2CAA2C;YACxD,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE;gBACL,QAAQ,EAAE,WAAW;aACtB;SACF;QACD,IAAI,EAAE;YACJ,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,qCAAqC;SACnD;KACF;EACD;IAEW,eAAe,GAAG,UAAC,EAOd;QANhB,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,IAAI,UAAA,EACJ,OAAO,aAAA;IAEP,IAAM,aAAa,GAAG,UAAC,CAAY,IAAK,OAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAC,GAAA,CAAC;IACrD,QACEA,IAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,aAAa,WACtB,EACF;AACJ,EAAC;AAED,eAAe,CAAC,SAAS,GAAG,YAAY;;;;;"}
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardButton/index.stories.tsx"],"sourcesContent":["import { FormEvent } from 'react';\nimport { CardButton, CardButtonProps } from '.';\n\nconst story = {\n title: 'JSX/Cards/CardButton',\n component: CardButton,\n argTypes: {\n title: {\n defaultValue: 'Risky Sports',\n description: 'Title text that needs to be displayed',\n },\n description: {\n defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',\n description: 'Description text that is displayed under title',\n },\n disabled: {\n defaultValue: false,\n description: 'Disabled state of the button',\n },\n className: {\n defaultValue: '',\n description: 'Class name for most top parent element',\n },\n onClick: {\n description: 'Function that runs on click of the button',\n action: true,\n table: {\n category: 'Callbacks',\n },\n },\n href: {\n defaultValue: '',\n description: 'Redirect URL on click of the button',\n },\n },\n};\n\nexport const CardButtonStory = ({\n title,\n description,\n disabled,\n className,\n href,\n onClick,\n}: CardButtonProps) => {\n const handleOnClick = (e: FormEvent) => onClick?.(e);\n return (\n <CardButton\n title={title}\n description={description}\n disabled={disabled}\n className={className}\n href={href}\n onClick={handleOnClick}\n />\n );\n}\n\nCardButtonStory.storyName = \"CardButton\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,cAAc;YAC5B,WAAW,EAAE,uCAAuC;SACrD;QACD,WAAW,EAAE;YACX,YAAY,EAAE,qKAAqK;YACnL,WAAW,EAAE,gDAAgD;SAC9D;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,8BAA8B;SAC5C;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wCAAwC;SACtD;QACD,OAAO,EAAE;YACP,WAAW,EAAE,2CAA2C;YACxD,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE;gBACL,QAAQ,EAAE,WAAW;aACtB;SACF;QACD,IAAI,EAAE;YACJ,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,qCAAqC;SACnD;KACF;EACD;IAEW,eAAe,GAAG,UAAC,EAOd;QANhB,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,IAAI,UAAA,EACJ,OAAO,aAAA;IAEP,IAAM,aAAa,GAAG,UAAC,CAAY,IAAK,OAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAC,GAAA,CAAC;IACrD,QACEA,IAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,aAAa,WACtB,EACF;AACJ,EAAC;AAED,eAAe,CAAC,SAAS,GAAG,YAAY;;;;;"}
@@ -1,7 +1,8 @@
1
1
  import '../../../tslib.es6-5bc94358.js';
2
2
  import 'react/jsx-runtime';
3
3
  export { CardWithLeftIcon } from '../index.js';
4
- import '../../../index-47663d39.js';
4
+ import '../../../index-29ac387a.js';
5
5
  import '../../../style-inject.es-1f59c1d0.js';
6
6
  import 'react';
7
+ import '../../../feather-logo-a3f07990.js';
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -2,9 +2,10 @@ import { _ as __assign } from '../../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { CardWithLeftIcon } from '../index.js';
4
4
  import { i as images } from '../../../index-31224f74.js';
5
- import '../../../index-47663d39.js';
5
+ import '../../../index-29ac387a.js';
6
6
  import 'react';
7
7
  import '../../../style-inject.es-1f59c1d0.js';
8
+ import '../../../feather-logo-a3f07990.js';
8
9
 
9
10
  var story = {
10
11
  title: 'JSX/Cards/CardWithLeftIcon',
@@ -14,6 +15,10 @@ var story = {
14
15
  defaultValue: 'Lorem Ipsum',
15
16
  description: 'Title text that needs to be displayed',
16
17
  },
18
+ subtitle: {
19
+ defaultValue: 'Lorem Ipsum dolorem',
20
+ description: 'Subitle text that needs to be displayed',
21
+ },
17
22
  children: {
18
23
  type: 'text',
19
24
  defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',
@@ -30,6 +35,13 @@ var story = {
30
35
  },
31
36
  description: 'Icon displayed on the left of the card.',
32
37
  },
38
+ leftIconSize: {
39
+ defaultValue: {
40
+ width: 48,
41
+ height: 48
42
+ },
43
+ description: 'Size of the left icon',
44
+ },
33
45
  rightIcon: {
34
46
  defaultValue: {
35
47
  src: images.washingMachine,
@@ -54,8 +66,8 @@ var story = {
54
66
  },
55
67
  };
56
68
  var CardWithLeftIconStory = function (_a) {
57
- var title = _a.title, dropshadow = _a.dropshadow, children = _a.children, className = _a.className, cardSize = _a.cardSize, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, state = _a.state;
58
- return (jsx(CardWithLeftIcon, __assign({ cardSize: cardSize, className: className, dropshadow: dropshadow, state: state, leftIcon: leftIcon, rightIcon: rightIcon, title: title }, { children: children }), void 0));
69
+ var title = _a.title, subtitle = _a.subtitle, dropshadow = _a.dropshadow, children = _a.children, className = _a.className, cardSize = _a.cardSize, leftIcon = _a.leftIcon, leftIconSize = _a.leftIconSize, rightIcon = _a.rightIcon, state = _a.state;
70
+ return (jsx(CardWithLeftIcon, __assign({ cardSize: cardSize, className: className, dropshadow: dropshadow, state: state, leftIcon: leftIcon, leftIconSize: leftIconSize, rightIcon: rightIcon, title: title, subtitle: subtitle }, { children: children }), void 0));
59
71
  };
60
72
  CardWithLeftIconStory.storyName = "CardWithLeftIcon";
61
73
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardWithLeftIcon/index.stories.tsx"],"sourcesContent":["import { CardWithLeftIcon, CardWithLeftIconProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Cards/CardWithLeftIcon',\n component: CardWithLeftIcon,\n argTypes: {\n title: {\n defaultValue: 'Lorem Ipsum',\n description: 'Title text that needs to be displayed',\n },\n children: {\n type: 'text',\n defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',\n description: 'Content that is displayed inside the card',\n },\n state: {\n defaultValue: 'actionable',\n description: 'State that describe the interation with the card',\n },\n leftIcon: {\n defaultValue: {\n src: images.mortgage,\n alt: 'Image alt'\n },\n description: 'Icon displayed on the left of the card.',\n },\n rightIcon: {\n defaultValue: {\n src: images.washingMachine,\n alt: 'Icon alt'\n },\n description: 'Icon displayed on the top right corner of the card',\n },\n cardSize: {\n control: { type: 'select' },\n defaultValue: 'medium',\n description: 'Size of the card'\n },\n dropshadow: {\n defaultValue: true,\n description: 'If the card should have a box-shadow or not',\n },\n className: {\n defaultValue: '',\n type: 'text',\n description: 'Class name for most top parent element',\n },\n },\n};\n\nexport const CardWithLeftIconStory = ({\n title,\n dropshadow,\n children,\n className,\n cardSize,\n leftIcon,\n rightIcon,\n state,\n}: CardWithLeftIconProps) => {\n return (\n <CardWithLeftIcon\n cardSize={cardSize}\n className={className}\n dropshadow={dropshadow}\n state={state}\n leftIcon={leftIcon}\n rightIcon={rightIcon}\n title={title}\n >\n {children}\n </CardWithLeftIcon>\n );\n}\n\nCardWithLeftIconStory.storyName = \"CardWithLeftIcon\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,uCAAuC;SACrD;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,qKAAqK;YACnL,WAAW,EAAE,2CAA2C;SACzD;QACD,KAAK,EAAE;YACL,YAAY,EAAE,YAAY;YAC1B,WAAW,EAAE,kDAAkD;SAChE;QACD,QAAQ,EAAE;YACR,YAAY,EAAE;gBACZ,GAAG,EAAE,MAAM,CAAC,QAAQ;gBACpB,GAAG,EAAE,WAAW;aACjB;YACD,WAAW,EAAE,yCAAyC;SACvD;QACD,SAAS,EAAE;YACT,YAAY,EAAE;gBACZ,GAAG,EAAE,MAAM,CAAC,cAAc;gBAC1B,GAAG,EAAE,UAAU;aAChB;YACD,WAAW,EAAE,oDAAoD;SAClE;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,kBAAkB;SAChC;QACD,UAAU,EAAE;YACV,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wCAAwC;SACtD;KACF;EACD;IAEW,qBAAqB,GAAG,UAAC,EASd;QARtB,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,KAAK,WAAA;IAEL,QACEA,IAAC,gBAAgB,aACf,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,gBAEX,QAAQ,YACQ,EACnB;AACJ,EAAC;AAED,qBAAqB,CAAC,SAAS,GAAG,kBAAkB;;;;;"}
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardWithLeftIcon/index.stories.tsx"],"sourcesContent":["import { CardWithLeftIcon, CardWithLeftIconProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Cards/CardWithLeftIcon',\n component: CardWithLeftIcon,\n argTypes: {\n title: {\n defaultValue: 'Lorem Ipsum',\n description: 'Title text that needs to be displayed',\n },\n subtitle: {\n defaultValue: 'Lorem Ipsum dolorem',\n description: 'Subitle text that needs to be displayed',\n },\n children: {\n type: 'text',\n defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',\n description: 'Content that is displayed inside the card',\n },\n state: {\n defaultValue: 'actionable',\n description: 'State that describe the interation with the card',\n },\n leftIcon: {\n defaultValue: {\n src: images.mortgage,\n alt: 'Image alt'\n },\n description: 'Icon displayed on the left of the card.',\n },\n leftIconSize: {\n defaultValue: {\n width: 48,\n height: 48\n },\n description: 'Size of the left icon',\n },\n rightIcon: {\n defaultValue: {\n src: images.washingMachine,\n alt: 'Icon alt'\n },\n description: 'Icon displayed on the top right corner of the card',\n },\n cardSize: {\n control: { type: 'select' },\n defaultValue: 'medium',\n description: 'Size of the card'\n },\n dropshadow: {\n defaultValue: true,\n description: 'If the card should have a box-shadow or not',\n },\n className: {\n defaultValue: '',\n type: 'text',\n description: 'Class name for most top parent element',\n },\n },\n};\n\nexport const CardWithLeftIconStory = ({\n title,\n subtitle,\n dropshadow,\n children,\n className,\n cardSize,\n leftIcon,\n leftIconSize,\n rightIcon,\n state,\n}: CardWithLeftIconProps) => {\n return (\n <CardWithLeftIcon\n cardSize={cardSize}\n className={className}\n dropshadow={dropshadow}\n state={state}\n leftIcon={leftIcon}\n leftIconSize={leftIconSize}\n rightIcon={rightIcon}\n title={title}\n subtitle={subtitle}\n >\n {children}\n </CardWithLeftIcon>\n );\n}\n\nCardWithLeftIconStory.storyName = \"CardWithLeftIcon\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,uCAAuC;SACrD;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,qBAAqB;YACnC,WAAW,EAAE,yCAAyC;SACvD;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,qKAAqK;YACnL,WAAW,EAAE,2CAA2C;SACzD;QACD,KAAK,EAAE;YACL,YAAY,EAAE,YAAY;YAC1B,WAAW,EAAE,kDAAkD;SAChE;QACD,QAAQ,EAAE;YACR,YAAY,EAAE;gBACZ,GAAG,EAAE,MAAM,CAAC,QAAQ;gBACpB,GAAG,EAAE,WAAW;aACjB;YACD,WAAW,EAAE,yCAAyC;SACvD;QACD,YAAY,EAAE;YACZ,YAAY,EAAE;gBACZ,KAAK,EAAE,EAAE;gBACT,MAAM,EAAE,EAAE;aACX;YACD,WAAW,EAAE,uBAAuB;SACrC;QACD,SAAS,EAAE;YACT,YAAY,EAAE;gBACZ,GAAG,EAAE,MAAM,CAAC,cAAc;gBAC1B,GAAG,EAAE,UAAU;aAChB;YACD,WAAW,EAAE,oDAAoD;SAClE;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,kBAAkB;SAChC;QACD,UAAU,EAAE;YACV,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wCAAwC;SACtD;KACF;EACD;IAEW,qBAAqB,GAAG,UAAC,EAWd;QAVtB,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,KAAK,WAAA;IAEL,QACEA,IAAC,gBAAgB,aACf,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,gBAEjB,QAAQ,YACQ,EACnB;AACJ,EAAC;AAED,qBAAqB,CAAC,SAAS,GAAG,kBAAkB;;;;;"}
@@ -1,7 +1,8 @@
1
1
  import '../../../tslib.es6-5bc94358.js';
2
2
  import 'react/jsx-runtime';
3
3
  export { CardWithTopIcon } from '../index.js';
4
- import '../../../index-47663d39.js';
4
+ import '../../../index-29ac387a.js';
5
5
  import '../../../style-inject.es-1f59c1d0.js';
6
6
  import 'react';
7
+ import '../../../feather-logo-a3f07990.js';
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -2,9 +2,10 @@ import { _ as __assign } from '../../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { CardWithTopIcon } from '../index.js';
4
4
  import { i as images } from '../../../index-31224f74.js';
5
- import '../../../index-47663d39.js';
5
+ import '../../../index-29ac387a.js';
6
6
  import 'react';
7
7
  import '../../../style-inject.es-1f59c1d0.js';
8
+ import '../../../feather-logo-a3f07990.js';
8
9
 
9
10
  var story = {
10
11
  title: 'JSX/Cards/CardWithTopIcon',
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardWithTopIcon/index.stories.tsx"],"sourcesContent":["import { CardWithTopIcon, CardWithTopIconProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Cards/CardWithTopIcon',\n component: CardWithTopIcon,\n argTypes: {\n title: {\n defaultValue: 'Lorem Ipsum',\n description: 'Title text that needs to be displayed',\n },\n children: {\n type: 'text',\n defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',\n description: 'Content that is displayed inside the card',\n },\n state: {\n defaultValue: 'actionable',\n description: 'State that describe the interation with the card',\n },\n topIcon: {\n defaultValue: {\n src: images.mortgage,\n alt: 'Image alt'\n },\n description: 'Icon displayed on the top of the card.',\n },\n topIconSize: {\n defaultValue: {\n width: 48,\n height: 48\n },\n description: 'Size of the top icon',\n },\n rightIcon: {\n defaultValue: 'arrow',\n description: 'Icon displayed on the top right corner of the card',\n },\n cardSize: {\n control: { type: 'select' },\n defaultValue: 'medium',\n description: 'Size of the card'\n },\n dropshadow: {\n defaultValue: true,\n description: 'If the card should have a box-shadow or not',\n },\n className: {\n defaultValue: 'ws6',\n type: 'text',\n description: 'Class name for most top parent element',\n },\n },\n};\n\nexport const CardWithTopIconStory = ({\n title,\n dropshadow,\n cardSize,\n children,\n className,\n topIcon,\n topIconSize,\n rightIcon,\n state,\n}: CardWithTopIconProps) => (\n <CardWithTopIcon\n cardSize={cardSize}\n className={className}\n dropshadow={dropshadow}\n state={state}\n topIcon={topIcon}\n topIconSize={topIconSize}\n rightIcon={rightIcon}\n title={title}\n >\n <p className=\"p-p mt16 tc-grey-600\">\n {children}\n </p>\n </CardWithTopIcon>\n);\n\nCardWithTopIconStory.storyName = \"CardWithTopIcon\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,eAAe;IAC1B,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,uCAAuC;SACrD;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,qKAAqK;YACnL,WAAW,EAAE,2CAA2C;SACzD;QACD,KAAK,EAAE;YACL,YAAY,EAAE,YAAY;YAC1B,WAAW,EAAE,kDAAkD;SAChE;QACD,OAAO,EAAE;YACP,YAAY,EAAE;gBACZ,GAAG,EAAE,MAAM,CAAC,QAAQ;gBACpB,GAAG,EAAE,WAAW;aACjB;YACD,WAAW,EAAE,wCAAwC;SACtD;QACD,WAAW,EAAE;YACX,YAAY,EAAE;gBACZ,KAAK,EAAE,EAAE;gBACT,MAAM,EAAE,EAAE;aACX;YACD,WAAW,EAAE,sBAAsB;SACpC;QACD,SAAS,EAAE;YACT,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,oDAAoD;SAClE;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,kBAAkB;SAChC;QACD,UAAU,EAAE;YACV,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,KAAK;YACnB,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wCAAwC;SACtD;KACF;EACD;IAEW,oBAAoB,GAAG,UAAC,EAUd;QATrB,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,KAAK,WAAA;IACqB,QAC1BA,IAAC,eAAe,aACd,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,gBAEZA,oBAAG,SAAS,EAAC,sBAAsB,gBAChC,QAAQ,YACP,YACY;AAdQ,EAe1B;AAEF,oBAAoB,CAAC,SAAS,GAAG,iBAAiB;;;;;"}
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardWithTopIcon/index.stories.tsx"],"sourcesContent":["import { CardWithTopIcon, CardWithTopIconProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Cards/CardWithTopIcon',\n component: CardWithTopIcon,\n argTypes: {\n title: {\n defaultValue: 'Lorem Ipsum',\n description: 'Title text that needs to be displayed',\n },\n children: {\n type: 'text',\n defaultValue: 'Mountain or rock climbing, Bouldering, Martial arts, Extreme sports, Scuba diving, Sky diving, Bungee jumping, Mountain or rock climbing, Bouldering, Martial arts,',\n description: 'Content that is displayed inside the card',\n },\n state: {\n defaultValue: 'actionable',\n description: 'State that describe the interation with the card',\n },\n topIcon: {\n defaultValue: {\n src: images.mortgage,\n alt: 'Image alt'\n },\n description: 'Icon displayed on the top of the card.',\n },\n topIconSize: {\n defaultValue: {\n width: 48,\n height: 48\n },\n description: 'Size of the top icon',\n },\n rightIcon: {\n defaultValue: 'arrow',\n description: 'Icon displayed on the top right corner of the card',\n },\n cardSize: {\n control: { type: 'select' },\n defaultValue: 'medium',\n description: 'Size of the card'\n },\n dropshadow: {\n defaultValue: true,\n description: 'If the card should have a box-shadow or not',\n },\n className: {\n defaultValue: 'ws6',\n type: 'text',\n description: 'Class name for most top parent element',\n },\n },\n};\n\nexport const CardWithTopIconStory = ({\n title,\n dropshadow,\n cardSize,\n children,\n className,\n topIcon,\n topIconSize,\n rightIcon,\n state,\n}: CardWithTopIconProps) => (\n <CardWithTopIcon\n cardSize={cardSize}\n className={className}\n dropshadow={dropshadow}\n state={state}\n topIcon={topIcon}\n topIconSize={topIconSize}\n rightIcon={rightIcon}\n title={title}\n >\n <p className=\"p-p mt16 tc-grey-600\">\n {children}\n </p>\n </CardWithTopIcon>\n);\n\nCardWithTopIconStory.storyName = \"CardWithTopIcon\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,eAAe;IAC1B,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,uCAAuC;SACrD;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,qKAAqK;YACnL,WAAW,EAAE,2CAA2C;SACzD;QACD,KAAK,EAAE;YACL,YAAY,EAAE,YAAY;YAC1B,WAAW,EAAE,kDAAkD;SAChE;QACD,OAAO,EAAE;YACP,YAAY,EAAE;gBACZ,GAAG,EAAE,MAAM,CAAC,QAAQ;gBACpB,GAAG,EAAE,WAAW;aACjB;YACD,WAAW,EAAE,wCAAwC;SACtD;QACD,WAAW,EAAE;YACX,YAAY,EAAE;gBACZ,KAAK,EAAE,EAAE;gBACT,MAAM,EAAE,EAAE;aACX;YACD,WAAW,EAAE,sBAAsB;SACpC;QACD,SAAS,EAAE;YACT,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,oDAAoD;SAClE;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,kBAAkB;SAChC;QACD,UAAU,EAAE;YACV,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,KAAK;YACnB,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wCAAwC;SACtD;KACF;EACD;IAEW,oBAAoB,GAAG,UAAC,EAUd;QATrB,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,KAAK,WAAA;IACqB,QAC1BA,IAAC,eAAe,aACd,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,gBAEZA,oBAAG,SAAS,EAAC,sBAAsB,gBAChC,QAAQ,YACP,YACY;AAdQ,EAe1B;AAEF,oBAAoB,CAAC,SAAS,GAAG,iBAAiB;;;;;"}
@@ -1,7 +1,8 @@
1
1
  import '../../../tslib.es6-5bc94358.js';
2
2
  import 'react/jsx-runtime';
3
3
  export { CardWithTopLeftIcon } from '../index.js';
4
- import '../../../index-47663d39.js';
4
+ import '../../../index-29ac387a.js';
5
5
  import '../../../style-inject.es-1f59c1d0.js';
6
6
  import 'react';
7
+ import '../../../feather-logo-a3f07990.js';
7
8
  //# sourceMappingURL=index.js.map