@ttoss/ui 1.12.1 → 1.13.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/dist/esm/index.js +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -16
- package/package.json +4 -4
- package/src/components/Divider/Divider.tsx +1 -0
- package/src/components/Heading/Heading.tsx +1 -0
- package/src/index.spec.tsx +2 -0
- package/src/index.ts +2 -0
package/dist/esm/index.js
CHANGED
|
@@ -163,6 +163,9 @@ var Button_default = Button;
|
|
|
163
163
|
// src/components/Card/Card.tsx
|
|
164
164
|
import { Card } from "@theme-ui/components";
|
|
165
165
|
|
|
166
|
+
// src/components/Divider/Divider.tsx
|
|
167
|
+
import { Divider, DividerProps } from "@theme-ui/components";
|
|
168
|
+
|
|
166
169
|
// src/components/Flex/Flex.tsx
|
|
167
170
|
import { Flex } from "@theme-ui/components";
|
|
168
171
|
|
|
@@ -198,6 +201,9 @@ var FormField = ({ children, label, error }) => {
|
|
|
198
201
|
};
|
|
199
202
|
var FormField_default = FormField;
|
|
200
203
|
|
|
204
|
+
// src/components/Heading/Heading.tsx
|
|
205
|
+
import { Heading, HeadingProps } from "@theme-ui/components";
|
|
206
|
+
|
|
201
207
|
// src/components/Image/Image.tsx
|
|
202
208
|
import { Image } from "@theme-ui/components";
|
|
203
209
|
|
|
@@ -214,8 +220,12 @@ export {
|
|
|
214
220
|
Box,
|
|
215
221
|
Button_default as Button,
|
|
216
222
|
Card,
|
|
223
|
+
Divider,
|
|
224
|
+
DividerProps,
|
|
217
225
|
Flex,
|
|
218
226
|
FormField_default as FormField,
|
|
227
|
+
Heading,
|
|
228
|
+
HeadingProps,
|
|
219
229
|
Image,
|
|
220
230
|
Input,
|
|
221
231
|
LinearProgress,
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { Themed } from '@theme-ui/mdx';
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import * as _theme_ui_components from '@theme-ui/components';
|
|
10
10
|
import { ButtonProps, ProgressProps } from '@theme-ui/components';
|
|
11
|
-
export { Box, BoxProps, ButtonProps, Card, CardProps, Flex, FlexProps, Image, ImageProps, Input, InputProps, Link, LinkProps, Text, TextProps } from '@theme-ui/components';
|
|
11
|
+
export { Box, BoxProps, ButtonProps, Card, CardProps, Divider, DividerProps, Flex, FlexProps, Heading, HeadingProps, Image, ImageProps, Input, InputProps, Link, LinkProps, Text, TextProps } from '@theme-ui/components';
|
|
12
12
|
|
|
13
13
|
declare type ThemeProviderProps = {
|
|
14
14
|
children?: React.ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -42,13 +42,17 @@ __export(src_exports, {
|
|
|
42
42
|
Box: () => import_components.Box,
|
|
43
43
|
Button: () => Button_default,
|
|
44
44
|
Card: () => import_components3.Card,
|
|
45
|
-
|
|
45
|
+
Divider: () => import_components4.Divider,
|
|
46
|
+
DividerProps: () => import_components4.DividerProps,
|
|
47
|
+
Flex: () => import_components5.Flex,
|
|
46
48
|
FormField: () => FormField_default,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
Heading: () => import_components8.Heading,
|
|
50
|
+
HeadingProps: () => import_components8.HeadingProps,
|
|
51
|
+
Image: () => import_components9.Image,
|
|
52
|
+
Input: () => import_components10.Input,
|
|
49
53
|
LinearProgress: () => LinearProgress,
|
|
50
|
-
Link: () =>
|
|
51
|
-
Text: () =>
|
|
54
|
+
Link: () => import_components11.Link,
|
|
55
|
+
Text: () => import_components7.Text,
|
|
52
56
|
ThemeProvider: () => ThemeProvider_default,
|
|
53
57
|
Themed: () => import_mdx.Themed,
|
|
54
58
|
color: () => color,
|
|
@@ -203,17 +207,20 @@ var Button_default = Button;
|
|
|
203
207
|
// src/components/Card/Card.tsx
|
|
204
208
|
var import_components3 = require("@theme-ui/components");
|
|
205
209
|
|
|
206
|
-
// src/components/
|
|
210
|
+
// src/components/Divider/Divider.tsx
|
|
207
211
|
var import_components4 = require("@theme-ui/components");
|
|
208
212
|
|
|
213
|
+
// src/components/Flex/Flex.tsx
|
|
214
|
+
var import_components5 = require("@theme-ui/components");
|
|
215
|
+
|
|
209
216
|
// src/components/FormField/FormField.tsx
|
|
210
217
|
var React3 = __toESM(require("react"));
|
|
211
218
|
|
|
212
219
|
// src/components/Label/Label.tsx
|
|
213
|
-
var
|
|
220
|
+
var import_components6 = require("@theme-ui/components");
|
|
214
221
|
|
|
215
222
|
// src/components/Text/Text.tsx
|
|
216
|
-
var
|
|
223
|
+
var import_components7 = require("@theme-ui/components");
|
|
217
224
|
|
|
218
225
|
// src/components/FormField/FormField.tsx
|
|
219
226
|
var FormField = ({ children, label, error }) => {
|
|
@@ -226,11 +233,11 @@ var FormField = ({ children, label, error }) => {
|
|
|
226
233
|
}
|
|
227
234
|
return [];
|
|
228
235
|
})();
|
|
229
|
-
return /* @__PURE__ */ React3.createElement(import_components.Box, null, /* @__PURE__ */ React3.createElement(
|
|
236
|
+
return /* @__PURE__ */ React3.createElement(import_components.Box, null, /* @__PURE__ */ React3.createElement(import_components6.Label, {
|
|
230
237
|
sx: { display: "flex", flexDirection: "column" }
|
|
231
|
-
}, label && /* @__PURE__ */ React3.createElement(
|
|
238
|
+
}, label && /* @__PURE__ */ React3.createElement(import_components7.Text, {
|
|
232
239
|
as: "span"
|
|
233
|
-
}, label), children), errorAsArray.map((err) => /* @__PURE__ */ React3.createElement(
|
|
240
|
+
}, label), children), errorAsArray.map((err) => /* @__PURE__ */ React3.createElement(import_components7.Text, {
|
|
234
241
|
key: err,
|
|
235
242
|
as: "span",
|
|
236
243
|
variant: "error"
|
|
@@ -238,25 +245,32 @@ var FormField = ({ children, label, error }) => {
|
|
|
238
245
|
};
|
|
239
246
|
var FormField_default = FormField;
|
|
240
247
|
|
|
248
|
+
// src/components/Heading/Heading.tsx
|
|
249
|
+
var import_components8 = require("@theme-ui/components");
|
|
250
|
+
|
|
241
251
|
// src/components/Image/Image.tsx
|
|
242
|
-
var
|
|
252
|
+
var import_components9 = require("@theme-ui/components");
|
|
243
253
|
|
|
244
254
|
// src/components/Input/Input.tsx
|
|
245
|
-
var
|
|
255
|
+
var import_components10 = require("@theme-ui/components");
|
|
246
256
|
|
|
247
257
|
// src/components/Link/Link.tsx
|
|
248
|
-
var
|
|
258
|
+
var import_components11 = require("@theme-ui/components");
|
|
249
259
|
|
|
250
260
|
// src/components/LinearProgress/LinearProgress.tsx
|
|
251
|
-
var
|
|
252
|
-
var LinearProgress =
|
|
261
|
+
var import_components12 = require("@theme-ui/components");
|
|
262
|
+
var LinearProgress = import_components12.Progress;
|
|
253
263
|
// Annotate the CommonJS export names for ESM import in node:
|
|
254
264
|
0 && (module.exports = {
|
|
255
265
|
Box,
|
|
256
266
|
Button,
|
|
257
267
|
Card,
|
|
268
|
+
Divider,
|
|
269
|
+
DividerProps,
|
|
258
270
|
Flex,
|
|
259
271
|
FormField,
|
|
272
|
+
Heading,
|
|
273
|
+
HeadingProps,
|
|
260
274
|
Image,
|
|
261
275
|
Input,
|
|
262
276
|
LinearProgress,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Primitive layout, typographic, and other components for styling applications.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"react": ">=16.8.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@ttoss/config": "^1.
|
|
48
|
-
"@ttoss/test-utils": "^1.
|
|
47
|
+
"@ttoss/config": "^1.13.1",
|
|
48
|
+
"@ttoss/test-utils": "^1.13.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "d3e20aa1e79b71ffe43423bdd954929b677ff661"
|
|
51
51
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Divider, DividerProps } from '@theme-ui/components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Heading, HeadingProps } from '@theme-ui/components';
|
package/src/index.spec.tsx
CHANGED
package/src/index.ts
CHANGED
|
@@ -13,11 +13,13 @@ export { useTheme } from './theme/useTheme';
|
|
|
13
13
|
export { default as Box, BoxProps } from './components/Box/Box';
|
|
14
14
|
export { default as Button, ButtonProps } from './components/Button/Button';
|
|
15
15
|
export { default as Card, CardProps } from './components/Card/Card';
|
|
16
|
+
export { Divider, DividerProps } from './components/Divider/Divider';
|
|
16
17
|
export { default as Flex, FlexProps } from './components/Flex/Flex';
|
|
17
18
|
export {
|
|
18
19
|
default as FormField,
|
|
19
20
|
FormFieldProps,
|
|
20
21
|
} from './components/FormField/FormField';
|
|
22
|
+
export { Heading, HeadingProps } from './components/Heading/Heading';
|
|
21
23
|
export { default as Image, ImageProps } from './components/Image/Image';
|
|
22
24
|
export { default as Input, InputProps } from './components/Input/Input';
|
|
23
25
|
export { default as Link, LinkProps } from './components/Link/Link';
|