@appmax_npm/ds-prime 1.0.0-alpha.21 → 1.0.0-alpha.23

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/button/index.d.ts CHANGED
@@ -1,2 +1,10 @@
1
+ import { type Component } from 'vue';
2
+ import { type ButtonProps as PVButtonProps } from 'primevue/button';
3
+ interface ButtonProps extends PVButtonProps {
4
+ href?: string;
5
+ to?: string | object;
6
+ }
7
+ declare const Button: Component<ButtonProps>;
1
8
  export * from 'primevue/button';
2
- export { default } from 'primevue/button';
9
+ export { ButtonProps };
10
+ export default Button;
package/button/index.js CHANGED
@@ -1,2 +1,36 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { h } from 'vue';
13
+ import { default as PVButton } from 'primevue/button';
14
+ var Button = {
15
+ name: 'Button',
16
+ props: {
17
+ href: String,
18
+ to: [String, Object]
19
+ },
20
+ computed: {
21
+ as: function () {
22
+ if (this.as)
23
+ return this.as;
24
+ if (this.href)
25
+ return 'a';
26
+ if (this.to)
27
+ return 'router-link';
28
+ return 'button';
29
+ }
30
+ },
31
+ render: function () {
32
+ return h(PVButton, __assign(__assign({}, this.$props), { as: this.as }), this.$slots);
33
+ }
34
+ };
1
35
  export * from 'primevue/button';
2
- export { default } from 'primevue/button';
36
+ export default Button;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appmax_npm/ds-prime",
3
- "version": "1.0.0-alpha.21",
3
+ "version": "1.0.0-alpha.23",
4
4
  "description": "Design System da Appmax baseado no Primevue",
5
5
  "author": "Appmax",
6
6
  "type": "module",
@@ -181,3 +181,4 @@ export declare const AmTailwindConfig: {
181
181
  };
182
182
  };
183
183
  };
184
+ export default AmTailwindConfig;
package/tailwind/index.js CHANGED
@@ -181,3 +181,4 @@ export var AmTailwindConfig = {
181
181
  }
182
182
  }
183
183
  };
184
+ export default AmTailwindConfig;