@tipp/ui 1.2.14 → 1.2.16

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 (141) hide show
  1. package/dist/atoms/dialog.cjs +24 -58
  2. package/dist/atoms/dialog.cjs.map +1 -1
  3. package/dist/atoms/dialog.js +1 -3
  4. package/dist/atoms/drawer.cjs +7 -50
  5. package/dist/atoms/drawer.cjs.map +1 -1
  6. package/dist/atoms/drawer.d.cts +1 -1
  7. package/dist/atoms/drawer.d.ts +1 -1
  8. package/dist/atoms/drawer.js +1 -4
  9. package/dist/atoms/field-error-wrapper.js +2 -2
  10. package/dist/atoms/index.cjs +114 -131
  11. package/dist/atoms/index.cjs.map +1 -1
  12. package/dist/atoms/index.js +57 -58
  13. package/dist/atoms/pagination.js +2 -2
  14. package/dist/atoms/toast.cjs +6 -9
  15. package/dist/atoms/toast.cjs.map +1 -1
  16. package/dist/atoms/toast.js +1 -2
  17. package/dist/chunk-2FIAJ3FS.js +59 -0
  18. package/dist/chunk-2FIAJ3FS.js.map +1 -0
  19. package/dist/chunk-33YXJNZC.js +39 -0
  20. package/dist/chunk-33YXJNZC.js.map +1 -0
  21. package/dist/chunk-3PKH6B5Q.js +90 -0
  22. package/dist/chunk-3PKH6B5Q.js.map +1 -0
  23. package/dist/chunk-3QK6FAST.js +88 -0
  24. package/dist/chunk-3QK6FAST.js.map +1 -0
  25. package/dist/chunk-6IUPU7DC.js +44 -0
  26. package/dist/chunk-6IUPU7DC.js.map +1 -0
  27. package/dist/chunk-6MWBFGPV.js +44 -0
  28. package/dist/chunk-6MWBFGPV.js.map +1 -0
  29. package/dist/chunk-7JIZ5JRE.js +97 -0
  30. package/dist/chunk-7JIZ5JRE.js.map +1 -0
  31. package/dist/chunk-7MGIYERY.js +340 -0
  32. package/dist/chunk-7MGIYERY.js.map +1 -0
  33. package/dist/chunk-7MGKSZWD.js +59 -0
  34. package/dist/chunk-7MGKSZWD.js.map +1 -0
  35. package/dist/chunk-7NEEBOE5.js +59 -0
  36. package/dist/chunk-7NEEBOE5.js.map +1 -0
  37. package/dist/chunk-7TLF23E7.js +50 -0
  38. package/dist/chunk-7TLF23E7.js.map +1 -0
  39. package/dist/chunk-AAAQKCFX.js +39 -0
  40. package/dist/chunk-AAAQKCFX.js.map +1 -0
  41. package/dist/chunk-AOY2722L.js +43 -0
  42. package/dist/chunk-AOY2722L.js.map +1 -0
  43. package/dist/chunk-CA3KCVF3.js +44 -0
  44. package/dist/chunk-CA3KCVF3.js.map +1 -0
  45. package/dist/chunk-EBIISCYP.js +59 -0
  46. package/dist/chunk-EBIISCYP.js.map +1 -0
  47. package/dist/chunk-EYP37NAX.js +39 -0
  48. package/dist/chunk-EYP37NAX.js.map +1 -0
  49. package/dist/chunk-FLPWMNPQ.js +340 -0
  50. package/dist/chunk-FLPWMNPQ.js.map +1 -0
  51. package/dist/chunk-FYQHXVVC.js +39 -0
  52. package/dist/chunk-FYQHXVVC.js.map +1 -0
  53. package/dist/chunk-G7BR6KSX.js +130 -0
  54. package/dist/chunk-G7BR6KSX.js.map +1 -0
  55. package/dist/chunk-GXID5CO5.js +92 -0
  56. package/dist/chunk-GXID5CO5.js.map +1 -0
  57. package/dist/chunk-HDIMW26M.js +40 -0
  58. package/dist/chunk-HDIMW26M.js.map +1 -0
  59. package/dist/chunk-HJQQMAUB.js +50 -0
  60. package/dist/chunk-HJQQMAUB.js.map +1 -0
  61. package/dist/chunk-HWH4V6J2.js +39 -0
  62. package/dist/chunk-HWH4V6J2.js.map +1 -0
  63. package/dist/chunk-HWJLK6WM.js +39 -0
  64. package/dist/chunk-HWJLK6WM.js.map +1 -0
  65. package/dist/chunk-I2PIGNYP.js +97 -0
  66. package/dist/chunk-I2PIGNYP.js.map +1 -0
  67. package/dist/chunk-J4DYXLNJ.js +88 -0
  68. package/dist/chunk-J4DYXLNJ.js.map +1 -0
  69. package/dist/chunk-JGEN42KT.js +35 -0
  70. package/dist/chunk-JGEN42KT.js.map +1 -0
  71. package/dist/chunk-KK5BCWBR.js +42 -0
  72. package/dist/chunk-KK5BCWBR.js.map +1 -0
  73. package/dist/chunk-KLOQQGZ3.js +42 -0
  74. package/dist/chunk-KLOQQGZ3.js.map +1 -0
  75. package/dist/chunk-KVGCDBJ4.js +42 -0
  76. package/dist/chunk-KVGCDBJ4.js.map +1 -0
  77. package/dist/chunk-LS64FVRE.js +59 -0
  78. package/dist/chunk-LS64FVRE.js.map +1 -0
  79. package/dist/chunk-MFVWAA4Y.js +56 -0
  80. package/dist/chunk-MFVWAA4Y.js.map +1 -0
  81. package/dist/chunk-MKYNSWMI.js +340 -0
  82. package/dist/chunk-MKYNSWMI.js.map +1 -0
  83. package/dist/chunk-NJTNP47L.js +340 -0
  84. package/dist/chunk-NJTNP47L.js.map +1 -0
  85. package/dist/chunk-P7NBEL7J.js +88 -0
  86. package/dist/chunk-P7NBEL7J.js.map +1 -0
  87. package/dist/chunk-PLXOVGG4.js +39 -0
  88. package/dist/chunk-PLXOVGG4.js.map +1 -0
  89. package/dist/chunk-PXABCUAT.js +44 -0
  90. package/dist/chunk-PXABCUAT.js.map +1 -0
  91. package/dist/chunk-SSI6JRBA.js +92 -0
  92. package/dist/chunk-SSI6JRBA.js.map +1 -0
  93. package/dist/chunk-T2DBM2OA.js +59 -0
  94. package/dist/chunk-T2DBM2OA.js.map +1 -0
  95. package/dist/chunk-TAU5LFOR.js +39 -0
  96. package/dist/chunk-TAU5LFOR.js.map +1 -0
  97. package/dist/chunk-UFW4DFY5.js +39 -0
  98. package/dist/chunk-UFW4DFY5.js.map +1 -0
  99. package/dist/chunk-US7J5XUZ.js +36 -0
  100. package/dist/chunk-US7J5XUZ.js.map +1 -0
  101. package/dist/chunk-X2VREBVY.js +39 -0
  102. package/dist/chunk-X2VREBVY.js.map +1 -0
  103. package/dist/chunk-X55DKUZS.js +39 -0
  104. package/dist/chunk-X55DKUZS.js.map +1 -0
  105. package/dist/chunk-XFPO6ULS.js +39 -0
  106. package/dist/chunk-XFPO6ULS.js.map +1 -0
  107. package/dist/chunk-XKOYSFH4.js +43 -0
  108. package/dist/chunk-XKOYSFH4.js.map +1 -0
  109. package/dist/chunk-XXKNNYIJ.js +59 -0
  110. package/dist/chunk-XXKNNYIJ.js.map +1 -0
  111. package/dist/chunk-YA3PXLPU.js +53 -0
  112. package/dist/chunk-YA3PXLPU.js.map +1 -0
  113. package/dist/chunk-YESWEUM2.js +1 -0
  114. package/dist/chunk-YESWEUM2.js.map +1 -0
  115. package/dist/chunk-YILB2DTL.js +39 -0
  116. package/dist/chunk-YILB2DTL.js.map +1 -0
  117. package/dist/chunk-YNVFLDKB.js +92 -0
  118. package/dist/chunk-YNVFLDKB.js.map +1 -0
  119. package/dist/chunk-YSBOFKXT.js +39 -0
  120. package/dist/chunk-YSBOFKXT.js.map +1 -0
  121. package/dist/chunk-YTYGMU6L.js +169 -0
  122. package/dist/chunk-YTYGMU6L.js.map +1 -0
  123. package/dist/chunk-ZYNW3VYG.js +53 -0
  124. package/dist/chunk-ZYNW3VYG.js.map +1 -0
  125. package/dist/index.cjs +242 -252
  126. package/dist/index.cjs.map +1 -1
  127. package/dist/index.css +67 -38
  128. package/dist/index.css.map +1 -1
  129. package/dist/index.js +71 -71
  130. package/dist/molecules/expand-table/index.js +27 -28
  131. package/dist/molecules/expand-table/row.js +26 -27
  132. package/dist/molecules/index.cjs +24 -24
  133. package/dist/molecules/index.cjs.map +1 -1
  134. package/dist/molecules/index.js +30 -31
  135. package/dist/molecules/navigation.js +27 -28
  136. package/dist/molecules/stepper.js +3 -3
  137. package/dist/molecules/tag-selector.js +27 -28
  138. package/package.json +3 -3
  139. package/src/atoms/dialog.tsx +0 -2
  140. package/src/atoms/drawer.tsx +8 -14
  141. package/src/atoms/toast.tsx +11 -18
