@caspeco/casper-ui-library 11.3.0 → 12.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/dist/components/accordion/accordion-item.js +10 -10
- package/dist/components/accordion/accordion-panel.js +4 -4
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.js +10 -10
- package/dist/components/badge/badge.js +18 -18
- package/dist/components/box/box.js +3 -3
- package/dist/components/breadcrumbs/breadcrumb-item.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumb-item.js +5 -4
- package/dist/components/breadcrumbs/breadcrumb-link.js +3 -3
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +23 -23
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox-icon.js +3 -3
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.js +30 -29
- package/dist/components/collapsible/collapsible.translations.d.ts +6 -0
- package/dist/components/collapsible/collapsible.translations.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.translations.js +54 -0
- package/dist/components/collapsible/types.d.ts +0 -6
- package/dist/components/collapsible/types.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.d.ts +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +66 -64
- package/dist/components/combobox/combobox-item.js +8 -8
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +95 -94
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +91 -91
- package/dist/components/combobox/combobox.translations.d.ts +10 -0
- package/dist/components/combobox/combobox.translations.d.ts.map +1 -0
- package/dist/components/combobox/combobox.translations.js +102 -0
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/combobox/types.d.ts +0 -15
- package/dist/components/combobox/types.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +163 -162
- package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
- package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-multi-picker.js +20 -21
- package/dist/components/date-picker/date-picker-date-cell.js +27 -27
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-header.js +84 -116
- package/dist/components/date-picker/date-picker-week-cell.js +4 -4
- package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +20 -21
- package/dist/components/date-picker/date-picker.translations.d.ts +6 -0
- package/dist/components/date-picker/date-picker.translations.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.translations.js +54 -0
- package/dist/components/date-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-range-picker.js +15 -16
- package/dist/components/date-picker/date-week-picker.d.ts +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-week-picker.js +13 -14
- package/dist/components/date-picker/types.d.ts +4 -10
- package/dist/components/date-picker/types.d.ts.map +1 -1
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/drawer/inline-drawer.js +4 -4
- package/dist/components/fieldset/fieldset-error-text.js +3 -3
- package/dist/components/fieldset/fieldset-helper-text.js +3 -3
- package/dist/components/fieldset/fieldset-legend.js +3 -3
- package/dist/components/fieldset/fieldset.js +3 -3
- package/dist/components/flex/flex.js +3 -3
- package/dist/components/form-control/form-control.js +3 -3
- package/dist/components/form-control/form-error-message.js +3 -3
- package/dist/components/form-control/form-helper-text.js +3 -3
- package/dist/components/form-control/form-label.js +5 -5
- package/dist/components/grid/grid-item.js +3 -3
- package/dist/components/grid/grid.js +3 -3
- package/dist/components/heading/heading.js +3 -3
- package/dist/components/highlight/highlight.js +3 -3
- package/dist/components/icon/create-icon.js +7 -7
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/image/image.js +3 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts +1 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +75 -74
- package/dist/components/image-upload/image-upload-icons.js +11 -11
- package/dist/components/image-upload/image-upload-modal.d.ts +2 -3
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +69 -69
- package/dist/components/image-upload/image-upload.d.ts +1 -1
- package/dist/components/image-upload/image-upload.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload.js +43 -44
- package/dist/components/image-upload/image-upload.translations.d.ts +12 -0
- package/dist/components/image-upload/image-upload.translations.d.ts.map +1 -0
- package/dist/components/image-upload/image-upload.translations.js +126 -0
- package/dist/components/image-upload/types.d.ts +0 -3
- package/dist/components/image-upload/types.d.ts.map +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +5 -5
- package/dist/components/link/link.js +3 -3
- package/dist/components/list/list-item.js +3 -3
- package/dist/components/list/list.js +3 -3
- package/dist/components/menu/menu-box-button.js +4 -4
- package/dist/components/menu/menu-button.js +4 -4
- package/dist/components/menu/menu-group.js +11 -11
- package/dist/components/menu/menu-icon-button.js +4 -4
- package/dist/components/menu/menu-item.js +7 -7
- package/dist/components/menu/menu-list.js +3 -3
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/message/message.js +8 -8
- package/dist/components/modal/modal-body.js +3 -3
- package/dist/components/modal/modal-close-button.js +5 -5
- package/dist/components/modal/modal-footer.js +3 -3
- package/dist/components/modal/modal-header.js +3 -3
- package/dist/components/modal/modal.js +8 -8
- package/dist/components/navigation-list/navigation-list-item.js +10 -10
- package/dist/components/navigation-list/navigation-list.js +4 -4
- package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
- package/dist/components/paginator/paginator.d.ts +1 -4
- package/dist/components/paginator/paginator.d.ts.map +1 -1
- package/dist/components/paginator/paginator.js +31 -30
- package/dist/components/paginator/paginator.translations.d.ts +7 -0
- package/dist/components/paginator/paginator.translations.d.ts.map +1 -0
- package/dist/components/paginator/paginator.translations.js +66 -0
- package/dist/components/phone-input/country-data.d.ts +2 -2
- package/dist/components/phone-input/country-data.d.ts.map +1 -1
- package/dist/components/phone-input/country-list.js +6 -6
- package/dist/components/phone-input/country-selector.d.ts +1 -4
- package/dist/components/phone-input/country-selector.d.ts.map +1 -1
- package/dist/components/phone-input/country-selector.js +86 -84
- package/dist/components/phone-input/phone-input-helpers.d.ts +4 -5
- package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input-helpers.js +33 -34
- package/dist/components/phone-input/phone-input.d.ts +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input.js +38 -38
- package/dist/components/phone-input/phone-input.translations.d.ts +10 -0
- package/dist/components/phone-input/phone-input.translations.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.translations.js +102 -0
- package/dist/components/phone-input/types.d.ts +0 -3
- package/dist/components/phone-input/types.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.d.ts +0 -3
- package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.js +82 -81
- package/dist/components/quantity-button/quantity-button.js +12 -12
- package/dist/components/radio/radio-group.js +4 -4
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +14 -14
- package/dist/components/radio-card/radio-card-group.js +3 -3
- package/dist/components/radio-card/radio-card.d.ts +1 -1
- package/dist/components/radio-card/radio-card.js +7 -7
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +0 -2
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +129 -128
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +22 -25
- package/dist/components/rich-text-editor/{translations.d.ts → rich-text-editor.translations.d.ts} +3 -5
- package/dist/components/rich-text-editor/rich-text-editor.translations.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.translations.js +234 -0
- package/dist/components/rich-text-editor/rich-text-renderer.js +4 -4
- package/dist/components/rich-text-editor/types.d.ts +0 -2
- package/dist/components/rich-text-editor/types.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +5 -5
- package/dist/components/select/select.js +5 -5
- package/dist/components/skeleton/skeleton-text.js +3 -3
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spinner/spinner.js +5 -5
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/stack/stack.js +3 -3
- package/dist/components/stepper/step.js +25 -25
- package/dist/components/stepper/stepper.js +8 -8
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/table/table-cell.d.ts +1 -3
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +43 -46
- package/dist/components/table/table-column-resize-handle.d.ts.map +1 -1
- package/dist/components/table/table-column-resize-handle.js +22 -21
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +81 -79
- package/dist/components/table/table-context-provider.d.ts +1 -4
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +137 -140
- package/dist/components/table/table-drag-accessibility.d.ts +3 -3
- package/dist/components/table/table-drag-accessibility.d.ts.map +1 -1
- package/dist/components/table/table-drag-accessibility.js +10 -14
- package/dist/components/table/table-filter.d.ts.map +1 -1
- package/dist/components/table/table-filter.js +59 -59
- package/dist/components/table/table-header-dropdown.d.ts +0 -2
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +28 -27
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +53 -56
- package/dist/components/table/table-row-drag-handle.d.ts +1 -3
- package/dist/components/table/table-row-drag-handle.d.ts.map +1 -1
- package/dist/components/table/table-row-drag-handle.js +10 -9
- package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -3
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +9 -8
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +5 -6
- package/dist/components/table/table-sorted-reorder-prompt.d.ts +1 -3
- package/dist/components/table/table-sorted-reorder-prompt.d.ts.map +1 -1
- package/dist/components/table/table-sorted-reorder-prompt.js +26 -25
- package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-actions.js +4 -4
- package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-add-button.js +4 -4
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +110 -108
- package/dist/components/table/table-toolbar.js +11 -11
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +31 -32
- package/dist/components/table/table.translations.d.ts +45 -0
- package/dist/components/table/table.translations.d.ts.map +1 -0
- package/dist/components/table/table.translations.js +522 -0
- package/dist/components/table/types.d.ts +0 -5
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/tab-list.js +3 -3
- package/dist/components/tabs/tab-panel.js +3 -3
- package/dist/components/tabs/tab-panels.js +3 -3
- package/dist/components/tabs/tab-with-image.js +10 -10
- package/dist/components/tabs/tab.js +4 -4
- package/dist/components/tabs/tabs.js +3 -3
- package/dist/components/tag/tag.js +28 -28
- package/dist/components/text/text.js +3 -3
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/toaster/toaster.js +9 -9
- package/dist/components/toggle-button/toggle-button.js +3 -3
- package/dist/components/toggle-button/use-button-children.js +10 -10
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +8 -8
- package/dist/index.js +404 -402
- package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +13 -19
- package/dist/test-utils/render-with-theme.d.ts +5 -1
- package/dist/test-utils/render-with-theme.d.ts.map +1 -1
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/locale-provider.d.ts +9 -0
- package/dist/theme/locale-provider.d.ts.map +1 -0
- package/dist/theme/locale-provider.js +14 -0
- package/dist/theme/locale-provider.spec.d.ts +2 -0
- package/dist/theme/locale-provider.spec.d.ts.map +1 -0
- package/dist/theme/theme-locale.d.ts +7 -0
- package/dist/theme/theme-locale.d.ts.map +1 -0
- package/dist/theme/theme-locale.js +8 -0
- package/dist/theme/theme-provider.d.ts +4 -1
- package/dist/theme/theme-provider.d.ts.map +1 -1
- package/dist/theme/theme-provider.js +30 -25
- package/dist/theme/translations.d.ts +14 -0
- package/dist/theme/translations.d.ts.map +1 -0
- package/dist/theme/translations.js +10 -0
- package/dist/theme/translations.spec.d.ts +2 -0
- package/dist/theme/translations.spec.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/components/collapsible/translations.d.ts +0 -32
- package/dist/components/collapsible/translations.d.ts.map +0 -1
- package/dist/components/collapsible/translations.js +0 -30
- package/dist/components/combobox/translations.d.ts +0 -9
- package/dist/components/combobox/translations.d.ts.map +0 -1
- package/dist/components/combobox/translations.js +0 -57
- package/dist/components/image-upload/translations.d.ts +0 -73
- package/dist/components/image-upload/translations.d.ts.map +0 -1
- package/dist/components/image-upload/translations.js +0 -66
- package/dist/components/paginator/translations.d.ts +0 -9
- package/dist/components/paginator/translations.d.ts.map +0 -1
- package/dist/components/paginator/translations.js +0 -36
- package/dist/components/phone-input/translations.d.ts +0 -60
- package/dist/components/phone-input/translations.d.ts.map +0 -1
- package/dist/components/phone-input/translations.js +0 -54
- package/dist/components/rich-text-editor/translations.d.ts.map +0 -1
- package/dist/components/rich-text-editor/translations.js +0 -120
- package/dist/components/table/translations.d.ts +0 -308
- package/dist/components/table/translations.d.ts.map +0 -1
- package/dist/components/table/translations.js +0 -267
|
@@ -7,13 +7,13 @@ import { ImageIcon as s } from "./image-upload-icons.js";
|
|
|
7
7
|
import { ImageUploadAspectRatio as c } from "./types.js";
|
|
8
8
|
import { ImageUploadModal as l } from "./image-upload-modal.js";
|
|
9
9
|
import { useState as u } from "react";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { Box as m, Spinner as h } from "@chakra-ui/react";
|
|
12
12
|
//#region lib/components/image-upload/image-upload.tsx
|
|
13
13
|
var g = e();
|
|
14
14
|
function _(e) {
|
|
15
|
-
let _ = (0, g.c)(
|
|
16
|
-
_[0] !==
|
|
15
|
+
let _ = (0, g.c)(31), { title: v, savedImageUrl: y, savedCrop: b, aspectRatio: x, isLoading: S, onSave: C } = e, { isOpen: w, onOpen: T, onClose: E } = i(), [D, O] = u(y || ""), [k, A] = u(b || null), j;
|
|
16
|
+
_[0] !== E || _[1] !== C ? (j = (e, t, n) => {
|
|
17
17
|
let r = {
|
|
18
18
|
crop: t,
|
|
19
19
|
file: {
|
|
@@ -21,77 +21,76 @@ function _(e) {
|
|
|
21
21
|
imageUploadData: e.data
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
}, _[0] =
|
|
26
|
-
let
|
|
27
|
-
_[3] === x ?
|
|
24
|
+
C && (C(r, n), E());
|
|
25
|
+
}, _[0] = E, _[1] = C, _[2] = j) : j = _[2];
|
|
26
|
+
let M = j, N;
|
|
27
|
+
_[3] === x ? N = _[4] : (N = () => {
|
|
28
28
|
switch (x) {
|
|
29
29
|
case c.OneByOne: return "102px";
|
|
30
30
|
case c.SixteenByNine: return "178px";
|
|
31
31
|
case c.ThirtyTwoByNine: return "360px";
|
|
32
32
|
default: return "102px";
|
|
33
33
|
}
|
|
34
|
-
}, _[3] = x, _[4] =
|
|
35
|
-
let
|
|
36
|
-
_[5] === x ?
|
|
34
|
+
}, _[3] = x, _[4] = N);
|
|
35
|
+
let P = N, F;
|
|
36
|
+
_[5] === x ? F = _[6] : (F = () => {
|
|
37
37
|
switch (x) {
|
|
38
38
|
case c.OneByOne: return "1:1";
|
|
39
39
|
case c.SixteenByNine: return "16:9";
|
|
40
40
|
case c.ThirtyTwoByNine: return "32:9";
|
|
41
41
|
default: return "";
|
|
42
42
|
}
|
|
43
|
-
}, _[5] = x, _[6] =
|
|
44
|
-
let
|
|
45
|
-
_[7] !== S || _[8] !==
|
|
43
|
+
}, _[5] = x, _[6] = F);
|
|
44
|
+
let I = F, L;
|
|
45
|
+
_[7] !== S || _[8] !== D ? (L = () => S ? /* @__PURE__ */ f(h, {
|
|
46
46
|
color: t.OnBackgroundBorder,
|
|
47
47
|
size: "lg",
|
|
48
48
|
animationDuration: "0.825s"
|
|
49
|
-
}) :
|
|
49
|
+
}) : D ? /* @__PURE__ */ f(o, {
|
|
50
50
|
alt: "Preview Image",
|
|
51
|
-
src:
|
|
51
|
+
src: D,
|
|
52
52
|
borderRadius: n.Medium,
|
|
53
53
|
objectFit: "fill",
|
|
54
54
|
h: "100%",
|
|
55
55
|
w: "100%"
|
|
56
|
-
}) : /* @__PURE__ */
|
|
57
|
-
let
|
|
58
|
-
_[10] ===
|
|
59
|
-
let
|
|
60
|
-
_[12] !==
|
|
56
|
+
}) : /* @__PURE__ */ f(s, {}), _[7] = S, _[8] = D, _[9] = L) : L = _[9];
|
|
57
|
+
let R = L, z = P(), B;
|
|
58
|
+
_[10] === R ? B = _[11] : (B = R(), _[10] = R, _[11] = B);
|
|
59
|
+
let V;
|
|
60
|
+
_[12] !== T || _[13] !== B || _[14] !== z ? (V = /* @__PURE__ */ f(m, {
|
|
61
61
|
as: "button",
|
|
62
|
-
onClick:
|
|
62
|
+
onClick: T,
|
|
63
63
|
bg: t.BackgroundDisabled,
|
|
64
64
|
borderRadius: n.Medium,
|
|
65
|
-
w:
|
|
65
|
+
w: z,
|
|
66
66
|
h: "102px",
|
|
67
|
-
children:
|
|
68
|
-
}), _[12] =
|
|
69
|
-
let
|
|
70
|
-
_[16] ===
|
|
67
|
+
children: B
|
|
68
|
+
}), _[12] = T, _[13] = B, _[14] = z, _[15] = V) : V = _[15];
|
|
69
|
+
let H = I(), U;
|
|
70
|
+
_[16] === H ? U = _[17] : (U = /* @__PURE__ */ f(a, {
|
|
71
71
|
mt: r.XSmall,
|
|
72
72
|
color: t.OnBackground,
|
|
73
|
-
children:
|
|
74
|
-
}), _[16] =
|
|
75
|
-
let
|
|
76
|
-
_[18] !== x || _[19] !==
|
|
77
|
-
locale: T,
|
|
73
|
+
children: H
|
|
74
|
+
}), _[16] = H, _[17] = U);
|
|
75
|
+
let W;
|
|
76
|
+
_[18] !== x || _[19] !== k || _[20] !== M || _[21] !== w || _[22] !== E || _[23] !== b || _[24] !== y || _[25] !== v ? (W = /* @__PURE__ */ f(l, {
|
|
78
77
|
title: v,
|
|
79
78
|
src: y,
|
|
80
79
|
savedCrop: b,
|
|
81
80
|
aspectRatio: x,
|
|
82
|
-
isOpen:
|
|
83
|
-
onClose:
|
|
84
|
-
handleSaveImage:
|
|
85
|
-
setPreviewImage:
|
|
86
|
-
crop:
|
|
87
|
-
setCrop:
|
|
88
|
-
}), _[18] = x, _[19] =
|
|
89
|
-
let
|
|
90
|
-
return _[
|
|
81
|
+
isOpen: w,
|
|
82
|
+
onClose: E,
|
|
83
|
+
handleSaveImage: M,
|
|
84
|
+
setPreviewImage: O,
|
|
85
|
+
crop: k,
|
|
86
|
+
setCrop: A
|
|
87
|
+
}), _[18] = x, _[19] = k, _[20] = M, _[21] = w, _[22] = E, _[23] = b, _[24] = y, _[25] = v, _[26] = W) : W = _[26];
|
|
88
|
+
let G;
|
|
89
|
+
return _[27] !== V || _[28] !== U || _[29] !== W ? (G = /* @__PURE__ */ p(d, { children: [
|
|
90
|
+
V,
|
|
91
91
|
U,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
] }), _[28] = K, _[29] = U, _[30] = G, _[31] = q) : q = _[31], q;
|
|
92
|
+
W
|
|
93
|
+
] }), _[27] = V, _[28] = U, _[29] = W, _[30] = G) : G = _[30], G;
|
|
95
94
|
}
|
|
96
95
|
//#endregion
|
|
97
96
|
export { _ as ImageUpload };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ImageUploadTranslation = {
|
|
2
|
+
primary: string;
|
|
3
|
+
secondary: string;
|
|
4
|
+
remove: string;
|
|
5
|
+
pullAndDrop: string;
|
|
6
|
+
or: string;
|
|
7
|
+
upload: string;
|
|
8
|
+
unsupportedFormat: string;
|
|
9
|
+
sizeExceeded: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const imageUploadTranslations: import('../../theme/translations.js').ComponentTranslations<ImageUploadTranslation>;
|
|
12
|
+
//# sourceMappingURL=image-upload.translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-upload.translations.d.ts","sourceRoot":"","sources":["../../../lib/components/image-upload/image-upload.translations.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,8EAqIlC,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { defineTranslations as e } from "../../theme/translations.js";
|
|
2
|
+
//#region lib/components/image-upload/image-upload.translations.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
en: {
|
|
5
|
+
primary: "Save",
|
|
6
|
+
secondary: "Cancel",
|
|
7
|
+
remove: "Remove image",
|
|
8
|
+
pullAndDrop: "Drag and drop the image here",
|
|
9
|
+
or: "or",
|
|
10
|
+
upload: "Upload a file",
|
|
11
|
+
unsupportedFormat: "Unsupported file format. Please upload a JPG, PNG, WebP, GIF, or SVG.",
|
|
12
|
+
sizeExceeded: "The image size exceeds 3MB. Please choose a smaller file or reduce the size of the current image."
|
|
13
|
+
},
|
|
14
|
+
sv: {
|
|
15
|
+
primary: "Spara",
|
|
16
|
+
secondary: "Avbryt",
|
|
17
|
+
remove: "Ta bort bild",
|
|
18
|
+
pullAndDrop: "Dra och släpp bilden här",
|
|
19
|
+
or: "eller",
|
|
20
|
+
upload: "ladda upp en fil",
|
|
21
|
+
unsupportedFormat: "Otillåtet filformat. Vänligen ladda upp JPG, PNG, WebP, GIF, eller SVG.",
|
|
22
|
+
sizeExceeded: "Storleken på bilden du försöker ladda upp överskrider 3MB. Vänligen välj en mindre fil eller minska storleken på den nuvarande bilden."
|
|
23
|
+
},
|
|
24
|
+
nb: {
|
|
25
|
+
primary: "Lagre",
|
|
26
|
+
secondary: "Avbryt",
|
|
27
|
+
remove: "Fjern bilde",
|
|
28
|
+
pullAndDrop: "Dra og slipp bildet her",
|
|
29
|
+
or: "eller",
|
|
30
|
+
upload: "Last opp en fil",
|
|
31
|
+
unsupportedFormat: "Ugyldig filformat. Vennligst last opp en JPG, PNG, WebP, GIF eller SVG.",
|
|
32
|
+
sizeExceeded: "Bildet du prøver å laste opp overstiger 3MB. Vennligst velg en mindre fil eller reduser størrelsen på det nåværende bildet."
|
|
33
|
+
},
|
|
34
|
+
da: {
|
|
35
|
+
primary: "Gem",
|
|
36
|
+
secondary: "Annuller",
|
|
37
|
+
remove: "Fjern billede",
|
|
38
|
+
pullAndDrop: "Træk og slip billedet her",
|
|
39
|
+
or: "eller",
|
|
40
|
+
upload: "Upload en fil",
|
|
41
|
+
unsupportedFormat: "Ugyldigt filformat. Upload venligst en JPG, PNG, WebP, GIF eller SVG.",
|
|
42
|
+
sizeExceeded: "Billedets størrelse overstiger 3MB. Vælg venligst en mindre fil eller reducer størrelsen på det nuværende billede."
|
|
43
|
+
},
|
|
44
|
+
fr: {
|
|
45
|
+
primary: "Enregistrer",
|
|
46
|
+
secondary: "Annuler",
|
|
47
|
+
remove: "Supprimer l'image",
|
|
48
|
+
pullAndDrop: "Glissez-déposez l'image ici",
|
|
49
|
+
or: "ou",
|
|
50
|
+
upload: "Télécharger un fichier",
|
|
51
|
+
unsupportedFormat: "Format de fichier non pris en charge. Veuillez télécharger un JPG, PNG, WebP, GIF ou SVG.",
|
|
52
|
+
sizeExceeded: "La taille de l'image dépasse 3 Mo. Veuillez choisir un fichier plus petit ou réduire la taille de l'image actuelle."
|
|
53
|
+
},
|
|
54
|
+
nl: {
|
|
55
|
+
primary: "Opslaan",
|
|
56
|
+
secondary: "Annuleren",
|
|
57
|
+
remove: "Afbeelding verwijderen",
|
|
58
|
+
pullAndDrop: "Sleep de afbeelding hierheen",
|
|
59
|
+
or: "of",
|
|
60
|
+
upload: "Een bestand uploaden",
|
|
61
|
+
unsupportedFormat: "Ongeldig bestandsformaat. Upload een JPG, PNG, WebP, GIF of SVG.",
|
|
62
|
+
sizeExceeded: "De afbeelding die je probeert te uploaden is groter dan 3 MB. Kies een kleiner bestand of verklein de huidige afbeelding."
|
|
63
|
+
},
|
|
64
|
+
de: {
|
|
65
|
+
primary: "Speichern",
|
|
66
|
+
secondary: "Abbrechen",
|
|
67
|
+
remove: "Bild entfernen",
|
|
68
|
+
pullAndDrop: "Bild hierher ziehen und ablegen",
|
|
69
|
+
or: "oder",
|
|
70
|
+
upload: "Datei hochladen",
|
|
71
|
+
unsupportedFormat: "Nicht unterstütztes Dateiformat. Bitte laden Sie ein JPG, PNG, WebP, GIF oder SVG hoch.",
|
|
72
|
+
sizeExceeded: "Das Bild ist größer als 3 MB. Bitte wählen Sie eine kleinere Datei oder verkleinern Sie das aktuelle Bild."
|
|
73
|
+
},
|
|
74
|
+
fi: {
|
|
75
|
+
primary: "Tallenna",
|
|
76
|
+
secondary: "Peruuta",
|
|
77
|
+
remove: "Poista kuva",
|
|
78
|
+
pullAndDrop: "Vedä ja pudota kuva tähän",
|
|
79
|
+
or: "tai",
|
|
80
|
+
upload: "lataa tiedosto",
|
|
81
|
+
unsupportedFormat: "Tiedostomuotoa ei tueta. Lataa JPG-, PNG-, WebP-, GIF- tai SVG-tiedosto.",
|
|
82
|
+
sizeExceeded: "Kuvan koko ylittää 3 Mt. Valitse pienempi tiedosto tai pienennä nykyistä kuvaa."
|
|
83
|
+
},
|
|
84
|
+
es: {
|
|
85
|
+
primary: "Guardar",
|
|
86
|
+
secondary: "Cancelar",
|
|
87
|
+
remove: "Eliminar imagen",
|
|
88
|
+
pullAndDrop: "Arrastra y suelta la imagen aquí",
|
|
89
|
+
or: "o",
|
|
90
|
+
upload: "sube un archivo",
|
|
91
|
+
unsupportedFormat: "Formato de archivo no compatible. Sube un JPG, PNG, WebP, GIF o SVG.",
|
|
92
|
+
sizeExceeded: "La imagen supera los 3 MB. Elige un archivo más pequeño o reduce el tamaño de la imagen actual."
|
|
93
|
+
},
|
|
94
|
+
et: {
|
|
95
|
+
primary: "Salvesta",
|
|
96
|
+
secondary: "Tühista",
|
|
97
|
+
remove: "Eemalda pilt",
|
|
98
|
+
pullAndDrop: "Lohista pilt siia",
|
|
99
|
+
or: "või",
|
|
100
|
+
upload: "laadi fail üles",
|
|
101
|
+
unsupportedFormat: "Toetamata failivorming. Laadi üles JPG, PNG, WebP, GIF või SVG.",
|
|
102
|
+
sizeExceeded: "Pildi suurus ületab 3 MB. Vali väiksem fail või vähenda praeguse pildi suurust."
|
|
103
|
+
},
|
|
104
|
+
lt: {
|
|
105
|
+
primary: "Išsaugoti",
|
|
106
|
+
secondary: "Atšaukti",
|
|
107
|
+
remove: "Pašalinti paveikslėlį",
|
|
108
|
+
pullAndDrop: "Nuvilkite paveikslėlį čia",
|
|
109
|
+
or: "arba",
|
|
110
|
+
upload: "įkelkite failą",
|
|
111
|
+
unsupportedFormat: "Nepalaikomas failo formatas. Įkelkite JPG, PNG, WebP, GIF arba SVG.",
|
|
112
|
+
sizeExceeded: "Paveikslėlis viršija 3 MB. Pasirinkite mažesnį failą arba sumažinkite dabartinio paveikslėlio dydį."
|
|
113
|
+
},
|
|
114
|
+
lv: {
|
|
115
|
+
primary: "Saglabāt",
|
|
116
|
+
secondary: "Atcelt",
|
|
117
|
+
remove: "Noņemt attēlu",
|
|
118
|
+
pullAndDrop: "Velciet un nometiet attēlu šeit",
|
|
119
|
+
or: "vai",
|
|
120
|
+
upload: "augšupielādējiet failu",
|
|
121
|
+
unsupportedFormat: "Neatbalstīts faila formāts. Lūdzu, augšupielādējiet JPG, PNG, WebP, GIF vai SVG.",
|
|
122
|
+
sizeExceeded: "Attēla izmērs pārsniedz 3 MB. Lūdzu, izvēlieties mazāku failu vai samaziniet pašreizējā attēla izmēru."
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
//#endregion
|
|
126
|
+
export { t as imageUploadTranslations };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export type Locales = "en-US" | "nb-NO" | "da-DK" | "sv-SE" | "en-GB";
|
|
2
1
|
export declare enum ImageUploadAspectRatio {
|
|
3
2
|
ThirtyTwoByNine = "THIRTY_TWO_BY_NINE",
|
|
4
3
|
SixteenByNine = "SIXTEEN_BY_NINE",
|
|
@@ -54,7 +53,5 @@ export type ImageUploadProps = {
|
|
|
54
53
|
* When true, it will render a loading indicator within the component.
|
|
55
54
|
*/
|
|
56
55
|
isLoading?: boolean;
|
|
57
|
-
/** Locale used for translating the text in the image upload modal */
|
|
58
|
-
locale?: Locales;
|
|
59
56
|
};
|
|
60
57
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/image-upload/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/image-upload/types.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IACjC,eAAe,uBAAuB;IACtC,aAAa,oBAAoB;IACjC,QAAQ,eAAe;CACvB;AACD,MAAM,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,EAAE;QACL,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;KACxB,CAAC;CACF,CAAC;AACF,MAAM,MAAM,IAAI,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,GAAG,eAAe,CAAC;AACtE,MAAM,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB;;;OAGG;IACH,WAAW,EAAE,sBAAsB,CAAC;IAEpC;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;IAElE;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -16,6 +16,7 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
|
16
16
|
isReadOnly?: boolean;
|
|
17
17
|
isRequired?: boolean;
|
|
18
18
|
} & {
|
|
19
|
+
value?: string | number | readonly string[] | undefined;
|
|
19
20
|
pattern?: string | undefined | undefined;
|
|
20
21
|
id?: string | undefined | undefined;
|
|
21
22
|
name?: string | undefined | undefined;
|
|
@@ -28,7 +29,6 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
|
28
29
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
29
30
|
autoFocus?: boolean | undefined | undefined;
|
|
30
31
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
31
|
-
value?: string | number | readonly string[] | undefined;
|
|
32
32
|
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
33
33
|
placeholder?: string | undefined | undefined;
|
|
34
34
|
} & import('../../theme/index.js').CustomChakraBoxProps & import('../../theme/index.js').LayoutProps & import('../../theme/index.js').MarginProps & import('../../theme/index.js').PaddingProps & import('../../theme/index.js').TypographyProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -4,8 +4,8 @@ import { ThemeColorVariable as n, ThemeSpaceVariable as r } from "../../theme/th
|
|
|
4
4
|
import { useMeasuredWidth as i } from "../../hooks/use-measured-width.js";
|
|
5
5
|
import { getVisualStateStyle as a } from "./helper.js";
|
|
6
6
|
import o from "react";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
8
|
+
import { Input as c, InputGroup as l, useBreakpointValue as u } from "@chakra-ui/react";
|
|
9
9
|
//#region lib/components/input/input.tsx
|
|
10
10
|
var d = e(), f = {
|
|
11
11
|
sm: "2rem",
|
|
@@ -21,7 +21,7 @@ var h = o.forwardRef((e, o) => {
|
|
|
21
21
|
h[0] === e ? (g = h[1], _ = h[2], v = h[3], y = h[4], b = h[5], x = h[6], S = h[7], C = h[8], w = h[9], T = h[10], E = h[11]) : ({size: w, visualState: E, leftAddon: y, rightAddon: S, leftElement: b, rightElement: C, variant: T, isDisabled: g, isReadOnly: _, isRequired: v, ...x} = e, h[0] = e, h[1] = g, h[2] = _, h[3] = v, h[4] = y, h[5] = b, h[6] = x, h[7] = S, h[8] = C, h[9] = w, h[10] = T, h[11] = E);
|
|
22
22
|
let D = w === void 0 ? p : w, O = T === void 0 ? "outline" : T, k;
|
|
23
23
|
h[12] === E ? k = h[13] : (k = E ? a(E) : void 0, h[12] = E, h[13] = k);
|
|
24
|
-
let A = k, j = f[
|
|
24
|
+
let A = k, j = f[u(typeof D == "string" || D === void 0 ? { [t.Base]: D ?? p } : D, { fallback: p }) ?? p], [M, N] = i(!!b), [P, F] = i(!!C), I = !!b, L;
|
|
25
25
|
h[14] !== j || h[15] !== N || h[16] !== I ? (L = m(I, N, j), h[14] = j, h[15] = N, h[16] = I, h[17] = L) : L = h[17];
|
|
26
26
|
let R = L, z = !!C, B;
|
|
27
27
|
h[18] !== F || h[19] !== j || h[20] !== z ? (B = m(z, F, j), h[18] = F, h[19] = j, h[20] = z, h[21] = B) : B = h[21];
|
|
@@ -52,7 +52,7 @@ var h = o.forwardRef((e, o) => {
|
|
|
52
52
|
...U
|
|
53
53
|
} : void 0, h[26] = P, h[27] = C, h[28] = K) : K = h[28];
|
|
54
54
|
let q = K, J;
|
|
55
|
-
h[29] !== A || h[30] !== V || h[31] !== g || h[32] !== _ || h[33] !== v || h[34] !== o || h[35] !== x || h[36] !== D || h[37] !== R || h[38] !== O ? (J = /* @__PURE__ */
|
|
55
|
+
h[29] !== A || h[30] !== V || h[31] !== g || h[32] !== _ || h[33] !== v || h[34] !== o || h[35] !== x || h[36] !== D || h[37] !== R || h[38] !== O ? (J = /* @__PURE__ */ s(c, {
|
|
56
56
|
ref: o,
|
|
57
57
|
css: A,
|
|
58
58
|
size: D,
|
|
@@ -65,7 +65,7 @@ var h = o.forwardRef((e, o) => {
|
|
|
65
65
|
...x
|
|
66
66
|
}), h[29] = A, h[30] = V, h[31] = g, h[32] = _, h[33] = v, h[34] = o, h[35] = x, h[36] = D, h[37] = R, h[38] = O, h[39] = J) : J = h[39];
|
|
67
67
|
let Y;
|
|
68
|
-
return h[40] !== q || h[41] !== y || h[42] !== b || h[43] !== S || h[44] !== C || h[45] !== G || h[46] !== J ? (Y = /* @__PURE__ */
|
|
68
|
+
return h[40] !== q || h[41] !== y || h[42] !== b || h[43] !== S || h[44] !== C || h[45] !== G || h[46] !== J ? (Y = /* @__PURE__ */ s(l, {
|
|
69
69
|
startElement: b,
|
|
70
70
|
endElement: C,
|
|
71
71
|
startAddon: y,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Link as n } from "@chakra-ui/react";
|
|
4
4
|
//#region lib/components/link/link.tsx
|
|
5
5
|
var r = e();
|
|
6
6
|
function i(e) {
|
|
7
7
|
let i = (0, r.c)(6), a, o;
|
|
8
8
|
i[0] === e ? (a = i[1], o = i[2]) : ({children: a, ...o} = e, i[0] = e, i[1] = a, i[2] = o);
|
|
9
9
|
let s;
|
|
10
|
-
return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ n
|
|
10
|
+
return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ t(n, {
|
|
11
11
|
...o,
|
|
12
12
|
children: a
|
|
13
13
|
}), i[3] = a, i[4] = o, i[5] = s) : s = i[5], s;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { ListItem as n } from "@chakra-ui/react";
|
|
4
4
|
//#region lib/components/list/list-item.tsx
|
|
5
5
|
var r = e();
|
|
6
6
|
function i(e) {
|
|
7
7
|
let i = (0, r.c)(6), a, o;
|
|
8
8
|
i[0] === e ? (a = i[1], o = i[2]) : ({children: a, ...o} = e, i[0] = e, i[1] = a, i[2] = o);
|
|
9
9
|
let s;
|
|
10
|
-
return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ n
|
|
10
|
+
return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ t(n, {
|
|
11
11
|
...o,
|
|
12
12
|
children: a
|
|
13
13
|
}), i[3] = a, i[4] = o, i[5] = s) : s = i[5], s;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import { ThemeFontVariable as t } from "../../theme/theme-types.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { List as r } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/list/list.tsx
|
|
6
6
|
var i = e();
|
|
7
7
|
function a(e) {
|
|
8
8
|
let a = (0, i.c)(12), o, s, c, l, u;
|
|
9
9
|
a[0] === e ? (o = a[1], s = a[2], c = a[3], l = a[4], u = a[5]) : ({fontFamily: l, listStyleType: u, spacing: c, children: o, ...s} = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l, a[5] = u);
|
|
10
10
|
let d = l === void 0 ? t.Body : l, f = u === void 0 ? "none" : u, p;
|
|
11
|
-
return a[6] !== o || a[7] !== d || a[8] !== f || a[9] !== s || a[10] !== c ? (p = /* @__PURE__ */ r
|
|
11
|
+
return a[6] !== o || a[7] !== d || a[8] !== f || a[9] !== s || a[10] !== c ? (p = /* @__PURE__ */ n(r.Root, {
|
|
12
12
|
gap: c,
|
|
13
13
|
fontFamily: d,
|
|
14
14
|
listStyleType: f,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Button as r, MenuTrigger as i } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/menu/menu-box-button.tsx
|
|
6
6
|
var a = e(), o = t((e, t) => {
|
|
7
7
|
let o = (0, a.c)(9), s, c, l;
|
|
8
8
|
o[0] === e ? (s = o[1], c = o[2], l = o[3]) : ({children: s, isDisabled: c, ...l} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l);
|
|
9
9
|
let u;
|
|
10
|
-
return o[4] !== s || o[5] !== c || o[6] !== l || o[7] !== t ? (u = /* @__PURE__ */ i
|
|
10
|
+
return o[4] !== s || o[5] !== c || o[6] !== l || o[7] !== t ? (u = /* @__PURE__ */ n(i, {
|
|
11
11
|
asChild: !0,
|
|
12
|
-
children: /* @__PURE__ */
|
|
12
|
+
children: /* @__PURE__ */ n(r, {
|
|
13
13
|
ref: t,
|
|
14
14
|
unstyled: !0,
|
|
15
15
|
disabled: c,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import { Button as t } from "../button/button.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { MenuTrigger as r } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/menu/menu-button.tsx
|
|
6
6
|
var i = e(), a = (e) => {
|
|
7
7
|
let a = (0, i.c)(6), o, s;
|
|
8
8
|
a[0] === e ? (o = a[1], s = a[2]) : ({children: o, ...s} = e, a[0] = e, a[1] = o, a[2] = s);
|
|
9
9
|
let c;
|
|
10
|
-
return a[3] !== o || a[4] !== s ? (c = /* @__PURE__ */ r
|
|
10
|
+
return a[3] !== o || a[4] !== s ? (c = /* @__PURE__ */ n(r, {
|
|
11
11
|
asChild: !0,
|
|
12
|
-
children: /* @__PURE__ */
|
|
12
|
+
children: /* @__PURE__ */ n(t, {
|
|
13
13
|
...s,
|
|
14
14
|
children: o
|
|
15
15
|
})
|
|
@@ -6,8 +6,8 @@ import { Flex as ne } from "../flex/flex.js";
|
|
|
6
6
|
import { IconButton as re } from "../icon-button/icon-button.js";
|
|
7
7
|
import { setMenuItemElementType as ie } from "./helper.js";
|
|
8
8
|
import ae, { useRef as i } from "react";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Fragment as oe, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
10
|
+
import { Box as se, HStack as ce, Menu as s } from "@chakra-ui/react";
|
|
11
11
|
//#region lib/components/menu/menu-group.tsx
|
|
12
12
|
var le = e(), c = (e) => {
|
|
13
13
|
let c = (0, le.c)(57), l, u, d, f, p, m, h, g, _, v, y;
|
|
@@ -57,7 +57,7 @@ var le = e(), c = (e) => {
|
|
|
57
57
|
transitionTimingFunction: "ease-in"
|
|
58
58
|
}, c[24] = z) : z = c[24];
|
|
59
59
|
let B = S ? ee : te, V = S ? `Collapse ${y}` : `Expand ${y}`, H;
|
|
60
|
-
c[25] !== B || c[26] !== V || c[27] !== E ? (H = /* @__PURE__ */
|
|
60
|
+
c[25] !== B || c[26] !== V || c[27] !== E ? (H = /* @__PURE__ */ a(re, {
|
|
61
61
|
ref: C,
|
|
62
62
|
onClick: E,
|
|
63
63
|
variant: "ghost",
|
|
@@ -69,16 +69,16 @@ var le = e(), c = (e) => {
|
|
|
69
69
|
let U, W;
|
|
70
70
|
c[29] === Symbol.for("react.memo_cache_sentinel") ? (U = { bg: "transparent" }, W = { bg: "transparent" }, c[29] = U, c[30] = W) : (U = c[29], W = c[30]);
|
|
71
71
|
let G;
|
|
72
|
-
c[31] === k ? G = c[32] : (G = k && /* @__PURE__ */
|
|
72
|
+
c[31] === k ? G = c[32] : (G = k && /* @__PURE__ */ a(k, { size: n.Medium }), c[31] = k, c[32] = G);
|
|
73
73
|
let K;
|
|
74
|
-
c[33] === A ? K = c[34] : (K = A && /* @__PURE__ */
|
|
74
|
+
c[33] === A ? K = c[34] : (K = A && /* @__PURE__ */ a(A, {
|
|
75
75
|
color: t.OnSurfaceBorder,
|
|
76
76
|
size: n.Small
|
|
77
77
|
}), c[33] = A, c[34] = K);
|
|
78
78
|
let q;
|
|
79
|
-
c[35] === d ? q = c[36] : (q = d && /* @__PURE__ */
|
|
79
|
+
c[35] === d ? q = c[36] : (q = d && /* @__PURE__ */ a(s.ItemCommand, { children: d }), c[35] = d, c[36] = q);
|
|
80
80
|
let J;
|
|
81
|
-
c[37] !== h || c[38] !== K || c[39] !== q || c[40] !== y ? (J = /* @__PURE__ */
|
|
81
|
+
c[37] !== h || c[38] !== K || c[39] !== q || c[40] !== y ? (J = /* @__PURE__ */ o(ne, {
|
|
82
82
|
justifyContent: "space-between",
|
|
83
83
|
alignItems: "center",
|
|
84
84
|
gap: r.Small,
|
|
@@ -91,7 +91,7 @@ var le = e(), c = (e) => {
|
|
|
91
91
|
]
|
|
92
92
|
}), c[37] = h, c[38] = K, c[39] = q, c[40] = y, c[41] = J) : J = c[41];
|
|
93
93
|
let Y;
|
|
94
|
-
c[42] !== O || c[43] !== b || c[44] !== p || c[45] !== m || c[46] !== G || c[47] !== J ? (Y = /* @__PURE__ */ s
|
|
94
|
+
c[42] !== O || c[43] !== b || c[44] !== p || c[45] !== m || c[46] !== G || c[47] !== J ? (Y = /* @__PURE__ */ o(s.Item, {
|
|
95
95
|
pl: 0,
|
|
96
96
|
_groupHover: U,
|
|
97
97
|
_hover: W,
|
|
@@ -105,7 +105,7 @@ var le = e(), c = (e) => {
|
|
|
105
105
|
children: [G, J]
|
|
106
106
|
}), c[42] = O, c[43] = b, c[44] = p, c[45] = m, c[46] = G, c[47] = J, c[48] = Y) : Y = c[48];
|
|
107
107
|
let X;
|
|
108
|
-
c[49] !== H || c[50] !== Y ? (X = /* @__PURE__ */
|
|
108
|
+
c[49] !== H || c[50] !== Y ? (X = /* @__PURE__ */ o(ce, {
|
|
109
109
|
w: "100%",
|
|
110
110
|
pl: r.Medium,
|
|
111
111
|
gap: r.XSmall,
|
|
@@ -116,13 +116,13 @@ var le = e(), c = (e) => {
|
|
|
116
116
|
children: [H, Y]
|
|
117
117
|
}), c[49] = H, c[50] = Y, c[51] = X) : X = c[51];
|
|
118
118
|
let Z = S && u, Q;
|
|
119
|
-
c[52] === Z ? Q = c[53] : (Q = /* @__PURE__ */
|
|
119
|
+
c[52] === Z ? Q = c[53] : (Q = /* @__PURE__ */ a(se, {
|
|
120
120
|
className: "menugroup-wrapper",
|
|
121
121
|
css: fe,
|
|
122
122
|
children: Z
|
|
123
123
|
}), c[52] = Z, c[53] = Q);
|
|
124
124
|
let $;
|
|
125
|
-
return c[54] !== X || c[55] !== Q ? ($ = /* @__PURE__ */
|
|
125
|
+
return c[54] !== X || c[55] !== Q ? ($ = /* @__PURE__ */ o(oe, { children: [X, Q] }), c[54] = X, c[55] = Q, c[56] = $) : $ = c[56], $;
|
|
126
126
|
};
|
|
127
127
|
function ue(e) {
|
|
128
128
|
return {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import { IconButton as t } from "../icon-button/icon-button.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { MenuTrigger as r } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/menu/menu-icon-button.tsx
|
|
6
6
|
var i = e(), a = (e) => {
|
|
7
7
|
let a = (0, i.c)(2), o;
|
|
8
|
-
return a[0] === e ? o = a[1] : (o = /* @__PURE__ */ r
|
|
8
|
+
return a[0] === e ? o = a[1] : (o = /* @__PURE__ */ n(r, {
|
|
9
9
|
asChild: !0,
|
|
10
|
-
children: /* @__PURE__ */
|
|
10
|
+
children: /* @__PURE__ */ n(t, { ...e })
|
|
11
11
|
}), a[0] = e, a[1] = o), o;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
@@ -2,8 +2,8 @@ import { require_compiler_runtime as e } from "../../node_modules/react/compiler
|
|
|
2
2
|
import { ThemeColorVariable as t, ThemeIconSizeVariable as n, ThemeSpaceVariable as r } from "../../theme/theme-types.js";
|
|
3
3
|
import { Flex as i } from "../flex/flex.js";
|
|
4
4
|
import { setMenuItemElementType as a } from "./helper.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { Menu as c } from "@chakra-ui/react";
|
|
7
7
|
//#region lib/components/menu/menu-item.tsx
|
|
8
8
|
var l = e(), u = (e) => {
|
|
9
9
|
let u = (0, l.c)(30), d, f, p, m, h, g, _, v, y;
|
|
@@ -11,16 +11,16 @@ var l = e(), u = (e) => {
|
|
|
11
11
|
let b = v !== void 0 && v, x = y === void 0 ? "button" : y, S;
|
|
12
12
|
u[10] !== d || u[11] !== x ? (S = d ?? a(x), u[10] = d, u[11] = x, u[12] = S) : S = u[12];
|
|
13
13
|
let C = S, w = m, T = _, E;
|
|
14
|
-
u[13] === w ? E = u[14] : (E = w && /* @__PURE__ */
|
|
14
|
+
u[13] === w ? E = u[14] : (E = w && /* @__PURE__ */ o(w, { size: n.Medium }), u[13] = w, u[14] = E);
|
|
15
15
|
let D = E, O;
|
|
16
|
-
u[15] === T ? O = u[16] : (O = T && /* @__PURE__ */
|
|
16
|
+
u[15] === T ? O = u[16] : (O = T && /* @__PURE__ */ o(T, {
|
|
17
17
|
color: t.OnSurfaceSubdued,
|
|
18
18
|
size: n.Small
|
|
19
19
|
}), u[15] = T, u[16] = O);
|
|
20
20
|
let k;
|
|
21
|
-
u[17] === p ? k = u[18] : (k = p && /* @__PURE__ */
|
|
21
|
+
u[17] === p ? k = u[18] : (k = p && /* @__PURE__ */ o(c.ItemCommand, { children: p }), u[17] = p, u[18] = k);
|
|
22
22
|
let A;
|
|
23
|
-
u[19] !== f || u[20] !== O || u[21] !== k ? (A = /* @__PURE__ */
|
|
23
|
+
u[19] !== f || u[20] !== O || u[21] !== k ? (A = /* @__PURE__ */ s(i, {
|
|
24
24
|
justifyContent: "space-between",
|
|
25
25
|
alignItems: "center",
|
|
26
26
|
gap: r.XSmall,
|
|
@@ -32,7 +32,7 @@ var l = e(), u = (e) => {
|
|
|
32
32
|
]
|
|
33
33
|
}), u[19] = f, u[20] = O, u[21] = k, u[22] = A) : A = u[22];
|
|
34
34
|
let j;
|
|
35
|
-
return u[23] !== C || u[24] !== b || u[25] !== h || u[26] !== g || u[27] !== D || u[28] !== A ? (j = /* @__PURE__ */ c
|
|
35
|
+
return u[23] !== C || u[24] !== b || u[25] !== h || u[26] !== g || u[27] !== D || u[28] !== A ? (j = /* @__PURE__ */ s(c.Item, {
|
|
36
36
|
as: C,
|
|
37
37
|
className: "menu-item",
|
|
38
38
|
disabled: b,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Menu as n, Portal as r } from "@chakra-ui/react";
|
|
4
4
|
//#region lib/components/menu/menu-list.tsx
|
|
5
5
|
var i = e(), a = (e) => {
|
|
6
6
|
let a = (0, i.c)(6), o, s;
|
|
7
7
|
a[0] === e ? (o = a[1], s = a[2]) : ({children: o, ...s} = e, a[0] = e, a[1] = o, a[2] = s);
|
|
8
8
|
let c;
|
|
9
|
-
return a[3] !== o || a[4] !== s ? (c = /* @__PURE__ */ r
|
|
9
|
+
return a[3] !== o || a[4] !== s ? (c = /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(n.Positioner, { children: /* @__PURE__ */ t(n.Content, {
|
|
10
10
|
...s,
|
|
11
11
|
children: o
|
|
12
12
|
}) }) }), a[3] = o, a[4] = s, a[5] = c) : c = a[5], c;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Menu as r } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/menu/menu.tsx
|
|
6
6
|
var i = e(), a = t(function(e, t) {
|
|
7
7
|
let a = (0, i.c)(23), o, s, c, l, u, d, f;
|
|
@@ -21,9 +21,9 @@ var i = e(), a = t(function(e, t) {
|
|
|
21
21
|
overflowPadding: 0
|
|
22
22
|
}, a[10] = s, a[11] = p, a[12] = g, a[13] = _) : _ = a[13];
|
|
23
23
|
let v = _, y = h === "unmount", b = typeof o == "function", x;
|
|
24
|
-
a[14] !== o || a[15] !== b ? (x = b ? /* @__PURE__ */ r
|
|
24
|
+
a[14] !== o || a[15] !== b ? (x = b ? /* @__PURE__ */ n(r.Context, { children: (e) => o({ isOpen: e.open }) }) : o, a[14] = o, a[15] = b, a[16] = x) : x = a[16];
|
|
25
25
|
let S;
|
|
26
|
-
return a[17] !== m || a[18] !== v || a[19] !== l || a[20] !== x || a[21] !== y ? (S = /* @__PURE__ */ r
|
|
26
|
+
return a[17] !== m || a[18] !== v || a[19] !== l || a[20] !== x || a[21] !== y ? (S = /* @__PURE__ */ n(r.Root, {
|
|
27
27
|
lazyMount: m,
|
|
28
28
|
unmountOnExit: y,
|
|
29
29
|
positioning: v,
|