@dao-style/core 1.0.0-beta.8 → 1.0.0

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 (45) hide show
  1. package/dist/components/action-icon/index.d.ts +0 -1
  2. package/dist/components/batch-bar/index.d.ts +0 -1
  3. package/dist/components/breadcrumb/index.d.ts +0 -2
  4. package/dist/components/button/index.d.ts +0 -2
  5. package/dist/components/card/index.d.ts +0 -2
  6. package/dist/components/checkbox/index.d.ts +0 -2
  7. package/dist/components/dialog/index.d.ts +0 -3
  8. package/dist/components/drawer/index.d.ts +0 -1
  9. package/dist/components/dropdown/index.d.ts +0 -3
  10. package/dist/components/ellipsis/index.d.ts +0 -1
  11. package/dist/components/expansion/index.d.ts +0 -2
  12. package/dist/components/form/index.d.ts +0 -5
  13. package/dist/components/header/index.d.ts +0 -1
  14. package/dist/components/icon/index.d.ts +0 -1
  15. package/dist/components/input/index.d.ts +0 -1
  16. package/dist/components/message/index.d.ts +0 -1
  17. package/dist/components/nav/index.d.ts +0 -4
  18. package/dist/components/nav/nav-head.d.ts +2 -0
  19. package/dist/components/pagination/index.d.ts +0 -1
  20. package/dist/components/popover/index.d.ts +0 -1
  21. package/dist/components/popper/index.d.ts +0 -1
  22. package/dist/components/popper/popper-props.d.ts +2 -1
  23. package/dist/components/progress/index.d.ts +0 -1
  24. package/dist/components/radio/index.d.ts +0 -2
  25. package/dist/components/select/index.d.ts +0 -2
  26. package/dist/components/switch/index.d.ts +0 -1
  27. package/dist/components/table/index.d.ts +0 -1
  28. package/dist/components/tabs/index.d.ts +0 -3
  29. package/dist/components/tag/index.d.ts +0 -1
  30. package/dist/components/text-button/index.d.ts +0 -1
  31. package/dist/components/text-button/props.d.ts +5 -0
  32. package/dist/components/text-button/text-button.d.ts +14 -0
  33. package/dist/components/text-button/text-button.vue.d.ts +6 -0
  34. package/dist/components/toolbar/index.d.ts +0 -1
  35. package/dist/components/tooltip/index.d.ts +0 -1
  36. package/dist/components/transfer/index.d.ts +0 -2
  37. package/dist/dao-style.js +6 -6
  38. package/dist/dao-style.mjs +2464 -2550
  39. package/dist/style.css +1 -1
  40. package/dist/styles/color/alias.css +168 -0
  41. package/dist/styles/color/alias.scss +45 -0
  42. package/dist/styles/color/var.css +472 -0
  43. package/dist/styles/color/var.scss +120 -0
  44. package/package.json +14 -2
  45. package/volar.d.ts +7 -8
@@ -1,3 +1,2 @@
1
- export { default as ActionIcon } from './action-icon';
2
1
  export { default as DaoActionIcon } from './action-icon';
3
2
  export * from './props';
@@ -1,3 +1,2 @@
1
1
  export { default as DaoBatchBar } from './batch-bar';
2
- export { default as BatchBar } from './batch-bar';
3
2
  export * from './props';
@@ -1,6 +1,4 @@
1
1
  export { default as DaoBreadcrumb } from './breadcrumb';
2
- export { default as Breadcrumb } from './breadcrumb';
3
2
  export { default as DaoBreadcrumbItem } from './breadcrumb-item';
4
- export { default as BreadcrumbItem } from './breadcrumb-item';
5
3
  export * from './breadcrumb-props';
6
4
  export * from './breadcrumb-item-props';
@@ -1,5 +1,3 @@
1
- export { default as Button } from './button';
2
- export { default as ButtonGroup } from './button-group';
3
1
  export { default as DaoButton } from './button';
4
2
  export { default as DaoButtonGroup } from './button-group';
5
3
  export * from './props';
@@ -1,6 +1,4 @@
1
- export { default as Card } from './card';
2
1
  export { default as DaoCard } from './card';
3
- export { default as CardItem } from './card-item';
4
2
  export { default as DaoCardItem } from './card-item';
