veloce-vue 0.19.0 → 0.21.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 (41) hide show
  1. package/components/Accordion.vue.d.ts +19 -1
  2. package/components/Badge.vue.d.ts +58 -0
  3. package/components/Button.vue.d.ts +7 -7
  4. package/components/Checkbox.vue.d.ts +1 -1
  5. package/components/Chip.vue.d.ts +81 -0
  6. package/components/Fieldset.vue.d.ts +62 -0
  7. package/components/Input.vue.d.ts +2 -2
  8. package/components/JsonRenderer.vue.d.ts +14 -0
  9. package/components/Layout.vue.d.ts +38 -0
  10. package/components/Message.vue.d.ts +154 -0
  11. package/components/MiniEditor.vue.d.ts +12 -0
  12. package/components/ProgressBar.vue.d.ts +70 -0
  13. package/components/ProgressSpinner.vue.d.ts +25 -0
  14. package/components/Select.vue.d.ts +1 -1
  15. package/components/Separator.vue.d.ts +3 -3
  16. package/components/Skeleton.vue.d.ts +51 -0
  17. package/components/Switch.vue.d.ts +1 -1
  18. package/components/icon/icons.d.ts +3 -0
  19. package/components/typography/Blockquote.vue.d.ts +151 -0
  20. package/components/typography/Code.vue.d.ts +160 -0
  21. package/components/typography/H1.vue.d.ts +151 -0
  22. package/components/typography/H2.vue.d.ts +151 -0
  23. package/components/typography/H3.vue.d.ts +151 -0
  24. package/components/typography/H4.vue.d.ts +151 -0
  25. package/components/typography/H5.vue.d.ts +151 -0
  26. package/components/typography/H6.vue.d.ts +151 -0
  27. package/components/typography/Label.vue.d.ts +160 -0
  28. package/components/typography/List.vue.d.ts +123 -0
  29. package/components/typography/P.vue.d.ts +151 -0
  30. package/components/typography/Span.vue.d.ts +151 -0
  31. package/exports/composables.d.ts +1 -0
  32. package/exports/toast.d.ts +4 -0
  33. package/exports/types.d.ts +54 -1
  34. package/exports/typography.d.ts +12 -0
  35. package/exports/ui.d.ts +10 -0
  36. package/exports/utils.d.ts +3 -0
  37. package/icons.js +1 -1
  38. package/{index-Cqxg4hfC.js → index-BLYh_r9b.js} +216 -167
  39. package/package.json +1 -1
  40. package/ui.js +4396 -2721
  41. package/veloce.css +1 -1
