intergalactic 15.107.0-prerelease.0 → 15.108.0-prerelease.1

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 (639) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/accordion/lib/cjs/Accordion.js +9 -9
  3. package/accordion/lib/es6/Accordion.js +9 -9
  4. package/accordion/package.json +1 -1
  5. package/animation/lib/cjs/Animation.js +11 -11
  6. package/animation/lib/cjs/Collapse.js +28 -28
  7. package/animation/lib/cjs/FadeInOut.js +28 -28
  8. package/animation/lib/cjs/Scale.js +28 -28
  9. package/animation/lib/cjs/Slide.js +28 -28
  10. package/animation/lib/cjs/Transform.js +28 -28
  11. package/animation/lib/es6/Animation.js +11 -11
  12. package/animation/lib/es6/Collapse.js +28 -28
  13. package/animation/lib/es6/FadeInOut.js +28 -28
  14. package/animation/lib/es6/Scale.js +28 -28
  15. package/animation/lib/es6/Slide.js +28 -28
  16. package/animation/lib/es6/Transform.js +28 -28
  17. package/animation/package.json +1 -1
  18. package/badge/lib/cjs/Badge.js +6 -6
  19. package/badge/lib/es6/Badge.js +6 -6
  20. package/badge/package.json +1 -1
  21. package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
  22. package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
  23. package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
  24. package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
  25. package/base-trigger/lib/es6/BaseTrigger.js +18 -18
  26. package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
  27. package/base-trigger/lib/es6/FilterTrigger.js +7 -7
  28. package/base-trigger/lib/es6/LinkTrigger.js +12 -12
  29. package/base-trigger/package.json +1 -1
  30. package/breadcrumbs/lib/cjs/Breadcrumbs.js +8 -8
  31. package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
  32. package/breadcrumbs/package.json +1 -1
  33. package/breakpoints/package.json +1 -1
  34. package/button/component/AbstractButton/AbstractButton.d.ts +24 -0
  35. package/button/component/AbstractButton/AbstractButton.type.d.ts +39 -0
  36. package/button/component/AbstractButton/SpinButton.d.ts +3 -0
  37. package/button/component/Button/Button.d.ts +3 -0
  38. package/button/component/Button/Button.type.d.ts +39 -0
  39. package/button/component/ButtonLink/ButtonLink.d.ts +2 -0
  40. package/button/component/ButtonLink/ButtonLink.type.d.ts +25 -0
  41. package/button/index.d.ts +5 -68
  42. package/button/lib/cjs/component/AbstractButton/AbstractButton.js +182 -0
  43. package/button/lib/cjs/component/AbstractButton/AbstractButton.js.map +1 -0
  44. package/button/lib/cjs/component/AbstractButton/AbstractButton.type.js +2 -0
  45. package/button/lib/cjs/component/AbstractButton/AbstractButton.type.js.map +1 -0
  46. package/button/lib/cjs/component/AbstractButton/SpinButton.js.map +1 -0
  47. package/button/lib/cjs/component/Button/Button.js +94 -0
  48. package/button/lib/cjs/component/Button/Button.js.map +1 -0
  49. package/button/lib/cjs/component/Button/Button.type.js +2 -0
  50. package/button/lib/cjs/component/Button/Button.type.js.map +1 -0
  51. package/button/lib/cjs/{style → component/Button}/button.shadow.css +1 -1
  52. package/button/lib/cjs/component/ButtonLink/ButtonLink.js +92 -0
  53. package/button/lib/cjs/component/ButtonLink/ButtonLink.js.map +1 -0
  54. package/button/lib/cjs/component/ButtonLink/ButtonLink.type.js +2 -0
  55. package/button/lib/cjs/component/ButtonLink/ButtonLink.type.js.map +1 -0
  56. package/button/lib/cjs/component/ButtonLink/buttonLink.shadow.css +160 -0
  57. package/button/lib/cjs/index.js +40 -6
  58. package/button/lib/cjs/index.js.map +1 -1
  59. package/button/lib/es6/component/AbstractButton/AbstractButton.js +175 -0
  60. package/button/lib/es6/component/AbstractButton/AbstractButton.js.map +1 -0
  61. package/button/lib/es6/component/AbstractButton/AbstractButton.type.js +2 -0
  62. package/button/lib/es6/component/AbstractButton/AbstractButton.type.js.map +1 -0
  63. package/button/lib/es6/component/AbstractButton/SpinButton.js.map +1 -0
  64. package/button/lib/es6/component/Button/Button.js +87 -0
  65. package/button/lib/es6/component/Button/Button.js.map +1 -0
  66. package/button/lib/es6/component/Button/Button.type.js +2 -0
  67. package/button/lib/es6/component/Button/Button.type.js.map +1 -0
  68. package/button/lib/es6/{style → component/Button}/button.shadow.css +1 -1
  69. package/button/lib/es6/component/ButtonLink/ButtonLink.js +85 -0
  70. package/button/lib/es6/component/ButtonLink/ButtonLink.js.map +1 -0
  71. package/button/lib/es6/component/ButtonLink/ButtonLink.type.js +2 -0
  72. package/button/lib/es6/component/ButtonLink/ButtonLink.type.js.map +1 -0
  73. package/button/lib/es6/component/ButtonLink/buttonLink.shadow.css +160 -0
  74. package/button/lib/es6/index.js +5 -2
  75. package/button/lib/es6/index.js.map +1 -1
  76. package/button/lib/types/component/AbstractButton/AbstractButton.d.ts +24 -0
  77. package/button/lib/types/component/AbstractButton/AbstractButton.type.d.ts +39 -0
  78. package/button/lib/types/component/AbstractButton/SpinButton.d.ts +3 -0
  79. package/button/lib/types/component/Button/Button.d.ts +3 -0
  80. package/button/lib/types/component/Button/Button.type.d.ts +39 -0
  81. package/button/lib/types/component/ButtonLink/ButtonLink.d.ts +2 -0
  82. package/button/lib/types/component/ButtonLink/ButtonLink.type.d.ts +25 -0
  83. package/button/lib/types/index.d.ts +5 -68
  84. package/button/package.json +1 -1
  85. package/card/lib/cjs/Card.js +19 -22
  86. package/card/lib/cjs/Card.js.map +1 -1
  87. package/card/lib/cjs/style/card.shadow.css +13 -15
  88. package/card/lib/es6/Card.js +19 -22
  89. package/card/lib/es6/Card.js.map +1 -1
  90. package/card/lib/es6/style/card.shadow.css +13 -15
  91. package/card/package.json +1 -1
  92. package/carousel/lib/cjs/Carousel.js +79 -57
  93. package/carousel/lib/cjs/Carousel.js.map +1 -1
  94. package/carousel/lib/cjs/style/carousel.shadow.css +48 -4
  95. package/carousel/lib/cjs/translations/de.json +4 -2
  96. package/carousel/lib/cjs/translations/en.json +4 -2
  97. package/carousel/lib/cjs/translations/es.json +4 -2
  98. package/carousel/lib/cjs/translations/fr.json +4 -2
  99. package/carousel/lib/cjs/translations/it.json +4 -2
  100. package/carousel/lib/cjs/translations/ja.json +4 -2
  101. package/carousel/lib/cjs/translations/ko.json +4 -2
  102. package/carousel/lib/cjs/translations/nl.json +4 -2
  103. package/carousel/lib/cjs/translations/pl.json +4 -2
  104. package/carousel/lib/cjs/translations/pt.json +4 -2
  105. package/carousel/lib/cjs/translations/sv.json +4 -2
  106. package/carousel/lib/cjs/translations/tr.json +4 -2
  107. package/carousel/lib/cjs/translations/vi.json +4 -2
  108. package/carousel/lib/cjs/translations/zh.json +4 -2
  109. package/carousel/lib/es6/Carousel.js +79 -57
  110. package/carousel/lib/es6/Carousel.js.map +1 -1
  111. package/carousel/lib/es6/style/carousel.shadow.css +48 -4
  112. package/carousel/lib/es6/translations/de.json +4 -2
  113. package/carousel/lib/es6/translations/en.json +4 -2
  114. package/carousel/lib/es6/translations/es.json +4 -2
  115. package/carousel/lib/es6/translations/fr.json +4 -2
  116. package/carousel/lib/es6/translations/it.json +4 -2
  117. package/carousel/lib/es6/translations/ja.json +4 -2
  118. package/carousel/lib/es6/translations/ko.json +4 -2
  119. package/carousel/lib/es6/translations/nl.json +4 -2
  120. package/carousel/lib/es6/translations/pl.json +4 -2
  121. package/carousel/lib/es6/translations/pt.json +4 -2
  122. package/carousel/lib/es6/translations/sv.json +4 -2
  123. package/carousel/lib/es6/translations/tr.json +4 -2
  124. package/carousel/lib/es6/translations/vi.json +4 -2
  125. package/carousel/lib/es6/translations/zh.json +4 -2
  126. package/carousel/lib/types/translations/__intergalactic-dynamic-locales.d.ts +28 -0
  127. package/carousel/package.json +1 -1
  128. package/carousel/translations/__intergalactic-dynamic-locales.d.ts +28 -0
  129. package/checkbox/lib/cjs/Checkbox.js +18 -18
  130. package/checkbox/lib/es6/Checkbox.js +18 -18
  131. package/checkbox/package.json +1 -1
  132. package/color-picker/lib/cjs/ColorPicker.js +24 -24
  133. package/color-picker/lib/cjs/PaletteManager.js +24 -24
  134. package/color-picker/lib/cjs/components/InputColor.js +24 -24
  135. package/color-picker/lib/es6/ColorPicker.js +24 -24
  136. package/color-picker/lib/es6/PaletteManager.js +24 -24
  137. package/color-picker/lib/es6/components/InputColor.js +24 -24
  138. package/color-picker/package.json +1 -1
  139. package/components.json +73 -73
  140. package/core/package.json +1 -1
  141. package/counter/lib/cjs/Counter.js +11 -11
  142. package/counter/lib/es6/Counter.js +11 -11
  143. package/counter/package.json +1 -1
  144. package/d3-chart/lib/cjs/Area.js +11 -11
  145. package/d3-chart/lib/cjs/Axis.js +14 -14
  146. package/d3-chart/lib/cjs/Bar.js +16 -16
  147. package/d3-chart/lib/cjs/Bubble.js +12 -12
  148. package/d3-chart/lib/cjs/CompactHorizontalBar.js +16 -16
  149. package/d3-chart/lib/cjs/Donut.js +9 -9
  150. package/d3-chart/lib/cjs/Dots.js +8 -8
  151. package/d3-chart/lib/cjs/HorizontalBar.js +16 -16
  152. package/d3-chart/lib/cjs/Hover.js +3 -3
  153. package/d3-chart/lib/cjs/Line.js +9 -9
  154. package/d3-chart/lib/cjs/Plot.js +3 -3
  155. package/d3-chart/lib/cjs/Radar.js +19 -19
  156. package/d3-chart/lib/cjs/RadialTree.js +12 -12
  157. package/d3-chart/lib/cjs/Reference.js +12 -12
  158. package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
  159. package/d3-chart/lib/cjs/Tooltip.js +9 -9
  160. package/d3-chart/lib/cjs/Venn.js +9 -9
  161. package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
  162. package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
  163. package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  164. package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  165. package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  166. package/d3-chart/lib/es6/Area.js +11 -11
  167. package/d3-chart/lib/es6/Axis.js +14 -14
  168. package/d3-chart/lib/es6/Bar.js +16 -16
  169. package/d3-chart/lib/es6/Bubble.js +12 -12
  170. package/d3-chart/lib/es6/CompactHorizontalBar.js +16 -16
  171. package/d3-chart/lib/es6/Donut.js +9 -9
  172. package/d3-chart/lib/es6/Dots.js +8 -8
  173. package/d3-chart/lib/es6/HorizontalBar.js +16 -16
  174. package/d3-chart/lib/es6/Hover.js +3 -3
  175. package/d3-chart/lib/es6/Line.js +9 -9
  176. package/d3-chart/lib/es6/Plot.js +3 -3
  177. package/d3-chart/lib/es6/Radar.js +19 -19
  178. package/d3-chart/lib/es6/RadialTree.js +12 -12
  179. package/d3-chart/lib/es6/Reference.js +12 -12
  180. package/d3-chart/lib/es6/ScatterPlot.js +9 -9
  181. package/d3-chart/lib/es6/Tooltip.js +9 -9
  182. package/d3-chart/lib/es6/Venn.js +9 -9
  183. package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
  184. package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
  185. package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  186. package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  187. package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  188. package/d3-chart/package.json +1 -1
  189. package/data-table/Body.d.ts +4 -1
  190. package/data-table/DataTable.d.ts +15 -58
  191. package/data-table/Head.d.ts +8 -2
  192. package/data-table/lib/cjs/Body.js +62 -12
  193. package/data-table/lib/cjs/Body.js.map +1 -1
  194. package/data-table/lib/cjs/DataTable.js +206 -45
  195. package/data-table/lib/cjs/DataTable.js.map +1 -1
  196. package/data-table/lib/cjs/Head.js +87 -16
  197. package/data-table/lib/cjs/Head.js.map +1 -1
  198. package/data-table/lib/cjs/style/data-table.shadow.css +14 -0
  199. package/data-table/lib/cjs/translations/__intergalactic-dynamic-locales.js +39 -0
  200. package/data-table/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -0
  201. package/data-table/lib/cjs/translations/de.json +3 -0
  202. package/data-table/lib/cjs/translations/en.json +3 -0
  203. package/data-table/lib/cjs/translations/es.json +3 -0
  204. package/data-table/lib/cjs/translations/fr.json +3 -0
  205. package/data-table/lib/cjs/translations/it.json +3 -0
  206. package/data-table/lib/cjs/translations/ja.json +3 -0
  207. package/data-table/lib/cjs/translations/ko.json +3 -0
  208. package/data-table/lib/cjs/translations/nl.json +3 -0
  209. package/data-table/lib/cjs/translations/pl.json +3 -0
  210. package/data-table/lib/cjs/translations/pt.json +3 -0
  211. package/data-table/lib/cjs/translations/sv.json +3 -0
  212. package/data-table/lib/cjs/translations/tr.json +3 -0
  213. package/data-table/lib/cjs/translations/vi.json +3 -0
  214. package/data-table/lib/cjs/translations/zh.json +3 -0
  215. package/data-table/lib/cjs/types.js.map +1 -1
  216. package/data-table/lib/es6/Body.js +62 -12
  217. package/data-table/lib/es6/Body.js.map +1 -1
  218. package/data-table/lib/es6/DataTable.js +207 -45
  219. package/data-table/lib/es6/DataTable.js.map +1 -1
  220. package/data-table/lib/es6/Head.js +87 -16
  221. package/data-table/lib/es6/Head.js.map +1 -1
  222. package/data-table/lib/es6/style/data-table.shadow.css +14 -0
  223. package/data-table/lib/es6/translations/__intergalactic-dynamic-locales.js +31 -0
  224. package/data-table/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -0
  225. package/data-table/lib/es6/translations/de.json +3 -0
  226. package/data-table/lib/es6/translations/en.json +3 -0
  227. package/data-table/lib/es6/translations/es.json +3 -0
  228. package/data-table/lib/es6/translations/fr.json +3 -0
  229. package/data-table/lib/es6/translations/it.json +3 -0
  230. package/data-table/lib/es6/translations/ja.json +3 -0
  231. package/data-table/lib/es6/translations/ko.json +3 -0
  232. package/data-table/lib/es6/translations/nl.json +3 -0
  233. package/data-table/lib/es6/translations/pl.json +3 -0
  234. package/data-table/lib/es6/translations/pt.json +3 -0
  235. package/data-table/lib/es6/translations/sv.json +3 -0
  236. package/data-table/lib/es6/translations/tr.json +3 -0
  237. package/data-table/lib/es6/translations/vi.json +3 -0
  238. package/data-table/lib/es6/translations/zh.json +3 -0
  239. package/data-table/lib/es6/types.js.map +1 -1
  240. package/data-table/lib/types/Body.d.ts +4 -1
  241. package/data-table/lib/types/DataTable.d.ts +15 -58
  242. package/data-table/lib/types/Head.d.ts +8 -2
  243. package/data-table/lib/types/translations/__intergalactic-dynamic-locales.d.ts +44 -0
  244. package/data-table/lib/types/types.d.ts +2 -0
  245. package/data-table/package.json +1 -1
  246. package/data-table/translations/__intergalactic-dynamic-locales.d.ts +44 -0
  247. package/data-table/types.d.ts +2 -0
  248. package/date-picker/lib/cjs/components/Calendar.js +21 -21
  249. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
  250. package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
  251. package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
  252. package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
  253. package/date-picker/lib/es6/components/Calendar.js +21 -21
  254. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
  255. package/date-picker/lib/es6/components/InputTrigger.js +29 -29
  256. package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
  257. package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
  258. package/date-picker/package.json +1 -1
  259. package/divider/lib/cjs/Divider.js +10 -10
  260. package/divider/lib/es6/Divider.js +10 -10
  261. package/divider/package.json +1 -1
  262. package/dot/lib/cjs/Dot.js +10 -10
  263. package/dot/lib/es6/Dot.js +10 -10
  264. package/dot/package.json +1 -1
  265. package/drag-and-drop/lib/cjs/DragAndDrop.js +16 -16
  266. package/drag-and-drop/lib/es6/DragAndDrop.js +16 -16
  267. package/drag-and-drop/package.json +1 -1
  268. package/dropdown/lib/cjs/Dropdown.js +2 -2
  269. package/dropdown/lib/es6/Dropdown.js +2 -2
  270. package/dropdown/package.json +1 -1
  271. package/dropdown-menu/lib/cjs/DropdownMenu.js +25 -25
  272. package/dropdown-menu/lib/cjs/DropdownMenuOld.js +21 -21
  273. package/dropdown-menu/lib/es6/DropdownMenu.js +25 -25
  274. package/dropdown-menu/lib/es6/DropdownMenuOld.js +21 -21
  275. package/dropdown-menu/package.json +1 -1
  276. package/ellipsis/lib/cjs/Ellipsis.js +10 -10
  277. package/ellipsis/lib/es6/Ellipsis.js +10 -10
  278. package/ellipsis/package.json +1 -1
  279. package/errors/lib/cjs/Error.js +9 -9
  280. package/errors/lib/es6/Error.js +9 -9
  281. package/errors/package.json +1 -1
  282. package/feature-popover/lib/cjs/FeaturePopover.js +11 -11
  283. package/feature-popover/lib/es6/FeaturePopover.js +11 -11
  284. package/feature-popover/package.json +1 -1
  285. package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
  286. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
  287. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
  288. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
  289. package/feedback-form/lib/es6/FeedbackForm.js +7 -7
  290. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
  291. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
  292. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
  293. package/feedback-form/package.json +1 -1
  294. package/flags/lib/cjs/Flags.js +3 -3
  295. package/flags/lib/es6/Flags.js +3 -3
  296. package/flags/lib/sprites/sprite@1x.css +256 -256
  297. package/flags/lib/sprites/sprite@2x.css +257 -257
  298. package/flags/package.json +1 -1
  299. package/flex-box/lib/cjs/Box/useBox.js +3 -3
  300. package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
  301. package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
  302. package/flex-box/lib/es6/Box/useBox.js +3 -3
  303. package/flex-box/lib/es6/Flex/useFlex.js +3 -3
  304. package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
  305. package/flex-box/package.json +1 -1
  306. package/format-text/lib/cjs/FormatText.js +5 -5
  307. package/format-text/lib/es6/FormatText.js +5 -5
  308. package/format-text/package.json +1 -1
  309. package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
  310. package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
  311. package/fullscreen-modal/package.json +1 -1
  312. package/grid/lib/cjs/Grid.js +114 -114
  313. package/grid/lib/es6/Grid.js +114 -114
  314. package/grid/package.json +1 -1
  315. package/i18n-unplugin/package.json +1 -1
  316. package/icon/color/Confluence/l/index.js +4 -4
  317. package/icon/color/Confluence/l/index.mjs +4 -4
  318. package/icon/color/Confluence/m/index.js +4 -4
  319. package/icon/color/Confluence/m/index.mjs +4 -4
  320. package/icon/color/MicrosoftOffice/l/index.js +10 -10
  321. package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
  322. package/icon/color/MicrosoftOffice/m/index.js +10 -10
  323. package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
  324. package/icon/lib/cjs/Icon.js +6 -6
  325. package/icon/lib/es6/Icon.js +6 -6
  326. package/icon/package.json +1 -1
  327. package/icon/pay/Discover/l/index.js +1 -1
  328. package/icon/pay/Discover/l/index.mjs +1 -1
  329. package/icon/pay/Discover/m/index.js +1 -1
  330. package/icon/pay/Discover/m/index.mjs +1 -1
  331. package/icon/pay/JCB/l/index.js +10 -10
  332. package/icon/pay/JCB/l/index.mjs +10 -10
  333. package/icon/pay/JCB/m/index.js +10 -10
  334. package/icon/pay/JCB/m/index.mjs +10 -10
  335. package/icon/pay/Visa/l/index.js +2 -2
  336. package/icon/pay/Visa/l/index.mjs +2 -2
  337. package/icon/pay/Visa/m/index.js +2 -2
  338. package/icon/pay/Visa/m/index.mjs +2 -2
  339. package/illustration/lib/cjs/index.js +1 -1
  340. package/illustration/lib/es6/index.js +1 -1
  341. package/illustration/package.json +1 -1
  342. package/inline-edit/lib/cjs/InlineEdit.js +4 -4
  343. package/inline-edit/lib/es6/InlineEdit.js +4 -4
  344. package/inline-edit/package.json +1 -1
  345. package/inline-input/index.d.ts +11 -2
  346. package/inline-input/lib/cjs/InlineInput.js +31 -35
  347. package/inline-input/lib/cjs/InlineInput.js.map +1 -1
  348. package/inline-input/lib/cjs/index.d.js.map +1 -1
  349. package/inline-input/lib/cjs/style/inline-input.shadow.css +1 -1
  350. package/inline-input/lib/es6/InlineInput.js +31 -35
  351. package/inline-input/lib/es6/InlineInput.js.map +1 -1
  352. package/inline-input/lib/es6/index.d.js.map +1 -1
  353. package/inline-input/lib/es6/style/inline-input.shadow.css +1 -1
  354. package/inline-input/lib/types/index.d.ts +11 -2
  355. package/inline-input/package.json +1 -1
  356. package/input/lib/cjs/Input.js +17 -17
  357. package/input/lib/es6/Input.js +17 -17
  358. package/input/package.json +1 -1
  359. package/input-mask/lib/cjs/InputMask.js +6 -6
  360. package/input-mask/lib/es6/InputMask.js +6 -6
  361. package/input-mask/package.json +1 -1
  362. package/input-number/lib/cjs/InputNumber.js +9 -9
  363. package/input-number/lib/es6/InputNumber.js +9 -9
  364. package/input-number/package.json +1 -1
  365. package/input-tags/InputTags.d.ts +1 -0
  366. package/input-tags/lib/cjs/InputTags.js +67 -36
  367. package/input-tags/lib/cjs/InputTags.js.map +1 -1
  368. package/input-tags/lib/cjs/style/input-tag.shadow.css +2 -2
  369. package/input-tags/lib/cjs/translations/__intergalactic-dynamic-locales.js +39 -0
  370. package/input-tags/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -0
  371. package/input-tags/lib/cjs/translations/de.json +3 -0
  372. package/input-tags/lib/cjs/translations/en.json +3 -0
  373. package/input-tags/lib/cjs/translations/es.json +3 -0
  374. package/input-tags/lib/cjs/translations/fr.json +3 -0
  375. package/input-tags/lib/cjs/translations/it.json +3 -0
  376. package/input-tags/lib/cjs/translations/ja.json +3 -0
  377. package/input-tags/lib/cjs/translations/ko.json +3 -0
  378. package/input-tags/lib/cjs/translations/nl.json +3 -0
  379. package/input-tags/lib/cjs/translations/pl.json +3 -0
  380. package/input-tags/lib/cjs/translations/pt.json +3 -0
  381. package/input-tags/lib/cjs/translations/sv.json +3 -0
  382. package/input-tags/lib/cjs/translations/tr.json +3 -0
  383. package/input-tags/lib/cjs/translations/vi.json +3 -0
  384. package/input-tags/lib/cjs/translations/zh.json +3 -0
  385. package/input-tags/lib/es6/InputTags.js +68 -36
  386. package/input-tags/lib/es6/InputTags.js.map +1 -1
  387. package/input-tags/lib/es6/style/input-tag.shadow.css +2 -2
  388. package/input-tags/lib/es6/translations/__intergalactic-dynamic-locales.js +31 -0
  389. package/input-tags/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -0
  390. package/input-tags/lib/es6/translations/de.json +3 -0
  391. package/input-tags/lib/es6/translations/en.json +3 -0
  392. package/input-tags/lib/es6/translations/es.json +3 -0
  393. package/input-tags/lib/es6/translations/fr.json +3 -0
  394. package/input-tags/lib/es6/translations/it.json +3 -0
  395. package/input-tags/lib/es6/translations/ja.json +3 -0
  396. package/input-tags/lib/es6/translations/ko.json +3 -0
  397. package/input-tags/lib/es6/translations/nl.json +3 -0
  398. package/input-tags/lib/es6/translations/pl.json +3 -0
  399. package/input-tags/lib/es6/translations/pt.json +3 -0
  400. package/input-tags/lib/es6/translations/sv.json +3 -0
  401. package/input-tags/lib/es6/translations/tr.json +3 -0
  402. package/input-tags/lib/es6/translations/vi.json +3 -0
  403. package/input-tags/lib/es6/translations/zh.json +3 -0
  404. package/input-tags/lib/types/InputTags.d.ts +1 -0
  405. package/input-tags/lib/types/translations/__intergalactic-dynamic-locales.d.ts +44 -0
  406. package/input-tags/package.json +1 -1
  407. package/input-tags/translations/__intergalactic-dynamic-locales.d.ts +44 -0
  408. package/link/lib/cjs/Link.js +12 -12
  409. package/link/lib/es6/Link.js +12 -12
  410. package/link/package.json +1 -1
  411. package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
  412. package/mini-chart/lib/cjs/component/score/Line.js +17 -17
  413. package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
  414. package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
  415. package/mini-chart/lib/es6/component/score/Donut.js +9 -9
  416. package/mini-chart/lib/es6/component/score/Line.js +17 -17
  417. package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
  418. package/mini-chart/lib/es6/component/trend/Line.js +7 -7
  419. package/mini-chart/package.json +1 -1
  420. package/modal/lib/cjs/Modal.js +8 -8
  421. package/modal/lib/es6/Modal.js +8 -8
  422. package/modal/package.json +1 -1
  423. package/neighbor-location/package.json +1 -1
  424. package/notice/lib/cjs/Notice.js +14 -14
  425. package/notice/lib/es6/Notice.js +14 -14
  426. package/notice/package.json +1 -1
  427. package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
  428. package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
  429. package/notice-bubble/package.json +1 -1
  430. package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
  431. package/notice-global/lib/es6/NoticeGlobal.js +11 -11
  432. package/notice-global/package.json +1 -1
  433. package/outside-click/package.json +1 -1
  434. package/package.json +1 -1
  435. package/pagination/lib/cjs/Pagination.js +12 -16
  436. package/pagination/lib/cjs/Pagination.js.map +1 -1
  437. package/pagination/lib/es6/Pagination.js +12 -16
  438. package/pagination/lib/es6/Pagination.js.map +1 -1
  439. package/pagination/package.json +1 -1
  440. package/pills/lib/cjs/Pills.js +13 -13
  441. package/pills/lib/es6/Pills.js +13 -13
  442. package/pills/package.json +1 -1
  443. package/popper/lib/cjs/Popper.js +6 -6
  444. package/popper/lib/es6/Popper.js +6 -6
  445. package/popper/package.json +1 -1
  446. package/portal/package.json +1 -1
  447. package/product-head/lib/cjs/Info.js +4 -4
  448. package/product-head/lib/cjs/ProductHead.js +5 -5
  449. package/product-head/lib/cjs/Title.js +4 -4
  450. package/product-head/lib/es6/Info.js +4 -4
  451. package/product-head/lib/es6/ProductHead.js +5 -5
  452. package/product-head/lib/es6/Title.js +4 -4
  453. package/product-head/package.json +1 -1
  454. package/progress-bar/lib/cjs/ProgressBar.js +15 -15
  455. package/progress-bar/lib/es6/ProgressBar.js +15 -15
  456. package/progress-bar/package.json +1 -1
  457. package/radio/lib/cjs/Radio.js +16 -16
  458. package/radio/lib/es6/Radio.js +16 -16
  459. package/radio/package.json +1 -1
  460. package/scroll-area/lib/cjs/ScrollArea.js +21 -21
  461. package/scroll-area/lib/cjs/ScrollBar.js +6 -6
  462. package/scroll-area/lib/es6/ScrollArea.js +21 -21
  463. package/scroll-area/lib/es6/ScrollBar.js +6 -6
  464. package/scroll-area/package.json +1 -1
  465. package/select/lib/cjs/InputSearch.js +6 -6
  466. package/select/lib/cjs/Select.js +8 -8
  467. package/select/lib/es6/InputSearch.js +6 -6
  468. package/select/lib/es6/Select.js +8 -8
  469. package/select/package.json +1 -1
  470. package/side-panel/lib/cjs/SidePanel.js +23 -28
  471. package/side-panel/lib/cjs/SidePanel.js.map +1 -1
  472. package/side-panel/lib/cjs/style/side-panel.shadow.css +8 -30
  473. package/side-panel/lib/es6/SidePanel.js +23 -28
  474. package/side-panel/lib/es6/SidePanel.js.map +1 -1
  475. package/side-panel/lib/es6/style/side-panel.shadow.css +8 -30
  476. package/side-panel/package.json +1 -1
  477. package/skeleton/lib/cjs/Charts/Area.js +9 -9
  478. package/skeleton/lib/cjs/Charts/Bar.js +9 -9
  479. package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
  480. package/skeleton/lib/cjs/Charts/CompactHorizontalBar.js +9 -9
  481. package/skeleton/lib/cjs/Charts/Donut.js +9 -9
  482. package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
  483. package/skeleton/lib/cjs/Charts/Line.js +9 -9
  484. package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
  485. package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
  486. package/skeleton/lib/cjs/Charts/Venn.js +9 -9
  487. package/skeleton/lib/cjs/Skeleton.js +8 -8
  488. package/skeleton/lib/es6/Charts/Area.js +9 -9
  489. package/skeleton/lib/es6/Charts/Bar.js +9 -9
  490. package/skeleton/lib/es6/Charts/Bubble.js +9 -9
  491. package/skeleton/lib/es6/Charts/CompactHorizontalBar.js +9 -9
  492. package/skeleton/lib/es6/Charts/Donut.js +9 -9
  493. package/skeleton/lib/es6/Charts/Histogram.js +9 -9
  494. package/skeleton/lib/es6/Charts/Line.js +9 -9
  495. package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
  496. package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
  497. package/skeleton/lib/es6/Charts/Venn.js +9 -9
  498. package/skeleton/lib/es6/Skeleton.js +8 -8
  499. package/skeleton/package.json +1 -1
  500. package/slider/lib/cjs/Slider.js +8 -8
  501. package/slider/lib/es6/Slider.js +8 -8
  502. package/slider/package.json +1 -1
  503. package/spin/lib/cjs/Spin.js +13 -13
  504. package/spin/lib/es6/Spin.js +13 -13
  505. package/spin/package.json +1 -1
  506. package/spin-container/lib/cjs/SpinContainer.js +8 -8
  507. package/spin-container/lib/es6/SpinContainer.js +8 -8
  508. package/spin-container/package.json +1 -1
  509. package/sticky/lib/cjs/Sticky.js +2 -2
  510. package/sticky/lib/es6/Sticky.js +2 -2
  511. package/sticky/package.json +1 -1
  512. package/switch/lib/cjs/Switch.js +21 -21
  513. package/switch/lib/es6/Switch.js +21 -21
  514. package/switch/package.json +1 -1
  515. package/tab-line/lib/cjs/TabLine.js +13 -13
  516. package/tab-line/lib/es6/TabLine.js +13 -13
  517. package/tab-line/package.json +1 -1
  518. package/tab-panel/lib/cjs/TabPanel.js +8 -8
  519. package/tab-panel/lib/es6/TabPanel.js +8 -8
  520. package/tab-panel/package.json +1 -1
  521. package/tag/index.d.ts +2 -0
  522. package/tag/lib/cjs/Tag.js +167 -95
  523. package/tag/lib/cjs/Tag.js.map +1 -1
  524. package/tag/lib/cjs/index.d.js.map +1 -1
  525. package/tag/lib/cjs/style/tag.shadow.css +125 -90
  526. package/tag/lib/cjs/translations/de.json +1 -1
  527. package/tag/lib/cjs/translations/en.json +1 -1
  528. package/tag/lib/cjs/translations/es.json +1 -1
  529. package/tag/lib/cjs/translations/fr.json +1 -1
  530. package/tag/lib/cjs/translations/it.json +1 -1
  531. package/tag/lib/cjs/translations/ja.json +1 -1
  532. package/tag/lib/cjs/translations/ko.json +1 -1
  533. package/tag/lib/cjs/translations/nl.json +1 -1
  534. package/tag/lib/cjs/translations/pl.json +1 -1
  535. package/tag/lib/cjs/translations/pt.json +1 -1
  536. package/tag/lib/cjs/translations/sv.json +1 -1
  537. package/tag/lib/cjs/translations/tr.json +1 -1
  538. package/tag/lib/cjs/translations/vi.json +1 -1
  539. package/tag/lib/cjs/translations/zh.json +1 -1
  540. package/tag/lib/es6/Tag.js +168 -95
  541. package/tag/lib/es6/Tag.js.map +1 -1
  542. package/tag/lib/es6/index.d.js.map +1 -1
  543. package/tag/lib/es6/style/tag.shadow.css +125 -90
  544. package/tag/lib/es6/translations/de.json +1 -1
  545. package/tag/lib/es6/translations/en.json +1 -1
  546. package/tag/lib/es6/translations/es.json +1 -1
  547. package/tag/lib/es6/translations/fr.json +1 -1
  548. package/tag/lib/es6/translations/it.json +1 -1
  549. package/tag/lib/es6/translations/ja.json +1 -1
  550. package/tag/lib/es6/translations/ko.json +1 -1
  551. package/tag/lib/es6/translations/nl.json +1 -1
  552. package/tag/lib/es6/translations/pl.json +1 -1
  553. package/tag/lib/es6/translations/pt.json +1 -1
  554. package/tag/lib/es6/translations/sv.json +1 -1
  555. package/tag/lib/es6/translations/tr.json +1 -1
  556. package/tag/lib/es6/translations/vi.json +1 -1
  557. package/tag/lib/es6/translations/zh.json +1 -1
  558. package/tag/lib/types/index.d.ts +2 -0
  559. package/tag/package.json +1 -1
  560. package/textarea/lib/cjs/Textarea.js +8 -8
  561. package/textarea/lib/es6/Textarea.js +8 -8
  562. package/textarea/package.json +1 -1
  563. package/time-picker/lib/cjs/TimePicker.js +12 -12
  564. package/time-picker/lib/es6/TimePicker.js +12 -12
  565. package/time-picker/package.json +1 -1
  566. package/tooltip/lib/cjs/Tooltip.js +9 -9
  567. package/tooltip/lib/es6/Tooltip.js +9 -9
  568. package/tooltip/package.json +1 -1
  569. package/typography/lib/cjs/Blockquote.js +4 -4
  570. package/typography/lib/cjs/Hint.js +7 -7
  571. package/typography/lib/cjs/List.js +5 -5
  572. package/typography/lib/cjs/Text.js +34 -34
  573. package/typography/lib/es6/Blockquote.js +4 -4
  574. package/typography/lib/es6/Hint.js +7 -7
  575. package/typography/lib/es6/List.js +5 -5
  576. package/typography/lib/es6/Text.js +34 -34
  577. package/typography/package.json +1 -1
  578. package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
  579. package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
  580. package/utils/lib/focus-lock/isFocusable.js +6 -1
  581. package/utils/lib/focus-lock/isFocusable.js.map +1 -1
  582. package/utils/lib/focus-lock/isFocusable.mjs +6 -1
  583. package/utils/lib/focus-lock/isFocusable.mjs.map +1 -1
  584. package/utils/lib/injectStyle.js +1 -1
  585. package/utils/lib/injectStyle.mjs +1 -1
  586. package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
  587. package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
  588. package/widget-empty/package.json +1 -1
  589. package/wizard/index.d.ts +17 -0
  590. package/wizard/lib/cjs/Wizard.js +201 -47
  591. package/wizard/lib/cjs/Wizard.js.map +1 -1
  592. package/wizard/lib/cjs/index.d.js.map +1 -1
  593. package/wizard/lib/cjs/style/wizard.shadow.css +4 -0
  594. package/wizard/lib/cjs/translations/de.json +3 -1
  595. package/wizard/lib/cjs/translations/en.json +3 -1
  596. package/wizard/lib/cjs/translations/es.json +3 -1
  597. package/wizard/lib/cjs/translations/fr.json +3 -1
  598. package/wizard/lib/cjs/translations/it.json +3 -1
  599. package/wizard/lib/cjs/translations/ja.json +3 -1
  600. package/wizard/lib/cjs/translations/ko.json +3 -1
  601. package/wizard/lib/cjs/translations/nl.json +3 -1
  602. package/wizard/lib/cjs/translations/pl.json +3 -1
  603. package/wizard/lib/cjs/translations/pt.json +3 -1
  604. package/wizard/lib/cjs/translations/sv.json +3 -1
  605. package/wizard/lib/cjs/translations/tr.json +3 -1
  606. package/wizard/lib/cjs/translations/vi.json +3 -1
  607. package/wizard/lib/cjs/translations/zh.json +3 -1
  608. package/wizard/lib/es6/Wizard.js +203 -47
  609. package/wizard/lib/es6/Wizard.js.map +1 -1
  610. package/wizard/lib/es6/index.d.js.map +1 -1
  611. package/wizard/lib/es6/style/wizard.shadow.css +4 -0
  612. package/wizard/lib/es6/translations/de.json +3 -1
  613. package/wizard/lib/es6/translations/en.json +3 -1
  614. package/wizard/lib/es6/translations/es.json +3 -1
  615. package/wizard/lib/es6/translations/fr.json +3 -1
  616. package/wizard/lib/es6/translations/it.json +3 -1
  617. package/wizard/lib/es6/translations/ja.json +3 -1
  618. package/wizard/lib/es6/translations/ko.json +3 -1
  619. package/wizard/lib/es6/translations/nl.json +3 -1
  620. package/wizard/lib/es6/translations/pl.json +3 -1
  621. package/wizard/lib/es6/translations/pt.json +3 -1
  622. package/wizard/lib/es6/translations/sv.json +3 -1
  623. package/wizard/lib/es6/translations/tr.json +3 -1
  624. package/wizard/lib/es6/translations/vi.json +3 -1
  625. package/wizard/lib/es6/translations/zh.json +3 -1
  626. package/wizard/lib/types/index.d.ts +17 -0
  627. package/wizard/package.json +1 -1
  628. package/button/lib/cjs/Button.js +0 -237
  629. package/button/lib/cjs/Button.js.map +0 -1
  630. package/button/lib/cjs/SpinButton.js.map +0 -1
  631. package/button/lib/cjs/index.d.js +0 -2
  632. package/button/lib/cjs/index.d.js.map +0 -1
  633. package/button/lib/es6/Button.js +0 -231
  634. package/button/lib/es6/Button.js.map +0 -1
  635. package/button/lib/es6/SpinButton.js.map +0 -1
  636. package/button/lib/es6/index.d.js +0 -2
  637. package/button/lib/es6/index.d.js.map +0 -1
  638. /package/button/lib/cjs/{SpinButton.js → component/AbstractButton/SpinButton.js} +0 -0
  639. /package/button/lib/es6/{SpinButton.js → component/AbstractButton/SpinButton.js} +0 -0
