@kimdw-rtk/ui 0.0.21 → 0.0.23

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 (56) hide show
  1. package/dist/components/Accordion/Accordion.js +2 -2
  2. package/dist/components/Accordion/AccordionContent.js +2 -2
  3. package/dist/components/Accordion/AccordionTrigger.js +2 -2
  4. package/dist/components/Alert/index.js +2 -2
  5. package/dist/components/Box/index.js +2 -2
  6. package/dist/components/Button/index.js +3 -3
  7. package/dist/components/Card/Card.js +2 -2
  8. package/dist/components/Card/CardContent.js +2 -2
  9. package/dist/components/Card/CardInteraction.js +2 -2
  10. package/dist/components/Card/CardThumbnail.js +2 -2
  11. package/dist/components/Chip/Chip.js +2 -2
  12. package/dist/components/Confirm/index.js +2 -2
  13. package/dist/components/Dialog/Dialog.js +2 -2
  14. package/dist/components/Dialog/DialogContent.js +2 -2
  15. package/dist/components/Dialog/DialogFooter.js +2 -2
  16. package/dist/components/Dialog/DialogHeader.js +2 -2
  17. package/dist/components/Navigation/NavigationAside.js +2 -2
  18. package/dist/components/Navigation/NavigationBar.js +2 -2
  19. package/dist/components/Navigation/NavigationContainer.js +2 -2
  20. package/dist/components/Navigation/NavigationDrawer.js +2 -2
  21. package/dist/components/Navigation/NavigationItem.js +2 -2
  22. package/dist/components/Navigation/NavigationLogo.js +2 -2
  23. package/dist/components/Navigation/NavigationMenu.js +2 -2
  24. package/dist/components/Range/Range.js +3 -3
  25. package/dist/components/ScrollArea/ScrollArea.js +2 -2
  26. package/dist/components/Select/Select.js +2 -2
  27. package/dist/components/Select/SelectOption.js +2 -2
  28. package/dist/components/Select/SelectOptionList.js +2 -2
  29. package/dist/components/Select/SelectTrigger.js +2 -2
  30. package/dist/components/Skeleton/index.js +2 -2
  31. package/dist/components/Table/Table.js +2 -2
  32. package/dist/components/Table/TableBody.js +2 -2
  33. package/dist/components/Table/TableCell.js +2 -2
  34. package/dist/components/Table/TableHead.js +2 -2
  35. package/dist/components/Table/TableHeader.js +2 -2
  36. package/dist/components/Table/TableRow.js +2 -2
  37. package/dist/components/Tabs/Tabs.js +2 -2
  38. package/dist/components/Tabs/TabsContent.js +2 -2
  39. package/dist/components/Tabs/TabsList.js +2 -2
  40. package/dist/components/Tabs/TabsTrigger.js +2 -2
  41. package/dist/components/TextField/index.js +2 -2
  42. package/dist/components/Toast/index.js +3 -3
  43. package/dist/components/Typography/index.js +2 -2
  44. package/dist/contexts/UIProvider.js +2 -2
  45. package/dist/hooks/useDialog/index.js +3 -3
  46. package/dist/hooks/useRipple/index.js +2 -2
  47. package/dist/hooks/useToast/ToastContainer.js +2 -2
  48. package/dist/hooks/useToast/ToastProvider.js +3 -3
  49. package/package.json +3 -3
  50. package/dist/_virtual/jsx-runtime.js +0 -5
  51. package/dist/_virtual/jsx-runtime2.js +0 -3
  52. package/dist/_virtual/react-jsx-runtime.development.js +0 -3
  53. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -3
  54. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1315
  55. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -24
  56. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +0 -19
@@ -1,4 +1,4 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef, useContext } from 'react';
3
3
  import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
4
4
  import { TabsContext } from './TabsProvider.js';
@@ -12,7 +12,7 @@ const TabsContent = forwardRef(({ value, className, sx: propSx, ...props }, ref)
12
12
  if (tabsContext.value !== value) {
13
13
  return null;
14
14
  }
15
- return jsxRuntimeExports.jsx("div", { ref: ref, className: clsx(className, sx(propSx)), ...props });
15
+ return jsx("div", { ref: ref, className: clsx(className, sx(propSx)), ...props });
16
16
  });
