@veracity/vui 0.0.3 → 0.0.4
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/alert/alert.d.ts +15 -0
- package/alert/alert.js +87 -0
- package/alert/alert.types.d.ts +19 -0
- package/alert/alert.types.js +2 -0
- package/alert/alertButton.d.ts +3 -0
- package/alert/alertButton.js +30 -0
- package/alert/alertIcon.d.ts +3 -0
- package/alert/alertIcon.js +33 -0
- package/alert/alertMessage.d.ts +3 -0
- package/alert/alertMessage.js +31 -0
- package/alert/alertText.d.ts +3 -0
- package/alert/alertText.js +30 -0
- package/alert/alertTitle.d.ts +3 -0
- package/alert/alertTitle.js +30 -0
- package/alert/consts.d.ts +2 -0
- package/alert/consts.js +25 -0
- package/alert/context.d.ts +4 -0
- package/alert/context.js +23 -0
- package/alert/index.d.ts +9 -0
- package/alert/index.js +26 -0
- package/alert/theme.d.ts +46 -0
- package/alert/theme.js +62 -0
- package/avatar/avatar.d.ts +4 -4
- package/avatar/avatar.js +2 -5
- package/avatar/avatar.types.d.ts +1 -2
- package/box/box.d.ts +4 -4
- package/box/box.js +2 -4
- package/box/box.types.d.ts +10 -12
- package/button/button.d.ts +4 -4
- package/button/button.js +1 -3
- package/button/button.types.d.ts +2 -2
- package/button/buttonGroup.d.ts +2 -4
- package/button/buttonGroup.js +1 -3
- package/button/buttonGroup.types.d.ts +1 -2
- package/button/buttons.d.ts +5 -5
- package/checkbox/checkbox.d.ts +3 -7
- package/checkbox/checkbox.js +3 -7
- package/checkbox/checkbox.types.d.ts +4 -2
- package/checkbox/checkboxGroup.d.ts +2 -4
- package/checkbox/checkboxGroup.js +3 -12
- package/checkbox/checkboxGroup.types.d.ts +5 -3
- package/checkbox/theme.d.ts +0 -1
- package/checkbox/theme.js +0 -1
- package/core/globalStyle.js +1 -1
- package/core/index.d.ts +1 -0
- package/core/index.js +3 -1
- package/core/resetCSS.d.ts +2 -0
- package/core/resetCSS.js +9 -0
- package/core/types.d.ts +18 -2
- package/core/types.js +1 -0
- package/core/utils.d.ts +10 -5
- package/core/utils.js +17 -2
- package/core/vuiProvider.js +2 -1
- package/divider/divider.d.ts +2 -4
- package/divider/divider.js +7 -10
- package/divider/divider.types.d.ts +1 -2
- package/heading/heading.d.ts +4 -4
- package/heading/heading.js +1 -3
- package/heading/heading.types.d.ts +7 -9
- package/heading/headings.d.ts +6 -6
- package/icon/icon.d.ts +1 -1
- package/icon/icon.js +8 -4
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/input/consts.d.ts +2 -18
- package/input/consts.js +2 -2
- package/input/input.d.ts +5 -5
- package/input/input.js +6 -6
- package/input/input.types.d.ts +12 -6
- package/label/label.d.ts +4 -4
- package/label/label.js +1 -3
- package/label/label.types.d.ts +2 -2
- package/link/link.d.ts +4 -4
- package/link/link.js +1 -3
- package/link/link.types.d.ts +7 -9
- package/list/list.d.ts +8 -4
- package/list/list.js +5 -5
- package/list/list.types.d.ts +1 -2
- package/list/listIcon.d.ts +3 -0
- package/list/listIcon.js +30 -0
- package/list/listItem.d.ts +2 -4
- package/list/listItem.js +9 -9
- package/list/listItem.types.d.ts +4 -2
- package/list/theme.d.ts +37 -2
- package/list/theme.js +43 -14
- package/p/p.d.ts +4 -4
- package/p/p.js +1 -3
- package/p/p.types.d.ts +8 -11
- package/package.json +1 -1
- package/radio/radio.d.ts +3 -7
- package/radio/radio.js +4 -10
- package/radio/radio.types.d.ts +4 -2
- package/radio/radioGroup.d.ts +2 -4
- package/radio/radioGroup.js +5 -5
- package/radio/radioGroup.types.d.ts +5 -3
- package/radio/theme.d.ts +0 -1
- package/radio/theme.js +0 -1
- package/skeleton/skeleton.d.ts +2 -4
- package/skeleton/skeleton.js +1 -3
- package/skeleton/skeleton.types.d.ts +1 -2
- package/spinner/consts.d.ts +34 -0
- package/spinner/consts.js +21 -0
- package/spinner/index.d.ts +3 -0
- package/spinner/index.js +20 -0
- package/spinner/spinner.d.ts +4 -0
- package/spinner/spinner.js +60 -0
- package/spinner/spinner.types.d.ts +15 -0
- package/spinner/spinner.types.js +2 -0
- package/spinner/theme.d.ts +68 -0
- package/spinner/theme.js +74 -0
- package/styles/radii.d.ts +1 -0
- package/styles/radii.js +2 -1
- package/svg/helpers.d.ts +1 -1
- package/svg/helpers.js +1 -1
- package/svg/svg.d.ts +3 -5
- package/svg/svg.js +8 -5
- package/svg/svg.types.d.ts +8 -3
- package/switch/index.d.ts +1 -0
- package/switch/index.js +1 -0
- package/switch/switch.d.ts +8 -4
- package/switch/switch.js +26 -6
- package/switch/switch.types.d.ts +3 -1
- package/switch/switchButton.d.ts +4 -10
- package/switch/switchButton.js +3 -9
- package/switch/switchButton.types.d.ts +1 -1
- package/switch/switchLabel.d.ts +1 -1
- package/switch/switchLabel.js +1 -1
- package/system/colors.d.ts +3 -2
- package/system/transitions.d.ts +2 -1
- package/t/t.d.ts +4 -4
- package/t/t.js +1 -3
- package/t/t.types.d.ts +7 -9
- package/textarea/textarea.d.ts +4 -4
- package/textarea/textarea.js +1 -3
- package/textarea/textarea.types.d.ts +1 -2
- package/theme/components.d.ts +144 -4
- package/theme/components.js +40 -36
- package/theme/defaultTheme.d.ts +145 -4
- package/theme/foundations.d.ts +1 -0
- package/tile/tile.d.ts +1 -1
- package/tile/tile.js +2 -2
- package/tile/tile.types.d.ts +2 -2
package/theme/defaultTheme.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ declare const defaultTheme: {
|
|
|
120
120
|
sm: number;
|
|
121
121
|
md: number;
|
|
122
122
|
lg: number;
|
|
123
|
+
round: number;
|
|
123
124
|
};
|
|
124
125
|
shadows: {
|
|
125
126
|
0: string;
|
|
@@ -140,6 +141,48 @@ declare const defaultTheme: {
|
|
|
140
141
|
space: (value: string | number) => string;
|
|
141
142
|
};
|
|
142
143
|
components: {
|
|
144
|
+
Alert: {
|
|
145
|
+
defaultProps: {
|
|
146
|
+
colorScheme: string;
|
|
147
|
+
variant: string;
|
|
148
|
+
};
|
|
149
|
+
parts: string[];
|
|
150
|
+
sizes: {};
|
|
151
|
+
variants: {
|
|
152
|
+
solid: (props: import("..").Dict<any>) => {
|
|
153
|
+
container: {
|
|
154
|
+
bg: string;
|
|
155
|
+
color: string;
|
|
156
|
+
};
|
|
157
|
+
button: {
|
|
158
|
+
bg: string;
|
|
159
|
+
hoverBg: string;
|
|
160
|
+
};
|
|
161
|
+
icon: {};
|
|
162
|
+
message: {};
|
|
163
|
+
text: {};
|
|
164
|
+
title: {};
|
|
165
|
+
};
|
|
166
|
+
subtle: (props: import("..").Dict<any>) => {
|
|
167
|
+
container: {
|
|
168
|
+
bg: string;
|
|
169
|
+
borderColor: string;
|
|
170
|
+
borderWidth: number;
|
|
171
|
+
color: string;
|
|
172
|
+
};
|
|
173
|
+
button: {
|
|
174
|
+
color: string;
|
|
175
|
+
hoverBg: string;
|
|
176
|
+
activeBg: string;
|
|
177
|
+
variant: string;
|
|
178
|
+
};
|
|
179
|
+
icon: {};
|
|
180
|
+
message: {};
|
|
181
|
+
text: {};
|
|
182
|
+
title: {};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
143
186
|
Avatar: {
|
|
144
187
|
defaultProps: {
|
|
145
188
|
colorScheme: string;
|
|
@@ -279,7 +322,6 @@ declare const defaultTheme: {
|
|
|
279
322
|
w: number;
|
|
280
323
|
};
|
|
281
324
|
label: {
|
|
282
|
-
lineHeight: number;
|
|
283
325
|
size: string;
|
|
284
326
|
};
|
|
285
327
|
};
|
|
@@ -497,18 +539,36 @@ declare const defaultTheme: {
|
|
|
497
539
|
parts: string[];
|
|
498
540
|
sizes: {
|
|
499
541
|
sm: {
|
|
542
|
+
icon: {
|
|
543
|
+
size: string;
|
|
544
|
+
};
|
|
500
545
|
item: {
|
|
501
546
|
fontSize: string;
|
|
502
547
|
h: number;
|
|
503
548
|
};
|
|
504
549
|
};
|
|
505
550
|
md: {
|
|
551
|
+
icon: {
|
|
552
|
+
size: string;
|
|
553
|
+
};
|
|
506
554
|
item: {
|
|
507
555
|
fontSize: string;
|
|
508
556
|
h: number;
|
|
509
557
|
};
|
|
510
558
|
};
|
|
511
559
|
lg: {
|
|
560
|
+
icon: {
|
|
561
|
+
size: string;
|
|
562
|
+
};
|
|
563
|
+
item: {
|
|
564
|
+
fontSize: string;
|
|
565
|
+
h: number;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
xl: {
|
|
569
|
+
icon: {
|
|
570
|
+
scale: number;
|
|
571
|
+
};
|
|
512
572
|
item: {
|
|
513
573
|
fontSize: string;
|
|
514
574
|
h: number;
|
|
@@ -517,16 +577,33 @@ declare const defaultTheme: {
|
|
|
517
577
|
};
|
|
518
578
|
variants: {
|
|
519
579
|
default: (props: import("..").Dict<any>) => {
|
|
580
|
+
container: {};
|
|
581
|
+
icon: {};
|
|
520
582
|
item: import("..").Dict<any>;
|
|
521
583
|
};
|
|
522
|
-
|
|
584
|
+
ordered: {
|
|
585
|
+
container: {
|
|
586
|
+
as: string;
|
|
587
|
+
listStyleType: string;
|
|
588
|
+
pl: number;
|
|
589
|
+
};
|
|
523
590
|
item: {
|
|
524
591
|
display: string;
|
|
525
592
|
h: undefined;
|
|
593
|
+
lineHeight: number;
|
|
526
594
|
};
|
|
527
|
-
|
|
595
|
+
};
|
|
596
|
+
unordered: {
|
|
597
|
+
container: {
|
|
598
|
+
as: string;
|
|
599
|
+
listStyleType: string;
|
|
528
600
|
pl: number;
|
|
529
601
|
};
|
|
602
|
+
item: {
|
|
603
|
+
display: string;
|
|
604
|
+
h: undefined;
|
|
605
|
+
lineHeight: number;
|
|
606
|
+
};
|
|
530
607
|
};
|
|
531
608
|
};
|
|
532
609
|
};
|
|
@@ -581,7 +658,6 @@ declare const defaultTheme: {
|
|
|
581
658
|
w: number;
|
|
582
659
|
};
|
|
583
660
|
label: {
|
|
584
|
-
lineHeight: number;
|
|
585
661
|
size: string;
|
|
586
662
|
};
|
|
587
663
|
};
|
|
@@ -636,6 +712,71 @@ declare const defaultTheme: {
|
|
|
636
712
|
};
|
|
637
713
|
};
|
|
638
714
|
};
|
|
715
|
+
Spinner: {
|
|
716
|
+
defaultProps: {
|
|
717
|
+
colorScheme: string;
|
|
718
|
+
size: string;
|
|
719
|
+
variant: string;
|
|
720
|
+
};
|
|
721
|
+
parts: string[];
|
|
722
|
+
sizes: {
|
|
723
|
+
xs: {
|
|
724
|
+
circle: {
|
|
725
|
+
borderWidth: number;
|
|
726
|
+
h: number;
|
|
727
|
+
w: number;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
sm: {
|
|
731
|
+
circle: {
|
|
732
|
+
borderWidth: number;
|
|
733
|
+
h: number;
|
|
734
|
+
w: number;
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
md: {
|
|
738
|
+
circle: {
|
|
739
|
+
borderWidth: number;
|
|
740
|
+
h: number;
|
|
741
|
+
w: number;
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
lg: {
|
|
745
|
+
circle: {
|
|
746
|
+
borderWidth: number;
|
|
747
|
+
h: number;
|
|
748
|
+
w: number;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
card: {
|
|
752
|
+
circle: {
|
|
753
|
+
borderWidth: number;
|
|
754
|
+
h: number;
|
|
755
|
+
w: number;
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
page: {
|
|
759
|
+
circle: {
|
|
760
|
+
borderWidth: number;
|
|
761
|
+
h: number;
|
|
762
|
+
w: number;
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
variants: {
|
|
767
|
+
default: (props: import("..").Dict<any>) => {
|
|
768
|
+
container: {
|
|
769
|
+
color: string;
|
|
770
|
+
};
|
|
771
|
+
circle: {
|
|
772
|
+
borderColor: string;
|
|
773
|
+
borderTopColor: string;
|
|
774
|
+
borderRightColor: string;
|
|
775
|
+
};
|
|
776
|
+
text: {};
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
};
|
|
639
780
|
Switch: {
|
|
640
781
|
defaultProps: {
|
|
641
782
|
colorScheme: string;
|
package/theme/foundations.d.ts
CHANGED
package/tile/tile.d.ts
CHANGED
package/tile/tile.js
CHANGED
|
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.Tile = void 0;
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
|
-
var box_1 = require("../box");
|
|
30
|
+
var box_1 = __importDefault(require("../box"));
|
|
31
31
|
var core_1 = require("../core");
|
|
32
32
|
var utils_1 = require("../utils");
|
|
33
33
|
exports.Tile = core_1.forwardRef(function (props, ref) {
|
|
@@ -40,7 +40,7 @@ exports.Tile = core_1.forwardRef(function (props, ref) {
|
|
|
40
40
|
userSelect: 'none'
|
|
41
41
|
}
|
|
42
42
|
: {};
|
|
43
|
-
return react_1.default.createElement(box_1.
|
|
43
|
+
return react_1.default.createElement(box_1.default, __assign({ className: utils_1.cs('vui-tile', className), ref: ref }, styles, interactiveProps, rest));
|
|
44
44
|
});
|
|
45
45
|
exports.Tile.displayName = 'Tile';
|
|
46
46
|
exports.default = exports.Tile;
|
package/tile/tile.types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BoxProps } from '../box';
|
|
1
|
+
import { BoxProps, BoxStyleProps } from '../box';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
3
|
export interface TileProps extends Omit<BoxProps, 'size' | 'variant'>, TileStyleProps, ThemingProps<'Tile'> {
|
|
4
4
|
isInteractive?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export interface TileStyleProps {
|
|
6
|
+
export interface TileStyleProps extends BoxStyleProps {
|
|
7
7
|
}
|