@caspeco/casper-ui-library 7.7.1 → 7.7.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.
@@ -97,7 +97,7 @@ const Y = ({
97
97
  tabIndex: 0,
98
98
  icon: n ? S.TreeViewCollapse : S.TreeViewExpand,
99
99
  "aria-label": n ? `Collapse ${i}` : `Expand ${i}`,
100
- size: "sm"
100
+ size: "xs"
101
101
  }
102
102
  ),
103
103
  /* @__PURE__ */ e(
@@ -1,5 +1,6 @@
1
1
  import { ButtonProps, ResponsiveValue } from '@chakra-ui/react';
2
2
  import { default as React } from 'react';
3
+ import { ButtonSize } from '../button/types.js';
3
4
  import { SegmentedControlItem } from './types.js';
4
5
  type CustomButtonProps = Pick<ButtonProps, "isDisabled" | "isActive" | "key" | "aria-label">;
5
6
  type SegmentedControlButtonProps = CustomButtonProps & {
@@ -14,7 +15,7 @@ type SegmentedControlButtonProps = CustomButtonProps & {
14
15
  /**
15
16
  * Size for component. Defaults to 'md' (medium).
16
17
  */
17
- size: ResponsiveValue<"md" | "sm"> | undefined;
18
+ size: ResponsiveValue<ButtonSize> | undefined;
18
19
  children: React.ReactNode;
19
20
  };
20
21
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"segmented-control-item.d.ts","sourceRoot":"","sources":["../../../lib/components/segmented-control/segmented-control-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,KAAK,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,UAAU,GAAG,KAAK,GAAG,YAAY,CAAC,CAAC;AAE7F,KAAK,2BAA2B,GAAG,iBAAiB,GAAG;IACtD;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IAC/C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,2BAA2B,2CAW9F"}
1
+ {"version":3,"file":"segmented-control-item.d.ts","sourceRoot":"","sources":["../../../lib/components/segmented-control/segmented-control-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,KAAK,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,UAAU,GAAG,KAAK,GAAG,YAAY,CAAC,CAAC;AAE7F,KAAK,2BAA2B,GAAG,iBAAiB,GAAG;IACtD;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,2BAA2B,2CAW9F"}
@@ -1,5 +1,6 @@
1
1
  import { MarginProps, PaddingProps } from '../../theme/index.js';
2
2
  import { ResponsiveValue } from '@chakra-ui/react';
3
+ import { ButtonSize } from '../button/types.js';
3
4
  export type SegmentedControlItem = {
4
5
  /**
5
6
  * Required identifier for item.
@@ -38,7 +39,7 @@ type CustomSegmentedControlProps = {
38
39
  /**
39
40
  * Size for component. Defaults to 'md' (medium).
40
41
  */
41
- size?: ResponsiveValue<"md" | "sm"> | undefined;
42
+ size?: ResponsiveValue<ButtonSize> | undefined;
42
43
  };
43
44
  export type SegmentedControlProps = CustomSegmentedControlProps & MarginProps & PaddingProps;
44
45
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/segmented-control/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,2BAA2B,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAAG,WAAW,GAAG,YAAY,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/segmented-control/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,2BAA2B,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAAG,WAAW,GAAG,YAAY,CAAC"}
@@ -109,7 +109,7 @@ const U = ({
109
109
  {
110
110
  icon: H.MoreVertical,
111
111
  variant: "ghost",
112
- size: "sm",
112
+ size: "xs",
113
113
  "aria-label": R.moreActions,
114
114
  borderRadius: "0"
115
115
  }
@@ -120,7 +120,7 @@ const G = ({
120
120
  items: e.items,
121
121
  selectedItems: e.selectedItems,
122
122
  onChange: (s) => k(e.filterId, s),
123
- footerContent: /* @__PURE__ */ l(T, { variant: "link", size: "sm", onClick: () => k(e.filterId, []), children: /* @__PURE__ */ l(A, { children: h.filterBoxReset }) })
123
+ footerContent: /* @__PURE__ */ l(T, { variant: "link", size: "xs", onClick: () => k(e.filterId, []), children: /* @__PURE__ */ l(A, { children: h.filterBoxReset }) })
124
124
  },
125
125
  e.filterId
126
126
  )) }),
@@ -7,18 +7,18 @@ import { Icons as i } from "../icon/types.js";
7
7
  import { ThemeSpaceVariable as f } from "../../theme/theme-types.js";
8
8
  const B = d(
9
9
  ({ row: o, localeString: l, rowIsExpanded: n, hidden: a }) => {
10
- const r = x[l], m = o.getToggleExpandedHandler(), p = (e) => {
11
- e.stopPropagation(), m();
12
- }, s = () => n ? `${r.collapseRow} ${o.index + 1}` : `${r.expandRow} ${o.index + 1}`;
10
+ const r = x[l], p = o.getToggleExpandedHandler(), s = (e) => {
11
+ e.stopPropagation(), p();
12
+ }, m = () => n ? `${r.collapseRow} ${o.index + 1}` : `${r.expandRow} ${o.index + 1}`;
13
13
  return /* @__PURE__ */ t(c, { as: "span", h: "100%", children: /* @__PURE__ */ t(
14
14
  g,
15
15
  {
16
- size: "sm",
16
+ size: "xs",
17
17
  mr: f.XSmall,
18
18
  variant: "ghost",
19
- "aria-label": s(),
19
+ "aria-label": m(),
20
20
  icon: n ? i.TreeViewCollapse : i.TreeViewExpand,
21
- onClick: p,
21
+ onClick: s,
22
22
  onKeyDown: (e) => e.stopPropagation(),
23
23
  visibility: a ? "hidden" : "initial",
24
24
  "aria-hidden": a,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspeco/casper-ui-library",
3
- "version": "7.7.1",
3
+ "version": "7.7.2",
4
4
  "prettier": "@caspeco/prettier-config",
5
5
  "type": "module",
6
6
  "sideEffects": false,