intergalactic 15.87.0-prerelease.3 → 15.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/CHANGELOG.md +1 -10
  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/index.d.ts +0 -4
  116. package/feedback-form/lib/cjs/FeedbackForm.js +86 -28
  117. package/feedback-form/lib/cjs/FeedbackForm.js.map +1 -1
  118. package/feedback-form/lib/cjs/index.d.js +0 -12
  119. package/feedback-form/lib/cjs/index.d.js.map +1 -1
  120. package/feedback-form/lib/cjs/index.js +0 -7
  121. package/feedback-form/lib/cjs/index.js.map +1 -1
  122. package/feedback-form/lib/es6/FeedbackForm.js +88 -28
  123. package/feedback-form/lib/es6/FeedbackForm.js.map +1 -1
  124. package/feedback-form/lib/es6/index.d.js +1 -5
  125. package/feedback-form/lib/es6/index.d.js.map +1 -1
  126. package/feedback-form/lib/es6/index.js +0 -2
  127. package/feedback-form/lib/es6/index.js.map +1 -1
  128. package/feedback-form/lib/types/index.d.ts +0 -4
  129. package/flex-box/lib/cjs/Box/useBox.js +3 -3
  130. package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
  131. package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
  132. package/flex-box/lib/es6/Box/useBox.js +3 -3
  133. package/flex-box/lib/es6/Flex/useFlex.js +3 -3
  134. package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
  135. package/format-text/lib/cjs/FormatText.js +5 -5
  136. package/format-text/lib/es6/FormatText.js +5 -5
  137. package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
  138. package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
  139. package/grid/lib/cjs/Grid.js +114 -114
  140. package/grid/lib/es6/Grid.js +114 -114
  141. package/icon/color/Confluence/l/index.js +4 -4
  142. package/icon/color/Confluence/l/index.mjs +4 -4
  143. package/icon/color/Confluence/m/index.js +4 -4
  144. package/icon/color/Confluence/m/index.mjs +4 -4
  145. package/icon/color/MicrosoftOffice/l/index.js +10 -10
  146. package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
  147. package/icon/color/MicrosoftOffice/m/index.js +10 -10
  148. package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
  149. package/icon/lib/cjs/Icon.js +5 -5
  150. package/icon/lib/es6/Icon.js +5 -5
  151. package/icon/pay/Discover/l/index.js +1 -1
  152. package/icon/pay/Discover/l/index.mjs +1 -1
  153. package/icon/pay/Discover/m/index.js +1 -1
  154. package/icon/pay/Discover/m/index.mjs +1 -1
  155. package/icon/pay/JCB/l/index.js +10 -10
  156. package/icon/pay/JCB/l/index.mjs +10 -10
  157. package/icon/pay/JCB/m/index.js +10 -10
  158. package/icon/pay/JCB/m/index.mjs +10 -10
  159. package/icon/pay/Visa/l/index.js +2 -2
  160. package/icon/pay/Visa/l/index.mjs +2 -2
  161. package/icon/pay/Visa/m/index.js +2 -2
  162. package/icon/pay/Visa/m/index.mjs +2 -2
  163. package/illustration/lib/cjs/index.js +1 -1
  164. package/illustration/lib/es6/index.js +1 -1
  165. package/inline-edit/lib/cjs/InlineEdit.js +4 -4
  166. package/inline-edit/lib/es6/InlineEdit.js +4 -4
  167. package/inline-input/lib/cjs/InlineInput.js +18 -18
  168. package/inline-input/lib/es6/InlineInput.js +18 -18
  169. package/input/lib/cjs/Input.js +17 -17
  170. package/input/lib/es6/Input.js +17 -17
  171. package/input-mask/lib/cjs/InputMask.js +6 -6
  172. package/input-mask/lib/es6/InputMask.js +6 -6
  173. package/input-number/lib/cjs/InputNumber.js +10 -10
  174. package/input-number/lib/cjs/InputNumber.js.map +1 -1
  175. package/input-number/lib/es6/InputNumber.js +10 -10
  176. package/input-number/lib/es6/InputNumber.js.map +1 -1
  177. package/input-tags/lib/cjs/InputTags.js +12 -12
  178. package/input-tags/lib/es6/InputTags.js +12 -12
  179. package/link/lib/cjs/Link.js +12 -12
  180. package/link/lib/es6/Link.js +12 -12
  181. package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
  182. package/mini-chart/lib/cjs/component/score/Line.js +17 -17
  183. package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
  184. package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
  185. package/mini-chart/lib/es6/component/score/Donut.js +9 -9
  186. package/mini-chart/lib/es6/component/score/Line.js +17 -17
  187. package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
  188. package/mini-chart/lib/es6/component/trend/Line.js +7 -7
  189. package/modal/lib/cjs/Modal.js +9 -9
  190. package/modal/lib/es6/Modal.js +9 -9
  191. package/notice/lib/cjs/Notice.js +13 -13
  192. package/notice/lib/es6/Notice.js +13 -13
  193. package/notice-bubble/lib/cjs/NoticeBubble.js +12 -12
  194. package/notice-bubble/lib/es6/NoticeBubble.js +12 -12
  195. package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
  196. package/notice-global/lib/es6/NoticeGlobal.js +11 -11
  197. package/package.json +2 -2
  198. package/pagination/lib/cjs/Pagination.js +10 -10
  199. package/pagination/lib/es6/Pagination.js +10 -10
  200. package/pills/lib/cjs/Pills.js +13 -13
  201. package/pills/lib/es6/Pills.js +13 -13
  202. package/popper/lib/cjs/Popper.js +6 -6
  203. package/popper/lib/es6/Popper.js +6 -6
  204. package/product-head/lib/cjs/Info.js +4 -4
  205. package/product-head/lib/cjs/ProductHead.js +5 -5
  206. package/product-head/lib/cjs/Title.js +4 -4
  207. package/product-head/lib/es6/Info.js +4 -4
  208. package/product-head/lib/es6/ProductHead.js +5 -5
  209. package/product-head/lib/es6/Title.js +4 -4
  210. package/progress-bar/lib/cjs/ProgressBar.js +15 -15
  211. package/progress-bar/lib/es6/ProgressBar.js +15 -15
  212. package/radio/lib/cjs/Radio.js +16 -16
  213. package/radio/lib/es6/Radio.js +16 -16
  214. package/scroll-area/lib/cjs/ScrollArea.js +21 -21
  215. package/scroll-area/lib/cjs/ScrollBar.js +6 -6
  216. package/scroll-area/lib/es6/ScrollArea.js +21 -21
  217. package/scroll-area/lib/es6/ScrollBar.js +6 -6
  218. package/select/lib/cjs/InputSearch.js +6 -6
  219. package/select/lib/cjs/Select.js +8 -8
  220. package/select/lib/es6/InputSearch.js +6 -6
  221. package/select/lib/es6/Select.js +8 -8
  222. package/side-panel/lib/cjs/SidePanel.js +15 -15
  223. package/side-panel/lib/es6/SidePanel.js +15 -15
  224. package/skeleton/lib/cjs/Charts/Area.js +9 -9
  225. package/skeleton/lib/cjs/Charts/Bar.js +9 -9
  226. package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
  227. package/skeleton/lib/cjs/Charts/Donut.js +9 -9
  228. package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
  229. package/skeleton/lib/cjs/Charts/Line.js +9 -9
  230. package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
  231. package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
  232. package/skeleton/lib/cjs/Charts/Venn.js +9 -9
  233. package/skeleton/lib/cjs/Skeleton.js +8 -8
  234. package/skeleton/lib/es6/Charts/Area.js +9 -9
  235. package/skeleton/lib/es6/Charts/Bar.js +9 -9
  236. package/skeleton/lib/es6/Charts/Bubble.js +9 -9
  237. package/skeleton/lib/es6/Charts/Donut.js +9 -9
  238. package/skeleton/lib/es6/Charts/Histogram.js +9 -9
  239. package/skeleton/lib/es6/Charts/Line.js +9 -9
  240. package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
  241. package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
  242. package/skeleton/lib/es6/Charts/Venn.js +9 -9
  243. package/skeleton/lib/es6/Skeleton.js +8 -8
  244. package/slider/lib/cjs/Slider.js +8 -8
  245. package/slider/lib/es6/Slider.js +8 -8
  246. package/spin/lib/cjs/Spin.js +13 -13
  247. package/spin/lib/es6/Spin.js +13 -13
  248. package/spin-container/lib/cjs/SpinContainer.js +8 -8
  249. package/spin-container/lib/es6/SpinContainer.js +8 -8
  250. package/sticky/lib/cjs/Sticky.js +2 -2
  251. package/sticky/lib/es6/Sticky.js +2 -2
  252. package/switch/lib/cjs/Switch.js +21 -21
  253. package/switch/lib/es6/Switch.js +21 -21
  254. package/tab-line/lib/cjs/TabLine.js +13 -13
  255. package/tab-line/lib/es6/TabLine.js +13 -13
  256. package/tab-panel/lib/cjs/TabPanel.js +8 -8
  257. package/tab-panel/lib/es6/TabPanel.js +8 -8
  258. package/tag/lib/cjs/Tag.js +20 -20
  259. package/tag/lib/es6/Tag.js +20 -20
  260. package/textarea/lib/cjs/Textarea.js +8 -8
  261. package/textarea/lib/es6/Textarea.js +8 -8
  262. package/time-picker/lib/cjs/TimePicker.js +12 -12
  263. package/time-picker/lib/es6/TimePicker.js +12 -12
  264. package/tooltip/lib/cjs/Tooltip.js +9 -9
  265. package/tooltip/lib/es6/Tooltip.js +9 -9
  266. package/typography/lib/cjs/Blockquote.js +4 -4
  267. package/typography/lib/cjs/Hint.js +7 -7
  268. package/typography/lib/cjs/List.js +5 -5
  269. package/typography/lib/cjs/Text.js +34 -34
  270. package/typography/lib/es6/Blockquote.js +4 -4
  271. package/typography/lib/es6/Hint.js +7 -7
  272. package/typography/lib/es6/List.js +5 -5
  273. package/typography/lib/es6/Text.js +34 -34
  274. package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
  275. package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
  276. package/utils/lib/injectStyle.js +1 -1
  277. package/utils/lib/injectStyle.mjs +1 -1
  278. package/utils/lib/themes/auto.css +0 -4
  279. package/utils/lib/themes/default.css +0 -4
  280. package/utils/lib/themes/default.json +0 -2
  281. package/utils/lib/themes/light.css +0 -4
  282. package/utils/lib/themes/light.json +0 -2
  283. package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
  284. package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
  285. package/wizard/lib/cjs/Wizard.js +11 -11
  286. package/wizard/lib/es6/Wizard.js +11 -11
  287. package/feedback-form/component/checkbox-button/CheckboxButton.d.ts +0 -4
  288. package/feedback-form/component/feedback-item/FeedbackItem.d.ts +0 -7
  289. package/feedback-form/component/feedback-rating/FeedbackRating.d.ts +0 -156
  290. package/feedback-form/component/feedback-rating/FeedbackRating.type.d.ts +0 -55
  291. package/feedback-form/component/slider-rating/SliderRating.d.ts +0 -14
  292. package/feedback-form/component/submit-button/SubmitButton.d.ts +0 -3
  293. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +0 -58
  294. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js.map +0 -1
  295. package/feedback-form/lib/cjs/component/feedback-item/FeedbackItem.js +0 -63
  296. package/feedback-form/lib/cjs/component/feedback-item/FeedbackItem.js.map +0 -1
  297. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +0 -360
  298. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +0 -1
  299. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.type.js +0 -2
  300. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.type.js.map +0 -1
  301. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +0 -172
  302. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js.map +0 -1
  303. package/feedback-form/lib/cjs/component/submit-button/SubmitButton.js +0 -23
  304. package/feedback-form/lib/cjs/component/submit-button/SubmitButton.js.map +0 -1
  305. package/feedback-form/lib/cjs/style/checkbox-button.shadow.css +0 -21
  306. package/feedback-form/lib/cjs/style/feedback-rating.shadow.css +0 -9
  307. package/feedback-form/lib/cjs/style/slider-rating.shadow.css +0 -34
  308. package/feedback-form/lib/cjs/translations/__intergalactic-dynamic-locales.js +0 -39
  309. package/feedback-form/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +0 -1
  310. package/feedback-form/lib/cjs/translations/de.json +0 -7
  311. package/feedback-form/lib/cjs/translations/en.json +0 -8
  312. package/feedback-form/lib/cjs/translations/es.json +0 -7
  313. package/feedback-form/lib/cjs/translations/fr.json +0 -7
  314. package/feedback-form/lib/cjs/translations/it.json +0 -7
  315. package/feedback-form/lib/cjs/translations/ja.json +0 -7
  316. package/feedback-form/lib/cjs/translations/ko.json +0 -7
  317. package/feedback-form/lib/cjs/translations/nl.json +0 -7
  318. package/feedback-form/lib/cjs/translations/pl.json +0 -7
  319. package/feedback-form/lib/cjs/translations/pt.json +0 -7
  320. package/feedback-form/lib/cjs/translations/sv.json +0 -7
  321. package/feedback-form/lib/cjs/translations/tr.json +0 -7
  322. package/feedback-form/lib/cjs/translations/vi.json +0 -7
  323. package/feedback-form/lib/cjs/translations/zh.json +0 -7
  324. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +0 -50
  325. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js.map +0 -1
  326. package/feedback-form/lib/es6/component/feedback-item/FeedbackItem.js +0 -56
  327. package/feedback-form/lib/es6/component/feedback-item/FeedbackItem.js.map +0 -1
  328. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +0 -354
  329. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +0 -1
  330. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.type.js +0 -2
  331. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.type.js.map +0 -1
  332. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +0 -165
  333. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js.map +0 -1
  334. package/feedback-form/lib/es6/component/submit-button/SubmitButton.js +0 -17
  335. package/feedback-form/lib/es6/component/submit-button/SubmitButton.js.map +0 -1
  336. package/feedback-form/lib/es6/style/checkbox-button.shadow.css +0 -21
  337. package/feedback-form/lib/es6/style/feedback-rating.shadow.css +0 -9
  338. package/feedback-form/lib/es6/style/slider-rating.shadow.css +0 -34
  339. package/feedback-form/lib/es6/translations/__intergalactic-dynamic-locales.js +0 -31
  340. package/feedback-form/lib/es6/translations/__intergalactic-dynamic-locales.js.map +0 -1
  341. package/feedback-form/lib/es6/translations/de.json +0 -7
  342. package/feedback-form/lib/es6/translations/en.json +0 -8
  343. package/feedback-form/lib/es6/translations/es.json +0 -7
  344. package/feedback-form/lib/es6/translations/fr.json +0 -7
  345. package/feedback-form/lib/es6/translations/it.json +0 -7
  346. package/feedback-form/lib/es6/translations/ja.json +0 -7
  347. package/feedback-form/lib/es6/translations/ko.json +0 -7
  348. package/feedback-form/lib/es6/translations/nl.json +0 -7
  349. package/feedback-form/lib/es6/translations/pl.json +0 -7
  350. package/feedback-form/lib/es6/translations/pt.json +0 -7
  351. package/feedback-form/lib/es6/translations/sv.json +0 -7
  352. package/feedback-form/lib/es6/translations/tr.json +0 -7
  353. package/feedback-form/lib/es6/translations/vi.json +0 -7
  354. package/feedback-form/lib/es6/translations/zh.json +0 -7
  355. package/feedback-form/lib/types/component/checkbox-button/CheckboxButton.d.ts +0 -4
  356. package/feedback-form/lib/types/component/feedback-item/FeedbackItem.d.ts +0 -7
  357. package/feedback-form/lib/types/component/feedback-rating/FeedbackRating.d.ts +0 -156
  358. package/feedback-form/lib/types/component/feedback-rating/FeedbackRating.type.d.ts +0 -55
  359. package/feedback-form/lib/types/component/slider-rating/SliderRating.d.ts +0 -14
  360. package/feedback-form/lib/types/component/submit-button/SubmitButton.d.ts +0 -3
  361. package/feedback-form/lib/types/translations/__intergalactic-dynamic-locales.d.ts +0 -101
  362. package/feedback-form/translations/__intergalactic-dynamic-locales.d.ts +0 -101
