@zuzjs/ui 0.7.6 → 0.7.8

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.
Files changed (200) hide show
  1. package/dist/cjs/comps/Accordion/index.js +2 -1
  2. package/dist/cjs/comps/Actionbar/index.d.ts +1 -1
  3. package/dist/cjs/comps/Actionbar/index.js +3 -2
  4. package/dist/cjs/comps/Alert/index.d.ts +1 -1
  5. package/dist/cjs/comps/Alert/index.js +1 -0
  6. package/dist/cjs/comps/AutoComplete/index.js +4 -3
  7. package/dist/cjs/comps/Avatar/index.js +3 -2
  8. package/dist/cjs/comps/Box/index.js +1 -1
  9. package/dist/cjs/comps/Button/index.d.ts +1 -1
  10. package/dist/cjs/comps/Button/index.js +4 -3
  11. package/dist/cjs/comps/CheckBox/index.d.ts +2 -2
  12. package/dist/cjs/comps/CheckBox/index.js +2 -1
  13. package/dist/cjs/comps/ColorScheme/index.d.ts +1 -1
  14. package/dist/cjs/comps/ColorScheme/index.js +7 -2
  15. package/dist/cjs/comps/ContextMenu/index.js +3 -2
  16. package/dist/cjs/comps/CookiesConsent/index.js +3 -2
  17. package/dist/cjs/comps/Cover/index.d.ts +1 -1
  18. package/dist/cjs/comps/Cover/index.js +3 -2
  19. package/dist/cjs/comps/Drawer/index.d.ts +2 -1
  20. package/dist/cjs/comps/Drawer/index.js +13 -5
  21. package/dist/cjs/comps/Drawer/types.d.ts +1 -0
  22. package/dist/cjs/comps/Editor/Timeline/index.js +4 -3
  23. package/dist/cjs/comps/Editor/index.js +2 -1
  24. package/dist/cjs/comps/Fab/index.d.ts +1 -2
  25. package/dist/cjs/comps/Fab/index.js +2 -1
  26. package/dist/cjs/comps/Filters/index.d.ts +4 -1
  27. package/dist/cjs/comps/Filters/index.js +2 -0
  28. package/dist/cjs/comps/Form/index.d.ts +2 -2
  29. package/dist/cjs/comps/Form/index.js +5 -7
  30. package/dist/cjs/comps/Icon/index.d.ts +1 -1
  31. package/dist/cjs/comps/Icon/index.js +2 -1
  32. package/dist/cjs/comps/Image/index.js +1 -0
  33. package/dist/cjs/comps/Input/index.js +1 -0
  34. package/dist/cjs/comps/Label/index.js +1 -0
  35. package/dist/cjs/comps/List/index.d.ts +1 -1
  36. package/dist/cjs/comps/List/index.js +1 -0
  37. package/dist/cjs/comps/List/item.d.ts +6 -3
  38. package/dist/cjs/comps/List/item.js +1 -0
  39. package/dist/cjs/comps/Network/index.js +4 -3
  40. package/dist/cjs/comps/Overlay/index.js +2 -1
  41. package/dist/cjs/comps/Pagination/index.d.ts +5 -2
  42. package/dist/cjs/comps/Pagination/index.js +24 -13
  43. package/dist/cjs/comps/Pagination/types.d.ts +5 -2
  44. package/dist/cjs/comps/Password/index.js +2 -1
  45. package/dist/cjs/comps/PinInput/index.js +2 -1
  46. package/dist/cjs/comps/ProgressBar/index.d.ts +1 -1
  47. package/dist/cjs/comps/ProgressBar/index.js +3 -1
  48. package/dist/cjs/comps/Radio/index.d.ts +2 -2
  49. package/dist/cjs/comps/Radio/index.js +8 -5
  50. package/dist/cjs/comps/Radio/types.d.ts +1 -1
  51. package/dist/cjs/comps/Search/index.d.ts +1 -1
  52. package/dist/cjs/comps/Search/index.js +3 -2
  53. package/dist/cjs/comps/Segmented/index.d.ts +2 -2
  54. package/dist/cjs/comps/Segmented/index.js +4 -4
  55. package/dist/cjs/comps/Segmented/item.d.ts +4 -1
  56. package/dist/cjs/comps/Segmented/item.js +8 -15
  57. package/dist/cjs/comps/Select/index.d.ts +2 -4
  58. package/dist/cjs/comps/Select/index.js +4 -3
  59. package/dist/cjs/comps/Select/optionItem.d.ts +4 -1
  60. package/dist/cjs/comps/Select/optionItem.js +1 -0
  61. package/dist/cjs/comps/Sheet/index.d.ts +1 -1
  62. package/dist/cjs/comps/Sheet/index.js +4 -3
  63. package/dist/cjs/comps/Sidebar/index.js +1 -0
  64. package/dist/cjs/comps/Slider/index.d.ts +1 -1
  65. package/dist/cjs/comps/Slider/index.js +3 -2
  66. package/dist/cjs/comps/Span/index.js +1 -0
  67. package/dist/cjs/comps/Spinner/index.d.ts +1 -1
  68. package/dist/cjs/comps/Spinner/index.js +4 -6
  69. package/dist/cjs/comps/Switch/index.d.ts +1 -1
  70. package/dist/cjs/comps/Switch/index.js +2 -1
  71. package/dist/cjs/comps/TabView/body.js +1 -0
  72. package/dist/cjs/comps/TabView/index.d.ts +1 -2
  73. package/dist/cjs/comps/TabView/index.js +3 -1
  74. package/dist/cjs/comps/TabView/tab.d.ts +4 -1
  75. package/dist/cjs/comps/TabView/tab.js +1 -0
  76. package/dist/cjs/comps/Table/col.d.ts +10 -6
  77. package/dist/cjs/comps/Table/col.js +17 -4
  78. package/dist/cjs/comps/Table/index.js +13 -6
  79. package/dist/cjs/comps/Table/row.d.ts +4 -1
  80. package/dist/cjs/comps/Table/row.js +8 -7
  81. package/dist/cjs/comps/Table/types.d.ts +11 -4
  82. package/dist/cjs/comps/Text/index.js +1 -1
  83. package/dist/cjs/comps/TextArea/index.js +1 -0
  84. package/dist/cjs/comps/TextWheel/index.js +6 -5
  85. package/dist/cjs/comps/Tooltip/index.d.ts +1 -2
  86. package/dist/cjs/comps/Tooltip/index.js +2 -1
  87. package/dist/cjs/comps/Treeview/index.d.ts +1 -2
  88. package/dist/cjs/comps/Treeview/index.js +2 -1
  89. package/dist/cjs/comps/Treeview/item.d.ts +3 -2
  90. package/dist/cjs/comps/Treeview/item.js +11 -7
  91. package/dist/cjs/comps/Treeview/types.d.ts +6 -2
  92. package/dist/cjs/funs/index.d.ts +9 -7
  93. package/dist/cjs/funs/index.js +40 -12
  94. package/dist/cjs/hooks/index.d.ts +4 -5
  95. package/dist/cjs/hooks/index.js +2 -2
  96. package/dist/cjs/hooks/useDelayed.d.ts +17 -0
  97. package/dist/cjs/hooks/useDelayed.js +25 -0
  98. package/dist/cjs/index.js +1 -0
  99. package/dist/css/styles.css +1 -1
  100. package/dist/esm/comps/Accordion/index.js +2 -1
  101. package/dist/esm/comps/Actionbar/index.d.ts +1 -1
  102. package/dist/esm/comps/Actionbar/index.js +3 -2
  103. package/dist/esm/comps/Alert/index.d.ts +1 -1
  104. package/dist/esm/comps/Alert/index.js +1 -0
  105. package/dist/esm/comps/AutoComplete/index.js +4 -3
  106. package/dist/esm/comps/Avatar/index.js +3 -2
  107. package/dist/esm/comps/Box/index.js +1 -1
  108. package/dist/esm/comps/Button/index.d.ts +1 -1
  109. package/dist/esm/comps/Button/index.js +4 -3
  110. package/dist/esm/comps/CheckBox/index.d.ts +2 -2
  111. package/dist/esm/comps/CheckBox/index.js +2 -1
  112. package/dist/esm/comps/ColorScheme/index.d.ts +1 -1
  113. package/dist/esm/comps/ColorScheme/index.js +7 -2
  114. package/dist/esm/comps/ContextMenu/index.js +3 -2
  115. package/dist/esm/comps/CookiesConsent/index.js +3 -2
  116. package/dist/esm/comps/Cover/index.d.ts +1 -1
  117. package/dist/esm/comps/Cover/index.js +3 -2
  118. package/dist/esm/comps/Drawer/index.d.ts +2 -1
  119. package/dist/esm/comps/Drawer/index.js +13 -5
  120. package/dist/esm/comps/Drawer/types.d.ts +1 -0
  121. package/dist/esm/comps/Editor/Timeline/index.js +4 -3
  122. package/dist/esm/comps/Editor/index.js +2 -1
  123. package/dist/esm/comps/Fab/index.d.ts +1 -2
  124. package/dist/esm/comps/Fab/index.js +2 -1
  125. package/dist/esm/comps/Filters/index.d.ts +4 -1
  126. package/dist/esm/comps/Filters/index.js +2 -0
  127. package/dist/esm/comps/Form/index.d.ts +2 -2
  128. package/dist/esm/comps/Form/index.js +5 -7
  129. package/dist/esm/comps/Icon/index.d.ts +1 -1
  130. package/dist/esm/comps/Icon/index.js +2 -1
  131. package/dist/esm/comps/Image/index.js +1 -0
  132. package/dist/esm/comps/Input/index.js +1 -0
  133. package/dist/esm/comps/Label/index.js +1 -0
  134. package/dist/esm/comps/List/index.d.ts +1 -1
  135. package/dist/esm/comps/List/index.js +1 -0
  136. package/dist/esm/comps/List/item.d.ts +6 -3
  137. package/dist/esm/comps/List/item.js +1 -0
  138. package/dist/esm/comps/Network/index.js +4 -3
  139. package/dist/esm/comps/Overlay/index.js +2 -1
  140. package/dist/esm/comps/Pagination/index.d.ts +5 -2
  141. package/dist/esm/comps/Pagination/index.js +24 -13
  142. package/dist/esm/comps/Pagination/types.d.ts +5 -2
  143. package/dist/esm/comps/Password/index.js +2 -1
  144. package/dist/esm/comps/PinInput/index.js +2 -1
  145. package/dist/esm/comps/ProgressBar/index.d.ts +1 -1
  146. package/dist/esm/comps/ProgressBar/index.js +3 -1
  147. package/dist/esm/comps/Radio/index.d.ts +2 -2
  148. package/dist/esm/comps/Radio/index.js +8 -5
  149. package/dist/esm/comps/Radio/types.d.ts +1 -1
  150. package/dist/esm/comps/Search/index.d.ts +1 -1
  151. package/dist/esm/comps/Search/index.js +3 -2
  152. package/dist/esm/comps/Segmented/index.d.ts +2 -2
  153. package/dist/esm/comps/Segmented/index.js +4 -4
  154. package/dist/esm/comps/Segmented/item.d.ts +4 -1
  155. package/dist/esm/comps/Segmented/item.js +8 -15
  156. package/dist/esm/comps/Select/index.d.ts +2 -4
  157. package/dist/esm/comps/Select/index.js +4 -3
  158. package/dist/esm/comps/Select/optionItem.d.ts +4 -1
  159. package/dist/esm/comps/Select/optionItem.js +1 -0
  160. package/dist/esm/comps/Sheet/index.d.ts +1 -1
  161. package/dist/esm/comps/Sheet/index.js +4 -3
  162. package/dist/esm/comps/Sidebar/index.js +1 -0
  163. package/dist/esm/comps/Slider/index.d.ts +1 -1
  164. package/dist/esm/comps/Slider/index.js +3 -2
  165. package/dist/esm/comps/Span/index.js +1 -0
  166. package/dist/esm/comps/Spinner/index.d.ts +1 -1
  167. package/dist/esm/comps/Spinner/index.js +4 -6
  168. package/dist/esm/comps/Switch/index.d.ts +1 -1
  169. package/dist/esm/comps/Switch/index.js +2 -1
  170. package/dist/esm/comps/TabView/body.js +1 -0
  171. package/dist/esm/comps/TabView/index.d.ts +1 -2
  172. package/dist/esm/comps/TabView/index.js +3 -1
  173. package/dist/esm/comps/TabView/tab.d.ts +4 -1
  174. package/dist/esm/comps/TabView/tab.js +1 -0
  175. package/dist/esm/comps/Table/col.d.ts +10 -6
  176. package/dist/esm/comps/Table/col.js +17 -4
  177. package/dist/esm/comps/Table/index.js +13 -6
  178. package/dist/esm/comps/Table/row.d.ts +4 -1
  179. package/dist/esm/comps/Table/row.js +8 -7
  180. package/dist/esm/comps/Table/types.d.ts +11 -4
  181. package/dist/esm/comps/Text/index.js +1 -1
  182. package/dist/esm/comps/TextArea/index.js +1 -0
  183. package/dist/esm/comps/TextWheel/index.js +6 -5
  184. package/dist/esm/comps/Tooltip/index.d.ts +1 -2
  185. package/dist/esm/comps/Tooltip/index.js +2 -1
  186. package/dist/esm/comps/Treeview/index.d.ts +1 -2
  187. package/dist/esm/comps/Treeview/index.js +2 -1
  188. package/dist/esm/comps/Treeview/item.d.ts +3 -2
  189. package/dist/esm/comps/Treeview/item.js +11 -7
  190. package/dist/esm/comps/Treeview/types.d.ts +6 -2
  191. package/dist/esm/funs/index.d.ts +9 -7
  192. package/dist/esm/funs/index.js +40 -12
  193. package/dist/esm/hooks/index.d.ts +4 -5
  194. package/dist/esm/hooks/index.js +2 -2
  195. package/dist/esm/hooks/useDelayed.d.ts +17 -0
  196. package/dist/esm/hooks/useDelayed.js +25 -0
  197. package/dist/esm/index.js +1 -0
  198. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  199. package/dist/tsconfig.tsbuildinfo +1 -1
  200. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
