@dpa-id-components/dpa-shared-components 8.0.1 → 8.0.2
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/UseBreakpoints.stories.ts +22 -0
- package/dist/UseBreakpoints.vue +12 -0
- package/dist/dpa-shared-components.mjs +1821 -1819
- package/dist/dpa-shared-components.umd.js +4 -4
- package/dist/main.css +23 -0
- package/dist/tailwind/UseBreakpoints.stories.d.ts +10 -0
- package/dist/tailwind/useBreakpoints.d.ts +9 -0
- package/dist/useBreakpoints.ts +19 -0
- package/package.json +1 -1
package/dist/main.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Inter";
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
src: url("@/assets/fonts/Inter-Regular.woff2") format("woff2"),
|
|
6
|
+
url("@/assets/fonts/Inter-Regular.woff") format("woff");
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "Inter";
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
src: url("@/assets/fonts/Inter-Medium.woff2") format("woff2"),
|
|
14
|
+
url("@/assets/fonts/Inter-Medium.woff") format("woff");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: "Inter";
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
src: url("@/assets/fonts/Inter-Bold.woff2") format("woff2"),
|
|
22
|
+
url("@/assets/fonts/Inter-Bold.woff") format("woff");
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|