@tipp/ui 1.2.13 → 1.2.14

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 (82) hide show
  1. package/dist/atoms/badge.cjs +2 -0
  2. package/dist/atoms/badge.cjs.map +1 -1
  3. package/dist/atoms/badge.d.cts +2 -2
  4. package/dist/atoms/badge.d.ts +2 -2
  5. package/dist/atoms/badge.js +1 -1
  6. package/dist/atoms/drawer.js +2 -2
  7. package/dist/atoms/index.cjs +2 -0
  8. package/dist/atoms/index.cjs.map +1 -1
  9. package/dist/atoms/index.js +27 -27
  10. package/dist/atoms/pagination.js +2 -2
  11. package/dist/chunk-2QDLO3YM.js +97 -0
  12. package/dist/chunk-2QDLO3YM.js.map +1 -0
  13. package/dist/chunk-4BPB2XGG.js +94 -0
  14. package/dist/chunk-4BPB2XGG.js.map +1 -0
  15. package/dist/chunk-4LU6NFEH.js +59 -0
  16. package/dist/chunk-4LU6NFEH.js.map +1 -0
  17. package/dist/chunk-4SMYMKD7.js +59 -0
  18. package/dist/chunk-4SMYMKD7.js.map +1 -0
  19. package/dist/chunk-5T5OBKU6.js +38 -0
  20. package/dist/chunk-5T5OBKU6.js.map +1 -0
  21. package/dist/chunk-AOUTNRVR.js +94 -0
  22. package/dist/chunk-AOUTNRVR.js.map +1 -0
  23. package/dist/chunk-DWRAPSVA.js +94 -0
  24. package/dist/chunk-DWRAPSVA.js.map +1 -0
  25. package/dist/chunk-E2EF6AJK.js +340 -0
  26. package/dist/chunk-E2EF6AJK.js.map +1 -0
  27. package/dist/chunk-EWD4AO5N.js +49 -0
  28. package/dist/chunk-EWD4AO5N.js.map +1 -0
  29. package/dist/chunk-G653JNTD.js +59 -0
  30. package/dist/chunk-G653JNTD.js.map +1 -0
  31. package/dist/chunk-HMLPXWJ6.js +94 -0
  32. package/dist/chunk-HMLPXWJ6.js.map +1 -0
  33. package/dist/chunk-IX7WVKHI.js +59 -0
  34. package/dist/chunk-IX7WVKHI.js.map +1 -0
  35. package/dist/chunk-L3UVJ67X.js +340 -0
  36. package/dist/chunk-L3UVJ67X.js.map +1 -0
  37. package/dist/chunk-LVXTFKVJ.js +49 -0
  38. package/dist/chunk-LVXTFKVJ.js.map +1 -0
  39. package/dist/chunk-NUEMI3QO.js +340 -0
  40. package/dist/chunk-NUEMI3QO.js.map +1 -0
  41. package/dist/chunk-NY6E6TKU.js +94 -0
  42. package/dist/chunk-NY6E6TKU.js.map +1 -0
  43. package/dist/chunk-OJQJLBBK.js +39 -0
  44. package/dist/chunk-OJQJLBBK.js.map +1 -0
  45. package/dist/chunk-P7633BEQ.js +340 -0
  46. package/dist/chunk-P7633BEQ.js.map +1 -0
  47. package/dist/chunk-PT5CZAR3.js +94 -0
  48. package/dist/chunk-PT5CZAR3.js.map +1 -0
  49. package/dist/chunk-QNYKTW7L.js +45 -0
  50. package/dist/chunk-QNYKTW7L.js.map +1 -0
  51. package/dist/chunk-QVQCTPDU.js +130 -0
  52. package/dist/chunk-QVQCTPDU.js.map +1 -0
  53. package/dist/chunk-RXCENPRG.js +38 -0
  54. package/dist/chunk-RXCENPRG.js.map +1 -0
  55. package/dist/chunk-VPHZV3J2.js +340 -0
  56. package/dist/chunk-VPHZV3J2.js.map +1 -0
  57. package/dist/chunk-WZJWP4AC.js +59 -0
  58. package/dist/chunk-WZJWP4AC.js.map +1 -0
  59. package/dist/chunk-Y3L7BYDF.js +169 -0
  60. package/dist/chunk-Y3L7BYDF.js.map +1 -0
  61. package/dist/chunk-YAAL4JEU.js +59 -0
  62. package/dist/chunk-YAAL4JEU.js.map +1 -0
  63. package/dist/chunk-ZC7IMWRE.js +38 -0
  64. package/dist/chunk-ZC7IMWRE.js.map +1 -0
  65. package/dist/chunk-ZUUS4QZE.js +59 -0
  66. package/dist/chunk-ZUUS4QZE.js.map +1 -0
  67. package/dist/index.cjs +2 -0
  68. package/dist/index.cjs.map +1 -1
  69. package/dist/index.js +47 -47
  70. package/dist/molecules/date-picker/index.js +2 -2
  71. package/dist/molecules/expand-table/index.js +17 -17
  72. package/dist/molecules/expand-table/row.js +14 -14
  73. package/dist/molecules/index.cjs +2 -0
  74. package/dist/molecules/index.cjs.map +1 -1
  75. package/dist/molecules/index.js +21 -21
  76. package/dist/molecules/navigation.js +15 -15
  77. package/dist/molecules/stepper.js +2 -2
  78. package/dist/molecules/tag-selector.cjs +2 -0
  79. package/dist/molecules/tag-selector.cjs.map +1 -1
  80. package/dist/molecules/tag-selector.js +15 -15
  81. package/package.json +3 -3
  82. package/src/atoms/badge.tsx +3 -1
