@ttoss/ui 1.30.10 → 1.30.11
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 +14 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -46
- package/package.json +8 -8
- package/src/components/Badge.tsx +1 -0
- package/src/index.ts +1 -0
package/dist/esm/index.js
CHANGED
|
@@ -320,6 +320,15 @@ var BruttalTheme = {
|
|
|
320
320
|
/**
|
|
321
321
|
* Components
|
|
322
322
|
*/
|
|
323
|
+
badges: {
|
|
324
|
+
primary: {
|
|
325
|
+
color: "onPrimary",
|
|
326
|
+
bg: "primary",
|
|
327
|
+
fontSize: "sm",
|
|
328
|
+
paddingX: "sm",
|
|
329
|
+
borderRadius: "default"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
323
332
|
buttons: {
|
|
324
333
|
accent: {
|
|
325
334
|
backgroundColor: "accent",
|
|
@@ -542,6 +551,10 @@ init_tsup_inject();
|
|
|
542
551
|
import { useThemeUI } from "theme-ui";
|
|
543
552
|
var useTheme = useThemeUI;
|
|
544
553
|
|
|
554
|
+
// src/components/Badge.tsx
|
|
555
|
+
init_tsup_inject();
|
|
556
|
+
import { Badge } from "theme-ui";
|
|
557
|
+
|
|
545
558
|
// src/components/Box.tsx
|
|
546
559
|
init_tsup_inject();
|
|
547
560
|
import { Box } from "theme-ui";
|
|
@@ -2765,6 +2778,7 @@ import { Textarea } from "theme-ui";
|
|
|
2765
2778
|
init_tsup_inject();
|
|
2766
2779
|
import { Container } from "theme-ui";
|
|
2767
2780
|
export {
|
|
2781
|
+
Badge,
|
|
2768
2782
|
BaseStyles,
|
|
2769
2783
|
Box,
|
|
2770
2784
|
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
|
|
@@ -358,6 +359,15 @@ var BruttalTheme = {
|
|
|
358
359
|
/**
|
|
359
360
|
* Components
|
|
360
361
|
*/
|
|
362
|
+
badges: {
|
|
363
|
+
primary: {
|
|
364
|
+
color: "onPrimary",
|
|
365
|
+
bg: "primary",
|
|
366
|
+
fontSize: "sm",
|
|
367
|
+
paddingX: "sm",
|
|
368
|
+
borderRadius: "default"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
361
371
|
buttons: {
|
|
362
372
|
accent: {
|
|
363
373
|
backgroundColor: "accent",
|
|
@@ -580,14 +590,18 @@ init_tsup_inject();
|
|
|
580
590
|
var import_theme_ui2 = require("theme-ui");
|
|
581
591
|
var useTheme = import_theme_ui2.useThemeUI;
|
|
582
592
|
|
|
583
|
-
// src/components/
|
|
593
|
+
// src/components/Badge.tsx
|
|
584
594
|
init_tsup_inject();
|
|
585
595
|
var import_theme_ui3 = require("theme-ui");
|
|
586
596
|
|
|
597
|
+
// src/components/Box.tsx
|
|
598
|
+
init_tsup_inject();
|
|
599
|
+
var import_theme_ui4 = require("theme-ui");
|
|
600
|
+
|
|
587
601
|
// src/components/Button.tsx
|
|
588
602
|
init_tsup_inject();
|
|
589
603
|
var React4 = __toESM(require("react"));
|
|
590
|
-
var
|
|
604
|
+
var import_theme_ui5 = require("theme-ui");
|
|
591
605
|
|
|
592
606
|
// src/components/Icon.tsx
|
|
593
607
|
init_tsup_inject();
|
|
@@ -2623,7 +2637,7 @@ var Button = React4.forwardRef(
|
|
|
2623
2637
|
(props, ref) => {
|
|
2624
2638
|
const { children, leftIcon, rightIcon, ...restProps } = props;
|
|
2625
2639
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
2626
|
-
|
|
2640
|
+
import_theme_ui5.Button,
|
|
2627
2641
|
{
|
|
2628
2642
|
ref,
|
|
2629
2643
|
...restProps,
|
|
@@ -2649,38 +2663,38 @@ Button.displayName = "Button";
|
|
|
2649
2663
|
|
|
2650
2664
|
// src/components/Card.tsx
|
|
2651
2665
|
init_tsup_inject();
|
|
2652
|
-
var
|
|
2666
|
+
var import_theme_ui6 = require("theme-ui");
|
|
2653
2667
|
|
|
2654
2668
|
// src/components/Divider.tsx
|
|
2655
2669
|
init_tsup_inject();
|
|
2656
|
-
var
|
|
2670
|
+
var import_theme_ui7 = require("theme-ui");
|
|
2657
2671
|
|
|
2658
2672
|
// src/components/Flex.tsx
|
|
2659
2673
|
init_tsup_inject();
|
|
2660
|
-
var
|
|
2674
|
+
var import_theme_ui8 = require("theme-ui");
|
|
2661
2675
|
|
|
2662
2676
|
// src/components/Grid.tsx
|
|
2663
2677
|
init_tsup_inject();
|
|
2664
|
-
var
|
|
2678
|
+
var import_theme_ui9 = require("theme-ui");
|
|
2665
2679
|
|
|
2666
2680
|
// src/components/Heading.tsx
|
|
2667
2681
|
init_tsup_inject();
|
|
2668
|
-
var
|
|
2682
|
+
var import_theme_ui10 = require("theme-ui");
|
|
2669
2683
|
|
|
2670
2684
|
// src/components/Image.tsx
|
|
2671
2685
|
init_tsup_inject();
|
|
2672
|
-
var
|
|
2686
|
+
var import_theme_ui11 = require("theme-ui");
|
|
2673
2687
|
|
|
2674
2688
|
// src/components/Input.tsx
|
|
2675
2689
|
init_tsup_inject();
|
|
2676
2690
|
var import_react4 = __toESM(require("react"));
|
|
2677
|
-
var
|
|
2691
|
+
var import_theme_ui12 = require("theme-ui");
|
|
2678
2692
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
2679
2693
|
var Input = import_react4.default.forwardRef(
|
|
2680
2694
|
({ leadingIcon, trailingIcon, sx, ...inputProps }, ref) => {
|
|
2681
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
2695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_theme_ui8.Flex, { sx: { position: "relative" }, children: [
|
|
2682
2696
|
leadingIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2683
|
-
|
|
2697
|
+
import_theme_ui16.Text,
|
|
2684
2698
|
{
|
|
2685
2699
|
sx: {
|
|
2686
2700
|
position: "absolute",
|
|
@@ -2694,7 +2708,7 @@ var Input = import_react4.default.forwardRef(
|
|
|
2694
2708
|
}
|
|
2695
2709
|
),
|
|
2696
2710
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2697
|
-
|
|
2711
|
+
import_theme_ui12.Input,
|
|
2698
2712
|
{
|
|
2699
2713
|
ref,
|
|
2700
2714
|
sx: {
|
|
@@ -2706,7 +2720,7 @@ var Input = import_react4.default.forwardRef(
|
|
|
2706
2720
|
}
|
|
2707
2721
|
),
|
|
2708
2722
|
trailingIcon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
2709
|
-
|
|
2723
|
+
import_theme_ui16.Text,
|
|
2710
2724
|
{
|
|
2711
2725
|
sx: {
|
|
2712
2726
|
position: "absolute",
|
|
@@ -2726,39 +2740,39 @@ Input.displayName = "Input";
|
|
|
2726
2740
|
|
|
2727
2741
|
// src/components/Label.tsx
|
|
2728
2742
|
init_tsup_inject();
|
|
2729
|
-
var
|
|
2743
|
+
var import_theme_ui13 = require("theme-ui");
|
|
2730
2744
|
|
|
2731
2745
|
// src/components/Link.tsx
|
|
2732
2746
|
init_tsup_inject();
|
|
2733
|
-
var
|
|
2747
|
+
var import_theme_ui14 = require("theme-ui");
|
|
2734
2748
|
|
|
2735
2749
|
// src/components/LinearProgress.tsx
|
|
2736
2750
|
init_tsup_inject();
|
|
2737
|
-
var
|
|
2751
|
+
var import_theme_ui15 = require("theme-ui");
|
|
2738
2752
|
|
|
2739
2753
|
// src/components/Text.tsx
|
|
2740
2754
|
init_tsup_inject();
|
|
2741
|
-
var
|
|
2755
|
+
var import_theme_ui16 = require("theme-ui");
|
|
2742
2756
|
|
|
2743
2757
|
// src/components/Select.tsx
|
|
2744
2758
|
init_tsup_inject();
|
|
2745
|
-
var
|
|
2759
|
+
var import_theme_ui17 = require("theme-ui");
|
|
2746
2760
|
|
|
2747
2761
|
// src/components/Spinner.tsx
|
|
2748
2762
|
init_tsup_inject();
|
|
2749
|
-
var
|
|
2763
|
+
var import_theme_ui18 = require("theme-ui");
|
|
2750
2764
|
|
|
2751
2765
|
// src/components/Radio.tsx
|
|
2752
2766
|
init_tsup_inject();
|
|
2753
|
-
var
|
|
2767
|
+
var import_theme_ui19 = require("theme-ui");
|
|
2754
2768
|
|
|
2755
2769
|
// src/components/Slider.tsx
|
|
2756
2770
|
init_tsup_inject();
|
|
2757
|
-
var
|
|
2771
|
+
var import_theme_ui20 = require("theme-ui");
|
|
2758
2772
|
|
|
2759
2773
|
// src/components/Checkbox.tsx
|
|
2760
2774
|
init_tsup_inject();
|
|
2761
|
-
var
|
|
2775
|
+
var import_theme_ui21 = require("theme-ui");
|
|
2762
2776
|
|
|
2763
2777
|
// src/components/InfiniteLinearProgress.tsx
|
|
2764
2778
|
init_tsup_inject();
|
|
@@ -2788,18 +2802,19 @@ var InfiniteLinearProgress = () => {
|
|
|
2788
2802
|
clearInterval(timer);
|
|
2789
2803
|
};
|
|
2790
2804
|
}, []);
|
|
2791
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
2805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_theme_ui15.Progress, { max: MAX_PROGRESS, value: progress, role: "progressbar" });
|
|
2792
2806
|
};
|
|
2793
2807
|
|
|
2794
2808
|
// src/components/Textarea.tsx
|
|
2795
2809
|
init_tsup_inject();
|
|
2796
|
-
var
|
|
2810
|
+
var import_theme_ui22 = require("theme-ui");
|
|
2797
2811
|
|
|
2798
2812
|
// src/components/Container.tsx
|
|
2799
2813
|
init_tsup_inject();
|
|
2800
|
-
var
|
|
2814
|
+
var import_theme_ui23 = require("theme-ui");
|
|
2801
2815
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2802
2816
|
0 && (module.exports = {
|
|
2817
|
+
Badge,
|
|
2803
2818
|
BaseStyles,
|
|
2804
2819
|
Box,
|
|
2805
2820
|
Button,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/ui",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.11",
|
|
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.2.
|
|
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.2.10",
|
|
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": "2f241b7126c460eeaea3eba6445aa139411d4b19"
|
|
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';
|