@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
@@ -0,0 +1,4 @@
1
+ var featherLogo = "data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0%22%20mask-type%3D%22alpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%223%22%20y%3D%220%22%20width%3D%2222%22%20height%3D%2228%22%3E%3Cpath%20d%3D%22M23.8761%200C14.4485%204.03927%205.77595%2019.2529%203.53731%2026.0756C3.04003%2027.5912%202.60201%2029.2504%204.03812%2026.6043C4.89889%2025.0183%207.02902%2022.7858%2011.8864%2021.9848C15.7724%2021.344%2017.3995%2020.5116%2019.8916%2017.6795C18.7427%2018.0914%2017.2587%2018.9525%2014.0909%2017.9656C18.4837%2018.3512%2021.5108%2015.748%2022.6934%2012.044C19.7931%2013.3599%2017.3385%2012.4392%2016.6956%2012.1007C20.6519%2012.2002%2023.9887%209.68393%2024.7913%205.49304C25.2591%203.05005%2024.5097%200.800979%2023.8761%200Z%22%20fill%3D%22%236160A2%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0%29%22%3E%3Cpath%20d%3D%22M21.1875%201.45451C12.8431%206.88225%205.56109%2019.9077%203.53731%2026.0756C3.04003%2027.5912%202.60201%2029.2504%204.03812%2026.6043C4.89889%2025.0183%207.02902%2022.7858%2011.8864%2021.9848C15.1146%2021.4525%2016.784%2020.7879%2018.6853%2018.9545C19.0219%2018.63%2019.1998%2017.9565%2018.7553%2018.1015C18.24%2018.2696%2017.709%2017.5612%2018.205%2017.3425C19.7521%2016.6603%2020.976%2015.4887%2021.8303%2014.0102C22.2446%2013.2932%2020.7231%2012.6796%2019.8955%2012.7075C18.8859%2012.7415%2019.6982%2011.6399%2020.6391%2011.2723C21.8973%2010.7807%2023.0427%2010.0842%2023.7916%209.26859C24.7617%208.21223%2024.48%207.11878%2024.7913%205.49304C24.969%204.56516%2024.971%203.66526%2024.8706%202.86204C24.6464%201.06951%2022.7019%200.469502%2021.1875%201.45451Z%22%20fill%3D%22%236160A2%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M30.4837%205.72996C30.4837%2014.8734%2023.1695%2022.4039%2014.0022%2022.4039C4.83493%2022.4039%20-2.47925%2014.8734%20-2.47925%205.72996C-2.47925%20-3.4135%204.83493%20-10.944%2014.0022%20-10.944C23.1695%20-10.944%2030.4837%20-3.4135%2030.4837%205.72996ZM14.0022%2018.0289C20.6884%2018.0289%2026.1087%2012.5225%2026.1087%205.72996C26.1087%20-1.06259%2020.6884%20-6.56903%2014.0022%20-6.56903C7.316%20-6.56903%201.89575%20-1.06259%201.89575%205.72996C1.89575%2012.5225%207.316%2018.0289%2014.0022%2018.0289Z%22%20fill%3D%22%2390DF9B%22%2F%3E%3Cpath%20d%3D%22M26.1087%205.72995C26.1087%2012.5225%2020.6884%2018.0289%2014.0022%2018.0289C7.316%2018.0289%201.89575%2012.5225%201.89575%205.72995C1.89575%20-1.06259%207.316%20-6.56903%2014.0022%20-6.56903C20.6884%20-6.56903%2026.1087%20-1.06259%2026.1087%205.72995Z%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E";
2
+
3
+ export { featherLogo as f };
4
+ //# sourceMappingURL=feather-logo-a3f07990.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feather-logo-a3f07990.js","sources":["../../src/lib/components/cards/icons/feather-logo.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0%22%20mask-type%3D%22alpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%223%22%20y%3D%220%22%20width%3D%2222%22%20height%3D%2228%22%3E%3Cpath%20d%3D%22M23.8761%200C14.4485%204.03927%205.77595%2019.2529%203.53731%2026.0756C3.04003%2027.5912%202.60201%2029.2504%204.03812%2026.6043C4.89889%2025.0183%207.02902%2022.7858%2011.8864%2021.9848C15.7724%2021.344%2017.3995%2020.5116%2019.8916%2017.6795C18.7427%2018.0914%2017.2587%2018.9525%2014.0909%2017.9656C18.4837%2018.3512%2021.5108%2015.748%2022.6934%2012.044C19.7931%2013.3599%2017.3385%2012.4392%2016.6956%2012.1007C20.6519%2012.2002%2023.9887%209.68393%2024.7913%205.49304C25.2591%203.05005%2024.5097%200.800979%2023.8761%200Z%22%20fill%3D%22%236160A2%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0%29%22%3E%3Cpath%20d%3D%22M21.1875%201.45451C12.8431%206.88225%205.56109%2019.9077%203.53731%2026.0756C3.04003%2027.5912%202.60201%2029.2504%204.03812%2026.6043C4.89889%2025.0183%207.02902%2022.7858%2011.8864%2021.9848C15.1146%2021.4525%2016.784%2020.7879%2018.6853%2018.9545C19.0219%2018.63%2019.1998%2017.9565%2018.7553%2018.1015C18.24%2018.2696%2017.709%2017.5612%2018.205%2017.3425C19.7521%2016.6603%2020.976%2015.4887%2021.8303%2014.0102C22.2446%2013.2932%2020.7231%2012.6796%2019.8955%2012.7075C18.8859%2012.7415%2019.6982%2011.6399%2020.6391%2011.2723C21.8973%2010.7807%2023.0427%2010.0842%2023.7916%209.26859C24.7617%208.21223%2024.48%207.11878%2024.7913%205.49304C24.969%204.56516%2024.971%203.66526%2024.8706%202.86204C24.6464%201.06951%2022.7019%200.469502%2021.1875%201.45451Z%22%20fill%3D%22%236160A2%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M30.4837%205.72996C30.4837%2014.8734%2023.1695%2022.4039%2014.0022%2022.4039C4.83493%2022.4039%20-2.47925%2014.8734%20-2.47925%205.72996C-2.47925%20-3.4135%204.83493%20-10.944%2014.0022%20-10.944C23.1695%20-10.944%2030.4837%20-3.4135%2030.4837%205.72996ZM14.0022%2018.0289C20.6884%2018.0289%2026.1087%2012.5225%2026.1087%205.72996C26.1087%20-1.06259%2020.6884%20-6.56903%2014.0022%20-6.56903C7.316%20-6.56903%201.89575%20-1.06259%201.89575%205.72996C1.89575%2012.5225%207.316%2018.0289%2014.0022%2018.0289Z%22%20fill%3D%22%2390DF9B%22%2F%3E%3Cpath%20d%3D%22M26.1087%205.72995C26.1087%2012.5225%2020.6884%2018.0289%2014.0022%2018.0289C7.316%2018.0289%201.89575%2012.5225%201.89575%205.72995C1.89575%20-1.06259%207.316%20-6.56903%2014.0022%20-6.56903C20.6884%20-6.56903%2026.1087%20-1.06259%2026.1087%205.72995Z%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\""],"names":[],"mappings":"AAAA,kBAAe;;;;"}
@@ -2,6 +2,7 @@ import { _ as __assign } from './tslib.es6-5bc94358.js';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
3
  import { createElement } from 'react';