@@ -22,19 +22,22 @@ var _reactFinalForm = require("react-final-form");
22
22
  var _finalFormFocus = _interopRequireDefault(require("final-form-focus"));
23
23
  var _button = _interopRequireDefault(require("intergalactic/button"));
24
24
  var _spinContainer = _interopRequireDefault(require("intergalactic/spin-container"));
25
+ var _tooltip = _interopRequireDefault(require("intergalactic/tooltip"));
25
26
  var _notice = require("intergalactic/notice");
26
27
  var _flexBox = require("intergalactic/flex-box");
27
- var _FeedbackItem = require("./component/feedback-item/FeedbackItem");
28
- var _SubmitButton = require("./component/submit-button/SubmitButton");
29
- var _excluded = ["Children", "styles", "forwardRef", "loading", "background", "theme"];
28
+ var _pick = _interopRequireDefault(require("intergalactic/utils/lib/pick"));
29
+ var _uniqueID = _interopRequireDefault(require("intergalactic/utils/lib/uniqueID"));
30
+ var _excluded = ["Children", "styles", "forwardRef", "loading", "background", "theme"],
31
+ _excluded2 = ["Children", "tag", "uid"],
32
+ _excluded3 = ["input", "meta"];
30
33
  /*__reshadow-styles__:"./style/feedback-form.shadow.css"*/
