@dpa-id-components/dpa-shared-components 22.0.0-next.12 → 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 (89) hide show
  1. package/dist/assets/icons/bot.vue.d.ts +3 -0
  2. package/dist/bot-C103nFwL.js +19 -0
  3. package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +1 -1
  4. package/dist/components/UiFilterButton/UiFilterButton.vue.d.ts +1 -1
  5. package/dist/components/UiIcon/icons.d.ts +1 -0
  6. package/dist/components/UiInput/UiInput.vue.d.ts +1 -1
  7. package/dist/components/UiMenu/UiMenu.vue.d.ts +2 -2
  8. package/dist/components/UiMenu/UiMenuItem.vue.d.ts +1 -1
  9. package/dist/components/index.d.ts +1 -9
  10. package/dist/dpa-shared-components.js +1956 -2222
  11. package/dist/src/assets/icons/bot.vue +14 -0
  12. package/dist/src/components/UiButtonGroup/UiButtonGroup.vue +1 -1
  13. package/dist/src/components/UiDatePicker/UiDatePicker.vue +1 -4
  14. package/dist/src/components/UiDialog/UiDialog.vue +7 -4
  15. package/dist/src/components/UiIcon/icons.ts +1 -0
  16. package/dist/src/components/UiIconButton/UiIconButton.vue +1 -2
  17. package/dist/src/components/UiListItem/README.md +13 -12
  18. package/dist/src/components/UiListItem/UiListItem.stories.ts +0 -26
  19. package/dist/src/components/UiListItem/UiListItem.vue +1 -1
  20. package/dist/src/components/UiMenu/UiMenu.stories.ts +0 -1
  21. package/dist/src/components/UiMenu/UiMenu.vue +3 -4
  22. package/dist/src/components/index.ts +0 -16
  23. package/dist/style.css +2 -2
  24. package/package.json +11 -11
  25. package/src/assets/icons/bot.vue +14 -0
  26. package/src/components/UiButtonGroup/UiButtonGroup.vue +1 -1
  27. package/src/components/UiDatePicker/UiDatePicker.vue +1 -4
  28. package/src/components/UiDialog/UiDialog.vue +7 -4
  29. package/src/components/UiIcon/icons.ts +1 -0
  30. package/src/components/UiIconButton/UiIconButton.vue +1 -2
  31. package/src/components/UiListItem/README.md +13 -12
  32. package/src/components/UiListItem/UiListItem.vue +1 -1
  33. package/src/components/UiMenu/UiMenu.vue +3 -4
  34. package/dist/components/DpaMediaItem/DpaMediaItem.vue.d.ts +0 -43
  35. package/dist/components/UiCard/UiCard.vue.d.ts +0 -7
  36. package/dist/components/UiCheckBoxGroup/UiCheckBoxGroup.vue.d.ts +0 -33
  37. package/dist/components/UiCollapseNavigation/UiCollapseNavigation.vue.d.ts +0 -28
  38. package/dist/components/UiOverlay/UiOverlay.vue.d.ts +0 -18
  39. package/dist/components/UiOverlayMenu/UiOverlayMenu.vue.d.ts +0 -24
  40. package/dist/components/UiSection/UiSection.vue.d.ts +0 -29
  41. package/dist/components/UiSectionDivider/UiSectionDivider.vue.d.ts +0 -16
  42. package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +0 -123
  43. package/dist/src/components/DpaMediaItem/DpaMediaItem.stories.ts +0 -140
  44. package/dist/src/components/DpaMediaItem/DpaMediaItem.vue +0 -146
  45. package/dist/src/components/DpaMediaItem/README.md +0 -42
  46. package/dist/src/components/UiCard/README.md +0 -32
  47. package/dist/src/components/UiCard/UiCard.spec.ts +0 -16
  48. package/dist/src/components/UiCard/UiCard.stories.ts +0 -30
  49. package/dist/src/components/UiCard/UiCard.vue +0 -28
  50. package/dist/src/components/UiCheckBoxGroup/README.md +0 -35
  51. package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +0 -70
  52. package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +0 -59
  53. package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +0 -106
  54. package/dist/src/components/UiCollapseNavigation/README.md +0 -37
  55. package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +0 -21
  56. package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +0 -67
  57. package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +0 -79
  58. package/dist/src/components/UiOverlay/README.md +0 -38
  59. package/dist/src/components/UiOverlay/UiOverlay.spec.ts +0 -16
  60. package/dist/src/components/UiOverlay/UiOverlay.stories.ts +0 -22
  61. package/dist/src/components/UiOverlay/UiOverlay.vue +0 -36
  62. package/dist/src/components/UiOverlayMenu/README.md +0 -40
  63. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +0 -33
  64. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +0 -40
  65. package/dist/src/components/UiOverlayMenu/UiOverlayMenu.vue +0 -51
  66. package/dist/src/components/UiSection/README.md +0 -33
  67. package/dist/src/components/UiSection/UiSection.spec.ts +0 -49
  68. package/dist/src/components/UiSection/UiSection.stories.ts +0 -61
  69. package/dist/src/components/UiSection/UiSection.vue +0 -63
  70. package/dist/src/components/UiSectionDivider/README.md +0 -29
  71. package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +0 -19
  72. package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +0 -49
  73. package/dist/src/components/UiSectionDivider/UiSectionDivider.vue +0 -44
  74. package/src/components/DpaMediaItem/DpaMediaItem.vue +0 -146
  75. package/src/components/DpaMediaItem/README.md +0 -42
  76. package/src/components/UiCard/README.md +0 -32
  77. package/src/components/UiCard/UiCard.vue +0 -28
  78. package/src/components/UiCheckBoxGroup/README.md +0 -35
  79. package/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +0 -106
  80. package/src/components/UiCollapseNavigation/README.md +0 -37
  81. package/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +0 -79
  82. package/src/components/UiOverlay/README.md +0 -38
  83. package/src/components/UiOverlay/UiOverlay.vue +0 -36
  84. package/src/components/UiOverlayMenu/README.md +0 -40
  85. package/src/components/UiOverlayMenu/UiOverlayMenu.vue +0 -51
  86. package/src/components/UiSection/README.md +0 -33
  87. package/src/components/UiSection/UiSection.vue +0 -63
  88. package/src/components/UiSectionDivider/README.md +0 -29
  89. package/src/components/UiSectionDivider/UiSectionDivider.vue +0 -44
