@varlet/ui 2.7.0-alpha.1673640473187 → 2.7.0-alpha.1673714503631

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 (111) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/es/action-sheet/index.mjs +1 -0
  4. package/es/app-bar/index.mjs +1 -0
  5. package/es/badge/index.mjs +1 -0
  6. package/es/bottom-navigation/index.mjs +1 -0
  7. package/es/bottom-navigation-item/index.mjs +1 -0
  8. package/es/breadcrumb/index.mjs +1 -0
  9. package/es/breadcrumbs/index.mjs +1 -0
  10. package/es/card/index.mjs +1 -0
  11. package/es/checkbox/index.mjs +1 -0
  12. package/es/checkbox-group/index.mjs +1 -0
  13. package/es/chip/index.mjs +1 -0
  14. package/es/col/index.mjs +1 -0
  15. package/es/counter/index.mjs +1 -0
  16. package/es/dialog/index.mjs +1 -0
  17. package/es/divider/index.mjs +1 -0
  18. package/es/form/index.mjs +1 -0
  19. package/es/form-details/index.mjs +1 -0
  20. package/es/icon/index.mjs +1 -0
  21. package/es/image/index.mjs +1 -0
  22. package/es/image-preview/index.mjs +1 -0
  23. package/es/index.bundle.mjs +1 -1
  24. package/es/index.mjs +1 -1
  25. package/es/input/index.mjs +1 -0
  26. package/es/link/index.mjs +1 -0
  27. package/es/list/index.mjs +1 -0
  28. package/es/menu/index.mjs +1 -0
  29. package/es/option/index.mjs +1 -0
  30. package/es/overlay/index.mjs +1 -0
  31. package/es/picker/index.mjs +1 -0
  32. package/es/popup/index.mjs +1 -0
  33. package/es/radio/index.mjs +1 -0
  34. package/es/radio-group/index.mjs +1 -0
  35. package/es/rate/index.mjs +1 -0
  36. package/es/result/index.mjs +1 -0
  37. package/es/row/index.mjs +1 -0
  38. package/es/select/index.mjs +1 -0
  39. package/es/skeleton/index.mjs +1 -0
  40. package/es/space/index.mjs +1 -0
  41. package/es/sticky/index.mjs +1 -0
  42. package/es/style-provider/StyleProvider.mjs +2 -10
  43. package/es/style-provider/index.mjs +1 -0
  44. package/es/style-provider/props.mjs +10 -0
  45. package/es/style.css +1 -1
  46. package/es/swipe/index.mjs +1 -0
  47. package/es/tab/index.mjs +1 -0
  48. package/es/tab-item/index.mjs +1 -0
  49. package/es/table/Table.mjs +2 -6
  50. package/es/table/index.mjs +1 -0
  51. package/es/table/props.mjs +6 -0
  52. package/es/tabs/index.mjs +1 -0
  53. package/es/tabs-items/index.mjs +1 -0
  54. package/es/tooltip/index.mjs +1 -0
  55. package/es/uploader/index.mjs +1 -0
  56. package/es/varlet.esm.js +2437 -2391
  57. package/highlight/web-types.json +1 -1
  58. package/lib/style.css +1 -1
  59. package/lib/varlet.cjs.js +213 -165
  60. package/package.json +5 -5
  61. package/types/actionSheet.d.ts +3 -1
  62. package/types/appBar.d.ts +2 -0
  63. package/types/badge.d.ts +2 -0
  64. package/types/bottomNavigation.d.ts +2 -0
  65. package/types/bottomNavigationItem.d.ts +2 -0
  66. package/types/breadcrumb.d.ts +2 -0
  67. package/types/breadcrumbs.d.ts +2 -0
  68. package/types/card.d.ts +2 -0
  69. package/types/checkbox.d.ts +2 -0
  70. package/types/checkboxGroup.d.ts +2 -0
  71. package/types/chip.d.ts +2 -0
  72. package/types/col.d.ts +2 -0
  73. package/types/counter.d.ts +2 -0
  74. package/types/dialog.d.ts +3 -1
  75. package/types/divider.d.ts +2 -0
  76. package/types/form.d.ts +2 -0
  77. package/types/formDetails.d.ts +2 -0
  78. package/types/icon.d.ts +2 -0
  79. package/types/image.d.ts +3 -1
  80. package/types/imagePreview.d.ts +3 -1
  81. package/types/input.d.ts +2 -0
  82. package/types/link.d.ts +2 -0
  83. package/types/list.d.ts +2 -0
  84. package/types/locale.d.ts +1 -1
  85. package/types/menu.d.ts +2 -0
  86. package/types/option.d.ts +2 -0
  87. package/types/overlay.d.ts +2 -0
  88. package/types/picker.d.ts +2 -0
  89. package/types/popup.d.ts +2 -0
  90. package/types/radio.d.ts +2 -0
  91. package/types/radioGroup.d.ts +2 -0
  92. package/types/rate.d.ts +2 -0
  93. package/types/result.d.ts +2 -0
  94. package/types/row.d.ts +2 -0
  95. package/types/select.d.ts +2 -0
  96. package/types/skeleton.d.ts +2 -0
  97. package/types/space.d.ts +2 -0
  98. package/types/sticky.d.ts +2 -0
  99. package/types/styleProvider.d.ts +2 -0
  100. package/types/swipe.d.ts +2 -0
  101. package/types/tab.d.ts +2 -0
  102. package/types/tabItem.d.ts +2 -0
  103. package/types/table.d.ts +2 -0
  104. package/types/tabs.d.ts +2 -0
  105. package/types/tabsItems.d.ts +2 -0
  106. package/types/themes.d.ts +1 -1
  107. package/types/tooltip.d.ts +2 -0
  108. package/types/uploader.d.ts +2 -0
  109. package/types/varDirective.d.ts +1 -1
  110. package/umd/style.css +1 -1
  111. package/umd/varlet.js +6 -6