@@ -0,0 +1,85 @@
1
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/createClass";
4
+ import _inherits from "@babel/runtime/helpers/inherits";
5
+ import _createSuper from "@babel/runtime/helpers/createSuper";
6
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
+ import { sstyled as _sstyled } from 'intergalactic/utils/lib/core/index';
8
+ import { assignProps as _assignProps2 } from 'intergalactic/core';
9
+ import { assignProps as _assignProps } from 'intergalactic/core';
10
+ import React from 'react';
11
+ import createComponent, { sstyled, Root } from 'intergalactic/core';
12
+ /*__reshadow-styles__:"./buttonLink.shadow.css"*/
13
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SButton_dvl3l_gg_{display:inline-block;font-family:inherit;font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-link, #006dca);line-height:normal;position:relative;cursor:pointer;-webkit-text-decoration:none;text-decoration:none;border:0;padding:0;margin:0;box-shadow:none;-webkit-tap-highlight-color:transparent;outline:0;background:0 0;transition:color .15s ease-in-out}.___SButton_dvl3l_gg_:active,.___SButton_dvl3l_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_dvl3l_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_dvl3l_gg_::-moz-focus-inner{border:0;padding:0}.___SButton_dvl3l_gg_.__active_dvl3l_gg_,.___SButton_dvl3l_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SButton_dvl3l_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SButton_dvl3l_gg_.__active_dvl3l_gg_ .___SText_dvl3l_gg_,.___SButton_dvl3l_gg_:active .___SText_dvl3l_gg_{border-color:currentColor}@media (hover:hover){.___SButton_dvl3l_gg_:hover .___SText_dvl3l_gg_{border-color:currentColor}}.___SButton_dvl3l_gg_.__enableVisited_dvl3l_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SButton_dvl3l_gg_.__enableVisited_dvl3l_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SButton_dvl3l_gg_ .___SText_dvl3l_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SButton_dvl3l_gg_.__keyboardFocused_dvl3l_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SButton_dvl3l_gg_.__visually-disabled_dvl3l_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SButton_dvl3l_gg_._use_secondary_dvl3l_gg_{color:var(--intergalactic-text-hint, #6c6e79)}.___SButton_dvl3l_gg_._use_secondary_dvl3l_gg_.__active_dvl3l_gg_,.___SButton_dvl3l_gg_._use_secondary_dvl3l_gg_:active{color:var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SButton_dvl3l_gg_._use_secondary_dvl3l_gg_:hover{color:var(--intergalactic-text-hint-hover-active, #484a54)}}.___SButton_dvl3l_gg_._use_secondary_dvl3l_gg_ .___SText_dvl3l_gg_{border-bottom-width:1px;border-bottom-style:dashed;border-color:currentColor}.___SAddon_dvl3l_gg_{display:inline-flex;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-05x, 2px);vertical-align:middle}.___SButton_dvl3l_gg_ .___SAddon_dvl3l_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SButton_dvl3l_gg_ .___SAddon_dvl3l_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SButton_dvl3l_gg_.__text-color_dvl3l_gg_{color:var(--text-color_dvl3l)}.___SButton_dvl3l_gg_.__text-color_dvl3l_gg_.__active_dvl3l_gg_,.___SButton_dvl3l_gg_.__text-color_dvl3l_gg_:active{color:var(--text-color_dvl3l);filter:brightness(.8)}@media (hover:hover){.___SButton_dvl3l_gg_.__text-color_dvl3l_gg_:hover{color:var(--text-color_dvl3l);filter:brightness(.8)}}.___SButton_dvl3l_gg_._size_100_dvl3l_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SButton_dvl3l_gg_._size_200_dvl3l_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SButton_dvl3l_gg_._size_300_dvl3l_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SButton_dvl3l_gg_._size_400_dvl3l_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SButton_dvl3l_gg_._size_500_dvl3l_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SButton_dvl3l_gg_._size_600_dvl3l_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SButton_dvl3l_gg_._size_700_dvl3l_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SButton_dvl3l_gg_._size_800_dvl3l_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}@media (prefers-reduced-motion){.___SButton_dvl3l_gg_,.___SText_dvl3l_gg_{transition:none}}" /*__inner_css_end__*/, "dvl3l_gg_") /*__reshadow_css_end__*/, {
14
+ "__SButton": "___SButton_dvl3l_gg_",
15
+ "_keyboardFocused": "__keyboardFocused_dvl3l_gg_",
16
+ "_visually-disabled": "__visually-disabled_dvl3l_gg_",
17
+ "__SAddon": "___SAddon_dvl3l_gg_",
18
+ "_size_100": "_size_100_dvl3l_gg_",
19
+ "_size_200": "_size_200_dvl3l_gg_",
20
+ "_size_300": "_size_300_dvl3l_gg_",
21
+ "_size_400": "_size_400_dvl3l_gg_",
22
+ "_size_500": "_size_500_dvl3l_gg_",
23
+ "_size_600": "_size_600_dvl3l_gg_",
24
+ "_size_700": "_size_700_dvl3l_gg_",
25
+ "_size_800": "_size_800_dvl3l_gg_",
26
+ "__SText": "___SText_dvl3l_gg_",
27
+ "_active": "__active_dvl3l_gg_",
28
+ "_enableVisited": "__enableVisited_dvl3l_gg_",
29
+ "_use_secondary": "_use_secondary_dvl3l_gg_",
30
+ "_text-color": "__text-color_dvl3l_gg_",
31
+ "--text-color": "--text-color_dvl3l"
32
+ });
33
+ import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
34
+ import { Box } from 'intergalactic/flex-box';
35
+ import { AbstractButton } from '../AbstractButton/AbstractButton';
36
+ import resolveColorEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
37
+ var enhance = {
38
+ keyboardFocused: keyboardFocusEnhance(),
39
+ resolveColor: resolveColorEnhance()
40
+ };
41
+ var RootButtonLink = /*#__PURE__*/function (_AbstractButton) {
42
+ _inherits(RootButtonLink, _AbstractButton);
43
+ var _super = _createSuper(RootButtonLink);
44
+ function RootButtonLink() {
45
+ _classCallCheck(this, RootButtonLink);
46
+ return _super.apply(this, arguments);
47
+ }
48
+ _createClass(RootButtonLink, [{
49
+ key: "getTextColor",
50
+ value: function getTextColor() {
51
+ var _ref5 = this.asProps,
52
+ color = _ref5.color,
53
+ resolveColor = _ref5.resolveColor;
54
+ return resolveColor(color);
55
+ }
56
+ }]);
57
+ return RootButtonLink;
58
+ }(AbstractButton);
59
+ _defineProperty(RootButtonLink, "displayName", 'ButtonLink');
60
+ _defineProperty(RootButtonLink, "enhance", Object.values(enhance));
61
+ _defineProperty(RootButtonLink, "style", style);
62
+ _defineProperty(RootButtonLink, "defaultProps", {
63
+ use: 'primary'
64
+ });
65
+ function Text(props) {
66
+ var _ref = arguments[0],
67
+ _ref3;
68
+ var SText = Box;
69
+ return _ref3 = sstyled(props.styles), /*#__PURE__*/React.createElement(SText, _ref3.cn("SText", _objectSpread({}, _assignProps({
70
+ "tag": 'span'
71
+ }, _ref))));
72
+ }
73
+ function Addon(props) {
74
+ var _ref2 = arguments[0],
75
+ _ref4;
76
+ var SAddon = Box;
77
+ return _ref4 = sstyled(props.styles), /*#__PURE__*/React.createElement(SAddon, _ref4.cn("SAddon", _objectSpread({}, _assignProps2({
78
+ "tag": 'span'
79
+ }, _ref2))));
80
+ }
81
+ export var ButtonLink = createComponent(RootButtonLink, {
82
+ Text: Text,
83
+ Addon: Addon
84
+ });
85
+ //# sourceMappingURL=ButtonLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonLink.js","names":["React","createComponent","sstyled","Root","style","_sstyled","insert","keyboardFocusEnhance","Box","AbstractButton","resolveColorEnhance","enhance","keyboardFocused","resolveColor","RootButtonLink","_AbstractButton","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getTextColor","_ref5","asProps","color","_defineProperty","Object","values","use","Text","props","_ref","arguments[0]","_ref3","SText","styles","createElement","cn","_objectSpread","_assignProps","Addon","_ref2","_ref4","SAddon","_assignProps2","ButtonLink"],"sources":["../../../../src/component/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { sstyled, Root } from '@semcore/core';\nimport style from './buttonLink.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { Box } from '@semcore/flex-box';\nimport { AbstractButton } from '../AbstractButton/AbstractButton';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { ButtonLinkAddonProps, ButtonLinkComponent, ButtonLinkTextProps } from './ButtonLink.type';\n\nconst enhance = {\n keyboardFocused: keyboardFocusEnhance(),\n resolveColor: resolveColorEnhance(),\n};\n\nclass RootButtonLink extends AbstractButton {\n static displayName = 'ButtonLink';\n static enhance = Object.values(enhance);\n static style = style;\n static defaultProps = {\n use: 'primary',\n };\n\n protected getTextColor(): string | undefined {\n const { color, resolveColor } = this.asProps as any;\n return resolveColor(color);\n }\n}\n\nfunction Text(props: ButtonLinkTextProps) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag='span' />);\n}\n\nfunction Addon(props: ButtonLinkAddonProps) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag='span' />);\n}\n\nexport const ButtonLink = createComponent(RootButtonLink, {\n Text,\n Addon,\n}) as ButtonLinkComponent;\n"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAE/D,OAAOC,oBAAoB,MAAM,kDAAkD;AACnF,SAASC,GAAG,QAAQ,mBAAmB;AACvC,SAASC,cAAc,QAAQ,kCAAkC;AACjE,OAAOC,mBAAmB,MAAM,iDAAiD;AAGjF,IAAMC,OAAO,GAAG;EACdC,eAAe,EAAEL,oBAAoB,EAAE;EACvCM,YAAY,EAAEH,mBAAmB;AACnC,CAAC;AAAC,IAEII,cAAc,0BAAAC,eAAA;EAAAC,SAAA,CAAAF,cAAA,EAAAC,eAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,cAAA;EAAA,SAAAA,eAAA;IAAAK,eAAA,OAAAL,cAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,cAAA;IAAAS,GAAA;IAAAC,KAAA,EAQlB,SAAAC,aAAA,EAA6C;MAC3C,IAAAC,KAAA,GAAgC,IAAI,CAACC,OAAO;QAApCC,KAAK,GAAAF,KAAA,CAALE,KAAK;QAAEf,YAAY,GAAAa,KAAA,CAAZb,YAAY;MAC3B,OAAOA,YAAY,CAACe,KAAK,CAAC;IAC5B;EAAC;EAAA,OAAAd,cAAA;AAAA,EAX0BL,cAAc;AAAAoB,eAAA,CAArCf,cAAc,iBACG,YAAY;AAAAe,eAAA,CAD7Bf,cAAc,aAEDgB,MAAM,CAACC,MAAM,CAACpB,OAAO,CAAC;AAAAkB,eAAA,CAFnCf,cAAc,WAGHV,KAAK;AAAAyB,eAAA,CAHhBf,cAAc,kBAII;EACpBkB,GAAG,EAAE;AACP,CAAC;AAQH,SAASC,IAAIA,CAACC,KAA0B,EAAE;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EACxC,IAAMC,KAAK,GACiC9B,GAAG;EAA/C,OAAA6B,KAAA,GAAOnC,OAAO,CAACgC,KAAK,CAACK,MAAM,CAAC,eAACvC,KAAA,CAAAwC,aAAA,CAACF,KAAK,EAAAD,KAAA,CAAAI,EAAA,UAAAC,aAAA,KAAAC,YAAA;IAAA,OAAkB;EAAM,GAAAR,IAAA,IAAG;AAChE;AAEA,SAASS,KAAKA,CAACV,KAA2B,EAAE;EAAA,IAAAW,KAAA,GAAAT,YAAA;IAAAU,KAAA;EAC1C,IAAMC,MAAM,GACiCvC,GAAG;EAAhD,OAAAsC,KAAA,GAAO5C,OAAO,CAACgC,KAAK,CAACK,MAAM,CAAC,eAACvC,KAAA,CAAAwC,aAAA,CAACO,MAAM,EAAAD,KAAA,CAAAL,EAAA,WAAAC,aAAA,KAAAM,aAAA;IAAA,OAAkB;EAAM,GAAAH,KAAA,IAAG;AACjE;AAEA,OAAO,IAAMI,UAAU,GAAGhD,eAAe,CAACa,cAAc,EAAE;EACxDmB,IAAI,EAAJA,IAAI;EACJW,KAAK,EAALA;AACF,CAAC,CAAwB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ButtonLink.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonLink.type.js","names":[],"sources":["../../../../src/component/ButtonLink/ButtonLink.type.ts"],"sourcesContent":["import { UnknownProperties, Intergalactic } from '@semcore/core';\n\nimport {\n AbstractButtonAddonProps,\n AbstractButtonContext,\n AbstractButtonTextProps,\n AbstractButtonProps,\n} from '../AbstractButton/AbstractButton.type';\n\n/**\n * Button link size\n * @default m\n */\nexport type ButtonLinkSize = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n/**\n * Button link type\n * @default primary\n */\ntype Use = 'primary' | 'secondary';\n\nexport type ButtonLinkProps = AbstractButtonProps<ButtonLinkSize, Use, never>;\n\nexport type ButtonLinkTextProps = AbstractButtonTextProps<ButtonLinkSize>;\n\nexport type ButtonLinkAddonProps = AbstractButtonAddonProps<ButtonLinkSize>;\n\nexport type ButtonLinkContext = AbstractButtonContext;\n\nexport type ButtonLinkChildren = {\n Text: Intergalactic.Component<'span', ButtonLinkTextProps>;\n Addon: Intergalactic.Component<'span', ButtonLinkAddonProps>;\n};\n\nexport type ButtonLinkComponent = Intergalactic.Component<\n 'button',\n ButtonLinkProps,\n ButtonLinkContext\n> & {\n Text: Intergalactic.Component<'span', ButtonLinkTextProps>;\n Addon: Intergalactic.Component<'span', ButtonLinkAddonProps>;\n};\n"],"mappings":""}
@@ -0,0 +1,160 @@
1
+ SButton {
2
+ display: inline-block;
3
+ font-family: inherit;
4
+ font-size: var(--intergalactic-fs-200, 14px);
5
+ color: var(--intergalactic-text-link, #006dca);
6
+ line-height: normal;
7
+ position: relative;
8
+ cursor: pointer;
9
+ text-decoration: none;
10
+ border: none;
11
+ padding: 0;
12
+ margin: 0;
13
+ box-shadow: none;
14
+ -webkit-tap-highlight-color: transparent;
15
+ outline: 0;
16
+ background: none;
17
+ transition: color 0.15s ease-in-out;
18
+
19
+ &:active,
20
+ &:hover,
21
+ &:focus {
22
+ outline: 0;
23
+ text-decoration: none;
24
+ }
25
+
26
+ &::-moz-focus-inner {
27
+ border: none;
28
+ padding: 0;
29
+ }
30
+
31
+ &[active],
32
+ &:hover,
33
+ &:active {
34
+ color: var(--intergalactic-text-link-hover-active, #044792);
35
+
36
+ & SText {
37
+ border-color: currentColor;
38
+ }
39
+ }
40
+
41
+ &[enableVisited]:visited,
42
+ &[enableVisited]:visited:hover {
43
+ color: var(--intergalactic-text-link-visited, #8649e1);
44
+ }
45
+
46
+ SText {
47
+ border-bottom-width: 1px;
48
+ border-bottom-style: solid;
49
+ border-color: transparent;
50
+ transition: border-bottom-color 0.15s ease-in-out;
51
+ }
52
+ }
53
+
54
+ SButton[keyboardFocused] {
55
+ outline-color: var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));
56
+ outline-style: solid;
57
+ outline-width: 3px;
58
+ }
59
+
60
+ SButton[visually-disabled] {
61
+ opacity: var(--intergalactic-disabled-opacity, 0.3);
62
+ cursor: default;
63
+ /* Disable link interactions */
64
+ pointer-events: none;
65
+ }
66
+
67
+ SButton[use='secondary'] {
68
+ color: var(--intergalactic-text-hint, #6c6e79);
69
+
70
+ &[active],
71
+ &:active,
72
+ &:hover {
73
+ color: var(--intergalactic-text-hint-hover-active, #484a54);
74
+ }
75
+
76
+ SText {
77
+ border-bottom-width: 1px;
78
+ border-bottom-style: dashed;
79
+ border-color: currentColor;
80
+ }
81
+ }
82
+
83
+ SAddon {
84
+ display: inline-flex;
85
+ justify-content: center;
86
+ align-items: center;
87
+ margin-bottom: var(--intergalactic-spacing-05x, 2px);
88
+ vertical-align: middle;
89
+ }
90
+
91
+ SButton SAddon {
92
+ &:not(:only-child):first-child {
93
+ margin-right: var(--intergalactic-spacing-1x, 4px);
94
+ }
95
+
96
+ &:not(:only-child):last-child {
97
+ margin-left: var(--intergalactic-spacing-1x, 4px);
98
+ }
99
+ }
100
+
101
+ SButton[text-color] {
102
+ color: var(--text-color);
103
+
104
+ &[active],
105
+ &:hover,
106
+ &:active {
107
+ color: var(--text-color);
108
+ filter: brightness(0.8);
109
+ }
110
+ }
111
+
112
+ SButton[size='100'] {
113
+ font-size: var(--intergalactic-fs-100, 12px);
114
+ line-height: var(--intergalactic-lh-100, 133%);
115
+ }
116
+
117
+ SButton[size='200'] {
118
+ font-size: var(--intergalactic-fs-200, 14px);
119
+ line-height: var(--intergalactic-lh-200, 142%);
120
+ }
121
+
122
+ SButton[size='300'] {
123
+ font-size: var(--intergalactic-fs-300, 16px);
124
+ line-height: var(--intergalactic-lh-300, 150%);
125
+ }
126
+
127
+ SButton[size='400'] {
128
+ font-size: var(--intergalactic-fs-400, 20px);
129
+ line-height: var(--intergalactic-lh-400, 120%);
130
+ }
131
+
132
+ SButton[size='500'] {
133
+ font-size: var(--intergalactic-fs-500, 24px);
134
+ line-height: var(--intergalactic-lh-500, 117%);
135
+ }
136
+
137
+ SButton[size='600'] {
138
+ font-size: var(--intergalactic-fs-600, 32px);
139
+ line-height: var(--intergalactic-lh-600, 125%);
140
+ }
141
+
142
+ SButton[size='700'] {
143
+ font-size: var(--intergalactic-fs-700, 36px);
144
+ line-height: var(--intergalactic-lh-700, 110%);
145
+ }
146
+
147
+ SButton[size='800'] {
148
+ font-size: var(--intergalactic-fs-800, 48px);
149
+ line-height: var(--intergalactic-lh-800, 117%);
150
+ }
151
+
152
+ @media (prefers-reduced-motion) {
153
+ SButton {
154
+ transition: none;
155
+ }
156
+
157
+ SText {
158
+ transition: none;
159
+ }
160
+ }
@@ -1,3 +1,6 @@
1
- export { default } from './Button';
2
- export * from './Button';
1
+ export { default } from './component/Button/Button';
2
+ export * from './component/Button/Button.type';
3
+ export * from './component/ButtonLink/ButtonLink';
4
+ export * from './component/ButtonLink/ButtonLink.type';
5
+ export { MAP_USE_DEFAULT_THEME } from './component/AbstractButton/AbstractButton';
3
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Button';\nexport * from './Button';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,UAAU;AAClC,cAAc,UAAU"}
1
+ {"version":3,"file":"index.js","names":["default","MAP_USE_DEFAULT_THEME"],"sources":["../../src/index.ts"],"sourcesContent":["export { default } from './component/Button/Button';\nexport * from './component/Button/Button.type';\nexport * from './component/ButtonLink/ButtonLink';\nexport * from './component/ButtonLink/ButtonLink.type';\nexport { MAP_USE_DEFAULT_THEME } from './component/AbstractButton/AbstractButton';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,2BAA2B;AACnD,cAAc,gCAAgC;AAC9C,cAAc,mCAAmC;AACjD,cAAc,wCAAwC;AACtD,SAASC,qBAAqB,QAAQ,2CAA2C"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { AbstractButtonProps } from './AbstractButton.type';
3
+ import { Component } from 'intergalactic/core';
4
+ export declare const MAP_USE_DEFAULT_THEME: Record<string, string>;
5
+ type Props = AbstractButtonProps<any, any, any>;
6
+ export declare abstract class AbstractButton extends Component<Props, {}, {}> {
7
+ static displayName: string;
8
+ containerRef: React.RefObject<HTMLButtonElement>;
9
+ state: {
10
+ ariaLabelledByContent: null;
11
+ };
12
+ protected abstract getTextColor(): string | undefined;
13
+ getTextProps(): {
14
+ size: any;
15
+ };
16
+ getAddonProps(): {
17
+ size: any;
18
+ };
19
+ componentDidMount(): void;
20
+ renderButton({ buttonProps, children }: any): React.ReactNode;
21
+ renderButtonWithHint({ buttonProps, children, hintProps }: any): React.ReactNode;
22
+ render(): JSX.Element;
23
+ }
24
+ export {};
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { PropGetterFn } from 'intergalactic/core';
3
+ import { KeyboardFocusProps } from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
4
+ import { BoxProps } from 'intergalactic/flex-box';
5
+ import { NeighborItemProps } from 'intergalactic/neighbor-location';
6
+ import { TooltipHintProps } from 'intergalactic/tooltip';
7
+ export type AbstractButtonProps<S, U, T> = BoxProps & NeighborItemProps & KeyboardFocusProps & {
8
+ /** Button activity state */
9
+ active?: boolean;
10
+ /** Disabled button state */
11
+ disabled?: boolean;
12
+ /** Loading button state */
13
+ loading?: boolean;
14
+ /** Tag for the left Addon */
15
+ addonLeft?: React.ElementType;
16
+ /** Tag for the right Addon */
17
+ addonRight?: React.ElementType;
18
+ /**
19
+ * Placement for hint
20
+ * @default top
21
+ */
22
+ hintPlacement?: TooltipHintProps['placement'];
23
+ /** Button type. Defined in Button.type or ButtonLink.type */
24
+ size?: S;
25
+ /** Button usage. Defined in Button.type or ButtonLink.type */
26
+ use?: U;
27
+ /** Button theme. Defined in Button.type or ButtonLink.type */
28
+ theme?: T;
29
+ };
30
+ export type AbstractButtonAddonProps<S> = BoxProps & {
31
+ size?: S;
32
+ };
33
+ export type AbstractButtonTextProps<S> = BoxProps & {
34
+ size?: S;
35
+ };
36
+ export type AbstractButtonContext = {
37
+ getTextProps: PropGetterFn;
38
+ getAddonProps: PropGetterFn;
39
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const SPIN_SIZE_MAP: Record<string, string>;
3
+ export default function SpinButton({ theme, size, ...others }: any): JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ButtonComponent } from './Button.type';
2
+ declare const Button: ButtonComponent;
3
+ export default Button;
@@ -0,0 +1,39 @@
1
+ import { UnknownProperties, Intergalactic } from 'intergalactic/core';
2
+ import { AbstractButtonAddonProps, AbstractButtonContext, AbstractButtonTextProps, AbstractButtonProps } from '../AbstractButton/AbstractButton.type';
3
+ /**
4
+ * Button size
5
+ * @default m
6
+ */
7
+ export type ButtonSize = 'l' | 'm';
8
+ /**
9
+ * Button type
10
+ * @default secondary
11
+ */
12
+ type Use = 'primary' | 'secondary' | 'tertiary';
13
+ /** Button theme */
14
+ type Theme = 'info' | 'success' | 'warning' | 'danger' | 'muted' | 'invert';
15
+ /** @deprecated */
16
+ export interface IButtonProps extends ButtonProps, UnknownProperties {
17
+ }
18
+ export type ButtonProps = AbstractButtonProps<ButtonSize, Use, Theme>;
19
+ /** @deprecated */
20
+ export interface IButtonTextProps extends ButtonTextProps, UnknownProperties {
21
+ }
22
+ export type ButtonTextProps = AbstractButtonTextProps<ButtonSize>;
23
+ /** @deprecated */
24
+ export interface IButtonAddonProps extends ButtonAddonProps, UnknownProperties {
25
+ }
26
+ export type ButtonAddonProps = AbstractButtonAddonProps<ButtonSize>;
27
+ /** @deprecated */
28
+ export interface IButtonContext extends ButtonContext, UnknownProperties {
29
+ }
30
+ export type ButtonContext = AbstractButtonContext;
31
+ export type ButtonChildren = {
32
+ Text: Intergalactic.Component<'span', ButtonTextProps>;
33
+ Addon: Intergalactic.Component<'span', ButtonAddonProps>;
34
+ };
35
+ export type ButtonComponent = Intergalactic.Component<'button', ButtonProps, ButtonContext> & {
36
+ Text: Intergalactic.Component<'span', ButtonTextProps>;
37
+ Addon: Intergalactic.Component<'span', ButtonAddonProps>;
38
+ };
39
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ButtonLinkComponent } from './ButtonLink.type';
2
+ export declare const ButtonLink: ButtonLinkComponent;
@@ -0,0 +1,25 @@
1
+ import { Intergalactic } from 'intergalactic/core';
2
+ import { AbstractButtonAddonProps, AbstractButtonContext, AbstractButtonTextProps, AbstractButtonProps } from '../AbstractButton/AbstractButton.type';
3
+ /**
4
+ * Button link size
5
+ * @default m
6
+ */
7
+ export type ButtonLinkSize = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
8
+ /**
9
+ * Button link type
10
+ * @default primary
11
+ */
12
+ type Use = 'primary' | 'secondary';
13
+ export type ButtonLinkProps = AbstractButtonProps<ButtonLinkSize, Use, never>;
14
+ export type ButtonLinkTextProps = AbstractButtonTextProps<ButtonLinkSize>;
15
+ export type ButtonLinkAddonProps = AbstractButtonAddonProps<ButtonLinkSize>;
16
+ export type ButtonLinkContext = AbstractButtonContext;
17
+ export type ButtonLinkChildren = {
18
+ Text: Intergalactic.Component<'span', ButtonLinkTextProps>;
19
+ Addon: Intergalactic.Component<'span', ButtonLinkAddonProps>;
20
+ };
21
+ export type ButtonLinkComponent = Intergalactic.Component<'button', ButtonLinkProps, ButtonLinkContext> & {
22
+ Text: Intergalactic.Component<'span', ButtonLinkTextProps>;
23
+ Addon: Intergalactic.Component<'span', ButtonLinkAddonProps>;
24
+ };
25
+ export {};
@@ -1,68 +1,5 @@
1
- import React from 'react';
2
- import { PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/core';
3
- import { KeyboardFocusProps } from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
4
- import { BoxProps } from 'intergalactic/flex-box';
5
- import { NeighborItemProps } from 'intergalactic/neighbor-location';
6
- import { TooltipHintProps } from 'intergalactic/tooltip';
7
-
8
- export type ButtonSize = 'l' | 'm';
9
-
10
- /** @deprecated */
11
- export interface IButtonProps extends ButtonProps, UnknownProperties {}
12
- export type ButtonProps = BoxProps &
13
- NeighborItemProps &
14
- KeyboardFocusProps & {
15
- /**
16
- * Button type
17
- * @default secondary
18
- */
19
- use?: 'primary' | 'secondary' | 'tertiary';
20
- /** Button theme */
21
- theme?: 'info' | 'success' | 'warning' | 'danger' | 'muted' | 'invert';
22
- /** Button activity state */
23
- active?: boolean;
24
- /**
25
- * Button size
26
- * @default m
27
- */
28
- size?: ButtonSize;
29
- /** Disabled button state */
30
- disabled?: boolean;
31
- /** Loading button state */
32
- loading?: boolean;
33
- /** Tag for the left Addon */
34
- addonLeft?: React.ElementType;
35
- /** Tag for the right Addon */
36
- addonRight?: React.ElementType;
37
- /**
38
- * Placement for hint
39
- * @default top
40
- */
41
- hintPlacement?: TooltipHintProps['placement'];
42
- };
43
-
44
- /** @deprecated */
45
- export interface IButtonTextProps extends ButtonTextProps, UnknownProperties {}
46
- export type ButtonTextProps = BoxProps & {
47
- size?: ButtonSize;
48
- };
49
-
50
- /** @deprecated */
51
- export interface IButtonAddonProps extends ButtonAddonProps, UnknownProperties {}
52
- export type ButtonAddonProps = BoxProps & {
53
- size?: ButtonSize;
54
- };
55
-
56
- /** @deprecated */
57
- export interface IButtonContext extends ButtonContext, UnknownProperties {}
58
- export type ButtonContext = {
59
- getTextProps: PropGetterFn;
60
- getAddonProps: PropGetterFn;
61
- };
62
-
63
- declare const Button: Intergalactic.Component<'button', ButtonProps, ButtonContext> & {
64
- Text: Intergalactic.Component<'span', ButtonTextProps>;
65
- Addon: Intergalactic.Component<'span', ButtonAddonProps>;
66
- };
67
-
68
- export default Button;
1
+ export { default } from './component/Button/Button';
2
+ export * from './component/Button/Button.type';
3
+ export * from './component/ButtonLink/ButtonLink';
4
+ export * from './component/ButtonLink/ButtonLink.type';
5
+ export { MAP_USE_DEFAULT_THEME } from './component/AbstractButton/AbstractButton';
@@ -1 +1 @@
1
- {"name":"intergalactic/button","description":"Semrush Button Component","version":"5.36.0-prerelease.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/flex-box":"5.32.0-prerelease.0","@semcore/neighbor-location":"4.30.0-prerelease.0","@semcore/spin":"5.32.0-prerelease.0","@semcore/tooltip":"6.41.0-prerelease.0","@semcore/utils":"4.35.0-prerelease.0"},"peerDependencies":{"@semcore/core":"^2.30.0-prerelease.0","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/button"},"devDependencies":{"@semcore/icon":"*","@semcore/testing-utils":"1.0.0","@types/react":"18.0.21"}}
1
+ {"name":"intergalactic/button","description":"Semrush Button Component","version":"5.37.0-prerelease.1","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","exports":{"require":"./lib/cjs/index.js","import":"./lib/es6/index.js","types":"./lib/types/index.d.ts"},"scripts":{"build":"pnpm semcore-builder --source=ts"},"dependencies":{"@semcore/flex-box":"5.33.0-prerelease.1","@semcore/neighbor-location":"4.31.0-prerelease.1","@semcore/spin":"5.33.0-prerelease.1","@semcore/tooltip":"6.42.0-prerelease.1","@semcore/utils":"4.36.0-prerelease.1"},"peerDependencies":{"@semcore/core":"^2.31.0-prerelease.1","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/button"},"devDependencies":{"@semcore/icon":"*","@semcore/testing-utils":"1.0.0","@types/react":"18.0.21"}}
@@ -17,18 +17,17 @@ var _core = _interopRequireWildcard(require("intergalactic/core"));
17
17
  var _react = _interopRequireDefault(require("react"));
18
18
  var _flexBox = require("intergalactic/flex-box");
19
19
  var _typography = require("intergalactic/typography");
20
+ var _button = require("intergalactic/button");
20
21
  var _tooltip = require("intergalactic/tooltip");
21
22
  var _m = _interopRequireDefault(require("intergalactic/icon/Info/m"));
22
23
  var _findComponent = require("intergalactic/utils/lib/findComponent");
23
24
  /*__reshadow-styles__:"./style/card.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SCard_1qu85_gg_{box-sizing:border-box;background:var(--intergalactic-bg-primary-neutral, #ffffff);padding:0;border:0;border-radius:var(--intergalactic-surface-rounded, 6px);box-shadow:var(--intergalactic-box-shadow-card,\n 0px 0px 1px 0px rgba(25, 27, 35, 0.16), 0px 1px 2px 0px rgba(25, 27, 35, 0.12)\n )}.___SIcon_1qu85_gg_,.___STitle_1qu85_gg_{margin-right:var(--intergalactic-spacing-1x, 4px)}.___STitle_1qu85_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700)}.___SIcon_1qu85_gg_{color:var(--intergalactic-icon-secondary-neutral, #a9abb6);cursor:help}.___STooltip_1qu85_gg_{vertical-align:middle}.___SDescription_1qu85_gg_{margin-bottom:0;margin-top:var(--intergalactic-spacing-2x, 8px);font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-secondary, #6c6e79)}.___SBody_1qu85_gg_,.___SHeader_1qu85_gg_{padding-left:var(--intergalactic-spacing-5x, 20px);padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeader_1qu85_gg_{padding-top:var(--intergalactic-spacing-2x, 8px);padding-bottom:var(--intergalactic-spacing-2x, 8px);box-shadow:inset 0-1px 0 var(--intergalactic-border-secondary, #e0e1e9)}.___SBody_1qu85_gg_{color:var(--intergalactic-text-primary, #191b23);padding-bottom:var(--intergalactic-spacing-5x, 20px);padding-top:var(--intergalactic-spacing-5x, 20px)}" /*__inner_css_end__*/, "1qu85_gg_") /*__reshadow_css_end__*/, {
25
- "__SCard": "___SCard_1qu85_gg_",
26
- "__STitle": "___STitle_1qu85_gg_",
27
- "__SIcon": "___SIcon_1qu85_gg_",
28
- "__STooltip": "___STooltip_1qu85_gg_",
29
- "__SDescription": "___SDescription_1qu85_gg_",
30
- "__SHeader": "___SHeader_1qu85_gg_",
31
- "__SBody": "___SBody_1qu85_gg_"
25
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SCard_1c81w_gg_{box-sizing:border-box;background:var(--intergalactic-bg-primary-neutral, #ffffff);padding:0;border:0;border-radius:var(--intergalactic-surface-rounded, 6px);box-shadow:var(--intergalactic-box-shadow-card,\n 0px 0px 1px 0px rgba(25, 27, 35, 0.16), 0px 1px 2px 0px rgba(25, 27, 35, 0.12)\n )}.___SCard_1c81w_gg_ .___STitle_1c81w_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SCard_1c81w_gg_ [data-ui-name=\"DescriptionTooltip.Trigger\"]{margin-right:var(--intergalactic-spacing-1x, 4px);line-height:normal;vertical-align:top;margin-top:calc(var(--intergalactic-spacing-1x, 4px)/2)}.___SDescription_1c81w_gg_{margin-bottom:0;margin-top:var(--intergalactic-spacing-2x, 8px);font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-secondary, #6c6e79)}.___SBody_1c81w_gg_,.___SHeader_1c81w_gg_{padding-left:var(--intergalactic-spacing-5x, 20px);padding-right:var(--intergalactic-spacing-5x, 20px)}.___SHeader_1c81w_gg_{padding-top:var(--intergalactic-spacing-2x, 8px);padding-bottom:var(--intergalactic-spacing-2x, 8px);box-shadow:inset 0-1px 0 var(--intergalactic-border-secondary, #e0e1e9)}.___SBody_1c81w_gg_{color:var(--intergalactic-text-primary, #191b23);padding-bottom:var(--intergalactic-spacing-5x, 20px);padding-top:var(--intergalactic-spacing-5x, 20px)}" /*__inner_css_end__*/, "1c81w_gg_") /*__reshadow_css_end__*/, {
26
+ "__SDescription": "___SDescription_1c81w_gg_",
27
+ "__SHeader": "___SHeader_1c81w_gg_",
28
+ "__SBody": "___SBody_1c81w_gg_",
29
+ "__SCard": "___SCard_1c81w_gg_",
30
+ "__STitle": "___STitle_1c81w_gg_"
32
31
  });
33
32
  var CardRoot = /*#__PURE__*/function (_Component) {
34
33
  (0, _inherits2["default"])(CardRoot, _Component);
@@ -65,20 +64,18 @@ function Title(props) {
65
64
  hintAfterAriaLabel = props.hintAfterAriaLabel;
66
65
  var hintAfter = props.hintAfter || props.hint;
67
66
  var STitle = _typography.Text;
68
- var SIcon = _m["default"];
69
- var STooltip = _tooltip.DescriptionTooltip;
70
- return _ref7 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(STitle, _ref7.cn("STitle", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref2))), /*#__PURE__*/_react["default"].createElement(Children, _ref7.cn("Children", {})), innerHint && /*#__PURE__*/_react["default"].createElement(STooltip, _ref7.cn("STooltip", {
71
- "ml": 1,
72
- "title": innerHint,
73
- "aria-label": innerHintAriaLabel
74
- }), /*#__PURE__*/_react["default"].createElement(SIcon, _ref7.cn("SIcon", {
75
- "interactive": true
76
- })))), hintAfter && /*#__PURE__*/_react["default"].createElement(STooltip, _ref7.cn("STooltip", {
77
- "title": hintAfter,
78
- "aria-label": hintAfterAriaLabel
79
- }), /*#__PURE__*/_react["default"].createElement(SIcon, _ref7.cn("SIcon", {
80
- "interactive": true
81
- }))));
67
+ return _ref7 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(STitle, _ref7.cn("STitle", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref2))), /*#__PURE__*/_react["default"].createElement(Children, _ref7.cn("Children", {})), innerHint && /*#__PURE__*/_react["default"].createElement(_tooltip.DescriptionTooltip, _ref7.cn("DescriptionTooltip", {}), /*#__PURE__*/_react["default"].createElement(_tooltip.DescriptionTooltip.Trigger, {
68
+ tag: _button.ButtonLink,
69
+ ml: 1,
70
+ use: 'secondary',
71
+ "aria-label": innerHintAriaLabel,
72
+ color: '--intergalactic-icon-secondary-neutral'
73
+ }, /*#__PURE__*/_react["default"].createElement(_button.ButtonLink.Addon, null, /*#__PURE__*/_react["default"].createElement(_m["default"], _ref7.cn("InfoM", {})))), /*#__PURE__*/_react["default"].createElement(_tooltip.DescriptionTooltip.Popper, null, innerHint))), hintAfter && /*#__PURE__*/_react["default"].createElement(_tooltip.DescriptionTooltip, _ref7.cn("DescriptionTooltip", {}), /*#__PURE__*/_react["default"].createElement(_tooltip.DescriptionTooltip.Trigger, {
74
+ tag: _button.ButtonLink,
75
+ use: 'secondary',
76
+ "aria-label": hintAfterAriaLabel,
77
+ color: '--intergalactic-icon-secondary-neutral'
78
+ }, /*#__PURE__*/_react["default"].createElement(_button.ButtonLink.Addon, null, /*#__PURE__*/_react["default"].createElement(_m["default"], _ref7.cn("InfoM", {})))), /*#__PURE__*/_react["default"].createElement(_tooltip.DescriptionTooltip.Popper, null, hintAfter)));
82
79
  }