5
3
  export * from './card-props';
6
4
  export * from './types';
@@ -1,5 +1,3 @@
1
- export { default as Checkbox } from './checkbox';
2
1
  export { default as DaoCheckbox } from './checkbox';
3
- export { default as CheckboxGroup } from './checkbox-group';
4
2
  export { default as DaoCheckboxGroup } from './checkbox-group';
5
3
  export * from './props';
@@ -1,7 +1,4 @@
1
- export { default as Dialog } from './dialog';
2
1
  export { default as DaoDialog } from './dialog';
3
- export { default as DialogFooter } from './dialog-footer';
4
2
  export { default as DaoDialogFooter } from './dialog-footer';
5
- export { default as DialogHeader } from './dialog-header';
6
3
  export { default as DaoDialogHeader } from './dialog-header';
7
4
  export * from './props';
@@ -1,3 +1,2 @@
1
- export { default as Drawer } from './drawer';
2
1
  export { default as DaoDrawer } from './drawer';
3
2
  export * from './props';
@@ -1,7 +1,4 @@
1
- export { default as Dropdown } from './dropdown';
2
1
  export { default as DaoDropdown } from './dropdown';
3
- export { default as DropdownMenu } from './dropdown-menu';
4
2
  export { default as DaoDropdownMenu } from './dropdown-menu';
5
- export { default as DropdownItem } from './dropdown-item';
6
3
  export { default as DaoDropdownItem } from './dropdown-item';
7
4
  export * from './props';
@@ -1,4 +1,3 @@
1
1
  export { default as DaoEllipsis } from './ellipsis';
2
- export { default as DaoDaoEllipsis } from './ellipsis';
3
2
  export * from './props';
4
3
  export * from './types';
@@ -1,5 +1,3 @@
1
- export { default as Expansion } from './expansion';
2
1
  export { default as DaoExpansion } from './expansion';
3
- export { default as ExpansionItem } from './expansion-item';
4
2
  export { default as DaoExpansionItem } from './expansion-item';
5
3
  export * from './props';
@@ -1,12 +1,7 @@
1
- export { default as Form } from './form';
2
1
  export { default as DaoForm } from './form';
3
- export { default as FormItem } from './form-item';
4
2
  export { default as DaoFormItem } from './form-item';
5
- export { default as FormGroup } from './form-group';
6
3
  export { default as DaoFormGroup } from './form-group';
7
- export { default as ErrorText } from './error-text';
8
4
  export { default as DaoErrorText } from './error-text';
9
- export { default as HelperText } from './helper-text';
10
5
  export { default as DaoHelperText } from './helper-text';
11
6
  export * from './props';
12
7
  export * from './type';
@@ -1,3 +1,2 @@
1
- export { default as Header } from './header';
2
1
  export { default as DaoHeader } from './header';
3
2
  export * from './props';
@@ -1,4 +1,3 @@
1
1
  import 'virtual:svg-icons-register';
2
- export { default as Icon } from './icon';
3
2
  export { default as DaoIcon } from './icon';
4
3
  export * from './props';
@@ -1,3 +1,2 @@
1
- export { default as Input } from './input';
2
1
  export { default as DaoInput } from './input';
3
2
  export * from './props';
@@ -1,4 +1,3 @@
1
- export { default as Message } from './message';
2
1
  export { default as DaoMessage } from './message';
3
2
  export * from './types';
4
3
  export * from './props';
@@ -1,10 +1,6 @@
1
- export { default as Nav } from './nav';
2
1
  export { default as DaoNav } from './nav';
3
- export { default as NavHead } from './nav-head';
4
2
  export { default as DaoNavHead } from './nav-head';
5
- export { default as NavItem } from './nav-item';
6
3
  export { default as DaoNavItem } from './nav-item';
7
- export { default as NavSub } from './nav-sub';
8
4
  export { default as DaoNavSub } from './nav-sub';
9
5
  export * from './props';
10
6
  export * from './types';
@@ -129,6 +129,8 @@ declare const DaoNavHead: {
129
129
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
130
130
  $slots: {
131
131
  default: SlotFn;
132
+ title: SlotFn;
133
+ 'sub-head': SlotFn;
132
134
  };
133
135
  });
