@caspeco/casper-ui-library 11.4.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.js +4 -4
- package/dist/components/breadcrumbs/breadcrumb-link.js +3 -3
- package/dist/components/breadcrumbs/breadcrumbs.js +22 -22
- 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
|
@@ -2,48 +2,49 @@ import { require_compiler_runtime as e } from "../../node_modules/react/compiler
|
|
|
2
2
|
import { ThemeColorVariable as t, ThemeSpaceVariable as n } from "../../theme/theme-types.js";
|
|
3
3
|
import { ExpandIcon as r } from "../icon/icons/expand-icon.js";
|
|
4
4
|
import { useRemoveAttributes as i } from "../../hooks/use-remove-attributes.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { jsx as
|
|
5
|
+
import { useComponentTranslations as a } from "../../theme/translations.js";
|
|
6
|
+
import { collapsibleTranslations as o } from "./collapsible.translations.js";
|
|
7
|
+
import { useLayoutEffect as s, useRef as c, useState as l } from "react";
|
|
8
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
|
+
import { Box as f, Collapsible as p, Flex as m } from "@chakra-ui/react";
|
|
9
10
|
//#region lib/components/collapsible/collapsible.tsx
|
|
10
|
-
var
|
|
11
|
-
let t = (0,
|
|
11
|
+
var h = e(), g = "200ms", _ = (e) => {
|
|
12
|
+
let t = (0, h.c)(23), { children: _, collapsedHeight: y, defaultExpanded: b } = e, x = b === void 0 || b, S = a(o), [C, w] = l(x), [T, E] = l(!0), D = c(null), O = !T || C, k;
|
|
12
13
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (k = ["inert"], t[0] = k) : k = t[0], i(D, k, !O);
|
|
13
14
|
let A, j;
|
|
14
|
-
t[1] ===
|
|
15
|
+
t[1] === y ? (A = t[2], j = t[3]) : (A = () => {
|
|
15
16
|
let e = D.current;
|
|
16
17
|
if (!e) return;
|
|
17
18
|
let t = () => {
|
|
18
19
|
let t = e.getBoundingClientRect().height;
|
|
19
|
-
E(t >
|
|
20
|
+
E(t > y);
|
|
20
21
|
};
|
|
21
22
|
t();
|
|
22
23
|
let n = new ResizeObserver(t);
|
|
23
24
|
return n.observe(e), () => {
|
|
24
25
|
n.disconnect();
|
|
25
26
|
};
|
|
26
|
-
}, j = [
|
|
27
|
+
}, j = [y], t[1] = y, t[2] = A, t[3] = j), s(A, j);
|
|
27
28
|
let M;
|
|
28
29
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (M = (e) => {
|
|
29
30
|
let { open: t } = e;
|
|
30
31
|
w(t);
|
|
31
32
|
}, t[4] = M) : M = t[4];
|
|
32
33
|
let N, P;
|
|
33
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (N = { animationDuration:
|
|
34
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (N = { animationDuration: g }, P = { animationDuration: g }, t[5] = N, t[6] = P) : (N = t[5], P = t[6]);
|
|
34
35
|
let F;
|
|
35
|
-
t[7] ===
|
|
36
|
+
t[7] === _ ? F = t[8] : (F = /* @__PURE__ */ u(p.Content, {
|
|
36
37
|
_open: N,
|
|
37
38
|
_closed: P,
|
|
38
|
-
children: /* @__PURE__ */ f
|
|
39
|
+
children: /* @__PURE__ */ u(f, {
|
|
39
40
|
ref: D,
|
|
40
|
-
children:
|
|
41
|
+
children: _
|
|
41
42
|
})
|
|
42
|
-
}), t[7] =
|
|
43
|
+
}), t[7] = _, t[8] = F);
|
|
43
44
|
let I;
|
|
44
|
-
t[9] === O ? I = t[10] : (I = !O && /* @__PURE__ */
|
|
45
|
+
t[9] === O ? I = t[10] : (I = !O && /* @__PURE__ */ u(v, {}), t[9] = O, t[10] = I);
|
|
45
46
|
let L;
|
|
46
|
-
t[11] !== T || t[12] !== O || t[13] !== S ? (L = T && /* @__PURE__ */
|
|
47
|
+
t[11] !== T || t[12] !== O || t[13] !== S ? (L = T && /* @__PURE__ */ u(m, {
|
|
47
48
|
css: O ? { position: "relative" } : {
|
|
48
49
|
position: "absolute",
|
|
49
50
|
bottom: 0,
|
|
@@ -54,37 +55,37 @@ var m = e(), h = "200ms", g = (e) => {
|
|
|
54
55
|
alignItems: "center",
|
|
55
56
|
justifyContent: "center",
|
|
56
57
|
width: "100%",
|
|
57
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ u(p.Trigger, { children: /* @__PURE__ */ u(p.Indicator, {
|
|
58
59
|
width: 40,
|
|
59
60
|
height: 40,
|
|
60
61
|
display: "flex",
|
|
61
62
|
alignItems: "center",
|
|
62
63
|
justifyContent: "center",
|
|
63
|
-
transition: `transform ${
|
|
64
|
-
"aria-label": O ?
|
|
64
|
+
transition: `transform ${g} ease`,
|
|
65
|
+
"aria-label": O ? S.collapseContent : S.expandContent,
|
|
65
66
|
_open: { transform: "rotate(180deg)" },
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ u(r, {})
|
|
67
68
|
}) })
|
|
68
69
|
}), t[11] = T, t[12] = O, t[13] = S, t[14] = L) : L = t[14];
|
|
69
70
|
let R;
|
|
70
|
-
t[15] !==
|
|
71
|
+
t[15] !== L || t[16] !== F || t[17] !== I ? (R = /* @__PURE__ */ d(f, {
|
|
71
72
|
position: "relative",
|
|
72
73
|
children: [
|
|
73
74
|
F,
|
|
74
75
|
I,
|
|
75
76
|
L
|
|
76
77
|
]
|
|
77
|
-
}), t[15] =
|
|
78
|
+
}), t[15] = L, t[16] = F, t[17] = I, t[18] = R) : R = t[18];
|
|
78
79
|
let z;
|
|
79
|
-
return t[19] !==
|
|
80
|
-
collapsedHeight:
|
|
80
|
+
return t[19] !== y || t[20] !== O || t[21] !== R ? (z = /* @__PURE__ */ u(p.Root, {
|
|
81
|
+
collapsedHeight: y,
|
|
81
82
|
open: O,
|
|
82
83
|
onOpenChange: M,
|
|
83
84
|
children: R
|
|
84
|
-
}), t[19] =
|
|
85
|
-
},
|
|
86
|
-
let e = (0,
|
|
87
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f
|
|
85
|
+
}), t[19] = y, t[20] = O, t[21] = R, t[22] = z) : z = t[22], z;
|
|
86
|
+
}, v = () => {
|
|
87
|
+
let e = (0, h.c)(1), n;
|
|
88
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ u(f, {
|
|
88
89
|
"data-testid": "blur-overlay",
|
|
89
90
|
css: {
|
|
90
91
|
position: "absolute",
|
|
@@ -115,4 +116,4 @@ var m = e(), h = "200ms", g = (e) => {
|
|
|
115
116
|
}), e[0] = n) : n = e[0], n;
|
|
116
117
|
};
|
|
117
118
|
//#endregion
|
|
118
|
-
export {
|
|
119
|
+
export { _ as Collapsible };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type CollapsibleTranslation = {
|
|
2
|
+
collapseContent: string;
|
|
3
|
+
expandContent: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const collapsibleTranslations: import('../../theme/translations.js').ComponentTranslations<CollapsibleTranslation>;
|
|
6
|
+
//# sourceMappingURL=collapsible.translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.translations.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/collapsible.translations.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,uBAAuB,8EAiDlC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineTranslations as e } from "../../theme/translations.js";
|
|
2
|
+
//#region lib/components/collapsible/collapsible.translations.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
en: {
|
|
5
|
+
collapseContent: "Collapse content",
|
|
6
|
+
expandContent: "Expand content"
|
|
7
|
+
},
|
|
8
|
+
sv: {
|
|
9
|
+
collapseContent: "Kollapsa innehåll",
|
|
10
|
+
expandContent: "Expandera innehåll"
|
|
11
|
+
},
|
|
12
|
+
nb: {
|
|
13
|
+
collapseContent: "Skjul innhold",
|
|
14
|
+
expandContent: "Vis innhold"
|
|
15
|
+
},
|
|
16
|
+
da: {
|
|
17
|
+
collapseContent: "Skjul indhold",
|
|
18
|
+
expandContent: "Vis indhold"
|
|
19
|
+
},
|
|
20
|
+
fr: {
|
|
21
|
+
collapseContent: "Réduire le contenu",
|
|
22
|
+
expandContent: "Afficher le contenu"
|
|
23
|
+
},
|
|
24
|
+
nl: {
|
|
25
|
+
collapseContent: "Inhoud samenvouwen",
|
|
26
|
+
expandContent: "Inhoud uitvouwen"
|
|
27
|
+
},
|
|
28
|
+
de: {
|
|
29
|
+
collapseContent: "Inhalt einklappen",
|
|
30
|
+
expandContent: "Inhalt ausklappen"
|
|
31
|
+
},
|
|
32
|
+
fi: {
|
|
33
|
+
collapseContent: "Tiivistä sisältö",
|
|
34
|
+
expandContent: "Laajenna sisältö"
|
|
35
|
+
},
|
|
36
|
+
es: {
|
|
37
|
+
collapseContent: "Contraer contenido",
|
|
38
|
+
expandContent: "Expandir contenido"
|
|
39
|
+
},
|
|
40
|
+
et: {
|
|
41
|
+
collapseContent: "Ahenda sisu",
|
|
42
|
+
expandContent: "Laienda sisu"
|
|
43
|
+
},
|
|
44
|
+
lt: {
|
|
45
|
+
collapseContent: "Suskleisti turinį",
|
|
46
|
+
expandContent: "Išskleisti turinį"
|
|
47
|
+
},
|
|
48
|
+
lv: {
|
|
49
|
+
collapseContent: "Sakļaut saturu",
|
|
50
|
+
expandContent: "Izvērst saturu"
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { t as collapsibleTranslations };
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Locales } from './translations.js';
|
|
3
2
|
export type CollapsibleProps = PropsWithChildren<{
|
|
4
3
|
/** The height (in pixels) at which the content should be collapsed. If the content's height is less than or equal to this value, it will not be collapsible. */
|
|
5
4
|
collapsedHeight: number;
|
|
6
5
|
/** Whether the content should be expanded by default. */
|
|
7
6
|
defaultExpanded?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Locale used for translation of text contents native to the collapsible, such as aria-labels for the trigger button.
|
|
10
|
-
* Defaults to 'en-US'.
|
|
11
|
-
*/
|
|
12
|
-
locale?: Locales;
|
|
13
7
|
}>;
|
|
14
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAChD,gKAAgK;IAChK,eAAe,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ComboboxInnerProps } from './types.js';
|
|
2
|
-
export declare function ComboboxButton({ id, asPlainText, inputValue, selectedItems, displayItems, toggleItem, clearSelection, highlightState, openState, parentStrings, size, variant, label, placeHolderText, isDisabled, isReadOnly, isInvalid, isRequired, collapsed, hasPendingDelete, setHasPendingDelete, setInputValue, onSearch, isSingleSelect,
|
|
2
|
+
export declare function ComboboxButton({ id, asPlainText, inputValue, selectedItems, displayItems, toggleItem, clearSelection, highlightState, openState, parentStrings, size, variant, label, placeHolderText, isDisabled, isReadOnly, isInvalid, isRequired, collapsed, hasPendingDelete, setHasPendingDelete, setInputValue, onSearch, isSingleSelect, }: ComboboxInnerProps): import('react').JSX.Element;
|
|
3
3
|
//# sourceMappingURL=combobox-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-button.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-button.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"combobox-button.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-button.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAwBlD,wBAAgB,cAAc,CAAC,EAC9B,EAAE,EACF,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EACb,IAAI,EACJ,OAAO,EACP,KAAK,EACL,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,cAAc,GACd,EAAE,kBAAkB,+BAkOpB"}
|
|
@@ -3,16 +3,18 @@ import { ThemeColorVariable as t, ThemeIconSizeVariable as n, ThemeRadiusVariabl
|
|
|
3
3
|
import { ClearIcon as te } from "../icon/icons/clear-icon.js";
|
|
4
4
|
import { TreeViewCollapseIcon as ne } from "../icon/icons/tree-view-collapse-icon.js";
|
|
5
5
|
import { IconButton as re } from "../icon-button/icon-button.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useComponentTranslations as ie } from "../../theme/translations.js";
|
|
7
|
+
import { Tag as ae } from "../tag/tag.js";
|
|
8
|
+
import { ComboboxItem as oe } from "./combobox-item.js";
|
|
9
|
+
import { comboboxTranslations as se } from "./combobox.translations.js";
|
|
8
10
|
import { Fragment as i } from "react";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
12
|
+
import { Box as s, Flex as c, Input as ce, useRecipe as le } from "@chakra-ui/react";
|
|
11
13
|
//#region lib/components/combobox/combobox-button.tsx
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
let e = (0,
|
|
15
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ s
|
|
14
|
+
var ue = e();
|
|
15
|
+
function de() {
|
|
16
|
+
let e = (0, ue.c)(1), n;
|
|
17
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ a(s, {
|
|
16
18
|
backgroundColor: t.NeutralContainer,
|
|
17
19
|
width: "8px",
|
|
18
20
|
borderRadius: "4px",
|
|
@@ -29,28 +31,28 @@ function le() {
|
|
|
29
31
|
}), e[0] = n) : n = e[0], n;
|
|
30
32
|
}
|
|
31
33
|
function l(e) {
|
|
32
|
-
let i = (0,
|
|
34
|
+
let i = (0, ue.c)(78), { id: l, asPlainText: u, inputValue: d, selectedItems: f, displayItems: pe, toggleItem: p, clearSelection: m, highlightState: h, openState: g, parentStrings: _, size: me, variant: he, label: v, placeHolderText: y, isDisabled: b, isReadOnly: x, isInvalid: S, isRequired: C, collapsed: w, hasPendingDelete: T, setHasPendingDelete: E, setInputValue: D, onSearch: O, isSingleSelect: k } = e, A = ie(se), j;
|
|
33
35
|
i[0] === Symbol.for("react.memo_cache_sentinel") ? (j = { key: "combobox" }, i[0] = j) : j = i[0];
|
|
34
|
-
let
|
|
35
|
-
i[1] !==
|
|
36
|
-
variant:
|
|
37
|
-
size:
|
|
38
|
-
}), i[1] =
|
|
39
|
-
let
|
|
40
|
-
i[5] !== u || i[6] !== m || i[7] !==
|
|
41
|
-
if (e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), g.isOpen ? p(
|
|
36
|
+
let ge = le(j), M;
|
|
37
|
+
i[1] !== ge || i[2] !== me || i[3] !== he ? (M = ge({
|
|
38
|
+
variant: he,
|
|
39
|
+
size: me
|
|
40
|
+
}), i[1] = ge, i[2] = me, i[3] = he, i[4] = M) : M = i[4];
|
|
41
|
+
let _e = M, N;
|
|
42
|
+
i[5] !== u || i[6] !== m || i[7] !== pe || i[8] !== T || i[9] !== h || i[10] !== d || i[11] !== k || i[12] !== O || i[13] !== g || i[14] !== f || i[15] !== E || i[16] !== D || i[17] !== p ? (N = (e) => {
|
|
43
|
+
if (e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), g.isOpen ? p(pe[h.index]) : g.open()), e.key === "Escape") {
|
|
42
44
|
if (!g.isOpen) return;
|
|
43
45
|
e.preventDefault(), e.stopPropagation(), g.close(), u || (D(""), O?.(""));
|
|
44
46
|
}
|
|
45
47
|
e.key === "Backspace" ? d.length === 0 && f.length > 0 && !u && (T ? (k ? m() : p(f[f.length - 1]), E(!1)) : E(!0)) : E(!1), e.key === "ArrowDown" && (g.isOpen ? h.next() : g.open()), e.key === "ArrowUp" && (g.isOpen ? h.previous() : g.open());
|
|
46
|
-
}, i[5] = u, i[6] = m, i[7] =
|
|
47
|
-
let
|
|
48
|
+
}, i[5] = u, i[6] = m, i[7] = pe, i[8] = T, i[9] = h, i[10] = d, i[11] = k, i[12] = O, i[13] = g, i[14] = f, i[15] = E, i[16] = D, i[17] = p, i[18] = N) : N = i[18];
|
|
49
|
+
let ve = N, P;
|
|
48
50
|
i[19] !== h || i[20] !== O || i[21] !== g || i[22] !== D ? (P = (e) => {
|
|
49
51
|
e.preventDefault(), e.stopPropagation();
|
|
50
52
|
let t = e.target.value;
|
|
51
53
|
D(t), O?.(t), h.set(0), g.open();
|
|
52
54
|
}, i[19] = h, i[20] = O, i[21] = g, i[22] = D, i[23] = P) : P = i[23];
|
|
53
|
-
let F = P, I = f[0], L = f[f.length - 1], R = g.isOpen || u ||
|
|
55
|
+
let F = P, I = f[0], L = f[f.length - 1], R = g.isOpen || u || y, z;
|
|
54
56
|
i[24] === R ? z = i[25] : (z = R ? { width: "100%" } : {
|
|
55
57
|
position: "absolute",
|
|
56
58
|
width: "1px",
|
|
@@ -62,62 +64,62 @@ function l(e) {
|
|
|
62
64
|
whiteSpace: "nowrap",
|
|
63
65
|
border: 0
|
|
64
66
|
}, i[24] = R, i[25] = z);
|
|
65
|
-
let B = z,
|
|
66
|
-
i[26] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
67
|
+
let B = z, V = k ? r.Small : void 0, H, U;
|
|
68
|
+
i[26] === Symbol.for("react.memo_cache_sentinel") ? (H = {
|
|
67
69
|
borderColor: t.Error,
|
|
68
70
|
boxShadow: `0 0 0 4px ${t.ErrorContainer}`,
|
|
69
71
|
backgroundColor: t.Surface
|
|
70
|
-
},
|
|
72
|
+
}, U = {
|
|
71
73
|
borderColor: t.Info,
|
|
72
74
|
boxShadow: `0 0 0 4px ${t.InfoContainer}`,
|
|
73
75
|
backgroundColor: t.Surface
|
|
74
|
-
}, i[26] =
|
|
75
|
-
let
|
|
76
|
-
i[28] ===
|
|
76
|
+
}, i[26] = H, i[27] = U) : (H = i[26], U = i[27]);
|
|
77
|
+
let ye = w || k ? "nowrap" : "wrap", W;
|
|
78
|
+
i[28] === v ? W = i[29] : (W = v && /* @__PURE__ */ a(s, {
|
|
77
79
|
whiteSpace: "nowrap",
|
|
78
|
-
children:
|
|
79
|
-
}), i[28] =
|
|
80
|
+
children: v
|
|
81
|
+
}), i[28] = v, i[29] = W);
|
|
80
82
|
let G;
|
|
81
|
-
i[30] !== u || i[31] !== w || i[32] !== T || i[33] !== L || i[34] !== f ? (G = !u && (w ? f.length > 0 && L && /* @__PURE__ */ c
|
|
83
|
+
i[30] !== u || i[31] !== w || i[32] !== T || i[33] !== L || i[34] !== f ? (G = !u && (w ? f.length > 0 && L && /* @__PURE__ */ o(c, {
|
|
82
84
|
gap: r.XSmall,
|
|
83
85
|
flexShrink: "1",
|
|
84
86
|
overflow: "hidden",
|
|
85
87
|
whiteSpace: "nowrap",
|
|
86
88
|
textOverflow: "ellipsis",
|
|
87
89
|
children: [
|
|
88
|
-
f.length > 3 && /* @__PURE__ */
|
|
89
|
-
f.length > 2 && /* @__PURE__ */
|
|
90
|
-
f.length > 1 && /* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
90
|
+
f.length > 3 && /* @__PURE__ */ a(de, {}),
|
|
91
|
+
f.length > 2 && /* @__PURE__ */ a(de, {}),
|
|
92
|
+
f.length > 1 && /* @__PURE__ */ a(ae, { children: f.length - 1 }),
|
|
93
|
+
/* @__PURE__ */ a(oe, {
|
|
92
94
|
isDeleting: T,
|
|
93
95
|
item: L,
|
|
94
96
|
asPlainText: u
|
|
95
97
|
})
|
|
96
98
|
]
|
|
97
|
-
}) : f.map((e, t) => /* @__PURE__ */
|
|
99
|
+
}) : f.map((e, t) => /* @__PURE__ */ a(oe, {
|
|
98
100
|
item: e,
|
|
99
101
|
asPlainText: u,
|
|
100
102
|
isDeleting: t === f.length - 1 && T
|
|
101
103
|
}, e.id))), i[30] = u, i[31] = w, i[32] = T, i[33] = L, i[34] = f, i[35] = G) : G = i[35];
|
|
102
104
|
let K;
|
|
103
|
-
i[36] !== u || i[37] !== I || i[38] !== d || i[39] !== _ || i[40] !== f.length ? (K = u && f.length > 0 && I && d === I.label && _[I.id]?.map(
|
|
105
|
+
i[36] !== u || i[37] !== I || i[38] !== d || i[39] !== _ || i[40] !== f.length ? (K = u && f.length > 0 && I && d === I.label && _[I.id]?.map(fe), i[36] = u, i[37] = I, i[38] = d, i[39] = _, i[40] = f.length, i[41] = K) : K = i[41];
|
|
104
106
|
let q, J;
|
|
105
107
|
i[42] === Symbol.for("react.memo_cache_sentinel") ? (q = { color: t.OnSurfaceSubdued }, J = {
|
|
106
108
|
cursor: "not-allowed",
|
|
107
109
|
color: t.OnSurfaceSubdued
|
|
108
110
|
}, i[42] = q, i[43] = J) : (q = i[42], J = i[43]);
|
|
109
111
|
let Y;
|
|
110
|
-
i[44] !== l || i[45] !== B || i[46] !== d || i[47] !==
|
|
112
|
+
i[44] !== l || i[45] !== B || i[46] !== d || i[47] !== b || i[48] !== x || i[49] !== F || i[50] !== ve || i[51] !== y ? (Y = /* @__PURE__ */ a(ce, {
|
|
111
113
|
id: l,
|
|
112
|
-
disabled:
|
|
113
|
-
readOnly:
|
|
114
|
-
onKeyDown:
|
|
114
|
+
disabled: b,
|
|
115
|
+
readOnly: x,
|
|
116
|
+
onKeyDown: ve,
|
|
115
117
|
unstyled: !0,
|
|
116
118
|
value: d,
|
|
117
119
|
autoComplete: "off",
|
|
118
120
|
minWidth: r.XLarge,
|
|
119
121
|
onChange: F,
|
|
120
|
-
placeholder:
|
|
122
|
+
placeholder: y,
|
|
121
123
|
border: "none",
|
|
122
124
|
flex: 1,
|
|
123
125
|
color: t.OnSurface,
|
|
@@ -125,12 +127,12 @@ function l(e) {
|
|
|
125
127
|
_placeholder: q,
|
|
126
128
|
_disabled: J,
|
|
127
129
|
css: B
|
|
128
|
-
}), i[44] = l, i[45] = B, i[46] = d, i[47] =
|
|
130
|
+
}), i[44] = l, i[45] = B, i[46] = d, i[47] = b, i[48] = x, i[49] = F, i[50] = ve, i[51] = y, i[52] = Y) : Y = i[52];
|
|
129
131
|
let X;
|
|
130
|
-
i[53] !== W || i[54] !== G || i[55] !== K || i[56] !== Y || i[57] !==
|
|
132
|
+
i[53] !== W || i[54] !== G || i[55] !== K || i[56] !== Y || i[57] !== ye ? (X = /* @__PURE__ */ o(c, {
|
|
131
133
|
flex: 1,
|
|
132
134
|
minWidth: 0,
|
|
133
|
-
flexWrap:
|
|
135
|
+
flexWrap: ye,
|
|
134
136
|
gap: r.Small,
|
|
135
137
|
overflow: "hidden",
|
|
136
138
|
children: [
|
|
@@ -139,16 +141,16 @@ function l(e) {
|
|
|
139
141
|
K,
|
|
140
142
|
Y
|
|
141
143
|
]
|
|
142
|
-
}), i[53] = W, i[54] = G, i[55] = K, i[56] = Y, i[57] =
|
|
144
|
+
}), i[53] = W, i[54] = G, i[55] = K, i[56] = Y, i[57] = ye, i[58] = X) : X = i[58];
|
|
143
145
|
let Z;
|
|
144
|
-
i[59] !== m || i[60] !==
|
|
146
|
+
i[59] !== m || i[60] !== b || i[61] !== x || i[62] !== C || i[63] !== k || i[64] !== f.length || i[65] !== A ? (Z = k && /* @__PURE__ */ a(s, {
|
|
145
147
|
height: n.Medium,
|
|
146
148
|
width: n.Medium,
|
|
147
149
|
flexShrink: 0,
|
|
148
150
|
display: "flex",
|
|
149
151
|
justifyContent: "center",
|
|
150
152
|
alignItems: "center",
|
|
151
|
-
children: f.length > 0 && !
|
|
153
|
+
children: f.length > 0 && !b && !x && !C && /* @__PURE__ */ a(re, {
|
|
152
154
|
icon: te,
|
|
153
155
|
type: "button",
|
|
154
156
|
"aria-label": A.clearSelection,
|
|
@@ -164,44 +166,44 @@ function l(e) {
|
|
|
164
166
|
variant: "ghost",
|
|
165
167
|
size: "sm"
|
|
166
168
|
})
|
|
167
|
-
}), i[59] = m, i[60] =
|
|
168
|
-
let
|
|
169
|
-
i[67] ===
|
|
169
|
+
}), i[59] = m, i[60] = b, i[61] = x, i[62] = C, i[63] = k, i[64] = f.length, i[65] = A, i[66] = Z) : Z = i[66];
|
|
170
|
+
let be = b ? t.OnSurfaceSubdued : t.OnSurface, Q;
|
|
171
|
+
i[67] === be ? Q = i[68] : (Q = /* @__PURE__ */ a(c, {
|
|
170
172
|
className: "combobox-dropdown-icon",
|
|
171
173
|
justifyContent: "center",
|
|
172
174
|
alignItems: "center",
|
|
173
175
|
cursor: "pointer",
|
|
174
|
-
children: /* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ a(ne, {
|
|
175
177
|
size: n.Small,
|
|
176
|
-
color:
|
|
178
|
+
color: be
|
|
177
179
|
})
|
|
178
|
-
}), i[67] =
|
|
180
|
+
}), i[67] = be, i[68] = Q);
|
|
179
181
|
let $;
|
|
180
|
-
return i[69] !==
|
|
181
|
-
css:
|
|
182
|
-
"aria-disabled":
|
|
183
|
-
"aria-readonly":
|
|
184
|
-
"aria-invalid":
|
|
182
|
+
return i[69] !== b || i[70] !== S || i[71] !== x || i[72] !== _e || i[73] !== X || i[74] !== Z || i[75] !== Q || i[76] !== V ? ($ = /* @__PURE__ */ o(c, {
|
|
183
|
+
css: _e,
|
|
184
|
+
"aria-disabled": b,
|
|
185
|
+
"aria-readonly": x,
|
|
186
|
+
"aria-invalid": S,
|
|
185
187
|
borderRadius: ee.Small,
|
|
186
188
|
padding: r.Small,
|
|
187
|
-
gap:
|
|
188
|
-
_invalid:
|
|
189
|
-
_focusWithin:
|
|
189
|
+
gap: V,
|
|
190
|
+
_invalid: H,
|
|
191
|
+
_focusWithin: U,
|
|
190
192
|
children: [
|
|
191
193
|
X,
|
|
192
194
|
Z,
|
|
193
195
|
Q
|
|
194
196
|
]
|
|
195
|
-
}), i[69] =
|
|
197
|
+
}), i[69] = b, i[70] = S, i[71] = x, i[72] = _e, i[73] = X, i[74] = Z, i[75] = Q, i[76] = V, i[77] = $) : $ = i[77], $;
|
|
196
198
|
}
|
|
197
|
-
function
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
+
function fe(e) {
|
|
200
|
+
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(s, {
|
|
199
201
|
color: t.OnSurfaceSubdued,
|
|
200
202
|
textOverflow: "ellipsis",
|
|
201
203
|
overflow: "hidden",
|
|
202
204
|
whiteSpace: "nowrap",
|
|
203
205
|
children: e
|
|
204
|
-
}), /* @__PURE__ */ s
|
|
206
|
+
}), /* @__PURE__ */ a(s, {
|
|
205
207
|
color: t.OnSurfaceSubdued,
|
|
206
208
|
children: "/"
|
|
207
209
|
})] }, e);
|
|
@@ -3,38 +3,38 @@ import { ThemeSpaceVariable as t } from "../../theme/theme-types.js";
|
|
|
3
3
|
import { Box as n } from "../box/box.js";
|
|
4
4
|
import { Tag as r } from "../tag/tag.js";
|
|
5
5
|
import { Highlight as i } from "../highlight/highlight.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
import { Flex as s } from "@chakra-ui/react";
|
|
8
8
|
//#region lib/components/combobox/combobox-item.tsx
|
|
9
9
|
var c = e();
|
|
10
10
|
function l(e) {
|
|
11
11
|
let l = (0, c.c)(8), { item: u, asPlainText: d, isDeleting: f, highlightQuery: p } = e, m = f ? "primary" : u.variant ?? "neutral", h = f || (u.solid ?? !1), g;
|
|
12
|
-
return l[0] !== d || l[1] !== p || l[2] !== u.append || l[3] !== u.label || l[4] !== u.prepend || l[5] !== h || l[6] !== m ? (g = d ? /* @__PURE__ */ s
|
|
12
|
+
return l[0] !== d || l[1] !== p || l[2] !== u.append || l[3] !== u.label || l[4] !== u.prepend || l[5] !== h || l[6] !== m ? (g = d ? /* @__PURE__ */ o(s, {
|
|
13
13
|
gap: t.XSmall,
|
|
14
14
|
overflow: "hidden",
|
|
15
15
|
whiteSpace: "nowrap",
|
|
16
16
|
textOverflow: "ellipsis",
|
|
17
17
|
children: [
|
|
18
18
|
u.prepend,
|
|
19
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ a(n, { children: /* @__PURE__ */ a(i, {
|
|
20
20
|
query: p ?? "",
|
|
21
21
|
children: u.label
|
|
22
22
|
}) }),
|
|
23
23
|
u.append
|
|
24
24
|
]
|
|
25
|
-
}) : /* @__PURE__ */
|
|
25
|
+
}) : /* @__PURE__ */ a(n, {
|
|
26
26
|
overflow: "hidden",
|
|
27
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ a(r, {
|
|
28
28
|
variant: m,
|
|
29
29
|
solid: h,
|
|
30
30
|
prepend: u.prepend,
|
|
31
31
|
append: u.append,
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ a(n, {
|
|
33
33
|
display: "block",
|
|
34
34
|
overflow: "hidden",
|
|
35
35
|
whiteSpace: "nowrap",
|
|
36
36
|
textOverflow: "ellipsis",
|
|
37
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ a(i, {
|
|
38
38
|
query: p ?? "",
|
|
39
39
|
children: u.label
|
|
40
40
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-menu.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"combobox-menu.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/combobox-menu.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACX,kBAAkB,EAIlB,MAAM,SAAS,CAAC;AAuDjB,wBAAgB,YAAY,CAAC,KAAK,EAAE,kBAAkB,+BAiGrD"}
|