17
17
  TabsContent.displayName = 'TabsContent';
18
18
 
@@ -1,11 +1,11 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef } from 'react';
3
3
  import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
4
4
  import { container } from './TabsList.css.js';
5
5
  import { sx } from '../../styles/sx.js';
6
6
 
7
7
  const TabsList = forwardRef(({ children, className, sx: propSx, ...props }, ref) => {
8
- return (jsxRuntimeExports.jsx("div", { ref: ref, className: clsx(className, container, sx(propSx)), ...props, children: children }));
8
+ return (jsx("div", { ref: ref, className: clsx(className, container, sx(propSx)), ...props, children: children }));
9
9
  });
10
10
  TabsList.displayName = 'TabsList';
11
11
 
@@ -1,4 +1,4 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef, useContext } from 'react';
3
3
  import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
4
4
  import { TabsContext } from './TabsProvider.js';
@@ -14,7 +14,7 @@ const TabsTrigger = forwardRef(({ children, value, className, sx: propSx, ...pro
14
14
  const handleClick = () => {
15
15
  tabsContext.setValue(value);
16
16
  };
17
- return (jsxRuntimeExports.jsx("button", { ref: ref, className: clsx(className, container({ isSelected }), sx(propSx)), onClick: handleClick, ...props, children: children }));
17
+ return (jsx("button", { ref: ref, className: clsx(className, container({ isSelected }), sx(propSx)), onClick: handleClick, ...props, children: children }));
18
18
  });
19
19
  TabsTrigger.displayName = 'TabsTrigger';
20
20
 
@@ -1,4 +1,4 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef } from 'react';
3
3
  import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
4
4
  import { textField } from './TextField.css.js';
@@ -7,7 +7,7 @@ export { TextField_css as textFieldCss };
7
7
  import { sx } from '../../styles/sx.js';
8
8
 
9
9
  const TextField = forwardRef(({ className, type = 'text', size = 'md', color = 'primary', sx: propSx, ...props }, ref) => {
10
- return (jsxRuntimeExports.jsx("input", { ref: ref, type: type, className: clsx(className, textField({ size, color }), sx(propSx)), ...props }));
10
+ return (jsx("input", { ref: ref, type: type, className: clsx(className, textField({ size, color }), sx(propSx)), ...props }));
11
11
  });
12
12
  TextField.displayName = 'TextField';
13
13
 
@@ -1,4 +1,4 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef } from 'react';
3
3
  import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
4
4
  import { progress, toast } from './Toast.css.js';
@@ -8,9 +8,9 @@ import { Box } from '../Box/index.js';
8
8
  import { sx } from '../../styles/sx.js';
9
9
 
10
10
  const Toast = forwardRef(({ children, color = 'accent', className, duration = 0, sx: propSx, ...props }, ref) => {
11
- return (jsxRuntimeExports.jsxs(Box, { ref: ref, boxShadow: "accent-sm", rounded: true, className: clsx(toast({ color }), className, sx(propSx)), ...props, children: [jsxRuntimeExports.jsx("div", { className: progress({ animation: duration !== 0 }), style: {
11
+ return (jsxs(Box, { ref: ref, boxShadow: "accent-sm", rounded: true, className: clsx(toast({ color }), className, sx(propSx)), ...props, children: [jsx("div", { className: progress({ animation: duration !== 0 }), style: {
12
12
  animationDuration: duration > 0 ? `${duration}ms` : undefined,
13
- } }), jsxRuntimeExports.jsx("span", { style: { position: 'relative' }, children: children })] }));
13
+ } }), jsx("span", { style: { position: 'relative' }, children: children })] }));
14
14
  });
15
15
  Toast.displayName = 'Toast';
16
16
 
@@ -1,4 +1,4 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef } from 'react';
3
3
  import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
4
4
  import { typography } from './Typography.css.js';