4
- import Overlay from "../Overlay";
5
- import Box from "../Box";
6
4
  import { bindKey } from "../../funs";
7
5
  import { DRAWER_SIDE, KeyCode, TRANSITION_CURVES } from "../../types/enums";
6
+ import Box from "../Box";
7
+ import Overlay from "../Overlay";
8
8
  const Drawer = forwardRef((props, ref) => {
9
- const { as, from, speed, children, prerender, ...pops } = props;
9
+ const { as, from, speed, children, prerender, onClose, ...pops } = props;
10
10
  const [render, setRender] = useState(undefined == prerender ? true : prerender);
11
11
  const [visible, setVisible] = useState(false);
12
12
  const divRef = useRef(null);
@@ -15,7 +15,12 @@ const Drawer = forwardRef((props, ref) => {
15
15
  setContent(children);
16
16
  }, [children]);
17
17
  useEffect(() => {
18
- bindKey(KeyCode.Escape, () => visible && setVisible(false));
18
+ bindKey(KeyCode.Escape, () => {
19
+ if (visible) {
20
+ onClose?.();
21
+ setVisible(false);
22
+ }
23
+ });
19
24
  }, []);
20
25
  const style = useMemo(() => {
21
26
  switch (from) {
@@ -38,14 +43,16 @@ const Drawer = forwardRef((props, ref) => {
38
43
  setVisible(true);
39
44
  },
40
45
  close() {
46
+ onClose?.();
41
47
  setVisible(false);
42
48
  }
43
49
  }));
44
50
  return _jsxs(_Fragment, { children: [_jsx(Overlay, { onClick: (e) => {
45
51
  if (visible) {
52
+ onClose?.();
46
53
  setVisible(false);
47
54
  }
48
- }, when: visible }), _jsxs(Box, { ref: divRef, className: `--drawer flex cols --${from ? from.toLowerCase() : `left`} fixed`, animate: {
55
+ }, when: visible }), _jsxs(Box, { ref: divRef, className: `--drawer flex cols --${from ? from.toLowerCase() : `left`} fixed`, fx: {
49
56
  from: { ...style.from, opacity: 0 },
50
57
  to: { ...style.to, opacity: 1 },
51
58
  when: visible,
@@ -53,4 +60,5 @@ const Drawer = forwardRef((props, ref) => {
53
60
  duration: speed || .5,
54
61
  }, ...pops, children: [from == DRAWER_SIDE.Top || from == DRAWER_SIDE.Bottom ? _jsx(Box, { className: `--handle` }) : null, render ? content : visible ? content : null] })] });
55
62
  });
63
+ Drawer.displayName = `Drawer`;
56
64
  export default Drawer;
@@ -7,6 +7,7 @@ export type DrawerProps = BoxProps & {
7
7
  from?: DRAWER_SIDE;
8
8
  children?: string | ReactNode | ReactNode[];
9
9
  prerender?: boolean;
10
+ onClose?: () => void;
10
11
  };
11
12
  export interface DrawerHandler {
12
13
  open: (child?: string | ReactNode | ReactNode[]) => void;
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect, useRef, useState } from "react";
4
+ import { DRAG_DIRECTION, SLIDER } from "../../../types/enums";
4
5
  import Box from "../../Box";
5
6
  import Button from "../../Button";
7
+ import Slider from "../../Slider";
6
8
  import SVGIcons from "../../svgicons";
7
9
  import Text from "../../Text";
8
- import Layer from "./layer";
9
- import Slider from "../../Slider";
10
- import { DRAG_DIRECTION, SLIDER } from "../../../types/enums";
11
10
  import ToolTip from "../../Tooltip";
11
+ import Layer from "./layer";
12
12
  const Timeline = forwardRef((props, ref) => {
13
13
  const { layers } = props;
14
14
  const [selected, setSelected] = useState([]);
@@ -55,4 +55,5 @@ const Timeline = forwardRef((props, ref) => {
55
55
  }
56
56
  }, className: `--cursor abs` })] });
