@dpa-id-components/dpa-shared-components 20.0.8 → 21.0.0

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 (87) hide show
  1. package/dist/components/UiIcon/UiIcon.vue.d.ts +1 -1
  2. package/dist/components/index.d.ts +1 -1
  3. package/dist/compositions/index.d.ts +1 -1
  4. package/dist/directives/index.d.ts +1 -1
  5. package/dist/dpa-shared-components.js +12350 -12350
  6. package/dist/eslint.base.config.js +49 -1
  7. package/dist/index.d.ts +4 -4
  8. package/dist/src/components/UiAutocomplete/UiAutocomplete.vue +1 -1
  9. package/dist/src/components/UiBadge/UiBadge.stories.ts +2 -1
  10. package/dist/src/components/UiButton/UiButton.stories.ts +2 -1
  11. package/dist/src/components/UiButton/UiButton.vue +1 -1
  12. package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +1 -0
  13. package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +2 -1
  14. package/dist/src/components/UiCheckbox/UiCheckbox.vue +1 -1
  15. package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +1 -0
  16. package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +1 -1
  17. package/dist/src/components/UiColorPicker/UiColorPicker.stories.ts +1 -0
  18. package/dist/src/components/UiColorPicker/UiColorPicker.vue +3 -3
  19. package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +2 -1
  20. package/dist/src/components/UiDialog/UiDialog.vue +1 -1
  21. package/dist/src/components/UiFilterBadge/UiFilterBadge.stories.ts +1 -0
  22. package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.stories.ts +1 -0
  23. package/dist/src/components/UiFilterButton/UiFilterButton.stories.ts +2 -1
  24. package/dist/src/components/UiFilterButton/UiFilterButton.vue +1 -1
  25. package/dist/src/components/UiIcon/IconOverview.stories.vue +1 -1
  26. package/dist/src/components/UiIcon/UiIcon.spec.ts +1 -1
  27. package/dist/src/components/UiIcon/UiIcon.stories.ts +1 -1
  28. package/dist/src/components/UiIcon/UiIcon.vue +1 -1
  29. package/dist/src/components/UiIconButton/UiIconButton.stories.ts +2 -1
  30. package/dist/src/components/UiInfoContent/UiInfoContent.stories.ts +2 -1
  31. package/dist/src/components/UiInput/UiInput.vue +1 -1
  32. package/dist/src/components/UiLabel/UiLabel.vue +1 -1
  33. package/dist/src/components/UiList/UiList.spec.ts +1 -0
  34. package/dist/src/components/UiList/UiList.stories.ts +1 -0
  35. package/dist/src/components/UiListItem/UiListItem.spec.ts +1 -0
  36. package/dist/src/components/UiListItem/UiListItem.stories.ts +2 -1
  37. package/dist/src/components/UiListItem/UiListItem.vue +1 -1
  38. package/dist/src/components/UiMenu/UiMenu.stories.ts +2 -1
  39. package/dist/src/components/UiMenu/UiMenu.vue +2 -2
  40. package/dist/src/components/UiMenu/UiMenuItem.vue +2 -1
  41. package/dist/src/components/UiMenu/UiMenuList.vue +1 -1
  42. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +2 -1
  43. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +1 -0
  44. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.vue +1 -1
  45. package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +1 -1
  46. package/dist/src/components/UiSearchBar/UiSearchBar.stories.ts +1 -0
  47. package/dist/src/components/UiSearchBar/UiSearchBar.vue +1 -1
  48. package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +1 -0
  49. package/dist/src/components/UiSelect/UiSelect.vue +2 -2
  50. package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +1 -0
  51. package/dist/src/components/UiSnackbar/UiSnackbar.stories.ts +2 -1
  52. package/dist/src/components/UiSpinner/UiSpinner.spec.ts +1 -0
  53. package/dist/src/components/UiTextButton/UiTextButton.stories.ts +2 -1
  54. package/dist/src/components/UiToggleButton/UiToggleButton.stories.ts +1 -0
  55. package/dist/src/components/index.ts +1 -1
  56. package/dist/src/compositions/index.ts +1 -1
  57. package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.vue +2 -1
  58. package/dist/src/directives/index.ts +1 -1
  59. package/dist/src/index.ts +4 -4
  60. package/dist/src/utils/cn.spec.ts +12 -0
  61. package/dist/src/utils/index.spec.ts +1 -1
  62. package/dist/src/utils/index.ts +1 -1
  63. package/dist/style.css +1 -1
  64. package/dist/utils/index.d.ts +1 -1
  65. package/package.json +12 -5
  66. package/src/components/UiAutocomplete/UiAutocomplete.vue +1 -1
  67. package/src/components/UiButton/UiButton.vue +1 -1
  68. package/src/components/UiCheckbox/UiCheckbox.vue +1 -1
  69. package/src/components/UiColorPicker/UiColorPicker.vue +3 -3
  70. package/src/components/UiDialog/UiDialog.vue +1 -1
  71. package/src/components/UiFilterButton/UiFilterButton.vue +1 -1
  72. package/src/components/UiIcon/UiIcon.vue +1 -1
  73. package/src/components/UiInput/UiInput.vue +1 -1
  74. package/src/components/UiLabel/UiLabel.vue +1 -1
  75. package/src/components/UiListItem/UiListItem.vue +1 -1
  76. package/src/components/UiMenu/UiMenu.vue +2 -2
  77. package/src/components/UiMenu/UiMenuItem.vue +2 -1
  78. package/src/components/UiMenu/UiMenuList.vue +1 -1
  79. package/src/components/UiOverlayMenu/UiOverlayMenu.vue +1 -1
  80. package/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +1 -1
  81. package/src/components/UiSearchBar/UiSearchBar.vue +1 -1
  82. package/src/components/UiSelect/UiSelect.vue +2 -2
  83. package/src/components/index.ts +0 -92
  84. package/src/compositions/index.ts +0 -1
  85. package/src/directives/index.ts +0 -1
  86. package/src/index.ts +0 -6
  87. package/src/utils/index.ts +0 -1
