@tpc-mare/mare-ui-components-react 1.0.2 → 1.0.3-beta.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/LICENSE +21 -0
- package/README.md +227 -0
- package/dist/accordion/index.js +1 -1
- package/dist/accordion.d.ts +36 -0
- package/dist/{avatar/Avatar.types.d.ts → avatar.d.ts} +34 -26
- package/dist/badge.d.ts +19 -0
- package/dist/banner/index.js +1 -1
- package/dist/banner.d.ts +23 -0
- package/dist/breadcrumbs/index.js +1 -1
- package/dist/breadcrumbs.d.ts +24 -0
- package/dist/button/index.js +1 -1
- package/dist/button.d.ts +45 -0
- package/dist/checkbox/index.js +1 -1
- package/dist/{checkbox/Checkbox.types.d.ts → checkbox.d.ts} +79 -69
- package/dist/combobox/index.js +1 -1
- package/dist/combobox.d.ts +43 -0
- package/dist/confirm-dialog/index.js +1 -1
- package/dist/confirm-dialog.d.ts +34 -0
- package/dist/counter/index.js +1 -1
- package/dist/{counter/Counter.types.d.ts → counter.d.ts} +34 -23
- package/dist/date-picker/index.js +1 -1
- package/dist/{date-picker/DatePicker.types.d.ts → date-picker.d.ts} +76 -52
- package/dist/dialog/index.js +2 -2
- package/dist/{dialog/Dialog.types.d.ts → dialog.d.ts} +74 -55
- package/dist/divider.d.ts +18 -0
- package/dist/drawer/index.js +1 -1
- package/dist/{drawer/Drawer.types.d.ts → drawer.d.ts} +68 -53
- package/dist/expandable-counter/index.js +1 -1
- package/dist/{expandable-counter/ExpandableCounter.types.d.ts → expandable-counter.d.ts} +25 -19
- package/dist/filter-chip/index.js +1 -1
- package/dist/filter-chip-dropdown-multiple/index.js +1 -1
- package/dist/filter-chip-dropdown-multiple.d.ts +42 -0
- package/dist/filter-chip-dropdown-single/index.js +1 -1
- package/dist/filter-chip-dropdown-single.d.ts +40 -0
- package/dist/filter-chip-group.d.ts +27 -0
- package/dist/{filter-chip/FilterChip.types.d.ts → filter-chip.d.ts} +49 -40
- package/dist/floating-action-button/index.js +1 -1
- package/dist/floating-action-button.d.ts +46 -0
- package/dist/image-item.d.ts +15 -0
- package/dist/image-slider/index.js +1 -1
- package/dist/image-slider.d.ts +12 -0
- package/dist/index/index.js +40 -40
- package/dist/index.d.ts +1693 -0
- package/dist/input-number/index.js +1 -1
- package/dist/{input-number/InputNumber.types.d.ts → input-number.d.ts} +42 -30
- package/dist/input-otp/index.js +1 -1
- package/dist/{input-otp/InputOtp.types.d.ts → input-otp.d.ts} +36 -27
- package/dist/input-text/index.js +2 -2
- package/dist/input-text.d.ts +77 -0
- package/dist/keyboard-commands/index.js +51 -31
- package/dist/keyboard-commands.d.ts +264 -0
- package/dist/menu/index.js +1 -1
- package/dist/menu.d.ts +48 -0
- package/dist/message/index.js +1 -1
- package/dist/message.d.ts +28 -0
- package/dist/multi-select/index.js +1 -1
- package/dist/{multi-select/MultiSelect.types.d.ts → multi-select.d.ts} +62 -31
- package/dist/overlay-badge/index.js +1 -1
- package/dist/{overlay-badge/OverlayBadge.types.d.ts → overlay-badge.d.ts} +25 -17
- package/dist/paginator/index.js +1 -1
- package/dist/{paginator/Paginator.types.d.ts → paginator.d.ts} +27 -21
- package/dist/panel-menu/index.js +1 -1
- package/dist/panel-menu.d.ts +29 -0
- package/dist/password/index.js +1 -1
- package/dist/{password/Password.types.d.ts → password.d.ts} +58 -39
- package/dist/{progress-bar/ProgressBar.types.d.ts → progress-bar.d.ts} +45 -38
- package/dist/{progress-spinner/ProgressSpinner.d.ts → progress-spinner.d.ts} +15 -10
- package/dist/radio-group/index.js +1 -1
- package/dist/{radio-group/RadioGroup.types.d.ts → radio-group.d.ts} +81 -62
- package/dist/search-field/index.js +1 -1
- package/dist/search-field.d.ts +55 -0
- package/dist/segmented-control/index.js +1 -1
- package/dist/{segmented-control/SegmentedControl.types.d.ts → segmented-control.d.ts} +70 -54
- package/dist/select-field/index.js +1 -1
- package/dist/select-field.d.ts +40 -0
- package/dist/shared/{Accordion-BSmOrxH6.js → Accordion-QSdlMSst.js} +9 -6
- package/dist/shared/{Banner-D4na_bM8.js → Banner-DMWwNO2K.js} +6 -3
- package/dist/shared/{Breadcrumbs-Cqr3Jitd.js → Breadcrumbs-bcs9_ByY.js} +4 -1
- package/dist/shared/{Button-C2ULmKj3.js → Button-BqFuDnSs.js} +98 -92
- package/dist/shared/{Checkbox-DCq3_MWz.js → Checkbox-DgZAQsbr.js} +94 -87
- package/dist/shared/Combobox-CiaEi_RG.js +148 -0
- package/dist/shared/{ConfirmDialog-cmLTBBNs.js → ConfirmDialog-DHsPafOo.js} +8 -3
- package/dist/shared/{Counter-0siKQRKc.js → Counter-lqywtgF6.js} +25 -27
- package/dist/shared/{DatePicker-DhIWE0V_.js → DatePicker-t6xP4UWu.js} +370 -346
- package/dist/shared/{DialogFooter-Cx7G-GHH.js → DialogFooter-DKFuHOJl.js} +4 -1
- package/dist/shared/{DialogHeader-DdVPFxGf.js → DialogHeader-D0dg5FBI.js} +14 -14
- package/dist/shared/{DrawerFooter-DEb2gqW-.js → DrawerFooter-CGrPQoLH.js} +35 -26
- package/dist/shared/{ExpandableCounter-pPJIrd6L.js → ExpandableCounter-BOCHfuye.js} +23 -22
- package/dist/shared/{FilterChip-TpKF-4vP.js → FilterChip-Cc4BBVz3.js} +21 -21
- package/dist/shared/{FilterChipDropdownMultiple-2mr_Z57i.js → FilterChipDropdownMultiple-DL3mHW9H.js} +20 -15
- package/dist/shared/{FilterChipDropdownSingle-CLmWzX9q.js → FilterChipDropdownSingle-BUrzUAmy.js} +31 -22
- package/dist/shared/FloatingActionButton-Dhqp98s7.js +27 -0
- package/dist/shared/{HelperText-zmUym82m.js → HelperText-C9TsD0wC.js} +1 -0
- package/dist/shared/IconField-Bp2H10B1.js +89 -0
- package/dist/shared/{ImageSlider-Bgb1kNQ4.js → ImageSlider-DT0B5g68.js} +5 -5
- package/dist/shared/InputNumber-CUNq3cPa.js +75 -0
- package/dist/shared/InputOtp-wTUwu1NG.js +75 -0
- package/dist/shared/{Menu-Cv9dU1iA.js → Menu-DBHlDgtQ.js} +5 -2
- package/dist/shared/{Message-CQUdM9rR.js → Message-B36kcrfu.js} +4 -4
- package/dist/shared/MultiSelect-CfKm_FPp.js +248 -0
- package/dist/shared/{OverlayBadge-Dkosm3Il.js → OverlayBadge-CnQI_NE0.js} +1 -0
- package/dist/shared/{Paginator-QTDpAJ-N.js → Paginator-BRQx1GRQ.js} +48 -49
- package/dist/shared/{PanelMenu-BpjNM7O_.js → PanelMenu-Dw-K6H2C.js} +14 -4
- package/dist/shared/Password-BWNvygrO.js +113 -0
- package/dist/shared/RadioGroup-CHgzVvZO.js +145 -0
- package/dist/shared/SearchField-Cuw3MVaD.js +73 -0
- package/dist/shared/{SegmentedControl-BfE3jNM6.js → SegmentedControl-D3znmx9l.js} +4 -1
- package/dist/shared/SelectField-BAuctVIF.js +120 -0
- package/dist/shared/Slider-D_iNiPxa.js +110 -0
- package/dist/shared/{Snackbar-BhORbyt-.js → Snackbar-DP-b4GWx.js} +50 -17
- package/dist/shared/{Stepper-DrKKSn_j.js → Stepper-CudtdHSg.js} +26 -18
- package/dist/shared/Switch-C1dd2rX1.js +114 -0
- package/dist/shared/{Tabs-DuufYBV2.js → Tabs-lGGLALGR.js} +4 -1
- package/dist/shared/{TagChip-CP3aX2_G.js → TagChip-QQ6p0JgU.js} +1 -1
- package/dist/shared/Textarea-CJfNbqGA.js +51 -0
- package/dist/shared/useControllableValue-DhckT_e1.js +13 -0
- package/dist/skeleton.d.ts +30 -0
- package/dist/slider/index.js +1 -1
- package/dist/{slider/Slider.types.d.ts → slider.d.ts} +33 -24
- package/dist/snackbar/index.js +1 -1
- package/dist/{snackbar/Snackbar.types.d.ts → snackbar.d.ts} +63 -42
- package/dist/stepper/index.js +1 -1
- package/dist/stepper.d.ts +38 -0
- package/dist/switch/index.js +1 -1
- package/dist/{switch/Switch.types.d.ts → switch.d.ts} +68 -59
- package/dist/tabs/index.js +1 -1
- package/dist/tabs.d.ts +30 -0
- package/dist/tag-chip/index.js +1 -1
- package/dist/{tag-chip/TagChip.types.d.ts → tag-chip.d.ts} +33 -21
- package/dist/tag.d.ts +23 -0
- package/dist/textarea/index.js +1 -1
- package/dist/textarea.d.ts +26 -0
- package/package.json +15 -8
- package/dist/.storybook/main.d.ts +0 -3
- package/dist/.storybook/manager.d.ts +0 -1
- package/dist/.storybook/preview.d.ts +0 -3
- package/dist/accordion/Accordion.d.ts +0 -2
- package/dist/accordion/Accordion.types.d.ts +0 -20
- package/dist/accordion/index.d.ts +0 -2
- package/dist/avatar/Avatar.d.ts +0 -2
- package/dist/avatar/index.d.ts +0 -2
- package/dist/badge/Badge.d.ts +0 -2
- package/dist/badge/Badge.types.d.ts +0 -11
- package/dist/badge/index.d.ts +0 -2
- package/dist/banner/Banner.d.ts +0 -2
- package/dist/banner/Banner.types.d.ts +0 -15
- package/dist/banner/index.d.ts +0 -2
- package/dist/breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/dist/breadcrumbs/Breadcrumbs.types.d.ts +0 -11
- package/dist/breadcrumbs/index.d.ts +0 -2
- package/dist/button/Button.d.ts +0 -2
- package/dist/button/Button.types.d.ts +0 -24
- package/dist/button/index.d.ts +0 -2
- package/dist/checkbox/Checkbox.d.ts +0 -2
- package/dist/checkbox/index.d.ts +0 -2
- package/dist/combobox/Combobox.d.ts +0 -13
- package/dist/combobox/Combobox.types.d.ts +0 -16
- package/dist/combobox/index.d.ts +0 -2
- package/dist/confirm-dialog/ConfirmDialog.d.ts +0 -2
- package/dist/confirm-dialog/ConfirmDialog.types.d.ts +0 -21
- package/dist/confirm-dialog/index.d.ts +0 -2
- package/dist/counter/Counter.d.ts +0 -2
- package/dist/counter/index.d.ts +0 -2
- package/dist/date-picker/DatePicker.d.ts +0 -3
- package/dist/date-picker/index.d.ts +0 -2
- package/dist/dialog/Dialog.d.ts +0 -2
- package/dist/dialog/DialogFooter.d.ts +0 -2
- package/dist/dialog/DialogHeader.d.ts +0 -2
- package/dist/dialog/index.d.ts +0 -4
- package/dist/divider/Divider.d.ts +0 -2
- package/dist/divider/Divider.types.d.ts +0 -8
- package/dist/divider/index.d.ts +0 -2
- package/dist/drawer/Drawer.d.ts +0 -2
- package/dist/drawer/DrawerFooter.d.ts +0 -2
- package/dist/drawer/DrawerHeader.d.ts +0 -2
- package/dist/drawer/index.d.ts +0 -4
- package/dist/expandable-counter/ExpandableCounter.d.ts +0 -2
- package/dist/expandable-counter/index.d.ts +0 -2
- package/dist/filter-chip/FilterChip.d.ts +0 -2
- package/dist/filter-chip/index.d.ts +0 -2
- package/dist/filter-chip-dropdown-multiple/FilterChipDropdownMultiple.d.ts +0 -9
- package/dist/filter-chip-dropdown-multiple/FilterChipDropdownMultiple.types.d.ts +0 -19
- package/dist/filter-chip-dropdown-multiple/index.d.ts +0 -2
- package/dist/filter-chip-dropdown-single/FilterChipDropdownSingle.d.ts +0 -11
- package/dist/filter-chip-dropdown-single/FilterChipDropdownSingle.types.d.ts +0 -15
- package/dist/filter-chip-dropdown-single/index.d.ts +0 -2
- package/dist/filter-chip-group/FilterChipGroup.d.ts +0 -8
- package/dist/filter-chip-group/FilterChipGroup.types.d.ts +0 -12
- package/dist/filter-chip-group/index.d.ts +0 -2
- package/dist/floating-action-button/FloatingActionButton.d.ts +0 -2
- package/dist/floating-action-button/FloatingActionButton.types.d.ts +0 -9
- package/dist/floating-action-button/index.d.ts +0 -2
- package/dist/image-item/ImageItem.d.ts +0 -2
- package/dist/image-item/ImageItem.types.d.ts +0 -7
- package/dist/image-item/index.d.ts +0 -2
- package/dist/image-slider/ImageSlider.d.ts +0 -2
- package/dist/image-slider/ImageSlider.types.d.ts +0 -6
- package/dist/image-slider/index.d.ts +0 -2
- package/dist/index/index.d.ts +0 -94
- package/dist/input-number/InputNumber.d.ts +0 -2
- package/dist/input-number/index.d.ts +0 -2
- package/dist/input-otp/InputOtp.d.ts +0 -2
- package/dist/input-otp/index.d.ts +0 -2
- package/dist/input-text/CharacterCount.d.ts +0 -5
- package/dist/input-text/FloatLabel.d.ts +0 -6
- package/dist/input-text/FormField.d.ts +0 -8
- package/dist/input-text/HelperText.d.ts +0 -4
- package/dist/input-text/IconField.d.ts +0 -18
- package/dist/input-text/InputText.d.ts +0 -2
- package/dist/input-text/InputText.types.d.ts +0 -14
- package/dist/input-text/field-layout.d.ts +0 -12
- package/dist/input-text/index.d.ts +0 -11
- package/dist/keyboard-commands/index.d.ts +0 -5
- package/dist/keyboard-commands/useKeyboardCommands.d.ts +0 -27
- package/dist/keyboard-commands/useKeyboardNavGrid.d.ts +0 -19
- package/dist/keyboard-commands/useKeyboardNavList.d.ts +0 -17
- package/dist/keyboard-commands/useKeyboardScope.d.ts +0 -20
- package/dist/menu/Menu.d.ts +0 -2
- package/dist/menu/Menu.types.d.ts +0 -19
- package/dist/menu/index.d.ts +0 -2
- package/dist/message/Message.d.ts +0 -2
- package/dist/message/Message.types.d.ts +0 -17
- package/dist/message/index.d.ts +0 -2
- package/dist/multi-select/MultiSelect.d.ts +0 -12
- package/dist/multi-select/index.d.ts +0 -2
- package/dist/overlay-badge/OverlayBadge.d.ts +0 -2
- package/dist/overlay-badge/index.d.ts +0 -2
- package/dist/paginator/Paginator.d.ts +0 -2
- package/dist/paginator/index.d.ts +0 -2
- package/dist/panel-menu/PanelMenu.d.ts +0 -2
- package/dist/panel-menu/PanelMenu.types.d.ts +0 -12
- package/dist/panel-menu/index.d.ts +0 -2
- package/dist/password/Password.d.ts +0 -7
- package/dist/password/index.d.ts +0 -2
- package/dist/progress-bar/ProgressBar.d.ts +0 -2
- package/dist/progress-bar/index.d.ts +0 -2
- package/dist/progress-spinner/index.d.ts +0 -2
- package/dist/radio-group/RadioGroup.d.ts +0 -2
- package/dist/radio-group/index.d.ts +0 -2
- package/dist/search-field/SearchField.d.ts +0 -2
- package/dist/search-field/SearchField.types.d.ts +0 -26
- package/dist/search-field/index.d.ts +0 -2
- package/dist/segmented-control/SegmentedControl.d.ts +0 -2
- package/dist/segmented-control/index.d.ts +0 -2
- package/dist/select-field/SelectField.d.ts +0 -14
- package/dist/select-field/SelectField.types.d.ts +0 -11
- package/dist/select-field/index.d.ts +0 -2
- package/dist/shared/Combobox-DrkeDMW0.js +0 -139
- package/dist/shared/FloatingActionButton-BWB5Taeg.js +0 -28
- package/dist/shared/IconCheck-DzZA6b2U.js +0 -5
- package/dist/shared/IconChevronDown-ev2ML7Ex.js +0 -5
- package/dist/shared/IconChevronRight-DEIDRsvg.js +0 -7
- package/dist/shared/IconField-CqKydKep.js +0 -81
- package/dist/shared/IconMinus-fS_GL0Et.js +0 -5
- package/dist/shared/IconSearch-CgM6jEUh.js +0 -5
- package/dist/shared/IconX-CpPADKjZ.js +0 -5
- package/dist/shared/InputNumber-nxus9h5s.js +0 -64
- package/dist/shared/InputOtp-BxBc6Vhs.js +0 -73
- package/dist/shared/MultiSelect-DlaYWcPo.js +0 -248
- package/dist/shared/Password-D4PRaleH.js +0 -97
- package/dist/shared/RadioGroup-B8CXU8-l.js +0 -139
- package/dist/shared/SearchField-DIsFhJ22.js +0 -64
- package/dist/shared/SelectField-CcnbnPEi.js +0 -121
- package/dist/shared/Slider-Cl9PyH2q.js +0 -102
- package/dist/shared/Switch-B5DSQLFL.js +0 -106
- package/dist/shared/Textarea-DHJIWBRM.js +0 -42
- package/dist/shared/createReactComponent-Cb6Pzf10.js +0 -48
- package/dist/shared/useMediaQuery.d.ts +0 -5
- package/dist/skeleton/Skeleton.d.ts +0 -2
- package/dist/skeleton/Skeleton.types.d.ts +0 -20
- package/dist/skeleton/index.d.ts +0 -2
- package/dist/slider/Slider.d.ts +0 -2
- package/dist/slider/index.d.ts +0 -2
- package/dist/snackbar/Snackbar.d.ts +0 -3
- package/dist/snackbar/Snackbar.test.d.ts +0 -1
- package/dist/snackbar/index.d.ts +0 -2
- package/dist/stepper/Stepper.d.ts +0 -2
- package/dist/stepper/Stepper.types.d.ts +0 -18
- package/dist/stepper/index.d.ts +0 -2
- package/dist/switch/Switch.d.ts +0 -2
- package/dist/switch/index.d.ts +0 -2
- package/dist/tabs/Tabs.d.ts +0 -10
- package/dist/tabs/Tabs.types.d.ts +0 -7
- package/dist/tabs/index.d.ts +0 -2
- package/dist/tag/Tag.d.ts +0 -2
- package/dist/tag/Tag.types.d.ts +0 -11
- package/dist/tag/index.d.ts +0 -2
- package/dist/tag-chip/TagChip.d.ts +0 -2
- package/dist/tag-chip/index.d.ts +0 -2
- package/dist/textarea/Textarea.d.ts +0 -2
- package/dist/textarea/Textarea.types.d.ts +0 -15
- package/dist/textarea/index.d.ts +0 -2
- package/dist/vite.config.d.ts +0 -2
|
@@ -79,7 +79,10 @@ function E({
|
|
|
79
79
|
/* @__PURE__ */ a(r.Positioner, { className: k, children: /* @__PURE__ */ l(
|
|
80
80
|
r.Content,
|
|
81
81
|
{
|
|
82
|
-
className: y({
|
|
82
|
+
className: y({
|
|
83
|
+
size: g,
|
|
84
|
+
fullScreen: t
|
|
85
|
+
}),
|
|
83
86
|
children: [
|
|
84
87
|
p,
|
|
85
88
|
/* @__PURE__ */ a("div", { className: v(t), children: c }),
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { Dialog as
|
|
3
|
-
import { s as h, i as o, n as d, l as u } from "./DialogFooter-
|
|
4
|
-
import { B as r } from "./Button-
|
|
5
|
-
import {
|
|
2
|
+
import { Dialog as a } from "@ark-ui/react/dialog";
|
|
3
|
+
import { s as h, i as o, n as d, l as u } from "./DialogFooter-DKFuHOJl.js";
|
|
4
|
+
import { B as r } from "./Button-BqFuDnSs.js";
|
|
5
|
+
import { IconX as p } from "@tabler/icons-react";
|
|
6
6
|
function y({
|
|
7
|
-
title:
|
|
7
|
+
title: l,
|
|
8
8
|
leftIcon: i = /* @__PURE__ */ s(p, {}),
|
|
9
|
-
rightIcon:
|
|
9
|
+
rightIcon: e,
|
|
10
10
|
onLeftIconClick: n,
|
|
11
11
|
onRightIconClick: m,
|
|
12
12
|
border: c = !1
|
|
13
13
|
}) {
|
|
14
14
|
return /* @__PURE__ */ t("div", { className: u(c), children: [
|
|
15
|
-
i ? /* @__PURE__ */ s("div", { className: h, children: /* @__PURE__ */ s(
|
|
15
|
+
i ? /* @__PURE__ */ s("div", { className: h, children: /* @__PURE__ */ s(a.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
16
16
|
r,
|
|
17
17
|
{
|
|
18
18
|
severity: "ghost",
|
|
@@ -22,31 +22,31 @@ function y({
|
|
|
22
22
|
onClick: n
|
|
23
23
|
}
|
|
24
24
|
) }) }) : null,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
l ? /* @__PURE__ */ s(
|
|
26
|
+
a.Title,
|
|
27
27
|
{
|
|
28
28
|
className: o({
|
|
29
29
|
hasLeftIcon: !!i,
|
|
30
|
-
hasRightIcon: !!
|
|
30
|
+
hasRightIcon: !!e
|
|
31
31
|
}),
|
|
32
|
-
children:
|
|
32
|
+
children: l
|
|
33
33
|
}
|
|
34
34
|
) : /* @__PURE__ */ s(
|
|
35
35
|
"span",
|
|
36
36
|
{
|
|
37
37
|
className: o({
|
|
38
38
|
hasLeftIcon: !!i,
|
|
39
|
-
hasRightIcon: !!
|
|
39
|
+
hasRightIcon: !!e
|
|
40
40
|
})
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
|
|
43
|
+
e ? /* @__PURE__ */ s("div", { className: d, children: /* @__PURE__ */ s(
|
|
44
44
|
r,
|
|
45
45
|
{
|
|
46
46
|
severity: "ghost",
|
|
47
47
|
iconOnly: !0,
|
|
48
48
|
size: "xsmall",
|
|
49
|
-
icon:
|
|
49
|
+
icon: e,
|
|
50
50
|
onClick: m
|
|
51
51
|
}
|
|
52
52
|
) }) : null
|
|
@@ -2,8 +2,8 @@ import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { Dialog as t } from "@ark-ui/react/dialog";
|
|
3
3
|
import { Portal as y } from "@ark-ui/react/portal";
|
|
4
4
|
import { o as _ } from "./index-ByQ37VXf.js";
|
|
5
|
-
import { B as u } from "./Button-
|
|
6
|
-
import {
|
|
5
|
+
import { B as u } from "./Button-BqFuDnSs.js";
|
|
6
|
+
import { IconX as $ } from "@tabler/icons-react";
|
|
7
7
|
const k = [
|
|
8
8
|
"left",
|
|
9
9
|
"right",
|
|
@@ -58,12 +58,12 @@ const k = [
|
|
|
58
58
|
mare:px-6
|
|
59
59
|
${e.compact ? "mare:h-auto mare:py-4" : "mare:h-14 mare:md:h-16"}
|
|
60
60
|
${e.border ? "mare:border-b mare:border-default" : ""}
|
|
61
|
-
`, B = "mare:-ml-1.5",
|
|
61
|
+
`, B = "mare:-ml-1.5", L = "mare:-mr-1.5", d = (e) => `
|
|
62
62
|
mare:grow mare:w-full mare:truncate mare:text-center
|
|
63
63
|
mare:tpc-typography-label-m mare:text-default
|
|
64
64
|
${e.hasRightIcon ? "" : "mare:mr-6.5"}
|
|
65
65
|
${e.hasLeftIcon ? "" : "mare:ml-6.5"}
|
|
66
|
-
`,
|
|
66
|
+
`, P = (e) => `
|
|
67
67
|
mare:flex mare:flex-col-reverse mare:sm:flex-row mare:justify-end
|
|
68
68
|
mare:gap-3 mare:sm:gap-4 mare:w-full
|
|
69
69
|
mare:*:w-full mare:sm:*:flex-1
|
|
@@ -75,8 +75,8 @@ function H({
|
|
|
75
75
|
onOpenChange: a,
|
|
76
76
|
position: m = "left",
|
|
77
77
|
modal: o = !0,
|
|
78
|
-
closeOnEscape:
|
|
79
|
-
dismissableMask:
|
|
78
|
+
closeOnEscape: l = !0,
|
|
79
|
+
dismissableMask: s = !0,
|
|
80
80
|
maskColor: n,
|
|
81
81
|
shadow: p = !0,
|
|
82
82
|
portalContainer: x,
|
|
@@ -92,27 +92,36 @@ function H({
|
|
|
92
92
|
open: e,
|
|
93
93
|
onOpenChange: (g) => a?.(g.open),
|
|
94
94
|
modal: o,
|
|
95
|
-
closeOnEscape:
|
|
96
|
-
closeOnInteractOutside:
|
|
95
|
+
closeOnEscape: l,
|
|
96
|
+
closeOnInteractOutside: s,
|
|
97
97
|
"aria-label": w,
|
|
98
98
|
lazyMount: !0,
|
|
99
99
|
unmountOnExit: !0,
|
|
100
100
|
children: /* @__PURE__ */ c(y, { container: x, children: [
|
|
101
101
|
/* @__PURE__ */ r(t.Backdrop, { className: N(n) }),
|
|
102
|
-
/* @__PURE__ */ r(
|
|
103
|
-
t.
|
|
102
|
+
/* @__PURE__ */ r(
|
|
103
|
+
t.Positioner,
|
|
104
104
|
{
|
|
105
|
-
className:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
105
|
+
className: C(i),
|
|
106
|
+
children: /* @__PURE__ */ c(
|
|
107
|
+
t.Content,
|
|
108
|
+
{
|
|
109
|
+
className: z({
|
|
110
|
+
position: i,
|
|
111
|
+
shadow: p
|
|
112
|
+
}),
|
|
113
|
+
style: {
|
|
114
|
+
"--mare-drawer-from": v(i)
|
|
115
|
+
},
|
|
116
|
+
children: [
|
|
117
|
+
f,
|
|
118
|
+
/* @__PURE__ */ r("div", { className: D(!!f), children: b }),
|
|
119
|
+
h
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
)
|
|
114
123
|
}
|
|
115
|
-
)
|
|
124
|
+
)
|
|
116
125
|
] })
|
|
117
126
|
}
|
|
118
127
|
);
|
|
@@ -122,11 +131,11 @@ function M({
|
|
|
122
131
|
leftIcon: a = /* @__PURE__ */ r($, {}),
|
|
123
132
|
rightIcon: m,
|
|
124
133
|
onLeftIconClick: o,
|
|
125
|
-
onRightIconClick:
|
|
126
|
-
border:
|
|
134
|
+
onRightIconClick: l,
|
|
135
|
+
border: s = !1,
|
|
127
136
|
compact: n = !1
|
|
128
137
|
}) {
|
|
129
|
-
return /* @__PURE__ */ c("div", { className: R({ border:
|
|
138
|
+
return /* @__PURE__ */ c("div", { className: R({ border: s, compact: n }), children: [
|
|
130
139
|
a ? /* @__PURE__ */ r("div", { className: B, children: /* @__PURE__ */ r(t.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ r(
|
|
131
140
|
u,
|
|
132
141
|
{
|
|
@@ -155,14 +164,14 @@ function M({
|
|
|
155
164
|
})
|
|
156
165
|
}
|
|
157
166
|
),
|
|
158
|
-
m ? /* @__PURE__ */ r("div", { className:
|
|
167
|
+
m ? /* @__PURE__ */ r("div", { className: L, children: /* @__PURE__ */ r(
|
|
159
168
|
u,
|
|
160
169
|
{
|
|
161
170
|
severity: "ghost",
|
|
162
171
|
iconOnly: !0,
|
|
163
172
|
size: "xsmall",
|
|
164
173
|
icon: m,
|
|
165
|
-
onClick:
|
|
174
|
+
onClick: l
|
|
166
175
|
}
|
|
167
176
|
) }) : null
|
|
168
177
|
] });
|
|
@@ -171,7 +180,7 @@ function q({
|
|
|
171
180
|
border: e = !1,
|
|
172
181
|
children: a
|
|
173
182
|
}) {
|
|
174
|
-
return /* @__PURE__ */ r("div", { className:
|
|
183
|
+
return /* @__PURE__ */ r("div", { className: P(e), children: a });
|
|
175
184
|
}
|
|
176
185
|
export {
|
|
177
186
|
H as D,
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { IconPlus as p } from "@tabler/icons-react";
|
|
3
|
+
import { B as x } from "./Button-BqFuDnSs.js";
|
|
4
|
+
import { C as d } from "./Counter-lqywtgF6.js";
|
|
5
|
+
const l = `
|
|
5
6
|
mare:inline-flex mare:origin-left mare:[animation:mare-expandable-counter-enter_100ms_ease-out]
|
|
6
7
|
`, C = (e, a) => e > a;
|
|
7
|
-
function
|
|
8
|
+
function k({
|
|
8
9
|
value: e = 0,
|
|
9
10
|
onValueChange: a,
|
|
10
11
|
disabled: o = !1,
|
|
11
12
|
disabledIncrement: t = !1,
|
|
12
13
|
disabledDecrement: c = !1,
|
|
13
|
-
step:
|
|
14
|
-
id:
|
|
15
|
-
name:
|
|
14
|
+
step: i = 1,
|
|
15
|
+
id: s,
|
|
16
|
+
name: m,
|
|
16
17
|
min: n = 0,
|
|
17
|
-
max:
|
|
18
|
+
max: f
|
|
18
19
|
}) {
|
|
19
20
|
return C(e, n) ? /* @__PURE__ */ r(
|
|
20
21
|
"span",
|
|
21
22
|
{
|
|
22
|
-
className:
|
|
23
|
+
className: l,
|
|
23
24
|
children: /* @__PURE__ */ r(
|
|
24
|
-
|
|
25
|
+
d,
|
|
25
26
|
{
|
|
26
27
|
value: e,
|
|
27
|
-
onValueChange: (
|
|
28
|
+
onValueChange: (u) => a?.(u ?? n),
|
|
28
29
|
size: "medium",
|
|
29
30
|
variant: "expandable",
|
|
30
31
|
disabled: o,
|
|
31
32
|
disabledIncrement: t,
|
|
32
33
|
disabledDecrement: c,
|
|
33
|
-
id:
|
|
34
|
-
name:
|
|
34
|
+
id: s,
|
|
35
|
+
name: m,
|
|
35
36
|
min: n,
|
|
36
|
-
max:
|
|
37
|
-
step:
|
|
37
|
+
max: f,
|
|
38
|
+
step: i
|
|
38
39
|
}
|
|
39
40
|
)
|
|
40
41
|
},
|
|
@@ -42,19 +43,19 @@ function h({
|
|
|
42
43
|
) : /* @__PURE__ */ r(
|
|
43
44
|
"span",
|
|
44
45
|
{
|
|
45
|
-
className:
|
|
46
|
+
className: l,
|
|
46
47
|
children: /* @__PURE__ */ r(
|
|
47
|
-
|
|
48
|
+
x,
|
|
48
49
|
{
|
|
49
50
|
severity: "secondary",
|
|
50
51
|
size: "medium",
|
|
51
52
|
iconOnly: !0,
|
|
52
|
-
icon: /* @__PURE__ */ r(
|
|
53
|
+
icon: /* @__PURE__ */ r(p, { stroke: 1.5 }),
|
|
53
54
|
disabled: o || t,
|
|
54
55
|
"aria-label": "Increment",
|
|
55
|
-
id:
|
|
56
|
-
name:
|
|
57
|
-
onClick: () => a?.(e +
|
|
56
|
+
id: s,
|
|
57
|
+
name: m,
|
|
58
|
+
onClick: () => a?.(e + i)
|
|
58
59
|
}
|
|
59
60
|
)
|
|
60
61
|
},
|
|
@@ -62,5 +63,5 @@ function h({
|
|
|
62
63
|
);
|
|
63
64
|
}
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
k as E
|
|
66
67
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as v, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useContext as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const k = [["path", { d: "M6 15l6 -6l6 6", key: "svg-0" }]], N = z("outline", "chevron-up", "ChevronUp", k), F = ["medium", "large"], I = `
|
|
3
|
+
import { useContext as x } from "react";
|
|
4
|
+
import { IconChevronUp as h, IconChevronDown as z } from "@tabler/icons-react";
|
|
5
|
+
import { o as C } from "./index-ByQ37VXf.js";
|
|
6
|
+
import { a as y } from "./FilterChipGroup-BzE-EQsA.js";
|
|
7
|
+
const k = ["medium", "large"], F = `
|
|
8
8
|
mare:group mare:relative mare:inline-flex mare:items-center mare:gap-1.5
|
|
9
9
|
mare:rounded-full mare:border mare:cursor-pointer mare:select-none
|
|
10
10
|
mare:tpc-typography-body-s mare:transition-colors mare:duration-150
|
|
@@ -22,47 +22,47 @@ const k = [["path", { d: "M6 15l6 -6l6 6", key: "svg-0" }]], N = z("outline", "c
|
|
|
22
22
|
|
|
23
23
|
mare:p-disabled:cursor-not-allowed mare:p-disabled:text-disabled mare:p-disabled:border-disabled-default
|
|
24
24
|
mare:p-disabled:bg-transparent mare:p-disabled:hover:bg-transparent
|
|
25
|
-
`,
|
|
25
|
+
`, N = "mare:truncate mare:px-0.5", j = "mare:flex mare:items-center mare:shrink-0 mare:[&>svg]:size-4 mare:cursor-pointer";
|
|
26
26
|
function $({
|
|
27
|
-
value:
|
|
27
|
+
value: n,
|
|
28
28
|
size: c = "medium",
|
|
29
29
|
disabled: t = !1,
|
|
30
30
|
dropdown: e = !1,
|
|
31
31
|
selected: u = !1,
|
|
32
|
-
onSelectedChange:
|
|
32
|
+
onSelectedChange: f,
|
|
33
33
|
dropdownOpen: r = !1,
|
|
34
|
-
onDropdownOpenChange:
|
|
34
|
+
onDropdownOpenChange: p,
|
|
35
35
|
onToggleDropdown: b,
|
|
36
36
|
children: s
|
|
37
37
|
}) {
|
|
38
|
-
const g =
|
|
38
|
+
const g = C(c, k, "medium"), i = x(y), m = n ?? (typeof s == "string" ? s : ""), o = !!i && !e, l = e ? !1 : o ? i.isSelected(m) : u;
|
|
39
39
|
return /* @__PURE__ */ v(
|
|
40
40
|
"button",
|
|
41
41
|
{
|
|
42
42
|
type: "button",
|
|
43
|
-
className:
|
|
43
|
+
className: F,
|
|
44
44
|
"data-size": g,
|
|
45
|
-
"data-selected":
|
|
45
|
+
"data-selected": l ? "true" : void 0,
|
|
46
46
|
"data-disabled": t ? "true" : void 0,
|
|
47
47
|
disabled: t,
|
|
48
|
-
"aria-pressed": e ? void 0 :
|
|
48
|
+
"aria-pressed": e ? void 0 : l,
|
|
49
49
|
"aria-expanded": e ? r : void 0,
|
|
50
|
-
onClick: (
|
|
50
|
+
onClick: (d) => {
|
|
51
51
|
if (!t) {
|
|
52
52
|
if (e) {
|
|
53
|
-
|
|
53
|
+
p?.(!r), b?.(d, d.currentTarget);
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
if (
|
|
57
|
-
|
|
56
|
+
if (o) {
|
|
57
|
+
i.toggle(m);
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
f?.(!l);
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
children: [
|
|
64
|
-
/* @__PURE__ */ a("span", { className:
|
|
65
|
-
e && /* @__PURE__ */ a("span", { className:
|
|
64
|
+
/* @__PURE__ */ a("span", { className: N, children: s }),
|
|
65
|
+
e && /* @__PURE__ */ a("span", { className: j, children: r ? /* @__PURE__ */ a(h, { size: "1em" }) : /* @__PURE__ */ a(z, { size: "1em" }) })
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { createListCollection as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { I as P } from "./IconSearch-CgM6jEUh.js";
|
|
3
|
+
import { useState as z, useMemo as g } from "react";
|
|
4
|
+
import { createListCollection as D, SelectRoot as I, SelectControl as _, SelectTrigger as j, SelectPositioner as O, SelectContent as $, SelectItem as q, SelectItemText as E } from "@ark-ui/react/select";
|
|
5
|
+
import { IconChevronDown as F, IconSearch as M } from "@tabler/icons-react";
|
|
6
|
+
import { C as x } from "./Checkbox-DgZAQsbr.js";
|
|
7
|
+
import { o as P } from "./index-ByQ37VXf.js";
|
|
8
8
|
const T = ["medium", "large"], B = {
|
|
9
9
|
medium: "mare:h-10",
|
|
10
10
|
large: "mare:h-12"
|
|
@@ -46,10 +46,13 @@ const T = ["medium", "large"], B = {
|
|
|
46
46
|
const a = r.filter((o) => !o.disabled).map((o) => o.value), l = m.filter((o) => !a.includes(o));
|
|
47
47
|
return y(r, m) ? l : [...l, ...a];
|
|
48
48
|
}, Z = (r, m) => r.filter((a) => m.includes(a.value)).map((a) => a.label).join(", ");
|
|
49
|
-
function
|
|
49
|
+
function le({
|
|
50
50
|
value: r = [],
|
|
51
51
|
onValueChange: m,
|
|
52
|
-
|
|
52
|
+
/* Default a [] aunque el tipo diga que es requerido: `items={data}`
|
|
53
|
+
* con data de un fetch sin resolver llega `undefined` en el primer
|
|
54
|
+
* render y el .map() de abajo tiraba pantalla blanca. */
|
|
55
|
+
options: a = [],
|
|
53
56
|
placeholder: l = "Select…",
|
|
54
57
|
size: o = "medium",
|
|
55
58
|
disabled: k = !1,
|
|
@@ -60,14 +63,14 @@ function oe({
|
|
|
60
63
|
showToggleAll: c = !1,
|
|
61
64
|
renderOption: h
|
|
62
65
|
}) {
|
|
63
|
-
const w =
|
|
66
|
+
const w = P(o, T, "medium"), [u, b] = z(""), n = g(() => {
|
|
64
67
|
if (!s) return a;
|
|
65
68
|
const e = u.trim().toLowerCase();
|
|
66
69
|
return e ? a.filter(
|
|
67
70
|
(p) => p.label.toLowerCase().includes(e)
|
|
68
71
|
) : a;
|
|
69
72
|
}, [s, u, a]), S = g(
|
|
70
|
-
() =>
|
|
73
|
+
() => D({
|
|
71
74
|
items: n,
|
|
72
75
|
itemToValue: (e) => e.value,
|
|
73
76
|
itemToString: (e) => e.label,
|
|
@@ -76,7 +79,7 @@ function oe({
|
|
|
76
79
|
[n]
|
|
77
80
|
), C = Z(a, r), N = y(n, r);
|
|
78
81
|
return /* @__PURE__ */ i(
|
|
79
|
-
|
|
82
|
+
I,
|
|
80
83
|
{
|
|
81
84
|
multiple: !0,
|
|
82
85
|
closeOnSelect: !1,
|
|
@@ -91,7 +94,7 @@ function oe({
|
|
|
91
94
|
children: [
|
|
92
95
|
/* @__PURE__ */ t(_, { children: /* @__PURE__ */ i(j, { className: L(w), children: [
|
|
93
96
|
/* @__PURE__ */ t("span", { className: Q, children: C || l }),
|
|
94
|
-
/* @__PURE__ */ t("span", { className: R, children: /* @__PURE__ */ t(
|
|
97
|
+
/* @__PURE__ */ t("span", { className: R, children: /* @__PURE__ */ t(F, { size: "1em" }) })
|
|
95
98
|
] }) }),
|
|
96
99
|
/* @__PURE__ */ t(O, { children: /* @__PURE__ */ i($, { className: V, children: [
|
|
97
100
|
s && /* @__PURE__ */ i("div", { className: G, children: [
|
|
@@ -100,14 +103,16 @@ function oe({
|
|
|
100
103
|
{
|
|
101
104
|
className: H,
|
|
102
105
|
value: u,
|
|
103
|
-
onChange: (e) =>
|
|
106
|
+
onChange: (e) => {
|
|
107
|
+
b(e.target.value);
|
|
108
|
+
},
|
|
104
109
|
onKeyDown: (e) => {
|
|
105
110
|
e.key === "Enter" && e.preventDefault(), e.key !== "Escape" && e.stopPropagation();
|
|
106
111
|
},
|
|
107
112
|
placeholder: "Buscar…"
|
|
108
113
|
}
|
|
109
114
|
),
|
|
110
|
-
/* @__PURE__ */ t("span", { className: J, children: /* @__PURE__ */ t(
|
|
115
|
+
/* @__PURE__ */ t("span", { className: J, children: /* @__PURE__ */ t(M, { size: "1em" }) })
|
|
111
116
|
] }),
|
|
112
117
|
(c || d) && /* @__PURE__ */ i(
|
|
113
118
|
"div",
|
|
@@ -159,5 +164,5 @@ function oe({
|
|
|
159
164
|
);
|
|
160
165
|
}
|
|
161
166
|
export {
|
|
162
|
-
|
|
167
|
+
le as F
|
|
163
168
|
};
|
package/dist/shared/{FilterChipDropdownSingle-CLmWzX9q.js → FilterChipDropdownSingle-BUrzUAmy.js}
RENAMED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
3
|
import { useState as y, useMemo as u } from "react";
|
|
3
|
-
import { createListCollection as S, SelectRoot as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { I as F } from "./IconChevronDown-ev2ML7Ex.js";
|
|
7
|
-
import { I as P } from "./IconSearch-CgM6jEUh.js";
|
|
8
|
-
import { I as B } from "./IconCheck-DzZA6b2U.js";
|
|
4
|
+
import { createListCollection as S, SelectRoot as N, SelectControl as C, SelectTrigger as I, SelectValueText as z, SelectClearTrigger as T, SelectIndicator as D, SelectPositioner as _, SelectContent as $, SelectItem as j, SelectItemText as L, SelectItemIndicator as V } from "@ark-ui/react/select";
|
|
5
|
+
import { IconX as q, IconChevronDown as E, IconSearch as F, IconCheck as P } from "@tabler/icons-react";
|
|
6
|
+
import { o as B } from "./index-ByQ37VXf.js";
|
|
9
7
|
const K = ["medium", "large"], M = {
|
|
10
8
|
medium: "mare:h-10",
|
|
11
9
|
large: "mare:h-12"
|
|
@@ -42,10 +40,13 @@ const K = ["medium", "large"], M = {
|
|
|
42
40
|
mare:ark-selected:bg-accent-weak mare:ark-selected:text-accent
|
|
43
41
|
mare:ark-disabled:text-disabled mare:ark-disabled:cursor-not-allowed
|
|
44
42
|
`, ee = "mare:flex mare:items-center mare:text-accent", ae = "mare:py-2 mare:px-3 mare:tpc-typography-body-s mare:text-weak";
|
|
45
|
-
function
|
|
43
|
+
function ie({
|
|
46
44
|
value: t = null,
|
|
47
45
|
onValueChange: o,
|
|
48
|
-
|
|
46
|
+
/* Default a [] aunque el tipo diga que es requerido: `items={data}`
|
|
47
|
+
* con data de un fetch sin resolver llega `undefined` en el primer
|
|
48
|
+
* render y el .map() de abajo tiraba pantalla blanca. */
|
|
49
|
+
options: m = [],
|
|
49
50
|
placeholder: f = "Select…",
|
|
50
51
|
size: p = "medium",
|
|
51
52
|
disabled: h = !1,
|
|
@@ -56,7 +57,7 @@ function ce({
|
|
|
56
57
|
checkIcon: x,
|
|
57
58
|
clearIcon: g
|
|
58
59
|
}) {
|
|
59
|
-
const w =
|
|
60
|
+
const w = B(p, K, "medium"), [n, d] = y(""), l = u(() => {
|
|
60
61
|
if (!i) return m;
|
|
61
62
|
const e = n.trim().toLowerCase();
|
|
62
63
|
return e ? m.filter((k) => k.label.toLowerCase().includes(e)) : m;
|
|
@@ -70,7 +71,7 @@ function ce({
|
|
|
70
71
|
[l]
|
|
71
72
|
);
|
|
72
73
|
return /* @__PURE__ */ r(
|
|
73
|
-
|
|
74
|
+
N,
|
|
74
75
|
{
|
|
75
76
|
collection: v,
|
|
76
77
|
value: t == null ? [] : [t],
|
|
@@ -81,17 +82,23 @@ function ce({
|
|
|
81
82
|
e.open || d("");
|
|
82
83
|
},
|
|
83
84
|
children: [
|
|
84
|
-
/* @__PURE__ */ r(
|
|
85
|
-
/* @__PURE__ */ a(
|
|
86
|
-
|
|
85
|
+
/* @__PURE__ */ r(C, { className: R(), children: [
|
|
86
|
+
/* @__PURE__ */ a(
|
|
87
|
+
I,
|
|
87
88
|
{
|
|
88
|
-
className:
|
|
89
|
-
|
|
89
|
+
className: X(w, s),
|
|
90
|
+
children: /* @__PURE__ */ a(
|
|
91
|
+
z,
|
|
92
|
+
{
|
|
93
|
+
className: A,
|
|
94
|
+
placeholder: f
|
|
95
|
+
}
|
|
96
|
+
)
|
|
90
97
|
}
|
|
91
|
-
)
|
|
98
|
+
),
|
|
92
99
|
/* @__PURE__ */ r("div", { className: G, children: [
|
|
93
|
-
s && /* @__PURE__ */ a(T, { className: H, children: g ?? /* @__PURE__ */ a(
|
|
94
|
-
/* @__PURE__ */ a(D, { className: J, children: /* @__PURE__ */ a(
|
|
100
|
+
s && /* @__PURE__ */ a(T, { className: H, children: g ?? /* @__PURE__ */ a(q, { size: "1em" }) }),
|
|
101
|
+
/* @__PURE__ */ a(D, { className: J, children: /* @__PURE__ */ a(E, { size: "1em" }) })
|
|
95
102
|
] })
|
|
96
103
|
] }),
|
|
97
104
|
/* @__PURE__ */ a(_, { children: /* @__PURE__ */ r($, { className: O, children: [
|
|
@@ -101,14 +108,16 @@ function ce({
|
|
|
101
108
|
{
|
|
102
109
|
className: W,
|
|
103
110
|
value: n,
|
|
104
|
-
onChange: (e) =>
|
|
111
|
+
onChange: (e) => {
|
|
112
|
+
d(e.target.value);
|
|
113
|
+
},
|
|
105
114
|
onKeyDown: (e) => {
|
|
106
115
|
e.key === "Enter" && e.preventDefault(), e.key !== "Escape" && e.stopPropagation();
|
|
107
116
|
},
|
|
108
117
|
placeholder: "Buscar…"
|
|
109
118
|
}
|
|
110
119
|
),
|
|
111
|
-
/* @__PURE__ */ a("span", { className: Y, children: /* @__PURE__ */ a(
|
|
120
|
+
/* @__PURE__ */ a("span", { className: Y, children: /* @__PURE__ */ a(F, { size: "1em" }) })
|
|
112
121
|
] }),
|
|
113
122
|
l.length === 0 && /* @__PURE__ */ a("div", { className: ae, children: "Sin resultados" }),
|
|
114
123
|
l.map((e) => /* @__PURE__ */ r(
|
|
@@ -122,7 +131,7 @@ function ce({
|
|
|
122
131
|
V,
|
|
123
132
|
{
|
|
124
133
|
className: ee,
|
|
125
|
-
children: x ?? /* @__PURE__ */ a(
|
|
134
|
+
children: x ?? /* @__PURE__ */ a(P, { size: "1em" })
|
|
126
135
|
}
|
|
127
136
|
)
|
|
128
137
|
]
|
|
@@ -135,5 +144,5 @@ function ce({
|
|
|
135
144
|
);
|
|
136
145
|
}
|
|
137
146
|
export {
|
|
138
|
-
|
|
147
|
+
ie as F
|
|
139
148
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { B as e } from "./Button-BqFuDnSs.js";
|
|
3
|
+
import { o as a } from "./index-ByQ37VXf.js";
|
|
4
|
+
import { forwardRef as m } from "react";
|
|
5
|
+
const s = [
|
|
6
|
+
"primary",
|
|
7
|
+
"secondary"
|
|
8
|
+
], d = m(function({ severity: r = "primary", ...o }, t) {
|
|
9
|
+
const i = a(
|
|
10
|
+
r,
|
|
11
|
+
s,
|
|
12
|
+
"primary"
|
|
13
|
+
);
|
|
14
|
+
return /* @__PURE__ */ n(
|
|
15
|
+
e,
|
|
16
|
+
{
|
|
17
|
+
ref: t,
|
|
18
|
+
...o,
|
|
19
|
+
severity: i,
|
|
20
|
+
raised: !0,
|
|
21
|
+
rounded: !0
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
d as F
|
|
27
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as i, jsx as r, Fragment as m } from "react/jsx-runtime";
|
|
2
3
|
import { useFieldContext as s, FieldRoot as c, FieldLabel as d, FieldErrorText as u, FieldHelperText as h } from "@ark-ui/react/field";
|
|
3
4
|
import { x as f, g, F as x, p as l, _ as y } from "./field-layout-o6bDLvVU.js";
|