@dpa-id-components/dpa-shared-components 8.0.2 → 8.0.3

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.
@@ -0,0 +1,20 @@
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
+ const r = {
3
+ viewBox: "0 0 24 24",
4
+ xmlns: "http://www.w3.org/2000/svg"
5
+ }, n = /* @__PURE__ */ o("path", {
6
+ d: "M7 12L7 15M10.3 9L10.3 15M13.6 12V15M16.9 6V15M20 18H4",
7
+ stroke: "#212121",
8
+ "stroke-width": "2",
9
+ "stroke-linecap": "round"
10
+ }, null, -1), c = [
11
+ n
12
+ ];
13
+ function s(d, i) {
14
+ return e(), t("svg", r, c);
15
+ }
16
+ const a = { render: s };
17
+ export {
18
+ a as default,
19
+ s as render
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpa-id-components/dpa-shared-components",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "engines": {
5
5
  "node": ">=16"
6
6
  },
@@ -1,22 +0,0 @@
1
- import UseBreakpoints from "./UseBreakpoints.vue";
2
- import type { Meta, StoryObj } from "@storybook/vue3";
3
-
4
- const meta = {
5
- title: "tailwind/UseBreakpoints.ts",
6
- component: UseBreakpoints,
7
- argTypes: {},
8
- parameters: {},
9
- } satisfies Meta<typeof UseBreakpoints>;
10
-
11
- export default meta;
12
- type Story = StoryObj<typeof meta>;
13
-
14
- export const Default: Story = {
15
- render: (args: any) => ({
16
- setup() {
17
- return { args };
18
- },
19
- components: { UseBreakpoints },
20
- template: `<div><UseBreakpoints /></div>`,
21
- }),
22
- };
@@ -1,12 +0,0 @@
1
- <template>
2
- <UiButton v-if="lg">Button for LG</UiButton>
3
- <UiIconButton v-else icon-name="emoji" />
4
- </template>
5
-
6
- <script setup lang="ts">
7
- import useBreakpoints from "./useBreakpoints";
8
- import UiIconButton from "@/components/UiIconButton/UiIconButton.vue";
9
- import UiButton from "@/components/UiButton/UiButton.vue";
10
-
11
- const { lg } = useBreakpoints();
12
- </script>
@@ -1,10 +0,0 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- declare const meta: {
3
- title: string;
4
- component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
5
- argTypes: {};
6
- parameters: {};
7
- };
8
- export default meta;
9
- type Story = StoryObj<typeof meta>;
10
- export declare const Default: Story;
@@ -1,9 +0,0 @@
1
- declare const _default: () => {
2
- currentBreakpoint: import("vue").ComputedRef<string[]>;
3
- sm: import("vue").ComputedRef<boolean>;
4
- md: import("vue").ComputedRef<boolean>;
5
- lg: import("vue").ComputedRef<boolean>;
6
- xl: import("vue").ComputedRef<boolean>;
7
- xxl: import("vue").ComputedRef<boolean>;
8
- };
9
- export default _default;
@@ -1,19 +0,0 @@
1
- import { useBreakpoints } from "@vueuse/core";
2
- import { computed } from "vue";
3
- import screens from "./screens.json";
4
-
5
- export default () => {
6
- const breakpoints = useBreakpoints({
7
- ...screens,
8
- });
9
-
10
- const currentBreakpoint = breakpoints.current();
11
-
12
- const sm = computed(() => currentBreakpoint.value.includes("sm"));
13
- const md = computed(() => currentBreakpoint.value.includes("md"));
14
- const lg = computed(() => currentBreakpoint.value.includes("lg"));
15
- const xl = computed(() => currentBreakpoint.value.includes("xl"));
16
- const xxl = computed(() => currentBreakpoint.value.includes("xxl"));
17
-
18
- return { currentBreakpoint, sm, md, lg, xl, xxl };
19
- };