@pismo/marola 1.0.9 → 1.0.11
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/Dialog.module-Duis5XWM.js +1 -2
- package/dist/Group-ZXteFV4M.js +1 -2
- package/dist/Popover.module-B4boCutS.js +1 -2
- package/dist/SelectButton-B38avP9u.js +1 -2
- package/dist/Tabs.module-By78tLjn.js +25 -0
- package/dist/Toggle-BuZjueQ7.js +1 -2
- package/dist/assets/Tabs.css +1 -1
- package/dist/components/Adornment/Adornment.js +1 -2
- package/dist/components/Advice/Advice.js +1 -2
- package/dist/components/Alert/Alert.js +1 -2
- package/dist/components/Autocomplete/Autocomplete.js +1 -2
- package/dist/components/Avatar/Avatar.js +1 -2
- package/dist/components/Button/Button.js +1 -2
- package/dist/components/Checkbox/Checkbox.js +1 -2
- package/dist/components/Description/Description.js +1 -2
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +1 -2
- package/dist/components/IconButton/IconButton.js +1 -2
- package/dist/components/Input/Input.js +235 -235
- package/dist/components/InputSearch/InputSearch.js +1 -2
- package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -2
- package/dist/components/PageHeader/PageHeader.js +1 -2
- package/dist/components/Pagination/Pagination.js +1 -2
- package/dist/components/Pagination/Pagination.test.d.ts +1 -0
- package/dist/components/RadioButton/RadioButton.js +1 -2
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -2
- package/dist/components/Skeleton/Skeleton.js +1 -2
- package/dist/components/Snackbar/Snackbar.js +1 -2
- package/dist/components/SortTooltip/SortTooltip.js +1 -2
- package/dist/components/Stepper/Stepper.js +1 -2
- package/dist/components/StepperNavigator/StepperNavigator.js +1 -2
- package/dist/components/Table/Table.js +1 -2
- package/dist/components/Tabs/Tab.js +63 -63
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tag/Tag.js +1 -2
- package/dist/components/TextDisplay/TextDisplay.js +1 -2
- package/dist/components/Toggle/Toggle.js +1 -2
- package/dist/components/Tooltip/Tooltip.js +1 -2
- package/dist/components/Typography/Typography.js +1 -2
- package/package.json +2 -2
- package/dist/Tabs.module-DSjBjg0Z.js +0 -25
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import '../../assets/RadioButton.css';
|
|
2
1
|
import { jsxs as h, jsx as i } from "react/jsx-runtime";
|
|
3
2
|
import { useState as x } from "react";
|
|
4
3
|
import { c as o } from "../../clsx-DB4S2d7J.js";
|
|
5
4
|
import { Icon as y } from "../Icon/Icon.js";
|
|
6
5
|
import { Typography as C } from "../Typography/Typography.js";
|
|
7
|
-
const S = "_radio_1t160_1", a = {
|
|
6
|
+
import '../../assets/RadioButton.css';const S = "_radio_1t160_1", a = {
|
|
8
7
|
radio: S,
|
|
9
8
|
"radio--label": "_radio--label_1t160_9",
|
|
10
9
|
"radio--label__disabled": "_radio--label__disabled_1t160_12",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import '../../assets/ResultWithChips.css';
|
|
2
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
2
|
import { C as t } from "../../Toggle-BuZjueQ7.js";
|
|
4
|
-
const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
|
|
3
|
+
import '../../assets/ResultWithChips.css';const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
|
|
5
4
|
container: r,
|
|
6
5
|
"chip-item-wrapper": "_chip-item-wrapper_hgp0p_8",
|
|
7
6
|
label: o,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import '../../assets/Skeleton.css';
|
|
2
1
|
import { jsx as t, jsxs as N } from "react/jsx-runtime";
|
|
3
2
|
import { c as r } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
const u = "_skeleton_mst8q_1", b = "_skeletonLoading_mst8q_1", o = {
|
|
3
|
+
import '../../assets/Skeleton.css';const u = "_skeleton_mst8q_1", b = "_skeletonLoading_mst8q_1", o = {
|
|
5
4
|
skeleton: u,
|
|
6
5
|
skeletonLoading: b,
|
|
7
6
|
"skeleton--circle-type": "_skeleton--circle-type_mst8q_13",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '../../assets/Snackbar.css';
|
|
2
1
|
import { jsx as h, jsxs as Y } from "react/jsx-runtime";
|
|
3
2
|
import * as w from "react";
|
|
4
3
|
import C, { useState as V, useRef as X } from "react";
|
|
@@ -10,7 +9,7 @@ import { u as ee } from "../../useTimeout-DxF9kiZL.js";
|
|
|
10
9
|
import { u as I } from "../../useEventCallback-BAQJJ3ye.js";
|
|
11
10
|
import { C as B } from "../../ClickAwayListener-DbEYZpyh.js";
|
|
12
11
|
import { R as P } from "../../index-bQFToy-I.js";
|
|
13
|
-
const W = "Snackbar";
|
|
12
|
+
import '../../assets/Snackbar.css';const W = "Snackbar";
|
|
14
13
|
function te(u) {
|
|
15
14
|
return z(W, u);
|
|
16
15
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import '../../assets/SortTooltip.css';
|
|
2
1
|
import { jsx as h, jsxs as s } from "react/jsx-runtime";
|
|
3
2
|
import { c as d } from "../../clsx-DB4S2d7J.js";
|
|
4
3
|
import { Tooltip as b } from "../Tooltip/Tooltip.js";
|
|
5
4
|
import * as t from "react";
|
|
6
|
-
const f = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M4.73768 14.6906C4.35893 15.105 3.64205 15.105 3.26299 14.6906L0.541112 11.6878C0.167987 11.28 0.195487 10.6469 0.602643 10.2731C1.00952 9.89969 1.64233 9.92812 2.01577 10.3348L3.00017 11.4406V2.00094C3.00017 1.44781 3.44799 1 4.00017 1C4.55236 1 5.00017 1.44781 5.00017 2.00094V11.4384L6.01267 10.3325C6.3708 9.94219 7.00236 9.88281 7.4258 10.2708C7.83299 10.6443 7.86018 11.2777 7.48733 11.6855L4.73768 14.6906Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M14.0001 13H12.4141L14.7073 10.7069C14.9934 10.4208 15.0788 9.99098 14.9241 9.61691C14.7693 9.24285 14.4032 9.00004 13.972 9.00004H9.97196C9.44696 9.00004 9.00008 9.44691 9.00008 10C9.00008 10.5532 9.4479 11 10.0001 11H11.586L9.2929 13.2932C9.00677 13.5793 8.92133 14.0091 9.07608 14.3832C9.23083 14.7572 9.59696 15 9.97196 15H13.9438C14.5532 15 15.0001 14.5532 15.0001 14C15.0001 13.4469 14.5532 13 14.0001 13ZM15.3938 6.54066L12.8941 1.53754C12.5554 0.855977 11.4441 0.855977 11.1054 1.53754L8.60633 6.54066C8.35927 7.03785 8.55946 7.64191 9.05352 7.89035C9.54946 8.13791 10.1485 7.93651 10.3951 7.44035L10.6186 6.99066H13.3821L13.6056 7.44035C13.7986 7.82879 14.3547 8.18629 14.9472 7.89035C15.4407 7.64379 15.6407 7.03754 15.3938 6.54066ZM11.4938 5.23129L12.0001 4.20941L12.507 5.2291H11.4938V5.23129Z", fill: "#1897F3" })), m = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M0.512792 11.6594C0.139667 11.2516 0.167167 10.6184 0.574323 10.2447C0.766229 10.0688 1.00839 9.98175 1.24964 9.98175C1.52063 9.98175 1.79026 10.0912 1.98745 10.3064L2.99998 11.4406V2.00094C2.99998 1.44781 3.44779 1 3.99998 1C4.55217 1 4.99998 1.44781 4.99998 2.00094V11.4384L6.01248 10.3325C6.38748 9.92812 7.01873 9.89687 7.42498 10.2719C7.83216 10.6453 7.85935 11.2787 7.48651 11.6866L4.76463 14.6894C4.38588 15.1037 3.66901 15.1037 3.28995 14.6894L0.512792 11.6594Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M10.0002 3H11.5862L9.29303 5.29313C9.00691 5.57925 8.92147 6.00906 9.07622 6.38313C9.23097 6.75719 9.59591 7 9.99997 7H13.9718C14.5533 6.97188 15.0002 6.55313 15.0002 6C15.0002 5.44688 14.5524 5 14.0002 5H12.4143L14.7074 2.70688C14.9935 2.42075 15.079 1.99094 14.9242 1.61688C14.7695 1.24281 14.4033 1 13.9721 1H10.0002C9.44709 1 9.00022 1.44719 9.00022 2C9.00022 2.55281 9.44709 3 10.0002 3ZM15.394 13.5406L12.8943 8.5375C12.5555 7.85594 11.4443 7.85594 11.1055 8.5375L8.60584 13.5406C8.35878 14.0378 8.55897 14.6419 9.05303 14.8903C9.54897 15.1379 10.148 14.9365 10.3946 14.4403L10.6182 13.9906H13.3816L13.6052 14.4403C13.7981 14.8288 14.3542 15.1863 14.9467 14.8903C15.4408 14.6438 15.6408 14.0375 15.394 13.5406ZM11.494 12.2313L12.0002 11.2094L12.5071 12.2291H11.494V12.2313Z", fill: "#1897F3" })), a = {
|
|
5
|
+
import '../../assets/SortTooltip.css';const f = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M4.73768 14.6906C4.35893 15.105 3.64205 15.105 3.26299 14.6906L0.541112 11.6878C0.167987 11.28 0.195487 10.6469 0.602643 10.2731C1.00952 9.89969 1.64233 9.92812 2.01577 10.3348L3.00017 11.4406V2.00094C3.00017 1.44781 3.44799 1 4.00017 1C4.55236 1 5.00017 1.44781 5.00017 2.00094V11.4384L6.01267 10.3325C6.3708 9.94219 7.00236 9.88281 7.4258 10.2708C7.83299 10.6443 7.86018 11.2777 7.48733 11.6855L4.73768 14.6906Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M14.0001 13H12.4141L14.7073 10.7069C14.9934 10.4208 15.0788 9.99098 14.9241 9.61691C14.7693 9.24285 14.4032 9.00004 13.972 9.00004H9.97196C9.44696 9.00004 9.00008 9.44691 9.00008 10C9.00008 10.5532 9.4479 11 10.0001 11H11.586L9.2929 13.2932C9.00677 13.5793 8.92133 14.0091 9.07608 14.3832C9.23083 14.7572 9.59696 15 9.97196 15H13.9438C14.5532 15 15.0001 14.5532 15.0001 14C15.0001 13.4469 14.5532 13 14.0001 13ZM15.3938 6.54066L12.8941 1.53754C12.5554 0.855977 11.4441 0.855977 11.1054 1.53754L8.60633 6.54066C8.35927 7.03785 8.55946 7.64191 9.05352 7.89035C9.54946 8.13791 10.1485 7.93651 10.3951 7.44035L10.6186 6.99066H13.3821L13.6056 7.44035C13.7986 7.82879 14.3547 8.18629 14.9472 7.89035C15.4407 7.64379 15.6407 7.03754 15.3938 6.54066ZM11.4938 5.23129L12.0001 4.20941L12.507 5.2291H11.4938V5.23129Z", fill: "#1897F3" })), m = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M0.512792 11.6594C0.139667 11.2516 0.167167 10.6184 0.574323 10.2447C0.766229 10.0688 1.00839 9.98175 1.24964 9.98175C1.52063 9.98175 1.79026 10.0912 1.98745 10.3064L2.99998 11.4406V2.00094C2.99998 1.44781 3.44779 1 3.99998 1C4.55217 1 4.99998 1.44781 4.99998 2.00094V11.4384L6.01248 10.3325C6.38748 9.92812 7.01873 9.89687 7.42498 10.2719C7.83216 10.6453 7.85935 11.2787 7.48651 11.6866L4.76463 14.6894C4.38588 15.1037 3.66901 15.1037 3.28995 14.6894L0.512792 11.6594Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M10.0002 3H11.5862L9.29303 5.29313C9.00691 5.57925 8.92147 6.00906 9.07622 6.38313C9.23097 6.75719 9.59591 7 9.99997 7H13.9718C14.5533 6.97188 15.0002 6.55313 15.0002 6C15.0002 5.44688 14.5524 5 14.0002 5H12.4143L14.7074 2.70688C14.9935 2.42075 15.079 1.99094 14.9242 1.61688C14.7695 1.24281 14.4033 1 13.9721 1H10.0002C9.44709 1 9.00022 1.44719 9.00022 2C9.00022 2.55281 9.44709 3 10.0002 3ZM15.394 13.5406L12.8943 8.5375C12.5555 7.85594 11.4443 7.85594 11.1055 8.5375L8.60584 13.5406C8.35878 14.0378 8.55897 14.6419 9.05303 14.8903C9.54897 15.1379 10.148 14.9365 10.3946 14.4403L10.6182 13.9906H13.3816L13.6052 14.4403C13.7981 14.8288 14.3542 15.1863 14.9467 14.8903C15.4408 14.6438 15.6408 14.0375 15.394 13.5406ZM11.494 12.2313L12.0002 11.2094L12.5071 12.2291H11.494V12.2313Z", fill: "#1897F3" })), a = {
|
|
7
6
|
"u-typography-h1": "_u-typography-h1_3hhsf_1",
|
|
8
7
|
"u-typography-h2": "_u-typography-h2_3hhsf_8",
|
|
9
8
|
"u-typography-h3": "_u-typography-h3_3hhsf_15",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import '../../assets/Stepper.css';
|
|
2
1
|
import { jsx as s, jsxs as g } from "react/jsx-runtime";
|
|
3
2
|
import { c as r } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
const d = "_stepper_7fsnr_61", m = "_item_7fsnr_61", c = "_name_7fsnr_61", l = "_counter_7fsnr_65", t = {
|
|
3
|
+
import '../../assets/Stepper.css';const d = "_stepper_7fsnr_61", m = "_item_7fsnr_61", c = "_name_7fsnr_61", l = "_counter_7fsnr_65", t = {
|
|
5
4
|
"u-typography-h1": "_u-typography-h1_7fsnr_1",
|
|
6
5
|
"u-typography-h2": "_u-typography-h2_7fsnr_8",
|
|
7
6
|
"u-typography-h3": "_u-typography-h3_7fsnr_15",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import '../../assets/StepperNavigator.css';
|
|
2
1
|
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
3
2
|
import { c as i } from "../../clsx-DB4S2d7J.js";
|
|
4
3
|
import { Button as I } from "../Button/Button.js";
|
|
5
4
|
import { Icon as K } from "../Icon/Icon.js";
|
|
6
|
-
const _ = {
|
|
5
|
+
import '../../assets/StepperNavigator.css';const _ = {
|
|
7
6
|
"stepper-navigator": "_stepper-navigator_27f6m_1",
|
|
8
7
|
"cancel-button": "_cancel-button_27f6m_11",
|
|
9
8
|
"previous-button": "_previous-button_27f6m_20",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '../../assets/Table.css';
|
|
2
1
|
import { jsxs as y, jsx as l } from "react/jsx-runtime";
|
|
3
2
|
import * as c from "react";
|
|
4
3
|
import { useState as f } from "react";
|
|
@@ -6,7 +5,7 @@ import { c as m } from "../../clsx-DB4S2d7J.js";
|
|
|
6
5
|
import { paginationDefaultTranslations as b, Pagination as u } from "../Pagination/Pagination.js";
|
|
7
6
|
import { sortTooltipDefaultTranslations as T, SortTooltip as g } from "../SortTooltip/SortTooltip.js";
|
|
8
7
|
import { TableProvider as N, useTable as x } from "./TableContext.js";
|
|
9
|
-
const C = (r) => /* @__PURE__ */ c.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ c.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ c.createElement("path", { d: "M6.41658 3.93794C6.26731 3.93794 6.11798 3.88301 6.00423 3.77314L3.49991 1.35923L0.995768 3.77271C0.767904 3.99243 0.398763 3.99243 0.170898 3.77271C-0.0569661 3.55298 -0.0569661 3.19702 0.170898 2.97729L3.08756 0.164795C3.31543 -0.0549316 3.68457 -0.0549316 3.91243 0.164795L6.8291 2.97729C7.05697 3.19702 7.05697 3.55298 6.8291 3.77271C6.71553 3.88345 6.56605 3.93794 6.41658 3.93794Z", fill: "#1897F3" }), /* @__PURE__ */ c.createElement("path", { opacity: 0.4, d: "M6.41663 5.38022C6.26737 5.38022 6.11804 5.43516 6.00429 5.54502L3.49997 7.95894L0.99528 5.5437C0.767415 5.32397 0.398275 5.32397 0.17041 5.5437C-0.0574544 5.76343 -0.0574544 6.11938 0.17041 6.33911L3.08708 9.15161C3.31494 9.37134 3.68408 9.37134 3.91195 9.15161L6.82861 6.33911C7.05648 6.11938 7.05648 5.76343 6.82861 5.5437C6.71559 5.43472 6.56611 5.38022 6.41663 5.38022Z", fill: "#1897F3" })), /* @__PURE__ */ c.createElement("defs", null, /* @__PURE__ */ c.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ c.createElement("rect", { width: 7, height: 10, fill: "white" })))), L = "_table_yerpo_1", E = "_th__wrapper_yerpo_43", v = "_tr_yerpo_66", B = "_td_yerpo_70", t = {
|
|
8
|
+
import '../../assets/Table.css';const C = (r) => /* @__PURE__ */ c.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ c.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ c.createElement("path", { d: "M6.41658 3.93794C6.26731 3.93794 6.11798 3.88301 6.00423 3.77314L3.49991 1.35923L0.995768 3.77271C0.767904 3.99243 0.398763 3.99243 0.170898 3.77271C-0.0569661 3.55298 -0.0569661 3.19702 0.170898 2.97729L3.08756 0.164795C3.31543 -0.0549316 3.68457 -0.0549316 3.91243 0.164795L6.8291 2.97729C7.05697 3.19702 7.05697 3.55298 6.8291 3.77271C6.71553 3.88345 6.56605 3.93794 6.41658 3.93794Z", fill: "#1897F3" }), /* @__PURE__ */ c.createElement("path", { opacity: 0.4, d: "M6.41663 5.38022C6.26737 5.38022 6.11804 5.43516 6.00429 5.54502L3.49997 7.95894L0.99528 5.5437C0.767415 5.32397 0.398275 5.32397 0.17041 5.5437C-0.0574544 5.76343 -0.0574544 6.11938 0.17041 6.33911L3.08708 9.15161C3.31494 9.37134 3.68408 9.37134 3.91195 9.15161L6.82861 6.33911C7.05648 6.11938 7.05648 5.76343 6.82861 5.5437C6.71559 5.43472 6.56611 5.38022 6.41663 5.38022Z", fill: "#1897F3" })), /* @__PURE__ */ c.createElement("defs", null, /* @__PURE__ */ c.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ c.createElement("rect", { width: 7, height: 10, fill: "white" })))), L = "_table_yerpo_1", E = "_th__wrapper_yerpo_43", v = "_tr_yerpo_66", B = "_td_yerpo_70", t = {
|
|
10
9
|
table: L,
|
|
11
10
|
"table--fixed": "_table--fixed_yerpo_5",
|
|
12
11
|
"table--full-width": "_table--full-width_yerpo_8",
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { jsx as m, jsxs as j
|
|
1
|
+
import { jsx as m, jsxs as j } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Skeleton as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
14
|
-
function se(
|
|
15
|
-
return
|
|
3
|
+
import { forwardRef as k, useContext as H, useMemo as U } from "react";
|
|
4
|
+
import { c as B } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { Icon as D } from "../Icon/Icon.js";
|
|
6
|
+
import { Skeleton as L } from "../Skeleton/Skeleton.js";
|
|
7
|
+
import { u as W, T as $, s as c } from "../../Tabs.module-By78tLjn.js";
|
|
8
|
+
import { g as q, a as z, u as I, f as A, b as h, _ as G, c as J, P as e, d as K, e as Q } from "../../useSlotProps-C_I1kEHr.js";
|
|
9
|
+
import { u as X, c as Y } from "../../combineHooksSlotProps-C-zYvfnF.js";
|
|
10
|
+
import { u as Z } from "../../useId-BW-oWmul.js";
|
|
11
|
+
import { u as ee } from "../../useButton-DcihopJG.js";
|
|
12
|
+
import { u as te } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
13
|
+
const O = "Tab";
|
|
14
|
+
function se(o) {
|
|
15
|
+
return q(O, o);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
return
|
|
17
|
+
z(O, ["root", "selected", "disabled"]);
|
|
18
|
+
function oe(o) {
|
|
19
|
+
return o.size;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ae(o) {
|
|
22
22
|
const {
|
|
23
23
|
value: t,
|
|
24
|
-
rootRef:
|
|
24
|
+
rootRef: s,
|
|
25
25
|
disabled: r = !1,
|
|
26
26
|
id: d
|
|
27
|
-
} =
|
|
27
|
+
} = o, a = R.useRef(null), n = Z(d), {
|
|
28
28
|
value: u,
|
|
29
29
|
selectionFollowsFocus: b,
|
|
30
30
|
getTabPanelId: l
|
|
31
|
-
} =
|
|
31
|
+
} = W(), f = R.useMemo(() => ({
|
|
32
32
|
disabled: r,
|
|
33
33
|
ref: a,
|
|
34
34
|
id: n
|
|
35
35
|
}), [r, a, n]), {
|
|
36
|
-
id:
|
|
36
|
+
id: i,
|
|
37
37
|
index: g,
|
|
38
38
|
totalItemCount: T
|
|
39
|
-
} =
|
|
39
|
+
} = te(t ?? oe, f), {
|
|
40
40
|
getRootProps: _,
|
|
41
41
|
highlighted: C,
|
|
42
42
|
selected: p
|
|
43
|
-
} =
|
|
44
|
-
item:
|
|
43
|
+
} = X({
|
|
44
|
+
item: i
|
|
45
45
|
}), {
|
|
46
|
-
getRootProps:
|
|
46
|
+
getRootProps: v,
|
|
47
47
|
rootRef: P,
|
|
48
|
-
active:
|
|
49
|
-
focusVisible:
|
|
48
|
+
active: y,
|
|
49
|
+
focusVisible: F,
|
|
50
50
|
setFocusVisible: S
|
|
51
|
-
} =
|
|
51
|
+
} = ee({
|
|
52
52
|
disabled: r,
|
|
53
53
|
focusableWhenDisabled: !b,
|
|
54
54
|
type: "button"
|
|
55
|
-
}), x =
|
|
55
|
+
}), x = I(a, s, P), V = i !== void 0 ? l(i) : void 0;
|
|
56
56
|
return {
|
|
57
57
|
getRootProps: (N = {}) => {
|
|
58
|
-
const w =
|
|
58
|
+
const w = A(N), M = Y(_, v);
|
|
59
59
|
return h({}, N, M(w), {
|
|
60
60
|
role: "tab",
|
|
61
61
|
"aria-controls": V,
|
|
@@ -64,27 +64,27 @@ function ne(s) {
|
|
|
64
64
|
ref: x
|
|
65
65
|
});
|
|
66
66
|
},
|
|
67
|
-
active:
|
|
68
|
-
focusVisible:
|
|
67
|
+
active: y,
|
|
68
|
+
focusVisible: F,
|
|
69
69
|
highlighted: C,
|
|
70
70
|
index: g,
|
|
71
71
|
rootRef: x,
|
|
72
72
|
// the `selected` state isn't set on the server (it relies on effects to be calculated),
|
|
73
73
|
// so we fall back to checking the `value` prop with the selectedValue from the TabsContext
|
|
74
|
-
selected: p ||
|
|
74
|
+
selected: p || i === u,
|
|
75
75
|
setFocusVisible: S,
|
|
76
76
|
totalTabsCount: T
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const ne = ["action", "children", "disabled", "onChange", "onClick", "onFocus", "slotProps", "slots", "value"], re = (o) => {
|
|
80
80
|
const {
|
|
81
81
|
selected: t,
|
|
82
|
-
disabled:
|
|
83
|
-
} =
|
|
84
|
-
return
|
|
85
|
-
root: ["root", t && "selected",
|
|
86
|
-
},
|
|
87
|
-
},
|
|
82
|
+
disabled: s
|
|
83
|
+
} = o;
|
|
84
|
+
return K({
|
|
85
|
+
root: ["root", t && "selected", s && "disabled"]
|
|
86
|
+
}, Q(se));
|
|
87
|
+
}, E = /* @__PURE__ */ R.forwardRef(function(t, s) {
|
|
88
88
|
var r;
|
|
89
89
|
const {
|
|
90
90
|
children: d,
|
|
@@ -92,35 +92,35 @@ const re = ["action", "children", "disabled", "onChange", "onClick", "onFocus",
|
|
|
92
92
|
slotProps: n = {},
|
|
93
93
|
slots: u = {},
|
|
94
94
|
value: b
|
|
95
|
-
} = t, l =
|
|
95
|
+
} = t, l = G(t, ne), f = R.useRef(), i = I(f, s), {
|
|
96
96
|
active: g,
|
|
97
97
|
highlighted: T,
|
|
98
98
|
selected: _,
|
|
99
99
|
getRootProps: C
|
|
100
|
-
} =
|
|
101
|
-
rootRef:
|
|
100
|
+
} = ae(h({}, t, {
|
|
101
|
+
rootRef: i,
|
|
102
102
|
value: b
|
|
103
103
|
})), p = h({}, t, {
|
|
104
104
|
active: g,
|
|
105
105
|
disabled: a,
|
|
106
106
|
highlighted: T,
|
|
107
107
|
selected: _
|
|
108
|
-
}),
|
|
108
|
+
}), v = re(p), P = (r = u.root) != null ? r : "button", y = J({
|
|
109
109
|
elementType: P,
|
|
110
110
|
getSlotProps: C,
|
|
111
111
|
externalSlotProps: n.root,
|
|
112
112
|
externalForwardedProps: l,
|
|
113
113
|
additionalProps: {
|
|
114
|
-
ref:
|
|
114
|
+
ref: s
|
|
115
115
|
},
|
|
116
116
|
ownerState: p,
|
|
117
|
-
className:
|
|
117
|
+
className: v.root
|
|
118
118
|
});
|
|
119
|
-
return /* @__PURE__ */ m(P, h({},
|
|
119
|
+
return /* @__PURE__ */ m(P, h({}, y, {
|
|
120
120
|
children: d
|
|
121
121
|
}));
|
|
122
122
|
});
|
|
123
|
-
process.env.NODE_ENV !== "production" && (
|
|
123
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
124
124
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
125
125
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
126
126
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -166,25 +166,25 @@ process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
|
166
166
|
*/
|
|
167
167
|
value: e.oneOfType([e.number, e.string])
|
|
168
168
|
});
|
|
169
|
-
const
|
|
170
|
-
({ children:
|
|
171
|
-
const l =
|
|
172
|
-
() =>
|
|
173
|
-
|
|
174
|
-
t === (l == null ? void 0 : l.value) &&
|
|
175
|
-
|
|
176
|
-
n &&
|
|
177
|
-
n &&
|
|
169
|
+
const ge = k(
|
|
170
|
+
({ children: o, value: t, disabled: s, className: r, "data-testid": d, icon: a, chip: n, isLoading: u }, b) => {
|
|
171
|
+
const l = H($), f = U(
|
|
172
|
+
() => B(
|
|
173
|
+
c.tabs__tab,
|
|
174
|
+
t === (l == null ? void 0 : l.value) && c["tabs__tab--selected"],
|
|
175
|
+
s && !n && c["tabs__tab--disabled"],
|
|
176
|
+
n && c["tabs__tab--chip"],
|
|
177
|
+
n && s && c["tabs__tab--chip--disabled"],
|
|
178
178
|
r
|
|
179
179
|
),
|
|
180
|
-
[t, l,
|
|
180
|
+
[t, l, s, n]
|
|
181
181
|
);
|
|
182
|
-
return /* @__PURE__ */ m(
|
|
183
|
-
a && /* @__PURE__ */ m("span", { className:
|
|
184
|
-
|
|
182
|
+
return /* @__PURE__ */ m(E, { className: f, disabled: s, value: t, "data-testid": d, ref: b, children: u ? /* @__PURE__ */ m(L, { style: { width: "50px", margin: "auto" } }) : /* @__PURE__ */ j("div", { className: c["tabs__tab-content"], children: [
|
|
183
|
+
a && /* @__PURE__ */ m("span", { className: c["tabs__tab-icon"], children: typeof a == "string" ? /* @__PURE__ */ m(D, { icon: a }) : a }),
|
|
184
|
+
o
|
|
185
185
|
] }) });
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
export {
|
|
189
|
-
|
|
189
|
+
ge as Tab
|
|
190
190
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as T } from "react/jsx-runtime";
|
|
|
2
2
|
import * as P from "react";
|
|
3
3
|
import { forwardRef as v } from "react";
|
|
4
4
|
import { c as y } from "../../clsx-DB4S2d7J.js";
|
|
5
|
-
import { u as x, s as C } from "../../Tabs.module-
|
|
5
|
+
import { u as x, s as C } from "../../Tabs.module-By78tLjn.js";
|
|
6
6
|
import { g as N, a as _, u as w, b, _ as O, c as E, P as o, d as I, e as S } from "../../useSlotProps-C_I1kEHr.js";
|
|
7
7
|
import { u as U } from "../../useId-BW-oWmul.js";
|
|
8
8
|
import { u as j } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as T } from "react/jsx-runtime";
|
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { forwardRef as q } from "react";
|
|
4
4
|
import { c as B } from "../../clsx-DB4S2d7J.js";
|
|
5
|
-
import { T as G, u as J, s as Q } from "../../Tabs.module-
|
|
5
|
+
import { T as G, u as J, s as Q } from "../../Tabs.module-By78tLjn.js";
|
|
6
6
|
import { Tab as Ie } from "./Tab.js";
|
|
7
7
|
import { TabPanel as Fe } from "./TabPanel.js";
|
|
8
8
|
import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as w } from "../../useSlotProps-C_I1kEHr.js";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import '../../assets/Tag.css';
|
|
2
1
|
import { jsx as o, jsxs as u } from "react/jsx-runtime";
|
|
3
2
|
import { useMemo as d } from "react";
|
|
4
3
|
import { c } from "../../clsx-DB4S2d7J.js";
|
|
5
4
|
import { Icon as j } from "../Icon/Icon.js";
|
|
6
|
-
const g = "_container_b8jbs_1", e = {
|
|
5
|
+
import '../../assets/Tag.css';const g = "_container_b8jbs_1", e = {
|
|
7
6
|
container: g,
|
|
8
7
|
"container--content": "_container--content_b8jbs_9",
|
|
9
8
|
"container--content__icon": "_container--content__icon_b8jbs_14",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import '../../assets/TextDisplay.css';
|
|
2
1
|
import { jsxs as f, jsx as d } from "react/jsx-runtime";
|
|
3
2
|
import { c as $ } from "../../clsx-DB4S2d7J.js";
|
|
4
3
|
import { Skeleton as m } from "../Skeleton/Skeleton.js";
|
|
5
4
|
import { Typography as y } from "../Typography/Typography.js";
|
|
6
|
-
const g = "_container_ia8vu_1", e = {
|
|
5
|
+
import '../../assets/TextDisplay.css';const g = "_container_ia8vu_1", e = {
|
|
7
6
|
container: g,
|
|
8
7
|
"container--inline": "_container--inline_ia8vu_5"
|
|
9
8
|
}, i = ({
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import '../../assets/Toggle.css';
|
|
2
1
|
import { jsxs as j, jsx as P } from "react/jsx-runtime";
|
|
3
2
|
import { c as O } from "../../clsx-DB4S2d7J.js";
|
|
4
3
|
import { u as E, b as k, g as v, a as U, _ as H, c as C, P as e, d as M, e as A } from "../../useSlotProps-C_I1kEHr.js";
|
|
5
4
|
import * as F from "react";
|
|
6
5
|
import { u as D } from "../../useControlled-CCMYYdCM.js";
|
|
7
6
|
import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
|
|
8
|
-
function W(l) {
|
|
7
|
+
import '../../assets/Toggle.css';function W(l) {
|
|
9
8
|
const {
|
|
10
9
|
checked: s,
|
|
11
10
|
defaultChecked: i,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '../../assets/Tooltip.css';
|
|
2
1
|
import { jsx as a, jsxs as v, Fragment as P } from "react/jsx-runtime";
|
|
3
2
|
import * as u from "react";
|
|
4
3
|
import { useRef as R, useState as T, useEffect as E, isValidElement as q, cloneElement as M } from "react";
|
|
@@ -6,7 +5,7 @@ import { T as O, P as V } from "../../Popup-Ck3XlWMq.js";
|
|
|
6
5
|
import { _ as $, b as z, P as l } from "../../useSlotProps-C_I1kEHr.js";
|
|
7
6
|
import { c as D } from "../../clsx-DB4S2d7J.js";
|
|
8
7
|
import { C as F } from "../../ClickAwayListener-DbEYZpyh.js";
|
|
9
|
-
function I() {
|
|
8
|
+
import '../../assets/Tooltip.css';function I() {
|
|
10
9
|
const e = u.useContext(O);
|
|
11
10
|
if (!e)
|
|
12
11
|
throw new Error("Missing transition context");
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import '../../assets/Typography.css';
|
|
2
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
3
2
|
import { forwardRef as c, useMemo as f } from "react";
|
|
4
3
|
import { bemify as x, getBEMBase as k, getBEMBlock as B } from "../../utils/styleStrings.js";
|
|
5
4
|
import { c as $ } from "../../clsx-DB4S2d7J.js";
|
|
6
|
-
const t = {
|
|
5
|
+
import '../../assets/Typography.css';const t = {
|
|
7
6
|
"u-typography-h1": "_u-typography-h1_gn8st_1",
|
|
8
7
|
"u-typography-h2": "_u-typography-h2_gn8st_8",
|
|
9
8
|
"u-typography-h3": "_u-typography-h3_gn8st_15",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -100,4 +100,4 @@
|
|
|
100
100
|
"@mui/base": "^5.0.0-beta.40",
|
|
101
101
|
"@mui/material": "^5.15.15"
|
|
102
102
|
}
|
|
103
|
-
}
|
|
103
|
+
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import './assets/Tabs.css';
|
|
2
|
-
import * as _ from "react";
|
|
3
|
-
const a = /* @__PURE__ */ _.createContext(null);
|
|
4
|
-
process.env.NODE_ENV !== "production" && (a.displayName = "TabsContext");
|
|
5
|
-
function e() {
|
|
6
|
-
const t = _.useContext(a);
|
|
7
|
-
if (t == null)
|
|
8
|
-
throw new Error("No TabsContext provided");
|
|
9
|
-
return t;
|
|
10
|
-
}
|
|
11
|
-
const s = "_tabs_q5he5_1", b = "_tabs__tab_q5he5_5", o = {
|
|
12
|
-
tabs: s,
|
|
13
|
-
tabs__tab: b,
|
|
14
|
-
"tabs__tab--disabled": "_tabs__tab--disabled_q5he5_26",
|
|
15
|
-
"tabs__tab--selected": "_tabs__tab--selected_q5he5_35",
|
|
16
|
-
"tabs__tab--chip": "_tabs__tab--chip_q5he5_39",
|
|
17
|
-
"tabs__tab--chip--disabled": "_tabs__tab--chip--disabled_q5he5_59",
|
|
18
|
-
"tabs__tab-panel": "_tabs__tab-panel_q5he5_69",
|
|
19
|
-
"tabs__tab-icon": "_tabs__tab-icon_q5he5_73"
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
a as T,
|
|
23
|
-
o as s,
|
|
24
|
-
e as u
|
|
25
|
-
};
|