@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
@@ -14,7 +14,7 @@ import { onMounted } from "vue";
14
14
  * Please replace with your own component
15
15
  */
16
16
  export default {
17
- name: "UiMenuList",
17
+ name: "UiButtonGroup",
18
18
  setup() {
19
19
  onMounted(() => {
20
20
  if (window.location.origin.includes("local")) {
@@ -152,10 +152,7 @@ export interface PresetRange {
152
152
  name?: string;
153
153
  }
154
154
  export type DateType =
155
- | Date
156
- | [Date, Date]
157
- | string
158
- | { month: number; year: number };
155
+ Date | [Date, Date] | string | { month: number; year: number };
159
156
 
160
157
  const datePicker =
161
158
  useTemplateRef<InstanceType<typeof VueDatePicker>>("datePicker");
@@ -13,9 +13,12 @@
13
13
  >
14
14
  <header
15
15
  v-if="$slots.header || hasCloseButton"
16
- class="flex flex-wrap items-center justify-between gap-4 rounded-t-2xl bg-neutral-whisper px-4 py-2"
16
+ class="flex flex-wrap items-center justify-between gap-4 rounded-t-2xl bg-neutral-whisper py-2 pr-2 pl-4"
17
17
  >
18
- <div v-if="$slots.header" class="text-lg font-semibold">
18
+ <div
19
+ v-if="$slots.header"
20
+ class="text-lg font-medium text-neutral-primary"
21
+ >
19
22
  <slot name="header" v-bind="{ close, requestClose }" />
20
23
  </div>
21
24
 
@@ -31,13 +34,13 @@
31
34
  </UiButton>
32
35
  </header>
33
36
 
34
- <div v-if="$slots.default" class="space-y-2 px-4 py-3">
37
+ <div v-if="$slots.default" class="space-y-2 p-6">
35
38
  <slot />
36
39
  </div>
37
40
 
38
41
  <footer
39
42
  v-if="$slots.footer"
40
- class="flex flex-wrap items-center justify-between gap-2 px-4 py-3"
43
+ class="flex flex-wrap items-center justify-between gap-2 px-4 pt-2 pb-4"
41
44
  >
42
45
  <slot name="footer" v-bind="{ close, requestClose }" />
43
46
  </footer>
@@ -97,8 +97,7 @@ const buttonSizeClass = computed(() => {
97
97
 
98
98
  const iconSize = computed(() => {
99
99
  return sizeVariants[props.size as keyof typeof sizeVariants].iconSize as
100
- | "lg"
101
- | "sm";
100
+ "lg" | "sm";
102
101
  });
103
102
 
104
103
  onMounted(() => {
@@ -19,18 +19,19 @@
19
19
 
20
20
  ### Props
21
21
 
22
- | Name | Type | Default | Description |
23
- |-------------------|-----------------------------|------------|----------------------------------------------------------|
24
- | `value` | `string` | `""` | Sets the value which gets emitted with the click event |
25
- | `checkBoxMenu` | `Boolean` | `false` | Displays checkbox on the beginning of list item |
26
- | `isChecked` | `Boolean` | `false` | Checked attribute of checkbox, if displayed |
27
- | `selectable` | `Boolean` | `false` | Makes the list item selectable |
28
- | `selected` | `Boolean` | `false` | Displays checkmark at the end of the list item |
29
- | `overrideClasses` | `String` | `false` | Adds classes to the inner of the list item |
30
- | `iconName` | `UiIconName` | | Icon to be displayed at the beginning of the list item |
31
- | `imageSrc` | `String` | `""` | Image to be displayed at the beginning of the list item. |
32
- | `imageShape` | `"rounded" &#124; "square"` | `"square"` | Shape pf the image to be displayed. |
33
- | `checkboxColor` | `"blue" &#124; "gray"` | `"blue"` | Checkbox color style. |
22
+ | Name | Type | Default | Description |
23
+ |-------------------|-----------------------------|------------|---------------------------------------------------------------------|
24
+ | `value` | `string` | `""` | Sets the value which gets emitted with the click event |
25
+ | `checkBoxMenu` | `Boolean` | `false` | Displays checkbox on the beginning of list item |
26
+ | `isChecked` | `Boolean` | `false` | Checked attribute of checkbox, if displayed |
27
+ | `selectable` | `Boolean` | `false` | Makes the list item selectable |
28
+ | `selected` | `Boolean` | `false` | Displays checkmark at the end of the list item |
29
+ | `overrideClasses` | `String` | `false` | Adds classes to the inner of the list item |
30
+ | `iconName` | `UiIconName` | | Icon to be displayed at the beginning of the list item |
31
+ | `iconSize` | `sm` `md` `lg` | | Size of the checkmark icon when selected and selectable is set true |
32
+ | `imageSrc` | `String` | `""` | Image to be displayed at the beginning of the list item. |
33
+ | `imageShape` | `"rounded" &#124; "square"` | `"square"` | Shape pf the image to be displayed. |
34
+ | `checkboxColor` | `"blue" &#124; "gray"` | `"blue"` | Checkbox color style. |
34
35
 
35
36
  ### Events
36
37
 
@@ -1,36 +1,10 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
 
3
- import { icons } from "../UiIcon/icons.ts";
4
-
5
3
  import UiListItem from "./UiListItem.vue";
6
4
 
7
5
  const meta = {
8
6
  title: "Ui/UiListItem",
9
7
  component: UiListItem,
10
- argTypes: {
11
- iconName: {
12
- control: "select",
13
- options: Object.keys(icons),
14
- },
15
- iconSize: {
16
- control: "select",
17
- options: ["small", "medium", "large"],
18
- },
19
- imageSrc: {
20
- control: "text",
21
- },
22
- imageShape: {
23
- control: "select",
24
- options: ["rounded", "square"],
25
- },
26
- value: { control: false },
27
- checkBoxMenu: { control: "boolean" },
28
- isChecked: { control: "boolean" },
29
- selected: { control: "boolean" },
30
- selectable: { control: "boolean" },
31
- disabled: { control: "boolean" },
32
- overrideClasses: { control: "text" },
33
- },
34
8
  args: {
35
9
  iconName: undefined,
36
10
  iconSize: "md",
@@ -2,7 +2,7 @@
2
2
  <li
3
3
  :class="
4
4
  cn(
5
- 'flex cursor-pointer list-none items-center gap-2 px-4 py-1.5 text-sm/normal text-neutral-emphasis select-none hover:text-primary focus:outline-hidden focus-visible:focus-outline focus-visible:-outline-offset-2',
5
+ 'flex cursor-pointer list-none items-center gap-2 p-2 text-sm/4 text-neutral-primary select-none hover:bg-neutral-whisper hover:text-primary focus:bg-neutral-faint focus:outline-hidden focus-visible:focus-outline focus-visible:-outline-offset-2',
6
6
  {
7
7
  'cursor-default text-neutral-medium': disabled,
8
8
  'is-selected': selected,
@@ -335,7 +335,6 @@ export const GroupedOptions: Story = {
335
335
  v-bind="args"
336
336
  v-model:query="args.query"
337
337
  :grouped-options="filteredOptions"
338
- has-search
339
338
  @option-selected="(option)=> { onSelect(option); optionSelected(option); }"
340
339
  @update:query="(value) => { onUpdateQuery(value); updateQuery(value); }"
341
340
  />
@@ -30,7 +30,7 @@
30
30
  >
31
31
  <div
32
32
  v-if="hasSearch"
33
- class="flex items-center gap-2 rounded-t-lg px-4 pt-2.5 pb-1.5 text-neutral-primary [&:has(>input:focus-visible)]:focus-outline [&:has(>input:focus-visible)]:-outline-offset-2"
33
+ class="flex items-center gap-2 rounded-t-lg p-2 text-neutral-primary [&:has(>input:focus-visible)]:focus-outline [&:has(>input:focus-visible)]:-outline-offset-2"
34
34
  >
35
35
  <UiIcon
36
36
  class="shrink-0 text-neutral-emphasis"
@@ -42,7 +42,7 @@
42
42
  v-model="queryModel"
43
43
  type="text"
44
44
  spellcheck="false"
45
- class="w-full text-sm focus:outline-hidden"
45
+ class="w-full text-sm/4 focus:outline-hidden"
46
46
  :placeholder="searchPlaceholder"
47
47
  data-testid="menu-search-input"
48
48
  />
@@ -70,7 +70,7 @@
70
70
  <template v-if="group.options.length > 0">
71
71
  <li
72
72
  v-if="group.groupLabel"
73
- class="flex h-6 items-center bg-neutral-faint px-4 text-xs font-semibold tracking-wider text-neutral-subtle uppercase"
73
+ class="flex h-6 items-center bg-neutral-faint px-2 text-xs font-semibold tracking-wider text-neutral-subtle uppercase"
74
74
  >
75
75
  {{ group.groupLabel }}
76
76
  </li>
@@ -87,7 +87,6 @@
87
87
  :image-src="option.imageSrc"
88
88
  :icon-name="option.iconName"
89
89
  :checkbox-appearance="checkboxAppearance"
90
- class="hover:bg-neutral-whisper focus:bg-neutral-faint"
91
90
  :class="{
92
91
  'border-t': option.hasDividerAbove,
93
92
  }"
@@ -1,12 +1,8 @@
1
- import DpaMediaItem from "./DpaMediaItem/DpaMediaItem.vue";
2
1
  import UiBadge from "./UiBadge/UiBadge.vue";
3
2
  import UiButton from "./UiButton/UiButton.vue";
4
3
  import UiButtonGroup from "./UiButtonGroup/UiButtonGroup.vue";
5
- import UiCard from "./UiCard/UiCard.vue";
6
4
  import UiCheckbox from "./UiCheckbox/UiCheckbox.vue";
7
- import UiCheckBoxGroup from "./UiCheckBoxGroup/UiCheckBoxGroup.vue";
8
5
  import UiChip from "./UiChip/UiChip.vue";
9
- import UiCollapseNavigation from "./UiCollapseNavigation/UiCollapseNavigation.vue";
10
6
  import UiColorPicker from "./UiColorPicker/UiColorPicker.vue";
11
7
  import UiDatePicker from "./UiDatePicker/UiDatePicker.vue";
12
8
  import UiDialog from "./UiDialog/UiDialog.vue";
@@ -30,16 +26,12 @@ export type {
30
26
  } from "./UiMenu/UiMenu.vue";
31
27
  import UiMenuItem from "./UiMenu/UiMenuItem.vue";
32
28
  import UiMenuList from "./UiMenu/UiMenuList.vue";
33
- import UiOverlay from "./UiOverlay/UiOverlay.vue";
34
- import UiOverlayMenu from "./UiOverlayMenu/UiOverlayMenu.vue";
35
29
  import UiPopover from "./UiPopover/UiPopover.vue";
36
30
  import UiRadioButton from "./UiRadioButton/UiRadioButton.vue";
37
31
  import UiRadioInputGroup from "./UiRadioInputGroup/UiRadioInputGroup.vue";
38
32
  export type { UiRadioInputGroupOption } from "./UiRadioInputGroup/UiRadioInputGroup.vue";
39
33
  import UiSearchBar from "./UiSearchBar/UiSearchBar.vue";
40
34
  import UiSearchInput from "./UiSearchInput/UiSearchInput.vue";
41
- import UiSection from "./UiSection/UiSection.vue";
42
- import UiSectionDivider from "./UiSectionDivider/UiSectionDivider.vue";
43
35
  import UiSelect from "./UiSelect/UiSelect.vue";
44
36
  import UiSkeletonBox from "./UiSkeletonBox/UiSkeletonBox.vue";
45
37
  import UiSnackbar from "./UiSnackbar/UiSnackbar.vue";
@@ -49,15 +41,11 @@ import UiToggleButton from "./UiToggleButton/UiToggleButton.vue";
49
41
  import UiTooltip from "./UiTooltip/UiTooltip.vue";
50
42
 
51
43
  export {
52
- DpaMediaItem,
53
44
  UiBadge,
54
45
  UiButton,
55
46
  UiButtonGroup,
56
- UiCard,
57
47
  UiCheckbox,
58
- UiCheckBoxGroup,
59
48
  UiChip,
60
- UiCollapseNavigation,
61
49
  UiColorPicker,
62
50
  UiDatePicker,
63
51
  UiDialog,
@@ -74,15 +62,11 @@ export {
74
62
  UiMenu,
75
63
  UiMenuItem,
76
64
  UiMenuList,
77
- UiOverlay,
78
- UiOverlayMenu,
79
65
  UiPopover,
80
66
  UiRadioButton,
81
67
  UiRadioInputGroup,
82
68
  UiSearchBar,
83
69
  UiSearchInput,
84
- UiSection,
85
- UiSectionDivider,
86
70
  UiSelect,
87
71
  UiSkeletonBox,
88
72
  UiSnackbar,