@pelatform/ui 1.5.7 → 1.5.8
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/components.cjs +56 -11
- package/dist/components.d.cts +11 -1
- package/dist/components.d.ts +11 -1
- package/dist/components.js +233 -188
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +5 -5
package/dist/components.cjs
CHANGED
|
@@ -1270,6 +1270,50 @@ function DotsPattern({
|
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
|
+
// src/components/ui/hexagon-badge.tsx
|
|
1274
|
+
|
|
1275
|
+
var HexagonBadge = ({ children, classNames }) => {
|
|
1276
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkCJXIPSTGcjs.cn.call(void 0, "relative shrink-0", _optionalChain([classNames, 'optionalAccess', _45 => _45.base])), children: [
|
|
1277
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1278
|
+
"svg",
|
|
1279
|
+
{
|
|
1280
|
+
className: _chunkCJXIPSTGcjs.cn.call(void 0, "h-full w-full", _optionalChain([classNames, 'optionalAccess', _46 => _46.svg])),
|
|
1281
|
+
width: "44",
|
|
1282
|
+
height: "48",
|
|
1283
|
+
viewBox: "0 0 44 48",
|
|
1284
|
+
fill: "none",
|
|
1285
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1286
|
+
children: [
|
|
1287
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1288
|
+
"path",
|
|
1289
|
+
{
|
|
1290
|
+
d: "M16 2.4641C19.7128 0.320509 24.2872 0.320508 28 2.4641L37.6506 8.0359C41.3634 10.1795 43.6506 14.141 43.6506 \n 18.4282V29.5718C43.6506 33.859 41.3634 37.8205 37.6506 39.9641L28 45.5359C24.2872 47.6795 19.7128 47.6795 16 45.5359L6.34937 \n 39.9641C2.63655 37.8205 0.349365 33.859 0.349365 29.5718V18.4282C0.349365 14.141 2.63655 10.1795 6.34937 8.0359L16 2.4641Z",
|
|
1291
|
+
fill: ""
|
|
1292
|
+
}
|
|
1293
|
+
),
|
|
1294
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1295
|
+
"path",
|
|
1296
|
+
{
|
|
1297
|
+
d: "M16.25 2.89711C19.8081 0.842838 24.1919 0.842837 27.75 2.89711L37.4006 8.46891C40.9587 10.5232 43.1506 14.3196 43.1506 \n 18.4282V29.5718C43.1506 33.6804 40.9587 37.4768 37.4006 39.5311L27.75 45.1029C24.1919 47.1572 19.8081 47.1572 16.25 45.1029L6.59937 \n 39.5311C3.04125 37.4768 0.849365 33.6803 0.849365 29.5718V18.4282C0.849365 14.3196 3.04125 10.5232 6.59937 8.46891L16.25 2.89711Z",
|
|
1298
|
+
stroke: ""
|
|
1299
|
+
}
|
|
1300
|
+
)
|
|
1301
|
+
]
|
|
1302
|
+
}
|
|
1303
|
+
),
|
|
1304
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1305
|
+
"div",
|
|
1306
|
+
{
|
|
1307
|
+
className: _chunkCJXIPSTGcjs.cn.call(void 0,
|
|
1308
|
+
"-translate-y-2/4 -translate-x-2/4 absolute start-2/4 top-2/4 leading-none rtl:translate-x-2/4",
|
|
1309
|
+
_optionalChain([classNames, 'optionalAccess', _47 => _47.wraper])
|
|
1310
|
+
),
|
|
1311
|
+
children
|
|
1312
|
+
}
|
|
1313
|
+
)
|
|
1314
|
+
] });
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1273
1317
|
// src/components/ui/icons.tsx
|
|
1274
1318
|
|
|
1275
1319
|
var Icons = {
|
|
@@ -1741,7 +1785,7 @@ var openFileDialog = (inputRef) => {
|
|
|
1741
1785
|
inputRef.current.click();
|
|
1742
1786
|
};
|
|
1743
1787
|
var getAcceptTypeString = (acceptType, allowNonImageType) => {
|
|
1744
|
-
if (_optionalChain([acceptType, 'optionalAccess',
|
|
1788
|
+
if (_optionalChain([acceptType, 'optionalAccess', _48 => _48.length])) return acceptType.map((item) => `.${item}`).join(", ");
|
|
1745
1789
|
if (allowNonImageType) return "";
|
|
1746
1790
|
return "image/*";
|
|
1747
1791
|
};
|
|
@@ -1789,7 +1833,7 @@ var ImageInput = ({
|
|
|
1789
1833
|
const [keyUpdate, setKeyUpdate] = _react.useState.call(void 0, DEFAULT_NULL_INDEX);
|
|
1790
1834
|
const [isDragging, setIsDragging] = _react.useState.call(void 0, false);
|
|
1791
1835
|
const onImageRemoveAll = _react.useCallback.call(void 0, () => {
|
|
1792
|
-
_optionalChain([onChange, 'optionalCall',
|
|
1836
|
+
_optionalChain([onChange, 'optionalCall', _49 => _49([])]);
|
|
1793
1837
|
}, [onChange]);
|
|
1794
1838
|
const handleClickInput = _react.useCallback.call(void 0, () => {
|
|
1795
1839
|
openFileDialog(inputRef);
|
|
@@ -1821,7 +1865,7 @@ var ImageInput = ({
|
|
|
1821
1865
|
updatedFileList = [fileList[0]];
|
|
1822
1866
|
updatedIndexes.push(0);
|
|
1823
1867
|
}
|
|
1824
|
-
_optionalChain([onChange, 'optionalCall',
|
|
1868
|
+
_optionalChain([onChange, 'optionalCall', _50 => _50(updatedFileList, updatedIndexes)]);
|
|
1825
1869
|
};
|
|
1826
1870
|
const onImageRemove = (index) => {
|
|
1827
1871
|
const updatedList = [...inValue];
|
|
@@ -1832,7 +1876,7 @@ var ImageInput = ({
|
|
|
1832
1876
|
} else {
|
|
1833
1877
|
updatedList.splice(index, 1);
|
|
1834
1878
|
}
|
|
1835
|
-
_optionalChain([onChange, 'optionalCall',
|
|
1879
|
+
_optionalChain([onChange, 'optionalCall', _51 => _51(updatedList)]);
|
|
1836
1880
|
};
|
|
1837
1881
|
const onImageUpdate = (index) => {
|
|
1838
1882
|
setKeyUpdate(index);
|
|
@@ -1882,7 +1926,7 @@ var ImageInput = ({
|
|
|
1882
1926
|
...inputProps
|
|
1883
1927
|
}
|
|
1884
1928
|
),
|
|
1885
|
-
_optionalChain([children, 'optionalCall',
|
|
1929
|
+
_optionalChain([children, 'optionalCall', _52 => _52({
|
|
1886
1930
|
fileList: inValue,
|
|
1887
1931
|
onImageUpload,
|
|
1888
1932
|
onImageRemove,
|
|
@@ -1925,11 +1969,11 @@ function LanguageSwitcher({
|
|
|
1925
1969
|
function handleLanguageChange(newLocale) {
|
|
1926
1970
|
if (newLocale === currentLocale) return;
|
|
1927
1971
|
startTransition(() => {
|
|
1928
|
-
const maybePromise = _optionalChain([onLocaleChange, 'optionalCall',
|
|
1972
|
+
const maybePromise = _optionalChain([onLocaleChange, 'optionalCall', _53 => _53(newLocale)]);
|
|
1929
1973
|
return maybePromise;
|
|
1930
1974
|
});
|
|
1931
1975
|
}
|
|
1932
|
-
if (!i18nEnabled && (_nullishCoalesce(_optionalChain([languages, 'optionalAccess',
|
|
1976
|
+
if (!i18nEnabled && (_nullishCoalesce(_optionalChain([languages, 'optionalAccess', _54 => _54.length]), () => ( 0))) <= 1) {
|
|
1933
1977
|
return null;
|
|
1934
1978
|
}
|
|
1935
1979
|
if (type === "dropdown") {
|
|
@@ -2257,14 +2301,14 @@ var MovingBorder = ({
|
|
|
2257
2301
|
const pathRef = _react.useRef.call(void 0, null);
|
|
2258
2302
|
const progress = _react2.useMotionValue.call(void 0, 0);
|
|
2259
2303
|
_react2.useAnimationFrame.call(void 0, (time) => {
|
|
2260
|
-
const length = _optionalChain([pathRef, 'access',
|
|
2304
|
+
const length = _optionalChain([pathRef, 'access', _55 => _55.current, 'optionalAccess', _56 => _56.getTotalLength, 'call', _57 => _57()]);
|
|
2261
2305
|
if (length) {
|
|
2262
2306
|
const pxPerMillisecond = length / duration;
|
|
2263
2307
|
progress.set(time * pxPerMillisecond % length);
|
|
2264
2308
|
}
|
|
2265
2309
|
});
|
|
2266
|
-
const x = _react2.useTransform.call(void 0, progress, (val) => _optionalChain([pathRef, 'access',
|
|
2267
|
-
const y = _react2.useTransform.call(void 0, progress, (val) => _optionalChain([pathRef, 'access',
|
|
2310
|
+
const x = _react2.useTransform.call(void 0, progress, (val) => _optionalChain([pathRef, 'access', _58 => _58.current, 'optionalAccess', _59 => _59.getPointAtLength, 'call', _60 => _60(val), 'access', _61 => _61.x]));
|
|
2311
|
+
const y = _react2.useTransform.call(void 0, progress, (val) => _optionalChain([pathRef, 'access', _62 => _62.current, 'optionalAccess', _63 => _63.getPointAtLength, 'call', _64 => _64(val), 'access', _65 => _65.y]));
|
|
2268
2312
|
const transform = _react2.useMotionTemplate`translateX(${x}px) translateY(${y}px) translateX(-50%) translateY(-50%)`;
|
|
2269
2313
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2270
2314
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2670,4 +2714,5 @@ function SatoshiFontCSS() {
|
|
|
2670
2714
|
|
|
2671
2715
|
|
|
2672
2716
|
|
|
2673
|
-
|
|
2717
|
+
|
|
2718
|
+
exports.AlertComingsoon = AlertComingsoon; exports.AlertNotification = AlertNotification; exports.AlertToast = AlertToast; exports.Announcement = Announcement; exports.AnnouncementTag = AnnouncementTag; exports.AnnouncementTitle = AnnouncementTitle; exports.BackLink = BackLink; exports.BackgroundPaths = BackgroundPaths; exports.Body = Body; exports.Book = Book; exports.CodeDisplay = CodeDisplay; exports.ComingSoon = ComingSoon; exports.CommandMenu = CommandMenu; exports.ConfirmDismissDialog = ConfirmDismissDialog; exports.DEFAULT_DATA_URL_KEY = DEFAULT_DATA_URL_KEY; exports.DEFAULT_NULL_INDEX = DEFAULT_NULL_INDEX; exports.DefaultImage = DefaultImage; exports.DefaultLink = DefaultLink; exports.DefaultNavigate = DefaultNavigate; exports.DotsPattern = DotsPattern; exports.DownloadFile = DownloadFile; exports.ErrorComponents = ErrorComponents; exports.ExtraLink = ExtraLink; exports.FloatingPaths = FloatingPaths; exports.Grid = Grid; exports.GridBackground = GridBackground; exports.HexagonBadge = HexagonBadge; exports.Icons = Icons; exports.ImageInput = ImageInput; exports.LanguageSwitcher = LanguageSwitcher; exports.LayoutAuth = LayoutAuth; exports.LayoutBlank = LayoutBlank; exports.Logo = Logo; exports.MainNav = MainNav; exports.MaxWidthWrapper = MaxWidthWrapper; exports.MobileNav = MobileNav; exports.MobileNavItemRenderer = MobileNavItemRenderer; exports.ModeSwitcher = ModeSwitcher; exports.MovingBorder = MovingBorder; exports.MovingLabel = MovingLabel; exports.QueryProvider = QueryProvider; exports.RecaptchaPopover = RecaptchaPopover; exports.SatoshiFontCSS = SatoshiFontCSS; exports.ScreenLoader = ScreenLoader; exports.Section = Section; exports.SiteFooter = SiteFooter; exports.SiteHeader = SiteHeader; exports.Stack = Stack; exports.Subscribe = Subscribe; exports.ThemeProvider = ThemeProvider; exports.Toolbar = Toolbar; exports.ToolbarActions = ToolbarActions; exports.ToolbarHeading = ToolbarHeading; exports.ToolbarTitle = ToolbarTitle; exports.UserAvatar = UserAvatar; exports.Video = Video; exports.Wrapper = Wrapper; exports.Youtube = Youtube; exports.cssFontFace = cssFontFace; exports.getAcceptTypeString = getAcceptTypeString; exports.getBase64 = getBase64; exports.getImage = getImage; exports.getInitials = getInitials; exports.getListFiles = getListFiles; exports.handleMenuClick = handleMenuClick; exports.openFileDialog = openFileDialog; exports.satoshiFontUrl = satoshiFontUrl;
|
package/dist/components.d.cts
CHANGED
|
@@ -1907,6 +1907,16 @@ interface GridBackgroundProps {
|
|
|
1907
1907
|
*/
|
|
1908
1908
|
declare const GridBackground: FC<GridBackgroundProps>;
|
|
1909
1909
|
|
|
1910
|
+
interface HexagonBadgeProps {
|
|
1911
|
+
children?: ReactNode;
|
|
1912
|
+
classNames?: {
|
|
1913
|
+
base?: string;
|
|
1914
|
+
svg?: string;
|
|
1915
|
+
wraper?: string;
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
declare const HexagonBadge: ({ children, classNames }: HexagonBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1919
|
+
|
|
1910
1920
|
/**
|
|
1911
1921
|
* Props interface for icon components
|
|
1912
1922
|
* Extends standard HTML SVG element attributes for full customization
|
|
@@ -2929,4 +2939,4 @@ interface RecaptchaPopoverProps {
|
|
|
2929
2939
|
*/
|
|
2930
2940
|
declare function RecaptchaPopover({ open, onOpenChange, onVerify, trigger, verifyButtonText, }: RecaptchaPopoverProps): react_jsx_runtime.JSX.Element;
|
|
2931
2941
|
|
|
2932
|
-
export { AlertComingsoon, AlertNotification, AlertToast, type AlertToastOptions, Announcement, AnnouncementTag, AnnouncementTitle, BackLink, BackgroundPaths, Body, Book, CodeDisplay, ComingSoon, type ComingSoonProps, CommandMenu, type CommandMenuProps, ConfirmDismissDialog, type ConfirmDismissDialogProps, DEFAULT_DATA_URL_KEY, DEFAULT_NULL_INDEX, DefaultImage, DefaultLink, DefaultNavigate, DotsPattern, DownloadFile, ErrorComponents, type ErrorComponentsProps, ExtraLink, FloatingPaths, Grid, GridBackground, Icons, ImageInput, type ImageInputFile, type ImageInputFiles, type ImageInputProps, LanguageSwitcher, type LanguageSwitcherProps, LayoutAuth, LayoutBlank, type LayoutBlankProps, type LocaleOption, Logo, MainNav, MaxWidthWrapper, MobileNav, MobileNavItemRenderer, ModeSwitcher, type ModeSwitcherProps, MovingBorder, MovingLabel, type NavItem, type NavigationProps, QueryProvider, RecaptchaPopover, SatoshiFontCSS, ScreenLoader, type ScreenLoaderProps, Section, type SharedImage, type SharedLink, type SharedNavigate, SiteFooter, SiteHeader, Stack, Subscribe, type SubscribeProps, ThemeProvider, Toolbar, ToolbarActions, ToolbarHeading, ToolbarTitle, UserAvatar, Video, Wrapper, Youtube, cssFontFace, getAcceptTypeString, getBase64, getImage, getInitials, getListFiles, handleMenuClick, openFileDialog, satoshiFontUrl };
|
|
2942
|
+
export { AlertComingsoon, AlertNotification, AlertToast, type AlertToastOptions, Announcement, AnnouncementTag, AnnouncementTitle, BackLink, BackgroundPaths, Body, Book, CodeDisplay, ComingSoon, type ComingSoonProps, CommandMenu, type CommandMenuProps, ConfirmDismissDialog, type ConfirmDismissDialogProps, DEFAULT_DATA_URL_KEY, DEFAULT_NULL_INDEX, DefaultImage, DefaultLink, DefaultNavigate, DotsPattern, DownloadFile, ErrorComponents, type ErrorComponentsProps, ExtraLink, FloatingPaths, Grid, GridBackground, HexagonBadge, Icons, ImageInput, type ImageInputFile, type ImageInputFiles, type ImageInputProps, LanguageSwitcher, type LanguageSwitcherProps, LayoutAuth, LayoutBlank, type LayoutBlankProps, type LocaleOption, Logo, MainNav, MaxWidthWrapper, MobileNav, MobileNavItemRenderer, ModeSwitcher, type ModeSwitcherProps, MovingBorder, MovingLabel, type NavItem, type NavigationProps, QueryProvider, RecaptchaPopover, SatoshiFontCSS, ScreenLoader, type ScreenLoaderProps, Section, type SharedImage, type SharedLink, type SharedNavigate, SiteFooter, SiteHeader, Stack, Subscribe, type SubscribeProps, ThemeProvider, Toolbar, ToolbarActions, ToolbarHeading, ToolbarTitle, UserAvatar, Video, Wrapper, Youtube, cssFontFace, getAcceptTypeString, getBase64, getImage, getInitials, getListFiles, handleMenuClick, openFileDialog, satoshiFontUrl };
|
package/dist/components.d.ts
CHANGED
|
@@ -1907,6 +1907,16 @@ interface GridBackgroundProps {
|
|
|
1907
1907
|
*/
|
|
1908
1908
|
declare const GridBackground: FC<GridBackgroundProps>;
|
|
1909
1909
|
|
|
1910
|
+
interface HexagonBadgeProps {
|
|
1911
|
+
children?: ReactNode;
|
|
1912
|
+
classNames?: {
|
|
1913
|
+
base?: string;
|
|
1914
|
+
svg?: string;
|
|
1915
|
+
wraper?: string;
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
declare const HexagonBadge: ({ children, classNames }: HexagonBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1919
|
+
|
|
1910
1920
|
/**
|
|
1911
1921
|
* Props interface for icon components
|
|
1912
1922
|
* Extends standard HTML SVG element attributes for full customization
|
|
@@ -2929,4 +2939,4 @@ interface RecaptchaPopoverProps {
|
|
|
2929
2939
|
*/
|
|
2930
2940
|
declare function RecaptchaPopover({ open, onOpenChange, onVerify, trigger, verifyButtonText, }: RecaptchaPopoverProps): react_jsx_runtime.JSX.Element;
|
|
2931
2941
|
|
|
2932
|
-
export { AlertComingsoon, AlertNotification, AlertToast, type AlertToastOptions, Announcement, AnnouncementTag, AnnouncementTitle, BackLink, BackgroundPaths, Body, Book, CodeDisplay, ComingSoon, type ComingSoonProps, CommandMenu, type CommandMenuProps, ConfirmDismissDialog, type ConfirmDismissDialogProps, DEFAULT_DATA_URL_KEY, DEFAULT_NULL_INDEX, DefaultImage, DefaultLink, DefaultNavigate, DotsPattern, DownloadFile, ErrorComponents, type ErrorComponentsProps, ExtraLink, FloatingPaths, Grid, GridBackground, Icons, ImageInput, type ImageInputFile, type ImageInputFiles, type ImageInputProps, LanguageSwitcher, type LanguageSwitcherProps, LayoutAuth, LayoutBlank, type LayoutBlankProps, type LocaleOption, Logo, MainNav, MaxWidthWrapper, MobileNav, MobileNavItemRenderer, ModeSwitcher, type ModeSwitcherProps, MovingBorder, MovingLabel, type NavItem, type NavigationProps, QueryProvider, RecaptchaPopover, SatoshiFontCSS, ScreenLoader, type ScreenLoaderProps, Section, type SharedImage, type SharedLink, type SharedNavigate, SiteFooter, SiteHeader, Stack, Subscribe, type SubscribeProps, ThemeProvider, Toolbar, ToolbarActions, ToolbarHeading, ToolbarTitle, UserAvatar, Video, Wrapper, Youtube, cssFontFace, getAcceptTypeString, getBase64, getImage, getInitials, getListFiles, handleMenuClick, openFileDialog, satoshiFontUrl };
|
|
2942
|
+
export { AlertComingsoon, AlertNotification, AlertToast, type AlertToastOptions, Announcement, AnnouncementTag, AnnouncementTitle, BackLink, BackgroundPaths, Body, Book, CodeDisplay, ComingSoon, type ComingSoonProps, CommandMenu, type CommandMenuProps, ConfirmDismissDialog, type ConfirmDismissDialogProps, DEFAULT_DATA_URL_KEY, DEFAULT_NULL_INDEX, DefaultImage, DefaultLink, DefaultNavigate, DotsPattern, DownloadFile, ErrorComponents, type ErrorComponentsProps, ExtraLink, FloatingPaths, Grid, GridBackground, HexagonBadge, Icons, ImageInput, type ImageInputFile, type ImageInputFiles, type ImageInputProps, LanguageSwitcher, type LanguageSwitcherProps, LayoutAuth, LayoutBlank, type LayoutBlankProps, type LocaleOption, Logo, MainNav, MaxWidthWrapper, MobileNav, MobileNavItemRenderer, ModeSwitcher, type ModeSwitcherProps, MovingBorder, MovingLabel, type NavItem, type NavigationProps, QueryProvider, RecaptchaPopover, SatoshiFontCSS, ScreenLoader, type ScreenLoaderProps, Section, type SharedImage, type SharedLink, type SharedNavigate, SiteFooter, SiteHeader, Stack, Subscribe, type SubscribeProps, ThemeProvider, Toolbar, ToolbarActions, ToolbarHeading, ToolbarTitle, UserAvatar, Video, Wrapper, Youtube, cssFontFace, getAcceptTypeString, getBase64, getImage, getInitials, getListFiles, handleMenuClick, openFileDialog, satoshiFontUrl };
|