@huntflow/ui 0.1.2 → 0.1.4

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.
@@ -15,3 +15,5 @@ export { UiText } from './ui-text';
15
15
  export type { UiTextProps } from './ui-text';
16
16
  export { UiTitle } from './ui-title';
17
17
  export type { UiTitleProps } from './ui-title';
18
+ export { UiError } from './ui-error';
19
+ export type { UiErrorProps } from './ui-error';
@@ -0,0 +1,22 @@
1
+ import { UiAvatarProps } from './types.ts';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiAvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiAvatarProps> & Readonly<{}>, {
12
+ size: import('./types.ts').UiAvatarSize;
13
+ square: boolean;
14
+ src: string;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,3 @@
1
+ import { default as UiAvatar } from './avatar.vue';
2
+ export type { UiAvatarProps } from './types.ts';
3
+ export { UiAvatar };
@@ -0,0 +1,6 @@
1
+ export type UiAvatarProps = {
2
+ src?: string;
3
+ size?: UiAvatarSize;
4
+ square?: boolean;
5
+ };
6
+ export type UiAvatarSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl';
@@ -0,0 +1,18 @@
1
+ import { UiErrorProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLSpanElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiErrorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiErrorProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,3 @@
1
+ import { default as UiError } from './error.vue';
2
+ export type { UiErrorProps } from './types';
3
+ export { UiError };
@@ -0,0 +1,3 @@
1
+ export type UiErrorProps = {
2
+ className?: string;
3
+ };
@@ -1,2 +1,3 @@
1
1
  import { default as UiLabel } from './label.vue';
2
+ export type { UiLabelProps } from './types';
2
3
  export { UiLabel };
@@ -1,20 +1,14 @@
1
+ import { UiLabelProps } from './types';
1
2
  declare function __VLS_template(): {
2
3
  attrs: Partial<{}>;
3
4
  slots: {
4
- header?(_: {}): any;
5
5
  default?(_: {}): any;
6
- subTitle?(_: {}): any;
7
- link?(_: {}): any;
8
6
  };
9
7
  refs: {};
10
8
  rootEl: any;
11
9
  };
12
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- click: () => any;
15
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
16
- onClick?: (() => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
13
  export default _default;
20
14
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,3 @@
1
+ export type UiLabelProps = {
2
+ className?: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ import { default as UiLabelContent } from './label-content.vue';
2
+ export { UiLabelContent };
@@ -0,0 +1,24 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ header?(_: {}): any;
5
+ default?(_: {}): any;
6
+ subTitle?(_: {}): any;
7
+ link?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ click: () => any;
15
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
16
+ onClick?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,3 @@
1
+ import { default as UiRadioButton } from './radio-button.vue';
2
+ export type { UiRadioButtonProps } from './types';
3
+ export { UiRadioButton };
@@ -0,0 +1,13 @@
1
+ import { UiRadioButtonProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<UiRadioButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ input: (event: Event) => any;
4
+ focus: (event: FocusEvent) => any;
5
+ blur: (event: FocusEvent) => any;
6
+ "update:modelValue": (value: string) => any;
7
+ }, string, import('vue').PublicProps, Readonly<UiRadioButtonProps> & Readonly<{
8
+ onInput?: ((event: Event) => any) | undefined;
9
+ onFocus?: ((event: FocusEvent) => any) | undefined;
10
+ onBlur?: ((event: FocusEvent) => any) | undefined;
11
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,19 @@
1
+ export type UiRadioButtonProps = {
2
+ modelValue: string;
3
+ name: string;
4
+ value: string;
5
+ id?: string;
6
+ disabled?: boolean;
7
+ title: string;
8
+ subtitle?: string;
9
+ partial?: boolean;
10
+ error?: string;
11
+ required?: boolean;
12
+ checked?: boolean;
13
+ };
14
+ export type UiRadioButtonEmits = {
15
+ 'update:modelValue': [value: string];
16
+ blur: [event: FocusEvent];
17
+ focus: [event: FocusEvent];
18
+ input: [event: Event];
19
+ };
@@ -0,0 +1,3 @@
1
+ import { default as UiTextarea } from './textarea.vue';
2
+ export type { UiTextareaProps } from './types';
3
+ export { UiTextarea };
@@ -0,0 +1,25 @@
1
+ import { UiTextareaProps } from './types';
2
+ type __VLS_Props = UiTextareaProps;
3
+ type __VLS_PublicProps = {
4
+ 'value'?: string;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:value": (value: string) => any;
8
+ } & {
9
+ click: () => any;
10
+ "update:value": (value: string) => any;
11
+ enter: () => any;
12
+ "click-link": () => any;
13
+ focus: () => any;
14
+ blur: () => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ onClick?: (() => any) | undefined;
17
+ "onUpdate:value"?: ((value: string) => any) | undefined;
18
+ onEnter?: (() => any) | undefined;
19
+ "onClick-link"?: (() => any) | undefined;
20
+ onFocus?: (() => any) | undefined;
21
+ onBlur?: (() => any) | undefined;
22
+ }>, {
23
+ rows: number;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export type UiTextareaProps = {
2
+ value: string;
3
+ id?: string;
4
+ name?: string;
5
+ disabled?: boolean;
6
+ title?: string;
7
+ header?: string;
8
+ subTitle?: string;
9
+ link?: string;
10
+ placeholder?: string;
11
+ error?: string;
12
+ className?: string;
13
+ rows?: number;
14
+ maxLength?: number;
15
+ minHeight?: string;
16
+ };