@@ -63,8 +63,8 @@ __export(dialog_exports, {
63
63
  });
64
64
  module.exports = __toCommonJS(dialog_exports);
65
65
  var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
66
- var import_react_icons2 = require("@radix-ui/react-icons");
67
- var import_themes3 = require("@radix-ui/themes");
66
+ var import_react_icons = require("@radix-ui/react-icons");
67
+ var import_themes2 = require("@radix-ui/themes");
68
68
  var import_react2 = require("react");
69
69
 
70
70
  // src/atoms/button.tsx
@@ -112,39 +112,8 @@ var Button = (0, import_react.forwardRef)(
112
112
  );
113
113
  Button.displayName = "Button";
114
114
 
115
- // src/atoms/toast.tsx
116
- var import_react_icons = require("@radix-ui/react-icons");
117
- var import_react_toastify = require("react-toastify");
118
-
119
- // src/atoms/icon-button.tsx
120
- var import_themes2 = require("@radix-ui/themes");
121
-
122
- // src/atoms/toast.tsx
123
- var import_react_toastify2 = require("react-toastify");
124
- var import_jsx_runtime2 = require("react/jsx-runtime");
125
- function CloseButton({ closeToast }) {
126
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes2.IconButton, { color: "gray", onClick: closeToast, variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_icons.Cross1Icon, {}) });
127
- }
128
- function ToastContainer(props) {
129
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
130
- import_react_toastify.ToastContainer,
131
- __spreadValues({
132
- autoClose: 5e3,
133
- closeButton: CloseButton,
134
- closeOnClick: true,
135
- draggable: true,
136
- hideProgressBar: true,
137
- newestOnTop: true,
138
- pauseOnFocusLoss: true,
139
- pauseOnHover: true,
140
- position: "bottom-right",
141
- rtl: false
142
- }, props)
143
- );
144
- }
145
-
146
115
  // src/atoms/dialog.tsx
