@dpa-id-components/dpa-shared-components 4.0.2 → 4.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.
package/README.md CHANGED
@@ -4,7 +4,7 @@ Collection of vue 3 components for usage across dpa projects.
4
4
 
5
5
  ## Pre-requirements
6
6
 
7
- This projects requires a node version >= 16.
7
+ This project requires a node version of 16.x
8
8
 
9
9
  ### Notes
10
10
 
@@ -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>
@@ -0,0 +1,19 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ const n = {
3
+ viewBox: "0 0 16 16",
4
+ xmlns: "http://www.w3.org/2000/svg"
5
+ }, l = /* @__PURE__ */ t("path", {
6
+ "fill-rule": "evenodd",
7
+ "clip-rule": "evenodd",
8
+ d: "M12 6.66671C12.3687 6.66671 12.6667 6.96537 12.6667 7.33337C12.6667 9.68004 10.9247 11.6214 8.66668 11.9467V13.4708C8.66668 13.839 8.3682 14.1375 8.00001 14.1375C7.63182 14.1375 7.33334 13.839 7.33334 13.4708V11.9467C5.07534 11.6214 3.33334 9.68004 3.33334 7.33337C3.33334 6.96537 3.63134 6.66671 4.00001 6.66671C4.36868 6.66671 4.66668 6.96537 4.66668 7.33337C4.66668 9.17137 6.16201 10.6667 8.00001 10.6667C9.83801 10.6667 11.3333 9.17137 11.3333 7.33337C11.3333 6.96537 11.6313 6.66671 12 6.66671ZM10.1667 7.33337C10.1667 8.5279 9.19453 9.50004 8.00001 9.50004C6.80549 9.50004 5.83334 8.5279 5.83334 7.33337V5.00004C5.83334 3.80552 6.80549 2.83337 8.00001 2.83337C9.19453 2.83337 10.1667 3.80552 10.1667 5.00004V7.33337Z"
9
+ }, null, -1), r = [
10
+ l
11
+ ];
12
+ function C(c, d) {
13
+ return e(), o("svg", n, r);
14
+ }
15
+ const i = { render: C };
16
+ export {
17
+ i as default,
18
+ C as render
19
+ };
@@ -4792,7 +4792,7 @@ const Hd = (e, t) => {
4792
4792
  };
4793
4793
  return t.sizeClasses || i[t.size];
4794
4794
  });
4795
- return (i, o) => (T(), De(La(a.value), {
4795
+ return (i, o) => (T(), De(La(a.value || "div"), {
4796
4796
  class: ue([n.value, "inline-flex fill-current"])
4797
4797
  }, null, 8, ["class"]));
4798
4798
  }