83
80
  function Description(props) {
84
81
  var _ref3 = arguments[0],
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_typography","_tooltip","_m","_findComponent","style","_index","sstyled","insert","CardRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_ref6","SCard","Box","_this$asProps","Children","styles","forcedAdvancedMode","advancedMode","isAdvanceMode","Card","Header","displayName","Body","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","Title","props","_ref2","arguments[0]","_ref7","innerHint","innerHintAriaLabel","hintAfterAriaLabel","hintAfter","hint","STitle","Text","SIcon","InfoM","STooltip","DescriptionTooltip","Fragment","Description","_ref3","_ref8","SDescription","_ref4","_ref9","SHeader","_ref5","_ref10","SBody","createComponent","_default","exports"],"sources":["../../src/Card.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport { Text } from '@semcore/typography';\nimport { DescriptionTooltip } from '@semcore/tooltip';\nimport InfoM from '@semcore/icon/Info/m';\n\nimport style from './style/card.shadow.css';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\n\nclass CardRoot extends Component {\n static displayName = 'Card';\n\n static style = style;\n\n render() {\n const SCard = Root;\n const { Children, styles, forcedAdvancedMode } = this.asProps;\n\n const advancedMode =\n forcedAdvancedMode ||\n isAdvanceMode(Children, [Card.Header.displayName, Card.Body.displayName]);\n\n return sstyled(styles)(\n <SCard render={Box}>\n {advancedMode ? (\n <Children />\n ) : (\n <Card.Body>\n <Children />\n </Card.Body>\n )}\n </SCard>,\n );\n }\n}\n\nfunction Title(props) {\n const { styles, innerHint, Children, innerHintAriaLabel, hintAfterAriaLabel } = props;\n const hintAfter = props.hintAfter || props.hint;\n const STitle = Root;\n const SIcon = InfoM;\n const STooltip = DescriptionTooltip;\n return sstyled(styles)(\n <>\n <STitle render={Text}>\n <Children />\n {innerHint && (\n <STooltip ml={1} title={innerHint} aria-label={innerHintAriaLabel}>\n <SIcon interactive />\n </STooltip>\n )}\n </STitle>\n {hintAfter && (\n <STooltip title={hintAfter} aria-label={hintAfterAriaLabel}>\n <SIcon interactive />\n </STooltip>\n )}\n </>,\n );\n}\n\nfunction Description(props) {\n const { styles } = props;\n const SDescription = Root;\n return sstyled(styles)(<SDescription render={Text} tag='p' />);\n}\n\nfunction Header(props) {\n const { styles } = props;\n const SHeader = Root;\n return sstyled(styles)(<SHeader render={Box} {...props} />);\n}\n\nfunction Body(props) {\n const { styles } = props;\n const SBody = Root;\n return sstyled(styles)(<SBody render={Box} {...props} />);\n}\n\nconst Card = createComponent(CardRoot, {\n Title,\n Description,\n Header,\n Body,\n});\n\nexport default Card;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,EAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAGA,IAAAO,cAAA,GAAAP,OAAA;AAAiE;AAAA,IAAAQ,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAE3DC,QAAQ,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,QAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,QAAA;EAAA,SAAAA,SAAA;IAAA,IAAAK,gBAAA,mBAAAL,QAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAA,IAAAC,aAAA,aAAAR,QAAA;IAAAS,GAAA;IAAAC,KAAA,EAKZ,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;QAAAC,KAAA;MACP,IAAMC,KAAK,GAQMC,YAAG;MAPpB,IAAAC,aAAA,GAAiD,IAAI,CAACJ,OAAO;QAArDK,Q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C,KAAA,CAAA4C,WAAA;IAAA,OAAmB;EAAG,GAAAqB,KAAA,IAAG;AAC/D;AAEA,SAAS3B,MAAMA,CAACU,KAAK,EAAE;EAAA,IAAAoB,KAAA,GAAAlB,YAAA;IAAAmB,KAAA;EACrB,IAAQpC,MAAM,GAAKe,KAAK,CAAhBf,MAAM;EACd,IAAMqC,OAAO,GAC2BxC,YAAG;EAA3C,OAAAuC,KAAA,GAAO,IAAAzD,aAAO,EAACqB,MAAM,CAAC,eAAC9B,MAAA,YAAAsC,aAAA,CAAC6B,OAAO,EAAAD,KAAA,CAAA3B,EAAA,gBAAAC,cAAA,qBAAA3C,KAAA,CAAA4C,WAAA,MAAAD,cAAA,iBAAkBK,KAAK,GAAAoB,KAAA,IAAI;AAC5D;AAEA,SAAS5B,IAAIA,CAACQ,KAAK,EAAE;EAAA,IAAAuB,KAAA,GAAArB,YAAA;IAAAsB,MAAA;EACnB,IAAQvC,MAAM,GAAKe,KAAK,CAAhBf,MAAM;EACd,IAAMwC,KAAK,GAC2B3C,YAAG;EAAzC,OAAA0C,MAAA,GAAO,IAAA5D,aAAO,EAACqB,MAAM,CAAC,eAAC9B,MAAA,YAAAsC,aAAA,CAACgC,KAAK,EAAAD,MAAA,CAAA9B,EAAA,cAAAC,cAAA,qBAAA3C,KAAA,CAAA4C,WAAA,MAAAD,cAAA,iBAAkBK,KAAK,GAAAuB,KAAA,IAAI;AAC1D;AAEA,IAAMlC,IAAI,GAAG,IAAAqC,gBAAe,EAAC5D,QAAQ,EAAE;EACrCiC,KAAK,EAALA,KAAK;EACLiB,WAAW,EAAXA,WAAW;EACX1B,MAAM,EAANA,MAAM;EACNE,IAAI,EAAJA;AACF,CAAC,CAAC;AAAC,IAAAmC,QAAA,GAEYtC,IAAI;AAAAuC,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"Card.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_typography","_button","_tooltip","_m","_findComponent","style","_index","sstyled","insert","CardRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","render","_ref","asProps","_ref6","SCard","Box","_this$asProps","Children","styles","forcedAdvancedMode","advancedMode","isAdvanceMode","Card","Header","displayName","Body","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","Title","props","_ref2","arguments[0]","_ref7","innerHint","innerHintAriaLabel","hintAfterAriaLabel","hintAfter","hint","STitle","Text","Fragment","DescriptionTooltip","Trigger","tag","ButtonLink","ml","use","color","Addon","Popper","Description","_ref3","_ref8","SDescription","_ref4","_ref9","SHeader","_ref5","_ref10","SBody","createComponent","_default","exports"],"sources":["../../src/Card.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport { Text } from '@semcore/typography';\nimport { ButtonLink } from '@semcore/button';\nimport { DescriptionTooltip } from '@semcore/tooltip';\nimport InfoM from '@semcore/icon/Info/m';\nimport style from './style/card.shadow.css';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\n\nclass CardRoot extends Component {\n static displayName = 'Card';\n\n static style = style;\n\n render() {\n const SCard = Root;\n const { Children, styles, forcedAdvancedMode } = this.asProps;\n\n const advancedMode =\n forcedAdvancedMode ||\n isAdvanceMode(Children, [Card.Header.displayName, Card.Body.displayName]);\n\n return sstyled(styles)(\n <SCard render={Box}>\n {advancedMode ? (\n <Children />\n ) : (\n <Card.Body>\n <Children />\n </Card.Body>\n )}\n </SCard>,\n );\n }\n}\n\nfunction Title(props) {\n const { styles, innerHint, Children, innerHintAriaLabel, hintAfterAriaLabel } = props;\n const hintAfter = props.hintAfter || props.hint;\n const STitle = Root;\n\n return sstyled(styles)(\n <>\n <STitle render={Text}>\n <Children />\n {innerHint && (\n <DescriptionTooltip>\n <DescriptionTooltip.Trigger\n tag={ButtonLink}\n ml={1}\n use={'secondary'}\n aria-label={innerHintAriaLabel}\n color={'--intergalactic-icon-secondary-neutral'}\n >\n <ButtonLink.Addon>\n <InfoM />\n </ButtonLink.Addon>\n </DescriptionTooltip.Trigger>\n <DescriptionTooltip.Popper>{innerHint}</DescriptionTooltip.Popper>\n </DescriptionTooltip>\n )}\n </STitle>\n {hintAfter && (\n <DescriptionTooltip>\n <DescriptionTooltip.Trigger\n tag={ButtonLink}\n use={'secondary'}\n aria-label={hintAfterAriaLabel}\n color={'--intergalactic-icon-secondary-neutral'}\n >\n <ButtonLink.Addon>\n <InfoM />\n </ButtonLink.Addon>\n </DescriptionTooltip.Trigger>\n <DescriptionTooltip.Popper>{hintAfter}</DescriptionTooltip.Popper>\n </DescriptionTooltip>\n )}\n </>,\n );\n}\n\nfunction Description(props) {\n const { styles } = props;\n const SDescription = Root;\n return sstyled(styles)(<SDescription render={Text} tag='p' />);\n}\n\nfunction Header(props) {\n const { styles } = props;\n const SHeader = Root;\n return sstyled(styles)(<SHeader render={Box} {...props} />);\n}\n\nfunction Body(props) {\n const { styles } = props;\n const SBody = Root;\n return sstyled(styles)(<SBody render={Box} {...props} />);\n}\n\nconst Card = createComponent(CardRoot, {\n Title,\n Description,\n Header,\n Body,\n});\n\nexport default Card;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,EAAA,GAAAL,sBAAA,CAAAF,OAAA;AAEA,IAAAQ,cAAA,GAAAR,OAAA;AAAiE;AAAA,IAAAS,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAE3DC,QAAQ,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,QAAA,EAAAC,UAAA;EAAA,IAAA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