147
- var import_jsx_runtime3 = require("react/jsx-runtime");
116
+ var import_jsx_runtime2 = require("react/jsx-runtime");
148
117
  function Content2(props) {
149
118
  const _a = props, {
150
119
  children,
@@ -169,28 +138,25 @@ function Content2(props) {
169
138
  (0, import_react2.useEffect)(() => {
170
139
  containerRef.current = document.getElementsByClassName("radix-themes")[0];
171
140
  }, []);
172
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
173
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
174
- RadixDialog.Content,
175
- __spreadProps(__spreadValues({
176
- className: "DialogContent",
177
- style: __spreadValues({
178
- width,
179
- maxWidth,
180
- minWidth,
181
- maxHeight,
182
- height,
183
- minHeight
184
- }, style)
185
- }, rest), {
186
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_themes3.Flex, { direction: "column", style: { position: "relative" }, children: [
187
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Button, { color: "gray", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_icons2.Cross1Icon, { height: "18px", width: "18px" }) }) }),
188
- children
189
- ] })
190
- })
191
- ),
192
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ToastContainer, {})
193
- ] }) });
141
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadixDialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
142
+ RadixDialog.Content,
143
+ __spreadProps(__spreadValues({
144
+ className: "DialogContent",
145
+ style: __spreadValues({
146
+ width,
147
+ maxWidth,
148
+ minWidth,
149
+ maxHeight,
150
+ height,
151
+ minHeight
152
+ }, style)
153
+ }, rest), {
154
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_themes2.Flex, { direction: "column", style: { position: "relative" }, children: [
155
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Button, { color: "gray", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_icons.Cross1Icon, { height: "18px", width: "18px" }) }) }),
156
+ children
157
+ ] })
158
+ })
159
+ ) }) });
194
160
  }
