@dpa-id-components/dpa-shared-components 22.0.0-next.13 → 22.0.0-next.14

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 (82) hide show
  1. package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +1 -1
  2. package/dist/components/UiFilterButton/UiFilterButton.vue.d.ts +1 -1
  3. package/dist/components/UiInput/UiInput.vue.d.ts +1 -1
  4. package/dist/components/UiMenu/UiMenu.vue.d.ts +2 -2
  5. package/dist/components/UiMenu/UiMenuItem.vue.d.ts +1 -1
  6. package/dist/components/index.d.ts +1 -9
  7. package/dist/dpa-shared-components.js +1955 -2222
  8. package/dist/src/components/UiButtonGroup/UiButtonGroup.vue +1 -1
  9. package/dist/src/components/UiDatePicker/UiDatePicker.vue +1 -4
  10. package/dist/src/components/UiDialog/UiDialog.vue +7 -4
  11. package/dist/src/components/UiIconButton/UiIconButton.vue +1 -2
  12. package/dist/src/components/UiListItem/README.md +13 -12
  13. package/dist/src/components/UiListItem/UiListItem.stories.ts +0 -26
  14. package/dist/src/components/UiListItem/UiListItem.vue +1 -1
  15. package/dist/src/components/UiMenu/UiMenu.stories.ts +0 -1
  16. package/dist/src/components/UiMenu/UiMenu.vue +3 -4
  17. package/dist/src/components/index.ts +0 -16
  18. package/dist/style.css +2 -2
  19. package/package.json +11 -11
  20. package/src/components/UiButtonGroup/UiButtonGroup.vue +1 -1
  21. package/src/components/UiDatePicker/UiDatePicker.vue +1 -4
  22. package/src/components/UiDialog/UiDialog.vue +7 -4
  23. package/src/components/UiIconButton/UiIconButton.vue +1 -2
  24. package/src/components/UiListItem/README.md +13 -12
  25. package/src/components/UiListItem/UiListItem.vue +1 -1
  26. package/src/components/UiMenu/UiMenu.vue +3 -4
  27. package/dist/components/DpaMediaItem/DpaMediaItem.vue.d.ts +0 -43
  28. package/dist/components/UiCard/UiCard.vue.d.ts +0 -7
  29. package/dist/components/UiCheckBoxGroup/UiCheckBoxGroup.vue.d.ts +0 -33
  30. package/dist/components/UiCollapseNavigation/UiCollapseNavigation.vue.d.ts +0 -28
  31. package/dist/components/UiOverlay/UiOverlay.vue.d.ts +0 -18
  32. package/dist/components/UiOverlayMenu/UiOverlayMenu.vue.d.ts +0 -24
  33. package/dist/components/UiSection/UiSection.vue.d.ts +0 -29
  34. package/dist/components/UiSectionDivider/UiSectionDivider.vue.d.ts +0 -16
  35. package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +0 -123
  36. package/dist/src/components/DpaMediaItem/DpaMediaItem.stories.ts +0 -140
  37. package/dist/src/components/DpaMediaItem/DpaMediaItem.vue +0 -146
  38. package/dist/src/components/DpaMediaItem/README.md +0 -42
  39. package/dist/src/components/UiCard/README.md +0 -32
  40. package/dist/src/components/UiCard/UiCard.spec.ts +0 -16
  41. package/dist/src/components/UiCard/UiCard.stories.ts +0 -30
  42. package/dist/src/components/UiCard/UiCard.vue +0 -28
  43. package/dist/src/components/UiCheckBoxGroup/README.md +0 -35
  44. package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +0 -70
  45. package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +0 -59
  46. package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +0 -106
  47. package/dist/src/components/UiCollapseNavigation/README.md +0 -37
  48. package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +0 -21
  49. package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +0 -67
  50. package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +0 -79
  51. package/dist/src/components/UiOverlay/README.md +0 -38
  52. package/dist/src/components/UiOverlay/UiOverlay.spec.ts +0 -16
  53. package/dist/src/components/UiOverlay/UiOverlay.stories.ts +0 -22
  54. package/dist/src/components/UiOverlay/UiOverlay.vue +0 -36
  55. package/dist/src/components/UiOverlayMenu/README.md +0 -40
  56. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +0 -33
  57. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +0 -40
  58. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.vue +0 -51
  59. package/dist/src/components/UiSection/README.md +0 -33
  60. package/dist/src/components/UiSection/UiSection.spec.ts +0 -49
  61. package/dist/src/components/UiSection/UiSection.stories.ts +0 -61
  62. package/dist/src/components/UiSection/UiSection.vue +0 -63
  63. package/dist/src/components/UiSectionDivider/README.md +0 -29
  64. package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +0 -19
  65. package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +0 -49
  66. package/dist/src/components/UiSectionDivider/UiSectionDivider.vue +0 -44
  67. package/src/components/DpaMediaItem/DpaMediaItem.vue +0 -146
  68. package/src/components/DpaMediaItem/README.md +0 -42
  69. package/src/components/UiCard/README.md +0 -32
  70. package/src/components/UiCard/UiCard.vue +0 -28
  71. package/src/components/UiCheckBoxGroup/README.md +0 -35
  72. package/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +0 -106
  73. package/src/components/UiCollapseNavigation/README.md +0 -37
  74. package/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +0 -79
  75. package/src/components/UiOverlay/README.md +0 -38
  76. package/src/components/UiOverlay/UiOverlay.vue +0 -36
  77. package/src/components/UiOverlayMenu/README.md +0 -40
  78. package/src/components/UiOverlayMenu/UiOverlayMenu.vue +0 -51
  79. package/src/components/UiSection/README.md +0 -33
  80. package/src/components/UiSection/UiSection.vue +0 -63
  81. package/src/components/UiSectionDivider/README.md +0 -29
  82. package/src/components/UiSectionDivider/UiSectionDivider.vue +0 -44
