intergalactic 15.87.0-prerelease.0 → 15.87.0-prerelease.3

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 (362) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/accordion/lib/cjs/Accordion.js +7 -7
  3. package/accordion/lib/es6/Accordion.js +7 -7
  4. package/animation/lib/cjs/Animation.js +11 -11
  5. package/animation/lib/cjs/Collapse.js +28 -28
  6. package/animation/lib/cjs/FadeInOut.js +28 -28
  7. package/animation/lib/cjs/Scale.js +28 -28
  8. package/animation/lib/cjs/Slide.js +28 -28
  9. package/animation/lib/cjs/Transform.js +28 -28
  10. package/animation/lib/es6/Animation.js +11 -11
  11. package/animation/lib/es6/Collapse.js +28 -28
  12. package/animation/lib/es6/FadeInOut.js +28 -28
  13. package/animation/lib/es6/Scale.js +28 -28
  14. package/animation/lib/es6/Slide.js +28 -28
  15. package/animation/lib/es6/Transform.js +28 -28
  16. package/badge/lib/cjs/Badge.js +6 -6
  17. package/badge/lib/es6/Badge.js +6 -6
  18. package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
  19. package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
  20. package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
  21. package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
  22. package/base-trigger/lib/es6/BaseTrigger.js +18 -18
  23. package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
  24. package/base-trigger/lib/es6/FilterTrigger.js +7 -7
  25. package/base-trigger/lib/es6/LinkTrigger.js +12 -12
  26. package/breadcrumbs/lib/cjs/Breadcrumbs.js +6 -6
  27. package/breadcrumbs/lib/es6/Breadcrumbs.js +6 -6
  28. package/card/lib/cjs/Card.js +8 -8
  29. package/card/lib/es6/Card.js +8 -8
  30. package/carousel/lib/cjs/Carousel.js +19 -19
  31. package/carousel/lib/es6/Carousel.js +19 -19
  32. package/checkbox/lib/cjs/Checkbox.js +18 -18
  33. package/checkbox/lib/es6/Checkbox.js +18 -18
  34. package/color-picker/lib/cjs/ColorPicker.js +23 -23
  35. package/color-picker/lib/cjs/PaletteManager.js +23 -23
  36. package/color-picker/lib/cjs/components/InputColor.js +23 -23
  37. package/color-picker/lib/es6/ColorPicker.js +23 -23
  38. package/color-picker/lib/es6/PaletteManager.js +23 -23
  39. package/color-picker/lib/es6/components/InputColor.js +23 -23
  40. package/components.json +70 -70
  41. package/counter/lib/cjs/Counter.js +10 -10
  42. package/counter/lib/es6/Counter.js +10 -10
  43. package/d3-chart/lib/cjs/Area.js +11 -11
  44. package/d3-chart/lib/cjs/Axis.js +14 -14
  45. package/d3-chart/lib/cjs/Bar.js +10 -10
  46. package/d3-chart/lib/cjs/Bubble.js +12 -12
  47. package/d3-chart/lib/cjs/Donut.js +9 -9
  48. package/d3-chart/lib/cjs/Dots.js +8 -8
  49. package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
  50. package/d3-chart/lib/cjs/Hover.js +3 -3
  51. package/d3-chart/lib/cjs/Line.js +9 -9
  52. package/d3-chart/lib/cjs/Plot.js +3 -3
  53. package/d3-chart/lib/cjs/Radar.js +19 -19
  54. package/d3-chart/lib/cjs/RadialTree.js +11 -11
  55. package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
  56. package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
  57. package/d3-chart/lib/cjs/Tooltip.js +9 -9
  58. package/d3-chart/lib/cjs/Venn.js +9 -9
  59. package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
  60. package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
  61. package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  62. package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  63. package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  64. package/d3-chart/lib/es6/Area.js +11 -11
  65. package/d3-chart/lib/es6/Axis.js +14 -14
  66. package/d3-chart/lib/es6/Bar.js +10 -10
  67. package/d3-chart/lib/es6/Bubble.js +12 -12
  68. package/d3-chart/lib/es6/Donut.js +9 -9
  69. package/d3-chart/lib/es6/Dots.js +8 -8
  70. package/d3-chart/lib/es6/HorizontalBar.js +10 -10
  71. package/d3-chart/lib/es6/Hover.js +3 -3
  72. package/d3-chart/lib/es6/Line.js +9 -9
  73. package/d3-chart/lib/es6/Plot.js +3 -3
  74. package/d3-chart/lib/es6/Radar.js +19 -19
  75. package/d3-chart/lib/es6/RadialTree.js +11 -11
  76. package/d3-chart/lib/es6/ReferenceLine.js +9 -9
  77. package/d3-chart/lib/es6/ScatterPlot.js +9 -9
  78. package/d3-chart/lib/es6/Tooltip.js +9 -9
  79. package/d3-chart/lib/es6/Venn.js +9 -9
  80. package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
  81. package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
  82. package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  83. package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  84. package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  85. package/data-table/lib/cjs/DataTable.js +37 -37
  86. package/data-table/lib/es6/DataTable.js +37 -37
  87. package/date-picker/lib/cjs/components/Calendar.js +21 -21
  88. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
  89. package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
  90. package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
  91. package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
  92. package/date-picker/lib/es6/components/Calendar.js +21 -21
  93. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
  94. package/date-picker/lib/es6/components/InputTrigger.js +29 -29
  95. package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
  96. package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
  97. package/divider/lib/cjs/Divider.js +9 -9
  98. package/divider/lib/es6/Divider.js +9 -9
  99. package/dot/lib/cjs/Dot.js +10 -10
  100. package/dot/lib/es6/Dot.js +10 -10
  101. package/drag-and-drop/lib/cjs/DragAndDrop.js +16 -16
  102. package/drag-and-drop/lib/es6/DragAndDrop.js +16 -16
  103. package/dropdown/lib/cjs/Dropdown.js +2 -2
  104. package/dropdown/lib/es6/Dropdown.js +2 -2
  105. package/dropdown-menu/lib/cjs/DropdownMenu.js +16 -16
  106. package/dropdown-menu/lib/cjs/styleScrollArea.js +6 -6
  107. package/dropdown-menu/lib/es6/DropdownMenu.js +16 -16
  108. package/dropdown-menu/lib/es6/styleScrollArea.js +6 -6
  109. package/ellipsis/lib/cjs/Ellipsis.js +10 -10
  110. package/ellipsis/lib/es6/Ellipsis.js +10 -10
  111. package/errors/lib/cjs/Error.js +9 -9
  112. package/errors/lib/es6/Error.js +9 -9
  113. package/feature-popover/lib/cjs/FeaturePopover.js +10 -10
  114. package/feature-popover/lib/es6/FeaturePopover.js +10 -10
  115. package/feedback-form/component/checkbox-button/CheckboxButton.d.ts +4 -0
  116. package/feedback-form/component/feedback-item/FeedbackItem.d.ts +7 -0
  117. package/feedback-form/component/feedback-rating/FeedbackRating.d.ts +156 -0
  118. package/feedback-form/component/feedback-rating/FeedbackRating.type.d.ts +55 -0
  119. package/feedback-form/component/slider-rating/SliderRating.d.ts +14 -0
  120. package/feedback-form/component/submit-button/SubmitButton.d.ts +3 -0
  121. package/feedback-form/index.d.ts +4 -0
  122. package/feedback-form/lib/cjs/FeedbackForm.js +28 -86
  123. package/feedback-form/lib/cjs/FeedbackForm.js.map +1 -1
  124. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +58 -0
  125. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js.map +1 -0
  126. package/feedback-form/lib/cjs/component/feedback-item/FeedbackItem.js +63 -0
  127. package/feedback-form/lib/cjs/component/feedback-item/FeedbackItem.js.map +1 -0
  128. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +360 -0
  129. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -0
  130. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.type.js +2 -0
  131. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.type.js.map +1 -0
  132. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +172 -0
  133. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js.map +1 -0
  134. package/feedback-form/lib/cjs/component/submit-button/SubmitButton.js +23 -0
  135. package/feedback-form/lib/cjs/component/submit-button/SubmitButton.js.map +1 -0
  136. package/feedback-form/lib/cjs/index.d.js +12 -0
  137. package/feedback-form/lib/cjs/index.d.js.map +1 -1
  138. package/feedback-form/lib/cjs/index.js +7 -0
  139. package/feedback-form/lib/cjs/index.js.map +1 -1
  140. package/feedback-form/lib/cjs/style/checkbox-button.shadow.css +21 -0
  141. package/feedback-form/lib/cjs/style/feedback-rating.shadow.css +9 -0
  142. package/feedback-form/lib/cjs/style/slider-rating.shadow.css +34 -0
  143. package/feedback-form/lib/cjs/translations/__intergalactic-dynamic-locales.js +39 -0
  144. package/feedback-form/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -0
  145. package/feedback-form/lib/cjs/translations/de.json +7 -0
  146. package/feedback-form/lib/cjs/translations/en.json +8 -0
  147. package/feedback-form/lib/cjs/translations/es.json +7 -0
  148. package/feedback-form/lib/cjs/translations/fr.json +7 -0
  149. package/feedback-form/lib/cjs/translations/it.json +7 -0
  150. package/feedback-form/lib/cjs/translations/ja.json +7 -0
  151. package/feedback-form/lib/cjs/translations/ko.json +7 -0
  152. package/feedback-form/lib/cjs/translations/nl.json +7 -0
  153. package/feedback-form/lib/cjs/translations/pl.json +7 -0
  154. package/feedback-form/lib/cjs/translations/pt.json +7 -0
  155. package/feedback-form/lib/cjs/translations/sv.json +7 -0
  156. package/feedback-form/lib/cjs/translations/tr.json +7 -0
  157. package/feedback-form/lib/cjs/translations/vi.json +7 -0
  158. package/feedback-form/lib/cjs/translations/zh.json +7 -0
  159. package/feedback-form/lib/es6/FeedbackForm.js +28 -88
  160. package/feedback-form/lib/es6/FeedbackForm.js.map +1 -1
  161. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +50 -0
  162. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js.map +1 -0
  163. package/feedback-form/lib/es6/component/feedback-item/FeedbackItem.js +56 -0
  164. package/feedback-form/lib/es6/component/feedback-item/FeedbackItem.js.map +1 -0
  165. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +354 -0
  166. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -0
  167. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.type.js +2 -0
  168. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.type.js.map +1 -0
  169. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +165 -0
  170. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js.map +1 -0
  171. package/feedback-form/lib/es6/component/submit-button/SubmitButton.js +17 -0
  172. package/feedback-form/lib/es6/component/submit-button/SubmitButton.js.map +1 -0
  173. package/feedback-form/lib/es6/index.d.js +5 -1
  174. package/feedback-form/lib/es6/index.d.js.map +1 -1
  175. package/feedback-form/lib/es6/index.js +2 -0
  176. package/feedback-form/lib/es6/index.js.map +1 -1
  177. package/feedback-form/lib/es6/style/checkbox-button.shadow.css +21 -0
  178. package/feedback-form/lib/es6/style/feedback-rating.shadow.css +9 -0
  179. package/feedback-form/lib/es6/style/slider-rating.shadow.css +34 -0
  180. package/feedback-form/lib/es6/translations/__intergalactic-dynamic-locales.js +31 -0
  181. package/feedback-form/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -0
  182. package/feedback-form/lib/es6/translations/de.json +7 -0
  183. package/feedback-form/lib/es6/translations/en.json +8 -0
  184. package/feedback-form/lib/es6/translations/es.json +7 -0
  185. package/feedback-form/lib/es6/translations/fr.json +7 -0
  186. package/feedback-form/lib/es6/translations/it.json +7 -0
  187. package/feedback-form/lib/es6/translations/ja.json +7 -0
  188. package/feedback-form/lib/es6/translations/ko.json +7 -0
  189. package/feedback-form/lib/es6/translations/nl.json +7 -0
  190. package/feedback-form/lib/es6/translations/pl.json +7 -0
  191. package/feedback-form/lib/es6/translations/pt.json +7 -0
  192. package/feedback-form/lib/es6/translations/sv.json +7 -0
  193. package/feedback-form/lib/es6/translations/tr.json +7 -0
  194. package/feedback-form/lib/es6/translations/vi.json +7 -0
  195. package/feedback-form/lib/es6/translations/zh.json +7 -0
  196. package/feedback-form/lib/types/component/checkbox-button/CheckboxButton.d.ts +4 -0
  197. package/feedback-form/lib/types/component/feedback-item/FeedbackItem.d.ts +7 -0
  198. package/feedback-form/lib/types/component/feedback-rating/FeedbackRating.d.ts +156 -0
  199. package/feedback-form/lib/types/component/feedback-rating/FeedbackRating.type.d.ts +55 -0
  200. package/feedback-form/lib/types/component/slider-rating/SliderRating.d.ts +14 -0
  201. package/feedback-form/lib/types/component/submit-button/SubmitButton.d.ts +3 -0
  202. package/feedback-form/lib/types/index.d.ts +4 -0
  203. package/feedback-form/lib/types/translations/__intergalactic-dynamic-locales.d.ts +101 -0
  204. package/feedback-form/translations/__intergalactic-dynamic-locales.d.ts +101 -0
  205. package/flex-box/lib/cjs/Box/useBox.js +3 -3
  206. package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
  207. package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
  208. package/flex-box/lib/es6/Box/useBox.js +3 -3
  209. package/flex-box/lib/es6/Flex/useFlex.js +3 -3
  210. package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
  211. package/format-text/lib/cjs/FormatText.js +5 -5
  212. package/format-text/lib/es6/FormatText.js +5 -5
  213. package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
  214. package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
  215. package/grid/lib/cjs/Grid.js +114 -114
  216. package/grid/lib/es6/Grid.js +114 -114
  217. package/icon/color/Confluence/l/index.js +4 -4
  218. package/icon/color/Confluence/l/index.mjs +4 -4
  219. package/icon/color/Confluence/m/index.js +4 -4
  220. package/icon/color/Confluence/m/index.mjs +4 -4
  221. package/icon/color/MicrosoftOffice/l/index.js +10 -10
  222. package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
  223. package/icon/color/MicrosoftOffice/m/index.js +10 -10
  224. package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
  225. package/icon/lib/cjs/Icon.js +5 -5
  226. package/icon/lib/es6/Icon.js +5 -5
  227. package/icon/pay/Discover/l/index.js +1 -1
  228. package/icon/pay/Discover/l/index.mjs +1 -1
  229. package/icon/pay/Discover/m/index.js +1 -1
  230. package/icon/pay/Discover/m/index.mjs +1 -1
  231. package/icon/pay/JCB/l/index.js +10 -10
  232. package/icon/pay/JCB/l/index.mjs +10 -10
  233. package/icon/pay/JCB/m/index.js +10 -10
  234. package/icon/pay/JCB/m/index.mjs +10 -10
  235. package/icon/pay/Visa/l/index.js +2 -2
  236. package/icon/pay/Visa/l/index.mjs +2 -2
  237. package/icon/pay/Visa/m/index.js +2 -2
  238. package/icon/pay/Visa/m/index.mjs +2 -2
  239. package/illustration/lib/cjs/index.js +1 -1
  240. package/illustration/lib/es6/index.js +1 -1
  241. package/inline-edit/lib/cjs/InlineEdit.js +4 -4
  242. package/inline-edit/lib/es6/InlineEdit.js +4 -4
  243. package/inline-input/lib/cjs/InlineInput.js +18 -18
  244. package/inline-input/lib/es6/InlineInput.js +18 -18
  245. package/input/lib/cjs/Input.js +17 -17
  246. package/input/lib/es6/Input.js +17 -17
  247. package/input-mask/lib/cjs/InputMask.js +6 -6
  248. package/input-mask/lib/es6/InputMask.js +6 -6
  249. package/input-number/lib/cjs/InputNumber.js +10 -10
  250. package/input-number/lib/cjs/InputNumber.js.map +1 -1
  251. package/input-number/lib/es6/InputNumber.js +10 -10
  252. package/input-number/lib/es6/InputNumber.js.map +1 -1
  253. package/input-tags/lib/cjs/InputTags.js +12 -12
  254. package/input-tags/lib/es6/InputTags.js +12 -12
  255. package/link/lib/cjs/Link.js +12 -12
  256. package/link/lib/es6/Link.js +12 -12
  257. package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
  258. package/mini-chart/lib/cjs/component/score/Line.js +17 -17
  259. package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
  260. package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
  261. package/mini-chart/lib/es6/component/score/Donut.js +9 -9
  262. package/mini-chart/lib/es6/component/score/Line.js +17 -17
  263. package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
  264. package/mini-chart/lib/es6/component/trend/Line.js +7 -7
  265. package/modal/lib/cjs/Modal.js +9 -9
  266. package/modal/lib/es6/Modal.js +9 -9
  267. package/notice/lib/cjs/Notice.js +13 -13
  268. package/notice/lib/es6/Notice.js +13 -13
  269. package/notice-bubble/lib/cjs/NoticeBubble.js +12 -12
  270. package/notice-bubble/lib/es6/NoticeBubble.js +12 -12
  271. package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
  272. package/notice-global/lib/es6/NoticeGlobal.js +11 -11
  273. package/package.json +2 -2
  274. package/pagination/lib/cjs/Pagination.js +10 -10
  275. package/pagination/lib/es6/Pagination.js +10 -10
  276. package/pills/lib/cjs/Pills.js +13 -13
  277. package/pills/lib/es6/Pills.js +13 -13
  278. package/popper/lib/cjs/Popper.js +6 -6
  279. package/popper/lib/es6/Popper.js +6 -6
  280. package/product-head/lib/cjs/Info.js +4 -4
  281. package/product-head/lib/cjs/ProductHead.js +5 -5
  282. package/product-head/lib/cjs/Title.js +4 -4
  283. package/product-head/lib/es6/Info.js +4 -4
  284. package/product-head/lib/es6/ProductHead.js +5 -5
  285. package/product-head/lib/es6/Title.js +4 -4
  286. package/progress-bar/lib/cjs/ProgressBar.js +15 -15
  287. package/progress-bar/lib/es6/ProgressBar.js +15 -15
  288. package/radio/lib/cjs/Radio.js +16 -16
  289. package/radio/lib/es6/Radio.js +16 -16
  290. package/scroll-area/lib/cjs/ScrollArea.js +21 -21
  291. package/scroll-area/lib/cjs/ScrollBar.js +6 -6
  292. package/scroll-area/lib/es6/ScrollArea.js +21 -21
  293. package/scroll-area/lib/es6/ScrollBar.js +6 -6
  294. package/select/lib/cjs/InputSearch.js +6 -6
  295. package/select/lib/cjs/Select.js +8 -8
  296. package/select/lib/es6/InputSearch.js +6 -6
  297. package/select/lib/es6/Select.js +8 -8
  298. package/side-panel/lib/cjs/SidePanel.js +15 -15
  299. package/side-panel/lib/es6/SidePanel.js +15 -15
  300. package/skeleton/lib/cjs/Charts/Area.js +9 -9
  301. package/skeleton/lib/cjs/Charts/Bar.js +9 -9
  302. package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
  303. package/skeleton/lib/cjs/Charts/Donut.js +9 -9
  304. package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
  305. package/skeleton/lib/cjs/Charts/Line.js +9 -9
  306. package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
  307. package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
  308. package/skeleton/lib/cjs/Charts/Venn.js +9 -9
  309. package/skeleton/lib/cjs/Skeleton.js +8 -8
  310. package/skeleton/lib/es6/Charts/Area.js +9 -9
  311. package/skeleton/lib/es6/Charts/Bar.js +9 -9
  312. package/skeleton/lib/es6/Charts/Bubble.js +9 -9
  313. package/skeleton/lib/es6/Charts/Donut.js +9 -9
  314. package/skeleton/lib/es6/Charts/Histogram.js +9 -9
  315. package/skeleton/lib/es6/Charts/Line.js +9 -9
  316. package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
  317. package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
  318. package/skeleton/lib/es6/Charts/Venn.js +9 -9
  319. package/skeleton/lib/es6/Skeleton.js +8 -8
  320. package/slider/lib/cjs/Slider.js +8 -8
  321. package/slider/lib/es6/Slider.js +8 -8
  322. package/spin/lib/cjs/Spin.js +13 -13
  323. package/spin/lib/es6/Spin.js +13 -13
  324. package/spin-container/lib/cjs/SpinContainer.js +8 -8
  325. package/spin-container/lib/es6/SpinContainer.js +8 -8
  326. package/sticky/lib/cjs/Sticky.js +2 -2
  327. package/sticky/lib/es6/Sticky.js +2 -2
  328. package/switch/lib/cjs/Switch.js +21 -21
  329. package/switch/lib/es6/Switch.js +21 -21
  330. package/tab-line/lib/cjs/TabLine.js +13 -13
  331. package/tab-line/lib/es6/TabLine.js +13 -13
  332. package/tab-panel/lib/cjs/TabPanel.js +8 -8
  333. package/tab-panel/lib/es6/TabPanel.js +8 -8
  334. package/tag/lib/cjs/Tag.js +20 -20
  335. package/tag/lib/es6/Tag.js +20 -20
  336. package/textarea/lib/cjs/Textarea.js +8 -8
  337. package/textarea/lib/es6/Textarea.js +8 -8
  338. package/time-picker/lib/cjs/TimePicker.js +12 -12
  339. package/time-picker/lib/es6/TimePicker.js +12 -12
  340. package/tooltip/lib/cjs/Tooltip.js +9 -9
  341. package/tooltip/lib/es6/Tooltip.js +9 -9
  342. package/typography/lib/cjs/Blockquote.js +4 -4
  343. package/typography/lib/cjs/Hint.js +7 -7
  344. package/typography/lib/cjs/List.js +5 -5
  345. package/typography/lib/cjs/Text.js +34 -34
  346. package/typography/lib/es6/Blockquote.js +4 -4
  347. package/typography/lib/es6/Hint.js +7 -7
  348. package/typography/lib/es6/List.js +5 -5
  349. package/typography/lib/es6/Text.js +34 -34
  350. package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
  351. package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
  352. package/utils/lib/injectStyle.js +1 -1
  353. package/utils/lib/injectStyle.mjs +1 -1
  354. package/utils/lib/themes/auto.css +4 -0
  355. package/utils/lib/themes/default.css +4 -0
  356. package/utils/lib/themes/default.json +2 -0
  357. package/utils/lib/themes/light.css +4 -0
  358. package/utils/lib/themes/light.json +2 -0
  359. package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
  360. package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
  361. package/wizard/lib/cjs/Wizard.js +11 -11
  362. package/wizard/lib/es6/Wizard.js +11 -11
