@caspeco/casper-ui-library 9.0.0-alpha.0 → 9.0.0-alpha.2
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/components/accordion/accordion.spec.d.ts +2 -0
- package/dist/components/accordion/accordion.spec.d.ts.map +1 -0
- package/dist/components/accordion/accordion.visual.test.d.ts +2 -0
- package/dist/components/accordion/accordion.visual.test.d.ts.map +1 -0
- package/dist/components/alert/alert.spec.d.ts +2 -0
- package/dist/components/alert/alert.spec.d.ts.map +1 -0
- package/dist/components/alert/alert.visual.test.d.ts +2 -0
- package/dist/components/alert/alert.visual.test.d.ts.map +1 -0
- package/dist/components/badge/badge.spec.d.ts +2 -0
- package/dist/components/badge/badge.spec.d.ts.map +1 -0
- package/dist/components/badge/badge.visual.test.d.ts +2 -0
- package/dist/components/badge/badge.visual.test.d.ts.map +1 -0
- package/dist/components/box/box.spec.d.ts +2 -0
- package/dist/components/box/box.spec.d.ts.map +1 -0
- package/dist/components/box/box.visual.test.d.ts +2 -0
- package/dist/components/box/box.visual.test.d.ts.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.spec.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumbs.spec.d.ts.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.visual.test.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumbs.visual.test.d.ts.map +1 -0
- package/dist/components/button/button.spec.d.ts +2 -0
- package/dist/components/button/button.spec.d.ts.map +1 -0
- package/dist/components/button/button.visual.test.d.ts +2 -0
- package/dist/components/button/button.visual.test.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.spec.d.ts +2 -0
- package/dist/components/checkbox/checkbox.spec.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.visual.test.d.ts +2 -0
- package/dist/components/checkbox/checkbox.visual.test.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.spec.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.spec.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.visual.test.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.visual.test.d.ts.map +1 -0
- 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.spec.d.ts +2 -0
- package/dist/components/combobox/combobox.spec.d.ts.map +1 -0
- package/dist/components/combobox/combobox.visual.test.d.ts +2 -0
- package/dist/components/combobox/combobox.visual.test.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.spec.d.ts +2 -0
- package/dist/components/date-picker/date-picker.spec.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.visual.test.d.ts +2 -0
- package/dist/components/date-picker/date-picker.visual.test.d.ts.map +1 -0
- package/dist/components/divider/divider.spec.d.ts +2 -0
- package/dist/components/divider/divider.spec.d.ts.map +1 -0
- package/dist/components/divider/divider.visual.test.d.ts +2 -0
- package/dist/components/divider/divider.visual.test.d.ts.map +1 -0
- package/dist/components/drawer/drawer.spec.d.ts +2 -0
- package/dist/components/drawer/drawer.spec.d.ts.map +1 -0
- package/dist/components/drawer/drawer.visual.test.d.ts +2 -0
- package/dist/components/drawer/drawer.visual.test.d.ts.map +1 -0
- package/dist/components/flex/flex.spec.d.ts +2 -0
- package/dist/components/flex/flex.spec.d.ts.map +1 -0
- package/dist/components/flex/flex.visual.test.d.ts +2 -0
- package/dist/components/flex/flex.visual.test.d.ts.map +1 -0
- package/dist/components/form-control/form-control-recipe.d.ts.map +1 -1
- package/dist/components/form-control/form-control-recipe.js +6 -7
- package/dist/components/form-control/form-control.spec.d.ts +2 -0
- package/dist/components/form-control/form-control.spec.d.ts.map +1 -0
- package/dist/components/form-control/form-control.visual.test.d.ts +2 -0
- package/dist/components/form-control/form-control.visual.test.d.ts.map +1 -0
- package/dist/components/grid/grid.spec.d.ts +2 -0
- package/dist/components/grid/grid.spec.d.ts.map +1 -0
- package/dist/components/grid/grid.visual.test.d.ts +2 -0
- package/dist/components/grid/grid.visual.test.d.ts.map +1 -0
- package/dist/components/heading/heading.spec.d.ts +2 -0
- package/dist/components/heading/heading.spec.d.ts.map +1 -0
- package/dist/components/heading/heading.visual.test.d.ts +2 -0
- package/dist/components/heading/heading.visual.test.d.ts.map +1 -0
- package/dist/components/highlight/highlight.visual.test.d.ts +2 -0
- package/dist/components/highlight/highlight.visual.test.d.ts.map +1 -0
- package/dist/components/icon/icon.spec.d.ts +2 -0
- package/dist/components/icon/icon.spec.d.ts.map +1 -0
- package/dist/components/icon/icon.visual.test.d.ts +2 -0
- package/dist/components/icon/icon.visual.test.d.ts.map +1 -0
- package/dist/components/icon-button/icon-button.spec.d.ts +2 -0
- package/dist/components/icon-button/icon-button.spec.d.ts.map +1 -0
- package/dist/components/icon-button/icon-button.visual.test.d.ts +2 -0
- package/dist/components/icon-button/icon-button.visual.test.d.ts.map +1 -0
- package/dist/components/image/image.spec.d.ts +2 -0
- package/dist/components/image/image.spec.d.ts.map +1 -0
- package/dist/components/image/image.visual.test.d.ts +2 -0
- package/dist/components/image/image.visual.test.d.ts.map +1 -0
- package/dist/components/image-upload/image-upload.spec.d.ts +2 -0
- package/dist/components/image-upload/image-upload.spec.d.ts.map +1 -0
- package/dist/components/image-upload/image-upload.visual.test.d.ts +2 -0
- package/dist/components/image-upload/image-upload.visual.test.d.ts.map +1 -0
- package/dist/components/input/input-recipe.js +10 -10
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +9 -8
- package/dist/components/input/input.spec.d.ts +2 -0
- package/dist/components/input/input.spec.d.ts.map +1 -0
- package/dist/components/input/input.visual.test.d.ts +2 -0
- package/dist/components/input/input.visual.test.d.ts.map +1 -0
- package/dist/components/link/link.spec.d.ts +2 -0
- package/dist/components/link/link.spec.d.ts.map +1 -0
- package/dist/components/link/link.visual.test.d.ts +2 -0
- package/dist/components/link/link.visual.test.d.ts.map +1 -0
- package/dist/components/list/list.spec.d.ts +2 -0
- package/dist/components/list/list.spec.d.ts.map +1 -0
- package/dist/components/list/list.visual.test.d.ts +2 -0
- package/dist/components/list/list.visual.test.d.ts.map +1 -0
- package/dist/components/menu/menu.spec.d.ts +2 -0
- package/dist/components/menu/menu.spec.d.ts.map +1 -0
- package/dist/components/menu/menu.visual.test.d.ts +2 -0
- package/dist/components/menu/menu.visual.test.d.ts.map +1 -0
- package/dist/components/message/message.spec.d.ts +2 -0
- package/dist/components/message/message.spec.d.ts.map +1 -0
- package/dist/components/message/message.visual.test.d.ts +2 -0
- package/dist/components/message/message.visual.test.d.ts.map +1 -0
- package/dist/components/modal/modal.spec.d.ts +2 -0
- package/dist/components/modal/modal.spec.d.ts.map +1 -0
- package/dist/components/modal/modal.visual.test.d.ts +2 -0
- package/dist/components/modal/modal.visual.test.d.ts.map +1 -0
- package/dist/components/navigation-list/navigation-list.spec.d.ts +2 -0
- package/dist/components/navigation-list/navigation-list.spec.d.ts.map +1 -0
- package/dist/components/navigation-list/navigation-list.visual.test.d.ts +2 -0
- package/dist/components/navigation-list/navigation-list.visual.test.d.ts.map +1 -0
- package/dist/components/paginator/paginator.spec.d.ts +2 -0
- package/dist/components/paginator/paginator.spec.d.ts.map +1 -0
- package/dist/components/paginator/paginator.visual.test.d.ts +2 -0
- package/dist/components/paginator/paginator.visual.test.d.ts.map +1 -0
- package/dist/components/quantity-button/quantity-button.spec.d.ts +2 -0
- package/dist/components/quantity-button/quantity-button.spec.d.ts.map +1 -0
- package/dist/components/quantity-button/quantity-button.visual.test.d.ts +2 -0
- package/dist/components/quantity-button/quantity-button.visual.test.d.ts.map +1 -0
- package/dist/components/radio/radio-group.spec.d.ts +2 -0
- package/dist/components/radio/radio-group.spec.d.ts.map +1 -0
- package/dist/components/radio/radio-group.visual.test.d.ts +2 -0
- package/dist/components/radio/radio-group.visual.test.d.ts.map +1 -0
- package/dist/components/radio/radio.d.ts +2 -2
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/radio/radio.js +17 -18
- package/dist/components/radio/radio.spec.d.ts +2 -0
- package/dist/components/radio/radio.spec.d.ts.map +1 -0
- package/dist/components/radio/radio.visual.test.d.ts +2 -0
- package/dist/components/radio/radio.visual.test.d.ts.map +1 -0
- package/dist/components/radio-card/radio-card-group.d.ts +2 -2
- package/dist/components/radio-card/radio-card-group.d.ts.map +1 -1
- package/dist/components/radio-card/radio-card-group.js +2 -2
- package/dist/components/radio-card/radio-card.spec.d.ts +2 -0
- package/dist/components/radio-card/radio-card.spec.d.ts.map +1 -0
- package/dist/components/radio-card/radio-card.visual.test.d.ts +2 -0
- package/dist/components/radio-card/radio-card.visual.test.d.ts.map +1 -0
- package/dist/components/segmented-control/segmented-control.spec.d.ts +2 -0
- package/dist/components/segmented-control/segmented-control.spec.d.ts.map +1 -0
- package/dist/components/segmented-control/segmented-control.visual.test.d.ts +2 -0
- package/dist/components/segmented-control/segmented-control.visual.test.d.ts.map +1 -0
- package/dist/components/select/select.spec.d.ts +2 -0
- package/dist/components/select/select.spec.d.ts.map +1 -0
- package/dist/components/select/select.visual.test.d.ts +2 -0
- package/dist/components/select/select.visual.test.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.spec.d.ts +2 -0
- package/dist/components/skeleton/skeleton.spec.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.visual.test.d.ts +2 -0
- package/dist/components/skeleton/skeleton.visual.test.d.ts.map +1 -0
- package/dist/components/stack/stack.spec.d.ts +2 -0
- package/dist/components/stack/stack.spec.d.ts.map +1 -0
- package/dist/components/stack/stack.visual.test.d.ts +2 -0
- package/dist/components/stack/stack.visual.test.d.ts.map +1 -0
- package/dist/components/stepper/stepper.spec.d.ts +2 -0
- package/dist/components/stepper/stepper.spec.d.ts.map +1 -0
- package/dist/components/stepper/stepper.visual.test.d.ts +2 -0
- package/dist/components/stepper/stepper.visual.test.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.d.ts.map +1 -1
- package/dist/components/switch/switch.d.ts +4 -2
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/switch/switch.js +9 -8
- package/dist/components/switch/switch.spec.d.ts +2 -0
- package/dist/components/switch/switch.spec.d.ts.map +1 -0
- package/dist/components/switch/switch.visual.test.d.ts +2 -0
- package/dist/components/switch/switch.visual.test.d.ts.map +1 -0
- package/dist/components/switch/types.d.ts +2 -2
- package/dist/components/switch/types.d.ts.map +1 -1
- package/dist/components/table/table-filter.spec.d.ts +2 -0
- package/dist/components/table/table-filter.spec.d.ts.map +1 -0
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +45 -43
- package/dist/components/table/table-header-row.js +7 -7
- package/dist/components/table/table-toolbar-settings.js +6 -6
- package/dist/components/table/table-toolbar.spec.d.ts +2 -0
- package/dist/components/table/table-toolbar.spec.d.ts.map +1 -0
- package/dist/components/table/table.spec.d.ts +2 -0
- package/dist/components/table/table.spec.d.ts.map +1 -0
- package/dist/components/table/table.visual.test.d.ts +2 -0
- package/dist/components/table/table.visual.test.d.ts.map +1 -0
- package/dist/components/tabs/tabs.spec.d.ts +2 -0
- package/dist/components/tabs/tabs.spec.d.ts.map +1 -0
- package/dist/components/tabs/tabs.visual.test.d.ts +2 -0
- package/dist/components/tabs/tabs.visual.test.d.ts.map +1 -0
- package/dist/components/tag/tag-recipe.d.ts.map +1 -1
- package/dist/components/tag/tag-recipe.js +33 -31
- package/dist/components/tag/tag.spec.d.ts +2 -0
- package/dist/components/tag/tag.spec.d.ts.map +1 -0
- package/dist/components/tag/tag.visual.test.d.ts +2 -0
- package/dist/components/tag/tag.visual.test.d.ts.map +1 -0
- package/dist/components/text/text.spec.d.ts +2 -0
- package/dist/components/text/text.spec.d.ts.map +1 -0
- package/dist/components/text/text.visual.test.d.ts +2 -0
- package/dist/components/text/text.visual.test.d.ts.map +1 -0
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/textarea/textarea.js +12 -11
- package/dist/components/textarea/textarea.spec.d.ts +2 -0
- package/dist/components/textarea/textarea.spec.d.ts.map +1 -0
- package/dist/components/textarea/textarea.visual.test.d.ts +2 -0
- package/dist/components/textarea/textarea.visual.test.d.ts.map +1 -0
- package/dist/components/toaster/toaster.visual.test.d.ts +2 -0
- package/dist/components/toaster/toaster.visual.test.d.ts.map +1 -0
- package/dist/components/toggle-button/toggle-button.spec.d.ts +2 -0
- package/dist/components/toggle-button/toggle-button.spec.d.ts.map +1 -0
- package/dist/components/toggle-button/toggle-button.visual.test.d.ts +2 -0
- package/dist/components/toggle-button/toggle-button.visual.test.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.spec.d.ts +2 -0
- package/dist/components/tooltip/tooltip.spec.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.visual.test.d.ts +2 -0
- package/dist/components/tooltip/tooltip.visual.test.d.ts.map +1 -0
- package/dist/theme/theme-provider-context.spec.d.ts +2 -0
- package/dist/theme/theme-provider-context.spec.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { flexRender as P } from "../../node_modules/@tanstack/react-table/build/
|
|
|
7
7
|
import { memo as V, useCallback as R, useMemo as F } from "react";
|
|
8
8
|
import { useTableContext as u } from "./table-context.js";
|
|
9
9
|
import { TableHeaderDropdown as L } from "./table-header-dropdown.js";
|
|
10
|
-
import { translations as
|
|
10
|
+
import { translations as B } from "./translations.js";
|
|
11
11
|
import { Flex as I } from "../flex/flex.js";
|
|
12
12
|
import { Divider as O } from "../divider/divider.js";
|
|
13
13
|
import { Menu as j } from "../menu/menu.js";
|
|
@@ -43,7 +43,7 @@ const X = ({
|
|
|
43
43
|
},
|
|
44
44
|
scope: "col",
|
|
45
45
|
zIndex: 1,
|
|
46
|
-
children: /* @__PURE__ */ e(
|
|
46
|
+
children: /* @__PURE__ */ e(v, { showSelectAll: !0, children: /* @__PURE__ */ e(_, {}) })
|
|
47
47
|
}
|
|
48
48
|
) : /* @__PURE__ */ e(f, { children: t.headers.map((o, n) => /* @__PURE__ */ e(
|
|
49
49
|
Y,
|
|
@@ -90,7 +90,7 @@ const X = ({
|
|
|
90
90
|
C.ColumnHeader,
|
|
91
91
|
{
|
|
92
92
|
className: "tableHeaderCell",
|
|
93
|
-
textAlign: n.columnDef.meta?.isNumeric ? "end" :
|
|
93
|
+
textAlign: n.columnDef.meta?.isNumeric ? "end" : "start",
|
|
94
94
|
zIndex: n.getIsPinned() ? 2 : 1,
|
|
95
95
|
cursor: i ? m ? "grabbing" : "pointer" : void 0,
|
|
96
96
|
opacity: m ? 0.5 : 1,
|
|
@@ -101,7 +101,7 @@ const X = ({
|
|
|
101
101
|
borderBottom: `1px solid ${d.OnBackgroundBorder}`,
|
|
102
102
|
paddingLeft: a && s ? "24px" : void 0
|
|
103
103
|
},
|
|
104
|
-
children: /* @__PURE__ */ e(
|
|
104
|
+
children: /* @__PURE__ */ e(v, { showSelectAll: o.canSelectRows && a, children: /* @__PURE__ */ e(f, { children: r ? /* @__PURE__ */ e(g, { paddingLeft: h.Small, children: P(t.column.columnDef.header, t.getContext()) }) : /* @__PURE__ */ e(
|
|
105
105
|
L,
|
|
106
106
|
{
|
|
107
107
|
header: t,
|
|
@@ -119,7 +119,7 @@ const X = ({
|
|
|
119
119
|
) }) })
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
|
-
},
|
|
122
|
+
}, v = ({ showSelectAll: t, children: r }) => t ? /* @__PURE__ */ w(I, { w: "100%", align: "center", children: [
|
|
123
123
|
/* @__PURE__ */ e(g, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(Z, {}) }),
|
|
124
124
|
r
|
|
125
125
|
] }) : /* @__PURE__ */ e(f, { children: r }), Z = () => {
|
|
@@ -145,7 +145,7 @@ const X = ({
|
|
|
145
145
|
}
|
|
146
146
|
);
|
|
147
147
|
}, _ = () => {
|
|
148
|
-
const { localeString: t, selectedRowIds: r = [], selectionActions: s = [] } = u(), l =
|
|
148
|
+
const { localeString: t, selectedRowIds: r = [], selectionActions: s = [] } = u(), l = B[t], [a] = A(["(min-width: 48em)"]), i = s.length > 3 || !a, o = r.length === 1 ? l.selectedSingular.replace("{count}", "1") : l.selected.replace("{count}", r.length.toString());
|
|
149
149
|
return /* @__PURE__ */ w(I, { gap: h.Medium, align: "center", alignContent: "center", children: [
|
|
150
150
|
/* @__PURE__ */ e(
|
|
151
151
|
g,
|
|
@@ -166,7 +166,7 @@ const X = ({
|
|
|
166
166
|
] }) : s.map((n) => /* @__PURE__ */ e(x, { isMenuItem: !1, action: n }, n.name)) })
|
|
167
167
|
] });
|
|
168
168
|
}, x = ({ isMenuItem: t, action: r }) => {
|
|
169
|
-
const { selectedRowIds: s, localeString: l } = u(), a =
|
|
169
|
+
const { selectedRowIds: s, localeString: l } = u(), a = B[l], i = R(() => {
|
|
170
170
|
r.onClick(s || []);
|
|
171
171
|
}, [r, s]);
|
|
172
172
|
return t ? /* @__PURE__ */ e(W, { onClick: i, value: r.name, children: r.variant === "delete" ? /* @__PURE__ */ e(g, { as: "span", color: d.Error, children: r.name }) : r.name }) : r.variant === "delete" ? /* @__PURE__ */ e(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as r, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import { Flex as
|
|
2
|
+
import { Flex as C, Portal as g, Box as p } from "@chakra-ui/react";
|
|
3
3
|
import { memo as d, useCallback as a } from "react";
|
|
4
4
|
import { useTableContext as u } from "./table-context.js";
|
|
5
5
|
import { translations as f } from "./translations.js";
|
|
@@ -16,17 +16,17 @@ import { Switch as w } from "../switch/switch.js";
|
|
|
16
16
|
import { ThemeIconSizeVariable as y, ThemeSpaceVariable as m, ThemeColorVariable as V } from "../../theme/theme-types.js";
|
|
17
17
|
const j = () => {
|
|
18
18
|
const e = u(), l = f[e.localeString], c = a(() => e.table.getAllColumns().length === Object.keys(e.breakingContentState).length && !Object.values(e.breakingContentState).includes(!1), [e.breakingContentState, e.table]), h = a(
|
|
19
|
-
(t) => {
|
|
19
|
+
({ checked: t }) => {
|
|
20
20
|
const o = {};
|
|
21
21
|
e.table.getAllColumns().forEach((i) => {
|
|
22
|
-
o[i.id] = t
|
|
22
|
+
o[i.id] = t;
|
|
23
23
|
}), e.setBreakingContentState(o), e.onBreakingContentChange?.(o);
|
|
24
24
|
},
|
|
25
25
|
[e]
|
|
26
26
|
);
|
|
27
|
-
return /* @__PURE__ */ n(
|
|
27
|
+
return /* @__PURE__ */ n(C, { children: /* @__PURE__ */ r(k, { closeOnSelect: !1, isLazy: !0, children: [
|
|
28
28
|
/* @__PURE__ */ n(S, { "aria-label": l.presets, variant: "ghost", p: "unset", w: "40px", h: "40px", children: /* @__PURE__ */ n(x, { size: y.Medium }) }),
|
|
29
|
-
/* @__PURE__ */ n(
|
|
29
|
+
/* @__PURE__ */ n(g, { children: /* @__PURE__ */ r(T, { children: [
|
|
30
30
|
/* @__PURE__ */ n(
|
|
31
31
|
I,
|
|
32
32
|
{
|
|
@@ -49,7 +49,7 @@ const j = () => {
|
|
|
49
49
|
/* @__PURE__ */ n(v, {}),
|
|
50
50
|
/* @__PURE__ */ r(s, { itemType: "switch", value: "breakingContent", children: [
|
|
51
51
|
l.breakingContent,
|
|
52
|
-
/* @__PURE__ */ n(w, {
|
|
52
|
+
/* @__PURE__ */ n(w, { onCheckedChange: h, isChecked: c() })
|
|
53
53
|
] })
|
|
54
54
|
] }) })
|
|
55
55
|
] }) });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-toolbar.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/tabs.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/tabs/tabs.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-recipe.d.ts","sourceRoot":"","sources":["../../../lib/components/tag/tag-recipe.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,oBAAoB,EAA4C,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"tag-recipe.d.ts","sourceRoot":"","sources":["../../../lib/components/tag/tag-recipe.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,oBAAoB,EAA4C,MAAM,kBAAkB,CAAC;AAkEvG,eAAO,MAAM,SAAS,EAAE,oBA0GtB,CAAC"}
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
import { ThemeIconSizeVariable as
|
|
1
|
+
import { ThemeIconSizeVariable as o, ThemeFontSizeVariable as s, ThemeSpaceVariable as n, ThemeColorVariable as e, ThemeFontVariable as u, ThemeRadiusVariable as b } from "../../theme/theme-types.js";
|
|
2
2
|
import { defineSlotRecipe as S } from "@chakra-ui/react";
|
|
3
3
|
import { tagAnatomy as p } from "../../node_modules/@chakra-ui/react/dist/esm/anatomy.js";
|
|
4
4
|
const d = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warning"], r = "& .tag-dot", m = "& .tag-icon", x = d.reduce(
|
|
5
5
|
(l, t) => {
|
|
6
|
-
const
|
|
7
|
-
return
|
|
6
|
+
const a = l, c = `${t.toLowerCase()}Solid`, g = t, i = `On${t}`;
|
|
7
|
+
return a[c] = {
|
|
8
8
|
root: {
|
|
9
|
-
backgroundColor:
|
|
10
|
-
color:
|
|
9
|
+
backgroundColor: e[g],
|
|
10
|
+
color: e[i],
|
|
11
11
|
fontWeight: "500",
|
|
12
12
|
lineHeight: "1.2",
|
|
13
13
|
[r]: {
|
|
14
|
-
backgroundColor:
|
|
14
|
+
backgroundColor: e[i]
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
label: {
|
|
18
|
-
lineHeight: "1.2"
|
|
18
|
+
lineHeight: "1.2",
|
|
19
|
+
textWrap: "unset"
|
|
19
20
|
}
|
|
20
|
-
},
|
|
21
|
+
}, a;
|
|
21
22
|
},
|
|
22
23
|
{}
|
|
23
24
|
), C = d.reduce(
|
|
24
25
|
(l, t) => {
|
|
25
|
-
const
|
|
26
|
-
return
|
|
26
|
+
const a = l, c = `${t.toLowerCase()}`, g = t, i = `${t}Container`, h = `On${t}Container`;
|
|
27
|
+
return a[c] = {
|
|
27
28
|
root: {
|
|
28
|
-
color:
|
|
29
|
-
backgroundColor:
|
|
29
|
+
color: e[h],
|
|
30
|
+
backgroundColor: e[i],
|
|
30
31
|
fontWeight: "500",
|
|
31
32
|
lineHeight: "1.2",
|
|
32
33
|
[r]: {
|
|
33
|
-
backgroundColor:
|
|
34
|
+
backgroundColor: e[g]
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
label: {
|
|
37
|
-
lineHeight: "1.2"
|
|
38
|
+
lineHeight: "1.2",
|
|
39
|
+
textWrap: "unset"
|
|
38
40
|
}
|
|
39
|
-
},
|
|
41
|
+
}, a;
|
|
40
42
|
},
|
|
41
43
|
{}
|
|
42
44
|
), z = S({
|
|
@@ -50,16 +52,16 @@ const d = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
50
52
|
width: "fit-content",
|
|
51
53
|
gap: n.XSmall,
|
|
52
54
|
px: n.XSmall,
|
|
53
|
-
bg:
|
|
54
|
-
color:
|
|
55
|
-
borderRadius:
|
|
55
|
+
bg: e.NeutralContainer,
|
|
56
|
+
color: e.OnNeutralContainer,
|
|
57
|
+
borderRadius: b.Small
|
|
56
58
|
},
|
|
57
59
|
label: {
|
|
58
60
|
alignItems: "center",
|
|
59
61
|
fontWeight: "500",
|
|
60
62
|
mx: n.XSmall,
|
|
61
63
|
letterSpacing: "0.0125em",
|
|
62
|
-
font:
|
|
64
|
+
font: u.Body
|
|
63
65
|
},
|
|
64
66
|
closeTrigger: {
|
|
65
67
|
opacity: "0.48",
|
|
@@ -75,10 +77,10 @@ const d = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
75
77
|
...C,
|
|
76
78
|
comboboxItem: {
|
|
77
79
|
root: {
|
|
78
|
-
color:
|
|
79
|
-
backgroundColor:
|
|
80
|
+
color: e.OnSurface,
|
|
81
|
+
backgroundColor: e.SurfaceDisabled,
|
|
80
82
|
[r]: {
|
|
81
|
-
backgroundColor:
|
|
83
|
+
backgroundColor: e.OnSurface
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
}
|
|
@@ -92,15 +94,15 @@ const d = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
92
94
|
height: "12px"
|
|
93
95
|
},
|
|
94
96
|
[m]: {
|
|
95
|
-
height:
|
|
96
|
-
width:
|
|
97
|
+
height: o.Small,
|
|
98
|
+
width: o.Small
|
|
97
99
|
}
|
|
98
100
|
},
|
|
99
101
|
label: {
|
|
100
102
|
fontSize: s.Small
|
|
101
103
|
},
|
|
102
104
|
closeTrigger: {
|
|
103
|
-
boxSize:
|
|
105
|
+
boxSize: o.Small
|
|
104
106
|
}
|
|
105
107
|
},
|
|
106
108
|
sm: {
|
|
@@ -111,15 +113,15 @@ const d = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
111
113
|
height: "14px"
|
|
112
114
|
},
|
|
113
115
|
[m]: {
|
|
114
|
-
height:
|
|
115
|
-
width:
|
|
116
|
+
height: o.Medium,
|
|
117
|
+
width: o.Medium
|
|
116
118
|
}
|
|
117
119
|
},
|
|
118
120
|
label: {
|
|
119
121
|
fontSize: s.Medium
|
|
120
122
|
},
|
|
121
123
|
closeTrigger: {
|
|
122
|
-
boxSize:
|
|
124
|
+
boxSize: o.Medium
|
|
123
125
|
}
|
|
124
126
|
},
|
|
125
127
|
md: {
|
|
@@ -131,15 +133,15 @@ const d = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
131
133
|
height: "14px"
|
|
132
134
|
},
|
|
133
135
|
[m]: {
|
|
134
|
-
height:
|
|
135
|
-
width:
|
|
136
|
+
height: o.Medium,
|
|
137
|
+
width: o.Medium
|
|
136
138
|
}
|
|
137
139
|
},
|
|
138
140
|
label: {
|
|
139
141
|
fontSize: s.Large
|
|
140
142
|
},
|
|
141
143
|
closeTrigger: {
|
|
142
|
-
boxSize:
|
|
144
|
+
boxSize: o.Medium
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/tag/tag.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/tag/tag.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/text/text.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/text/text.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -8,7 +8,7 @@ type CustomProperties = {
|
|
|
8
8
|
isRequired?: boolean;
|
|
9
9
|
};
|
|
10
10
|
type CustomStyleProps = CustomChakraBoxProps & LayoutProps & MarginProps & PaddingProps & CustomProperties;
|
|
11
|
-
type ChakraTextareaProperties = Pick<ChakraTextareaProps, "id" | "name" | "placeholder" | "rows" | "value" | "defaultValue" | "onChange" | "onBlur" | "onFocus" | "onKeyDown" | "resize">;
|
|
11
|
+
type ChakraTextareaProperties = Pick<ChakraTextareaProps, "as" | "id" | "name" | "placeholder" | "rows" | "value" | "defaultValue" | "onChange" | "onBlur" | "onFocus" | "onKeyDown" | "resize" | "autoresize">;
|
|
12
12
|
export type TextareaProps = ChakraTextareaProperties & CustomStyleProps;
|
|
13
13
|
export declare const Textarea: React.ForwardRefExoticComponent<ChakraTextareaProperties & CustomChakraBoxProps & LayoutProps & MarginProps & PaddingProps & CustomProperties & React.RefAttributes<HTMLTextAreaElement>>;
|
|
14
14
|
export {};
|
|
@@ -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,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;IAG/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,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,
|
|
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;IAG/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,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,IAAI,GACJ,MAAM,GACN,aAAa,GACb,MAAM,GACN,OAAO,GACP,cAAc,GACd,UAAU,GACV,QAAQ,GACR,SAAS,GACT,WAAW,GACX,QAAQ,GACR,YAAY,CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,wBAAwB,GAAG,gBAAgB,CAAC;AAExE,eAAO,MAAM,QAAQ,2LAcnB,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Textarea as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const { isDisabled: a, isReadOnly: t, isRequired:
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { Textarea as m } from "@chakra-ui/react";
|
|
3
|
+
import l from "react";
|
|
4
|
+
const u = l.forwardRef((e, r) => {
|
|
5
|
+
const { isDisabled: a, isReadOnly: t, isRequired: s, resize: i, as: o, ...d } = e;
|
|
6
|
+
return /* @__PURE__ */ f(
|
|
7
|
+
m,
|
|
8
8
|
{
|
|
9
|
-
resize:
|
|
9
|
+
resize: i,
|
|
10
10
|
ref: r,
|
|
11
11
|
disabled: a,
|
|
12
12
|
readOnly: t,
|
|
13
|
-
required:
|
|
14
|
-
|
|
13
|
+
required: s,
|
|
14
|
+
as: o,
|
|
15
|
+
...d
|
|
15
16
|
}
|
|
16
17
|
);
|
|
17
18
|
});
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
u as Textarea
|
|
20
21
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/textarea/textarea.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/textarea/textarea.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toaster.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/toaster/toaster.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-button.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/toggle-button/toggle-button.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-button.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/toggle-button/toggle-button.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.spec.d.ts","sourceRoot":"","sources":["../../../lib/components/tooltip/tooltip.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.visual.test.d.ts","sourceRoot":"","sources":["../../../lib/components/tooltip/tooltip.visual.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider-context.spec.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-provider-context.spec.tsx"],"names":[],"mappings":""}
|