@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.
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +1 -1
- package/dist/components/UiFilterButton/UiFilterButton.vue.d.ts +1 -1
- package/dist/components/UiInput/UiInput.vue.d.ts +1 -1
- package/dist/components/UiMenu/UiMenu.vue.d.ts +2 -2
- package/dist/components/UiMenu/UiMenuItem.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -9
- package/dist/dpa-shared-components.js +1955 -2222
- package/dist/src/components/UiButtonGroup/UiButtonGroup.vue +1 -1
- package/dist/src/components/UiDatePicker/UiDatePicker.vue +1 -4
- package/dist/src/components/UiDialog/UiDialog.vue +7 -4
- package/dist/src/components/UiIconButton/UiIconButton.vue +1 -2
- package/dist/src/components/UiListItem/README.md +13 -12
- package/dist/src/components/UiListItem/UiListItem.stories.ts +0 -26
- package/dist/src/components/UiListItem/UiListItem.vue +1 -1
- package/dist/src/components/UiMenu/UiMenu.stories.ts +0 -1
- package/dist/src/components/UiMenu/UiMenu.vue +3 -4
- package/dist/src/components/index.ts +0 -16
- package/dist/style.css +2 -2
- package/package.json +11 -11
- package/src/components/UiButtonGroup/UiButtonGroup.vue +1 -1
- package/src/components/UiDatePicker/UiDatePicker.vue +1 -4
- package/src/components/UiDialog/UiDialog.vue +7 -4
- package/src/components/UiIconButton/UiIconButton.vue +1 -2
- package/src/components/UiListItem/README.md +13 -12
- package/src/components/UiListItem/UiListItem.vue +1 -1
- package/src/components/UiMenu/UiMenu.vue +3 -4
- package/dist/components/DpaMediaItem/DpaMediaItem.vue.d.ts +0 -43
- package/dist/components/UiCard/UiCard.vue.d.ts +0 -7
- package/dist/components/UiCheckBoxGroup/UiCheckBoxGroup.vue.d.ts +0 -33
- package/dist/components/UiCollapseNavigation/UiCollapseNavigation.vue.d.ts +0 -28
- package/dist/components/UiOverlay/UiOverlay.vue.d.ts +0 -18
- package/dist/components/UiOverlayMenu/UiOverlayMenu.vue.d.ts +0 -24
- package/dist/components/UiSection/UiSection.vue.d.ts +0 -29
- package/dist/components/UiSectionDivider/UiSectionDivider.vue.d.ts +0 -16
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +0 -123
- package/dist/src/components/DpaMediaItem/DpaMediaItem.stories.ts +0 -140
- package/dist/src/components/DpaMediaItem/DpaMediaItem.vue +0 -146
- package/dist/src/components/DpaMediaItem/README.md +0 -42
- package/dist/src/components/UiCard/README.md +0 -32
- package/dist/src/components/UiCard/UiCard.spec.ts +0 -16
- package/dist/src/components/UiCard/UiCard.stories.ts +0 -30
- package/dist/src/components/UiCard/UiCard.vue +0 -28
- package/dist/src/components/UiCheckBoxGroup/README.md +0 -35
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +0 -70
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +0 -59
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +0 -106
- package/dist/src/components/UiCollapseNavigation/README.md +0 -37
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.spec.ts +0 -21
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +0 -67
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +0 -79
- package/dist/src/components/UiOverlay/README.md +0 -38
- package/dist/src/components/UiOverlay/UiOverlay.spec.ts +0 -16
- package/dist/src/components/UiOverlay/UiOverlay.stories.ts +0 -22
- package/dist/src/components/UiOverlay/UiOverlay.vue +0 -36
- package/dist/src/components/UiOverlayMenu/README.md +0 -40
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.spec.ts +0 -33
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.stories.ts +0 -40
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.vue +0 -51
- package/dist/src/components/UiSection/README.md +0 -33
- package/dist/src/components/UiSection/UiSection.spec.ts +0 -49
- package/dist/src/components/UiSection/UiSection.stories.ts +0 -61
- package/dist/src/components/UiSection/UiSection.vue +0 -63
- package/dist/src/components/UiSectionDivider/README.md +0 -29
- package/dist/src/components/UiSectionDivider/UiSectionDivider.spec.ts +0 -19
- package/dist/src/components/UiSectionDivider/UiSectionDivider.stories.ts +0 -49
- package/dist/src/components/UiSectionDivider/UiSectionDivider.vue +0 -44
- package/src/components/DpaMediaItem/DpaMediaItem.vue +0 -146
- package/src/components/DpaMediaItem/README.md +0 -42
- package/src/components/UiCard/README.md +0 -32
- package/src/components/UiCard/UiCard.vue +0 -28
- package/src/components/UiCheckBoxGroup/README.md +0 -35
- package/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +0 -106
- package/src/components/UiCollapseNavigation/README.md +0 -37
- package/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +0 -79
- package/src/components/UiOverlay/README.md +0 -38
- package/src/components/UiOverlay/UiOverlay.vue +0 -36
- package/src/components/UiOverlayMenu/README.md +0 -40
- package/src/components/UiOverlayMenu/UiOverlayMenu.vue +0 -51
- package/src/components/UiSection/README.md +0 -33
- package/src/components/UiSection/UiSection.vue +0 -63
- package/src/components/UiSectionDivider/README.md +0 -29
- 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" | "small"` | `"wide"` | Determines the spread of the section content. |
|
|
25
|
-
| `verticalPadding` | `"small" | "large" | "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" | "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>
|