@plyaz/ui 0.4.4 → 0.4.5
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/Flex/Flex.d.ts +2 -2
- package/dist/types/components/Flex/Flex.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.d.ts +4 -4
- package/dist/types/components/Grid/Grid.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/constants/constant.d.ts +33 -0
- package/dist/types/constants/constant.d.ts.map +1 -1
- package/dist/ui.cjs18.js +2 -2
- package/dist/ui.cjs4.js +1 -1
- package/dist/ui.cjs5.js +1 -1
- package/dist/ui.es18.js +43 -10
- package/dist/ui.es4.js +23 -23
- package/dist/ui.es5.js +26 -26
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ALIGN_MAPPER, JUASTIFY_MAPPER } from '../../constants/constant';
|
|
2
|
+
import { ALIGN_MAPPER, GAP, JUASTIFY_MAPPER } from '../../constants/constant';
|
|
3
3
|
import { ElementType } from '../../types/type';
|
|
4
4
|
declare const DIRECTION_MAPPER: {
|
|
5
5
|
row: string;
|
|
@@ -14,7 +14,7 @@ declare const WRAP_MAPPER: {
|
|
|
14
14
|
};
|
|
15
15
|
export interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
16
16
|
children: React.ReactNode;
|
|
17
|
-
gap?:
|
|
17
|
+
gap?: keyof typeof GAP;
|
|
18
18
|
direction?: keyof typeof DIRECTION_MAPPER;
|
|
19
19
|
justify?: keyof typeof JUASTIFY_MAPPER;
|
|
20
20
|
align?: keyof typeof ALIGN_MAPPER;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,QAAA,MAAM,gBAAgB;;;;;CAKrB,CAAC;AACF,QAAA,MAAM,WAAW;;;;CAIhB,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,OAAO,GAAG,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,OAAO,eAAe,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AACD,eAAO,MAAM,IAAI,GAAI,kFAUlB,SAAS,sBAkBX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ALIGN_MAPPER, JUASTIFY_MAPPER } from '../../constants/constant';
|
|
2
|
+
import { ALIGN_MAPPER, COLUMN_NUMBER, GAP, JUASTIFY_MAPPER, ROW_NUMBER } from '../../constants/constant';
|
|
3
3
|
import { ElementType } from '../../types/type';
|
|
4
4
|
export interface GridProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
-
cols?:
|
|
8
|
-
rows?:
|
|
9
|
-
gap?:
|
|
7
|
+
cols?: keyof typeof COLUMN_NUMBER;
|
|
8
|
+
rows?: keyof typeof ROW_NUMBER;
|
|
9
|
+
gap?: keyof typeof GAP;
|
|
10
10
|
justify?: keyof typeof JUASTIFY_MAPPER;
|
|
11
11
|
align?: keyof typeof ALIGN_MAPPER;
|
|
12
12
|
element?: ElementType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,YAAY,EACZ,aAAa,EACb,GAAG,EACH,eAAe,EACf,UAAU,EACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAC/B,GAAG,CAAC,EAAE,MAAM,OAAO,GAAG,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,OAAO,eAAe,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IAClC,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,eAAO,MAAM,IAAI,GAAI,6EAUlB,SAAS,sBAkBX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Grid/Grid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAO,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Grid/Grid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAO,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAoD3B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA2B7B,CAAC"}
|
|
@@ -41,6 +41,39 @@ export declare const TEXT_WEIGHT_MAPPER: {
|
|
|
41
41
|
readonly bold: "font-bold";
|
|
42
42
|
readonly light: "font-light";
|
|
43
43
|
};
|
|
44
|
+
export declare const COLUMN_NUMBER: {
|
|
45
|
+
'1': string;
|
|
46
|
+
'2': string;
|
|
47
|
+
'3': string;
|
|
48
|
+
'4': string;
|
|
49
|
+
'5': string;
|
|
50
|
+
'6': string;
|
|
51
|
+
'7': string;
|
|
52
|
+
'8': string;
|
|
53
|
+
'9': string;
|
|
54
|
+
};
|
|
55
|
+
export declare const ROW_NUMBER: {
|
|
56
|
+
'1': string;
|
|
57
|
+
'2': string;
|
|
58
|
+
'3': string;
|
|
59
|
+
'4': string;
|
|
60
|
+
'5': string;
|
|
61
|
+
'6': string;
|
|
62
|
+
'7': string;
|
|
63
|
+
'8': string;
|
|
64
|
+
'9': string;
|
|
65
|
+
};
|
|
66
|
+
export declare const GAP: {
|
|
67
|
+
'1': string;
|
|
68
|
+
'2': string;
|
|
69
|
+
'3': string;
|
|
70
|
+
'4': string;
|
|
71
|
+
'5': string;
|
|
72
|
+
'6': string;
|
|
73
|
+
'7': string;
|
|
74
|
+
'8': string;
|
|
75
|
+
'9': string;
|
|
76
|
+
};
|
|
44
77
|
export declare const buttonVariants: (props?: ({
|
|
45
78
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
46
79
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../../src/constants/constant.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;CAQ3B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAC;AACF,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAcxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAEX,eAAO,MAAM,cAAc;;;8EAsD1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../../src/constants/constant.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;CAQ3B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAC;AACF,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAcxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;CAUzB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;CAUtB,CAAC;AAEF,eAAO,MAAM,GAAG;;;;;;;;;;CAUf,CAAC;AAEF,eAAO,MAAM,cAAc;;;8EAsD1B,CAAC"}
|
package/dist/ui.cjs18.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ui.cjs29.js"),t={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ui.cjs29.js"),t={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"},s={body:"font-sans",heading:"font-sans",caption:"font-sans"},i={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"},n={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"},o={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9"},a={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9"},d={1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9"},g=e.cva("inline-flex justify-center items-center gap-2 disabled:opacity-50 aria-invalid:border-destructive focus-visible:border-ring rounded-md outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap transition-all [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",{variants:{variant:{default:`
|
|
2
2
|
bg-primary text-primary-foreground shadow-xs
|
|
3
3
|
hover:bg-primary/90
|
|
4
4
|
`,destructive:`
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
`,lg:`
|
|
29
29
|
h-10 rounded-md px-6
|
|
30
30
|
has-[>svg]:px-4
|
|
31
|
-
`,icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});exports.ALIGN_MAPPER=
|
|
31
|
+
`,icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});exports.ALIGN_MAPPER=r;exports.COLUMN_NUMBER=o;exports.GAP=d;exports.JUASTIFY_MAPPER=t;exports.ROW_NUMBER=a;exports.SIZES_MAPPER=i;exports.TEXT_WEIGHT_MAPPER=n;exports.VARIANT_MAPPER=s;exports.buttonVariants=g;
|
package/dist/ui.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./ui.cjs16.js"),f=require("./ui.cjs17.js"),w=require("./ui.cjs2.js"),e=require("./ui.cjs18.js");require("./ui.cjs14.js");const _={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:c,gap:r,direction:o,justify:s,align:l,wrap:t,className:n="",element:u,...P})=>a.jsxRuntimeExports.jsx(w.Box,{element:u,className:f.clsx("flex",o&&_[o],s&&e.JUASTIFY_MAPPER[s],l&&e.ALIGN_MAPPER[l],t&&v[t],r&&e.GAP[r],n),...P,children:c});exports.Flex=x;exports.default=x;
|
package/dist/ui.cjs5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./ui.cjs16.js"),M=require("./ui.cjs17.js"),R=require("./ui.cjs2.js"),e=require("./ui.cjs18.js");require("./ui.cjs14.js");const o=({children:n,className:c,cols:r,rows:t,gap:s,justify:u,align:i,element:x,...d})=>l.jsxRuntimeExports.jsx(R.Box,{element:x,className:M.clsx("grid",r&&e.COLUMN_NUMBER[r],t&&e.ROW_NUMBER[t],s&&e.GAP[s],u&&e.JUASTIFY_MAPPER[u],i&&e.ALIGN_MAPPER[i],c),...d,children:n});exports.Grid=o;exports.default=o;
|
package/dist/ui.es18.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva as e } from "./ui.es29.js";
|
|
2
|
-
const
|
|
2
|
+
const r = {
|
|
3
3
|
start: "justify-start",
|
|
4
4
|
end: "justify-end",
|
|
5
5
|
center: "justify-center",
|
|
@@ -7,17 +7,17 @@ const s = {
|
|
|
7
7
|
around: "justify-around",
|
|
8
8
|
evenly: "justify-evenly",
|
|
9
9
|
stretch: "justify-stretch"
|
|
10
|
-
},
|
|
10
|
+
}, s = {
|
|
11
11
|
start: "items-start",
|
|
12
12
|
end: "items-end",
|
|
13
13
|
center: "items-center",
|
|
14
14
|
baseline: "items-baseline",
|
|
15
15
|
stretch: "items-stretch"
|
|
16
|
-
},
|
|
16
|
+
}, i = {
|
|
17
17
|
body: "font-sans",
|
|
18
18
|
heading: "font-sans",
|
|
19
19
|
caption: "font-sans"
|
|
20
|
-
},
|
|
20
|
+
}, n = {
|
|
21
21
|
xs: "text-xs",
|
|
22
22
|
sm: "text-sm",
|
|
23
23
|
base: "text-base",
|
|
@@ -37,7 +37,37 @@ const s = {
|
|
|
37
37
|
semibold: "font-semibold",
|
|
38
38
|
bold: "font-bold",
|
|
39
39
|
light: "font-light"
|
|
40
|
-
}, a =
|
|
40
|
+
}, a = {
|
|
41
|
+
1: "grid-cols-1",
|
|
42
|
+
2: "grid-cols-2",
|
|
43
|
+
3: "grid-cols-3",
|
|
44
|
+
4: "grid-cols-4",
|
|
45
|
+
5: "grid-cols-5",
|
|
46
|
+
6: "grid-cols-6",
|
|
47
|
+
7: "grid-cols-7",
|
|
48
|
+
8: "grid-cols-8",
|
|
49
|
+
9: "grid-cols-9"
|
|
50
|
+
}, d = {
|
|
51
|
+
1: "grid-rows-1",
|
|
52
|
+
2: "grid-rows-2",
|
|
53
|
+
3: "grid-rows-3",
|
|
54
|
+
4: "grid-rows-4",
|
|
55
|
+
5: "grid-rows-5",
|
|
56
|
+
6: "grid-rows-6",
|
|
57
|
+
7: "grid-rows-7",
|
|
58
|
+
8: "grid-rows-8",
|
|
59
|
+
9: "grid-rows-9"
|
|
60
|
+
}, g = {
|
|
61
|
+
1: "gap-1",
|
|
62
|
+
2: "gap-2",
|
|
63
|
+
3: "gap-3",
|
|
64
|
+
4: "gap-4",
|
|
65
|
+
5: "gap-5",
|
|
66
|
+
6: "gap-6",
|
|
67
|
+
7: "gap-7",
|
|
68
|
+
8: "gap-8",
|
|
69
|
+
9: "gap-9"
|
|
70
|
+
}, l = e(
|
|
41
71
|
"inline-flex justify-center items-center gap-2 disabled:opacity-50 aria-invalid:border-destructive focus-visible:border-ring rounded-md outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap transition-all [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",
|
|
42
72
|
{
|
|
43
73
|
variants: {
|
|
@@ -93,10 +123,13 @@ const s = {
|
|
|
93
123
|
}
|
|
94
124
|
);
|
|
95
125
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
126
|
+
s as ALIGN_MAPPER,
|
|
127
|
+
a as COLUMN_NUMBER,
|
|
128
|
+
g as GAP,
|
|
129
|
+
r as JUASTIFY_MAPPER,
|
|
130
|
+
d as ROW_NUMBER,
|
|
131
|
+
n as SIZES_MAPPER,
|
|
99
132
|
o as TEXT_WEIGHT_MAPPER,
|
|
100
|
-
|
|
101
|
-
|
|
133
|
+
i as VARIANT_MAPPER,
|
|
134
|
+
l as buttonVariants
|
|
102
135
|
};
|
package/dist/ui.es4.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { j as t } from "./ui.es16.js";
|
|
2
|
-
import { clsx as
|
|
2
|
+
import { clsx as P } from "./ui.es17.js";
|
|
3
3
|
import { Box as w } from "./ui.es2.js";
|
|
4
|
-
import { JUASTIFY_MAPPER as
|
|
4
|
+
import { JUASTIFY_MAPPER as a, ALIGN_MAPPER as c, GAP as A } from "./ui.es18.js";
|
|
5
5
|
import "./ui.es14.js";
|
|
6
|
-
const
|
|
6
|
+
const R = {
|
|
7
7
|
row: "flex-row",
|
|
8
8
|
col: "flex-col",
|
|
9
9
|
row_reverse: "flex-row-reverse",
|
|
10
10
|
col_reverse: "flex-col-reverse"
|
|
11
|
-
},
|
|
11
|
+
}, _ = {
|
|
12
12
|
wrap: "flex-wrap",
|
|
13
13
|
nowrap: "flex-nowrap",
|
|
14
14
|
wrap_reverse: "flex-wrap-reverse"
|
|
15
|
-
},
|
|
16
|
-
children:
|
|
17
|
-
gap:
|
|
18
|
-
direction:
|
|
19
|
-
justify:
|
|
20
|
-
align:
|
|
21
|
-
wrap:
|
|
15
|
+
}, N = ({
|
|
16
|
+
children: x,
|
|
17
|
+
gap: r,
|
|
18
|
+
direction: e,
|
|
19
|
+
justify: o,
|
|
20
|
+
align: s,
|
|
21
|
+
wrap: l,
|
|
22
22
|
className: f = "",
|
|
23
|
-
element:
|
|
24
|
-
...
|
|
23
|
+
element: m,
|
|
24
|
+
...p
|
|
25
25
|
}) => /* @__PURE__ */ t.jsx(
|
|
26
26
|
w,
|
|
27
27
|
{
|
|
28
|
-
element:
|
|
29
|
-
className:
|
|
28
|
+
element: m,
|
|
29
|
+
className: P(
|
|
30
30
|
"flex",
|
|
31
|
+
e && R[e],
|
|
32
|
+
o && a[o],
|
|
33
|
+
s && c[s],
|
|
34
|
+
l && _[l],
|
|
31
35
|
r && A[r],
|
|
32
|
-
e && P[e],
|
|
33
|
-
o && c[o],
|
|
34
|
-
s && R[s],
|
|
35
|
-
x,
|
|
36
36
|
f
|
|
37
37
|
),
|
|
38
|
-
...
|
|
39
|
-
children:
|
|
38
|
+
...p,
|
|
39
|
+
children: x
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
N as Flex,
|
|
44
|
+
N as default
|
|
45
45
|
};
|
package/dist/ui.es5.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { Box as
|
|
4
|
-
import {
|
|
1
|
+
import { j as e } from "./ui.es16.js";
|
|
2
|
+
import { clsx as A } from "./ui.es17.js";
|
|
3
|
+
import { Box as E } from "./ui.es2.js";
|
|
4
|
+
import { COLUMN_NUMBER as M, ROW_NUMBER as N, GAP as P, JUASTIFY_MAPPER as f, ALIGN_MAPPER as U } from "./ui.es18.js";
|
|
5
5
|
import "./ui.es14.js";
|
|
6
|
-
const
|
|
7
|
-
children:
|
|
8
|
-
className:
|
|
9
|
-
cols:
|
|
10
|
-
rows:
|
|
11
|
-
gap:
|
|
12
|
-
justify:
|
|
13
|
-
align:
|
|
6
|
+
const c = ({
|
|
7
|
+
children: p,
|
|
8
|
+
className: s,
|
|
9
|
+
cols: r,
|
|
10
|
+
rows: m,
|
|
11
|
+
gap: o,
|
|
12
|
+
justify: t,
|
|
13
|
+
align: i,
|
|
14
14
|
element: x,
|
|
15
|
-
...
|
|
16
|
-
}) => /* @__PURE__ */
|
|
17
|
-
|
|
15
|
+
...R
|
|
16
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
17
|
+
E,
|
|
18
18
|
{
|
|
19
19
|
element: x,
|
|
20
|
-
className:
|
|
20
|
+
className: A(
|
|
21
21
|
"grid",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
r && M[r],
|
|
23
|
+
m && N[m],
|
|
24
|
+
o && P[o],
|
|
25
|
+
t && f[t],
|
|
26
|
+
i && U[i],
|
|
27
|
+
s
|
|
28
28
|
),
|
|
29
|
-
...
|
|
30
|
-
children:
|
|
29
|
+
...R,
|
|
30
|
+
children: p
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
c as Grid,
|
|
35
|
+
c as default
|
|
36
36
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plyaz/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
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": [
|