4
4
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
5
+ import { f as featherLogo$1 } from './feather-logo-a3f07990.js';
5
6
 
6
7
  var css_248z = ".style-module_container__2tJCE {\n background-color: white;\n padding: 8px 16px;\n box-shadow: 0px 2px 20px rgba(97, 96, 162, 0.07);\n border-radius: 8px;\n border: 2px solid white;\n transition: border 0.2s ease-in-out;\n display: flex;\n justify-content: space-between;\n align-items: center;\n text-decoration: none;\n}\n.style-module_container__2tJCE:hover {\n border: 2px solid #b1b0f5;\n}\n.style-module_container__2tJCE[disabled] {\n pointer-events: none;\n opacity: 0.25;\n}\n.style-module_container__2tJCE:focus {\n border: 2px solid #8e8cee;\n}";
7
8
  var styles = {"container":"style-module_container__2tJCE"};
@@ -9,8 +10,6 @@ styleInject(css_248z);
9
10
 
10
11
  var arrowRightImage = "data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%2012H19%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M12%205L19%2012L12%2019%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
11
12
 
12
- var featherLogoImage = "data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cmask%20id%3D%22mask0%22%20mask-type%3D%22alpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%223%22%20y%3D%220%22%20width%3D%2222%22%20height%3D%2228%22%3E%3Cpath%20d%3D%22M23.8761%200C14.4485%204.03927%205.77595%2019.2529%203.53731%2026.0756C3.04003%2027.5912%202.60201%2029.2504%204.03812%2026.6043C4.89889%2025.0183%207.02902%2022.7858%2011.8864%2021.9848C15.7724%2021.344%2017.3995%2020.5116%2019.8916%2017.6795C18.7427%2018.0914%2017.2587%2018.9525%2014.0909%2017.9656C18.4837%2018.3512%2021.5108%2015.748%2022.6934%2012.044C19.7931%2013.3599%2017.3385%2012.4392%2016.6956%2012.1007C20.6519%2012.2002%2023.9887%209.68393%2024.7913%205.49304C25.2591%203.05005%2024.5097%200.800979%2023.8761%200Z%22%20fill%3D%22%236160A2%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0%29%22%3E%3Cpath%20d%3D%22M21.1875%201.45451C12.8431%206.88225%205.56109%2019.9077%203.53731%2026.0756C3.04003%2027.5912%202.60201%2029.2504%204.03812%2026.6043C4.89889%2025.0183%207.02902%2022.7858%2011.8864%2021.9848C15.1146%2021.4525%2016.784%2020.7879%2018.6853%2018.9545C19.0219%2018.63%2019.1998%2017.9565%2018.7553%2018.1015C18.24%2018.2696%2017.709%2017.5612%2018.205%2017.3425C19.7521%2016.6603%2020.976%2015.4887%2021.8303%2014.0102C22.2446%2013.2932%2020.7231%2012.6796%2019.8955%2012.7075C18.8859%2012.7415%2019.6982%2011.6399%2020.6391%2011.2723C21.8973%2010.7807%2023.0427%2010.0842%2023.7916%209.26859C24.7617%208.21223%2024.48%207.11878%2024.7913%205.49304C24.969%204.56516%2024.971%203.66526%2024.8706%202.86204C24.6464%201.06951%2022.7019%200.469502%2021.1875%201.45451Z%22%20fill%3D%22%236160A2%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M30.4837%205.72996C30.4837%2014.8734%2023.1695%2022.4039%2014.0022%2022.4039C4.83493%2022.4039%20-2.47925%2014.8734%20-2.47925%205.72996C-2.47925%20-3.4135%204.83493%20-10.944%2014.0022%20-10.944C23.1695%20-10.944%2030.4837%20-3.4135%2030.4837%205.72996ZM14.0022%2018.0289C20.6884%2018.0289%2026.1087%2012.5225%2026.1087%205.72996C26.1087%20-1.06259%2020.6884%20-6.56903%2014.0022%20-6.56903C7.316%20-6.56903%201.89575%20-1.06259%201.89575%205.72996C1.89575%2012.5225%207.316%2018.0289%2014.0022%2018.0289Z%22%20fill%3D%22%2390DF9B%22%2F%3E%3Cpath%20d%3D%22M26.1087%205.72995C26.1087%2012.5225%2020.6884%2018.0289%2014.0022%2018.0289C7.316%2018.0289%201.89575%2012.5225%201.89575%205.72995C1.89575%20-1.06259%207.316%20-6.56903%2014.0022%20-6.56903C20.6884%20-6.56903%2026.1087%20-1.06259%2026.1087%205.72995Z%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E";
13
-
14
13
  var infoImage = "data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0%29%22%3E%3Cpath%20d%3D%22M10%2018.3334C14.6024%2018.3334%2018.3334%2014.6024%2018.3334%2010C18.3334%205.39765%2014.6024%201.66669%2010%201.66669C5.39765%201.66669%201.66669%205.39765%201.66669%2010C1.66669%2014.6024%205.39765%2018.3334%2010%2018.3334Z%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10%2013.3333V10%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%226.66665%22%20r%3D%220.833333%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";
