@caspeco/casper-ui-library 0.0.2 → 0.0.3
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 +34 -22
- package/dist/components/accordion/accordion-item.d.ts.map +1 -1
- package/dist/components/accordion/accordion-panel.d.ts +1 -1
- package/dist/components/accordion/accordion-panel.d.ts.map +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/types.d.ts +1 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +6 -6
- package/dist/components/alert/helper.d.ts +1 -1
- package/dist/components/alert/helper.d.ts.map +1 -1
- package/dist/components/alert/types.d.ts +1 -1
- package/dist/components/alert/types.d.ts.map +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +5 -5
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.d.ts.map +1 -1
- package/dist/components/badge/types.d.ts +1 -1
- package/dist/components/badge/types.d.ts.map +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/types.d.ts +2 -2
- package/dist/components/button/types.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox-icon.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox-icon.js +4 -4
- package/dist/components/checkbox/types.d.ts +1 -1
- package/dist/components/checkbox/types.d.ts.map +1 -1
- package/dist/components/checkbox-group/types.d.ts +1 -1
- package/dist/components/checkbox-group/types.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +5 -5
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +5 -5
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +11 -11
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
- package/dist/components/date-picker/helper.d.ts.map +1 -1
- package/dist/components/date-picker/helper.js +1 -3
- package/dist/components/date-picker/index.d.ts +1 -3
- package/dist/components/date-picker/index.d.ts.map +1 -1
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.d.ts.map +1 -1
- package/dist/components/drawer/inline-drawer.js +7 -7
- package/dist/components/drawer/use-drawer-key-down.d.ts +1 -1
- package/dist/components/drawer/use-drawer-key-down.d.ts.map +1 -1
- package/dist/components/drawer/use-drawer-key-down.js +1 -5
- package/dist/components/form-control/form-control.d.ts +1 -1
- package/dist/components/form-control/form-control.d.ts.map +1 -1
- package/dist/components/form-control/form-label.d.ts +1 -1
- package/dist/components/form-control/form-label.d.ts.map +1 -1
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/icon-button/types.d.ts +2 -2
- package/dist/components/icon-button/types.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +4 -4
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +4 -4
- package/dist/components/image-upload/index.d.ts +1 -2
- package/dist/components/image-upload/index.d.ts.map +1 -1
- package/dist/components/input/types.d.ts.map +1 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/list/index.d.ts +1 -1
- package/dist/components/list/index.d.ts.map +1 -1
- package/dist/components/list/list-item.d.ts +1 -1
- package/dist/components/list/list-item.d.ts.map +1 -1
- package/dist/components/menu/index.d.ts +5 -5
- package/dist/components/menu/index.d.ts.map +1 -1
- package/dist/components/menu/menu-box-button.d.ts.map +1 -1
- package/dist/components/menu/menu-button.d.ts.map +1 -1
- package/dist/components/menu/menu-group.d.ts.map +1 -1
- package/dist/components/menu/menu-group.js +7 -7
- package/dist/components/menu/menu-item.d.ts +1 -1
- package/dist/components/menu/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-list.d.ts +1 -1
- package/dist/components/menu/menu-list.d.ts.map +1 -1
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/menu/types.d.ts.map +1 -1
- package/dist/components/message/message.d.ts.map +1 -1
- package/dist/components/modal/index.d.ts +2 -2
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/modal/modal-body.d.ts +1 -1
- package/dist/components/modal/modal-body.d.ts.map +1 -1
- package/dist/components/modal/modal-footer.d.ts +1 -1
- package/dist/components/modal/modal-footer.d.ts.map +1 -1
- package/dist/components/modal/modal-footer.js +5 -5
- package/dist/components/modal/modal-header.d.ts +1 -1
- package/dist/components/modal/modal-header.d.ts.map +1 -1
- package/dist/components/navigation-list/index.d.ts +2 -2
- package/dist/components/navigation-list/index.d.ts.map +1 -1
- package/dist/components/navigation-list/navigation-list-item.js +3 -3
- package/dist/components/navigation-list/types.d.ts +2 -2
- package/dist/components/navigation-list/types.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.d.ts.map +1 -1
- package/dist/components/quantity-button/types.d.ts +1 -1
- package/dist/components/quantity-button/types.d.ts.map +1 -1
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/radio/index.d.ts.map +1 -1
- package/dist/components/radio/radio-addon.d.ts.map +1 -1
- package/dist/components/radio/radio-card.d.ts +1 -1
- package/dist/components/radio/radio-card.d.ts.map +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/radio/radio.js +5 -5
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/index.d.ts.map +1 -1
- package/dist/components/segmented-control/index.d.ts +1 -1
- package/dist/components/segmented-control/index.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control-item.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control-item.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/stepper/index.d.ts +1 -1
- package/dist/components/stepper/index.d.ts.map +1 -1
- package/dist/components/stepper/step.js +11 -11
- package/dist/components/stepper/stepper.d.ts.map +1 -1
- package/dist/components/stepper/stepper.js +3 -3
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/switch/switch.js +5 -5
- package/dist/components/table/index.d.ts +2 -3
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/table-cell.d.ts +1 -1
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +9 -9
- package/dist/components/table/table-content.d.ts +1 -1
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +11 -11
- package/dist/components/table/table-context.d.ts +2 -2
- package/dist/components/table/table-context.d.ts.map +1 -1
- package/dist/components/table/table-context.js +5 -5
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +9 -9
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +12 -12
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +4 -4
- package/dist/components/table/table-row.d.ts +1 -1
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +8 -8
- package/dist/components/table/table-toolbar.d.ts +1 -1
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +9 -9
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/types.d.ts +2 -2
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/tabs/tab-with-image.d.ts.map +1 -1
- package/dist/components/tabs/tab-with-image.js +10 -10
- package/dist/components/tabs/tab.d.ts.map +1 -1
- package/dist/components/tabs/types.d.ts +1 -1
- package/dist/components/tabs/types.d.ts.map +1 -1
- package/dist/components/tag/types.d.ts +2 -2
- package/dist/components/tag/types.d.ts.map +1 -1
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/toast/toast.d.ts +1 -1
- package/dist/components/toast/toast.d.ts.map +1 -1
- package/dist/components/toggle-button/types.d.ts +1 -1
- package/dist/components/toggle-button/types.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/index.js +46 -46
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/theme-config/components/accordion-theme.d.ts +4 -4
- package/dist/theme/theme-config/components/button-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/button-theme.js +1 -1
- package/dist/theme/theme-config/components/checkbox-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/checkbox-theme.js +3 -3
- package/dist/theme/theme-config/components/combobox-theme.d.ts +1 -1
- package/dist/theme/theme-config/components/drawer-theme.d.ts +1 -1
- package/dist/theme/theme-config/components/form-error-theme.d.ts +3 -3
- package/dist/theme/theme-config/components/input-theme.d.ts +8 -4
- package/dist/theme/theme-config/components/input-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/input-theme.js +42 -39
- package/dist/theme/theme-config/components/select-theme.d.ts +7 -3
- package/dist/theme/theme-config/components/select-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/select-theme.js +0 -1
- package/dist/theme/theme-config/components/switch-theme.d.ts.map +1 -1
- package/dist/theme/theme-config/components/switch-theme.js +3 -3
- package/dist/theme/theme-config/components/tabs-theme.js +1 -1
- package/dist/theme/theme-config/theme-components.js +50 -50
- package/dist/theme/theme-provider.js +5 -5
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { Tr as s, Th as d } from "@chakra-ui/react";
|
|
3
|
+
import { flexRender as g } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
4
|
+
import { memo as c, useContext as p, useCallback as b } from "react";
|
|
5
|
+
import { TableContext as C } from "./table-context.js";
|
|
6
|
+
import { TableHeaderDropdown as f } from "./table-header-dropdown.js";
|
|
7
7
|
import { Box as u } from "../box/box.js";
|
|
8
8
|
import { ThemeColorVariable as a, ThemeSpaceVariable as S } from "../../theme/theme-types.js";
|
|
9
|
-
const z =
|
|
10
|
-
const t =
|
|
9
|
+
const z = c(({ headerGroup: r, hideTableHeaderDropdown: l }) => {
|
|
10
|
+
const t = p(C);
|
|
11
11
|
if (!t) throw new Error("Expected tableData");
|
|
12
|
-
const m =
|
|
12
|
+
const m = b(
|
|
13
13
|
(e) => {
|
|
14
14
|
const o = e.getIsPinned();
|
|
15
15
|
return {
|
|
@@ -23,11 +23,11 @@ const z = s(({ headerGroup: r, hideTableHeaderDropdown: l }) => {
|
|
|
23
23
|
},
|
|
24
24
|
[]
|
|
25
25
|
);
|
|
26
|
-
return /* @__PURE__ */ n(
|
|
26
|
+
return /* @__PURE__ */ n(s, { children: r.headers.map((e) => {
|
|
27
27
|
var i;
|
|
28
28
|
const { column: o } = e;
|
|
29
29
|
return /* @__PURE__ */ n(
|
|
30
|
-
|
|
30
|
+
d,
|
|
31
31
|
{
|
|
32
32
|
className: "tableHeaderCell",
|
|
33
33
|
isNumeric: (i = o.columnDef.meta) == null ? void 0 : i.isNumeric,
|
|
@@ -36,8 +36,8 @@ const z = s(({ headerGroup: r, hideTableHeaderDropdown: l }) => {
|
|
|
36
36
|
...m(o),
|
|
37
37
|
borderBottom: `1px solid ${a.OnBackgroundBorder}`
|
|
38
38
|
},
|
|
39
|
-
children: l ? /* @__PURE__ */ n(u, { paddingLeft: S.Small, children:
|
|
40
|
-
|
|
39
|
+
children: l ? /* @__PURE__ */ n(u, { paddingLeft: S.Small, children: g(e.column.columnDef.header, e.getContext()) }) : /* @__PURE__ */ n(
|
|
40
|
+
f,
|
|
41
41
|
{
|
|
42
42
|
header: e,
|
|
43
43
|
breakingContentState: t.breakingContentState,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-row-expand-toggle-button.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-row-expand-toggle-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-row-expand-toggle-button.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-row-expand-toggle-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,+BAA+B;IACxC,GAAG,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,0BAA0B,qFACS,+BAA+B,6CAkC9E,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Box as c } from "@chakra-ui/react";
|
|
3
|
+
import { memo as d } from "react";
|
|
4
4
|
import { translations as x } from "./translations.js";
|
|
5
5
|
import { IconButton as g } from "../icon-button/icon-button.js";
|
|
6
6
|
import { Icons as i } from "../icon/types.js";
|
|
7
7
|
import { ThemeSpaceVariable as f } from "../../theme/theme-types.js";
|
|
8
|
-
const R =
|
|
8
|
+
const R = d(
|
|
9
9
|
({ row: o, localeString: l, rowIsExpanded: a, hidden: n }) => {
|
|
10
10
|
const e = x[l], m = o.getToggleExpandedHandler(), p = (t) => {
|
|
11
11
|
t.stopPropagation(), m();
|
|
12
12
|
}, s = () => a ? `${e.collapseRow} ${o.index + 1}` : `${e.expandRow} ${o.index + 1}`;
|
|
13
|
-
return /* @__PURE__ */ r(
|
|
13
|
+
return /* @__PURE__ */ r(c, { as: "span", h: "100%", children: /* @__PURE__ */ r(
|
|
14
14
|
g,
|
|
15
15
|
{
|
|
16
16
|
size: "sm",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-row.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-row.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-row.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-row.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAIvD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE3D,KAAK,aAAa,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,IAAI;IAC/C,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,YAAY,EAAE,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC;IACnC,UAAU,CAAC,EAAE,CACZ,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,EACrB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,KACnF,IAAI,CAAC;IACV,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,6EAM/C,aAAa,CAAC,CAAC,CAAC,4CA6ElB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAA0B,OAAO,aAAa,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Tr as f } from "@chakra-ui/react";
|
|
3
|
+
import { memo as h, useContext as x, useMemo as i, useCallback as c } from "react";
|
|
4
|
+
import { TableCell as S } from "./table-cell.js";
|
|
5
|
+
import { TableContext as T } from "./table-context.js";
|
|
6
6
|
import { ThemeColorVariable as n } from "../../theme/theme-types.js";
|
|
7
7
|
const y = ({
|
|
8
8
|
row: t,
|
|
@@ -11,7 +11,7 @@ const y = ({
|
|
|
11
11
|
showRowHoverStyle: g,
|
|
12
12
|
onRowClickIndication: d
|
|
13
13
|
}) => {
|
|
14
|
-
const o =
|
|
14
|
+
const o = x(T);
|
|
15
15
|
if (!o)
|
|
16
16
|
throw new Error("No table context");
|
|
17
17
|
const p = i(
|
|
@@ -29,7 +29,7 @@ const y = ({
|
|
|
29
29
|
[o.data, r, d]
|
|
30
30
|
), m = () => t.getIsSelected() ? n.AccentHoverAlpha : "unset", b = i(() => m(), [o.rowSelection]);
|
|
31
31
|
return /* @__PURE__ */ l(
|
|
32
|
-
|
|
32
|
+
f,
|
|
33
33
|
{
|
|
34
34
|
id: t.id,
|
|
35
35
|
tabIndex: r ? 0 : void 0,
|
|
@@ -40,7 +40,7 @@ const y = ({
|
|
|
40
40
|
backgroundColor: b,
|
|
41
41
|
_hover: p,
|
|
42
42
|
children: a.map((e) => /* @__PURE__ */ l(
|
|
43
|
-
|
|
43
|
+
S,
|
|
44
44
|
{
|
|
45
45
|
cell: e,
|
|
46
46
|
visibleCells: a,
|
|
@@ -54,7 +54,7 @@ const y = ({
|
|
|
54
54
|
},
|
|
55
55
|
t.id
|
|
56
56
|
);
|
|
57
|
-
}, I =
|
|
57
|
+
}, I = h(y);
|
|
58
58
|
export {
|
|
59
59
|
I as TableRow
|
|
60
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-toolbar.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-toolbar.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar.tsx"],"names":[],"mappings":"AAOA,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,KAAK,WAAW,EAA0C,MAAM,OAAO,CAAC;AAGjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,IAAI;IAC1D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACtD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,iBAAS,iBAAiB,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,EACrD,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,GAAG,KAAK,EACR,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,eAAe,2CAsIxC;AAED,eAAO,MAAM,YAAY,EAA8B,OAAO,iBAAiB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as o, Fragment as F } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { useMediaQuery as L, Flex as i, Box as j, Portal as z } from "@chakra-ui/react";
|
|
3
|
+
import { memo as O, useContext as v, useCallback as A, useMemo as g } from "react";
|
|
4
|
+
import { TableContext as H } from "./table-context.js";
|
|
5
|
+
import { translations as E } from "./translations.js";
|
|
6
6
|
import { Text as f } from "../text/text.js";
|
|
7
7
|
import { Input as G } from "../input/input.js";
|
|
8
8
|
import { Icon as C } from "../icon/icon.js";
|
|
@@ -22,9 +22,9 @@ function U({
|
|
|
22
22
|
onAddNewItem: y,
|
|
23
23
|
...M
|
|
24
24
|
}) {
|
|
25
|
-
const e =
|
|
25
|
+
const e = v(H);
|
|
26
26
|
if (!e) throw new Error("No table context found");
|
|
27
|
-
const [x] =
|
|
27
|
+
const [x] = L("(min-width: 48em)"), l = E[e.localeString], s = A(() => e.table.getAllColumns().length === Object.keys(e.breakingContentState).length && !Object.values(e.breakingContentState).includes(!1), [e.breakingContentState]), I = (n) => {
|
|
28
28
|
var d;
|
|
29
29
|
const a = {};
|
|
30
30
|
e.table.getAllColumns().forEach((V) => {
|
|
@@ -42,7 +42,7 @@ function U({
|
|
|
42
42
|
}
|
|
43
43
|
), h = () => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ o(D, { closeOnSelect: !1, isLazy: !0, children: [
|
|
44
44
|
/* @__PURE__ */ t(N, { "aria-label": l.presets, variant: "ghost", p: "unset", w: "40px", h: "40px", children: /* @__PURE__ */ t(C, { icon: m.Sliders, size: R.Medium }) }),
|
|
45
|
-
/* @__PURE__ */ t(
|
|
45
|
+
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ o(P, { children: [
|
|
46
46
|
/* @__PURE__ */ t(
|
|
47
47
|
f,
|
|
48
48
|
{
|
|
@@ -100,9 +100,9 @@ function U({
|
|
|
100
100
|
] }),
|
|
101
101
|
[s, e.breakingContentState, e.columnVisibility]
|
|
102
102
|
);
|
|
103
|
-
return /* @__PURE__ */ t(
|
|
103
|
+
return /* @__PURE__ */ t(j, { id: "tableToolbar", ...M, children: x ? w : B });
|
|
104
104
|
}
|
|
105
|
-
const be =
|
|
105
|
+
const be = O(U);
|
|
106
106
|
export {
|
|
107
107
|
be as TableToolbar
|
|
108
108
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableProps, TableSubrows } from './types.js';
|
|
2
2
|
export declare function Table<I extends TableSubrows<I>>({ columns, data, localeString, expandedState, initialExpandedState, initialBreakingContentState, initialColumnVisibilityState, columnVisibilityState, onColumnVisibilityChange, onExpandedChange, onBreakingContentChange, onFilterColumn, id, customRowIndication, children, }: TableProps<I>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAExD,wBAAgB,KAAK,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,EAChD,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,oBAAyB,EACzB,2BAAgC,EAChC,4BAA4B,EAC5B,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,EAAE,EACF,mBAAmB,EACnB,QAAQ,GACR,EAAE,UAAU,CAAC,CAAC,CAAC,2CAqBf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { CellContext, Column, ColumnDef, ExpandedState, RowData, RowSelectionState, VisibilityState } from '@tanstack/react-table';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ColumnDef, VisibilityState, ExpandedState, RowData, RowSelectionState, CellContext, Column } from '@tanstack/react-table';
|
|
3
3
|
import { Locales } from './translations.js';
|
|
4
|
-
export type {
|
|
4
|
+
export type { CellContext, ColumnDef, ExpandedState, VisibilityState };
|
|
5
5
|
export type TableSubrows<K> = {
|
|
6
6
|
subRows?: K[];
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/table/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/table/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,MAAM,EACN,SAAS,EACT,aAAa,EACb,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAEvE,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;IAC7B,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE/E,UAAU,cAAc,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC;IACjD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IACzB;;OAEG;IACH,YAAY,EAAE,OAAO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,KAAK,SAAS,OAAO;QACxC,KAAK,CAAC,EAAE,KAAK,CAAC;KACd;CACD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Tabs } from './tabs.js';
|
|
2
1
|
export { Tab } from './tab.js';
|
|
3
2
|
export { TabList } from './tab-list.js';
|
|
4
|
-
export { TabPanels } from './tab-panels.js';
|
|
5
3
|
export { TabPanel } from './tab-panel.js';
|
|
6
|
-
export
|
|
4
|
+
export { TabPanels } from './tab-panels.js';
|
|
5
|
+
export { Tabs } from './tabs.js';
|
|
6
|
+
export type { TabListProps, TabPanelProps, TabPanelsProps, TabProps, TabsProps } from './types.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-with-image.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/tab-with-image.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tab-with-image.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/tab-with-image.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,8EAyD7B,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import g from "react";
|
|
3
|
-
import
|
|
2
|
+
import { useMediaQuery as g, useTab as f, useMultiStyleConfig as x, Box as n, Button as T, VisuallyHidden as R, Flex as S, AspectRatio as _, Image as v } from "@chakra-ui/react";
|
|
3
|
+
import W from "react";
|
|
4
4
|
import { ThemeRadiusVariable as d, ThemeSpaceVariable as w } from "../../theme/theme-types.js";
|
|
5
|
-
const H =
|
|
6
|
-
const [t] =
|
|
5
|
+
const H = W.forwardRef((c, u) => {
|
|
6
|
+
const [t] = g("(min-width: 48em)"), e = t ? "96px" : "72px", { imgAlt: b, imgSrc: h, imgFallbackColor: r, children: o, isDisabled: i } = c, s = f({
|
|
7
7
|
...{ isDisabled: i },
|
|
8
8
|
ref: u
|
|
9
|
-
}), l =
|
|
9
|
+
}), l = x("Tabs", {
|
|
10
10
|
variant: "default",
|
|
11
11
|
size: t ? "md" : "sm"
|
|
12
12
|
}), p = r ? /* @__PURE__ */ a(
|
|
@@ -20,11 +20,11 @@ const H = g.forwardRef((c, u) => {
|
|
|
20
20
|
borderRadius: d.Medium
|
|
21
21
|
}
|
|
22
22
|
) : void 0;
|
|
23
|
-
return /* @__PURE__ */ m(
|
|
24
|
-
/* @__PURE__ */ a(
|
|
25
|
-
/* @__PURE__ */ m(
|
|
26
|
-
/* @__PURE__ */ a(
|
|
27
|
-
|
|
23
|
+
return /* @__PURE__ */ m(T, { variant: "unsyled", isDisabled: i, __css: l.tabWithImage, ...s, children: [
|
|
24
|
+
/* @__PURE__ */ a(R, { children: o }),
|
|
25
|
+
/* @__PURE__ */ m(S, { direction: "column", align: "center", role: "group", children: [
|
|
26
|
+
/* @__PURE__ */ a(_, { ratio: 1, maxWidth: e, minWidth: e, mb: w.XSmall, children: /* @__PURE__ */ a(
|
|
27
|
+
v,
|
|
28
28
|
{
|
|
29
29
|
src: h,
|
|
30
30
|
alt: b,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/tab.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,2CASrF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThemeColorVariable, ThemeStyleProps } from '../../theme/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { TabListProps as ChakraTabListProps, TabPanelProps as ChakraTabPanelProps, TabPanelsProps as ChakraTabPanelsProps, TabProps as ChakraTabProps, TabsProps as ChakraTabsProps } from '@chakra-ui/react';
|
|
3
3
|
export type TabListProps = Pick<ChakraTabListProps, "children"> & ThemeStyleProps;
|
|
4
4
|
export type TabPanelsProps = Pick<ChakraTabPanelsProps, "children"> & ThemeStyleProps;
|
|
5
5
|
export type TabPanelProps = Pick<ChakraTabPanelProps, "children"> & ThemeStyleProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,KAAK,EACX,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TagProps as ChakraTagProps, ResponsiveValue } from '@chakra-ui/react';
|
|
2
|
-
import { MarginProps } from '../../theme/index.js';
|
|
3
1
|
import { Icons } from '../icon/index.js';
|
|
2
|
+
import { MarginProps } from '../../theme/index.js';
|
|
3
|
+
import { TagProps as ChakraTagProps, ResponsiveValue } from '@chakra-ui/react';
|
|
4
4
|
type CustomChakraTagProperties = Pick<ChakraTagProps, "children">;
|
|
5
5
|
export type TagPropsBase = {
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,IAAI,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEpF,KAAK,yBAAyB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAElE,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;CAC3C,GAAG,yBAAyB,GAC5B,WAAW,CAAC;AAEb,KAAK,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B,CAAC;CAC7B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextProps as ChakraTextProps } from '@chakra-ui/react';
|
|
2
1
|
import { ThemeStyleProps } from '../../theme/index.js';
|
|
2
|
+
import { TextProps as ChakraTextProps } from '@chakra-ui/react';
|
|
3
3
|
type CustomProperties = {
|
|
4
4
|
/** Define what (text-related) element Text should render as. */
|
|
5
5
|
as?: "p" | "span" | "em" | "i" | "u" | "s";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../lib/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../lib/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAsB,KAAK,SAAS,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEzF,KAAK,gBAAgB,GAAG;IACvB,gEAAgE;IAChE,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CAC3C,CAAC;AAEF,KAAK,oBAAoB,GAAG,IAAI,CAC/B,eAAe,EACf,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,CAC5E,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,oBAAoB,GAAG,gBAAgB,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACpB,EAAQ,EACR,UAAmC,EACnC,QAAuC,EACvC,UAAqB,EACrB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,SAAS,2CAaX"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomChakraBoxProps, MarginProps, PaddingProps
|
|
1
|
+
import { CustomChakraBoxProps, LayoutProps, MarginProps, PaddingProps } from '../../theme/index.js';
|
|
2
2
|
import { TextareaProps as ChakraTextareaProps } from '@chakra-ui/react';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
type CustomProperties = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../lib/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../lib/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAA8B,KAAK,aAAa,IAAI,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACzG,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,gBAAgB,GAAG;IACvB,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;CAC/B,CAAC;AAEF,KAAK,gBAAgB,GAAG,oBAAoB,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,gBAAgB,CAAC;AAE3G,KAAK,wBAAwB,GAAG,IAAI,CACnC,mBAAmB,EACjB,IAAI,GACJ,MAAM,GACN,aAAa,GACb,MAAM,GACN,OAAO,GACP,cAAc,GACd,UAAU,GACV,QAAQ,GACR,SAAS,GACT,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,YAAY,CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,wBAAwB,GAAG,gBAAgB,CAAC;AAExE,eAAO,MAAM,QAAQ,2LAEnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResponsiveValue, UseToastOptions as UseChakraToastOptions } from '@chakra-ui/react';
|
|
2
1
|
import { AlertType } from '../alert/index.js';
|
|
3
2
|
import { ThemeSpaceVariable } from '../../theme/index.js';
|
|
3
|
+
import { ResponsiveValue, UseToastOptions as UseChakraToastOptions } from '@chakra-ui/react';
|
|
4
4
|
export type ShowToastOptions = {
|
|
5
5
|
/** Main text content to display in Toast. Required. */
|
|
6
6
|
description: string | JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../lib/components/toast/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../lib/components/toast/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAuB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EACN,KAAK,eAAe,EAEpB,KAAK,eAAe,IAAI,qBAAqB,EAC7C,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,gBAAgB,GAAG;IAC9B,uDAAuD;IACvD,WAAW,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAClC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;kEAC8D;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAC,kBAAkB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC;CACvE,GAAG,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,QAAQ;2EASpB,gBAAgB;EAgCnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ButtonProps as ChakraButtonProps, ResponsiveValue } from '@chakra-ui/react';
|
|
2
1
|
import { CustomChakraBoxProps, LayoutProps, MarginProps, PaddingProps } from '../../theme/index.js';
|
|
2
|
+
import { ButtonProps as ChakraButtonProps, ResponsiveValue } from '@chakra-ui/react';
|
|
3
3
|
type CustomStyleProps = CustomChakraBoxProps & LayoutProps & MarginProps & PaddingProps;
|
|
4
4
|
type CustomProperties = {
|
|
5
5
|
/** Indicate wether button is pressed or not. Defaults to false. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/toggle-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/toggle-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,KAAK,EAAE,WAAW,IAAI,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE1F,KAAK,gBAAgB,GAAG,oBAAoB,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;AAExF,KAAK,gBAAgB,GAAG;IACvB,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,eAAe,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,KAAK,sBAAsB,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;AAEtG,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG,sBAAsB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomChakraBoxProps, MarginProps, PaddingProps } from '../../theme/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { TooltipProps as ChakraTooltipProps, GridProps, LayoutProps, TypographyProps } from '@chakra-ui/react';
|
|
3
3
|
export type TooltipProps = Pick<ChakraTooltipProps, "children" | "placement" | "label"> & CustomChakraBoxProps & PaddingProps & MarginProps & LayoutProps & GridProps & TypographyProps;
|
|
4
4
|
/**
|
|
5
5
|
* Tooltips display informative text when users hover, focus on, or tap an element.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../lib/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,YAAY,EAMjB,MAAM,SAAS,CAAC;AACjB,OAAO,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../lib/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,YAAY,EAMjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAEN,KAAK,YAAY,IAAI,kBAAkB,EACvC,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACtF,oBAAoB,GACpB,YAAY,GACZ,WAAW,GACX,WAAW,GACX,SAAS,GACT,eAAe,CAAC;AAEjB;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,SAAoB,EACpB,CAA4B,EAC5B,QAAsC,EACtC,UAAmC,EACnC,GAAG,KAAK,EACR,EAAE,YAAY,2CAkBd"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useColorMode as e, useDisclosure as t, useRadioGroup as m } from "@chakra-ui/react";
|
|
2
2
|
import { isTouchScreenDevice as x } from "./theme/theme-helper.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColorModeScript as a, ThemeProvider as i, ThemeProviderContext as n } from "./theme/theme-provider.js";
|
|
4
4
|
import { ThemeBorderVariable as d, ThemeBreakPointVariable as u, ThemeColorVariable as T, ThemeFontSizeVariable as c, ThemeFontVariable as s, ThemeIconSizeVariable as b, ThemeRadiusVariable as h, ThemeShadowVariable as M, ThemeSpaceVariable as g } from "./theme/theme-types.js";
|
|
5
5
|
import { Accordion as C } from "./components/accordion/accordion.js";
|
|
6
6
|
import { AccordionItem as k } from "./components/accordion/accordion-item.js";
|
|
@@ -37,43 +37,43 @@ import { Link as Fo } from "./components/link/link.js";
|
|
|
37
37
|
import { List as Ao } from "./components/list/list.js";
|
|
38
38
|
import { ListItem as Ho } from "./components/list/list-item.js";
|
|
39
39
|
import { Menu as No } from "./components/menu/menu.js";
|
|
40
|
-
import {
|
|
40
|
+
import { MenuBoxButton as zo } from "./components/menu/menu-box-button.js";
|
|
41
41
|
import { MenuButton as Eo } from "./components/menu/menu-button.js";
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
42
|
+
import { MenuDivider as Wo } from "./components/menu/menu-divider.js";
|
|
43
|
+
import { MenuGroup as qo } from "./components/menu/menu-group.js";
|
|
44
44
|
import { MenuItem as Ko } from "./components/menu/menu-item.js";
|
|
45
|
-
import {
|
|
45
|
+
import { MenuList as Xo } from "./components/menu/menu-list.js";
|
|
46
46
|
import { Message as Zo } from "./components/message/message.js";
|
|
47
47
|
import { Modal as $o } from "./components/modal/modal.js";
|
|
48
48
|
import { ModalBody as rr } from "./components/modal/modal-body.js";
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
49
|
+
import { ModalCloseButton as tr } from "./components/modal/modal-close-button.js";
|
|
50
|
+
import { ModalFooter as pr } from "./components/modal/modal-footer.js";
|
|
51
|
+
import { ModalHeader as fr } from "./components/modal/modal-header.js";
|
|
52
52
|
import { NavigationList as ir } from "./components/navigation-list/navigation-list.js";
|
|
53
53
|
import { NavigationListButton as lr, NavigationListLink as dr } from "./components/navigation-list/navigation-list-item.js";
|
|
54
54
|
import { Paginator as Tr } from "./components/paginator/paginator.js";
|
|
55
55
|
import { QuantityButton as sr } from "./components/quantity-button/quantity-button.js";
|
|
56
56
|
import { Radio as hr } from "./components/radio/radio.js";
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
57
|
+
import { RadioAddon as gr } from "./components/radio/radio-addon.js";
|
|
58
|
+
import { RadioCard as Cr } from "./components/radio/radio-card.js";
|
|
59
59
|
import { RadioGroup as kr } from "./components/radio-group/radio-group.js";
|
|
60
60
|
import { SegmentedControl as Lr } from "./components/segmented-control/segmented-control.js";
|
|
61
61
|
import { Select as Vr } from "./components/select/select.js";
|
|
62
62
|
import { Skeleton as Dr } from "./components/skeleton/skeleton.js";
|
|
63
63
|
import { SkeletonText as Rr } from "./components/skeleton/skeleton-text.js";
|
|
64
64
|
import { Stack as Gr } from "./components/stack/stack.js";
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
65
|
+
import { StepContext as wr } from "./components/stepper/step-context.js";
|
|
66
|
+
import { Stepper as yr } from "./components/stepper/stepper.js";
|
|
67
67
|
import { Switch as Ur } from "./components/switch/switch.js";
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
68
|
+
import { createColumnHelper as Qr } from "./node_modules/@tanstack/table-core/build/lib/index.js";
|
|
69
|
+
import { Table as jr } from "./components/table/table.js";
|
|
70
|
+
import { TableContent as Jr } from "./components/table/table-content.js";
|
|
71
|
+
import { TableToolbar as Or } from "./components/table/table-toolbar.js";
|
|
72
|
+
import { Tab as Yr } from "./components/tabs/tab.js";
|
|
73
|
+
import { TabList as _r } from "./components/tabs/tab-list.js";
|
|
74
|
+
import { TabPanel as oe } from "./components/tabs/tab-panel.js";
|
|
75
75
|
import { TabPanels as ee } from "./components/tabs/tab-panels.js";
|
|
76
|
-
import {
|
|
76
|
+
import { Tabs as me } from "./components/tabs/tabs.js";
|
|
77
77
|
import { Tag as xe } from "./components/tag/tag.js";
|
|
78
78
|
import { Text as ae } from "./components/text/text.js";
|
|
79
79
|
import { Textarea as ne } from "./components/textarea/textarea.js";
|
|
@@ -91,7 +91,7 @@ export {
|
|
|
91
91
|
w as Button,
|
|
92
92
|
y as Checkbox,
|
|
93
93
|
U as CheckboxGroup,
|
|
94
|
-
|
|
94
|
+
a as ColorModeScript,
|
|
95
95
|
Q as Combobox,
|
|
96
96
|
j as DatePicker,
|
|
97
97
|
J as DateRangePicker,
|
|
@@ -117,43 +117,43 @@ export {
|
|
|
117
117
|
Ao as List,
|
|
118
118
|
Ho as ListItem,
|
|
119
119
|
No as Menu,
|
|
120
|
-
|
|
120
|
+
zo as MenuBoxButton,
|
|
121
121
|
Eo as MenuButton,
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
Wo as MenuDivider,
|
|
123
|
+
qo as MenuGroup,
|
|
124
124
|
Ko as MenuItem,
|
|
125
|
-
|
|
125
|
+
Xo as MenuList,
|
|
126
126
|
Zo as Message,
|
|
127
127
|
$o as Modal,
|
|
128
128
|
rr as ModalBody,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
tr as ModalCloseButton,
|
|
130
|
+
pr as ModalFooter,
|
|
131
|
+
fr as ModalHeader,
|
|
132
132
|
ir as NavigationList,
|
|
133
133
|
lr as NavigationListButton,
|
|
134
134
|
dr as NavigationListLink,
|
|
135
135
|
Tr as Paginator,
|
|
136
136
|
sr as QuantityButton,
|
|
137
137
|
hr as Radio,
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
gr as RadioAddon,
|
|
139
|
+
Cr as RadioCard,
|
|
140
140
|
kr as RadioGroup,
|
|
141
141
|
Lr as SegmentedControl,
|
|
142
142
|
Vr as Select,
|
|
143
143
|
Dr as Skeleton,
|
|
144
144
|
Rr as SkeletonText,
|
|
145
145
|
Gr as Stack,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
wr as StepContext,
|
|
147
|
+
yr as Stepper,
|
|
148
148
|
Ur as Switch,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
Yr as Tab,
|
|
150
|
+
_r as TabList,
|
|
151
|
+
oe as TabPanel,
|
|
152
152
|
ee as TabPanels,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
jr as Table,
|
|
154
|
+
Jr as TableContent,
|
|
155
|
+
Or as TableToolbar,
|
|
156
|
+
me as Tabs,
|
|
157
157
|
xe as Tag,
|
|
158
158
|
ae as Text,
|
|
159
159
|
ne as Textarea,
|
|
@@ -163,17 +163,17 @@ export {
|
|
|
163
163
|
c as ThemeFontSizeVariable,
|
|
164
164
|
s as ThemeFontVariable,
|
|
165
165
|
b as ThemeIconSizeVariable,
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
i as ThemeProvider,
|
|
167
|
+
n as ThemeProviderContext,
|
|
168
168
|
h as ThemeRadiusVariable,
|
|
169
169
|
M as ThemeShadowVariable,
|
|
170
170
|
g as ThemeSpaceVariable,
|
|
171
171
|
Te as ToggleButton,
|
|
172
172
|
se as Tooltip,
|
|
173
|
-
|
|
173
|
+
Qr as createColumnHelper,
|
|
174
174
|
x as isTouchScreenDevice,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
e as useColorMode,
|
|
176
|
+
t as useDisclosure,
|
|
177
|
+
m as useRadioGroup,
|
|
178
178
|
de as useToast
|
|
179
179
|
};
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ThemeProvider, ThemeProviderContext, ThemeColorModeScript as ColorModeScript, } from './theme-provider.js';
|
|
2
|
-
export type { ThemeProviderProps } from './theme-provider.js';
|
|
3
|
-
export { isTouchScreenDevice } from './theme-helper.js';
|
|
4
1
|
export { useColorMode } from '@chakra-ui/react';
|
|
2
|
+
export { isTouchScreenDevice } from './theme-helper.js';
|
|
3
|
+
export { ThemeColorModeScript as ColorModeScript, ThemeProvider, ThemeProviderContext, } from './theme-provider.js';
|
|
4
|
+
export type { ThemeProviderProps } from './theme-provider.js';
|
|
5
|
+
export type { BorderProps, ColorProps, CustomChakraBoxProps, LayoutProps, MarginProps, PaddingProps, ShadowProps, ThemeStyleProps, TypographyProps, } from './theme-style-props.js';
|
|
5
6
|
export * from './theme-types.js';
|
|
6
|
-
export type { ColorProps, ShadowProps, PaddingProps, MarginProps, TypographyProps, LayoutProps, BorderProps, ThemeStyleProps, CustomChakraBoxProps, } from './theme-style-props.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|