@jbpark/ui-kit 1.1.6 → 1.1.7

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/Menu.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as findKey, i as MenuProps, n as Menu, r as MenuItem, t as ClickEventHandler } from "./index-B9mWYXv2.mjs";
1
+ import { a as findKey, i as MenuProps, n as Menu, r as MenuItem, t as ClickEventHandler } from "./index-BNeH6gYs.mjs";
2
2
  export { ClickEventHandler, MenuItem, MenuProps, Menu as default, findKey };
package/dist/Menu.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { l as Menu_default, u as findKey } from "./src-DsjrAVBb.mjs";
3
+ import { l as Menu_default, u as findKey } from "./src-DBVgtbBS.mjs";
4
4
  import "./utils-DEenfsJ-.mjs";
5
5
  import "./Typography-LYvEW-c8.mjs";
6
6
  import "./Reveals-BpnYZJUk.mjs";
@@ -1,2 +1,2 @@
1
- import { a as Reveals, i as Props, n as DELAY, o as Item, r as DURATION, s as ItemProps, t as CASCADE } from "./index-DS-PGSIg.mjs";
1
+ import { a as Reveals, i as Props, n as DELAY, o as Item, r as DURATION, s as ItemProps, t as CASCADE } from "./index-CvYPwbSk.mjs";
2
2
  export { CASCADE, DELAY, DURATION, Item, ItemProps, Props as RevealsProps, Reveals as default };
@@ -1,2 +1,2 @@
1
- import { a as Paragraph, i as Text, n as TypographyProps, o as Link, r as Title, t as Typography } from "./index-BqaluEQ4.mjs";
1
+ import { a as Paragraph, i as Text, n as TypographyProps, o as Link, r as Title, t as Typography } from "./index-DP36DulT.mjs";
2
2
  export { Link, Paragraph, Text, Title, TypographyProps, Typography as default };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/molecules/Menu/index.d.ts
4
4
  interface MenuItem {
@@ -54,6 +54,6 @@ declare const Menu: ({
54
54
  inlineOffset,
55
55
  onClick,
56
56
  ...props
57
- }: MenuProps) => react_jsx_runtime4.JSX.Element;
57
+ }: MenuProps) => react_jsx_runtime0.JSX.Element;
58
58
  //#endregion
59
59
  export { findKey as a, MenuProps as i, Menu as n, MenuItem as r, ClickEventHandler as t };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
2
  import { MotionProps } from "motion/react";
3
3
 
4
4
  //#region src/components/molecules/Reveals/Item/index.d.ts
@@ -54,7 +54,7 @@ declare const Item: ({
54
54
  transition,
55
55
  className,
56
56
  ...props
57
- }: ItemProps) => react_jsx_runtime11.JSX.Element;
57
+ }: ItemProps) => react_jsx_runtime7.JSX.Element;
58
58
  //#endregion
59
59
  //#region src/components/molecules/Reveals/index.d.ts
60
60
  interface Props extends React.HTMLAttributes<HTMLDivElement>, ItemProps {
@@ -79,7 +79,7 @@ declare const Reveals: {
79
79
  duration,
80
80
  delay,
81
81
  ...props
82
- }: Props): react_jsx_runtime11.JSX.Element;
82
+ }: Props): react_jsx_runtime7.JSX.Element;
83
83
  Item: ({
84
84
  effect,
85
85
  children,
@@ -91,7 +91,7 @@ declare const Reveals: {
91
91
  transition,
92
92
  className,
93
93
  ...props
94
- }: ItemProps) => react_jsx_runtime11.JSX.Element;
94
+ }: ItemProps) => react_jsx_runtime7.JSX.Element;
95
95
  };
96
96
  //#endregion
97
97
  export { Reveals as a, Props as i, DELAY as n, Item as o, DURATION as r, ItemProps as s, CASCADE as t };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/atoms/Typography/Link/index.d.ts
4
4
  interface Props$3 extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
@@ -9,7 +9,7 @@ declare const Link: ({
9
9
  className,
10
10
  level,
11
11
  ...props
12
- }: Props$3) => react_jsx_runtime8.JSX.Element;
12
+ }: Props$3) => react_jsx_runtime9.JSX.Element;
13
13
  //#endregion
14
14
  //#region src/components/atoms/Typography/Paragraph/index.d.ts
15
15
  interface Props$2 extends TypographyProps {}
@@ -18,7 +18,7 @@ declare const Paragraph: ({
18
18
  className,
19
19
  level,
20
20
  ...props
21
- }: Props$2) => react_jsx_runtime8.JSX.Element;
21
+ }: Props$2) => react_jsx_runtime9.JSX.Element;
22
22
  //#endregion
23
23
  //#region src/components/atoms/Typography/Text/index.d.ts