15
14
 
16
15
  var chevronRightImage = "data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2018L15%2012L9%206%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
@@ -20,7 +19,7 @@ var arrowRight = {
20
19
  alt: 'arrow pointing right',
21
20
  };
22
21
  var featherLogo = {
23
- src: featherLogoImage,
22
+ src: featherLogo$1,
24
23
  alt: 'feather logo',
25
24
  };
26
25
  var info = {
@@ -45,4 +44,4 @@ var CardButton = function (_a) {
45
44
  };
46
45
 
47
46
  export { CardButton as C, arrowRight as a, featherLogo as f, info as i };
48
- //# sourceMappingURL=index-47663d39.js.map
47
+ //# sourceMappingURL=index-29ac387a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-29ac387a.js","sources":["../../src/lib/components/cards/icons/arrow-right.svg","../../src/lib/components/cards/icons/info.svg","../../src/lib/components/cards/icons/chevron-right.svg","../../../src/lib/components/cards/icons/index.ts","../../../src/lib/components/cards/cardButton/index.tsx"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%2012H19%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M12%205L19%2012L12%2019%22%20stroke%3D%22%238E8CEE%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%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0%29%22%3E%3Cpath%20d%3D%22M10%2018.3334C14.6024%2018.3334%2018.3334%2014.6024%2018.3334%2010C18.3334%205.39765%2014.6024%201.66669%2010%201.66669C5.39765%201.66669%201.66669%205.39765%201.66669%2010C1.66669%2014.6024%205.39765%2018.3334%2010%2018.3334Z%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10%2013.3333V10%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%226.66665%22%20r%3D%220.833333%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\"","export default \"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2018L15%2012L9%206%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\"","import arrowRightImage from './arrow-right.svg';\nimport featherLogoImage from './feather-logo.svg';\nimport infoImage from './info.svg';\nimport chevronRightImage from './chevron-right.svg';\n\nexport interface Icon {\n src: string;\n alt: string;\n}\n\nexport interface IconSize {\n width: number;\n height: number;\n}\n\nconst arrowRight: Icon = {\n src: arrowRightImage,\n alt: 'arrow pointing right',\n};\n\nconst featherLogo: Icon = {\n src: featherLogoImage,\n alt: 'feather logo',\n};\n\nconst info: Icon = {\n src: infoImage,\n alt: 'circle with the letter i inside for information',\n};\n\nconst chevronRight: Icon = {\n src: chevronRightImage,\n alt: 'chevron facing right',\n};\n\nexport { arrowRight, featherLogo, info, chevronRight };\n","import { FormEvent, createElement, ReactNode } from 'react';\n\nimport styles from './style.module.scss';\nimport { chevronRight } from '../icons';\n\n\ntype ActionProps =\n | { href: string; onClick?: (e: FormEvent) => void }\n | { href?: string; onClick: (e: FormEvent) => void };\n\nexport type CardButtonProps = {\n title: string;\n description: string | ReactNode;\n disabled?: boolean;\n className?: string;\n} & ActionProps;\n\nconst CardContent = ({\n title,\n description,\n}: {\n title: string;\n description: string | ReactNode;\n}) => (\n <>\n <div>\n <div className=\"p-p--small\">{title}</div>\n {typeof description === 'string' ? (\n <div className=\"tc-primary-500 p-p\">{description}</div>\n ) : (\n description\n )}\n </div>\n <img {...chevronRight} alt=\"Expander icon\" />\n </>\n);\n\nexport const CardButton = ({\n title,\n description,\n disabled = false,\n onClick,\n href,\n className,\n}: CardButtonProps) => {\n const component = href ? 'a' : 'button';\n return (\n <>\n {createElement(component, {\n className: `c-pointer ta-left w100 ${styles.container} ${\n className ?? ''\n }\n `,\n children: <CardContent title={title} description={description} />,\n disabled,\n ...(component === 'a' ? { href } : { onClick }),\n })}\n </>\n );\n};\n"],"names":["featherLogoImage","_jsxs","_jsx"],"mappings":";;;;;;;;;;AAAA,sBAAe;;ACAf,gBAAe;;ACAf,wBAAe;;ICeT,UAAU,GAAS;IACvB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,sBAAsB;EAC3B;IAEI,WAAW,GAAS;IACxB,GAAG,EAAEA,aAAgB;IACrB,GAAG,EAAE,cAAc;EACnB;IAEI,IAAI,GAAS;IACjB,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,iDAAiD;EACtD;AAEF,IAAM,YAAY,GAAS;IACzB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,sBAAsB;CAC5B;;AChBD,IAAM,WAAW,GAAG,UAAC,EAMpB;QALC,KAAK,WAAA,EACL,WAAW,iBAAA;IAIP,QACJC,4BACEA,yBACEC,sBAAK,SAAS,EAAC,YAAY,gBAAE,KAAK,YAAO;oBACxC,OAAO,WAAW,KAAK,QAAQ,IAC9BA,sBAAK,SAAS,EAAC,oBAAoB,gBAAE,WAAW,YAAO,KAEvD,WAAW,CACZ,YACG;YACNA,wBAAS,YAAY,IAAE,GAAG,EAAC,eAAe,YAAG,YAC5C;AAXC,CAYL,CAAC;IAEW,UAAU,GAAG,UAAC,EAOT;QANhB,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,OAAO,aAAA,EACP,IAAI,UAAA,EACJ,SAAS,eAAA;IAET,IAAM,SAAS,GAAG,IAAI,GAAG,GAAG,GAAG,QAAQ,CAAC;IACxC,QACEA,0BACG,aAAa,CAAC,SAAS,aACtB,SAAS,EAAE,4BAA0B,MAAM,CAAC,SAAS,UACnD,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,gBAEhB,EACD,QAAQ,EAAEA,IAAC,WAAW,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,WAAI,EACjE,QAAQ,UAAA,KACJ,SAAS,KAAK,GAAG,GAAG,EAAE,IAAI,MAAA,EAAE,GAAG,EAAE,OAAO,SAAA,EAAE,GAC9C,WACD,EACH;AACJ;;;;"}
@@ -1,2 +1,2 @@
1
- export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, Checkbox, images } from './lib';
1
+ export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, Checkbox, Link, InformationBox, Badge, images } from './lib';
2
2
  export type { DownloadStatus, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus, } from './lib';
