ablok-components 0.0.30 → 0.0.31

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.
@@ -1,41 +1,184 @@
1
1
  import { PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
3
- modelValue: {
4
- default: boolean;
5
- };
6
- options: {
7
- type: PropType<any[]>;
8
- default: never[];
9
- };
10
- name: {
11
- type: StringConstructor;
12
- default: () => string;
13
- };
14
- id: {
15
- type: StringConstructor;
16
- default: () => string;
17
- };
18
- label: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- variant: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- disabled: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- readOnly: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- };
34
- required: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ label: string;
8
+ required: boolean;
9
+ modelValue: boolean;
10
+ options: any[];
11
+ variant: string;
12
+ name: string;
13
+ id: string;
14
+ disabled: boolean;
15
+ readOnly: boolean;
16
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
17
+ modelValue: {
18
+ default: boolean;
19
+ };
20
+ options: {
21
+ type: PropType<any[]>;
22
+ default: never[];
23
+ };
24
+ name: {
25
+ type: StringConstructor;
26
+ default: () => string;
27
+ };
28
+ id: {
29
+ type: StringConstructor;
30
+ default: () => string;
31
+ };
32
+ label: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ variant: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ disabled: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ readOnly: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ required: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ }>> & {
53
+ onChange?: ((...args: any[]) => any) | undefined;
54
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
55
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "required" | "modelValue" | "options" | "variant" | "name" | "id" | "disabled" | "readOnly">;
56
+ $attrs: {
57
+ [x: string]: unknown;
58
+ };
59
+ $refs: {
60
+ [x: string]: unknown;
61
+ };
62
+ $slots: Readonly<{
63
+ [name: string]: import("vue").Slot | undefined;
64
+ }>;
65
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
66
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
67
+ $emit: (event: "change" | "update:modelValue", ...args: any[]) => void;
68
+ $el: any;
69
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
70
+ modelValue: {
71
+ default: boolean;
72
+ };
73
+ options: {
74
+ type: PropType<any[]>;
75
+ default: never[];
76
+ };
77
+ name: {
78
+ type: StringConstructor;
79
+ default: () => string;
80
+ };
81
+ id: {
82
+ type: StringConstructor;
83
+ default: () => string;
84
+ };
85
+ label: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ variant: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ disabled: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ readOnly: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ required: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ }>> & {
106
+ onChange?: ((...args: any[]) => any) | undefined;
107
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
108
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
109
+ label: string;
110
+ required: boolean;
111
+ modelValue: boolean;
112
+ options: any[];
113
+ variant: string;
114
+ name: string;
115
+ id: string;
116
+ disabled: boolean;
117
+ readOnly: boolean;
118
+ }> & {
119
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
120
+ created?: ((() => void) | (() => void)[]) | undefined;
121
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
122
+ mounted?: ((() => void) | (() => void)[]) | undefined;
123
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
124
+ updated?: ((() => void) | (() => void)[]) | undefined;
125
+ activated?: ((() => void) | (() => void)[]) | undefined;
126
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
127
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
128
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
129
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
130
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
131
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
132
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
133
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
134
+ };
135
+ $forceUpdate: () => void;
136
+ $nextTick: typeof import("vue").nextTick;
137
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
138
+ } & Readonly<import("vue").ExtractPropTypes<{
139
+ modelValue: {
140
+ default: boolean;
141
+ };
142
+ options: {
143
+ type: PropType<any[]>;
144
+ default: never[];
145
+ };
146
+ name: {
147
+ type: StringConstructor;
148
+ default: () => string;
149
+ };
150
+ id: {
151
+ type: StringConstructor;
152
+ default: () => string;
153
+ };
154
+ label: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ variant: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
162
+ disabled: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
166
+ readOnly: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ required: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ }>> & {
175
+ onChange?: ((...args: any[]) => any) | undefined;
176
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
177
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
178
+ __isFragment?: undefined;
179
+ __isTeleport?: undefined;
180
+ __isSuspense?: undefined;
181
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
39
182
  modelValue: {
40
183
  default: boolean;
41
184
  };
@@ -74,15 +217,19 @@ declare const _default: import("vue").DefineComponent<{
74
217
  }>> & {
75
218
  onChange?: ((...args: any[]) => any) | undefined;
76
219
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
77
- }, {
78
- options: any[];
79
- required: boolean;
220
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
80
221
  label: string;
222
+ required: boolean;
81
223
  modelValue: boolean;
82
- id: string;
224
+ options: any[];
83
225
  variant: string;
84
226
  name: string;
227
+ id: string;
85
228
  disabled: boolean;
86
229
  readOnly: boolean;
87
- }>;
230
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
231
+ $slots: {
232
+ label: (_: {}) => any;
233
+ };
234
+ });
88
235
  export default _default;
