@tpc-mare/mare-ui-components-react 0.1.23 → 0.1.25
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/button/Button.d.ts +1 -1
- package/dist/button/Button.types.d.ts +6 -0
- package/dist/button/index.js +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/confirm-dialog/index.js +1 -1
- package/dist/counter/index.js +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/drawer/index.js +1 -1
- package/dist/expandable-counter/index.js +1 -1
- package/dist/filter-chip-dropdown-single/index.js +1 -1
- package/dist/floating-action-button/FloatingActionButton.d.ts +2 -0
- package/dist/floating-action-button/FloatingActionButton.types.d.ts +9 -0
- package/dist/floating-action-button/index.d.ts +2 -0
- package/dist/floating-action-button/index.js +4 -0
- package/dist/index/index.d.ts +2 -0
- package/dist/index/index.js +93 -91
- package/dist/message/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/overlay-badge/index.js +1 -1
- package/dist/paginator/index.js +1 -1
- package/dist/segmented-control/index.js +1 -1
- package/dist/select-field/index.js +1 -1
- package/dist/shared/{Accordion-BLQ1mWZZ.js → Accordion-BSmOrxH6.js} +4 -4
- package/dist/shared/{Banner-DXftmx9P.js → Banner-C4wLe6N0.js} +2 -2
- package/dist/shared/{Button-AfMqNCme.js → Button-DwJ5RTfQ.js} +37 -33
- package/dist/shared/{Combobox-SkrEe5He.js → Combobox-CcmWgRYZ.js} +1 -0
- package/dist/shared/{ConfirmDialog-Bvk8KZ0M.js → ConfirmDialog-DLHY-c70.js} +1 -1
- package/dist/shared/{Counter-DpOtUolN.js → Counter-DjIoe4h3.js} +1 -1
- package/dist/shared/{DialogHeader-RzfQm-pi.js → DialogHeader-M5Bfyxos.js} +1 -1
- package/dist/shared/{DrawerFooter-BxOEFQ-W.js → DrawerFooter-B9-Vrgd3.js} +1 -1
- package/dist/shared/{ExpandableCounter-BEMcnTGQ.js → ExpandableCounter-DZxbdqRa.js} +2 -2
- package/dist/shared/FilterChipDropdownSingle-C7ahD-_3.js +138 -0
- package/dist/shared/FloatingActionButton-D4FK6uSs.js +19 -0
- package/dist/shared/{Message-BjC8CCSI.js → Message-BNsFuQU1.js} +1 -1
- package/dist/shared/{MultiSelect-DtsCymNB.js → MultiSelect-Dowp0_FX.js} +57 -55
- package/dist/shared/OverlayBadge-DLskqll7.js +70 -0
- package/dist/shared/{Paginator-Bp2nghqW.js → Paginator-DxZdCXSC.js} +2 -2
- package/dist/shared/SegmentedControl-Ct5ZLXpN.js +100 -0
- package/dist/shared/{SelectField-CvKaukCG.js → SelectField-B-g52vHx.js} +5 -5
- package/dist/shared/{Snackbar-C29nLHO9.js → Snackbar-CjTqCOaV.js} +1 -1
- package/dist/shared/{Switch-D6E2OmgE.js → Switch-DNCn0xjb.js} +3 -3
- package/dist/snackbar/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/package.json +1 -1
- package/dist/shared/FilterChipDropdownSingle-4G5LDRCw.js +0 -135
- package/dist/shared/OverlayBadge-jHzuklUb.js +0 -60
- package/dist/shared/SegmentedControl-BpH7DANc.js +0 -94
package/dist/accordion/index.js
CHANGED
package/dist/banner/index.js
CHANGED
package/dist/button/Button.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ButtonProperties } from './Button.types';
|
|
2
|
-
export declare function Button({ label, severity, size, variant, iconOnly, disabled, loading, link, linkAnimation, icon, iconPos, children, type, ...native }: ButtonProperties): import("react").JSX.Element;
|
|
2
|
+
export declare function Button({ label, severity, size, variant, iconOnly, disabled, loading, link, linkAnimation, raised, rounded, icon, iconPos, children, type, ...native }: ButtonProperties): import("react").JSX.Element;
|
|
@@ -12,6 +12,12 @@ export interface ButtonProperties extends ForwardedNativeProperties {
|
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
link?: boolean;
|
|
14
14
|
linkAnimation?: boolean;
|
|
15
|
+
/** Elevation shadow + the taller raised sizing (what makes a FAB a FAB).
|
|
16
|
+
* @default false */
|
|
17
|
+
raised?: boolean;
|
|
18
|
+
/** Fully rounded corners — pill with a label, circle with iconOnly.
|
|
19
|
+
* @default false */
|
|
20
|
+
rounded?: boolean;
|
|
15
21
|
icon?: ReactNode;
|
|
16
22
|
iconPos?: IconPosition;
|
|
17
23
|
children?: ReactNode;
|
package/dist/button/index.js
CHANGED
package/dist/combobox/index.js
CHANGED
package/dist/counter/index.js
CHANGED
package/dist/dialog/index.js
CHANGED
package/dist/drawer/index.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonProperties } from '../Button';
|
|
2
|
+
import { FloatingActionButtonSeverity } from '@tpc-development/mare-ui-components-core/floating-action-button';
|
|
3
|
+
export type { FloatingActionButtonSeverity } from '@tpc-development/mare-ui-components-core/floating-action-button';
|
|
4
|
+
type ForwardedButtonProperties = Omit<ButtonProperties, 'severity' | 'raised' | 'rounded'>;
|
|
5
|
+
export interface FloatingActionButtonProperties extends ForwardedButtonProperties {
|
|
6
|
+
/** Visual hierarchy. Unlike Button, 'ghost' and 'danger' are excluded.
|
|
7
|
+
* @default 'primary' */
|
|
8
|
+
severity?: FloatingActionButtonSeverity;
|
|
9
|
+
}
|
package/dist/index/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export { Message } from '../message';
|
|
|
24
24
|
export type { MessageProperties, MessageSeverity, MessageVariant, } from '../message';
|
|
25
25
|
export { Button } from '../button';
|
|
26
26
|
export type { ButtonProperties, ButtonSeverity, ButtonSize, ButtonVariant, IconPosition, } from '../button';
|
|
27
|
+
export { FloatingActionButton } from '../floating-action-button';
|
|
28
|
+
export type { FloatingActionButtonProperties, FloatingActionButtonSeverity, } from '../floating-action-button';
|
|
27
29
|
export { Breadcrumbs } from '../breadcrumbs';
|
|
28
30
|
export type { BreadcrumbsProperties, BreadcrumbItemData, } from '../breadcrumbs';
|
|
29
31
|
export { SelectField } from '../select-field';
|
package/dist/index/index.js
CHANGED
|
@@ -1,107 +1,109 @@
|
|
|
1
|
-
import { A as e } from "../shared/Accordion-
|
|
1
|
+
import { A as e } from "../shared/Accordion-BSmOrxH6.js";
|
|
2
2
|
import { A as t } from "../shared/Avatar-D3QlO3Tz.js";
|
|
3
3
|
import { B as p } from "../shared/Badge-WC6my4Aw.js";
|
|
4
|
-
import { O as x } from "../shared/OverlayBadge-
|
|
4
|
+
import { O as x } from "../shared/OverlayBadge-DLskqll7.js";
|
|
5
5
|
import { T as i } from "../shared/Tag-BtbmgIwL.js";
|
|
6
|
-
import { T as
|
|
6
|
+
import { T as l } from "../shared/TagChip-Bs7srjIL.js";
|
|
7
7
|
import { F as d } from "../shared/FilterChip-eECL3oO7.js";
|
|
8
|
-
import { F } from "../shared/FilterChipGroup-BzE-EQsA.js";
|
|
9
|
-
import { F as
|
|
10
|
-
import { F as
|
|
11
|
-
import { B as P } from "../shared/Banner-
|
|
12
|
-
import { M as B } from "../shared/Message-
|
|
13
|
-
import { B as h } from "../shared/Button-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { P as j } from "../shared/
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { I as sr } from "../shared/
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { D as ur } from "../shared/
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import { S as Gr } from "../shared/
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { I as Jr } from "../shared/
|
|
45
|
-
import {
|
|
46
|
-
import { S as Vr } from "../shared/
|
|
47
|
-
import { S as Xr } from "../shared/
|
|
48
|
-
import {
|
|
8
|
+
import { F as C } from "../shared/FilterChipGroup-BzE-EQsA.js";
|
|
9
|
+
import { F as c } from "../shared/FilterChipDropdownSingle-C7ahD-_3.js";
|
|
10
|
+
import { F as D } from "../shared/FilterChipDropdownMultiple-D2eMYXyS.js";
|
|
11
|
+
import { B as P } from "../shared/Banner-C4wLe6N0.js";
|
|
12
|
+
import { M as B } from "../shared/Message-BNsFuQU1.js";
|
|
13
|
+
import { B as h } from "../shared/Button-DwJ5RTfQ.js";
|
|
14
|
+
import { F as M } from "../shared/FloatingActionButton-D4FK6uSs.js";
|
|
15
|
+
import { B as A } from "../shared/Breadcrumbs-Cqr3Jitd.js";
|
|
16
|
+
import { S as v } from "../shared/SelectField-B-g52vHx.js";
|
|
17
|
+
import { C as E } from "../shared/Combobox-CcmWgRYZ.js";
|
|
18
|
+
import { M as R } from "../shared/MultiSelect-Dowp0_FX.js";
|
|
19
|
+
import { T as L } from "../shared/Tabs-BqIorZYD.js";
|
|
20
|
+
import { P as j } from "../shared/ProgressSpinner-B-lrS-tu.js";
|
|
21
|
+
import { P as z } from "../shared/ProgressBar-Dxm0L3-R.js";
|
|
22
|
+
import { I as K, a as Q } from "../shared/IconField-Dh6j6SL1.js";
|
|
23
|
+
import { C as V, F as W, a as X, H as Y } from "../shared/HelperText-CVWWvLCI.js";
|
|
24
|
+
import { T as _ } from "../shared/Textarea-iJhYTZos.js";
|
|
25
|
+
import { S as rr } from "../shared/SearchField-DjJHDaR4.js";
|
|
26
|
+
import { P as er, a as ar } from "../shared/Password-BMKy8dAy.js";
|
|
27
|
+
import { I as sr } from "../shared/InputNumber-D48wsE-o.js";
|
|
28
|
+
import { I as mr } from "../shared/InputOtp-CUXXVP2E.js";
|
|
29
|
+
import { C as fr } from "../shared/Counter-DjIoe4h3.js";
|
|
30
|
+
import { E as nr } from "../shared/ExpandableCounter-DZxbdqRa.js";
|
|
31
|
+
import { C as Sr } from "../shared/Checkbox-BXnSN2vK.js";
|
|
32
|
+
import { R as Fr } from "../shared/RadioGroup-lw27DCoV.js";
|
|
33
|
+
import { S as gr } from "../shared/Switch-DNCn0xjb.js";
|
|
34
|
+
import { D as ur, a as Dr } from "../shared/DialogFooter-DyltZzK-.js";
|
|
35
|
+
import { D as Pr } from "../shared/DialogHeader-M5Bfyxos.js";
|
|
36
|
+
import { C as Br } from "../shared/ConfirmDialog-DLHY-c70.js";
|
|
37
|
+
import { D as hr, a as wr, b as Mr } from "../shared/DrawerFooter-B9-Vrgd3.js";
|
|
38
|
+
import { M as Ar } from "../shared/Menu-Cv9dU1iA.js";
|
|
39
|
+
import { P as vr } from "../shared/PanelMenu-BpjNM7O_.js";
|
|
40
|
+
import { S as Er, c as Gr } from "../shared/Snackbar-CjTqCOaV.js";
|
|
41
|
+
import { S as yr } from "../shared/Stepper-By8M5bs0.js";
|
|
42
|
+
import { D as Nr } from "../shared/DatePicker-CwAISvNc.js";
|
|
43
|
+
import { P as qr } from "../shared/Paginator-DxZdCXSC.js";
|
|
44
|
+
import { I as Jr } from "../shared/ImageItem-BBy5fOl3.js";
|
|
45
|
+
import { I as Qr } from "../shared/ImageSlider-Bgb1kNQ4.js";
|
|
46
|
+
import { S as Vr } from "../shared/SegmentedControl-Ct5ZLXpN.js";
|
|
47
|
+
import { S as Xr } from "../shared/Skeleton-CAjoF-T2.js";
|
|
48
|
+
import { S as Zr } from "../shared/Slider-CXFkperZ.js";
|
|
49
|
+
import { D as $r } from "../shared/Divider-UgKI7dtK.js";
|
|
49
50
|
export {
|
|
50
51
|
e as Accordion,
|
|
51
52
|
t as Avatar,
|
|
52
53
|
p as Badge,
|
|
53
54
|
P as Banner,
|
|
54
|
-
|
|
55
|
+
A as Breadcrumbs,
|
|
55
56
|
h as Button,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
V as CharacterCount,
|
|
58
|
+
Sr as Checkbox,
|
|
59
|
+
E as Combobox,
|
|
60
|
+
Br as ConfirmDialog,
|
|
61
|
+
fr as Counter,
|
|
62
|
+
Nr as DatePicker,
|
|
63
|
+
ur as Dialog,
|
|
63
64
|
Dr as DialogFooter,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
Pr as DialogHeader,
|
|
66
|
+
$r as Divider,
|
|
67
|
+
hr as Drawer,
|
|
68
|
+
wr as DrawerFooter,
|
|
69
|
+
Mr as DrawerHeader,
|
|
70
|
+
nr as ExpandableCounter,
|
|
70
71
|
d as FilterChip,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
Jr as
|
|
80
|
-
|
|
81
|
-
sr as
|
|
82
|
-
|
|
83
|
-
|
|
72
|
+
D as FilterChipDropdownMultiple,
|
|
73
|
+
c as FilterChipDropdownSingle,
|
|
74
|
+
C as FilterChipGroup,
|
|
75
|
+
W as FloatLabel,
|
|
76
|
+
M as FloatingActionButton,
|
|
77
|
+
X as FormField,
|
|
78
|
+
Y as HelperText,
|
|
79
|
+
K as IconField,
|
|
80
|
+
Jr as ImageItem,
|
|
81
|
+
Qr as ImageSlider,
|
|
82
|
+
sr as InputNumber,
|
|
83
|
+
mr as InputOtp,
|
|
84
|
+
Q as InputText,
|
|
85
|
+
Ar as Menu,
|
|
84
86
|
B as Message,
|
|
85
|
-
|
|
87
|
+
R as MultiSelect,
|
|
86
88
|
x as OverlayBadge,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
89
|
+
qr as Paginator,
|
|
90
|
+
vr as PanelMenu,
|
|
91
|
+
er as Password,
|
|
92
|
+
ar as PasswordFooterItem,
|
|
93
|
+
z as ProgressBar,
|
|
94
|
+
j as ProgressSpinner,
|
|
95
|
+
Fr as RadioGroup,
|
|
96
|
+
rr as SearchField,
|
|
97
|
+
Vr as SegmentedControl,
|
|
98
|
+
v as SelectField,
|
|
99
|
+
Xr as Skeleton,
|
|
100
|
+
Zr as Slider,
|
|
101
|
+
Er as Snackbar,
|
|
102
|
+
yr as Stepper,
|
|
103
|
+
gr as Switch,
|
|
104
|
+
L as Tabs,
|
|
103
105
|
i as Tag,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
l as TagChip,
|
|
107
|
+
_ as Textarea,
|
|
108
|
+
Gr as createSnackbar
|
|
107
109
|
};
|
package/dist/message/index.js
CHANGED
package/dist/paginator/index.js
CHANGED
|
@@ -14,11 +14,11 @@ const d = "mare:w-full", u = (t) => `
|
|
|
14
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
15
|
mare:flex mare:items-center mare:justify-center mare:shrink-0 mare:text-default
|
|
16
16
|
mare:transition-transform mare:ark-open:rotate-180 mare:[&>svg]:size-5
|
|
17
|
-
`,
|
|
18
|
-
mare:overflow-hidden
|
|
17
|
+
`, v = `
|
|
18
|
+
mare:overflow-hidden
|
|
19
19
|
mare:ark-open:[animation:mare-panel-menu-branch-open_250ms_ease-out]
|
|
20
20
|
mare:ark-closed:[animation:mare-panel-menu-branch-close_200ms_ease-in]
|
|
21
|
-
|
|
21
|
+
`, x = "mare:pb-4";
|
|
22
22
|
function w({
|
|
23
23
|
items: t,
|
|
24
24
|
value: n,
|
|
@@ -50,7 +50,7 @@ function w({
|
|
|
50
50
|
] }),
|
|
51
51
|
/* @__PURE__ */ a(r.ItemIndicator, { className: h, children: /* @__PURE__ */ a(c, {}) })
|
|
52
52
|
] }),
|
|
53
|
-
/* @__PURE__ */ a(r.ItemContent, { className: x, children: e.content })
|
|
53
|
+
/* @__PURE__ */ a(r.ItemContent, { className: v, children: /* @__PURE__ */ a("div", { className: x, children: e.content }) })
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
56
|
e.value
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { B as d } from "./Button-
|
|
2
|
+
import { B as d } from "./Button-DwJ5RTfQ.js";
|
|
3
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
|
|
@@ -9,7 +9,7 @@ const c = `
|
|
|
9
9
|
mare:data-severity-positive:bg-positive-weak
|
|
10
10
|
mare:data-severity-warning:bg-warning-weak
|
|
11
11
|
mare:data-severity-danger:bg-danger-weak
|
|
12
|
-
`, p = "mare:flex mare:grow mare:items-start mare:gap-4", g = "mare:shrink-0 mare:text-default mare:[&>svg]:size-
|
|
12
|
+
`, p = "mare:flex mare:grow mare:items-start mare:gap-4", g = "mare:flex mare:shrink-0 mare:items-center mare:justify-center mare:text-default mare:[&>svg]:size-6", f = "mare:flex mare:grow mare:flex-col mare:gap-2", v = "mare:tpc-typography-label-m mare:text-default", y = (e) => `mare:tpc-typography-body-s ${e ? "mare:text-disabled" : "mare:text-default"}`, x = (e, r) => r ? "disabled" : e;
|
|
13
13
|
function h({
|
|
14
14
|
severity: e = "neutral",
|
|
15
15
|
title: r,
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { P as
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as x, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { P as k } from "./ProgressSpinner-B-lrS-tu.js";
|
|
3
|
+
const w = {
|
|
4
4
|
left: "mare:-order-1",
|
|
5
5
|
right: "mare:order-1",
|
|
6
6
|
top: "mare:-order-1",
|
|
7
7
|
bottom: "mare:order-1"
|
|
8
|
-
},
|
|
8
|
+
}, $ = {
|
|
9
9
|
primary: "mare:stroke-on-accent",
|
|
10
10
|
secondary: "mare:stroke-default",
|
|
11
11
|
ghost: "mare:stroke-default",
|
|
12
|
-
danger: "mare:stroke-on-danger"
|
|
13
|
-
|
|
14
|
-
}, w = (e) => e === "bordered" ? `mare:data-severity-neutral:border mare:data-severity-neutral:border-strong
|
|
15
|
-
mare:data-severity-ghost:border mare:data-severity-ghost:border-strong mare:not-p-disabled:data-severity-ghost:hover:bg-transparent` : `
|
|
12
|
+
danger: "mare:stroke-on-danger"
|
|
13
|
+
}, _ = (e) => e === "bordered" ? "mare:data-severity-ghost:border mare:data-severity-ghost:border-strong mare:not-p-disabled:data-severity-ghost:hover:bg-transparent" : `
|
|
16
14
|
mare:not-p-disabled:not-data-link:[&[data-severity~='ghost']:active]:bg-active
|
|
17
|
-
mare:not-p-disabled:not-data-link:[&[data-severity~='danger']:active]:bg-danger-active`,
|
|
15
|
+
mare:not-p-disabled:not-data-link:[&[data-severity~='danger']:active]:bg-danger-active`, L = (e, a) => `
|
|
18
16
|
mare:group/button
|
|
19
17
|
mare:relative
|
|
20
18
|
mare:rounded-button mare:flex mare:items-center mare:justify-center
|
|
@@ -39,8 +37,7 @@ const x = {
|
|
|
39
37
|
mare:not-p-disabled:not-data-link:[&[data-severity~='secondary']:active]:bg-active
|
|
40
38
|
mare:not-p-disabled:not-data-link:[&[data-severity~='danger']:active]:bg-danger-active
|
|
41
39
|
|
|
42
|
-
|
|
43
|
-
${w(e)}
|
|
40
|
+
${_(e)}
|
|
44
41
|
mare:data-size-small:py-2.5 mare:data-size-small:px-3.5 mare:data-size-small:gap-1
|
|
45
42
|
mare:data-size-small:icon-only:rounded:p-2.5 mare:data-size-small:h-10 mare:data-size-small:icon-only:w-10 mare:data-size-small:icon-only:min-w-10
|
|
46
43
|
|
|
@@ -67,6 +64,8 @@ const x = {
|
|
|
67
64
|
mare:icon-only:rounded-full!
|
|
68
65
|
mare:rounded:rounded-full
|
|
69
66
|
mare:p-raised:shadow-[0_4px_16px_0_rgba(0,0,0,0.16)]
|
|
67
|
+
mare:p-raised:data-severity-secondary:bg-raised mare:p-raised:data-severity-secondary:border-default
|
|
68
|
+
mare:p-raised:data-size-medium:px-7 mare:p-raised:data-size-medium:py-3 mare:p-raised:data-size-medium:gap-2 mare:p-raised:data-size-medium:h-14 mare:p-raised:data-size-medium:icon-only:w-14 mare:p-raised:data-size-medium:icon-only:min-w-14
|
|
70
69
|
|
|
71
70
|
mare:data-link:bg-transparent
|
|
72
71
|
mare:data-link:border-0
|
|
@@ -91,21 +90,22 @@ const x = {
|
|
|
91
90
|
|
|
92
91
|
mare:data-link:data-size-large:h-auto
|
|
93
92
|
mare:data-link:data-size-large:gap-2
|
|
94
|
-
`,
|
|
93
|
+
`, j = "mare:relative mare:inline-block mare:no-underline! mare:after:content-[''] mare:after:absolute mare:after:left-0 mare:after:-bottom-[4px] mare:after:h-[1px] mare:after:w-full mare:after:bg-inverse mare:after:origin-left mare:after:scale-x-[1] mare:after:transform-gpu mare:after:will-change-transform mare:after:transition-transform mare:after:duration-[500ms] mare:after:ease-[cubic-bezier(0.19,1,0.22,1)] mare:hover:after:scale-x-0 mare:hover:after:origin-right", N = (e) => {
|
|
95
94
|
const { isLink: a, animateLink: r, hiddenLabel: s, loading: d } = e;
|
|
96
95
|
return `mare:relative
|
|
96
|
+
mare:group-[[data-raised]]/button:tpc-typography-label-m!
|
|
97
97
|
${a ? "mare:data-size-xsmall:tpc-typography-label-s-underline" : "mare:data-size-xsmall:tpc-typography-label-s"}
|
|
98
98
|
${a ? "mare:data-size-small:tpc-typography-label-s-underline" : "mare:data-size-small:tpc-typography-label-s"}
|
|
99
99
|
${a ? "mare:data-size-medium:tpc-typography-label-m-underline" : "mare:data-size-medium:tpc-typography-label-m"}
|
|
100
100
|
${a ? "mare:data-size-large:tpc-typography-label-m-underline" : "mare:data-size-large:tpc-typography-label-m"}
|
|
101
|
-
${r && a ?
|
|
101
|
+
${r && a ? j : ""}
|
|
102
102
|
${s ? "mare:hidden" : ""} ${a ? "" : "mare:px-0.5"} ${d ? "mare:opacity-0" : ""}
|
|
103
103
|
`;
|
|
104
|
-
},
|
|
104
|
+
}, P = (e, a, r) => a ? e === "xsmall" || e === "small" ? "small" : "medium" : e === "xsmall" ? r ? "medium" : "small" : "medium", B = {
|
|
105
105
|
small: 16,
|
|
106
106
|
medium: 20
|
|
107
107
|
};
|
|
108
|
-
function
|
|
108
|
+
function q({
|
|
109
109
|
label: e,
|
|
110
110
|
severity: a = "primary",
|
|
111
111
|
size: r = "medium",
|
|
@@ -113,41 +113,45 @@ function S({
|
|
|
113
113
|
iconOnly: d = !1,
|
|
114
114
|
disabled: l = !1,
|
|
115
115
|
loading: t = !1,
|
|
116
|
-
link:
|
|
117
|
-
linkAnimation:
|
|
116
|
+
link: y = !1,
|
|
117
|
+
linkAnimation: c = !1,
|
|
118
|
+
raised: g = !1,
|
|
119
|
+
rounded: b = !1,
|
|
118
120
|
icon: n,
|
|
119
|
-
iconPos:
|
|
121
|
+
iconPos: u = "left",
|
|
120
122
|
children: o,
|
|
121
|
-
type:
|
|
122
|
-
...
|
|
123
|
+
type: v = "button",
|
|
124
|
+
...h
|
|
123
125
|
}) {
|
|
124
|
-
const i =
|
|
125
|
-
return /* @__PURE__ */
|
|
126
|
+
const i = y, z = !!e || !!o, f = d && !!n, p = B[P(r, i, d)];
|
|
127
|
+
return /* @__PURE__ */ x(
|
|
126
128
|
"button",
|
|
127
129
|
{
|
|
128
|
-
type:
|
|
129
|
-
className:
|
|
130
|
+
type: v,
|
|
131
|
+
className: L(s, i),
|
|
130
132
|
"data-severity": a,
|
|
131
133
|
"data-size": r,
|
|
132
134
|
"data-icon-only": d ? "true" : void 0,
|
|
133
135
|
"data-disabled": l ? "true" : void 0,
|
|
134
136
|
"data-loading": t ? "true" : void 0,
|
|
135
137
|
"data-link": i ? "true" : void 0,
|
|
138
|
+
"data-raised": g ? "true" : void 0,
|
|
139
|
+
"data-rounded": b ? "true" : void 0,
|
|
136
140
|
disabled: l || t,
|
|
137
141
|
"aria-busy": t || void 0,
|
|
138
|
-
...
|
|
142
|
+
...h,
|
|
139
143
|
children: [
|
|
140
144
|
t && /* @__PURE__ */ m("span", { className: "mare:absolute mare:inset-0 mare:flex mare:items-center mare:justify-center", children: /* @__PURE__ */ m(
|
|
141
|
-
|
|
145
|
+
k,
|
|
142
146
|
{
|
|
143
|
-
circleClass:
|
|
147
|
+
circleClass: $[a],
|
|
144
148
|
className: "mare:size-5"
|
|
145
149
|
}
|
|
146
150
|
) }),
|
|
147
151
|
n && /* @__PURE__ */ m(
|
|
148
152
|
"span",
|
|
149
153
|
{
|
|
150
|
-
className: `mare:inline-flex mare:shrink-0 mare:items-center mare:justify-center mare:[&>svg]:size-full! ${
|
|
154
|
+
className: `mare:inline-flex mare:shrink-0 mare:items-center mare:justify-center mare:[&>svg]:size-full! ${w[u]} ${t ? "mare:opacity-0" : ""}`,
|
|
151
155
|
style: {
|
|
152
156
|
width: `${p}px`,
|
|
153
157
|
height: `${p}px`
|
|
@@ -156,13 +160,13 @@ function S({
|
|
|
156
160
|
children: n
|
|
157
161
|
}
|
|
158
162
|
),
|
|
159
|
-
|
|
163
|
+
z && /* @__PURE__ */ m(
|
|
160
164
|
"span",
|
|
161
165
|
{
|
|
162
|
-
className:
|
|
166
|
+
className: N({
|
|
163
167
|
isLink: i,
|
|
164
|
-
animateLink:
|
|
165
|
-
hiddenLabel:
|
|
168
|
+
animateLink: c,
|
|
169
|
+
hiddenLabel: f,
|
|
166
170
|
loading: t
|
|
167
171
|
}),
|
|
168
172
|
children: o ?? e
|
|
@@ -173,5 +177,5 @@ function S({
|
|
|
173
177
|
);
|
|
174
178
|
}
|
|
175
179
|
export {
|
|
176
|
-
|
|
180
|
+
q as B
|
|
177
181
|
};
|
|
@@ -35,6 +35,7 @@ const G = {
|
|
|
35
35
|
mare:max-h-72 mare:overflow-y-auto
|
|
36
36
|
mare:min-w-[var(--reference-width)]
|
|
37
37
|
mare:z-50
|
|
38
|
+
mare:[&[hidden]]:hidden
|
|
38
39
|
`, ee = `
|
|
39
40
|
mare:group/option mare:flex mare:items-center mare:justify-between mare:gap-2
|
|
40
41
|
mare:w-full mare:min-h-8 mare:py-2 mare:px-3 mare:cursor-pointer mare:rounded-menu-item
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { D as g, a as h } from "./DialogFooter-DyltZzK-.js";
|
|
3
|
-
import { B as n } from "./Button-
|
|
3
|
+
import { B as n } from "./Button-DwJ5RTfQ.js";
|
|
4
4
|
const u = (e) => `
|
|
5
5
|
mare:w-full mare:h-full
|
|
6
6
|
${e === "column" ? "mare:pt-10 mare:pb-4" : "mare:pt-8"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { NumberInput as a } from "@ark-ui/react/number-input";
|
|
3
|
-
import { B as i } from "./Button-
|
|
3
|
+
import { B as i } from "./Button-DwJ5RTfQ.js";
|
|
4
4
|
import { I as x } from "./IconMinus-fS_GL0Et.js";
|
|
5
5
|
import { c as I } from "./createReactComponent-Cb6Pzf10.js";
|
|
6
6
|
const v = [["path", { d: "M12 5l0 14", key: "svg-0" }], ["path", { d: "M5 12l14 0", key: "svg-1" }]], C = I("outline", "plus", "Plus", v), N = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Dialog as l } from "@ark-ui/react/dialog";
|
|
3
3
|
import { l as h, i as o, n as d, s as u } from "./DialogFooter-DyltZzK-.js";
|
|
4
|
-
import { B as r } from "./Button-
|
|
4
|
+
import { B as r } from "./Button-DwJ5RTfQ.js";
|
|
5
5
|
import { I as p } from "./IconX-CpPADKjZ.js";
|
|
6
6
|
function y({
|
|
7
7
|
title: e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { Dialog as t } from "@ark-ui/react/dialog";
|
|
3
3
|
import { Portal as g } from "@ark-ui/react/portal";
|
|
4
|
-
import { B as d } from "./Button-
|
|
4
|
+
import { B as d } from "./Button-DwJ5RTfQ.js";
|
|
5
5
|
import { I as y } from "./IconX-CpPADKjZ.js";
|
|
6
6
|
const _ = (e) => {
|
|
7
7
|
switch (e) {
|