@tpc-mare/mare-ui-components-react 0.1.11 → 0.1.13
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/index.js +1 -1
- package/dist/banner/index.js +1 -1
- package/dist/breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/dist/breadcrumbs/Breadcrumbs.types.d.ts +11 -0
- package/dist/breadcrumbs/index.d.ts +2 -0
- package/dist/breadcrumbs/index.js +4 -0
- package/dist/checkbox/index.js +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/counter/Counter.d.ts +2 -0
- package/dist/counter/Counter.types.d.ts +23 -0
- package/dist/counter/index.d.ts +2 -0
- package/dist/counter/index.js +4 -0
- package/dist/date-picker/index.js +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/drawer/index.js +1 -1
- package/dist/image-slider/index.js +1 -1
- package/dist/index/index.d.ts +4 -0
- package/dist/index/index.js +67 -63
- package/dist/paginator/index.js +1 -1
- package/dist/panel-menu/index.js +1 -1
- package/dist/password/index.js +1 -1
- package/dist/search-field/index.js +1 -1
- package/dist/select-field/index.js +1 -1
- package/dist/shared/{Accordion-Dhs7EeM6.js → Accordion-BLQ1mWZZ.js} +1 -1
- package/dist/shared/{Banner-B41NQS5P.js → Banner-DXftmx9P.js} +1 -1
- package/dist/shared/Breadcrumbs-Cqr3Jitd.js +77 -0
- package/dist/shared/{Checkbox-B7vM1mxP.js → Checkbox-BXnSN2vK.js} +10 -9
- package/dist/shared/{Combobox-oSS0Rlbv.js → Combobox-SkrEe5He.js} +44 -41
- package/dist/shared/Counter-D4Al7Yme.js +94 -0
- package/dist/shared/{DatePicker-GYH3uorm.js → DatePicker-CwAISvNc.js} +140 -137
- package/dist/shared/{DialogHeader-CZ5OrC8_.js → DialogHeader-RzfQm-pi.js} +14 -14
- package/dist/shared/{DrawerFooter-OFrTFvy2.js → DrawerFooter-BxOEFQ-W.js} +3 -3
- package/dist/shared/IconCheck-DzZA6b2U.js +5 -0
- package/dist/shared/IconChevronDown-ev2ML7Ex.js +5 -0
- package/dist/shared/IconChevronRight-DEIDRsvg.js +7 -0
- package/dist/shared/IconMinus-fS_GL0Et.js +5 -0
- package/dist/shared/IconSearch-CgM6jEUh.js +5 -0
- package/dist/shared/IconX-CpPADKjZ.js +5 -0
- package/dist/shared/{ImageSlider-CdBVmAYC.js → ImageSlider-Bgb1kNQ4.js} +1 -1
- package/dist/shared/{Paginator-BndcA6Ax.js → Paginator-Bp2nghqW.js} +48 -46
- package/dist/shared/{PanelMenu-Bz-fg6px.js → PanelMenu-BpjNM7O_.js} +2 -2
- package/dist/shared/Password-BMKy8dAy.js +95 -0
- package/dist/shared/SearchField-DjJHDaR4.js +64 -0
- package/dist/shared/{SelectField-CGbdf8C2.js → SelectField-CvKaukCG.js} +27 -25
- package/dist/shared/{Stepper-BpKdB3ip.js → Stepper-By8M5bs0.js} +13 -12
- package/dist/shared/{TagChip-BNszVayi.js → TagChip-Bs7srjIL.js} +1 -1
- package/dist/shared/createReactComponent-Cb6Pzf10.js +48 -0
- package/dist/stepper/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tag-chip/index.js +1 -1
- package/package.json +2 -1
- package/dist/shared/Password-cqTK9OlT.js +0 -94
- package/dist/shared/SearchField-CgZV2Am-.js +0 -63
- package/dist/shared/icons-BFOFrum4.js +0 -55
- package/dist/shared/icons.d.ts +0 -15
package/dist/accordion/index.js
CHANGED
package/dist/banner/index.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BreadcrumbItemData } from '@tpc-development/mare-ui-components-core/breadcrumbs';
|
|
3
|
+
export type { BreadcrumbItemData } from '@tpc-development/mare-ui-components-core/breadcrumbs';
|
|
4
|
+
export interface BreadcrumbsProperties {
|
|
5
|
+
items: BreadcrumbItemData[];
|
|
6
|
+
/** Rendered between items. Defaults to `'/'`, matching the Vue DS. */
|
|
7
|
+
separator?: ReactNode;
|
|
8
|
+
/** Custom render for an item's content (icon + label). Defaults to
|
|
9
|
+
* `item.icon` (if any) + `item.label`. */
|
|
10
|
+
renderItem?: (item: BreadcrumbItemData) => ReactNode;
|
|
11
|
+
}
|
package/dist/checkbox/index.js
CHANGED
package/dist/combobox/index.js
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CounterSize, CounterVariant } from '@tpc-development/mare-ui-components-core/counter';
|
|
2
|
+
export type { CounterSize, CounterVariant, } from '@tpc-development/mare-ui-components-core/counter';
|
|
3
|
+
export interface CounterProperties {
|
|
4
|
+
/** Controlled numeric value. `null` when the field is empty. */
|
|
5
|
+
value?: number | null;
|
|
6
|
+
/** Change handler — receives the next number, or `null` when cleared. */
|
|
7
|
+
onValueChange?: (value: number | null) => void;
|
|
8
|
+
size?: CounterSize;
|
|
9
|
+
variant?: CounterVariant;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Disables only the increment ("+") trigger, regardless of `max`. */
|
|
12
|
+
disabledIncrement?: boolean;
|
|
13
|
+
/** Disables only the decrement ("-") trigger, regardless of `min`. */
|
|
14
|
+
disabledDecrement?: boolean;
|
|
15
|
+
id?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
/** Minimum allowed value. */
|
|
18
|
+
min?: number;
|
|
19
|
+
/** Maximum allowed value. */
|
|
20
|
+
max?: number;
|
|
21
|
+
/** Step for the +/- triggers. @default 1 */
|
|
22
|
+
step?: number;
|
|
23
|
+
}
|
package/dist/dialog/index.js
CHANGED
package/dist/drawer/index.js
CHANGED
package/dist/index/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export { Banner } from '../banner';
|
|
|
12
12
|
export type { BannerProperties, BannerSeverity } from '../banner';
|
|
13
13
|
export { Button } from '../button';
|
|
14
14
|
export type { ButtonProperties, ButtonSeverity, ButtonSize, ButtonVariant, IconPosition, } from '../button';
|
|
15
|
+
export { Breadcrumbs } from '../breadcrumbs';
|
|
16
|
+
export type { BreadcrumbsProperties, BreadcrumbItemData, } from '../breadcrumbs';
|
|
15
17
|
export { SelectField } from '../select-field';
|
|
16
18
|
export type { SelectFieldProperties, SelectFieldSize, SelectOptionItem, } from '../select-field';
|
|
17
19
|
export { Combobox } from '../combobox';
|
|
@@ -32,6 +34,8 @@ export { InputNumber } from '../input-number';
|
|
|
32
34
|
export type { InputNumberProperties, InputNumberSize, } from '../input-number';
|
|
33
35
|
export { InputOtp } from '../input-otp';
|
|
34
36
|
export type { InputOtpProperties, InputOtpSize } from '../input-otp';
|
|
37
|
+
export { Counter } from '../counter';
|
|
38
|
+
export type { CounterProperties, CounterSize, CounterVariant, } from '../counter';
|
|
35
39
|
export { Checkbox } from '../checkbox';
|
|
36
40
|
export type { CheckboxProperties, CheckboxSize, CheckedState, } from '../checkbox';
|
|
37
41
|
export { RadioGroup } from '../radio-group';
|
package/dist/index/index.js
CHANGED
|
@@ -1,77 +1,81 @@
|
|
|
1
|
-
import { A as a } from "../shared/Accordion-
|
|
1
|
+
import { A as a } from "../shared/Accordion-BLQ1mWZZ.js";
|
|
2
2
|
import { A as t } from "../shared/Avatar-D3QlO3Tz.js";
|
|
3
3
|
import { B as p } from "../shared/Badge-WC6my4Aw.js";
|
|
4
4
|
import { T as x } from "../shared/Tag-BtbmgIwL.js";
|
|
5
|
-
import { T as n } from "../shared/TagChip-
|
|
6
|
-
import { B as
|
|
7
|
-
import { B as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { T as n } from "../shared/TagChip-Bs7srjIL.js";
|
|
6
|
+
import { B as c } from "../shared/Banner-DXftmx9P.js";
|
|
7
|
+
import { B as d } from "../shared/Button-AfMqNCme.js";
|
|
8
|
+
import { B as S } from "../shared/Breadcrumbs-Cqr3Jitd.js";
|
|
9
|
+
import { S as D } from "../shared/SelectField-CvKaukCG.js";
|
|
10
|
+
import { C as u } from "../shared/Combobox-SkrEe5He.js";
|
|
10
11
|
import { T as F } from "../shared/Tabs-BqIorZYD.js";
|
|
11
12
|
import { P as T } from "../shared/ProgressSpinner-B-lrS-tu.js";
|
|
12
|
-
import { I as
|
|
13
|
-
import { C as
|
|
14
|
-
import { T as
|
|
15
|
-
import { S as
|
|
16
|
-
import { P as
|
|
17
|
-
import { I as
|
|
18
|
-
import { I as
|
|
19
|
-
import { C as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { D as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { S as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { I as Pr } from "../shared/
|
|
13
|
+
import { I as w, a as h } from "../shared/IconField-Dh6j6SL1.js";
|
|
14
|
+
import { C as A, F as H, a as M, H as R } from "../shared/HelperText-CVWWvLCI.js";
|
|
15
|
+
import { T as G } from "../shared/Textarea-iJhYTZos.js";
|
|
16
|
+
import { S as N } from "../shared/SearchField-DjJHDaR4.js";
|
|
17
|
+
import { P as j, a as q } from "../shared/Password-BMKy8dAy.js";
|
|
18
|
+
import { I as z } from "../shared/InputNumber-D48wsE-o.js";
|
|
19
|
+
import { I as J } from "../shared/InputOtp-CUXXVP2E.js";
|
|
20
|
+
import { C as Q } from "../shared/Counter-D4Al7Yme.js";
|
|
21
|
+
import { C as V } from "../shared/Checkbox-BXnSN2vK.js";
|
|
22
|
+
import { R as X } from "../shared/RadioGroup-lw27DCoV.js";
|
|
23
|
+
import { S as Z } from "../shared/Switch-D6E2OmgE.js";
|
|
24
|
+
import { D as $, a as rr } from "../shared/DialogFooter-DyltZzK-.js";
|
|
25
|
+
import { D as ar } from "../shared/DialogHeader-RzfQm-pi.js";
|
|
26
|
+
import { C as tr } from "../shared/ConfirmDialog-Bvk8KZ0M.js";
|
|
27
|
+
import { D as pr, a as mr, b as xr } from "../shared/DrawerFooter-BxOEFQ-W.js";
|
|
28
|
+
import { M as nr } from "../shared/Menu-Cv9dU1iA.js";
|
|
29
|
+
import { P as cr } from "../shared/PanelMenu-BpjNM7O_.js";
|
|
30
|
+
import { S as dr, c as Ir } from "../shared/Snackbar-C29nLHO9.js";
|
|
31
|
+
import { S as Cr } from "../shared/Stepper-By8M5bs0.js";
|
|
32
|
+
import { D as gr } from "../shared/DatePicker-CwAISvNc.js";
|
|
33
|
+
import { P as br } from "../shared/Paginator-Bp2nghqW.js";
|
|
34
|
+
import { I as Pr } from "../shared/ImageItem-BBy5fOl3.js";
|
|
35
|
+
import { I as Br } from "../shared/ImageSlider-Bgb1kNQ4.js";
|
|
34
36
|
export {
|
|
35
37
|
a as Accordion,
|
|
36
38
|
t as Avatar,
|
|
37
39
|
p as Badge,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
H as
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
40
|
+
c as Banner,
|
|
41
|
+
S as Breadcrumbs,
|
|
42
|
+
d as Button,
|
|
43
|
+
A as CharacterCount,
|
|
44
|
+
V as Checkbox,
|
|
45
|
+
u as Combobox,
|
|
46
|
+
tr as ConfirmDialog,
|
|
47
|
+
Q as Counter,
|
|
48
|
+
gr as DatePicker,
|
|
49
|
+
$ as Dialog,
|
|
50
|
+
rr as DialogFooter,
|
|
51
|
+
ar as DialogHeader,
|
|
52
|
+
pr as Drawer,
|
|
53
|
+
mr as DrawerFooter,
|
|
54
|
+
xr as DrawerHeader,
|
|
55
|
+
H as FloatLabel,
|
|
56
|
+
M as FormField,
|
|
57
|
+
R as HelperText,
|
|
58
|
+
w as IconField,
|
|
59
|
+
Pr as ImageItem,
|
|
60
|
+
Br as ImageSlider,
|
|
61
|
+
z as InputNumber,
|
|
62
|
+
J as InputOtp,
|
|
63
|
+
h as InputText,
|
|
64
|
+
nr as Menu,
|
|
65
|
+
br as Paginator,
|
|
66
|
+
cr as PanelMenu,
|
|
67
|
+
j as Password,
|
|
68
|
+
q as PasswordFooterItem,
|
|
65
69
|
T as ProgressSpinner,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
X as RadioGroup,
|
|
71
|
+
N as SearchField,
|
|
72
|
+
D as SelectField,
|
|
73
|
+
dr as Snackbar,
|
|
74
|
+
Cr as Stepper,
|
|
75
|
+
Z as Switch,
|
|
72
76
|
F as Tabs,
|
|
73
77
|
x as Tag,
|
|
74
78
|
n as TagChip,
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
G as Textarea,
|
|
80
|
+
Ir as createSnackbar
|
|
77
81
|
};
|
package/dist/paginator/index.js
CHANGED
package/dist/panel-menu/index.js
CHANGED
package/dist/password/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { Accordion as r } from "@ark-ui/react/accordion";
|
|
3
|
-
import {
|
|
3
|
+
import { I as c } from "./IconChevronDown-ev2ML7Ex.js";
|
|
4
4
|
const d = "mare:w-full", u = (t) => `
|
|
5
5
|
mare:flex mare:flex-col
|
|
6
6
|
${t ? "mare:border-b mare:border-default" : ""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { B as d } from "./Button-AfMqNCme.js";
|
|
3
|
-
import {
|
|
3
|
+
import { I as o } from "./IconX-CpPADKjZ.js";
|
|
4
4
|
const c = `
|
|
5
5
|
mare:w-full mare:max-w-md mare:rounded-tpc-container-s mare:p-4
|
|
6
6
|
mare:flex mare:items-start mare:justify-between mare:gap-4
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as o } from "react";
|
|
3
|
+
const i = "mare:flex mare:items-center mare:overflow-x-auto mare:tpc-typography-body-s mare:p-4", d = "mare:m-0 mare:p-0 mare:list-none mare:flex mare:items-center mare:flex-nowrap mare:gap-3", p = (e) => e.disabled ? "mare:flex mare:text-disabled mare:cursor-not-allowed mare:pointer-events-none" : e.active ? "mare:flex mare:text-default mare:cursor-none mare:pointer-events-none" : "mare:flex mare:text-weak mare:hover:text-default mare:cursor-pointer mare:transition-colors mare:duration-150 mare:ease-in-out", m = "mare:cursor-pointer mare:no-underline mare:flex mare:items-center mare:gap-1.5", u = "mare:flex mare:items-center mare:gap-1", f = "mare:flex mare:items-center mare:shrink-0 mare:text-weak mare:[&>svg]:size-4", h = "mare:tpc-typography-body-s mare:text-weak", x = "mare:flex mare:items-center mare:text-weak mare:tpc-typography-body-s";
|
|
4
|
+
function b(e, n) {
|
|
5
|
+
if (n) return n(e);
|
|
6
|
+
const a = e.icon;
|
|
7
|
+
return /* @__PURE__ */ l("span", { className: u, children: [
|
|
8
|
+
a && /* @__PURE__ */ r(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
className: f,
|
|
12
|
+
"aria-hidden": "true",
|
|
13
|
+
children: a
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ r("span", { className: h, children: e.label })
|
|
17
|
+
] });
|
|
18
|
+
}
|
|
19
|
+
function v({
|
|
20
|
+
item: e,
|
|
21
|
+
renderItem: n
|
|
22
|
+
}) {
|
|
23
|
+
const a = p(e), t = b(e, n), s = e.href;
|
|
24
|
+
if (!s || e.active || e.disabled)
|
|
25
|
+
return /* @__PURE__ */ r("li", { className: a, children: /* @__PURE__ */ r(
|
|
26
|
+
"span",
|
|
27
|
+
{
|
|
28
|
+
className: m,
|
|
29
|
+
"aria-current": e.active ? "page" : void 0,
|
|
30
|
+
"aria-disabled": e.disabled ? !0 : void 0,
|
|
31
|
+
children: t
|
|
32
|
+
}
|
|
33
|
+
) });
|
|
34
|
+
const c = e.onClick;
|
|
35
|
+
return /* @__PURE__ */ r("li", { className: a, children: /* @__PURE__ */ r(
|
|
36
|
+
"a",
|
|
37
|
+
{
|
|
38
|
+
href: s,
|
|
39
|
+
className: m,
|
|
40
|
+
onClick: c,
|
|
41
|
+
children: t
|
|
42
|
+
}
|
|
43
|
+
) });
|
|
44
|
+
}
|
|
45
|
+
function y({
|
|
46
|
+
items: e,
|
|
47
|
+
separator: n = "/",
|
|
48
|
+
renderItem: a
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ r(
|
|
51
|
+
"nav",
|
|
52
|
+
{
|
|
53
|
+
className: i,
|
|
54
|
+
"aria-label": "breadcrumb",
|
|
55
|
+
children: /* @__PURE__ */ r("ol", { className: d, children: e.map((t, s) => /* @__PURE__ */ l(o, { children: [
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
v,
|
|
58
|
+
{
|
|
59
|
+
item: t,
|
|
60
|
+
renderItem: a
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
s < e.length - 1 && /* @__PURE__ */ r(
|
|
64
|
+
"li",
|
|
65
|
+
{
|
|
66
|
+
className: x,
|
|
67
|
+
"aria-hidden": "true",
|
|
68
|
+
children: n
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] }, `${t.label}-${s}`)) })
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
y as B
|
|
77
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Checkbox as a } from "@ark-ui/react/checkbox";
|
|
3
|
-
import {
|
|
3
|
+
import { I as f } from "./IconCheck-DzZA6b2U.js";
|
|
4
|
+
import { I as x } from "./IconMinus-fS_GL0Et.js";
|
|
4
5
|
const v = `
|
|
5
6
|
mare:group/checkbox
|
|
6
7
|
mare:relative mare:inline-flex mare:items-center mare:gap-2
|
|
@@ -52,11 +53,11 @@ const v = `
|
|
|
52
53
|
`, C = `
|
|
53
54
|
mare:sr-only
|
|
54
55
|
`;
|
|
55
|
-
function
|
|
56
|
+
function L({
|
|
56
57
|
checked: s,
|
|
57
58
|
defaultChecked: l,
|
|
58
59
|
onCheckedChange: n,
|
|
59
|
-
children:
|
|
60
|
+
children: m,
|
|
60
61
|
size: r = "small",
|
|
61
62
|
disabled: c = !1,
|
|
62
63
|
invalid: o = !1,
|
|
@@ -67,7 +68,7 @@ function M({
|
|
|
67
68
|
form: z,
|
|
68
69
|
id: u
|
|
69
70
|
}) {
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ d(
|
|
71
72
|
a.Root,
|
|
72
73
|
{
|
|
73
74
|
checked: s,
|
|
@@ -86,7 +87,7 @@ function M({
|
|
|
86
87
|
className: v,
|
|
87
88
|
"data-size": r,
|
|
88
89
|
children: [
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ d(
|
|
90
91
|
a.Control,
|
|
91
92
|
{
|
|
92
93
|
className: y,
|
|
@@ -116,12 +117,12 @@ function M({
|
|
|
116
117
|
]
|
|
117
118
|
}
|
|
118
119
|
),
|
|
119
|
-
|
|
120
|
+
m && /* @__PURE__ */ e(
|
|
120
121
|
a.Label,
|
|
121
122
|
{
|
|
122
123
|
className: w,
|
|
123
124
|
"data-size": r,
|
|
124
|
-
children:
|
|
125
|
+
children: m
|
|
125
126
|
}
|
|
126
127
|
),
|
|
127
128
|
/* @__PURE__ */ e(a.HiddenInput, { className: C })
|
|
@@ -130,5 +131,5 @@ function M({
|
|
|
130
131
|
);
|
|
131
132
|
}
|
|
132
133
|
export {
|
|
133
|
-
|
|
134
|
+
L as C
|
|
134
135
|
};
|