santosp-rslib-project 1.0.7 → 2.0.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/index.d.ts +20844 -4
- package/dist/index.js +502 -1
- package/dist/index.umd.cjs +1 -0
- package/package.json +50 -41
- package/dist/components/button.d.ts +0 -9
- package/dist/components/button.recipe.d.ts +0 -1
- package/dist/components/button.stories.d.ts +0 -54
- package/dist/components/date-picker.d.ts +0 -8
- package/dist/components/date-picker.recipe.d.ts +0 -1
- package/dist/components/flex.d.ts +0 -19
- package/dist/components/grid.d.ts +0 -39
- package/dist/components/link.d.ts +0 -34
- package/dist/components/link.recipe.d.ts +0 -1
- package/dist/components/link.stories.d.ts +0 -30
- package/dist/components/text.d.ts +0 -25
- package/dist/components/text.recipe.d.ts +0 -1
- package/dist/components/text.stories.d.ts +0 -46
- package/dist/src/styled-system/css/css.d.ts +0 -22
- package/dist/src/styled-system/css/cva.d.ts +0 -6
- package/dist/src/styled-system/css/cx.d.ts +0 -5
- package/dist/src/styled-system/css/index.d.ts +0 -5
- package/dist/src/styled-system/css/sva.d.ts +0 -4
- package/dist/src/styled-system/jsx/aspect-ratio.d.ts +0 -10
- package/dist/src/styled-system/jsx/bleed.d.ts +0 -10
- package/dist/src/styled-system/jsx/box.d.ts +0 -10
- package/dist/src/styled-system/jsx/center.d.ts +0 -10
- package/dist/src/styled-system/jsx/circle.d.ts +0 -10
- package/dist/src/styled-system/jsx/container.d.ts +0 -10
- package/dist/src/styled-system/jsx/cq.d.ts +0 -10
- package/dist/src/styled-system/jsx/create-style-context.d.ts +0 -54
- package/dist/src/styled-system/jsx/divider.d.ts +0 -10
- package/dist/src/styled-system/jsx/factory.d.ts +0 -3
- package/dist/src/styled-system/jsx/flex.d.ts +0 -10
- package/dist/src/styled-system/jsx/float.d.ts +0 -10
- package/dist/src/styled-system/jsx/grid-item.d.ts +0 -10
- package/dist/src/styled-system/jsx/grid.d.ts +0 -10
- package/dist/src/styled-system/jsx/hstack.d.ts +0 -10
- package/dist/src/styled-system/jsx/index.d.ts +0 -25
- package/dist/src/styled-system/jsx/is-valid-prop.d.ts +0 -11
- package/dist/src/styled-system/jsx/link-overlay.d.ts +0 -10
- package/dist/src/styled-system/jsx/spacer.d.ts +0 -10
- package/dist/src/styled-system/jsx/square.d.ts +0 -10
- package/dist/src/styled-system/jsx/stack.d.ts +0 -10
- package/dist/src/styled-system/jsx/visually-hidden.d.ts +0 -10
- package/dist/src/styled-system/jsx/vstack.d.ts +0 -10
- package/dist/src/styled-system/jsx/wrap.d.ts +0 -10
- package/dist/src/styled-system/patterns/aspect-ratio.d.ts +0 -20
- package/dist/src/styled-system/patterns/bleed.d.ts +0 -21
- package/dist/src/styled-system/patterns/box.d.ts +0 -20
- package/dist/src/styled-system/patterns/center.d.ts +0 -20
- package/dist/src/styled-system/patterns/circle.d.ts +0 -20
- package/dist/src/styled-system/patterns/container.d.ts +0 -20
- package/dist/src/styled-system/patterns/cq.d.ts +0 -21
- package/dist/src/styled-system/patterns/divider.d.ts +0 -22
- package/dist/src/styled-system/patterns/flex.d.ts +0 -26
- package/dist/src/styled-system/patterns/float.d.ts +0 -23
- package/dist/src/styled-system/patterns/grid-item.d.ts +0 -25
- package/dist/src/styled-system/patterns/grid.d.ts +0 -24
- package/dist/src/styled-system/patterns/hstack.d.ts +0 -21
- package/dist/src/styled-system/patterns/index.d.ts +0 -21
- package/dist/src/styled-system/patterns/link-overlay.d.ts +0 -20
- package/dist/src/styled-system/patterns/spacer.d.ts +0 -20
- package/dist/src/styled-system/patterns/square.d.ts +0 -20
- package/dist/src/styled-system/patterns/stack.d.ts +0 -23
- package/dist/src/styled-system/patterns/visually-hidden.d.ts +0 -20
- package/dist/src/styled-system/patterns/vstack.d.ts +0 -21
- package/dist/src/styled-system/patterns/wrap.d.ts +0 -24
- package/dist/src/styled-system/recipes/button-recipe.d.ts +0 -43
- package/dist/src/styled-system/recipes/index.d.ts +0 -4
- package/dist/src/styled-system/recipes/link-recipe.d.ts +0 -35
- package/dist/src/styled-system/recipes/text-recipe.d.ts +0 -43
- package/dist/src/styled-system/tokens/index.d.ts +0 -9
- package/dist/src/styled-system/tokens/tokens.d.ts +0 -42
- package/dist/src/styled-system/types/composition.d.ts +0 -227
- package/dist/src/styled-system/types/conditions.d.ts +0 -310
- package/dist/src/styled-system/types/csstype.d.ts +0 -22570
- package/dist/src/styled-system/types/global.d.ts +0 -20
- package/dist/src/styled-system/types/index.d.ts +0 -8
- package/dist/src/styled-system/types/jsx.d.ts +0 -69
- package/dist/src/styled-system/types/parts.d.ts +0 -8
- package/dist/src/styled-system/types/pattern.d.ts +0 -78
- package/dist/src/styled-system/types/prop-type.d.ts +0 -242
- package/dist/src/styled-system/types/recipe.d.ts +0 -181
- package/dist/src/styled-system/types/selectors.d.ts +0 -59
- package/dist/src/styled-system/types/static-css.d.ts +0 -56
- package/dist/src/styled-system/types/style-props.d.ts +0 -8089
- package/dist/src/styled-system/types/system-types.d.ts +0 -151
package/package.json
CHANGED
|
@@ -1,7 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "santosp-rslib-project",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepare": "panda codegen",
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "tsc -b && vite build && panda cssgen --outfile dist/styles.css",
|
|
10
|
+
"lint": "eslint .",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"storybook": "storybook dev -p 6006",
|
|
13
|
+
"build-storybook": "bun run build && storybook build",
|
|
14
|
+
"publish": "npm publish --access public"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@untitledui/icons": "^0.0.21",
|
|
18
|
+
"clsx": "^2.1.1",
|
|
19
|
+
"react": "^19.2.0",
|
|
20
|
+
"react-dom": "^19.2.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"prettier": "^3.8.1",
|
|
24
|
+
"@chromatic-com/storybook": "^5.0.1",
|
|
25
|
+
"@eslint/js": "^9.39.1",
|
|
26
|
+
"@microsoft/api-extractor": "^7.57.6",
|
|
27
|
+
"@pandacss/dev": "^1.8.2",
|
|
28
|
+
"@storybook/addon-a11y": "^10.2.16",
|
|
29
|
+
"@storybook/addon-docs": "^10.2.16",
|
|
30
|
+
"@storybook/addon-vitest": "^10.2.16",
|
|
31
|
+
"@storybook/react-vite": "^10.2.16",
|
|
32
|
+
"@types/node": "^24.10.1",
|
|
33
|
+
"@types/react": "^19.2.7",
|
|
34
|
+
"@types/react-dom": "^19.2.3",
|
|
35
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
36
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
37
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
38
|
+
"ajv": "^8.18.0",
|
|
39
|
+
"eslint": "^9.39.1",
|
|
40
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
41
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
42
|
+
"eslint-plugin-storybook": "^10.2.16",
|
|
43
|
+
"globals": "^16.5.0",
|
|
44
|
+
"playwright": "^1.58.2",
|
|
45
|
+
"storybook": "^10.2.16",
|
|
46
|
+
"typescript": "~5.9.3",
|
|
47
|
+
"typescript-eslint": "^8.48.0",
|
|
48
|
+
"unplugin-dts": "^1.0.0-beta.6",
|
|
49
|
+
"vite": "^7.3.1",
|
|
50
|
+
"vite-plugin-dts": "^4.5.4",
|
|
51
|
+
"vitest": "^4.0.18"
|
|
52
|
+
},
|
|
5
53
|
"exports": {
|
|
6
54
|
".": {
|
|
7
55
|
"types": "./dist/index.d.ts",
|
|
@@ -15,44 +63,5 @@
|
|
|
15
63
|
"types": "./dist/index.d.ts",
|
|
16
64
|
"files": [
|
|
17
65
|
"dist"
|
|
18
|
-
]
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "panda codegen && rslib build && panda cssgen --outfile dist/styles.css",
|
|
21
|
-
"build:storybook": "storybook build",
|
|
22
|
-
"dev": "rslib build --watch",
|
|
23
|
-
"format": "prettier --write .",
|
|
24
|
-
"lint": "eslint .",
|
|
25
|
-
"stories": "storybook dev",
|
|
26
|
-
"prepare": "panda codegen",
|
|
27
|
-
"publish": "bunx npm publish --access public"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@eslint/js": "^9.39.2",
|
|
31
|
-
"@pandacss/dev": "^1.8.2",
|
|
32
|
-
"@rsbuild/core": "~1.7.3",
|
|
33
|
-
"@rsbuild/plugin-react": "^1.4.5",
|
|
34
|
-
"@rslib/core": "^0.19.6",
|
|
35
|
-
"@storybook/addon-docs": "^10.2.8",
|
|
36
|
-
"@storybook/addon-onboarding": "^10.2.8",
|
|
37
|
-
"@storybook/react": "^10.2.8",
|
|
38
|
-
"eslint": "^9.39.2",
|
|
39
|
-
"globals": "^17.3.0",
|
|
40
|
-
"prettier": "^3.8.1",
|
|
41
|
-
"storybook": "^10.2.8",
|
|
42
|
-
"storybook-addon-rslib": "^3.2.2",
|
|
43
|
-
"storybook-react-rsbuild": "^3.2.2",
|
|
44
|
-
"typescript": "^5.9.3",
|
|
45
|
-
"typescript-eslint": "^8.55.0",
|
|
46
|
-
"@ark-ui/react": "^5.34.0",
|
|
47
|
-
"@untitledui/icons": "^0.0.21",
|
|
48
|
-
"clsx": "^2.1.1",
|
|
49
|
-
"@types/react": "^19.2.14",
|
|
50
|
-
"react": "^19.2.4"
|
|
51
|
-
},
|
|
52
|
-
"peerDependencies": {
|
|
53
|
-
"react": ">=16.9.0",
|
|
54
|
-
"react-dom": ">=16.9.0"
|
|
55
|
-
},
|
|
56
|
-
"private": false,
|
|
57
|
-
"dependencies": {}
|
|
66
|
+
]
|
|
58
67
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ButtonRecipeVariantProps } from '../styled-system/recipes';
|
|
3
|
-
export interface ButtonProps extends Omit<React.ComponentProps<'button'>, 'color'>, ButtonRecipeVariantProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
leftIcon?: React.ReactNode;
|
|
7
|
-
rightIcon?: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const buttonRecipe: import("@pandacss/types").RecipeConfig<import("@pandacss/types").RecipeVariantRecord>;
|
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
tags: string[];
|
|
6
|
-
argTypes: {
|
|
7
|
-
className: {
|
|
8
|
-
control: {
|
|
9
|
-
disable: true;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
leftIcon: {
|
|
13
|
-
control: {
|
|
14
|
-
disable: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
rightIcon: {
|
|
18
|
-
control: {
|
|
19
|
-
disable: true;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
disabled: {
|
|
23
|
-
type: "boolean";
|
|
24
|
-
};
|
|
25
|
-
children: {
|
|
26
|
-
type: "string";
|
|
27
|
-
};
|
|
28
|
-
variant: {
|
|
29
|
-
control: {
|
|
30
|
-
type: "select";
|
|
31
|
-
};
|
|
32
|
-
options: ("solid" | "outline" | "ghost")[];
|
|
33
|
-
};
|
|
34
|
-
size: {
|
|
35
|
-
control: {
|
|
36
|
-
type: "select";
|
|
37
|
-
};
|
|
38
|
-
options: string[];
|
|
39
|
-
};
|
|
40
|
-
color: {
|
|
41
|
-
control: {
|
|
42
|
-
type: "select";
|
|
43
|
-
};
|
|
44
|
-
options: ("primary" | "secondary" | "dark" | "light" | "purple" | "orange" | "red" | "yellow" | "sand" | "petrol" | "olive" | "lead" | "pink" | "neutral" | "green")[];
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default meta;
|
|
49
|
-
type Story = StoryObj<typeof meta>;
|
|
50
|
-
export declare const Solid: Story;
|
|
51
|
-
export declare const Outline: Story;
|
|
52
|
-
export declare const Ghost: Story;
|
|
53
|
-
export declare const Icon: Story;
|
|
54
|
-
export declare const Disabled: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const datePickerRecipe: import("@pandacss/types").SlotRecipeConfig;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type FlexProperties } from '../styled-system/patterns';
|
|
3
|
-
/**
|
|
4
|
-
* Flex component props.
|
|
5
|
-
*
|
|
6
|
-
* @property {React.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?: React.ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Additional CSS classes.
|
|
16
|
-
*/
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const Flex: (props: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type GridProperties, type GridItemProperties } from '../styled-system/patterns';
|
|
3
|
-
/**
|
|
4
|
-
* Grid component props.
|
|
5
|
-
*
|
|
6
|
-
* @property {React.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?: React.ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Additional CSS classes.
|
|
16
|
-
*/
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Grid item component props.
|
|
21
|
-
*
|
|
22
|
-
* @property {React.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?: React.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 };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React 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 {React.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?: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Link href attribute.
|
|
23
|
-
*/
|
|
24
|
-
href: string;
|
|
25
|
-
/**
|
|
26
|
-
* Left icon element.
|
|
27
|
-
*/
|
|
28
|
-
leftIcon?: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* Right icon element.
|
|
31
|
-
*/
|
|
32
|
-
rightIcon?: React.ReactNode;
|
|
33
|
-
}
|
|
34
|
-
export declare const Link: (props: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const linkRecipe: import("@pandacss/types").RecipeConfig<import("@pandacss/types").RecipeVariantRecord>;
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
tags: string[];
|
|
6
|
-
argTypes: {
|
|
7
|
-
className: {
|
|
8
|
-
control: {
|
|
9
|
-
disable: true;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
disabled: {
|
|
13
|
-
type: "boolean";
|
|
14
|
-
};
|
|
15
|
-
children: {
|
|
16
|
-
type: "string";
|
|
17
|
-
};
|
|
18
|
-
color: {
|
|
19
|
-
control: {
|
|
20
|
-
type: "select";
|
|
21
|
-
};
|
|
22
|
-
options: ("primary" | "secondary" | "dark" | "light" | "purple" | "orange" | "red" | "yellow" | "sand" | "petrol" | "olive" | "lead" | "pink" | "neutral" | "green")[];
|
|
23
|
-
description: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export default meta;
|
|
28
|
-
type Story = StoryObj<typeof meta>;
|
|
29
|
-
export declare const Default: Story;
|
|
30
|
-
export declare const Disabled: Story;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type TextRecipeVariantProps } from '../styled-system/recipes';
|
|
3
|
-
/**
|
|
4
|
-
* Text component props.
|
|
5
|
-
*
|
|
6
|
-
* @property {React.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?: React.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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const textRecipe: import("@pandacss/types").RecipeConfig<import("@pandacss/types").RecipeVariantRecord>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { type TextProps } from './text';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
tags: string[];
|
|
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: ("h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "sm" | "md" | "lg" | "xxs" | "xs")[];
|
|
33
|
-
};
|
|
34
|
-
color: {
|
|
35
|
-
control: {
|
|
36
|
-
type: "select";
|
|
37
|
-
};
|
|
38
|
-
options: ("primary" | "secondary" | "dark" | "light" | "purple" | "orange" | "red" | "yellow" | "sand" | "petrol" | "olive" | "lead" | "pink" | "neutral" | "green")[];
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject } from '../types/index';
|
|
3
|
-
|
|
4
|
-
type Styles = SystemStyleObject | undefined | null | false
|
|
5
|
-
|
|
6
|
-
interface CssRawFunction {
|
|
7
|
-
(styles: Styles): SystemStyleObject
|
|
8
|
-
(styles: Styles[]): SystemStyleObject
|
|
9
|
-
(...styles: Array<Styles | Styles[]>): SystemStyleObject
|
|
10
|
-
(styles: Styles): SystemStyleObject
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface CssFunction {
|
|
14
|
-
(styles: Styles): string
|
|
15
|
-
(styles: Styles[]): string
|
|
16
|
-
(...styles: Array<Styles | Styles[]>): string
|
|
17
|
-
(styles: Styles): string
|
|
18
|
-
|
|
19
|
-
raw: CssRawFunction
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare const css: CssFunction;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { AspectRatioProperties } from '../patterns/aspect-ratio';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface AspectRatioProps extends AspectRatioProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof AspectRatioProperties | 'aspectRatio'> {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const AspectRatio: FunctionComponent<AspectRatioProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { BleedProperties } from '../patterns/bleed';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface BleedProps extends BleedProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof BleedProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Bleed: FunctionComponent<BleedProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { BoxProperties } from '../patterns/box';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface BoxProps extends BoxProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof BoxProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Box: FunctionComponent<BoxProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { CenterProperties } from '../patterns/center';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface CenterProps extends CenterProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof CenterProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Center: FunctionComponent<CenterProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { CircleProperties } from '../patterns/circle';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface CircleProps extends CircleProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof CircleProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Circle: FunctionComponent<CircleProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { ContainerProperties } from '../patterns/container';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface ContainerProps extends ContainerProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof ContainerProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Container: FunctionComponent<ContainerProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { CqProperties } from '../patterns/cq';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface CqProps extends CqProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof CqProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Cq: FunctionComponent<CqProps>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SlotRecipeRuntimeFn, RecipeVariantProps } from '../types/recipe';
|
|
3
|
-
import type { JsxHTMLProps, JsxStyleProps, Assign } from '../types/system-types';
|
|
4
|
-
import type { JsxFactoryOptions, ComponentProps, DataAttrs, AsProps } from '../types/jsx';
|
|
5
|
-
import type { ComponentType, ElementType } from 'react'
|
|
6
|
-
|
|
7
|
-
interface UnstyledProps {
|
|
8
|
-
unstyled?: boolean | undefined
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
type SvaFn<S extends string = any> = SlotRecipeRuntimeFn<S, any>
|
|
12
|
-
interface SlotRecipeFn {
|
|
13
|
-
__type: any
|
|
14
|
-
__slot: string
|
|
15
|
-
(props?: any): any
|
|
16
|
-
}
|
|
17
|
-
type SlotRecipe = SvaFn | SlotRecipeFn
|
|
18
|
-
|
|
19
|
-
type InferSlot<R extends SlotRecipe> = R extends SlotRecipeFn ? R['__slot'] : R extends SvaFn<infer S> ? S : never
|
|
20
|
-
|
|
21
|
-
interface WithProviderOptions<P = {}> {
|
|
22
|
-
defaultProps?: (Partial<P> & DataAttrs) | undefined
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
type StyleContextProvider<T extends ElementType, R extends SlotRecipe> = ComponentType<
|
|
26
|
-
JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<RecipeVariantProps<R>, JsxStyleProps>>
|
|
27
|
-
>
|
|
28
|
-
|
|
29
|
-
type StyleContextRootProvider<T extends ElementType, R extends SlotRecipe> = ComponentType<
|
|
30
|
-
ComponentProps<T> & UnstyledProps & RecipeVariantProps<R>
|
|
31
|
-
>
|
|
32
|
-
|
|
33
|
-
type StyleContextConsumer<T extends ElementType> = ComponentType<
|
|
34
|
-
JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
|
|
35
|
-
>
|
|
36
|
-
|
|
37
|
-
export interface StyleContext<R extends SlotRecipe> {
|
|
38
|
-
withRootProvider: <T extends ElementType>(
|
|
39
|
-
Component: T,
|
|
40
|
-
options?: WithProviderOptions<ComponentProps<T>> | undefined
|
|
41
|
-
) => StyleContextRootProvider<T, R>
|
|
42
|
-
withProvider: <T extends ElementType>(
|
|
43
|
-
Component: T,
|
|
44
|
-
slot: InferSlot<R>,
|
|
45
|
-
options?: JsxFactoryOptions<ComponentProps<T>> | undefined
|
|
46
|
-
) => StyleContextProvider<T, R>
|
|
47
|
-
withContext: <T extends ElementType>(
|
|
48
|
-
Component: T,
|
|
49
|
-
slot: InferSlot<R>,
|
|
50
|
-
options?: JsxFactoryOptions<ComponentProps<T>> | undefined
|
|
51
|
-
) => StyleContextConsumer<T>
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export declare function createStyleContext<R extends SlotRecipe>(recipe: R): StyleContext<R>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { DividerProperties } from '../patterns/divider';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface DividerProps extends DividerProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof DividerProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Divider: FunctionComponent<DividerProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { FlexProperties } from '../patterns/flex';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface FlexProps extends FlexProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof FlexProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Flex: FunctionComponent<FlexProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { FloatProperties } from '../patterns/float';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface FloatProps extends FloatProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof FloatProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Float: FunctionComponent<FloatProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { GridItemProperties } from '../patterns/grid-item';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface GridItemProps extends GridItemProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof GridItemProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const GridItem: FunctionComponent<GridItemProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { GridProperties } from '../patterns/grid';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface GridProps extends GridProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof GridProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const Grid: FunctionComponent<GridProps>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { FunctionComponent } from 'react'
|
|
3
|
-
import type { HstackProperties } from '../patterns/hstack';
|
|
4
|
-
import type { HTMLStyledProps } from '../types/jsx';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
|
|
7
|
-
export interface HstackProps extends HstackProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof HstackProperties > {}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const HStack: FunctionComponent<HstackProps>
|