@tipp/ui 1.2.14 → 1.2.15
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/atoms/dialog.cjs +24 -58
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +1 -3
- package/dist/atoms/drawer.cjs +7 -50
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.d.cts +1 -1
- package/dist/atoms/drawer.d.ts +1 -1
- package/dist/atoms/drawer.js +1 -4
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.cjs +114 -131
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +57 -58
- package/dist/atoms/pagination.js +2 -2
- package/dist/atoms/toast.cjs +7 -10
- package/dist/atoms/toast.cjs.map +1 -1
- package/dist/atoms/toast.js +1 -2
- package/dist/chunk-2FIAJ3FS.js +59 -0
- package/dist/chunk-2FIAJ3FS.js.map +1 -0
- package/dist/chunk-33YXJNZC.js +39 -0
- package/dist/chunk-33YXJNZC.js.map +1 -0
- package/dist/chunk-3PKH6B5Q.js +90 -0
- package/dist/chunk-3PKH6B5Q.js.map +1 -0
- package/dist/chunk-3QK6FAST.js +88 -0
- package/dist/chunk-3QK6FAST.js.map +1 -0
- package/dist/chunk-6IUPU7DC.js +44 -0
- package/dist/chunk-6IUPU7DC.js.map +1 -0
- package/dist/chunk-6MWBFGPV.js +44 -0
- package/dist/chunk-6MWBFGPV.js.map +1 -0
- package/dist/chunk-7JIZ5JRE.js +97 -0
- package/dist/chunk-7JIZ5JRE.js.map +1 -0
- package/dist/chunk-7MGIYERY.js +340 -0
- package/dist/chunk-7MGIYERY.js.map +1 -0
- package/dist/chunk-7MGKSZWD.js +59 -0
- package/dist/chunk-7MGKSZWD.js.map +1 -0
- package/dist/chunk-7NEEBOE5.js +59 -0
- package/dist/chunk-7NEEBOE5.js.map +1 -0
- package/dist/chunk-7TLF23E7.js +50 -0
- package/dist/chunk-7TLF23E7.js.map +1 -0
- package/dist/chunk-AAAQKCFX.js +39 -0
- package/dist/chunk-AAAQKCFX.js.map +1 -0
- package/dist/chunk-AOY2722L.js +43 -0
- package/dist/chunk-AOY2722L.js.map +1 -0
- package/dist/chunk-CA3KCVF3.js +44 -0
- package/dist/chunk-CA3KCVF3.js.map +1 -0
- package/dist/chunk-EBIISCYP.js +59 -0
- package/dist/chunk-EBIISCYP.js.map +1 -0
- package/dist/chunk-EYP37NAX.js +39 -0
- package/dist/chunk-EYP37NAX.js.map +1 -0
- package/dist/chunk-FLPWMNPQ.js +340 -0
- package/dist/chunk-FLPWMNPQ.js.map +1 -0
- package/dist/chunk-FYQHXVVC.js +39 -0
- package/dist/chunk-FYQHXVVC.js.map +1 -0
- package/dist/chunk-G7BR6KSX.js +130 -0
- package/dist/chunk-G7BR6KSX.js.map +1 -0
- package/dist/chunk-GXID5CO5.js +92 -0
- package/dist/chunk-GXID5CO5.js.map +1 -0
- package/dist/chunk-HDIMW26M.js +40 -0
- package/dist/chunk-HDIMW26M.js.map +1 -0
- package/dist/chunk-HJQQMAUB.js +50 -0
- package/dist/chunk-HJQQMAUB.js.map +1 -0
- package/dist/chunk-HWJLK6WM.js +39 -0
- package/dist/chunk-HWJLK6WM.js.map +1 -0
- package/dist/chunk-I2PIGNYP.js +97 -0
- package/dist/chunk-I2PIGNYP.js.map +1 -0
- package/dist/chunk-J4DYXLNJ.js +88 -0
- package/dist/chunk-J4DYXLNJ.js.map +1 -0
- package/dist/chunk-JGEN42KT.js +35 -0
- package/dist/chunk-JGEN42KT.js.map +1 -0
- package/dist/chunk-KK5BCWBR.js +42 -0
- package/dist/chunk-KK5BCWBR.js.map +1 -0
- package/dist/chunk-KLOQQGZ3.js +42 -0
- package/dist/chunk-KLOQQGZ3.js.map +1 -0
- package/dist/chunk-KVGCDBJ4.js +42 -0
- package/dist/chunk-KVGCDBJ4.js.map +1 -0
- package/dist/chunk-LS64FVRE.js +59 -0
- package/dist/chunk-LS64FVRE.js.map +1 -0
- package/dist/chunk-MFVWAA4Y.js +56 -0
- package/dist/chunk-MFVWAA4Y.js.map +1 -0
- package/dist/chunk-MKYNSWMI.js +340 -0
- package/dist/chunk-MKYNSWMI.js.map +1 -0
- package/dist/chunk-NJTNP47L.js +340 -0
- package/dist/chunk-NJTNP47L.js.map +1 -0
- package/dist/chunk-P7NBEL7J.js +88 -0
- package/dist/chunk-P7NBEL7J.js.map +1 -0
- package/dist/chunk-PLXOVGG4.js +39 -0
- package/dist/chunk-PLXOVGG4.js.map +1 -0
- package/dist/chunk-PXABCUAT.js +44 -0
- package/dist/chunk-PXABCUAT.js.map +1 -0
- package/dist/chunk-SSI6JRBA.js +92 -0
- package/dist/chunk-SSI6JRBA.js.map +1 -0
- package/dist/chunk-T2DBM2OA.js +59 -0
- package/dist/chunk-T2DBM2OA.js.map +1 -0
- package/dist/chunk-TAU5LFOR.js +39 -0
- package/dist/chunk-TAU5LFOR.js.map +1 -0
- package/dist/chunk-UFW4DFY5.js +39 -0
- package/dist/chunk-UFW4DFY5.js.map +1 -0
- package/dist/chunk-US7J5XUZ.js +36 -0
- package/dist/chunk-US7J5XUZ.js.map +1 -0
- package/dist/chunk-X2VREBVY.js +39 -0
- package/dist/chunk-X2VREBVY.js.map +1 -0
- package/dist/chunk-X55DKUZS.js +39 -0
- package/dist/chunk-X55DKUZS.js.map +1 -0
- package/dist/chunk-XFPO6ULS.js +39 -0
- package/dist/chunk-XFPO6ULS.js.map +1 -0
- package/dist/chunk-XKOYSFH4.js +43 -0
- package/dist/chunk-XKOYSFH4.js.map +1 -0
- package/dist/chunk-XXKNNYIJ.js +59 -0
- package/dist/chunk-XXKNNYIJ.js.map +1 -0
- package/dist/chunk-YA3PXLPU.js +53 -0
- package/dist/chunk-YA3PXLPU.js.map +1 -0
- package/dist/chunk-YESWEUM2.js +1 -0
- package/dist/chunk-YESWEUM2.js.map +1 -0
- package/dist/chunk-YILB2DTL.js +39 -0
- package/dist/chunk-YILB2DTL.js.map +1 -0
- package/dist/chunk-YNVFLDKB.js +92 -0
- package/dist/chunk-YNVFLDKB.js.map +1 -0
- package/dist/chunk-YSBOFKXT.js +39 -0
- package/dist/chunk-YSBOFKXT.js.map +1 -0
- package/dist/chunk-YTYGMU6L.js +169 -0
- package/dist/chunk-YTYGMU6L.js.map +1 -0
- package/dist/chunk-ZYNW3VYG.js +53 -0
- package/dist/chunk-ZYNW3VYG.js.map +1 -0
- package/dist/index.cjs +242 -252
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +67 -38
- package/dist/index.css.map +1 -1
- package/dist/index.js +71 -71
- package/dist/molecules/expand-table/index.js +27 -28
- package/dist/molecules/expand-table/row.js +26 -27
- package/dist/molecules/index.cjs +24 -24
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +30 -31
- package/dist/molecules/navigation.js +27 -28
- package/dist/molecules/stepper.js +3 -3
- package/dist/molecules/tag-selector.js +27 -28
- package/package.json +3 -3
- package/src/atoms/dialog.tsx +0 -2
- package/src/atoms/drawer.tsx +8 -14
- package/src/atoms/toast.tsx +12 -19
|
@@ -1,64 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagSelector
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-P7633BEQ.js";
|
|
4
4
|
import "../chunk-76JGDATZ.js";
|
|
5
|
-
import "../chunk-ILRUXI2E.js";
|
|
6
|
-
import "../chunk-JPIZP2PZ.js";
|
|
7
|
-
import "../chunk-3JRNKBMN.js";
|
|
8
|
-
import "../chunk-HYITAA4J.js";
|
|
9
|
-
import "../chunk-5H3YPCZK.js";
|
|
10
5
|
import "../chunk-FR2GDOU2.js";
|
|
11
6
|
import "../chunk-74DX4CU7.js";
|
|
12
7
|
import "../chunk-OYM4XCHQ.js";
|
|
13
8
|
import "../chunk-YJ7ZFOYL.js";
|
|
14
9
|
import "../chunk-5ZITU5L7.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ILRUXI2E.js";
|
|
11
|
+
import "../chunk-JPIZP2PZ.js";
|
|
12
|
+
import "../chunk-UFW4DFY5.js";
|
|
18
13
|
import "../chunk-6DJOIRMF.js";
|
|
19
14
|
import "../chunk-FPD73OHW.js";
|
|
20
15
|
import "../chunk-ZKZDVS7G.js";
|
|
21
16
|
import "../chunk-MUNMDHRF.js";
|
|
22
17
|
import "../chunk-TVDKGMBI.js";
|
|
23
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-3JRNKBMN.js";
|
|
19
|
+
import "../chunk-HYITAA4J.js";
|
|
20
|
+
import "../chunk-5H3YPCZK.js";
|
|
24
21
|
import "../chunk-XQOL7UBI.js";
|
|
25
22
|
import "../chunk-TULWX7D6.js";
|
|
26
23
|
import "../chunk-SIM6HKVI.js";
|
|
27
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-QVQCTPDU.js";
|
|
28
25
|
import "../chunk-5AVBYDPB.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-QDZS4B6A.js";
|
|
34
|
-
import "../chunk-52MVZ6AN.js";
|
|
26
|
+
import "../chunk-365QMK4D.js";
|
|
27
|
+
import "../chunk-YO3BQW6S.js";
|
|
28
|
+
import "../chunk-6IVCARWS.js";
|
|
29
|
+
import "../chunk-DJN2IEY6.js";
|
|
35
30
|
import "../chunk-25HMMI7R.js";
|
|
36
31
|
import "../chunk-2CVXGGI5.js";
|
|
37
32
|
import "../chunk-EGEQY3KT.js";
|
|
38
33
|
import "../chunk-HK224ADT.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-OHMOP5PV.js";
|
|
34
|
+
import "../chunk-O3T3TM3V.js";
|
|
35
|
+
import "../chunk-O3DNDMV3.js";
|
|
42
36
|
import "../chunk-KGLIAFTI.js";
|
|
43
37
|
import "../chunk-Q37G2GS6.js";
|
|
44
38
|
import "../chunk-VTJZMOSP.js";
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-YGL6SWKN.js";
|
|
39
|
+
import "../chunk-6AJTMXLJ.js";
|
|
40
|
+
import "../chunk-HJQQMAUB.js";
|
|
41
|
+
import "../chunk-4WFMOFN2.js";
|
|
42
|
+
import "../chunk-WKFZ5MMN.js";
|
|
43
|
+
import "../chunk-ACVANQJ4.js";
|
|
44
|
+
import "../chunk-52MVZ6AN.js";
|
|
45
|
+
import "../chunk-2DZ2Y3JI.js";
|
|
53
46
|
import "../chunk-4Y5BEXVN.js";
|
|
54
47
|
import "../chunk-P3YCIJUP.js";
|
|
55
48
|
import "../chunk-B6XJN6EC.js";
|
|
56
49
|
import "../chunk-UVKNLJDZ.js";
|
|
57
50
|
import "../chunk-MIMJ7LON.js";
|
|
51
|
+
import "../chunk-IQEEPHOY.js";
|
|
52
|
+
import "../chunk-LHCDPZ5E.js";
|
|
53
|
+
import "../chunk-OHMOP5PV.js";
|
|
58
54
|
import "../chunk-66C4U3BG.js";
|
|
59
55
|
import "../chunk-J242TTFH.js";
|
|
60
56
|
import "../chunk-EAXUQEO5.js";
|
|
61
57
|
import "../chunk-YJCCE5WP.js";
|
|
58
|
+
import "../chunk-3SSSCLJ5.js";
|
|
59
|
+
import "../chunk-EWD4AO5N.js";
|
|
60
|
+
import "../chunk-YGL6SWKN.js";
|
|
62
61
|
import "../chunk-N552FDTV.js";
|
|
63
62
|
export {
|
|
64
63
|
TagSelector
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tipp/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"postcss-nesting": "12.0.2",
|
|
55
55
|
"tsup": "^8.0.2",
|
|
56
56
|
"typescript": "^5.3.3",
|
|
57
|
-
"@tipp/
|
|
58
|
-
"@tipp/
|
|
57
|
+
"@tipp/eslint-config": "1.0.0",
|
|
58
|
+
"@tipp/typescript-config": "1.0.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "pnpm run build:js && pnpm run build:css",
|
package/src/atoms/dialog.tsx
CHANGED
|
@@ -3,7 +3,6 @@ import { Cross1Icon } from '@radix-ui/react-icons';
|
|
|
3
3
|
import { Flex } from '@radix-ui/themes';
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { Button } from './button';
|
|
6
|
-
import { ToastContainer } from './toast';
|
|
7
6
|
|
|
8
7
|
type ContentProps = RadixDialog.DialogContentProps & {
|
|
9
8
|
width?: string;
|
|
@@ -57,7 +56,6 @@ function Content(props: ContentProps): React.ReactElement {
|
|
|
57
56
|
{children}
|
|
58
57
|
</Flex>
|
|
59
58
|
</RadixDialog.Content>
|
|
60
|
-
<ToastContainer />
|
|
61
59
|
</RadixDialog.Overlay>
|
|
62
60
|
</RadixDialog.Portal>
|
|
63
61
|
);
|
package/src/atoms/drawer.tsx
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
2
|
import * as Dialog from '@radix-ui/react-dialog';
|
|
3
|
-
import { ThemeProvider } from '../theme/theme-provider';
|
|
4
|
-
import { ToastContainer } from './toast';
|
|
5
3
|
|
|
6
4
|
export function Root(props: Dialog.DialogProps): React.ReactNode {
|
|
7
5
|
return <Dialog.Root {...props} />;
|
|
@@ -12,27 +10,23 @@ type ContentProps = Dialog.DialogContentProps & {
|
|
|
12
10
|
position?: 'left' | 'right' | 'bottom' | 'top';
|
|
13
11
|
};
|
|
14
12
|
|
|
15
|
-
export function Content(props: ContentProps): React.
|
|
13
|
+
export function Content(props: ContentProps): React.ReactElement {
|
|
16
14
|
const { position = 'right', className, children, ...rest } = props;
|
|
17
15
|
|
|
18
16
|
const containerRef = useRef<Element | null>(null);
|
|
19
|
-
|
|
20
17
|
useEffect(() => {
|
|
21
18
|
containerRef.current = document.getElementsByClassName('radix-themes')[0];
|
|
22
19
|
}, []);
|
|
23
20
|
|
|
24
21
|
return (
|
|
25
22
|
<Dialog.Portal container={containerRef.current}>
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{children}
|
|
34
|
-
</Dialog.Content>
|
|
35
|
-
</ThemeProvider>
|
|
23
|
+
<Dialog.Overlay className="DrawerOverlay" />
|
|
24
|
+
<Dialog.Content
|
|
25
|
+
className={`DrawerContent ${position} ${className || ''}`}
|
|
26
|
+
{...rest}
|
|
27
|
+
>
|
|
28
|
+
{children}
|
|
29
|
+
</Dialog.Content>
|
|
36
30
|
</Dialog.Portal>
|
|
37
31
|
);
|
|
38
32
|
}
|
package/src/atoms/toast.tsx
CHANGED
|
@@ -1,37 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { InfoCircledIcon } from '@radix-ui/react-icons';
|
|
2
|
+
import {
|
|
3
|
+
ToastContainer as ToastifyContainer,
|
|
4
|
+
type ToastContainerProps,
|
|
5
|
+
} from 'react-toastify';
|
|
5
6
|
|
|
6
7
|
export { toast } from 'react-toastify';
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: TypeOptions;
|
|
11
|
-
ariaLabel?: string;
|
|
12
|
-
theme: Theme;
|
|
13
|
-
}
|
|
14
|
-
function CloseButton({ closeToast }: CloseButtonProps): React.ReactNode {
|
|
15
|
-
return (
|
|
16
|
-
<IconButton color="gray" onClick={closeToast} variant="ghost">
|
|
17
|
-
<Cross1Icon />
|
|
18
|
-
</IconButton>
|
|
19
|
-
);
|
|
9
|
+
function CloseButton(): React.ReactNode {
|
|
10
|
+
return null;
|
|
20
11
|
}
|
|
21
12
|
|
|
22
13
|
export function ToastContainer(props: ToastContainerProps): React.ReactElement {
|
|
23
14
|
return (
|
|
24
|
-
<
|
|
25
|
-
autoClose={
|
|
15
|
+
<ToastifyContainer
|
|
16
|
+
autoClose={50000}
|
|
26
17
|
closeButton={CloseButton}
|
|
27
18
|
closeOnClick
|
|
28
19
|
draggable
|
|
29
20
|
hideProgressBar
|
|
21
|
+
icon={<InfoCircledIcon />}
|
|
30
22
|
newestOnTop
|
|
31
23
|
pauseOnFocusLoss
|
|
32
24
|
pauseOnHover
|
|
33
|
-
position="
|
|
25
|
+
position="top-center"
|
|
34
26
|
rtl={false}
|
|
27
|
+
style={{ zIndex: 999999 }}
|
|
35
28
|
{...props}
|
|
36
29
|
/>
|
|
37
30
|
);
|