pallote-react 0.15.17 → 0.16.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/components/Alert.d.ts +16 -0
- package/dist/components/Breadcrumbs.d.ts +12 -0
- package/dist/components/Button.d.ts +19 -0
- package/dist/components/Buttons.d.ts +11 -0
- package/dist/components/Card.d.ts +17 -0
- package/dist/components/CardActions.d.ts +9 -0
- package/dist/components/CardContent.d.ts +7 -0
- package/dist/components/CardHeader.d.ts +12 -0
- package/dist/components/CardMedia.d.ts +9 -0
- package/dist/components/Checkbox.d.ts +13 -0
- package/dist/components/Checkboxes.d.ts +17 -0
- package/dist/components/Divider.d.ts +10 -0
- package/dist/components/Input.d.ts +20 -0
- package/dist/components/InputLabel.d.ts +9 -0
- package/dist/components/Link.d.ts +13 -0
- package/dist/components/List.d.ts +7 -0
- package/dist/components/ListItem.d.ts +11 -0
- package/dist/components/Nav.d.ts +10 -0
- package/dist/components/NavBar.d.ts +11 -0
- package/dist/components/NavItem.d.ts +13 -0
- package/dist/components/Radio.d.ts +14 -0
- package/dist/components/RadioButtons.d.ts +17 -0
- package/dist/components/Section.d.ts +13 -0
- package/dist/components/SectionContent.d.ts +9 -0
- package/dist/components/SectionHeader.d.ts +13 -0
- package/dist/components/Select.d.ts +16 -0
- package/dist/components/Snippet.d.ts +8 -0
- package/dist/components/Status.d.ts +10 -0
- package/dist/components/Switch.d.ts +9 -0
- package/dist/components/Tab.d.ts +6 -0
- package/dist/components/Table.d.ts +12 -0
- package/dist/components/TableBody.d.ts +6 -0
- package/dist/components/TableCell.d.ts +9 -0
- package/dist/components/TableFooter.d.ts +5 -0
- package/dist/components/TableHead.d.ts +7 -0
- package/dist/components/TableRow.d.ts +6 -0
- package/dist/components/Tabs.d.ts +16 -0
- package/dist/components/TabsControl.d.ts +6 -0
- package/dist/components/TabsPanel.d.ts +7 -0
- package/dist/components/Tag.d.ts +10 -0
- package/dist/components/Textarea.d.ts +16 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.js +927 -2936
- package/dist/package.json +6 -3
- package/dist/utilities/Color.d.ts +18 -0
- package/dist/utilities/Display.d.ts +10 -0
- package/dist/utilities/Grid.d.ts +24 -0
- package/dist/utilities/Text.d.ts +23 -0
- package/package.json +10 -6
package/dist/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pallote-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"styles": "dist/index.css",
|
|
7
8
|
"files": [
|
|
8
9
|
"README.md",
|
|
10
|
+
"components",
|
|
11
|
+
"index.d.ts",
|
|
9
12
|
"index.js",
|
|
10
|
-
"package.json"
|
|
13
|
+
"package.json",
|
|
14
|
+
"utilities"
|
|
11
15
|
],
|
|
12
16
|
"type": "module",
|
|
13
17
|
"keywords": [],
|
|
@@ -19,7 +23,6 @@
|
|
|
19
23
|
"react-router-dom": ">=6 <8"
|
|
20
24
|
},
|
|
21
25
|
"dependencies": {
|
|
22
|
-
"@babel/preset-react": "^7.26.3",
|
|
23
26
|
"@phosphor-icons/react": "^2.1.10",
|
|
24
27
|
"@rollup/plugin-json": "^6.1.0",
|
|
25
28
|
"classnames": "^2.5.1",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactElement, CSSProperties } from 'react';
|
|
2
|
+
type ColorValue = 'main' | 'contrast' | 'grey90' | 'grey80' | 'grey70' | 'grey60' | 'grey50' | 'grey40' | 'grey30' | 'grey20' | 'grey10' | 'grey5' | 'default' | 'paper' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error';
|
|
3
|
+
export interface ColorProps {
|
|
4
|
+
fill?: ColorValue;
|
|
5
|
+
stroke?: ColorValue;
|
|
6
|
+
customFill?: string;
|
|
7
|
+
customStroke?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
children: ReactElement<{
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
export declare const Color: ({ fill, stroke, customFill, customStroke, className, children, ...props }: ColorProps) => React.ReactElement<{
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type ViewportSize = 'mobile-sm' | 'mobile' | 'tablet' | 'laptop' | 'desktop';
|
|
3
|
+
type DisplayCondition = ViewportSize | 'touch';
|
|
4
|
+
export interface DisplayProps {
|
|
5
|
+
show?: DisplayCondition;
|
|
6
|
+
hide?: DisplayCondition;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Display: ({ show, hide, children }: DisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
type Direction = 'column' | 'columnReverse' | 'row' | 'rowReverse';
|
|
3
|
+
type JustifyContent = 'center' | 'end' | 'start' | 'spaceAround' | 'spaceBetween' | 'spaceEvenly';
|
|
4
|
+
type AlignItems = 'stretch' | 'center' | 'end' | 'start' | 'baseline';
|
|
5
|
+
type ColSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
6
|
+
export interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
item?: boolean;
|
|
8
|
+
wrap?: boolean;
|
|
9
|
+
direction?: Direction;
|
|
10
|
+
justify?: JustifyContent;
|
|
11
|
+
items?: AlignItems;
|
|
12
|
+
self?: AlignItems;
|
|
13
|
+
gap?: ColSize;
|
|
14
|
+
col?: ColSize;
|
|
15
|
+
colxs?: ColSize;
|
|
16
|
+
colsm?: ColSize;
|
|
17
|
+
colmd?: ColSize;
|
|
18
|
+
collg?: ColSize;
|
|
19
|
+
colxl?: ColSize;
|
|
20
|
+
className?: string;
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare const Grid: ({ item, wrap, direction, justify, items, self, gap, col, colxs, colsm, colmd, collg, colxl, className, children, ...props }: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
type TextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle' | 'body' | 'caption' | 'overline';
|
|
3
|
+
type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
4
|
+
type TextWeight = 'regular' | 'bold';
|
|
5
|
+
type TextTransform = 'none' | 'capitalize' | 'uppercase' | 'lowercase' | 'initial' | 'inherit';
|
|
6
|
+
type TextColor = 'default' | 'alt' | 'disabled' | 'contrast' | 'contrastAlt' | 'contrastDisabled' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error';
|
|
7
|
+
type TextComponent = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'legend';
|
|
8
|
+
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
9
|
+
variant?: TextVariant;
|
|
10
|
+
align?: TextAlign;
|
|
11
|
+
weight?: TextWeight;
|
|
12
|
+
transform?: TextTransform;
|
|
13
|
+
italic?: boolean;
|
|
14
|
+
underline?: boolean;
|
|
15
|
+
strikeThrough?: boolean;
|
|
16
|
+
code?: boolean;
|
|
17
|
+
color?: TextColor;
|
|
18
|
+
component?: TextComponent;
|
|
19
|
+
className?: string;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const Text: ({ variant, align, weight, transform, italic, underline, strikeThrough, code, color, component, className, children, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pallote-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"styles": "dist/index.css",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
@@ -17,19 +18,18 @@
|
|
|
17
18
|
"react-router-dom": ">=6 <8"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
|
-
"@babel/preset-react": "^7.26.3",
|
|
21
21
|
"@phosphor-icons/react": "^2.1.10",
|
|
22
22
|
"@rollup/plugin-json": "^6.1.0",
|
|
23
23
|
"classnames": "^2.5.1",
|
|
24
24
|
"react-syntax-highlighter": "^15.6.1",
|
|
25
25
|
"sass": "^1.71.1",
|
|
26
|
-
"pallote-css": "^0.
|
|
26
|
+
"pallote-css": "^0.10.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@chromatic-com/storybook": "^3.2.4",
|
|
30
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
31
30
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
32
31
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
32
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
33
33
|
"@storybook/addon-essentials": "^8.5.6",
|
|
34
34
|
"@storybook/addon-interactions": "^8.5.6",
|
|
35
35
|
"@storybook/addon-onboarding": "^8.5.6",
|
|
@@ -39,10 +39,14 @@
|
|
|
39
39
|
"@storybook/react-vite": "^8.5.6",
|
|
40
40
|
"@storybook/test": "^8.5.6",
|
|
41
41
|
"@storybook/theming": "^8.5.8",
|
|
42
|
-
"
|
|
42
|
+
"@types/react": "^19.2.7",
|
|
43
|
+
"@types/react-dom": "^19.2.3",
|
|
44
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
43
45
|
"rollup": "^4.34.8",
|
|
44
46
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
45
|
-
"storybook": "^8.5.6"
|
|
47
|
+
"storybook": "^8.5.6",
|
|
48
|
+
"tslib": "^2.8.1",
|
|
49
|
+
"typescript": "^5.9.3"
|
|
46
50
|
},
|
|
47
51
|
"scripts": {
|
|
48
52
|
"start": "storybook dev -p 6006",
|