@caspeco/casper-ui-library 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +4 -4
- package/dist/components/alert/helper.d.ts +3 -3
- package/dist/components/alert/helper.d.ts.map +1 -1
- package/dist/components/alert/helper.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/helper.d.ts +3 -3
- package/dist/components/badge/helper.d.ts.map +1 -1
- package/dist/components/badge/helper.js +1 -1
- package/dist/components/box/box.composition.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +4 -4
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/collapsible/collapsible.js +1 -1
- package/dist/components/combobox/combobox-button.js +1 -1
- package/dist/components/combobox/combobox-item.js +1 -1
- package/dist/components/combobox/combobox-menu.js +1 -1
- package/dist/components/combobox/combobox-recipe.js +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +3 -3
- package/dist/components/date-picker/date-picker-date-cell.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-date-cell.js +1 -1
- package/dist/components/date-picker/date-picker-header.js +3 -3
- package/dist/components/date-picker/date-picker-week-cell.js +1 -1
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/inline-drawer.js +1 -1
- package/dist/components/form-control/form-label.d.ts.map +1 -1
- package/dist/components/form-control/form-label.js +1 -1
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/components/heading/heading.js +2 -2
- package/dist/components/highlight/highlight.js +1 -1
- package/dist/components/icon/create-icon.d.ts +2 -2
- package/dist/components/icon/create-icon.d.ts.map +1 -1
- package/dist/components/icon/create-icon.js +1 -1
- package/dist/components/icon/icon.composition.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +1 -1
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +3 -3
- package/dist/components/image-upload/image-upload.js +1 -1
- package/dist/components/input/helper.js +1 -1
- package/dist/components/input/input-recipe.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/list/list.js +1 -1
- package/dist/components/menu/menu-divider.js +1 -1
- package/dist/components/menu/menu-group.d.ts.map +1 -1
- package/dist/components/menu/menu-group.js +1 -1
- package/dist/components/menu/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-item.js +1 -1
- package/dist/components/menu/menu-recipe.d.ts.map +1 -1
- package/dist/components/menu/menu-recipe.js +1 -1
- package/dist/components/message/message.js +1 -1
- package/dist/components/modal/modal-close-button.js +1 -1
- package/dist/components/modal/modal.composition.d.ts.map +1 -1
- package/dist/components/navigation-list/navigation-list-item.js +3 -3
- package/dist/components/paginator/paginator-recipe.d.ts.map +1 -1
- package/dist/components/paginator/paginator-recipe.js +3 -3
- package/dist/components/phone-input/country-selector.d.ts.map +1 -1
- package/dist/components/phone-input/country-selector.js +1 -1
- package/dist/components/quantity-button/quantity-button.composition.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.js +1 -1
- package/dist/components/radio/hover-styles.js +1 -1
- package/dist/components/radio/radio-group-recipe.js +1 -1
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-card/hover-styles.js +1 -1
- package/dist/components/radio-card/radio-card-group.d.ts.map +1 -1
- package/dist/components/radio-card/radio-card-group.js +1 -1
- package/dist/components/radio-card/radio-card.js +3 -3
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-recipe.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-recipe.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +1 -1
- package/dist/components/select/select-recipe.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton-text.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/stepper/step-context.d.ts +4 -4
- package/dist/components/stepper/step-context.d.ts.map +1 -1
- package/dist/components/stepper/step.d.ts.map +1 -1
- package/dist/components/stepper/step.js +3 -3
- package/dist/components/stepper/stepper.js +1 -1
- package/dist/components/stepper/types.d.ts +4 -4
- package/dist/components/stepper/types.d.ts.map +1 -1
- package/dist/components/switch/hover-styles.js +1 -1
- package/dist/components/table/table-cell.js +1 -1
- package/dist/components/table/table-column-resize-handle.js +1 -1
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +1 -1
- package/dist/components/table/table-filter.js +1 -1
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +1 -1
- package/dist/components/table/table-header-row.js +3 -3
- package/dist/components/table/table-recipe.js +1 -1
- package/dist/components/table/table-row-drag-handle.js +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +1 -1
- package/dist/components/table/table-sorted-reorder-prompt.js +3 -3
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +1 -1
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +3 -3
- package/dist/components/tabs/tab-with-image.js +1 -1
- package/dist/components/tabs/tabs-recipe.js +1 -1
- package/dist/components/tabs/types.d.ts +2 -2
- package/dist/components/tabs/types.d.ts.map +1 -1
- package/dist/components/tag/tag-recipe.js +5 -5
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.js +2 -2
- package/dist/components/textarea/textarea-recipe.js +1 -1
- package/dist/components/toaster/toast-store.d.ts +2 -2
- package/dist/components/toaster/toast-store.d.ts.map +1 -1
- package/dist/components/toaster/toaster.js +1 -1
- package/dist/components/toggle-button/use-button-children.js +1 -1
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/index.js +402 -402
- package/dist/theme/theme-casper-ui.d.ts.map +1 -1
- package/dist/theme/theme-casper-ui.js +1 -1
- package/dist/theme/theme-style-props.d.ts +25 -25
- package/dist/theme/theme-style-props.d.ts.map +1 -1
- package/dist/theme/theme-types.d.ts +46 -10
- package/dist/theme/theme-types.d.ts.map +1 -1
- package/dist/theme/theme-types.js +2 -2
- package/dist/theme/theme-types.spec.d.ts +2 -0
- package/dist/theme/theme-types.spec.d.ts.map +1 -0
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeColor as e, ThemeFont as t, ThemeFontSize as n, ThemeIconSize as r, ThemeRadius as i, ThemeSpace as a } from "../../theme/theme-types.js";
|
|
2
2
|
import { defineSlotRecipe as o } from "@chakra-ui/react";
|
|
3
3
|
import { tagAnatomy as s } from "@chakra-ui/react/anatomy";
|
|
4
4
|
//#region lib/components/tag/tag-recipe.ts
|
|
@@ -161,7 +161,7 @@ var d = o({
|
|
|
161
161
|
textWrap: "unset",
|
|
162
162
|
mx: a.XSmall,
|
|
163
163
|
letterSpacing: "0.0125em",
|
|
164
|
-
font:
|
|
164
|
+
font: t.Body
|
|
165
165
|
},
|
|
166
166
|
closeTrigger: {
|
|
167
167
|
opacity: "0.48",
|
|
@@ -182,7 +182,7 @@ var d = o({
|
|
|
182
182
|
width: r.Small
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
|
-
label: { fontSize:
|
|
185
|
+
label: { fontSize: n.Small },
|
|
186
186
|
closeTrigger: {
|
|
187
187
|
boxSize: r.Small,
|
|
188
188
|
"& svg": { boxSize: r.Small }
|
|
@@ -198,7 +198,7 @@ var d = o({
|
|
|
198
198
|
width: r.Medium
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
|
-
label: { fontSize:
|
|
201
|
+
label: { fontSize: n.Medium },
|
|
202
202
|
closeTrigger: {
|
|
203
203
|
boxSize: r.Medium,
|
|
204
204
|
"& svg": { boxSize: r.Medium }
|
|
@@ -214,7 +214,7 @@ var d = o({
|
|
|
214
214
|
width: r.Medium
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
|
-
label: { fontSize:
|
|
217
|
+
label: { fontSize: n.Medium },
|
|
218
218
|
closeTrigger: {
|
|
219
219
|
boxSize: r.Medium,
|
|
220
220
|
"& svg": { boxSize: r.Medium }
|
|
@@ -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,EAA4B,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AACzE,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;IAG3C,UAAU,CAAC,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;CAC1C,CAAC;AAEF,KAAK,oBAAoB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,oBAAoB,GAAG,gBAAgB,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACpB,EAAQ,EACR,UAA2B,EAC3B,QAA+B,EAC/B,UAAqB,EACrB,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,GAAG,KAAK,EACR,EAAE,SAAS,+BAkBX"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeFont as t, ThemeFontSize as n } from "../../theme/theme-types.js";
|
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
4
|
import { Text as i } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/text/text.tsx
|
|
@@ -7,7 +7,7 @@ var a = e();
|
|
|
7
7
|
function o(e) {
|
|
8
8
|
let o = (0, a.c)(26), s, c, l, u, d, f, p, m, h, g, _, v;
|
|
9
9
|
o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5], f = o[6], p = o[7], m = o[8], h = o[9], g = o[10], _ = o[11], v = o[12]) : ({as: h, fontFamily: g, fontSize: _, fontWeight: v, color: u, children: l, decoration: d, noOfLines: p, align: s, casing: c, isTruncated: f, ...m} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d, o[6] = f, o[7] = p, o[8] = m, o[9] = h, o[10] = g, o[11] = _, o[12] = v);
|
|
10
|
-
let y = h === void 0 ? "p" : h, b = g === void 0 ?
|
|
10
|
+
let y = h === void 0 ? "p" : h, b = g === void 0 ? t.Body : g, x = _ === void 0 ? n.Medium : _, S = v === void 0 ? "normal" : v, C;
|
|
11
11
|
return o[13] !== s || o[14] !== y || o[15] !== c || o[16] !== l || o[17] !== u || o[18] !== d || o[19] !== b || o[20] !== x || o[21] !== S || o[22] !== f || o[23] !== p || o[24] !== m ? (C = /* @__PURE__ */ r(i, {
|
|
12
12
|
as: y,
|
|
13
13
|
fontFamily: b,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isTouchScreenDevice as e } from "../../theme/theme-helper.js";
|
|
2
2
|
import { ThemeBorderToken as t, ThemeColorToken as n, ThemeFontToken as r, ThemeRadiusToken as i, ThemeSpaceToken as a } from "../../theme/theme-tokens.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColor as o } from "../../theme/theme-types.js";
|
|
4
4
|
import { defineRecipe as s } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/textarea/textarea-recipe.ts
|
|
6
6
|
var c = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertType } from '../alert/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeSpace } from '../../theme/index.js';
|
|
3
3
|
import { ConditionalValue, CreateToasterReturn } from '@chakra-ui/react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
export type ShowToastOptions = {
|
|
@@ -14,7 +14,7 @@ export type ShowToastOptions = {
|
|
|
14
14
|
* Distance from the bottom of the screen to the toast.
|
|
15
15
|
* Defaults to 48px on larger screens and 8px on smaller screens.
|
|
16
16
|
*/
|
|
17
|
-
distanceToBottom?: ConditionalValue<
|
|
17
|
+
distanceToBottom?: ConditionalValue<ThemeSpace | (string & {})>;
|
|
18
18
|
/** Duration in milliseconds for which the toast is visible. Set to `null` for indefinite duration. */
|
|
19
19
|
duration?: number | null;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-store.d.ts","sourceRoot":"","sources":["../../../lib/components/toaster/toast-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toast-store.d.ts","sourceRoot":"","sources":["../../../lib/components/toaster/toast-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAEN,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG;IAC9B,uDAAuD;IACvD,WAAW,EAAE,SAAS,CAAC;IACvB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;kEAC8D;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC;IAEhE,sGAAsG;IACtG,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,gBAAgB,QAgBnG;AAGD,eAAO,MAAM,UAAU,EAAE,mBASvB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeShadow as t, ThemeSpace as n } from "../../theme/theme-types.js";
|
|
3
3
|
import { Alert as r } from "../alert/alert.js";
|
|
4
4
|
import { toastStore as i } from "./toast-store.js";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeFontSize as t } from "../../theme/theme-types.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { Flex as i, Text as a, useBreakpointValue as o } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/toggle-button/use-button-children.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeColor as t, ThemeFont as n, ThemeFontSize as r, ThemeRadius as i, ThemeSpace as a } from "../../theme/theme-types.js";
|
|
3
3
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
4
|
import { Portal as l, Tooltip as u } from "@chakra-ui/react";
|
|
5
5
|
//#region lib/components/tooltip/tooltip.tsx
|
|
@@ -7,7 +7,7 @@ var d = e();
|
|
|
7
7
|
function f(e) {
|
|
8
8
|
let f = (0, d.c)(25), p, m, h, g, _, v, y, b;
|
|
9
9
|
f[0] === e ? (p = f[1], m = f[2], h = f[3], g = f[4], _ = f[5], v = f[6], y = f[7], b = f[8]) : ({children: p, label: h, placement: _, p: v, fontSize: y, fontFamily: b, disabled: m, ...g} = e, f[0] = e, f[1] = p, f[2] = m, f[3] = h, f[4] = g, f[5] = _, f[6] = v, f[7] = y, f[8] = b);
|
|
10
|
-
let x = _ === void 0 ? "bottom" : _, S = v === void 0 ? a.Small : v, C = y === void 0 ?
|
|
10
|
+
let x = _ === void 0 ? "bottom" : _, S = v === void 0 ? a.Small : v, C = y === void 0 ? r.Small : y, w = b === void 0 ? n.Body : b;
|
|
11
11
|
if (m) return p;
|
|
12
12
|
let T;
|
|
13
13
|
f[9] === x ? T = f[10] : (T = { placement: x }, f[9] = x, f[10] = T);
|