24
24
  interface Props$1 extends TypographyProps {
@@ -32,7 +32,7 @@ declare const Text: ({
32
32
  className,
33
33
  level,
34
34
  ...props
35
- }: Props$1) => react_jsx_runtime8.JSX.Element;
35
+ }: Props$1) => react_jsx_runtime9.JSX.Element;
36
36
  //#endregion
37
37
  //#region src/components/atoms/Typography/Title/index.d.ts
38
38
  interface Props extends TypographyProps {}
@@ -41,7 +41,7 @@ declare const Title: ({
41
41
  level,
42
42
  className,
43
43
  ...props
44
- }: Props) => react_jsx_runtime8.JSX.Element;
44
+ }: Props) => react_jsx_runtime9.JSX.Element;
45
45
  //#endregion
46
46
  //#region src/components/atoms/Typography/index.d.ts
47
47
  interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
@@ -51,19 +51,19 @@ declare const Typography: {
51
51
  ({
52
52
  children,
53
53
  ...props
54
- }: TypographyProps): react_jsx_runtime8.JSX.Element;
54
+ }: TypographyProps): react_jsx_runtime9.JSX.Element;
55
55
  Link: ({
56
56
  children,
57
57
  className,
58
58
  level,
59
59
  ...props
60
- }: Props$3) => react_jsx_runtime8.JSX.Element;
60
+ }: Props$3) => react_jsx_runtime9.JSX.Element;
61
61
  Paragraph: ({
62
62
  children,
63
63
  className,
64
64
  level,
65
65
  ...props
66
- }: Props$2) => react_jsx_runtime8.JSX.Element;
66
+ }: Props$2) => react_jsx_runtime9.JSX.Element;
67
67
  Text: ({
68
68
  children,
69
69
  underline,
@@ -71,13 +71,13 @@ declare const Typography: {
71
71
  className,
72
72
  level,
73
73
  ...props
74
- }: Props$1) => react_jsx_runtime8.JSX.Element;
74
+ }: Props$1) => react_jsx_runtime9.JSX.Element;
75
75
  Title: ({
76
76
  children,
77
77
  level,
78
78
  className,
79
79
  ...props
80
- }: Props) => react_jsx_runtime8.JSX.Element;
80
+ }: Props) => react_jsx_runtime9.JSX.Element;
81
81
  };
82
82
  //#endregion
83
83
  export { Paragraph as a, Text as i, TypographyProps as n, Link as o, Title as r, Typography as t };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as Typography } from "./index-BqaluEQ4.mjs";
2
- import { i as MenuProps, n as Menu } from "./index-B9mWYXv2.mjs";
3
- import { a as Reveals } from "./index-DS-PGSIg.mjs";
1
+ import { t as Typography } from "./index-DP36DulT.mjs";
2
+ import { i as MenuProps, n as Menu } from "./index-BNeH6gYs.mjs";
3
+ import { a as Reveals } from "./index-CvYPwbSk.mjs";
4
4
  import * as React$2 from "react";
5
5
  import React$1, { ChangeEvent, HTMLAttributes, InputHTMLAttributes, MouseEvent } from "react";
6
6
  import { VariantProps } from "class-variance-authority";
@@ -198,7 +198,7 @@ declare const Skeleton: {
198
198
  height,
199
199
  children,
200
200
  ...props
201
- }: Props$14): string | number | bigint | boolean | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> | react_jsx_runtime19.JSX.Element | null | undefined;
201
+ }: Props$14): string | number | bigint | boolean | react_jsx_runtime19.JSX.Element | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> | null | undefined;
202
202
  Button: ({
203
203
  className,
204
204
  ...props
@@ -455,7 +455,7 @@ declare const List: {
455
455
  classNames,
456
456
  renderItem,
457
457
  ...props
458
- }: Props$4<T>): string | number | bigint | true | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime19.JSX.Element;
458
+ }: Props$4<T>): string | number | bigint | true | react_jsx_runtime19.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined>;
459
459
  Item: ({
460
460
  children,
461
461
  className,
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as Input_default, a as Drawer_default, b as Button_default, c as Dropdown_default, d as Collapse_default, f as Card_default, g as Progress_default, h as Skeleton_default, i as List_default, l as Menu_default, m as Spin_default, n as Swiper_default, o as Space_default, p as Switch_default, r as Modal_default, s as Marquees_default, t as Layout_default, v as FloatButton_default, y as Checkbox_default } from "./src-DsjrAVBb.mjs";
1
+ import { _ as Input_default, a as Drawer_default, b as Button_default, c as Dropdown_default, d as Collapse_default, f as Card_default, g as Progress_default, h as Skeleton_default, i as List_default, l as Menu_default, m as Spin_default, n as Swiper_default, o as Space_default, p as Switch_default, r as Modal_default, s as Marquees_default, t as Layout_default, v as FloatButton_default, y as Checkbox_default } from "./src-DBVgtbBS.mjs";
2
2
  import "./utils-DEenfsJ-.mjs";
3
3
  import { t as Typography_default } from "./Typography-LYvEW-c8.mjs";
4
4
  import { i as Reveals_default } from "./Reveals-BpnYZJUk.mjs";
@@ -173,7 +173,7 @@
173
173
  } /* yellow-500 */