31
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SFeedbackForm_1srei_gg_{max-width:320px}.___SCancel_1srei_gg_,.___SSubmit_1srei_gg_{display:inline-flex;margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNotice_1srei_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-4x, 16px);border-width:1px 0 0;border-top-style:solid;border-radius:0 0 var(--intergalactic-surface-rounded, 6px) var(--intergalactic-surface-rounded, 6px)}.___SSuccess_1srei_gg_{display:flex;align-items:center;flex-direction:column;width:320px;padding:var(--intergalactic-spacing-10x, 40px);box-sizing:border-box}.___SEmail_1srei_gg_{margin-bottom:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));width:80px;height:80px;background-image:url(\"data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345E0A8'/%3E%3Cpath d='M29 45.2852L29.2 45.6352C35.39 42.1852 53.39 31.9652 56.73 35.1052C55.6 32.0052 39.7 35.4352 29 45.2852Z' fill='white'/%3E%3Cpath d='M28.44 31.6343C26.63 37.6343 19.23 56.1043 15 61.9443L18 62.8543L19.58 61.5343C23.8 51.9843 29.58 35.5343 29.89 30.0743C29.39 29.8143 28.93 30.2143 28.44 31.6343Z' fill='white'/%3E%3Cpath d='M15 62.0078C19.23 56.1678 26.63 37.7378 28.44 31.6678C30.25 25.5978 33.49 37.6678 31.67 42.7878' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 45.9424C38.68 35.5824 55.27 31.9424 56.43 35.1024C57.12 36.9924 43 41.3624 38.02 47.4224' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44.45 21.93C41.21 20.77 35.86 19.04 33 18.24C37.12 16.41 70 4.24 72.67 3C71.75 7.11 67.75 21.28 65.96 27.93C61.13 26.25 56.23 24.78 53.03 23.74C51.0298 26.3907 49.2219 29.1812 47.62 32.09C46.44 28.23 45.29 23.77 44.45 21.93Z' fill='white' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M45 22.08L61.74 11' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M53 23.73L72.64 3' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48 32.58L55.86 25' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.23 30.77L51.69 25.13L52.66 24L54.73 24.61L55.16 24.48L51.8 27.91L49.33 30.18L48 31.29L48.23 30.77Z' fill='black'/%3E%3Cpath d='M33.81 22L23 27.12' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40.89 23L34 27.37' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M62.04 29L58 38.85' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46.68 41C50.29 43.42 44.81 49.52 43 51.12' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M47.17 44C51.31 46.09 48.33 51.76 46 54.6' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.86 49C54.37 53.48 36.31 72.72 35 73.78' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='mask0_11950_117175' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='6' width='73' height='73'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345DFA7'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_11950_117175)'%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' fill='black'/%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A\")}" /*__inner_css_end__*/, "1srei_gg_") /*__reshadow_css_end__*/, {
32
- "__SFeedbackForm": "___SFeedbackForm_1srei_gg_",
33
- "__SSubmit": "___SSubmit_1srei_gg_",
34
- "__SCancel": "___SCancel_1srei_gg_",
35
- "__SNotice": "___SNotice_1srei_gg_",
36
- "__SSuccess": "___SSuccess_1srei_gg_",
37
- "__SEmail": "___SEmail_1srei_gg_"
34
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SFeedbackForm_1wfx7_gg_{max-width:320px}.___SCancel_1wfx7_gg_,.___SSubmit_1wfx7_gg_{display:inline-flex;margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNotice_1wfx7_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-4x, 16px);border-width:1px 0 0;border-top-style:solid;border-radius:0 0 var(--intergalactic-surface-rounded, 6px) var(--intergalactic-surface-rounded, 6px)}.___SSuccess_1wfx7_gg_{display:flex;align-items:center;flex-direction:column;width:320px;padding:var(--intergalactic-spacing-10x, 40px);box-sizing:border-box}.___SEmail_1wfx7_gg_{margin-bottom:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));width:80px;height:80px;background-image:url(\"data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345E0A8'/%3E%3Cpath d='M29 45.2852L29.2 45.6352C35.39 42.1852 53.39 31.9652 56.73 35.1052C55.6 32.0052 39.7 35.4352 29 45.2852Z' fill='white'/%3E%3Cpath d='M28.44 31.6343C26.63 37.6343 19.23 56.1043 15 61.9443L18 62.8543L19.58 61.5343C23.8 51.9843 29.58 35.5343 29.89 30.0743C29.39 29.8143 28.93 30.2143 28.44 31.6343Z' fill='white'/%3E%3Cpath d='M15 62.0078C19.23 56.1678 26.63 37.7378 28.44 31.6678C30.25 25.5978 33.49 37.6678 31.67 42.7878' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 45.9424C38.68 35.5824 55.27 31.9424 56.43 35.1024C57.12 36.9924 43 41.3624 38.02 47.4224' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44.45 21.93C41.21 20.77 35.86 19.04 33 18.24C37.12 16.41 70 4.24 72.67 3C71.75 7.11 67.75 21.28 65.96 27.93C61.13 26.25 56.23 24.78 53.03 23.74C51.0298 26.3907 49.2219 29.1812 47.62 32.09C46.44 28.23 45.29 23.77 44.45 21.93Z' fill='white' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M45 22.08L61.74 11' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M53 23.73L72.64 3' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48 32.58L55.86 25' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.23 30.77L51.69 25.13L52.66 24L54.73 24.61L55.16 24.48L51.8 27.91L49.33 30.18L48 31.29L48.23 30.77Z' fill='black'/%3E%3Cpath d='M33.81 22L23 27.12' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40.89 23L34 27.37' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M62.04 29L58 38.85' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46.68 41C50.29 43.42 44.81 49.52 43 51.12' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M47.17 44C51.31 46.09 48.33 51.76 46 54.6' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.86 49C54.37 53.48 36.31 72.72 35 73.78' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='mask0_11950_117175' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='6' width='73' height='73'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345DFA7'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_11950_117175)'%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' fill='black'/%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A\")}" /*__inner_css_end__*/, "1wfx7_gg_") /*__reshadow_css_end__*/, {
35
+ "__SFeedbackForm": "___SFeedbackForm_1wfx7_gg_",
36
+ "__SSubmit": "___SSubmit_1wfx7_gg_",
37
+ "__SCancel": "___SCancel_1wfx7_gg_",
38
+ "__SNotice": "___SNotice_1wfx7_gg_",
39
+ "__SSuccess": "___SSuccess_1wfx7_gg_",
40
+ "__SEmail": "___SEmail_1wfx7_gg_"
38
41
  });
39
42
  var FeedbackForm = /*#__PURE__*/function (_Component) {
40
43
  (0, _inherits2["default"])(FeedbackForm, _Component);
@@ -72,13 +75,13 @@ var FeedbackForm = /*#__PURE__*/function (_Component) {
72
75
  return /*#__PURE__*/_react["default"].createElement(_reactFinalForm.Form, (0, _extends2["default"])({
73
76
  decorators: [this.focusDecorator]
74
77
  }, other), function (api) {
75
- var _ref4;
76
- return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_spinContainer["default"], _ref4.cn("SpinContainer", {
78
+ var _ref6;
79
+ return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_spinContainer["default"], _ref6.cn("SpinContainer", {
77
80
  "background": background,
78
81
  "theme": theme,
79
82
  "size": 'xl',
80
83
  "loading": loading === undefined ? api.submitting : loading
81
- }), /*#__PURE__*/_react["default"].createElement(SFeedbackForm, _ref4.cn("SFeedbackForm", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
84
+ }), /*#__PURE__*/_react["default"].createElement(SFeedbackForm, _ref6.cn("SFeedbackForm", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
82
85
  "tag": 'form',
83
86
  "noValidate": true,
84
87
  "method": 'POST',
@@ -86,7 +89,7 @@ var FeedbackForm = /*#__PURE__*/function (_Component) {
86
89
  }, other), {}, {
87
90
  "onSubmit": api.handleSubmit,
88
91
  "title": 'This is feedback'
89
- })), typeof Children.origin === 'function' ? Children.origin(api) : /*#__PURE__*/_react["default"].createElement(Children, _ref4.cn("Children", {}))));
92
+ })), typeof Children.origin === 'function' ? Children.origin(api) : /*#__PURE__*/_react["default"].createElement(Children, _ref6.cn("Children", {}))));
90
93
  });
91
94
  }
92
95
  }]);
@@ -121,48 +124,103 @@ var FeedbackForm = /*#__PURE__*/function (_Component) {
121
124
  };
122
125
  }
123
126
  });