@@ -1,10 +1,13 @@
1
1
  import js from "@eslint/js";
2
+ import * as tsParser from "@typescript-eslint/parser";
2
3
  import skipFormattingConfig from "@vue/eslint-config-prettier/skip-formatting";
3
4
  import {
4
5
  defineConfigWithVueTs,
5
6
  vueTsConfigs,
6
7
  } from "@vue/eslint-config-typescript";
8
+ import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
7
9
  import eslintPluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
10
+ import { importX } from "eslint-plugin-import-x";
8
11
  import pluginVue from "eslint-plugin-vue";
9
12
  import globals from "globals";
10
13
 
@@ -17,10 +20,14 @@ export default defineConfigWithVueTs(
17
20
  rules: {
18
21
  "@typescript-eslint/no-explicit-any": "off",
19
22
  "@typescript-eslint/ban-ts-comment": "off",
23
+ "no-console": "error",
24
+ /**
25
+ * Standardizing on one component name pattern makes global search more effective
26
+ */
27
+ "vue/component-name-in-template-casing": "error",
20
28
  "vue/define-emits-declaration": ["error", "type-literal"],
21
29
  "vue/multi-word-component-names": "off",
22
30
  "vue/no-v-html": "off",
23
- "no-console": "error",
24
31
  },
25
32
  languageOptions: {
26
33
  globals: {
@@ -43,6 +50,47 @@ export default defineConfigWithVueTs(
43
50
  },
44
51
  },
45
52
 
53
+ importX.flatConfigs.recommended,
54
+ importX.flatConfigs.typescript,
55
+ {
56
+ name: "app/import-linting",
57
+ settings: {
58
+ "import-x/resolver-next": [
59
+ createTypeScriptImportResolver({ alwaysTryTypes: true }),
60
+ ],
61
+ },
62
+ rules: {
63
+ "import-x/extensions": ["error", "ignorePackages", { fix: true }],
64
+ "import-x/order": [
65
+ "error",
66
+ {
67
+ alphabetize: {
68
+ order: "asc",
69
+ caseInsensitive: true,
70
+ },
71
+ named: true,
72
+ "newlines-between": "always",
73
+ groups: [
74
+ "builtin",
75
+ "external",
76
+ "internal",
77
+ "parent",
78
+ "sibling",
79
+ "index",
80
+ ],
81
+ },
82
+ ],
83
+ },
84
+ },
85
+ {
86
+ files: ["**/*.ts"],
87
+ languageOptions: {
88
+ parser: tsParser,
89
+ ecmaVersion: "latest",
90
+ sourceType: "module",
91
+ },
92
+ },
93
+
46
94
  // Turns off formatting-related ESLint rules so that formatting can be delegated to the Prettier CLI. See https://github.com/vuejs/eslint-config-prettier?tab=readme-ov-file#use-separate-commands-for-linting-and-formatting
47
95
  skipFormattingConfig,
48
96
  );
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './components/index.js';
2
- export * from './compositions/index.js';
3
- export * from './directives/index.js';
4
- export * from './utils/index.js';
1
+ export * from './components/index.ts';
2
+ export * from './compositions/index.ts';
3
+ export * from './directives/index.ts';
4
+ export * from './utils/index.ts';
@@ -60,7 +60,7 @@
60
60
  <script setup lang="ts">
61
61
  import { computed, onMounted, ref } from "vue";
62
62
 
63
- import { vClickAway } from "../../directives/vClickAway.js";
63
+ import { vClickAway } from "../../directives/vClickAway.ts";
64
64
  import UiInput from "../UiInput/UiInput.vue";
65
65
  import UiList from "../UiList/UiList.vue";
66
66
  import UiListItem from "../UiListItem/UiListItem.vue";
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
- import { icons } from "../UiIcon/icons.js";
3
+ import { icons } from "../UiIcon/icons.ts";
4
+
4
5
  import UiBadge from "./UiBadge.vue";
5
6
 
6
7
  const meta = {
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
- import { icons } from "../UiIcon/icons.js";
3
+ import { icons } from "../UiIcon/icons.ts";
4
+
4
5
  import UiButton from "./UiButton.vue";
5
6
 
6
7
  const meta = {
@@ -22,7 +22,7 @@
22
22
  import { computed } from "vue";
23
23
  import type { RouteLocationRaw } from "vue-router";
24
24
 
25
- import { cn } from "../../utils/cn.js";
25
+ import { cn } from "../../utils/cn.ts";
26
26
  import UiIcon, { type UiIconName } from "../UiIcon/UiIcon.vue";
27
27
 
28
28
  const emit = defineEmits<{
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { ref } from "vue";
3
3
 
4
4
  import UiButton from "../UiButton/UiButton.vue";
5
+
5
6
  import UiButtonGroup from "./UiButtonGroup.vue";
6
7
 
7
8
  type PropsAndStoryProps = InstanceType<typeof UiButtonGroup> & {
@@ -1,5 +1,6 @@
1
- import { mount } from "@vue/test-utils";
2
1
  import { randomInt } from "crypto";
2
+
3
+ import { mount } from "@vue/test-utils";
3
4
  import { describe, expect, it } from "vitest";
4
5
 
5
6
  import UiCheckBoxGroup, { type CheckboxItem } from "./UiCheckBoxGroup.vue";
@@ -64,7 +64,7 @@
64
64
  import { v4 as uuidv4 } from "uuid";
65
65
  import { computed } from "vue";
66
66
 
67
- import { cn } from "../../utils/cn.js";
67
+ import { cn } from "../../utils/cn.ts";
68
68
  import UiLabel from "../UiLabel/UiLabel.vue";
69
69
 
70
70
  const emit = defineEmits<{
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
3
  import UiFilterBadgeButton from "../UiFilterBadgeButton/UiFilterBadgeButton.vue";
4
+
4
5
  import UiCollapseNavigation from "./UiCollapseNavigation.vue";
5
6
 
6
7
  const meta = {
@@ -1,7 +1,7 @@
1
1
  import { mount } from "@vue/test-utils";
2
2
  import { describe, expect, it } from "vitest";
3
3
 
4
- import { COLORS } from "./lib/colors.js";
4
+ import { COLORS } from "./lib/colors.ts";
5
5
  import UiColorPicker from "./UiColorPicker.vue";
6
6
 
7
7
  describe("UiColorPicker", () => {
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
3
  import UiLabel from "../UiLabel/UiLabel.vue";
4
+
4
5
  import UiColorPicker from "./UiColorPicker.vue";
5
6
 
6
7
  const meta = {
@@ -53,11 +53,11 @@
53
53
 
54
54
  <script setup lang="ts">
55
55
  import Color from "color";
56
- import { computed, ref } from "vue";
57
- import { watch } from "vue";
56
+ import { computed, ref, watch } from "vue";
58
57
 
59
58
  import UiIcon from "../UiIcon/UiIcon.vue";
60
- import { COLORS } from "./lib/colors.js";
59
+
60
+ import { COLORS } from "./lib/colors.ts";
61
61
 
62
62
  const props = withDefaults(
63
63
  defineProps<{
@@ -15,7 +15,8 @@ import {
15
15
  subYears,
16
16
  } from "date-fns";
17
17
 
18
- import { icons } from "../UiIcon/icons.js";
18
+ import { icons } from "../UiIcon/icons.ts";
19
+
19
20
  import UiDatePicker from "./UiDatePicker.vue";
20
21
 
21
22
  const singleDate = "2022-03-07T23:00:00.000Z";
@@ -62,7 +62,7 @@
62
62
  <script setup lang="ts">
63
63
  import { useEventListener } from "@vueuse/core";
64
64
 
65
- import { cn } from "../../utils/cn.js";
65
+ import { cn } from "../../utils/cn.ts";
66
66
  import UiIconButton from "../UiIconButton/UiIconButton.vue";
67
67
  import UiOverlay from "../UiOverlay/UiOverlay.vue";
68
68
 
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
3
  import UiIconButton from "../UiIconButton/UiIconButton.vue";
4
+
4
5
  import UiFilterBadge from "./UiFilterBadge.vue";
5
6
 
6
7
  const meta = {
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { action } from "storybook/actions";
3
3
 
4
4
  import UiIconButton from "../UiIconButton/UiIconButton.vue";
5
+
5
6
  import UiFilterBadgeButton from "./UiFilterBadgeButton.vue";
6
7
 
7
8
  const meta = {
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
- import { icons } from "../UiIcon/icons.js";
3
+ import { icons } from "../UiIcon/icons.ts";
4
+
4
5
  import UiFilterButton from "./UiFilterButton.vue";
5
6
 
6
7
  const meta = {
@@ -66,7 +66,7 @@
66
66
  import type { ClassValue } from "clsx";
67
67
  import { computed } from "vue";
68
68
 
69
- import { cn } from "../../utils/cn.js";
69
+ import { cn } from "../../utils/cn.ts";
70
70
  import UiIcon, { type UiIconName } from "../UiIcon/UiIcon.vue";
71
71
 
72
72
  const emit = defineEmits<{
@@ -11,7 +11,7 @@
11
11
  </div>
12
12
  </template>
13
13
  <script setup lang="ts">
14
- import { icons } from "./icons.js";
14
+ import { icons } from "./icons.ts";
15
15
  import UiIcon from "./UiIcon.vue";
16
16
 
17
17
  const props = withDefaults(
@@ -1,7 +1,7 @@
1
1
  import { type ComponentMountingOptions, mount } from "@vue/test-utils";
2
2
  import { beforeEach, describe, expect, it, vi } from "vitest";
3
3
 
4
- import { icons } from "./icons.js";
4
+ import { icons } from "./icons.ts";
5
5
  import UiIcon from "./UiIcon.vue";
6
6
 
7
7
  function createWrapper(options: ComponentMountingOptions<typeof UiIcon> = {}) {
@@ -1,7 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
3
  import IconOverview from "./IconOverview.stories.vue";
4
- import { icons } from "./icons.js";
4
+ import { icons } from "./icons.ts";
5
5
  import UiIcon from "./UiIcon.vue";
6
6
 
7
7
  const meta = {
@@ -13,7 +13,7 @@ export type UiIconName = keyof typeof icons;
13
13
  <script setup lang="ts">
14
14
  import { computed, defineAsyncComponent, watchEffect } from "vue";
15
15
 
16
- import { icons } from "./icons.js";
16
+ import { icons } from "./icons.ts";
17
17
  import UiIconLoading from "./UiIconLoading.vue";
18
18
 
19
19
  const props = withDefaults(
@@ -1,7 +1,8 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { action } from "storybook/actions";
3
3
 
4
- import { icons } from "../UiIcon/icons.js";
4
+ import { icons } from "../UiIcon/icons.ts";
5
+
5
6
  import UiIconButton from "./UiIconButton.vue";
6
7
 
7
8
  const meta = {
@@ -1,7 +1,8 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
3
  import UiButton from "../UiButton/UiButton.vue";
4
- import { icons } from "../UiIcon/icons.js";
4
+ import { icons } from "../UiIcon/icons.ts";
5
+
5
6
  import UiInfoContent from "./UiInfoContent.vue";
6
7
 
7
8
  const meta = {
@@ -117,7 +117,7 @@
117
117
  import { v4 as uuidv4 } from "uuid";
118
118
  import { computed, onBeforeUpdate, onMounted, ref } from "vue";
119
119
 
120
- import { cn } from "../../utils/cn.js";
120
+ import { cn } from "../../utils/cn.ts";
121
121
  import UiLabel from "../UiLabel/UiLabel.vue";
122
122
 
123
123
  type UiInputStatus = "default" | "info" | "readonly" | "warning" | "error";
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script setup lang="ts">
8
- import { cn } from "../../utils/cn.js";
8
+ import { cn } from "../../utils/cn.ts";
9
9
 
10
10
  defineSlots<{
11
11
  /**
@@ -2,6 +2,7 @@ import { mount } from "@vue/test-utils";
2
2
  import { describe, expect, it } from "vitest";
3
3
 
4
4
  import UiListItem from "../UiListItem/UiListItem.vue";
5
+
5
6
  import UiList from "./UiList.vue";
6
7
 
7
8
  describe("UiList", () => {
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
3
  import UiListItem from "../UiListItem/UiListItem.vue";
4
+
4
5
  import UiList from "./UiList.vue";
5
6
 
6
7
  const meta = {
@@ -2,6 +2,7 @@ import { type ComponentMountingOptions, mount } from "@vue/test-utils";
2
2
  import { describe, expect, it } from "vitest";
3
3
 
4
4
  import UiIcon from "../UiIcon/UiIcon.vue";
5
+
5
6
  import UiListItem from "./UiListItem.vue";
6
7
 
7
8
  function createWrapper(
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
- import { icons } from "../UiIcon/icons.js";
3
+ import { icons } from "../UiIcon/icons.ts";
4
+
4
5
  import UiListItem from "./UiListItem.vue";
5
6
 
6
7
  const meta = {
@@ -55,7 +55,7 @@
55
55
  <script setup lang="ts">
56
56
  import { computed } from "vue";
57
57
 
58
- import { cn } from "../../utils/cn.js";
58
+ import { cn } from "../../utils/cn.ts";
59
59
  import UiCheckbox from "../UiCheckbox/UiCheckbox.vue";
60
60
  import UiIcon, { type UiIconName } from "../UiIcon/UiIcon.vue";
61
61
 
@@ -2,7 +2,8 @@ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { action } from "storybook/actions";
3
3
  import { computed, ref } from "vue";
4
4
 
5
- import { icons } from "../UiIcon/icons.js";
5
+ import { icons } from "../UiIcon/icons.ts";
6
+
6
7
  import UiMenu, {
7
8
  type UiMenuGroupedOption,
8
9
  type UiMenuOptionType,
@@ -172,8 +172,8 @@ import {
172
172
  } from "@floating-ui/vue";
173
173
  import { computed, type HTMLAttributes, ref, watchPostEffect } from "vue";
174
174
 
175
- import { vClickAway } from "../../directives/vClickAway.js";
176
- import { cn } from "../../utils/cn.js";
175
+ import { vClickAway } from "../../directives/vClickAway.ts";
176
+ import { cn } from "../../utils/cn.ts";
177
177
  import UiButton from "../UiButton/UiButton.vue";
178
178
  import UiFilterButton from "../UiFilterButton/UiFilterButton.vue";
179
179
  import type { UiIconName } from "../UiIcon/UiIcon.vue";
@@ -24,8 +24,9 @@
24
24
  <script setup lang="ts" generic="Value">
25
25
  import type { HTMLAttributes } from "vue";
26
26
 
27
- import { cn } from "../../utils/cn.js";
27
+ import { cn } from "../../utils/cn.ts";
28
28
  import UiListItem from "../UiListItem/UiListItem.vue";
29
+
29
30
  import type { UiMenuOptionType } from "./UiMenu.vue";
30
31
 
31
32
  const props = withDefaults(
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script lang="ts" setup>
8
- import { cn } from "../../utils/cn.js";
8
+ import { cn } from "../../utils/cn.ts";
9
9
 
10
10
  withDefaults(
11
11
  defineProps<{
@@ -1,8 +1,9 @@
1
1
  import { mount } from "@vue/test-utils";
2
2
  import { describe, expect, it } from "vitest";
3
3
 
4
- import { vClickAway } from "../../directives/vClickAway.js";
4
+ import { vClickAway } from "../../directives/vClickAway.ts";
5
5
  import UiButton from "../UiButton/UiButton.vue";
6
+
6
7
  import UiOverlayMenu from "./UiOverlayMenu.vue";
7
8
 
8
9
  document.body.innerHTML = `
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
3
  import UiList from "../UiList/UiList.vue";
4
4
  import UiListItem from "../UiListItem/UiListItem.vue";
5
+
5
6
  import UiOverlayMenu from "./UiOverlayMenu.vue";
6
7
 
7
8
  const meta = {
@@ -23,7 +23,7 @@ export default {
23
23
  <script setup lang="ts">
24
24
  import { onMounted } from "vue";
25
25
 
26
- import { vClickAway } from "../../directives/vClickAway.js";
26
+ import { vClickAway } from "../../directives/vClickAway.ts";
27
27
 
28
28
  withDefaults(
29
29
  defineProps<{
@@ -42,7 +42,7 @@ export default {
42
42
  <script setup lang="ts" generic="T extends string | number">
43
43
  import { computed, onMounted } from "vue";
44
44
 
45
- import { cn } from "../../utils/cn.js";
45
+ import { cn } from "../../utils/cn.ts";
46
46
  import UiLabel from "../UiLabel/UiLabel.vue";
47
47
 
48
48
  export interface UiRadioInputGroupOption<T> {
@@ -4,6 +4,7 @@ import UiButton from "../UiButton/UiButton.vue";
4
4
  import UiChip from "../UiChip/UiChip.vue";
5
5
  import UiIcon from "../UiIcon/UiIcon.vue";
6
6
  import UiIconButton from "../UiIconButton/UiIconButton.vue";
7
+
7
8
  import UiSearchBar from "./UiSearchBar.vue";
8
9
 
9
10
  type PropsAndStoryProps = InstanceType<typeof UiSearchBar> & {
@@ -118,7 +118,7 @@
118
118
  import type { ClassValue } from "clsx";
119
119
  import { computed, ref } from "vue";
120
120
 
121
- import { cn } from "../../utils/cn.js";
121
+ import { cn } from "../../utils/cn.ts";
122
122
  import UiIconButton from "../UiIconButton/UiIconButton.vue";
123
123
 
124
124
  const emit = defineEmits<{
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
3
  import UiSection from "../UiSection/UiSection.vue";
4
+
4
5
  import UiSectionDivider from "./UiSectionDivider.vue";
5
6
 
6
7
  const meta = {
@@ -86,7 +86,7 @@
86
86
  px-4
87
87
  py-1
88
88
  text-xs/normal
89
-
89
+
90
90
  font-medium
91
91
  text-white
92
92
  transition-all
@@ -106,7 +106,7 @@
106
106
  <script setup lang="ts">
107
107
  import { v4 as uuidv4 } from "uuid";
108
108
 
109
- import { cn } from "../../utils/cn.js";
109
+ import { cn } from "../../utils/cn.ts";
110
110
  import UiIcon from "../UiIcon/UiIcon.vue";
111
111
  import UiLabel from "../UiLabel/UiLabel.vue";
112
112
 
@@ -2,6 +2,7 @@ import { mount } from "@vue/test-utils";
2
2
  import { describe, expect, it } from "vitest";
3
3
 
4
4
  import UiIcon from "../UiIcon/UiIcon.vue";
5
+
5
6
  import UiSnackbar from "./UiSnackbar.vue";
6
7
 
7
8
  describe("UiSnackbar", () => {
@@ -2,7 +2,8 @@ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { action } from "storybook/actions";
3
3
  import { ref } from "vue";
4
4
 
5
- import { icons } from "../UiIcon/icons.js";
5
+ import { icons } from "../UiIcon/icons.ts";
6
+
6
7
  import UiSnackbar from "./UiSnackbar.vue";
7
8
 
8
9
  const meta = {
@@ -2,6 +2,7 @@ import { mount } from "@vue/test-utils";
2
2
  import { describe, expect, it } from "vitest";
3
3
 
4
4
  import UiIcon from "../UiIcon/UiIcon.vue";
5
+
5
6
  import UiSpinner from "./UiSpinner.vue";
6
7
 
7
8
  describe("UiSpinner", () => {
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
- import { icons } from "../UiIcon/icons.js";
3
+ import { icons } from "../UiIcon/icons.ts";
4
+
4
5
  import UiTextButton from "./UiTextButton.vue";
5
6
 
6
7
  const meta = {
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { ref } from "vue";
3
3
 
4
4
  import UiIcon from "../UiIcon/UiIcon.vue";
5
+
5
6
  import UiToggleButton from "./UiToggleButton.vue";
6
7
 
7
8
  const meta = {
@@ -8,6 +8,7 @@ import UiCheckbox from "./UiCheckbox/UiCheckbox.vue";
8
8
  import UiCheckBoxGroup from "./UiCheckBoxGroup/UiCheckBoxGroup.vue";
9
9
  import UiChip from "./UiChip/UiChip.vue";
10
10
  import UiCollapseNavigation from "./UiCollapseNavigation/UiCollapseNavigation.vue";
11
+ import UiColorPicker from "./UiColorPicker/UiColorPicker.vue";
11
12
  import UiDatePicker from "./UiDatePicker/UiDatePicker.vue";
12
13
  import UiDialog from "./UiDialog/UiDialog.vue";
13
14
  import UiFilterBadge from "./UiFilterBadge/UiFilterBadge.vue";
@@ -33,7 +34,6 @@ import UiOverlay from "./UiOverlay/UiOverlay.vue";
33
34
  import UiOverlayMenu from "./UiOverlayMenu/UiOverlayMenu.vue";
34
35
  import UiRadioInputGroup from "./UiRadioInputGroup/UiRadioInputGroup.vue";
35
36
  export type { UiRadioInputGroupOption } from "./UiRadioInputGroup/UiRadioInputGroup.vue";
36
- import UiColorPicker from "./UiColorPicker/UiColorPicker.vue";
37
37
  import UiSearchBar from "./UiSearchBar/UiSearchBar.vue";
38
38
  import UiSearchInput from "./UiSearchInput/UiSearchInput.vue";
39
39
  import UiSection from "./UiSection/UiSection.vue";
@@ -1 +1 @@
1
- export { useBreakpoints } from "./useBreakpoints/useBreakpoints.js";
1
+ export { useBreakpoints } from "./useBreakpoints/useBreakpoints.ts";
@@ -6,7 +6,8 @@
6
6
  <script setup lang="ts">
7
7
  import UiButton from "../../components/UiButton/UiButton.vue";
8
8
  import UiIconButton from "../../components/UiIconButton/UiIconButton.vue";
9
- import { useBreakpoints } from "./useBreakpoints.js";
9
+
10
+ import { useBreakpoints } from "./useBreakpoints.ts";
10
11
 
11
12
  const { lg } = useBreakpoints();
12
13
  </script>
@@ -1 +1 @@
1
- export { vClickAway } from "./vClickAway.js";
1
+ export { vClickAway } from "./vClickAway.ts";
package/dist/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./tailwindPreset.css";
2
2
 
3
- export * from "./components/index.js";
4
- export * from "./compositions/index.js";
5
- export * from "./directives/index.js";
6
- export * from "./utils/index.js";
3
+ export * from "./components/index.ts";
4
+ export * from "./compositions/index.ts";
5
+ export * from "./directives/index.ts";
6
+ export * from "./utils/index.ts";