@huntflow/ui 0.2.41 → 0.2.43

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.
@@ -19,6 +19,8 @@ export { UiError } from './ui-error';
19
19
  export type { UiErrorProps } from './ui-error';
20
20
  export { UiAvatar } from './ui-avatar';
21
21
  export type { UiAvatarProps } from './ui-avatar';
22
+ export { UiTextarea } from './ui-textarea';
23
+ export type { UiTextareaProps } from './ui-textarea';
22
24
  export { UiStack } from './ui-stack';
23
25
  export type { UiStackProps } from './ui-stack';
24
26
  export { UiRadioGroup } from './ui-radio-group';
@@ -27,5 +29,9 @@ export { UiCheckbox } from './ui-checkbox';
27
29
  export type { UiCheckboxProps } from './ui-checkbox';
28
30
  export { UiCheckboxGroup } from './ui-checkbox-group';
29
31
  export type { UiCheckboxGroupProps } from './ui-checkbox-group';
32
+ export { UiSwitch } from './ui-switch';
33
+ export type { UiSwitchProps } from './ui-switch';
30
34
  export { UiDropzone } from './ui-dropzone';
31
35
  export type { UiDropzoneProps } from './ui-dropzone';
36
+ export { UiDropdown } from './ui-dropdown';
37
+ export type { UiDropdownProps, UiDropdownSide, UiDropdownAlign } from './ui-dropdown';
@@ -1,6 +1,7 @@
1
1
  import { IconBySize } from '../ui-icon';
2
2
  export type UiButtonProps = {
3
3
  size?: UiButtonSize;
4
+ weight?: UiButtonWeight;
4
5
  type?: UiButtonType;
5
6
  disabled?: boolean;
6
7
  loading?: boolean;
@@ -15,6 +16,7 @@ export type UiButtonProps = {
15
16
  iconAfter?: IconBySize<18> | IconBySize<20>;
16
17
  fill?: boolean;
17
18
  };
19
+ export type UiButtonWeight = 'regular' | 'medium';
18
20
  export type UiButtonSize = 's' | 'xs' | 'm' | 'l' | 'xl';
19
21
  export type UiButtonType = 'primary' | 'secondary' | 'accent' | 'jobsites' | 'ghost' | 'ghost-danger' | 'danger' | 'transparent-dark' | 'transparent-secondary' | 'text-primary' | 'text-secondary';
20
22
  export type UiButtonHTMLType = 'button' | 'submit' | 'reset';
@@ -10,9 +10,9 @@ declare function __VLS_template(): {
10
10
  };
11
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import('vue').DefineComponent<UiCheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- "update:modelValue": (value: boolean | "indeterminate") => any;
13
+ "update:modelValue": (value: string | number | boolean) => any;
14
14
  }, string, import('vue').PublicProps, Readonly<UiCheckboxProps> & Readonly<{
15
- "onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
18
  export default _default;
@@ -1,5 +1,7 @@
1
1
  export type UiCheckboxProps = {
2
- modelValue?: boolean | 'indeterminate';
2
+ modelValue?: boolean | string | number | 'indeterminate';
3
+ trueValue?: boolean | string | number;
4
+ falseValue?: boolean | string | number;
3
5
  disabled?: boolean;
4
6
  label?: string;
5
7
  subtitle?: string;
@@ -7,7 +9,8 @@ export type UiCheckboxProps = {
7
9
  value?: string;
8
10
  name?: string;
9
11
  lock?: boolean;
12
+ ellipsis?: boolean;
10
13
  };
11
14
  export type UiCheckboxEmits = {
12
- 'update:modelValue': [value: boolean | 'indeterminate'];
15
+ 'update:modelValue': [value: boolean | string | number | 'indeterminate'];
13
16
  };
@@ -8,4 +8,5 @@ export type UiCheckboxGroupProps = {
8
8
  error?: string;
9
9
  stackGap?: 's' | 'l';
10
10
  direction?: 'column' | 'row';
11
+ ellipsis?: boolean;
11
12
  };
@@ -0,0 +1,19 @@
1
+ import { UiDropdownProps } from './types';
2
+ type __VLS_Props = UiDropdownProps;
3
+ type __VLS_PublicProps = {
4
+ 'open'?: boolean;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): any;
7
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
8
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:open": (value: boolean) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,3 @@
1
+ import { default as UiDropdown } from './dropdown.vue';
2
+ export type { UiDropdownProps, UiDropdownSide, UiDropdownAlign } from './types';
3
+ export { UiDropdown };
@@ -0,0 +1,14 @@
1
+ export type UiDropdownSide = 'top' | 'right' | 'bottom' | 'left';
2
+ export type UiDropdownAlign = 'start' | 'center' | 'end';
3
+ export type UiDropdownProps = {
4
+ open?: boolean;
5
+ side?: UiDropdownSide;
6
+ align?: UiDropdownAlign;
7
+ sideOffset?: number;
8
+ alignOffset?: number;
9
+ size: 's';
10
+ title?: string;
11
+ subtitle?: string;
12
+ disabled?: boolean;
13
+ modal?: boolean;
14
+ };
@@ -10,6 +10,6 @@ export type UiRadioGroupProps = {
10
10
  direction?: 'column' | 'row';
11
11
  loop?: boolean;
12
12
  dir?: 'ltr' | 'rtl';
13
- stackGap?: 's' | 'l';
13
+ stackGap?: 's' | 'm' | 'l';
14
14
  labelPosition?: 'right' | 'bottom';
15
15
  };
@@ -6,4 +6,5 @@ export type UiStackProps = {
6
6
  gap?: '' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl' | '4xl' | '5xl';
7
7
  reverse?: boolean;
8
8
  size?: 'full' | 'auto';
9
+ wrap?: boolean;
9
10
  };
@@ -0,0 +1,3 @@
1
+ import { default as UiSwitch } from './switch.vue';
2
+ export type { UiSwitchProps, UiSwitchEmits } from './types';
3
+ export { UiSwitch };
@@ -0,0 +1,27 @@
1
+ import { UiSwitchProps } from './types';
2
+ type __VLS_Props = UiSwitchProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ label?(_: {}): any;
10
+ subtitle?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: boolean) => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,12 @@
1
+ export type UiSwitchProps = {
2
+ modelValue?: boolean;
3
+ disabled?: boolean;
4
+ label?: string;
5
+ subtitle?: string;
6
+ required?: boolean;
7
+ name?: string;
8
+ stackGap?: 's' | 'm' | 'l';
9
+ };
10
+ export type UiSwitchEmits = {
11
+ 'update:modelValue': [value: boolean];
12
+ };