@momo-webplatform/mobase 0.0.41 → 0.0.43
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/package.json +5 -3
- package/publish/cjs/components/Accordion/Accordion.js +1 -1
- package/publish/cjs/components/LightboxGallery/LightboxGallery.js +203 -0
- package/publish/cjs/components/LightboxGallery/index.js +7 -0
- package/publish/cjs/components/TextButton/index.js +2 -1
- package/publish/cjs/index.js +1 -0
- package/publish/cjs/mobase-tw-plugin/plugin.js +4 -4
- package/publish/cjs/tsconfig.lib.tsbuildinfo +1 -1
- package/publish/esm/components/Accordion/Accordion.js +1 -1
- package/publish/esm/components/LightboxGallery/LightboxGallery.d.ts +35 -0
- package/publish/esm/components/LightboxGallery/LightboxGallery.js +171 -0
- package/publish/esm/components/LightboxGallery/index.d.ts +1 -0
- package/publish/esm/components/LightboxGallery/index.js +1 -0
- package/publish/esm/components/TextButton/index.d.ts +1 -1
- package/publish/esm/components/TextButton/index.js +1 -1
- package/publish/esm/index.d.ts +1 -0
- package/publish/esm/index.js +1 -0
- package/publish/esm/mobase-tw-plugin/plugin.js +5 -5
- package/publish/esm/tsconfig.lib.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-webplatform/mobase",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"description": "Mobase is the UI framework upon we build product experiences at MoMo.vn, base on Radix primitives, and Tailwind CSS.",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"dev": "next dev",
|
|
7
|
-
"build": "next build",
|
|
6
|
+
"dev": "rm -rf .next && next dev",
|
|
7
|
+
"build": "rm -rf .next && next build",
|
|
8
8
|
"start": "next start",
|
|
9
9
|
"build:lib": "rm -rf ./publish/ && yarn build:lib:esm && yarn build:lib:cjs",
|
|
10
10
|
"build:lib:cjs": "tsc -p tsconfig.lib.json",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"date-fns": "^3.2.0",
|
|
70
70
|
"deepmerge": "^4.3.1",
|
|
71
71
|
"dlv": "^1.1.3",
|
|
72
|
+
"embla-carousel-react": "^8.0.4",
|
|
72
73
|
"flat": "^3.0.1",
|
|
73
74
|
"framer-motion": "^11.0.24",
|
|
74
75
|
"html-react-parser": "^5.1.10",
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
"react-icons": "^4.11.0",
|
|
89
90
|
"react-indiana-drag-scroll": "^2.2.0",
|
|
90
91
|
"react-use": "^17.5.0",
|
|
92
|
+
"swiper": "^8.4.4",
|
|
91
93
|
"tailwind-merge": "^2.2.0",
|
|
92
94
|
"tailwindcss": "^3.4.3",
|
|
93
95
|
"tailwindcss-animate": "^1.0.7",
|
|
@@ -36,7 +36,7 @@ Accordion.displayName = "AccordionRoot";
|
|
|
36
36
|
const AccordionItem = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Item, { ref: ref, className: (0, utils_1.cn)("border-b border-gray-200", className), ...props })));
|
|
37
37
|
exports.AccordionItem = AccordionItem;
|
|
38
38
|
AccordionItem.displayName = "AccordionItem";
|
|
39
|
-
const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Header, { className: "flex", children: (0, jsx_runtime_1.jsxs)(AccordionPrimitive.Trigger, { ref: ref, className: (0, utils_1.cn)("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 text-gray-900", className), ...props, children: [children, (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200 ml-1" })] }) })));
|
|
39
|
+
const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Header, { className: "flex", children: (0, jsx_runtime_1.jsxs)(AccordionPrimitive.Trigger, { ref: ref, className: (0, utils_1.cn)("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900", className), ...props, children: [children, (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200 ml-1" })] }) })));
|
|
40
40
|
exports.AccordionTrigger = AccordionTrigger;
|
|
41
41
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
42
42
|
const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Content, { ref: ref, className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ", ...props, children: (0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("pb-4 pt-0 text-gray-900 prose-sm", className), children: children }) })));
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.LightboxGallery = exports.LightBoxContent = exports.DialogContent = exports.LightboxThumbnail = exports.LightboxGalleryDialog = void 0;
|
|
30
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
+
const react_1 = require("swiper/react");
|
|
32
|
+
const swiper_1 = require("swiper");
|
|
33
|
+
const DialogPrimitive = __importStar(require("@radix-ui/react-dialog"));
|
|
34
|
+
const react_2 = __importStar(require("react"));
|
|
35
|
+
const IconButton_1 = require("../IconButton");
|
|
36
|
+
const utils_1 = require("../../helpers/utils");
|
|
37
|
+
const lucide_react_1 = require("lucide-react");
|
|
38
|
+
const outline_1 = require("@heroicons/react/24/outline");
|
|
39
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
40
|
+
exports.LightboxGalleryDialog = DialogPrimitive.Root;
|
|
41
|
+
const DialogPortal = DialogPrimitive.Portal;
|
|
42
|
+
const DialogOverlay = react_2.default.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(DialogPrimitive.Overlay, { ref: ref, className: (0, utils_1.cn)("fixed inset-0 bg-black/80 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props })));
|
|
43
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
44
|
+
const CloseDialog = ({ clearActiveIndex }) => {
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(DialogPrimitive.Close, { onClick: () => clearActiveIndex?.(), className: "flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.X, { className: "h-4 w-4 mt-0.5" }), (0, jsx_runtime_1.jsx)("div", { className: "", children: "\u0110\u00F3ng c\u1EEDa s\u1ED5" })] }));
|
|
46
|
+
};
|
|
47
|
+
const LightboxThumbnail = ({ children, src, alt, className, classNameImage, onClick, }) => {
|
|
48
|
+
const handleOnClickThumbnail = () => {
|
|
49
|
+
onClick?.();
|
|
50
|
+
};
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)(DialogPrimitive.Trigger, { className: (0, utils_1.cn)("aspect-[2/3] relative overflow-hidden rounded-lg", className), onClick: handleOnClickThumbnail, children: [children, (0, jsx_runtime_1.jsx)("img", { src: src, alt: alt, className: (0, utils_1.cn)("w-full h-full object-cover rounded-lg", classNameImage) })] }));
|
|
52
|
+
};
|
|
53
|
+
exports.LightboxThumbnail = LightboxThumbnail;
|
|
54
|
+
exports.DialogContent = react_2.default.forwardRef(({ className, children, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(DialogPortal, { children: [(0, jsx_runtime_1.jsx)(DialogOverlay, { className: "bg-black" }), (0, jsx_runtime_1.jsxs)(DialogPrimitive.Content, { ref: ref, className: (0, utils_1.cn)("h-full min-w-full border-none rounded-none z-[999] fixed bg-black left-[50%] top-[50%] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] ", className), ...props, children: [children, (0, jsx_runtime_1.jsx)(CloseDialog, {})] })] })));
|
|
55
|
+
exports.DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
56
|
+
const DialogHeader = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props }));
|
|
57
|
+
DialogHeader.displayName = "DialogHeader";
|
|
58
|
+
const DialogFooter = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
|
|
59
|
+
DialogFooter.displayName = "DialogFooter";
|
|
60
|
+
const DialogTitle = react_2.default.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(DialogPrimitive.Title, { ref: ref, className: (0, utils_1.cn)("text-lg font-semibold leading-none tracking-tight", className), ...props })));
|
|
61
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
62
|
+
const DialogDescription = react_2.default.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(DialogPrimitive.Description, { ref: ref, className: (0, utils_1.cn)("text-sm text-muted-foreground", className), ...props })));
|
|
63
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
64
|
+
const LightBoxContent = ({ images, activeSlideIndex = 0, withSideBar, subHtmlSideBar, classNameSubHtmSideBar, className, isPagination = false, }) => {
|
|
65
|
+
const [activeSlide, setActiveSlide] = (0, react_2.useState)(activeSlideIndex);
|
|
66
|
+
const [titleImage, setTitleImg] = (0, react_2.useState)("");
|
|
67
|
+
const onGetTitleImage = () => {
|
|
68
|
+
const result = lodash_1.default.filter(images, (_, idx) => idx === activeSlideIndex);
|
|
69
|
+
const titleImgDraf = result.length > 0 ? result[0]?.titleImage : "";
|
|
70
|
+
setTitleImg(titleImgDraf);
|
|
71
|
+
};
|
|
72
|
+
(0, react_2.useEffect)(() => {
|
|
73
|
+
setActiveSlide(activeSlideIndex);
|
|
74
|
+
onGetTitleImage();
|
|
75
|
+
}, [activeSlideIndex]);
|
|
76
|
+
const pagination = {
|
|
77
|
+
clickable: true,
|
|
78
|
+
renderBullet(index, className) {
|
|
79
|
+
const classNameParent = (0, utils_1.cn)("aspect-[1/1] min-w-[96px] mt-40 min-h-[76px] !rounded-lg overflow-hidden", className);
|
|
80
|
+
const classNameImage = (0, utils_1.cn)("w-full h-full object-cover rounded-lg");
|
|
81
|
+
if (!images[index]?.url) {
|
|
82
|
+
return "<div></div>";
|
|
83
|
+
}
|
|
84
|
+
return `
|
|
85
|
+
<div class="${classNameParent} ">
|
|
86
|
+
<img class="${classNameImage} " src="${images[index]?.url}" alt="Slide ${index + 1}" />
|
|
87
|
+
</div>
|
|
88
|
+
`;
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
const arrayModule = isPagination
|
|
92
|
+
? [swiper_1.Navigation, swiper_1.Lazy, swiper_1.Pagination]
|
|
93
|
+
: [swiper_1.Navigation, swiper_1.Lazy];
|
|
94
|
+
return ((0, jsx_runtime_1.jsxs)(exports.DialogContent, { className: (0, utils_1.cn)("flex py-0", className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "lightbox flex-1 py-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-end md:justify-center mt-2 w-full", children: (0, jsx_runtime_1.jsxs)("div", { children: [activeSlide ? activeSlide + 1 : 1, " / ", images?.length] }) }), (0, jsx_runtime_1.jsxs)(react_1.Swiper, { initialSlide: activeSlideIndex, onSlideChange: ({ realIndex }) => {
|
|
95
|
+
setActiveSlide(realIndex);
|
|
96
|
+
onGetTitleImage();
|
|
97
|
+
const activeBullet = document.querySelector(".swiper-pagination-bullet-active");
|
|
98
|
+
if (activeBullet) {
|
|
99
|
+
activeBullet.scrollIntoView({
|
|
100
|
+
behavior: "smooth",
|
|
101
|
+
block: "nearest",
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}, onDestroy: () => {
|
|
105
|
+
setActiveSlide(activeSlideIndex);
|
|
106
|
+
onGetTitleImage();
|
|
107
|
+
}, slidesPerView: "auto", className: "swiper lightboxSwiper", navigation: {
|
|
108
|
+
nextEl: ".lightbox .next-lightbox",
|
|
109
|
+
prevEl: ".lightbox .prev-lightbox",
|
|
110
|
+
}, pagination: pagination, modules: arrayModule, lazy: {
|
|
111
|
+
loadPrevNext: true,
|
|
112
|
+
}, children: [images.map((img, index) => ((0, jsx_runtime_1.jsxs)(react_1.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute top-28 bottom-28 left-0 right-0 min-h-0 sm:left-20 sm:right-20", children: (0, jsx_runtime_1.jsx)("img", { src: img.url, alt: "", className: "absolute h-full w-full object-contain", loading: "lazy" }) }), (0, jsx_runtime_1.jsx)("div", { className: "swiper-lazy-preloader swiper-lazy-preloader-white" }), (0, jsx_runtime_1.jsx)("div", { className: "text-sm px-20 text-center text-white/80 absolute bottom-10 my-4 flex items-center justify-center w-full z-[999]", children: titleImage })] }, index))), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { className: "disabled:bg-white/60 prev-lightbox button-swiper translate swiper-cate-merchant absolute inset-y-1/2 left-6 z-10 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white text-white shadow-md duration-200 ease-in-out hover:bg-white/80 hover:shadow-md md:flex", children: (0, jsx_runtime_1.jsx)(outline_1.ChevronLeftIcon, { className: "w-7 text-slate-900" }) }), (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { className: "disabled:bg-white/60 next-lightbox translate swiper-cate-merchant button-swiper absolute inset-y-1/2 right-6 z-10 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white text-white shadow-md duration-300 ease-in-out hover:bg-white/80 hover:shadow-md md:flex", children: (0, jsx_runtime_1.jsx)(outline_1.ChevronRightIcon, { className: "w-7 text-slate-900" }) })] }), (0, jsx_runtime_1.jsx)("style", { children: `
|
|
113
|
+
.lightbox {
|
|
114
|
+
--lightbox-topnav: 112px;
|
|
115
|
+
--lightbox-botnav: 80px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (max-width: 639px) {
|
|
119
|
+
.lightbox {
|
|
120
|
+
--lightbox-topnav: 60px;
|
|
121
|
+
--lightbox-botnav: 80px;
|
|
122
|
+
}
|
|
123
|
+
.lightbox .swiper-button-prev {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.lightbox .swiper-button-next {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
.swiper-pagination{
|
|
131
|
+
justify-content: start !important;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.lightbox-content {
|
|
136
|
+
top: var(--lightbox-topnav) !important;
|
|
137
|
+
height: calc(100% - var(--lightbox-topnav)) !important;
|
|
138
|
+
width: 100% !important;
|
|
139
|
+
}
|
|
140
|
+
.lightboxSwiper {
|
|
141
|
+
width: 100%;
|
|
142
|
+
height: 100%;
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.lightboxSwiper .swiper-slide {
|
|
147
|
+
text-align: center;
|
|
148
|
+
display: -webkit-box;
|
|
149
|
+
display: -ms-flexbox;
|
|
150
|
+
display: -webkit-flex;
|
|
151
|
+
display: flex;
|
|
152
|
+
-webkit-box-pack: center;
|
|
153
|
+
-ms-flex-pack: center;
|
|
154
|
+
-webkit-justify-content: center;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
-webkit-box-align: center;
|
|
157
|
+
-ms-flex-align: center;
|
|
158
|
+
-webkit-align-items: center;
|
|
159
|
+
align-items: center;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.lightboxSwiper.swiper-slide img {
|
|
163
|
+
display: block;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
}
|
|
167
|
+
.swiper-wrapper{
|
|
168
|
+
bottom: 0px;
|
|
169
|
+
}
|
|
170
|
+
.swiper-pagination{
|
|
171
|
+
max-width: 100%;
|
|
172
|
+
width: 100%;
|
|
173
|
+
overflow-x: auto;
|
|
174
|
+
display: flex;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.swiper-pagination-bullet{
|
|
179
|
+
background: unset;
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
.swiper-pagination-bullet-active{
|
|
183
|
+
border: 2px solid white;
|
|
184
|
+
}
|
|
185
|
+
` })] }), withSideBar && ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("hidden md:flex overflow-y-auto bg-white text-gray-900 px-6 pb-4 pt-2 w-full max-w-sm lg:max-w-md", classNameSubHtmSideBar), children: subHtmlSideBar }))] }));
|
|
186
|
+
};
|
|
187
|
+
exports.LightBoxContent = LightBoxContent;
|
|
188
|
+
const LightboxGallery = ({ children, className, open, onOpenChange, }) => {
|
|
189
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_1.cn)("lightbox-gallery ", className), children: (0, jsx_runtime_1.jsx)(exports.LightboxGalleryDialog, { open: open, onOpenChange: onOpenChange, children: react_2.default.Children?.map(children, (child) => {
|
|
190
|
+
if (react_2.default.isValidElement(child)) {
|
|
191
|
+
const updatedProps = {};
|
|
192
|
+
const knownProps = Object.keys(updatedProps).reduce((acc, key) => {
|
|
193
|
+
if (updatedProps[key] !== undefined) {
|
|
194
|
+
acc[key] = updatedProps[key];
|
|
195
|
+
}
|
|
196
|
+
return acc;
|
|
197
|
+
}, {});
|
|
198
|
+
return react_2.default.cloneElement(child, knownProps);
|
|
199
|
+
}
|
|
200
|
+
return null;
|
|
201
|
+
}) }) }));
|
|
202
|
+
};
|
|
203
|
+
exports.LightboxGallery = LightboxGallery;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LightBoxContent = exports.LightboxThumbnail = exports.LightboxGallery = void 0;
|
|
4
|
+
var LightboxGallery_1 = require("./LightboxGallery");
|
|
5
|
+
Object.defineProperty(exports, "LightboxGallery", { enumerable: true, get: function () { return LightboxGallery_1.LightboxGallery; } });
|
|
6
|
+
Object.defineProperty(exports, "LightboxThumbnail", { enumerable: true, get: function () { return LightboxGallery_1.LightboxThumbnail; } });
|
|
7
|
+
Object.defineProperty(exports, "LightBoxContent", { enumerable: true, get: function () { return LightboxGallery_1.LightBoxContent; } });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextButton = void 0;
|
|
3
|
+
exports.textButtonVariants = exports.TextButton = void 0;
|
|
4
4
|
var TextButton_1 = require("./TextButton");
|
|
5
5
|
Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return TextButton_1.TextButton; } });
|
|
6
|
+
Object.defineProperty(exports, "textButtonVariants", { enumerable: true, get: function () { return TextButton_1.textButtonVariants; } });
|
package/publish/cjs/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __exportStar(require("./components/Command"), exports);
|
|
|
42
42
|
__exportStar(require("./components/Combobox"), exports);
|
|
43
43
|
__exportStar(require("./components/Callout"), exports);
|
|
44
44
|
__exportStar(require("./components/SearchBar"), exports);
|
|
45
|
+
__exportStar(require("./components/LightboxGallery"), exports);
|
|
45
46
|
__exportStar(require("./components/Choicebox"), exports);
|
|
46
47
|
__exportStar(require("./mobase-tw-plugin"), exports);
|
|
47
48
|
__exportStar(require("./site"), exports);
|
|
@@ -189,10 +189,10 @@ const mobaseTW = () => {
|
|
|
189
189
|
fontSize: {
|
|
190
190
|
...(0, font_sizes_1.fontSizes)(prefix),
|
|
191
191
|
},
|
|
192
|
-
spacing: {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
},
|
|
192
|
+
// spacing: {
|
|
193
|
+
// unit: `var(--${prefix}-spacing-unit)`,
|
|
194
|
+
// ...createSpacingUnits(prefix),
|
|
195
|
+
// },
|
|
196
196
|
...animations_1.animations,
|
|
197
197
|
},
|
|
198
198
|
},
|