@dpa-id-components/dpa-shared-components 4.0.1-0 → 4.0.1-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/UseTailwindBreakpoints.stories.ts +22 -0
- package/dist/UseTailwindBreakpoints.vue +12 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/dpa-shared-components.mjs +2117 -2015
- package/dist/dpa-shared-components.umd.js +6 -6
- package/dist/screens.js +13 -0
- package/dist/screens.json +7 -0
- package/dist/tailwind/screens.d.ts +8 -0
- package/dist/tailwind/tailwind.config.d.cts +206 -0
- package/dist/tailwind/useTailwindBreakpoints.d.ts +9 -0
- package/dist/tailwind.config.cjs +37 -42
- package/dist/useTailwindBreakpoints.ts +19 -0
- package/package.json +2 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import UseTailwindBreakpoints from "./UseTailwindBreakpoints.vue";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/vue3";
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "tailwind/useTailwindBreakpoints.ts",
|
|
6
|
+
component: UseTailwindBreakpoints,
|
|
7
|
+
argTypes: {},
|
|
8
|
+
parameters: {},
|
|
9
|
+
} satisfies Meta<typeof UseTailwindBreakpoints>;
|
|
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: { UseTailwindBreakpoints },
|
|
20
|
+
template: `<div><UseTailwindBreakpoints /></div>`,
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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 useTailwindBreakpoints from "./useTailwindBreakpoints";
|
|
8
|
+
import UiIconButton from "@/components/UiIconButton/UiIconButton.vue";
|
|
9
|
+
import UiButton from "@/components/UiButton/UiButton.vue";
|
|
10
|
+
|
|
11
|
+
const { lg } = useTailwindBreakpoints();
|
|
12
|
+
</script>
|
|
@@ -35,4 +35,5 @@ import UiSearchInput from "./UiSearchInput/UiSearchInput.vue";
|
|
|
35
35
|
import UiSearchBar from "./UiSearchBar/UiSearchBar.vue";
|
|
36
36
|
import UiSimpleInput from '../components/UiSimpleInput/UiSimpleInput.vue';
|
|
37
37
|
import UiColorPicker from "./UiColorPicker/UiColorPicker.vue";
|
|
38
|
-
|
|
38
|
+
import useTailwindBreakpoints from '../tailwind/useTailwindBreakpoints';
|
|
39
|
+
export { DpaEventItem, DpaMediaItem, UiAutocomplete, UiBadge, UiButton, UiButtonGroup, UiCard, UiCheckbox, UiCheckBoxGroup, UiChip, UiDatePicker, UiDatePickerMobile, UiDialog, UiFilterBadge, UiFilterBadgeButton, UiFilterButton, UiIcon, UiIconButton, UiInfoContent, UiInput, UiList, UiListItem, UiMenu, UiOverlay, UiOverlayMenu, UiRadioInputGroup, UiSection, UiSectionDivider, UiSkeletonBox, UiSpinner, UiSnackbar, UiToggleButton, UiTooltip, UiSearchInput, UiSearchBar, UiSimpleInput, UiColorPicker, useTailwindBreakpoints, };
|