@plyaz/ui 0.1.13 → 0.1.15
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/types/components/Box/Box.d.ts +1 -1
- package/dist/types/components/Container/Container.d.ts +2 -2
- package/dist/types/components/ExternalLink/ExternalLink.d.ts +2 -2
- package/dist/types/components/Flex/Flex.d.ts +2 -2
- package/dist/types/components/Grid/Grid.d.ts +2 -2
- package/dist/types/components/Heading/Heading.d.ts +2 -2
- package/dist/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/types/components/Section/Section.d.ts +2 -2
- package/dist/types/components/Stack/Stack.d.ts +2 -2
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/index.d.ts +20 -11
- package/dist/types/main.d.ts +1 -11
- package/dist/ui.cjs10.js +1 -1
- package/dist/ui.cjs11.js +1 -1
- package/dist/ui.cjs3.js +1 -1
- package/dist/ui.cjs4.js +1 -1
- package/dist/ui.cjs5.js +1 -1
- package/dist/ui.cjs6.js +1 -1
- package/dist/ui.cjs7.js +1 -1
- package/dist/ui.cjs8.js +1 -1
- package/dist/ui.cjs9.js +1 -1
- package/dist/ui.es10.js +12 -11
- package/dist/ui.es11.js +6 -5
- package/dist/ui.es3.js +11 -10
- package/dist/ui.es4.js +17 -16
- package/dist/ui.es5.js +7 -6
- package/dist/ui.es6.js +6 -5
- package/dist/ui.es7.js +5 -4
- package/dist/ui.es8.js +13 -12
- package/dist/ui.es9.js +3 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ElementType } from '../../types/type';
|
|
3
|
-
interface BoxProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
export interface BoxProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
element?: ElementType;
|
|
6
6
|
className?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ElementType } from '../../types/type';
|
|
3
|
-
interface ContainerProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
4
|
className?: string;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
element?: ElementType;
|
|
7
7
|
}
|
|
8
8
|
export declare const Container: ({ className, children, element, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export
|
|
9
|
+
export default Container;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
interface ExternalLinkProps extends React.HTMLAttributes<HTMLAnchorElement> {
|
|
2
|
+
export interface ExternalLinkProps extends React.HTMLAttributes<HTMLAnchorElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
className?: string;
|
|
5
5
|
href: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const ExternalLink: ({ children, className, href, ...props }: ExternalLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export
|
|
8
|
+
export default ExternalLink;
|
|
@@ -12,7 +12,7 @@ declare const WRAP_MAPPER: {
|
|
|
12
12
|
nowrap: string;
|
|
13
13
|
"wrap-reverse": string;
|
|
14
14
|
};
|
|
15
|
-
interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
15
|
+
export interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
gap?: string;
|
|
18
18
|
direction?: keyof typeof DIRECTION_MAPPER;
|
|
@@ -23,4 +23,4 @@ interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
23
23
|
element?: ElementType;
|
|
24
24
|
}
|
|
25
25
|
export declare const Flex: ({ children, gap, direction, justify, align, wrap, className, element, ...props }: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export
|
|
26
|
+
export default Flex;
|
|
@@ -16,7 +16,7 @@ export declare const ALIGN_MAPPER: {
|
|
|
16
16
|
baseline: string;
|
|
17
17
|
stretch: string;
|
|
18
18
|
};
|
|
19
|
-
interface GridProps extends React.HTMLAttributes<HTMLElement> {
|
|
19
|
+
export interface GridProps extends React.HTMLAttributes<HTMLElement> {
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
className?: string;
|
|
22
22
|
cols?: string;
|
|
@@ -27,4 +27,4 @@ interface GridProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
27
27
|
element?: ElementType;
|
|
28
28
|
}
|
|
29
29
|
export declare const Grid: ({ children, className, cols, rows, gap, justify, align, element, ...props }: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export
|
|
30
|
+
export default Grid;
|
|
@@ -10,11 +10,11 @@ declare const SIZE_MAP: {
|
|
|
10
10
|
readonly "4xl": "4xl";
|
|
11
11
|
};
|
|
12
12
|
export type HeadingType = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
13
|
-
interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
13
|
+
export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
className?: string;
|
|
16
16
|
element: HeadingType;
|
|
17
17
|
size: keyof typeof SIZE_MAP;
|
|
18
18
|
}
|
|
19
19
|
export declare const Heading: ({ children, element, className, size, ...props }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export
|
|
20
|
+
export default Heading;
|
|
@@ -5,10 +5,10 @@ declare const SIZE_MAP: {
|
|
|
5
5
|
readonly base: "base";
|
|
6
6
|
readonly lg: "lg";
|
|
7
7
|
};
|
|
8
|
-
interface ParagraphProps extends React.HTMLAttributes<HTMLElement> {
|
|
8
|
+
export interface ParagraphProps extends React.HTMLAttributes<HTMLElement> {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
className?: string;
|
|
11
11
|
size: keyof typeof SIZE_MAP;
|
|
12
12
|
}
|
|
13
13
|
export declare const Paragraph: ({ children, className, size, ...props }: ParagraphProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export
|
|
14
|
+
export default Paragraph;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
interface SectionProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
|
+
export interface SectionProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export declare const Section: ({ className, children, ...props }: SectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export default Section;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ElementType } from '../../types/type';
|
|
3
|
-
interface StackProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
export interface StackProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
direction?: "vertical" | "horizontal";
|
|
@@ -8,4 +8,4 @@ interface StackProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
8
8
|
element?: ElementType;
|
|
9
9
|
}
|
|
10
10
|
export declare const Stack: ({ children, direction, spacing, element, className, ...props }: StackProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export
|
|
11
|
+
export default Stack;
|
|
@@ -27,7 +27,7 @@ export declare const TEXT_WEIGHT_MAPPER: {
|
|
|
27
27
|
readonly light: "font-light";
|
|
28
28
|
};
|
|
29
29
|
type TextElement = "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
30
|
-
interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
30
|
+
export interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
31
31
|
className?: string;
|
|
32
32
|
children: React.ReactNode;
|
|
33
33
|
element: TextElement;
|
|
@@ -36,4 +36,4 @@ interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
36
36
|
size?: keyof typeof SIZES_MAPPER;
|
|
37
37
|
}
|
|
38
38
|
export declare const Text: ({ className, children, element, weight, variant, size, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
export
|
|
39
|
+
export default Text;
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export {
|
|
1
|
+
export { default as Box } from './Box/Box';
|
|
2
|
+
export type { BoxProps } from './Box/Box';
|
|
3
|
+
export { default as Container } from './Container/Container';
|
|
4
|
+
export type { ContainerProps } from './Container/Container';
|
|
5
|
+
export { default as Flex } from './Flex/Flex';
|
|
6
|
+
export type { FlexProps } from './Flex/Flex';
|
|
7
|
+
export { default as Grid } from './Grid/Grid';
|
|
8
|
+
export type { GridProps } from './Grid/Grid';
|
|
9
|
+
export { default as Heading } from './Heading/Heading';
|
|
10
|
+
export type { HeadingProps } from './Heading/Heading';
|
|
11
|
+
export { default as ExternalLink } from './ExternalLink/ExternalLink';
|
|
12
|
+
export type { ExternalLinkProps } from './ExternalLink/ExternalLink';
|
|
13
|
+
export { default as Paragraph } from './Paragraph/Paragraph';
|
|
14
|
+
export type { ParagraphProps } from './Paragraph/Paragraph';
|
|
15
|
+
export { default as Section } from './Section/Section';
|
|
16
|
+
export type { SectionProps } from './Section/Section';
|
|
17
|
+
export { default as Stack } from './Stack/Stack';
|
|
18
|
+
export type { StackProps } from './Stack/Stack';
|
|
19
|
+
export { default as Text } from './Text/Text';
|
|
20
|
+
export type { TextProps } from './Text/Text';
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Container } from './components/Container/Container';
|
|
3
|
-
import { Flex } from './components/Flex/Flex';
|
|
4
|
-
import { Grid } from './components/Grid/Grid';
|
|
5
|
-
import { Heading } from './components/Heading/Heading';
|
|
6
|
-
import { ExternalLink } from './components/ExternalLink/ExternalLink';
|
|
7
|
-
import { Paragraph } from './components/Paragraph/Paragraph';
|
|
8
|
-
import { Section } from './components/Section/Section';
|
|
9
|
-
import { Stack } from './components/Stack/Stack';
|
|
10
|
-
import { Text } from './components/Text/Text';
|
|
11
|
-
export { Box, Container, Flex, Grid, Heading, ExternalLink, Paragraph, Section, Stack, Text, };
|
|
1
|
+
export * from './components';
|
package/dist/ui.cjs10.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./ui.cjs12.js");require("react");const x=require("./ui.cjs13.js"),n=require("./ui.cjs2.js"),e=({children:t,direction:r="horizontal",spacing:o="space-x-2",element:s,className:c,...l})=>{const i=r==="vertical"?"flex-col":"flex-row";return u.jsxRuntimeExports.jsx(n.Box,{element:s,className:x.clsx("flex",i,o,c),...l,children:t})};exports.Stack=e;exports.default=e;
|
package/dist/ui.cjs11.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./ui.cjs12.js");require("react");const d=require("./ui.cjs13.js"),l={body:"font-sans",heading:"font-sans",caption:"font-sans"},c={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},s={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"},o=({className:n,children:a,element:m,weight:t,variant:e,size:x,...r})=>{const i=m;return u.jsxRuntimeExports.jsx(i,{className:d.clsx("font-normal text-base font-sans",x&&c[x],t&&s[t],e&&l[e],n),"data-testid":"text",...r,children:a})};exports.TEXT_WEIGHT_MAPPER=s;exports.Text=o;exports.VARIANT_MAPPER=l;exports.default=o;
|
package/dist/ui.cjs3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./ui.cjs12.js");require("react");const x=require("./ui.cjs13.js"),n=require("./ui.cjs2.js"),e=({className:t="",children:r,element:s,...o})=>u.jsxRuntimeExports.jsx(n.Box,{element:s,className:x.clsx("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",t),...o,children:r});exports.Container=e;exports.default=e;
|
package/dist/ui.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("./ui.cjs12.js");require("react");const f=require("./ui.cjs13.js"),w=require("./ui.cjs2.js"),l=require("./ui.cjs5.js"),i={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},v={wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"},x=({children:t,gap:c,direction:e,justify:r,align:o,wrap:s,className:u="",element:n,...a})=>P.jsxRuntimeExports.jsx(w.Box,{element:n,className:f.clsx("flex",e&&i[e],r&&l.JUASTIFY_MAPPER[r],o&&l.ALIGN_MAPPER[o],s&&v[s],c,u),...a,children:t});exports.Flex=x;exports.default=x;
|
package/dist/ui.cjs5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const j=require("./ui.cjs12.js");require("react");const m=require("./ui.cjs13.js"),y=require("./ui.cjs2.js"),s={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},r={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},n=({children:i,className:u,cols:c,rows:o,gap:a,justify:e,align:t,element:d,...l})=>j.jsxRuntimeExports.jsx(y.Box,{element:d,className:m.clsx("grid",c,o,a,e&&s[e],t&&r[t],u),...l,children:i});exports.ALIGN_MAPPER=r;exports.Grid=n;exports.JUASTIFY_MAPPER=s;exports.default=n;
|
package/dist/ui.cjs6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./ui.cjs12.js");require("react");const u=require("./ui.cjs11.js"),n={xs:"xs",sm:"sm",base:"base",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl","4xl":"4xl"},e=({children:t,element:s,className:i,size:l,...x})=>r.jsxRuntimeExports.jsx(u.Text,{element:s,weight:"medium",variant:"heading",className:i,size:n[l],...x,children:t});exports.Heading=e;exports.default=e;
|
package/dist/ui.cjs7.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./ui.cjs12.js");require("react");const i=require("./ui.cjs13.js"),e=({children:t,className:r,href:n,...l})=>u.jsxRuntimeExports.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer","data-testid":"link",className:i.clsx("text-blue-600 hover:underline visited:text-purple-600 active:text-blue-900 focus:outline-none ",r),...l,children:t});exports.ExternalLink=e;exports.default=e;
|
package/dist/ui.cjs8.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./ui.cjs12.js");require("react");const i=require("./ui.cjs11.js"),n={xs:"xs",sm:"sm",base:"base",lg:"lg"},e=({children:t,className:r,size:s,...a})=>u.jsxRuntimeExports.jsx(i.Text,{element:"p",weight:"normal",variant:"body",className:r,size:n[s],...a,children:t});exports.Paragraph=e;exports.default=e;
|
package/dist/ui.cjs9.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./ui.cjs12.js");require("react");const u=require("./ui.cjs13.js"),i=require("./ui.cjs2.js"),e=({className:t="",children:s,...r})=>o.jsxRuntimeExports.jsx(i.Box,{element:"section",className:u.clsx("p-4 sm:p-6 my-4 mx-2",t),...r,children:s});exports.Section=e;exports.default=e;
|
package/dist/ui.es10.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as a } from "./ui.es12.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { Box as
|
|
3
|
+
import { clsx as c } from "./ui.es13.js";
|
|
4
|
+
import { Box as i } from "./ui.es2.js";
|
|
5
5
|
const j = ({
|
|
6
6
|
children: o,
|
|
7
7
|
direction: r = "horizontal",
|
|
8
8
|
spacing: t = "space-x-2",
|
|
9
9
|
element: e,
|
|
10
|
-
className:
|
|
11
|
-
...
|
|
10
|
+
className: s,
|
|
11
|
+
...x
|
|
12
12
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
13
|
+
const l = r === "vertical" ? "flex-col" : "flex-row";
|
|
14
|
+
return /* @__PURE__ */ a.jsx(
|
|
15
|
+
i,
|
|
16
16
|
{
|
|
17
17
|
element: e,
|
|
18
|
-
className:
|
|
19
|
-
...
|
|
18
|
+
className: c("flex", l, t, s),
|
|
19
|
+
...x,
|
|
20
20
|
children: o
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
j as Stack
|
|
25
|
+
j as Stack,
|
|
26
|
+
j as default
|
|
26
27
|
};
|
package/dist/ui.es11.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as a } from "./ui.es12.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { clsx as f } from "./ui.es13.js";
|
|
4
|
-
const
|
|
4
|
+
const d = {
|
|
5
5
|
body: "font-sans",
|
|
6
6
|
heading: "font-sans",
|
|
7
7
|
caption: "font-sans"
|
|
8
|
-
},
|
|
8
|
+
}, r = {
|
|
9
9
|
xs: "text-xs",
|
|
10
10
|
sm: "text-sm",
|
|
11
11
|
base: "text-base",
|
|
@@ -40,9 +40,9 @@ const r = {
|
|
|
40
40
|
{
|
|
41
41
|
className: f(
|
|
42
42
|
"font-normal text-base font-sans",
|
|
43
|
-
l &&
|
|
43
|
+
l && r[l],
|
|
44
44
|
t && i[t],
|
|
45
|
-
x &&
|
|
45
|
+
x && d[x],
|
|
46
46
|
o
|
|
47
47
|
),
|
|
48
48
|
"data-testid": "text",
|
|
@@ -54,5 +54,6 @@ const r = {
|
|
|
54
54
|
export {
|
|
55
55
|
i as TEXT_WEIGHT_MAPPER,
|
|
56
56
|
p as Text,
|
|
57
|
-
|
|
57
|
+
d as VARIANT_MAPPER,
|
|
58
|
+
p as default
|
|
58
59
|
};
|
package/dist/ui.es3.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as x } from "./ui.es12.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { Box as
|
|
5
|
-
const
|
|
3
|
+
import { clsx as s } from "./ui.es13.js";
|
|
4
|
+
import { Box as p } from "./ui.es2.js";
|
|
5
|
+
const n = ({
|
|
6
6
|
className: o = "",
|
|
7
7
|
children: m,
|
|
8
8
|
element: r,
|
|
9
|
-
...
|
|
10
|
-
}) => /* @__PURE__ */
|
|
11
|
-
|
|
9
|
+
...t
|
|
10
|
+
}) => /* @__PURE__ */ x.jsx(
|
|
11
|
+
p,
|
|
12
12
|
{
|
|
13
13
|
element: r,
|
|
14
|
-
className:
|
|
15
|
-
...
|
|
14
|
+
className: s("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl", o),
|
|
15
|
+
...t,
|
|
16
16
|
children: m
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
n as Container,
|
|
21
|
+
n as default
|
|
21
22
|
};
|
package/dist/ui.es4.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "./ui.es12.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { Box as
|
|
5
|
-
import { JUASTIFY_MAPPER as
|
|
3
|
+
import { clsx as a } from "./ui.es13.js";
|
|
4
|
+
import { Box as w } from "./ui.es2.js";
|
|
5
|
+
import { JUASTIFY_MAPPER as P, ALIGN_MAPPER as c } from "./ui.es5.js";
|
|
6
6
|
const A = {
|
|
7
7
|
row: "flex-row",
|
|
8
8
|
col: "flex-col",
|
|
@@ -13,32 +13,33 @@ const A = {
|
|
|
13
13
|
nowrap: "flex-nowrap",
|
|
14
14
|
"wrap-reverse": "flex-wrap-reverse"
|
|
15
15
|
}, _ = ({
|
|
16
|
-
children:
|
|
17
|
-
gap:
|
|
16
|
+
children: l,
|
|
17
|
+
gap: x,
|
|
18
18
|
direction: r,
|
|
19
19
|
justify: e,
|
|
20
20
|
align: o,
|
|
21
21
|
wrap: s,
|
|
22
|
-
className:
|
|
23
|
-
element:
|
|
22
|
+
className: f = "",
|
|
23
|
+
element: p,
|
|
24
24
|
...m
|
|
25
25
|
}) => /* @__PURE__ */ t.jsx(
|
|
26
|
-
|
|
26
|
+
w,
|
|
27
27
|
{
|
|
28
|
-
element:
|
|
29
|
-
className:
|
|
28
|
+
element: p,
|
|
29
|
+
className: a(
|
|
30
30
|
"flex",
|
|
31
31
|
r && A[r],
|
|
32
|
-
e &&
|
|
33
|
-
o &&
|
|
32
|
+
e && P[e],
|
|
33
|
+
o && c[o],
|
|
34
34
|
s && R[s],
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
x,
|
|
36
|
+
f
|
|
37
37
|
),
|
|
38
38
|
...m,
|
|
39
|
-
children:
|
|
39
|
+
children: l
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
export {
|
|
43
|
-
_ as Flex
|
|
43
|
+
_ as Flex,
|
|
44
|
+
_ as default
|
|
44
45
|
};
|
package/dist/ui.es5.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as a } from "./ui.es12.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { clsx as u } from "./ui.es13.js";
|
|
4
4
|
import { Box as f } from "./ui.es2.js";
|
|
5
|
-
const
|
|
5
|
+
const d = {
|
|
6
6
|
start: "justify-start",
|
|
7
7
|
end: "justify-end",
|
|
8
8
|
center: "justify-center",
|
|
@@ -10,7 +10,7 @@ const j = {
|
|
|
10
10
|
around: "justify-around",
|
|
11
11
|
evenly: "justify-evenly",
|
|
12
12
|
stretch: "justify-stretch"
|
|
13
|
-
},
|
|
13
|
+
}, j = {
|
|
14
14
|
start: "items-start",
|
|
15
15
|
end: "items-end",
|
|
16
16
|
center: "items-center",
|
|
@@ -35,8 +35,8 @@ const j = {
|
|
|
35
35
|
n,
|
|
36
36
|
i,
|
|
37
37
|
o,
|
|
38
|
-
t &&
|
|
39
|
-
e &&
|
|
38
|
+
t && d[t],
|
|
39
|
+
e && j[e],
|
|
40
40
|
r
|
|
41
41
|
),
|
|
42
42
|
...c,
|
|
@@ -44,7 +44,8 @@ const j = {
|
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
j as ALIGN_MAPPER,
|
|
48
48
|
b as Grid,
|
|
49
|
-
|
|
49
|
+
d as JUASTIFY_MAPPER,
|
|
50
|
+
b as default
|
|
50
51
|
};
|
package/dist/ui.es6.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as i } from "./ui.es12.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { Text as m } from "./ui.es11.js";
|
|
4
4
|
const r = {
|
|
@@ -15,8 +15,8 @@ const r = {
|
|
|
15
15
|
element: s,
|
|
16
16
|
className: t,
|
|
17
17
|
size: e,
|
|
18
|
-
...
|
|
19
|
-
}) => /* @__PURE__ */
|
|
18
|
+
...l
|
|
19
|
+
}) => /* @__PURE__ */ i.jsx(
|
|
20
20
|
m,
|
|
21
21
|
{
|
|
22
22
|
element: s,
|
|
@@ -24,10 +24,11 @@ const r = {
|
|
|
24
24
|
variant: "heading",
|
|
25
25
|
className: t,
|
|
26
26
|
size: r[e],
|
|
27
|
-
...
|
|
27
|
+
...l,
|
|
28
28
|
children: x
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
export {
|
|
32
|
-
g as Heading
|
|
32
|
+
g as Heading,
|
|
33
|
+
g as default
|
|
33
34
|
};
|
package/dist/ui.es7.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as o } from "./ui.es12.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { clsx as
|
|
4
|
-
const
|
|
3
|
+
import { clsx as a } from "./ui.es13.js";
|
|
4
|
+
const u = ({
|
|
5
5
|
children: e,
|
|
6
6
|
className: t,
|
|
7
7
|
href: r,
|
|
@@ -13,7 +13,7 @@ const x = ({
|
|
|
13
13
|
target: "_blank",
|
|
14
14
|
rel: "noopener noreferrer",
|
|
15
15
|
"data-testid": "link",
|
|
16
|
-
className:
|
|
16
|
+
className: a(
|
|
17
17
|
"text-blue-600 hover:underline visited:text-purple-600 active:text-blue-900 focus:outline-none ",
|
|
18
18
|
t
|
|
19
19
|
),
|
|
@@ -22,5 +22,6 @@ const x = ({
|
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
u as ExternalLink,
|
|
26
|
+
u as default
|
|
26
27
|
};
|
package/dist/ui.es8.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as a } from "./ui.es12.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Text as
|
|
4
|
-
const
|
|
3
|
+
import { Text as o } from "./ui.es11.js";
|
|
4
|
+
const m = {
|
|
5
5
|
xs: "xs",
|
|
6
6
|
sm: "sm",
|
|
7
7
|
base: "base",
|
|
8
8
|
lg: "lg"
|
|
9
9
|
}, x = ({
|
|
10
|
-
children:
|
|
11
|
-
className:
|
|
12
|
-
size:
|
|
10
|
+
children: s,
|
|
11
|
+
className: t,
|
|
12
|
+
size: r,
|
|
13
13
|
...e
|
|
14
|
-
}) => /* @__PURE__ */
|
|
15
|
-
|
|
14
|
+
}) => /* @__PURE__ */ a.jsx(
|
|
15
|
+
o,
|
|
16
16
|
{
|
|
17
17
|
element: "p",
|
|
18
18
|
weight: "normal",
|
|
19
19
|
variant: "body",
|
|
20
|
-
className:
|
|
21
|
-
size:
|
|
20
|
+
className: t,
|
|
21
|
+
size: m[r],
|
|
22
22
|
...e,
|
|
23
|
-
children:
|
|
23
|
+
children: s
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
export {
|
|
27
|
-
x as Paragraph
|
|
27
|
+
x as Paragraph,
|
|
28
|
+
x as default
|
|
28
29
|
};
|
package/dist/ui.es9.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as r } from "./ui.es12.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { clsx as s } from "./ui.es13.js";
|
|
4
4
|
import { Box as e } from "./ui.es2.js";
|
|
5
|
-
const
|
|
5
|
+
const a = ({
|
|
6
6
|
className: m = "",
|
|
7
7
|
children: o,
|
|
8
8
|
...t
|
|
@@ -16,5 +16,6 @@ const c = ({
|
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
a as Section,
|
|
20
|
+
a as default
|
|
20
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plyaz/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "A reusable, accessible, and themeable component library powering the Plyaz Web App interface. Built with performance and consistency in mind, @plyaz/ui delivers modular React components aligned with the Plyaz design system — enabling seamless development across fan-facing features, quests, NFTs, and loyalty flows in the Web3 ecosystem.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|