@@ -7,7 +7,7 @@ export { Typography_css as typographyCss };
7
7
  import { sprinkles } from '../../styles/sprinkles.css.js';
8
8
 
9
9
  const Typography = forwardRef(({ children, as: Component = 'p', className, color = 'foreground', fontSize = 'md', fontWeight = 'normal', lineHeight, isEllipsis = false, sx, ...props }, ref) => {
10
- return (jsxRuntimeExports.jsx(Component, { ref: ref, className: clsx(typography({ isEllipsis }), sprinkles({ color, fontSize, fontWeight, lineHeight }), sx && sprinkles(sx), className), ...props, children: children }));
10
+ return (jsx(Component, { ref: ref, className: clsx(typography({ isEllipsis }), sprinkles({ color, fontSize, fontWeight, lineHeight }), sx && sprinkles(sx), className), ...props, children: children }));
11
11
  });
12
12
  Typography.displayName = 'Typography';
13
13
 
@@ -1,10 +1,10 @@
1
- import jsxRuntimeExports from '../_virtual/jsx-runtime.js';
1
+ import { jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { OverlayProvider } from '@kimdw-rtk/utils';
3
3
  import * as overlay_css from '../styles/overlay.css.js';
4
4
  import { ToastProvider } from '../hooks/useToast/ToastProvider.js';
5
5
 
6
6
  const UIProvider = ({ children, overlayUnmountOn = 'transitionEnd', }) => {
7
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: jsxRuntimeExports.jsx(OverlayProvider, { className: { ...overlay_css }, unmountOn: overlayUnmountOn, children: jsxRuntimeExports.jsx(ToastProvider, { children: children }) }) }));
7
+ return (jsx(Fragment, { children: jsx(OverlayProvider, { className: { ...overlay_css }, unmountOn: overlayUnmountOn, children: jsx(ToastProvider, { children: children }) }) }));
8
8
  };
9
9
 
10
10
  export { UIProvider };
@@ -1,4 +1,4 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { useRef, useCallback, useMemo } from 'react';
3
3
  import { useOverlay } from '@kimdw-rtk/utils';
4
4
  import { Alert } from '../../components/Alert/index.js';
@@ -9,7 +9,7 @@ const useDialog = () => {
9
9
  const dialogRef = useRef(null);
10
10
  const alert = useCallback((message) => {
11
11
  return new Promise((resolve) => {
12
- push(jsxRuntimeExports.jsx(Alert, { children: message }), { onClose: () => resolve(true) });
12
+ push(jsx(Alert, { children: message }), { onClose: () => resolve(true) });
13
13
  });
14
14
  }, [push]);
15
15
  const confirm = useCallback((message) => {
@@ -22,7 +22,7 @@ const useDialog = () => {
22
22
  resolve(false);
23
23
  dialogRef.current?.close();
24
24
  };
25
- push(jsxRuntimeExports.jsx(Confirm, { ref: dialogRef, onConfirm: handleConfirm, onCancle: handleCancle, children: message }), { onClose: () => resolve(false) });
25
+ push(jsx(Confirm, { ref: dialogRef, onConfirm: handleConfirm, onCancle: handleCancle, children: message }), { onClose: () => resolve(false) });
26
26
  });
27
27
  }, [push]);
28
28
  return useMemo(() => ({ alert, confirm }), [alert, confirm]);
@@ -1,4 +1,4 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { useRef, useEffect, useMemo } from 'react';
3
3
  import { ripple, colorVar } from './ripple.css.js';
4
4
 
@@ -104,7 +104,7 @@ const useRipple = (ref) => {
104
104
  };
105
105
  }, [ref, rippleRef]);
106
106
  return useMemo(() => ({
107
- ripple: (jsxRuntimeExports.jsx("div", { ref: rippleRef, className: ripple({ animation: false }) })),
107
+ ripple: (jsx("div", { ref: rippleRef, className: ripple({ animation: false }) })),
108
108
  }), [rippleRef]);
109
109
  };
110
110
 
@@ -1,8 +1,8 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { container } from './ToastContainer.css.js';
3
3
 
