@point-hub/papp 0.0.31 → 0.0.32

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.
@@ -2,17 +2,14 @@ export type BaseButtonColorType = 'none' | 'primary' | 'secondary' | 'info' | 's
2
2
  export type BaseButtonVariantType = 'filled' | 'light' | 'outlined' | 'text';
3
3
  export type BaseButtonShapeType = 'sharp' | 'rounded' | 'pill';
4
4
  export type BaseButtonSizeType = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
5
- export type BaseButtonType = 'submit' | 'button' | 'reset';
6
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
6
  href: string;
8
- type?: BaseButtonType;
9
7
  size?: BaseButtonSizeType;
10
8
  color?: BaseButtonColorType;
11
9
  variant?: BaseButtonVariantType;
12
10
  shape?: BaseButtonShapeType;
13
11
  isBlock?: boolean;
14
12
  }>, {
15
- type: string;
16
13
  size: string;
17
14
  color: string;
18
15
  shape: string;
@@ -20,14 +17,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
17
  isBlock: boolean;
21
18
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
22
19
  href: string;
23
- type?: BaseButtonType;
24
20
  size?: BaseButtonSizeType;
25
21
  color?: BaseButtonColorType;
26
22
  variant?: BaseButtonVariantType;
27
23
  shape?: BaseButtonShapeType;
28
24
  isBlock?: boolean;
29
25
  }>, {
30
- type: string;
31
26
  size: string;
32
27
  color: string;
33
28
  shape: string;
@@ -35,7 +30,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
30
  isBlock: boolean;
36
31
  }>>>, {
37
32
  size: BaseButtonSizeType;
38
- type: BaseButtonType;
39
33
  color: BaseButtonColorType;
40
34
  variant: BaseButtonVariantType;
41
35
  shape: BaseButtonShapeType;
package/dist/index.js CHANGED
@@ -3251,11 +3251,10 @@ const Mu = { class: "dropdown-trigger-button" }, _u = /* @__PURE__ */ H({
3251
3251
  class: Z([t.icon, "inline-block", { "w-1.2em": t.fixedWidth }])
3252
3252
  }, null, 2));
3253
3253
  }