174
174
  [data-slot='button'][data-color='volcano'] {
175
175
  --btn-bg: #ea580c;
176
- } /* orange-600 느낌 */
176
+ } /* orange-600 */
177
177
  [data-slot='button'][data-color='geekblue'] {
178
178
  --btn-bg: #6366f1;
179
179
  } /* indigo-500 */
@@ -4597,6 +4597,7 @@ const Marquees = ({ className, items, speed, pauseOnHover = true, autoFill = tru
4597
4597
  const [pause, setPause] = useState(false);
4598
4598
  const throttledWidth = useThrottle(width, 200);
4599
4599
  const { size } = useResponsiveSize();
4600
+ const { size: innerSize, ref: innerRef } = useResponsiveSize();
4600
4601
  const hoverEvents = pauseOnHover ? {
4601
4602
  onMouseEnter: () => {
4602
4603
  setPause(true);
@@ -4605,6 +4606,7 @@ const Marquees = ({ className, items, speed, pauseOnHover = true, autoFill = tru
4605
4606
  setPause(false);
4606
4607
  }
4607
4608
  } : {};
4609
+ const maxWidth = typeof throttledWidth === "string" ? "100%" : Math.min(throttledWidth, innerSize.width);
4608
4610
  useEffect(() => {
4609
4611
  if (!size.width) return;
4610
4612
  setWidth(size.width);
@@ -4619,12 +4621,13 @@ const Marquees = ({ className, items, speed, pauseOnHover = true, autoFill = tru
4619
4621
  };
4620
4622
  }, []);
4621
4623
  return /* @__PURE__ */ jsx("div", {
4624
+ ref: innerRef,
4622
4625
  className: cn(className),
4623
4626
  ...hoverEvents,
4624
4627
  ...props,
4625
4628
  children: /* @__PURE__ */ jsx("div", {
4626
4629
  className: cn("flex flex-col gap-y-5", "overflow-hidden", "whitespace-nowrap", "bg-inherit"),
4627
- style: { width: throttledWidth },
4630
+ style: { width: maxWidth },
4628
4631
  children: items?.map(({ children, key: itemKey, ...item }, key) => /* @__PURE__ */ jsx(Item_default$1, {
4629
4632
  width: throttledWidth,
4630
4633
  pause,
@@ -4996,7 +4999,7 @@ const createModalRoot = (container) => {
4996
4999
  }
4997
5000
  return rootEl;
4998
5001
  };
4999
- const Modal = ({ open = false, maskClosable = false, closable = false, closeIcon, className, classNames, style, title, footer, container, children, okText = "확인", cancelText = "취소", onOk, onCancel, ...props }) => {
5002
+ const Modal = ({ open = false, maskClosable = false, closable = false, closeIcon, className, classNames, style, title, footer, container, children, okText = "OK", cancelText = "Cancel", onOk, onCancel, ...props }) => {
5000
5003
  if (typeof window === "undefined") return null;
5001
5004
  return /* @__PURE__ */ jsx(Dialog, {
5002
5005
  open,
@@ -5046,7 +5049,7 @@ const STATIC_ICONS = {
5046
5049
  warning: /* @__PURE__ */ jsx(OctagonAlert, { className: "text-yellow-400" }),
5047
5050
  confirm: /* @__PURE__ */ jsx(CircleQuestionMark, {})
5048
5051
  };
5049
- const StaticModal = ({ type, title, content, okText = "확인", cancelText = "취소", id, container, icon, onOk, onCancel, ...props }) => {
5052
+ const StaticModal = ({ type, title, content, okText = "OK", cancelText = "Cancel", id, container, icon, onOk, onCancel, ...props }) => {
5050
5053
  const [open, setOpen] = useState(true);
5051
5054
  const closeModal = (callback) => {
5052
5055
  callback?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbpark/ui-kit",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Modern React UI component library built with TypeScript, Tailwind CSS, and Radix UI. Featuring atoms, molecules, organisms and layout templates for building beautiful interfaces.",
5
5
  "keywords": [
6
6
  "react",
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@gsap/react": "^2.1.2",
86
- "@jbpark/use-hooks": "^1.0.0",
86
+ "@jbpark/use-hooks": "^2.0.2",
87
87
  "@radix-ui/react-accordion": "^1.2.12",
88
88
  "@radix-ui/react-checkbox": "^1.3.3",
89
89
  "@radix-ui/react-dialog": "^1.1.15",