@appmax_npm/ds-prime 1.0.0-alpha.113 → 1.0.0-alpha.115

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,6 +1,6 @@
1
1
  import { defineComponent as r, openBlock as c, createBlock as a, withCtx as i, createElementVNode as e, renderSlot as m, createVNode as l } from "vue";
2
2
  import { _ as p } from "./AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
3
- import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
3
+ import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
4
4
  const f = { class: "p-1" }, d = { name: "AmChip" }, b = /* @__PURE__ */ r({
5
5
  ...d,
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, computed as s, openBlock as n, createElementBlock as c, createVNode as l, withCtx as p, createElementVNode as m, normalizeClass as d, unref as f } from "vue";
2
2
  import { _ as u } from "./AmTooltip.vue_vue_type_script_setup_true_lang-DvhTZs1v.js";
3
- import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
3
+ import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
4
4
  import { cva as x } from "class-variance-authority";
5
5
  import { twMerge as v } from "tailwind-merge";
6
6
  const h = x(
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, computed as s, defineAsyncComponent as c, openBlock as M, createBlock as G, resolveDynamicComponent as S, normalizeClass as C, unref as B, withCtx as l, createTextVNode as A, toDisplayString as T } from "vue";
1
+ import { defineComponent as n, computed as s, defineAsyncComponent as c, openBlock as M, createBlock as G, resolveDynamicComponent as S, normalizeClass as C, unref as l, withCtx as B, createTextVNode as A, toDisplayString as T } from "vue";
2
2
  import { cva as N } from "class-variance-authority";
3
3
  import { twMerge as I } from "tailwind-merge";
4
4
  const E = N("material-symbols-outlined am-icon h-auto w-[1em] rounded-sm overflow-hidden", {
@@ -13,7 +13,7 @@ const E = N("material-symbols-outlined am-icon h-auto w-[1em] rounded-sm overflo
13
13
  "2xl": "text-[2rem]"
14
14
  }
15
15
  }
16
- }), f = (o, r) => I(E(o), r), m = {
16
+ }), d = (r, o) => I(E(r), o), m = {
17
17
  affiliate: () => import("./affiliate-Bgt9fadK.js"),
18
18
  amex: () => import("./amex-CvNwRHhS.js"),
19
19
  apple_pay: () => import("./apple_pay-DtsAzVjF.js"),
@@ -42,6 +42,8 @@ const E = N("material-symbols-outlined am-icon h-auto w-[1em] rounded-sm overflo
42
42
  notification: () => import("./notification-DMezLtAj.js"),
43
43
  paypal: () => import("./paypal-DMYjfEw0.js"),
44
44
  pix: () => import("./pix-DXdX91yj.js"),
45
+ pix_outline: () => import("./pix_outline-D_xXXgCN.js"),
46
+ shield: () => import("./shield-DZZu5bbE.js"),
45
47
  store: () => import("./store-CO0p87iW.js"),
46
48
  ticket_icon: () => import("./ticket_icon-DwvyLm7c.js"),
47
49
  user: () => import("./user-BRpwqYx8.js"),
@@ -302,7 +304,7 @@ const E = N("material-symbols-outlined am-icon h-auto w-[1em] rounded-sm overflo
302
304
  ZA: () => import("./ZA-BjQXS8mc.js"),
303
305
  ZM: () => import("./ZM-Dw0PmMTO.js"),
304
306
  ZW: () => import("./ZW-D0UStZMr.js")
305
- }, i = "i", u = /* @__PURE__ */ n({
307
+ }, i = "i", R = /* @__PURE__ */ n({
306
308
  __name: "AmIcon",
307
309
  props: {
308
310
  icon: {},
@@ -311,15 +313,15 @@ const E = N("material-symbols-outlined am-icon h-auto w-[1em] rounded-sm overflo
311
313
  class: {},
312
314
  style: {}
313
315
  },
314
- setup(o) {
315
- const r = o, e = (t) => r.variant === "material" ? i : r.variant === "svg" ? m[t] : r.variant === "flag" ? p[t] : m[t] || p[t] || i, a = s(() => {
316
- const t = e(r.icon) || i;
316
+ setup(r) {
317
+ const o = r, e = (t) => o.variant === "material" ? i : o.variant === "svg" ? m[t] : o.variant === "flag" ? p[t] : m[t] || p[t] || i, a = s(() => {
318
+ const t = e(o.icon) || i;
317
319
  return typeof t != "function" ? t : c(t);
318
320
  });
319
- return (t, L) => (M(), G(S(a.value), {
320
- class: C(B(f)(r, r.class))
321
+ return (t, f) => (M(), G(S(a.value), {
322
+ class: C(l(d)(o, o.class))
321
323
  }, {
322
- default: l(() => [
324
+ default: B(() => [
323
325
  A(T(t.icon), 1)
324
326
  ]),
325
327
  _: 1
@@ -327,5 +329,5 @@ const E = N("material-symbols-outlined am-icon h-auto w-[1em] rounded-sm overflo
327
329
  }
328
330
  });
329
331
  export {
330
- u as _
332
+ R as _
331
333
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, openBlock as t, createBlock as n, withCtx as r, createVNode as c } from "vue";
2
2
  import s from "./ambutton/index.js";
3
- import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
3
+ import { _ } from "./AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
4
4
  const a = { name: "AmIconButton" }, f = /* @__PURE__ */ e({
5
5
  ...a,
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, computed as i, openBlock as n, createElementBlock as g, createElementVNode as l, createBlock as c, normalizeClass as m, createCommentVNode as u, withCtx as s, createTextVNode as p, toDisplayString as _, createVNode as v, unref as x } from "vue";
2
2
  import w from "primevue/toast";
3
- import { _ as C } from "./AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
3
+ import { _ as C } from "./AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
4
4
  import { _ as f } from "./AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
5
5
  const d = {
6
6
  info: {
package/amalert/index.js CHANGED
@@ -2,7 +2,7 @@ import { defineComponent as w, computed as _, openBlock as o, createElementBlock
2
2
  import { cva as z } from "class-variance-authority";
3
3
  import { twMerge as C } from "tailwind-merge";
4
4
  import { _ as f } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
5
- import { _ as u } from "../AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
5
+ import { _ as u } from "../AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
6
6
  const V = z("w-fit bg-green-100 shadow-sm rounded-md p-3 flex flex-row gap-2", {
7
7
  variants: {
8
8
  variant: {
package/ambutton/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, createPropsRestProxy as m, computed as n, openBlock as t, createBlock as a, unref as y, mergeProps as b, withCtx as B, createCommentVNode as i, createElementBlock as g, Fragment as v, createTextVNode as h, toDisplayString as z, renderSlot as k } from "vue";
2
2
  import P from "primevue/button";
3
- import { _ as l } from "../AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
3
+ import { _ as l } from "../AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
4
4
  import { _ as I } from "../_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const C = /* @__PURE__ */ f({
6
6
  __name: "AmButton",
package/amchip/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../AmChip.vue_vue_type_script_setup_true_lang-YEYtC2BC.js";
1
+ import { _ as f } from "../AmChip.vue_vue_type_script_setup_true_lang-CEYI_kqc.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as q, ref as E, computed as v, defineAsyncComponent as G, onMounted as H, watch as J, openBlock as f, createElementBlock as b, Fragment as x, createVNode as n, unref as F, withCtx as o, createElementVNode as d, createTextVNode as m, toDisplayString as _, renderList as K, createCommentVNode as I, createBlock as Q, resolveDynamicComponent as W, mergeProps as Z } from "vue";
2
2
  import N from "primevue/drawer";
3
- import { _ as ee } from "../AmChip.vue_vue_type_script_setup_true_lang-YEYtC2BC.js";
3
+ import { _ as ee } from "../AmChip.vue_vue_type_script_setup_true_lang-CEYI_kqc.js";
4
4
  import { _ as L } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
5
5
  import C from "../ambutton/index.js";
6
- import { _ as te } from "../AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
7
- import { _ as B } from "../AmIconButton.vue_vue_type_script_setup_true_lang-Cberzybd.js";
6
+ import { _ as te } from "../AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
7
+ import { _ as B } from "../AmIconButton.vue_vue_type_script_setup_true_lang-DGBZKAVF.js";
8
8
  import { _ as ae } from "../AmLoading.vue_vue_type_script_setup_true_lang-DjatXofa.js";
9
9
  const g = (t) => new Date(t), $ = (t) => g(t).toLocaleDateString("pt-BR"), se = ([t, a]) => g(t).getDate() === g(a).getDate(), oe = (t, a) => {
10
10
  if (!a || !Array.isArray(a)) return "";
package/amhelper/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../AmHelper.vue_vue_type_script_setup_true_lang-BYQT8u4W.js";
1
+ import { _ as f } from "../AmHelper.vue_vue_type_script_setup_true_lang-9L80H-AB.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/amicon/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
1
+ import { _ as f } from "../AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../AmIconButton.vue_vue_type_script_setup_true_lang-Cberzybd.js";
1
+ import { _ as f } from "../AmIconButton.vue_vue_type_script_setup_true_lang-DGBZKAVF.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,16 @@
1
+ import { InputTextEmits, InputTextProps, InputTextSlots } from 'primevue';
2
+ import { DefineComponent } from 'vue';
3
+
4
+ export interface AmInputCurrencyProps extends /* @vue-ignore */ InputTextProps {
5
+ currency?: string;
6
+ locale?: string;
7
+ inCents?: boolean;
8
+ }
9
+
10
+ export interface AmInputCurrencySlots extends InputTextSlots {}
11
+
12
+ export interface AmInputCurrencyEmits extends InputTextEmits {}
13
+
14
+ declare const AmInputCurrency: DefineComponent<AmInputCurrencyProps, AmInputCurrencySlots, AmInputCurrencyEmits>;
15
+
16
+ export default AmInputCurrency;
@@ -0,0 +1,85 @@
1
+ import { defineComponent as C, mergeModels as R, createPropsRestProxy as N, useModel as D, ref as I, watch as V, openBlock as p, createBlock as y, unref as A, mergeProps as B } from "vue";
2
+ import { InputText as H } from "primevue";
3
+ const c = (e, t = !1) => {
4
+ const n = Number(e) || 0;
5
+ return t ? -n : n;
6
+ }, L = (e) => {
7
+ if (!e) return 0;
8
+ const t = e.startsWith("-"), n = e.replace(/[^\d]/g, "");
9
+ if (!n) return 0;
10
+ const o = n.padStart(3, "0").replace(/(\d{2})$/, ".$1");
11
+ return c(o, t);
12
+ }, u = {
13
+ AUD: "en-AU",
14
+ BGN: "bg-BG",
15
+ BRL: "pt-BR",
16
+ CAD: "en-CA",
17
+ CHF: ["de-CH", "fr-CH", "it-CH"],
18
+ // multiple locales array
19
+ CNY: "zh-CN",
20
+ CZK: "cs-CZ",
21
+ DKK: "da-DK",
22
+ EUR: ["de-DE", "fr-FR", "es-ES", "it-IT"],
23
+ // multiple locales array
24
+ GBP: "en-GB",
25
+ HKD: "zh-HK",
26
+ HUF: "hu-HU",
27
+ IDR: "id-ID",
28
+ ILS: "he-IL",
29
+ INR: "en-IN",
30
+ ISK: "is-IS",
31
+ JPY: "ja-JP",
32
+ KRW: "ko-KR",
33
+ MXN: "es-MX",
34
+ MYR: "ms-MY",
35
+ NOK: "no-NO",
36
+ NZD: "en-NZ",
37
+ PHP: "en-PH",
38
+ PLN: "pl-PL",
39
+ RON: "ro-RO",
40
+ SEK: "sv-SE",
41
+ SGD: "en-SG",
42
+ THB: "th-TH",
43
+ TRY: "tr-TR",
44
+ USD: "en-US",
45
+ ZAR: "en-ZA"
46
+ }, K = "pt-BR", m = "BRL", P = (e = m) => {
47
+ if (e in u) {
48
+ const t = u[e];
49
+ return Array.isArray(t) ? t[0] : t;
50
+ } else
51
+ return K;
52
+ }, s = (e, t = m, n) => {
53
+ const o = n || P(t);
54
+ return new Intl.NumberFormat(o, {
55
+ style: "currency",
56
+ currency: t
57
+ }).format(c(e));
58
+ }, S = { name: "AmInputCurrency" }, E = /* @__PURE__ */ C({
59
+ ...S,
60
+ props: /* @__PURE__ */ R({
61
+ currency: {},
62
+ locale: {},
63
+ inCents: { type: Boolean }
64
+ }, {
65
+ modelValue: { default: 0 },
66
+ modelModifiers: {}
67
+ }),
68
+ emits: ["update:modelValue"],
69
+ setup(e) {
70
+ const t = N(e, ["currency", "locale", "inCents"]), n = D(e, "modelValue"), o = I(""), i = (l) => {
71
+ const a = c(l), r = e.inCents ? a / 100 : a;
72
+ o.value = s(r, e.currency, e.locale);
73
+ }, d = (l) => {
74
+ const a = l.target, r = L(a.value), f = e.inCents ? r * 100 : r;
75
+ n.value = f, a.value = s(r, e.currency, e.locale);
76
+ };
77
+ return V(() => n.value, i, { immediate: !0 }), (l, a) => (p(), y(A(H), B(t, {
78
+ value: o.value,
79
+ onInput: d
80
+ }), null, 16, ["value"]));
81
+ }
82
+ });
83
+ export {
84
+ E as default
85
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as _, openBlock as a, createElementBlock as n, normalizeClass as v, unref as w, createElementVNode as i, createVNode as b, createBlock as c, withCtx as d, createTextVNode as l, toDisplayString as f, createCommentVNode as r, renderSlot as m } from "vue";
2
2
  import { _ as u } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
3
- import { _ as x } from "../AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
3
+ import { _ as x } from "../AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
4
4
  import { cva as N } from "class-variance-authority";
5
5
  import { twMerge as h } from "tailwind-merge";
6
6
  import { _ as k } from "../_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, openBlock as o, createBlock as n } from "vue";
2
- import { _ as r } from "../AmToaster.vue_vue_type_style_index_0_global_true_lang-BPeMKmnc.js";
2
+ import { _ as r } from "../AmToaster.vue_vue_type_style_index_0_global_true_lang-D_naYRdN.js";
3
3
  const p = /* @__PURE__ */ e({
4
4
  __name: "AmPlugins",
5
5
  setup(t) {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, mergeModels as p, useModel as c, openBlock as o, createElementBlock as s, Fragment as f, renderList as _, createElementVNode as V, createVNode as l, unref as $, withCtx as v, createTextVNode as h, toDisplayString as b, createBlock as k, createCommentVNode as x } from "vue";
2
2
  import { RadioButton as g } from "primevue";
3
3
  import { _ as y } from "../AmText.vue_vue_type_script_setup_true_lang-yjw50cPR.js";
4
- import { _ as B } from "../AmIcon.vue_vue_type_script_setup_true_lang-DkJ2sUVG.js";
5
- import { _ as N } from "../AmHelper.vue_vue_type_script_setup_true_lang-BYQT8u4W.js";
4
+ import { _ as B } from "../AmIcon.vue_vue_type_script_setup_true_lang-C5fJ4KiE.js";
5
+ import { _ as N } from "../AmHelper.vue_vue_type_script_setup_true_lang-9L80H-AB.js";
6
6
  import { _ as P } from "../_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const T = { class: "space-y-2 am-radio-options" }, C = ["data-test", "for"], I = { class: "flex items-center justify-center relative" }, M = { name: "AmRadios" }, R = /* @__PURE__ */ u({
8
8
  ...M,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../AmToaster.vue_vue_type_style_index_0_global_true_lang-BPeMKmnc.js";
1
+ import { _ as f } from "../AmToaster.vue_vue_type_style_index_0_global_true_lang-D_naYRdN.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appmax_npm/ds-prime",
3
- "version": "1.0.0-alpha.113",
3
+ "version": "1.0.0-alpha.115",
4
4
  "description": "Design System da Appmax baseado no Primevue",
5
5
  "author": "Appmax",
6
6
  "exports": {
@@ -0,0 +1,16 @@
1
+ import { openBlock as t, createElementBlock as c, createElementVNode as e } from "vue";
2
+ const n = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ viewBox: "0 0 32 32"
5
+ };
6
+ function o(a, l) {
7
+ return t(), c("svg", n, l[0] || (l[0] = [
8
+ e("path", { d: "m20.6 22.026-4.013-4.013a.6.6 0 0 0-.414-.173.6.6 0 0 0-.413.173l-4.027 4.027c-.453.453-1.16 1.187-3.52 1.187l4.947 4.933a4 4 0 0 0 5.653 0l4.96-4.947c-1.213 0-2.226-.24-3.173-1.187M11.733 9.96l4.027 4.027a.6.6 0 0 0 .413.173.6.6 0 0 0 .414-.173L20.573 10c.947-.987 2.027-1.213 3.24-1.213l-4.96-4.947a4 4 0 0 0-5.653 0L8.253 8.773c2.347 0 3.067.774 3.48 1.187" }, null, -1),
9
+ e("path", { d: "m28.147 13.133-3-3.013h-1.68c-.72 0-1.44.293-1.934.813l-4 4c-.373.374-.866.56-1.36.56a2 2 0 0 1-1.36-.56l-4.026-4.04c-.507-.506-1.2-.8-1.934-.8h-1.96L3.84 13.16a4 4 0 0 0 0 5.653l3.053 3.067h1.974a2.78 2.78 0 0 0 1.933-.8l4.027-4.027c.373-.373.866-.56 1.36-.56.493 0 .986.187 1.36.56l4.013 4.014c.507.506 1.2.8 1.933.8h1.68l3-3.014c1.56-1.573 1.56-4.133-.026-5.72" }, null, -1)
10
+ ]));
11
+ }
12
+ const d = { render: o };
13
+ export {
14
+ d as default,
15
+ o as render
16
+ };
@@ -0,0 +1,18 @@
1
+ import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
2
+ const n = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ viewBox: "0 0 32 32"
5
+ };
6
+ function l(s, e) {
7
+ return t(), o("svg", n, e[0] || (e[0] = [
8
+ r("path", {
9
+ d: "M14.868.204 5.17 3.841a3.255 3.255 0 0 0-2.102 3.04v7.596c0 7.808 5.06 15.147 12.01 17.378a3 3 0 0 0 1.843 0c6.951-2.231 12.01-9.554 12.01-17.378V6.88c0-1.342-.84-2.554-2.1-3.023L17.13.22a3.12 3.12 0 0 0-2.263-.016z",
10
+ style: { "stroke-width": "2.15528" }
11
+ }, null, -1)
12
+ ]));
13
+ }
14
+ const d = { render: l };
15
+ export {
16
+ d as default,
17
+ l as render
18
+ };