@ttoss/ui 1.3.0 → 1.4.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/esm/index.js
CHANGED
|
@@ -27,10 +27,7 @@ import { Themed } from "@theme-ui/mdx";
|
|
|
27
27
|
|
|
28
28
|
// src/theme/ThemeProvider.tsx
|
|
29
29
|
import { Global } from "@emotion/react";
|
|
30
|
-
import {
|
|
31
|
-
ThemeProvider as ThemeUiProvider,
|
|
32
|
-
merge
|
|
33
|
-
} from "@theme-ui/core";
|
|
30
|
+
import { ThemeProvider as ThemeUiProvider, merge } from "@theme-ui/core";
|
|
34
31
|
import * as React2 from "react";
|
|
35
32
|
|
|
36
33
|
// src/theme/defaultTheme.ts
|
|
@@ -48,6 +45,10 @@ var defaultTheme = {
|
|
|
48
45
|
color: "primary",
|
|
49
46
|
textDecoration: "underline",
|
|
50
47
|
cursor: "pointer"
|
|
48
|
+
},
|
|
49
|
+
progress: {
|
|
50
|
+
color: "primary",
|
|
51
|
+
backgroundColor: "background"
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
buttons: {
|
|
@@ -157,6 +158,10 @@ import { Input } from "@theme-ui/components";
|
|
|
157
158
|
|
|
158
159
|
// src/components/Link/Link.tsx
|
|
159
160
|
import { Link } from "@theme-ui/components";
|
|
161
|
+
|
|
162
|
+
// src/components/LinearProgress/LinearProgress.tsx
|
|
163
|
+
import { Progress } from "@theme-ui/components";
|
|
164
|
+
var LinearProgress = Progress;
|
|
160
165
|
export {
|
|
161
166
|
Box,
|
|
162
167
|
Button_default as Button,
|
|
@@ -165,6 +170,7 @@ export {
|
|
|
165
170
|
FormField_default as FormField,
|
|
166
171
|
Image,
|
|
167
172
|
Input,
|
|
173
|
+
LinearProgress,
|
|
168
174
|
Link,
|
|
169
175
|
Text,
|
|
170
176
|
ThemeProvider_default as ThemeProvider,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as color from '@theme-ui/color';
|
|
2
2
|
export { color };
|
|
3
3
|
import * as _theme_ui_core from '@theme-ui/core';
|
|
4
|
-
import {
|
|
4
|
+
import { Theme } from '@theme-ui/core';
|
|
5
5
|
export { Theme } from '@theme-ui/core';
|
|
6
6
|
export { Themed } from '@theme-ui/mdx';
|
|
7
7
|
import * as React from 'react';
|
|
8
|
-
import
|
|
8
|
+
import * as _theme_ui_components from '@theme-ui/components';
|
|
9
|
+
import { ButtonProps, ProgressProps } from '@theme-ui/components';
|
|
9
10
|
export { Box, BoxProps, ButtonProps, Card, CardProps, Flex, FlexProps, Image, ImageProps, Input, InputProps, Link, LinkProps, Text, TextProps } from '@theme-ui/components';
|
|
10
11
|
|
|
11
|
-
declare type ThemeProviderProps =
|
|
12
|
+
declare type ThemeProviderProps = {
|
|
12
13
|
children?: React.ReactNode;
|
|
14
|
+
theme?: Theme;
|
|
13
15
|
};
|
|
14
16
|
declare const ThemeProvider: ({ children, theme }: ThemeProviderProps) => JSX.Element;
|
|
15
17
|
|
|
@@ -24,4 +26,7 @@ declare type FormFieldProps = {
|
|
|
24
26
|
};
|
|
25
27
|
declare const FormField: ({ children, label, error }: FormFieldProps) => JSX.Element;
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
declare type LinearProgressProps = ProgressProps;
|
|
30
|
+
declare const LinearProgress: _theme_ui_components.ForwardRef<HTMLProgressElement, ProgressProps>;
|
|
31
|
+
|
|
32
|
+
export { Button, FormField, FormFieldProps, LinearProgress, LinearProgressProps, ThemeProvider, ThemeProviderProps, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __export(src_exports, {
|
|
|
53
53
|
FormField: () => FormField_default,
|
|
54
54
|
Image: () => import_components7.Image,
|
|
55
55
|
Input: () => import_components8.Input,
|
|
56
|
+
LinearProgress: () => LinearProgress,
|
|
56
57
|
Link: () => import_components9.Link,
|
|
57
58
|
Text: () => import_components6.Text,
|
|
58
59
|
ThemeProvider: () => ThemeProvider_default,
|
|
@@ -88,6 +89,10 @@ var defaultTheme = {
|
|
|
88
89
|
color: "primary",
|
|
89
90
|
textDecoration: "underline",
|
|
90
91
|
cursor: "pointer"
|
|
92
|
+
},
|
|
93
|
+
progress: {
|
|
94
|
+
color: "primary",
|
|
95
|
+
backgroundColor: "background"
|
|
91
96
|
}
|
|
92
97
|
},
|
|
93
98
|
buttons: {
|
|
@@ -197,6 +202,10 @@ var import_components8 = require("@theme-ui/components");
|
|
|
197
202
|
|
|
198
203
|
// src/components/Link/Link.tsx
|
|
199
204
|
var import_components9 = require("@theme-ui/components");
|
|
205
|
+
|
|
206
|
+
// src/components/LinearProgress/LinearProgress.tsx
|
|
207
|
+
var import_components10 = require("@theme-ui/components");
|
|
208
|
+
var LinearProgress = import_components10.Progress;
|
|
200
209
|
module.exports = __toCommonJS(src_exports);
|
|
201
210
|
// Annotate the CommonJS export names for ESM import in node:
|
|
202
211
|
0 && (module.exports = {
|
|
@@ -207,6 +216,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
207
216
|
FormField,
|
|
208
217
|
Image,
|
|
209
218
|
Input,
|
|
219
|
+
LinearProgress,
|
|
210
220
|
Link,
|
|
211
221
|
Text,
|
|
212
222
|
ThemeProvider,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Primitive layout, typographic, and other components for styling applications.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"react": ">=17.0.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@ttoss/config": "^1.
|
|
47
|
-
"@ttoss/test-utils": "^1.
|
|
46
|
+
"@ttoss/config": "^1.4.0",
|
|
47
|
+
"@ttoss/test-utils": "^1.4.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d5ba3afb31742bb86625512b11188841fea0152b"
|
|
50
50
|
}
|
package/src/index.ts
CHANGED
|
@@ -20,4 +20,8 @@ export {
|
|
|
20
20
|
export { default as Image, ImageProps } from './components/Image/Image';
|
|
21
21
|
export { default as Input, InputProps } from './components/Input/Input';
|
|
22
22
|
export { default as Link, LinkProps } from './components/Link/Link';
|
|
23
|
+
export {
|
|
24
|
+
LinearProgress,
|
|
25
|
+
LinearProgressProps,
|
|
26
|
+
} from './components/LinearProgress/LinearProgress';
|
|
23
27
|
export { default as Text, TextProps } from './components/Text/Text';
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { Global } from '@emotion/react';
|
|
2
|
-
import {
|
|
3
|
-
ThemeProvider as ThemeUiProvider,
|
|
4
|
-
ThemeProviderProps as ThemeUiProviderProps,
|
|
5
|
-
merge,
|
|
6
|
-
} from '@theme-ui/core';
|
|
2
|
+
import { ThemeProvider as ThemeUiProvider, Theme, merge } from '@theme-ui/core';
|
|
7
3
|
import * as React from 'react';
|
|
8
4
|
|
|
9
5
|
import { defaultTheme } from './defaultTheme';
|
|
10
6
|
|
|
11
|
-
export type ThemeProviderProps =
|
|
7
|
+
export type ThemeProviderProps = {
|
|
12
8
|
children?: React.ReactNode;
|
|
9
|
+
theme?: Theme;
|
|
13
10
|
};
|
|
14
11
|
|
|
15
12
|
const ThemeProvider = ({ children, theme = {} }: ThemeProviderProps) => {
|