134
136
  export default DaoNavHead;
@@ -1,3 +1,2 @@
1
- export { default as Pagination } from './pagination';
2
1
  export { default as DaoPagination } from './pagination';
3
2
  export * from './pagination-props';
@@ -1,3 +1,2 @@
1
- export { default as Popover } from './popover';
2
1
  export { default as DaoPopover } from './popover';
3
2
  export * from './popover-props';
@@ -1,3 +1,2 @@
1
- export { default as Popper } from './popper';
2
1
  export { default as DaoPopper } from './popper';
3
2
  export * from './popper-props';
@@ -1,8 +1,9 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
2
  import type { Placement, Boundary, StrictModifiers, OptionsGeneric, Modifier } from '@popperjs/core';
3
+ import { Obj } from '@popperjs/core/lib/types.d';
3
4
  import type { DelayProp } from '../../utils/constant';
4
5
  export type { DelayObj, DelayProp } from '../../utils/constant';
5
- export type DaoModifiers = StrictModifiers | Modifier<string, unknown>;
6
+ export type DaoModifiers = StrictModifiers | Modifier<string, Obj>;
6
7
  export type ModifierProp = Partial<OptionsGeneric<DaoModifiers>>;
7
8
  export type PopperTrigger = 'click' | 'hover' | 'focus';
8
9
  export type PopperManual = 'manual';
@@ -1,3 +1,2 @@
1
- export { default as Progress } from './progress';
2
1
  export { default as DaoProgress } from './progress';
3
2
  export * from './props';
@@ -1,5 +1,3 @@
1
- export { default as Radio } from './radio';
2
1
  export { default as DaoRadio } from './radio';
3
- export { default as RadioGroup } from './radio-group';
4
2
  export { default as DaoRadioGroup } from './radio-group';
5
3
  export * from './props';
@@ -1,6 +1,4 @@
1
- export { default as Select } from './select';
2
1
  export { default as DaoSelect } from './select';
3
- export { default as Option } from './option';
4
2
  export { default as DaoOption } from './option';
5
3
  export * from './types';
6
4
  export * from './props';
@@ -1,3 +1,2 @@
1
- export { default as Switch } from './switch';
2
1
  export { default as DaoSwitch } from './switch';
3
2
  export * from './switch-props';
@@ -1,5 +1,4 @@
1
1
  export { default as DaoTable } from './table';
2
- export { default as Table } from './table';
3
2
  export * from './type';
4
3
  export * from './resizer-props';
5
4
  export * from './table-props';
@@ -1,8 +1,5 @@
1
- export { default as Tabs } from './tabs';
2
1
  export { default as DaoTabs } from './tabs';
3
- export { default as TabNav } from './tab-nav';
4
2
  export { default as DaoTabNav } from './tab-nav';
5
- export { default as TabItem } from './tab-item';
6
3
  export { default as DaoTabItem } from './tab-item';
7
4
  export * from './props';
8
5
  export * from './types';
@@ -1,3 +1,2 @@
1
- export { default as Tag } from './tag';
2
1
  export { default as DaoTag } from './tag';
3
2
  export * from './props';
@@ -1,3 +1,2 @@
1
1
  export { default as DaoTextButton } from './text-button';
2
- export { default as TextButton } from './text-button';
3
2
  export * from './props';
@@ -3,7 +3,12 @@ export type TagType = Element['tagName'] | Component;
3
3
  export declare const textButtonType: readonly ["default", "action", "link", "custom"];
4
4
  type ThePropType = {
5
5
  type?: typeof textButtonType[number];
6
+ /**
7
+ * @deprecated icon 后续将被弃用,请将icon替换为iconLeft
8
+ */
6
9
  icon?: string;
10
+ iconLeft?: string;
11
+ iconRight?: string;
7
12
  };