@@ -1,33 +0,0 @@
1
- # @deprecated
2
- Component will be removed in a future update
3
- # @dpa-shared-components/UiSection
4
-
5
- ## Usage
6
-
7
- ```html
8
- <!-- SomeComponent.vue using UiSection -->
9
- <template>
10
- <UiSection size="small" vertical-padding="small" border-top border-bottom>Section Content</UiSection>
11
- </template>
12
-
13
- <script>
14
- import {UiSection} from "@dpa-id-components/dpa-shared-components";
15
- </script>
16
- ```
17
-
18
- ## API
19
-
20
- ### Props
21
-
22
- | Name | Type | Default | Description |
23
- |-------------------|----------------------------------------|-----------|-----------------------------------------------|
24
- | `size` | `"wide" &#124; "small"` | `"wide"` | Determines the spread of the section content. |
25
- | `verticalPadding` | `"small" &#124; "large" &#124; "none"` | `"large"` | Determines the padding of the section. |
26
- | `borderTop` | `Boolean` | `false` | Displays a top border on the section. |
27
- | `BorderBottom` | `Boolean` | `false` | Displays a bottom border on the section. |
28
-
29
- ### Slots
30
-
31
- | Name | Description |
32
- |-----------|----------------------------------------------|
33
- | `default` | slot for the rendering the section's content |
@@ -1,63 +0,0 @@
1
- <template>
2
- <section :class="borderClass" class="w-full border-neutral-pale bg-neutral">
3
- <div
4
- :class="[sizeClasses[size], paddingClasses[verticalPadding]]"
5
- data-testid="inner"
6
- >
7
- <slot></slot>
8
- </div>
9
- </section>
10
- </template>
11
- <script lang="ts">
12
- /**
13
- * @deprecated
14
- * Please replace with your own component
15
- */
16
- export default {
17
- name: "UiSection",
18
- };
19
- </script>
20
- <script setup lang="ts">
21
- import { computed, onMounted } from "vue";
22
-
23
- const props = withDefaults(
24
- defineProps<{
25
- size?: "wide" | "small";
26
- verticalPadding?: "small" | "large" | "none";
27
- borderTop?: boolean;
28
- borderBottom?: boolean;
29
- }>(),
30
- {
31
- size: "wide",
32
- verticalPadding: "large",
33
- borderTop: false,
34
- borderBottom: false,
35
- },
36
- );
37
-
38
- const sizeClasses: Record<string, string> = {
39
- wide: "w-full md:px-28 text-neutral-primary lg:flex",
40
- small: "w-full lg:mx-auto lg:w-2/3",
41
- };
42
-
43
- const paddingClasses: Record<string, string> = {
44
- small: "lg:py-12 pt-8 pb-12",
45
- large: "py-24",
46
- none: "py-0",
47
- };
48
-
49
- const borderClass = computed(() => {
50
- const borderTopClass = props.borderTop ? "border-t" : "";
51
- const borderBottomClass = props.borderBottom ? "border-b" : "";
52
- return `${borderTopClass} ${borderBottomClass}`;
53
- });
54
-
55
- onMounted(() => {
56
- if (window.location.origin.includes("local")) {
57
- // eslint-disable-next-line no-console
58
- console.warn(
59
- "Component is deprecated. It will be removed in a future update.",
60
- );
61
- }
62
- });
63
- </script>
@@ -1,29 +0,0 @@
1
- # @deprecated
2
- Component will be removed in a future update
3
- # @dpa-shared-components/UiSectionDivider
4
-
5
- ## Usage
6
-
7
- ```html
8
- <!-- SomeComponent.vue using UiSectionDivider -->
9
- <template>
10
- <UiSectionDivider></UiSectionDivider>
11
- </template>
12
-
13
- <script>
14
- import {UiSectionDivider} from "@dpa-id-components/dpa-shared-components";
15
- </script>
16
- ```
17
-
18
- ## API
19
-
20
- ### Props
21
-
22
- | Name | Type | Default | Description |
23
- |-----------------|--------------------------|-----------|------------------------|
24
- | `size` | `"large" &#124; "small"` | `"large"` | Determines the height. |
25
- | `customClasses` | `String` | `""` | Custom class string. |
26
-
27
- ### Slots
28
-
29
- This component has no slot
@@ -1,44 +0,0 @@
1
- <template>
2
- <div :class="[sizeClass, customClasses]" class="bg-neutral-whisper" />
3
- </template>
4
- <script lang="ts">
5
- /**
6
- * @deprecated
7
- * Please replace with your own component
8
- */
9
- export default {
10
- name: "UiSectionDivider",
11
- };
12
- </script>
13
- <script lang="ts" setup>
14
- import { computed, onMounted } from "vue";
15
-
16
- const props = withDefaults(
17
- defineProps<{
18
- size?: "small" | "large";
19
- customClasses?: string[] | string;
20
- }>(),
21
- {
22
- customClasses: "",
23
- size: "large",
24
- },
25
- );
26
-
27
- const sizeClasses: Record<string, string> = {
28
- small: "h-px",
29
- large: "h-4",
30
- };
31
-
32
- const sizeClass = computed(() => {
33
- return sizeClasses[props.size];
34
- });
35
-
36
- onMounted(() => {
37
- if (window.location.origin.includes("local")) {
38
- // eslint-disable-next-line no-console
39
- console.warn(
40
- "Component is deprecated. It will be removed in a future update.",
41
- );
42
- }
43
- });
44
- </script>