@@ -0,0 +1,151 @@
1
+ import { TextColor, FontWeight, Margin, Padding, FontSize, LineHeight, LetterSpacing } from '../../exports/types';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ text: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ fontSize: {
9
+ type: () => FontSize;
10
+ default: FontSize;
11
+ };
12
+ color: {
13
+ type: () => TextColor;
14
+ default: TextColor;
15
+ };
16
+ fontWeight: {
17
+ type: () => FontWeight;
18
+ default: FontWeight;
19
+ };
20
+ lineHeight: {
21
+ type: () => LineHeight;
22
+ default: LineHeight;
23
+ };
24
+ letterSpacing: {
25
+ type: () => LetterSpacing;
26
+ default: LetterSpacing;
27
+ };
28
+ margin: {
29
+ type: () => Margin;
30
+ default: string;
31
+ };
32
+ marginLeft: {
33
+ type: () => Margin;
34
+ default: string;
35
+ };
36
+ marginRight: {
37
+ type: () => Margin;
38
+ default: string;
39
+ };
40
+ marginTop: {
41
+ type: () => Margin;
42
+ default: string;
43
+ };
44
+ marginBottom: {
45
+ type: () => Margin;
46
+ default: string;
47
+ };
48
+ padding: {
49
+ type: () => Padding;
50
+ default: string;
51
+ };
52
+ paddingLeft: {
53
+ type: () => Padding;
54
+ default: string;
55
+ };
56
+ paddingRight: {
57
+ type: () => Padding;
58
+ default: string;
59
+ };
60
+ paddingTop: {
61
+ type: () => Padding;
62
+ default: string;
63
+ };
64
+ paddingBottom: {
65
+ type: () => Padding;
66
+ default: string;
67
+ };
68
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
69
+ text: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ fontSize: {
74
+ type: () => FontSize;
75
+ default: FontSize;
76
+ };
77
+ color: {
78
+ type: () => TextColor;
79
+ default: TextColor;
80
+ };
81
+ fontWeight: {
82
+ type: () => FontWeight;
83
+ default: FontWeight;
84
+ };
85
+ lineHeight: {
86
+ type: () => LineHeight;
87
+ default: LineHeight;
88
+ };
89
+ letterSpacing: {
90
+ type: () => LetterSpacing;
91
+ default: LetterSpacing;
92
+ };
93
+ margin: {
94
+ type: () => Margin;
95
+ default: string;
96
+ };
97
+ marginLeft: {
98
+ type: () => Margin;
99
+ default: string;
100
+ };
101
+ marginRight: {
102
+ type: () => Margin;
103
+ default: string;
104
+ };
105
+ marginTop: {
106
+ type: () => Margin;
107
+ default: string;
108
+ };
109
+ marginBottom: {
110
+ type: () => Margin;
111
+ default: string;
112
+ };
113
+ padding: {
114
+ type: () => Padding;
115
+ default: string;
116
+ };
117
+ paddingLeft: {
118
+ type: () => Padding;
119
+ default: string;
120
+ };
121
+ paddingRight: {
122
+ type: () => Padding;
123
+ default: string;
124
+ };
125
+ paddingTop: {
126
+ type: () => Padding;
127
+ default: string;
128
+ };
129
+ paddingBottom: {
130
+ type: () => Padding;
131
+ default: string;
132
+ };
133
+ }>> & Readonly<{}>, {
134
+ text: string;
135
+ fontSize: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
136
+ color: TextColor;
137
+ fontWeight: FontWeight;
138
+ lineHeight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
139
+ letterSpacing: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
140
+ margin: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
141
+ marginLeft: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
142
+ marginRight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
143
+ marginTop: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
144
+ marginBottom: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
145
+ padding: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
146
+ paddingLeft: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
147
+ paddingRight: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
148
+ paddingTop: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
149
+ paddingBottom: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
150
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
151
+ export default _default;
@@ -0,0 +1 @@
1
+ export { useColorMode } from '../composables/useColorMode';
@@ -0,0 +1,4 @@
1
+ export { default as Toast } from '../components/toast/Toast.vue';
2
+ export { default as ToastContainer } from '../components/toast/ToastContainer.vue';
3
+ export { useToast } from '../composables/useToast';
4
+ export { setToastContainer } from '../composables/useToast';
@@ -1,10 +1,17 @@
1
1
  import { Icons } from './icons';
2
+ type Sizes = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
2
3
  export type Size = "sm" | "md" | "lg" | "xl";
3
4
  export type Variant = "outlined" | "link" | "ghost" | "solid" | "soft";
4
5
  export type Severity = "primary" | "secondary" | "success" | "info" | "warning" | "error" | "neutral";
5
- export type FontWeight = "normal" | "medium" | "semibold" | "bold";
6
6
  export type Position = "left" | "right" | "top" | "bottom";
7
7
  export type Direction = "horizontal" | "vertical";
8
+ export type Margin = Sizes;
9
+ export type Padding = Sizes;
10
+ export type FontSize = Sizes;
11
+ export type FontWeight = "light" | "normal" | "medium" | "semibold" | "bold" | "black";
12
+ export type TextColor = Severity | "default" | "muted";
13
+ export type LineHeight = Sizes;
14
+ export type LetterSpacing = Sizes;
8
15
  export type AccordionItem = {
9
16
  title: string;
10
17
  content: string;
@@ -12,3 +19,49 @@ export type AccordionItem = {
12
19
  icon?: Icons;
13
20
  active?: boolean;
14
21
  };
22
+ type CommonTypographyProps = {
23
+ fontSize?: FontSize;
24
+ color?: TextColor;
25
+ fontWeight?: FontWeight;
26
+ lineHeight?: LineHeight;
27
+ letterSpacing?: LetterSpacing;
28
+ margin?: Margin;
29
+ marginLeft?: Margin;
30
+ marginRight?: Margin;
31
+ marginTop?: Margin;
32
+ marginBottom?: Margin;
33
+ padding?: Padding;
34
+ paddingLeft?: Padding;
35
+ paddingRight?: Padding;
36
+ paddingTop?: Padding;
37
+ paddingBottom?: Padding;
38
+ text?: string;
39
+ };
40
+ type JsonRendererItemBase<TProps = CommonTypographyProps> = {
41
+ props?: TProps;
42
+ id?: string;
43
+ };
44
+ export type JsonRendererItem = ({
45
+ component: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "blockquote";
46
+ } & JsonRendererItemBase<CommonTypographyProps>) | ({
47
+ component: "code";
48
+ } & JsonRendererItemBase<CommonTypographyProps & {
49
+ block?: boolean;
50
+ }>) | ({
51
+ component: "label";
52
+ } & JsonRendererItemBase<CommonTypographyProps & {
53
+ required?: boolean;
54
+ }>) | ({
55
+ component: "list";
56
+ } & JsonRendererItemBase<Omit<CommonTypographyProps, "fontSize" | "color" | "fontWeight" | "lineHeight" | "letterSpacing" | "text"> & {
57
+ type?: "ul" | "ol";
58
+ spacing?: Size;
59
+ items?: string[];
60
+ }>) | ({
61
+ component: "message";
62
+ } & JsonRendererItemBase<Omit<CommonTypographyProps, "fontSize" | "color" | "fontWeight" | "lineHeight" | "letterSpacing"> & {
63
+ severity?: Severity;
64
+ variant?: Variant;
65
+ icon?: Icons;
66
+ }>);
67
+ export {};
@@ -0,0 +1,12 @@
1
+ export { default as Blockquote } from '../components/typography/Blockquote.vue';
2
+ export { default as Code } from '../components/typography/Code.vue';
3
+ export { default as H1 } from '../components/typography/H1.vue';
4
+ export { default as H2 } from '../components/typography/H2.vue';
5
+ export { default as H3 } from '../components/typography/H3.vue';
6
+ export { default as H4 } from '../components/typography/H4.vue';
7
+ export { default as H5 } from '../components/typography/H5.vue';
8
+ export { default as H6 } from '../components/typography/H6.vue';
9
+ export { default as Label } from '../components/typography/Label.vue';
10
+ export { default as List } from '../components/typography/List.vue';
11
+ export { default as P } from '../components/typography/P.vue';
12
+ export { default as Span } from '../components/typography/Span.vue';
package/exports/ui.d.ts CHANGED
@@ -1,12 +1,22 @@
1
1
  export { default as Accordion } from '../components/Accordion.vue';
2
+ export { default as Badge } from '../components/Badge.vue';
2
3
  export { default as Button } from '../components/Button.vue';
3
4
  export { default as Checkbox } from '../components/Checkbox.vue';
5
+ export { default as Chip } from '../components/Chip.vue';
4
6
  export { default as Drawer } from '../components/Drawer.vue';
7
+ export { default as Fieldset } from '../components/Fieldset.vue';
5
8
  export { default as Input } from '../components/Input.vue';
9
+ export { default as JsonRenderer } from '../components/JsonRenderer.vue';
10
+ export { default as Layout } from '../components/Layout.vue';
11
+ export { default as Message } from '../components/Message.vue';
6
12
  export { default as Modal } from '../components/Modal.vue';
7
13
  export { default as Popover } from '../components/Popover.vue';
14
+ export { default as ProgressBar } from '../components/ProgressBar.vue';
15
+ export { default as ProgressSpinner } from '../components/ProgressSpinner.vue';
8
16
  export { default as RangeSlider } from '../components/RangeSlider.vue';
9
17
  export { default as Select } from '../components/Select.vue';
10
18
  export { default as Separator } from '../components/Separator.vue';
19
+ export { default as Skeleton } from '../components/Skeleton.vue';
11
20
  export { default as Switch } from '../components/Switch.vue';
12
21
  export { default as Tooltip } from '../components/Tooltip.vue';
22
+ export { default as MiniEditor } from '../components/MiniEditor.vue';
@@ -1 +1,4 @@
1
1
  export { useRandomId } from '../utils/useRandomId';
2
+ export { getTypography } from '../utils/typography';
3
+ export { getMargin } from '../utils/margin';
4
+ export { getPadding } from '../utils/padding';
package/icons.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, I as c, i } from "./index-Cqxg4hfC.js";
1
+ import { _ as a, I as c, i } from "./index-BLYh_r9b.js";
2
2
  export {
3
3
  a as Icon,
4
4
  c as Icons,