@cashub/ui 0.47.0 → 0.48.1
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/TabList.js +38 -26
- package/Tab/TabPanel.js +13 -20
- package/Tab/TabTab.js +36 -24
- package/Tab/index.js +15 -1
- 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 +13 -18
- package/VerticalTab/TabPanel.js +16 -20
- package/VerticalTab/TabTab.js +40 -21
- package/VerticalTab/VerticalTab.js +8 -4
- package/alert/Alert.js +12 -5
- package/animate/Collapse.js +5 -7
- package/animate/Loader.js +18 -7
- package/animate/PulseRing.js +18 -5
- package/animate/Spinner.js +8 -3
- package/backdrop/BaseBackdrop.js +9 -3
- package/backdrop/LoadingBackdrop.js +7 -3
- package/backdrop/ModalBackdrop.js +5 -3
- package/badge/Badge.js +15 -3
- package/badge/BadgeDot.js +8 -3
- package/badge/BadgeFill.js +24 -6
- package/badge/BadgeWithText.js +13 -3
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +42 -3
- package/button/Button.js +88 -20
- package/button/ButtonGroup.js +33 -9
- package/button/IconButton.js +37 -10
- package/button/ScrollToTopButton.js +12 -4
- package/callout/Callout.js +37 -8
- package/chart/BarChart.js +10 -17
- package/chart/DoughnutChart.js +34 -20
- package/chart/LineChart.js +11 -18
- package/chart/SingleBarChart.js +22 -5
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +7 -7
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/container/FlexContainer.js +15 -7
- package/cropper/Cropper.js +1 -2
- package/datetimePicker/DatePicker.js +80 -26
- package/datetimePicker/DatePickerV2.js +95 -36
- package/datetimePicker/DatetimePicker.js +174 -11
- package/datetimePicker/DatetimePickerV2.js +87 -33
- package/datetimePicker/DatetimePickerV3.js +174 -11
- package/datetimePicker/TimeInput.js +35 -10
- package/datetimePicker/TimePicker.js +77 -22
- package/datetimePicker/TimePickerStyle.js +53 -3
- package/datetimePicker/TimePickerV2.js +54 -21
- package/datetimePicker/accordion/Month.js +93 -16
- package/datetimePicker/accordion/Year.js +96 -18
- package/datetimePicker/hooks/useChangeNumber.js +3 -6
- package/datetimePicker/hooks/useDecrease.js +3 -6
- package/datetimePicker/hooks/useIncrease.js +3 -6
- package/datetimePicker/subComponent/Accordion.js +101 -20
- package/descriptionList/DescriptionDetail.js +15 -4
- package/descriptionList/DescriptionList.js +12 -4
- package/descriptionList/DescriptionTerm.js +5 -3
- package/divider/Divider.js +15 -6
- package/dropdown/DropdownButtonOption.js +22 -6
- package/dropdown/DropdownContent.js +29 -15
- package/dropdown/DropdownDivOption.js +17 -3
- package/dropdown/DropdownLinkOption.js +14 -3
- package/dropdown/DropdownToggle.js +7 -15
- package/dropzone/FileDropzone.js +121 -22
- package/dropzone/ImageDropzone.js +83 -14
- package/dropzone/subComponent/Message.js +11 -4
- package/figure/IconFigure.js +16 -7
- package/figure/ImageFigure.js +19 -6
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +74 -13
- package/form/Fieldset.js +9 -3
- package/form/FormItem.js +10 -5
- package/form/Input.js +40 -7
- package/form/Label.js +34 -10
- package/form/MutedText.js +8 -4
- package/form/PasswordInput.js +20 -13
- package/form/RadioButton.js +55 -8
- package/form/SearchSelect.js +64 -12
- package/form/Searchbox.js +45 -19
- package/form/Slider.js +28 -10
- package/form/SwitchButton.js +48 -14
- package/form/Textarea.js +30 -3
- package/form/TreeView.js +13 -6
- package/grid/Column.js +23 -10
- package/grid/Grid.js +14 -6
- package/heading/Heading1.js +8 -4
- package/heading/Heading2.js +11 -5
- package/heading/Heading3.js +20 -8
- package/iconbox/ApplicationIconBox.js +48 -12
- package/iconbox/IconBox.js +31 -7
- package/iconbox/IconBoxV2.js +33 -8
- package/iconbox/subComponent/IconBoxFigure.js +17 -9
- package/iconbox/subComponent/IconBoxImage.js +21 -8
- package/image/ImageFluid.js +7 -3
- package/image/UploadImage.js +66 -18
- package/index.js +8 -1
- package/jsoneditor/JsonEditor.js +121 -15
- package/keyframe/Pulse.js +13 -3
- package/keyframe/Spin.js +5 -3
- package/layout/Aside.js +30 -5
- package/layout/Backdrop.js +8 -4
- package/layout/Container.js +21 -5
- package/layout/Footer.js +26 -7
- package/link/LinkSpan.js +37 -19
- package/map/GoogleMap.js +3 -7
- package/map/GoogleReverseGeolocation.js +6 -3
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +16 -4
- package/map/subComponent/GoogleMapPopup.js +7 -10
- package/map/subComponent/GoogleMapWrapper.js +8 -15
- package/map/subComponent/LeafletDrawControl.js +9 -7
- package/map/subComponent/LeafletMapContainer.js +159 -4
- package/modal/StateModal.js +49 -28
- package/modal/TitleModal.js +70 -29
- package/package.json +1 -1
- package/page/Disclaimer.js +119 -3
- package/paginate/Paginate.js +54 -12
- package/popover/Popover.js +30 -25
- package/qrcode/QRCode.js +20 -6
- package/qrcode/QRCodeContainter.js +12 -4
- package/ribbon/Ribbon.js +29 -4
- package/section/Section.js +68 -20
- package/section/SectionBody.js +29 -8
- package/section/SectionHeader.js +36 -11
- package/section/SectionToolbar.js +9 -3
- package/section/SectionToolbarItem.js +8 -3
- package/select/InputSelect.js +16 -23
- package/select/Select.js +112 -43
- package/select/subComponent/Checkbox.js +24 -5
- package/select/subComponent/Footer.js +4 -3
- package/select/subComponent/ListBox.js +12 -5
- package/select/subComponent/Option.js +27 -7
- package/select/subComponent/OptionGroup.js +13 -3
- package/select/subComponent/Options.js +18 -5
- package/select/subComponent/SearchBox.js +34 -12
- package/select/subComponent/SelectedMultipleTags.js +21 -3
- package/select/subComponent/SelectedMultipleText.js +20 -4
- package/select/subComponent/SelectedSingle.js +7 -3
- package/styles/GlobalStyle.js +156 -45
- package/styles/mixin/backgroundColor.js +16 -8
- package/styles/mixin/borderColor.js +13 -7
- package/styles/mixin/color.js +13 -7
- package/styles/mixin/colorOnBackground.js +13 -7
- package/styles/mixin/inputPlaceholder.js +20 -3
- package/styles/mixin/media.js +5 -3
- package/styles/mixin/rounded.js +10 -6
- package/styles/mixin/scrollbar.js +13 -3
- package/styles/theme/dark.theme.js +15 -14
- package/styles/theme/light.theme.js +15 -14
- package/styles/theme/white.theme.js +15 -14
- package/table/GridTable.js +71 -33
- package/table/ImageBox.js +15 -5
- package/table/InfiniteGridTable.js +92 -46
- package/table/PermissionTable.js +32 -10
- package/table/SimpleGridTable.js +143 -0
- package/table/Table.js +198 -48
- package/table/__mock__/columns.js +1 -1
- package/table/index.js +7 -0
- package/table/subComponent/BaseTableHeadCell.js +37 -8
- package/table/subComponent/GridTableFooter.js +10 -4
- package/table/subComponent/GridTableHeadCell.js +6 -4
- package/table/subComponent/Resizer.js +19 -4
- package/table/subComponent/TableFooter.js +15 -6
- package/table/subComponent/TableFooterInfo.js +4 -3
- package/table/subComponent/TableFooterPager.js +19 -6
- package/table/subComponent/TableHeadCell.js +9 -3
- package/table/subComponent/TableSort.js +17 -7
- package/tagify/TagifyStyle.js +49 -3
- package/tagify/Tags.js +37 -21
- package/tagify/templates/getCreateButtonTemplate.js +5 -2
- package/text/Paragraph.js +50 -12
- package/timeline/Timeline.js +94 -17
- package/toast/CustomToastContainer.js +35 -3
- package/toast/MessageContainer.js +22 -4
- package/tooltip/Tooltip.js +47 -19
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +38 -3
- package/wizard/Wizard.js +115 -6
|
@@ -6,9 +6,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _scrollbar = _interopRequireDefault(require("../styles/mixin/scrollbar"));
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
10
|
// integrate treeflex component
|
|
13
|
-
const TreeflexStyle = (0, _styledComponents.createGlobalStyle)
|
|
11
|
+
const TreeflexStyle = (0, _styledComponents.createGlobalStyle)`
|
|
12
|
+
.tf-tree {
|
|
13
|
+
text-align: center;
|
|
14
|
+
color: var(--font-on-background);
|
|
15
|
+
|
|
16
|
+
.tf-nc {
|
|
17
|
+
border: var(--border-width) solid var(--border-color);
|
|
18
|
+
border-radius: 8px;
|
|
19
|
+
min-width: 120px;
|
|
20
|
+
|
|
21
|
+
&.primary {
|
|
22
|
+
border-color: var(--color-primary);
|
|
23
|
+
font-weight: var(--font-bold);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
${_scrollbar.default}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tf-tree ul {
|
|
31
|
+
margin-bottom: 2em;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.tf-tree li ul {
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tf-tree li li:before {
|
|
39
|
+
border: var(--border-width) solid var(--border-color);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tf-tree .tf-nc:after,
|
|
43
|
+
.tf-tree .tf-nc:before,
|
|
44
|
+
.tf-tree .tf-node-content:after,
|
|
45
|
+
.tf-tree .tf-node-content:before {
|
|
46
|
+
border: var(--border-width) solid var(--border-color);
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
14
49
|
var _default = exports.default = TreeflexStyle;
|
package/wizard/Wizard.js
CHANGED
|
@@ -10,9 +10,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
10
10
|
var _utils = require("@cashub/utils");
|
|
11
11
|
var _media = _interopRequireDefault(require("../styles/mixin/media"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
14
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
14
|
const Wizard = props => {
|
|
17
15
|
const {
|
|
18
16
|
navNames = [],
|
|
@@ -135,8 +133,119 @@ const Wizard = props => {
|
|
|
135
133
|
})]
|
|
136
134
|
});
|
|
137
135
|
};
|
|
138
|
-
const Nav = _styledComponents.default.ul
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
+
`;
|
|
142
251
|
var _default = exports.default = Wizard;
|