57
57
  });
58
+ Timeline.displayName = `Timeline`;
58
59
  export default Timeline;
@@ -1,10 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import React, { forwardRef } from 'react';
4
- import { EditorMode } from './types';
5
4
  import Box from '../Box';
5
+ import { EditorMode } from './types';
6
6
  const Editor = forwardRef((props, ref) => {
7
7
  const [mode, setMode] = React.useState(EditorMode.Select);
8
8
  return _jsx(Box, { as: `--ui-builder rel` });
9
9
  });
10
+ Editor.displayName = `Editor`;
10
11
  export default Editor;
@@ -1,7 +1,6 @@
1
1
  import SVGIcons from "../svgicons";
2
- import { Position } from "../../types/enums";
3
2
  declare const Fab: import("react").ForwardRefExoticComponent<Omit<import("..").ButtonProps, "icon"> & {
4
3
  icon?: string | keyof typeof SVGIcons;
5
- position?: `${Position.Top | Position.Bottom}${Position.Left | Position.Right}`;
4
+ position?: `${import("../..").Position.Top | import("../..").Position.Bottom}${import("../..").Position.Left | import("../..").Position.Right}`;
6
5
  } & import("react").RefAttributes<HTMLButtonElement>>;
7
6
  export default Fab;
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
+ import { Size } from "../../types/enums";
3
4
  import Button from "../Button";