127
+ var TooltipProps = ['title', 'theme', 'strategy', 'modifiers', 'placement', 'interaction', 'timeout', 'visible', 'defaultVisible', 'onVisibleChange', 'offset', 'preventOverflow', 'arrow', 'flip', 'computeStyles', 'eventListeners', 'onFirstUpdate'];
128
+ function Item(_ref11) {
129
+ var _ref = arguments[0];
130
+ var Children = _ref11.Children,
131
+ tag = _ref11.tag,
132
+ uid = _ref11.uid,
133
+ props = (0, _objectWithoutProperties2["default"])(_ref11, _excluded2);
134
+ var tooltipProps = (0, _pick["default"])(props, TooltipProps);
135
+ var ItemRoot = tag;
136
+ var lastErrorRef = _react["default"].useRef(undefined);
137
+ return /*#__PURE__*/_react["default"].createElement(_reactFinalForm.Field, props, function (_ref12) {
138
+ var _meta$error;
139
+ var input = _ref12.input,
140
+ meta = _ref12.meta,
141
+ other = (0, _objectWithoutProperties2["default"])(_ref12, _excluded3);
142
+ var showError = other.validateOnBlur === false ? meta.submitFailed : true;
143
+ var invalid = meta.invalid && meta.touched;
144
+ var errorState = showError && invalid;
145
+ var inputProps = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, input), {}, {
146
+ state: errorState ? 'invalid' : 'normal',
147
+ 'aria-invalid': errorState ? true : false,
148
+ 'aria-errormessage': uid
149
+ });
150
+ if (meta !== null && meta !== void 0 && meta.error) lastErrorRef.current = meta.error;
151
+ return /*#__PURE__*/_react["default"].createElement(_tooltip["default"], (0, _extends2["default"])({
152
+ visible: errorState && meta.active,
153
+ theme: "warning",
154
+ placement: "left",
155
+ flip: {
156
+ fallbackPlacements: ['right', 'bottom']
157
+ }
158
+ }, tooltipProps), /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Trigger, {
159
+ inline: false,
160
+ role: undefined
161
+ }, tag && /*#__PURE__*/_react["default"].createElement(ItemRoot, (0, _core.assignProps)((0, _objectSpread2["default"])({}, inputProps), _ref)), typeof Children.origin === 'function' && Children.origin((0, _objectSpread2["default"])({
162
+ input: inputProps,
163
+ meta: meta
164
+ }, other))), /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Popper, {
165
+ id: uid,
166
+ ignorePortalsStacking: true
167
+ }, (_meta$error = meta.error) !== null && _meta$error !== void 0 ? _meta$error : lastErrorRef.current));
168
+ });
169
+ }
170
+ Item.enhance = [(0, _uniqueID["default"])()];
124
171
  function Success(props) {
125
- var _ref = arguments[0],
126
- _ref5;
172
+ var _ref2 = arguments[0],
173
+ _ref7;
127
174
  var Children = props.Children,
128
175
  styles = props.styles;
129
176
  var SSuccess = _flexBox.Box;
130
177
  var SEmail = 'div';
131
- return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SSuccess, _ref5.cn("SSuccess", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref))), /*#__PURE__*/_react["default"].createElement(SEmail, _ref5.cn("SEmail", {
178
+ return _ref7 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SSuccess, _ref7.cn("SSuccess", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref2))), /*#__PURE__*/_react["default"].createElement(SEmail, _ref7.cn("SEmail", {
132
179
  "aria-hidden": true
133
- })), /*#__PURE__*/_react["default"].createElement("span", _ref5.cn("span", {}), /*#__PURE__*/_react["default"].createElement(Children, _ref5.cn("Children", {}))));
180
+ })), /*#__PURE__*/_react["default"].createElement("span", _ref7.cn("span", {}), /*#__PURE__*/_react["default"].createElement(Children, _ref7.cn("Children", {}))));
134
181
  }
135
182
  // because it is used without a wrapper
136
183
  Success.style = style;
184
+ function Submit(props) {
185
+ var _ref3 = arguments[0],
186
+ _ref8;
187
+ var styles = props.styles;
188
+ var SSubmit = _button["default"];
189
+ return _ref8 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SSubmit, _ref8.cn("SSubmit", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
190
+ "type": 'submit',
191
+ "use": 'primary',
192
+ "theme": 'success'
193
+ }, _ref3))));
194
+ }
137
195
  function Cancel(props) {
138
- var _ref2 = arguments[0],
139
- _ref6;
196
+ var _ref4 = arguments[0],
197
+ _ref9;
140
198
  var styles = props.styles;
141
199
  var SCancel = _button["default"];
142
- return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCancel, _ref6.cn("SCancel", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
200
+ return _ref9 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCancel, _ref9.cn("SCancel", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
143
201
  "type": 'reset',
144
202
  "use": 'secondary',
145
203
  "theme": 'muted'
146
- }, _ref2))));
204
+ }, _ref4))));
147
205
  }
148
206
  function Notice(props) {
149
- var _ref3 = arguments[0],
150
- _ref7;
207
+ var _ref5 = arguments[0],
208
+ _ref10;
151
209
  var styles = props.styles,
152
210
  _props$theme = props.theme,
153
211
  theme = _props$theme === void 0 ? 'bg-secondary-neutral' : _props$theme,
154
212
  _props$use = props.use,
155
213
  use = _props$use === void 0 ? 'secondary' : _props$use;
156
214
  var SNotice = _notice.NoticeSmart;
157
- return _ref7 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SNotice, _ref7.cn("SNotice", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
215
+ return _ref10 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SNotice, _ref10.cn("SNotice", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
158
216
  "theme": theme,
159
217
  "use": use
160
- }, _ref3))));
218
+ }, _ref5))));
161
219
  }
