@mlw-packages/react-components 1.9.13 → 1.9.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.
- package/dist/index.css +0 -31
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +5 -6
- package/dist/index.mjs +5 -6
- package/package.json +9 -4
package/dist/index.css
CHANGED
|
@@ -860,10 +860,6 @@ body {
|
|
|
860
860
|
width: 0.5rem;
|
|
861
861
|
height: 0.5rem;
|
|
862
862
|
}
|
|
863
|
-
.size-2\.5 {
|
|
864
|
-
width: 0.625rem;
|
|
865
|
-
height: 0.625rem;
|
|
866
|
-
}
|
|
867
863
|
.size-3 {
|
|
868
864
|
width: 0.75rem;
|
|
869
865
|
height: 0.75rem;
|
|
@@ -1022,9 +1018,6 @@ body {
|
|
|
1022
1018
|
.h-\[550px\] {
|
|
1023
1019
|
height: 550px;
|
|
1024
1020
|
}
|
|
1025
|
-
.h-\[667px\] {
|
|
1026
|
-
height: 667px;
|
|
1027
|
-
}
|
|
1028
1021
|
.h-\[95vh\] {
|
|
1029
1022
|
height: 95vh;
|
|
1030
1023
|
}
|
|
@@ -1181,9 +1174,6 @@ body {
|
|
|
1181
1174
|
.w-20 {
|
|
1182
1175
|
width: 5rem;
|
|
1183
1176
|
}
|
|
1184
|
-
.w-24 {
|
|
1185
|
-
width: 6rem;
|
|
1186
|
-
}
|
|
1187
1177
|
.w-28 {
|
|
1188
1178
|
width: 7rem;
|
|
1189
1179
|
}
|
|
@@ -1289,9 +1279,6 @@ body {
|
|
|
1289
1279
|
.w-\[350px\] {
|
|
1290
1280
|
width: 350px;
|
|
1291
1281
|
}
|
|
1292
|
-
.w-\[375px\] {
|
|
1293
|
-
width: 375px;
|
|
1294
|
-
}
|
|
1295
1282
|
.w-\[400px\] {
|
|
1296
1283
|
width: 400px;
|
|
1297
1284
|
}
|
|
@@ -1304,9 +1291,6 @@ body {
|
|
|
1304
1291
|
.w-\[500px\] {
|
|
1305
1292
|
width: 500px;
|
|
1306
1293
|
}
|
|
1307
|
-
.w-\[52rem\] {
|
|
1308
|
-
width: 52rem;
|
|
1309
|
-
}
|
|
1310
1294
|
.w-\[600px\] {
|
|
1311
1295
|
width: 600px;
|
|
1312
1296
|
}
|
|
@@ -1944,12 +1928,6 @@ body {
|
|
|
1944
1928
|
.rounded-2xl {
|
|
1945
1929
|
border-radius: 1rem;
|
|
1946
1930
|
}
|
|
1947
|
-
.rounded-\[2px\] {
|
|
1948
|
-
border-radius: 2px;
|
|
1949
|
-
}
|
|
1950
|
-
.rounded-\[40px\] {
|
|
1951
|
-
border-radius: 40px;
|
|
1952
|
-
}
|
|
1953
1931
|
.rounded-\[inherit\] {
|
|
1954
1932
|
border-radius: inherit;
|
|
1955
1933
|
}
|
|
@@ -2371,15 +2349,9 @@ body {
|
|
|
2371
2349
|
.bg-background\/95 {
|
|
2372
2350
|
background-color: hsl(var(--background) / 0.95);
|
|
2373
2351
|
}
|
|
2374
|
-
.bg-black\/20 {
|
|
2375
|
-
background-color: rgb(0 0 0 / 0.2);
|
|
2376
|
-
}
|
|
2377
2352
|
.bg-black\/40 {
|
|
2378
2353
|
background-color: rgb(0 0 0 / 0.4);
|
|
2379
2354
|
}
|
|
2380
|
-
.bg-black\/5 {
|
|
2381
|
-
background-color: rgb(0 0 0 / 0.05);
|
|
2382
|
-
}
|
|
2383
2355
|
.bg-black\/50 {
|
|
2384
2356
|
background-color: rgb(0 0 0 / 0.5);
|
|
2385
2357
|
}
|
|
@@ -3341,9 +3313,6 @@ body {
|
|
|
3341
3313
|
--tw-text-opacity: 1;
|
|
3342
3314
|
color: rgb(0 0 0 / var(--tw-text-opacity, 1));
|
|
3343
3315
|
}
|
|
3344
|
-
.text-black\/40 {
|
|
3345
|
-
color: rgb(0 0 0 / 0.4);
|
|
3346
|
-
}
|
|
3347
3316
|
.text-blue-400 {
|
|
3348
3317
|
--tw-text-opacity: 1;
|
|
3349
3318
|
color: rgb(96 165 250 / var(--tw-text-opacity, 1));
|
package/dist/index.d.mts
CHANGED
|
@@ -2323,7 +2323,6 @@ interface CarouselBaseProps {
|
|
|
2323
2323
|
containerClassName?: string;
|
|
2324
2324
|
imageClassName?: string;
|
|
2325
2325
|
width?: string;
|
|
2326
|
-
height?: string;
|
|
2327
2326
|
showControls?: boolean;
|
|
2328
2327
|
showIndicators?: boolean;
|
|
2329
2328
|
autoPlay?: boolean;
|
|
@@ -2336,7 +2335,7 @@ interface CarouselBaseProps {
|
|
|
2336
2335
|
download?: boolean;
|
|
2337
2336
|
isLoading?: boolean;
|
|
2338
2337
|
}
|
|
2339
|
-
declare function CarouselBase({ items, className, containerClassName, imageClassName, width,
|
|
2338
|
+
declare function CarouselBase({ items, className, containerClassName, imageClassName, width, showControls, showIndicators, autoPlay, autoPlayInterval, zoomEffect, download, isLoading, }: CarouselBaseProps): react_jsx_runtime.JSX.Element;
|
|
2340
2339
|
|
|
2341
2340
|
type PhosphorIcon = React$1.ForwardRefExoticComponent<IconProps$1 & React$1.RefAttributes<SVGSVGElement>>;
|
|
2342
2341
|
type MenuItem = {
|
package/dist/index.d.ts
CHANGED
|
@@ -2323,7 +2323,6 @@ interface CarouselBaseProps {
|
|
|
2323
2323
|
containerClassName?: string;
|
|
2324
2324
|
imageClassName?: string;
|
|
2325
2325
|
width?: string;
|
|
2326
|
-
height?: string;
|
|
2327
2326
|
showControls?: boolean;
|
|
2328
2327
|
showIndicators?: boolean;
|
|
2329
2328
|
autoPlay?: boolean;
|
|
@@ -2336,7 +2335,7 @@ interface CarouselBaseProps {
|
|
|
2336
2335
|
download?: boolean;
|
|
2337
2336
|
isLoading?: boolean;
|
|
2338
2337
|
}
|
|
2339
|
-
declare function CarouselBase({ items, className, containerClassName, imageClassName, width,
|
|
2338
|
+
declare function CarouselBase({ items, className, containerClassName, imageClassName, width, showControls, showIndicators, autoPlay, autoPlayInterval, zoomEffect, download, isLoading, }: CarouselBaseProps): react_jsx_runtime.JSX.Element;
|
|
2340
2339
|
|
|
2341
2340
|
type PhosphorIcon = React$1.ForwardRefExoticComponent<IconProps$1 & React$1.RefAttributes<SVGSVGElement>>;
|
|
2342
2341
|
type MenuItem = {
|
package/dist/index.js
CHANGED
|
@@ -18599,7 +18599,7 @@ function Leaderboard({
|
|
|
18599
18599
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18600
18600
|
"div",
|
|
18601
18601
|
{
|
|
18602
|
-
className: `border rounded-xl flex flex-col max-h-80
|
|
18602
|
+
className: `border rounded-xl flex flex-col max-h-80 ${className}`,
|
|
18603
18603
|
children: [
|
|
18604
18604
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between py-2 px-4 border-b flex-shrink-0 gap-3 ", children: [
|
|
18605
18605
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold px-1 whitespace-nowrap", children: title }),
|
|
@@ -18616,7 +18616,7 @@ function Leaderboard({
|
|
|
18616
18616
|
},
|
|
18617
18617
|
placeholder: "Pesquisar...",
|
|
18618
18618
|
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(react.MagnifyingGlassIcon, { size: 16 }),
|
|
18619
|
-
className: "h-8 py-1
|
|
18619
|
+
className: "h-8 py-1"
|
|
18620
18620
|
}
|
|
18621
18621
|
),
|
|
18622
18622
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -18969,7 +18969,7 @@ var Lens = ({
|
|
|
18969
18969
|
);
|
|
18970
18970
|
};
|
|
18971
18971
|
function CarouselSkeleton({ className }) {
|
|
18972
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full h-full lg:p-10 sm:p-4 p-2", className), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-3 h-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative overflow-hidden rounded-lg h-full", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full h-full bg-muted rounded-lg overflow-hidden relative", children: [
|
|
18972
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full h-full lg:p-10 sm:p-4 p-2", className), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-3 h-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative overflow-hidden rounded-lg h-full", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full h-full min-h-[300px] bg-muted rounded-lg overflow-hidden relative", children: [
|
|
18973
18973
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18974
18974
|
framerMotion.motion.div,
|
|
18975
18975
|
{
|
|
@@ -19041,7 +19041,6 @@ function CarouselBase({
|
|
|
19041
19041
|
containerClassName,
|
|
19042
19042
|
imageClassName,
|
|
19043
19043
|
width,
|
|
19044
|
-
height,
|
|
19045
19044
|
showControls = true,
|
|
19046
19045
|
showIndicators = true,
|
|
19047
19046
|
autoPlay = false,
|
|
@@ -19107,7 +19106,7 @@ function CarouselBase({
|
|
|
19107
19106
|
animate: { opacity: 1 },
|
|
19108
19107
|
exit: { opacity: 0 },
|
|
19109
19108
|
transition: { duration: 0.3 },
|
|
19110
|
-
style: { width
|
|
19109
|
+
style: { width },
|
|
19111
19110
|
className: "h-full",
|
|
19112
19111
|
children: /* @__PURE__ */ jsxRuntime.jsx(CarouselSkeleton, { className })
|
|
19113
19112
|
},
|
|
@@ -19121,7 +19120,7 @@ function CarouselBase({
|
|
|
19121
19120
|
animate: { opacity: 1 },
|
|
19122
19121
|
transition: { duration: 0.4 },
|
|
19123
19122
|
className: cn("w-full lg:p-10 sm:p-4 p-2", className),
|
|
19124
|
-
style: { width
|
|
19123
|
+
style: { width },
|
|
19125
19124
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-3 h-full", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("relative h-full", containerClassName), children: [
|
|
19126
19125
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19127
19126
|
"div",
|
package/dist/index.mjs
CHANGED
|
@@ -18556,7 +18556,7 @@ function Leaderboard({
|
|
|
18556
18556
|
return /* @__PURE__ */ jsxs(
|
|
18557
18557
|
"div",
|
|
18558
18558
|
{
|
|
18559
|
-
className: `border rounded-xl flex flex-col max-h-80
|
|
18559
|
+
className: `border rounded-xl flex flex-col max-h-80 ${className}`,
|
|
18560
18560
|
children: [
|
|
18561
18561
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between py-2 px-4 border-b flex-shrink-0 gap-3 ", children: [
|
|
18562
18562
|
/* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold px-1 whitespace-nowrap", children: title }),
|
|
@@ -18573,7 +18573,7 @@ function Leaderboard({
|
|
|
18573
18573
|
},
|
|
18574
18574
|
placeholder: "Pesquisar...",
|
|
18575
18575
|
leftIcon: /* @__PURE__ */ jsx(MagnifyingGlassIcon, { size: 16 }),
|
|
18576
|
-
className: "h-8 py-1
|
|
18576
|
+
className: "h-8 py-1"
|
|
18577
18577
|
}
|
|
18578
18578
|
),
|
|
18579
18579
|
/* @__PURE__ */ jsx(
|
|
@@ -18926,7 +18926,7 @@ var Lens = ({
|
|
|
18926
18926
|
);
|
|
18927
18927
|
};
|
|
18928
18928
|
function CarouselSkeleton({ className }) {
|
|
18929
|
-
return /* @__PURE__ */ jsx("div", { className: cn("w-full h-full lg:p-10 sm:p-4 p-2", className), children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 h-full", children: /* @__PURE__ */ jsx("div", { className: "relative overflow-hidden rounded-lg h-full", children: /* @__PURE__ */ jsxs("div", { className: "w-full h-full bg-muted rounded-lg overflow-hidden relative", children: [
|
|
18929
|
+
return /* @__PURE__ */ jsx("div", { className: cn("w-full h-full lg:p-10 sm:p-4 p-2", className), children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 h-full", children: /* @__PURE__ */ jsx("div", { className: "relative overflow-hidden rounded-lg h-full", children: /* @__PURE__ */ jsxs("div", { className: "w-full h-full min-h-[300px] bg-muted rounded-lg overflow-hidden relative", children: [
|
|
18930
18930
|
/* @__PURE__ */ jsx(
|
|
18931
18931
|
motion.div,
|
|
18932
18932
|
{
|
|
@@ -18998,7 +18998,6 @@ function CarouselBase({
|
|
|
18998
18998
|
containerClassName,
|
|
18999
18999
|
imageClassName,
|
|
19000
19000
|
width,
|
|
19001
|
-
height,
|
|
19002
19001
|
showControls = true,
|
|
19003
19002
|
showIndicators = true,
|
|
19004
19003
|
autoPlay = false,
|
|
@@ -19064,7 +19063,7 @@ function CarouselBase({
|
|
|
19064
19063
|
animate: { opacity: 1 },
|
|
19065
19064
|
exit: { opacity: 0 },
|
|
19066
19065
|
transition: { duration: 0.3 },
|
|
19067
|
-
style: { width
|
|
19066
|
+
style: { width },
|
|
19068
19067
|
className: "h-full",
|
|
19069
19068
|
children: /* @__PURE__ */ jsx(CarouselSkeleton, { className })
|
|
19070
19069
|
},
|
|
@@ -19078,7 +19077,7 @@ function CarouselBase({
|
|
|
19078
19077
|
animate: { opacity: 1 },
|
|
19079
19078
|
transition: { duration: 0.4 },
|
|
19080
19079
|
className: cn("w-full lg:p-10 sm:p-4 p-2", className),
|
|
19081
|
-
style: { width
|
|
19080
|
+
style: { width },
|
|
19082
19081
|
children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 h-full", children: /* @__PURE__ */ jsxs("div", { className: cn("relative h-full", containerClassName), children: [
|
|
19083
19082
|
/* @__PURE__ */ jsx(
|
|
19084
19083
|
"div",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.9.
|
|
7
|
+
"version": "1.9.14",
|
|
8
8
|
"homepage": "https://main--68e80310a069c2f10b546ef3.chromatic.com/",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
16
|
"style": "dist/global.css",
|
|
17
17
|
"files": [
|
|
18
|
-
"dist"
|
|
18
|
+
"dist"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"dev": "vite",
|
|
@@ -83,9 +83,13 @@
|
|
|
83
83
|
"@eslint/js": "^9.19.0",
|
|
84
84
|
"@phosphor-icons/react": "^2.1.10",
|
|
85
85
|
"@playwright/test": "^1.53.1",
|
|
86
|
+
"@storybook/addon-designs": "^11.1.2",
|
|
86
87
|
"@storybook/addon-docs": "^9.1.2",
|
|
88
|
+
"@storybook/addon-highlight": "^8.6.14",
|
|
89
|
+
"@storybook/addon-links": "^10.2.10",
|
|
87
90
|
"@storybook/addon-onboarding": "^9.1.2",
|
|
88
|
-
"@storybook/
|
|
91
|
+
"@storybook/addon-storysource": "^8.6.14",
|
|
92
|
+
"@storybook/react-vite": "^9.1.19",
|
|
89
93
|
"@types/node": "^22.13.1",
|
|
90
94
|
"@types/react": "^19.0.8",
|
|
91
95
|
"@types/react-dom": "^19.0.3",
|
|
@@ -104,7 +108,8 @@
|
|
|
104
108
|
"postcss": "^8.5.1",
|
|
105
109
|
"react": "^18.0.0",
|
|
106
110
|
"react-dom": "^18.0.0",
|
|
107
|
-
"storybook": "^9.1.
|
|
111
|
+
"storybook": "^9.1.19",
|
|
112
|
+
"storybook-addon-performance": "^0.17.3",
|
|
108
113
|
"tailwindcss": "^3.4.17",
|
|
109
114
|
"tsup": "^8.4.0",
|
|
110
115
|
"typescript": "~5.7.2",
|