@@ -0,0 +1,14 @@
1
+ <template>
2
+ <svg
3
+ width="24"
4
+ height="24"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ >
9
+ <path
10
+ d="M12 3C12.5523 3 13 3.44772 13 4V7H18C19.6569 7 21 8.34315 21 10V13H22C22.5523 13 23 13.4477 23 14C23 14.5523 22.5523 15 22 15H21V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V15H2C1.44772 15 1 14.5523 1 14C1 13.4477 1.44772 13 2 13H3V10C3 8.34315 4.34315 7 6 7H11V5H8C7.44772 5 7 4.55228 7 4C7 3.44772 7.44772 3 8 3H12ZM6 9C5.44772 9 5 9.44772 5 10V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V10C19 9.44772 18.5523 9 18 9H6ZM9 12C9.55228 12 10 12.4477 10 13V15C10 15.5523 9.55228 16 9 16C8.44772 16 8 15.5523 8 15V13C8 12.4477 8.44772 12 9 12ZM15 12C15.5523 12 16 12.4477 16 13V15C16 15.5523 15.5523 16 15 16C14.4477 16 14 15.5523 14 15V13C14 12.4477 14.4477 12 15 12Z"
11
+ fill="currentColor"
12
+ />
13
+ </svg>
14
+ </template>
@@ -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>
@@ -25,6 +25,7 @@ export const icons = {
25
25
  "book": () => import("../../assets/icons/book.vue"),
26
26
  "bookmark": () => import("../../assets/icons/bookmark.vue"),
27
27
  "bookmark-filled": () => import("../../assets/icons/bookmark-filled.vue"),
28
+ "bot": () => import('../../assets/icons/bot.vue'),
28
29
  "box": () => import("../../assets/icons/box.vue"),
29
30
  "bulb": () => import("../../assets/icons/bulb.vue"),
30
31
  "call": () => import("../../assets/icons/call.vue"),
@@ -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,