@ttoss/ui 1.35.2 → 1.35.3
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 +19 -0
- package/dist/esm/index.js +5 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -10
- package/package.json +3 -3
- package/src/components/CloseButton.tsx +1 -1
- package/src/components/Paragraph.tsx +1 -0
- package/src/index.ts +1 -0
package/README.md
CHANGED
|
@@ -93,6 +93,25 @@ export const Provider = (props) => {
|
|
|
93
93
|
};
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
+
### Icons
|
|
97
|
+
|
|
98
|
+
Our icon module is powered by [Iconify](https://iconify.design/), as this have an awesome open source icon collection.
|
|
99
|
+
To use it, just import `Icon` and start using. The styling is maded the same as Iconify and all his icons are available for using.
|
|
100
|
+
|
|
101
|
+
Please refer to our storybook to see some examples of use.
|
|
102
|
+
|
|
103
|
+
Please, refer to [Iconify docs](https://docs.iconify.design/icon-components/react/) for the parameters and more control over icons
|
|
104
|
+
|
|
105
|
+
```tsx
|
|
106
|
+
import { Icon } from '@ttoss/ui';
|
|
107
|
+
|
|
108
|
+
export const IconExample = () => {
|
|
109
|
+
return (
|
|
110
|
+
<Icon icon="mdi-light:alarm-panel" style={{ color: 'red' }} width={100} />
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
```
|
|
114
|
+
|
|
96
115
|
## Misc
|
|
97
116
|
|
|
98
117
|
### keyframes
|
package/dist/esm/index.js
CHANGED
|
@@ -402,8 +402,8 @@ var HelpText = ({
|
|
|
402
402
|
};
|
|
403
403
|
|
|
404
404
|
// src/components/CloseButton.tsx
|
|
405
|
+
import * as React10 from "react";
|
|
405
406
|
import { Button as Button2 } from "theme-ui";
|
|
406
|
-
import React10 from "react";
|
|
407
407
|
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
408
408
|
var CloseButton = /*#__PURE__*/React10.forwardRef(({
|
|
409
409
|
label,
|
|
@@ -562,4 +562,7 @@ var Stack = /*#__PURE__*/React12.forwardRef((props, ref) => {
|
|
|
562
562
|
});
|
|
563
563
|
});
|
|
564
564
|
Stack.displayName = "Stack";
|
|
565
|
-
|
|
565
|
+
|
|
566
|
+
// src/components/Paragraph.tsx
|
|
567
|
+
import { Paragraph } from "theme-ui";
|
|
568
|
+
export { Badge, BaseStyles, Box, Button, Card, Checkbox, CloseButton, Container, Divider, Flex, Global2 as Global, Grid, Heading, HelpText, Icon, IconButton, Image, InfiniteLinearProgress, Input, InputNumber, Label, Progress as LinearProgress, Link, Paragraph, Radio, Select, Slider, Spinner, Stack, Text, Textarea, ThemeProvider, keyframes, useBreakpointIndex, useResponsiveValue, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as theme_ui from 'theme-ui';
|
|
2
2
|
import { Theme, BadgeProps as BadgeProps$1, ButtonProps as ButtonProps$1, InputProps as InputProps$1, LabelProps as LabelProps$1, LinkProps as LinkProps$1, SelectProps, IconButtonProps, TextareaProps as TextareaProps$1, TextProps, FlexProps } from 'theme-ui';
|
|
3
|
-
export { BaseStyles, Box, BoxProps, Card, CardProps, Checkbox, CheckboxProps, Container, ContainerProps, Divider, DividerProps, Flex, FlexProps, Global, Grid, GridProps, Heading, HeadingProps, IconButtonProps, Image, ImageProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Radio, RadioProps, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, SxProp, Text, TextProps, Theme } from 'theme-ui';
|
|
3
|
+
export { BaseStyles, Box, BoxProps, Card, CardProps, Checkbox, CheckboxProps, Container, ContainerProps, Divider, DividerProps, Flex, FlexProps, Global, Grid, GridProps, Heading, HeadingProps, IconButtonProps, Image, ImageProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Paragraph, ParagraphProps, Radio, RadioProps, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, SxProp, Text, TextProps, Theme } from 'theme-ui';
|
|
4
4
|
export { useBreakpointIndex, useResponsiveValue } from '@theme-ui/match-media';
|
|
5
5
|
export { Keyframes, keyframes } from '@emotion/react';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -73,7 +73,7 @@ type CloseButtonProps = ButtonProps$1 & {
|
|
|
73
73
|
label?: string;
|
|
74
74
|
onlyText?: boolean;
|
|
75
75
|
};
|
|
76
|
-
declare const CloseButton:
|
|
76
|
+
declare const CloseButton: React.ForwardRefExoticComponent<Omit<CloseButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
77
77
|
|
|
78
78
|
type InputNumberProps = Omit<InputProps$1, 'type' | 'variant' | 'onChange'> & {
|
|
79
79
|
onChange: (value: number) => void;
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
39
39
|
var src_exports = {};
|
|
40
40
|
__export(src_exports, {
|
|
41
41
|
Badge: () => Badge,
|
|
42
|
-
BaseStyles: () =>
|
|
42
|
+
BaseStyles: () => import_theme_ui28.BaseStyles,
|
|
43
43
|
Box: () => import_theme_ui4.Box,
|
|
44
44
|
Button: () => Button,
|
|
45
45
|
Card: () => import_theme_ui6.Card,
|
|
@@ -48,7 +48,7 @@ __export(src_exports, {
|
|
|
48
48
|
Container: () => import_theme_ui24.Container,
|
|
49
49
|
Divider: () => import_theme_ui7.Divider,
|
|
50
50
|
Flex: () => import_theme_ui8.Flex,
|
|
51
|
-
Global: () =>
|
|
51
|
+
Global: () => import_theme_ui28.Global,
|
|
52
52
|
Grid: () => import_theme_ui9.Grid,
|
|
53
53
|
Heading: () => import_theme_ui10.Heading,
|
|
54
54
|
HelpText: () => HelpText,
|
|
@@ -61,6 +61,7 @@ __export(src_exports, {
|
|
|
61
61
|
Label: () => Label,
|
|
62
62
|
LinearProgress: () => import_theme_ui15.Progress,
|
|
63
63
|
Link: () => Link,
|
|
64
|
+
Paragraph: () => import_theme_ui27.Paragraph,
|
|
64
65
|
Radio: () => import_theme_ui19.Radio,
|
|
65
66
|
Select: () => Select,
|
|
66
67
|
Slider: () => import_theme_ui21.Slider,
|
|
@@ -69,15 +70,15 @@ __export(src_exports, {
|
|
|
69
70
|
Text: () => import_theme_ui16.Text,
|
|
70
71
|
Textarea: () => Textarea,
|
|
71
72
|
ThemeProvider: () => ThemeProvider,
|
|
72
|
-
keyframes: () =>
|
|
73
|
+
keyframes: () => import_react8.keyframes,
|
|
73
74
|
useBreakpointIndex: () => import_match_media.useBreakpointIndex,
|
|
74
75
|
useResponsiveValue: () => import_match_media.useResponsiveValue,
|
|
75
76
|
useTheme: () => useTheme
|
|
76
77
|
});
|
|
77
78
|
module.exports = __toCommonJS(src_exports);
|
|
78
|
-
var
|
|
79
|
+
var import_theme_ui28 = require("theme-ui");
|
|
79
80
|
var import_match_media = require("@theme-ui/match-media");
|
|
80
|
-
var
|
|
81
|
+
var import_react8 = require("@emotion/react");
|
|
81
82
|
|
|
82
83
|
// src/theme/ThemeProvider.tsx
|
|
83
84
|
var import_Bruttal = require("@ttoss/theme/Bruttal");
|
|
@@ -476,10 +477,10 @@ var HelpText = ({
|
|
|
476
477
|
};
|
|
477
478
|
|
|
478
479
|
// src/components/CloseButton.tsx
|
|
480
|
+
var React10 = __toESM(require("react"));
|
|
479
481
|
var import_theme_ui25 = require("theme-ui");
|
|
480
|
-
var import_react7 = __toESM(require("react"));
|
|
481
482
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
482
|
-
var CloseButton =
|
|
483
|
+
var CloseButton = React10.forwardRef(({
|
|
483
484
|
label,
|
|
484
485
|
onlyText,
|
|
485
486
|
...props
|
|
@@ -502,9 +503,9 @@ CloseButton.displayName = "CloseButton";
|
|
|
502
503
|
|
|
503
504
|
// src/components/InputNumber.tsx
|
|
504
505
|
var import_theme_ui26 = require("theme-ui");
|
|
505
|
-
var
|
|
506
|
+
var import_react7 = __toESM(require("react"));
|
|
506
507
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
507
|
-
var InputNumber =
|
|
508
|
+
var InputNumber = import_react7.default.forwardRef(({
|
|
508
509
|
sx,
|
|
509
510
|
value,
|
|
510
511
|
infoIcon,
|
|
@@ -512,7 +513,7 @@ var InputNumber = import_react8.default.forwardRef(({
|
|
|
512
513
|
onClickInfoIcon,
|
|
513
514
|
...inputProps
|
|
514
515
|
}, ref) => {
|
|
515
|
-
const sxProps =
|
|
516
|
+
const sxProps = import_react7.default.useMemo(() => {
|
|
516
517
|
const size = String(typeof value === "undefined" ? 0 : value).length;
|
|
517
518
|
if (inputProps["aria-invalid"] === "true") {
|
|
518
519
|
return {
|
|
@@ -636,6 +637,9 @@ var Stack = React12.forwardRef((props, ref) => {
|
|
|
636
637
|
});
|
|
637
638
|
});
|
|
638
639
|
Stack.displayName = "Stack";
|
|
640
|
+
|
|
641
|
+
// src/components/Paragraph.tsx
|
|
642
|
+
var import_theme_ui27 = require("theme-ui");
|
|
639
643
|
// Annotate the CommonJS export names for ESM import in node:
|
|
640
644
|
0 && (module.exports = {
|
|
641
645
|
Badge,
|
|
@@ -661,6 +665,7 @@ Stack.displayName = "Stack";
|
|
|
661
665
|
Label,
|
|
662
666
|
LinearProgress,
|
|
663
667
|
Link,
|
|
668
|
+
Paragraph,
|
|
664
669
|
Radio,
|
|
665
670
|
Select,
|
|
666
671
|
Slider,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/ui",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.3",
|
|
4
4
|
"description": "Primitive layout, typographic, and other components for styling applications.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@emotion/react": "^11.10.6",
|
|
24
24
|
"@iconify-icon/react": "^1.0.7",
|
|
25
25
|
"@theme-ui/match-media": "^0.15.7",
|
|
26
|
-
"@ttoss/theme": "^1.4.
|
|
26
|
+
"@ttoss/theme": "^1.4.29",
|
|
27
27
|
"theme-ui": "^0.15.7"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "b14482e626119da6b065b28523b6668dbbcef585"
|
|
52
52
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Paragraph, type ParagraphProps } from 'theme-ui';
|
package/src/index.ts
CHANGED
|
@@ -37,3 +37,4 @@ export { HelpText, type HelpTextProps } from './components/HelpText';
|
|
|
37
37
|
export { CloseButton, type CloseButtonProps } from './components/CloseButton';
|
|
38
38
|
export { InputNumber, type InputNumberProps } from './components/InputNumber';
|
|
39
39
|
export { Stack, type StackProps } from './components/Stack';
|
|
40
|
+
export { Paragraph, type ParagraphProps } from './components/Paragraph';
|