pelatform-ui 1.1.6 → 1.1.7
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.d.ts +1 -3
- package/dist/components.js +12 -12
- package/package.json +6 -6
package/dist/components.d.ts
CHANGED
|
@@ -324,8 +324,6 @@ interface LayoutBlankProps extends BaseComponentProps {
|
|
|
324
324
|
footer?: ReactNode;
|
|
325
325
|
/** Optional logo element displayed at the top */
|
|
326
326
|
logo?: ReactNode;
|
|
327
|
-
/** Destination URL for the logo link */
|
|
328
|
-
logoHref?: string;
|
|
329
327
|
}
|
|
330
328
|
/**
|
|
331
329
|
* LayoutBlank Component
|
|
@@ -343,7 +341,7 @@ interface LayoutBlankProps extends BaseComponentProps {
|
|
|
343
341
|
* </LayoutBlank>
|
|
344
342
|
* ```
|
|
345
343
|
*/
|
|
346
|
-
declare function LayoutBlank({ children, footer, className, logo
|
|
344
|
+
declare function LayoutBlank({ children, footer, className, logo }: LayoutBlankProps): react_jsx_runtime.JSX.Element;
|
|
347
345
|
|
|
348
346
|
/**
|
|
349
347
|
* Body Component
|
package/dist/components.js
CHANGED
|
@@ -229,13 +229,13 @@ function Grid({
|
|
|
229
229
|
|
|
230
230
|
// src/components/layout/blank.tsx
|
|
231
231
|
import { Fragment, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
232
|
-
function LayoutBlank({ children, footer, className, logo
|
|
232
|
+
function LayoutBlank({ children, footer, className, logo }) {
|
|
233
233
|
return /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
234
234
|
/* @__PURE__ */ jsx6("div", { className: "absolute inset-0 isolate overflow-hidden bg-background", children: /* @__PURE__ */ jsx6(
|
|
235
235
|
"div",
|
|
236
236
|
{
|
|
237
237
|
className: cn4(
|
|
238
|
-
"
|
|
238
|
+
"absolute inset-y-0 start-1/2 w-[1200px] -translate-x-1/2",
|
|
239
239
|
"mask-intersect mask-[linear-gradient(black,transparent_320px),linear-gradient(90deg,transparent,black_5%,black_95%,transparent)]"
|
|
240
240
|
),
|
|
241
241
|
children: /* @__PURE__ */ jsx6(Grid, { cellSize: 60, patternOffset: [0.75, 0], className: "text-foreground/15" })
|
|
@@ -249,7 +249,7 @@ function LayoutBlank({ children, footer, className, logo, logoHref }) {
|
|
|
249
249
|
className
|
|
250
250
|
),
|
|
251
251
|
children: [
|
|
252
|
-
/* @__PURE__ */ jsx6("div", { className: "grow basis-0", children: logo && /* @__PURE__ */ jsx6("div", { className: "pt-4", children:
|
|
252
|
+
/* @__PURE__ */ jsx6("div", { className: "grow basis-0", children: logo && /* @__PURE__ */ jsx6("div", { className: "pt-4", children: logo }) }),
|
|
253
253
|
/* @__PURE__ */ jsx6("div", { className: "w-full max-w-4xl px-4 py-16", children }),
|
|
254
254
|
/* @__PURE__ */ jsx6("div", { className: "grow basis-0", children: footer })
|
|
255
255
|
]
|
|
@@ -408,7 +408,7 @@ var GridBackground = ({
|
|
|
408
408
|
},
|
|
409
409
|
i
|
|
410
410
|
));
|
|
411
|
-
return /* @__PURE__ */ jsx10("div", { className: cn8("stripe-grid
|
|
411
|
+
return /* @__PURE__ */ jsx10("div", { className: cn8("stripe-grid absolute inset-0 -z-50 h-full w-full", className), children: /* @__PURE__ */ jsx10("div", { className: "relative h-full w-full overflow-hidden", children: /* @__PURE__ */ jsx10("div", { className: "pointer-events-none absolute top-0 left-0 h-full w-full", "aria-hidden": "true", children: /* @__PURE__ */ jsxs9(
|
|
412
412
|
"div",
|
|
413
413
|
{
|
|
414
414
|
className: cn8("relative mx-auto grid h-full grid-cols-4 grid-rows-1", maxWidthClass),
|
|
@@ -431,13 +431,13 @@ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
|
431
431
|
var Cross = () => /* @__PURE__ */ jsxs10("div", { className: "relative h-6 w-6", children: [
|
|
432
432
|
/* @__PURE__ */ jsx11("div", { className: "absolute left-3 h-6 w-px bg-background" }),
|
|
433
433
|
/* @__PURE__ */ jsx11("div", { className: "absolute top-3 h-px w-6 bg-background" }),
|
|
434
|
-
/* @__PURE__ */ jsx11("div", { className: "-
|
|
434
|
+
/* @__PURE__ */ jsx11("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsx11(PlusIcon, { size: 20, className: "text-border/70 dark:text-border" }) })
|
|
435
435
|
] });
|
|
436
436
|
var Section = ({ children, sectionClassName, className, ...props }) => /* @__PURE__ */ jsx11("section", { className: sectionClassName, ...props, children: /* @__PURE__ */ jsxs10("div", { className: "grid-container relative mx-auto", children: [
|
|
437
437
|
/* @__PURE__ */ jsx11(GridBackground, { maxWidthClass: "grid-container" }),
|
|
438
438
|
/* @__PURE__ */ jsx11("div", { className: cn9(className), children }),
|
|
439
|
-
/* @__PURE__ */ jsx11("div", { className: "-bottom-3 -left-3
|
|
440
|
-
/* @__PURE__ */ jsx11("div", { className: "
|
|
439
|
+
/* @__PURE__ */ jsx11("div", { className: "absolute -bottom-3 -left-3 z-10 hidden h-6 sm:block", children: /* @__PURE__ */ jsx11(Cross, {}) }),
|
|
440
|
+
/* @__PURE__ */ jsx11("div", { className: "absolute -right-3 -bottom-3 z-10 hidden h-6 -translate-x-px sm:block", children: /* @__PURE__ */ jsx11(Cross, {}) })
|
|
441
441
|
] }) });
|
|
442
442
|
|
|
443
443
|
// src/components/layout/site-footer.tsx
|
|
@@ -589,7 +589,7 @@ function BackLink({ Link = DefaultLink, children, href, className }) {
|
|
|
589
589
|
{
|
|
590
590
|
variant: "secondary",
|
|
591
591
|
mode: "icon",
|
|
592
|
-
className: "
|
|
592
|
+
className: "size-7.5! transition-transform duration-100 group-hover:-translate-x-0.5",
|
|
593
593
|
children: /* @__PURE__ */ jsx22(ChevronLeftIcon, {})
|
|
594
594
|
}
|
|
595
595
|
),
|
|
@@ -676,7 +676,7 @@ function CommandMenu({
|
|
|
676
676
|
/* @__PURE__ */ jsx23(
|
|
677
677
|
"kbd",
|
|
678
678
|
{
|
|
679
|
-
className: "
|
|
679
|
+
className: "pointer-events-none absolute top-1/2 right-[5px] hidden h-5 -translate-y-1/2 select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium font-mono text-[10px] opacity-100 sm:flex",
|
|
680
680
|
"aria-label": `Keyboard shortcut: ${keyHint}`,
|
|
681
681
|
children: keyHint
|
|
682
682
|
}
|
|
@@ -1102,7 +1102,7 @@ function FloatingPaths({
|
|
|
1102
1102
|
color: `rgba(15,23,42,${0.1 + i * 0.03})`,
|
|
1103
1103
|
width: 0.5 + i * 0.03
|
|
1104
1104
|
}));
|
|
1105
|
-
return /* @__PURE__ */ jsx29("div", { className: "
|
|
1105
|
+
return /* @__PURE__ */ jsx29("div", { className: "pointer-events-none absolute inset-0 -z-50", children: /* @__PURE__ */ jsx29("svg", { className: cn22("h-full w-full", color), viewBox: "0 0 696 316", fill: "none", children: paths.map((path) => /* @__PURE__ */ jsx29(
|
|
1106
1106
|
motion.path,
|
|
1107
1107
|
{
|
|
1108
1108
|
d: path.d,
|
|
@@ -1323,7 +1323,7 @@ var HexagonBadge = ({ children, classNames }) => {
|
|
|
1323
1323
|
"div",
|
|
1324
1324
|
{
|
|
1325
1325
|
className: cn25(
|
|
1326
|
-
"-
|
|
1326
|
+
"absolute start-2/4 top-2/4 -translate-x-2/4 -translate-y-2/4 leading-none rtl:translate-x-2/4",
|
|
1327
1327
|
classNames?.wraper
|
|
1328
1328
|
),
|
|
1329
1329
|
children
|
|
@@ -1616,7 +1616,7 @@ function LanguageSwitcher({
|
|
|
1616
1616
|
/* @__PURE__ */ jsx34(GlobeIcon, { className: "size-4" }),
|
|
1617
1617
|
/* @__PURE__ */ jsxs23("span", { className: "relative flex grow items-center justify-between gap-2", children: [
|
|
1618
1618
|
label,
|
|
1619
|
-
currentLanguage && /* @__PURE__ */ jsxs23(Badge3, { appearance: "outline", className: "
|
|
1619
|
+
currentLanguage && /* @__PURE__ */ jsxs23(Badge3, { appearance: "outline", className: "absolute end-0 top-1/2 -translate-y-1/2", children: [
|
|
1620
1620
|
currentLanguage.name,
|
|
1621
1621
|
showFlags && currentLanguage.flag && /* @__PURE__ */ jsx34(
|
|
1622
1622
|
Image2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pelatform-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "A Modern and Minimal React UI Library built with TailwindCSS.",
|
|
5
5
|
"author": "Pelatform",
|
|
6
6
|
"license": "MIT",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"animation"
|
|
72
72
|
],
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@pelatform/ui.animation": "0.1.
|
|
75
|
-
"@pelatform/ui.aria": "0.1.
|
|
76
|
-
"@pelatform/ui.base": "0.1.
|
|
77
|
-
"@pelatform/ui.default": "0.1.
|
|
74
|
+
"@pelatform/ui.animation": "0.1.5",
|
|
75
|
+
"@pelatform/ui.aria": "0.1.5",
|
|
76
|
+
"@pelatform/ui.base": "0.1.6",
|
|
77
|
+
"@pelatform/ui.default": "0.1.6",
|
|
78
78
|
"@pelatform/ui.general": "0.1.5",
|
|
79
79
|
"@pelatform/ui.hook": "0.1.2",
|
|
80
80
|
"@pelatform/utils": ">=1.0.6",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@pelatform/tsconfig": "^0.1.3",
|
|
87
87
|
"@tanstack/react-query": "^5.90.12",
|
|
88
|
-
"@types/node": "^25.0.
|
|
88
|
+
"@types/node": "^25.0.2",
|
|
89
89
|
"@types/react": "^19.2.7",
|
|
90
90
|
"lucide-react": "^0.561.0",
|
|
91
91
|
"motion": "^12.23.26",
|