@plyaz/ui 0.2.0 → 0.3.0
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.stories.d.ts.map +1 -1
- package/dist/types/components/Container/Container.stories.d.ts.map +1 -1
- package/dist/types/components/ExternalLink/ExternalLink.stories.d.ts.map +1 -1
- package/dist/types/components/Flex/Flex.stories.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/types/components/Paragraph/Paragraph.stories.d.ts.map +1 -1
- package/dist/types/components/Section/Section.stories.d.ts.map +1 -1
- package/dist/types/components/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/types/components/Text/Text.d.ts +2 -28
- package/dist/types/components/Text/Text.d.ts.map +1 -1
- package/dist/types/components/Text/Text.stories.d.ts.map +1 -1
- package/dist/types/constants/constant.d.ts +27 -0
- package/dist/types/constants/constant.d.ts.map +1 -1
- package/dist/ui.cjs11.js +1 -1
- package/dist/ui.cjs14.js +1 -1
- package/dist/ui.es11.js +20 -43
- package/dist/ui.es14.js +28 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/Box.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CAY1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AACF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/Box.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CAY1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AACF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Container/Container.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAO,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAWhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Container.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Container/Container.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAO,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAWhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalLink.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ExternalLink/ExternalLink.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAYnC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"ExternalLink.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ExternalLink/ExternalLink.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAYnC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAkB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Flex/Flex.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,CAY3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,KAkB5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Flex.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Flex/Flex.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,CAY3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,KAkB5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA6B7B,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,CAY3B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
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,CAY3B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA2B7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/Heading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAY9B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/Heading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAY9B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAOhB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Paragraph/Paragraph.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAYhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Paragraph.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Paragraph/Paragraph.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAYhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAiB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Section/Section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAO,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAY9B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Section/Section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAO,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAY9B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAgB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/Stack.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAO,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAY5B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/Stack.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAO,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAY5B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAwB7B,CAAC"}
|
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
heading: string;
|
|
5
|
-
caption: string;
|
|
6
|
-
};
|
|
7
|
-
declare const SIZES_MAPPER: {
|
|
8
|
-
xs: string;
|
|
9
|
-
sm: string;
|
|
10
|
-
base: string;
|
|
11
|
-
lg: string;
|
|
12
|
-
xl: string;
|
|
13
|
-
'2xl': string;
|
|
14
|
-
'3xl': string;
|
|
15
|
-
'4xl': string;
|
|
16
|
-
'5xl': string;
|
|
17
|
-
'6xl': string;
|
|
18
|
-
'7xl': string;
|
|
19
|
-
'8xl': string;
|
|
20
|
-
'9xl': string;
|
|
21
|
-
};
|
|
22
|
-
declare const TEXT_WEIGHT_MAPPER: {
|
|
23
|
-
readonly normal: "font-normal";
|
|
24
|
-
readonly medium: "font-medium";
|
|
25
|
-
readonly semibold: "font-semibold";
|
|
26
|
-
readonly bold: "font-bold";
|
|
27
|
-
readonly light: "font-light";
|
|
28
|
-
};
|
|
29
|
-
type TextElement = 'span' | 'p' | 'strong' | 'em' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
2
|
+
import { SIZES_MAPPER, TEXT_WEIGHT_MAPPER, VARIANT_MAPPER } from '../../constants/constant';
|
|
3
|
+
type TextElement = "span" | "p" | "strong" | "em" | "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
30
4
|
export interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
31
5
|
className?: string;
|
|
32
6
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAExF,KAAK,WAAW,GACZ,MAAM,GACN,GAAG,GACH,QAAQ,GACR,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,MAAM,OAAO,kBAAkB,CAAC;IACxC,OAAO,EAAE,MAAM,OAAO,cAAc,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;CAClC;AAED,eAAO,MAAM,IAAI,GAAI,mEAQlB,SAAS,sBAiBX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAY3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAY3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAmB7B,CAAC"}
|
|
@@ -14,4 +14,31 @@ export declare const ALIGN_MAPPER: {
|
|
|
14
14
|
baseline: string;
|
|
15
15
|
stretch: string;
|
|
16
16
|
};
|
|
17
|
+
export declare const VARIANT_MAPPER: {
|
|
18
|
+
body: string;
|
|
19
|
+
heading: string;
|
|
20
|
+
caption: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const SIZES_MAPPER: {
|
|
23
|
+
xs: string;
|
|
24
|
+
sm: string;
|
|
25
|
+
base: string;
|
|
26
|
+
lg: string;
|
|
27
|
+
xl: string;
|
|
28
|
+
'2xl': string;
|
|
29
|
+
'3xl': string;
|
|
30
|
+
'4xl': string;
|
|
31
|
+
'5xl': string;
|
|
32
|
+
'6xl': string;
|
|
33
|
+
'7xl': string;
|
|
34
|
+
'8xl': string;
|
|
35
|
+
'9xl': string;
|
|
36
|
+
};
|
|
37
|
+
export declare const TEXT_WEIGHT_MAPPER: {
|
|
38
|
+
readonly normal: "font-normal";
|
|
39
|
+
readonly medium: "font-medium";
|
|
40
|
+
readonly semibold: "font-semibold";
|
|
41
|
+
readonly bold: "font-bold";
|
|
42
|
+
readonly light: "font-light";
|
|
43
|
+
};
|
|
17
44
|
//# sourceMappingURL=constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../../src/constants/constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;CAQ3B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../../src/constants/constant.ts"],"names":[],"mappings":"AAAA,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"}
|
package/dist/ui.cjs11.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 x=require("./ui.cjs12.js"),E=require("./ui.cjs13.js"),e=require("./ui.cjs14.js"),o=({className:r,children:u,element:c,weight:t,variant:s,size:n,...l})=>{const a=c;return x.jsxRuntimeExports.jsx(a,{"data-testid":"text",className:E.clsx("font-sans text-base font-normal",n&&e.SIZES_MAPPER[n],t&&e.TEXT_WEIGHT_MAPPER[t],s&&e.VARIANT_MAPPER[s],r),...l,children:u})};exports.Text=o;exports.default=o;
|
package/dist/ui.cjs14.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},e={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"},n={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"},l={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"};exports.ALIGN_MAPPER=e;exports.JUASTIFY_MAPPER=t;exports.SIZES_MAPPER=n;exports.TEXT_WEIGHT_MAPPER=l;exports.VARIANT_MAPPER=s;
|
package/dist/ui.es11.js
CHANGED
|
@@ -1,56 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { clsx as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
heading: "font-sans",
|
|
6
|
-
caption: "font-sans"
|
|
7
|
-
}, r = {
|
|
8
|
-
xs: "text-xs",
|
|
9
|
-
sm: "text-sm",
|
|
10
|
-
base: "text-base",
|
|
11
|
-
lg: "text-lg",
|
|
12
|
-
xl: "text-xl",
|
|
13
|
-
"2xl": "text-2xl",
|
|
14
|
-
"3xl": "text-3xl",
|
|
15
|
-
"4xl": "text-4xl",
|
|
16
|
-
"5xl": "text-5xl",
|
|
17
|
-
"6xl": "text-6xl",
|
|
18
|
-
"7xl": "text-7xl",
|
|
19
|
-
"8xl": "text-8xl",
|
|
20
|
-
"9xl": "text-9xl"
|
|
21
|
-
}, i = {
|
|
22
|
-
normal: "font-normal",
|
|
23
|
-
medium: "font-medium",
|
|
24
|
-
semibold: "font-semibold",
|
|
25
|
-
bold: "font-bold",
|
|
26
|
-
light: "font-light"
|
|
27
|
-
}, E = ({
|
|
1
|
+
import { j as x } from "./ui.es12.js";
|
|
2
|
+
import { clsx as E } from "./ui.es13.js";
|
|
3
|
+
import { SIZES_MAPPER as f, TEXT_WEIGHT_MAPPER as P, VARIANT_MAPPER as l } from "./ui.es14.js";
|
|
4
|
+
const T = ({
|
|
28
5
|
className: e,
|
|
29
|
-
children:
|
|
30
|
-
element:
|
|
6
|
+
children: m,
|
|
7
|
+
element: r,
|
|
31
8
|
weight: t,
|
|
32
|
-
variant:
|
|
33
|
-
size:
|
|
34
|
-
...
|
|
9
|
+
variant: o,
|
|
10
|
+
size: s,
|
|
11
|
+
...a
|
|
35
12
|
}) => {
|
|
36
|
-
const
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
13
|
+
const n = r;
|
|
14
|
+
return /* @__PURE__ */ x.jsx(
|
|
15
|
+
n,
|
|
39
16
|
{
|
|
40
17
|
"data-testid": "text",
|
|
41
|
-
className:
|
|
18
|
+
className: E(
|
|
42
19
|
"font-sans text-base font-normal",
|
|
43
|
-
|
|
44
|
-
t &&
|
|
45
|
-
|
|
20
|
+
s && f[s],
|
|
21
|
+
t && P[t],
|
|
22
|
+
o && l[o],
|
|
46
23
|
e
|
|
47
24
|
),
|
|
48
|
-
...
|
|
49
|
-
children:
|
|
25
|
+
...a,
|
|
26
|
+
children: m
|
|
50
27
|
}
|
|
51
28
|
);
|
|
52
29
|
};
|
|
53
30
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
31
|
+
T as Text,
|
|
32
|
+
T as default
|
|
56
33
|
};
|
package/dist/ui.es14.js
CHANGED
|
@@ -12,8 +12,35 @@ const t = {
|
|
|
12
12
|
center: "items-center",
|
|
13
13
|
baseline: "items-baseline",
|
|
14
14
|
stretch: "items-stretch"
|
|
15
|
+
}, s = {
|
|
16
|
+
body: "font-sans",
|
|
17
|
+
heading: "font-sans",
|
|
18
|
+
caption: "font-sans"
|
|
19
|
+
}, n = {
|
|
20
|
+
xs: "text-xs",
|
|
21
|
+
sm: "text-sm",
|
|
22
|
+
base: "text-base",
|
|
23
|
+
lg: "text-lg",
|
|
24
|
+
xl: "text-xl",
|
|
25
|
+
"2xl": "text-2xl",
|
|
26
|
+
"3xl": "text-3xl",
|
|
27
|
+
"4xl": "text-4xl",
|
|
28
|
+
"5xl": "text-5xl",
|
|
29
|
+
"6xl": "text-6xl",
|
|
30
|
+
"7xl": "text-7xl",
|
|
31
|
+
"8xl": "text-8xl",
|
|
32
|
+
"9xl": "text-9xl"
|
|
33
|
+
}, x = {
|
|
34
|
+
normal: "font-normal",
|
|
35
|
+
medium: "font-medium",
|
|
36
|
+
semibold: "font-semibold",
|
|
37
|
+
bold: "font-bold",
|
|
38
|
+
light: "font-light"
|
|
15
39
|
};
|
|
16
40
|
export {
|
|
17
41
|
e as ALIGN_MAPPER,
|
|
18
|
-
t as JUASTIFY_MAPPER
|
|
42
|
+
t as JUASTIFY_MAPPER,
|
|
43
|
+
n as SIZES_MAPPER,
|
|
44
|
+
x as TEXT_WEIGHT_MAPPER,
|
|
45
|
+
s as VARIANT_MAPPER
|
|
19
46
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plyaz/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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": [
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"jiti": "^2.4.2",
|
|
101
101
|
"plop": "^4.0.1",
|
|
102
102
|
"postcss": "^8.5.3",
|
|
103
|
-
"
|
|
103
|
+
"rollup-plugin-visualizer": "^6.0.3",
|
|
104
104
|
"standard-version": "^9.5.0",
|
|
105
105
|
"storybook": "^8.6.12",
|
|
106
106
|
"storybook-addon-tailwind-autodocs": "^1.0.8",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"build": "vite build",
|
|
124
124
|
"preview": "vite preview",
|
|
125
125
|
"storybook": "storybook dev -p 6006",
|
|
126
|
-
"build-storybook": "storybook build",
|
|
126
|
+
"build-storybook": "mkdir -p ./performance && storybook build > ./performance/storybook-build.log 2>&1",
|
|
127
127
|
"lint": "eslint ./src",
|
|
128
128
|
"lint:fix": "eslint ./src --fix",
|
|
129
129
|
"format": "prettier --write './**/*.{ts,tsx,js,jsx}'",
|