@pismo/marola 0.0.1-alpha.28 → 0.0.1-alpha.29

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.
@@ -0,0 +1,142 @@
1
+ import './assets/Toggle.css';
2
+ import { jsx as p, jsxs as u } from "react/jsx-runtime";
3
+ import { forwardRef as d, cloneElement as m } from "react";
4
+ import { c as n } from "./clsx-DB4S2d7J.js";
5
+ import "./components/Button/Button.js";
6
+ import { Icon as b } from "./components/Icon/Icon.js";
7
+ import "./components/Dialog/Backdrop.js";
8
+ import { Typography as k } from "./components/Typography/Typography.js";
9
+ import "./components/IconButton/IconButton.js";
10
+ import "./components/Select/Select.js";
11
+ import { Skeleton as f } from "./components/Skeleton/Skeleton.js";
12
+ import "./components/Table/Table.js";
13
+ import "./components/Tabs/Tabs.js";
14
+ import { s as h } from "./Group-B3p31ftp.js";
15
+ import "./contexts/SnackbarProvider/SnackbarProvider.js";
16
+ import { B as x } from "./Button-2b1peDFT.js";
17
+ const C = "_chip_ccpk4_60", N = "_chip__adornment_ccpk4_114", v = "_chip__remove_ccpk4_119", s = {
18
+ "u-typography-h1": "_u-typography-h1_ccpk4_1",
19
+ "u-typography-h2": "_u-typography-h2_ccpk4_8",
20
+ "u-typography-h3": "_u-typography-h3_ccpk4_15",
21
+ "u-typography-h4": "_u-typography-h4_ccpk4_22",
22
+ "u-typography-h5": "_u-typography-h5_ccpk4_29",
23
+ "u-typography-h6": "_u-typography-h6_ccpk4_36",
24
+ "u-typography-base": "_u-typography-base_ccpk4_43",
25
+ "u-typography-base--xxl": "_u-typography-base--xxl_ccpk4_48",
26
+ "u-typography-base--xl": "_u-typography-base--xl_ccpk4_52",
27
+ "u-typography-base--lg": "_u-typography-base--lg_ccpk4_56",
28
+ "u-typography-base--sm": "_u-typography-base--sm_ccpk4_60",
29
+ chip: C,
30
+ "u-typography-base--bold": "_u-typography-base--bold_ccpk4_64",
31
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_ccpk4_67",
32
+ "u-typography-base--underlined": "_u-typography-base--underlined_ccpk4_70",
33
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_ccpk4_73",
34
+ "chip--button": "_chip--button_ccpk4_89",
35
+ "chip--outlined": "_chip--outlined_ccpk4_102",
36
+ "chip--contained": "_chip--contained_ccpk4_108",
37
+ chip__adornment: N,
38
+ chip__remove: v,
39
+ "chip__remove--disabled": "_chip__remove--disabled_ccpk4_130",
40
+ "chip-loading": "_chip-loading_ccpk4_134"
41
+ }, T = d((a, t) => {
42
+ const { children: c, onClickContent: e, disabled: r, className: i, variant: l } = a;
43
+ let o = n(
44
+ s.chip,
45
+ { [s["chip--outlined"]]: l === "outlined" },
46
+ { [s["chip--contained"]]: l === "contained" },
47
+ i
48
+ );
49
+ return e ? (o += ` ${s["chip--button"]}`, /* @__PURE__ */ p(
50
+ x,
51
+ {
52
+ onClick: e,
53
+ disabled: r,
54
+ "data-testid": a["data-testid"],
55
+ ref: t,
56
+ className: o,
57
+ children: c
58
+ }
59
+ )) : /* @__PURE__ */ p("span", { "data-testid": a["data-testid"], ref: t, className: o, children: c });
60
+ }), A = (a) => {
61
+ const { icon: t, disabled: c = !1, className: e } = a;
62
+ if (t) {
63
+ const r = n(s.chip__adornment, e), i = c ? m(t, { color: "rgb(var(--gray-95-rgb), 0.4)" }) : t;
64
+ return /* @__PURE__ */ p("span", { className: r, children: i });
65
+ }
66
+ return null;
67
+ }, G = d((a, t) => {
68
+ const {
69
+ label: c,
70
+ className: e,
71
+ onClickContent: r,
72
+ leftAdornment: i,
73
+ loading: l = !1,
74
+ disabled: o = !1,
75
+ variant: g = "default",
76
+ onClickRemove: y
77
+ } = a;
78
+ return l ? /* @__PURE__ */ p(
79
+ f,
80
+ {
81
+ className: n(s["chip-loading"], a["className-skeleton"]),
82
+ "data-testid": a["data-testid-skeleton"]
83
+ }
84
+ ) : /* @__PURE__ */ u(
85
+ T,
86
+ {
87
+ ref: t,
88
+ "data-testid": a["data-testid"],
89
+ onClickContent: r,
90
+ disabled: o,
91
+ className: e,
92
+ variant: g,
93
+ children: [
94
+ i && /* @__PURE__ */ p(A, { ...i, disabled: o }),
95
+ c,
96
+ y && /* @__PURE__ */ p(
97
+ "span",
98
+ {
99
+ className: n(s.chip__remove, { [s["chip__remove--disabled"]]: o }),
100
+ role: "button",
101
+ tabIndex: o ? -1 : 0,
102
+ "aria-label": "remove",
103
+ onClick: (_) => {
104
+ _ == null || _.stopPropagation(), _ == null || _.nativeEvent.stopImmediatePropagation(), y();
105
+ },
106
+ "aria-disabled": o,
107
+ children: /* @__PURE__ */ p(b, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
108
+ }
109
+ )
110
+ ]
111
+ }
112
+ );
113
+ }), H = d((a, t) => {
114
+ const { text: c, isSelected: e = !1, value: r, onChange: i } = a;
115
+ return /* @__PURE__ */ u(
116
+ "label",
117
+ {
118
+ className: n([h.toggle__label], { [h["toggle__label--selected"]]: e }),
119
+ "data-testid": a["data-testid"],
120
+ children: [
121
+ /* @__PURE__ */ p(
122
+ "input",
123
+ {
124
+ className: n([h.toggle__input]),
125
+ type: "radio",
126
+ ref: t,
127
+ value: r.toString(),
128
+ onChange: () => i(r),
129
+ role: "radio",
130
+ checked: e,
131
+ "aria-checked": e
132
+ }
133
+ ),
134
+ /* @__PURE__ */ p(k, { bold: !0, children: c })
135
+ ]
136
+ }
137
+ );
138
+ });
139
+ export {
140
+ G as C,
141
+ H as T
142
+ };
@@ -1 +1 @@
1
- ._skeleton_1lho5_1:not(._skeleton--table-type_1lho5_1){background-image:linear-gradient(.25turn,transparent,var(--gray-5),transparent),linear-gradient(var(--gray-10),var(--gray-10));background-repeat:no-repeat;background-position:200% 0,0 0;background-size:200% auto;border-radius:var(--border-radius);animation:_skeletonLoading_1lho5_1 1.5s infinite}._skeleton_1lho5_1:not(._skeleton--table-type_1lho5_1):not(thead){display:block;width:100%;height:1.25rem;content:" "}._skeleton_1lho5_1:not(._skeleton--table-type_1lho5_1)._skeleton--circle-type_1lho5_15{border-radius:50%}._skeleton_1lho5_1._skeleton--table-type_1lho5_1{display:table;width:100%;border-spacing:0}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 thead tr{background-color:var(--gray-10)}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 th ._skeleton_1lho5_1{height:.5rem;background:var(--white-100);animation:none}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 td ._skeleton_1lho5_1{height:.804rem}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 thead tr th:first-child{border-radius:var(--border-radius) 0 0 var(--border-radius)}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 thead tr th:last-child{border-radius:0 var(--border-radius) var(--border-radius) 0}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 thead,._skeleton_1lho5_1._skeleton--table-type_1lho5_1 tr,._skeleton_1lho5_1._skeleton--table-type_1lho5_1 td,._skeleton_1lho5_1._skeleton--table-type_1lho5_1 tbody{display:inherit;border:none}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 thead{display:table-header-group}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 tbody{display:table-row-group}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 tr{display:table-row}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 td,._skeleton_1lho5_1._skeleton--table-type_1lho5_1 th{display:table-cell;padding:1.6621rem 1rem;border:none}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 tr:nth-child(2n){background:inherit}._skeleton_1lho5_1._skeleton--table-type_1lho5_1 tr+tr td{border-top:1px solid var(--gray-10)}@keyframes _skeletonLoading_1lho5_1{to{background-position:-100% 0,0 0}}
1
+ ._skeleton_dtmoz_1{display:block;width:100%;height:1.25rem;content:" ";background-image:linear-gradient(.25turn,transparent,var(--gray-5),transparent),linear-gradient(var(--gray-10),var(--gray-10));background-repeat:no-repeat;background-position:200% 0,0 0;background-size:200% auto;border-radius:var(--border-radius);animation:_skeletonLoading_dtmoz_1 1.5s infinite}._skeleton_dtmoz_1._skeleton--circle-type_dtmoz_13{border-radius:50%}._skeleton--table-type_dtmoz_17{display:table;width:100%;border-spacing:0}._skeleton--table-type_dtmoz_17 thead tr{background-color:var(--gray-10)}._skeleton--table-type_dtmoz_17 th ._skeleton_dtmoz_1{height:.5rem;background:var(--white-100);animation:none}._skeleton--table-type_dtmoz_17 td ._skeleton_dtmoz_1{height:.804rem}._skeleton--table-type_dtmoz_17 thead tr th:first-child{border-radius:var(--border-radius) 0 0 var(--border-radius)}._skeleton--table-type_dtmoz_17 thead tr th:last-child{border-radius:0 var(--border-radius) var(--border-radius) 0}._skeleton--table-type_dtmoz_17 thead,._skeleton--table-type_dtmoz_17 tr,._skeleton--table-type_dtmoz_17 td,._skeleton--table-type_dtmoz_17 tbody{display:inherit;border:none}._skeleton--table-type_dtmoz_17 thead{display:table-header-group}._skeleton--table-type_dtmoz_17 tbody{display:table-row-group}._skeleton--table-type_dtmoz_17 tr{display:table-row}._skeleton--table-type_dtmoz_17 td,._skeleton--table-type_dtmoz_17 th{display:table-cell;padding:1.6621rem 1rem;border:none}._skeleton--table-type_dtmoz_17 tr:nth-child(2n){background:inherit}._skeleton--table-type_dtmoz_17 tr+tr td{border-top:1px solid var(--gray-10)}@keyframes _skeletonLoading_dtmoz_1{to{background-position:-100% 0,0 0}}
@@ -1 +1 @@
1
- ._u-typography-h1_16u49_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_16u49_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_16u49_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_16u49_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_16u49_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_16u49_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_16u49_43{font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_16u49_48{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_16u49_52{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_16u49_56{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_16u49_60,._chip_16u49_60{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_16u49_64,._chip_16u49_60{font-weight:var(--base-bold)}._u-typography-base--strikethrough_16u49_67{text-decoration:line-through}._u-typography-base--underlined_16u49_70{text-decoration:underline}._u-typography-base--strikethrough-underlined_16u49_73{text-decoration:underline line-through}._chip_16u49_60{display:flex;align-items:center;width:fit-content;padding:.375rem .5rem;background-color:var(--cream);border-width:1px;border-radius:calc(var(--border-radius-soft) * 4)}._chip_16u49_60:not(:disabled){color:rgb(var(--gray-95-rgb) .65)}._chip--button_16u49_89{cursor:pointer;border-color:transparent}._chip--button_16u49_89:disabled{cursor:initial}._chip--button_16u49_89:focus-visible{outline:none}._chip--button_16u49_89:focus{outline:2px solid var(--black-100)}._chip--outlined_16u49_102{padding:.3125rem .5rem;background-color:var(--white-100);border:1px solid var(--border);border-radius:calc(var(--border-radius-soft) * 4)}._chip--contained_16u49_108{padding:.3125rem .5rem;border:1px solid var(--border);border-color:var(--accent);border-radius:calc(var(--border-radius-soft) * 4)}._chip__adornment_16u49_114{display:flex;align-items:center;margin-right:.5rem}._chip__remove_16u49_119{display:flex;margin-left:.5rem}._chip__remove_16u49_119:focus-visible{outline:none}._chip__remove_16u49_119:focus:not(:disabled){border-radius:calc(var(--border-radius-soft) * 4);outline:2px solid var(--black-100)}._chip__remove--disabled_16u49_130{cursor:default}._chip__skeleton_16u49_133{display:inline-flex;width:6rem;height:2rem;border-radius:4rem}
1
+ ._u-typography-h1_ccpk4_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_ccpk4_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_ccpk4_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_ccpk4_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_ccpk4_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_ccpk4_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_ccpk4_43{font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_ccpk4_48{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_ccpk4_52{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_ccpk4_56{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_ccpk4_60,._chip_ccpk4_60{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_ccpk4_64,._chip_ccpk4_60{font-weight:var(--base-bold)}._u-typography-base--strikethrough_ccpk4_67{text-decoration:line-through}._u-typography-base--underlined_ccpk4_70{text-decoration:underline}._u-typography-base--strikethrough-underlined_ccpk4_73{text-decoration:underline line-through}._chip_ccpk4_60{display:flex;align-items:center;width:fit-content;padding:.375rem .5rem;background-color:var(--cream);border-width:1px;border-radius:calc(var(--border-radius-soft) * 4)}._chip_ccpk4_60:not(:disabled){color:rgb(var(--gray-95-rgb) .65)}._chip--button_ccpk4_89{cursor:pointer;border-color:transparent}._chip--button_ccpk4_89:disabled{cursor:initial}._chip--button_ccpk4_89:focus-visible{outline:none}._chip--button_ccpk4_89:focus{outline:2px solid var(--black-100)}._chip--outlined_ccpk4_102{padding:.3125rem .5rem;background-color:var(--white-100);border:1px solid var(--border);border-radius:calc(var(--border-radius-soft) * 4)}._chip--contained_ccpk4_108{padding:.3125rem .5rem;border:1px solid var(--border);border-color:var(--accent);border-radius:calc(var(--border-radius-soft) * 4)}._chip__adornment_ccpk4_114{display:flex;align-items:center;margin-right:.5rem}._chip__remove_ccpk4_119{display:flex;margin-left:.5rem}._chip__remove_ccpk4_119:focus-visible{outline:none}._chip__remove_ccpk4_119:focus:not(:disabled){border-radius:calc(var(--border-radius-soft) * 4);outline:2px solid var(--black-100)}._chip__remove--disabled_ccpk4_130{cursor:default}._chip-loading_ccpk4_134{display:inline-flex;width:6rem;height:2rem;border-radius:4rem}
@@ -3,7 +3,7 @@ import "react";
3
3
  import "../../clsx-DB4S2d7J.js";
4
4
  import "../Icon/Icon.js";
5
5
  import "../Button/Button.js";
6
- import { C as j } from "../../Toggle-BnPepwWO.js";
6
+ import { C as j } from "../../Toggle-BXcLAMNy.js";
7
7
  import "../Dialog/Backdrop.js";
8
8
  import "../Typography/Typography.js";
9
9
  import "../IconButton/IconButton.js";
@@ -1,19 +1,19 @@
1
1
  import '../../assets/Skeleton.css';
2
- import { jsx as l, jsxs as w } from "react/jsx-runtime";
2
+ import { jsx as t, jsxs as w } from "react/jsx-runtime";
3
3
  import { c as r } from "../../clsx-DB4S2d7J.js";
4
- const N = "_skeleton_1lho5_1", b = "_skeletonLoading_1lho5_1", t = {
4
+ const N = "_skeleton_dtmoz_1", b = "_skeletonLoading_dtmoz_1", o = {
5
5
  skeleton: N,
6
- "skeleton--table-type": "_skeleton--table-type_1lho5_1",
7
6
  skeletonLoading: b,
8
- "skeleton--circle-type": "_skeleton--circle-type_1lho5_15"
9
- }, i = (e) => /* @__PURE__ */ l("div", { ...e, className: r(t.skeleton, e.className) }), $ = ({ size: e = "4rem", ...s }) => {
10
- const n = r(t.skeleton, t["skeleton--circle-type"], s.className);
11
- return /* @__PURE__ */ l("div", { ...s, style: { width: e, height: e }, className: n });
12
- }, h = (e = 30) => `${Math.floor(Math.random() * (100 - e + 1) + e)}%`, C = ({ columns: e = 5, rows: s = 5, autoWidth: n = !0, ...c }) => {
13
- const d = r(t.skeleton, t["skeleton--table-type"], c.className), a = `${100 / e}%`, k = /* @__PURE__ */ l("tr", { children: new Array(e).fill(null).map((y, o) => /* @__PURE__ */ l("th", { style: { width: a }, children: /* @__PURE__ */ l(i, { style: { width: n ? h(50) : "100%" } }) }, `row-columns-${o}`)) }), m = new Array(s).fill(null).map((y, o) => /* @__PURE__ */ l("tr", { children: new Array(e).fill(null).map((f, _) => /* @__PURE__ */ l("td", { style: { width: a }, children: /* @__PURE__ */ l(i, { style: { width: n ? h() : "100%" } }) }, `row-${o}-cell-${_}`)) }, `row-${o}`));
14
- return /* @__PURE__ */ w("table", { ...c, className: d, children: [
15
- /* @__PURE__ */ l("thead", { children: k }),
16
- /* @__PURE__ */ l("tbody", { children: m })
7
+ "skeleton--circle-type": "_skeleton--circle-type_dtmoz_13",
8
+ "skeleton--table-type": "_skeleton--table-type_dtmoz_17"
9
+ }, i = (e) => /* @__PURE__ */ t("div", { ...e, className: r(o.skeleton, e.className) }), $ = ({ size: e = "4rem", ...l }) => {
10
+ const s = r(o.skeleton, o["skeleton--circle-type"], l.className);
11
+ return /* @__PURE__ */ t("div", { ...l, style: { width: e, height: e }, className: s });
12
+ }, d = (e = 30) => `${Math.floor(Math.random() * (100 - e + 1) + e)}%`, C = ({ columns: e = 5, rows: l = 5, autoWidth: s = !0, ...c }) => {
13
+ const m = r(o["skeleton--table-type"], c.className), a = `${100 / e}%`, h = /* @__PURE__ */ t("tr", { children: new Array(e).fill(null).map((y, n) => /* @__PURE__ */ t("th", { style: { width: a }, children: /* @__PURE__ */ t(i, { style: { width: s ? d(50) : "100%" } }) }, `row-columns-${n}`)) }), k = new Array(l).fill(null).map((y, n) => /* @__PURE__ */ t("tr", { children: new Array(e).fill(null).map((f, _) => /* @__PURE__ */ t("td", { style: { width: a }, children: /* @__PURE__ */ t(i, { style: { width: s ? d() : "100%" } }) }, `row-${n}-cell-${_}`)) }, `row-${n}`));
14
+ return /* @__PURE__ */ w("table", { ...c, className: m, children: [
15
+ /* @__PURE__ */ t("thead", { children: h }),
16
+ /* @__PURE__ */ t("tbody", { children: k })
17
17
  ] });
18
18
  };
19
19
  export {
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../clsx-DB4S2d7J.js";
4
4
  import "../Button/Button.js";
5
- import { T } from "../../Toggle-BnPepwWO.js";
5
+ import { T } from "../../Toggle-BXcLAMNy.js";
6
6
  import "../Dialog/Backdrop.js";
7
7
  import "../Typography/Typography.js";
8
8
  import "../IconButton/IconButton.js";
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../Toggle-BnPepwWO.js";
1
+ import { T as e } from "../../Toggle-BXcLAMNy.js";
2
2
  import { G as p } from "../../Group-B3p31ftp.js";
3
3
  export {
4
4
  p as ToggleGroup,
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Advice as e } from "./components/Advice/Advice.js";
2
2
  import { Button as p } from "./components/Button/Button.js";
3
3
  import { Checkbox as f } from "./components/Checkbox/Checkbox.js";
4
- import { C as m, T as n } from "./Toggle-BnPepwWO.js";
4
+ import { C as m, T as n } from "./Toggle-BXcLAMNy.js";
5
5
  import { Dialog as i } from "./components/Dialog/Dialog.js";
6
6
  import { FamilyAndIcons as s, Icon as c } from "./components/Icon/Icon.js";
7
7
  import { IconButton as S } from "./components/IconButton/IconButton.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "0.0.1-alpha.28",
4
+ "version": "0.0.1-alpha.29",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -91,4 +91,4 @@
91
91
  "@mui/base": "^5.0.0-beta.40",
92
92
  "@mui/material": "^5.15.15"
93
93
  }
94
- }
94
+ }
@@ -1,143 +0,0 @@
1
- import './assets/Toggle.css';
2
- import { jsx as r, jsxs as y } from "react/jsx-runtime";
3
- import { forwardRef as u, cloneElement as g } from "react";
4
- import { c as l } from "./clsx-DB4S2d7J.js";
5
- import "./components/Button/Button.js";
6
- import { Icon as b } from "./components/Icon/Icon.js";
7
- import "./components/Dialog/Backdrop.js";
8
- import { Typography as f } from "./components/Typography/Typography.js";
9
- import "./components/IconButton/IconButton.js";
10
- import "./components/Select/Select.js";
11
- import { Skeleton as k } from "./components/Skeleton/Skeleton.js";
12
- import "./components/Table/Table.js";
13
- import "./components/Tabs/Tabs.js";
14
- import { s as c } from "./Group-B3p31ftp.js";
15
- import "./contexts/SnackbarProvider/SnackbarProvider.js";
16
- import { B as x } from "./Button-2b1peDFT.js";
17
- const C = "_chip_16u49_60", N = "_chip__adornment_16u49_114", v = "_chip__remove_16u49_119", T = "_chip__skeleton_16u49_133", _ = {
18
- "u-typography-h1": "_u-typography-h1_16u49_1",
19
- "u-typography-h2": "_u-typography-h2_16u49_8",
20
- "u-typography-h3": "_u-typography-h3_16u49_15",
21
- "u-typography-h4": "_u-typography-h4_16u49_22",
22
- "u-typography-h5": "_u-typography-h5_16u49_29",
23
- "u-typography-h6": "_u-typography-h6_16u49_36",
24
- "u-typography-base": "_u-typography-base_16u49_43",
25
- "u-typography-base--xxl": "_u-typography-base--xxl_16u49_48",
26
- "u-typography-base--xl": "_u-typography-base--xl_16u49_52",
27
- "u-typography-base--lg": "_u-typography-base--lg_16u49_56",
28
- "u-typography-base--sm": "_u-typography-base--sm_16u49_60",
29
- chip: C,
30
- "u-typography-base--bold": "_u-typography-base--bold_16u49_64",
31
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_16u49_67",
32
- "u-typography-base--underlined": "_u-typography-base--underlined_16u49_70",
33
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_16u49_73",
34
- "chip--button": "_chip--button_16u49_89",
35
- "chip--outlined": "_chip--outlined_16u49_102",
36
- "chip--contained": "_chip--contained_16u49_108",
37
- chip__adornment: N,
38
- chip__remove: v,
39
- "chip__remove--disabled": "_chip__remove--disabled_16u49_130",
40
- chip__skeleton: T
41
- }, R = u((t, e) => {
42
- const { children: i, onClickContent: a, disabled: s, className: p, variant: h } = t;
43
- let o = l(
44
- _.chip,
45
- { [_["chip--outlined"]]: h === "outlined" },
46
- { [_["chip--contained"]]: h === "contained" },
47
- p
48
- );
49
- return a ? (o += ` ${_["chip--button"]}`, /* @__PURE__ */ r(
50
- x,
51
- {
52
- onClick: a,
53
- disabled: s,
54
- "data-testid": t["data-testid"],
55
- ref: e,
56
- className: o,
57
- children: i
58
- }
59
- )) : /* @__PURE__ */ r("span", { "data-testid": t["data-testid"], ref: e, className: o, children: i });
60
- }), A = (t) => {
61
- const { icon: e, disabled: i = !1, className: a } = t;
62
- if (e) {
63
- const s = l(_.chip__adornment, a), p = i ? g(e, { color: "rgb(var(--gray-95-rgb), 0.4)" }) : e;
64
- return /* @__PURE__ */ r("span", { className: s, children: p });
65
- }
66
- return null;
67
- }, H = u((t, e) => {
68
- const {
69
- label: i,
70
- className: a,
71
- onClickContent: s,
72
- leftAdornment: p,
73
- loading: h = !1,
74
- disabled: o = !1,
75
- variant: m = "default",
76
- onClickRemove: d
77
- } = t;
78
- return h ? /* @__PURE__ */ r(
79
- k,
80
- {
81
- className: t["className-skeleton"],
82
- style: { width: "6rem", height: "2rem", borderRadius: "4rem", display: "inline-flex" },
83
- "data-testid": t["data-testid-skeleton"]
84
- }
85
- ) : /* @__PURE__ */ y(
86
- R,
87
- {
88
- ref: e,
89
- "data-testid": t["data-testid"],
90
- onClickContent: s,
91
- disabled: o,
92
- className: a,
93
- variant: m,
94
- children: [
95
- p && /* @__PURE__ */ r(A, { ...p, disabled: o }),
96
- i,
97
- d && /* @__PURE__ */ r(
98
- "span",
99
- {
100
- className: l(_.chip__remove, { [_["chip__remove--disabled"]]: o }),
101
- role: "button",
102
- tabIndex: o ? -1 : 0,
103
- "aria-label": "remove",
104
- onClick: (n) => {
105
- n == null || n.stopPropagation(), n == null || n.nativeEvent.stopImmediatePropagation(), d();
106
- },
107
- "aria-disabled": o,
108
- children: /* @__PURE__ */ r(b, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
109
- }
110
- )
111
- ]
112
- }
113
- );
114
- }), J = u((t, e) => {
115
- const { text: i, isSelected: a = !1, value: s, onChange: p } = t;
116
- return /* @__PURE__ */ y(
117
- "label",
118
- {
119
- className: l([c.toggle__label], { [c["toggle__label--selected"]]: a }),
120
- "data-testid": t["data-testid"],
121
- children: [
122
- /* @__PURE__ */ r(
123
- "input",
124
- {
125
- className: l([c.toggle__input]),
126
- type: "radio",
127
- ref: e,
128
- value: s.toString(),
129
- onChange: () => p(s),
130
- role: "radio",
131
- checked: a,
132
- "aria-checked": a
133
- }
134
- ),
135
- /* @__PURE__ */ r(f, { bold: !0, children: i })
136
- ]
137
- }
138
- );
139
- });
140
- export {
141
- H as C,
142
- J as T
143
- };