8
13
  export declare const textButtonProps: {
9
14
  tag: {
@@ -8,6 +8,8 @@ declare const DaoTextButton: {
8
8
  prop: {
9
9
  type?: "link" | "default" | "action" | "custom" | undefined;
10
10
  icon?: string | undefined;
11
+ iconLeft?: string | undefined;
12
+ iconRight?: string | undefined;
11
13
  };
12
14
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
15
  tag: {
@@ -18,6 +20,8 @@ declare const DaoTextButton: {
18
20
  type: import("vue").PropType<{
19
21
  type?: "link" | "default" | "action" | "custom" | undefined;
20
22
  icon?: string | undefined;
23
+ iconLeft?: string | undefined;
24
+ iconRight?: string | undefined;
21
25
  }>;
22
26
  default: () => {
23
27
  type: string;
@@ -46,6 +50,8 @@ declare const DaoTextButton: {
46
50
  type: import("vue").PropType<{
47
51
  type?: "link" | "default" | "action" | "custom" | undefined;
48
52
  icon?: string | undefined;
53
+ iconLeft?: string | undefined;
54
+ iconRight?: string | undefined;
49
55
  }>;
50
56
  default: () => {
51
57
  type: string;
@@ -58,6 +64,8 @@ declare const DaoTextButton: {
58
64
  prop: {
59
65
  type?: "link" | "default" | "action" | "custom" | undefined;
60
66
  icon?: string | undefined;
67
+ iconLeft?: string | undefined;
68
+ iconRight?: string | undefined;
61
69
  };
62
70
  }, {}, string> & {
63
71
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -88,6 +96,8 @@ declare const DaoTextButton: {
88
96
  type: import("vue").PropType<{
89
97
  type?: "link" | "default" | "action" | "custom" | undefined;
90
98
  icon?: string | undefined;
99
+ iconLeft?: string | undefined;
100
+ iconRight?: string | undefined;
91
101
  }>;
92
102
  default: () => {
93
103
  type: string;
@@ -108,6 +118,8 @@ declare const DaoTextButton: {
108
118
  type: import("vue").PropType<{
109
119
  type?: "link" | "default" | "action" | "custom" | undefined;
110
120
  icon?: string | undefined;
121
+ iconLeft?: string | undefined;
122
+ iconRight?: string | undefined;
111
123
  }>;
112
124
  default: () => {
113
125
  type: string;
@@ -120,6 +132,8 @@ declare const DaoTextButton: {
120
132
  prop: {
121
133
  type?: "link" | "default" | "action" | "custom" | undefined;
122
134
  icon?: string | undefined;
135
+ iconLeft?: string | undefined;
136
+ iconRight?: string | undefined;
123
137
  };
124
138
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new <Tag extends import("./props").TagType>(props: {
125
139
  tag: Tag;
@@ -8,6 +8,8 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<{
9
9
  type?: "link" | "default" | "action" | "custom" | undefined;
10
10
  icon?: string | undefined;
11
+ iconLeft?: string | undefined;
12
+ iconRight?: string | undefined;
11
13
  }>;
12
14
  default: () => {
13
15
  type: string;
@@ -24,6 +26,8 @@ declare const _default: import("vue").DefineComponent<{
24
26
  type: import("vue").PropType<{
25
27
  type?: "link" | "default" | "action" | "custom" | undefined;
26
28
  icon?: string | undefined;
29
+ iconLeft?: string | undefined;
30
+ iconRight?: string | undefined;
27
31
  }>;
28
32
  default: () => {
29
33
  type: string;
@@ -34,6 +38,8 @@ declare const _default: import("vue").DefineComponent<{
34
38
  prop: {
35
39
  type?: "link" | "default" | "action" | "custom" | undefined;
36
40
  icon?: string | undefined;
41
+ iconLeft?: string | undefined;
42
+ iconRight?: string | undefined;
37
43
  };
38
44
  }>;
39
45
  export default _default;
@@ -1,4 +1,3 @@
1
- export { default as Toolbar } from './toolbar';
2
1
  export { default as DaoToolbar } from './toolbar';
3
2
  export * from './types';
4
3
  export * from './toolbar-filter-props';
@@ -1,3 +1,2 @@
1
- export { default as Tooltip } from './tooltip';
2
1
  export { default as DaoTooltip } from './tooltip';
3
2
  export * from './tooltip-props';
@@ -1,5 +1,3 @@
1
1
  export { default as DaoTransfer } from './transfer';
2
- export { default as Transfer } from './transfer';
3
2
  export { default as DaoTransferPanel } from './transfer-panel';
4
- export { default as TransferPanel } from './transfer-panel';
5
3
  export * from './props';