@pismo/marola 0.0.1-alpha.32 → 0.0.1-alpha.4
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/README.md +5 -17
- package/dist/{Button-2b1peDFT.js → Button-C3Qm852g.js} +23 -23
- package/dist/Dialog.module-BO0mdB7d.js +15 -0
- package/dist/ListContext-D6-YwtZn.js +18 -0
- package/dist/Tabs.module-_kSbSyth.js +66 -0
- package/dist/assets/CallToActionButton.css +1 -0
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/LoadingSpinner.css +1 -1
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/assets/main.css +1 -0
- package/dist/components/CallToActionButton/CallToActionButton.d.ts +21 -0
- package/dist/components/CallToActionButton/CallToActionButton.js +57 -0
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +1 -1
- package/dist/components/Dialog/Backdrop.js +9 -2
- package/dist/components/Dialog/CloseIconButton.js +124 -12
- package/dist/components/Dialog/Dialog.d.ts +5 -6
- package/dist/components/Dialog/Dialog.js +20103 -445
- package/dist/components/Dialog/{DialogTitle.d.ts → Title.d.ts} +3 -3
- package/dist/components/Dialog/Title.js +14 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +0 -2
- package/dist/components/LoadingSpinner/LoadingSpinner.js +13 -12
- package/dist/components/Tabs/Tab.d.ts +1 -6
- package/dist/components/Tabs/Tab.js +173 -118
- package/dist/components/Tabs/TabPanel.d.ts +1 -5
- package/dist/components/Tabs/TabPanel.js +10 -8
- package/dist/components/Tabs/Tabs.d.ts +2 -8
- package/dist/components/Tabs/Tabs.js +701 -250
- package/dist/components/Typography/Typography.d.ts +6 -17
- package/dist/components/Typography/Typography.js +64 -55
- package/dist/{index-CH45lKw7.js → index-BZ1lkM_M.js} +159 -162
- package/dist/main.d.ts +5 -27
- package/dist/main.js +21 -75
- package/dist/types/helpers.d.ts +7 -14
- package/dist/useButton-CbmjmH5z.js +186 -0
- package/dist/useCompoundItem-B7wfGDHQ.js +41 -0
- package/package.json +9 -50
- package/src/playground/Playground.tsx +20 -0
- package/dist/ClickAwayListener-BSW-Nd-y.js +0 -107
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/Group-B3p31ftp.js +0 -26
- package/dist/Popup-B6ZSGIEI.js +0 -1248
- package/dist/Portal-DIeBsWdL.js +0 -73
- package/dist/SelectButton-C8JQKaf4.js +0 -61
- package/dist/Tabs.module-jkH1Qjn7.js +0 -22
- package/dist/Toggle-BCgIItCc.js +0 -142
- package/dist/assets/Advice.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/Checkbox.css +0 -1
- package/dist/assets/EllipsisTooltip.css +0 -1
- package/dist/assets/Group.css +0 -1
- package/dist/assets/IconButton.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/InputSearch.css +0 -1
- package/dist/assets/PageHeader.css +0 -1
- package/dist/assets/Pagination.css +0 -1
- package/dist/assets/SelectButton.css +0 -1
- package/dist/assets/Skeleton.css +0 -1
- package/dist/assets/Snackbar.css +0 -1
- package/dist/assets/SortTooltip.css +0 -1
- package/dist/assets/Stepper.css +0 -1
- package/dist/assets/Table.css +0 -1
- package/dist/assets/TextDisplay.css +0 -1
- package/dist/assets/Toggle.css +0 -1
- package/dist/assets/Toggle2.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/combineHooksSlotProps-DVjg9PRh.js +0 -80
- package/dist/components/Advice/Advice.d.ts +0 -30
- package/dist/components/Advice/Advice.js +0 -47
- package/dist/components/Advice/Advice.stories.d.ts +0 -18
- package/dist/components/Button/Button.d.ts +0 -32
- package/dist/components/Button/Button.js +0 -65
- package/dist/components/Button/Button.stories.d.ts +0 -62
- package/dist/components/Checkbox/Checkbox.d.ts +0 -34
- package/dist/components/Checkbox/Checkbox.js +0 -71
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -31
- package/dist/components/Chip/Chip.d.ts +0 -39
- package/dist/components/Chip/Chip.js +0 -19
- package/dist/components/Chip/Chip.stories.d.ts +0 -42
- package/dist/components/Chip/chip.test.d.ts +0 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -343
- package/dist/components/Dialog/DialogTitle.js +0 -29
- package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +0 -7
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +0 -23
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +0 -31
- package/dist/components/Icon/Icon.d.ts +0 -11
- package/dist/components/Icon/Icon.js +0 -127
- package/dist/components/Icon/Icon.stories.d.ts +0 -15
- package/dist/components/Icon/types.d.ts +0 -5
- package/dist/components/Icon/types.js +0 -1
- package/dist/components/IconButton/Icon.stories.d.ts +0 -15
- package/dist/components/IconButton/IconButton.d.ts +0 -38
- package/dist/components/IconButton/IconButton.js +0 -63
- package/dist/components/Input/Input.d.ts +0 -44
- package/dist/components/Input/Input.js +0 -508
- package/dist/components/Input/Input.stories.d.ts +0 -43
- package/dist/components/InputSearch/InputSearch.d.ts +0 -9
- package/dist/components/InputSearch/InputSearch.js +0 -34
- package/dist/components/InputSearch/InputSearch.stories.d.ts +0 -39
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +0 -14
- package/dist/components/PageHeader/PageHeader.d.ts +0 -66
- package/dist/components/PageHeader/PageHeader.js +0 -87
- package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -14
- package/dist/components/Pagination/Pagination.d.ts +0 -55
- package/dist/components/Pagination/Pagination.js +0 -237
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -17
- package/dist/components/Select/Select.d.ts +0 -26
- package/dist/components/Select/Select.js +0 -857
- package/dist/components/Select/Select.stories.d.ts +0 -22
- package/dist/components/Select/SelectButton.d.ts +0 -12
- package/dist/components/Select/SelectButton.js +0 -8
- package/dist/components/Skeleton/Skeleton.d.ts +0 -25
- package/dist/components/Skeleton/Skeleton.js +0 -23
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -14
- package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +0 -14
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +0 -16
- package/dist/components/Snackbar/Snackbar.d.ts +0 -27
- package/dist/components/Snackbar/Snackbar.js +0 -639
- package/dist/components/Snackbar/Snackbar.stories.d.ts +0 -319
- package/dist/components/SortTooltip/SortTooltip.d.ts +0 -28
- package/dist/components/SortTooltip/SortTooltip.js +0 -93
- package/dist/components/Stepper/Stepper.d.ts +0 -26
- package/dist/components/Stepper/Stepper.js +0 -48
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -16
- package/dist/components/Table/Table.d.ts +0 -56
- package/dist/components/Table/Table.js +0 -137
- package/dist/components/Table/Table.stories.d.ts +0 -29
- package/dist/components/Table/TableContext.d.ts +0 -19
- package/dist/components/Table/TableContext.js +0 -21
- package/dist/components/Table/_Table.TBody.stories.d.ts +0 -14
- package/dist/components/Table/_Table.THead.stories.d.ts +0 -14
- package/dist/components/Table/_Table.Td.stories.d.ts +0 -16
- package/dist/components/Table/_Table.Th.stories.d.ts +0 -15
- package/dist/components/Table/_Table.Tr.stories.d.ts +0 -15
- package/dist/components/Tabs/Tab.stories.d.ts +0 -15
- package/dist/components/Tabs/TabPanel.stories.d.ts +0 -14
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -14
- package/dist/components/TextDisplay/TextDisplay.d.ts +0 -23
- package/dist/components/TextDisplay/TextDisplay.js +0 -37
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +0 -13
- package/dist/components/TextDisplay/textDisplay.test.d.ts +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -11
- package/dist/components/Toggle/Toggle.js +0 -266
- package/dist/components/Toggle/Toggle.stories.d.ts +0 -21
- package/dist/components/ToggleGroup/Group.d.ts +0 -18
- package/dist/components/ToggleGroup/Group.js +0 -7
- package/dist/components/ToggleGroup/Group.test.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -15
- package/dist/components/ToggleGroup/Toggle.js +0 -17
- package/dist/components/ToggleGroup/Toggle.test.d.ts +0 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +0 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +0 -6
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -25
- package/dist/components/Tooltip/Tooltip.d.ts +0 -33
- package/dist/components/Tooltip/Tooltip.js +0 -141
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -35
- package/dist/components/Typography/Typography.stories.d.ts +0 -32
- package/dist/components/Typography/typography.test.d.ts +0 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +0 -11
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +0 -50
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +0 -21
- package/dist/index-CjW42-M-.js +0 -19584
- package/dist/marola.css +0 -1
- package/dist/test-utils/assertStyles.d.ts +0 -1
- package/dist/test-utils/assertStyles.js +0 -11
- package/dist/useButton-DNk3wrQp.js +0 -105
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useControlled-CCMYYdCM.js +0 -31
- package/dist/useEventCallback-xTG9piMa.js +0 -45
- package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
- package/dist/useList-B0hog_3-.js +0 -436
- package/dist/useTimeout-DxF9kiZL.js +0 -36
- package/dist/utils/styleStrings.d.ts +0 -6
- package/dist/utils/styleStrings.js +0 -10
- package/dist/utils/styleStrings.test.d.ts +0 -1
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import '../../assets/Table.css';
|
|
2
|
-
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import * as h from "react";
|
|
4
|
-
import { useState as w } from "react";
|
|
5
|
-
import { c as g } from "../../clsx-DB4S2d7J.js";
|
|
6
|
-
import { paginationDefaultTranslations as y, Pagination as T } from "../Pagination/Pagination.js";
|
|
7
|
-
import { sortTooltipDefaultTranslations as u, SortTooltip as f } from "../SortTooltip/SortTooltip.js";
|
|
8
|
-
import { TableProvider as N, useTable as x } from "./TableContext.js";
|
|
9
|
-
const C = (p) => /* @__PURE__ */ h.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...p }, /* @__PURE__ */ h.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ h.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__ */ h.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__ */ h.createElement("defs", null, /* @__PURE__ */ h.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ h.createElement("rect", { width: 7, height: 10, fill: "white" })))), L = "_table_1gspp_43", E = "_th__wrapper_1gspp_114", k = "_tr_1gspp_130", v = "_td_1gspp_134", t = {
|
|
10
|
-
"u-typography-h1": "_u-typography-h1_1gspp_1",
|
|
11
|
-
"u-typography-h2": "_u-typography-h2_1gspp_8",
|
|
12
|
-
"u-typography-h3": "_u-typography-h3_1gspp_15",
|
|
13
|
-
"u-typography-h4": "_u-typography-h4_1gspp_22",
|
|
14
|
-
"u-typography-h5": "_u-typography-h5_1gspp_29",
|
|
15
|
-
"u-typography-h6": "_u-typography-h6_1gspp_36",
|
|
16
|
-
"u-typography-base": "_u-typography-base_1gspp_43",
|
|
17
|
-
table: L,
|
|
18
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1gspp_48",
|
|
19
|
-
"u-typography-base--xl": "_u-typography-base--xl_1gspp_52",
|
|
20
|
-
"u-typography-base--lg": "_u-typography-base--lg_1gspp_56",
|
|
21
|
-
"u-typography-base--sm": "_u-typography-base--sm_1gspp_60",
|
|
22
|
-
"u-typography-base--bold": "_u-typography-base--bold_1gspp_64",
|
|
23
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1gspp_67",
|
|
24
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1gspp_70",
|
|
25
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1gspp_73",
|
|
26
|
-
"table--full-width": "_table--full-width_1gspp_81",
|
|
27
|
-
"table--white-theme": "_table--white-theme_1gspp_84",
|
|
28
|
-
"table--transparent-theme": "_table--transparent-theme_1gspp_87",
|
|
29
|
-
"cell--left-alignment": "_cell--left-alignment_1gspp_90",
|
|
30
|
-
"cell--center-alignment": "_cell--center-alignment_1gspp_94",
|
|
31
|
-
"cell--right-alignment": "_cell--right-alignment_1gspp_98",
|
|
32
|
-
th__wrapper: E,
|
|
33
|
-
"th__wrapper--pressed": "_th__wrapper--pressed_1gspp_117",
|
|
34
|
-
"th__wrapper--clickable": "_th__wrapper--clickable_1gspp_121",
|
|
35
|
-
"th__sort-icon-container": "_th__sort-icon-container_1gspp_124",
|
|
36
|
-
"tr__row-or-cell--disabled": "_tr__row-or-cell--disabled_1gspp_130",
|
|
37
|
-
tr: k,
|
|
38
|
-
td: v,
|
|
39
|
-
"tr__row-or-cell--clickable": "_tr__row-or-cell--clickable_1gspp_139",
|
|
40
|
-
"td__row-or-cell--clickable": "_td__row-or-cell--clickable_1gspp_140",
|
|
41
|
-
"td__row-or-cell--disabled": "_td__row-or-cell--disabled_1gspp_144",
|
|
42
|
-
"td-wrapper": "_td-wrapper_1gspp_148"
|
|
43
|
-
}, B = {
|
|
44
|
-
pt: {
|
|
45
|
-
...y.pt,
|
|
46
|
-
...u.pt
|
|
47
|
-
},
|
|
48
|
-
en: {
|
|
49
|
-
...y.en,
|
|
50
|
-
...u.en
|
|
51
|
-
},
|
|
52
|
-
// example to add a new language translation
|
|
53
|
-
es: {
|
|
54
|
-
asc: "Orden ascendente",
|
|
55
|
-
desc: "Orden descendiente",
|
|
56
|
-
next: "Próximo",
|
|
57
|
-
previous: "Anterior",
|
|
58
|
-
showing: "Mostrando",
|
|
59
|
-
of: "de",
|
|
60
|
-
results: "resultados"
|
|
61
|
-
}
|
|
62
|
-
}, l = ({
|
|
63
|
-
children: p,
|
|
64
|
-
theme: e = "white",
|
|
65
|
-
fullWidth: r = !0,
|
|
66
|
-
className: o,
|
|
67
|
-
paginationProps: s,
|
|
68
|
-
language: _,
|
|
69
|
-
translations: n,
|
|
70
|
-
...d
|
|
71
|
-
}) => {
|
|
72
|
-
const c = g(
|
|
73
|
-
t.table,
|
|
74
|
-
r ? t["table--full-width"] : "",
|
|
75
|
-
t[`table--${e}-theme`],
|
|
76
|
-
o
|
|
77
|
-
), i = _ && B[_] || n;
|
|
78
|
-
return /* @__PURE__ */ b(N, { initialTranslations: i, children: [
|
|
79
|
-
/* @__PURE__ */ a("table", { ...d, className: c, children: p }),
|
|
80
|
-
s && /* @__PURE__ */ a(T, { ...s, t: i })
|
|
81
|
-
] });
|
|
82
|
-
}, H = ({ children: p, ...e }) => /* @__PURE__ */ a("thead", { ...e, children: p }), P = ({ children: p, ...e }) => /* @__PURE__ */ a("tbody", { ...e, children: p }), D = ({ children: p, onClick: e, disabled: r, className: o, ...s }) => {
|
|
83
|
-
const _ = g(
|
|
84
|
-
t.tr,
|
|
85
|
-
e && !r ? t["tr__row-or-cell--clickable"] : r ? t["tr__row-or-cell--disabled"] : "",
|
|
86
|
-
o
|
|
87
|
-
);
|
|
88
|
-
return /* @__PURE__ */ a("tr", { ...s, className: _, onClick: () => !r && (e == null ? void 0 : e()), children: p });
|
|
89
|
-
}, M = ({ children: p, onClick: e, disabled: r, className: o, align: s = "left", ..._ }) => {
|
|
90
|
-
const n = g(
|
|
91
|
-
t.td,
|
|
92
|
-
e && !r ? t["td__row-or-cell--clickable"] : r ? t["td__row-or-cell--disabled"] : "",
|
|
93
|
-
t[`cell--${s}-alignment`],
|
|
94
|
-
o
|
|
95
|
-
);
|
|
96
|
-
return /* @__PURE__ */ a("td", { ..._, className: n, onClick: () => !r && (e == null ? void 0 : e()), children: /* @__PURE__ */ a("span", { className: t["td-wrapper"], children: p }) });
|
|
97
|
-
}, O = ({ children: p, onSort: e, sortType: r, className: o, classNameTooltip: s, align: _ = "left", ...n }) => {
|
|
98
|
-
const { translations: d } = x(), [c, i] = w(!1), m = g(
|
|
99
|
-
t.th__wrapper,
|
|
100
|
-
c ? t["th__wrapper--pressed"] : "",
|
|
101
|
-
e ? t["th__wrapper--clickable"] : "",
|
|
102
|
-
o
|
|
103
|
-
);
|
|
104
|
-
return /* @__PURE__ */ a("th", { ...n, className: t[`cell--${_}-alignment`], children: /* @__PURE__ */ a("span", { className: m, onClick: e && (() => i(!c)), children: e ? /* @__PURE__ */ b(
|
|
105
|
-
f,
|
|
106
|
-
{
|
|
107
|
-
onClose: () => i(!1),
|
|
108
|
-
onSort: e,
|
|
109
|
-
show: c,
|
|
110
|
-
sortType: r,
|
|
111
|
-
className: s,
|
|
112
|
-
t: d,
|
|
113
|
-
children: [
|
|
114
|
-
/* @__PURE__ */ a("span", { children: p }),
|
|
115
|
-
/* @__PURE__ */ a("span", { className: t["th__sort-icon-container"], children: /* @__PURE__ */ a(C, {}) })
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
) : /* @__PURE__ */ a("span", { children: p }) }) });
|
|
119
|
-
};
|
|
120
|
-
l.THead = H;
|
|
121
|
-
l.THead.displayName = "Table.THead";
|
|
122
|
-
l.TBody = P;
|
|
123
|
-
l.TBody.displayName = "Table.TBody";
|
|
124
|
-
l.Tr = D;
|
|
125
|
-
l.Tr.displayName = "Table.Tr";
|
|
126
|
-
l.Td = M;
|
|
127
|
-
l.Td.displayName = "Table.Td";
|
|
128
|
-
l.Th = O;
|
|
129
|
-
l.Th.displayName = "Table.Th";
|
|
130
|
-
export {
|
|
131
|
-
P as TBody,
|
|
132
|
-
H as THead,
|
|
133
|
-
l as Table,
|
|
134
|
-
M as Td,
|
|
135
|
-
O as Th,
|
|
136
|
-
D as Tr
|
|
137
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: {
|
|
6
|
-
({ children, theme, fullWidth, className, paginationProps, language, translations, ...rest }: import('./Table').TableProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
THead: import('react').FunctionComponent<import('./Table').ChildrenProps>;
|
|
8
|
-
TBody: import('react').FunctionComponent<import('./Table').ChildrenProps>;
|
|
9
|
-
Tr: import('react').FunctionComponent<import('./Table').TrProps>;
|
|
10
|
-
Td: import('react').FunctionComponent<import('./Table').TdProps>;
|
|
11
|
-
Th: import('react').FunctionComponent<import('./Table').ThProps>;
|
|
12
|
-
};
|
|
13
|
-
tags: string[];
|
|
14
|
-
parameters: {
|
|
15
|
-
layout: string;
|
|
16
|
-
};
|
|
17
|
-
subcomponents: {
|
|
18
|
-
'Table.THead': import('react').FunctionComponent<unknown>;
|
|
19
|
-
'Table.TBody': import('react').FunctionComponent<unknown>;
|
|
20
|
-
'Table.Tr': import('react').FunctionComponent<unknown>;
|
|
21
|
-
'Table.Th': import('react').FunctionComponent<unknown>;
|
|
22
|
-
'Table.Td': import('react').FunctionComponent<unknown>;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export default meta;
|
|
26
|
-
type Story = StoryObj<typeof meta>;
|
|
27
|
-
export declare const Default: Story;
|
|
28
|
-
export declare const WithPagination: Story;
|
|
29
|
-
export declare const WithLanguage: Story;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SortTranslationsByKeys } from '../SortTooltip/SortTooltip';
|
|
2
|
-
import { PaginationTranslations } from '../Pagination/Pagination';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export type TableTranslationsKeys = keyof PaginationTranslations | keyof SortTranslationsByKeys;
|
|
6
|
-
export type TableTranslations = {
|
|
7
|
-
[key in TableTranslationsKeys]?: string;
|
|
8
|
-
};
|
|
9
|
-
type ITableContext = {
|
|
10
|
-
translations?: TableTranslations;
|
|
11
|
-
setTranslations: (translation: TableTranslations) => void;
|
|
12
|
-
};
|
|
13
|
-
type TableProviderProps = {
|
|
14
|
-
initialTranslations?: TableTranslations;
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
};
|
|
17
|
-
declare const TableProvider: ({ initialTranslations, children }: TableProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare const useTable: () => Partial<ITableContext>;
|
|
19
|
-
export { TableProvider };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as n, useState as u, useEffect as x, useContext as a } from "react";
|
|
3
|
-
const o = n({}), b = ({ initialTranslations: e, children: r }) => {
|
|
4
|
-
const [s, t] = u(e);
|
|
5
|
-
return x(() => {
|
|
6
|
-
t(e);
|
|
7
|
-
}, [e]), /* @__PURE__ */ c(
|
|
8
|
-
o.Provider,
|
|
9
|
-
{
|
|
10
|
-
value: {
|
|
11
|
-
translations: s,
|
|
12
|
-
setTranslations: t
|
|
13
|
-
},
|
|
14
|
-
children: r
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}, p = () => a(o);
|
|
18
|
-
export {
|
|
19
|
-
b as TableProvider,
|
|
20
|
-
p as useTable
|
|
21
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChildrenProps } from './Table';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ children, ...rest }: ChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Default: Story;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChildrenProps } from './Table';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ children, ...rest }: ChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Default: Story;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TdProps } from './Table';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ children, onClick, disabled, className, align, ...rest }: TdProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Default: Story;
|
|
15
|
-
export declare const WithAlign: Story;
|
|
16
|
-
export declare const Disabled: Story;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ThProps } from './Table';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ children, onSort, sortType, className, classNameTooltip, align, ...rest }: ThProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Default: Story;
|
|
15
|
-
export declare const WithAlign: Story;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TrProps } from './Table';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ children, onClick, disabled, className, ...rest }: TrProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Default: Story;
|
|
15
|
-
export declare const Disabled: Story;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TabProps } from './Tabs.tsx';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: import('react').ForwardRefExoticComponent<TabProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Simple: Story;
|
|
15
|
-
export declare const Disabled: Story;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TabPanelProps } from './Tabs.tsx';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: import('react').ForwardRefExoticComponent<TabPanelProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Simple: Story;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TabsProps } from './Tabs.tsx';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: import('react').ForwardRefExoticComponent<TabsProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Simple: Story;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VariantType } from '../Typography/Typography.tsx';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
|
|
4
|
-
type OptionsProps = {
|
|
5
|
-
variant?: VariantType;
|
|
6
|
-
color?: string;
|
|
7
|
-
};
|
|
8
|
-
export interface TextDisplayProps {
|
|
9
|
-
/** TextDisplay label */
|
|
10
|
-
label: React.ReactNode;
|
|
11
|
-
/** TextDisplay value */
|
|
12
|
-
value: React.ReactNode;
|
|
13
|
-
/** Renders skeleton when true */
|
|
14
|
-
isLoading?: boolean;
|
|
15
|
-
/** Sets the testId prefix for label, value and skeletons */
|
|
16
|
-
testId?: string;
|
|
17
|
-
/** Sets the label options */
|
|
18
|
-
labelOptions?: OptionsProps;
|
|
19
|
-
/** Sets the value options */
|
|
20
|
-
valueOptions?: OptionsProps;
|
|
21
|
-
}
|
|
22
|
-
export declare const TextDisplay: ({ label, value, isLoading, testId, labelOptions, valueOptions, }: TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import '../../assets/TextDisplay.css';
|
|
2
|
-
import { jsxs as h, jsx as c } from "react/jsx-runtime";
|
|
3
|
-
import { Skeleton as d } from "../Skeleton/Skeleton.js";
|
|
4
|
-
import { Typography as o } from "../Typography/Typography.js";
|
|
5
|
-
const x = "_container_13z5o_1", f = {
|
|
6
|
-
container: x
|
|
7
|
-
}, $ = ({
|
|
8
|
-
label: m,
|
|
9
|
-
value: y,
|
|
10
|
-
isLoading: e = !1,
|
|
11
|
-
testId: t = "TextDisplay",
|
|
12
|
-
labelOptions: r,
|
|
13
|
-
valueOptions: a
|
|
14
|
-
}) => /* @__PURE__ */ h("div", { className: f.container, children: [
|
|
15
|
-
/* @__PURE__ */ c(
|
|
16
|
-
o,
|
|
17
|
-
{
|
|
18
|
-
color: (r == null ? void 0 : r.color) || "var(--gray-90)",
|
|
19
|
-
variant: (r == null ? void 0 : r.variant) || "base",
|
|
20
|
-
"data-testid": `${t}-label`,
|
|
21
|
-
children: e ? /* @__PURE__ */ c(d, { style: { width: 70, marginBottom: 2 }, "data-testid": `${t}-skeletonLabel` }) : m
|
|
22
|
-
}
|
|
23
|
-
),
|
|
24
|
-
/* @__PURE__ */ c(
|
|
25
|
-
o,
|
|
26
|
-
{
|
|
27
|
-
bold: !0,
|
|
28
|
-
color: (a == null ? void 0 : a.color) || "var(--gray-90)",
|
|
29
|
-
variant: (a == null ? void 0 : a.variant) || "base-lg",
|
|
30
|
-
"data-testid": `${t}-value`,
|
|
31
|
-
children: e ? /* @__PURE__ */ c(d, { style: { width: 100 }, "data-testid": `${t}-skeletonValue` }) : y || "-"
|
|
32
|
-
}
|
|
33
|
-
)
|
|
34
|
-
] });
|
|
35
|
-
export {
|
|
36
|
-
$ as TextDisplay
|
|
37
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ label, value, isLoading, testId, labelOptions, valueOptions, }: import('./TextDisplay').TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
};
|
|
8
|
-
export default meta;
|
|
9
|
-
type Story = StoryObj<typeof meta>;
|
|
10
|
-
export declare const Simple: Story;
|
|
11
|
-
export declare const WithLoading: Story;
|
|
12
|
-
export declare const Size: Story;
|
|
13
|
-
export declare const Color: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
type ToggleProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
-
label?: string;
|
|
5
|
-
classNameWrapper?: string;
|
|
6
|
-
classNameInput?: string;
|
|
7
|
-
classNameLabel?: string;
|
|
8
|
-
'data-testid'?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const Toggle: ({ label, checked, disabled, classNameWrapper, classNameInput, "data-testid": dataTestId, onChange, classNameLabel, }: ToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|