@tpc-mare/mare-ui-components-react 0.1.3 → 0.1.6
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/accordion/Accordion.d.ts +2 -0
- package/dist/accordion/Accordion.types.d.ts +20 -0
- package/dist/accordion/index.d.ts +2 -0
- package/dist/accordion/index.js +4 -0
- package/dist/badge/Badge.d.ts +2 -0
- package/dist/badge/Badge.types.d.ts +11 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/badge/index.js +4 -0
- package/dist/checkbox/index.js +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/date-picker/DatePicker.d.ts +3 -0
- package/dist/date-picker/DatePicker.types.d.ts +52 -0
- package/dist/date-picker/index.d.ts +2 -0
- package/dist/date-picker/index.js +4 -0
- package/dist/dialog/index.js +1 -1
- package/dist/drawer/index.js +1 -1
- package/dist/index/index.d.ts +16 -0
- package/dist/index/index.js +57 -40
- package/dist/paginator/Paginator.d.ts +2 -0
- package/dist/paginator/Paginator.types.d.ts +21 -0
- package/dist/paginator/index.d.ts +2 -0
- package/dist/paginator/index.js +4 -0
- package/dist/panel-menu/PanelMenu.d.ts +2 -0
- package/dist/panel-menu/PanelMenu.types.d.ts +12 -0
- package/dist/panel-menu/index.d.ts +2 -0
- package/dist/panel-menu/index.js +4 -0
- package/dist/search-field/index.js +1 -1
- package/dist/select-field/index.js +1 -1
- package/dist/shared/Accordion-E6aTw9ir.js +63 -0
- package/dist/shared/Badge-WC6my4Aw.js +35 -0
- package/dist/shared/{Checkbox-DsM70wQl.js → Checkbox-fis7v2xS.js} +12 -12
- package/dist/shared/{Combobox-DeUG_muZ.js → Combobox-DK6nHqAL.js} +1 -1
- package/dist/shared/DatePicker-CF9y6eAm.js +856 -0
- package/dist/shared/{DialogFooter-DLWy6Mln.js → DialogFooter-BwEB19v9.js} +1 -1
- package/dist/shared/{DrawerFooter-DvUgumx0.js → DrawerFooter-C0SLP8KU.js} +1 -1
- package/dist/shared/Paginator-CcN6wND7.js +164 -0
- package/dist/shared/PanelMenu-Ch4NsZD_.js +123 -0
- package/dist/shared/{SearchField-CgDz_s1O.js → SearchField-DuA4ZkBL.js} +1 -1
- package/dist/shared/{SelectField-BSTmWjYy.js → SelectField-DNlX8uuG.js} +1 -1
- package/dist/shared/Snackbar-C29nLHO9.js +100 -0
- package/dist/shared/Stepper-BYRV6yan.js +110 -0
- package/dist/shared/Tag-BtbmgIwL.js +36 -0
- package/dist/shared/icons-Dfn6EUcz.js +46 -0
- package/dist/shared/icons.d.ts +6 -0
- package/dist/shared/useMediaQuery.d.ts +5 -0
- package/dist/snackbar/Snackbar.d.ts +3 -0
- package/dist/snackbar/Snackbar.types.d.ts +42 -0
- package/dist/snackbar/index.d.ts +2 -0
- package/dist/snackbar/index.js +5 -0
- package/dist/stepper/Stepper.d.ts +2 -0
- package/dist/stepper/Stepper.types.d.ts +18 -0
- package/dist/stepper/index.d.ts +2 -0
- package/dist/stepper/index.js +4 -0
- package/dist/styles.css +1 -1
- package/dist/tag/Tag.d.ts +2 -0
- package/dist/tag/Tag.types.d.ts +11 -0
- package/dist/tag/index.d.ts +2 -0
- package/dist/tag/index.js +4 -0
- package/dist/utilities-standalone.css +1 -0
- package/package.json +16 -18
- package/dist/shared/icons-DeVfnVLm.js +0 -37
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AccordionItemData } from '@tpc-development/mare-ui-components-core/accordion';
|
|
3
|
+
export type { AccordionItemData } from '@tpc-development/mare-ui-components-core/accordion';
|
|
4
|
+
export interface AccordionItemProperties extends AccordionItemData {
|
|
5
|
+
subtitle?: ReactNode;
|
|
6
|
+
content: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface AccordionProperties {
|
|
9
|
+
items: AccordionItemProperties[];
|
|
10
|
+
/** Controlled expanded item values. Omit to let Ark manage it. */
|
|
11
|
+
value?: string[];
|
|
12
|
+
defaultValue?: string[];
|
|
13
|
+
onValueChange?: (value: string[]) => void;
|
|
14
|
+
/** Whether multiple items can be expanded at once.
|
|
15
|
+
* @default false */
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
/** Whether an expanded item can be collapsed back by clicking it again.
|
|
18
|
+
* @default true */
|
|
19
|
+
collapsible?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BadgeSeverity } from '@tpc-development/mare-ui-components-core/badge';
|
|
3
|
+
export type { BadgeSeverity } from '@tpc-development/mare-ui-components-core/badge';
|
|
4
|
+
export interface BadgeProperties {
|
|
5
|
+
/** @default 'accent' */
|
|
6
|
+
severity?: BadgeSeverity;
|
|
7
|
+
/** Shown next to (or instead of) `children`. */
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
/** The count/label. A bare dot renders when neither this nor `icon` is set. */
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
package/dist/checkbox/index.js
CHANGED
package/dist/combobox/index.js
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DatePickerProperties } from './DatePicker.types';
|
|
3
|
+
export declare function DatePicker({ value, onValueChange, selectionMode, size, label, placeholder, disabled, invalid, minDate, maxDate, navigation, doubleMonth, inline, clearable, prices, currency, locale, showTime, timeOnly, showSeconds, footer, leadingIcon, portalContainer, onOpenChange, onVisibleMonthsChange, }: DatePickerProperties): ReactNode;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { DatePickerSelectionMode, DatePickerValue, DatePriceData, InputTextSize } from '@tpc-development/mare-ui-components-core/date-picker';
|
|
3
|
+
export type { DatePickerSelectionMode, DatePickerValue, DatePriceData, InputTextSize, } from '@tpc-development/mare-ui-components-core/date-picker';
|
|
4
|
+
export interface DatePickerProperties {
|
|
5
|
+
value?: DatePickerValue;
|
|
6
|
+
onValueChange?: (value: DatePickerValue) => void;
|
|
7
|
+
selectionMode?: DatePickerSelectionMode;
|
|
8
|
+
size?: InputTextSize;
|
|
9
|
+
label?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
invalid?: boolean;
|
|
13
|
+
/** Inclusive bounds. Also clamps the time-of-day when `showTime`/`timeOnly`. */
|
|
14
|
+
minDate?: Date;
|
|
15
|
+
maxDate?: Date;
|
|
16
|
+
/** Show prev/next + the clickable month/year view switcher. @default true */
|
|
17
|
+
navigation?: boolean;
|
|
18
|
+
/** Two months side-by-side at/above the `sm` breakpoint. @default false */
|
|
19
|
+
doubleMonth?: boolean;
|
|
20
|
+
/** Render the calendar in normal flow — no field, no floating panel. @default false */
|
|
21
|
+
inline?: boolean;
|
|
22
|
+
/** Show the '×' clear trigger once a value is selected. @default true */
|
|
23
|
+
clearable?: boolean;
|
|
24
|
+
/** Price badge under each day — the booking-calendar use case. */
|
|
25
|
+
prices?: DatePriceData[];
|
|
26
|
+
currency?: string;
|
|
27
|
+
/** BCP 47 tag, e.g. "es-MX". @default "en-US" */
|
|
28
|
+
locale?: string;
|
|
29
|
+
/** Show a native time input under the calendar. @default false */
|
|
30
|
+
showTime?: boolean;
|
|
31
|
+
/** Time-only — the calendar view is hidden, only the time input shows. @default false */
|
|
32
|
+
timeOnly?: boolean;
|
|
33
|
+
showSeconds?: boolean;
|
|
34
|
+
/** Render prop so consumers compose their own Clear/Apply buttons (e.g. Mare's
|
|
35
|
+
* own `<Button>`) instead of Mare hardcoding a footer. */
|
|
36
|
+
footer?: (helpers: {
|
|
37
|
+
close: () => void;
|
|
38
|
+
clear: () => void;
|
|
39
|
+
}) => ReactNode;
|
|
40
|
+
leadingIcon?: ReactNode;
|
|
41
|
+
/** Passed straight through to Ark's `<Portal container>` — see the
|
|
42
|
+
* mare-migrate-component skill's Portal section for why this must be
|
|
43
|
+
* exposed (a single `data-theme` on the document root is the default,
|
|
44
|
+
* correct, common case — this is only for multi-theme layouts). */
|
|
45
|
+
portalContainer?: RefObject<HTMLElement | null>;
|
|
46
|
+
onOpenChange?: (open: boolean) => void;
|
|
47
|
+
/** Fires whenever the visible month(s) change (navigation or open). The Vue
|
|
48
|
+
* DS also had a separate `month-change` event — every real consumer just
|
|
49
|
+
* `console.log`'d both with identical payloads, so this adapter exposes
|
|
50
|
+
* the one Ark already gives us (`onVisibleRangeChange`) instead of two. */
|
|
51
|
+
onVisibleMonthsChange?: (months: Date[]) => void;
|
|
52
|
+
}
|
package/dist/dialog/index.js
CHANGED
package/dist/drawer/index.js
CHANGED
package/dist/index/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export { Accordion } from '../accordion';
|
|
2
|
+
export type { AccordionProperties, AccordionItemProperties, AccordionItemData, } from '../accordion';
|
|
1
3
|
export { Avatar } from '../avatar';
|
|
2
4
|
export type { AvatarProperties, AvatarSize } from '../avatar';
|
|
5
|
+
export { Badge } from '../badge';
|
|
6
|
+
export type { BadgeProperties, BadgeSeverity } from '../badge';
|
|
7
|
+
export { Tag } from '../tag';
|
|
8
|
+
export type { TagProperties, TagSeverity, TagSize } from '../tag';
|
|
3
9
|
export { Button } from '../button';
|
|
4
10
|
export type { ButtonProperties, ButtonSeverity, ButtonSize, ButtonVariant, IconPosition, } from '../button';
|
|
5
11
|
export { SelectField } from '../select-field';
|
|
@@ -30,3 +36,13 @@ export { Drawer, DrawerHeader, DrawerFooter } from '../drawer';
|
|
|
30
36
|
export type { DrawerProperties, DrawerPosition, DrawerHeaderProperties, DrawerFooterProperties, } from '../drawer';
|
|
31
37
|
export { Menu } from '../menu';
|
|
32
38
|
export type { MenuProperties, MenuItemData, MenuSeparatorEntry, MenuGroupEntry, MenuEntry, } from '../menu';
|
|
39
|
+
export { PanelMenu } from '../panel-menu';
|
|
40
|
+
export type { PanelMenuProperties, PanelMenuItemData, } from '../panel-menu';
|
|
41
|
+
export { Snackbar, createSnackbar } from '../snackbar';
|
|
42
|
+
export type { SnackbarProperties, SnackbarController, SnackbarConfig, SnackbarShowOptions, SnackbarSeverity, SnackbarPlacement, } from '../snackbar';
|
|
43
|
+
export { Stepper } from '../stepper';
|
|
44
|
+
export type { StepperProperties, StepItemData, StepperOrientation, StepperIndicatorVariant, } from '../stepper';
|
|
45
|
+
export { DatePicker } from '../date-picker';
|
|
46
|
+
export type { DatePickerProperties, DatePickerSelectionMode, DatePickerValue, DatePriceData, } from '../date-picker';
|
|
47
|
+
export { Paginator } from '../paginator';
|
|
48
|
+
export type { PaginatorProperties } from '../paginator';
|
package/dist/index/index.js
CHANGED
|
@@ -1,44 +1,61 @@
|
|
|
1
|
-
import { A as a } from "../shared/
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { A as a } from "../shared/Accordion-E6aTw9ir.js";
|
|
2
|
+
import { A as t } from "../shared/Avatar-D3QlO3Tz.js";
|
|
3
|
+
import { B as p } from "../shared/Badge-WC6my4Aw.js";
|
|
4
|
+
import { T as m } from "../shared/Tag-BtbmgIwL.js";
|
|
5
|
+
import { B as n } from "../shared/Button-AfMqNCme.js";
|
|
6
|
+
import { S as i } from "../shared/SelectField-DNlX8uuG.js";
|
|
7
|
+
import { C as S } from "../shared/Combobox-DK6nHqAL.js";
|
|
8
|
+
import { T as D } from "../shared/Tabs-BqIorZYD.js";
|
|
6
9
|
import { P as F } from "../shared/ProgressSpinner-B-lrS-tu.js";
|
|
7
|
-
import { I as
|
|
8
|
-
import { C as
|
|
9
|
-
import { T as
|
|
10
|
-
import { S as
|
|
11
|
-
import { I as
|
|
12
|
-
import { C as
|
|
13
|
-
import { R as
|
|
14
|
-
import { S as
|
|
15
|
-
import { D as
|
|
16
|
-
import { D as
|
|
17
|
-
import { M as
|
|
10
|
+
import { I as T, a as g } from "../shared/IconField-Dh6j6SL1.js";
|
|
11
|
+
import { C as P, F as I, a as h, H as k } from "../shared/HelperText-CVWWvLCI.js";
|
|
12
|
+
import { T as A } from "../shared/Textarea-iJhYTZos.js";
|
|
13
|
+
import { S as H } from "../shared/SearchField-DuA4ZkBL.js";
|
|
14
|
+
import { I as R } from "../shared/InputNumber-D48wsE-o.js";
|
|
15
|
+
import { C as G } from "../shared/Checkbox-fis7v2xS.js";
|
|
16
|
+
import { R as N } from "../shared/RadioGroup-lw27DCoV.js";
|
|
17
|
+
import { S as q } from "../shared/Switch-D6E2OmgE.js";
|
|
18
|
+
import { D as z, a as E, b as J } from "../shared/DialogFooter-BwEB19v9.js";
|
|
19
|
+
import { D as O, a as Q, b as U } from "../shared/DrawerFooter-C0SLP8KU.js";
|
|
20
|
+
import { M as W } from "../shared/Menu-Cv9dU1iA.js";
|
|
21
|
+
import { P as Y } from "../shared/PanelMenu-Ch4NsZD_.js";
|
|
22
|
+
import { S as _, c as $ } from "../shared/Snackbar-C29nLHO9.js";
|
|
23
|
+
import { S as or } from "../shared/Stepper-BYRV6yan.js";
|
|
24
|
+
import { D as er } from "../shared/DatePicker-CF9y6eAm.js";
|
|
25
|
+
import { P as sr } from "../shared/Paginator-CcN6wND7.js";
|
|
18
26
|
export {
|
|
19
|
-
a as
|
|
20
|
-
t as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
G as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
a as Accordion,
|
|
28
|
+
t as Avatar,
|
|
29
|
+
p as Badge,
|
|
30
|
+
n as Button,
|
|
31
|
+
P as CharacterCount,
|
|
32
|
+
G as Checkbox,
|
|
33
|
+
S as Combobox,
|
|
34
|
+
er as DatePicker,
|
|
35
|
+
z as Dialog,
|
|
36
|
+
E as DialogFooter,
|
|
37
|
+
J as DialogHeader,
|
|
38
|
+
O as Drawer,
|
|
39
|
+
Q as DrawerFooter,
|
|
40
|
+
U as DrawerHeader,
|
|
41
|
+
I as FloatLabel,
|
|
42
|
+
h as FormField,
|
|
43
|
+
k as HelperText,
|
|
44
|
+
T as IconField,
|
|
45
|
+
R as InputNumber,
|
|
46
|
+
g as InputText,
|
|
47
|
+
W as Menu,
|
|
48
|
+
sr as Paginator,
|
|
49
|
+
Y as PanelMenu,
|
|
37
50
|
F as ProgressSpinner,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
51
|
+
N as RadioGroup,
|
|
52
|
+
H as SearchField,
|
|
53
|
+
i as SelectField,
|
|
54
|
+
_ as Snackbar,
|
|
55
|
+
or as Stepper,
|
|
56
|
+
q as Switch,
|
|
57
|
+
D as Tabs,
|
|
58
|
+
m as Tag,
|
|
59
|
+
A as Textarea,
|
|
60
|
+
$ as createSnackbar
|
|
44
61
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PaginatorProperties } from './Paginator.types';
|
|
2
|
+
export declare function Paginator({ count, page, defaultPage, onPageChange, pageSize, defaultPageSize, onPageSizeChange, pageLinkSize, showFirstLastLinks, rowsPerPageOptions, rowsPerPageOptionsLabel, }: PaginatorProperties): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface PaginatorProperties {
|
|
2
|
+
/** Total number of data items (rows), NOT page count. */
|
|
3
|
+
count: number;
|
|
4
|
+
/** Controlled current page, 1-indexed. Omit to let Ark manage it. */
|
|
5
|
+
page?: number;
|
|
6
|
+
defaultPage?: number;
|
|
7
|
+
onPageChange?: (page: number) => void;
|
|
8
|
+
/** Items per page. */
|
|
9
|
+
pageSize?: number;
|
|
10
|
+
defaultPageSize?: number;
|
|
11
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
12
|
+
/** Numbered buttons shown at once — shrinks to fit a narrow container. */
|
|
13
|
+
pageLinkSize?: number;
|
|
14
|
+
/** Shows the jump-to-first/last-page buttons.
|
|
15
|
+
* @default true */
|
|
16
|
+
showFirstLastLinks?: boolean;
|
|
17
|
+
/** Shows the "rows per page" select when given 1+ options. */
|
|
18
|
+
rowsPerPageOptions?: number[];
|
|
19
|
+
/** @default 'Rows per page' */
|
|
20
|
+
rowsPerPageOptionsLabel?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PanelMenuItemData } from '@tpc-development/mare-ui-components-core/panel-menu';
|
|
3
|
+
export type { PanelMenuItemData } from '@tpc-development/mare-ui-components-core/panel-menu';
|
|
4
|
+
export interface PanelMenuProperties {
|
|
5
|
+
items: PanelMenuItemData[];
|
|
6
|
+
/** Controlled expanded branch values. Omit to let Ark manage it (uncontrolled). */
|
|
7
|
+
expandedValue?: string[];
|
|
8
|
+
defaultExpandedValue?: string[];
|
|
9
|
+
onExpandedChange?: (value: string[]) => void;
|
|
10
|
+
/** Override the default icon + label row entirely. */
|
|
11
|
+
renderItem?: (item: PanelMenuItemData) => ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { Accordion as r } from "@ark-ui/react/accordion";
|
|
3
|
+
import { C as c } from "./icons-Dfn6EUcz.js";
|
|
4
|
+
const d = "mare:w-full", u = (t) => `
|
|
5
|
+
mare:flex mare:flex-col
|
|
6
|
+
${t ? "mare:border-b mare:border-default" : ""}
|
|
7
|
+
`, f = `
|
|
8
|
+
mare:w-full mare:flex mare:items-center mare:justify-between mare:gap-3
|
|
9
|
+
mare:bg-transparent mare:border-none mare:text-left mare:cursor-pointer
|
|
10
|
+
mare:py-4 mare:tpc-typography-label-m mare:text-default
|
|
11
|
+
mare:transition-colors mare:duration-200
|
|
12
|
+
mare:focus-visible:outline mare:focus-visible:outline-1 mare:focus-visible:outline-accent mare:focus-visible:-outline-offset-1
|
|
13
|
+
mare:disabled:cursor-not-allowed mare:disabled:opacity-50 mare:disabled:pointer-events-none
|
|
14
|
+
`, p = "mare:flex mare:flex-col mare:items-start mare:gap-0.5 mare:text-left", b = "mare:tpc-typography-body-s mare:text-weak", h = `
|
|
15
|
+
mare:flex mare:items-center mare:justify-center mare:shrink-0 mare:text-default
|
|
16
|
+
mare:transition-transform mare:ark-open:rotate-180 mare:[&>svg]:size-5
|
|
17
|
+
`, x = `
|
|
18
|
+
mare:overflow-hidden mare:pb-4
|
|
19
|
+
mare:ark-open:[animation:mare-panel-menu-branch-open_250ms_ease-out]
|
|
20
|
+
mare:ark-closed:[animation:mare-panel-menu-branch-close_200ms_ease-in]
|
|
21
|
+
`;
|
|
22
|
+
function w({
|
|
23
|
+
items: t,
|
|
24
|
+
value: n,
|
|
25
|
+
defaultValue: o,
|
|
26
|
+
onValueChange: s,
|
|
27
|
+
multiple: l = !1,
|
|
28
|
+
collapsible: i = !0
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ a(
|
|
31
|
+
r.Root,
|
|
32
|
+
{
|
|
33
|
+
className: d,
|
|
34
|
+
value: n,
|
|
35
|
+
defaultValue: o,
|
|
36
|
+
multiple: l,
|
|
37
|
+
collapsible: i,
|
|
38
|
+
onValueChange: (e) => s?.(e.value),
|
|
39
|
+
children: t.map((e) => /* @__PURE__ */ m(
|
|
40
|
+
r.Item,
|
|
41
|
+
{
|
|
42
|
+
value: e.value,
|
|
43
|
+
disabled: e.disabled,
|
|
44
|
+
className: u(e.divider ?? !0),
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ m(r.ItemTrigger, { className: f, children: [
|
|
47
|
+
/* @__PURE__ */ m("span", { className: p, children: [
|
|
48
|
+
/* @__PURE__ */ a("span", { children: e.title }),
|
|
49
|
+
e.subtitle && /* @__PURE__ */ a("span", { className: b, children: e.subtitle })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ a(r.ItemIndicator, { className: h, children: /* @__PURE__ */ a(c, {}) })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ a(r.ItemContent, { className: x, children: e.content })
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
e.value
|
|
57
|
+
))
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
w as A
|
|
63
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
const s = `
|
|
3
|
+
mare:rounded-full mare:inline-flex mare:justify-center mare:items-center
|
|
4
|
+
mare:text-center mare:py-0 mare:tpc-typography-label-xs
|
|
5
|
+
mare:h-2 mare:min-w-2 mare:has-value:h-4 mare:has-value:min-w-4
|
|
6
|
+
mare:has-icon:px-0 mare:px-1
|
|
7
|
+
mare:data-severity-accent:bg-accent mare:data-severity-accent:text-on-accent
|
|
8
|
+
mare:data-severity-danger:bg-danger mare:data-severity-danger:text-on-danger
|
|
9
|
+
mare:data-severity-warning:bg-warning mare:data-severity-warning:text-on-warning
|
|
10
|
+
mare:data-severity-highlight:bg-highlight mare:data-severity-highlight:text-on-accent
|
|
11
|
+
mare:data-severity-positive:bg-positive mare:data-severity-positive:text-on-positive
|
|
12
|
+
`;
|
|
13
|
+
function c({
|
|
14
|
+
severity: r = "accent",
|
|
15
|
+
icon: e,
|
|
16
|
+
children: a
|
|
17
|
+
}) {
|
|
18
|
+
const t = !!e, n = t || a != null;
|
|
19
|
+
return /* @__PURE__ */ i(
|
|
20
|
+
"span",
|
|
21
|
+
{
|
|
22
|
+
className: s,
|
|
23
|
+
"data-severity": r,
|
|
24
|
+
"data-has-value": n ? "true" : void 0,
|
|
25
|
+
"data-has-icon": t ? "true" : void 0,
|
|
26
|
+
children: [
|
|
27
|
+
e,
|
|
28
|
+
a
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
c as B
|
|
35
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as m, jsx as
|
|
2
|
-
import { Checkbox as
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Checkbox as e } from "@ark-ui/react/checkbox";
|
|
3
|
+
import { a as f, M as x } from "./icons-Dfn6EUcz.js";
|
|
4
4
|
const v = `
|
|
5
5
|
mare:group/checkbox
|
|
6
6
|
mare:relative mare:inline-flex mare:items-center mare:gap-2
|
|
@@ -68,7 +68,7 @@ function M({
|
|
|
68
68
|
id: u
|
|
69
69
|
}) {
|
|
70
70
|
return /* @__PURE__ */ m(
|
|
71
|
-
|
|
71
|
+
e.Root,
|
|
72
72
|
{
|
|
73
73
|
checked: s,
|
|
74
74
|
defaultChecked: l,
|
|
@@ -87,24 +87,24 @@ function M({
|
|
|
87
87
|
"data-size": r,
|
|
88
88
|
children: [
|
|
89
89
|
/* @__PURE__ */ m(
|
|
90
|
-
|
|
90
|
+
e.Control,
|
|
91
91
|
{
|
|
92
92
|
className: y,
|
|
93
93
|
"data-size": r,
|
|
94
94
|
children: [
|
|
95
|
-
/* @__PURE__ */ e
|
|
95
|
+
/* @__PURE__ */ a(e.Indicator, { className: i, children: /* @__PURE__ */ a(
|
|
96
96
|
f,
|
|
97
97
|
{
|
|
98
98
|
className: t,
|
|
99
99
|
"data-size": r
|
|
100
100
|
}
|
|
101
101
|
) }),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
102
|
+
/* @__PURE__ */ a(
|
|
103
|
+
e.Indicator,
|
|
104
104
|
{
|
|
105
105
|
indeterminate: !0,
|
|
106
106
|
className: i,
|
|
107
|
-
children: /* @__PURE__ */
|
|
107
|
+
children: /* @__PURE__ */ a(
|
|
108
108
|
x,
|
|
109
109
|
{
|
|
110
110
|
className: t,
|
|
@@ -116,15 +116,15 @@ function M({
|
|
|
116
116
|
]
|
|
117
117
|
}
|
|
118
118
|
),
|
|
119
|
-
d && /* @__PURE__ */
|
|
120
|
-
|
|
119
|
+
d && /* @__PURE__ */ a(
|
|
120
|
+
e.Label,
|
|
121
121
|
{
|
|
122
122
|
className: w,
|
|
123
123
|
"data-size": r,
|
|
124
124
|
children: d
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
|
-
/* @__PURE__ */ e
|
|
127
|
+
/* @__PURE__ */ a(e.HiddenInput, { className: C })
|
|
128
128
|
]
|
|
129
129
|
}
|
|
130
130
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as T, useMemo as b } from "react";
|
|
3
3
|
import { createListCollection as V, ComboboxRoot as _, ComboboxLabel as j, ComboboxControl as $, ComboboxTrigger as q, ComboboxClearTrigger as D, ComboboxPositioner as E, ComboboxContent as M, ComboboxInput as O, ComboboxEmpty as P, ComboboxItem as Q, ComboboxItemText as R, ComboboxItemIndicator as z } from "@ark-ui/react/combobox";
|
|
4
|
-
import {
|
|
4
|
+
import { b as A, C as B, S as F, a as G } from "./icons-Dfn6EUcz.js";
|
|
5
5
|
const H = {
|
|
6
6
|
small: "mare:h-10",
|
|
7
7
|
medium: "mare:h-12"
|