@@ -1,4 +1,107 @@
1
- declare const _default: import("vue").DefineComponent<{
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ symbol: string;
7
+ size: string;
8
+ basePath: string;
9
+ prefix: string;
10
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
11
+ basePath: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ prefix: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ symbol: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ size: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "symbol" | "size" | "basePath" | "prefix">;
28
+ $attrs: {
29
+ [x: string]: unknown;
30
+ };
31
+ $refs: {
32
+ [x: string]: unknown;
33
+ };
34
+ $slots: Readonly<{
35
+ [name: string]: import("vue").Slot | undefined;
36
+ }>;
37
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
38
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
39
+ $emit: (event: string, ...args: any[]) => void;
40
+ $el: any;
41
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
42
+ basePath: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ prefix: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ symbol: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ size: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
59
+ symbol: string;
60
+ size: string;
61
+ basePath: string;
62
+ prefix: string;
63
+ }> & {
64
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
65
+ created?: ((() => void) | (() => void)[]) | undefined;
66
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
67
+ mounted?: ((() => void) | (() => void)[]) | undefined;
68
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
69
+ updated?: ((() => void) | (() => void)[]) | undefined;
70
+ activated?: ((() => void) | (() => void)[]) | undefined;
71
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
72
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
73
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
74
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
75
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
76
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
77
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
78
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
79
+ };
80
+ $forceUpdate: () => void;
81
+ $nextTick: typeof import("vue").nextTick;
82
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
83
+ } & Readonly<import("vue").ExtractPropTypes<{
84
+ basePath: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ prefix: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ symbol: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ size: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
101
+ __isFragment?: undefined;
102
+ __isTeleport?: undefined;
103
+ __isSuspense?: undefined;
104
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
2
105
  basePath: {
3
106
  type: StringConstructor;
4
107
  default: string;
@@ -15,27 +118,12 @@ declare const _default: import("vue").DefineComponent<{
15
118
  type: StringConstructor;
16
119
  default: string;
17
120
  };
18
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
- basePath: {
20
- type: StringConstructor;
21
- default: string;
22
- };
23
- prefix: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- symbol: {
28
- type: StringConstructor;
29
- default: string;
30
- };
31
- size: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- }>>, {
121
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
36
122
  symbol: string;
37
123
  size: string;
38
- prefix: string;
39
124
  basePath: string;
40
- }>;
125
+ prefix: string;
126
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
127
+ $slots: {};
128
+ });
41
129
  export default _default;
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export { default as FormInput } from "./components/form-input.vue";
5
5
  export { default as CheckGroup } from "./components/check-group.vue";
6
6
  export { default as RadioGroup } from "./components/radio-group.vue";
7
7
  export { default as InputDropdown } from "./components/input-dropdown.vue";
8
+ export { default as FileInput } from "./components/file-input.vue";
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .svg-icon{display:inline-block}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}.loading-spinner{min-width:2rem}.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button[readonly],.base-button[disabled]{cursor:not-allowed}:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.form-input{display:flex;flex-flow:column}.form-input>*{order:2}.form-input__label{order:0}.form-input__input-group{flex-wrap:nowrap;order:1}.form-input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.form-input input[type=color]{display:block;height:100%;padding:0;border-width:0}.form-input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.form-input input[type=color]::-webkit-color-swatch{border:none}
1
+ .svg-icon{display:inline-block}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}.loading-spinner{min-width:2rem}.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button[readonly],.base-button[disabled]{cursor:not-allowed}.form-input{display:flex;flex-flow:column}.form-input>*{order:2}.form-input__label{order:0}.form-input__input-group{flex-wrap:nowrap;order:1}.form-input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.form-input input[type=color]{display:block;height:100%;padding:0;border-width:0}.form-input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.form-input input[type=color]::-webkit-color-swatch{border:none}:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.file-input{display:flex;flex-flow:column}.file-input>*{order:2}.file-input__label{order:0}.file-input__input-group{flex-wrap:nowrap;order:1}.file-input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.file-input input[type=color]{display:block;height:100%;padding:0;border-width:0}.file-input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.file-input input[type=color]::-webkit-color-swatch{border:none}