4
4
  const ToastContainer = ({ children }) => {
5
- return jsxRuntimeExports.jsx("div", { className: container, children: children });
5
+ return jsx("div", { className: container, children: children });
6
6
  };
7
7
 
8
8
  export { ToastContainer };
@@ -1,4 +1,4 @@
1
- import jsxRuntimeExports from '../../_virtual/jsx-runtime.js';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { createContext, useState, useRef, useCallback, useMemo } from 'react';
3
3
  import { TransitionGroup, CSSTransition } from '@kimdw-rtk/utils';
4
4
  import { ToastContainer } from './ToastContainer.js';
@@ -35,7 +35,7 @@ const ToastProvider = ({ children, defaultDuration = DEFAULT_TOAST_DURATION, })
35
35
  }
36
36
  toast.onClick(toast.id);
37
37
  };
38
- return (jsxRuntimeExports.jsxs(ToastContext.Provider, { value: useMemo(() => ({ push, remove }), [push, remove]), children: [children, jsxRuntimeExports.jsx(ToastContainer, { children: jsxRuntimeExports.jsx(TransitionGroup, { children: toasts.map((toast) => (jsxRuntimeExports.jsx(CSSTransition, { as: "div", initial: {
38
+ return (jsxs(ToastContext.Provider, { value: useMemo(() => ({ push, remove }), [push, remove]), children: [children, jsx(ToastContainer, { children: jsx(TransitionGroup, { children: toasts.map((toast) => (jsx(CSSTransition, { as: "div", initial: {
39
39
  opacity: 0,
40
40
  transform: 'translateY(1rem)',
41
41
  height: '0',
@@ -43,7 +43,7 @@ const ToastProvider = ({ children, defaultDuration = DEFAULT_TOAST_DURATION, })
43
43
  opacity: 1,
44
44
  transform: 'translateY(0)',
45
45
  height: '3.5rem',
46
- }, exit: { opacity: 0, height: '0' }, duration: 500, style: { display: 'flex', flexDirection: 'column-reverse' }, children: jsxRuntimeExports.jsx(Toast, { color: toast.color, duration: toast.autoClose ? toast.duration : 0, onClick: () => handleToastClick(toast), children: toast.message }) }, toast.id))) }) })] }));
46
+ }, exit: { opacity: 0, height: '0' }, duration: 500, style: { display: 'flex', flexDirection: 'column-reverse' }, children: jsx(Toast, { color: toast.color, duration: toast.autoClose ? toast.duration : 0, onClick: () => handleToastClick(toast), children: toast.message }) }, toast.id))) }) })] }));
47
47
  };
48
48
 
49
49
  export { ToastContext, ToastProvider };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@kimdw-rtk/ui",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "private": false,
5
5
  "type": "module",
6
- "main": "./dist/index.mjs",
6
+ "main": "./dist/index.js",
7
7
  "sideEffects": false,
8
8
  "files": [
9
9
  "dist",
@@ -20,7 +20,7 @@
20
20
  "peerDependencies": {
21
21
  "react": "^18.0.0 || ^19.0.0",
22
22
  "react-dom": "^18.0.0 || ^19.0.0",
23
- "@kimdw-rtk/utils": "0.0.20"
23
+ "@kimdw-rtk/utils": "0.0.21"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@babel/preset-env": "^7.26.9",
@@ -1,5 +0,0 @@
1
- import { __require as requireJsxRuntime } from '../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js';
2
-
3
- var jsxRuntimeExports = /*@__PURE__*/ requireJsxRuntime();
4
-
5
- export { jsxRuntimeExports as default };
@@ -1,3 +0,0 @@
1
- var jsxRuntime = {exports: {}};
2
-
3
- export { jsxRuntime as __module };
@@ -1,3 +0,0 @@
1
- var reactJsxRuntime_development = {};
2
-
3
- export { reactJsxRuntime_development as __exports };
@@ -1,3 +0,0 @@
1
- var reactJsxRuntime_production_min = {};
2
-
3
- export { reactJsxRuntime_production_min as __exports };