@returnless/focus-ui 0.0.37 → 0.0.39

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.
@@ -26,8 +26,8 @@ declare const __VLS_component: import("vue").DefineComponent<{
26
26
  }> & Readonly<{
27
27
  onDismiss?: (() => any) | undefined;
28
28
  }>, {
29
- variant: AlertVariant;
30
29
  flush: boolean;
30
+ variant: AlertVariant;
31
31
  dismissible: boolean;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -0,0 +1,28 @@
1
+ declare let __VLS_typeProps: {
2
+ label: string;
3
+ labelHidden?: boolean;
4
+ placeholder?: string | null;
5
+ };
6
+ type __VLS_PublicProps = {
7
+ modelValue?: string;
8
+ } & typeof __VLS_typeProps;
9
+ declare function __VLS_template(): {
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ attrs: Partial<{}>;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:modelValue": (modelValue: string) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,20 @@
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import("vue").DefineComponent<{
10
+ label: string;
11
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
12
+ label: string;
13
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,17 @@
1
+ import { PrimitiveProps } from 'radix-vue';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import("vue").DefineComponent<PrimitiveProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimitiveProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,3 @@
1
+ export { default as Autocomplete } from './Autocomplete.vue';
2
+ export { default as AutocompleteGroup } from './AutocompleteGroup.vue';
3
+ export { default as AutocompleteItem } from './AutocompleteItem.vue';
@@ -13,8 +13,8 @@ declare const __VLS_component: import("vue").DefineComponent<{
13
13
  flush?: boolean;
14
14
  alignment?: "start" | "end";
15
15
  }> & Readonly<{}>, {
16
- alignment: "start" | "end";
17
16
  flush: boolean;
17
+ alignment: "start" | "end";
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
20
  export default _default;
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((modelValue: File[]) => any) | undefined;
18
18
  }>, {
19
- accepts: FileAccepts;
20
19
  multiple: boolean;
20
+ accepts: FileAccepts;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  export default _default;
@@ -22,8 +22,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
23
  "onUpdate:modelValue"?: ((modelValue: File[]) => any) | undefined;
24
24
  }>, {
25
- accepts: FileAccepts;
26
25
  multiple: boolean;
26
+ accepts: FileAccepts;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
29
  export default _default;
@@ -11,9 +11,13 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import("vue").DefineComponent<{
12
12
  /** Navigation component to render in the left column */
13
13
  navigation?: Component;
14
+ /** Size of the page */
15
+ size?: "default" | "compact";
14
16
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
15
17
  /** Navigation component to render in the left column */
16
18
  navigation?: Component;
19
+ /** Size of the page */
20
+ size?: "default" | "compact";
17
21
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
23
  export default _default;
@@ -11,20 +11,24 @@ declare function __VLS_template(): {
11
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import("vue").DefineComponent<{
13
13
  /** The trigger event of the popper */
14
- trigger: "click" | "hover";
14
+ trigger?: "click" | "hover" | "manual";
15
15
  /** The placement of the popper */
16
16
  placement: Placement;
17
17
  /** The delay in milliseconds before hiding the popper */
18
18
  timeout?: number;
19
+ open?: boolean;
19
20
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
20
21
  /** The trigger event of the popper */
21
- trigger: "click" | "hover";
22
+ trigger?: "click" | "hover" | "manual";
22
23
  /** The placement of the popper */
23
24
  placement: Placement;
24
25
  /** The delay in milliseconds before hiding the popper */
25
26
  timeout?: number;
27
+ open?: boolean;
26
28
  }> & Readonly<{}>, {
29
+ trigger: "click" | "hover" | "manual";
27
30
  timeout: number;
31
+ open: boolean;
28
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
34
  export default _default;
@@ -41,8 +41,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
41
41
  required: boolean;
42
42
  disabled: boolean;
43
43
  labelHidden: boolean;
44
- helpText: string | null;
45
44
  placeholder: string | null;
45
+ helpText: string | null;
46
46
  readonly: boolean;
47
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
48
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,5 +1,11 @@
1
- import { type FunctionalComponent, type HTMLAttributes, type VNodeProps } from 'vue';
1
+ import { type FunctionalComponent, type HTMLAttributes, type VNodeProps, type Component } from 'vue';
2
+ import { type AsTag } from 'radix-vue';
2
3
  declare let __VLS_typeProps: {
4
+ /**
5
+ * The element or component this component should render as. Can be overwrite by `asChild`
6
+ * @defaultValue "div"
7
+ */
8
+ as?: AsTag | Component | null;
3
9
  /** Enable automatic completion by the browser. Set to "off" when you do not want the browser to fill in info */
4
10
  autoComplete?: string | null;
5
11
  /** Whether the input is disabled. */
@@ -43,13 +49,14 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
43
49
  type: "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
44
50
  id: string | null;
45
51
  required: boolean;
52
+ as: AsTag | Component | null;
46
53
  disabled: boolean;
47
54
  icon: string | FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
48
55
  labelHidden: boolean;
49
- helpText: string | null;
56
+ placeholder: string | null;
50
57
  autoComplete: string | null;
58
+ helpText: string | null;
51
59
  multiline: boolean;
52
- placeholder: string | null;
53
60
  readonly: boolean;
54
61
  maxLength: number | null;
55
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -27,8 +27,8 @@ declare const __VLS_component: import("vue").DefineComponent<{
27
27
  onClose?: (() => any) | undefined;
28
28
  }>, {
29
29
  duration: number;
30
- variant: ToastVariant;
31
30
  open: boolean;
31
+ variant: ToastVariant;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
34
  export default _default;
@@ -3,6 +3,7 @@ export { ActionList, ActionListBody, ActionListItem, ActionListSection, ActionLi
3
3
  export { Alert, AlertDescription, AlertTitle } from './Alert';
4
4
  export { AlertDialog, AlertDialogActionButton, AlertDialogCancelButton, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from './AlertDialog';
5
5
  export { AspectRatio } from './AspectRatio';
6
+ export { Autocomplete, AutocompleteGroup, AutocompleteItem } from './Autocomplete';
6
7
  export { Avatar } from './Avatar';
7
8
  export { Badge, BadgeContent, BadgeIcon } from './Badge';
8
9
  export { type BarChartCategory, BarChart } from './BarChart';
@@ -1,5 +1,6 @@
1
1
  export { type TailwindColor, useTailwindColor } from './useTailwindColor';
2
2
  export { useCalendar } from './useCalendar';
3
+ export { useDark } from './useDark';
3
4
  export { useDateFormatter } from './useDateFormatter';
4
5
  export { useTheme } from './useTheme';
5
6
  export { useToastNotifications } from './useToastNotifications';
@@ -0,0 +1 @@
1
+ export declare function useDark(): import("vue").ComputedRef<boolean>;
@@ -1,4 +1,4 @@
1
- import colors from 'tailwindcss/colors';
1
+ declare const colors: any;
2
2
  type TailwindColorMap = typeof colors;
3
3
  export type TailwindColor = keyof {
4
4
  [K in keyof TailwindColorMap as TailwindColorMap[K] extends object ? K : never]: TailwindColorMap[K];
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- :root{--grid-gap: 1.5rem}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:center;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}._visuallyHidden_o6qmb_6{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;border:0!important;white-space:nowrap!important}.shake{animation:horizontal-shaking .25s infinite}@keyframes horizontal-shaking{0%{transform:translate(0)}25%{transform:translate(5px)}50%{transform:translate(-5px)}75%{transform:translate(5px)}to{transform:translate(0)}}.chosen[data-v-af1d3709]{opacity:1;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ghost[data-v-af1d3709]{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.ghost[data-v-af1d3709]:where(.dark,.dark *){--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}.nested-enter-active,.nested-leave-active{transition:all .2s ease-in-out}.nested-enter-active .background,.nested-leave-active .background{transition:all .2s linear}.nested-enter-from .background,.nested-leave-to .background{opacity:0}.nested-enter-active .drawer,.nested-leave-active .drawer{transition:all .15s ease-out}.nested-enter-from .drawer,.nested-leave-to .drawer{transform:translate(120%)}input[type=number][data-v-77f41730]::-webkit-inner-spin-button,input[type=number][data-v-77f41730]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
1
+ :root{--grid-gap: 1.5rem}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:center;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}._visuallyHidden_o6qmb_6{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;border:0!important;white-space:nowrap!important}.shake{animation:horizontal-shaking .25s infinite}@keyframes horizontal-shaking{0%{transform:translate(0)}25%{transform:translate(5px)}50%{transform:translate(-5px)}75%{transform:translate(5px)}to{transform:translate(0)}}.chosen[data-v-af1d3709]{opacity:1;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ghost[data-v-af1d3709]{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.ghost[data-v-af1d3709]:where(.dark,.dark *){--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}.nested-enter-active,.nested-leave-active{transition:all .2s ease-in-out}.nested-enter-active .background,.nested-leave-active .background{transition:all .2s linear}.nested-enter-from .background,.nested-leave-to .background{opacity:0}.nested-enter-active .drawer,.nested-leave-active .drawer{transition:all .15s ease-out}.nested-enter-from .drawer,.nested-leave-to .drawer{transform:translate(120%)}input[type=number][data-v-db2ec5a9]::-webkit-inner-spin-button,input[type=number][data-v-db2ec5a9]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@returnless/focus-ui",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,18 +21,18 @@
21
21
  "@heroicons/vue": "^2.1.3",
22
22
  "@inertiajs/vue3": "^1.1.0",
23
23
  "@internationalized/date": "^3.5.5",
24
- "@stylistic/eslint-plugin": "^2.1.0",
24
+ "@stylistic/eslint-plugin": "^2.9.0",
25
25
  "@tailwindcss/typography": "^0.5.13",
26
26
  "@testing-library/jest-dom": "^6.5.0",
27
27
  "@testing-library/vue": "^8.1.0",
28
28
  "@types/jest-axe": "^3.5.9",
29
- "@types/node": "^20.13.0",
29
+ "@types/node": "^22.7.4",
30
30
  "@types/sortablejs": "^1.15.8",
31
31
  "@typescript-eslint/eslint-plugin": "^7.11.0",
32
32
  "@vitejs/plugin-vue": "^5.0.5",
33
- "@vitest/coverage-istanbul": "^2.0.5",
33
+ "@vitest/coverage-istanbul": "^2.1.2",
34
34
  "@vue/test-utils": "^2.4.6",
35
- "@vueuse/core": "^10.11.0",
35
+ "@vueuse/core": "^11.1.0",
36
36
  "autoprefixer": "^10.4.19",
37
37
  "collect.js": "^4.36.1",
38
38
  "dayjs": "^1.11.11",
@@ -43,13 +43,13 @@
43
43
  "jest-axe": "^9.0.0",
44
44
  "jsdom": "^25.0.0",
45
45
  "postcss": "^8.4.38",
46
- "radix-vue": "^1.9.6",
47
- "rimraf": "^5.0.7",
46
+ "radix-vue": "^1.9.7",
47
+ "rimraf": "^6.0.1",
48
48
  "sortablejs": "^1.15.2",
49
49
  "tailwindcss": "^3.4.3",
50
50
  "typescript": "^5.4.5",
51
51
  "vite": "^5.2.12",
52
- "vitepress": "^1.3.4",
52
+ "vitepress": "^1.4.0",
53
53
  "vitest": "^2.0.5",
54
54
  "vitest-canvas-mock": "^0.3.3",
55
55
  "vue-component-meta": "^2.0.19",