162
220
  var _default = (0, _core["default"])(FeedbackForm, {
163
- Item: _FeedbackItem.FeedbackItem,
221
+ Item: Item,
164
222
  Success: Success,
165
- Submit: _SubmitButton.SubmitButton,
223
+ Submit: Submit,
166
224
  Cancel: Cancel,
167
225
  Notice: Notice
168
226
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackForm.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_reactFinalForm","_finalFormFocus","_button","_spinContainer","_notice","_flexBox","_FeedbackItem","_SubmitButton","_excluded","style","_index","sstyled","insert","FeedbackForm","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","createFocusDecorator","_createClass2","key","value","getItemProps","validateOnBlur","asProps","render","SFeedbackForm","Box","_this$asProps","Children","styles","forwardRef","loading","background","theme","other","_objectWithoutProperties2","createElement","Form","_extends2","decorators","focusDecorator","api","_ref4","cn","undefined","submitting","_objectSpread2","handleSubmit","origin","Component","Field","onSubmit","description","error","words","split","symbols","join","email","test","String","toLowerCase","Success","props","_ref","arguments[0]","_ref5","SSuccess","SEmail","assignProps","Cancel","_ref2","_ref6","SCancel","Button","Notice","_ref3","_ref7","_props$theme","_props$use","use","SNotice","NoticeSmart","_default","createComponent","Item","FeedbackItem","Submit","SubmitButton","exports"],"sources":["../../src/FeedbackForm.jsx"],"sourcesContent":["import React from 'react';\nimport { Field, Form } from 'react-final-form';\nimport createFocusDecorator from 'final-form-focus';\n\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport Button from '@semcore/button';\nimport SpinContainer from '@semcore/spin-container';\nimport { NoticeSmart } from '@semcore/notice';\nimport { Box } from '@semcore/flex-box';\n\nimport { FeedbackItem } from './component/feedback-item/FeedbackItem';\nimport { SubmitButton } from './component/submit-button/SubmitButton';\n\nimport style from './style/feedback-form.shadow.css';\n\nclass FeedbackForm extends Component {\n static displayName = 'FeedbackForm';\n static style = style;\n static FinalForm = {\n Field,\n Form,\n };\n\n static defaultProps = {\n onSubmit: () => {},\n };\n\n static validate = {\n description: (error) => (value = '') => {\n const words = value.split(/\\s+/);\n const symbols = words.join(' ');\n if (symbols.length < 10 || words.length < 3) {\n return error;\n }\n },\n email: (error) => (value = '') => {\n if (!/.+@.+\\..+/i.test(String(value).toLowerCase())) {\n return error;\n }\n },\n };\n\n focusDecorator = createFocusDecorator();\n\n getItemProps() {\n const { validateOnBlur } = this.asProps;\n\n return {\n validateOnBlur,\n };\n }\n\n render() {\n const SFeedbackForm = Box;\n const { Children, styles, forwardRef, loading, background, theme, ...other } = this.asProps;\n\n return (\n <Form decorators={[this.focusDecorator]} {...other}>\n {(api) =>\n sstyled(styles)(\n <SpinContainer\n background={background}\n theme={theme}\n size='xl'\n loading={loading === undefined ? api.submitting : loading}\n >\n <SFeedbackForm\n tag='form'\n noValidate\n method='POST'\n ref={forwardRef}\n {...other}\n onSubmit={api.handleSubmit}\n title='This is feedback'\n >\n {typeof Children.origin === 'function' ? Children.origin(api) : <Children />}\n </SFeedbackForm>\n </SpinContainer>,\n )\n }\n </Form>\n );\n }\n}\n\nfunction Success(props) {\n const { Children, styles } = props;\n const SSuccess = Root;\n const SEmail = 'div';\n\n return sstyled(styles)(\n <SSuccess render={Box}>\n <SEmail aria-hidden={true} />\n <span>\n <Children />\n </span>\n </SSuccess>,\n );\n}\n// because it is used without a wrapper\nSuccess.style = style;\n\nfunction Cancel(props) {\n const { styles } = props;\n const SCancel = Root;\n return sstyled(styles)(<SCancel render={Button} type='reset' use='secondary' theme='muted' />);\n}\n\nfunction Notice(props) {\n const { styles, theme = 'bg-secondary-neutral', use = 'secondary' } = props;\n const SNotice = Root;\n return sstyled(styles)(<SNotice render={NoticeSmart} theme={theme} use={use} />);\n}\n\nexport default createComponent(FeedbackForm, {\n Item: FeedbackItem,\n Success,\n Submit: SubmitButton,\n Cancel,\n Notice,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAIA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAJA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAF,sBAAA,CAAAF,OAAA;AAGA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,cAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAEA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AAAsE,IAAAW,SAAA;AAAA;AAAA,IAAAC,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;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,SAA6BpC,KAAK;IAAA,OAAO+C;EAAG,GAAAJ,KAAA,IAAI;AACjF;AAAC,IAAAO,QAAA,GAEc,IAAAC,gBAAe,EAACrF,YAAY,EAAE;EAC3CsF,IAAI,EAAEC,0BAAY;EAClBxB,OAAO,EAAPA,OAAO;EACPyB,MAAM,EAAEC,0BAAY;EACpBlB,MAAM,EAANA,MAAM;EACNK,MAAM,EAANA;AACF,CAAC,CAAC;AAAAc,OAAA,cAAAN,QAAA"}
1
+ {"version":3,"file":"FeedbackForm.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_reactFinalForm","_finalFormFocus","_button","_spinContainer","_tooltip","_notice","_flexBox","_pick","_uniqueID","_excluded","_excluded2","_excluded3","style","_index","sstyled","insert","FeedbackForm","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","createFocusDecorator","_createClass2","key","value","getItemProps","validateOnBlur","asProps","render","SFeedbackForm","Box","_this$asProps","Children","styles","forwardRef","loading","background","theme","other","_objectWithoutProperties2","createElement","Form","_extends2","decorators","focusDecorator","api","_ref6","cn","undefined","submitting","_objectSpread2","handleSubmit","origin","Component","Field","onSubmit","description","error","words","split","symbols","join","email","test","String","toLowerCase","TooltipProps","Item","_ref11","_ref","arguments[0]","tag","uid","props","tooltipProps","pick","ItemRoot","lastErrorRef","React","useRef","_ref12","_meta$error","input","meta","showError","submitFailed","invalid","touched","errorState","inputProps","state","current","visible","active","placement","flip","fallbackPlacements","Trigger","inline","role","assignProps","Popper","id","ignorePortalsStacking","enhance","uniqueIDEnhancement","Success","_ref2","_ref7","SSuccess","SEmail","Submit","_ref3","_ref8","SSubmit","Button","Cancel","_ref4","_ref9","SCancel","Notice","_ref5","_ref10","_props$theme","_props$use","use","SNotice","NoticeSmart","_default","createComponent","exports"],"sources":["../../src/FeedbackForm.jsx"],"sourcesContent":["import React from 'react';\nimport { Field, Form } from 'react-final-form';\nimport createFocusDecorator from 'final-form-focus';\n\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport Button from '@semcore/button';\nimport SpinContainer from '@semcore/spin-container';\nimport Tooltip from '@semcore/tooltip';\nimport { NoticeSmart } from '@semcore/notice';\nimport { Box } from '@semcore/flex-box';\nimport pick from '@semcore/utils/lib/pick';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\n\nimport style from './style/feedback-form.shadow.css';\n\nclass FeedbackForm extends Component {\n static displayName = 'FeedbackForm';\n static style = style;\n static FinalForm = {\n Field,\n Form,\n };\n\n static defaultProps = {\n onSubmit: () => {},\n };\n\n static validate = {\n description: (error) => (value = '') => {\n const words = value.split(/\\s+/);\n const symbols = words.join(' ');\n if (symbols.length < 10 || words.length < 3) {\n return error;\n }\n },\n email: (error) => (value = '') => {\n if (!/.+@.+\\..+/i.test(String(value).toLowerCase())) {\n return error;\n }\n },\n };\n\n focusDecorator = createFocusDecorator();\n\n getItemProps() {\n const { validateOnBlur } = this.asProps;\n\n return {\n validateOnBlur,\n };\n }\n\n render() {\n const SFeedbackForm = Box;\n const { Children, styles, forwardRef, loading, background, theme, ...other } = this.asProps;\n\n return (\n <Form decorators={[this.focusDecorator]} {...other}>\n {(api) =>\n sstyled(styles)(\n <SpinContainer\n background={background}\n theme={theme}\n size='xl'\n loading={loading === undefined ? api.submitting : loading}\n >\n <SFeedbackForm\n tag='form'\n noValidate\n method='POST'\n ref={forwardRef}\n {...other}\n onSubmit={api.handleSubmit}\n title='This is feedback'\n >\n {typeof Children.origin === 'function' ? Children.origin(api) : <Children />}\n </SFeedbackForm>\n </SpinContainer>,\n )\n }\n </Form>\n );\n }\n}\n\nconst TooltipProps = [\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\nfunction Item({ Children, tag, uid, ...props }) {\n const tooltipProps = pick(props, TooltipProps);\n const ItemRoot = Root;\n\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}>\n {tag && <ItemRoot render={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}\nItem.enhance = [uniqueIDEnhancement()];\n\nfunction Success(props) {\n const { Children, styles } = props;\n const SSuccess = Root;\n const SEmail = 'div';\n\n return sstyled(styles)(\n <SSuccess render={Box}>\n <SEmail aria-hidden={true} />\n <span>\n <Children />\n </span>\n </SSuccess>,\n );\n}\n// because it is used without a wrapper\nSuccess.style = style;\n\nfunction Submit(props) {\n const { styles } = props;\n const SSubmit = Root;\n return sstyled(styles)(<SSubmit render={Button} type='submit' use='primary' theme='success' />);\n}\n\nfunction Cancel(props) {\n const { styles } = props;\n const SCancel = Root;\n return sstyled(styles)(<SCancel render={Button} type='reset' use='secondary' theme='muted' />);\n}\n\nfunction Notice(props) {\n const { styles, theme = 'bg-secondary-neutral', use = 'secondary' } = props;\n const SNotice = Root;\n return sstyled(styles)(<SNotice render={NoticeSmart} theme={theme} use={use} />);\n}\n\nexport default createComponent(Feedb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EAAE;EAC3CgE,IAAI,EAAJA,IAAI;EACJuC,OAAO,EAAPA,OAAO;EACPK,MAAM,EAANA,MAAM;EACNK,MAAM,EAANA,MAAM;EACNI,MAAM,EAANA;AACF,CAAC,CAAC;AAAAU,OAAA,cAAAF,QAAA"}
@@ -1,14 +1,2 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "FeedbackRating", {
8
- enumerable: true,
9
- get: function get() {
10
- return _FeedbackRating["default"];
11
- }
12
- });
13
- var _FeedbackRating = _interopRequireDefault(require("./component/feedback-rating/FeedbackRating"));
14
2
  //# sourceMappingURL=index.d.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":["_FeedbackRating","_interopRequireDefault","require"],"sources":["../../src/index.d.ts"],"sourcesContent":["import { FormProps, FieldProps } from 'react-final-form';\n\nimport { Intergalactic } from '@semcore/core';\nimport Button from '@semcore/button';\nimport { NoticeSmart } from '@semcore/notice';\nimport { Box } from '@semcore/flex-box';\n\nimport { default as FeedbackRating } from './component/feedback-rating/FeedbackRating';\n\n/** @deprecated */\nexport type IFeedbackForm = FeedbackFormProps;\nexport type FeedbackFormProps = FormProps & {\n /* The event is called when the form is submitted */\n onSubmit: (values: any, form: any, callback?: (errors?: {}) => void) => {} | Promise<{}> | void;\n /**\n * The property is in charge of the spinner showing\n * */\n loading?: boolean;\n /**\n * Color of container spinner; you can use your own color\n */\n background?: string;\n /** Spinner theme. There are several default themes or you can use your own color\n * @default dark\n **/\n theme?: 'dark' | 'invert' | string;\n};\n\ndeclare const FeedbackForm: Intergalactic.Component<'form', FeedbackFormProps> & {\n Item: Intergalactic.Component<'div', FieldProps<any, any>>;\n Success: typeof Box;\n Submit: typeof Button;\n Cancel: typeof Button;\n Notice: typeof NoticeSmart;\n};\n\nexport default FeedbackForm;\n\nexport { FeedbackRating };\n"],"mappings":";;;;;;;;;;;;AAOA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { FormProps, FieldProps } from 'react-final-form';\n\nimport { Intergalactic } from '@semcore/core';\nimport Button from '@semcore/button';\nimport { NoticeSmart } from '@semcore/notice';\nimport { Box } from '@semcore/flex-box';\n\n/** @deprecated */\nexport type IFeedbackForm = FeedbackFormProps;\nexport type FeedbackFormProps = FormProps & {\n /* The event is called when the form is submitted */\n onSubmit: (values: any, form: any, callback?: (errors?: {}) => void) => {} | Promise<{}> | void;\n /**\n * The property is in charge of the spinner showing\n * */\n loading?: boolean;\n /**\n * Color of container spinner; you can use your own color\n */\n background?: string;\n /** Spinner theme. There are several default themes or you can use your own color\n * @default dark\n **/\n theme?: 'dark' | 'invert' | string;\n};\n\ndeclare const FeedbackForm: Intergalactic.Component<'form', FeedbackFormProps> & {\n Item: Intergalactic.Component<'div', FieldProps<any, any>>;\n Success: typeof Box;\n Submit: typeof Button;\n Cancel: typeof Button;\n Notice: typeof NoticeSmart;\n};\n\nexport default FeedbackForm;\n"],"mappings":""}
@@ -4,18 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- Object.defineProperty(exports, "FeedbackRating", {
8
- enumerable: true,
9
- get: function get() {
10
- return _FeedbackRating["default"];
11
- }
12
- });
13
7
  Object.defineProperty(exports, "default", {
14
8
  enumerable: true,
15
9
  get: function get() {
16
10
  return _FeedbackForm["default"];
17
11
  }
18
12
  });
19
- var _FeedbackRating = _interopRequireDefault(require("./component/feedback-rating/FeedbackRating"));
20
13
  var _FeedbackForm = _interopRequireDefault(require("./FeedbackForm"));
21
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_FeedbackRating","_interopRequireDefault","require","_FeedbackForm"],"sources":["../../src/index.js"],"sourcesContent":["import { default as FeedbackRating } from './component/feedback-rating/FeedbackRating';\n\nexport { default } from './FeedbackForm';\n\nexport { FeedbackRating };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_FeedbackForm","_interopRequireDefault","require"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './FeedbackForm';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA"}
@@ -8,28 +8,33 @@ import _inherits from "@babel/runtime/helpers/inherits";
8
8
  import _createSuper from "@babel/runtime/helpers/createSuper";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  import { sstyled as _sstyled } from 'intergalactic/utils/lib/core/index';
