@ttoss/components 2.0.18 → 2.0.20
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/index.d.ts +2 -2
- package/dist/esm/Menu/index.js +62 -62
- package/dist/esm/Modal/index.js +1 -1
- package/dist/esm/Toast/index.js +1 -1
- package/package.json +5 -5
package/dist/Menu/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { BoxProps } from '@ttoss/ui';
|
|
4
2
|
import { IconifyIcon } from '@ttoss/react-icons';
|
|
3
|
+
import { BoxProps } from '@ttoss/ui';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
type MenuProps = {
|
|
7
7
|
onClose: () => void;
|
package/dist/esm/Menu/index.js
CHANGED
|
@@ -1,60 +1,6 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
2
|
import "../chunk-ESDEGKXL.js";
|
|
3
3
|
|
|
4
|
-
// src/components/Menu/Menu.tsx
|
|
5
|
-
import { Box as Box2, Flex, Image, Text, useResponsiveValue } from "@ttoss/ui";
|
|
6
|
-
|
|
7
|
-
// src/components/Drawer/Drawer.tsx
|
|
8
|
-
import { Box } from "@ttoss/ui";
|
|
9
|
-
import { css as createClassName } from "@emotion/css";
|
|
10
|
-
import DrawerUi from "react-modern-drawer";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
var reactModernDrawerClassName = createClassName(`
|
|
13
|
-
.EZDrawer .EZDrawer__checkbox {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
.EZDrawer .EZDrawer__checkbox:checked ~ .EZDrawer__overlay {
|
|
17
|
-
display: block;
|
|
18
|
-
opacity: 1;
|
|
19
|
-
}
|
|
20
|
-
.EZDrawer .EZDrawer__checkbox:checked ~ .EZDrawer__container {
|
|
21
|
-
visibility: visible;
|
|
22
|
-
transform: translate3d(0, 0, 0) !important;
|
|
23
|
-
}
|
|
24
|
-
.EZDrawer .EZDrawer__overlay {
|
|
25
|
-
display: none;
|
|
26
|
-
height: 100vh;
|
|
27
|
-
left: 0;
|
|
28
|
-
position: fixed;
|
|
29
|
-
top: 0;
|
|
30
|
-
width: 100%;
|
|
31
|
-
}
|
|
32
|
-
.EZDrawer .EZDrawer__container {
|
|
33
|
-
position: fixed;
|
|
34
|
-
visibility: hidden;
|
|
35
|
-
background: white;
|
|
36
|
-
transition: all;
|
|
37
|
-
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
38
|
-
}`);
|
|
39
|
-
var Drawer = ({
|
|
40
|
-
children,
|
|
41
|
-
sx,
|
|
42
|
-
...props
|
|
43
|
-
}) => {
|
|
44
|
-
return /* @__PURE__ */jsx(DrawerUi, {
|
|
45
|
-
...props,
|
|
46
|
-
className: reactModernDrawerClassName,
|
|
47
|
-
children: /* @__PURE__ */jsx(Box, {
|
|
48
|
-
sx: {
|
|
49
|
-
width: "100%",
|
|
50
|
-
height: "100%",
|
|
51
|
-
...sx
|
|
52
|
-
},
|
|
53
|
-
children
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
|
|
58
4
|
// ../react-icons/src/Icon.tsx
|
|
59
5
|
import * as React2 from "react";
|
|
60
6
|
|
|
@@ -2303,9 +2249,9 @@ var Icon = React.forwardRef((props, ref) => {
|
|
|
2303
2249
|
});
|
|
2304
2250
|
|
|
2305
2251
|
// ../react-icons/src/Icon.tsx
|
|
2306
|
-
import { jsx
|
|
2252
|
+
import { jsx } from "react/jsx-runtime";
|
|
2307
2253
|
var Icon2 = React2.forwardRef((props, ref) => {
|
|
2308
|
-
return /* @__PURE__ */
|
|
2254
|
+
return /* @__PURE__ */jsx(Icon, {
|
|
2309
2255
|
ref,
|
|
2310
2256
|
"data-testid": "iconify-icon",
|
|
2311
2257
|
...props
|
|
@@ -2313,6 +2259,60 @@ var Icon2 = React2.forwardRef((props, ref) => {
|
|
|
2313
2259
|
});
|
|
2314
2260
|
Icon2.displayName = "Icon";
|
|
2315
2261
|
|
|
2262
|
+
// src/components/Menu/Menu.tsx
|
|
2263
|
+
import { Box as Box2, Flex, Image, Text, useResponsiveValue } from "@ttoss/ui";
|
|
2264
|
+
|
|
2265
|
+
// src/components/Drawer/Drawer.tsx
|
|
2266
|
+
import { Box } from "@ttoss/ui";
|
|
2267
|
+
import { css as createClassName } from "@emotion/css";
|
|
2268
|
+
import DrawerUi from "react-modern-drawer";
|
|
2269
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
2270
|
+
var reactModernDrawerClassName = createClassName(`
|
|
2271
|
+
.EZDrawer .EZDrawer__checkbox {
|
|
2272
|
+
display: none;
|
|
2273
|
+
}
|
|
2274
|
+
.EZDrawer .EZDrawer__checkbox:checked ~ .EZDrawer__overlay {
|
|
2275
|
+
display: block;
|
|
2276
|
+
opacity: 1;
|
|
2277
|
+
}
|
|
2278
|
+
.EZDrawer .EZDrawer__checkbox:checked ~ .EZDrawer__container {
|
|
2279
|
+
visibility: visible;
|
|
2280
|
+
transform: translate3d(0, 0, 0) !important;
|
|
2281
|
+
}
|
|
2282
|
+
.EZDrawer .EZDrawer__overlay {
|
|
2283
|
+
display: none;
|
|
2284
|
+
height: 100vh;
|
|
2285
|
+
left: 0;
|
|
2286
|
+
position: fixed;
|
|
2287
|
+
top: 0;
|
|
2288
|
+
width: 100%;
|
|
2289
|
+
}
|
|
2290
|
+
.EZDrawer .EZDrawer__container {
|
|
2291
|
+
position: fixed;
|
|
2292
|
+
visibility: hidden;
|
|
2293
|
+
background: white;
|
|
2294
|
+
transition: all;
|
|
2295
|
+
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
2296
|
+
}`);
|
|
2297
|
+
var Drawer = ({
|
|
2298
|
+
children,
|
|
2299
|
+
sx,
|
|
2300
|
+
...props
|
|
2301
|
+
}) => {
|
|
2302
|
+
return /* @__PURE__ */jsx2(DrawerUi, {
|
|
2303
|
+
...props,
|
|
2304
|
+
className: reactModernDrawerClassName,
|
|
2305
|
+
children: /* @__PURE__ */jsx2(Box, {
|
|
2306
|
+
sx: {
|
|
2307
|
+
width: "100%",
|
|
2308
|
+
height: "100%",
|
|
2309
|
+
...sx
|
|
2310
|
+
},
|
|
2311
|
+
children
|
|
2312
|
+
})
|
|
2313
|
+
});
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
2316
|
// src/components/Menu/Menu.tsx
|
|
2317
2317
|
import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
2318
2318
|
var Menu = ({
|
|
@@ -2347,12 +2347,12 @@ var Menu = ({
|
|
|
2347
2347
|
height: "100%",
|
|
2348
2348
|
backgroundColor: "background",
|
|
2349
2349
|
width: "100%",
|
|
2350
|
-
maxWidth: "
|
|
2350
|
+
maxWidth: "2",
|
|
2351
2351
|
right: 0,
|
|
2352
|
-
boxShadow: "
|
|
2353
|
-
paddingX: "
|
|
2354
|
-
paddingTop: "
|
|
2355
|
-
paddingBottom: "
|
|
2352
|
+
boxShadow: "4",
|
|
2353
|
+
paddingX: "5",
|
|
2354
|
+
paddingTop: "4",
|
|
2355
|
+
paddingBottom: "6",
|
|
2356
2356
|
...sx
|
|
2357
2357
|
},
|
|
2358
2358
|
children: [/* @__PURE__ */jsxs(Flex, {
|
|
@@ -2383,7 +2383,7 @@ var Menu = ({
|
|
|
2383
2383
|
})]
|
|
2384
2384
|
}), /* @__PURE__ */jsx3(Box2, {
|
|
2385
2385
|
sx: {
|
|
2386
|
-
paddingTop: "
|
|
2386
|
+
paddingTop: "6"
|
|
2387
2387
|
},
|
|
2388
2388
|
as: "nav",
|
|
2389
2389
|
children
|
package/dist/esm/Modal/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var Modal = props => {
|
|
|
15
15
|
theme
|
|
16
16
|
} = useTheme();
|
|
17
17
|
const space = theme.space;
|
|
18
|
-
const padding = useResponsiveValue([space?.["
|
|
18
|
+
const padding = useResponsiveValue([space?.["4"], space?.["5"], space?.["5"]]) || 0;
|
|
19
19
|
const style = {
|
|
20
20
|
overlay: transformStyleObject({
|
|
21
21
|
position: "fixed",
|
package/dist/esm/Toast/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "../chunk-ESDEGKXL.js";
|
|
|
3
3
|
|
|
4
4
|
// src/components/Toast/Toast.tsx
|
|
5
5
|
import { Box } from "@ttoss/ui";
|
|
6
|
-
import { ToastContainer as ReactToastifyToastContainer
|
|
6
|
+
import { toast, ToastContainer as ReactToastifyToastContainer } from "react-toastify";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
var ToastContainer = props => {
|
|
9
9
|
return /* @__PURE__ */jsx(Box, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.20",
|
|
4
4
|
"description": "React components for ttoss ecosystem.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": ">=16.8.0",
|
|
77
77
|
"@ttoss/react-hooks": "^2.0.9",
|
|
78
|
-
"@ttoss/ui": "^5.1.
|
|
78
|
+
"@ttoss/ui": "^5.1.2"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@types/jest": "^29.5.14",
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"react": "^19.0.0",
|
|
85
85
|
"tsup": "^8.3.5",
|
|
86
86
|
"tsx": "^4.19.2",
|
|
87
|
-
"@ttoss/config": "^1.35.2",
|
|
88
87
|
"@ttoss/react-icons": "^0.4.9",
|
|
88
|
+
"@ttoss/config": "^1.35.2",
|
|
89
89
|
"@ttoss/test-utils": "^2.1.22",
|
|
90
|
-
"@ttoss/
|
|
91
|
-
"@ttoss/
|
|
90
|
+
"@ttoss/ui": "^5.1.2",
|
|
91
|
+
"@ttoss/react-hooks": "^2.0.9"
|
|
92
92
|
},
|
|
93
93
|
"keywords": [
|
|
94
94
|
"React",
|