@huntflow/ui 0.2.24 → 0.2.26

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.
@@ -21,8 +21,8 @@ export { UiAvatar } from './ui-avatar';
21
21
  export type { UiAvatarProps } from './ui-avatar';
22
22
  export { UiStack } from './ui-stack';
23
23
  export type { UiStackProps } from './ui-stack';
24
- export { UiRadioButton } from './ui-radio-button';
25
- export type { UiRadioButtonProps } from './ui-radio-button';
24
+ export { UiRadioGroup } from './ui-radio-group';
25
+ export type { UiRadioGroupProps } from './ui-radio-group';
26
26
  export { UiCheckbox } from './ui-checkbox';
27
27
  export type { UiCheckboxProps } from './ui-checkbox';
28
28
  export { UiCheckboxGroup } from './ui-checkbox-group';
@@ -1,10 +1,8 @@
1
1
  export type UiCheckboxProps = {
2
2
  modelValue?: boolean | 'indeterminate';
3
- id?: string;
4
3
  disabled?: boolean;
5
4
  title: string;
6
5
  subtitle?: string;
7
- error?: string;
8
6
  required?: boolean;
9
7
  value?: string;
10
8
  name?: string;
@@ -1,4 +1,8 @@
1
1
  import { UiCheckboxGroupProps } from './types';
2
+ type __VLS_Props = UiCheckboxGroupProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string[];
5
+ } & __VLS_Props;
2
6
  declare function __VLS_template(): {
3
7
  attrs: Partial<{}>;
4
8
  slots: {
@@ -8,13 +12,11 @@ declare function __VLS_template(): {
8
12
  rootEl: any;
9
13
  };
10
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiCheckboxGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
16
  "update:modelValue": (value: string[]) => any;
13
- }, string, import('vue').PublicProps, Readonly<UiCheckboxGroupProps> & Readonly<{
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
18
  "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
15
- }>, {
16
- modelValue: string[];
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
20
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
21
  export default _default;
20
22
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,6 +1,3 @@
1
1
  export type UiCheckboxGroupProps = {
2
- modelValue: string[];
3
- };
4
- export type UiCheckboxGroupEmits = {
5
- 'update:modelValue': [value: string[]];
2
+ error?: string;
6
3
  };
@@ -1 +1 @@
1
- export declare const icons: readonly ["2-users-20", "Vector", "add-reaction-16", "ai-20", "alert-20", "alert-24", "alert-fill-20", "alert-fill-24", "alert-fill-28", "archive-16", "archive-18", "archive-20", "archive-24", "archive-28", "arrow-down-20", "arrow-left-18", "arrow-left-20", "arrow-narrow-left-24", "arrow-narrow-left-bold-24", "arrow-narrow-right-24", "arrow-narrow-right-bold-20", "arrow-narrow-right-bold-24", "arrow-right-18", "arrow-right-20", "arrow-up-20", "attention-16", "attention-18", "attention-20", "attention-24", "attention-28", "calendar-16", "calendar-18", "calendar-20", "calendar-24", "calendar-28", "check-16", "check-18", "check-20", "check-24", "check-28", "check-color-16", "check-color-18", "check-color-20", "check-color-24", "check-color-28", "chevron-down-16", "chevron-down-18", "chevron-down-20", "chevron-down-24", "chevron-down-28", "chevron-left-16", "chevron-left-18", "chevron-left-20", "chevron-left-24", "chevron-left-28", "chevron-right-16", "chevron-right-18", "chevron-right-20", "chevron-right-24", "chevron-right-28", "chevron-up-16", "chevron-up-18", "chevron-up-20", "chevron-up-24", "chevron-up-28", "circle-download-20", "clip-16", "clip-18", "clip-20", "clip-24", "clip-28", "clipboard-16", "clipboard-18", "clipboard-20", "clipboard-24", "clipboard-28", "clock-16", "clock-18", "clock-20", "clock-24", "clock-28", "clock-fill-16", "clock-fill-18", "clock-fill-20", "clock-fill-24", "clock-fill-28", "close-16", "close-20", "close-28", "copy-20", "crown-16", "crown-18", "crown-20", "crown-24", "crown-28", "dots-horizontal-20", "dots-vertical-20", "download-16", "download-18", "download-20", "download-24", "download-28", "download-circle-16", "download-circle-18", "drag-16", "drag-20", "drag-24", "drop-down", "edit-16", "edit-18", "edit-20", "edit-24", "edit-28", "feedback-16", "feedback-18", "feedback-20", "feedback-24", "feedback-28", "folder-16", "folder-18", "folder-20", "folder-24", "folder-28", "graph-16", "graph-18", "graph-20", "graph-24", "graph-28", "home-16", "home-18", "home-20", "home-24", "home-28", "info-16", "info-18", "info-20", "info-24", "info-28", "link-16", "link-18", "link-20", "link-24", "link-28", "lock-16", "lock-18", "lock-20", "lock-24", "lock-28", "lock-color-16", "lock-color-18", "lock-color-20", "lock-color-24", "lock-color-28", "message-16", "message-18", "message-20", "message-24", "message-28", "message-open-18", "message-replied-18", "mute-20", "mute-fill-20", "next-20", "notches-16", "options-16", "options-18", "options-20", "options-24", "options-28", "options-lock-20", "phone-16", "phone-18", "phone-20", "phone-24", "phone-28", "phone-error-16", "phone-error-18", "phone-error-20", "phone-error-24", "phone-error-28", "phone-fill-16", "phone-fill-18", "phone-fill-20", "phone-fill-24", "phone-fill-28", "plus-16", "plus-18", "plus-20", "plus-circle-16", "plus-circle-18", "plus-circle-20", "plus-circle-24", "plus-circle-28", "print-16", "print-18", "print-20", "print-24", "print-28", "priority-20", "question-16", "question-18", "question-20", "question-24", "question-28", "refresh-18", "refresh-20", "refresh-24", "rocket-16", "rocket-18", "rocket-20", "rocket-24", "rocket-28", "search-16", "search-18", "search-20", "search-24", "search-28", "semiselected-16", "semiselected-18", "semiselected-20", "semiselected-24", "semiselected-28", "settings-16", "settings-18", "settings-20", "settings-24", "settings-28", "share-16", "share-18", "share-20", "share-24", "share-28", "shield-attention-20", "shield-attention-lock-20", "shield-fill-16", "shield-fill-20", "shield-tick-20", "shuffle-20", "sms-16", "sms-18", "sms-20", "sms-24", "sms-28", "star-16", "star-18", "star-20", "star-24", "star-28", "stop-color-16", "stop-color-18", "stop-color-20", "stop-color-24", "stop-color-28", "tag-18", "tag-20", "team-24", "telegram-16", "telegram-18", "telegram-20", "telegram-24", "telegram-28", "telegram-contour-20", "telegram-contour-24", "text-16", "text-18", "text-20", "text-24", "text-28", "thumbs-28", "thumbsup-16", "thumbsup-18", "thumbsup-20", "thumbsup-24", "trash-16", "trash-18", "trash-20", "trash-24", "trash-28", "unmute-20", "upload-16", "upload-18", "upload-20", "url-16", "url-18", "url-20", "url-24", "url-28", "verification-fill-20", "viber-16", "viber-18", "viber-20", "viber-24", "viber-28", "viber-contour-16", "viber-contour-20", "viber-contour-24", "viber-contour-28", "whatsapp-16", "whatsapp-18", "whatsapp-20", "whatsapp-24", "whatsapp-28", "whatsapp-contour-20", "whatsapp-contour-24", "x-circle-20", "zoom-16", "zoom-18", "zoom-20", "zoom-24", "zoom-28"];
1
+ export declare const icons: readonly ["2-users-20", "Vector", "add-reaction-16", "ai-20", "alert-20", "alert-24", "alert-fill-20", "alert-fill-24", "alert-fill-28", "archive-16", "archive-18", "archive-20", "archive-24", "archive-28", "arrow-down-20", "arrow-left-18", "arrow-left-20", "arrow-narrow-left-24", "arrow-narrow-left-bold-24", "arrow-narrow-right-24", "arrow-narrow-right-bold-20", "arrow-narrow-right-bold-24", "arrow-right-18", "arrow-right-20", "arrow-up-20", "attention-16", "attention-18", "attention-20", "attention-24", "attention-28", "calendar-16", "calendar-18", "calendar-20", "calendar-24", "calendar-28", "check-16", "check-18", "check-20", "check-24", "check-28", "check-color-16", "check-color-18", "check-color-20", "check-color-24", "check-color-28", "chevron-down-16", "chevron-down-18", "chevron-down-20", "chevron-down-24", "chevron-down-28", "chevron-left-16", "chevron-left-18", "chevron-left-20", "chevron-left-24", "chevron-left-28", "chevron-right-16", "chevron-right-18", "chevron-right-20", "chevron-right-24", "chevron-right-28", "chevron-up-16", "chevron-up-18", "chevron-up-20", "chevron-up-24", "chevron-up-28", "circle-download-20", "clip-16", "clip-18", "clip-20", "clip-24", "clip-28", "clipboard-16", "clipboard-18", "clipboard-20", "clipboard-24", "clipboard-28", "clock-16", "clock-18", "clock-20", "clock-24", "clock-28", "clock-fill-16", "clock-fill-18", "clock-fill-20", "clock-fill-24", "clock-fill-28", "close-16", "close-20", "close-28", "copy-20", "crown-16", "crown-18", "crown-20", "crown-24", "crown-28", "dots-horizontal-20", "dots-vertical-20", "download-16", "download-18", "download-20", "download-24", "download-28", "download-circle-16", "download-circle-18", "drag-16", "drag-20", "drag-24", "drop-down", "edit-16", "edit-18", "edit-20", "edit-24", "edit-28", "feedback-16", "feedback-18", "feedback-20", "feedback-24", "feedback-28", "folder-16", "folder-18", "folder-20", "folder-24", "folder-28", "graph-16", "graph-18", "graph-20", "graph-24", "graph-28", "home-16", "home-18", "home-20", "home-24", "home-28", "info-16", "info-18", "info-20", "info-24", "info-28", "link-16", "link-18", "link-20", "link-24", "link-28", "lock-16", "lock-18", "lock-20", "lock-24", "lock-28", "lock-color-16", "lock-color-18", "lock-color-20", "lock-color-24", "lock-color-28", "max-contour-20", "message-16", "message-18", "message-20", "message-24", "message-28", "message-open-18", "message-replied-18", "mute-20", "mute-fill-20", "next-20", "notches-16", "options-16", "options-18", "options-20", "options-24", "options-28", "options-lock-20", "phone-16", "phone-18", "phone-20", "phone-24", "phone-28", "phone-error-16", "phone-error-18", "phone-error-20", "phone-error-24", "phone-error-28", "phone-fill-16", "phone-fill-18", "phone-fill-20", "phone-fill-24", "phone-fill-28", "plus-16", "plus-18", "plus-20", "plus-circle-16", "plus-circle-18", "plus-circle-20", "plus-circle-24", "plus-circle-28", "print-16", "print-18", "print-20", "print-24", "print-28", "priority-20", "question-16", "question-18", "question-20", "question-24", "question-28", "refresh-18", "refresh-20", "refresh-24", "rocket-16", "rocket-18", "rocket-20", "rocket-24", "rocket-28", "search-16", "search-18", "search-20", "search-24", "search-28", "semiselected-16", "semiselected-18", "semiselected-20", "semiselected-24", "semiselected-28", "settings-16", "settings-18", "settings-20", "settings-24", "settings-28", "share-16", "share-18", "share-20", "share-24", "share-28", "shield-attention-20", "shield-attention-lock-20", "shield-fill-16", "shield-fill-20", "shield-tick-20", "shuffle-20", "sms-16", "sms-18", "sms-20", "sms-24", "sms-28", "star-16", "star-18", "star-20", "star-24", "star-28", "stop-color-16", "stop-color-18", "stop-color-20", "stop-color-24", "stop-color-28", "tag-18", "tag-20", "team-24", "telegram-16", "telegram-18", "telegram-20", "telegram-24", "telegram-28", "telegram-contour-20", "telegram-contour-24", "text-16", "text-18", "text-20", "text-24", "text-28", "thumbs-28", "thumbsup-16", "thumbsup-18", "thumbsup-20", "thumbsup-24", "trash-16", "trash-18", "trash-20", "trash-24", "trash-28", "unmute-20", "upload-16", "upload-18", "upload-20", "url-16", "url-18", "url-20", "url-24", "url-28", "verification-fill-20", "viber-16", "viber-18", "viber-20", "viber-24", "viber-28", "viber-contour-16", "viber-contour-20", "viber-contour-24", "viber-contour-28", "whatsapp-16", "whatsapp-18", "whatsapp-20", "whatsapp-24", "whatsapp-28", "whatsapp-contour-20", "whatsapp-contour-24", "x-circle-20", "zoom-16", "zoom-18", "zoom-20", "zoom-24", "zoom-28"];
@@ -1,13 +1,19 @@
1
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
- "update:modelValue": (value: string) => any;
5
- focus: (event: FocusEvent) => any;
6
- blur: (event: FocusEvent) => any;
7
- }, string, import('vue').PublicProps, Readonly<UiRadioButtonProps> & Readonly<{
8
- onInput?: ((event: Event) => any) | undefined;
9
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
- onFocus?: ((event: FocusEvent) => any) | undefined;
11
- onBlur?: ((event: FocusEvent) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ title?(_: {}): any;
6
+ subtitle?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<UiRadioButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiRadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
14
  export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -1,19 +1,9 @@
1
1
  export type UiRadioButtonProps = {
2
- modelValue: string;
3
- name: string;
4
2
  value: string;
5
- id?: string;
6
3
  disabled?: boolean;
7
- title: string;
4
+ title?: string;
8
5
  subtitle?: string;
9
6
  partial?: boolean;
10
- error?: string;
11
7
  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];
8
+ name?: string;
19
9
  };
@@ -0,0 +1,3 @@
1
+ import { default as UiRadioGroup } from './radio-group.vue';
2
+ export type { UiRadioGroupProps } from './types';
3
+ export { UiRadioGroup };
@@ -0,0 +1,32 @@
1
+ import { UiRadioGroupProps } from './types';
2
+ type __VLS_Props = UiRadioGroupProps;
3
+ declare const model: import('vue').ModelRef<string | undefined, string, string | undefined, string | undefined>;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: typeof model['value'];
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ optionTitle?(_: {
11
+ option: import('../ui-radio-button').UiRadioButtonProps;
12
+ }): any;
13
+ optionSubtitle?(_: {
14
+ option: import('../ui-radio-button').UiRadioButtonProps;
15
+ }): any;
16
+ };
17
+ refs: {};
18
+ rootEl: any;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ "update:modelValue": (value: string | undefined) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,14 @@
1
+ import { UiRadioButtonProps } from '../ui-radio-button';
2
+ export type UiRadioGroupOption = UiRadioButtonProps;
3
+ export type UiRadioGroupProps = {
4
+ options: UiRadioButtonProps[];
5
+ defaultValue?: string;
6
+ name?: string;
7
+ disabled?: boolean;
8
+ error?: string;
9
+ required?: boolean;
10
+ direction?: 'column' | 'row';
11
+ loop?: boolean;
12
+ dir?: 'ltr' | 'rtl';
13
+ stackGap?: 's' | 'l';
14
+ };