@cashub/ui-elv 1.0.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/Tab/Tab.js +28 -0
- package/Tab/TabList.js +167 -0
- package/Tab/TabPanel.js +49 -0
- package/Tab/TabTab.js +105 -0
- package/Tab/index.js +30 -0
- package/Tab/subComponent/TabContext.js +9 -0
- package/Tab/subComponent/TabListV2.js +25 -0
- package/Tab/subComponent/TabPanelV2.js +52 -0
- package/Tab/subComponent/TabTabV2.js +63 -0
- package/VerticalTab/TabList.js +27 -0
- package/VerticalTab/TabPanel.js +52 -0
- package/VerticalTab/TabTab.js +70 -0
- package/VerticalTab/VerticalTab.js +41 -0
- package/VerticalTab/index.js +16 -0
- package/VerticalTab/subComponent/TabContext.js +9 -0
- package/alert/Alert.js +29 -0
- package/alert/index.js +13 -0
- package/animate/Collapse.js +71 -0
- package/animate/Loader.js +58 -0
- package/animate/NumberCounter.js +51 -0
- package/animate/PulseRing.js +35 -0
- package/animate/Spinner.js +18 -0
- package/animate/index.js +41 -0
- package/assets/css/autocomplete.css +16 -0
- package/assets/css/font.css +4 -0
- package/assets/css/global.css +2 -0
- package/assets/font/helvetica/Helvetica.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-Bold.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-ExtraBold.ttf +0 -0
- package/assets/font/nanumGothic/NanumGothic-Regular.ttf +0 -0
- package/assets/icons/app-management.png +0 -0
- package/assets/icons/burger-black.png +0 -0
- package/assets/icons/burger-white.png +0 -0
- package/assets/icons/burger.png +0 -0
- package/assets/icons/file.svg +1 -0
- package/assets/icons/map_icon1.png +0 -0
- package/assets/icons/map_icon4.png +0 -0
- package/assets/images/bg-aside.png +0 -0
- package/assets/images/bg-chart-circle.png +0 -0
- package/assets/images/bg-chart-triangle.png +0 -0
- package/assets/images/cashub-logo-only.png +0 -0
- package/assets/images/default-user.jpg +0 -0
- package/assets/images/logo-cashub.png +0 -0
- package/assets/images/map.png +0 -0
- package/assets/images/qrcode.png +0 -0
- package/backdrop/BaseBackdrop.js +18 -0
- package/backdrop/LoadingBackdrop.js +17 -0
- package/backdrop/ModalBackdrop.js +15 -0
- package/backdrop/index.js +27 -0
- package/badge/Badge.js +26 -0
- package/badge/BadgeDot.js +18 -0
- package/badge/BadgeFill.js +49 -0
- package/badge/BadgeFillTriangle.js +147 -0
- package/badge/BadgeWithText.js +31 -0
- package/badge/index.js +41 -0
- package/billing/BarChart.js +51 -0
- package/billing/Grid.js +45 -0
- package/billing/Header2.js +25 -0
- package/billing/Header3.js +37 -0
- package/billing/Paragraph.js +33 -0
- package/billing/ParagraphGroup.js +22 -0
- package/billing/ParagraphText.js +26 -0
- package/billing/Section.js +50 -0
- package/billing/SectionBody.js +17 -0
- package/billing/SectionHeader.js +26 -0
- package/billing/__stories__/BarChart.stories.js_bak +46 -0
- package/billing/__stories__/Grid.stories.js_bak +57 -0
- package/billing/__stories__/Header2.stories.js_bak +62 -0
- package/billing/__stories__/Header3.stories.js_bak +69 -0
- package/billing/__stories__/Paragraph.stories.js_bak +84 -0
- package/billing/__stories__/ParagraphGroup.stories.js_bak +68 -0
- package/billing/__stories__/ParagraphText.stories.js_bak +64 -0
- package/billing/__stories__/Section.stories.js_bak +115 -0
- package/billing/__stories__/SectionBody.stories.js_bak +62 -0
- package/billing/__stories__/SectionHeader.stories.js-bak +68 -0
- package/breadcrumb/Breadcrumb.js +78 -0
- package/breadcrumb/index.js +13 -0
- package/button/Button.js +154 -0
- package/button/ButtonGroup.js +61 -0
- package/button/IconButton.js +72 -0
- package/button/ScrollToTopButton.js +54 -0
- package/button/index.js +34 -0
- package/callout/Callout.js +52 -0
- package/callout/index.js +13 -0
- package/chart/BarChart.js +148 -0
- package/chart/DoughnutChart.js +118 -0
- package/chart/LineChart.js +146 -0
- package/chart/SingleBarChart.js +42 -0
- package/chart/index.js +52 -0
- package/chart/utils/centerTextPlugin.js +62 -0
- package/chart/utils/customTooltip.js +94 -0
- package/chart/utils/htmlLegendPlugin.js +89 -0
- package/chart/utils/index.js +27 -0
- package/chart/utils/padEmptyChartBar.js +53 -0
- package/chart/utils/yAxisTopTitlePlugin.js +49 -0
- package/container/FlexContainer.js +40 -0
- package/container/index.js +13 -0
- package/cropper/Cropper.js +54 -0
- package/cropper/CropperModalHandler.js +41 -0
- package/cropper/index.js +20 -0
- package/cropper/subComponent/CropImageModal.js +79 -0
- package/datetimePicker/DatePicker.js +363 -0
- package/datetimePicker/DatePickerV2.js +407 -0
- package/datetimePicker/DatetimePicker.js +240 -0
- package/datetimePicker/DatetimePickerV2.js +395 -0
- package/datetimePicker/DatetimePickerV3.js +279 -0
- package/datetimePicker/TimeInput.js +56 -0
- package/datetimePicker/TimePicker.js +317 -0
- package/datetimePicker/TimePickerStyle.js +64 -0
- package/datetimePicker/TimePickerV2.js +208 -0
- package/datetimePicker/accordion/Month.js +254 -0
- package/datetimePicker/accordion/Year.js +284 -0
- package/datetimePicker/hooks/index.js +27 -0
- package/datetimePicker/hooks/useChangeNumber.js +42 -0
- package/datetimePicker/hooks/useDecrease.js +38 -0
- package/datetimePicker/hooks/useIncrease.js +38 -0
- package/datetimePicker/index.js +69 -0
- package/datetimePicker/provider/constant.js +43 -0
- package/datetimePicker/subComponent/Accordion.js +373 -0
- package/datetimePicker/subComponent/CustomTimeInput.js +47 -0
- package/datetimePicker/subComponent/DateTimePickerContext.js +9 -0
- package/datetimePicker/utils/GMTDate.js +15 -0
- package/datetimePicker/utils/pad.js +13 -0
- package/datetimePicker/utils/toUTC0.js +13 -0
- package/descriptionList/DescriptionDetail.js +28 -0
- package/descriptionList/DescriptionList.js +25 -0
- package/descriptionList/DescriptionTerm.js +14 -0
- package/descriptionList/index.js +27 -0
- package/divider/Divider.js +31 -0
- package/divider/index.js +13 -0
- package/dropdown/Dropdown.js +55 -0
- package/dropdown/DropdownButtonOption.js +43 -0
- package/dropdown/DropdownContent.js +90 -0
- package/dropdown/DropdownDivOption.js +26 -0
- package/dropdown/DropdownItem.js +26 -0
- package/dropdown/DropdownLinkOption.js +24 -0
- package/dropdown/DropdownToggle.js +38 -0
- package/dropdown/index.js +42 -0
- package/dropdown/subComponent/DropdownContext.js +9 -0
- package/dropzone/FileDropzone.js +479 -0
- package/dropzone/ImageDropzone.js +334 -0
- package/dropzone/index.js +20 -0
- package/dropzone/subComponent/Message.js +26 -0
- package/figure/IconFigure.js +42 -0
- package/figure/ImageFigure.js +38 -0
- package/figure/index.js +20 -0
- package/file/HiddenFileInput.js +15 -0
- package/file/index.js +13 -0
- package/form/Checkbox.js +166 -0
- package/form/Fieldset.js +18 -0
- package/form/FormItem.js +22 -0
- package/form/Input.js +66 -0
- package/form/Label.js +61 -0
- package/form/MutedText.js +21 -0
- package/form/PasswordInput.js +47 -0
- package/form/RadioButton.js +103 -0
- package/form/SearchSelect.js +181 -0
- package/form/Searchbox.js +98 -0
- package/form/Slider.js +46 -0
- package/form/SwitchButton.js +105 -0
- package/form/Textarea.js +41 -0
- package/form/TreeView.js +73 -0
- package/form/index.js +104 -0
- package/grid/Column.js +46 -0
- package/grid/Grid.js +35 -0
- package/grid/index.js +20 -0
- package/heading/Heading1.js +21 -0
- package/heading/Heading2.js +28 -0
- package/heading/Heading3.js +49 -0
- package/heading/index.js +27 -0
- package/helmet/Helmet.js +23 -0
- package/helmet/index.js +20 -0
- package/iconbox/ApplicationIconBox.js +81 -0
- package/iconbox/IconBox.js +67 -0
- package/iconbox/IconBoxV2.js +72 -0
- package/iconbox/index.js +27 -0
- package/iconbox/subComponent/IconBoxFigure.js +50 -0
- package/iconbox/subComponent/IconBoxImage.js +42 -0
- package/image/ImageFluid.js +17 -0
- package/image/UploadImage.js +250 -0
- package/image/index.js +20 -0
- package/index.js +568 -0
- package/jsoneditor/JsonEditor.js +142 -0
- package/jsoneditor/index.js +13 -0
- package/keyframe/Pulse.js +21 -0
- package/keyframe/Spin.js +13 -0
- package/layout/Aside.js +48 -0
- package/layout/AsideHeader.jsx +27 -0
- package/layout/Backdrop.js +23 -0
- package/layout/Container.js +39 -0
- package/layout/Footer.js +45 -0
- package/layout/Header.jsx +55 -0
- package/layout/Layout.jsx +84 -0
- package/layout/Logo.jsx +17 -0
- package/layout/MenuIcon.jsx +27 -0
- package/layout/Sidebar.jsx +271 -0
- package/layout/index.js +13 -0
- package/link/LinkSpan.js +69 -0
- package/link/index.js +13 -0
- package/map/GoogleMap.js +448 -0
- package/map/GoogleReverseGeolocation.js +200 -0
- package/map/LeafletMap.js +231 -0
- package/map/LeafletReverseGeolocation.js +101 -0
- package/map/index.js +34 -0
- package/map/subComponent/BasicLeafletMap.js +34 -0
- package/map/subComponent/GoogleMapContainer.js +29 -0
- package/map/subComponent/GoogleMapPopup.js +109 -0
- package/map/subComponent/GoogleMapWrapper.js +40 -0
- package/map/subComponent/LeafletDrawControl.js +127 -0
- package/map/subComponent/LeafletMapContainer.js +173 -0
- package/map/subComponent/MapSearchBoxControl.js +54 -0
- package/modal/StateModal.js +178 -0
- package/modal/TitleModal.js +250 -0
- package/modal/index.js +20 -0
- package/package.json +54 -0
- package/page/Disclaimer.js +128 -0
- package/page/index.js +13 -0
- package/paginate/Paginate.js +137 -0
- package/paginate/index.js +13 -0
- package/popover/Popover.js +91 -0
- package/popover/index.js +13 -0
- package/qrcode/QRCode.js +58 -0
- package/qrcode/QRCodeContainter.js +34 -0
- package/qrcode/index.js +20 -0
- package/ribbon/Ribbon.js +42 -0
- package/ribbon/index.js +13 -0
- package/section/Section.js +133 -0
- package/section/SectionBody.js +52 -0
- package/section/SectionHeader.js +70 -0
- package/section/SectionToolbar.js +18 -0
- package/section/SectionToolbarItem.js +17 -0
- package/section/index.js +41 -0
- package/select/InputSelect.js +270 -0
- package/select/Select.js +818 -0
- package/select/index.js +20 -0
- package/select/subComponent/Checkbox.js +48 -0
- package/select/subComponent/Footer.js +13 -0
- package/select/subComponent/ListBox.js +30 -0
- package/select/subComponent/Option.js +45 -0
- package/select/subComponent/OptionGroup.js +23 -0
- package/select/subComponent/Options.js +32 -0
- package/select/subComponent/SearchBox.js +58 -0
- package/select/subComponent/SelectedMultipleCount.js +39 -0
- package/select/subComponent/SelectedMultipleTags.js +54 -0
- package/select/subComponent/SelectedMultipleText.js +70 -0
- package/select/subComponent/SelectedSingle.js +17 -0
- package/styles/GlobalStyle.js +334 -0
- package/styles/config/breakpoint.style.js +13 -0
- package/styles/config/header.style.js +10 -0
- package/styles/config/sidebar.style.js +17 -0
- package/styles/index.js +20 -0
- package/styles/mixin/backgroundColor.js +44 -0
- package/styles/mixin/borderColor.js +37 -0
- package/styles/mixin/color.js +37 -0
- package/styles/mixin/colorOnBackground.js +37 -0
- package/styles/mixin/inputPlaceholder.js +30 -0
- package/styles/mixin/media.js +21 -0
- package/styles/mixin/rounded.js +30 -0
- package/styles/mixin/scrollbar.js +32 -0
- package/styles/theme/dark.theme.js +97 -0
- package/styles/theme/light.theme.js +97 -0
- package/styles/theme/white.theme.js +97 -0
- package/styles/themes.js +16 -0
- package/table/GridTable.js +336 -0
- package/table/ImageBox.js +45 -0
- package/table/InfiniteGridTable.js +403 -0
- package/table/PermissionTable.js +64 -0
- package/table/SimpleGridTable.js +143 -0
- package/table/Table.js +568 -0
- package/table/__mock__/columns.js +70 -0
- package/table/__mock__/data.js +536 -0
- package/table/hooks/index.js +20 -0
- package/table/hooks/useCalculateDataRange.js +28 -0
- package/table/hooks/useGenerateSort.js +39 -0
- package/table/index.js +48 -0
- package/table/subComponent/BaseTableHeadCell.js +62 -0
- package/table/subComponent/GridTableFooter.js +24 -0
- package/table/subComponent/GridTableHeadCell.js +20 -0
- package/table/subComponent/Resizer.js +77 -0
- package/table/subComponent/TableFooter.js +31 -0
- package/table/subComponent/TableFooterInfo.js +13 -0
- package/table/subComponent/TableFooterPager.js +33 -0
- package/table/subComponent/TableHeadCell.js +19 -0
- package/table/subComponent/TableSort.js +38 -0
- package/tagify/TagifyStyle.js +60 -0
- package/tagify/Tags.js +56 -0
- package/tagify/index.js +27 -0
- package/tagify/templates/getCreateButtonTemplate.js +18 -0
- package/text/Paragraph.js +86 -0
- package/text/index.js +13 -0
- package/timeline/Timeline.js +139 -0
- package/timeline/index.js +13 -0
- package/toast/CustomToastContainer.js +45 -0
- package/toast/MessageContainer.js +51 -0
- package/toast/index.js +36 -0
- package/toast/show.js +39 -0
- package/toast/style.css +1 -0
- package/tooltip/Tooltip.js +140 -0
- package/tooltip/index.js +13 -0
- package/treeView/TreeViewV2.js +38 -0
- package/treeView/TreeflexStyle.js +49 -0
- package/treeView/index.js +20 -0
- package/wizard/Wizard.js +251 -0
- package/wizard/index.js +13 -0
package/wizard/Wizard.js
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _fa = require("react-icons/fa");
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _utils = require("@cashub/utils");
|
|
11
|
+
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const Wizard = props => {
|
|
15
|
+
const {
|
|
16
|
+
navNames = [],
|
|
17
|
+
defaultStep = 1,
|
|
18
|
+
children,
|
|
19
|
+
beforeNext,
|
|
20
|
+
beforePrevious,
|
|
21
|
+
clickableSteps = true
|
|
22
|
+
} = props;
|
|
23
|
+
const [currentStep, setCurrentStep] = (0, _react.useState)(defaultStep);
|
|
24
|
+
const goToStep = (0, _react.useCallback)(async step => {
|
|
25
|
+
if (step > currentStep) {
|
|
26
|
+
if (!beforeNext) {
|
|
27
|
+
setCurrentStep(step);
|
|
28
|
+
} else {
|
|
29
|
+
beforeNext({
|
|
30
|
+
current: currentStep,
|
|
31
|
+
next: step
|
|
32
|
+
}).then(() => {
|
|
33
|
+
setCurrentStep(step);
|
|
34
|
+
}).catch(error => {});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (step < currentStep) {
|
|
38
|
+
if (!beforePrevious) {
|
|
39
|
+
setCurrentStep(step);
|
|
40
|
+
} else {
|
|
41
|
+
beforePrevious({
|
|
42
|
+
current: currentStep
|
|
43
|
+
}).then(() => {
|
|
44
|
+
setCurrentStep(step);
|
|
45
|
+
}).catch(error => {});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, [currentStep, beforeNext, beforePrevious]);
|
|
49
|
+
const nextStep = (0, _react.useCallback)(() => {
|
|
50
|
+
let next = currentStep + 1;
|
|
51
|
+
if (next > navNames.length) {
|
|
52
|
+
next = navNames.length;
|
|
53
|
+
}
|
|
54
|
+
if (!beforeNext) {
|
|
55
|
+
setCurrentStep(next);
|
|
56
|
+
} else {
|
|
57
|
+
beforeNext({
|
|
58
|
+
current: currentStep
|
|
59
|
+
}).then(() => {
|
|
60
|
+
setCurrentStep(next);
|
|
61
|
+
}).catch(error => {});
|
|
62
|
+
}
|
|
63
|
+
}, [navNames.length, beforeNext, currentStep]);
|
|
64
|
+
const previousStep = (0, _react.useCallback)(() => {
|
|
65
|
+
let previous = currentStep - 1;
|
|
66
|
+
if (previous < 1) {
|
|
67
|
+
previous = 1;
|
|
68
|
+
}
|
|
69
|
+
if (!beforePrevious) {
|
|
70
|
+
setCurrentStep(previous);
|
|
71
|
+
} else {
|
|
72
|
+
beforePrevious({
|
|
73
|
+
current: currentStep
|
|
74
|
+
}).then(() => {
|
|
75
|
+
setCurrentStep(previous);
|
|
76
|
+
}).catch(error => {});
|
|
77
|
+
}
|
|
78
|
+
}, [beforePrevious, currentStep]);
|
|
79
|
+
const isLastStep = (0, _react.useCallback)(() => {
|
|
80
|
+
return currentStep === navNames.length;
|
|
81
|
+
}, [currentStep, navNames.length]);
|
|
82
|
+
const api = (0, _react.useMemo)(() => {
|
|
83
|
+
return {
|
|
84
|
+
goToStep,
|
|
85
|
+
nextStep,
|
|
86
|
+
previousStep,
|
|
87
|
+
isLastStep
|
|
88
|
+
};
|
|
89
|
+
}, [goToStep, isLastStep, nextStep, previousStep]);
|
|
90
|
+
const childrenWithProps = (0, _react.useMemo)(() => {
|
|
91
|
+
const validChildren = _react.Children.toArray(children).filter(child => !!child);
|
|
92
|
+
return _react.Children.map(validChildren, (child, index) => {
|
|
93
|
+
if (!child) return null;
|
|
94
|
+
const className = index + 1 === currentStep && 'active';
|
|
95
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Step, {
|
|
96
|
+
className: className,
|
|
97
|
+
"data-testid": "step",
|
|
98
|
+
children: (0, _utils.isReactComponent)(child) ? /*#__PURE__*/(0, _react.cloneElement)(child, api) : child
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
}, [api, children, currentStep]);
|
|
102
|
+
(0, _react.useEffect)(() => {
|
|
103
|
+
setCurrentStep(defaultStep);
|
|
104
|
+
}, [defaultStep]);
|
|
105
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
106
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Nav, {
|
|
107
|
+
children: navNames.map((name, index, arr) => {
|
|
108
|
+
const step = index + 1;
|
|
109
|
+
const arrow = step === currentStep && step !== arr.length ? 'arrow' : undefined;
|
|
110
|
+
let className = '';
|
|
111
|
+
if (step === currentStep) {
|
|
112
|
+
className += 'current';
|
|
113
|
+
} else if (step < currentStep) {
|
|
114
|
+
className += 'done';
|
|
115
|
+
}
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NavItem, {
|
|
117
|
+
className: className,
|
|
118
|
+
onClick: () => clickableSteps === true && goToStep(step),
|
|
119
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(NavTitle, {
|
|
120
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
121
|
+
children: step
|
|
122
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
123
|
+
children: name
|
|
124
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
125
|
+
className: arrow,
|
|
126
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_fa.FaCaretRight, {})
|
|
127
|
+
})]
|
|
128
|
+
})
|
|
129
|
+
}, step);
|
|
130
|
+
})
|
|
131
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
132
|
+
children: childrenWithProps
|
|
133
|
+
})]
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
const Nav = _styledComponents.default.ul`
|
|
137
|
+
display: flex;
|
|
138
|
+
background: var(--color-background2);
|
|
139
|
+
border-radius: var(--border-radius-l);
|
|
140
|
+
margin-bottom: var(--spacing);
|
|
141
|
+
|
|
142
|
+
${_media.default.mobile`
|
|
143
|
+
display: block;
|
|
144
|
+
`}
|
|
145
|
+
`;
|
|
146
|
+
const NavItem = _styledComponents.default.li`
|
|
147
|
+
color: var(--font-on-mute);
|
|
148
|
+
font-size: var(--font-body1);
|
|
149
|
+
font-weight: var(--font-bold);
|
|
150
|
+
padding: 0 var(--spacing-xs);
|
|
151
|
+
width: 100%;
|
|
152
|
+
height: 36px;
|
|
153
|
+
line-height: 36px;
|
|
154
|
+
transition: 0.3s;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
flex: 1;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
|
|
159
|
+
&:hover {
|
|
160
|
+
color: var(--font-on-background);
|
|
161
|
+
|
|
162
|
+
> div > span:first-of-type {
|
|
163
|
+
color: var(--font-on-primary);
|
|
164
|
+
background: var(--font-on-background);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.current,
|
|
169
|
+
&.done {
|
|
170
|
+
background: var(--color-primary);
|
|
171
|
+
color: var(--font-on-primary);
|
|
172
|
+
|
|
173
|
+
> div > span:first-of-type {
|
|
174
|
+
color: var(--color-primary);
|
|
175
|
+
background: var(--font-on-primary);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.current {
|
|
180
|
+
background: var(--color-primary);
|
|
181
|
+
color: var(--font-on-primary);
|
|
182
|
+
border-radius: 0 var(--border-radius-l) var(--border-radius-l) 0;
|
|
183
|
+
|
|
184
|
+
&:first-child {
|
|
185
|
+
border-radius: var(--border-radius-l);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
${_media.default.mobile`
|
|
189
|
+
border-radius: 0 0 var(--border-radius) var(--border-radius);
|
|
190
|
+
`}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&.done {
|
|
194
|
+
background: var(--color-primary);
|
|
195
|
+
color: var(--font-on-primary);
|
|
196
|
+
|
|
197
|
+
&:first-child {
|
|
198
|
+
border-radius: var(--border-radius-l) 0 0 var(--border-radius-l);
|
|
199
|
+
|
|
200
|
+
${_media.default.mobile`
|
|
201
|
+
border-radius: var(--border-radius) var(--border-radius) 0 0;
|
|
202
|
+
`}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
`;
|
|
206
|
+
const NavTitle = _styledComponents.default.div`
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
|
|
210
|
+
> span:first-of-type {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
margin-right: var(--spacing-xs);
|
|
215
|
+
color: var(--font-on-mute);
|
|
216
|
+
flex: 0 0;
|
|
217
|
+
flex-basis: 24px;
|
|
218
|
+
width: 24px;
|
|
219
|
+
height: 24px;
|
|
220
|
+
border-radius: var(--border-radius-l);
|
|
221
|
+
background: var(--font-on-mute);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
> p {
|
|
225
|
+
margin-right: auto;
|
|
226
|
+
white-space: nowrap;
|
|
227
|
+
overflow: hidden;
|
|
228
|
+
text-overflow: ellipsis;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
> span:last-of-type {
|
|
232
|
+
display: none;
|
|
233
|
+
|
|
234
|
+
&.arrow {
|
|
235
|
+
display: flex;
|
|
236
|
+
align-self: center;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
${_media.default.mobile`
|
|
240
|
+
transform: rotate(90deg);
|
|
241
|
+
`}
|
|
242
|
+
}
|
|
243
|
+
`;
|
|
244
|
+
const Step = _styledComponents.default.div`
|
|
245
|
+
display: none;
|
|
246
|
+
|
|
247
|
+
&.active {
|
|
248
|
+
display: block;
|
|
249
|
+
}
|
|
250
|
+
`;
|
|
251
|
+
var _default = exports.default = Wizard;
|
package/wizard/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Wizard", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Wizard.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Wizard = _interopRequireDefault(require("./Wizard"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|