@@ -0,0 +1,59 @@
1
+ import {
2
+ ThemeProvider
3
+ } from "./chunk-BVBX6IJ3.js";
4
+ import {
5
+ ToastContainer
6
+ } from "./chunk-RXCENPRG.js";
7
+ import {
8
+ __objRest,
9
+ __spreadProps,
10
+ __spreadValues
11
+ } from "./chunk-N552FDTV.js";
12
+
13
+ // src/atoms/drawer.tsx
14
+ import { useEffect, useRef } from "react";
15
+ import * as Dialog from "@radix-ui/react-dialog";
16
+ import { jsx, jsxs } from "react/jsx-runtime";
17
+ function Root2(props) {
18
+ return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
19
+ }
20
+ function Content2(props) {
21
+ const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
22
+ const containerRef = useRef(null);
23
+ useEffect(() => {
24
+ containerRef.current = document.getElementsByClassName("radix-themes")[0];
25
+ }, []);
26
+ return /* @__PURE__ */ jsx(Dialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
27
+ /* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
28
+ /* @__PURE__ */ jsxs(
29
+ Dialog.Content,
30
+ __spreadProps(__spreadValues({
31
+ className: `DrawerContent ${position} ${className || ""}`
32
+ }, rest), {
33
+ children: [
34
+ /* @__PURE__ */ jsx(ToastContainer, {}),
35
+ children
36
+ ]
37
+ })
38
+ )
39
+ ] }) });
40
+ }
41
+ function Trigger2(props) {
42
+ return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
43
+ }
44
+ var Drawer = {
45
+ Root: Dialog.Root,
46
+ Trigger: Trigger2,
47
+ Content: Content2,
48
+ Close: Dialog.Close,
49
+ Title: Dialog.Title,
50
+ Description: Dialog.Description
51
+ };
52
+
53
+ export {
54
+ Root2 as Root,
55
+ Content2 as Content,
56
+ Trigger2 as Trigger,
57
+ Drawer
58
+ };
59
+ //# sourceMappingURL=chunk-YAAL4JEU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, children, ...rest } = props;\n\n const containerRef = useRef<Element | null>(null);\n\n useEffect(() => {\n containerRef.current = document.getElementsByClassName('radix-themes')[0];\n }, []);\n\n return (\n <Dialog.Portal container={containerRef.current}>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n >\n <ToastContainer />\n {children}\n </Dialog.Content>\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,WAAW,cAAc;AACzC,YAAY,YAAY;AAKf,cAqBD,YArBC;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAA6D,YAArD,aAAW,SAAS,WAAW,SAfzC,IAe+D,IAAT,iBAAS,IAAT,CAA5C,YAAoB,aAAW;AAEvC,QAAM,eAAe,OAAuB,IAAI;AAEhD,YAAU,MAAM;AACd,iBAAa,UAAU,SAAS,uBAAuB,cAAc,EAAE,CAAC;AAAA,EAC1E,GAAG,CAAC,CAAC;AAEL,SACE,oBAAQ,eAAP,EAAc,WAAW,aAAa,SACrC,+BAAC,iBACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD,OAFL;AAAA,QAIC;AAAA,8BAAC,kBAAe;AAAA,UACf;AAAA;AAAA;AAAA,IACH;AAAA,KACF,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
@@ -0,0 +1,38 @@
1
+ import {
2
+ Button
3
+ } from "./chunk-P3YCIJUP.js";
4
+ import {
5
+ __spreadValues
6
+ } from "./chunk-N552FDTV.js";
7
+
8
+ // src/atoms/toast.tsx
9
+ import { Cross1Icon } from "@radix-ui/react-icons";
10
+ import { ToastContainer as ToastifyToastContainer } from "react-toastify";
11
+ import { toast } from "react-toastify";
12
+ import { jsx } from "react/jsx-runtime";
13
+ function CloseButton({ closeToast }) {
14
+ return /* @__PURE__ */ jsx(Button, { color: "gray", onClick: closeToast, variant: "transparent", children: /* @__PURE__ */ jsx(Cross1Icon, {}) });
15
+ }
16
+ function ToastContainer(props) {
17
+ return /* @__PURE__ */ jsx(
18
+ ToastifyToastContainer,
19
+ __spreadValues({
20
+ autoClose: 5e4,
21
+ closeButton: CloseButton,
22
+ closeOnClick: true,
23
+ draggable: true,
24
+ hideProgressBar: true,
25
+ newestOnTop: true,
26
+ pauseOnFocusLoss: true,
27
+ pauseOnHover: true,
28
+ position: "top-center",
29
+ rtl: false
30
+ }, props)
31
+ );
32
+ }
33
+
34
+ export {
35
+ ToastContainer,
36
+ toast
37
+ };
38
+ //# sourceMappingURL=chunk-ZC7IMWRE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/toast.tsx"],"sourcesContent":["import { Cross1Icon } from '@radix-ui/react-icons';\nimport type { Theme, ToastContainerProps, TypeOptions } from 'react-toastify';\nimport { ToastContainer as ToastifyToastContainer } from 'react-toastify';\nimport { Button } from './button';\n\nexport { toast } from 'react-toastify';\n\ninterface CloseButtonProps {\n closeToast: (e: React.MouseEvent<HTMLElement>) => void;\n type: TypeOptions;\n ariaLabel?: string;\n theme: Theme;\n}\nfunction CloseButton({ closeToast }: CloseButtonProps): React.ReactNode {\n return (\n <Button color=\"gray\" onClick={closeToast} variant=\"transparent\">\n <Cross1Icon />\n </Button>\n );\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyToastContainer\n autoClose={50000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"top-center\"\n rtl={false}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,kBAAkB;AAE3B,SAAS,kBAAkB,8BAA8B;AAGzD,SAAS,aAAa;AAWhB;AAHN,SAAS,YAAY,EAAE,WAAW,GAAsC;AACtE,SACE,oBAAC,UAAO,OAAM,QAAO,SAAS,YAAY,SAAQ,eAChD,8BAAC,cAAW,GACd;AAEJ;AAEO,SAAS,eAAe,OAAgD;AAC7E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,aAAa;AAAA,MACb,cAAY;AAAA,MACZ,WAAS;AAAA,MACT,iBAAe;AAAA,MACf,aAAW;AAAA,MACX,kBAAgB;AAAA,MAChB,cAAY;AAAA,MACZ,UAAS;AAAA,MACT,KAAK;AAAA,OACD;AAAA,EACN;AAEJ;","names":[]}
@@ -0,0 +1,59 @@
1
+ import {
2
+ ThemeProvider
3
+ } from "./chunk-BVBX6IJ3.js";
4
+ import {
5
+ ToastContainer
6
+ } from "./chunk-ZC7IMWRE.js";
7
+ import {
8
+ __objRest,
9
+ __spreadProps,
10
+ __spreadValues
11
+ } from "./chunk-N552FDTV.js";
12
+
13
+ // src/atoms/drawer.tsx
14
+ import { useEffect, useRef } from "react";
15
+ import * as Dialog from "@radix-ui/react-dialog";
16
+ import { jsx, jsxs } from "react/jsx-runtime";
17
+ function Root2(props) {
18
+ return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
19
+ }
20
+ function Content2(props) {
21
+ const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
22
+ const containerRef = useRef(null);
23
+ useEffect(() => {
24
+ containerRef.current = document.getElementsByClassName("radix-themes")[0];
25
+ }, []);
26
+ return /* @__PURE__ */ jsx(Dialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
27
+ /* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
28
+ /* @__PURE__ */ jsxs(
29
+ Dialog.Content,
30
+ __spreadProps(__spreadValues({
31
+ className: `DrawerContent ${position} ${className || ""}`
32
+ }, rest), {
33
+ children: [
34
+ /* @__PURE__ */ jsx(ToastContainer, {}),
35
+ children
36
+ ]
37
+ })
38
+ )
39
+ ] }) });
40
+ }
41
+ function Trigger2(props) {
42
+ return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
43
+ }
44
+ var Drawer = {
45
+ Root: Dialog.Root,
46
+ Trigger: Trigger2,
47
+ Content: Content2,
48
+ Close: Dialog.Close,
49
+ Title: Dialog.Title,
50
+ Description: Dialog.Description
51
+ };
52
+
53
+ export {
54
+ Root2 as Root,
55
+ Content2 as Content,
56
+ Trigger2 as Trigger,
57
+ Drawer
58
+ };
59
+ //# sourceMappingURL=chunk-ZUUS4QZE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, children, ...rest } = props;\n\n const containerRef = useRef<Element | null>(null);\n\n useEffect(() => {\n containerRef.current = document.getElementsByClassName('radix-themes')[0];\n }, []);\n\n return (\n <Dialog.Portal container={containerRef.current}>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n >\n <ToastContainer />\n {children}\n </Dialog.Content>\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,WAAW,cAAc;AACzC,YAAY,YAAY;AAKf,cAqBD,YArBC;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAA6D,YAArD,aAAW,SAAS,WAAW,SAfzC,IAe+D,IAAT,iBAAS,IAAT,CAA5C,YAAoB,aAAW;AAEvC,QAAM,eAAe,OAAuB,IAAI;AAEhD,YAAU,MAAM;AACd,iBAAa,UAAU,SAAS,uBAAuB,cAAc,EAAE,CAAC;AAAA,EAC1E,GAAG,CAAC,CAAC;AAEL,SACE,oBAAQ,eAAP,EAAc,WAAW,aAAa,SACrC,+BAAC,iBACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD,OAFL;AAAA,QAIC;AAAA,8BAAC,kBAAe;AAAA,UACf;AAAA;AAAA;AAAA,IACH;AAAA,KACF,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
package/dist/index.cjs CHANGED
@@ -212,6 +212,8 @@ var Badge = (0, import_react2.forwardRef)(
212
212
  switch (size) {
213
213
  case "small":
214
214
  return "1";
215
+ case "medium":
216
+ return "2";
215
217
  case "large":
216
218
  return "3";
217
219
  default: