@popsure/dirty-swan 0.34.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 (129) hide show
  1. package/dist/cjs/index.d.ts +1 -1
  2. package/dist/cjs/index.js +159 -114
  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/chip/index.d.ts +2 -1
  10. package/dist/cjs/lib/components/informationBox/index.d.ts +12 -0
  11. package/dist/cjs/lib/components/informationBox/index.stories.d.ts +35 -0
  12. package/dist/cjs/lib/components/informationBox/index.test.d.ts +1 -0
  13. package/dist/cjs/lib/components/input/autoSuggestInput/index.d.ts +7 -7
  14. package/dist/cjs/lib/components/input/autoSuggestInput/index.stories.d.ts +84 -0
  15. package/dist/cjs/lib/components/input/autoSuggestMultiSelect/index.d.ts +7 -7
  16. package/dist/cjs/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +77 -0
  17. package/dist/cjs/lib/components/link/index.d.ts +2 -0
  18. package/dist/cjs/lib/components/link/index.stories.d.ts +26 -0
  19. package/dist/cjs/lib/index.d.ts +6 -3
  20. package/dist/esm/components/autocompleteAddress/index.test.js +1 -1
  21. package/dist/esm/components/badge/index.js +27 -0
  22. package/dist/esm/components/badge/index.js.map +1 -0
  23. package/dist/esm/components/badge/index.stories.js +39 -0
  24. package/dist/esm/components/badge/index.stories.js.map +1 -0
  25. package/dist/esm/components/badge/index.test.js +21 -0
  26. package/dist/esm/components/badge/index.test.js.map +1 -0
  27. package/dist/esm/components/cards/cardButton/index.js +2 -1
  28. package/dist/esm/components/cards/cardButton/index.js.map +1 -1
  29. package/dist/esm/components/cards/cardButton/index.stories.js +2 -1
  30. package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -1
  31. package/dist/esm/components/cards/cardWithLeftIcon/index.js +2 -1
  32. package/dist/esm/components/cards/cardWithLeftIcon/index.js.map +1 -1
  33. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js +15 -3
  34. package/dist/esm/components/cards/cardWithLeftIcon/index.stories.js.map +1 -1
  35. package/dist/esm/components/cards/cardWithTopIcon/index.js +2 -1
  36. package/dist/esm/components/cards/cardWithTopIcon/index.js.map +1 -1
  37. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js +2 -1
  38. package/dist/esm/components/cards/cardWithTopIcon/index.stories.js.map +1 -1
  39. package/dist/esm/components/cards/cardWithTopLeftIcon/index.js +2 -1
  40. package/dist/esm/components/cards/cardWithTopLeftIcon/index.js.map +1 -1
  41. package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js +2 -1
  42. package/dist/esm/components/cards/cardWithTopLeftIcon/index.stories.js.map +1 -1
  43. package/dist/esm/components/cards/index.js +7 -5
  44. package/dist/esm/components/cards/index.js.map +1 -1
  45. package/dist/esm/components/cards/infoCard/index.js +2 -1
  46. package/dist/esm/components/cards/infoCard/index.js.map +1 -1
  47. package/dist/esm/components/cards/infoCard/index.stories.js +2 -1
  48. package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -1
  49. package/dist/esm/components/chip/index.js +2 -2
  50. package/dist/esm/components/chip/index.js.map +1 -1
  51. package/dist/esm/components/comparisonTable/components/TableButton/index.test.js +2 -2
  52. package/dist/esm/components/comparisonTable/components/TableRowHeader/index.test.js +2 -2
  53. package/dist/esm/components/dateSelector/index.test.js +1 -1
  54. package/dist/esm/components/informationBox/index.js +19 -0
  55. package/dist/esm/components/informationBox/index.js.map +1 -0
  56. package/dist/esm/components/informationBox/index.stories.js +42 -0
  57. package/dist/esm/components/informationBox/index.stories.js.map +1 -0
  58. package/dist/esm/components/informationBox/index.test.js +49 -0
  59. package/dist/esm/components/informationBox/index.test.js.map +1 -0
  60. package/dist/esm/components/input/autoSuggestInput/index.js +3 -3
  61. package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
  62. package/dist/esm/components/input/autoSuggestInput/index.stories.js +131 -0
  63. package/dist/esm/components/input/autoSuggestInput/index.stories.js.map +1 -0
  64. package/dist/esm/components/input/autoSuggestMultiSelect/index.js +17 -13
  65. package/dist/esm/components/input/autoSuggestMultiSelect/index.js.map +1 -1
  66. package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js +107 -0
  67. package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js.map +1 -0
  68. package/dist/esm/components/input/checkbox/index.test.js +1 -1
  69. package/dist/esm/components/input/currency/index.test.js +1 -1
  70. package/dist/esm/components/link/index.js +11 -0
  71. package/dist/esm/components/link/index.js.map +1 -0
  72. package/dist/esm/components/link/index.stories.js +33 -0
  73. package/dist/esm/components/link/index.stories.js.map +1 -0
  74. package/dist/esm/components/multiDropzone/index.test.js +2 -2
  75. package/dist/esm/components/segmentedControl/index.test.js +1 -1
  76. package/dist/esm/{customRender-4157fcff.js → customRender-20b5f7ec.js} +3 -3
  77. package/dist/esm/{customRender-4157fcff.js.map → customRender-20b5f7ec.js.map} +1 -1
  78. package/dist/esm/{extend-expect-46bdce4a.js → extend-expect-25e5049d.js} +2 -2
  79. package/dist/esm/{extend-expect-46bdce4a.js.map → extend-expect-25e5049d.js.map} +1 -1
  80. package/dist/esm/feather-logo-a3f07990.js +4 -0
  81. package/dist/esm/feather-logo-a3f07990.js.map +1 -0
  82. package/dist/esm/{index-47663d39.js → index-29ac387a.js} +3 -4
  83. package/dist/esm/index-29ac387a.js.map +1 -0
  84. package/dist/esm/index.d.ts +1 -1
  85. package/dist/esm/index.js +7 -3
  86. package/dist/esm/index.js.map +1 -1
  87. package/dist/esm/lib/components/badge/index.d.ts +10 -0
  88. package/dist/esm/lib/components/badge/index.stories.d.ts +34 -0
  89. package/dist/esm/lib/components/badge/index.test.d.ts +1 -0
  90. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.d.ts +6 -3
  91. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.stories.d.ts +13 -2
  92. package/dist/esm/lib/components/chip/index.d.ts +2 -1
  93. package/dist/esm/lib/components/informationBox/index.d.ts +12 -0
  94. package/dist/esm/lib/components/informationBox/index.stories.d.ts +35 -0
  95. package/dist/esm/lib/components/informationBox/index.test.d.ts +1 -0
  96. package/dist/esm/lib/components/input/autoSuggestInput/index.d.ts +7 -7
  97. package/dist/esm/lib/components/input/autoSuggestInput/index.stories.d.ts +84 -0
  98. package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.d.ts +7 -7
  99. package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +77 -0
  100. package/dist/esm/lib/components/link/index.d.ts +2 -0
  101. package/dist/esm/lib/components/link/index.stories.d.ts +26 -0
  102. package/dist/esm/lib/index.d.ts +6 -3
  103. package/dist/esm/util/testUtils/customRender.js +1 -1
  104. package/package.json +1 -1
  105. package/src/index.tsx +3 -0
  106. package/src/lib/components/badge/index.stories.tsx +45 -0
  107. package/src/lib/components/badge/index.test.tsx +11 -0
  108. package/src/lib/components/badge/index.tsx +54 -0
  109. package/src/lib/components/badge/style.module.scss +13 -0
  110. package/src/lib/components/cards/cardWithLeftIcon/index.stories.tsx +15 -0
  111. package/src/lib/components/cards/cardWithLeftIcon/index.tsx +19 -5
  112. package/src/lib/components/chip/index.tsx +3 -1
  113. package/src/lib/components/informationBox/index.stories.tsx +51 -0
  114. package/src/lib/components/informationBox/index.test.tsx +55 -0
  115. package/src/lib/components/informationBox/index.tsx +65 -0
  116. package/src/lib/components/informationBox/info.svg +11 -0
  117. package/src/lib/components/informationBox/style.module.scss +62 -0
  118. package/src/lib/components/input/autoSuggestInput/index.stories.tsx +162 -0
  119. package/src/lib/components/input/autoSuggestInput/index.tsx +15 -13
  120. package/src/lib/components/input/autoSuggestMultiSelect/index.stories.tsx +125 -0
  121. package/src/lib/components/input/autoSuggestMultiSelect/index.tsx +42 -29
  122. package/src/lib/components/input/autoSuggestMultiSelect/style.module.scss +6 -0
  123. package/src/lib/components/link/index.stories.tsx +29 -0
  124. package/src/lib/components/link/index.tsx +9 -0
  125. package/src/lib/index.tsx +8 -2
  126. package/dist/esm/index-47663d39.js.map +0 -1
  127. package/src/lib/components/input/autoSuggestInput/index.stories.mdx +0 -138
  128. package/src/lib/components/input/autoSuggestMultiSelect/index.stories.mdx +0 -115
  129. package/src/lib/scss/private/components/badge.stories.mdx +0 -43
@@ -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,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
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,9 +1,10 @@
1
1
  import { _ as __assign } from '../../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { CardWithTopLeftIcon } from '../index.js';
4
- import '../../../index-47663d39.js';
4
+ import '../../../index-29ac387a.js';
5
5
  import 'react';
6
6
  import '../../../style-inject.es-1f59c1d0.js';
7
+ import '../../../feather-logo-a3f07990.js';
7
8
 
8
9
  var story = {
9
10
  title: 'JSX/Cards/CardWithTopLeftIcon',
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardWithTopLeftIcon/index.stories.tsx"],"sourcesContent":["import { CardWithTopLeftIcon, CardWithTopLeftIconProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Cards/CardWithTopLeftIcon',\n component: CardWithTopLeftIcon,\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: 'logo',\n description: 'Icon displayed on the left of the card.',\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: '',\n type: 'text',\n description: 'Class name for most top parent element',\n },\n },\n};\n\nexport const CardWithTopLeftIconStory = ({\n title,\n dropshadow,\n children,\n className,\n cardSize,\n leftIcon,\n rightIcon,\n state,\n}: CardWithTopLeftIconProps) => {\n return (\n <CardWithTopLeftIcon\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 </CardWithTopLeftIcon>\n );\n}\n\nCardWithTopLeftIconStory.storyName = \"CardWithTopLeftIcon\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,+BAA+B;IACtC,SAAS,EAAE,mBAAmB;IAC9B,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,MAAM;YACpB,WAAW,EAAE,yCAAyC;SACvD;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,EAAE;YAChB,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wCAAwC;SACtD;KACF;EACD;IAEW,wBAAwB,GAAG,UAAC,EASd;QARzB,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,mBAAmB,aAClB,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,YACW,EACtB;AACJ,EAAC;AAED,wBAAwB,CAAC,SAAS,GAAG,qBAAqB;;;;;"}
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/cardWithTopLeftIcon/index.stories.tsx"],"sourcesContent":["import { CardWithTopLeftIcon, CardWithTopLeftIconProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Cards/CardWithTopLeftIcon',\n component: CardWithTopLeftIcon,\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: 'logo',\n description: 'Icon displayed on the left of the card.',\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: '',\n type: 'text',\n description: 'Class name for most top parent element',\n },\n },\n};\n\nexport const CardWithTopLeftIconStory = ({\n title,\n dropshadow,\n children,\n className,\n cardSize,\n leftIcon,\n rightIcon,\n state,\n}: CardWithTopLeftIconProps) => {\n return (\n <CardWithTopLeftIcon\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 </CardWithTopLeftIcon>\n );\n}\n\nCardWithTopLeftIconStory.storyName = \"CardWithTopLeftIcon\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,+BAA+B;IACtC,SAAS,EAAE,mBAAmB;IAC9B,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,MAAM;YACpB,WAAW,EAAE,yCAAyC;SACvD;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,EAAE;YAChB,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,wCAAwC;SACtD;KACF;EACD;IAEW,wBAAwB,GAAG,UAAC,EASd;QARzB,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,mBAAmB,aAClB,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,YACW,EACtB;AACJ,EAAC;AAED,wBAAwB,CAAC,SAAS,GAAG,qBAAqB;;;;;"}
@@ -1,9 +1,10 @@
1
1
  import { a as __rest, _ as __assign } from '../../tslib.es6-5bc94358.js';
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
- import { f as featherLogo, a as arrowRight, i as info } from '../../index-47663d39.js';
4
- export { C as CardButton } from '../../index-47663d39.js';
3
+ import { f as featherLogo, a as arrowRight, i as info } from '../../index-29ac387a.js';
4
+ export { C as CardButton } from '../../index-29ac387a.js';
5
5
  import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
6
6
  import 'react';
7
+ import '../../feather-logo-a3f07990.js';
7
8
 
8
9
  var css_248z$3 = ".style-module_container__3jKmy {\n padding: 24px;\n}\n.style-module_container--xsmall__1c9fn {\n padding: 16px 24px;\n}\n\n.style-module_title-container__yzUzm {\n display: flex;\n align-items: center;\n}\n\n.style-module_right-icon__1I62e {\n margin-left: auto;\n}\n\n.style-module_indent__2-oSJ {\n margin-left: 36px;\n}";
9
10
  var styles$3 = {"container":"style-module_container__3jKmy","container--xsmall":"style-module_container--xsmall__1c9fn","title-container":"style-module_title-container__yzUzm","right-icon":"style-module_right-icon__1I62e","indent":"style-module_indent__2-oSJ"};
@@ -110,13 +111,14 @@ var cardTextStyleFromCardSize = function (cardSize) {
110
111
  }
111
112
  };
112
113
  var CardWithLeftIcon = function (_a) {
113
- var _b = _a.className, className = _b === void 0 ? '' : _b, title = _a.title, _c = _a.cardSize, cardSize = _c === void 0 ? 'medium' : _c, children = _a.children, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, _d = _a.state, state = _d === void 0 ? 'actionable' : _d, _e = _a.dropshadow, dropshadow = _e === void 0 ? true : _e, props = __rest(_a, ["className", "title", "cardSize", "children", "leftIcon", "rightIcon", "state", "dropshadow"]);
114
+ var _b = _a.className, className = _b === void 0 ? '' : _b, title = _a.title, subtitle = _a.subtitle, _c = _a.cardSize, cardSize = _c === void 0 ? 'medium' : _c, children = _a.children, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, _d = _a.state, state = _d === void 0 ? 'actionable' : _d, _e = _a.dropshadow, dropshadow = _e === void 0 ? true : _e, leftIconSize = _a.leftIconSize, props = __rest(_a, ["className", "title", "subtitle", "cardSize", "children", "leftIcon", "rightIcon", "state", "dropshadow", "leftIconSize"]);
114
115
  var cardStyle = "d-flex ai-center " + className + " " + associatedClassForCardState(state, dropshadow) + " " + styles[containerStyleFromCardSize(cardSize)];
115
116
  var headingStyle = headingForCardSize(cardSize);
116
117
  var iconStyle = cardSize === 'xsmall' ? 'mr16' : 'mr32';
117
118
  var cardTextStyle = "tc-grey-600 " + (cardSize === 'xsmall' ? 'p-p--small' : 'p-p ') + " " + styles[cardTextStyleFromCardSize(cardSize)];
118
- return (jsxs("div", __assign({ className: cardStyle }, props, { children: [leftIcon && (jsx("img", { width: "48px", height: "48px", className: iconStyle, src: leftIcon.src, alt: leftIcon.alt }, void 0)),
119
- jsxs("div", { children: [jsxs("div", __assign({ className: "d-flex" }, { children: [jsx("div", __assign({ className: headingStyle }, { children: title }), void 0),
119
+ return (jsxs("div", __assign({ className: cardStyle }, props, { children: [leftIcon && (jsx("img", { width: ((leftIconSize === null || leftIconSize === void 0 ? void 0 : leftIconSize.width) || 48) + "px", height: ((leftIconSize === null || leftIconSize === void 0 ? void 0 : leftIconSize.height) || 48) + "px", className: iconStyle, src: leftIcon.src, alt: leftIcon.alt }, void 0)),
120
+ jsxs("div", { children: [jsxs("div", __assign({ className: "d-flex" }, { children: [(title || subtitle) && (jsxs("div", { children: [title && (jsx("div", __assign({ className: headingStyle }, { children: title }), void 0)),
121
+ subtitle && (jsx("div", __assign({ className: "tc-grey-500 " + headingStyle }, { children: subtitle }), void 0))] }, void 0)),
120
122
  rightIcon && (jsx("img", { className: "ml-auto", width: "24px", height: "24px", src: rightIcon === 'arrow' ? arrowRight.src : rightIcon.src, alt: rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt }, void 0))] }), void 0),
121
123
  jsx("p", __assign({ className: cardTextStyle }, { children: children }), void 0)] }, void 0)] }), void 0));
122
124
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/lib/components/cards/cardWithTopLeftIcon/index.tsx","../../../../../src/lib/components/cards/cardWithTopIcon/index.tsx","../../../../../src/lib/components/cards/infoCard/index.tsx","../../../../../src/lib/components/cards/index.tsx","../../../../../src/lib/components/cards/cardWithLeftIcon/index.tsx"],"sourcesContent":["import {\n associatedClassForCardState,\n CardProps,\n headingForCardSize,\n} from '..';\nimport { Icon, arrowRight, featherLogo } from '../icons';\n\nimport styles from './style.module.scss';\n\nconst containerStyleFromTitleSize = (\n titleSize: 'xsmall' | 'small' | 'medium' | 'big'\n): string => {\n switch (titleSize) {\n case 'xsmall':\n return 'container--xsmall';\n default:\n return 'container';\n }\n};\n\nexport type CardWithTopLeftIconProps = CardProps & {\n cardSize?: 'xsmall' | 'small' | 'medium' | 'big';\n leftIcon?: 'logo' | Icon;\n rightIcon?: 'arrow' | Icon;\n};\n\nexport const CardWithTopLeftIcon = ({\n className,\n title,\n cardSize = 'medium',\n children,\n leftIcon,\n rightIcon,\n state = 'actionable',\n dropshadow = true,\n ...props\n}: CardWithTopLeftIconProps) => {\n const cardStyle = `${className} ${associatedClassForCardState(\n state,\n dropshadow\n )} ${styles[containerStyleFromTitleSize(cardSize)]}`;\n\n const titleContainerStyle = styles['title-container'];\n const headingStyle = headingForCardSize(cardSize);\n const iconStyle = styles['right-icon'];\n const cardTextStyle = `p-p tc-grey-600 ${cardSize === 'xsmall' ? styles.indent : 'mt16'}`;\n\n return (\n <div className={cardStyle} {...props}>\n <div className={titleContainerStyle}>\n {leftIcon && (\n <img\n className=\"mr8\"\n width=\"28px\"\n height=\"28px\"\n src={leftIcon === 'logo' ? featherLogo.src : leftIcon.src}\n alt={leftIcon === 'logo' ? featherLogo.alt : leftIcon.src}\n />\n )}\n <div className={headingStyle}>{title}</div>\n {rightIcon && (\n <img\n className={iconStyle}\n width=\"24px\"\n height=\"24px\"\n src={rightIcon === 'arrow' ? arrowRight.src : rightIcon.src}\n alt={rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt}\n />\n )}\n </div>\n <p className={cardTextStyle}>{children}</p>\n </div>\n );\n};\n","import { associatedClassForCardState, CardProps, headingForCardSize } from '..';\nimport { Icon, arrowRight, IconSize } from '../icons';\n\nimport styles from './style.module.scss';\n\nexport type CardWithTopIconProps = CardProps & {\n topIcon: Icon;\n topIconSize: IconSize;\n cardSize?: 'small' | 'medium' | 'big';\n rightIcon?: 'arrow' | Icon;\n};\n\nexport const CardWithTopIcon = ({\n className,\n title,\n cardSize = 'medium',\n children,\n topIcon,\n topIconSize = { width: 48, height: 48 },\n rightIcon,\n state = 'actionable',\n dropshadow = true,\n ...props\n}: CardWithTopIconProps) => {\n const cardStyle = `d-flex fd-column ai-center ${className} ${associatedClassForCardState(\n state,\n dropshadow\n )} ${styles.container}`;\n\n const headingStyle = headingForCardSize(cardSize);\n const iconStyle = styles['right-icon'];\n\n return (\n <>\n <div className={cardStyle} {...props}>\n <img\n width={topIconSize.width}\n height={topIconSize.height}\n alt={topIcon.alt}\n src={topIcon.src}\n />\n <div className=\"d-flex mt16\">\n <div className={headingStyle}>{title}</div>\n {rightIcon && (\n <img\n className={iconStyle}\n width=\"24px\"\n height=\"24px\"\n src={rightIcon === 'arrow' ? arrowRight.src : rightIcon.src}\n alt={rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt}\n />\n )}\n </div>\n {children}\n </div>\n </>\n );\n};\n","import { associatedClassForCardState, CardProps } from '..';\nimport { Icon, info } from '../icons';\n\nimport styles from './style.module.scss';\n\nexport type InfoCardProps = CardProps & {\n topIcon: Icon;\n rightIcon?: 'info' | Icon;\n};\n\nexport const InfoCard = ({\n className,\n title,\n children,\n topIcon,\n rightIcon,\n state = 'actionable',\n dropshadow = true,\n ...props\n}: InfoCardProps) => (\n <div className={`${styles['root-container']} ${className ?? ''}`} {...props}>\n <img\n src={topIcon.src}\n alt={topIcon.alt}\n className={`${styles['top-icon']} ${\n state === 'muted' ? styles['top-icon--muted'] : ''\n } `}\n width=\"80px\"\n height=\"80px\"\n />\n <div\n className={`${associatedClassForCardState(state, dropshadow)} ${\n styles.container\n }`}\n >\n {rightIcon && (\n <img\n width=\"20px\"\n height=\"20px\"\n className={styles['right-icon']}\n src={rightIcon === 'info' ? info.src : rightIcon.src}\n alt={rightIcon === 'info' ? info.alt : rightIcon.alt}\n />\n )}\n <div className=\"p-h4 ta-center mt64\">{title}</div>\n <p className=\"p-p mt16 tc-grey-600\">{children}</p>\n </div>\n </div>\n);\n","import { CardWithTopLeftIcon } from './cardWithTopLeftIcon';\nimport { CardWithLeftIcon } from './cardWithLeftIcon';\nimport { CardWithTopIcon } from './cardWithTopIcon';\nimport { InfoCard } from './infoCard';\nimport { CardButton } from './cardButton';\n\ntype CardState = 'actionable' | 'static' | 'muted';\n\nexport type CardProps = {\n title: string;\n children: React.ReactNode;\n state?: CardState;\n dropshadow?: boolean;\n} & JSX.IntrinsicElements['div'];\n\nexport const headingForCardSize = (\n cardSize: 'xsmall' | 'small' | 'medium' | 'big'\n): string => {\n switch (cardSize) {\n case 'xsmall':\n case 'small':\n return 'p-h4';\n case 'medium':\n return 'p-h3';\n case 'big':\n return 'p-h2';\n }\n};\n\nexport const associatedClassForCardState = (\n state: CardState,\n dropshadow: boolean\n): string => {\n const baseClass = (() => {\n switch (state) {\n case 'actionable':\n return 'ds-card--actionable';\n case 'muted':\n return 'ds-card--muted';\n case 'static':\n return 'ds-card';\n }\n })();\n\n if (dropshadow === false) {\n return `${baseClass} ds-card--no-dropshadow`;\n }\n return baseClass;\n};\n\nexport {\n CardWithTopLeftIcon,\n CardWithLeftIcon,\n CardWithTopIcon,\n InfoCard,\n CardButton,\n};\n","import { associatedClassForCardState, CardProps, headingForCardSize } from '..';\nimport { Icon, arrowRight } from '../icons';\n\nimport styles from './style.module.scss';\n\nconst containerStyleFromCardSize = (\n cardSize: 'xsmall' | 'small' | 'medium' | 'big'\n): string => {\n switch (cardSize) {\n case 'xsmall':\n return 'container--xsmall';\n case 'small':\n return 'container--small';\n default:\n return 'container';\n }\n};\n\nconst cardTextStyleFromCardSize = (\n cardSize: 'xsmall' | 'small' | 'medium' | 'big'\n): string => {\n switch (cardSize) {\n case 'xsmall':\n case 'small':\n return 'card-text--small';\n case 'medium':\n return 'card-text--medium';\n default:\n return 'card-text--big';\n }\n};\n\nexport type CardWithLeftIconProps = CardProps & {\n cardSize?: 'xsmall' | 'small' | 'medium' | 'big';\n leftIcon?: Icon;\n rightIcon?: 'arrow' | Icon;\n}\n\nexport const CardWithLeftIcon = ({\n className = '',\n title,\n cardSize = 'medium',\n children,\n leftIcon,\n rightIcon,\n state = 'actionable',\n dropshadow = true,\n ...props\n}: CardWithLeftIconProps) => {\n const cardStyle = `d-flex ai-center ${className} ${associatedClassForCardState(\n state,\n dropshadow\n )} ${styles[containerStyleFromCardSize(cardSize)]}`;\n\n const headingStyle = headingForCardSize(cardSize);\n const iconStyle = cardSize === 'xsmall' ? 'mr16' : 'mr32';\n const cardTextStyle = `tc-grey-600 ${\n cardSize === 'xsmall' ? 'p-p--small' : 'p-p '\n } ${styles[cardTextStyleFromCardSize(cardSize)]}`;\n\n return (\n <div className={cardStyle} {...props}>\n {leftIcon && (\n <img\n width=\"48px\"\n height=\"48px\"\n className={iconStyle}\n src={leftIcon.src}\n alt={leftIcon.alt}\n />\n )}\n <div>\n <div className=\"d-flex\">\n <div className={headingStyle}>{title}</div>\n {rightIcon && (\n <img\n className=\"ml-auto\"\n width=\"24px\"\n height=\"24px\"\n src={rightIcon === 'arrow' ? arrowRight.src : rightIcon.src}\n alt={rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt}\n />\n )}\n </div>\n <p className={cardTextStyle}>{children}</p>\n </div>\n </div>\n );\n};\n"],"names":["styles","_jsxs","_jsx"],"mappings":";;;;;;;;;;;AASA,IAAM,2BAA2B,GAAG,UAClC,SAAgD;IAEhD,QAAQ,SAAS;QACf,KAAK,QAAQ;YACX,OAAO,mBAAmB,CAAC;QAC7B;YACE,OAAO,WAAW,CAAC;KACtB;AACH,CAAC,CAAC;IAQW,mBAAmB,GAAG,UAAC,EAUT;IATzB,IAAA,SAAS,eAAA,EACT,KAAK,WAAA,EACL,gBAAmB,EAAnB,QAAQ,mBAAG,QAAQ,KAAA,EACnB,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,aAAoB,EAApB,KAAK,mBAAG,YAAY,KAAA,EACpB,kBAAiB,EAAjB,UAAU,mBAAG,IAAI,KAAA,EACd,KAAK,cAT0B,8FAUnC,CADS;IAER,IAAM,SAAS,GAAM,SAAS,SAAI,2BAA2B,CAC3D,KAAK,EACL,UAAU,CACX,SAAIA,QAAM,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAG,CAAC;IAErD,IAAM,mBAAmB,GAAGA,QAAM,CAAC,iBAAiB,CAAC,CAAC;IACtD,IAAM,YAAY,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAClD,IAAM,SAAS,GAAGA,QAAM,CAAC,YAAY,CAAC,CAAC;IACvC,IAAM,aAAa,GAAG,sBAAmB,QAAQ,KAAK,QAAQ,GAAGA,QAAM,CAAC,MAAM,GAAG,MAAM,CAAE,CAAC;IAE1F,QACEC,uBAAK,SAAS,EAAE,SAAS,IAAM,KAAK,eAClCA,uBAAK,SAAS,EAAE,mBAAmB,iBAChC,QAAQ,KACPC,aACE,SAAS,EAAC,KAAK,EACf,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,GAAG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AAC,QAAQ,iBACrBC,sBAAK,SAAS,EAAE,YAAY,gBAAG,KAAK,YAAO;4BAC1C,SAAS,KACRA,aACE,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,UAAU,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,EAC3D,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,UAAU,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,WAC3D,CACH,aACG;oBACNA,oBAAG,SAAS,EAAE,aAAa,gBAAG,QAAQ,YAAK,YACvC,aACF,EACN;AACJ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/lib/components/cards/cardWithTopLeftIcon/index.tsx","../../../../../src/lib/components/cards/cardWithTopIcon/index.tsx","../../../../../src/lib/components/cards/infoCard/index.tsx","../../../../../src/lib/components/cards/index.tsx","../../../../../src/lib/components/cards/cardWithLeftIcon/index.tsx"],"sourcesContent":["import {\n associatedClassForCardState,\n CardProps,\n headingForCardSize,\n} from '..';\nimport { Icon, arrowRight, featherLogo } from '../icons';\n\nimport styles from './style.module.scss';\n\nconst containerStyleFromTitleSize = (\n titleSize: 'xsmall' | 'small' | 'medium' | 'big'\n): string => {\n switch (titleSize) {\n case 'xsmall':\n return 'container--xsmall';\n default:\n return 'container';\n }\n};\n\nexport type CardWithTopLeftIconProps = CardProps & {\n cardSize?: 'xsmall' | 'small' | 'medium' | 'big';\n leftIcon?: 'logo' | Icon;\n rightIcon?: 'arrow' | Icon;\n};\n\nexport const CardWithTopLeftIcon = ({\n className,\n title,\n cardSize = 'medium',\n children,\n leftIcon,\n rightIcon,\n state = 'actionable',\n dropshadow = true,\n ...props\n}: CardWithTopLeftIconProps) => {\n const cardStyle = `${className} ${associatedClassForCardState(\n state,\n dropshadow\n )} ${styles[containerStyleFromTitleSize(cardSize)]}`;\n\n const titleContainerStyle = styles['title-container'];\n const headingStyle = headingForCardSize(cardSize);\n const iconStyle = styles['right-icon'];\n const cardTextStyle = `p-p tc-grey-600 ${cardSize === 'xsmall' ? styles.indent : 'mt16'}`;\n\n return (\n <div className={cardStyle} {...props}>\n <div className={titleContainerStyle}>\n {leftIcon && (\n <img\n className=\"mr8\"\n width=\"28px\"\n height=\"28px\"\n src={leftIcon === 'logo' ? featherLogo.src : leftIcon.src}\n alt={leftIcon === 'logo' ? featherLogo.alt : leftIcon.src}\n />\n )}\n <div className={headingStyle}>{title}</div>\n {rightIcon && (\n <img\n className={iconStyle}\n width=\"24px\"\n height=\"24px\"\n src={rightIcon === 'arrow' ? arrowRight.src : rightIcon.src}\n alt={rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt}\n />\n )}\n </div>\n <p className={cardTextStyle}>{children}</p>\n </div>\n );\n};\n","import { associatedClassForCardState, CardProps, headingForCardSize } from '..';\nimport { Icon, arrowRight, IconSize } from '../icons';\n\nimport styles from './style.module.scss';\n\nexport type CardWithTopIconProps = CardProps & {\n topIcon: Icon;\n topIconSize: IconSize;\n cardSize?: 'small' | 'medium' | 'big';\n rightIcon?: 'arrow' | Icon;\n};\n\nexport const CardWithTopIcon = ({\n className,\n title,\n cardSize = 'medium',\n children,\n topIcon,\n topIconSize = { width: 48, height: 48 },\n rightIcon,\n state = 'actionable',\n dropshadow = true,\n ...props\n}: CardWithTopIconProps) => {\n const cardStyle = `d-flex fd-column ai-center ${className} ${associatedClassForCardState(\n state,\n dropshadow\n )} ${styles.container}`;\n\n const headingStyle = headingForCardSize(cardSize);\n const iconStyle = styles['right-icon'];\n\n return (\n <>\n <div className={cardStyle} {...props}>\n <img\n width={topIconSize.width}\n height={topIconSize.height}\n alt={topIcon.alt}\n src={topIcon.src}\n />\n <div className=\"d-flex mt16\">\n <div className={headingStyle}>{title}</div>\n {rightIcon && (\n <img\n className={iconStyle}\n width=\"24px\"\n height=\"24px\"\n src={rightIcon === 'arrow' ? arrowRight.src : rightIcon.src}\n alt={rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt}\n />\n )}\n </div>\n {children}\n </div>\n </>\n );\n};\n","import { associatedClassForCardState, CardProps } from '..';\nimport { Icon, info } from '../icons';\n\nimport styles from './style.module.scss';\n\nexport type InfoCardProps = CardProps & {\n topIcon: Icon;\n rightIcon?: 'info' | Icon;\n};\n\nexport const InfoCard = ({\n className,\n title,\n children,\n topIcon,\n rightIcon,\n state = 'actionable',\n dropshadow = true,\n ...props\n}: InfoCardProps) => (\n <div className={`${styles['root-container']} ${className ?? ''}`} {...props}>\n <img\n src={topIcon.src}\n alt={topIcon.alt}\n className={`${styles['top-icon']} ${\n state === 'muted' ? styles['top-icon--muted'] : ''\n } `}\n width=\"80px\"\n height=\"80px\"\n />\n <div\n className={`${associatedClassForCardState(state, dropshadow)} ${\n styles.container\n }`}\n >\n {rightIcon && (\n <img\n width=\"20px\"\n height=\"20px\"\n className={styles['right-icon']}\n src={rightIcon === 'info' ? info.src : rightIcon.src}\n alt={rightIcon === 'info' ? info.alt : rightIcon.alt}\n />\n )}\n <div className=\"p-h4 ta-center mt64\">{title}</div>\n <p className=\"p-p mt16 tc-grey-600\">{children}</p>\n </div>\n </div>\n);\n","import { CardWithTopLeftIcon } from './cardWithTopLeftIcon';\nimport { CardWithLeftIcon } from './cardWithLeftIcon';\nimport { CardWithTopIcon } from './cardWithTopIcon';\nimport { InfoCard } from './infoCard';\nimport { CardButton } from './cardButton';\n\ntype CardState = 'actionable' | 'static' | 'muted';\n\nexport type CardProps = {\n title: string;\n children: React.ReactNode;\n state?: CardState;\n dropshadow?: boolean;\n} & JSX.IntrinsicElements['div'];\n\nexport const headingForCardSize = (\n cardSize: 'xsmall' | 'small' | 'medium' | 'big'\n): string => {\n switch (cardSize) {\n case 'xsmall':\n case 'small':\n return 'p-h4';\n case 'medium':\n return 'p-h3';\n case 'big':\n return 'p-h2';\n }\n};\n\nexport const associatedClassForCardState = (\n state: CardState,\n dropshadow: boolean\n): string => {\n const baseClass = (() => {\n switch (state) {\n case 'actionable':\n return 'ds-card--actionable';\n case 'muted':\n return 'ds-card--muted';\n case 'static':\n return 'ds-card';\n }\n })();\n\n if (dropshadow === false) {\n return `${baseClass} ds-card--no-dropshadow`;\n }\n return baseClass;\n};\n\nexport {\n CardWithTopLeftIcon,\n CardWithLeftIcon,\n CardWithTopIcon,\n InfoCard,\n CardButton,\n};\n","import { associatedClassForCardState, CardProps, headingForCardSize } from '..';\nimport { Icon, IconSize, arrowRight } from '../icons';\n\nimport styles from './style.module.scss';\n\nconst containerStyleFromCardSize = (\n cardSize: 'xsmall' | 'small' | 'medium' | 'big'\n): string => {\n switch (cardSize) {\n case 'xsmall':\n return 'container--xsmall';\n case 'small':\n return 'container--small';\n default:\n return 'container';\n }\n};\n\nconst cardTextStyleFromCardSize = (\n cardSize: 'xsmall' | 'small' | 'medium' | 'big'\n): string => {\n switch (cardSize) {\n case 'xsmall':\n case 'small':\n return 'card-text--small';\n case 'medium':\n return 'card-text--medium';\n default:\n return 'card-text--big';\n }\n};\n\nexport type CardWithLeftIconProps = Omit<CardProps, 'title'> & {\n cardSize?: 'xsmall' | 'small' | 'medium' | 'big';\n leftIcon?: Icon;\n rightIcon?: 'arrow' | Icon;\n leftIconSize?: IconSize;\n title?: string;\n subtitle?: string;\n}\n\nexport const CardWithLeftIcon = ({\n className = '',\n title,\n subtitle,\n cardSize = 'medium',\n children,\n leftIcon,\n rightIcon,\n state = 'actionable',\n dropshadow = true,\n leftIconSize,\n ...props\n}: CardWithLeftIconProps) => {\n const cardStyle = `d-flex ai-center ${className} ${associatedClassForCardState(\n state,\n dropshadow\n )} ${styles[containerStyleFromCardSize(cardSize)]}`;\n\n const headingStyle = headingForCardSize(cardSize);\n const iconStyle = cardSize === 'xsmall' ? 'mr16' : 'mr32';\n const cardTextStyle = `tc-grey-600 ${\n cardSize === 'xsmall' ? 'p-p--small' : 'p-p '\n } ${styles[cardTextStyleFromCardSize(cardSize)]}`;\n\n return (\n <div className={cardStyle} {...props}>\n {leftIcon && (\n <img\n width={`${leftIconSize?.width || 48}px`}\n height={`${leftIconSize?.height || 48}px`}\n className={iconStyle}\n src={leftIcon.src}\n alt={leftIcon.alt}\n />\n )}\n <div>\n <div className=\"d-flex\">\n {(title || subtitle) && (\n <div>\n {title && (\n <div className={headingStyle}>{title}</div>\n )}\n {subtitle && (\n <div className={`tc-grey-500 ${headingStyle}`}>{subtitle}</div>\n )}\n </div>\n )}\n {rightIcon && (\n <img\n className=\"ml-auto\"\n width=\"24px\"\n height=\"24px\"\n src={rightIcon === 'arrow' ? arrowRight.src : rightIcon.src}\n alt={rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt}\n />\n )}\n </div>\n <p className={cardTextStyle}>{children}</p>\n </div>\n </div>\n );\n};\n"],"names":["styles","_jsxs","_jsx"],"mappings":";;;;;;;;;;;;AASA,IAAM,2BAA2B,GAAG,UAClC,SAAgD;IAEhD,QAAQ,SAAS;QACf,KAAK,QAAQ;YACX,OAAO,mBAAmB,CAAC;QAC7B;YACE,OAAO,WAAW,CAAC;KACtB;AACH,CAAC,CAAC;IAQW,mBAAmB,GAAG,UAAC,EAUT;IATzB,IAAA,SAAS,eAAA,EACT,KAAK,WAAA,EACL,gBAAmB,EAAnB,QAAQ,mBAAG,QAAQ,KAAA,EACnB,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,aAAoB,EAApB,KAAK,mBAAG,YAAY,KAAA,EACpB,kBAAiB,EAAjB,UAAU,mBAAG,IAAI,KAAA,EACd,KAAK,cAT0B,8FAUnC,CADS;IAER,IAAM,SAAS,GAAM,SAAS,SAAI,2BAA2B,CAC3D,KAAK,EACL,UAAU,CACX,SAAIA,QAAM,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAG,CAAC;IAErD,IAAM,mBAAmB,GAAGA,QAAM,CAAC,iBAAiB,CAAC,CAAC;IACtD,IAAM,YAAY,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAClD,IAAM,SAAS,GAAG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BACpB,QAAQ,KAAK,QAAQ,GAAG,YAAY,GAAG,MAAM,UAC3C,MAAM,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAG,CAAC;IAElD,QACED,uBAAK,SAAS,EAAE,SAAS,IAAM,KAAK,eACjC,QAAQ,KACPC,aACE,KAAK,EAAE,CAAG,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,KAAI,EAAE,QAAI,EACvC,MAAM,EAAE,CAAG,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,KAAI,EAAE,QAAI,EACzC,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,QAAQ,CAAC,GAAG,EACjB,GAAG,EAAE,QAAQ,CAAC,GAAG,WACjB,CACH;YACDD,yBACEA,uBAAK,SAAS,EAAC,QAAQ,iBACpB,CAAC,KAAK,IAAI,QAAQ,MACjBA,yBACG,KAAK,KACJC,sBAAK,SAAS,EAAE,YAAY,gBAAG,KAAK,YAAO,CAC5C;oCACA,QAAQ,KACPA,sBAAK,SAAS,EAAE,iBAAe,YAAc,gBAAG,QAAQ,YAAO,CAChE,YACG,CACP;4BACA,SAAS,KACRA,aACE,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,UAAU,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,EAC3D,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,UAAU,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,WAC3D,CACH,aACG;oBACNA,oBAAG,SAAS,EAAE,aAAa,gBAAG,QAAQ,YAAK,YACvC,aACF,EACN;AACJ;;;;"}
@@ -1,7 +1,8 @@
1
1
  import '../../../tslib.es6-5bc94358.js';
2
2
  import 'react/jsx-runtime';
3
3
  export { InfoCard } 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 { InfoCard } 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/InfoCard',
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/infoCard/index.stories.tsx"],"sourcesContent":["import { InfoCard, InfoCardProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Cards/InfoCard',\n component: InfoCard,\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, inside the purple circle',\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 dropshadow: {\n defaultValue: true,\n description: 'If the card should have a box-shadow or not',\n },\n className: {\n defaultValue: '',\n description: 'Class name for most top parent element',\n },\n },\n};\n\nexport const InfoCardStory = ({\n title,\n dropshadow,\n children,\n className,\n rightIcon,\n state,\n topIcon\n}: InfoCardProps) => {\n return (\n <InfoCard\n className={className}\n dropshadow={dropshadow}\n state={state}\n rightIcon={rightIcon}\n title={title}\n topIcon={topIcon}\n >\n {children}\n </InfoCard>\n );\n}\n\nInfoCardStory.storyName = \"InfoCard\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,QAAQ;IACnB,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,iEAAiE;SAC/E;QACD,SAAS,EAAE;YACT,YAAY,EAAE;gBACZ,GAAG,EAAE,MAAM,CAAC,cAAc;gBAC1B,GAAG,EAAE,UAAU;aAChB;YACD,WAAW,EAAE,oDAAoD;SAClE;QACD,UAAU,EAAE;YACV,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wCAAwC;SACtD;KACF;EACD;IAEW,aAAa,GAAG,UAAC,EAQd;QAPd,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,SAAS,eAAA,EACT,KAAK,WAAA,EACL,OAAO,aAAA;IAEP,QACEA,IAAC,QAAQ,aACP,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,gBAEf,QAAQ,YACA,EACX;AACJ,EAAC;AAED,aAAa,CAAC,SAAS,GAAG,UAAU;;;;;"}
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../../src/lib/components/cards/infoCard/index.stories.tsx"],"sourcesContent":["import { InfoCard, InfoCardProps } from '.';\nimport { images } from '../../../util/images';\n\nconst story = {\n title: 'JSX/Cards/InfoCard',\n component: InfoCard,\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, inside the purple circle',\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 dropshadow: {\n defaultValue: true,\n description: 'If the card should have a box-shadow or not',\n },\n className: {\n defaultValue: '',\n description: 'Class name for most top parent element',\n },\n },\n};\n\nexport const InfoCardStory = ({\n title,\n dropshadow,\n children,\n className,\n rightIcon,\n state,\n topIcon\n}: InfoCardProps) => {\n return (\n <InfoCard\n className={className}\n dropshadow={dropshadow}\n state={state}\n rightIcon={rightIcon}\n title={title}\n topIcon={topIcon}\n >\n {children}\n </InfoCard>\n );\n}\n\nInfoCardStory.storyName = \"InfoCard\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;;;;IAGM,KAAK,GAAG;IACZ,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,QAAQ;IACnB,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,iEAAiE;SAC/E;QACD,SAAS,EAAE;YACT,YAAY,EAAE;gBACZ,GAAG,EAAE,MAAM,CAAC,cAAc;gBAC1B,GAAG,EAAE,UAAU;aAChB;YACD,WAAW,EAAE,oDAAoD;SAClE;QACD,UAAU,EAAE;YACV,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS,EAAE;YACT,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,wCAAwC;SACtD;KACF;EACD;IAEW,aAAa,GAAG,UAAC,EAQd;QAPd,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,SAAS,eAAA,EACT,KAAK,WAAA,EACL,OAAO,aAAA;IAEP,QACEA,IAAC,QAAQ,aACP,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,gBAEf,QAAQ,YACA,EACX;AACJ,EAAC;AAED,aAAa,CAAC,SAAS,GAAG,UAAU;;;;;"}
@@ -11,8 +11,8 @@ var removeButtonIcon = "data:image/svg+xml,%3Csvg%20width%3D%2217%22%20height%3D
11
11
  var removeButtonHighlightedIcon = "data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%204L4%2012%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M4%204L12%2012%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
12
12
 
13
13
  var Chip = (function (_a) {
14
- var value = _a.value, onRemove = _a.onRemove;
15
- return (jsxs("div", __assign({ className: "p-p mr8 mb8 d-flex " + styles['chip'] }, { children: [value.leftIcon && (jsx("img", { className: "mr8 " + styles['chip-image'], src: value.leftIcon, alt: value.value }, void 0)),
14
+ var className = _a.className, value = _a.value, onRemove = _a.onRemove;
15
+ return (jsxs("div", __assign({ className: "p-p mr8 mb8 d-flex " + className + " " + styles['chip'] }, { children: [value.leftIcon && (jsx("img", { className: "mr8 " + styles['chip-image'], src: value.leftIcon, alt: value.value }, void 0)),
16
16
  jsx("div", __assign({ className: "mr8" }, { children: value.value }), void 0),
17
17
  jsxs("div", __assign({ className: "c-pointer " + styles['chip-button-container'], onClick: function () { return onRemove(value); } }, { children: [jsx("img", { className: styles['chip-remove-button-highlighted'], src: removeButtonHighlightedIcon, alt: "removal x button highlighted" }, void 0),
18
18
  jsx("img", { className: styles['chip-remove-button'], src: removeButtonIcon, alt: "removal x button" }, void 0)] }), void 0)] }), void 0));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/lib/components/chip/icons/remove-button.svg","../../../../src/lib/components/chip/icons/remove-button-highlighted.svg","../../../../../src/lib/components/chip/index.tsx"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2217%22%20height%3D%2216%22%20viewBox%3D%220%200%2017%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.4167%204L4.41666%2012%22%20stroke%3D%22%23B1B0F5%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M4.41666%204L12.4167%2012%22%20stroke%3D%22%23B1B0F5%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"","export default \"data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%204L4%2012%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M4%204L12%2012%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"","import styles from './style.module.scss';\nimport removeButtonIcon from './icons/remove-button.svg';\nimport removeButtonHighlightedIcon from './icons/remove-button-highlighted.svg';\nimport { Option } from '../../models/autoSuggestInput';\n\nexport default ({\n value,\n onRemove,\n}: {\n value: Option;\n onRemove: (value: Option) => void;\n}) => (\n <div className={`p-p mr8 mb8 d-flex ${styles['chip']}`}>\n {value.leftIcon && (\n <img\n className={`mr8 ${styles['chip-image']}`}\n src={value.leftIcon}\n alt={value.value}\n />\n )}\n <div className=\"mr8\">{value.value}</div>\n <div\n className={`c-pointer ${styles['chip-button-container']}`}\n onClick={() => onRemove(value)}\n >\n <img\n className={styles['chip-remove-button-highlighted']}\n src={removeButtonHighlightedIcon}\n alt=\"removal x button highlighted\"\n />\n <img\n className={styles['chip-remove-button']}\n src={removeButtonIcon}\n alt=\"removal x button\"\n />\n </div>\n </div>\n);\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAAA,uBAAe;;ACAf,kCAAe;;ACKf,YAAe,UAAC,EAMf;QALC,KAAK,WAAA,EACL,QAAQ,cAAA;IAIJ,QACJA,uBAAK,SAAS,EAAE,wBAAsB,MAAM,CAAC,MAAM,CAAG,iBACnD,KAAK,CAAC,QAAQ,KACbC,aACE,SAAS,EAAE,SAAO,MAAM,CAAC,YAAY,CAAG,EACxC,GAAG,EAAE,KAAK,CAAC,QAAQ,EACnB,GAAG,EAAE,KAAK,CAAC,KAAK,WAChB,CACH;YACDA,sBAAK,SAAS,EAAC,KAAK,gBAAE,KAAK,CAAC,KAAK,YAAO;YACxCD,uBACE,SAAS,EAAE,eAAa,MAAM,CAAC,uBAAuB,CAAG,EACzD,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,KAAK,CAAC,GAAA,iBAE9BC,aACE,SAAS,EAAE,MAAM,CAAC,gCAAgC,CAAC,EACnD,GAAG,EAAE,2BAA2B,EAChC,GAAG,EAAC,8BAA8B,WAClC;oBACFA,aACE,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,EACvC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAC,kBAAkB,WACtB,aACE,aACF;AAzBF,CA0BL;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/lib/components/chip/icons/remove-button.svg","../../../../src/lib/components/chip/icons/remove-button-highlighted.svg","../../../../../src/lib/components/chip/index.tsx"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2217%22%20height%3D%2216%22%20viewBox%3D%220%200%2017%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.4167%204L4.41666%2012%22%20stroke%3D%22%23B1B0F5%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M4.41666%204L12.4167%2012%22%20stroke%3D%22%23B1B0F5%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"","export default \"data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%204L4%2012%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M4%204L12%2012%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"","import styles from './style.module.scss';\nimport removeButtonIcon from './icons/remove-button.svg';\nimport removeButtonHighlightedIcon from './icons/remove-button-highlighted.svg';\nimport { Option } from '../../models/autoSuggestInput';\n\nexport default ({\n className,\n value,\n onRemove,\n}: {\n value: Option;\n onRemove: (value: Option) => void;\n className?: string;\n}) => (\n <div className={`p-p mr8 mb8 d-flex ${className} ${styles['chip']}`}>\n {value.leftIcon && (\n <img\n className={`mr8 ${styles['chip-image']}`}\n src={value.leftIcon}\n alt={value.value}\n />\n )}\n <div className=\"mr8\">{value.value}</div>\n <div\n className={`c-pointer ${styles['chip-button-container']}`}\n onClick={() => onRemove(value)}\n >\n <img\n className={styles['chip-remove-button-highlighted']}\n src={removeButtonHighlightedIcon}\n alt=\"removal x button highlighted\"\n />\n <img\n className={styles['chip-remove-button']}\n src={removeButtonIcon}\n alt=\"removal x button\"\n />\n </div>\n </div>\n);\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAAA,uBAAe;;ACAf,kCAAe;;ACKf,YAAe,UAAC,EAQf;QAPC,SAAS,eAAA,EACT,KAAK,WAAA,EACL,QAAQ,cAAA;IAKJ,QACJA,uBAAK,SAAS,EAAE,wBAAsB,SAAS,SAAI,MAAM,CAAC,MAAM,CAAG,iBAChE,KAAK,CAAC,QAAQ,KACbC,aACE,SAAS,EAAE,SAAO,MAAM,CAAC,YAAY,CAAG,EACxC,GAAG,EAAE,KAAK,CAAC,QAAQ,EACnB,GAAG,EAAE,KAAK,CAAC,KAAK,WAChB,CACH;YACDA,sBAAK,SAAS,EAAC,KAAK,gBAAE,KAAK,CAAC,KAAK,YAAO;YACxCD,uBACE,SAAS,EAAE,eAAa,MAAM,CAAC,uBAAuB,CAAG,EACzD,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,KAAK,CAAC,GAAA,iBAE9BC,aACE,SAAS,EAAE,MAAM,CAAC,gCAAgC,CAAC,EACnD,GAAG,EAAE,2BAA2B,EAChC,GAAG,EAAC,8BAA8B,WAClC;oBACFA,aACE,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,EACvC,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAC,kBAAkB,WACtB,aACE,aACF;AAzBF,CA0BL;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { _ as __assign, b as __awaiter, c as __generator } from '../../../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { c as customRender } from '../../../../customRender-4157fcff.js';
4
- import '../../../../extend-expect-46bdce4a.js';
3
+ import { c as customRender } from '../../../../customRender-20b5f7ec.js';
4
+ import '../../../../extend-expect-25e5049d.js';
5
5
  import TableButton from './index.js';
6
6
  import 'react';
7
7
  import 'react-dom';
@@ -1,7 +1,7 @@
1
1
  import { _ as __assign, b as __awaiter, c as __generator } from '../../../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { c as customRender } from '../../../../customRender-4157fcff.js';
4
- import '../../../../extend-expect-46bdce4a.js';
3
+ import { c as customRender } from '../../../../customRender-20b5f7ec.js';
4
+ import '../../../../extend-expect-25e5049d.js';
5
5
  import TableRowHeader from './index.js';
6
6
  import 'react';
7
7
  import 'react-dom';
@@ -1,6 +1,6 @@
1
1
  import { b as __awaiter, c as __generator } from '../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { c as customRender } from '../../customRender-4157fcff.js';
3
+ import { c as customRender } from '../../customRender-20b5f7ec.js';
4
4
  import { D as DateSelector } from '../../index-639cf8b3.js';
5
5
  import 'react';
6
6
  import 'react-dom';
@@ -0,0 +1,19 @@
1
+ import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
+ import { jsx, jsxs } 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_informationBox__1dzYO {\n border: 1px solid;\n}\n.style-module_informationBox--information__rsyoM {\n background-color: #e5f0ff;\n border-color: #8bb4ea;\n}\n.style-module_informationBox--error__3BqOR {\n background-color: #fedede;\n border-color: #e55454;\n}\n.style-module_informationBox--warning__10V-E {\n background-color: #fff8e3;\n border-color: #f7ce5c;\n}\n.style-module_informationBox--success__d3gTw {\n background-color: #e4ffe6;\n border-color: #84de8a;\n}\n.style-module_informationBox--neutral__1XsMl {\n background-color: #fff;\n border-color: #fff;\n}\n\n.style-module_icon__3ZdHj {\n display: inline-block;\n width: 24px;\n height: 24px;\n mask-image: url(\"./info.svg\");\n mask-size: contain;\n mask-repeat: no-repeat;\n mask-position: center;\n}\n.style-module_icon--information__3Lmkk {\n background-color: #8bb4ea;\n}\n.style-module_icon--error__1bgLF {\n background-color: #e55454;\n}\n.style-module_icon--warning__3o6cZ {\n background-color: #f7ce5c;\n}\n.style-module_icon--success__ANiiU {\n background-color: #84de8a;\n}\n.style-module_icon--neutral__3KLc5 {\n background-color: #8e8cee;\n}";
7
+ var styles = {"informationBox":"style-module_informationBox__1dzYO","informationBox--information":"style-module_informationBox--information__rsyoM","informationBox--error":"style-module_informationBox--error__3BqOR","informationBox--warning":"style-module_informationBox--warning__10V-E","informationBox--success":"style-module_informationBox--success__d3gTw","informationBox--neutral":"style-module_informationBox--neutral__1XsMl","icon":"style-module_icon__3ZdHj","icon--information":"style-module_icon--information__3Lmkk","icon--error":"style-module_icon--error__1bgLF","icon--warning":"style-module_icon--warning__3o6cZ","icon--success":"style-module_icon--success__ANiiU","icon--neutral":"style-module_icon--neutral__3KLc5"};
8
+ styleInject(css_248z);
9
+
10
+ var InformationBox = function (_a) {
11
+ var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.variant, variant = _c === void 0 ? 'information' : _c, title = _a.title, children = _a.children, showIcon = _a.showIcon, _d = _a.size, size = _d === void 0 ? 'default' : _d;
12
+ return (jsx("div", __assign({ className: classnames(className, 'p16 br8 color-black', styles.informationBox, styles["informationBox--" + variant]), role: "alert" }, { children: jsxs("div", __assign({ className: 'd-flex' }, { children: [showIcon &&
13
+ jsx("span", { "data-testid": "information-box-icon", className: classnames(styles.icon, styles["icon--" + variant], 'mr8') }, void 0),
14
+ jsxs("div", { children: [title && (jsx("h4", __assign({ "data-testid": "information-box-title", className: classnames(size === 'default' ? 'p-h4' : 'p-h5', 'mb8') }, { children: title }), void 0)),
15
+ jsx("p", __assign({ className: size === 'default' ? 'p-p' : 'p-p--small' }, { children: children }), void 0)] }, void 0)] }), void 0) }), void 0));
16
+ };
17
+
18
+ export { InformationBox };
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/lib/components/informationBox/index.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\nimport styles from './style.module.scss';\n\ntype Variant = 'warning' | 'error' | 'success' | 'information' | 'neutral';\n\nexport interface InformationBoxProps {\n className?: string;\n variant?: Variant;\n title?: string;\n children: ReactNode;\n showIcon?: boolean;\n size?: 'default' | 'small';\n}\n\nconst InformationBox = ({\n className = '',\n variant = 'information',\n title,\n children,\n showIcon,\n size = 'default'\n}: InformationBoxProps) => (\n <div\n className={classNames(\n className, \n 'p16 br8 color-black', \n styles.informationBox,\n styles[`informationBox--${variant}`]\n )}\n role=\"alert\"\n >\n <div className='d-flex'>\n {showIcon && \n <span\n data-testid=\"information-box-icon\"\n className={classNames(\n styles.icon,\n styles[`icon--${variant}`],\n 'mr8'\n )}\n />\n }\n <div>\n {title && (\n <h4 \n data-testid=\"information-box-title\"\n className={classNames(\n size === 'default'? 'p-h4' : 'p-h5',\n 'mb8'\n )}\n >\n {title}\n </h4>\n )}\n\n <p className={size === 'default' ? 'p-p' : 'p-p--small'}>\n {children}\n </p>\n </div>\n </div>\n </div>\n);\n\nexport { InformationBox };\n"],"names":["_jsx","classNames","_jsxs"],"mappings":";;;;;;;;;IAeM,cAAc,GAAG,UAAC,EAOF;QANpB,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,eAAuB,EAAvB,OAAO,mBAAG,aAAa,KAAA,EACvB,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,YAAgB,EAAhB,IAAI,mBAAG,SAAS,KAAA;IACS,QACzBA,sBACE,SAAS,EAAEC,UAAU,CACnB,SAAS,EACT,qBAAqB,EACrB,MAAM,CAAC,cAAc,EACrB,MAAM,CAAC,qBAAmB,OAAS,CAAC,CACrC,EACD,IAAI,EAAC,OAAO,gBAEZC,uBAAK,SAAS,EAAC,QAAQ,iBACpB,QAAQ;oBACPF,6BACc,sBAAsB,EAClC,SAAS,EAAEC,UAAU,CACnB,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,WAAS,OAAS,CAAC,EAC1B,KAAK,CACN,WACD;gBAEJC,yBACG,KAAK,KACJF,oCACc,uBAAuB,EACnC,SAAS,EAAEC,UAAU,CACnB,IAAI,KAAK,SAAS,GAAE,MAAM,GAAG,MAAM,EACnC,KAAK,CACN,gBAEA,KAAK,YACH,CACN;wBAEDD,oBAAG,SAAS,EAAE,IAAI,KAAK,SAAS,GAAG,KAAK,GAAG,YAAY,gBACpD,QAAQ,YACP,YACA,aACF,YACF;AAvCmB;;;;"}
@@ -0,0 +1,42 @@
1
+ import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { InformationBox } from './index.js';
4
+ import '../../index-e9e37a34.js';
5
+ import '../../style-inject.es-1f59c1d0.js';
6
+
7
+ var story = {
8
+ title: 'JSX/InformationBox',
9
+ component: InformationBox,
10
+ argTypes: {
11
+ children: {
12
+ control: { type: 'text' },
13
+ defaultValue: 'It seems that you already have an account with us! Sign in now',
14
+ description: 'Content that is displayed inside the information box',
15
+ },
16
+ title: {
17
+ defaultValue: 'Log in to your account',
18
+ description: 'Title of the information box',
19
+ },
20
+ showIcon: {
21
+ defaultValue: false,
22
+ description: 'Whether or not to show the info icon',
23
+ },
24
+ size: {
25
+ defaultValue: 'default',
26
+ description: 'Size to display the component',
27
+ },
28
+ variant: {
29
+ defaultValue: 'information',
30
+ description: 'Variant that defines the style of the InformationBox',
31
+ },
32
+ }
33
+ };
34
+ var InformationBoxStory = function (_a) {
35
+ var children = _a.children, showIcon = _a.showIcon, title = _a.title, size = _a.size, variant = _a.variant;
36
+ return (jsx("div", __assign({ className: 'wmx6' }, { children: jsx(InformationBox, { children: children, showIcon: showIcon, title: title, size: size, variant: variant }, void 0) }), void 0));
37
+ };
38
+ InformationBoxStory.storyName = "InformationBox";
39
+
40
+ export default story;
41
+ export { InformationBoxStory };
42
+ //# sourceMappingURL=index.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../../src/lib/components/informationBox/index.stories.tsx"],"sourcesContent":["import { InformationBox, InformationBoxProps } from '.';\n\nconst story = {\n title: 'JSX/InformationBox',\n component: InformationBox,\n argTypes: {\n children: {\n control: { type: 'text' },\n defaultValue: 'It seems that you already have an account with us! Sign in now',\n description: 'Content that is displayed inside the information box',\n },\n title: {\n defaultValue: 'Log in to your account',\n description: 'Title of the information box',\n },\n showIcon: {\n defaultValue: false,\n description: 'Whether or not to show the info icon',\n },\n size: {\n defaultValue: 'default',\n description: 'Size to display the component',\n },\n variant: {\n defaultValue: 'information',\n description: 'Variant that defines the style of the InformationBox',\n },\n }\n};\n\nexport const InformationBoxStory = ({\n children,\n showIcon,\n title,\n size,\n variant,\n}: InformationBoxProps) => (\n <div className='wmx6'>\n <InformationBox\n children={children}\n showIcon={showIcon}\n title={title}\n size={size}\n variant={variant}\n />\n </div>\n);\n\nInformationBoxStory.storyName = \"InformationBox\";\n\nexport default story;\n"],"names":["_jsx"],"mappings":";;;;;;IAEM,KAAK,GAAG;IACZ,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,cAAc;IACzB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,YAAY,EAAE,gEAAgE;YAC9E,WAAW,EAAE,sDAAsD;SACpE;QACD,KAAK,EAAE;YACL,YAAY,EAAE,wBAAwB;YACtC,WAAW,EAAE,8BAA8B;SAC5C;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,sCAAsC;SACpD;QACD,IAAI,EAAE;YACJ,YAAY,EAAE,SAAS;YACvB,WAAW,EAAE,+BAA+B;SAC7C;QACD,OAAO,EAAE;YACP,YAAY,EAAE,aAAa;YAC3B,WAAW,EAAE,sDAAsD;SACpE;KACF;EACD;IAEW,mBAAmB,GAAG,UAAC,EAMd;QALpB,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,OAAO,aAAA;IACkB,QACzBA,sBAAK,SAAS,EAAC,MAAM,gBACnBA,IAAC,cAAc,IACb,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,WAChB,YACE;AATmB,EAUzB;AAEF,mBAAmB,CAAC,SAAS,GAAG,gBAAgB;;;;;"}
@@ -0,0 +1,49 @@
1
+ import { b as __awaiter, c as __generator, _ as __assign } 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 { InformationBox } 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('InformationBox component', function () {
13
+ it('Should render title', function () { return __awaiter(void 0, void 0, void 0, function () {
14
+ return __generator(this, function (_a) {
15
+ customRender(jsx(InformationBox, __assign({ title: 'Title' }, { children: "Content" }), void 0));
16
+ expect(screen.getByText('Title')).toBeInTheDocument();
17
+ return [2 /*return*/];
18
+ });
19
+ }); });
20
+ it('Should not render title when title prop is not passed', function () { return __awaiter(void 0, void 0, void 0, function () {
21
+ return __generator(this, function (_a) {
22
+ customRender(jsx(InformationBox, { children: "Content" }, void 0));
23
+ expect(screen.queryByTestId('information-box-title')).not.toBeInTheDocument();
24
+ return [2 /*return*/];
25
+ });
26
+ }); });
27
+ it('Should render content', function () { return __awaiter(void 0, void 0, void 0, function () {
28
+ return __generator(this, function (_a) {
29
+ customRender(jsx(InformationBox, { children: "Content" }, void 0));
30
+ expect(screen.getByText('Content')).toBeInTheDocument();
31
+ return [2 /*return*/];
32
+ });
33
+ }); });
34
+ it('Should show icon when showIcon is true', function () { return __awaiter(void 0, void 0, void 0, function () {
35
+ return __generator(this, function (_a) {
36
+ customRender(jsx(InformationBox, __assign({ showIcon: true }, { children: "Content" }), void 0));
37
+ expect(screen.getByTestId('information-box-icon')).toBeInTheDocument();
38
+ return [2 /*return*/];
39
+ });
40
+ }); });
41
+ it('Should not show icon when showIcon is false', function () { return __awaiter(void 0, void 0, void 0, function () {
42
+ return __generator(this, function (_a) {
43
+ customRender(jsx(InformationBox, __assign({ showIcon: false }, { children: "Content" }), void 0));
44
+ expect(screen.queryByTestId('information-box-icon')).not.toBeInTheDocument();
45
+ return [2 /*return*/];
46
+ });
47
+ }); });
48
+ });
49
+ //# sourceMappingURL=index.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.js","sources":["../../../../../src/lib/components/informationBox/index.test.tsx"],"sourcesContent":["import { render, screen } from '../../util/testUtils';\n\nimport { InformationBox } from '.';\n\ndescribe('InformationBox component', () => {\n it('Should render title', async () => {\n render(\n <InformationBox title={'Title'}>\n Content\n </InformationBox>\n )\n\n expect(screen.getByText('Title')).toBeInTheDocument();\n });\n\n it('Should not render title when title prop is not passed', async () => {\n render(\n <InformationBox>\n Content\n </InformationBox>\n )\n\n expect(screen.queryByTestId('information-box-title')).not.toBeInTheDocument();\n });\n \n it('Should render content', async () => {\n render(\n <InformationBox>\n Content\n </InformationBox>\n )\n\n expect(screen.getByText('Content')).toBeInTheDocument();\n });\n \n it('Should show icon when showIcon is true', async () => {\n render(\n <InformationBox showIcon>\n Content\n </InformationBox>\n )\n\n expect(screen.getByTestId('information-box-icon')).toBeInTheDocument();\n });\n \n it('Should not show icon when showIcon is false', async () => {\n render(\n <InformationBox showIcon={false}>\n Content\n </InformationBox>\n )\n\n expect(screen.queryByTestId('information-box-icon')).not.toBeInTheDocument();\n });\n});\n"],"names":["render","_jsx"],"mappings":";;;;;;;;;;;AAIA,QAAQ,CAAC,0BAA0B,EAAE;IACnC,EAAE,CAAC,qBAAqB,EAAE;;YACxBA,YAAM,CACJC,IAAC,cAAc,aAAC,KAAK,EAAE,OAAO,qCAEb,CAClB,CAAA;YAED,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;;;SACvD,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE;;YAC1DD,YAAM,CACJC,IAAC,cAAc,kCAEE,CAClB,CAAA;YAED,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;;;SAC/E,CAAC,CAAC;IAEH,EAAE,CAAC,uBAAuB,EAAE;;YAC1BD,YAAM,CACJC,IAAC,cAAc,kCAEE,CAClB,CAAA;YAED,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;;;SACzD,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE;;YAC3CD,YAAM,CACJC,IAAC,cAAc,aAAC,QAAQ,2CAEP,CAClB,CAAA;YAED,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;;;SACxE,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE;;YAChDD,YAAM,CACJC,IAAC,cAAc,aAAC,QAAQ,EAAE,KAAK,qCAEd,CAClB,CAAA;YAED,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;;;SAC9E,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -2133,7 +2133,7 @@ var css_248z = "@keyframes style-module_appearInAnimation__yvH4A {\n from {\n
2133
2133
  var styles = {"suggestionsContainer":"style-module_suggestionsContainer__2yVXd","suggestionsList":"style-module_suggestionsList__11o48","appearInAnimation":"style-module_appearInAnimation__yvH4A","suggestion-option":"style-module_suggestion-option__z7pqG","suggestion-img":"style-module_suggestion-img__1TfiA","suggestion-text":"style-module_suggestion-text__7wL31","nowrap":"style-module_nowrap__uks9c","suggestionHighlighted":"style-module_suggestionHighlighted__2zu5h"};
2134
2134
  styleInject(css_248z);
2135
2135
 
2136
- var AutoSuggestInput = (function (_a) {
2136
+ var AutoSuggestInput = function (_a) {
2137
2137
  var currentOption = _a.currentOption, suggestions = _a.suggestions, handleSuggestionSelected = _a.handleSuggestionSelected, onChange = _a.onChange, handleSuggestionFetchRequest = _a.handleSuggestionFetchRequest, handleSuggestionClearRequest = _a.handleSuggestionClearRequest, placeholder = _a.placeholder, className = _a.className, wrapText = _a.wrapText, inputProps = _a.inputProps;
2138
2138
  var renderSuggestion = function (suggestion) {
2139
2139
  var _a;
@@ -2151,7 +2151,7 @@ var AutoSuggestInput = (function (_a) {
2151
2151
  var suggestion = _a.suggestion;
2152
2152
  handleSuggestionSelected(suggestion);
2153
2153
  }, renderInputComponent: renderInputComponent }, void 0) }), void 0));
2154
- });
2154
+ };
2155
2155
 
2156
- export default AutoSuggestInput;
2156
+ export { AutoSuggestInput };
2157
2157
  //# sourceMappingURL=index.js.map