package/README.md CHANGED
@@ -47,7 +47,7 @@ Varlet is a Material design mobile component library developed based on `Vue3`,
47
47
 
48
48
  ```html
49
49
  <div id="app"></div>
50
- <script src="https://cdn.jsdelivr.net/npm/vue@next"></script>
50
+ <script src="https://cdn.jsdelivr.net/npm/vue"></script>
51
51
  <script src="https://cdn.jsdelivr.net/npm/@varlet/ui/umd/varlet.js"></script>
52
52
  <script>
53
53
  const app = Vue.createApp({
package/README.zh-CN.md CHANGED
@@ -47,7 +47,7 @@ Varlet 是一个基于 `Vue3` 开发的 Material 风格移动端组件库,全
47
47
 
48
48
  ```html
49
49
  <div id="app"></div>
50
- <script src="https://cdn.jsdelivr.net/npm/vue@next"></script>
50
+ <script src="https://cdn.jsdelivr.net/npm/vue"></script>
51
51
  <script src="https://cdn.jsdelivr.net/npm/@varlet/ui/umd/varlet.js"></script>
52
52
  <script>
53
53
  const app = Vue.createApp({
@@ -62,5 +62,6 @@ ActionSheet.install = function (app) {
62
62
  app.component(VarActionSheet.name, VarActionSheet);
63
63
  };
64
64
 
65
+ export { props as actionSheetProps } from './props.mjs';
65
66
  export var _ActionSheetComponent = VarActionSheet;
66
67
  export default ActionSheet;
@@ -4,5 +4,6 @@ AppBar.install = function (app) {
4
4
  app.component(AppBar.name, AppBar);
5
5
  };
6
6
 
7
+ export { props as appBarProps } from './props.mjs';
7
8
  export var _AppBarComponent = AppBar;
8
9
  export default AppBar;
@@ -4,5 +4,6 @@ Badge.install = function (app) {
4
4
  app.component(Badge.name, Badge);
5
5
  };
6
6
 
7
+ export { props as badgeProps } from './props.mjs';
7
8
  export var _BadgeComponent = Badge;
8
9
  export default Badge;
@@ -4,5 +4,6 @@ BottomNavigation.install = function (app) {
4
4
  app.component(BottomNavigation.name, BottomNavigation);
5
5
  };
6
6
 
7
+ export { props as bottomNavigationProps } from './props.mjs';
7
8
  export var _BottomNavigationComponent = BottomNavigation;
8
9
  export default BottomNavigation;
@@ -4,5 +4,6 @@ BottomNavigationItem.install = function (app) {
4
4
  app.component(BottomNavigationItem.name, BottomNavigationItem);
5
5
  };
6
6
 
7
+ export { props as bottomNavigationItemProps } from './props.mjs';
7
8
  export var _BottomNavigationItemComponent = BottomNavigationItem;
8
9
  export default BottomNavigationItem;
@@ -4,5 +4,6 @@ Breadcrumb.install = function (app) {
4
4
  app.component(Breadcrumb.name, Breadcrumb);
5
5
  };
6
6
 
7
+ export { props as breadcrumbProps } from './props.mjs';
7
8
  export var _BreadcrumbComponent = Breadcrumb;
8
9
  export default Breadcrumb;
@@ -4,5 +4,6 @@ Breadcrumbs.install = function (app) {
4
4
  app.component(Breadcrumbs.name, Breadcrumbs);
5
5
  };
6
6
 
7
+ export { props as breadcrumbsProps } from './props.mjs';
7
8
  export var _BreadcrumbsComponent = Breadcrumbs;
8
9
  export default Breadcrumbs;
package/es/card/index.mjs CHANGED
@@ -4,5 +4,6 @@ Card.install = function (app) {
4
4
  app.component(Card.name, Card);
5
5
  };
6
6
 
7
+ export { props as cardProps } from './props.mjs';
7
8
  export var _CardComponent = Card;
8
9
  export default Card;
@@ -4,5 +4,6 @@ Checkbox.install = function (app) {
4
4
  app.component(Checkbox.name, Checkbox);
5
5
  };
6
6
 
7
+ export { props as checkboxProps } from './props.mjs';
7
8
  export var _CheckboxComponent = Checkbox;
8
9
  export default Checkbox;
@@ -4,5 +4,6 @@ CheckboxGroup.install = function (app) {
4
4
  app.component(CheckboxGroup.name, CheckboxGroup);
5
5
  };
6
6
 
7
+ export { props as checkboxGroupProps } from './props.mjs';
7
8
  export var _CheckboxGroupComponent = CheckboxGroup;
8
9
  export default CheckboxGroup;
package/es/chip/index.mjs CHANGED
@@ -4,5 +4,6 @@ Chip.install = function (app) {
4
4
  app.component(Chip.name, Chip);
5
5
  };
6
6
 
7
+ export { props as chipProps } from './props.mjs';
7
8
  export var _ChipComponent = Chip;
8
9
  export default Chip;
package/es/col/index.mjs CHANGED
@@ -4,5 +4,6 @@ Col.install = function (app) {
4
4
  app.component(Col.name, Col);
5
5
  };
6
6
 
7
+ export { props as colProps } from './props.mjs';
7
8
  export var _ColComponent = Col;
8
9
  export default Col;
@@ -4,5 +4,6 @@ Counter.install = function (app) {
4
4
  app.component(Counter.name, Counter);
5
5
  };
6
6
 
7
+ export { props as counterProps } from './props.mjs';
7
8
  export var _CounterComponent = Counter;
8
9
  export default Counter;
@@ -68,5 +68,6 @@ Dialog.close = () => {
68
68
  };
69
69
 
70
70
  Dialog.Component = VarDialog;
71
+ export { props as dialogProps } from './props.mjs';
71
72
  export var _DialogComponent = VarDialog;
72
73
  export default Dialog;
@@ -4,5 +4,6 @@ Divider.install = function (app) {
4
4
  app.component(Divider.name, Divider);
5
5
  };
6
6
 
7
+ export { props as dividerProps } from './props.mjs';
7
8
  export var _DividerComponent = Divider;
8
9
  export default Divider;
package/es/form/index.mjs CHANGED
@@ -8,5 +8,6 @@ Form.install = function (app) {
8
8
 
9
9
  Form.useValidation = useValidation;
10
10
  Form.useForm = useForm;
11
+ export { props as formProps } from './props.mjs';
11
12
  export var _FormComponent = Form;
12
13
  export default Form;
@@ -4,5 +4,6 @@ FormDetails.install = function (app) {
4
4
  app.component(FormDetails.name, FormDetails);
5
5
  };
6
6
 
7
+ export { props as formDetailsProps } from './props.mjs';
7
8
  export var _FormDetailsComponent = FormDetails;
8
9
  export default FormDetails;
package/es/icon/index.mjs CHANGED
@@ -4,5 +4,6 @@ Icon.install = function (app) {
4
4
  app.component(Icon.name, Icon);
5
5
  };
6
6
 
7
+ export { props as iconProps } from './props.mjs';
7
8
  export var _IconComponent = Icon;
8
9
  export default Icon;
@@ -4,5 +4,6 @@ Image.install = function (app) {
4
4
  app.component(Image.name, Image);
5
5
  };
6
6
 
7
+ export { props as imageProps } from './props.mjs';
7
8
  export var _ImageComponent = Image;
8
9
  export default Image;
@@ -57,5 +57,6 @@ ImagePreview.install = function (app) {
57
57
  };
58
58
 
59
59
  ImagePreview.Component = VarImagePreview;
60
+ export { props as imagePreviewProps } from './props.mjs';
60
61
  export var _ImagePreviewComponent = VarImagePreview;
61
62
  export default ImagePreview;
@@ -217,7 +217,7 @@ import './time-picker/style/index.mjs'
217
217
  import './tooltip/style/index.mjs'
218
218
  import './uploader/style/index.mjs'
219
219
 
220
- const version = '2.7.0-alpha.1673640473187'
220
+ const version = '2.7.0-alpha.1673714503631'
221
221
 
222
222
  function install(app) {
223
223
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -144,7 +144,7 @@ export * from './time-picker/index.mjs'
144
144
  export * from './tooltip/index.mjs'
145
145
  export * from './uploader/index.mjs'
146
146
 
147
- const version = '2.7.0-alpha.1673640473187'
147
+ const version = '2.7.0-alpha.1673714503631'
148
148
 
149
149
  function install(app) {
150
150
  ActionSheet.install && app.use(ActionSheet)
@@ -4,5 +4,6 @@ Input.install = function (app) {
4
4
  app.component(Input.name, Input);
5
5
  };
6
6
 
7
+ export { props as inputProps } from './props.mjs';
7
8
  export var _InputComponent = Input;
8
9
  export default Input;
package/es/link/index.mjs CHANGED
@@ -4,5 +4,6 @@ Link.install = function (app) {
4
4
  app.component(Link.name, Link);
5
5
  };
6
6
 
7
+ export { props as linkProps } from './props.mjs';
7
8
  export var _LinkComponent = Link;
8
9
  export default Link;
package/es/list/index.mjs CHANGED
@@ -4,5 +4,6 @@ List.install = function (app) {
4
4
  app.component(List.name, List);
5
5
  };
6
6
 
7
+ export { props as listProps } from './props.mjs';
7
8
  export var _ListComponent = List;
8
9
  export default List;
package/es/menu/index.mjs CHANGED
@@ -4,5 +4,6 @@ Menu.install = function (app) {
4
4
  app.component(Menu.name, Menu);
5
5
  };
6
6
 
7
+ export { props as menuProps } from './props.mjs';
7
8
  export var _MenuComponent = Menu;
8
9
  export default Menu;
@@ -4,5 +4,6 @@ Option.install = function (app) {
4
4
  app.component(Option.name, Option);
5
5
  };
6
6
 
7
+ export { props as optionProps } from './props.mjs';
7
8
  export var _OptionComponent = Option;
8
9
  export default Option;
@@ -4,5 +4,6 @@ Overlay.install = function (app) {
4
4
  app.component(Overlay.name, Overlay);
5
5
  };
6
6
 
7
+ export { props as overlayProps } from './props.mjs';
7
8
  export var _OverlayComponent = Overlay;
8
9
  export default Overlay;
@@ -81,5 +81,6 @@ Picker.close = () => {
81
81
  }
82
82
  };
83
83
 
84
+ export { props as pickerProps } from './props.mjs';
84
85
  export var _PickerComponent = VarPicker;
85
86
  export default Picker;
@@ -4,5 +4,6 @@ Popup.install = function (app) {
4
4
  app.component(Popup.name, Popup);
5
5
  };
6
6
 
7
+ export { props as popupProps } from './props.mjs';
7
8
  export var _PopupComponent = Popup;
8
9
  export default Popup;
@@ -4,5 +4,6 @@ Radio.install = function (app) {
4
4
  app.component(Radio.name, Radio);
5
5
  };
6
6
 
7
+ export { props as radioProps } from './props.mjs';
7
8
  export var _RadioComponent = Radio;
8
9
  export default Radio;
@@ -4,5 +4,6 @@ RadioGroup.install = function (app) {
4
4
  app.component(RadioGroup.name, RadioGroup);
5
5
  };
6
6
 
7
+ export { props as radioGroupProps } from './props.mjs';
7
8
  export var _RadioGroupComponent = RadioGroup;
8
9
  export default RadioGroup;
package/es/rate/index.mjs CHANGED
@@ -4,5 +4,6 @@ Rate.install = function (app) {
4
4
  app.component(Rate.name, Rate);
5
5
  };
6
6
 
7
+ export { props as rateProps } from './props.mjs';
7
8
  export var _RateComponent = Rate;
8
9
  export default Rate;
@@ -4,5 +4,6 @@ Result.install = function (app) {
4
4
  app.component(Result.name, Result);
5
5
  };
6
6
 
7
+ export { props as resultProps } from './props.mjs';
7
8
  export var _ResultComponent = Result;
8
9
  export default Result;
package/es/row/index.mjs CHANGED
@@ -4,5 +4,6 @@ Row.install = function (app) {
4
4
  app.component(Row.name, Row);
5
5
  };
6
6
 
7
+ export { props as rowProps } from './props.mjs';
7
8
  export var _RowComponent = Row;
8
9
  export default Row;
@@ -4,5 +4,6 @@ Select.install = function (app) {
4
4
  app.component(Select.name, Select);
5
5
  };
6
6
 
7
+ export { props as selectProps } from './props.mjs';
7
8
  export var _SelectComponent = Select;
8
9
  export default Select;
@@ -4,5 +4,6 @@ Skeleton.install = function (app) {
4
4
  app.component(Skeleton.name, Skeleton);
5
5
  };
6
6
 
7
+ export { props as skeletonProps } from './props.mjs';
7
8
  export var _SkeletonComponent = Skeleton;
8
9
  export default Skeleton;
@@ -4,5 +4,6 @@ Space.install = function (app) {
4
4
  app.component(Space.name, Space);
5
5
  };
6
6
 
7
+ export { props as spaceProps } from './props.mjs';
7
8
  export var _SpaceComponent = Space;
8
9
  export default Space;
@@ -4,5 +4,6 @@ Sticky.install = function (app) {
4
4
  app.component(Sticky.name, Sticky);
5
5
  };
6
6
 
7
+ export { props as stickyProps } from './props.mjs';
7
8
  export var _StickyComponent = Sticky;
8
9
  export default Sticky;
@@ -1,21 +1,13 @@
1
1
  import { defineComponent, h } from 'vue';
2
2
  import { formatStyleVars } from '../utils/elements.mjs';
3
3
  import { call, createNamespace } from '../utils/components.mjs';
4
+ import { props } from './props.mjs';
4
5
  var {
5
6
  n
6
7
  } = createNamespace('style-provider');
7
8
  export default defineComponent({
8
9
  name: 'VarStyleProvider',
9
- props: {
10
- styleVars: {
11
- type: Object,
12
- default: () => ({})
13
- },
14
- tag: {
15
- type: String,
16
- default: 'div'
17
- }
18
- },
10
+ props,
19
11
 
20
12
  setup(props, _ref) {
21
13
  var {
@@ -23,5 +23,6 @@ StyleProvider.install = function (app) {
23
23
  app.component(VarStyleProvider.name, VarStyleProvider);
24
24
  };
25
25
 
26
+ export { props as styleProviderProps } from './props.mjs';
26
27
  export var _StyleProviderComponent = VarStyleProvider;
27
28
  export default StyleProvider;
@@ -0,0 +1,10 @@
1
+ export var props = {
2
+ styleVars: {
3
+ type: Object,
4
+ default: () => ({})
5
+ },
6
+ tag: {
7
+ type: String,
8
+ default: 'div'
9
+ }
10
+ };