santosp-rslib-project 1.0.1

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/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # Rslib project
2
+
3
+ ## Setup
4
+
5
+ Install the dependencies:
6
+
7
+ ```bash
8
+ bun install
9
+ ```
10
+
11
+ ## Get started
12
+
13
+ Build the library:
14
+
15
+ ```bash
16
+ bun run build
17
+ ```
18
+
19
+ Build the library in watch mode:
20
+
21
+ ```bash
22
+ bun run dev
23
+ ```
@@ -0,0 +1,8 @@
1
+ import { type ButtonRecipeVariantProps } from '../../styled-system/recipes';
2
+ export interface ButtonProps extends Omit<React.ComponentProps<'button'>, 'color'>, ButtonRecipeVariantProps {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ leftIcon?: React.ReactNode;
6
+ rightIcon?: React.ReactNode;
7
+ }
8
+ export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const buttonRecipe: import("@pandacss/types").RecipeConfig<import("@pandacss/types").RecipeVariantRecord>;
@@ -0,0 +1,53 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: (props: import("./button").ButtonProps) => import("react/jsx-runtime").JSX.Element;
5
+ argTypes: {
6
+ className: {
7
+ control: {
8
+ disable: true;
9
+ };
10
+ };
11
+ leftIcon: {
12
+ control: {
13
+ disable: true;
14
+ };
15
+ };
16
+ rightIcon: {
17
+ control: {
18
+ disable: true;
19
+ };
20
+ };
21
+ disabled: {
22
+ type: "boolean";
23
+ };
24
+ children: {
25
+ type: "string";
26
+ };
27
+ variant: {
28
+ control: {
29
+ type: "select";
30
+ };
31
+ options: string[];
32
+ };
33
+ size: {
34
+ control: {
35
+ type: "select";
36
+ };
37
+ options: string[];
38
+ };
39
+ color: {
40
+ control: {
41
+ type: "select";
42
+ };
43
+ options: string[];
44
+ };
45
+ };
46
+ };
47
+ export default meta;
48
+ type Story = StoryObj<typeof meta>;
49
+ export declare const Solid: Story;
50
+ export declare const Outline: Story;
51
+ export declare const Ghost: Story;
52
+ export declare const Icon: Story;
53
+ export declare const Disabled: Story;
@@ -0,0 +1,8 @@
1
+ interface DatePickerProps {
2
+ label?: string;
3
+ value?: Date;
4
+ onChange?: (value?: Date) => void;
5
+ displayFormatter?: (value: Date) => string;
6
+ }
7
+ export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export declare const datePickerRecipe: import("@pandacss/types").SlotRecipeConfig;
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type FlexProperties } from '../../styled-system/patterns';
3
+ /**
4
+ * Flex component props.
5
+ *
6
+ * @property {ReactNode} [children] - Text node children.
7
+ * @property {string} [className] - Additional CSS classes.
8
+ */
9
+ export interface FlexProps extends FlexProperties {
10
+ /**
11
+ * Text node children.
12
+ */
13
+ children?: ReactNode;
14
+ /**
15
+ * Additional CSS classes.
16
+ */
17
+ className?: string;
18
+ }
19
+ export declare const Flex: (props: FlexProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,39 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type GridProperties, type GridItemProperties } from '../../styled-system/patterns';
3
+ /**
4
+ * Grid component props.
5
+ *
6
+ * @property {ReactNode} [children] - Text node children.
7
+ * @property {string} [className] - Additional CSS classes.
8
+ */
9
+ export interface GridProps extends GridProperties {
10
+ /**
11
+ * Text node children.
12
+ */
13
+ children?: ReactNode;
14
+ /**
15
+ * Additional CSS classes.
16
+ */
17
+ className?: string;
18
+ }
19
+ /**
20
+ * Grid item component props.
21
+ *
22
+ * @property {ReactNode} [children] - Text node children.
23
+ * @property {string} [className] - Additional CSS classes.
24
+ */
25
+ export interface GridItemProps extends GridItemProperties {
26
+ /**
27
+ * Text node children.
28
+ */
29
+ children?: ReactNode;
30
+ /**
31
+ * Additional CSS classes.
32
+ */
33
+ className?: string;
34
+ }
35
+ declare const Grid: {
36
+ (props: GridProps): import("react/jsx-runtime").JSX.Element;
37
+ Item: (props: GridItemProps) => import("react/jsx-runtime").JSX.Element;
38
+ };
39
+ export { Grid };
@@ -0,0 +1,34 @@
1
+ import { ReactNode } from 'react';
2
+ import { type LinkRecipeVariantProps } from '../../styled-system/recipes';
3
+ /**
4
+ * Link component props.
5
+ *
6
+ * @property {string} [className] - Additional CSS classes.
7
+ * @property {ReactNode} [children] - Text node children.
8
+ * @property {string} href - Link href attribute.
9
+ * @property {ReactNode} [leftIcon] - Left icon element.
10
+ * @property {ReactNode} [rightIcon] - Right icon element.
11
+ */
12
+ export interface LinkProps extends LinkRecipeVariantProps, Omit<React.ComponentProps<'a'>, 'color'> {
13
+ /**
14
+ * Additional CSS classes.
15
+ */
16
+ className?: string;
17
+ /**
18
+ * Text node children.
19
+ */
20
+ children?: ReactNode;
21
+ /**
22
+ * Link href attribute.
23
+ */
24
+ href: string;
25
+ /**
26
+ * Left icon element.
27
+ */
28
+ leftIcon?: ReactNode;
29
+ /**
30
+ * Right icon element.
31
+ */
32
+ rightIcon?: ReactNode;
33
+ }
34
+ export declare const Link: (props: LinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const linkRecipe: import("@pandacss/types").RecipeConfig<import("@pandacss/types").RecipeVariantRecord>;
@@ -0,0 +1,28 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: (props: import("./link").LinkProps) => import("react/jsx-runtime").JSX.Element;
5
+ argTypes: {
6
+ className: {
7
+ control: {
8
+ disable: true;
9
+ };
10
+ };
11
+ disabled: {
12
+ type: "boolean";
13
+ };
14
+ children: {
15
+ type: "string";
16
+ };
17
+ color: {
18
+ control: {
19
+ type: "select";
20
+ };
21
+ options: string[];
22
+ };
23
+ };
24
+ };
25
+ export default meta;
26
+ type Story = StoryObj<typeof meta>;
27
+ export declare const Default: Story;
28
+ export declare const Disabled: Story;
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type TextRecipeVariantProps } from '../../styled-system/recipes';
3
+ /**
4
+ * Text component props.
5
+ *
6
+ * @property {ReactNode} [children] - Text node children.
7
+ * @property {string} [className] - Additional CSS classes.
8
+ * @property {'h1'|'h2'|'h3'|'h4'|'h5'|'h6'} [tag=h1] - HTML tag name.
9
+ */
10
+ export interface TextProps extends TextRecipeVariantProps, Omit<React.ComponentProps<'h1'>, 'color'> {
11
+ /**
12
+ * Text node children.
13
+ */
14
+ children?: ReactNode;
15
+ /**
16
+ * Additional CSS classes.
17
+ */
18
+ className?: string;
19
+ /**
20
+ * HTML tag name.
21
+ * @default 'h1'
22
+ */
23
+ tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
24
+ }
25
+ export declare const Text: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const textRecipe: import("@pandacss/types").RecipeConfig<import("@pandacss/types").RecipeVariantRecord>;
@@ -0,0 +1,46 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { type TextProps } from './text';
3
+ import { type FontSizeToken } from '../../styled-system/tokens';
4
+ declare const meta: {
5
+ title: string;
6
+ component: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
7
+ argTypes: {
8
+ className: {
9
+ control: {
10
+ disable: true;
11
+ };
12
+ };
13
+ children: {
14
+ type: "string";
15
+ };
16
+ bold: {
17
+ type: "boolean";
18
+ };
19
+ truncate: {
20
+ type: "boolean";
21
+ };
22
+ tag: {
23
+ control: {
24
+ type: "select";
25
+ };
26
+ options: TextProps["tag"][];
27
+ };
28
+ size: {
29
+ control: {
30
+ type: "select";
31
+ };
32
+ options: FontSizeToken[];
33
+ };
34
+ color: {
35
+ control: {
36
+ type: "select";
37
+ };
38
+ options: string[];
39
+ };
40
+ };
41
+ };
42
+ export default meta;
43
+ type Story = StoryObj<typeof meta>;
44
+ export declare const Default: Story;
45
+ export declare const Smaller: Story;
46
+ export declare const Larger: Story;