@activecollab/components 2.0.144 → 2.0.145
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/dist/cjs/components/Icons/collection/Moon.js +47 -0
- package/dist/cjs/components/Icons/collection/Moon.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +7 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/Wizard/Step.js +5 -2
- package/dist/cjs/components/Wizard/Step.js.map +1 -1
- package/dist/cjs/components/Wizard/Styles.js +1 -1
- package/dist/cjs/components/Wizard/Styles.js.map +1 -1
- package/dist/esm/components/Icons/collection/Moon.d.ts +23 -0
- package/dist/esm/components/Icons/collection/Moon.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Moon.js +39 -0
- package/dist/esm/components/Icons/collection/Moon.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +1 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/Wizard/Step.d.ts +2 -0
- package/dist/esm/components/Wizard/Step.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Step.js +4 -2
- package/dist/esm/components/Wizard/Step.js.map +1 -1
- package/dist/esm/components/Wizard/Styles.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Styles.js +1 -1
- package/dist/esm/components/Wizard/Styles.js.map +1 -1
- package/dist/index.js +45 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Wizard/Step.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAc1D,MAAM,WAAW,KAAK;IACpB,KAAK,CAA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CAAC,KAAK,CAyE1B,CAAC"}
|
|
@@ -18,6 +18,8 @@ export const Step = _ref => {
|
|
|
18
18
|
actionLabel = "Proceed",
|
|
19
19
|
shouldRenderNextButton = true,
|
|
20
20
|
changingStepInProgress = false,
|
|
21
|
+
disableBackButton = false,
|
|
22
|
+
customRightHeader,
|
|
21
23
|
skip = false
|
|
22
24
|
} = _ref;
|
|
23
25
|
const onActionButtonClick = useCallback(() => {
|
|
@@ -26,12 +28,12 @@ export const Step = _ref => {
|
|
|
26
28
|
}
|
|
27
29
|
return onNextButtonClick && onNextButtonClick();
|
|
28
30
|
}, [isLast, onClose, onNextButtonClick]);
|
|
29
|
-
return !skip ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledStepHeader, null, /*#__PURE__*/React.createElement(StyledStepHeaderLeft, null, index && index > 0 ? /*#__PURE__*/React.createElement(IconButton, {
|
|
31
|
+
return !skip ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledStepHeader, null, /*#__PURE__*/React.createElement(StyledStepHeaderLeft, null, !disableBackButton && index && index > 0 ? /*#__PURE__*/React.createElement(IconButton, {
|
|
30
32
|
onClick: onPreviousButtonClick,
|
|
31
33
|
variant: "text gray",
|
|
32
34
|
className: "tw--ml-3 tw-mr-2",
|
|
33
35
|
disabled: changingStepInProgress
|
|
34
|
-
}, /*#__PURE__*/React.createElement(ArrowBackMobileIcon, null)) : null, /*#__PURE__*/React.createElement(StyledStepTitle, null, /*#__PURE__*/React.createElement(Caption2, null, title), /*#__PURE__*/React.createElement(Header3, null, subtitle))), /*#__PURE__*/React.createElement(IconButton, {
|
|
36
|
+
}, /*#__PURE__*/React.createElement(ArrowBackMobileIcon, null)) : null, /*#__PURE__*/React.createElement(StyledStepTitle, null, /*#__PURE__*/React.createElement(Caption2, null, title), /*#__PURE__*/React.createElement(Header3, null, subtitle))), customRightHeader ? customRightHeader : /*#__PURE__*/React.createElement(IconButton, {
|
|
35
37
|
onClick: onClose,
|
|
36
38
|
variant: "text gray",
|
|
37
39
|
disabled: changingStepInProgress
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.js","names":["React","useCallback","StepActionButton","StyledStepTitle","StyledStepHeaderLeft","StyledStepHeader","StyledCustomStep","Dialog","IconButton","ArrowBackMobileIcon","CancelCrossIcon","Caption2","Header3","Step","_ref","index","isLast","subtitle","title","onNextButtonClick","onPreviousButtonClick","onClose","children","actionLabel","shouldRenderNextButton","changingStepInProgress","skip","onActionButtonClick","createElement","Fragment","onClick","variant","className","disabled","ContentDivider","Content","Actions","displayName"],"sources":["../../../../src/components/Wizard/Step.tsx"],"sourcesContent":["import React, { FC, ReactNode, useCallback } from \"react\";\n\nimport { StepActionButton } from \"./StepActionButton\";\nimport {\n StyledStepTitle,\n StyledStepHeaderLeft,\n StyledStepHeader,\n StyledCustomStep,\n} from \"./Styles\";\nimport { Dialog } from \"../Dialog\";\nimport { IconButton } from \"../IconButton\";\nimport { ArrowBackMobileIcon, CancelCrossIcon } from \"../Icons\";\nimport { Caption2, Header3 } from \"../Typography\";\n\nexport interface IStep {\n index?: number;\n isLast?: boolean;\n subtitle: string;\n title?: string;\n onNextButtonClick?: () => void;\n onPreviousButtonClick?: () => void;\n onClose?: () => void;\n children: ReactNode;\n actionLabel?: string;\n shouldRenderNextButton?: boolean;\n changingStepInProgress?: boolean;\n skip?: boolean;\n}\n\nexport const Step: FC<IStep> = ({\n index,\n isLast,\n subtitle,\n title,\n onNextButtonClick,\n onPreviousButtonClick,\n onClose,\n children,\n actionLabel = \"Proceed\",\n shouldRenderNextButton = true,\n changingStepInProgress = false,\n skip = false,\n}) => {\n const onActionButtonClick = useCallback(() => {\n if (isLast && onClose) {\n return onClose();\n }\n\n return onNextButtonClick && onNextButtonClick();\n }, [isLast, onClose, onNextButtonClick]);\n\n return !skip ? (\n <>\n <StyledStepHeader>\n <StyledStepHeaderLeft>\n {index && index > 0 ? (\n <IconButton\n onClick={onPreviousButtonClick}\n variant=\"text gray\"\n className=\"tw--ml-3 tw-mr-2\"\n disabled={changingStepInProgress}\n >\n <ArrowBackMobileIcon />\n </IconButton>\n ) : null}\n <StyledStepTitle>\n <Caption2>{title}</Caption2>\n <Header3>{subtitle}</Header3>\n </StyledStepTitle>\n </StyledStepHeaderLeft>\n <IconButton\n
|
|
1
|
+
{"version":3,"file":"Step.js","names":["React","useCallback","StepActionButton","StyledStepTitle","StyledStepHeaderLeft","StyledStepHeader","StyledCustomStep","Dialog","IconButton","ArrowBackMobileIcon","CancelCrossIcon","Caption2","Header3","Step","_ref","index","isLast","subtitle","title","onNextButtonClick","onPreviousButtonClick","onClose","children","actionLabel","shouldRenderNextButton","changingStepInProgress","disableBackButton","customRightHeader","skip","onActionButtonClick","createElement","Fragment","onClick","variant","className","disabled","ContentDivider","Content","Actions","displayName"],"sources":["../../../../src/components/Wizard/Step.tsx"],"sourcesContent":["import React, { FC, ReactNode, useCallback } from \"react\";\n\nimport { StepActionButton } from \"./StepActionButton\";\nimport {\n StyledStepTitle,\n StyledStepHeaderLeft,\n StyledStepHeader,\n StyledCustomStep,\n} from \"./Styles\";\nimport { Dialog } from \"../Dialog\";\nimport { IconButton } from \"../IconButton\";\nimport { ArrowBackMobileIcon, CancelCrossIcon } from \"../Icons\";\nimport { Caption2, Header3 } from \"../Typography\";\n\nexport interface IStep {\n index?: number;\n isLast?: boolean;\n subtitle: string;\n title?: string;\n onNextButtonClick?: () => void;\n onPreviousButtonClick?: () => void;\n onClose?: () => void;\n children: ReactNode;\n actionLabel?: string;\n shouldRenderNextButton?: boolean;\n changingStepInProgress?: boolean;\n disableBackButton?: boolean;\n customRightHeader?: ReactNode;\n skip?: boolean;\n}\n\nexport const Step: FC<IStep> = ({\n index,\n isLast,\n subtitle,\n title,\n onNextButtonClick,\n onPreviousButtonClick,\n onClose,\n children,\n actionLabel = \"Proceed\",\n shouldRenderNextButton = true,\n changingStepInProgress = false,\n disableBackButton = false,\n customRightHeader,\n skip = false,\n}) => {\n const onActionButtonClick = useCallback(() => {\n if (isLast && onClose) {\n return onClose();\n }\n\n return onNextButtonClick && onNextButtonClick();\n }, [isLast, onClose, onNextButtonClick]);\n\n return !skip ? (\n <>\n <StyledStepHeader>\n <StyledStepHeaderLeft>\n {!disableBackButton && index && index > 0 ? (\n <IconButton\n onClick={onPreviousButtonClick}\n variant=\"text gray\"\n className=\"tw--ml-3 tw-mr-2\"\n disabled={changingStepInProgress}\n >\n <ArrowBackMobileIcon />\n </IconButton>\n ) : null}\n <StyledStepTitle>\n <Caption2>{title}</Caption2>\n <Header3>{subtitle}</Header3>\n </StyledStepTitle>\n </StyledStepHeaderLeft>\n {customRightHeader ? (\n customRightHeader\n ) : (\n <IconButton\n onClick={onClose}\n variant=\"text gray\"\n disabled={changingStepInProgress}\n >\n <CancelCrossIcon />\n </IconButton>\n )}\n </StyledStepHeader>\n <Dialog.ContentDivider />\n {shouldRenderNextButton ? (\n <>\n <Dialog.Content>{children}</Dialog.Content>\n <Dialog.ContentDivider />\n <Dialog.Actions>\n <StepActionButton\n isLast={isLast}\n actionLabel={actionLabel}\n onNextButtonClick={onActionButtonClick}\n />\n </Dialog.Actions>\n </>\n ) : (\n <StyledCustomStep>{children}</StyledCustomStep>\n )}\n </>\n ) : null;\n};\n\nStep.displayName = \"Step\";\n"],"mappings":"AAAA,OAAOA,KAAK,IAAmBC,WAAW,QAAQ,OAAO;AAEzD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SACEC,eAAe,EACfC,oBAAoB,EACpBC,gBAAgB,EAChBC,gBAAgB,QACX,UAAU;AACjB,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,mBAAmB,EAAEC,eAAe,QAAQ,UAAU;AAC/D,SAASC,QAAQ,EAAEC,OAAO,QAAQ,eAAe;AAmBjD,OAAO,MAAMC,IAAe,GAAGC,IAAA,IAezB;EAAA,IAf0B;IAC9BC,KAAK;IACLC,MAAM;IACNC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;IACjBY,OAAO,EAAC,WAAW;IACnBE,QAAQ,EAAEV;EAAuB,gBAEjCzB,KAAA,CAAA8B,aAAA,CAACpB,eAAe,MAAE,CACR,CAEE,CAAC,eACnBV,KAAA,CAAA8B,aAAA,CAACvB,MAAM,CAAC6B,cAAc,MAAE,CAAC,EACxBZ,sBAAsB,gBACrBxB,KAAA,CAAA8B,aAAA,CAAA9B,KAAA,CAAA+B,QAAA,qBACE/B,KAAA,CAAA8B,aAAA,CAACvB,MAAM,CAAC8B,OAAO,QAAEf,QAAyB,CAAC,eAC3CtB,KAAA,CAAA8B,aAAA,CAACvB,MAAM,CAAC6B,cAAc,MAAE,CAAC,eACzBpC,KAAA,CAAA8B,aAAA,CAACvB,MAAM,CAAC+B,OAAO,qBACbtC,KAAA,CAAA8B,aAAA,CAAC5B,gBAAgB;IACfc,MAAM,EAAEA,MAAO;IACfO,WAAW,EAAEA,WAAY;IACzBJ,iBAAiB,EAAEU;EAAoB,CACxC,CACa,CAChB,CAAC,gBAEH7B,KAAA,CAAA8B,aAAA,CAACxB,gBAAgB,QAAEgB,QAA2B,CAEhD,CAAC,GACD,IAAI;AACV,CAAC;AAEDT,IAAI,CAAC0B,WAAW,GAAG,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Wizard/Styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,oEAI5B,CAAC;AAEF,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Wizard/Styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,oEAI5B,CAAC;AAEF,eAAO,MAAM,eAAe,oEAI3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAEhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,oEAE5B,CAAC"}
|
|
@@ -6,7 +6,7 @@ export const StyledStepHeader = styled.div.withConfig({
|
|
|
6
6
|
export const StyledStepTitle = styled.div.withConfig({
|
|
7
7
|
displayName: "Styles__StyledStepTitle",
|
|
8
8
|
componentId: "sc-88drbd-1"
|
|
9
|
-
})(["display:flex;flex-direction:column;"]);
|
|
9
|
+
})(["display:flex;flex-direction:column;justify-content:center;"]);
|
|
10
10
|
export const StyledStepHeaderLeft = styled.div.withConfig({
|
|
11
11
|
displayName: "Styles__StyledStepHeaderLeft",
|
|
12
12
|
componentId: "sc-88drbd-2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","names":["styled","StyledStepHeader","div","withConfig","displayName","componentId","StyledStepTitle","StyledStepHeaderLeft","StyledCustomStep"],"sources":["../../../../src/components/Wizard/Styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const StyledStepHeader = styled.div`\n display: flex;\n padding: 12px 12px 12px 32px;\n justify-content: space-between;\n`;\n\nexport const StyledStepTitle = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nexport const StyledStepHeaderLeft = styled.div`\n display: flex;\n`;\n\nexport const StyledCustomStep = styled.div`\n overflow-y: auto;\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AAEtC,OAAO,MAAMC,gBAAgB,GAAGD,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+EAIzC;AAED,OAAO,MAAMC,eAAe,GAAGN,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"Styles.js","names":["styled","StyledStepHeader","div","withConfig","displayName","componentId","StyledStepTitle","StyledStepHeaderLeft","StyledCustomStep"],"sources":["../../../../src/components/Wizard/Styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const StyledStepHeader = styled.div`\n display: flex;\n padding: 12px 12px 12px 32px;\n justify-content: space-between;\n`;\n\nexport const StyledStepTitle = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n`;\n\nexport const StyledStepHeaderLeft = styled.div`\n display: flex;\n`;\n\nexport const StyledCustomStep = styled.div`\n overflow-y: auto;\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AAEtC,OAAO,MAAMC,gBAAgB,GAAGD,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+EAIzC;AAED,OAAO,MAAMC,eAAe,GAAGN,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kEAIxC;AAED,OAAO,MAAME,oBAAoB,GAAGP,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qBAE7C;AAED,OAAO,MAAMG,gBAAgB,GAAGR,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wBAEzC"}
|
package/dist/index.js
CHANGED
|
@@ -5172,6 +5172,44 @@
|
|
|
5172
5172
|
MinusIcon.displayName = "MinusIcon";
|
|
5173
5173
|
var MinusIcon$1 = MinusIcon;
|
|
5174
5174
|
|
|
5175
|
+
/**
|
|
5176
|
+
* @component MoonIcon
|
|
5177
|
+
* @description
|
|
5178
|
+
*
|
|
5179
|
+
* The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
|
|
5180
|
+
* The Icon component is
|
|
5181
|
+
* customizable, allowing for variations in size, color, and style to fit the needs of the application.
|
|
5182
|
+
*
|
|
5183
|
+
*
|
|
5184
|
+
* @example
|
|
5185
|
+
* return (
|
|
5186
|
+
* <MoonIcon className="mr-2" />
|
|
5187
|
+
* )
|
|
5188
|
+
*
|
|
5189
|
+
* @see
|
|
5190
|
+
* https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
|
|
5191
|
+
* @see
|
|
5192
|
+
* https://design.activecollab.com/docs/foundations/icons
|
|
5193
|
+
*/
|
|
5194
|
+
var MoonIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
5195
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
5196
|
+
width: 20,
|
|
5197
|
+
height: 20,
|
|
5198
|
+
viewBox: "0 0 20 20",
|
|
5199
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5200
|
+
"data-testid": "MoonIcon",
|
|
5201
|
+
fill: "var(--color-theme-600)",
|
|
5202
|
+
focusable: false,
|
|
5203
|
+
ref: svgRef
|
|
5204
|
+
}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
5205
|
+
fillRule: "evenodd",
|
|
5206
|
+
clipRule: "evenodd",
|
|
5207
|
+
d: "M10.06.509a1 1 0 01-.067 1.085 6.015 6.015 0 008.413 8.413 1 1 0 011.59.896A10.02 10.02 0 119.097.004a1 1 0 01.963.505zm-2.765 1.93a8.019 8.019 0 1010.266 10.266A8.014 8.014 0 017.295 2.439z"
|
|
5208
|
+
}));
|
|
5209
|
+
});
|
|
5210
|
+
MoonIcon.displayName = "MoonIcon";
|
|
5211
|
+
var MoonIcon$1 = MoonIcon;
|
|
5212
|
+
|
|
5175
5213
|
/**
|
|
5176
5214
|
* @component MoveTriggerIcon
|
|
5177
5215
|
* @description
|
|
@@ -20477,7 +20515,7 @@
|
|
|
20477
20515
|
var StyledStepTitle = styled__default["default"].div.withConfig({
|
|
20478
20516
|
displayName: "Styles__StyledStepTitle",
|
|
20479
20517
|
componentId: "sc-88drbd-1"
|
|
20480
|
-
})(["display:flex;flex-direction:column;"]);
|
|
20518
|
+
})(["display:flex;flex-direction:column;justify-content:center;"]);
|
|
20481
20519
|
var StyledStepHeaderLeft = styled__default["default"].div.withConfig({
|
|
20482
20520
|
displayName: "Styles__StyledStepHeaderLeft",
|
|
20483
20521
|
componentId: "sc-88drbd-2"
|
|
@@ -20502,6 +20540,9 @@
|
|
|
20502
20540
|
shouldRenderNextButton = _ref$shouldRenderNext === void 0 ? true : _ref$shouldRenderNext,
|
|
20503
20541
|
_ref$changingStepInPr = _ref.changingStepInProgress,
|
|
20504
20542
|
changingStepInProgress = _ref$changingStepInPr === void 0 ? false : _ref$changingStepInPr,
|
|
20543
|
+
_ref$disableBackButto = _ref.disableBackButton,
|
|
20544
|
+
disableBackButton = _ref$disableBackButto === void 0 ? false : _ref$disableBackButto,
|
|
20545
|
+
customRightHeader = _ref.customRightHeader,
|
|
20505
20546
|
_ref$skip = _ref.skip,
|
|
20506
20547
|
skip = _ref$skip === void 0 ? false : _ref$skip;
|
|
20507
20548
|
var onActionButtonClick = React.useCallback(function () {
|
|
@@ -20510,12 +20551,12 @@
|
|
|
20510
20551
|
}
|
|
20511
20552
|
return onNextButtonClick && onNextButtonClick();
|
|
20512
20553
|
}, [isLast, onClose, onNextButtonClick]);
|
|
20513
|
-
return !skip ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledStepHeader, null, /*#__PURE__*/React__default["default"].createElement(StyledStepHeaderLeft, null, index && index > 0 ? /*#__PURE__*/React__default["default"].createElement(IconButton, {
|
|
20554
|
+
return !skip ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledStepHeader, null, /*#__PURE__*/React__default["default"].createElement(StyledStepHeaderLeft, null, !disableBackButton && index && index > 0 ? /*#__PURE__*/React__default["default"].createElement(IconButton, {
|
|
20514
20555
|
onClick: onPreviousButtonClick,
|
|
20515
20556
|
variant: "text gray",
|
|
20516
20557
|
className: "tw--ml-3 tw-mr-2",
|
|
20517
20558
|
disabled: changingStepInProgress
|
|
20518
|
-
}, /*#__PURE__*/React__default["default"].createElement(ArrowBackMobileIcon$1, null)) : null, /*#__PURE__*/React__default["default"].createElement(StyledStepTitle, null, /*#__PURE__*/React__default["default"].createElement(Caption2, null, title), /*#__PURE__*/React__default["default"].createElement(Header3, null, subtitle))), /*#__PURE__*/React__default["default"].createElement(IconButton, {
|
|
20559
|
+
}, /*#__PURE__*/React__default["default"].createElement(ArrowBackMobileIcon$1, null)) : null, /*#__PURE__*/React__default["default"].createElement(StyledStepTitle, null, /*#__PURE__*/React__default["default"].createElement(Caption2, null, title), /*#__PURE__*/React__default["default"].createElement(Header3, null, subtitle))), customRightHeader ? customRightHeader : /*#__PURE__*/React__default["default"].createElement(IconButton, {
|
|
20519
20560
|
onClick: onClose,
|
|
20520
20561
|
variant: "text gray",
|
|
20521
20562
|
disabled: changingStepInProgress
|
|
@@ -21513,6 +21554,7 @@
|
|
|
21513
21554
|
exports.MessageSolidIcon = MessageSolidIcon$1;
|
|
21514
21555
|
exports.MinusIcon = MinusIcon$1;
|
|
21515
21556
|
exports.Modal = Modal;
|
|
21557
|
+
exports.MoonIcon = MoonIcon$1;
|
|
21516
21558
|
exports.MoveIcon = MoveIcon$1;
|
|
21517
21559
|
exports.MoveTriggerIcon = MoveTriggerIcon$1;
|
|
21518
21560
|
exports.MultiAvatar = MultiAvatar;
|