@plyaz/ui 0.1.14 → 0.1.16

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.
@@ -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,6 +1,6 @@
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;
@@ -1,5 +1,5 @@
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;
@@ -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;
@@ -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;
@@ -10,7 +10,7 @@ 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;
@@ -5,7 +5,7 @@ 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;
@@ -1,5 +1,5 @@
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
  }
@@ -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";
@@ -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;
@@ -1,11 +1,20 @@
1
- import { default as Box } from './Box/Box';
2
- import { default as Container } from './Container/Container';
3
- import { default as Flex } from './Flex/Flex';
4
- import { default as Grid } from './Grid/Grid';
5
- import { default as Heading } from './Heading/Heading';
6
- import { default as ExternalLink } from './ExternalLink/ExternalLink';
7
- import { default as Paragraph } from './Paragraph/Paragraph';
8
- import { default as Section } from './Section/Section';
9
- import { default as Stack } from './Stack/Stack';
10
- import { default as Text } from './Text/Text';
11
- export { Box, Container, Flex, Grid, Heading, ExternalLink, Paragraph, Section, Stack, Text, };
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';
@@ -1,11 +1 @@
1
- import { default as Box } from './components/Box/Box';
2
- import { default as Container } from './components/Container/Container';
3
- import { default as Flex } from './components/Flex/Flex';
4
- import { default as Grid } from './components/Grid/Grid';
5
- import { default as Heading } from './components/Heading/Heading';
6
- import { default as ExternalLink } from './components/ExternalLink/ExternalLink';
7
- import { default as Paragraph } from './components/Paragraph/Paragraph';
8
- import { default as Section } from './components/Section/Section';
9
- import { default as Stack } from './components/Stack/Stack';
10
- import { default as Text } from './components/Text/Text';
11
- export { Box, Container, Flex, Grid, Heading, ExternalLink, Paragraph, Section, Stack, Text, };
1
+ export * from './components';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/ui",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
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": [
@@ -16,6 +16,7 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
+ "@plyaz/devtools": "^1.2.0",
19
20
  "@tailwindcss/vite": "^4.1.8",
20
21
  "@testing-library/jest-dom": "^6.6.3",
21
22
  "@testing-library/user-event": "^14.6.1",