195
161
  function Close2(_a) {
196
162
  var _b = _a, {
@@ -198,7 +164,7 @@ function Close2(_a) {
198
164
  } = _b, rest = __objRest(_b, [
199
165
  "children"
200
166
  ]);
201
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
167
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
202
168
  }
203
169
  function Trigger2(_a) {
204
170
  var _b = _a, {
@@ -206,7 +172,7 @@ function Trigger2(_a) {
206
172
  } = _b, rest = __objRest(_b, [
207
173
  "children"
208
174
  ]);
209
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
175
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
210
176
  }
211
177
  var Dialog = {
212
178
  Root: RadixDialog.Root,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/atoms/dialog.tsx","../../src/atoms/button.tsx","../../src/atoms/toast.tsx","../../src/atoms/icon-button.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex } from '@radix-ui/themes';\nimport { useEffect, useRef } from 'react';\nimport { Button } from './button';\nimport { ToastContainer } from './toast';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...rest\n } = props;\n const containerRef = useRef<Element | null>(null);\n\n useEffect(() => {\n containerRef.current = document.getElementsByClassName('radix-themes')[0];\n }, []);\n\n return (\n <RadixDialog.Portal container={containerRef.current}>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className=\"DialogContent\"\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex direction=\"column\" style={{ position: 'relative' }}>\n <RadixDialog.Close asChild className=\"DialogClose\">\n <Button color=\"gray\" variant=\"transparent\">\n <Cross1Icon height=\"18px\" width=\"18px\" />\n </Button>\n </RadixDialog.Close>\n {children}\n </Flex>\n </RadixDialog.Content>\n <ToastContainer />\n </RadixDialog.Overlay>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n","import {\n Button as RadixButton,\n type ButtonProps as RadixButtonProps,\n} from '@radix-ui/themes';\nimport React, { forwardRef, useMemo } from 'react';\n\nexport type ButtonProps = Omit<RadixButtonProps, 'size' | 'variant'> & {\n size?: 'small' | 'medium' | 'large';\n variant?: RadixButtonProps['variant'] | 'transparent';\n};\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactElement => {\n const { size, style, variant, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n default:\n return '2';\n }\n }, [size]);\n\n const mergedStyle = useMemo<ButtonProps['style']>(() => {\n const baseStyle = {\n background: variant === 'transparent' ? 'transparent' : undefined,\n fontWeight: 400,\n };\n return { ...baseStyle, ...style };\n }, [style, variant]);\n\n const radixVariant = useMemo(() => {\n if (variant === 'transparent') return 'ghost';\n return variant;\n }, [variant]);\n\n return (\n <RadixButton\n style={mergedStyle}\n variant={radixVariant}\n {...restProps}\n ref={ref}\n size={radixSize}\n />\n );\n }\n);\n\nButton.displayName = 'Button';\n","import { Cross1Icon } from '@radix-ui/react-icons';\nimport type { Theme, ToastContainerProps, TypeOptions } from 'react-toastify';\nimport { ToastContainer as ToastifyToastContainer } from 'react-toastify';\nimport { IconButton } from './icon-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 <IconButton color=\"gray\" onClick={closeToast} variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n );\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyToastContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n {...props}\n />\n );\n}\n","export { IconButton, type IconButtonProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B;AAC7B,IAAAA,sBAA2B;AAC3B,IAAAC,iBAAqB;AACrB,IAAAC,gBAAkC;;;ACHlC,oBAGO;AACP,mBAA2C;AAsCrC;AA/BC,IAAM,aAAS;AAAA,EACpB,CAAC,OAAO,QAA4B;AAClC,UAA+C,YAAvC,QAAM,OAAO,QAbzB,IAamD,IAAd,sBAAc,IAAd,CAAzB,QAAM,SA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,qBAAZ,+BAAoB,SAAO,QAAK,OAAhC,EACE,WACH;AAEJ;AAEO,IAAM,SAAS;AAAA,EACpB,MAAkB;AAAA,EAClB,SAAAA;AAAA,EACA,SAAAF;AAAA,EACA,OAAAC;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["import_react_icons","import_themes","import_react","RadixButton","import_themes","import_react_toastify","import_jsx_runtime","ToastifyToastContainer","import_jsx_runtime","Content","Close","Trigger"]}
1
+ {"version":3,"sources":["../../src/atoms/dialog.tsx","../../src/atoms/button.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex } from '@radix-ui/themes';\nimport { useEffect, useRef } from 'react';\nimport { Button } from './button';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...rest\n } = props;\n const containerRef = useRef<Element | null>(null);\n\n useEffect(() => {\n containerRef.current = document.getElementsByClassName('radix-themes')[0];\n }, []);\n\n return (\n <RadixDialog.Portal container={containerRef.current}>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className=\"DialogContent\"\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex direction=\"column\" style={{ position: 'relative' }}>\n <RadixDialog.Close asChild className=\"DialogClose\">\n <Button color=\"gray\" variant=\"transparent\">\n <Cross1Icon height=\"18px\" width=\"18px\" />\n </Button>\n </RadixDialog.Close>\n {children}\n </Flex>\n </RadixDialog.Content>\n </RadixDialog.Overlay>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n","import {\n Button as RadixButton,\n type ButtonProps as RadixButtonProps,\n} from '@radix-ui/themes';\nimport React, { forwardRef, useMemo } from 'react';\n\nexport type ButtonProps = Omit<RadixButtonProps, 'size' | 'variant'> & {\n size?: 'small' | 'medium' | 'large';\n variant?: RadixButtonProps['variant'] | 'transparent';\n};\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactElement => {\n const { size, style, variant, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n default:\n return '2';\n }\n }, [size]);\n\n const mergedStyle = useMemo<ButtonProps['style']>(() => {\n const baseStyle = {\n background: variant === 'transparent' ? 'transparent' : undefined,\n fontWeight: 400,\n };\n return { ...baseStyle, ...style };\n }, [style, variant]);\n\n const radixVariant = useMemo(() => {\n if (variant === 'transparent') return 'ghost';\n return variant;\n }, [variant]);\n\n return (\n <RadixButton\n style={mergedStyle}\n variant={radixVariant}\n {...restProps}\n ref={ref}\n size={radixSize}\n />\n );\n }\n);\n\nButton.displayName = 'Button';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B;AAC7B,yBAA2B;AAC3B,IAAAA,iBAAqB;AACrB,IAAAC,gBAAkC;;;ACHlC,oBAGO;AACP,mBAA2C;AAsCrC;AA/BC,IAAM,aAAS;AAAA,EACpB,CAAC,OAAO,QAA4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B,WAAW,aAAa,SAC1C,uDAAa,qBAAZ,EAAoB,WAAU,iBAC7B;AAAA,IAAa;AAAA,IAAZ;AAAA,MACC,WAAU;AAAA,MACV,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,SACG;AAAA,OAED,OAXL;AAAA,MAaC,wDAAC,uBAAK,WAAU,UAAS,OAAO,EAAE,UAAU,WAAW,GACrD;AAAA,qDAAa,mBAAZ,EAAkB,SAAO,MAAC,WAAU,eACnC,uDAAC,UAAO,OAAM,QAAO,SAAQ,eAC3B,uDAAC,iCAAW,QAAO,QAAO,OAAM,QAAO,GACzC,GACF;AAAA,QACC;AAAA,SACH;AAAA;AAAA,EACF,GACF,GACF;AAEJ;AAEA,SAASC,OAAM,IAGsC;AAHtC,eACb;AAAA;AAAA,EAhEF,IA+De,IAEV,iBAFU,IAEV;AAAA,IADH;AAAA;AAGA,SACE,6CAAa,mBAAZ,+BAAkB,SAAO,QAAK,OAA9B,EACE,WACH;AAEJ;AAEA,SAASC,SAAQ,IAGsC;AAHtC,eACf;AAAA;AAAA,EA3EF,IA0EiB,IAEZ,iBAFY,IAEZ;AAAA,IADH;AAAA;AAGA,SACE,6CAAa,qBAAZ,+BAAoB,SAAO,QAAK,OAAhC,EACE,WACH;AAEJ;AAEO,IAAM,SAAS;AAAA,EACpB,MAAkB;AAAA,EAClB,SAAAA;AAAA,EACA,SAAAF;AAAA,EACA,OAAAC;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["import_themes","import_react","RadixButton","import_jsx_runtime","Content","Close","Trigger"]}
@@ -1,8 +1,6 @@
1
1
  import {
2
2
  Dialog
3
- } from "../chunk-DKN47ZVZ.js";
4
- import "../chunk-NJ2U2TVS.js";
5
- import "../chunk-O3DNDMV3.js";
3
+ } from "../chunk-6AJTMXLJ.js";
6
4
  import "../chunk-P3YCIJUP.js";
7
5
  import "../chunk-N552FDTV.js";
8
6
  export {
@@ -67,49 +67,9 @@ __export(drawer_exports, {
67
67
  module.exports = __toCommonJS(drawer_exports);
68
68
  var import_react = require("react");
69
69
  var Dialog = __toESM(require("@radix-ui/react-dialog"), 1);
70
-
71
- // src/theme/theme-provider.tsx
72
- var import_themes = require("@radix-ui/themes");
73
70
  var import_jsx_runtime = require("react/jsx-runtime");
74
- function ThemeProvider(props) {
75
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
76
- }
77
-
78
- // src/atoms/toast.tsx
79
- var import_react_icons = require("@radix-ui/react-icons");
80
- var import_react_toastify = require("react-toastify");
81
-
82
- // src/atoms/icon-button.tsx
83
- var import_themes2 = require("@radix-ui/themes");
84
-
85
- // src/atoms/toast.tsx
86
- var import_react_toastify2 = require("react-toastify");
87
- var import_jsx_runtime2 = require("react/jsx-runtime");
88
- function CloseButton({ closeToast }) {
89
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes2.IconButton, { color: "gray", onClick: closeToast, variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_icons.Cross1Icon, {}) });
90
- }
91
- function ToastContainer(props) {
92
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
93
- import_react_toastify.ToastContainer,
94
- __spreadValues({
95
- autoClose: 5e3,
96
- closeButton: CloseButton,
97
- closeOnClick: true,
98
- draggable: true,
99
- hideProgressBar: true,
100
- newestOnTop: true,
101
- pauseOnFocusLoss: true,
102
- pauseOnHover: true,
103
- position: "bottom-right",
104
- rtl: false
105
- }, props)
106
- );
107
- }
108
-
109
- // src/atoms/drawer.tsx
110
- var import_jsx_runtime3 = require("react/jsx-runtime");
111
71
  function Root2(props) {
112
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Root, __spreadValues({}, props));
72
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Root, __spreadValues({}, props));
113
73
  }
114
74
  function Content2(props) {
115
75
  const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
@@ -117,23 +77,20 @@ function Content2(props) {
117
77
  (0, import_react.useEffect)(() => {
118
78
  containerRef.current = document.getElementsByClassName("radix-themes")[0];
119
79
  }, []);
120
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(ThemeProvider, { children: [
121
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Overlay, { className: "DrawerOverlay" }),
122
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
80
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dialog.Portal, { container: containerRef.current, children: [
81
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Overlay, { className: "DrawerOverlay" }),
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
123
83
  Dialog.Content,
124
84
  __spreadProps(__spreadValues({
125
85
  className: `DrawerContent ${position} ${className || ""}`
126
86
  }, rest), {
127
- children: [
128
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ToastContainer, {}),
129
- children
130
- ]
87
+ children
131
88
  })
132
89
  )
133
- ] }) });
90
+ ] });
134
91
  }