package/dist/esm/index.js CHANGED
@@ -4,21 +4,24 @@ export { AutocompleteAddress } from './components/autocompleteAddress/index.js';
4
4
  export { Input } from './components/input/index.js';
5
5
  export { MultiDropzone } from './components/multiDropzone/index.js';
6
6
  export { DownloadButton } from './components/downloadButton/index.js';
7
+ export { InformationBox } from './components/informationBox/index.js';
7
8
  export { default as IbanInput } from './components/input/iban/index.js';
8
9
  export { default as CurrencyInput } from './components/input/currency/index.js';
10
+ export { Badge } from './components/badge/index.js';
9
11
  export { Checkbox } from './components/input/checkbox/index.js';
10
12
  export { BottomModal } from './components/modal/bottomModal/index.js';
11
13
  export { RegularModal } from './components/modal/regularModal/index.js';
12
14
  export { BottomOrRegularModal } from './components/modal/bottomOrRegularModal/index.js';
13
15
  export { CardWithLeftIcon, CardWithTopIcon, CardWithTopLeftIcon, InfoCard } from './components/cards/index.js';
14
- export { C as CardButton } from './index-47663d39.js';
16
+ export { C as CardButton } from './index-29ac387a.js';
15
17
  export { default as Button } from './components/button/index.js';
16
- export { default as AutoSuggestMultiSelect } from './components/input/autoSuggestMultiSelect/index.js';
18
+ export { AutoSuggestMultiSelect } from './components/input/autoSuggestMultiSelect/index.js';
17
19
  export { default as Chip } from './components/chip/index.js';
18
- export { default as AutoSuggestInput } from './components/input/autoSuggestInput/index.js';
20
+ export { AutoSuggestInput } from './components/input/autoSuggestInput/index.js';
19
21
  export { ComparisonTable } from './components/comparisonTable/index.js';
20
22
  export { SegmentedControl } from './components/segmentedControl/index.js';
21
23
  export { Markdown } from './components/markdown/index.js';
24
+ export { Link } from './components/link/index.js';
22
25
  export { i as images } from './index-31224f74.js';
23
26
  export { default as TableRating } from './components/comparisonTable/components/TableRating/index.js';
24
27
  export { default as TableTrueFalse } from './components/comparisonTable/components/TableTrueFalse.js';
@@ -37,6 +40,7 @@ import './index-dd80248b.js';
37
40
  import './index-21239ab0.js';
38
41
  import './index-6ced5532.js';
39
42
  import './useOnClose-d818a54f.js';
43
+ import './feather-logo-a3f07990.js';
40
44
  import './index-171a0108.js';
