@veracity/vui 0.0.3 → 0.0.5

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.
Files changed (142) hide show
  1. package/alert/alert.d.ts +15 -0
  2. package/alert/alert.js +87 -0
  3. package/alert/alert.types.d.ts +19 -0
  4. package/alert/alert.types.js +2 -0
  5. package/alert/alertButton.d.ts +3 -0
  6. package/alert/alertButton.js +30 -0
  7. package/alert/alertIcon.d.ts +3 -0
  8. package/alert/alertIcon.js +33 -0
  9. package/alert/alertMessage.d.ts +3 -0
  10. package/alert/alertMessage.js +31 -0
  11. package/alert/alertText.d.ts +3 -0
  12. package/alert/alertText.js +30 -0
  13. package/alert/alertTitle.d.ts +3 -0
  14. package/alert/alertTitle.js +30 -0
  15. package/alert/consts.d.ts +2 -0
  16. package/alert/consts.js +25 -0
  17. package/alert/context.d.ts +4 -0
  18. package/alert/context.js +23 -0
  19. package/alert/index.d.ts +9 -0
  20. package/alert/index.js +26 -0
  21. package/alert/theme.d.ts +46 -0
  22. package/alert/theme.js +62 -0
  23. package/avatar/avatar.d.ts +4 -4
  24. package/avatar/avatar.js +2 -5
  25. package/avatar/avatar.types.d.ts +1 -2
  26. package/box/box.d.ts +4 -4
  27. package/box/box.js +2 -4
  28. package/box/box.types.d.ts +10 -12
  29. package/button/button.d.ts +4 -4
  30. package/button/button.js +1 -3
  31. package/button/button.types.d.ts +2 -2
  32. package/button/buttonGroup.d.ts +2 -4
  33. package/button/buttonGroup.js +1 -3
  34. package/button/buttonGroup.types.d.ts +1 -2
  35. package/button/buttons.d.ts +5 -5
  36. package/checkbox/checkbox.d.ts +3 -7
  37. package/checkbox/checkbox.js +3 -7
  38. package/checkbox/checkbox.types.d.ts +6 -3
  39. package/checkbox/checkboxGroup.d.ts +2 -4
  40. package/checkbox/checkboxGroup.js +3 -12
  41. package/checkbox/checkboxGroup.types.d.ts +6 -4
  42. package/checkbox/theme.d.ts +0 -1
  43. package/checkbox/theme.js +0 -1
  44. package/core/globalStyle.js +1 -1
  45. package/core/index.d.ts +1 -0
  46. package/core/index.js +3 -1
  47. package/core/resetCSS.d.ts +2 -0
  48. package/core/resetCSS.js +9 -0
  49. package/core/types.d.ts +27 -2
  50. package/core/types.js +1 -0
  51. package/core/utils.d.ts +10 -5
  52. package/core/utils.js +17 -2
  53. package/core/vuiProvider.js +2 -1
  54. package/divider/divider.d.ts +2 -4
  55. package/divider/divider.js +7 -10
  56. package/divider/divider.types.d.ts +1 -2
  57. package/heading/heading.d.ts +4 -4
  58. package/heading/heading.js +1 -3
  59. package/heading/heading.types.d.ts +7 -9
  60. package/heading/headings.d.ts +6 -6
  61. package/icon/icon.d.ts +1 -1
  62. package/icon/icon.js +8 -4
  63. package/index.d.ts +2 -0
  64. package/index.js +2 -0
  65. package/input/consts.d.ts +2 -18
  66. package/input/consts.js +2 -2
  67. package/input/input.d.ts +5 -5
  68. package/input/input.js +6 -6
  69. package/input/input.types.d.ts +14 -7
  70. package/label/label.d.ts +4 -4
  71. package/label/label.js +1 -3
  72. package/label/label.types.d.ts +2 -2
  73. package/link/link.d.ts +4 -4
  74. package/link/link.js +1 -3
  75. package/link/link.types.d.ts +7 -9
  76. package/list/list.d.ts +8 -4
  77. package/list/list.js +6 -6
  78. package/list/list.types.d.ts +3 -4
  79. package/list/listIcon.d.ts +3 -0
  80. package/list/listIcon.js +30 -0
  81. package/list/listItem.d.ts +2 -4
  82. package/list/listItem.js +16 -9
  83. package/list/listItem.types.d.ts +8 -2
  84. package/list/theme.d.ts +37 -2
  85. package/list/theme.js +43 -14
  86. package/p/p.d.ts +4 -4
  87. package/p/p.js +1 -3
  88. package/p/p.types.d.ts +8 -11
  89. package/package.json +1 -1
  90. package/radio/radio.d.ts +3 -7
  91. package/radio/radio.js +4 -10
  92. package/radio/radio.types.d.ts +6 -3
  93. package/radio/radioGroup.d.ts +2 -4
  94. package/radio/radioGroup.js +5 -5
  95. package/radio/radioGroup.types.d.ts +6 -4
  96. package/radio/theme.d.ts +0 -1
  97. package/radio/theme.js +0 -1
  98. package/skeleton/skeleton.d.ts +2 -4
  99. package/skeleton/skeleton.js +1 -3
  100. package/skeleton/skeleton.types.d.ts +1 -2
  101. package/spinner/consts.d.ts +34 -0
  102. package/spinner/consts.js +21 -0
  103. package/spinner/index.d.ts +3 -0
  104. package/spinner/index.js +20 -0
  105. package/spinner/spinner.d.ts +4 -0
  106. package/spinner/spinner.js +60 -0
  107. package/spinner/spinner.types.d.ts +15 -0
  108. package/spinner/spinner.types.js +2 -0
  109. package/spinner/theme.d.ts +68 -0
  110. package/spinner/theme.js +74 -0
  111. package/styles/radii.d.ts +1 -0
  112. package/styles/radii.js +2 -1
  113. package/svg/helpers.d.ts +1 -1
  114. package/svg/helpers.js +1 -1
  115. package/svg/svg.d.ts +3 -5
  116. package/svg/svg.js +8 -5
  117. package/svg/svg.types.d.ts +8 -3
  118. package/switch/index.d.ts +1 -0
  119. package/switch/index.js +1 -0
  120. package/switch/switch.d.ts +8 -4
  121. package/switch/switch.js +26 -6
  122. package/switch/switch.types.d.ts +5 -2
  123. package/switch/switchButton.d.ts +4 -10
  124. package/switch/switchButton.js +3 -9
  125. package/switch/switchButton.types.d.ts +5 -4
  126. package/switch/switchLabel.d.ts +1 -1
  127. package/switch/switchLabel.js +1 -1
  128. package/system/colors.d.ts +3 -2
  129. package/system/transitions.d.ts +2 -1
  130. package/t/t.d.ts +4 -4
  131. package/t/t.js +1 -3
  132. package/t/t.types.d.ts +7 -9
  133. package/textarea/textarea.d.ts +4 -4
  134. package/textarea/textarea.js +1 -3
  135. package/textarea/textarea.types.d.ts +1 -2
  136. package/theme/components.d.ts +144 -4
  137. package/theme/components.js +40 -36
  138. package/theme/defaultTheme.d.ts +145 -4
  139. package/theme/foundations.d.ts +1 -0
  140. package/tile/tile.d.ts +1 -1
  141. package/tile/tile.js +2 -2
  142. package/tile/tile.types.d.ts +2 -2
@@ -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
- unstyled: {
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
- list: {
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;
@@ -120,6 +120,7 @@ declare const _default: {
120
120
  sm: number;
121
121
  md: number;
122
122
  lg: number;
123
+ round: number;
123
124
  };
124
125
  shadows: {
125
126
  0: string;
package/tile/tile.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { TileProps } from './tile.types';
2
- export declare const Tile: import("styled-components").StyledComponent<"div", never, TileProps, never>;
2
+ export declare const Tile: import("../core").VuiComponent<"div", TileProps>;
3
3
  export default Tile;
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.Box, __assign({ className: utils_1.cs('vui-tile', className), ref: ref }, styles, interactiveProps, rest));
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;
@@ -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
  }