11
+ import { assignProps as _assignProps5 } from 'intergalactic/core';
12
+ import { assignProps as _assignProps4 } from 'intergalactic/core';
11
13
  import { assignProps as _assignProps3 } from 'intergalactic/core';
12
14
  import { assignProps as _assignProps2 } from 'intergalactic/core';
13
15
  import { assignProps as _assignProps } from 'intergalactic/core';
14
- var _excluded = ["Children", "styles", "forwardRef", "loading", "background", "theme"];
16
+ var _excluded = ["Children", "styles", "forwardRef", "loading", "background", "theme"],
17
+ _excluded2 = ["Children", "tag", "uid"],
18
+ _excluded3 = ["input", "meta"];
15
19
  import React from 'react';
16
20
  import { Field, Form } from 'react-final-form';
17
21
  import createFocusDecorator from 'final-form-focus';
18
22
  import createComponent, { Component, sstyled, Root } from 'intergalactic/core';
19
23
  import Button from 'intergalactic/button';
20
24
  import SpinContainer from 'intergalactic/spin-container';
25
+ import Tooltip from 'intergalactic/tooltip';
21
26
  import { NoticeSmart } from 'intergalactic/notice';
22
27
  import { Box } from 'intergalactic/flex-box';
23
- import { FeedbackItem } from './component/feedback-item/FeedbackItem';
24
- import { SubmitButton } from './component/submit-button/SubmitButton';
28
+ import pick from 'intergalactic/utils/lib/pick';
29
+ import uniqueIDEnhancement from 'intergalactic/utils/lib/uniqueID';
25
30
  /*__reshadow-styles__:"./style/feedback-form.shadow.css"*/
26
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SFeedbackForm_1srei_gg_{max-width:320px}.___SCancel_1srei_gg_,.___SSubmit_1srei_gg_{display:inline-flex;margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNotice_1srei_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-4x, 16px);border-width:1px 0 0;border-top-style:solid;border-radius:0 0 var(--intergalactic-surface-rounded, 6px) var(--intergalactic-surface-rounded, 6px)}.___SSuccess_1srei_gg_{display:flex;align-items:center;flex-direction:column;width:320px;padding:var(--intergalactic-spacing-10x, 40px);box-sizing:border-box}.___SEmail_1srei_gg_{margin-bottom:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));width:80px;height:80px;background-image:url(\"data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345E0A8'/%3E%3Cpath d='M29 45.2852L29.2 45.6352C35.39 42.1852 53.39 31.9652 56.73 35.1052C55.6 32.0052 39.7 35.4352 29 45.2852Z' fill='white'/%3E%3Cpath d='M28.44 31.6343C26.63 37.6343 19.23 56.1043 15 61.9443L18 62.8543L19.58 61.5343C23.8 51.9843 29.58 35.5343 29.89 30.0743C29.39 29.8143 28.93 30.2143 28.44 31.6343Z' fill='white'/%3E%3Cpath d='M15 62.0078C19.23 56.1678 26.63 37.7378 28.44 31.6678C30.25 25.5978 33.49 37.6678 31.67 42.7878' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 45.9424C38.68 35.5824 55.27 31.9424 56.43 35.1024C57.12 36.9924 43 41.3624 38.02 47.4224' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44.45 21.93C41.21 20.77 35.86 19.04 33 18.24C37.12 16.41 70 4.24 72.67 3C71.75 7.11 67.75 21.28 65.96 27.93C61.13 26.25 56.23 24.78 53.03 23.74C51.0298 26.3907 49.2219 29.1812 47.62 32.09C46.44 28.23 45.29 23.77 44.45 21.93Z' fill='white' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M45 22.08L61.74 11' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M53 23.73L72.64 3' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48 32.58L55.86 25' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.23 30.77L51.69 25.13L52.66 24L54.73 24.61L55.16 24.48L51.8 27.91L49.33 30.18L48 31.29L48.23 30.77Z' fill='black'/%3E%3Cpath d='M33.81 22L23 27.12' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40.89 23L34 27.37' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M62.04 29L58 38.85' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46.68 41C50.29 43.42 44.81 49.52 43 51.12' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M47.17 44C51.31 46.09 48.33 51.76 46 54.6' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.86 49C54.37 53.48 36.31 72.72 35 73.78' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='mask0_11950_117175' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='6' width='73' height='73'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345DFA7'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_11950_117175)'%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' fill='black'/%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A\")}" /*__inner_css_end__*/, "1srei_gg_") /*__reshadow_css_end__*/, {
27
- "__SFeedbackForm": "___SFeedbackForm_1srei_gg_",
28
- "__SSubmit": "___SSubmit_1srei_gg_",
29
- "__SCancel": "___SCancel_1srei_gg_",
30
- "__SNotice": "___SNotice_1srei_gg_",
31
- "__SSuccess": "___SSuccess_1srei_gg_",
32
- "__SEmail": "___SEmail_1srei_gg_"
31
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SFeedbackForm_1wfx7_gg_{max-width:320px}.___SCancel_1wfx7_gg_,.___SSubmit_1wfx7_gg_{display:inline-flex;margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNotice_1wfx7_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-4x, 16px);border-width:1px 0 0;border-top-style:solid;border-radius:0 0 var(--intergalactic-surface-rounded, 6px) var(--intergalactic-surface-rounded, 6px)}.___SSuccess_1wfx7_gg_{display:flex;align-items:center;flex-direction:column;width:320px;padding:var(--intergalactic-spacing-10x, 40px);box-sizing:border-box}.___SEmail_1wfx7_gg_{margin-bottom:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));width:80px;height:80px;background-image:url(\"data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345E0A8'/%3E%3Cpath d='M29 45.2852L29.2 45.6352C35.39 42.1852 53.39 31.9652 56.73 35.1052C55.6 32.0052 39.7 35.4352 29 45.2852Z' fill='white'/%3E%3Cpath d='M28.44 31.6343C26.63 37.6343 19.23 56.1043 15 61.9443L18 62.8543L19.58 61.5343C23.8 51.9843 29.58 35.5343 29.89 30.0743C29.39 29.8143 28.93 30.2143 28.44 31.6343Z' fill='white'/%3E%3Cpath d='M15 62.0078C19.23 56.1678 26.63 37.7378 28.44 31.6678C30.25 25.5978 33.49 37.6678 31.67 42.7878' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 45.9424C38.68 35.5824 55.27 31.9424 56.43 35.1024C57.12 36.9924 43 41.3624 38.02 47.4224' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44.45 21.93C41.21 20.77 35.86 19.04 33 18.24C37.12 16.41 70 4.24 72.67 3C71.75 7.11 67.75 21.28 65.96 27.93C61.13 26.25 56.23 24.78 53.03 23.74C51.0298 26.3907 49.2219 29.1812 47.62 32.09C46.44 28.23 45.29 23.77 44.45 21.93Z' fill='white' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M45 22.08L61.74 11' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M53 23.73L72.64 3' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48 32.58L55.86 25' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.23 30.77L51.69 25.13L52.66 24L54.73 24.61L55.16 24.48L51.8 27.91L49.33 30.18L48 31.29L48.23 30.77Z' fill='black'/%3E%3Cpath d='M33.81 22L23 27.12' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40.89 23L34 27.37' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M62.04 29L58 38.85' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46.68 41C50.29 43.42 44.81 49.52 43 51.12' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M47.17 44C51.31 46.09 48.33 51.76 46 54.6' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.86 49C54.37 53.48 36.31 72.72 35 73.78' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='mask0_11950_117175' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='6' width='73' height='73'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345DFA7'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_11950_117175)'%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' fill='black'/%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A\")}" /*__inner_css_end__*/, "1wfx7_gg_") /*__reshadow_css_end__*/, {
32
+ "__SFeedbackForm": "___SFeedbackForm_1wfx7_gg_",
33
+ "__SSubmit": "___SSubmit_1wfx7_gg_",
34
+ "__SCancel": "___SCancel_1wfx7_gg_",
35
+ "__SNotice": "___SNotice_1wfx7_gg_",
36
+ "__SSuccess": "___SSuccess_1wfx7_gg_",
37
+ "__SEmail": "___SEmail_1wfx7_gg_"
33
38
  });
34
39
  var FeedbackForm = /*#__PURE__*/function (_Component) {
35
40
  _inherits(FeedbackForm, _Component);
@@ -67,13 +72,13 @@ var FeedbackForm = /*#__PURE__*/function (_Component) {
67
72
  return /*#__PURE__*/React.createElement(Form, _extends({
68
73
  decorators: [this.focusDecorator]
69
74
  }, other), function (api) {
70
- var _ref4;
71
- return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(SpinContainer, _ref4.cn("SpinContainer", {
75
+ var _ref6;
76
+ return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SpinContainer, _ref6.cn("SpinContainer", {
72
77
  "background": background,
73
78
  "theme": theme,
74
79
  "size": 'xl',
75
80
  "loading": loading === undefined ? api.submitting : loading
76
- }), /*#__PURE__*/React.createElement(SFeedbackForm, _ref4.cn("SFeedbackForm", _objectSpread(_objectSpread({
81
+ }), /*#__PURE__*/React.createElement(SFeedbackForm, _ref6.cn("SFeedbackForm", _objectSpread(_objectSpread({
77
82
  "tag": 'form',
78
83
  "noValidate": true,
79
84
  "method": 'POST',
@@ -81,7 +86,7 @@ var FeedbackForm = /*#__PURE__*/function (_Component) {
81
86
  }, other), {}, {
82
87
  "onSubmit": api.handleSubmit,
83
88
  "title": 'This is feedback'
84
- })), typeof Children.origin === 'function' ? Children.origin(api) : /*#__PURE__*/React.createElement(Children, _ref4.cn("Children", {}))));
89
+ })), typeof Children.origin === 'function' ? Children.origin(api) : /*#__PURE__*/React.createElement(Children, _ref6.cn("Children", {}))));
85
90
  });
86
91
  }
87
92
  }]);
