@dpa-id-components/dpa-shared-components 4.0.1-3 → 4.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.
@@ -1,13 +1,17 @@
1
- const screens = require("./screens.json");
2
-
3
1
  module.exports = {
4
2
  theme: {
5
3
  inset: {
6
4
  0: 0,
7
5
  "1/2": "50%",
8
- full: "100%",
6
+ full: "100%"
7
+ },
8
+ screens: {
9
+ sm: "640px",
10
+ md: "768px",
11
+ lg: "1024px",
12
+ xl: "1280px",
13
+ xxl: "1600px"
9
14
  },
10
- screens,
11
15
  fontSize: {
12
16
  xs: "12px",
13
17
  sm: "14px",
@@ -19,7 +23,7 @@ module.exports = {
19
23
  "4xl": "36px",
20
24
  "5xl": "48px",
21
25
  "6xl": "60px",
22
- "7xl": "72px",
26
+ "7xl": "72px"
23
27
  },
24
28
  spacing: {
25
29
  px: "1px",
@@ -58,23 +62,23 @@ module.exports = {
58
62
  64: "256px",
59
63
  72: "288px",
60
64
  80: "320px",
61
- 96: "384px",
65
+ 96: "384px"
62
66
  },
63
67
  extend: {
64
68
  outline: {
65
- blue: ["2px solid rgba(0, 62, 219, 0.5)", "2px"],
69
+ blue: ["2px solid rgba(0, 62, 219, 0.5)", "2px"]
66
70
  },
67
71
  fontFamily: {
68
72
  sans: ["Inter", "sans-serif"],
69
- marketing: ["Futura", "sans-serif"],
73
+ marketing: ["Futura", "sans-serif"]
70
74
  },
71
75
  spacing: {
72
76
  inherit: "inherit",
73
77
  half: "2px", // 2px,
74
- inputFocused: "15px",
78
+ inputFocused: "15px"
75
79
  },
76
80
  duration: {
77
- 0: "0ms",
81
+ 0: "0ms"
78
82
  },
79
83
  colors: {
80
84
  transparent: "rgba(255, 255, 255, 0)",
@@ -90,69 +94,69 @@ module.exports = {
90
94
  600: "#7E7E7E",
91
95
  700: "#757575",
92
96
  800: "#4D4D4D",
93
- 900: "#212121",
97
+ 900: "#212121"
94
98
  },
95
99
  blue: {
96
100
  default: "#003edb",
97
- dark: "#0030aa",
101
+ dark: "#0030aa"
98
102
  },
99
103
  red: {
100
104
  default: "#E53935",
101
- dark: "#AB000D",
105
+ dark: "#AB000D"
102
106
  },
103
107
  pink: {
104
108
  default: "#F5138D",
105
- dark: "#BD0060",
109
+ dark: "#BD0060"
106
110
  },
107
111
  purple: {
108
112
  default: "#8E24AA",
109
- dark: "#5C007A",
113
+ dark: "#5C007A"
110
114
  },
111
115
  cyan: {
112
116
  default: "#00ACC1",
113
- dark: "#007C91",
117
+ dark: "#007C91"
114
118
  },
115
119
  teal: {
116
120
  default: "#00897B",
117
- dark: "#005B4F",
121
+ dark: "#005B4F"
118
122
  },
119
123
  green: {
120
124
  default: "#30DF7B",
121
- dark: "#00AC4D",
125
+ dark: "#00AC4D"
122
126
  },
123
127
  yellow: {
124
128
  default: "#F9F500",
125
- dark: "#C1BE00",
129
+ dark: "#C1BE00"
126
130
  },
127
131
  orange: {
128
132
  default: "#FFB300",
129
- dark: "#C68400",
133
+ dark: "#C68400"
130
134
  },
131
135
  "alert-red": {
132
136
  default: "#F53000",
133
- dark: "#BA2400",
137
+ dark: "#BA2400"
134
138
  },
135
139
  "alert-green": {
136
140
  default: "#00D200",
137
- dark: "#00AA00",
141
+ dark: "#00AA00"
138
142
  },
139
143
  "neon-green": "#00E281",
140
144
  rainbow: {
141
145
  red: "#E53935",
142
146
  "red-dark": "#AB000D",
143
147
  orange: "#FFB300",
144
- purple: "#8E24AA",
145
- },
148
+ purple: "#8E24AA"
149
+ }
146
150
  },
147
151
  opacity: {
148
152
  60: "0.6",
149
- 20: "0.2",
153
+ 20: "0.2"
150
154
  },
151
155
  boxShadow: {
152
156
  default: "0px 1px 1px rgba(0, 0, 0, 0.1)",
153
157
  negative: "0px -1px 1px rgba(0, 0, 0, 0.1)",
154
158
  md: "0px 1px 5px rgba(0, 0, 0, 0.1)",
155
- lg: "0px 2px 6px rgba(0, 0, 0, 0.25)",
159
+ lg: "0px 2px 6px rgba(0, 0, 0, 0.25)"
156
160
  },
157
161
  inset: {
158
162
  0: 0,
@@ -163,10 +167,10 @@ module.exports = {
163
167
  5: "20px",
164
168
  12: "48px",
165
169
  16: "64px",
166
- full: "100%",
170
+ full: "100%"
167
171
  },
168
172
  screens: {
169
- print: { raw: "print" },
173
+ print: { raw: "print" }
170
174
  },
171
175
  lineHeight: {
172
176
  3: "12px",
@@ -176,28 +180,29 @@ module.exports = {
176
180
  7: "28px",
177
181
  8: "32px",
178
182
  9: "36px",
179
- 10: "40px",
183
+ 10: "40px"
180
184
  },
181
185
  width: {
182
- 4.5: "18px",
186
+ "4.5": "18px"
183
187
  },
184
188
  height: {
185
- 4.5: "18px",
186
- },
189
+ "4.5": "18px"
190
+ }
187
191
  },
188
192
  maxHeight: {
189
- 60: "240px",
190
- },
193
+ 60: "240px"
194
+ }
195
+
191
196
  },
192
197
  variants: {
193
198
  opacity: ["responsive", "hover", "focus", "group-hover"],
194
199
  outline: ["focus", "focus-visible"],
195
200
  display: ["responsive", "group-hover"],
196
201
  textColor: ["responsive", "hover", "focus", "group-hover", "group-focus"],
197
- textDecoration: ["group-hover"],
202
+ textDecoration: ["group-hover"]
198
203
  },
199
204
  plugins: [
200
205
  require("@tailwindcss/typography"),
201
- require("@tailwindcss/container-queries"),
202
- ],
206
+ require("@tailwindcss/container-queries")
207
+ ]
203
208
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpa-id-components/dpa-shared-components",
3
- "version": "4.0.1-3",
3
+ "version": "4.0.2",
4
4
  "description": "Shared Vue components library for dpa projects",
5
5
  "files": [
6
6
  "dist"
@@ -94,7 +94,6 @@
94
94
  "@tailwindcss/line-clamp": "^0.4.0",
95
95
  "@tailwindcss/typography": "^0.5.8",
96
96
  "@vuepic/vue-datepicker": "^5.0.0",
97
- "@vueuse/core": "^10.1.2",
98
97
  "date-fns": "^2.29.3",
99
98
  "uuid": "^9.0.0",
100
99
  "vue": "^3.2.45"
@@ -1,22 +0,0 @@
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
- };
@@ -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 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>
@@ -1,19 +0,0 @@
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
- };
@@ -1,19 +0,0 @@
1
- import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
- const n = {
3
- viewBox: "0 0 16 16",
4
- xmlns: "http://www.w3.org/2000/svg"
5
- }, r = /* @__PURE__ */ o("path", {
6
- "fill-rule": "evenodd",
7
- "clip-rule": "evenodd",
8
- d: "M5.5 10.75V8.25C5.5 7.83579 5.16421 7.5 4.75 7.5C4.33579 7.5 4 7.83579 4 8.25V10.75C4 11.1642 4.33579 11.5 4.75 11.5C5.16421 11.5 5.5 11.1642 5.5 10.75ZM8.5 10.75V6.25C8.5 5.83579 8.16421 5.5 7.75 5.5C7.33579 5.5 7 5.83579 7 6.25V10.75C7 11.1642 7.33579 11.5 7.75 11.5C8.16421 11.5 8.5 11.1642 8.5 10.75ZM11.5 10.75V4.25C11.5 3.83579 11.1642 3.5 10.75 3.5C10.3358 3.5 10 3.83579 10 4.25V10.75C10 11.1642 10.3358 11.5 10.75 11.5C11.1642 11.5 11.5 11.1642 11.5 10.75Z"
9
- }, null, -1), c = [
10
- r
11
- ];
12
- function l(d, C) {
13
- return e(), t("svg", n, c);
14
- }
15
- const i = { render: l };
16
- export {
17
- i as default,
18
- l as render
19
- };
@@ -1,19 +0,0 @@
1
- import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
- const n = {
3
- viewBox: "0 0 16 16",
4
- xmlns: "http://www.w3.org/2000/svg"
5
- }, r = /* @__PURE__ */ o("path", {
6
- "fill-rule": "evenodd",
7
- "clip-rule": "evenodd",
8
- d: "M5 4.5H11C11.138 4.5 11.25 4.612 11.25 4.75V8.594L9.62 7.507C9.252 7.262 8.767 7.287 8.427 7.57L4.75 10.625V4.75C4.75 4.612 4.862 4.5 5 4.5ZM11 3H5C4.034 3 3.25 3.783 3.25 4.75V10.75C3.25 11.717 4.034 12.5 5 12.5H11C11.966 12.5 12.75 11.717 12.75 10.75V4.75C12.75 3.783 11.966 3 11 3ZM6.5 7.25C7.052 7.25 7.5 6.803 7.5 6.25C7.5 5.697 7.052 5.25 6.5 5.25C5.948 5.25 5.5 5.697 5.5 6.25C5.5 6.803 5.948 7.25 6.5 7.25Z"
9
- }, null, -1), c = [
10
- r
11
- ];
12
- function l(d, s) {
13
- return e(), t("svg", n, c);
14
- }
15
- const i = { render: l };
16
- export {
17
- i as default,
18
- l as render
19
- };
package/dist/screens.js DELETED
@@ -1,13 +0,0 @@
1
- export const screens = {
2
- sm: "640px",
3
- md: "768px",
4
- lg: "1024px",
5
- xl: "1280px",
6
- xxl: "1600px",
7
- };
8
-
9
- export default screens;
10
-
11
- if (module !== undefined) {
12
- module.exports = screens;
13
- }
package/dist/screens.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "sm": "640px",
3
- "md": "768px",
4
- "lg": "1024px",
5
- "xl": "1280px",
6
- "xxl": "1600px"
7
- }
@@ -1,8 +0,0 @@
1
- export namespace screens {
2
- const sm: string;
3
- const md: string;
4
- const lg: string;
5
- const xl: string;
6
- const xxl: string;
7
- }
8
- export default screens;
@@ -1,214 +0,0 @@
1
- declare const screens: {
2
- sm: string;
3
- md: string;
4
- lg: string;
5
- xl: string;
6
- xxl: string;
7
- };
8
- export namespace theme {
9
- export const inset: {
10
- 0: number;
11
- "1/2": string;
12
- full: string;
13
- };
14
- export { screens };
15
- export const fontSize: {
16
- xs: string;
17
- sm: string;
18
- base: string;
19
- lg: string;
20
- xl: string;
21
- "2xl": string;
22
- "3xl": string;
23
- "4xl": string;
24
- "5xl": string;
25
- "6xl": string;
26
- "7xl": string;
27
- };
28
- export const spacing: {
29
- px: string;
30
- 0: string;
31
- 0.5: string;
32
- 1: string;
33
- 1.5: string;
34
- 2: string;
35
- 2.5: string;
36
- 3: string;
37
- 3.5: string;
38
- 4: string;
39
- 5: string;
40
- 6: string;
41
- 7: string;
42
- 8: string;
43
- 9: string;
44
- 10: string;
45
- 11: string;
46
- 12: string;
47
- 14: string;
48
- 16: string;
49
- 20: string;
50
- 24: string;
51
- 28: string;
52
- 32: string;
53
- 36: string;
54
- 37: string;
55
- 40: string;
56
- 41: string;
57
- 44: string;
58
- 48: string;
59
- 52: string;
60
- 56: string;
61
- 60: string;
62
- 64: string;
63
- 72: string;
64
- 80: string;
65
- 96: string;
66
- };
67
- export namespace extend {
68
- export namespace outline {
69
- const blue: string[];
70
- }
71
- export namespace fontFamily {
72
- const sans: string[];
73
- const marketing: string[];
74
- }
75
- export namespace spacing_1 {
76
- const inherit: string;
77
- const half: string;
78
- const inputFocused: string;
79
- }
80
- export { spacing_1 as spacing };
81
- export const duration: {
82
- 0: string;
83
- };
84
- export const colors: {
85
- transparent: string;
86
- black: string;
87
- white: string;
88
- gray: {
89
- 100: string;
90
- 200: string;
91
- 300: string;
92
- 400: string;
93
- 500: string;
94
- 600: string;
95
- 700: string;
96
- 800: string;
97
- 900: string;
98
- };
99
- blue: {
100
- default: string;
101
- dark: string;
102
- };
103
- red: {
104
- default: string;
105
- dark: string;
106
- };
107
- pink: {
108
- default: string;
109
- dark: string;
110
- };
111
- purple: {
112
- default: string;
113
- dark: string;
114
- };
115
- cyan: {
116
- default: string;
117
- dark: string;
118
- };
119
- teal: {
120
- default: string;
121
- dark: string;
122
- };
123
- green: {
124
- default: string;
125
- dark: string;
126
- };
127
- yellow: {
128
- default: string;
129
- dark: string;
130
- };
131
- orange: {
132
- default: string;
133
- dark: string;
134
- };
135
- "alert-red": {
136
- default: string;
137
- dark: string;
138
- };
139
- "alert-green": {
140
- default: string;
141
- dark: string;
142
- };
143
- "neon-green": string;
144
- rainbow: {
145
- red: string;
146
- "red-dark": string;
147
- orange: string;
148
- purple: string;
149
- };
150
- };
151
- export const opacity: {
152
- 60: string;
153
- 20: string;
154
- };
155
- export namespace boxShadow {
156
- const _default: string;
157
- export { _default as default };
158
- export const negative: string;
159
- export const md: string;
160
- export const lg: string;
161
- }
162
- const inset_1: {
163
- 0: number;
164
- auto: string;
165
- 1: string;
166
- 3: string;
167
- 4: string;
168
- 5: string;
169
- 12: string;
170
- 16: string;
171
- full: string;
172
- };
173
- export { inset_1 as inset };
174
- export namespace screens_1 {
175
- namespace print {
176
- const raw: string;
177
- }
178
- }
179
- export { screens_1 as screens };
180
- export const lineHeight: {
181
- 3: string;
182
- 4: string;
183
- 5: string;
184
- 6: string;
185
- 7: string;
186
- 8: string;
187
- 9: string;
188
- 10: string;
189
- };
190
- export const width: {
191
- 4.5: string;
192
- };
193
- export const height: {
194
- 4.5: string;
195
- };
196
- }
197
- export const maxHeight: {
198
- 60: string;
199
- };
200
- }
201
- export namespace variants {
202
- const opacity_1: string[];
203
- export { opacity_1 as opacity };
204
- const outline_1: string[];
205
- export { outline_1 as outline };
206
- export const display: string[];
207
- export const textColor: string[];
208
- export const textDecoration: string[];
209
- }
210
- export const plugins: (typeof import("@tailwindcss/typography") | {
211
- handler: import("tailwindcss/types/config").PluginCreator;
212
- config?: Partial<import("tailwindcss/types/config").Config> | undefined;
213
- })[];
214
- export {};
@@ -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,15 +0,0 @@
1
- import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
- const n = {
3
- viewBox: "0 0 16 16",
4
- xmlns: "http://www.w3.org/2000/svg"
5
- }, c = /* @__PURE__ */ o("path", { d: "M4.75 4H11.25C11.6642 4 12 4.33579 12 4.75C12 5.16421 11.6642 5.5 11.25 5.5H4.75C4.33579 5.5 4 5.16421 4 4.75C4 4.33579 4.33579 4 4.75 4ZM4.75 7H11.25C11.6642 7 12 7.33579 12 7.75C12 8.16421 11.6642 8.5 11.25 8.5H4.75C4.33579 8.5 4 8.16421 4 7.75C4 7.33579 4.33579 7 4.75 7ZM4.75 10H8.25C8.66421 10 9 10.3358 9 10.75C9 11.1642 8.66421 11.5 8.25 11.5H4.75C4.33579 11.5 4 11.1642 4 10.75C4 10.3358 4.33579 10 4.75 10Z" }, null, -1), r = [
6
- c
7
- ];
8
- function C(s, l) {
9
- return e(), t("svg", n, r);
10
- }
11
- const _ = { render: C };
12
- export {
13
- _ as default,
14
- C as render
15
- };
@@ -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
- };
@@ -1,19 +0,0 @@
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: "M7.304 12.0019C7.09933 12.0019 6.89267 11.9579 6.7 11.8672C6.268 11.6632 6 11.2585 6 10.8099V5.19252C6 4.74385 6.268 4.33918 6.7 4.13518C7.188 3.90518 7.76667 3.97252 8.17267 4.30785L11.572 7.11718C11.8447 7.34118 12 7.66385 12 8.00118C12 8.33852 11.8447 8.66118 11.572 8.88518L8.17267 11.6939C7.92733 11.8972 7.618 12.0019 7.304 12.0019Z"
9
- }, null, -1), r = [
10
- l
11
- ];
12
- function c(d, s) {
13
- return e(), o("svg", n, r);
14
- }
15
- const _ = { render: c };
16
- export {
17
- _ as default,
18
- c as render
19
- };