@profeskills/vuejs-ui 0.2.2

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.
Files changed (109) hide show
  1. package/ConfirmDialog.vue.d.ts +2 -0
  2. package/HBadge.vue.d.ts +17 -0
  3. package/HDialog.vue.d.ts +23 -0
  4. package/HMetricCard.vue.d.ts +7 -0
  5. package/HTooltip.vue.d.ts +16 -0
  6. package/LICENSE +21 -0
  7. package/README.md +47 -0
  8. package/StatCard.vue.d.ts +10 -0
  9. package/badge/Badge.vue.d.ts +18 -0
  10. package/badge/index.d.ts +1 -0
  11. package/badge/index.js +2 -0
  12. package/checkbox/Checkbox.vue.d.ts +12 -0
  13. package/checkbox/index.d.ts +1 -0
  14. package/checkbox/index.js +2 -0
  15. package/chunks/badge-Bs0JHyBd.js +17 -0
  16. package/chunks/checkbox-Dy2MEOEB.js +28 -0
  17. package/chunks/data-table-CmHz_5Gm.js +1106 -0
  18. package/chunks/dialog-B5d9RrVM.js +91 -0
  19. package/chunks/dropdown-menu-DjfkyvUs.js +190 -0
  20. package/chunks/select-sj-TTDYA.js +132 -0
  21. package/chunks/separator-nJXJBrX8.js +30 -0
  22. package/chunks/sheet-Bloy0C7L.js +91 -0
  23. package/chunks/tabs-CmEu-lQt.js +84 -0
  24. package/chunks/tooltip-Ck8h37A5.js +62 -0
  25. package/composables/useConfirm.d.ts +11 -0
  26. package/composables/useConfirm.js +13 -0
  27. package/composables/useTableInstance.d.ts +9 -0
  28. package/composables/useTableInstance.js +16 -0
  29. package/data-table/DataTable.vue.d.ts +17 -0
  30. package/data-table/DataTableColumnHeader.vue.d.ts +7 -0
  31. package/data-table/DataTableColumnsVisibility.vue.d.ts +2 -0
  32. package/data-table/DataTablePagination.vue.d.ts +6 -0
  33. package/data-table/DataTableSkeleton.vue.d.ts +9 -0
  34. package/data-table/advanced/DataTableAdvancedToolbar.vue.d.ts +31 -0
  35. package/data-table/advanced/DataTableFilterItem.vue.d.ts +13 -0
  36. package/data-table/advanced/DataTableMultiFilter.vue.d.ts +15 -0
  37. package/data-table/advanced/views/DataTableViewsDropdown.vue.d.ts +21 -0
  38. package/data-table/advanced/views/utils.d.ts +6 -0
  39. package/data-table/index.d.ts +10 -0
  40. package/data-table/index.js +2 -0
  41. package/dialog/Dialog.vue.d.ts +21 -0
  42. package/dialog/DialogClose.vue.d.ts +12 -0
  43. package/dialog/DialogContent.vue.d.ts +21 -0
  44. package/dialog/DialogDescription.vue.d.ts +15 -0
  45. package/dialog/DialogFooter.vue.d.ts +15 -0
  46. package/dialog/DialogHeader.vue.d.ts +15 -0
  47. package/dialog/DialogTitle.vue.d.ts +15 -0
  48. package/dialog/DialogTrigger.vue.d.ts +12 -0
  49. package/dialog/index.d.ts +8 -0
  50. package/dialog/index.js +2 -0
  51. package/dropdown-menu/DropdownMenu.vue.d.ts +21 -0
  52. package/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +23 -0
  53. package/dropdown-menu/DropdownMenuContent.vue.d.ts +26 -0
  54. package/dropdown-menu/DropdownMenuItem.vue.d.ts +22 -0
  55. package/dropdown-menu/DropdownMenuLabel.vue.d.ts +16 -0
  56. package/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +19 -0
  57. package/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +21 -0
  58. package/dropdown-menu/DropdownMenuRoot.vue.d.ts +12 -0
  59. package/dropdown-menu/DropdownMenuSeparator.vue.d.ts +5 -0
  60. package/dropdown-menu/DropdownMenuShortcut.vue.d.ts +15 -0
  61. package/dropdown-menu/DropdownMenuSub.vue.d.ts +16 -0
  62. package/dropdown-menu/DropdownMenuSubContent.vue.d.ts +15 -0
  63. package/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +17 -0
  64. package/dropdown-menu/DropdownMenuTrigger.vue.d.ts +16 -0
  65. package/dropdown-menu/index.d.ts +13 -0
  66. package/dropdown-menu/index.js +2 -0
  67. package/index.d.ts +20 -0
  68. package/index.js +142 -0
  69. package/package.json +128 -0
  70. package/select/Select.vue.d.ts +24 -0
  71. package/select/SelectContent.vue.d.ts +24 -0
  72. package/select/SelectGroup.vue.d.ts +12 -0
  73. package/select/SelectItem.vue.d.ts +21 -0
  74. package/select/SelectLabel.vue.d.ts +15 -0
  75. package/select/SelectSeparator.vue.d.ts +5 -0
  76. package/select/SelectTrigger.vue.d.ts +21 -0
  77. package/select/SelectValue.vue.d.ts +15 -0
  78. package/select/index.d.ts +8 -0
  79. package/select/index.js +2 -0
  80. package/separator/Separator.vue.d.ts +10 -0
  81. package/separator/index.d.ts +1 -0
  82. package/separator/index.js +2 -0
  83. package/sheet/Sheet.vue.d.ts +21 -0
  84. package/sheet/SheetClose.vue.d.ts +12 -0
  85. package/sheet/SheetContent.vue.d.ts +19 -0
  86. package/sheet/SheetDescription.vue.d.ts +15 -0
  87. package/sheet/SheetFooter.vue.d.ts +15 -0
  88. package/sheet/SheetHeader.vue.d.ts +15 -0
  89. package/sheet/SheetTitle.vue.d.ts +15 -0
  90. package/sheet/SheetTrigger.vue.d.ts +12 -0
  91. package/sheet/index.d.ts +8 -0
  92. package/sheet/index.js +2 -0
  93. package/styles.css +2 -0
  94. package/tabs/Tabs.vue.d.ts +20 -0
  95. package/tabs/TabsContent.vue.d.ts +16 -0
  96. package/tabs/TabsList.vue.d.ts +16 -0
  97. package/tabs/TabsTrigger.vue.d.ts +16 -0
  98. package/tabs/index.d.ts +4 -0
  99. package/tabs/index.js +2 -0
  100. package/tooltip/Tooltip.vue.d.ts +21 -0
  101. package/tooltip/TooltipContent.vue.d.ts +23 -0
  102. package/tooltip/TooltipProvider.vue.d.ts +17 -0
  103. package/tooltip/TooltipTrigger.vue.d.ts +12 -0
  104. package/tooltip/index.d.ts +4 -0
  105. package/tooltip/index.js +2 -0
  106. package/types.d.ts +32 -0
  107. package/types.js +0 -0
  108. package/utils.d.ts +5 -0
  109. package/utils.js +11 -0
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ variant?: 'green' | 'amber' | 'red' | 'blue' | 'purple' | 'gray';
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ variant: "green" | "amber" | "red" | "blue" | "purple" | "gray";
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ modelValue: boolean;
3
+ title: string;
4
+ width?: string;
5
+ };
6
+ declare var __VLS_9: {}, __VLS_11: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_9) => any;
9
+ } & {
10
+ footer?: (props: typeof __VLS_11) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (v: boolean) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ value: string | number;
4
+ sub?: string;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ text: string;
3
+ placement?: 'top' | 'top-end' | 'bottom' | 'left';
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ProfesSkills
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @profeskills/vuejs-ui
2
+
3
+ Bibliothèque de composants Vue 3 partagée par les applications ProfesSkills.
4
+
5
+ <!-- test: retest publish:vuejs-ui after per-lib CI job split -->
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pnpm add @profeskills/vuejs-ui vue vue-router @tanstack/vue-table
11
+ ```
12
+
13
+ Importez ensuite la feuille de styles une seule fois dans le point d’entrée de
14
+ l’application :
15
+
16
+ ```ts
17
+ import '@profeskills/vuejs-ui/styles.css'
18
+ ```
19
+
20
+ ## Utilisation
21
+
22
+ ```vue
23
+ <script setup lang="ts">
24
+ import { HBadge, HDialog } from '@profeskills/vuejs-ui'
25
+ </script>
26
+ ```
27
+
28
+ Les groupes volumineux sont également disponibles par sous-chemins :
29
+
30
+ ```ts
31
+ import { Dialog, DialogContent } from '@profeskills/vuejs-ui/dialog'
32
+ import { DataTable } from '@profeskills/vuejs-ui/data-table'
33
+ import { showConfirm } from '@profeskills/vuejs-ui/confirm'
34
+ ```
35
+
36
+ La classe `dark` appliquée à l’élément racine active les variables du thème
37
+ sombre. Les variables CSS du thème peuvent être redéfinies par l’application.
38
+
39
+ ## Développement
40
+
41
+ ```bash
42
+ pnpm nx typecheck vuejs-ui
43
+ pnpm nx build vuejs-ui
44
+ npm pack --dry-run ./dist/libs/vuejs-ui
45
+ ```
46
+
47
+ Licence MIT.
@@ -0,0 +1,10 @@
1
+ import type { Component } from 'vue';
2
+ type __VLS_Props = {
3
+ icon?: Component;
4
+ label: string;
5
+ value: string | number;
6
+ delta?: string;
7
+ up?: boolean;
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ class?: string;
3
+ variant?: 'default' | 'secondary' | 'destructive' | 'outline';
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ variant: "default" | "secondary" | "destructive" | "outline";
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1 @@
1
+ export { default as Badge } from './Badge.vue';
package/badge/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../chunks/badge-Bs0JHyBd.js";
2
+ export { e as Badge };
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ class?: string;
3
+ checked?: boolean | 'indeterminate';
4
+ disabled?: boolean;
5
+ defaultChecked?: boolean;
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ "update:checked": (v: boolean) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:checked"?: ((v: boolean) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Checkbox } from './Checkbox.vue';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../chunks/checkbox-Dy2MEOEB.js";
2
+ export { e as Checkbox };
@@ -0,0 +1,17 @@
1
+ import { cn as e } from "../utils.js";
2
+ import { createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, renderSlot as a, unref as o } from "vue";
3
+ //#endregion
4
+ //#region src/badge/Badge.vue
5
+ var s = /* @__PURE__ */ n({
6
+ __name: "Badge",
7
+ props: {
8
+ class: {},
9
+ variant: { default: "default" }
10
+ },
11
+ setup(n) {
12
+ let s = n;
13
+ return (c, l) => (i(), t("span", { class: r(o(e)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", n.variant === "default" && "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80", n.variant === "secondary" && "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", n.variant === "destructive" && "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80", n.variant === "outline" && "text-foreground", s.class)) }, [a(c.$slots, "default")], 2));
14
+ }
15
+ });
16
+ //#endregion
17
+ export { s as t };
@@ -0,0 +1,28 @@
1
+ import { cn as e } from "../utils.js";
2
+ import { createBlock as t, createVNode as n, defineComponent as r, mergeProps as i, openBlock as a, unref as o, withCtx as s } from "vue";
3
+ import { CheckboxIndicator as c, CheckboxRoot as l, useForwardPropsEmits as u } from "radix-vue";
4
+ import { CheckIcon as d } from "lucide-vue-next";
5
+ //#endregion
6
+ //#region src/checkbox/Checkbox.vue
7
+ var f = /* @__PURE__ */ r({
8
+ __name: "Checkbox",
9
+ props: {
10
+ class: {},
11
+ checked: { type: [Boolean, String] },
12
+ disabled: { type: Boolean },
13
+ defaultChecked: { type: Boolean }
14
+ },
15
+ emits: ["update:checked"],
16
+ setup(r, { emit: f }) {
17
+ let p = r, m = u(p, f);
18
+ return (r, u) => (a(), t(o(l), i(o(m), { class: o(e)("peer size-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", p.class) }), {
19
+ default: s(() => [n(o(c), { class: "flex items-center justify-center text-current" }, {
20
+ default: s(() => [n(o(d), { class: "size-3.5" })]),
21
+ _: 1
22
+ })]),
23
+ _: 1
24
+ }, 16, ["class"]));
25
+ }
26
+ });
27
+ //#endregion
28
+ export { f as t };