@@ -116,48 +121,103 @@ _defineProperty(FeedbackForm, "validate", {
116
121
  };
117
122
  }
118
123
  });
124
+ var TooltipProps = ['title', 'theme', 'strategy', 'modifiers', 'placement', 'interaction', 'timeout', 'visible', 'defaultVisible', 'onVisibleChange', 'offset', 'preventOverflow', 'arrow', 'flip', 'computeStyles', 'eventListeners', 'onFirstUpdate'];
125
+ function Item(_ref11) {
126
+ var _ref = arguments[0];
127
+ var Children = _ref11.Children,
128
+ tag = _ref11.tag,
129
+ uid = _ref11.uid,
130
+ props = _objectWithoutProperties(_ref11, _excluded2);
131
+ var tooltipProps = pick(props, TooltipProps);
132
+ var ItemRoot = tag;
133
+ var lastErrorRef = React.useRef(undefined);
134
+ return /*#__PURE__*/React.createElement(Field, props, function (_ref12) {
135
+ var _meta$error;
136
+ var input = _ref12.input,
137
+ meta = _ref12.meta,
138
+ other = _objectWithoutProperties(_ref12, _excluded3);
139
+ var showError = other.validateOnBlur === false ? meta.submitFailed : true;
140
+ var invalid = meta.invalid && meta.touched;
141
+ var errorState = showError && invalid;
142
+ var inputProps = _objectSpread(_objectSpread({}, input), {}, {
143
+ state: errorState ? 'invalid' : 'normal',
144
+ 'aria-invalid': errorState ? true : false,
145
+ 'aria-errormessage': uid
146
+ });
147
+ if (meta !== null && meta !== void 0 && meta.error) lastErrorRef.current = meta.error;
148
+ return /*#__PURE__*/React.createElement(Tooltip, _extends({
149
+ visible: errorState && meta.active,
150
+ theme: "warning",
151
+ placement: "left",
152
+ flip: {
153
+ fallbackPlacements: ['right', 'bottom']
154
+ }
155
+ }, tooltipProps), /*#__PURE__*/React.createElement(Tooltip.Trigger, {
156
+ inline: false,
157
+ role: undefined
158
+ }, tag && /*#__PURE__*/React.createElement(ItemRoot, _assignProps(_objectSpread({}, inputProps), _ref)), typeof Children.origin === 'function' && Children.origin(_objectSpread({
159
+ input: inputProps,
160
+ meta: meta
161
+ }, other))), /*#__PURE__*/React.createElement(Tooltip.Popper, {
162
+ id: uid,
163
+ ignorePortalsStacking: true
164
+ }, (_meta$error = meta.error) !== null && _meta$error !== void 0 ? _meta$error : lastErrorRef.current));
165
+ });
166
+ }
167
+ Item.enhance = [uniqueIDEnhancement()];
119
168
  function Success(props) {
120
- var _ref = arguments[0],
121
- _ref5;
169
+ var _ref2 = arguments[0],
170
+ _ref7;
122
171
  var Children = props.Children,
123
172
  styles = props.styles;
124
173
  var SSuccess = Box;
125
174
  var SEmail = 'div';
126
- return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SSuccess, _ref5.cn("SSuccess", _objectSpread({}, _assignProps({}, _ref))), /*#__PURE__*/React.createElement(SEmail, _ref5.cn("SEmail", {
175
+ return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(SSuccess, _ref7.cn("SSuccess", _objectSpread({}, _assignProps2({}, _ref2))), /*#__PURE__*/React.createElement(SEmail, _ref7.cn("SEmail", {
127
176
  "aria-hidden": true
128
- })), /*#__PURE__*/React.createElement("span", _ref5.cn("span", {}), /*#__PURE__*/React.createElement(Children, _ref5.cn("Children", {}))));
177
+ })), /*#__PURE__*/React.createElement("span", _ref7.cn("span", {}), /*#__PURE__*/React.createElement(Children, _ref7.cn("Children", {}))));
129
178
  }
130
179
  // because it is used without a wrapper
131
180
  Success.style = style;
181
+ function Submit(props) {
182
+ var _ref3 = arguments[0],
183
+ _ref8;
184
+ var styles = props.styles;
185
+ var SSubmit = Button;
186
+ return _ref8 = sstyled(styles), /*#__PURE__*/React.createElement(SSubmit, _ref8.cn("SSubmit", _objectSpread({}, _assignProps3({
187
+ "type": 'submit',
188
+ "use": 'primary',
189
+ "theme": 'success'
190
+ }, _ref3))));
191
+ }
132
192
  function Cancel(props) {
133
- var _ref2 = arguments[0],
134
- _ref6;
193
+ var _ref4 = arguments[0],
194
+ _ref9;
135
195
  var styles = props.styles;
136
196
  var SCancel = Button;
137
- return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SCancel, _ref6.cn("SCancel", _objectSpread({}, _assignProps2({
197
+ return _ref9 = sstyled(styles), /*#__PURE__*/React.createElement(SCancel, _ref9.cn("SCancel", _objectSpread({}, _assignProps4({
138
198
  "type": 'reset',
139
199
  "use": 'secondary',
140
200
  "theme": 'muted'
141
- }, _ref2))));
201
+ }, _ref4))));
142
202
  }
143
203
  function Notice(props) {
144
- var _ref3 = arguments[0],
145
- _ref7;
204
+ var _ref5 = arguments[0],
205
+ _ref10;
146
206
  var styles = props.styles,
147
207
  _props$theme = props.theme,
148
208
  theme = _props$theme === void 0 ? 'bg-secondary-neutral' : _props$theme,
149
209
  _props$use = props.use,
150
210
  use = _props$use === void 0 ? 'secondary' : _props$use;
151
211
  var SNotice = NoticeSmart;
152
- return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(SNotice, _ref7.cn("SNotice", _objectSpread({}, _assignProps3({
212
+ return _ref10 = sstyled(styles), /*#__PURE__*/React.createElement(SNotice, _ref10.cn("SNotice", _objectSpread({}, _assignProps5({
153
213
  "theme": theme,
154
214
  "use": use
155
- }, _ref3))));
215
+ }, _ref5))));
156
216
  }