41
45
  import './components/comparisonTable/components/Chevron.js';
42
46
  import './components/comparisonTable/components/Row/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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,7 @@
1
1
  import { Option } from '../../models/autoSuggestInput';
2
- declare const _default: ({ value, onRemove, }: {
2
+ declare const _default: ({ className, value, onRemove, }: {
3
3
  value: Option;
4
4
  onRemove: (value: Option) => void;
5
+ className?: string | undefined;
5
6
  }) => JSX.Element;
6
7
  export default _default;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ declare type Variant = 'warning' | 'error' | 'success' | 'information' | 'neutral';
3
+ export interface InformationBoxProps {
4
+ className?: string;
5
+ variant?: Variant;
6
+ title?: string;
7
+ children: ReactNode;
8
+ showIcon?: boolean;
9
+ size?: 'default' | 'small';
10
+ }
11
+ declare const InformationBox: ({ className, variant, title, children, showIcon, size }: InformationBoxProps) => JSX.Element;
12
+ export { InformationBox };
@@ -0,0 +1,35 @@
1
+ import { InformationBoxProps } from '.';
2
+ declare const story: {
3
+ title: string;
4
+ component: ({ className, variant, title, children, showIcon, size }: InformationBoxProps) => JSX.Element;
5
+ argTypes: {
6
+ children: {
7
+ control: {
8
+ type: string;
9
+ };
10
+ defaultValue: string;
11
+ description: string;
12
+ };
13
+ title: {
14
+ defaultValue: string;
15
+ description: string;
16
+ };
17
+ showIcon: {
18
+ defaultValue: boolean;
19
+ description: string;
20
+ };
21
+ size: {
22
+ defaultValue: string;
23
+ description: string;
24
+ };
25
+ variant: {
26
+ defaultValue: string;
27
+ description: string;
28
+ };
29
+ };
30
+ };
31
+ export declare const InformationBoxStory: {
32
+ ({ children, showIcon, title, size, variant, }: InformationBoxProps): JSX.Element;
33
+ storyName: string;
34
+ };
35
+ 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;
@@ -0,0 +1,2 @@
1
+ export declare type LinkProps = JSX.IntrinsicElements['a'];
2
+ export declare const Link: ({ children, className, ...rest }: LinkProps) => JSX.Element;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { LinkProps } from '.';
3
+ declare const story: {
4
+ title: string;
5
+ component: ({ children, className, ...rest }: import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => JSX.Element;
6
+ argTypes: {
7
+ children: {
8
+ control: string;
9
+ defaultValue: string;
10
+ description: string;
11
+ };
12
+ href: {
13
+ control: string;
14
+ defaultValue: string;
15
+ description: string;
16
+ };
17
+ };
18
+ parameters: {
19
+ componentSubtitle: string;
20
+ };
21
+ };
22
+ export declare const LinkStory: {
23
+ ({ children, href, ...rest }: LinkProps): JSX.Element;
24
+ storyName: string;
25
+ };
26
+ export default story;
@@ -4,19 +4,22 @@ import { AutocompleteAddress } from './components/autocompleteAddress';
4
4
  import { Input } from './components/input';
5
5
  import { MultiDropzone, FileType, MultiDropzoneProps, UploadedFile, UploadStatus } from './components/multiDropzone';
6
6
  import { DownloadButton } from './components/downloadButton';
7
+ import { InformationBox } from './components/informationBox';
7
8
  import IbanInput from './components/input/iban';
8
9
  import CurrencyInput from './components/input/currency';
10
+ import { Badge } from './components/badge';
9
11
  import { Checkbox } from './components/input/checkbox';
10
12
  import { BottomModal, RegularModal, BottomOrRegularModal } from './components/modal';
11
13
  import { CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton } from './components/cards';
12
14
  import Button from './components/button';
13
- import AutoSuggestMultiSelect from './components/input/autoSuggestMultiSelect';
15
+ import { AutoSuggestMultiSelect } from './components/input/autoSuggestMultiSelect';
14
16
  import Chip from './components/chip';
15
- import AutoSuggestInput from './components/input/autoSuggestInput';
17
+ import { AutoSuggestInput } from './components/input/autoSuggestInput';
16
18
  import { ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, TableHeader } from './components/comparisonTable';
17
19
  import { SegmentedControl } from './components/segmentedControl';
18
20
  import { Markdown } from './components/markdown';
21
+ import { Link } from './components/link';
19
22
  import { images } from './util/images';
20
- 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, 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, };
21
24
  export type { FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus };
22
25
  export type { DownloadStatus } from './models/download';
@@ -1,5 +1,5 @@
1
1
  import '../../tslib.es6-5bc94358.js';
2
- export { c as customRender } from '../../customRender-4157fcff.js';
2
+ export { c as customRender } from '../../customRender-20b5f7ec.js';
3
3
  import 'react';
4
4
  import 'react-dom';
5
5
  import '../../_commonjsHelpers-e7f67fd8.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popsure/dirty-swan",
3
- "version": "0.34.0",
3
+ "version": "0.36.0",
4
4
  "author": "Vincent Audoire <vincent@getpopsure.com>",
5
5
  "license": "MIT",
6
6
  "private": false,
package/src/index.tsx CHANGED
@@ -31,6 +31,9 @@ export {
31
31
  DownloadButton,
32
32
  Markdown,
33
33
  Checkbox,
34
+ Link,
35
+ InformationBox,
36
+ Badge,
34
37
  images
35
38
  } from './lib';
36
39
 
@@ -0,0 +1,45 @@
1
+ import { Badge, BadgeProps } from '.';
2
+
3
+ const story = {
4
+ title: 'JSX/Badge',
5
+ component: Badge,
6
+ argTypes: {
7
+ children: {
8
+ control: { type: 'text' },
9
+ defaultValue: 'Value',
10
+ description: 'Content that is displayed inside the badge',
11
+ },
12
+ className: {
13
+ defaultValue: '',
14
+ description: 'Class name for the most parent element',
15
+ control: { type: 'text' }
16
+ },
17
+ size: {
18
+ defaultValue: 'medium',
19
+ description: 'Define the size of the badge',
20
+ },
21
+ variant: {
22
+ defaultValue: 'information',
23
+ description: 'Variant that defines the style of the Badge',
24
+ },
25
+ }
26
+ };
27
+
28
+ export const BadgeStory = ({
29
+ children,
30
+ className,
31
+ size,
32
+ variant,
33
+ }: BadgeProps) => (
34
+ <Badge
35
+ className={className}
36
+ size={size}
37
+ variant={variant}
38
+ >
39
+ {children}
40
+ </Badge>
41
+ );
42
+
43
+ BadgeStory.storyName = "Badge";
44
+
45
+ export default story;
@@ -0,0 +1,11 @@
1
+ import { render, screen } from '../../util/testUtils';
2
+
3
+ import { Badge } from '.';
4
+
5
+ describe('Badge component', () => {
6
+ it('Should render content', async () => {
7
+ render(<Badge>Content</Badge>);
8
+
9
+ expect(screen.getByText('Content')).toBeInTheDocument();
10
+ });
11
+ });