135
92
  function Trigger2(props) {
136
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Trigger, __spreadValues({ asChild: true }, props));
93
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Trigger, __spreadValues({ asChild: true }, props));
137
94
  }
138
95
  var Drawer = {
139
96
  Root: Dialog.Root,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/atoms/drawer.tsx","../../src/theme/theme-provider.tsx","../../src/atoms/toast.tsx","../../src/atoms/icon-button.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","import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactElement {\n return <Theme accentColor=\"iris\" radius=\"medium\" {...props} />;\n}\n","import { Cross1Icon } from '@radix-ui/react-icons';\nimport type { Theme, ToastContainerProps, TypeOptions } from 'react-toastify';\nimport { ToastContainer as ToastifyToastContainer } from 'react-toastify';\nimport { IconButton } from './icon-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 <IconButton color=\"gray\" onClick={closeToast} variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n );\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyToastContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n {...props}\n />\n );\n}\n","export { IconButton, type IconButtonProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA,cAAAC;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,mBAAyC;AACzC,aAAwB;;;ACAxB,oBAAsB;AASb;AADF,SAAS,cAAc,OAA+C;AAC3E,SAAO,4CAAC,sCAAM,aAAY,QAAO,QAAO,YAAa,MAAO;AAC9D;;;ACXA,yBAA2B;AAE3B,4BAAyD;;;ACFzD,IAAAC,iBAAiD;;;ADKjD,IAAAC,yBAAsB;AAWhB,IAAAC,sBAAA;AAHN,SAAS,YAAY,EAAE,WAAW,GAAsC;AACtE,SACE,6CAAC,6BAAW,OAAM,QAAO,SAAS,YAAY,SAAQ,SACpD,uDAAC,iCAAW,GACd;AAEJ;AAEO,SAAS,eAAe,OAAgD;AAC7E,SACE;AAAA,IAAC,sBAAAC;AAAA,IAAA;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;;;AF/BS,IAAAC,sBAAA;AADF,SAASC,MAAK,OAA4C;AAC/D,SAAO,6CAAQ,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,mBAAe,qBAAuB,IAAI;AAEhD,8BAAU,MAAM;AACd,iBAAa,UAAU,SAAS,uBAAuB,cAAc,EAAE,CAAC;AAAA,EAC1E,GAAG,CAAC,CAAC;AAEL,SACE,6CAAQ,eAAP,EAAc,WAAW,aAAa,SACrC,wDAAC,iBACC;AAAA,iDAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD,OAFL;AAAA,QAIC;AAAA,uDAAC,kBAAe;AAAA,UACf;AAAA;AAAA;AAAA,IACH;AAAA,KACF,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,6CAAQ,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":["Content","Root","Trigger","import_themes","import_react_toastify","import_jsx_runtime","ToastifyToastContainer","import_jsx_runtime","Root","Content","Trigger"]}
1
+ {"version":3,"sources":["../../src/atoms/drawer.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\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.ReactElement {\n const { position = 'right', className, children, ...rest } = props;\n\n const containerRef = useRef<Element | null>(null);\n useEffect(() => {\n containerRef.current = document.getElementsByClassName('radix-themes')[0];\n }, []);\n\n return (\n <Dialog.Portal container={containerRef.current}>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n >\n {children}\n </Dialog.Content>\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;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA,cAAAC;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,mBAAyC;AACzC,aAAwB;AAGf;AADF,SAASC,MAAK,OAA4C;AAC/D,SAAO,4CAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAyC;AAC/D,QAA6D,YAArD,aAAW,SAAS,WAAW,SAbzC,IAa+D,IAAT,iBAAS,IAAT,CAA5C,YAAoB,aAAW;AAEvC,QAAM,mBAAe,qBAAuB,IAAI;AAChD,8BAAU,MAAM;AACd,iBAAa,UAAU,SAAS,uBAAuB,cAAc,EAAE,CAAC;AAAA,EAC1E,GAAG,CAAC,CAAC;AAEL,SACE,6CAAQ,eAAP,EAAc,WAAW,aAAa,SACrC;AAAA,gDAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD,OAFL;AAAA,QAIE;AAAA;AAAA,IACH;AAAA,KACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,4CAAQ,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":["Content","Root","Trigger","Root","Content","Trigger"]}
@@ -6,7 +6,7 @@ type ContentProps = Dialog.DialogContentProps & {
6
6
  /** Drawer가 붙는 위치, 기본값 right */
7
7
  position?: 'left' | 'right' | 'bottom' | 'top';
8
8
  };
9
- declare function Content(props: ContentProps): react__default.ReactNode;
9
+ declare function Content(props: ContentProps): react__default.ReactElement;
10
10
  declare function Trigger(props: Dialog.DialogTriggerProps): react__default.ReactNode;
11
11
  declare const Drawer: {
12
12
  Root: react__default.FC<Dialog.DialogProps>;
@@ -6,7 +6,7 @@ type ContentProps = Dialog.DialogContentProps & {
6
6
  /** Drawer가 붙는 위치, 기본값 right */
7
7
  position?: 'left' | 'right' | 'bottom' | 'top';
8
8
  };
9
- declare function Content(props: ContentProps): react__default.ReactNode;
9
+ declare function Content(props: ContentProps): react__default.ReactElement;
10
10
  declare function Trigger(props: Dialog.DialogTriggerProps): react__default.ReactNode;
11
11
  declare const Drawer: {
12
12
  Root: react__default.FC<Dialog.DialogProps>;
@@ -3,10 +3,7 @@ import {
3
3
  Drawer,
4
4
  Root,
5
5
  Trigger
6
- } from "../chunk-ZZXCFJOT.js";
7
- import "../chunk-BVBX6IJ3.js";
8
- import "../chunk-NJ2U2TVS.js";
9
- import "../chunk-O3DNDMV3.js";
6
+ } from "../chunk-HJQQMAUB.js";
10
7
  import "../chunk-N552FDTV.js";
11
8
  export {
12
9
  Content,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  FieldErrorWrapper
3
- } from "../chunk-QDZS4B6A.js";
4
- import "../chunk-52MVZ6AN.js";
3
+ } from "../chunk-DJN2IEY6.js";
5
4
  import "../chunk-25HMMI7R.js";
5
+ import "../chunk-52MVZ6AN.js";
6
6
  import "../chunk-N552FDTV.js";
7
7
  export {
8
8
  FieldErrorWrapper