@@ -0,0 +1,50 @@
1
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
+ import _createClass from "@babel/runtime/helpers/createClass";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
+ import _createSuper from "@babel/runtime/helpers/createSuper";
7
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
+ import { sstyled as _sstyled } from 'intergalactic/utils/lib/core/index';
9
+ import { assignProps as _assignProps } from 'intergalactic/core';
10
+ var _excluded = ["styles", "id", "label"];
11
+ import React from 'react';
12
+ import createComponent, { Component, Root, sstyled } from 'intergalactic/core';
13
+ import { Box } from 'intergalactic/flex-box';
14
+ /*__reshadow-styles__:"../../style/checkbox-button.shadow.css"*/
15
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCheckboxButton_oanqb_gg_{margin-top:var(--intergalactic-spacing-2x, 8px);border:1px solid var(--intergalactic-border-primary, #c4c7cf);border-radius:var(--intergalactic-rounded-medium, 6px)}.___SCheckboxButton_oanqb_gg_ label{width:100%;padding:var(--intergalactic-spacing-3x, 12px);box-sizing:border-box}.___SCheckboxButton_oanqb_gg_.__checked_oanqb_gg_{cursor:pointer;border-color:var(--intergalactic-border-info-active, #006dca);background-color:rgba(0,143,248,.1)}@media (hover:hover){.___SCheckboxButton_oanqb_gg_:hover{cursor:pointer;border-color:var(--intergalactic-border-info-active, #006dca);background-color:rgba(0,143,248,.1)}.___SCheckboxButton_oanqb_gg_.__checked_oanqb_gg_:hover{background-color:rgba(0,143,248,.2)}}" /*__inner_css_end__*/, "oanqb_gg_") /*__reshadow_css_end__*/, {
16
+ "__SCheckboxButton": "___SCheckboxButton_oanqb_gg_",
17
+ "_checked": "__checked_oanqb_gg_"
18
+ });
19
+ import Checkbox from 'intergalactic/checkbox';
20
+ var CheckboxButtonRoot = /*#__PURE__*/function (_Component) {
21
+ _inherits(CheckboxButtonRoot, _Component);
22
+ var _super = _createSuper(CheckboxButtonRoot);
23
+ function CheckboxButtonRoot() {
24
+ _classCallCheck(this, CheckboxButtonRoot);
25
+ return _super.apply(this, arguments);
26
+ }
27
+ _createClass(CheckboxButtonRoot, [{
28
+ key: "render",
29
+ value: function render() {
30
+ var _ref = this.asProps,
31
+ _ref2;
32
+ var _this$asProps = this.asProps,
33
+ styles = _this$asProps.styles,
34
+ id = _this$asProps.id,
35
+ label = _this$asProps.label,
36
+ other = _objectWithoutProperties(_this$asProps, _excluded);
37
+ var SCheckboxButton = Box;
38
+ return _ref2 = sstyled(styles), /*#__PURE__*/React.createElement(SCheckboxButton, _ref2.cn("SCheckboxButton", _objectSpread({}, _assignProps({
39
+ "__excludeProps": ['onChange', 'id']
40
+ }, _ref))), /*#__PURE__*/React.createElement(Checkbox, _ref2.cn("Checkbox", _objectSpread({}, other)), /*#__PURE__*/React.createElement(Checkbox.Value, {
41
+ id: id
42
+ }), /*#__PURE__*/React.createElement(Checkbox.Text, null, label)));
43
+ }
44
+ }]);
45
+ return CheckboxButtonRoot;
46
+ }(Component);
47
+ _defineProperty(CheckboxButtonRoot, "style", style);
48
+ var CheckboxButton = createComponent(CheckboxButtonRoot);
49
+ export default CheckboxButton;
50
+ //# sourceMappingURL=CheckboxButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxButton.js","names":["React","createComponent","Component","Root","sstyled","Box","style","_sstyled","insert","Checkbox","CheckboxButtonRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","_ref2","_this$asProps","styles","id","label","other","_objectWithoutProperties","_excluded","SCheckboxButton","createElement","cn","_objectSpread","_assignProps","Value","Text","_defineProperty","CheckboxButton"],"sources":["../../../../src/component/checkbox-button/CheckboxButton.tsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\n\nimport style from '../../style/checkbox-button.shadow.css';\nimport Checkbox, { CheckboxProps } from '@semcore/checkbox';\n\nclass CheckboxButtonRoot extends Component<CheckboxProps> {\n static style = style;\n\n render() {\n const { styles, id, label, ...other } = this.asProps;\n const SCheckboxButton = Root;\n return sstyled(styles)(\n <SCheckboxButton render={Box} __excludeProps={['onChange', 'id']}>\n <Checkbox {...other}>\n <Checkbox.Value id={id} />\n <Checkbox.Text>{label}</Checkbox.Text>\n </Checkbox>\n </SCheckboxButton>,\n );\n }\n}\n\nconst CheckboxButton = createComponent(CheckboxButtonRoot);\n\nexport default CheckboxButton;\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,GAAG,QAAQ,mBAAmB;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;AAAA;AAGxC,OAAOC,QAAQ,MAAyB,mBAAmB;AAAC,IAEtDC,kBAAkB,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,kBAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,kBAAA;EAAA,SAAAA,mBAAA;IAAAK,eAAA,OAAAL,kBAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,kBAAA;IAAAS,GAAA;IAAAC,KAAA,EAGtB,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;QAAAC,KAAA;MACP,IAAAC,aAAA,GAAwC,IAAI,CAACF,OAAO;QAA5CG,MAAM,GAAAD,aAAA,CAANC,MAAM;QAAEC,EAAE,GAAAF,aAAA,CAAFE,EAAE;QAAEC,KAAK,GAAAH,aAAA,CAALG,KAAK;QAAKC,KAAK,GAAAC,wBAAA,CAAAL,aAAA,EAAAM,SAAA;MACnC,IAAMC,eAAe,GAEM3B,GAAG;MAD9B,OAAAmB,KAAA,GAAOpB,OAAO,CAACsB,MAAM,CAAC,eACpB1B,KAAA,CAAAiC,aAAA,CAACD,eAAe,EAAAR,KAAA,CAAAU,EAAA,oBAAAC,aAAA,KAAAC,YAAA;QAAA,kBAA8B,CAAC,UAAU,EAAE,IAAI;MAAC,GAAAd,IAAA,kBAC9DtB,KAAA,CAAAiC,aAAA,CAACxB,QAAQ,EAAAe,KAAA,CAAAU,EAAA,aAAAC,aAAA,KAAKN,KAAK,iBACjB7B,KAAA,CAAAiC,aAAA,CAACxB,QAAQ,CAAC4B,KAAK;QAACV,EAAE,EAAEA;MAAG,EAAG,eAC1B3B,KAAA,CAAAiC,aAAA,CAACxB,QAAQ,CAAC6B,IAAI,QAAEV,KAAK,CAAiB,CAC7B,CACK;IAEtB;EAAC;EAAA,OAAAlB,kBAAA;AAAA,EAd8BR,SAAS;AAAAqC,eAAA,CAApC7B,kBAAkB,WACPJ,KAAK;AAgBtB,IAAMkC,cAAc,GAAGvC,eAAe,CAACS,kBAAkB,CAAC;AAE1D,eAAe8B,cAAc"}
@@ -0,0 +1,56 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["Children", "tag", "uid", "tooltipProps"],
5
+ _excluded2 = ["input", "meta"];
6
+ import React from 'react';
7
+ import { Field } from 'react-final-form';
8
+ import Tooltip from 'intergalactic/tooltip';
9
+ import pick from 'intergalactic/utils/lib/pick';
10
+ import uniqueIDEnhancement from 'intergalactic/utils/lib/uniqueID';
11
+ var deafultTooltipPropsList = ['title', 'theme', 'strategy', 'modifiers', 'placement', 'interaction', 'timeout', 'visible', 'defaultVisible', 'onVisibleChange', 'offset', 'preventOverflow', 'arrow', 'flip', 'computeStyles', 'eventListeners', 'onFirstUpdate'];
12
+ export function FeedbackItem(_ref) {
13
+ var Children = _ref.Children,
14
+ tag = _ref.tag,
15
+ uid = _ref.uid,
16
+ _ref$tooltipProps = _ref.tooltipProps,
17
+ tooltipPropsList = _ref$tooltipProps === void 0 ? deafultTooltipPropsList : _ref$tooltipProps,
18
+ props = _objectWithoutProperties(_ref, _excluded);
19
+ var tooltipProps = pick(props, tooltipPropsList);
20
+ var lastErrorRef = React.useRef(undefined);
21
+ return /*#__PURE__*/React.createElement(Field, props, function (_ref2) {
22
+ var _meta$error;
23
+ var input = _ref2.input,
24
+ meta = _ref2.meta,
25
+ other = _objectWithoutProperties(_ref2, _excluded2);
26
+ var showError = other.validateOnBlur === false ? meta.submitFailed : true;
27
+ var invalid = meta.invalid && meta.touched;
28
+ var errorState = showError && invalid;
29
+ var inputProps = _objectSpread(_objectSpread({}, input), {}, {
30
+ state: errorState ? 'invalid' : 'normal',
31
+ 'aria-invalid': errorState ? true : false,
32
+ 'aria-errormessage': uid
33
+ });
34
+ if (meta !== null && meta !== void 0 && meta.error) lastErrorRef.current = meta.error;
35
+ return /*#__PURE__*/React.createElement(Tooltip, _extends({
36
+ visible: errorState && meta.active,
37
+ theme: "warning",
38
+ placement: "left",
39
+ flip: {
40
+ fallbackPlacements: ['right', 'bottom']
41
+ }
42
+ }, tooltipProps), /*#__PURE__*/React.createElement(Tooltip.Trigger, _extends({
43
+ inline: false,
44
+ role: undefined,
45
+ tag: tag
46
+ }, tag ? inputProps : {}), typeof Children.origin === 'function' && Children.origin(_objectSpread({
47
+ input: inputProps,
48
+ meta: meta
49
+ }, other))), /*#__PURE__*/React.createElement(Tooltip.Popper, {
50
+ id: uid,
51
+ ignorePortalsStacking: true
52
+ }, (_meta$error = meta.error) !== null && _meta$error !== void 0 ? _meta$error : lastErrorRef.current));
53
+ });
54
+ }
55
+ FeedbackItem.enhance = [uniqueIDEnhancement()];
56
+ //# sourceMappingURL=FeedbackItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackItem.js","names":["React","Field","Tooltip","pick","uniqueIDEnhancement","deafultTooltipPropsList","FeedbackItem","_ref","Children","tag","uid","_ref$tooltipProps","tooltipProps","tooltipPropsList","props","_objectWithoutProperties","_excluded","lastErrorRef","useRef","undefined","createElement","_ref2","_meta$error","input","meta","other","_excluded2","showError","validateOnBlur","submitFailed","invalid","touched","errorState","inputProps","_objectSpread","state","error","current","_extends","visible","active","theme","placement","flip","fallbackPlacements","Trigger","inline","role","origin","Popper","id","ignorePortalsStacking","enhance"],"sources":["../../../../src/component/feedback-item/FeedbackItem.tsx"],"sourcesContent":["import React from 'react';\nimport { Field } from 'react-final-form';\nimport Tooltip from '@semcore/tooltip';\nimport pick from '@semcore/utils/lib/pick';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\n\nconst deafultTooltipPropsList = [\n 'title',\n 'theme',\n 'strategy',\n 'modifiers',\n 'placement',\n 'interaction',\n 'timeout',\n 'visible',\n 'defaultVisible',\n 'onVisibleChange',\n 'offset',\n 'preventOverflow',\n 'arrow',\n 'flip',\n 'computeStyles',\n 'eventListeners',\n 'onFirstUpdate',\n];\n\nexport function FeedbackItem({\n Children,\n tag,\n uid,\n tooltipProps: tooltipPropsList = deafultTooltipPropsList,\n ...props\n}: any) {\n const tooltipProps = pick(props, tooltipPropsList);\n const lastErrorRef = React.useRef(undefined);\n\n return (\n <Field {...props}>\n {({ input, meta, ...other }) => {\n const showError = other.validateOnBlur === false ? meta.submitFailed : true;\n const invalid = meta.invalid && meta.touched;\n const errorState = showError && invalid;\n const inputProps = {\n ...input,\n state: errorState ? 'invalid' : 'normal',\n 'aria-invalid': errorState ? true : false,\n 'aria-errormessage': uid,\n };\n if (meta?.error) lastErrorRef.current = meta.error;\n\n return (\n <Tooltip\n visible={errorState && meta.active}\n theme='warning'\n placement='left'\n flip={{\n fallbackPlacements: ['right', 'bottom'],\n }}\n {...tooltipProps}\n >\n <Tooltip.Trigger inline={false} role={undefined} tag={tag} {...(tag ? inputProps : {})}>\n {typeof Children.origin === 'function' &&\n Children.origin({\n input: inputProps,\n meta,\n ...other,\n })}\n </Tooltip.Trigger>\n <Tooltip.Popper id={uid} ignorePortalsStacking>\n {meta.error ?? lastErrorRef.current}\n </Tooltip.Popper>\n </Tooltip>\n );\n }}\n </Field>\n );\n}\nFeedbackItem.enhance = [uniqueIDEnhancement()];\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,kBAAkB;AACxC,OAAOC,OAAO,MAAM,kBAAkB;AACtC,OAAOC,IAAI,MAAM,yBAAyB;AAC1C,OAAOC,mBAAmB,MAAM,6BAA6B;AAE7D,IAAMC,uBAAuB,GAAG,CAC9B,OAAO,EACP,OAAO,EACP,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,eAAe,CAChB;AAED,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAMpB;EAAA,IALNC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IACHC,GAAG,GAAAH,IAAA,CAAHG,GAAG;IAAAC,iBAAA,GAAAJ,IAAA,CACHK,YAAY;IAAEC,gBAAgB,GAAAF,iBAAA,cAAGN,uBAAuB,GAAAM,iBAAA;IACrDG,KAAK,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA;EAER,IAAMJ,YAAY,GAAGT,IAAI,CAACW,KAAK,EAAED,gBAAgB,CAAC;EAClD,IAAMI,YAAY,GAAGjB,KAAK,CAACkB,MAAM,CAACC,SAAS,CAAC;EAE5C,oBACEnB,KAAA,CAAAoB,aAAA,CAACnB,KAAK,EAAKa,KAAK,EACb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A;MACbX,KAAK,EAAEU,UAAU;MACjBT,IAAI,EAAJA;IAAI,GACDC,KAAK,EACR,CACY,eAClBzB,KAAA,CAAAoB,aAAA,CAAClB,OAAO,CAAC+C,MAAM;MAACC,EAAE,EAAExC,GAAI;MAACyC,qBAAqB;IAAA,IAAA7B,WAAA,GAC3CE,IAAI,CAACY,KAAK,cAAAd,WAAA,cAAAA,WAAA,GAAIL,YAAY,CAACoB,OAAO,CACpB,CACT;EAEd,CAAC,CACK;AAEZ;AACA/B,YAAY,CAAC8C,OAAO,GAAG,CAAChD,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,354 @@
1
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
+ import _createClass from "@babel/runtime/helpers/createClass";
6
+ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
7
+ import _inherits from "@babel/runtime/helpers/inherits";
8
+ import _createSuper from "@babel/runtime/helpers/createSuper";
9
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
+ import { sstyled as _sstyled } from 'intergalactic/utils/lib/core/index';
11
+ import { assignProps as _assignProps3 } from 'intergalactic/core';
12
+ import { assignProps as _assignProps2 } from 'intergalactic/core';
13
+ import { assignProps as _assignProps } from 'intergalactic/core';
14
+ var _excluded = ["header", "submitText", "formConfig", "notificationText", "learnMoreLink", "Children", "styles", "forwardRef", "status", "theme", "background", "rating", "visible", "onVisibleChange", "notificationVisible", "onNotificationClose", "getI18nText", "errorFeedbackEmail"];
15
+ import React from 'react';
16
+ import createComponent, { Component, sstyled, Root } from 'intergalactic/core';
17
+ import { Form } from 'react-final-form';
18
+ import createFocusDecorator from 'final-form-focus';
19
+ import SpinContainer from 'intergalactic/spin-container';
20
+ import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
21
+ import uniqueIDEnhancement from 'intergalactic/utils/lib/uniqueID';
22
+ import Notice from 'intergalactic/notice';
23
+ import CloseAltM from 'intergalactic/icon/Close/m';
24
+ import CheckM from 'intergalactic/icon/Check/m';
25
+ import WarnM from 'intergalactic/icon/Warning/m';
26
+ import { Text } from 'intergalactic/typography';
27
+ import FeedbackIllustration from 'intergalactic/illustration/Feedback';
28
+ import Link from 'intergalactic/link';
29
+ import SliderRating from '../slider-rating/SliderRating';
30
+ import Modal from 'intergalactic/modal';
31
+ import Textarea from 'intergalactic/textarea';
32
+ import { Box, Flex } from 'intergalactic/flex-box';
33
+ import { FeedbackItem } from '../feedback-item/FeedbackItem';
34
+ import { SubmitButton } from '../submit-button/SubmitButton';
35
+ import CheckboxButton from '../checkbox-button/CheckboxButton';
36
+ import Input from 'intergalactic/input';
37
+ import { localizedMessages } from '../../translations/__intergalactic-dynamic-locales';
38
+ import { NoticeBubbleContainer, NoticeBubbleManager } from 'intergalactic/notice-bubble';
39
+ /*__reshadow-styles__:"../../style/feedback-rating.shadow.css"*/
40
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SFeedbackRating_1pju1_gg_ ul{margin:0;padding:0;list-style:none}.___SFeedbackRating_1pju1_gg_ li{list-style:none}" /*__inner_css_end__*/, "1pju1_gg_") /*__reshadow_css_end__*/, {
41
+ "__SFeedbackRating": "___SFeedbackRating_1pju1_gg_"
42
+ });
43
+ var FeedbackRatingRoot = /*#__PURE__*/function (_Component) {
44
+ _inherits(FeedbackRatingRoot, _Component);
45
+ var _super = _createSuper(FeedbackRatingRoot);
46
+ function FeedbackRatingRoot() {
47
+ var _this;
48
+ _classCallCheck(this, FeedbackRatingRoot);
49
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
50
+ args[_key] = arguments[_key];
51
+ }
52
+ _this = _super.call.apply(_super, [this].concat(args));
53
+ _defineProperty(_assertThisInitialized(_this), "state", {
54
+ error: false
55
+ });
56
+ _defineProperty(_assertThisInitialized(_this), "manager", new NoticeBubbleManager());
57
+ _defineProperty(_assertThisInitialized(_this), "focusDecorator", createFocusDecorator());
58
+ _defineProperty(_assertThisInitialized(_this), "handleChangeRating", function (rating) {
59
+ _this.asProps.onVisibleChange(true, rating);
60
+ });
61
+ _defineProperty(_assertThisInitialized(_this), "handelCloseModal", function () {
62
+ _this.asProps.onVisibleChange(false, _this.asProps.rating);
63
+ });
64
+ _defineProperty(_assertThisInitialized(_this), "handleChange", function (fn) {
65
+ return function (value, e) {
66
+ fn(e);
67
+ };
68
+ });
69
+ _defineProperty(_assertThisInitialized(_this), "renderCheckbox", function (config) {
70
+ var initialValue = _this.props.initialValues[config.key];
71
+ return /*#__PURE__*/React.createElement(FeedbackRating.Item, {
72
+ name: config.key,
73
+ initialValue: initialValue,
74
+ type: 'checkbox',
75
+ key: config.key,
76
+ tag: 'li'
77
+ }, function (_ref7) {
78
+ var input = _ref7.input;
79
+ return /*#__PURE__*/React.createElement(FeedbackRating.Checkbox, _extends({}, input, {
80
+ id: config.key,
81
+ name: config.key,
82
+ label: config.label,
83
+ onChange: _this.handleChange(input.onChange)
84
+ }));
85
+ });
86
+ });
87
+ _defineProperty(_assertThisInitialized(_this), "renderTextField", function (config) {
88
+ var initialValue = _this.props.initialValues[config.key];
89
+ var label = typeof config.label === 'string' ? /*#__PURE__*/React.createElement(Text, {
90
+ mb: 2,
91
+ size: 200
92
+ }, config.label) : config.label;
93
+ return /*#__PURE__*/React.createElement(Flex, {
94
+ tag: "label",
95
+ mt: 4,
96
+ direction: "column",
97
+ htmlFor: config.key,
98
+ key: config.key
99
+ }, label, /*#__PURE__*/React.createElement(FeedbackRating.Item, {
100
+ name: config.key,
101
+ validate: config.validate,
102
+ initialValue: initialValue,
103
+ placement: "left-start",
104
+ flip: {
105
+ fallbackPlacements: ['right-start', 'bottom']
106
+ }
107
+ }, function (_ref8) {
108
+ var input = _ref8.input;
109
+ if (config.type === 'textarea') {
110
+ return /*#__PURE__*/React.createElement(Textarea, _extends({}, input, {
111
+ autoFocus: true,
112
+ h: 80,
113
+ onChange: _this.handleChange(input.onChange),
114
+ id: config.key
115
+ }));
116
+ }
117
+ if (config.type === 'input') {
118
+ return /*#__PURE__*/React.createElement(Input, {
119
+ state: input.state
120
+ }, /*#__PURE__*/React.createElement(Input.Value, _extends({}, input, {
121
+ onChange: _this.handleChange(input.onChange),
122
+ id: config.key
123
+ })));
124
+ }
125
+ return null;
126
+ }), config.description && /*#__PURE__*/React.createElement(Box, {
127
+ mt: 2
128
+ }, typeof config.description === 'string' ? /*#__PURE__*/React.createElement(Text, {
129
+ lineHeight: "18px",
130
+ size: 200,
131
+ color: "#6c6e79"
132
+ }, config.description) : config.description));
133
+ });
134
+ return _this;
135
+ }
136
+ _createClass(FeedbackRatingRoot, [{
137
+ key: "headerId",
138
+ get: function get() {
139
+ var uid = this.asProps.uid;
140
+ return "".concat(uid, "-feedback-rating-header");
141
+ }
142
+ }, {
143
+ key: "getHeaderProps",
144
+ value: function getHeaderProps() {
145
+ return {
146
+ id: this.headerId
147
+ };
148
+ }
149
+ }, {
150
+ key: "getItemProps",
151
+ value: function getItemProps() {
152
+ var validateOnBlur = this.asProps.validateOnBlur;
153
+ return {
154
+ validateOnBlur: validateOnBlur
155
+ };
156
+ }
157
+ }, {
158
+ key: "componentDidUpdate",
159
+ value: function componentDidUpdate(prevProps) {
160
+ var _this$asProps = this.asProps,
161
+ status = _this$asProps.status,
162
+ getI18nText = _this$asProps.getI18nText;
163
+ if (prevProps.status !== status) {
164
+ this.setState({
165
+ error: false
166
+ });
167
+ if (status === 'success') {
168
+ this.manager.add({
169
+ icon: /*#__PURE__*/React.createElement(CheckM, {
170
+ color: "green-400"
171
+ }),
172
+ children: getI18nText('successMessage'),
173
+ initialAnimation: true,
174
+ duration: 5000
175
+ });
176
+ } else if (status === 'error') {
177
+ this.setState({
178
+ error: true
179
+ });
180
+ }
181
+ }
182
+ }
183
+ }, {
184
+ key: "render",
185
+ value: function render() {
186
+ var _ref = this.asProps,
187
+ _ref2 = this.asProps,
188
+ _ref4,
189
+ _this2 = this;
190
+ var _this$asProps2 = this.asProps,
191
+ header = _this$asProps2.header,
192
+ submitText = _this$asProps2.submitText,
193
+ formConfig = _this$asProps2.formConfig,
194
+ notificationText = _this$asProps2.notificationText,
195
+ learnMoreLink = _this$asProps2.learnMoreLink,
196
+ Children = _this$asProps2.Children,
197
+ styles = _this$asProps2.styles,
198
+ forwardRef = _this$asProps2.forwardRef,
199
+ status = _this$asProps2.status,
200
+ theme = _this$asProps2.theme,
201
+ background = _this$asProps2.background,
202
+ rating = _this$asProps2.rating,
203
+ visible = _this$asProps2.visible,
204
+ onVisibleChange = _this$asProps2.onVisibleChange,
205
+ notificationVisible = _this$asProps2.notificationVisible,
206
+ onNotificationClose = _this$asProps2.onNotificationClose,
207
+ getI18nText = _this$asProps2.getI18nText,
208
+ errorFeedbackEmail = _this$asProps2.errorFeedbackEmail,
209
+ other = _objectWithoutProperties(_this$asProps2, _excluded);
210
+ var SFeedbackRating = Modal;
211
+ var checkboxFields = formConfig.filter(function (item) {
212
+ return item.type === 'checkbox';
213
+ });
214
+ var textFields = formConfig.filter(function (item) {
215
+ return item.type === 'textarea' || item.type === 'input';
216
+ });
217
+ return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(Box, _assignProps2({}, _ref2), /*#__PURE__*/React.createElement(Notice, _ref4.cn("Notice", {
218
+ "visible": notificationVisible,
219
+ "aria-label": 'Leave feedback'
220
+ }), /*#__PURE__*/React.createElement(Notice.Label, {
221
+ mt: 1,
222
+ mr: 2,
223
+ "aria-hidden": true
224
+ }, /*#__PURE__*/React.createElement(FeedbackIllustration, _ref4.cn("FeedbackIllustration", {}))), /*#__PURE__*/React.createElement(Notice.Content, {
225
+ style: {
226
+ display: 'flex',
227
+ alignItems: 'center'
228
+ }
229
+ }, /*#__PURE__*/React.createElement(Text, _ref4.cn("Text", {
230
+ "mr": 3
231
+ }), notificationText), /*#__PURE__*/React.createElement(Notice.Actions, {
232
+ mt: 0
233
+ }, /*#__PURE__*/React.createElement(SliderRating, _ref4.cn("SliderRating", {
234
+ "value": rating,
235
+ "onChange": this.handleChangeRating,
236
+ "aria-label": notificationText
237
+ }))), learnMoreLink && /*#__PURE__*/React.createElement(Link, _ref4.cn("Link", {
238
+ "ml": 3,
239
+ "href": learnMoreLink
240
+ }), getI18nText('learnMore'))), /*#__PURE__*/React.createElement(Notice.CloseIcon, {
241
+ interactive: true,
242
+ onClick: onNotificationClose
243
+ }, /*#__PURE__*/React.createElement(CloseAltM, _ref4.cn("CloseAltM", {})))), /*#__PURE__*/React.createElement(SFeedbackRating, _ref4.cn("SFeedbackRating", _objectSpread({}, _assignProps({
244
+ "visible": visible,
245
+ "onClose": this.handelCloseModal,
246
+ "p": 0
247
+ }, _ref))), /*#__PURE__*/React.createElement(Form, _ref4.cn("Form", _objectSpread({
248
+ "decorators": [this.focusDecorator]
249
+ }, other)), function (api) {
250
+ var _ref5;
251
+ return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SpinContainer, _ref5.cn("SpinContainer", {
252
+ "background": background,
253
+ "theme": theme,
254
+ "size": 'xl',
255
+ "loading": status !== 'loading' ? api.submitting : status === 'loading',
256
+ "p": 10
257
+ }), /*#__PURE__*/React.createElement(Flex, _ref5.cn("Flex", {
258
+ "justifyContent": 'center'
259
+ }), /*#__PURE__*/React.createElement(SliderRating, _ref5.cn("SliderRating", {
260
+ "value": rating,
261
+ "readonly": true
262
+ }))), header, /*#__PURE__*/React.createElement(Box, _ref5.cn("Box", _objectSpread(_objectSpread({
263
+ "tag": 'form',
264
+ "noValidate": true,
265
+ "method": 'POST',
266
+ "ref": forwardRef
267
+ }, other), {}, {
268
+ "onSubmit": api.handleSubmit,
269
+ "title": getI18nText('formTitle'),
270
+ "wMax": 320
271
+ })), /*#__PURE__*/React.createElement(FeedbackRating.Item, {
272
+ name: 'rating',
273
+ initialValue: rating
274
+ }, function (_ref9) {
275
+ var input = _ref9.input;
276
+ return /*#__PURE__*/React.createElement("input", _extends({}, input, {
277
+ type: "hidden"
278
+ }));
279
+ }), /*#__PURE__*/React.createElement("div", _ref5.cn("div", {
280
+ "role": 'group',
281
+ "aria-labelledby": _this2.headerId
282
+ }), /*#__PURE__*/React.createElement("ul", _ref5.cn("ul", {}), checkboxFields.map(function (formConfigItem) {
283
+ return _this2.renderCheckbox(formConfigItem);
284
+ }))), textFields.map(function (formConfigItem) {
285
+ return _this2.renderTextField(formConfigItem);
286
+ }), _this2.state.error && /*#__PURE__*/React.createElement(Notice, _ref5.cn("Notice", {
287
+ "theme": 'warning',
288
+ "mt": 4,
289
+ "mb": 4
290
+ }), /*#__PURE__*/React.createElement(Notice.Label, null, /*#__PURE__*/React.createElement(WarnM, _ref5.cn("WarnM", {}))), /*#__PURE__*/React.createElement(Notice.Content, null, getI18nText('errorMessage', {
291
+ email: errorFeedbackEmail
292
+ }))), /*#__PURE__*/React.createElement(Flex, _ref5.cn("Flex", {
293
+ "mt": 4,
294
+ "justifyContent": 'center'
295
+ }), /*#__PURE__*/React.createElement(FeedbackRating.Submit, {
296
+ loading: status !== 'loading' ? api.submitting : status === 'loading',
297
+ size: 'l'
298
+ }, submitText !== null && submitText !== void 0 ? submitText : getI18nText('submitButton')))));
299
+ })), /*#__PURE__*/React.createElement(NoticeBubbleContainer, _ref4.cn("NoticeBubbleContainer", {
300
+ "manager": this.manager
301
+ })));
302
+ }
303
+ }]);
304
+ return FeedbackRatingRoot;
305
+ }(Component);
306
+ _defineProperty(FeedbackRatingRoot, "displayName", 'FiveStarForm');
307
+ _defineProperty(FeedbackRatingRoot, "style", style);
308
+ _defineProperty(FeedbackRatingRoot, "enhance", [i18nEnhance(localizedMessages), uniqueIDEnhancement()]);
309
+ _defineProperty(FeedbackRatingRoot, "defaultProps", {
310
+ onSubmit: function onSubmit() {},
311
+ i18n: localizedMessages,
312
+ locale: 'en'
313
+ });
314
+ _defineProperty(FeedbackRatingRoot, "validate", {
315
+ description: function description(error) {
316
+ return function () {
317
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
318
+ var words = value.split(/\s+/);
319
+ var symbols = words.join(' ');
320
+ if (Boolean(value) && (symbols.length < 10 || words.length < 3)) {
321
+ return error;
322
+ }
323
+ };
324
+ },
325
+ email: function email(error) {
326
+ return function () {
327
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
328
+ if (Boolean(value) && !/.+@.+\..+/i.test(String(value).toLowerCase())) {
329
+ return error;
330
+ }
331
+ };
332
+ }
333
+ });
334
+ function Header(props) {
335
+ var _ref3 = arguments[0],
336
+ _ref6;
337
+ var styles = props.styles;
338
+ var SHeader = Text;
339
+ return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SHeader, _ref6.cn("SHeader", _objectSpread({}, _assignProps3({
340
+ "size": 300,
341
+ "tag": 'h2',
342
+ "mb": 4,
343
+ "mt": 4,
344
+ "textAlign": 'center'
345
+ }, _ref3))));
346
+ }
347
+ var FeedbackRating = createComponent(FeedbackRatingRoot, {
348
+ Header: Header,
349
+ Item: FeedbackItem,
350
+ Checkbox: CheckboxButton,
351
+ Submit: SubmitButton
352
+ });
353
+ export default FeedbackRating;
354
+ //# sourceMappingURL=FeedbackRating.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackRating.js","names":["React","createComponent","Component","sstyled","Root","Form","createFocusDecorator","SpinContainer","i18nEnhance","uniqueIDEnhancement","Notice","CloseAltM","CheckM","WarnM","Text","FeedbackIllustration","Link","SliderRating","Modal","Textarea","Box","Flex","FeedbackItem","SubmitButton","CheckboxButton","Input","localizedMessages","NoticeBubbleContainer","NoticeBubbleManager","style","_sstyled","insert","FeedbackRatingRoot","_Component","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty","_assertThisInitialized","error","rating","asProps","onVisibleChange","fn","value","e","config","initialValue","props","initialValues","key","createElement","FeedbackRating","Item","name","type","tag","_ref7","input","Checkbox","_extends","id","label","onChange","handleChange","mb","size","mt","direction","htmlFor","validate","placement","flip","fallbackPlacements","_ref8","autoFocus","h","state","Value","description","lineHeight","color","_createClass","get","uid","getHeaderProps","headerId","getItemProps","validateOnBlur","componentDidUpdate","prevProps","_this$asProps","status","getI18nText","setState","manager","add","icon","children","initialAnimation","duration","render","_ref","_ref2","_ref4","_this2","_this$asProps2","header","submitText","formConfig","notificationText","learnMoreLink","Children","styles","forwardRef","theme","background","visible","notificationVisible","onNotificationClose","errorFeedbackEmail","other","_objectWithoutProperties","_excluded","SFeedbackRating","checkboxFields","filter","item","textFields","_assignProps2","cn","Label","mr","Content","display","alignItems","Actions","handleChangeRating","CloseIcon","interactive","onClick","_objectSpread","_assignProps","handelCloseModal","focusDecorator","api","_ref5","submitting","handleSubmit","_ref9","map","formConfigItem","renderCheckbox","renderTextField","email","Submit","loading","onSubmit","i18n","locale","undefined","words","split","symbols","join","Boolean","test","String","toLowerCase","Header","_ref3","arguments[0]","_ref6","SHeader","_assignProps3"],"sources":["../../../../src/component/feedback-rating/FeedbackRating.tsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Form } from 'react-final-form';\nimport createFocusDecorator from 'final-form-focus';\nimport SpinContainer from '@semcore/spin-container';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { useI18n } from '@semcore/utils/lib/enhances/WithI18n';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport Notice from '@semcore/notice';\nimport CloseAltM from '@semcore/icon/Close/m';\nimport CheckM from '@semcore/icon/Check/m';\nimport WarnM from '@semcore/icon/Warning/m';\nimport { Text } from '@semcore/typography';\nimport FeedbackIllustration from '@semcore/illustration/Feedback';\nimport Link from '@semcore/link';\nimport SliderRating from '../slider-rating/SliderRating';\nimport Modal from '@semcore/modal';\nimport Textarea from '@semcore/textarea';\nimport { Box, Flex } from '@semcore/flex-box';\nimport { FeedbackItem } from '../feedback-item/FeedbackItem';\nimport { SubmitButton } from '../submit-button/SubmitButton';\nimport { FeedbackRatingProps, FeedbackRatingType, FormConfigItem } from './FeedbackRating.type';\nimport CheckboxButton from '../checkbox-button/CheckboxButton';\nimport Input from '@semcore/input';\nimport { localizedMessages } from '../../translations/__intergalactic-dynamic-locales';\nimport { NoticeBubbleContainer, NoticeBubbleManager } from '@semcore/notice-bubble';\nimport style from '../../style/feedback-rating.shadow.css';\n\ntype Enhances = {\n getI18nText: ReturnType<typeof useI18n>;\n uid: ReturnType<typeof uniqueIDEnhancement>;\n};\n\ntype State = {\n error: boolean;\n};\n\nclass FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, State, Enhances> {\n static displayName = 'FiveStarForm';\n static style = style;\n\n static enhance = [i18nEnhance(localizedMessages), uniqueIDEnhancement()];\n\n static defaultProps = {\n onSubmit: () => {},\n i18n: localizedMessages,\n locale: 'en',\n };\n\n static validate = {\n description: (error: Error | string) => (value = '') => {\n const words = value.split(/\\s+/);\n const symbols = words.join(' ');\n if (Boolean(value) && (symbols.length < 10 || words.length < 3)) {\n return error;\n }\n },\n email: (error: Error | string) => (value = '') => {\n if (Boolean(value) && !/.+@.+\\..+/i.test(String(value).toLowerCase())) {\n return error;\n }\n },\n };\n\n state: State = {\n error: false,\n };\n\n manager = new NoticeBubbleManager();\n\n private focusDecorator = createFocusDecorator<Record<string, any>>();\n\n get headerId() {\n const { uid } = this.asProps;\n\n return `${uid}-feedback-rating-header`;\n }\n\n getHeaderProps() {\n return {\n id: this.headerId,\n };\n }\n\n getItemProps() {\n const { validateOnBlur } = this.asProps;\n\n return {\n validateOnBlur,\n };\n }\n\n handleChangeRating = (rating: number) => {\n this.asProps.onVisibleChange(true, rating);\n };\n\n handelCloseModal = () => {\n this.asProps.onVisibleChange(false, this.asProps.rating);\n };\n\n handleChange =\n (fn: (e: React.SyntheticEvent) => void) => (value: any, e: React.SyntheticEvent) => {\n fn(e);\n };\n\n componentDidUpdate(prevProps: Readonly<FeedbackRatingProps>) {\n const { status, getI18nText } = this.asProps;\n\n if (prevProps.status !== status) {\n this.setState({ error: false });\n\n if (status === 'success') {\n this.manager.add({\n icon: <CheckM color='green-400' />,\n children: getI18nText('successMessage'),\n initialAnimation: true,\n duration: 5000,\n });\n } else if (status === 'error') {\n this.setState({ error: true });\n }\n }\n }\n\n renderCheckbox = (config: FormConfigItem) => {\n const initialValue = this.props.initialValues[config.key];\n\n return (\n <FeedbackRating.Item\n name={config.key}\n initialValue={initialValue}\n type={'checkbox'}\n key={config.key}\n tag={'li'}\n >\n {({ input }) => (\n <FeedbackRating.Checkbox\n {...input}\n id={config.key}\n name={config.key}\n label={config.label}\n onChange={this.handleChange(input.onChange)}\n />\n )}\n </FeedbackRating.Item>\n );\n };\n\n renderTextField = (config: FormConfigItem) => {\n const initialValue = this.props.initialValues[config.key];\n\n const label =\n typeof config.label === 'string' ? (\n <Text mb={2} size={200}>\n {config.label}\n </Text>\n ) : (\n (config.label as unknown as JSX.Element)\n );\n\n return (\n <Flex tag='label' mt={4} direction='column' htmlFor={config.key} key={config.key}>\n {label}\n\n <FeedbackRating.Item\n name={config.key}\n validate={config.validate}\n initialValue={initialValue}\n placement='left-start'\n flip={{\n fallbackPlacements: ['right-start', 'bottom'],\n }}\n >\n {({ input }) => {\n if (config.type === 'textarea') {\n return (\n <Textarea\n {...input}\n autoFocus\n h={80}\n onChange={this.handleChange(input.onChange)}\n id={config.key}\n />\n );\n }\n if (config.type === 'input') {\n return (\n <Input state={input.state}>\n <Input.Value\n {...input}\n onChange={this.handleChange(input.onChange)}\n id={config.key}\n />\n </Input>\n );\n }\n return null;\n }}\n </FeedbackRating.Item>\n {config.description && (\n <Box mt={2}>\n {typeof config.description === 'string' ? (\n <Text lineHeight='18px' size={200} color='#6c6e79'>\n {config.description}\n </Text>\n ) : (\n config.description\n )}\n </Box>\n )}\n </Flex>\n );\n };\n\n render() {\n const {\n header,\n submitText,\n formConfig,\n notificationText,\n learnMoreLink,\n Children,\n styles,\n forwardRef,\n status,\n theme,\n background,\n rating,\n visible,\n onVisibleChange,\n notificationVisible,\n onNotificationClose,\n getI18nText,\n errorFeedbackEmail,\n ...other\n } = this.asProps;\n\n const SFeedbackRating = Root;\n const checkboxFields = formConfig.filter((item) => item.type === 'checkbox');\n const textFields = formConfig.filter(\n (item) => item.type === 'textarea' || item.type === 'input',\n );\n\n return sstyled(styles)(\n <Root render={Box}>\n <Notice visible={notificationVisible} aria-label={'Leave feedback'}>\n <Notice.Label mt={1} mr={2} aria-hidden={true}>\n <FeedbackIllustration />\n </Notice.Label>\n <Notice.Content style={{ display: 'flex', alignItems: 'center' }}>\n <Text mr={3}>{notificationText}</Text>\n <Notice.Actions mt={0}>\n <SliderRating\n value={rating}\n onChange={this.handleChangeRating}\n aria-label={notificationText}\n />\n </Notice.Actions>\n {learnMoreLink && (\n <Link ml={3} href={learnMoreLink}>\n {getI18nText('learnMore')}\n </Link>\n )}\n </Notice.Content>\n <Notice.CloseIcon interactive onClick={onNotificationClose}>\n <CloseAltM />\n </Notice.CloseIcon>\n </Notice>\n\n <SFeedbackRating render={Modal} visible={visible} onClose={this.handelCloseModal} p={0}>\n <Form decorators={[this.focusDecorator]} {...other}>\n {(api) =>\n sstyled(styles)(\n <SpinContainer\n background={background}\n theme={theme}\n size='xl'\n loading={status !== 'loading' ? api.submitting : status === 'loading'}\n p={10}\n >\n <Flex justifyContent='center'>\n <SliderRating value={rating} readonly={true} />\n </Flex>\n\n {header as any}\n\n <Box\n tag='form'\n noValidate\n method='POST'\n ref={forwardRef}\n {...other}\n onSubmit={api.handleSubmit}\n title={getI18nText('formTitle')}\n wMax={320}\n >\n <FeedbackRating.Item name={'rating'} initialValue={rating}>\n {({ input }) => {\n return <input {...input} type='hidden' />;\n }}\n </FeedbackRating.Item>\n\n <div role={'group'} aria-labelledby={this.headerId}>\n <ul>\n {checkboxFields.map((formConfigItem) =>\n this.renderCheckbox(formConfigItem),\n )}\n </ul>\n </div>\n\n {textFields.map((formConfigItem) => this.renderTextField(formConfigItem))}\n\n {this.state.error && (\n <Notice theme={'warning'} mt={4} mb={4}>\n <Notice.Label>\n <WarnM />\n </Notice.Label>\n <Notice.Content>\n {getI18nText('errorMessage', { email: errorFeedbackEmail })}\n </Notice.Content>\n </Notice>\n )}\n\n <Flex mt={4} justifyContent={'center'}>\n <FeedbackRating.Submit\n loading={status !== 'loading' ? api.submitting : status === 'loading'}\n size={'l'}\n >\n {submitText ?? getI18nText('submitButton')}\n </FeedbackRating.Submit>\n </Flex>\n </Box>\n </SpinContainer>,\n )\n }\n </Form>\n </SFeedbackRating>\n\n <NoticeBubbleContainer manager={this.manager} />\n </Root>,\n );\n }\n}\n\nfunction Header(props: any) {\n const { styles } = props;\n const SHeader = Root;\n return sstyled(styles)(\n <SHeader render={Text} size={300} tag='h2' mb={4} mt={4} textAlign={'center'} />,\n );\n}\n\nconst FeedbackRating: typeof FeedbackRatingType & { validate: typeof FeedbackRatingRoot.validate } =\n createComponent(FeedbackRatingRoot, {\n Header,\n Item: FeedbackItem,\n Checkbox: CheckboxButton,\n Submit: SubmitButton,\n });\n\nexport default FeedbackRating;\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,SAASC,IAAI,QAAQ,kBAAkB;AACvC,OAAOC,oBAAoB,MAAM,kBAAkB;AACnD,OAAOC,aAAa,MAAM,yBAAyB;AACnD,OAAOC,WAAW,MAAM,yCAAyC;AAEjE,OAAOC,mBAAmB,MAAM,6BAA6B;AAC7D,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,MAAM,MAAM,uBAAuB;AAC1C,OAAOC,KAAK,MAAM,yBAAyB;AAC3C,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,OAAOC,oBAAoB,MAAM,gCAAgC;AACjE,OAAOC,IAAI,MAAM,eAAe;AACh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AAM,GAAKjE,KAAK,CAAhBiE,MAAM;EACd,IAAM4D,OAAO,GAEM1K,IAAI;EADvB,OAAAyK,KAAA,GAAOpL,OAAO,CAACyH,MAAM,CAAC,eACpB5H,KAAA,CAAA8D,aAAA,CAAC0H,OAAO,EAAAD,KAAA,CAAA1C,EAAA,YAAAW,aAAA,KAAAiC,aAAA;IAAA,QAAqB,GAAG;IAAA,OAAM,IAAI;IAAA,MAAK,CAAC;IAAA,MAAM,CAAC;IAAA,aAAa;EAAQ,GAAAJ,KAAA,IAAI;AAEpF;AAEA,IAAMtH,cAA4F,GAChG9D,eAAe,CAAC+B,kBAAkB,EAAE;EAClCoJ,MAAM,EAANA,MAAM;EACNpH,IAAI,EAAE1C,YAAY;EAClBgD,QAAQ,EAAE9C,cAAc;EACxB8I,MAAM,EAAE/I;AACV,CAAC,CAAC;AAEJ,eAAewC,cAAc"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FeedbackRating.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackRating.type.js","names":[],"sources":["../../../../src/component/feedback-rating/FeedbackRating.type.ts"],"sourcesContent":["import React from 'react';\nimport { FeedbackFormProps } from '../../index';\nimport { FieldProps } from 'react-final-form';\n\nimport { Intergalactic } from '@semcore/core';\nimport Button from '@semcore/button';\nimport { Text } from '@semcore/typography';\nimport Checkbox from '@semcore/checkbox';\n\nexport type FormConfigItem = {\n key: string;\n label: React.ReactNode;\n type: 'input' | 'checkbox' | 'textarea';\n description?: React.ReactNode;\n validate?: (value: any) => Error | string | undefined;\n};\n\nexport type FeedbackRatingProps = Intergalactic.InternalTypings.EfficientOmit<\n FeedbackFormProps,\n 'initialValues' | 'loading'\n> & {\n /** status of form */\n status: 'default' | 'success' | 'error' | 'loading';\n\n /** flag for show/hide notification */\n notificationVisible: boolean;\n /** */\n onNotificationClose: () => void;\n /** text in notification panel */\n notificationText: string;\n /** optional link in notification panel */\n learnMoreLink?: string;\n /** rating value */\n rating: number;\n /** visible modal form flag */\n visible: boolean;\n\n onVisibleChange: (visible: boolean, rating: number) => void;\n\n /** header of modal with form */\n header: React.ReactNode;\n /** text for submit button of form */\n submitText?: string;\n /** config for form fields */\n formConfig: FormConfigItem[];\n\n initialValues: Record<string, any> & { rating: number };\n\n errorFeedbackEmail: string;\n\n locale?: string;\n};\n\nexport type FeedbackRatingItemProps = FieldProps<any, any> & {\n /**\n * Allows to override which passed props will be passed to the Tooltip component.\n */\n tooltipProps?: string[];\n};\n\ndeclare const FeedbackRatingType: Intergalactic.Component<'form', FeedbackRatingProps> & {\n Item: Intergalactic.Component<'div', FeedbackRatingItemProps>;\n Submit: typeof Button;\n Checkbox: typeof Checkbox;\n Header: typeof Text;\n};\n\nexport { FeedbackRatingType };\n"],"mappings":""}