@atomic-ui/ui-vue 0.0.0-stage → 0.1.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.
- package/README.md +16 -2
- package/dist/index.d.ts +210 -0
- package/dist/index.js +3539 -0
- package/dist/index.js.map +1 -0
- package/package.json +34 -4
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @atomic-ui/ui-vue
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Vue components for the `@atomic-ui/ui` custom elements. Props are bound as DOM properties, and events are typed.
|
|
4
|
+
|
|
5
|
+
```vue
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import '@atomic-ui/ui';
|
|
8
|
+
import { ImpktButton, ImpktHeading } from '@atomic-ui/ui-vue';
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<ImpktHeading :level="1">Your quote</ImpktHeading>
|
|
13
|
+
<ImpktButton variant="primary">Continue</ImpktButton>
|
|
14
|
+
</template>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Import `@atomic-ui/ui` once, so the custom elements are defined before Vue mounts them.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue bindings for `@impkt/ui`.
|
|
3
|
+
*
|
|
4
|
+
* ## What Vue needs, and what it does not
|
|
5
|
+
*
|
|
6
|
+
* Vue 3 renders unknown tags as custom elements once the compiler is told to
|
|
7
|
+
* leave them alone, and it is better at this than React was: given a render
|
|
8
|
+
* function, the `.` prefix binds a value as a DOM **property** rather than an
|
|
9
|
+
* attribute, so an array of options arrives as an array.
|
|
10
|
+
*
|
|
11
|
+
* So the wrapper is thin on purpose. Its job is to spare every consumer from
|
|
12
|
+
* remembering the `.` and from typing `@impkt-change` by hand, and to give
|
|
13
|
+
* editors real prop types. It is not a reimplementation, and it adds no
|
|
14
|
+
* behaviour — a Vue app that would rather write `<impkt-text-input>` directly
|
|
15
|
+
* can, and only needs the build config below.
|
|
16
|
+
*
|
|
17
|
+
* ## One piece of configuration the wrapper cannot do for you
|
|
18
|
+
*
|
|
19
|
+
* In `vite.config.ts`:
|
|
20
|
+
*
|
|
21
|
+
* ```ts
|
|
22
|
+
* vue({ template: { compilerOptions: { isCustomElement: (tag) => tag.startsWith('impkt-') } } })
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* Without it Vue warns about an unresolved component on every element, and
|
|
26
|
+
* binds everything as attributes — which is the array problem again.
|
|
27
|
+
*/
|
|
28
|
+
import { type PropType, type SlotsType, type VNode } from 'vue';
|
|
29
|
+
import '@atomic-ui/ui';
|
|
30
|
+
import type { RadioOption, SelectOption, CheckboxOption, SummaryRow, TableColumn, AccordionItem, ProgressStep, HelpKind } from '@atomic-ui/ui';
|
|
31
|
+
/** What a control reports when its value changes. */
|
|
32
|
+
export type ImpktChangeEvent = CustomEvent<{
|
|
33
|
+
value: string;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const ImpktButton: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
38
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {}, SlotsType<{
|
|
40
|
+
default?: () => VNode[];
|
|
41
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
export declare const ImpktLink: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
45
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
46
|
+
}>, {}, SlotsType<{
|
|
47
|
+
default?: () => VNode[];
|
|
48
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
export declare const ImpktAlert: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
52
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
53
|
+
}>, {}, SlotsType<{
|
|
54
|
+
default?: () => VNode[];
|
|
55
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
56
|
+
export declare const ImpktStack: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
59
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}>, {}, SlotsType<{
|
|
61
|
+
default?: () => VNode[];
|
|
62
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export declare const ImpktCard: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
66
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
67
|
+
}>, {}, SlotsType<{
|
|
68
|
+
default?: () => VNode[];
|
|
69
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
export declare const ImpktHeading: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
73
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
+
}>, {}, SlotsType<{
|
|
75
|
+
default?: () => VNode[];
|
|
76
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
77
|
+
export declare const ImpktText: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
80
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}>, {}, SlotsType<{
|
|
82
|
+
default?: () => VNode[];
|
|
83
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
export declare const ImpktImage: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
85
|
+
[key: string]: any;
|
|
86
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
87
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
88
|
+
}>, {}, SlotsType<{
|
|
89
|
+
default?: () => VNode[];
|
|
90
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
91
|
+
export declare const ImpktLogo: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
94
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
95
|
+
}>, {}, SlotsType<{
|
|
96
|
+
default?: () => VNode[];
|
|
97
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
98
|
+
export declare const ImpktDocumentLink: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
99
|
+
[key: string]: any;
|
|
100
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
101
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
102
|
+
}>, {}, SlotsType<{
|
|
103
|
+
default?: () => VNode[];
|
|
104
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
export declare const ImpktPrice: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
108
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
109
|
+
}>, {}, SlotsType<{
|
|
110
|
+
default?: () => VNode[];
|
|
111
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
export declare const ImpktDialog: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
115
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
116
|
+
}>, {}, SlotsType<{
|
|
117
|
+
default?: () => VNode[];
|
|
118
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
|
+
export declare const ImpktTextInput: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
120
|
+
[key: string]: any;
|
|
121
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
122
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
123
|
+
}>, {}, SlotsType<{
|
|
124
|
+
default?: () => VNode[];
|
|
125
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
126
|
+
export declare const ImpktTextarea: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
129
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
130
|
+
}>, {}, SlotsType<{
|
|
131
|
+
default?: () => VNode[];
|
|
132
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
133
|
+
export declare const ImpktCheckbox: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
134
|
+
[key: string]: any;
|
|
135
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
136
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
137
|
+
}>, {}, SlotsType<{
|
|
138
|
+
default?: () => VNode[];
|
|
139
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
140
|
+
export declare const ImpktSelect: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
141
|
+
[key: string]: any;
|
|
142
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
143
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
144
|
+
}>, {}, SlotsType<{
|
|
145
|
+
default?: () => VNode[];
|
|
146
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
147
|
+
export declare const ImpktRadioGroup: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
150
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
151
|
+
}>, {}, SlotsType<{
|
|
152
|
+
default?: () => VNode[];
|
|
153
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
154
|
+
export declare const ImpktCheckboxGroup: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
155
|
+
[key: string]: any;
|
|
156
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
157
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
158
|
+
}>, {}, SlotsType<{
|
|
159
|
+
default?: () => VNode[];
|
|
160
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
161
|
+
export declare const ImpktDateInput: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
162
|
+
[key: string]: any;
|
|
163
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
164
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
165
|
+
}>, {}, SlotsType<{
|
|
166
|
+
default?: () => VNode[];
|
|
167
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
168
|
+
export declare const ImpktSummaryList: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
169
|
+
[key: string]: any;
|
|
170
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
171
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
172
|
+
}>, {}, SlotsType<{
|
|
173
|
+
default?: () => VNode[];
|
|
174
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
175
|
+
export declare const ImpktTable: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
176
|
+
[key: string]: any;
|
|
177
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
178
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
179
|
+
}>, {}, SlotsType<{
|
|
180
|
+
default?: () => VNode[];
|
|
181
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
182
|
+
export declare const ImpktAccordion: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
183
|
+
[key: string]: any;
|
|
184
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
185
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
186
|
+
}>, {}, SlotsType<{
|
|
187
|
+
default?: () => VNode[];
|
|
188
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
189
|
+
export declare const ImpktProgress: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
190
|
+
[key: string]: any;
|
|
191
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
192
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
193
|
+
}>, {}, SlotsType<{
|
|
194
|
+
default?: () => VNode[];
|
|
195
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
196
|
+
export type { RadioOption, SelectOption, CheckboxOption, SummaryRow, TableColumn, AccordionItem, ProgressStep, HelpKind, PropType, };
|
|
197
|
+
export declare const ImpktGrid: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
198
|
+
[key: string]: any;
|
|
199
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
200
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
201
|
+
}>, {}, SlotsType<{
|
|
202
|
+
default?: () => VNode[];
|
|
203
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
204
|
+
export declare const ImpktHelp: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
205
|
+
[key: string]: any;
|
|
206
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
207
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
208
|
+
}>, {}, SlotsType<{
|
|
209
|
+
default?: () => VNode[];
|
|
210
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|