@pismo/marola 1.0.0-beta.16 → 1.0.0-beta.17

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.
@@ -1 +1 @@
1
- ._u-typography-h1_pknqm_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_pknqm_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_pknqm_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_pknqm_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_pknqm_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_pknqm_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_pknqm_43,._table_pknqm_43 tbody{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_pknqm_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_pknqm_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_pknqm_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_pknqm_61,._table_pknqm_43 thead{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_pknqm_65,._table_pknqm_43 thead{font-weight:var(--base-bold)}._u-typography-base--strikethrough_pknqm_68{text-decoration:line-through}._u-typography-base--underlined_pknqm_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_pknqm_74{text-decoration:underline line-through}._table_pknqm_43{color:var(--secondary-orange);border-spacing:0;table-layout:fixed}._table--full-width_pknqm_83{width:100%}._table--white-theme_pknqm_86{background:var(--white-100)}._table--transparent-theme_pknqm_89{background:transparent}._table_pknqm_43 th._cell--left-alignment_pknqm_92,._table_pknqm_43 td._cell--left-alignment_pknqm_92{text-align:left}._table_pknqm_43 th._cell--center-alignment_pknqm_96,._table_pknqm_43 td._cell--center-alignment_pknqm_96{text-align:center}._table_pknqm_43 th._cell--right-alignment_pknqm_100,._table_pknqm_43 td._cell--right-alignment_pknqm_100{text-align:right}._table_pknqm_43 thead{color:var(--gray-90);text-transform:uppercase}._table_pknqm_43 thead tr th{--children-pv: 4px;--children-ph: 8px;align-items:center;padding:calc(1.5rem - var(--children-pv)) calc(.75rem - var(--children-ph));line-height:1rem;border-bottom:1px solid var(--gray-25)}._table_pknqm_43 thead tr th ._th__wrapper_pknqm_116{padding:var(--children-pv) var(--children-ph)}._table_pknqm_43 thead tr th ._th__wrapper--pressed_pknqm_119{background-color:var(--gray-10);border-radius:6px}._table_pknqm_43 thead tr th ._th__wrapper--clickable_pknqm_123{cursor:pointer}._table_pknqm_43 thead tr th ._th__wrapper_pknqm_116 ._th__sort-icon-container_pknqm_126{padding-left:4px}._table_pknqm_43 tbody{color:var(--gray-90)}._table_pknqm_43 tbody tr:hover:not(._tr__row-or-cell--disabled_pknqm_132){background-color:rgb(var(--gray-5-rgb),.5)}._table_pknqm_43 tbody ._tr_pknqm_132,._table_pknqm_43 tbody ._td_pknqm_136{padding:16px 12px;line-height:var(--body-line-height);border-bottom:1px solid var(--gray-10)}._table_pknqm_43 tbody ._tr__row-or-cell--clickable_pknqm_141,._table_pknqm_43 tbody ._td__row-or-cell--clickable_pknqm_142{cursor:pointer}._table_pknqm_43 tbody ._tr__row-or-cell--disabled_pknqm_132,._table_pknqm_43 tbody ._td__row-or-cell--disabled_pknqm_146{background:var(--cream);filter:grayscale(1)}._table_pknqm_43 tbody ._tr__row-or-cell--disabled_pknqm_132 ._td-wrapper_pknqm_150,._table_pknqm_43 tbody ._td__row-or-cell--disabled_pknqm_146 ._td-wrapper_pknqm_150{opacity:.25}
1
+ ._u-typography-h1_1ysnl_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_1ysnl_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_1ysnl_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_1ysnl_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_1ysnl_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_1ysnl_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_1ysnl_43,._table_1ysnl_43 tbody{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1ysnl_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1ysnl_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1ysnl_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1ysnl_61,._table_1ysnl_43 thead{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1ysnl_65,._table_1ysnl_43 thead{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1ysnl_68{text-decoration:line-through}._u-typography-base--underlined_1ysnl_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1ysnl_74{text-decoration:underline line-through}._table_1ysnl_43{color:var(--secondary-orange);border-spacing:0}._table--fixed_1ysnl_82{table-layout:fixed}._table--full-width_1ysnl_85{width:100%}._table--white-theme_1ysnl_88{background:var(--white-100)}._table--transparent-theme_1ysnl_91{background:transparent}._table_1ysnl_43 th._cell--left-alignment_1ysnl_94,._table_1ysnl_43 td._cell--left-alignment_1ysnl_94{text-align:left}._table_1ysnl_43 th._cell--center-alignment_1ysnl_98,._table_1ysnl_43 td._cell--center-alignment_1ysnl_98{text-align:center}._table_1ysnl_43 th._cell--right-alignment_1ysnl_102,._table_1ysnl_43 td._cell--right-alignment_1ysnl_102{text-align:right}._table_1ysnl_43 thead{color:var(--gray-90);text-transform:uppercase}._table_1ysnl_43 thead tr th{--children-pv: 4px;--children-ph: 8px;align-items:center;padding:calc(1.5rem - var(--children-pv)) calc(.75rem - var(--children-ph));line-height:1rem;border-bottom:1px solid var(--gray-25)}._table_1ysnl_43 thead tr th ._th__wrapper_1ysnl_118{padding:var(--children-pv) var(--children-ph)}._table_1ysnl_43 thead tr th ._th__wrapper--pressed_1ysnl_121{background-color:var(--gray-10);border-radius:6px}._table_1ysnl_43 thead tr th ._th__wrapper--clickable_1ysnl_125{cursor:pointer}._table_1ysnl_43 thead tr th ._th__wrapper_1ysnl_118 ._th__sort-icon-container_1ysnl_128{padding-left:4px}._table_1ysnl_43 tbody{color:var(--gray-90)}._table_1ysnl_43 tbody tr:hover:not(._tr__row-or-cell--disabled_1ysnl_134){background-color:rgb(var(--gray-5-rgb),.5)}._table_1ysnl_43 tbody ._tr_1ysnl_134,._table_1ysnl_43 tbody ._td_1ysnl_138{padding:16px 12px;line-height:var(--body-line-height);border-bottom:1px solid var(--gray-10)}._table_1ysnl_43 tbody ._tr__row-or-cell--clickable_1ysnl_143,._table_1ysnl_43 tbody ._td__row-or-cell--clickable_1ysnl_144{cursor:pointer}._table_1ysnl_43 tbody ._tr__row-or-cell--disabled_1ysnl_134,._table_1ysnl_43 tbody ._td__row-or-cell--disabled_1ysnl_148{background:var(--cream);filter:grayscale(1)}._table_1ysnl_43 tbody ._tr__row-or-cell--disabled_1ysnl_134 ._td-wrapper_1ysnl_152,._table_1ysnl_43 tbody ._td__row-or-cell--disabled_1ysnl_148 ._td-wrapper_1ysnl_152{opacity:.25}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -28,13 +28,15 @@ export type TableProps = ChildrenProps & {
28
28
  paginationProps?: PaginationProps;
29
29
  /** Set theme */
30
30
  theme?: TableTheme;
31
+ /** Set css style `table-layout: fixed;` if was `true` */
32
+ isFixed?: boolean;
31
33
  /** Set language */
32
34
  language?: string;
33
35
  /** Set translations to labels */
34
36
  translations?: TableTranslations;
35
37
  };
36
38
  declare const Table: {
37
- ({ children, theme, fullWidth, className, paginationProps, language, translations, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
39
+ ({ children, theme, fullWidth, className, paginationProps, isFixed, language, translations, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
38
40
  THead: import('react').FunctionComponent<ChildrenProps>;
39
41
  TBody: import('react').FunctionComponent<ChildrenProps>;
40
42
  Tr: import('react').FunctionComponent<TrProps>;
@@ -1,53 +1,54 @@
1
1
  import '../../assets/Table.css';
2
- import { jsxs as b, jsx as r } from "react/jsx-runtime";
3
- import * as o from "react";
2
+ import { jsxs as g, jsx as a } from "react/jsx-runtime";
3
+ import * as p from "react";
4
4
  import { useState as w } from "react";
5
- import { c as i } from "../../clsx-DB4S2d7J.js";
6
- import { paginationDefaultTranslations as y, Pagination as k } from "../Pagination/Pagination.js";
7
- import { sortTooltipDefaultTranslations as u, SortTooltip as T } from "../SortTooltip/SortTooltip.js";
8
- import { TableProvider as q, useTable as f } from "./TableContext.js";
9
- const N = (a) => /* @__PURE__ */ o.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ o.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ o.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__ */ o.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__ */ o.createElement("defs", null, /* @__PURE__ */ o.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ o.createElement("rect", { width: 7, height: 10, fill: "white" })))), x = "_table_pknqm_43", C = "_th__wrapper_pknqm_116", L = "_tr_pknqm_132", E = "_td_pknqm_136", t = {
10
- "u-typography-h1": "_u-typography-h1_pknqm_1",
11
- "u-typography-h2": "_u-typography-h2_pknqm_8",
12
- "u-typography-h3": "_u-typography-h3_pknqm_15",
13
- "u-typography-h4": "_u-typography-h4_pknqm_22",
14
- "u-typography-h5": "_u-typography-h5_pknqm_29",
15
- "u-typography-h6": "_u-typography-h6_pknqm_36",
16
- "u-typography-base": "_u-typography-base_pknqm_43",
17
- table: x,
18
- "u-typography-base--xxl": "_u-typography-base--xxl_pknqm_49",
19
- "u-typography-base--xl": "_u-typography-base--xl_pknqm_53",
20
- "u-typography-base--lg": "_u-typography-base--lg_pknqm_57",
21
- "u-typography-base--sm": "_u-typography-base--sm_pknqm_61",
22
- "u-typography-base--bold": "_u-typography-base--bold_pknqm_65",
23
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_pknqm_68",
24
- "u-typography-base--underlined": "_u-typography-base--underlined_pknqm_71",
25
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_pknqm_74",
26
- "table--full-width": "_table--full-width_pknqm_83",
27
- "table--white-theme": "_table--white-theme_pknqm_86",
28
- "table--transparent-theme": "_table--transparent-theme_pknqm_89",
29
- "cell--left-alignment": "_cell--left-alignment_pknqm_92",
30
- "cell--center-alignment": "_cell--center-alignment_pknqm_96",
31
- "cell--right-alignment": "_cell--right-alignment_pknqm_100",
32
- th__wrapper: C,
33
- "th__wrapper--pressed": "_th__wrapper--pressed_pknqm_119",
34
- "th__wrapper--clickable": "_th__wrapper--clickable_pknqm_123",
35
- "th__sort-icon-container": "_th__sort-icon-container_pknqm_126",
36
- "tr__row-or-cell--disabled": "_tr__row-or-cell--disabled_pknqm_132",
37
- tr: L,
38
- td: E,
39
- "tr__row-or-cell--clickable": "_tr__row-or-cell--clickable_pknqm_141",
40
- "td__row-or-cell--clickable": "_td__row-or-cell--clickable_pknqm_142",
41
- "td__row-or-cell--disabled": "_td__row-or-cell--disabled_pknqm_146",
42
- "td-wrapper": "_td-wrapper_pknqm_150"
43
- }, v = {
5
+ import { c as d } from "../../clsx-DB4S2d7J.js";
6
+ import { paginationDefaultTranslations as u, Pagination as T } from "../Pagination/Pagination.js";
7
+ import { sortTooltipDefaultTranslations as m, SortTooltip as f } from "../SortTooltip/SortTooltip.js";
8
+ import { TableProvider as x, useTable as N } from "./TableContext.js";
9
+ const C = (l) => /* @__PURE__ */ p.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ p.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ p.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__ */ p.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__ */ p.createElement("defs", null, /* @__PURE__ */ p.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ p.createElement("rect", { width: 7, height: 10, fill: "white" })))), L = "_table_1ysnl_43", E = "_th__wrapper_1ysnl_118", k = "_tr_1ysnl_134", v = "_td_1ysnl_138", t = {
10
+ "u-typography-h1": "_u-typography-h1_1ysnl_1",
11
+ "u-typography-h2": "_u-typography-h2_1ysnl_8",
12
+ "u-typography-h3": "_u-typography-h3_1ysnl_15",
13
+ "u-typography-h4": "_u-typography-h4_1ysnl_22",
14
+ "u-typography-h5": "_u-typography-h5_1ysnl_29",
15
+ "u-typography-h6": "_u-typography-h6_1ysnl_36",
16
+ "u-typography-base": "_u-typography-base_1ysnl_43",
17
+ table: L,
18
+ "u-typography-base--xxl": "_u-typography-base--xxl_1ysnl_49",
19
+ "u-typography-base--xl": "_u-typography-base--xl_1ysnl_53",
20
+ "u-typography-base--lg": "_u-typography-base--lg_1ysnl_57",
21
+ "u-typography-base--sm": "_u-typography-base--sm_1ysnl_61",
22
+ "u-typography-base--bold": "_u-typography-base--bold_1ysnl_65",
23
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1ysnl_68",
24
+ "u-typography-base--underlined": "_u-typography-base--underlined_1ysnl_71",
25
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1ysnl_74",
26
+ "table--fixed": "_table--fixed_1ysnl_82",
27
+ "table--full-width": "_table--full-width_1ysnl_85",
28
+ "table--white-theme": "_table--white-theme_1ysnl_88",
29
+ "table--transparent-theme": "_table--transparent-theme_1ysnl_91",
30
+ "cell--left-alignment": "_cell--left-alignment_1ysnl_94",
31
+ "cell--center-alignment": "_cell--center-alignment_1ysnl_98",
32
+ "cell--right-alignment": "_cell--right-alignment_1ysnl_102",
33
+ th__wrapper: E,
34
+ "th__wrapper--pressed": "_th__wrapper--pressed_1ysnl_121",
35
+ "th__wrapper--clickable": "_th__wrapper--clickable_1ysnl_125",
36
+ "th__sort-icon-container": "_th__sort-icon-container_1ysnl_128",
37
+ "tr__row-or-cell--disabled": "_tr__row-or-cell--disabled_1ysnl_134",
38
+ tr: k,
39
+ td: v,
40
+ "tr__row-or-cell--clickable": "_tr__row-or-cell--clickable_1ysnl_143",
41
+ "td__row-or-cell--clickable": "_td__row-or-cell--clickable_1ysnl_144",
42
+ "td__row-or-cell--disabled": "_td__row-or-cell--disabled_1ysnl_148",
43
+ "td-wrapper": "_td-wrapper_1ysnl_152"
44
+ }, B = {
44
45
  pt: {
45
- ...y.pt,
46
- ...u.pt
46
+ ...u.pt,
47
+ ...m.pt
47
48
  },
48
49
  en: {
49
- ...y.en,
50
- ...u.en
50
+ ...u.en,
51
+ ...m.en
51
52
  },
52
53
  // example to add a new language translation
53
54
  es: {
@@ -59,79 +60,81 @@ const N = (a) => /* @__PURE__ */ o.createElement("svg", { width: 7, height: 10,
59
60
  of: "de",
60
61
  results: "resultados"
61
62
  }
62
- }, p = ({
63
- children: a,
63
+ }, s = ({
64
+ children: l,
64
65
  theme: e = "white",
65
- fullWidth: l = !0,
66
- className: s,
66
+ fullWidth: r = !0,
67
+ className: n,
67
68
  paginationProps: _,
68
- language: n,
69
- translations: h,
70
- ...d
69
+ isFixed: o,
70
+ language: y,
71
+ translations: b,
72
+ ...h
71
73
  }) => {
72
- const c = i(
74
+ const c = d(
73
75
  t.table,
74
- l ? t["table--full-width"] : "",
76
+ r && t["table--full-width"],
77
+ o && t["table--fixed"],
75
78
  t[`table--${e}-theme`],
76
- s
77
- ), m = n && v[n] || h;
78
- return /* @__PURE__ */ b(q, { initialTranslations: m, children: [
79
- /* @__PURE__ */ r("table", { ...d, className: c, children: a }),
80
- _ && /* @__PURE__ */ r(k, { ..._, t: m })
79
+ n
80
+ ), i = y && B[y] || b;
81
+ return /* @__PURE__ */ g(x, { initialTranslations: i, children: [
82
+ /* @__PURE__ */ a("table", { ...h, className: c, children: l }),
83
+ _ && /* @__PURE__ */ a(T, { ..._, t: i })
81
84
  ] });
82
- }, B = ({ children: a, ...e }) => /* @__PURE__ */ r("thead", { ...e, children: a }), H = ({ children: a, ...e }) => /* @__PURE__ */ r("tbody", { ...e, children: a }), P = ({ children: a, onClick: e, disabled: l, className: s, ..._ }) => {
83
- const n = i(
85
+ }, H = ({ children: l, ...e }) => /* @__PURE__ */ a("thead", { ...e, children: l }), P = ({ children: l, ...e }) => /* @__PURE__ */ a("tbody", { ...e, children: l }), D = ({ children: l, onClick: e, disabled: r, className: n, ..._ }) => {
86
+ const o = d(
84
87
  t.tr,
85
- e && !l ? t["tr__row-or-cell--clickable"] : l ? t["tr__row-or-cell--disabled"] : "",
86
- s
88
+ e && !r ? t["tr__row-or-cell--clickable"] : r ? t["tr__row-or-cell--disabled"] : "",
89
+ n
87
90
  );
88
- return /* @__PURE__ */ r("tr", { ..._, className: n, onClick: () => !l && (e == null ? void 0 : e()), children: a });
89
- }, D = ({ children: a, onClick: e, disabled: l, className: s, align: _ = "left", ...n }) => {
90
- const h = i(
91
+ return /* @__PURE__ */ a("tr", { ..._, className: o, onClick: () => !r && (e == null ? void 0 : e()), children: l });
92
+ }, M = ({ children: l, onClick: e, disabled: r, className: n, align: _ = "left", ...o }) => {
93
+ const y = d(
91
94
  t.td,
92
- e && !l ? t["td__row-or-cell--clickable"] : l ? t["td__row-or-cell--disabled"] : "",
95
+ e && !r ? t["td__row-or-cell--clickable"] : r ? t["td__row-or-cell--disabled"] : "",
93
96
  t[`cell--${_}-alignment`],
94
- s
97
+ n
95
98
  );
96
- return /* @__PURE__ */ r("td", { ...n, className: h, onClick: () => !l && (e == null ? void 0 : e()), children: /* @__PURE__ */ r("span", { className: t["td-wrapper"], children: a }) });
97
- }, M = ({ children: a, onSort: e, sortType: l, className: s, classNameTooltip: _, align: n = "left", ...h }) => {
98
- const { translations: d } = f(), [c, m] = w(!1), g = i(
99
+ return /* @__PURE__ */ a("td", { ...o, className: y, onClick: () => !r && (e == null ? void 0 : e()), children: /* @__PURE__ */ a("span", { className: t["td-wrapper"], children: l }) });
100
+ }, O = ({ children: l, onSort: e, sortType: r, className: n, classNameTooltip: _, align: o = "left", ...y }) => {
101
+ const { translations: b } = N(), [h, c] = w(!1), i = d(
99
102
  t.th__wrapper,
100
- c ? t["th__wrapper--pressed"] : "",
103
+ h ? t["th__wrapper--pressed"] : "",
101
104
  e ? t["th__wrapper--clickable"] : "",
102
- s
105
+ n
103
106
  );
104
- return /* @__PURE__ */ r("th", { ...h, className: t[`cell--${n}-alignment`], children: /* @__PURE__ */ r("span", { className: g, onClick: e && (() => m(!c)), children: e ? /* @__PURE__ */ b(
105
- T,
107
+ return /* @__PURE__ */ a("th", { ...y, className: t[`cell--${o}-alignment`], children: /* @__PURE__ */ a("span", { className: i, onClick: e && (() => c(!h)), children: e ? /* @__PURE__ */ g(
108
+ f,
106
109
  {
107
- onClose: () => m(!1),
110
+ onClose: () => c(!1),
108
111
  onSort: e,
109
- show: c,
110
- sortType: l,
112
+ show: h,
113
+ sortType: r,
111
114
  className: _,
112
- t: d,
115
+ t: b,
113
116
  children: [
114
- /* @__PURE__ */ r("span", { children: a }),
115
- /* @__PURE__ */ r("span", { className: t["th__sort-icon-container"], children: /* @__PURE__ */ r(N, {}) })
117
+ /* @__PURE__ */ a("span", { children: l }),
118
+ /* @__PURE__ */ a("span", { className: t["th__sort-icon-container"], children: /* @__PURE__ */ a(C, {}) })
116
119
  ]
117
120
  }
118
- ) : /* @__PURE__ */ r("span", { children: a }) }) });
121
+ ) : /* @__PURE__ */ a("span", { children: l }) }) });
119
122
  };
120
- p.THead = B;
121
- p.THead.displayName = "Table.THead";
122
- p.TBody = H;
123
- p.TBody.displayName = "Table.TBody";
124
- p.Tr = P;
125
- p.Tr.displayName = "Table.Tr";
126
- p.Td = D;
127
- p.Td.displayName = "Table.Td";
128
- p.Th = M;
129
- p.Th.displayName = "Table.Th";
123
+ s.THead = H;
124
+ s.THead.displayName = "Table.THead";
125
+ s.TBody = P;
126
+ s.TBody.displayName = "Table.TBody";
127
+ s.Tr = D;
128
+ s.Tr.displayName = "Table.Tr";
129
+ s.Td = M;
130
+ s.Td.displayName = "Table.Td";
131
+ s.Th = O;
132
+ s.Th.displayName = "Table.Th";
130
133
  export {
131
- H as TBody,
132
- B as THead,
133
- p as Table,
134
- D as Td,
135
- M as Th,
136
- P as Tr
134
+ P as TBody,
135
+ H as THead,
136
+ s as Table,
137
+ M as Td,
138
+ O as Th,
139
+ D as Tr
137
140
  };
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: {
6
- ({ children, theme, fullWidth, className, paginationProps, language, translations, ...rest }: import('./Table').TableProps): import("react/jsx-runtime").JSX.Element;
6
+ ({ children, theme, fullWidth, className, paginationProps, isFixed, language, translations, ...rest }: import('./Table').TableProps): import("react/jsx-runtime").JSX.Element;
7
7
  THead: import('react').FunctionComponent<import('./Table').ChildrenProps>;
8
8
  TBody: import('react').FunctionComponent<import('./Table').ChildrenProps>;
9
9
  Tr: import('react').FunctionComponent<import('./Table').TrProps>;
@@ -7,37 +7,44 @@ const f = "_container_ia8vu_1", n = {
7
7
  container: f,
8
8
  "container--inline": "_container--inline_ia8vu_5"
9
9
  }, T = ({
10
- label: y,
11
- value: i,
10
+ label: i,
11
+ value: y,
12
12
  isLoading: e = !1,
13
- testId: t = "TextDisplay",
13
+ testId: c = "TextDisplay",
14
14
  labelOptions: r,
15
15
  valueOptions: a,
16
- inline: c
16
+ inline: t
17
17
  }) => {
18
- const h = r != null && r.color || c ? "var(--black-100)" : "var(--gray-90)";
19
- return /* @__PURE__ */ x("div", { className: _([n.container, { [n["container--inline"]]: c }]), children: [
20
- /* @__PURE__ */ o(
21
- m,
22
- {
23
- color: h,
24
- variant: (r == null ? void 0 : r.variant) || "base",
25
- "data-testid": `${t}-label`,
26
- bold: c,
27
- children: e ? /* @__PURE__ */ o(d, { style: { width: 70, marginBottom: 2 }, "data-testid": `${t}-skeletonLabel` }) : y
28
- }
29
- ),
30
- /* @__PURE__ */ o(
31
- m,
32
- {
33
- bold: !c,
34
- color: (a == null ? void 0 : a.color) || "var(--gray-90)",
35
- variant: a != null && a.variant || c ? "base" : "base-lg",
36
- "data-testid": `${t}-value`,
37
- children: e ? /* @__PURE__ */ o(d, { style: { width: 100 }, "data-testid": `${t}-skeletonValue` }) : i || "-"
38
- }
39
- )
40
- ] });
18
+ const h = r != null && r.color || t ? "var(--black-100)" : "var(--gray-90)";
19
+ return /* @__PURE__ */ x(
20
+ "div",
21
+ {
22
+ className: _([n.container, { [n["container--inline"]]: t }]),
23
+ "data-testid": `${c}-container`,
24
+ children: [
25
+ /* @__PURE__ */ o(
26
+ m,
27
+ {
28
+ color: h,
29
+ variant: (r == null ? void 0 : r.variant) || "base",
30
+ "data-testid": `${c}-label`,
31
+ bold: t,
32
+ children: e ? /* @__PURE__ */ o(d, { style: { width: 70, marginBottom: 2 }, "data-testid": `${c}-skeletonLabel` }) : i
33
+ }
34
+ ),
35
+ /* @__PURE__ */ o(
36
+ m,
37
+ {
38
+ bold: !t,
39
+ color: (a == null ? void 0 : a.color) || "var(--gray-90)",
40
+ variant: a != null && a.variant || t ? "base" : "base-lg",
41
+ "data-testid": `${c}-value`,
42
+ children: e ? /* @__PURE__ */ o(d, { style: { width: 100 }, "data-testid": `${c}-skeletonValue` }) : y || "-"
43
+ }
44
+ )
45
+ ]
46
+ }
47
+ );
41
48
  };
42
49
  export {
43
50
  T as TextDisplay
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.0-beta.16",
4
+ "version": "1.0.0-beta.17",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",