@divayth/brick-ui 0.3.1 → 0.4.1
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/app/Provider.d.ts +15 -3
- package/dist/app/Provider.d.ts.map +1 -1
- package/dist/app/Provider.js +11 -11
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +89 -81
- package/dist/lib/dates.d.ts +3 -3
- package/dist/lib/dates.d.ts.map +1 -1
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/locale.d.ts +13 -1
- package/dist/lib/locale.d.ts.map +1 -1
- package/dist/lib/locale.js +14 -2
- package/dist/lib/sizes.d.ts +1 -1
- package/dist/lib/themes.d.ts +31 -31
- package/dist/lib/themes.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui/Accordion/Accordion.d.ts +2 -2
- package/dist/ui/Accordion/Accordion.d.ts.map +1 -1
- package/dist/ui/Alert/Alert.d.ts +2 -2
- package/dist/ui/Alert/Alert.d.ts.map +1 -1
- package/dist/ui/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/ui/Button/Button.d.ts +8 -8
- package/dist/ui/Button/Button.d.ts.map +1 -1
- package/dist/ui/Card/Card.d.ts.map +1 -1
- package/dist/ui/Checkbox/Checkbox.d.ts +2 -2
- package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/ui/Chip/Chip.d.ts +5 -5
- package/dist/ui/Chip/Chip.d.ts.map +1 -1
- package/dist/ui/CircularLoading/CircularLoading.d.ts.map +1 -1
- package/dist/ui/Date/DateInput.d.ts +6 -6
- package/dist/ui/Date/DateInput.d.ts.map +1 -1
- package/dist/ui/Date/DateInput.js +15 -15
- package/dist/ui/DateText/DateText.d.ts +2 -2
- package/dist/ui/DateText/DateText.d.ts.map +1 -1
- package/dist/ui/DateText/DateText.js +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +3 -3
- package/dist/ui/FeedList/FeedList.d.ts +3 -3
- package/dist/ui/FeedList/FeedList.d.ts.map +1 -1
- package/dist/ui/Field/Field.d.ts +10 -10
- package/dist/ui/Field/Field.d.ts.map +1 -1
- package/dist/ui/Flex/Flex.d.ts +3 -3
- package/dist/ui/Flex/Flex.d.ts.map +1 -1
- package/dist/ui/Flex/constants.d.ts +1 -1
- package/dist/ui/Flex/constants.d.ts.map +1 -1
- package/dist/ui/Grid/Grid.d.ts +1 -1
- package/dist/ui/Grid/Grid.types.d.ts +9 -9
- package/dist/ui/Grid/Grid.types.d.ts.map +1 -1
- package/dist/ui/Grid/GridItem.d.ts +1 -1
- package/dist/ui/Grid/GridItem.d.ts.map +1 -1
- package/dist/ui/Grid/GridRoot.d.ts +1 -1
- package/dist/ui/Grid/GridRoot.js +1 -1
- package/dist/ui/Grid/utils.d.ts +2 -2
- package/dist/ui/Grid/utils.d.ts.map +1 -1
- package/dist/ui/IconButton/IconButton.d.ts +8 -8
- package/dist/ui/IconButton/IconButton.d.ts.map +1 -1
- package/dist/ui/Input/Input.d.ts +4 -4
- package/dist/ui/Input/Input.d.ts.map +1 -1
- package/dist/ui/List/List.d.ts +7 -7
- package/dist/ui/List/List.d.ts.map +1 -1
- package/dist/ui/List/List.js +5 -5
- package/dist/ui/Modal/Modal.d.ts +4 -4
- package/dist/ui/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/Modal/Modal.js +19 -19
- package/dist/ui/Modal/ModalContext.d.ts +1 -1
- package/dist/ui/Modal/ModalContext.js +2 -2
- package/dist/ui/Modal/ModalProvider.d.ts +1 -1
- package/dist/ui/MultipleChip/MultipleChip.d.ts +2 -2
- package/dist/ui/MultipleChip/MultipleChip.d.ts.map +1 -1
- package/dist/ui/MultipleChip/MultipleChip.js +8 -8
- package/dist/ui/NoData/NoData.d.ts +3 -3
- package/dist/ui/NoData/NoData.d.ts.map +1 -1
- package/dist/ui/NoData/NoData.js +4 -4
- package/dist/ui/NoData/NoDataIcon.d.ts +1 -1
- package/dist/ui/Popover/Popover.d.ts +4 -4
- package/dist/ui/Popover/Popover.d.ts.map +1 -1
- package/dist/ui/Portal/Portal.d.ts +1 -1
- package/dist/ui/Select/Select.d.ts +2 -2
- package/dist/ui/Select/Select.d.ts.map +1 -1
- package/dist/ui/Select/Select.types.d.ts +7 -5
- package/dist/ui/Select/Select.types.d.ts.map +1 -1
- package/dist/ui/Select/SelectControl.d.ts +2 -2
- package/dist/ui/Select/SelectControl.d.ts.map +1 -1
- package/dist/ui/Select/SelectControl.js +33 -31
- package/dist/ui/Select/SelectOption.d.ts +1 -1
- package/dist/ui/Select/SelectOption.d.ts.map +1 -1
- package/dist/ui/Select/SelectOption.js +6 -6
- package/dist/ui/Select/SelectOptions.d.ts +2 -2
- package/dist/ui/Select/SelectOptions.d.ts.map +1 -1
- package/dist/ui/Select/SelectOptions.js +28 -27
- package/dist/ui/Select/SelectSearch.d.ts +1 -1
- package/dist/ui/Select/SelectSearch.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/ui/Sticky/Sticky.d.ts +1 -1
- package/dist/ui/Sticky/Sticky.d.ts.map +1 -1
- package/dist/ui/Table/Table.context.d.ts +10 -0
- package/dist/ui/Table/Table.context.d.ts.map +1 -0
- package/dist/ui/Table/Table.context.js +26 -0
- package/dist/ui/Table/Table.d.ts +3 -0
- package/dist/ui/Table/Table.d.ts.map +1 -0
- package/dist/ui/Table/Table.js +17 -0
- package/dist/ui/Table/Table.types.d.ts +77 -0
- package/dist/ui/Table/Table.types.d.ts.map +1 -0
- package/dist/ui/Table/Table.types.js +4 -0
- package/dist/ui/Table/components/content/TableContent.d.ts +9 -0
- package/dist/ui/Table/components/content/TableContent.d.ts.map +1 -0
- package/dist/ui/Table/components/content/TableContent.js +72 -0
- package/dist/ui/Table/components/content/TableContent.module.css.js +9 -0
- package/dist/ui/Table/components/content/cell/Cell.d.ts +7 -0
- package/dist/ui/Table/components/content/cell/Cell.d.ts.map +1 -0
- package/dist/ui/Table/components/content/cell/Cell.js +29 -0
- package/dist/ui/Table/components/content/cell/Cell.module.css.js +11 -0
- package/dist/ui/Table/components/content/cellcheckbox/CellCheckbox.d.ts +8 -0
- package/dist/ui/Table/components/content/cellcheckbox/CellCheckbox.d.ts.map +1 -0
- package/dist/ui/Table/components/content/cellcheckbox/CellCheckbox.js +26 -0
- package/dist/ui/Table/components/content/datarow/DataRow.d.ts +11 -0
- package/dist/ui/Table/components/content/datarow/DataRow.d.ts.map +1 -0
- package/dist/ui/Table/components/content/datarow/DataRow.js +23 -0
- package/dist/ui/Table/components/content/head/TableHead.d.ts +6 -0
- package/dist/ui/Table/components/content/head/TableHead.d.ts.map +1 -0
- package/dist/ui/Table/components/content/head/TableHead.js +7 -0
- package/dist/ui/Table/components/content/head/TableHead.module.css.js +9 -0
- package/dist/ui/Table/components/content/headercell/HeaderCell.d.ts +8 -0
- package/dist/ui/Table/components/content/headercell/HeaderCell.d.ts.map +1 -0
- package/dist/ui/Table/components/content/headercell/HeaderCell.js +51 -0
- package/dist/ui/Table/components/content/headercell/HeaderCell.module.css.js +15 -0
- package/dist/ui/Table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts +8 -0
- package/dist/ui/Table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts.map +1 -0
- package/dist/ui/Table/components/content/headercellcheckbox/HeaderCellCheckbox.js +29 -0
- package/dist/ui/Table/components/content/tablebody/TableBody.d.ts +7 -0
- package/dist/ui/Table/components/content/tablebody/TableBody.d.ts.map +1 -0
- package/dist/ui/Table/components/content/tablebody/TableBody.js +28 -0
- package/dist/ui/Table/components/pagination/TablePagination.d.ts +6 -0
- package/dist/ui/Table/components/pagination/TablePagination.d.ts.map +1 -0
- package/dist/ui/Table/components/pagination/TablePagination.js +73 -0
- package/dist/ui/Table/components/root/TableRoot.d.ts +7 -0
- package/dist/ui/Table/components/root/TableRoot.d.ts.map +1 -0
- package/dist/ui/Table/components/root/TableRoot.js +30 -0
- package/dist/ui/Table/components/root/TableRoot.module.css.js +9 -0
- package/dist/ui/Table/hooks/useSelected.d.ts +2 -0
- package/dist/ui/Table/hooks/useSelected.d.ts.map +1 -0
- package/dist/ui/Table/hooks/useSelected.js +6 -0
- package/dist/ui/Table/index.d.ts +5 -0
- package/dist/ui/Table/index.d.ts.map +1 -0
- package/dist/ui/Tabs/Tab.d.ts +3 -3
- package/dist/ui/Tabs/Tab.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.d.ts +4 -4
- package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.js +3 -3
- package/dist/ui/Tabs/TabsList.d.ts +1 -1
- package/dist/ui/Tabs/TabsList.d.ts.map +1 -1
- package/dist/ui/Tabs/TabsPanel.d.ts +2 -2
- package/dist/ui/Tabs/TabsPanel.d.ts.map +1 -1
- package/dist/ui/Tabs/context.d.ts +1 -1
- package/dist/ui/Text/Text.d.ts +6 -6
- package/dist/ui/Text/Text.d.ts.map +1 -1
- package/dist/ui/Textarea/Textarea.d.ts +3 -3
- package/dist/ui/Textarea/Textarea.d.ts.map +1 -1
- package/dist/ui/Tooltip/Tooltip.d.ts +3 -3
- package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/ui/Tooltip/Tooltip.js +4 -4
- package/dist/ui/index.d.ts +36 -34
- package/dist/ui/index.d.ts.map +1 -1
- package/package.json +18 -5
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import e from "clsx";
|
|
3
|
+
import l from "./Cell.module.css.js";
|
|
4
|
+
const p = ({
|
|
5
|
+
children: r,
|
|
6
|
+
align: s = "left",
|
|
7
|
+
fullHeight: o = !1,
|
|
8
|
+
style: m,
|
|
9
|
+
className: c,
|
|
10
|
+
...f
|
|
11
|
+
}) => /* @__PURE__ */ t(
|
|
12
|
+
"td",
|
|
13
|
+
{
|
|
14
|
+
align: s,
|
|
15
|
+
className: e(l.root, { [l.fullHeight]: o }, c),
|
|
16
|
+
...f,
|
|
17
|
+
children: /* @__PURE__ */ t(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: e(l.content, { [l.fullHeight]: o }),
|
|
21
|
+
style: m,
|
|
22
|
+
children: r
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
export {
|
|
28
|
+
p as Cell
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CellProps } from '../cell/Cell.js';
|
|
2
|
+
interface CellCheckboxProps<T> extends CellProps {
|
|
3
|
+
data: T;
|
|
4
|
+
selectedKey: keyof T;
|
|
5
|
+
}
|
|
6
|
+
export declare const CellCheckbox: <T>({ data, selectedKey, ...props }: CellCheckboxProps<T>) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=CellCheckbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/cellcheckbox/CellCheckbox.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEvD,UAAU,iBAAiB,CAAC,CAAC,CAAE,SAAQ,SAAS;IAC9C,IAAI,EAAE,CAAC,CAAC;IACR,WAAW,EAAE,MAAM,CAAC,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,GAAI,CAAC,EAAG,iCAI9B,iBAAiB,CAAC,CAAC,CAAC,gCAsBtB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useProvider as p } from "../../../../../app/Provider.js";
|
|
3
|
+
import { Checkbox as f } from "../../../../Checkbox/Checkbox.js";
|
|
4
|
+
import { useSelected as u } from "../../../hooks/useSelected.js";
|
|
5
|
+
import { Cell as C } from "../cell/Cell.js";
|
|
6
|
+
const S = ({
|
|
7
|
+
data: o,
|
|
8
|
+
selectedKey: r,
|
|
9
|
+
...m
|
|
10
|
+
}) => {
|
|
11
|
+
const { messages: t } = p(), { selected: c, setSelected: e } = u(), s = () => {
|
|
12
|
+
e((i) => i.includes(o[r]) ? i.filter((l) => l !== o[r]) : [...i, o[r]]);
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ n(C, { ...m, children: /* @__PURE__ */ n(
|
|
15
|
+
f,
|
|
16
|
+
{
|
|
17
|
+
"aria-label": `${t.selectRow} ${String(o[r])}`,
|
|
18
|
+
checked: c.includes(o[r]),
|
|
19
|
+
onChange: s,
|
|
20
|
+
onClick: (i) => i.stopPropagation()
|
|
21
|
+
}
|
|
22
|
+
) });
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
S as CellCheckbox
|
|
26
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IColumn } from '../../../Table.types.js';
|
|
2
|
+
interface RowProps<T> {
|
|
3
|
+
row: T;
|
|
4
|
+
columns: IColumn<T>[];
|
|
5
|
+
index: number;
|
|
6
|
+
onClickRow?: (row: T, index: number) => void;
|
|
7
|
+
selectedKey?: keyof T;
|
|
8
|
+
}
|
|
9
|
+
export declare const DataRow: <T>({ row, columns, index, onClickRow, selectedKey, }: RowProps<T>) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=DataRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataRow.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/datarow/DataRow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,UAAU,QAAQ,CAAC,CAAC;IAClB,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,GAAI,CAAC,EAAG,mDAMzB,QAAQ,CAAC,CAAC,CAAC,gCAgBb,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as n, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { Cell as u } from "../cell/Cell.js";
|
|
3
|
+
import { CellCheckbox as x } from "../cellcheckbox/CellCheckbox.js";
|
|
4
|
+
const C = ({
|
|
5
|
+
row: r,
|
|
6
|
+
columns: i,
|
|
7
|
+
index: p,
|
|
8
|
+
onClickRow: o,
|
|
9
|
+
selectedKey: a
|
|
10
|
+
}) => /* @__PURE__ */ n(
|
|
11
|
+
"tr",
|
|
12
|
+
{
|
|
13
|
+
onClick: () => o?.(r, p),
|
|
14
|
+
className: `px-2 ${o ? "hover:bg-gray-3 cursor-pointer" : "cursor-auto"}`,
|
|
15
|
+
children: [
|
|
16
|
+
a ? /* @__PURE__ */ m(x, { selectedKey: a, data: r }) : null,
|
|
17
|
+
i.map(({ key: t, render: l, style: s, align: c }) => /* @__PURE__ */ m(u, { style: s, align: c, children: l ? l(r[t], r) : r[t] }, String(t)))
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
C as DataRow
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/head/TableHead.tsx"],"names":[],"mappings":"AAIA,UAAU,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IAC5D,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,GAAI,gCAAgC,cAAc,gCAIvE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import s from "clsx";
|
|
3
|
+
import r from "./TableHead.module.css.js";
|
|
4
|
+
const l = ({ children: t, sticky: e, ...m }) => /* @__PURE__ */ o("thead", { className: s(r.root, { [r.sticky]: e }), ...m, children: /* @__PURE__ */ o("tr", { children: t }) });
|
|
5
|
+
export {
|
|
6
|
+
l as TableHead
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ThHTMLAttributes } from 'react';
|
|
2
|
+
import { type CellParamsProps, type SortParams } from '../../../Table.types.js';
|
|
3
|
+
export interface HeaderCellProps extends ThHTMLAttributes<HTMLTableCellElement>, CellParamsProps {
|
|
4
|
+
sort?: SortParams;
|
|
5
|
+
onSortChange?: (sortKey: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const HeaderCell: ({ children, sortKey, sort, onSortChange, align, ...props }: HeaderCellProps) => import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=HeaderCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderCell.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/headercell/HeaderCell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAI9C,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAIjC,MAAM,WAAW,eACf,SAAQ,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,eAAe;IAC/D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AA2BD,eAAO,MAAM,UAAU,GAAI,4DAOxB,eAAe,gCAgCjB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import c from "clsx";
|
|
3
|
+
import { ChevronDown as u, ChevronUp as p } from "lucide-react";
|
|
4
|
+
import { Flex as h } from "../../../../Flex/Flex.js";
|
|
5
|
+
import { SortOrder as m } from "../../../Table.types.js";
|
|
6
|
+
import t from "./HeaderCell.module.css.js";
|
|
7
|
+
const C = (e, r) => e === "center" ? "center" : e === "right" ? "end" : e === "justify" && r ? "between" : "start", S = (e, r) => !e || !r ? !1 : e.name === r, x = {
|
|
8
|
+
[m.ASC]: p,
|
|
9
|
+
[m.DESC]: u
|
|
10
|
+
}, I = ({ sort: e }) => {
|
|
11
|
+
const r = x[e.order];
|
|
12
|
+
return /* @__PURE__ */ n(r, { size: 16 });
|
|
13
|
+
}, w = ({
|
|
14
|
+
children: e,
|
|
15
|
+
sortKey: r,
|
|
16
|
+
sort: i,
|
|
17
|
+
onSortChange: s,
|
|
18
|
+
align: a = "left",
|
|
19
|
+
...f
|
|
20
|
+
}) => {
|
|
21
|
+
const l = () => {
|
|
22
|
+
!r || !s || s(r);
|
|
23
|
+
}, o = S(i, r);
|
|
24
|
+
return /* @__PURE__ */ n(
|
|
25
|
+
"th",
|
|
26
|
+
{
|
|
27
|
+
onClick: l,
|
|
28
|
+
align: a,
|
|
29
|
+
className: c(t.root, {
|
|
30
|
+
[t.active]: o
|
|
31
|
+
}),
|
|
32
|
+
...f,
|
|
33
|
+
children: /* @__PURE__ */ d(
|
|
34
|
+
h,
|
|
35
|
+
{
|
|
36
|
+
gap: "xs",
|
|
37
|
+
className: c(t.text, { [t.sort]: !!r }),
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
justifyContent: C(a, !!r),
|
|
40
|
+
children: [
|
|
41
|
+
e,
|
|
42
|
+
r && /* @__PURE__ */ n("span", { "aria-hidden": "true", className: c(t.icon, { [t.hiddenIcon]: !o }), children: o && /* @__PURE__ */ n(I, { sort: i }) })
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
w as HeaderCell
|
|
51
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const o = "_root_1gq2n_2", n = "_text_1gq2n_10", t = "_sort_1gq2n_15", _ = "_icon_1gq2n_25", c = "_hiddenIcon_1gq2n_39", s = {
|
|
2
|
+
root: o,
|
|
3
|
+
text: n,
|
|
4
|
+
sort: t,
|
|
5
|
+
icon: _,
|
|
6
|
+
hiddenIcon: c
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
s as default,
|
|
10
|
+
c as hiddenIcon,
|
|
11
|
+
_ as icon,
|
|
12
|
+
o as root,
|
|
13
|
+
t as sort,
|
|
14
|
+
n as text
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type HeaderCellProps } from '../headercell/HeaderCell.js';
|
|
2
|
+
interface HeaderCellCheckboxProps<T> extends HeaderCellProps {
|
|
3
|
+
data: T[];
|
|
4
|
+
selectedKey: keyof T;
|
|
5
|
+
}
|
|
6
|
+
export declare const HeaderCellCheckbox: <T>({ data, selectedKey, ...props }: HeaderCellCheckboxProps<T>) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=HeaderCellCheckbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderCellCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/headercellcheckbox/HeaderCellCheckbox.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE/E,UAAU,uBAAuB,CAAC,CAAC,CAAE,SAAQ,eAAe;IAC1D,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,WAAW,EAAE,MAAM,CAAC,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAG,iCAIpC,uBAAuB,CAAC,CAAC,CAAC,gCA2B5B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useProvider as f } from "../../../../../app/Provider.js";
|
|
3
|
+
import { Checkbox as h } from "../../../../Checkbox/Checkbox.js";
|
|
4
|
+
import { useSelected as C } from "../../../hooks/useSelected.js";
|
|
5
|
+
import { HeaderCell as g } from "../headercell/HeaderCell.js";
|
|
6
|
+
const v = ({
|
|
7
|
+
data: t,
|
|
8
|
+
selectedKey: l,
|
|
9
|
+
...n
|
|
10
|
+
}) => {
|
|
11
|
+
const { messages: m } = f(), { selected: s, setSelected: p } = C(), c = s.length !== 0 && t.every((e) => s.includes(e[l])), a = () => {
|
|
12
|
+
const e = t.map((o) => o[l]);
|
|
13
|
+
p(
|
|
14
|
+
(o) => c ? o.filter((r) => !e.some((d) => d === r)) : [...o, ...e.filter((r) => !o.includes(r))]
|
|
15
|
+
);
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ i(g, { ...n, children: /* @__PURE__ */ i(
|
|
18
|
+
h,
|
|
19
|
+
{
|
|
20
|
+
"aria-label": m.selectAllRows,
|
|
21
|
+
checked: c,
|
|
22
|
+
onChange: a,
|
|
23
|
+
onClick: (e) => e.stopPropagation()
|
|
24
|
+
}
|
|
25
|
+
) });
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
v as HeaderCellCheckbox
|
|
29
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TableBodyProps } from '../../../Table.types.js';
|
|
2
|
+
type TableBodyComponentProps<T> = TableBodyProps<T> & {
|
|
3
|
+
selectedKey?: keyof T;
|
|
4
|
+
};
|
|
5
|
+
export declare const TableBody: <T>({ data, keyExtractor, columns, isLoading, emptyConfig, onClickRow, selectedKey, }: TableBodyComponentProps<T>) => import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=TableBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Table/components/content/tablebody/TableBody.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D,KAAK,uBAAuB,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC;AAEhF,eAAO,MAAM,SAAS,GAAI,CAAC,EAAG,mFAQ3B,uBAAuB,CAAC,CAAC,CAAC,gCA+B5B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { CircularLoading as c } from "../../../../CircularLoading/CircularLoading.js";
|
|
3
|
+
import { NoData as u } from "../../../../NoData/NoData.js";
|
|
4
|
+
import { NoDataIcon as p } from "../../../../NoData/NoDataIcon.js";
|
|
5
|
+
import { Cell as h } from "../cell/Cell.js";
|
|
6
|
+
import { DataRow as s } from "../datarow/DataRow.js";
|
|
7
|
+
const w = ({
|
|
8
|
+
data: r,
|
|
9
|
+
keyExtractor: o,
|
|
10
|
+
columns: e,
|
|
11
|
+
isLoading: t,
|
|
12
|
+
emptyConfig: n,
|
|
13
|
+
onClickRow: f,
|
|
14
|
+
selectedKey: m
|
|
15
|
+
}) => t || r.length === 0 ? /* @__PURE__ */ l("tbody", { className: "w-full h-full", children: /* @__PURE__ */ l("tr", { className: "h-full", children: /* @__PURE__ */ l(h, { fullHeight: !0, colSpan: e.length + +!!m, children: t ? /* @__PURE__ */ l(c, { fullScreen: !0, size: "lg", className: "p-4" }) : /* @__PURE__ */ l(u, { icon: /* @__PURE__ */ l(p, {}), ...n }) }) }) }) : /* @__PURE__ */ l("tbody", { className: "w-full", children: r.map((a, i) => /* @__PURE__ */ l(
|
|
16
|
+
s,
|
|
17
|
+
{
|
|
18
|
+
row: a,
|
|
19
|
+
index: i,
|
|
20
|
+
columns: e,
|
|
21
|
+
onClickRow: f,
|
|
22
|
+
selectedKey: m
|
|
23
|
+
},
|
|
24
|
+
o ? String(a[o]) : i
|
|
25
|
+
)) });
|
|
26
|
+
export {
|
|
27
|
+
w as TableBody
|
|
28
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TablePaginationState } from '../../Table.types.js';
|
|
2
|
+
export interface TablePaginationProps extends Omit<TablePaginationState, 'total'> {
|
|
3
|
+
total?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const TablePagination: ({ page, size, total, onPageChange, onPageSizeChange, pageSizeOptions, render, }: TablePaginationProps) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
6
|
+
//# sourceMappingURL=TablePagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../../../src/ui/Table/components/pagination/TablePagination.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,oBAAoB,EACpB,OAAO,CACR;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,eAAe,GAAI,iFAQ7B,oBAAoB,gWAoDtB,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronLeft as g, ChevronRight as v } from "lucide-react";
|
|
4
|
+
import { useProvider as w } from "../../../../app/Provider.js";
|
|
5
|
+
import { Flex as o } from "../../../Flex/Flex.js";
|
|
6
|
+
import { IconButton as d } from "../../../IconButton/IconButton.js";
|
|
7
|
+
import { Select as y } from "../../../Select/Select.js";
|
|
8
|
+
import { Text as f } from "../../../Text/Text.js";
|
|
9
|
+
const M = ({
|
|
10
|
+
page: r,
|
|
11
|
+
size: t,
|
|
12
|
+
total: n = 0,
|
|
13
|
+
onPageChange: i,
|
|
14
|
+
onPageSizeChange: s,
|
|
15
|
+
pageSizeOptions: h = [10, 25, 50, 100],
|
|
16
|
+
render: m
|
|
17
|
+
}) => {
|
|
18
|
+
const { messages: a } = w();
|
|
19
|
+
if (m) return m({ page: r, size: t, onPageChange: i, onPageSizeChange: s });
|
|
20
|
+
const b = Math.ceil(n / t), p = n === 0 ? 0 : (r - 1) * t + 1, u = Math.min(r * t, n), x = h.map((c) => ({
|
|
21
|
+
label: String(c),
|
|
22
|
+
value: c
|
|
23
|
+
}));
|
|
24
|
+
return /* @__PURE__ */ l(
|
|
25
|
+
o,
|
|
26
|
+
{
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
justifyContent: "end",
|
|
29
|
+
gap: "md",
|
|
30
|
+
className: "p-2 bg-background-primary",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ l(o, { alignItems: "center", children: [
|
|
33
|
+
/* @__PURE__ */ e(f, { className: "text-gray-1", children: a.rowsPerPage }),
|
|
34
|
+
/* @__PURE__ */ e(
|
|
35
|
+
y,
|
|
36
|
+
{
|
|
37
|
+
clearable: !1,
|
|
38
|
+
value: t,
|
|
39
|
+
onChange: s,
|
|
40
|
+
withArrow: !1,
|
|
41
|
+
options: x,
|
|
42
|
+
className: "w-16"
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ e(f, { className: "text-gray-1", children: `${p}–${u} ${a.paginationOf} ${n}` }),
|
|
47
|
+
/* @__PURE__ */ l(o, { gap: "sm", alignItems: "center", children: [
|
|
48
|
+
/* @__PURE__ */ e(
|
|
49
|
+
d,
|
|
50
|
+
{
|
|
51
|
+
"aria-label": a.previousPage,
|
|
52
|
+
onClick: () => i(r - 1),
|
|
53
|
+
disabled: r <= 1,
|
|
54
|
+
children: /* @__PURE__ */ e(g, {})
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ e(
|
|
58
|
+
d,
|
|
59
|
+
{
|
|
60
|
+
"aria-label": a.nextPage,
|
|
61
|
+
onClick: () => i(r + 1),
|
|
62
|
+
disabled: r >= b,
|
|
63
|
+
children: /* @__PURE__ */ e(v, {})
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
M as TablePagination
|
|
73
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TableProps } from '../../Table.types.js';
|
|
2
|
+
type TableRootProps<T> = Omit<TableProps<T>, 'selection'> & {
|
|
3
|
+
selectedKey?: keyof T;
|
|
4
|
+
};
|
|
5
|
+
export declare const TableRoot: <T>({ maxHeight, withBorder, pagination, columns, hiddenColumns, ...props }: TableRootProps<T>) => import("react").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=TableRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRoot.d.ts","sourceRoot":"","sources":["../../../../../src/ui/Table/components/root/TableRoot.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,KAAK,cAAc,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,GAAG;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,CAAC,EAAG,yEAO3B,cAAc,CAAC,CAAC,CAAC,gCAanB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as u, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import b from "clsx";
|
|
4
|
+
import { TableContent as f } from "../content/TableContent.js";
|
|
5
|
+
import { TablePagination as p } from "../pagination/TablePagination.js";
|
|
6
|
+
import l from "./TableRoot.module.css.js";
|
|
7
|
+
const v = ({
|
|
8
|
+
maxHeight: o = "100%",
|
|
9
|
+
withBorder: e = !0,
|
|
10
|
+
pagination: r,
|
|
11
|
+
columns: m,
|
|
12
|
+
hiddenColumns: i = [],
|
|
13
|
+
...c
|
|
14
|
+
}) => {
|
|
15
|
+
const t = o !== "auto", n = m.filter(({ key: a }) => !i.includes(a));
|
|
16
|
+
return /* @__PURE__ */ u(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
className: b(l.root, { [l.borderless]: !e }),
|
|
20
|
+
style: { height: t ? "100%" : "auto", maxHeight: o },
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ s(f, { columns: n, scrollable: t, ...c }),
|
|
23
|
+
r && /* @__PURE__ */ s(p, { ...r })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
v as TableRoot
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelected.d.ts","sourceRoot":"","sources":["../../../../src/ui/Table/hooks/useSelected.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,8DAA0B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { useSelected } from './hooks/useSelected.js';
|
|
2
|
+
export { Table } from './Table.js';
|
|
3
|
+
export type { IColumn, SortParams, TableBodyProps, TableContextProps, TableEmptyConfig, TablePaginationConfig, TablePaginationState, TableParams, TableProps, TableSelectionState, TableSortingState, } from './Table.types.js';
|
|
4
|
+
export { SortOrder } from './Table.types.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EACV,OAAO,EACP,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/ui/Tabs/Tab.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ComponentProps } from
|
|
2
|
-
export interface TabProps extends Omit<ComponentProps<
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export interface TabProps extends Omit<ComponentProps<'button'>, 'value'> {
|
|
3
3
|
value: string;
|
|
4
|
-
color?:
|
|
4
|
+
color?: 'primary' | 'secondary';
|
|
5
5
|
}
|
|
6
6
|
export declare const Tab: ({ value, color, children, className, onClick, ...props }: TabProps) => import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=Tab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACjC;AAED,eAAO,MAAM,GAAG,GAAI,0DAOjB,QAAQ,gCAyBV,CAAC"}
|
package/dist/ui/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { type
|
|
3
|
-
export { type
|
|
4
|
-
export { type TabsPanelProps } from
|
|
1
|
+
export { type TabsRootProps, useTabs } from './context.js';
|
|
2
|
+
export { type TabProps } from './Tab.js';
|
|
3
|
+
export { type TabsListProps } from './TabsList.js';
|
|
4
|
+
export { type TabsPanelProps } from './TabsPanel.js';
|
|
5
5
|
export declare const Tabs: {
|
|
6
6
|
Root: ({ children, defaultValue, value, onChange, }: import("./context.js").TabsRootProps) => import("react").JSX.Element;
|
|
7
7
|
List: ({ children, direction, className, ...props }: import("./TabsList.js").TabsListProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/Tabs.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,eAAO,MAAM,IAAI;;;;;CAA4D,CAAC"}
|
package/dist/ui/Tabs/Tabs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { TabsRoot as o } from "./context.js";
|
|
3
3
|
import { useTabs as f } from "./context.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Tab as r } from "./Tab.js";
|
|
5
|
+
import { TabsList as t } from "./TabsList.js";
|
|
6
6
|
import { TabsPanel as m } from "./TabsPanel.js";
|
|
7
|
-
const p = { Root: o, List:
|
|
7
|
+
const p = { Root: o, List: t, Tab: r, Panel: m };
|
|
8
8
|
export {
|
|
9
9
|
p as Tabs,
|
|
10
10
|
f as useTabs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FlexProps } from
|
|
1
|
+
import { type FlexProps } from '../Flex/Flex.js';
|
|
2
2
|
export type TabsListProps = FlexProps;
|
|
3
3
|
export declare const TabsList: ({ children, direction, className, ...props }: TabsListProps) => import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=TabsList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/TabsList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabsList.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/TabsList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;AAEtC,eAAO,MAAM,QAAQ,GAAI,8CAKtB,aAAa,gCAef,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps } from
|
|
2
|
-
export interface TabsPanelProps extends ComponentProps<
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export interface TabsPanelProps extends ComponentProps<'div'> {
|
|
3
3
|
value: string;
|
|
4
4
|
}
|
|
5
5
|
export declare const TabsPanel: ({ value, children, ...props }: TabsPanelProps) => import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsPanel.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/TabsPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TabsPanel.d.ts","sourceRoot":"","sources":["../../../src/ui/Tabs/TabsPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,SAAS,GAAI,+BAA+B,cAAc,uCAStE,CAAC"}
|
package/dist/ui/Text/Text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps } from
|
|
2
|
-
import { type ResponsiveSize } from
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { type ResponsiveSize } from '../../lib/getResponsiveSize.js';
|
|
3
3
|
declare const WEIGHTS_MAP: {
|
|
4
4
|
readonly thin: "font-thin";
|
|
5
5
|
readonly extralight: "font-extralight";
|
|
@@ -17,13 +17,13 @@ declare const FONT_SIZES: {
|
|
|
17
17
|
readonly md: "text-base";
|
|
18
18
|
readonly lg: "text-lg";
|
|
19
19
|
readonly xl: "text-xl";
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
20
|
+
readonly '2xl': "text-2xl";
|
|
21
|
+
readonly '3xl': "text-3xl";
|
|
22
|
+
readonly '4xl': "text-4xl";
|
|
23
23
|
readonly inherit: "";
|
|
24
24
|
};
|
|
25
25
|
type TextSize = keyof typeof FONT_SIZES;
|
|
26
|
-
export interface TextProps extends ComponentProps<
|
|
26
|
+
export interface TextProps extends ComponentProps<'span'> {
|
|
27
27
|
size?: ResponsiveSize<TextSize>;
|
|
28
28
|
weight?: keyof typeof WEIGHTS_MAP;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/ui/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/ui/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AAEnC,QAAA,MAAM,WAAW;;;;;;;;;;CAUP,CAAC;AAEX,QAAA,MAAM,UAAU;;;;;;;;;;CAUN,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,UAAU,CAAC;AAExC,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,MAAM,CAAC;IACvD,IAAI,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;CACnC;AAED,eAAO,MAAM,IAAI,GAAI,iDAMlB,SAAS,gCAgBX,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ComponentProps } from
|
|
2
|
-
import type { InputControlProps } from
|
|
3
|
-
export type TextareaProps = InputControlProps & Omit<ComponentProps<
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import type { InputControlProps } from '../Input/Input.js';
|
|
3
|
+
export type TextareaProps = InputControlProps & Omit<ComponentProps<'textarea'>, 'size'> & {
|
|
4
4
|
minRows?: number;
|
|
5
5
|
maxRows?: number;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/ui/Textarea/Textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/ui/Textarea/Textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAkC,MAAM,OAAO,CAAC;AAM5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAI5D,MAAM,MAAM,aAAa,GAAG,iBAAiB,GACzC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAqBJ,eAAO,MAAM,QAAQ,GAAI,kKAiBtB,aAAa,gCAqDf,CAAC"}
|