@appmax_npm/ds-prime 1.0.0-alpha.41 → 1.0.0-alpha.43

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/ambutton/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, computed as a, openBlock as d, createBlock as i, unref as u, mergeProps as p, withCtx as f, renderSlot as c } from "vue";
1
+ import { defineComponent as s, computed as a, openBlock as i, createBlock as d, unref as u, mergeProps as f, withCtx as p, renderSlot as c } from "vue";
2
2
  import y from "primevue/button";
3
- const B = /* @__PURE__ */ s({
3
+ const b = /* @__PURE__ */ s({
4
4
  __name: "AmButton",
5
5
  props: {
6
6
  to: {},
@@ -29,17 +29,12 @@ const B = /* @__PURE__ */ s({
29
29
  asChild: { type: Boolean },
30
30
  link: { type: Boolean },
31
31
  severity: {},
32
- raised: { type: Boolean },
33
32
  rounded: { type: Boolean },
34
33
  text: { type: Boolean },
35
34
  outlined: { type: Boolean },
36
35
  size: {},
37
36
  plain: { type: Boolean },
38
- fluid: { type: Boolean },
39
- dt: {},
40
- pt: {},
41
- ptOptions: {},
42
- unstyled: { type: Boolean }
37
+ fluid: { type: Boolean }
43
38
  },
44
39
  setup(o) {
45
40
  const e = o, t = a(() => {
@@ -49,24 +44,24 @@ const B = /* @__PURE__ */ s({
49
44
  if (!(e.disabled || t) && e.to)
50
45
  return e.to;
51
46
  }), n = a(() => e.as ? e.as : e.disabled ? "button" : e.href ? "a" : e.to ? "router-link" : "button");
52
- return (l, v) => (d(), i(u(y), p(e, {
47
+ return (l, B) => (i(), d(u(y), f(e, {
53
48
  as: n.value,
54
49
  disabled: l.disabled,
55
50
  to: r.value,
56
51
  href: t.value
57
52
  }), {
58
- default: f(() => [
53
+ default: p(() => [
59
54
  c(l.$slots, "default", {}, void 0, !0)
60
55
  ]),
61
56
  _: 3
62
57
  }, 16, ["as", "disabled", "to", "href"]));
63
58
  }
64
- }), b = (o, e) => {
59
+ }), v = (o, e) => {
65
60
  const t = o.__vccOpts || o;
66
61
  for (const [r, n] of e)
67
62
  t[r] = n;
68
63
  return t;
69
- }, _ = /* @__PURE__ */ b(B, [["__scopeId", "data-v-2e25dba5"]]);
64
+ }, _ = /* @__PURE__ */ v(b, [["__scopeId", "data-v-2e25dba5"]]);
70
65
  export {
71
66
  _ as default
72
67
  };
package/index/index.js CHANGED
@@ -2,7 +2,8 @@ import a from "primevue/config";
2
2
  import { definePreset as e } from "@primevue/themes";
3
3
  import o from "@primevue/themes/lara";
4
4
  import v from "primevue/toastservice";
5
- const l = {
5
+ import l from "primevue/tooltip";
6
+ const i = {
6
7
  blue: {
7
8
  50: "var(--blue-50)",
8
9
  100: "var(--blue-100)",
@@ -104,9 +105,9 @@ const l = {
104
105
  900: "var(--surface-900)",
105
106
  950: "var(--surface-950)"
106
107
  }
107
- }, i = e(o, {
108
+ }, p = e(o, {
108
109
  primitive: {
109
- ...l
110
+ ...i
110
111
  },
111
112
  semantic: {
112
113
  primary: {
@@ -173,19 +174,19 @@ const l = {
173
174
  }
174
175
  }
175
176
  }
176
- }), p = {
177
+ }), m = {
177
178
  theme: {
178
- preset: i,
179
+ preset: p,
179
180
  options: {
180
181
  darkModeSelector: ".p-dark"
181
182
  }
182
183
  }
183
- }, u = {
184
+ }, y = {
184
185
  install(r) {
185
- r.use(a, p), r.use(v);
186
+ r.use(a, m), r.use(v), r.directive("tooltip", l);
186
187
  }
187
188
  };
188
189
  export {
189
- u as AmDSPrime,
190
- u as default
190
+ y as AmDSPrime,
191
+ y as default
191
192
  };
package/index.js CHANGED
@@ -1,12 +1,15 @@
1
1
  import Primevue from 'primevue/config';
2
2
  import { AmDSPrimeConfig } from './config/theme';
3
3
  import ToastService from 'primevue/toastservice';
4
+ import Tooltip from 'primevue/tooltip';
4
5
  import './css/index.css';
5
6
  export const AmDSPrime = {
6
7
  install(app) {
7
8
  app.use(Primevue, AmDSPrimeConfig);
8
9
  // @ts-ignore
9
10
  app.use(ToastService);
11
+ // @ts-ignore
12
+ app.directive('tooltip', Tooltip);
10
13
  }
11
14
  };
12
15
  export default AmDSPrime;
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "@appmax_npm/ds-prime",
3
- "version": "1.0.0-alpha.41",
3
+ "version": "1.0.0-alpha.43",
4
4
  "description": "Design System da Appmax baseado no Primevue",
5
5
  "author": "Appmax",
6
- "type": "module",
7
6
  "exports": {
8
- ".": "./index.js",
9
- "./*": "./*/index.js",
7
+ ".": {
8
+ "types": "./index.d.ts",
9
+ "default": "./index.js",
10
+ "require": "./index.js"
11
+ },
12
+ "./*": {
13
+ "types": "./*/index.d.ts",
14
+ "default": "./*/index.js",
15
+ "require": "./*/index.js"
16
+ },
10
17
  "./css/index.css": "./css/index.css"
11
18
  },
12
19
  "dependencies": {