intergalactic 15.104.1 → 15.105.0-prerelease.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.
- package/CHANGELOG.md +23 -0
- package/button/index.d.ts +6 -0
- package/button/lib/cjs/Button.js +84 -67
- package/button/lib/cjs/Button.js.map +1 -1
- package/button/lib/cjs/index.d.js.map +1 -1
- package/button/lib/es6/Button.js +85 -67
- package/button/lib/es6/Button.js.map +1 -1
- package/button/lib/es6/index.d.js.map +1 -1
- package/button/lib/types/index.d.ts +6 -0
- package/components.json +5 -5
- package/data-table/Head.d.ts +4 -1
- package/data-table/lib/cjs/Body.js +3 -3
- package/data-table/lib/cjs/DataTable.js +36 -37
- package/data-table/lib/cjs/DataTable.js.map +1 -1
- package/data-table/lib/cjs/Head.js +13 -8
- package/data-table/lib/cjs/Head.js.map +1 -1
- package/data-table/lib/cjs/style/data-table.shadow.css +7 -4
- package/data-table/lib/es6/Body.js +3 -3
- package/data-table/lib/es6/DataTable.js +36 -37
- package/data-table/lib/es6/DataTable.js.map +1 -1
- package/data-table/lib/es6/Head.js +13 -8
- package/data-table/lib/es6/Head.js.map +1 -1
- package/data-table/lib/es6/style/data-table.shadow.css +7 -4
- package/data-table/lib/types/Head.d.ts +4 -1
- package/data-table/package.json +1 -1
- package/feedback-form/lib/cjs/FeedbackForm.js +9 -9
- package/feedback-form/lib/cjs/FeedbackForm.js.map +1 -1
- package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +13 -16
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/lib/es6/FeedbackForm.js +9 -9
- package/feedback-form/lib/es6/FeedbackForm.js.map +1 -1
- package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +9 -12
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
- package/feedback-form/package.json +1 -1
- package/fullscreen-modal/index.d.ts +2 -2
- package/fullscreen-modal/lib/cjs/index.d.js.map +1 -1
- package/fullscreen-modal/lib/es6/index.d.js.map +1 -1
- package/fullscreen-modal/lib/types/index.d.ts +2 -2
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/cjs/translations/de.json +1 -1
- package/inline-edit/lib/cjs/translations/es.json +1 -1
- package/inline-edit/lib/cjs/translations/fr.json +1 -1
- package/inline-edit/lib/cjs/translations/it.json +1 -1
- package/inline-edit/lib/cjs/translations/ja.json +1 -1
- package/inline-edit/lib/cjs/translations/ko.json +1 -1
- package/inline-edit/lib/cjs/translations/nl.json +1 -1
- package/inline-edit/lib/cjs/translations/pl.json +1 -1
- package/inline-edit/lib/cjs/translations/pt.json +1 -1
- package/inline-edit/lib/cjs/translations/sv.json +1 -1
- package/inline-edit/lib/cjs/translations/tr.json +1 -1
- package/inline-edit/lib/cjs/translations/vi.json +1 -1
- package/inline-edit/lib/cjs/translations/zh.json +1 -1
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/translations/de.json +1 -1
- package/inline-edit/lib/es6/translations/es.json +1 -1
- package/inline-edit/lib/es6/translations/fr.json +1 -1
- package/inline-edit/lib/es6/translations/it.json +1 -1
- package/inline-edit/lib/es6/translations/ja.json +1 -1
- package/inline-edit/lib/es6/translations/ko.json +1 -1
- package/inline-edit/lib/es6/translations/nl.json +1 -1
- package/inline-edit/lib/es6/translations/pl.json +1 -1
- package/inline-edit/lib/es6/translations/pt.json +1 -1
- package/inline-edit/lib/es6/translations/sv.json +1 -1
- package/inline-edit/lib/es6/translations/tr.json +1 -1
- package/inline-edit/lib/es6/translations/vi.json +1 -1
- package/inline-edit/lib/es6/translations/zh.json +1 -1
- package/inline-edit/package.json +1 -1
- package/modal/index.d.ts +2 -1
- package/modal/lib/cjs/index.d.js.map +1 -1
- package/modal/lib/es6/index.d.js.map +1 -1
- package/modal/lib/types/index.d.ts +2 -1
- package/notice/index.d.ts +2 -2
- package/notice/lib/cjs/Notice.js +19 -17
- package/notice/lib/cjs/Notice.js.map +1 -1
- package/notice/lib/cjs/index.d.js.map +1 -1
- package/notice/lib/cjs/style/notice.shadow.css +3 -1
- package/notice/lib/es6/Notice.js +19 -17
- package/notice/lib/es6/Notice.js.map +1 -1
- package/notice/lib/es6/index.d.js.map +1 -1
- package/notice/lib/es6/style/notice.shadow.css +3 -1
- package/notice/lib/types/index.d.ts +2 -2
- package/notice/package.json +1 -1
- package/package.json +1 -1
- package/side-panel/index.d.ts +2 -1
- package/side-panel/lib/cjs/index.d.js.map +1 -1
- package/side-panel/lib/es6/index.d.js.map +1 -1
- package/side-panel/lib/types/index.d.ts +2 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/cjs/translations/de.json +6 -5
- package/time-picker/lib/cjs/translations/es.json +6 -5
- package/time-picker/lib/cjs/translations/fr.json +6 -5
- package/time-picker/lib/cjs/translations/it.json +6 -5
- package/time-picker/lib/cjs/translations/ja.json +6 -5
- package/time-picker/lib/cjs/translations/ko.json +6 -5
- package/time-picker/lib/cjs/translations/nl.json +6 -5
- package/time-picker/lib/cjs/translations/pl.json +6 -5
- package/time-picker/lib/cjs/translations/pt.json +6 -5
- package/time-picker/lib/cjs/translations/sv.json +6 -5
- package/time-picker/lib/cjs/translations/tr.json +6 -5
- package/time-picker/lib/cjs/translations/vi.json +6 -5
- package/time-picker/lib/cjs/translations/zh.json +6 -5
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/time-picker/lib/es6/translations/de.json +6 -5
- package/time-picker/lib/es6/translations/es.json +6 -5
- package/time-picker/lib/es6/translations/fr.json +6 -5
- package/time-picker/lib/es6/translations/it.json +6 -5
- package/time-picker/lib/es6/translations/ja.json +6 -5
- package/time-picker/lib/es6/translations/ko.json +6 -5
- package/time-picker/lib/es6/translations/nl.json +6 -5
- package/time-picker/lib/es6/translations/pl.json +6 -5
- package/time-picker/lib/es6/translations/pt.json +6 -5
- package/time-picker/lib/es6/translations/sv.json +6 -5
- package/time-picker/lib/es6/translations/tr.json +6 -5
- package/time-picker/lib/es6/translations/vi.json +6 -5
- package/time-picker/lib/es6/translations/zh.json +6 -5
- package/time-picker/package.json +1 -1
@@ -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 >\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 = 'muted', 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,KA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GAAwBhB,KAAK,CAA3BiB,GAAG;IAAHA,GAAG,GAAAD,UAAA,cAAG,WAAW,GAAAA,UAAA;EAClD,IAAME,OAAO,GAC2BrF,WAAW;EAAnD,OAAAiF,KAAA,GAAOrF,OAAO,CAACuC,MAAM,CAAC,eAAC7C,KAAA,CAAAqD,aAAA,CAAC0C,OAAO,EAAAJ,KAAA,CAAAhC,EAAA,YAAAG,aAAA,KAAAkC,aAAA;IAAA,
|
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 >\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 = 'muted', use = 'secondary' } = props;\n const SNotice = Root;\n return sstyled(styles)(<SNotice render={NoticeSmart} use:theme={theme} use: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;AACz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3BiB,GAAG;IAAHA,GAAG,GAAAD,UAAA,cAAG,WAAW,GAAAA,UAAA;EAClD,IAAME,OAAO,GAC2BrF,WAAW;EAAnD,OAAAiF,KAAA,GAAOrF,OAAO,CAACuC,MAAM,CAAC,eAAC7C,KAAA,CAAAqD,aAAA,CAAC0C,OAAO,EAAAJ,KAAA,CAAAhC,EAAA,YAAAG,aAAA,KAAAkC,aAAA;IAAA,aAAiC/C,KAAK;IAAA,WAAW6C;EAAG,GAAAJ,KAAA,IAAI;AACzF;AAEA,eAAetF,eAAe,CAACa,YAAY,EAAE;EAC3CgF,IAAI,EAAErF,YAAY;EAClBgE,OAAO,EAAPA,OAAO;EACPsB,MAAM,EAAErF,YAAY;EACpBuE,MAAM,EAANA,MAAM;EACNK,MAAM,EAANA;AACF,CAAC,CAAC"}
|
@@ -12,9 +12,9 @@ import React from 'react';
|
|
12
12
|
import createComponent, { Component, Root, sstyled } from 'intergalactic/core';
|
13
13
|
import { Box } from 'intergalactic/flex-box';
|
14
14
|
/*__reshadow-styles__:"../../style/checkbox-button.shadow.css"*/
|
15
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
16
|
-
"__SCheckboxButton": "
|
17
|
-
"_checked": "
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCheckboxButton_2p7k5_gg_{margin-top:var(--intergalactic-spacing-2x, 8px);border:1px solid var(--intergalactic-border-primary, #c4c7cf);border-radius:var(--intergalactic-rounded-medium, 6px)}.___SCheckboxButton_2p7k5_gg_ label{width:100%;padding:var(--intergalactic-spacing-3x, 12px);box-sizing:border-box}.___SCheckboxButton_2p7k5_gg_.__checked_2p7k5_gg_{cursor:pointer;border-color:var(--intergalactic-border-info-active, #006dca);background-color:rgba(0,143,248,.1)}@media (hover:hover){.___SCheckboxButton_2p7k5_gg_:hover{cursor:pointer;border-color:var(--intergalactic-border-info-active, #006dca);background-color:rgba(0,143,248,.1)}.___SCheckboxButton_2p7k5_gg_.__checked_2p7k5_gg_:hover{background-color:rgba(0,143,248,.2)}}" /*__inner_css_end__*/, "2p7k5_gg_") /*__reshadow_css_end__*/, {
|
16
|
+
"__SCheckboxButton": "___SCheckboxButton_2p7k5_gg_",
|
17
|
+
"_checked": "__checked_2p7k5_gg_"
|
18
18
|
});
|
19
19
|
import Checkbox from 'intergalactic/checkbox';
|
20
20
|
var CheckboxButtonRoot = /*#__PURE__*/function (_Component) {
|
@@ -20,7 +20,6 @@ import SpinContainer from 'intergalactic/spin-container';
|
|
20
20
|
import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
21
21
|
import uniqueIDEnhancement from 'intergalactic/utils/lib/uniqueID';
|
22
22
|
import Notice from 'intergalactic/notice';
|
23
|
-
import CloseAltM from 'intergalactic/icon/Close/m';
|
24
23
|
import CheckM from 'intergalactic/icon/Check/m';
|
25
24
|
import WarnM from 'intergalactic/icon/Warning/m';
|
26
25
|
import { Text } from 'intergalactic/typography';
|
@@ -37,8 +36,8 @@ import Input from 'intergalactic/input';
|
|
37
36
|
import { localizedMessages } from '../../translations/__intergalactic-dynamic-locales';
|
38
37
|
import { NoticeBubbleContainer, NoticeBubbleManager } from 'intergalactic/notice-bubble';
|
39
38
|
/*__reshadow-styles__:"../../style/feedback-rating.shadow.css"*/
|
40
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
41
|
-
"__SFeedbackRating": "
|
39
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SFeedbackRating_1ql1x_gg_ ul{margin:0;padding:0;list-style:none}.___SFeedbackRating_1ql1x_gg_ li{list-style:none}" /*__inner_css_end__*/, "1ql1x_gg_") /*__reshadow_css_end__*/, {
|
40
|
+
"__SFeedbackRating": "___SFeedbackRating_1ql1x_gg_"
|
42
41
|
});
|
43
42
|
var FeedbackRatingRoot = /*#__PURE__*/function (_Component) {
|
44
43
|
_inherits(FeedbackRatingRoot, _Component);
|
@@ -216,16 +215,15 @@ var FeedbackRatingRoot = /*#__PURE__*/function (_Component) {
|
|
216
215
|
});
|
217
216
|
return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(Box, _assignProps2({}, _ref2), /*#__PURE__*/React.createElement(Notice, _ref4.cn("Notice", {
|
218
217
|
"visible": notificationVisible,
|
219
|
-
"aria-label": getI18nText('leaveFeedback')
|
218
|
+
"aria-label": getI18nText('leaveFeedback'),
|
219
|
+
"tag": Flex,
|
220
|
+
"alignItems": 'center'
|
220
221
|
}), /*#__PURE__*/React.createElement(Notice.Label, {
|
221
|
-
|
222
|
-
mr: 2,
|
222
|
+
mr: 3,
|
223
223
|
"aria-hidden": true
|
224
224
|
}, /*#__PURE__*/React.createElement(FeedbackIllustration, _ref4.cn("FeedbackIllustration", {}))), /*#__PURE__*/React.createElement(Notice.Content, {
|
225
|
-
|
226
|
-
|
227
|
-
alignItems: 'center'
|
228
|
-
}
|
225
|
+
tag: Flex,
|
226
|
+
alignItems: 'center'
|
229
227
|
}, /*#__PURE__*/React.createElement(Text, _ref4.cn("Text", {
|
230
228
|
"mr": 3
|
231
229
|
}), notificationText), /*#__PURE__*/React.createElement(Notice.Actions, {
|
@@ -238,9 +236,8 @@ var FeedbackRatingRoot = /*#__PURE__*/function (_Component) {
|
|
238
236
|
"ml": 3,
|
239
237
|
"href": learnMoreLink
|
240
238
|
}), getI18nText('learnMore'))), /*#__PURE__*/React.createElement(Notice.CloseIcon, {
|
241
|
-
interactive: true,
|
242
239
|
onClick: onNotificationClose
|
243
|
-
}
|
240
|
+
})), /*#__PURE__*/React.createElement(SFeedbackRating, _ref4.cn("SFeedbackRating", _objectSpread({}, _assignProps({
|
244
241
|
"visible": visible,
|
245
242
|
"onClose": this.handelCloseModal,
|
246
243
|
"p": 0
|
@@ -1 +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 = 'FeedbackRatingForm';\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={getI18nText('leaveFeedback')}>\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={1}\n m={9}\n wMax={284}\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;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,SAAAA,MAACnH,KAAqB;IAAA,OAAK,YAAgB;MAAA,IAAfK,KAAK,GAAAf,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAmI,SAAA,GAAAnI,SAAA,MAAG,EAAE;MAC3C,IAAIwI,OAAO,CAACzH,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC0H,IAAI,CAACC,MAAM,CAAC3H,KAAK,CAAC,CAAC4H,WAAW,EAAE,CAAC,EAAE;QACrE,OAAOjI,KAAK;MACd;IACF,CAAC;EAAA;AACH,CAAC;AA4RH,SAASkI,MAAMA,CAACzH,KAAU,EAAE;EAAA,IAAA0H,KAAA,GAAAC,YAAA;IAAAC,KAAA;EAC1B,IAAQ3D,MAAM,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"}
|
1
|
+
{"version":3,"file":"FeedbackRating.js","names":["React","createComponent","Component","sstyled","Root","Form","createFocusDecorator","SpinContainer","i18nEnhance","uniqueIDEnhancement","Notice","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","alignItems","Actions","handleChangeRating","CloseIcon","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 = 'FeedbackRatingForm';\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\n visible={notificationVisible}\n aria-label={getI18nText('leaveFeedback')}\n tag={Flex}\n alignItems={'center'}\n >\n <Notice.Label mr={3} aria-hidden={true}>\n <FeedbackIllustration />\n </Notice.Label>\n <Notice.Content tag={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 onClick={onNotificationClose} />\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={1}\n m={9}\n wMax={284}\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;AAE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CAAC;AA+RH,SAASgI,MAAMA,CAACvH,KAAU,EAAE;EAAA,IAAAwH,KAAA,GAAAC,YAAA;IAAAC,KAAA;EAC1B,IAAQzD,MAAM,GAAKjE,KAAK,CAAhBiE,MAAM;EACd,IAAM0D,OAAO,GAEMxK,IAAI;EADvB,OAAAuK,KAAA,GAAOjL,OAAO,CAACwH,MAAM,CAAC,eACpB3H,KAAA,CAAA6D,aAAA,CAACwH,OAAO,EAAAD,KAAA,CAAAxC,EAAA,YAAAS,aAAA,KAAAiC,aAAA;IAAA,QAAqB,GAAG;IAAA,OAAM,IAAI;IAAA,MAAK,CAAC;IAAA,MAAM,CAAC;IAAA,aAAa;EAAQ,GAAAJ,KAAA,IAAI;AAEpF;AAEA,IAAMpH,cAA4F,GAChG7D,eAAe,CAAC8B,kBAAkB,EAAE;EAClCkJ,MAAM,EAANA,MAAM;EACNlH,IAAI,EAAE1C,YAAY;EAClBgD,QAAQ,EAAE9C,cAAc;EACxB4I,MAAM,EAAE7I;AACV,CAAC,CAAC;AAEJ,eAAewC,cAAc"}
|
@@ -12,12 +12,12 @@ import React from 'react';
|
|
12
12
|
import createComponent, { Component, Root, sstyled } from 'intergalactic/core';
|
13
13
|
import { Flex, Box } from 'intergalactic/flex-box';
|
14
14
|
/*__reshadow-styles__:"../../style/slider-rating.shadow.css"*/
|
15
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
16
|
-
"__SSliderRating": "
|
17
|
-
"__SStar": "
|
18
|
-
"_keyboardFocused": "
|
19
|
-
"_readonly": "
|
20
|
-
"_filled": "
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SSliderRating_1dpwi_gg_ .___SStar_1dpwi_gg_{transition:all calc(var(--intergalactic-duration-control, 200)*1ms) ease-out}@media (hover:hover){.___SSliderRating_1dpwi_gg_ .___SStar_1dpwi_gg_:hover{cursor:pointer;transform:scale(1.3)}}.___SSliderRating_1dpwi_gg_.__keyboardFocused_1dpwi_gg_{outline:0;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}@media (hover:hover){.___SSliderRating_1dpwi_gg_.__readonly_1dpwi_gg_ .___SStar_1dpwi_gg_:hover{cursor:default;transform:none;transition:none}}.___SStar_1dpwi_gg_.__filled_1dpwi_gg_:active{animation:wobble .8s ease-in-out}.___SStar_1dpwi_gg_ path{fill:transparent;stroke:var(--intergalactic-slider-rating-normal, #a9abb6);stroke-width:2}.___SStar_1dpwi_gg_.__filled_1dpwi_gg_ path{stroke-width:0;fill:var(--intergalactic-slider-rating-hover-active, #fdc23c)}" /*__inner_css_end__*/, "1dpwi_gg_") /*__reshadow_css_end__*/, {
|
16
|
+
"__SSliderRating": "___SSliderRating_1dpwi_gg_",
|
17
|
+
"__SStar": "___SStar_1dpwi_gg_",
|
18
|
+
"_keyboardFocused": "__keyboardFocused_1dpwi_gg_",
|
19
|
+
"_readonly": "__readonly_1dpwi_gg_",
|
20
|
+
"_filled": "__filled_1dpwi_gg_"
|
21
21
|
});
|
22
22
|
import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
|
23
23
|
var MIN = 1;
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/feedback-form","description":"Semrush Feedback Form Component","version":"6.33.
|
1
|
+
{"name":"intergalactic/feedback-form","description":"Semrush Feedback Form Component","version":"6.33.4-prerelease.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js,ts"},"dependencies":{"@semcore/checkbox":"7.34.2","@semcore/notice-bubble":"5.40.2","@semcore/typography":"5.40.2","@semcore/link":"5.36.3","@semcore/modal":"4.43.0","@semcore/illustration":"2.32.0","@semcore/icon":"4.43.2","@semcore/textarea":"5.30.2","@semcore/input":"4.32.2","final-form":"4.20.7","@semcore/button":"5.35.1","@semcore/flex-box":"5.31.2","@semcore/notice":"5.39.0-prerelease.0","@semcore/spin-container":"7.32.2","@semcore/tooltip":"6.40.3","@semcore/utils":"4.32.2","final-form-focus":"1.1.2","react-final-form":"6.5.9"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/feedback-form"},"devDependencies":{"@types/react":"18.0.21","@types/final-form-focus":"1.1.7","@semcore/testing-utils":"1.0.0"},"overrides":{"final-form":{"@babel/runtime":"7.17.9"},"react-final-form":{"@babel/runtime":"7.17.9"}}}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/core';
|
2
2
|
import { ModalProps } from 'intergalactic/modal';
|
3
3
|
import { Flex, Box, BoxProps } from 'intergalactic/flex-box';
|
4
|
-
import
|
4
|
+
import Button from 'intergalactic/button';
|
5
5
|
import { Text } from 'intergalactic/typography';
|
6
6
|
|
7
7
|
/** @deprecated */
|
@@ -37,7 +37,7 @@ declare const FullscreenModal: Intergalactic.Component<
|
|
37
37
|
> & {
|
38
38
|
Header: Intergalactic.Component<'div', FullscreenModalHeaderProps>;
|
39
39
|
Footer: typeof Flex;
|
40
|
-
Close:
|
40
|
+
Close: typeof Button;
|
41
41
|
Back: typeof Box;
|
42
42
|
Body: typeof Box;
|
43
43
|
Section: typeof Box;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { ModalProps } from '@semcore/modal';\nimport { Flex, Box, BoxProps } from '@semcore/flex-box';\nimport
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { ModalProps } from '@semcore/modal';\nimport { Flex, Box, BoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { Text } from '@semcore/typography';\n\n/** @deprecated */\nexport interface IFullscreenModalProps extends FullscreenModalProps, UnknownProperties {}\nexport type FullscreenModalProps = ModalProps & {\n /** Function that is invoked when hiding a component */\n onClose?: (\n trigger: 'onBackClick' | 'onCloseClick' | 'onEscape' | 'onOutsideClick',\n e?: React.MouseEvent | React.KeyboardEvent,\n ) => void;\n};\n\n/** @deprecated */\nexport interface IFullscreenModalHeaderProps\n extends FullscreenModalHeaderProps,\n UnknownProperties {}\nexport type FullscreenModalHeaderProps = BoxProps & {\n title?: React.ReactNode;\n description?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IFullscreenModalContext extends FullscreenModalContext, UnknownProperties {}\nexport type FullscreenModalContext = {\n getBackProps: PropGetterFn;\n getCloseProps: PropGetterFn;\n};\n\ndeclare const FullscreenModal: Intergalactic.Component<\n 'div',\n FullscreenModalProps,\n FullscreenModalContext\n> & {\n Header: Intergalactic.Component<'div', FullscreenModalHeaderProps>;\n Footer: typeof Flex;\n Close: typeof Button;\n Back: typeof Box;\n Body: typeof Box;\n Section: typeof Box;\n Title: typeof Text;\n Description: typeof Text;\n};\n\nexport default FullscreenModal;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { ModalProps } from '@semcore/modal';\nimport { Flex, Box, BoxProps } from '@semcore/flex-box';\nimport
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { ModalProps } from '@semcore/modal';\nimport { Flex, Box, BoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { Text } from '@semcore/typography';\n\n/** @deprecated */\nexport interface IFullscreenModalProps extends FullscreenModalProps, UnknownProperties {}\nexport type FullscreenModalProps = ModalProps & {\n /** Function that is invoked when hiding a component */\n onClose?: (\n trigger: 'onBackClick' | 'onCloseClick' | 'onEscape' | 'onOutsideClick',\n e?: React.MouseEvent | React.KeyboardEvent,\n ) => void;\n};\n\n/** @deprecated */\nexport interface IFullscreenModalHeaderProps\n extends FullscreenModalHeaderProps,\n UnknownProperties {}\nexport type FullscreenModalHeaderProps = BoxProps & {\n title?: React.ReactNode;\n description?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IFullscreenModalContext extends FullscreenModalContext, UnknownProperties {}\nexport type FullscreenModalContext = {\n getBackProps: PropGetterFn;\n getCloseProps: PropGetterFn;\n};\n\ndeclare const FullscreenModal: Intergalactic.Component<\n 'div',\n FullscreenModalProps,\n FullscreenModalContext\n> & {\n Header: Intergalactic.Component<'div', FullscreenModalHeaderProps>;\n Footer: typeof Flex;\n Close: typeof Button;\n Back: typeof Box;\n Body: typeof Box;\n Section: typeof Box;\n Title: typeof Text;\n Description: typeof Text;\n};\n\nexport default FullscreenModal;\n"],"mappings":""}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/core';
|
2
2
|
import { ModalProps } from 'intergalactic/modal';
|
3
3
|
import { Flex, Box, BoxProps } from 'intergalactic/flex-box';
|
4
|
-
import
|
4
|
+
import Button from 'intergalactic/button';
|
5
5
|
import { Text } from 'intergalactic/typography';
|
6
6
|
|
7
7
|
/** @deprecated */
|
@@ -37,7 +37,7 @@ declare const FullscreenModal: Intergalactic.Component<
|
|
37
37
|
> & {
|
38
38
|
Header: Intergalactic.Component<'div', FullscreenModalHeaderProps>;
|
39
39
|
Footer: typeof Flex;
|
40
|
-
Close:
|
40
|
+
Close: typeof Button;
|
41
41
|
Back: typeof Box;
|
42
42
|
Body: typeof Box;
|
43
43
|
Section: typeof Box;
|
@@ -24,10 +24,10 @@ var _useCssVariable = require("intergalactic/utils/lib/useCssVariable");
|
|
24
24
|
var _reactToText = _interopRequireDefault(require("intergalactic/utils/lib/reactToText"));
|
25
25
|
var _getOriginChildren = _interopRequireDefault(require("intergalactic/utils/lib/getOriginChildren"));
|
26
26
|
/*__reshadow-styles__:"./style/inline-edit.shadow.css"*/
|
27
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
28
|
-
"__SInlineEdit": "
|
29
|
-
"__SEdit": "
|
30
|
-
"__SView": "
|
27
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SInlineEdit_kqaze_gg_{display:inline-block;position:relative}.___SEdit_kqaze_gg_{display:flex;flex-direction:column;justify-content:center;position:absolute;width:100%;height:100%;top:0;left:0;z-index:1}.___SView_kqaze_gg_{cursor:pointer}.___SView_kqaze_gg_:active,.___SView_kqaze_gg_:focus{outline:0;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "kqaze_gg_") /*__reshadow_css_end__*/, {
|
28
|
+
"__SInlineEdit": "___SInlineEdit_kqaze_gg_",
|
29
|
+
"__SEdit": "___SEdit_kqaze_gg_",
|
30
|
+
"__SView": "___SView_kqaze_gg_"
|
31
31
|
});
|
32
32
|
var InlineEdit = /*#__PURE__*/function (_Component) {
|
33
33
|
(0, _inherits2["default"])(InlineEdit, _Component);
|
@@ -19,10 +19,10 @@ import { useCssVariable } from 'intergalactic/utils/lib/useCssVariable';
|
|
19
19
|
import reactToText from 'intergalactic/utils/lib/reactToText';
|
20
20
|
import getOriginChildren from 'intergalactic/utils/lib/getOriginChildren';
|
21
21
|
/*__reshadow-styles__:"./style/inline-edit.shadow.css"*/
|
22
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
23
|
-
"__SInlineEdit": "
|
24
|
-
"__SEdit": "
|
25
|
-
"__SView": "
|
22
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SInlineEdit_kqaze_gg_{display:inline-block;position:relative}.___SEdit_kqaze_gg_{display:flex;flex-direction:column;justify-content:center;position:absolute;width:100%;height:100%;top:0;left:0;z-index:1}.___SView_kqaze_gg_{cursor:pointer}.___SView_kqaze_gg_:active,.___SView_kqaze_gg_:focus{outline:0;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "kqaze_gg_") /*__reshadow_css_end__*/, {
|
23
|
+
"__SInlineEdit": "___SInlineEdit_kqaze_gg_",
|
24
|
+
"__SEdit": "___SEdit_kqaze_gg_",
|
25
|
+
"__SView": "___SView_kqaze_gg_"
|
26
26
|
});
|
27
27
|
var InlineEdit = /*#__PURE__*/function (_Component) {
|
28
28
|
_inherits(InlineEdit, _Component);
|
package/inline-edit/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/inline-edit","description":"Semrush Input Component","version":"4.33.
|
1
|
+
{"name":"intergalactic/inline-edit","description":"Semrush Input Component","version":"4.33.3-prerelease.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/animation":"2.31.2","@semcore/flex-box":"5.31.2","@semcore/utils":"4.32.2"},"devDependencies":{"@semcore/testing-utils":"1.0.0","@types/react":"18.0.21"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/inline-edit"}}
|
package/modal/index.d.ts
CHANGED
@@ -4,6 +4,7 @@ import { PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/co
|
|
4
4
|
import { PortalProps } from 'intergalactic/portal';
|
5
5
|
import { Box, BoxProps } from 'intergalactic/flex-box';
|
6
6
|
import { TextProps } from 'intergalactic/typography';
|
7
|
+
import Button from 'intergalactic/button';
|
7
8
|
|
8
9
|
/** @deprecated */
|
9
10
|
export interface IModalProps extends ModalProps, UnknownProperties {}
|
@@ -54,7 +55,7 @@ export type ModalContext = {
|
|
54
55
|
declare const Modal: Intergalactic.Component<'div', ModalProps, ModalContext> & {
|
55
56
|
Window: Intergalactic.Component<'div', WindowProps>;
|
56
57
|
Overlay: typeof Box;
|
57
|
-
Close: typeof
|
58
|
+
Close: typeof Button;
|
58
59
|
Title: Intergalactic.Component<'div', TextProps>;
|
59
60
|
};
|
60
61
|
|