@ttoss/ui 1.30.10 → 1.30.12
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 +18 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +65 -47
- package/package.json +8 -8
- package/src/components/Badge.tsx +1 -0
- package/src/index.ts +1 -0
package/dist/esm/index.js
CHANGED
|
@@ -314,12 +314,24 @@ var BruttalTheme = {
|
|
|
314
314
|
styles: {
|
|
315
315
|
root: {
|
|
316
316
|
fontFamily: "body",
|
|
317
|
-
fontWeight: "normal"
|
|
317
|
+
fontWeight: "normal",
|
|
318
|
+
fontSize: "base",
|
|
319
|
+
margin: 0,
|
|
320
|
+
padding: 0
|
|
318
321
|
}
|
|
319
322
|
},
|
|
320
323
|
/**
|
|
321
324
|
* Components
|
|
322
325
|
*/
|
|
326
|
+
badges: {
|
|
327
|
+
primary: {
|
|
328
|
+
color: "onPrimary",
|
|
329
|
+
bg: "primary",
|
|
330
|
+
fontSize: "sm",
|
|
331
|
+
paddingX: "sm",
|
|
332
|
+
borderRadius: "default"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
323
335
|
buttons: {
|
|
324
336
|
accent: {
|
|
325
337
|
backgroundColor: "accent",
|
|
@@ -542,6 +554,10 @@ init_tsup_inject();
|
|
|
542
554
|
import { useThemeUI } from "theme-ui";
|
|
543
555
|
var useTheme = useThemeUI;
|
|
544
556
|
|
|
557
|
+
// src/components/Badge.tsx
|
|
558
|
+
init_tsup_inject();
|
|
559
|
+
import { Badge } from "theme-ui";
|
|
560
|
+
|
|
545
561
|
// src/components/Box.tsx
|
|
546
562
|
init_tsup_inject();
|
|
547
563
|
import { Box } from "theme-ui";
|
|
@@ -2765,6 +2781,7 @@ import { Textarea } from "theme-ui";
|
|
|
2765
2781
|
init_tsup_inject();
|
|
2766
2782
|
import { Container } from "theme-ui";
|
|
2767
2783
|
export {
|
|
2784
|
+
Badge,
|
|
2768
2785
|
BaseStyles,
|
|
2769
2786
|
Box,
|
|
2770
2787
|
Button,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as theme_ui from 'theme-ui';
|
|
2
2
|
import { Theme, ButtonProps as ButtonProps$1, InputProps as InputProps$1 } from 'theme-ui';
|
|
3
|
-
export { BaseStyles, Box, BoxProps, Card, CardProps, Checkbox, CheckboxProps, Container, ContainerProps, Divider, DividerProps, Flex, FlexProps, Grid, GridProps, Heading, HeadingProps, Image, ImageProps, Label, LabelProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Link, LinkProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, Text, TextProps, Textarea, TextareaProps, Theme } from 'theme-ui';
|
|
3
|
+
export { Badge, BadgeProps, BaseStyles, Box, BoxProps, Card, CardProps, Checkbox, CheckboxProps, Container, ContainerProps, Divider, DividerProps, Flex, FlexProps, Grid, GridProps, Heading, HeadingProps, Image, ImageProps, Label, LabelProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Link, LinkProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, Text, TextProps, Textarea, TextareaProps, Theme } from 'theme-ui';
|
|
4
4
|
export { useBreakpointIndex, useResponsiveValue } from '@theme-ui/match-media';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default from 'react';
|
package/dist/index.js
CHANGED
|
@@ -155,29 +155,30 @@ var require_cjs = __commonJS({
|
|
|
155
155
|
// src/index.ts
|
|
156
156
|
var src_exports = {};
|
|
157
157
|
__export(src_exports, {
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
Badge: () => import_theme_ui3.Badge,
|
|
159
|
+
BaseStyles: () => import_theme_ui24.BaseStyles,
|
|
160
|
+
Box: () => import_theme_ui4.Box,
|
|
160
161
|
Button: () => Button,
|
|
161
|
-
Card: () =>
|
|
162
|
-
Checkbox: () =>
|
|
163
|
-
Container: () =>
|
|
164
|
-
Divider: () =>
|
|
165
|
-
Flex: () =>
|
|
166
|
-
Grid: () =>
|
|
167
|
-
Heading: () =>
|
|
162
|
+
Card: () => import_theme_ui6.Card,
|
|
163
|
+
Checkbox: () => import_theme_ui21.Checkbox,
|
|
164
|
+
Container: () => import_theme_ui23.Container,
|
|
165
|
+
Divider: () => import_theme_ui7.Divider,
|
|
166
|
+
Flex: () => import_theme_ui8.Flex,
|
|
167
|
+
Grid: () => import_theme_ui9.Grid,
|
|
168
|
+
Heading: () => import_theme_ui10.Heading,
|
|
168
169
|
Icon: () => Icon2,
|
|
169
|
-
Image: () =>
|
|
170
|
+
Image: () => import_theme_ui11.Image,
|
|
170
171
|
InfiniteLinearProgress: () => InfiniteLinearProgress,
|
|
171
172
|
Input: () => Input,
|
|
172
|
-
Label: () =>
|
|
173
|
-
LinearProgress: () =>
|
|
174
|
-
Link: () =>
|
|
175
|
-
Radio: () =>
|
|
176
|
-
Select: () =>
|
|
177
|
-
Slider: () =>
|
|
178
|
-
Spinner: () =>
|
|
179
|
-
Text: () =>
|
|
180
|
-
Textarea: () =>
|
|
173
|
+
Label: () => import_theme_ui13.Label,
|
|
174
|
+
LinearProgress: () => import_theme_ui15.Progress,
|
|
175
|
+
Link: () => import_theme_ui14.Link,
|
|
176
|
+
Radio: () => import_theme_ui19.Radio,
|
|
177
|
+
Select: () => import_theme_ui17.Select,
|
|
178
|
+
Slider: () => import_theme_ui20.Slider,
|
|
179
|
+
Spinner: () => import_theme_ui18.Spinner,
|
|
180
|
+
Text: () => import_theme_ui16.Text,
|
|
181
|
+
Textarea: () => import_theme_ui22.Textarea,
|
|
181
182
|
ThemeProvider: () => ThemeProvider,
|
|
182
183
|
useBreakpointIndex: () => import_match_media.useBreakpointIndex,
|
|
183
184
|
useResponsiveValue: () => import_match_media.useResponsiveValue,
|
|
@@ -185,7 +186,7 @@ __export(src_exports, {
|
|
|
185
186
|
});
|
|
186
187
|
module.exports = __toCommonJS(src_exports);
|
|
187
188
|
init_tsup_inject();
|
|
188
|
-
var
|
|
189
|
+
var import_theme_ui24 = require("theme-ui");
|
|
189
190
|
var import_match_media = require("@theme-ui/match-media");
|
|
190
191
|
|
|
191
192
|
// src/theme/ThemeProvider.tsx
|
|
@@ -352,12 +353,24 @@ var BruttalTheme = {
|
|
|
352
353
|
styles: {
|
|
353
354
|
root: {
|
|
354
355
|
fontFamily: "body",
|
|
355
|
-
fontWeight: "normal"
|
|
356
|
+
fontWeight: "normal",
|
|
357
|
+
fontSize: "base",
|
|
358
|
+
margin: 0,
|
|
359
|
+
padding: 0
|
|
356
360
|
}
|
|
357
361
|
},
|
|
358
362
|
/**
|
|
359
363
|
* Components
|
|
360
364
|
*/
|
|
365
|
+
badges: {
|
|
366
|
+
primary: {
|
|
367
|
+
color: "onPrimary",
|
|
368
|
+
bg: "primary",
|
|
369
|
+
fontSize: "sm",
|
|
370
|
+
paddingX: "sm",
|
|
371
|
+
borderRadius: "default"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
361
374
|
buttons: {
|
|
362
375
|
accent: {
|
|
363
376
|
backgroundColor: "accent",
|
|
@@ -580,14 +593,18 @@ init_tsup_inject();
|
|
|
580
593
|
var import_theme_ui2 = require("theme-ui");
|
|
581
594
|
var useTheme = import_theme_ui2.useThemeUI;
|
|
582
595
|
|
|
583
|
-
// src/components/
|
|
596
|
+
// src/components/Badge.tsx
|
|
584
597
|
init_tsup_inject();
|
|
585
598
|
var import_theme_ui3 = require("theme-ui");
|
|
586
599
|
|
|
600
|
+
// src/components/Box.tsx
|
|
601
|
+
init_tsup_inject();
|
|
602
|
+
var import_theme_ui4 = require("theme-ui");
|
|
603
|
+
|
|
587
604
|
// src/components/Button.tsx
|
|
588
605
|
init_tsup_inject();
|
|
589
606
|
var React4 = __toESM(require("react"));
|
|
590
|
-
var
|
|
607
|
+
var import_theme_ui5 = require("theme-ui");
|
|
591
608
|
|
|
592
609
|
// src/components/Icon.tsx
|
|
593
610
|
init_tsup_inject();
|
|
@@ -2623,7 +2640,7 @@ var Button = React4.forwardRef(
|
|
|
2623
2640
|
(props, ref) => {
|
|
2624
2641
|
const { children, leftIcon, rightIcon, ...restProps } = props;
|
|
2625
2642
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
2626
|
-
|
|
2643
|
+
import_theme_ui5.Button,
|
|
2627
2644
|
{
|
|
2628
2645
|
ref,
|
|
2629
2646
|
...restProps,
|
|
@@ -2649,38 +2666,38 @@ Button.displayName = "Button";
|
|
|
2649
2666
|
|
|
2650
2667
|
// src/components/Card.tsx
|
|
2651
2668
|
init_tsup_inject();
|
|
2652
|
-
var
|
|
2669
|
+
var import_theme_ui6 = require("theme-ui");
|
|
2653
2670
|
|
|
2654
2671
|
// src/components/Divider.tsx
|
|
2655
2672
|
init_tsup_inject();
|
|
2656
|
-
var
|
|
2673
|
+
var import_theme_ui7 = require("theme-ui");
|
|
2657
2674
|
|
|
2658
2675
|
// src/components/Flex.tsx
|
|
2659
2676
|
init_tsup_inject();
|
|
2660
|
-
var
|
|
2677
|
+
var import_theme_ui8 = require("theme-ui");
|
|
2661
2678
|
|
|
2662
2679
|
// src/components/Grid.tsx
|
|
2663
2680
|
init_tsup_inject();
|
|
2664
|
-
var
|
|
2681
|
+
var import_theme_ui9 = require("theme-ui");
|
|
2665
2682
|
|
|
2666
2683
|
// src/components/Heading.tsx
|
|
2667
2684
|
init_tsup_inject();
|
|
2668
|
-
var
|
|
2685
|
+
var import_theme_ui10 = require("theme-ui");
|
|
2669
2686
|
|
|
2670
2687
|
// src/components/Image.tsx
|
|
2671
2688
|
init_tsup_inject();
|
|
2672
|
-
var
|
|
2689
|
+
var import_theme_ui11 = require("theme-ui");
|
|
2673
2690
|
|
|
2674
2691
|
// src/components/Input.tsx
|
|
2675
2692
|
init_tsup_inject();
|
|
2676
2693
|
var import_react4 = __toESM(require("react"));
|
|
2677
|
-
var
|
|
2694
|
+
var import_theme_ui12 = require("theme-ui");
|
|
2678
2695
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
2679
2696
|
var Input = import_react4.default.forwardRef(
|
|
2680
2697
|
({ leadingIcon, trailingIcon, sx, ...inputProps }, ref) => {
|
|
2681
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
2698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_theme_ui8.Flex, { sx: { position: "relative" }, children: [
|
|
2682
2699
|
leadingIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2683
|
-
|
|
2700
|
+
import_theme_ui16.Text,
|
|
2684
2701
|
{
|
|
2685
2702
|
sx: {
|
|
2686
2703
|
position: "absolute",
|
|
@@ -2694,7 +2711,7 @@ var Input = import_react4.default.forwardRef(
|
|
|
2694
2711
|
}
|
|
2695
2712
|
),
|
|
2696
2713
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2697
|
-
|
|
2714
|
+
import_theme_ui12.Input,
|
|
2698
2715
|
{
|
|
2699
2716
|
ref,
|
|
2700
2717
|
sx: {
|
|
@@ -2706,7 +2723,7 @@ var Input = import_react4.default.forwardRef(
|
|
|
2706
2723
|
}
|
|
2707
2724
|
),
|
|
2708
2725
|
trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2709
|
-
|
|
2726
|
+
import_theme_ui16.Text,
|
|
2710
2727
|
{
|
|
2711
2728
|
sx: {
|
|
2712
2729
|
position: "absolute",
|
|
@@ -2726,39 +2743,39 @@ Input.displayName = "Input";
|
|
|
2726
2743
|
|
|
2727
2744
|
// src/components/Label.tsx
|
|
2728
2745
|
init_tsup_inject();
|
|
2729
|
-
var
|
|
2746
|
+
var import_theme_ui13 = require("theme-ui");
|
|
2730
2747
|
|
|
2731
2748
|
// src/components/Link.tsx
|
|
2732
2749
|
init_tsup_inject();
|
|
2733
|
-
var
|
|
2750
|
+
var import_theme_ui14 = require("theme-ui");
|
|
2734
2751
|
|
|
2735
2752
|
// src/components/LinearProgress.tsx
|
|
2736
2753
|
init_tsup_inject();
|
|
2737
|
-
var
|
|
2754
|
+
var import_theme_ui15 = require("theme-ui");
|
|
2738
2755
|
|
|
2739
2756
|
// src/components/Text.tsx
|
|
2740
2757
|
init_tsup_inject();
|
|
2741
|
-
var
|
|
2758
|
+
var import_theme_ui16 = require("theme-ui");
|
|
2742
2759
|
|
|
2743
2760
|
// src/components/Select.tsx
|
|
2744
2761
|
init_tsup_inject();
|
|
2745
|
-
var
|
|
2762
|
+
var import_theme_ui17 = require("theme-ui");
|
|
2746
2763
|
|
|
2747
2764
|
// src/components/Spinner.tsx
|
|
2748
2765
|
init_tsup_inject();
|
|
2749
|
-
var
|
|
2766
|
+
var import_theme_ui18 = require("theme-ui");
|
|
2750
2767
|
|
|
2751
2768
|
// src/components/Radio.tsx
|
|
2752
2769
|
init_tsup_inject();
|
|
2753
|
-
var
|
|
2770
|
+
var import_theme_ui19 = require("theme-ui");
|
|
2754
2771
|
|
|
2755
2772
|
// src/components/Slider.tsx
|
|
2756
2773
|
init_tsup_inject();
|
|
2757
|
-
var
|
|
2774
|
+
var import_theme_ui20 = require("theme-ui");
|
|
2758
2775
|
|
|
2759
2776
|
// src/components/Checkbox.tsx
|
|
2760
2777
|
init_tsup_inject();
|
|
2761
|
-
var
|
|
2778
|
+
var import_theme_ui21 = require("theme-ui");
|
|
2762
2779
|
|
|
2763
2780
|
// src/components/InfiniteLinearProgress.tsx
|
|
2764
2781
|
init_tsup_inject();
|
|
@@ -2788,18 +2805,19 @@ var InfiniteLinearProgress = () => {
|
|
|
2788
2805
|
clearInterval(timer);
|
|
2789
2806
|
};
|
|
2790
2807
|
}, []);
|
|
2791
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_theme_ui15.Progress, { max: MAX_PROGRESS, value: progress, role: "progressbar" });
|
|
2792
2809
|
};
|
|
2793
2810
|
|
|
2794
2811
|
// src/components/Textarea.tsx
|
|
2795
2812
|
init_tsup_inject();
|
|
2796
|
-
var
|
|
2813
|
+
var import_theme_ui22 = require("theme-ui");
|
|
2797
2814
|
|
|
2798
2815
|
// src/components/Container.tsx
|
|
2799
2816
|
init_tsup_inject();
|
|
2800
|
-
var
|
|
2817
|
+
var import_theme_ui23 = require("theme-ui");
|
|
2801
2818
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2802
2819
|
0 && (module.exports = {
|
|
2820
|
+
Badge,
|
|
2803
2821
|
BaseStyles,
|
|
2804
2822
|
Box,
|
|
2805
2823
|
Button,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/ui",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.12",
|
|
4
4
|
"description": "Primitive layout, typographic, and other components for styling applications.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"typings": "dist/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@emotion/react": "^11.10.
|
|
24
|
+
"@emotion/react": "^11.10.6",
|
|
25
25
|
"@theme-ui/match-media": "^0.15.5",
|
|
26
26
|
"theme-ui": "^0.15.5"
|
|
27
27
|
},
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"react": ">=16.8.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@iconify-icon/react": "^1.0.
|
|
33
|
-
"@ttoss/config": "^1.28.
|
|
34
|
-
"@ttoss/test-utils": "^1.20.
|
|
35
|
-
"@ttoss/theme": "^1.
|
|
36
|
-
"@types/jest": "^29.4.
|
|
32
|
+
"@iconify-icon/react": "^1.0.7",
|
|
33
|
+
"@ttoss/config": "^1.28.4",
|
|
34
|
+
"@ttoss/test-utils": "^1.20.6",
|
|
35
|
+
"@ttoss/theme": "^1.3.0",
|
|
36
|
+
"@types/jest": "^29.4.4",
|
|
37
37
|
"jest": "^29.5.0",
|
|
38
38
|
"tsup": "^6.6.3"
|
|
39
39
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9606dd531340e86f6e0a2c90e69a3526e74583b2"
|
|
49
49
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge, type BadgeProps } from 'theme-ui';
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { ThemeProvider, type ThemeProviderProps } from './theme/ThemeProvider';
|
|
|
5
5
|
|
|
6
6
|
export { useTheme } from './theme/useTheme';
|
|
7
7
|
|
|
8
|
+
export { Badge, type BadgeProps } from './components/Badge';
|
|
8
9
|
export { Box, type BoxProps } from './components/Box';
|
|
9
10
|
export { Button, type ButtonProps } from './components/Button';
|
|
10
11
|
export { Card, type CardProps } from './components/Card';
|