157
217
  export default createComponent(FeedbackForm, {
158
- Item: FeedbackItem,
218
+ Item: Item,
159
219
  Success: Success,
160
- Submit: SubmitButton,
220
+ Submit: Submit,
161
221
  Cancel: Cancel,
162
222
  Notice: Notice
163
223
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackForm.js","names":["React","Field","Form","createFocusDecorator","createComponent","Component","sstyled","Root","Button","SpinContainer","NoticeSmart","Box","FeedbackItem","SubmitButton","style","_sstyled","insert","FeedbackForm","_Component","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty","_assertThisInitialized","_createClass","key","value","getItemProps","validateOnBlur","asProps","render","SFeedbackForm","_this$asProps","Children","styles","forwardRef","loading","background","theme","other","_objectWithoutProperties","_excluded","createElement","_extends","decorators","focusDecorator","api","_ref4","cn","undefined","submitting","_objectSpread","handleSubmit","origin","onSubmit","description","error","words","split","symbols","join","email","test","String","toLowerCase","Success","props","_ref","arguments[0]","_ref5","SSuccess","SEmail","_assignProps","Cancel","_ref2","_ref6","SCancel","_assignProps2","Notice","_ref3","_ref7","_props$theme","_props$use","use","SNotice","_assignProps3","Item","Submit"],"sources":["../../src/FeedbackForm.jsx"],"sourcesContent":["import React from 'react';\nimport { Field, Form } from 'react-final-form';\nimport createFocusDecorator from 'final-form-focus';\n\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport Button from '@semcore/button';\nimport SpinContainer from '@semcore/spin-container';\nimport { NoticeSmart } from '@semcore/notice';\nimport { Box } from '@semcore/flex-box';\n\nimport { FeedbackItem } from './component/feedback-item/FeedbackItem';\nimport { SubmitButton } from './component/submit-button/SubmitButton';\n\nimport style from './style/feedback-form.shadow.css';\n\nclass FeedbackForm extends Component {\n static displayName = 'FeedbackForm';\n static style = style;\n static FinalForm = {\n Field,\n Form,\n };\n\n static defaultProps = {\n onSubmit: () => {},\n };\n\n static validate = {\n description: (error) => (value = '') => {\n const words = value.split(/\\s+/);\n const symbols = words.join(' ');\n if (symbols.length < 10 || words.length < 3) {\n return error;\n }\n },\n email: (error) => (value = '') => {\n if (!/.+@.+\\..+/i.test(String(value).toLowerCase())) {\n return error;\n }\n },\n };\n\n focusDecorator = createFocusDecorator();\n\n getItemProps() {\n const { validateOnBlur } = this.asProps;\n\n return {\n validateOnBlur,\n };\n }\n\n render() {\n const SFeedbackForm = Box;\n const { Children, styles, forwardRef, loading, background, theme, ...other } = this.asProps;\n\n return (\n <Form decorators={[this.focusDecorator]} {...other}>\n {(api) =>\n sstyled(styles)(\n <SpinContainer\n background={background}\n theme={theme}\n size='xl'\n loading={loading === undefined ? api.submitting : loading}\n >\n <SFeedbackForm\n tag='form'\n noValidate\n method='POST'\n ref={forwardRef}\n {...other}\n onSubmit={api.handleSubmit}\n title='This is feedback'\n >\n {typeof Children.origin === 'function' ? Children.origin(api) : <Children />}\n </SFeedbackForm>\n </SpinContainer>,\n )\n }\n </Form>\n );\n }\n}\n\nfunction Success(props) {\n const { Children, styles } = props;\n const SSuccess = Root;\n const SEmail = 'div';\n\n return sstyled(styles)(\n <SSuccess render={Box}>\n <SEmail aria-hidden={true} />\n <span>\n <Children />\n </span>\n </SSuccess>,\n );\n}\n// because it is used without a wrapper\nSuccess.style = style;\n\nfunction Cancel(props) {\n const { styles } = props;\n const SCancel = Root;\n return sstyled(styles)(<SCancel render={Button} type='reset' use='secondary' theme='muted' />);\n}\n\nfunction Notice(props) {\n const { styles, theme = 'bg-secondary-neutral', use = 'secondary' } = props;\n const SNotice = Root;\n return sstyled(styles)(<SNotice render={NoticeSmart} theme={theme} use={use} />);\n}\n\nexport default createComponent(FeedbackForm, {\n Item: FeedbackItem,\n Success,\n Submit: SubmitButton,\n Cancel,\n Notice,\n});\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,QAAQ,kBAAkB;AAC9C,OAAOC,oBAAoB,MAAM,kBAAkB;AAEnD,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,aAAa,MAAM,yBAAyB;AACnD,SAASC,WAAW,QAAQ,iBAAiB;AAC7C,SAASC,GAAG,QAAQ,mBAAmB;AAEvC,SAASC,YAAY,QAAQ,wCAAwC;AACrE,SAASC,YAAY,QAAQ,wCAAwC;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAIhEC,YAAY,0BAAAC,UAA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AAM;EACNK,MAAM,EAANA;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"FeedbackForm.js","names":["React","Field","Form","createFocusDecorator","createComponent","Component","sstyled","Root","Button","SpinContainer","Tooltip","NoticeSmart","Box","pick","uniqueIDEnhancement","style","_sstyled","insert","FeedbackForm","_Component","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty","_assertThisInitialized","_createClass","key","value","getItemProps","validateOnBlur","asProps","render","SFeedbackForm","_this$asProps","Children","styles","forwardRef","loading","background","theme","other","_objectWithoutProperties","_excluded","createElement","_extends","decorators","focusDecorator","api","_ref6","cn","undefined","submitting","_objectSpread","handleSubmit","origin","onSubmit","description","error","words","split","symbols","join","email","test","String","toLowerCase","TooltipProps","Item","_ref11","_ref","arguments[0]","tag","uid","props","_excluded2","tooltipProps","ItemRoot","lastErrorRef","useRef","_ref12","_meta$error","input","meta","_excluded3","showError","submitFailed","invalid","touched","errorState","inputProps","state","current","visible","active","placement","flip","fallbackPlacements","Trigger","inline","role","_assignProps","Popper","id","ignorePortalsStacking","enhance","Success","_ref2","_ref7","SSuccess","SEmail","_assignProps2","Submit","_ref3","_ref8","SSubmit","_assignProps3","Cancel","_ref4","_ref9","SCancel","_assignProps4","Notice","_ref5","_ref10","_props$theme","_props$use","use","SNotice","_assignProps5"],"sources":["../../src/FeedbackForm.jsx"],"sourcesContent":["import React from 'react';\nimport { Field, Form } from 'react-final-form';\nimport createFocusDecorator from 'final-form-focus';\n\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport Button from '@semcore/button';\nimport SpinContainer from '@semcore/spin-container';\nimport Tooltip from '@semcore/tooltip';\nimport { NoticeSmart } from '@semcore/notice';\nimport { Box } from '@semcore/flex-box';\nimport pick from '@semcore/utils/lib/pick';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\n\nimport style from './style/feedback-form.shadow.css';\n\nclass FeedbackForm extends Component {\n static displayName = 'FeedbackForm';\n static style = style;\n static FinalForm = {\n Field,\n Form,\n };\n\n static defaultProps = {\n onSubmit: () => {},\n };\n\n static validate = {\n description: (error) => (value = '') => {\n const words = value.split(/\\s+/);\n const symbols = words.join(' ');\n if (symbols.length < 10 || words.length < 3) {\n return error;\n }\n },\n email: (error) => (value = '') => {\n if (!/.+@.+\\..+/i.test(String(value).toLowerCase())) {\n return error;\n }\n },\n };\n\n focusDecorator = createFocusDecorator();\n\n getItemProps() {\n const { validateOnBlur } = this.asProps;\n\n return {\n validateOnBlur,\n };\n }\n\n render() {\n const SFeedbackForm = Box;\n const { Children, styles, forwardRef, loading, background, theme, ...other } = this.asProps;\n\n return (\n <Form decorators={[this.focusDecorator]} {...other}>\n {(api) =>\n sstyled(styles)(\n <SpinContainer\n background={background}\n theme={theme}\n size='xl'\n loading={loading === undefined ? api.submitting : loading}\n >\n <SFeedbackForm\n tag='form'\n noValidate\n method='POST'\n ref={forwardRef}\n {...other}\n onSubmit={api.handleSubmit}\n title='This is feedback'\n >\n {typeof Children.origin === 'function' ? Children.origin(api) : <Children />}\n </SFeedbackForm>\n </SpinContainer>,\n )\n }\n </Form>\n );\n }\n}\n\nconst TooltipProps = [\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\nfunction Item({ Children, tag, uid, ...props }) {\n const tooltipProps = pick(props, TooltipProps);\n const ItemRoot = Root;\n\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}>\n {tag && <ItemRoot render={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}\nItem.enhance = [uniqueIDEnhancement()];\n\nfunction Success(props) {\n const { Children, styles } = props;\n const SSuccess = Root;\n const SEmail = 'div';\n\n return sstyled(styles)(\n <SSuccess render={Box}>\n <SEmail aria-hidden={true} />\n <span>\n <Children />\n </span>\n </SSuccess>,\n );\n}\n// because it is used without a wrapper\nSuccess.style = style;\n\nfunction Submit(props) {\n const { styles } = props;\n const SSubmit = Root;\n return sstyled(styles)(<SSubmit render={Button} type='submit' use='primary' theme='success' />);\n}\n\nfunction Cancel(props) {\n const { styles } = props;\n const SCancel = Root;\n return sstyled(styles)(<SCancel render={Button} type='reset' use='secondary' theme='muted' />);\n}\n\nfunction Notice(props) {\n const { styles, theme = 'bg-secondary-neutral', use = 'secondary' } = props;\n const SNotice = Root;\n return sstyled(styles)(<SNotice render={NoticeSmart} theme={theme} use={use} />);\n}\n\nexport default createComponent(FeedbackForm, {\n Item,\n Success,\n Submit,\n Cancel,\n Notice,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,QAAQ,kBAAkB;AAC9C,OAAOC,oBAAoB,MAAM,kBAAkB;AAEnD,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,aAAa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,YAAA;IAAAqD,MAAA;EACrB,IAAQxF,MAAM,GAAwDsC,KAAK,CAAnEtC,MAAM;IAAAyF,YAAA,GAAwDnD,KAAK,CAA3DlC,KAAK;IAALA,KAAK,GAAAqF,YAAA,cAAG,sBAAsB,GAAAA,YAAA;IAAAC,UAAA,GAAwBpD,KAAK,CAA3BqD,GAAG;IAAHA,GAAG,GAAAD,UAAA,cAAG,WAAW,GAAAA,UAAA;EACjE,IAAME,OAAO,GAC2B/H,WAAW;EAAnD,OAAA2H,MAAA,GAAOhI,OAAO,CAACwC,MAAM,CAAC,eAAC9C,KAAA,CAAAsD,aAAA,CAACoF,OAAO,EAAAJ,MAAA,CAAA1E,EAAA,YAAAG,aAAA,KAAA4E,aAAA;IAAA,SAA6BzF,KAAK;IAAA,OAAOuF;EAAG,GAAAJ,KAAA,IAAI;AACjF;AAEA,eAAejI,eAAe,CAACc,YAAY,EAAE;EAC3C4D,IAAI,EAAJA,IAAI;EACJsC,OAAO,EAAPA,OAAO;EACPM,MAAM,EAANA,MAAM;EACNK,MAAM,EAANA,MAAM;EACNK,MAAM,EAANA;AACF,CAAC,CAAC"}
@@ -1,6 +1,2 @@
1
- import { default as FeedbackRating } from './component/feedback-rating/FeedbackRating';
2
-
3
- /** @deprecated */
4
-
5
- export { FeedbackRating };
1
+ export {};
6
2
  //# sourceMappingURL=index.d.js.map