4
5
  import SVGIcons from "../svgicons";
5
- import { Size } from "../../types/enums";
6
6
  const Fab = forwardRef((props, ref) => {
7
7
  const { icon, size, position } = props;
8
8
  return _jsx(Button, { className: `--fab fixed --${size || Size.Large} --${position || `bottomright`}`, children: icon || SVGIcons.plus });
9
9
  });
10
+ Fab.displayName = `Fab`;
10
11
  export default Fab;
@@ -3,5 +3,8 @@ export type FilterProps = {
3
3
  names?: FILTER[];
4
4
  strength?: number;
5
5
  };
6
- declare const Filters: (props: FilterProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Filters: {
7
+ (props: FilterProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
7
10
  export default Filters;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { useEffect } from "react";
3
4
  import { FILTER } from "../../types/enums";
@@ -9,4 +10,5 @@ const Filters = (props) => {
9
10
  useEffect(() => { }, [names]);
10
11
  return _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", children: _jsx("defs", { children: (names || [FILTER.Gooey]).map(name => filters[name](strength)) }) });
11
12
  };
13
+ Filters.displayName = `Filters`;
12
14
  export default Filters;
@@ -1,7 +1,7 @@
1
- import { BoxProps } from "../Box";
2
1
  import { dynamicObject } from "../../types";
3
- import { SheetHandler } from "../Sheet";
4
2
  import { SPINNER } from "../../types/enums";
3
+ import { BoxProps } from "../Box";
4
+ import { SheetHandler } from "../Sheet";
5
5
  export type FormProps = BoxProps & {
6
6
  /** Name of form, will be appended to --form-{name} in className
7
7
  * whitespace will be replaced with dash (-)
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, startTransition, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
4
- import Box from "../Box";
4
+ import { addPropsToChildren, isEmail, withPost } from "../../funs";
5
5
  import { useBase } from "../../hooks";
6
- import Sheet, { isSheetHandler } from "../Sheet";
7
- import Cover from "../Cover";
8
6
  import { FORMVALIDATION, SHEET } from "../../types/enums";
9
- import { addPropsToChildren, isEmail, withPost } from "../../funs";
7
+ import Box from "../Box";
8
+ import Cover from "../Cover";
9
+ import Sheet, { isSheetHandler } from "../Sheet";
10
10
  /**
11
11
  * {@link Form} is a controlled component designed to handle form data submission, validation, and display of loading or error states.
12
12
  * It allows for optional server-side submission through an action endpoint and customizable success/error handling callbacks.
@@ -89,15 +89,12 @@ const Form = forwardRef((props, ref) => {
89
89
  switch (_with.toUpperCase()) {
90
90
  case FORMVALIDATION.Email:
91
91
  return isEmail(el.value);
92
- break;
93
92
  case FORMVALIDATION.Uri:
94
93
  console.log(`Add FORMVALIDATION.Uri`);
95
94
  return false;
96
- break;
97
95
  case FORMVALIDATION.Password:
98
96
  console.log(`Add FORMVALIDATION.Password`);
99
97
  return false;
100
- break;
101
98
  case FORMVALIDATION.MatchField:
102
99
  const [__, field] = el.getAttribute(`with`).split(`@`);
103
100
  const _el = document.querySelector(`[name=${field.trim()}]`);
@@ -264,4 +261,5 @@ const Form = forwardRef((props, ref) => {
264
261
  useEffect(_init, []);
265
262
  return _jsxs(Box, { ref: innerRef, style: style, className: `--form flex rel ${className} ${name ? `--form-${name.replace(/\s+/g, `-`)}` : ``}`, propsToRemove: [`withData`, `action`, `onSubmit`, `onSuccess`, `onError`], children: [_jsx(Sheet, { ref: sheet, as: `--sheet-form` }), !isSheetHandler(cover) && _jsx(Cover, { message: cover ? cover.message || undefined : `working`, spinner: spinner, color: cover ? `color` in cover ? cover.color : `#ffffff` : `#ffffff`, when: loading }), buildChildren] });
266
263
  });
264
+ Form.displayName = `Form`;
267
265
  export default Form;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from "react";
2
- import { BoxProps } from "../Box";
3
2
  import { Size } from "../../types/enums";
3
+ import { BoxProps } from "../Box";
4
4
  export type IconProps = Omit<BoxProps, `name`> & {
5
5
  name: string | ReactNode;
6
6
  pathCount?: number;
@@ -2,11 +2,12 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { forwardRef } from "react";
4
4
  import { useBase } from "../../hooks";
5
- import Span from "../Span";
6
5
  import { Size } from "../../types/enums";
6
+ import Span from "../Span";
7
7
  const Icon = forwardRef((props, ref) => {
8
8
  const { name, pathCount, size, ...pops } = props;
9
9
  const { className, style, rest } = useBase(pops);
10
10
  return _jsx("div", { style: style, className: `icon-${name} --icon --${size || Size.Default} ${className}`.trim(), ref: ref, ...rest, children: Array(pathCount || 0).fill(0).map((p, i) => _jsx(Span, { className: `path${i + 1}` }, `${name}-layer-${i}`)) });
11
11
  });
12
+ Icon.displayName = `Icon`;
12
13
  export default Icon;
@@ -8,4 +8,5 @@ const Image = forwardRef((props, ref) => {
8
8
  return null;
9
9
  return _jsx("img", { ref: ref, style: style, className: `${className} flex`, ...rest });
10
10
  });
11
+ Image.displayName = `Image`;
11
12
  export default Image;
@@ -12,4 +12,5 @@ const Input = forwardRef((props, ref) => {
12
12
  };
13
13
  return _jsx("input", { className: `--input ${size || variant ? `--${size || variant}` : ``} flex ${className}`.trim(), style: style, onInput: handleInput, ref: ref, ...rest });
14
14
  });
15
+ Input.displayName = `Input`;
15
16
  export default Input;
@@ -6,4 +6,5 @@ const Label = forwardRef((props, ref) => {
6
6
  const { style, className, rest } = useBase(props);
7
7
  return _jsx("label", { ref: ref, style: style, className: className, ...rest });
8
8
  });
9
+ Label.displayName = `Label`;
9
10
  export default Label;
@@ -3,5 +3,5 @@ declare const List: import("react").ForwardRefExoticComponent<import("../..").Zu
3
3
  size?: Size;
4
4
  items: import("./types").ListItem[];
5
5
  ol?: boolean;
6
- } & import("react").RefAttributes<HTMLOListElement | HTMLUListElement>>;
6
+ } & import("react").RefAttributes<HTMLUListElement | HTMLOListElement>>;
7
7
  export default List;
@@ -14,4 +14,5 @@ const List = forwardRef((props, ref) => {
14
14
  children: items.map((item, index) => _jsx(Item, { meta: item }, `list-item-${typeof item == `string` ? String(item) : item.label}-${index}`))
15
15
  });
16
16
  });
17
+ List.displayName = `List`;
17
18
  export default List;
@@ -1,5 +1,8 @@
1
1
  import { type ListItem } from "./types";
2
- declare const Item: (props: {
3
- meta: ListItem;
4
- }) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Item: {
3
+ (props: {
4
+ meta: ListItem;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
5
8
  export default Item;
@@ -13,4 +13,5 @@ const Item = (props) => {
13
13
  });
14
14
  return _jsx("li", { style: style, className: className, ...rest, children: typeof meta == `string` ? meta : label });
15
15
  };
16
+ Item.displayName = `ListItem`;
16
17
  export default Item;
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useEffect } from "react";
3
- import Box from "../Box";
4
- import Text from "../Text";
5
- import { ALERT, Size, TRANSITION_CURVES } from "../../types/enums";
6
3
  import { useNetworkStatus } from "../../hooks";
4
+ import { ALERT, Size, TRANSITION_CURVES } from "../../types/enums";
5
+ import Box from "../Box";
7
6
  import SVGIcons from "../svgicons";
7
+ import Text from "../Text";
8
8
  const NetworkManager = forwardRef((props, ref) => {
9
9
  const isOnline = useNetworkStatus();
10
10
  const { onlineMessage, offlineMessage, size } = props;
@@ -19,4 +19,5 @@ const NetworkManager = forwardRef((props, ref) => {
19
19
  delay: 2
20
20
  }, className: `--network-manager --${isOnline == true ? `online` : `offline`} --${size || Size.Small} fixed flex`, children: [_jsx(Box, { className: `--ico`, children: isOnline ? SVGIcons[ALERT.Success] : SVGIcons[ALERT.Error] }), _jsx(Text, { as: `--message`, children: isOnline ? onlineMessage || `internet connection restored :)` : offlineMessage || `no internet connection` })] });
21
21
  });
22
+ NetworkManager.displayName = `NetWorkManager`;
22
23
  export default NetworkManager;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import Box from "../Box";
4
3
  import { TRANSITIONS } from "../../types/enums";
4
+ import Box from "../Box";
5
5
  export const Overlay = forwardRef((props, ref) => {
6
6
  const { when, ...pops } = props;
7
7
  return _jsx(Box, { ref: ref, "aria-hidden": !when, className: `--overlay fixed fill`, animate: {
@@ -9,4 +9,5 @@ export const Overlay = forwardRef((props, ref) => {
9
9
  when,
10
10
  }, ...pops });
11
11
  });
12
+ Overlay.displayName = `Overlay`;
12
13
  export default Overlay;
@@ -1,10 +1,13 @@
1
- import { PaginationPage, PaginationStyle } from "./types";
1
+ import { PaginationStyle } from "./types";
2
2
  declare const Pagination: import("react").ForwardRefExoticComponent<import("..").BoxProps & {
3
3
  itemCount: number;
4
4
  itemsPerPage: number;
5
- startPage?: PaginationPage;
5
+ startPage?: number | string;
6
6
  pageRange?: number;
7
7
  paginationStyle?: PaginationStyle;
8
+ hash?: number | null;
9
+ seperator?: string;
10
+ loading?: boolean;
8
11
  breakLabel?: string;
9
12
  nextLabel?: string;
10
13
  prevLabel?: string;
@@ -1,14 +1,23 @@
1
+ "use client";
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef, useCallback, useMemo, useState } from "react";
3
- import { PaginationStyle } from "./types";
4
+ import { numberInRange, toHash } from "../..";
4
5
  import { useBase } from "../../hooks";
5
6
  import Box from "../Box";
6
7
  import Button from "../Button";
7
8
  import SVGIcons from "../svgicons";
8
- const Pagination = forwardRef((props, ref) => {
9
- const { itemCount, itemsPerPage, startPage, pageRange, paginationStyle, breakLabel, prevLabel, nextLabel, renderOnZeroPageCount, onPageChange, ...pops } = props;
10
- const [_currentPage, setCurrentPage] = useState(startPage || 1);
9
+ import { PaginationStyle } from "./types";
10
+ const Pagination = forwardRef((props, _ref) => {
11
+ const { itemCount, itemsPerPage, startPage, pageRange, paginationStyle, breakLabel, prevLabel, nextLabel, hash, loading, seperator, renderOnZeroPageCount, onPageChange, ...pops } = props;
12
+ const _hashKey = useMemo(() => toHash(numberInRange(4, 8)), []);
13
+ const _hash = useCallback((input) => `${toHash(input, hash || 6, _hashKey)}${seperator || ``}${_hashKey}`, [_hashKey]);
11
14
  const _breakLabel = useMemo(() => breakLabel || `...`, [breakLabel]);
15
+ const [_currentPage, setCurrentPage] = useState({
16
+ id: hash ?
17
+ startPage ? `number` == typeof startPage ? _hash(startPage) : startPage
18
+ : 1 : startPage || 1,
19
+ label: startPage || 1
20
+ });
12
21
  /**
13
22
  * @internal
14
23
  * const _pageType = useMemo(() => startPage ? `number` === startPage, [breakLabel])
@@ -25,28 +34,30 @@ const Pagination = forwardRef((props, ref) => {
25
34
  const prevs = Math.max(getPageValue(_currentPage) - (pageRange || 2), 1);
26
35
  const nexts = Math.min(getPageValue(_currentPage) + (pageRange || 2), totalPages);
27
36
  if (prevs > 1)
28
- _pages.push(1);
37
+ _pages.push({ id: hash ? _hash(1) : 1, label: 1 });
29
38
  if (prevs > 2)
30
- _pages.push(_breakLabel);
39
+ _pages.push({ id: -1, label: _breakLabel });
31
40
  for (let i = prevs; i <= nexts; i++)
32
- _pages.push(i);
41
+ _pages.push({ id: hash ? _hash(i) : i, label: i });
33
42
  if (nexts < totalPages - 1)
34
- _pages.push(_breakLabel);
43
+ _pages.push({ id: -1, label: _breakLabel });
35
44
  if (nexts < totalPages)
36
- _pages.push(totalPages);
45
+ _pages.push({ id: hash ? _hash(totalPages) : totalPages, label: totalPages });
37
46
  return _pages;
38
47
  }, [_currentPage]);
39
- const handlePage = useCallback((newPage) => {
40
- if (newPage < 1 || newPage > totalPages)
48
+ const handlePage = useCallback((_newPage) => {
49
+ const newPage = _newPage;
50
+ if (+newPage.label < 1 || +newPage.label > totalPages)
41
51
  return;
42
52
  setCurrentPage(newPage);
43
53
  onPageChange?.(newPage);
44
54
  }, [itemCount, itemsPerPage, _currentPage]);
45
55
  if (pages.length <= 1 && ((renderOnZeroPageCount == undefined ? false : renderOnZeroPageCount) === false))
46
56
  return null;
47
- return _jsxs(Box, { as: `--pagination --pgt-${paginationStyle || PaginationStyle.Table} flex aic w:100% jcc ${className}`, children: [_jsx(Box, { as: `flex flex:1 aic --pgt-btns`, children: (pages.length > 1 ? pages : [1, _breakLabel]).map((page, index, items) => _jsx(Button, { disabled: page == _breakLabel || getPageValue(_currentPage) == page, className: page == getPageValue(_currentPage) ? `--current-page` : ``, onClick: (ev) => typeof page == `number` && handlePage(page), children: page }, `--pg-${index}-${page}`)) }), _jsx(Box, { as: `flex aic jcc flex:1 --pagination-label`, children: [
57
+ return _jsxs(Box, { as: `--pagination --pgt-${paginationStyle || PaginationStyle.Table} flex aic w:100% jcc ${className}`, children: [_jsx(Box, { as: `flex flex:1 aic --pgt-btns`, children: (pages.length > 1 ? pages : [{ id: 1, label: 1 }, { id: -1, label: _breakLabel }]).map((page, index, items) => _jsx(Button, { disabled: page.id == -1 || getPageValue(_currentPage) == +page.label, className: (`string` == typeof page ? page : page.label) == getPageValue(_currentPage) ? `--current-page` : ``, onClick: (ev) => handlePage(page), children: `string` == typeof page ? page : page.label }, `--pg-${index}-${page.id}`)) }), _jsx(Box, { as: `flex aic jcc flex:1 --pagination-label`, children: [
48
58
  `Showing ${(getPageValue(_currentPage) - 1) * itemsPerPage + 1} - `,
49
59
  `${Math.min(getPageValue(_currentPage) * itemsPerPage, itemCount)} of ${itemCount} items`
50
- ].join(` `) }), _jsxs(Box, { as: `flex aic jce flex:1 --pgt-btns --pgt-nav`, children: [_jsx(Button, { disabled: getPageValue(_currentPage) <= 1, onClick: (ev) => handlePage(getPageValue(_currentPage) - 1), children: SVGIcons.chevronLeftOutline }), _jsx(Button, { disabled: pages.length <= 1 || getPageValue(_currentPage) == pages[pages.length - 1], onClick: (ev) => handlePage(getPageValue(_currentPage) - 1), children: SVGIcons.chevronRightOutline })] })] });
60
+ ].join(` `) }), _jsxs(Box, { as: `flex aic jce flex:1 --pgt-btns --pgt-nav`, children: [_jsx(Button, { disabled: getPageValue(_currentPage) <= 1, onClick: (ev) => handlePage({ id: hash ? _hash(getPageValue(_currentPage) - 1) : getPageValue(_currentPage) - 1, label: getPageValue(_currentPage) - 1 }), children: SVGIcons.chevronLeftOutline }), _jsx(Button, { disabled: pages.length <= 1 || getPageValue(_currentPage) == getPageValue(pages[pages.length - 1]), onClick: (ev) => handlePage({ id: hash ? _hash(getPageValue(_currentPage) + 1) : getPageValue(_currentPage) + 1, label: getPageValue(_currentPage) + 1 }), children: SVGIcons.chevronRightOutline })] })] });
51
61
  });
62
+ Pagination.displayName = `Pagination`;
52
63
  export default Pagination;
@@ -8,13 +8,16 @@ export type PaginationPageItem = {
8
8
  label: string | number;
9
9
  };
10
10
  export type PaginationPage = number | PaginationPageItem;
11
- export type PaginationCallback = (page: PaginationPage) => void;
11
+ export type PaginationCallback = (page: PaginationPageItem) => void;
12
12
  export type PaginationProps = BoxProps & {
13
13
  itemCount: number;
14
14
  itemsPerPage: number;
15
- startPage?: PaginationPage;
15
+ startPage?: number | string;
16
16
  pageRange?: number;
17
17
  paginationStyle?: PaginationStyle;
18
+ hash?: number | null;
19
+ seperator?: string;
20
+ loading?: boolean;
18
21
  breakLabel?: string;
19
22
  nextLabel?: string;
20
23
  prevLabel?: string;
@@ -2,9 +2,9 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useState } from 'react';
4
4
  import { useBase } from '../../hooks';
5
- import Input from '../Input';
6
5
  import Box from '../Box';
7
6
  import Button from '../Button';
7
+ import Input from '../Input';
8
8
  import SVGIcons from '../svgicons';
9
9
  const Password = forwardRef((props, ref) => {
10
10
  const { ...pops } = props;
@@ -15,4 +15,5 @@ const Password = forwardRef((props, ref) => {
15
15
  const [visible, setVisible] = useState(false);
16
16
  return _jsxs(Box, { style: style, className: `--password flex aic rel`, children: [_jsx(Input, { ref: ref, type: visible ? 'text' : 'password', className: className, ...rest }), _jsx(Button, { tabIndex: -1, onClick: () => setVisible(prev => !prev), className: `--toggle flex aic jcc abs`, children: visible ? SVGIcons.eye : SVGIcons.eyeSlash })] });
17
17
  });
18
+ Password.displayName = `Password`;
18
19
  export default Password;
@@ -2,8 +2,8 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect, useRef } from 'react';
4
4
  import { useBase } from '../../hooks';
5
- import Input from '../Input';
6
5
  import Box from '../Box';
6
+ import Input from '../Input';
7
7
  const PinInput = forwardRef((props, ref) => {
8
8
  const { size, length, mask, ...pops } = props;
9
9
  const inputs = useRef([]);
@@ -39,4 +39,5 @@ const PinInput = forwardRef((props, ref) => {
39
39
  inputs.current[i] = el;
40
40
  }, numeric: true, onChange: handleInput, maxLength: 1, placeholder: `0`, type: mask ? `password` : 'text', ...pops }, `pin-${i}`)) });
41
41
  });
42
+ PinInput.displayName = `PinInput`;
42
43
  export default PinInput;
@@ -1,5 +1,5 @@
1
- import { ProgressHandler } from "./types";
2
1
  import { BoxProps } from "../Box";
2
+ import { ProgressHandler } from "./types";
3
3
  declare const ProgressBar: import("react").ForwardRefExoticComponent<BoxProps & {
4
4
  progress?: number;
5
5
  type?: import("../..").PROGRESS;
@@ -1,7 +1,8 @@
1
+ "use client";
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
2
3
  import { forwardRef, useEffect, useImperativeHandle, useRef } from "react";
3
- import Box from "../Box";
4
4
  import { useBase } from "../../hooks";
5
+ import Box from "../Box";
5
6
  const ProgressBar = forwardRef((props, ref) => {
6
7
  const { progress, type, ...pops } = props;
7
8
  const bar = useRef(null);
@@ -18,4 +19,5 @@ const ProgressBar = forwardRef((props, ref) => {
18
19
  const { className, style, rest } = useBase(pops);
19
20
  return _jsx(Box, { className: `--progress flex rel ${className}`.trim(), style: style, ...rest, children: _jsx(Box, { ref: bar, className: `--bar rel` }) });
20
21
  });
22
+ ProgressBar.displayName = `ProgressBar`;
21
23
  export default ProgressBar;
@@ -1,8 +1,8 @@
1
- import { RadioHandler } from "./types";
2
1
  import { RADIO, Size } from "../../types/enums";
2
+ import { RadioHandler } from "./types";
3
3
  declare const Radio: import("react").ForwardRefExoticComponent<import("../..").ZuzProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, keyof import("../..").ZuzProps> & {
4
4
  type?: RADIO;
5
5
  size?: Size;
6
- onChange?: (checked: boolean, value: string | number | readonly string[]) => void;
6
+ onSwitch?: (checked: boolean, value: string | number | readonly string[]) => void;
7
7
  } & import("react").RefAttributes<RadioHandler>>;
8
8
  export default Radio;
@@ -1,16 +1,19 @@
1
+ "use client";
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import { forwardRef, useRef, useState } from "react";
3
- import Label from "../Label";
4
4
  import { RADIO, Size } from "../../types/enums";
5
- import Input from "../Input";
6
5
  import Box from "../Box";
7
- const Radio = forwardRef((props, ref) => {
8
- const { children, className, name, required, type, value, size, checked: defaultCheck, onChange, ...pops } = props;
6
+ import Input from "../Input";
7
+ import Label from "../Label";
8
+ const Radio = forwardRef((props, _ref) => {
9
+ const { children, className, name, required, type, value, size, checked: defaultCheck, onSwitch, ...pops } = props;
9
10
  const [checked, _setChecked] = useState(defaultCheck || false);
10
11
  const bRef = useRef(null);
11
12
  return _jsxs(Label, { className: `${className} --${(type || RADIO.Default).toLowerCase()} --radio${!type || type == RADIO.Default ? `` : `card`} --${size || Size.Default} flex aic rel`.trim(), ...pops, children: [_jsx(Input, { ...{}, ref: bRef, defaultChecked: checked, value: value || `rd`, type: `radio`, className: `abs`, name: name, required: required || false, onChange: (e) => {
12
- onChange && onChange(e.target.checked, value || `cb`);
13
+ if (onSwitch)
14
+ onSwitch(e.target.checked, value || `cb`);
13
15
  _setChecked(e.target.checked);
14
16
  } }), _jsx(Box, { className: `--dot rel`, children: _jsx(Box, { className: `--rod abs abc` }) }), _jsx(Box, { className: `--value`, children: children })] });
15
17
  });
18
+ Radio.displayName = `Radio`;
16
19
  export default Radio;
@@ -3,7 +3,7 @@ import { RADIO, Size } from "../../types/enums";
3
3
  export type RadioProps = Props<"input"> & {
4
4
  type?: RADIO;
5
5
  size?: Size;
6
- onChange?: (checked: boolean, value: string | number | readonly string[]) => void;
6
+ onSwitch?: (checked: boolean, value: string | number | readonly string[]) => void;
7
7
  };
8
8
  export interface RadioHandler {
9
9
  setChecked: (mode: boolean, triggerChange?: boolean) => void;
@@ -1,5 +1,5 @@
1
- import { InputProps } from '../Input';
2
1
  import { Size } from '../../types/enums';
2
+ import { InputProps } from '../Input';
3
3
  export type SearchProps = InputProps & {
4
4
  onSubmit?: (value: string) => void;
5
5
  onChange?: (value: string) => void;
@@ -2,11 +2,11 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { forwardRef, useEffect, useRef, useState } from 'react';
4
4
  import { useBase } from '../../hooks';
5
- import Input from '../Input';
5
+ import { Size } from '../../types/enums';
6
6
  import Box from '../Box';
7
7
  import Button from '../Button';
8
+ import Input from '../Input';
8
9
  import SVGIcons from '../svgicons';
9
- import { Size } from '../../types/enums';
10
10
  const Search = forwardRef((props, ref) => {
11
11
  const { animate, withStyle, onChange, ...pops } = props;
12
12
  const { style } = useBase(pops);
@@ -34,4 +34,5 @@ const Search = forwardRef((props, ref) => {
34
34
  useEffect(() => { }, []);
35
35
  return _jsxs(Box, { style: style, className: `--search --${props.size || Size.Small} flex aic rel ${searchStyle}`.trim(), children: [_jsx(Input, { ref: innerRef, onChange: handleChange, className: `--${props.size || Size.Small}`, ...pops }), _jsx(Button, { tabIndex: -1, onClick: e => handleSubmit(), className: `--send flex aic jcc abs`, size: props.size || Size.Small, children: query !== `` ? SVGIcons.close : SVGIcons.search })] });
36
36
  });
37
+ Search.displayName = `Search`;
37
38
  export default Search;
@@ -1,6 +1,6 @@
1
- import { Segment } from "./types";
2
- import { BoxProps } from "../Box";
3
1
  import { Size } from "../../types/enums";
2
+ import { BoxProps } from "../Box";
3
+ import { Segment } from "./types";
4
4
  /**
5
5
  * `SelectTabs` component is a segmented control that allows switching between segments.
6
6
  *
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useEffect, useRef, useState } from "react";
3
3
  import { useBase } from "../../hooks";
4
+ import { Size } from "../../types/enums";
4
5
  import Box from "../Box";
5
6
  import SegmentItem from "./item";
6
- import { Size } from "../../types/enums";
7
7
  /**
8
8
  * `SelectTabs` component is a segmented control that allows switching between segments.
9
9
  *
@@ -23,12 +23,11 @@ import { Size } from "../../types/enums";
23
23
  * <SelectTabs selected={1} items={segments} />
24
24
  */
25
25
  const Segmented = forwardRef((props, ref) => {
26
- const { animate, items, selected, size, onSwitch, ...pops } = props;
26
+ const { animate, fx, items, selected, size, onSwitch, ...pops } = props;
27
27
  const [_selected, setSelected] = useState(selected || 0);
28
28
  const { className, style, rest } = useBase(pops);
29
29
  const _tab = useRef(null);
30
30
  const _segmented = useRef(null);
31
- const [mounted, setMounted] = useState(false);
32
31
  /**
33
32
  * Handles selection of a segment.
34
33
  *
@@ -54,9 +53,10 @@ const Segmented = forwardRef((props, ref) => {
54
53
  setSelected(selected);
55
54
  }
56
55
  }, [selected, _selected]);
57
- return _jsxs(Box, { suppressHydrationWarning: true, ref: _segmented, "data-selected": _selected, className: `${className} --segmented --${size || Size.Small} flex aic rel`, style: style, ...rest, children: [_jsx(Box, { ref: _tab, className: `--segment-tab abs` }), items.map((item, i) => _jsx(SegmentItem, { onSelect: handleSelect, selected: _selected == i, meta: {
56
+ return _jsxs(Box, { ref: _segmented, "data-selected": _selected, className: `${className} --segmented --${size || Size.Small} flex aic rel`, style: style, ...rest, children: [_jsx(Box, { ref: _tab, className: `--segment-tab abs` }), items.map((item, i) => _jsx(SegmentItem, { onSelect: handleSelect, selected: _selected == i, meta: {
58
57
  ...item,
59
58
  index: i
60
59
  } }, `segment-${item.label}-${i}`))] });
61
60
  });
61
+ Segmented.displayName = `SelectTabs`;
62
62
  export default Segmented;
@@ -1,3 +1,6 @@
1
1
  import { SegmentItemProps } from "./types";
2
- declare const SegmentItem: ({ onSelect, meta, selected }: SegmentItemProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SegmentItem: {
3
+ ({ onSelect, meta, selected }: SegmentItemProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
3
6
  export default SegmentItem;