3254
- }), Vu = ["href", "type"], Nu = /* @__PURE__ */ H({
3254
+ }), Vu = ["href"], Nu = /* @__PURE__ */ H({
3255
3255
  __name: "base-link",
3256
3256
  props: {
3257
3257
  href: {},
3258
- type: { default: "button" },
3259
3258
  size: { default: "md" },
3260
3259
  color: { default: "none" },
3261
3260
  variant: { default: "filled" },
@@ -3269,13 +3268,12 @@ const Mu = { class: "dropdown-trigger-button" }, _u = /* @__PURE__ */ H({
3269
3268
  let a = "";
3270
3269
  return t.shape === "sharp" && (a = "rounded-none"), t.shape === "rounded" && (a = "rounded-lg"), t.shape === "pill" && (a = "rounded-full"), n.push(`${a}`), t.isBlock && n.push("btn-block"), t.size !== "none" && n.push(`btn-${t.size}`), (i, o) => (k(), R("a", {
3271
3270
  href: t.href,
3272
- class: Z(["btn", n]),
3273
- type: i.type
3271
+ class: Z(["btn", n])
3274
3272
  }, [
3275
3273
  ie(i.$slots, "default", {}, void 0, !0)
3276
3274
  ], 8, Vu));
3277
3275
  }
3278
- }), ju = /* @__PURE__ */ fe(Nu, [["__scopeId", "data-v-03499751"]]), Hu = ["src"], Uu = /* @__PURE__ */ H({
3276
+ }), ju = /* @__PURE__ */ fe(Nu, [["__scopeId", "data-v-f88c0ca7"]]), Hu = ["src"], Uu = /* @__PURE__ */ H({
3279
3277
  __name: "base-mask",
3280
3278
  props: {
3281
3279
  shape: {},
@@ -7527,7 +7525,7 @@ const qf = /* @__PURE__ */ H({
7527
7525
  )
7528
7526
  );
7529
7527
  const l = () => {
7530
- n.disabled || (a.value = null);
7528
+ n.disabled || (a.value = { label: "" });
7531
7529
  };
7532
7530
  return (s, d) => {
7533
7531
  const u = Ne("base-icon");
@@ -7544,82 +7542,86 @@ const qf = /* @__PURE__ */ H({
7544
7542
  modelValue: a.value,
7545
7543
  "onUpdate:modelValue": d[3] || (d[3] = (p) => a.value = p)
7546
7544
  }, {
7547
- default: q(() => [
7548
- C("div", ov, [
7549
- C("div", iv, [
7550
- te(Y(Cs), {
7551
- class: Z(["form-input", {
7552
- "border-simple": s.border === "simple",
7553
- "border-full": s.border === "full",
7554
- "border-none": s.border === "none",
7555
- "input-disabled": s.disabled
7556
- }]),
7557
- autocomplete: "off",
7558
- required: n.required,
7559
- disabled: n.disabled,
7560
- placeholder: s.placeholder,
7561
- displayValue: (p) => p.label,
7562
- onChange: d[0] || (d[0] = (p) => rt(i) ? i.value = p.target.value : i = p.target.value)
7563
- }, null, 8, ["required", "disabled", "placeholder", "class", "displayValue"]),
7564
- Object.keys(a.value ?? {}).length === 0 ? (k(), X(Y(ks), {
7565
- key: 0,
7566
- class: "absolute inset-y-0 right-0 flex items-center pr-2"
7567
- }, {
7568
- default: q(() => [
7569
- te(u, { icon: "i-far-angle-down" })
7570
- ]),
7571
- _: 1
7572
- })) : ae("", !0),
7573
- Object.keys(a.value ?? {}).length > 0 ? (k(), X(ue($e), {
7574
- key: 1,
7575
- variant: "text",
7576
- type: "button",
7577
- class: "absolute inset-y-0 right-0 flex items-center pr-2",
7578
- onClick: d[1] || (d[1] = (p) => l())
7579
- }, {
7580
- default: q(() => [
7581
- te(u, { icon: "i-far-xmark" })
7582
- ]),
7583
- _: 1
7584
- })) : ae("", !0)
7585
- ]),
7586
- te(Y(oa), {
7587
- leave: "transition ease-in duration-100",
7588
- leaveFrom: "opacity-100",
7589
- leaveTo: "opacity-0",
7590
- onAfterLeave: d[2] || (d[2] = (p) => rt(i) ? i.value = "" : i = "")
7591
- }, {
7592
- default: q(() => [
7593
- te(Y(Es), { class: "options" }, {
7545
+ default: q(() => {
7546
+ var p, v;
7547
+ return [
7548
+ C("div", ov, [
7549
+ C("div", iv, [
7550
+ te(Y(Cs), {
7551
+ class: Z(["form-input", {
7552
+ "border-simple": s.border === "simple",
7553
+ "border-full": s.border === "full",
7554
+ "border-none": s.border === "none",
7555
+ "input-disabled": s.disabled
7556
+ }]),
7557
+ autocomplete: "off",
7558
+ required: n.required,
7559
+ disabled: n.disabled,
7560
+ placeholder: s.placeholder,
7561
+ displayValue: (h) => h.label,
7562
+ onChange: d[0] || (d[0] = (h) => rt(i) ? i.value = h.target.value : i = h.target.value)
7563
+ }, null, 8, ["required", "disabled", "placeholder", "class", "displayValue"]),
7564
+ ((p = a.value) == null ? void 0 : p.label) === "" ? (k(), X(Y(ks), {
7565
+ key: 0,
7566
+ class: "absolute inset-y-0 right-0 flex items-center"
7567
+ }, {
7594
7568
  default: q(() => [
7595
- Y(o).length === 0 && Y(i) !== "" ? (k(), R("div", lv, " Nothing found. ")) : ae("", !0),
7596
- (k(!0), R(Ce, null, Ze(Y(o), (p) => (k(), X(Y(Ds), {
7597
- as: "template",
7598
- key: p.id,
7599
- value: p
7600
- }, {
7601
- default: q(({ selected: v, active: h }) => [
7602
- C("li", {
7603
- class: Z(["option", {
7604
- "option-active": h,
7605
- "option-inactive": !h
7606
- }])
7607
- }, [
7608
- C("span", {
7609
- class: Z(["block", { "font-medium": v, "font-normal": !v }])
7610
- }, de(p.label), 3)
7611
- ], 2)
7612
- ]),
7613
- _: 2
7614
- }, 1032, ["value"]))), 128))
7569
+ te(u, { icon: "i-far-angle-down" })
7615
7570
  ]),
7616
7571
  _: 1
7617
- })
7572
+ })) : ae("", !0),
7573
+ ((v = a.value) == null ? void 0 : v.label) !== "" ? (k(), X(ue($e), {
7574
+ key: 1,
7575
+ size: "none",
7576
+ variant: "text",
7577
+ type: "button",
7578
+ class: "absolute inset-y-0 right-0 flex items-center",
7579
+ onClick: d[1] || (d[1] = (h) => l())
7580
+ }, {
7581
+ default: q(() => [
7582
+ te(u, { icon: "i-far-xmark" })
7583
+ ]),
7584
+ _: 1
7585
+ })) : ae("", !0)
7618
7586
  ]),
7619
- _: 1
7620
- })
7621
- ])
7622
- ]),
7587
+ te(Y(oa), {
7588
+ leave: "transition ease-in duration-100",
7589
+ leaveFrom: "opacity-100",
7590
+ leaveTo: "opacity-0",
7591
+ onAfterLeave: d[2] || (d[2] = (h) => rt(i) ? i.value = "" : i = "")
7592
+ }, {
7593
+ default: q(() => [
7594
+ te(Y(Es), { class: "options" }, {
7595
+ default: q(() => [
7596
+ Y(o).length === 0 && Y(i) !== "" ? (k(), R("div", lv, " Nothing found. ")) : ae("", !0),
7597
+ (k(!0), R(Ce, null, Ze(Y(o), (h) => (k(), X(Y(Ds), {
7598
+ as: "template",
7599
+ key: h.id,
7600
+ value: h
7601
+ }, {
7602
+ default: q(({ selected: m, active: f }) => [
7603
+ C("li", {
7604
+ class: Z(["option", {
7605
+ "option-active": f,
7606
+ "option-inactive": !f
7607
+ }])
7608
+ }, [
7609
+ C("span", {
7610
+ class: Z(["block", { "font-medium": m, "font-normal": !m }])
7611
+ }, de(h.label), 3)
7612
+ ], 2)
7613
+ ]),
7614
+ _: 2
7615
+ }, 1032, ["value"]))), 128))
7616
+ ]),
7617
+ _: 1
7618
+ })
7619
+ ]),
7620
+ _: 1
7621
+ })
7622
+ ])
7623
+ ];
7624
+ }),
7623
7625
  _: 1
7624
7626
  }, 8, ["modelValue"])
7625
7627
  ]),
@@ -7627,7 +7629,7 @@ const qf = /* @__PURE__ */ H({
7627
7629
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
7628
7630
  };
7629
7631
  }
7630
- }), uv = /* @__PURE__ */ fe(sv, [["__scopeId", "data-v-08417460"]]), dv = { class: "flex gap-2 items-center" }, cv = ["id", "required", "disabled"], pv = ["for"], fv = { key: 0 }, vv = /* @__PURE__ */ H({
7632
+ }), uv = /* @__PURE__ */ fe(sv, [["__scopeId", "data-v-dbc1c98c"]]), dv = { class: "flex gap-2 items-center" }, cv = ["id", "required", "disabled"], pv = ["for"], fv = { key: 0 }, vv = /* @__PURE__ */ H({
7631
7633
  __name: "base-checkbox",
7632
7634
  props: {
7633
7635
  modelValue: { type: Boolean, default: !1 },