monobill-mintui 0.4.2 → 0.4.3

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.
Files changed (78) hide show
  1. package/dist/Icon-BTuYBm_3.cjs +1 -0
  2. package/dist/Icon-ByNhn8tE.js +77 -0
  3. package/dist/button-CAQ8mBQ2.js +575 -0
  4. package/dist/button-DuNZkwFV.cjs +1 -0
  5. package/dist/button.cjs +1 -0
  6. package/dist/button.d.ts +1 -0
  7. package/dist/button.js +2 -0
  8. package/dist/card-C1AqNkxK.cjs +1 -0
  9. package/dist/card-LNjZ86sr.js +58 -0
  10. package/dist/card.cjs +1 -0
  11. package/dist/card.d.ts +1 -0
  12. package/dist/card.js +2 -0
  13. package/dist/checkbox-Bkgxfl0k.js +169 -0
  14. package/dist/checkbox-DgwXHIbu.cjs +1 -0
  15. package/dist/checkbox.cjs +1 -0
  16. package/dist/checkbox.d.ts +1 -0
  17. package/dist/checkbox.js +1 -0
  18. package/dist/choice-BAk8Jd5E.cjs +1 -0
  19. package/dist/choice-Cs16XiRh.js +204 -0
  20. package/dist/choice.cjs +1 -0
  21. package/dist/choice.d.ts +1 -0
  22. package/dist/choice.js +1 -0
  23. package/dist/grid-ByGfCtMT.cjs +1 -0
  24. package/dist/grid-DhnNax_w.js +62 -0
  25. package/dist/grid.cjs +1 -0
  26. package/dist/grid.d.ts +1 -0
  27. package/dist/grid.js +2 -0
  28. package/dist/icon-D8dpuFVm.js +701 -0
  29. package/dist/icon-Dut5ZPmM.cjs +1 -0
  30. package/dist/icon.cjs +1 -0
  31. package/dist/icon.d.ts +1 -0
  32. package/dist/icon.js +3 -0
  33. package/dist/index.cjs +1 -63
  34. package/dist/index.d.ts +35 -0
  35. package/dist/index.js +16 -2756
  36. package/dist/link-B-z-io7I.cjs +1 -0
  37. package/dist/link-DC8l274I.js +75 -0
  38. package/dist/link.cjs +1 -0
  39. package/dist/link.d.ts +1 -0
  40. package/dist/link.js +2 -0
  41. package/dist/mintui-elements.d.ts +78 -0
  42. package/dist/modal-BZYcRU3i.js +98 -0
  43. package/dist/modal-C_ukm1We.cjs +1 -0
  44. package/dist/modal.cjs +1 -0
  45. package/dist/modal.d.ts +1 -0
  46. package/dist/modal.js +1 -0
  47. package/dist/page-CJ3M0wAd.cjs +1 -0
  48. package/dist/page-aBsDfG3x.js +112 -0
  49. package/dist/page.cjs +1 -0
  50. package/dist/page.d.ts +1 -0
  51. package/dist/page.js +2 -0
  52. package/dist/popover-7bn3gySt.js +181 -0
  53. package/dist/popover-CuSBQ8Jm.cjs +1 -0
  54. package/dist/popover.cjs +1 -0
  55. package/dist/popover.d.ts +1 -0
  56. package/dist/popover.js +1 -0
  57. package/dist/spinner-DqXU-cr-.js +111 -0
  58. package/dist/spinner-GtQIe8rS.cjs +63 -0
  59. package/dist/spinner.cjs +1 -0
  60. package/dist/spinner.d.ts +1 -0
  61. package/dist/spinner.js +2 -0
  62. package/dist/stack-D0noPfD1.js +114 -0
  63. package/dist/stack-tFy8YlX2.cjs +1 -0
  64. package/dist/stack.cjs +1 -0
  65. package/dist/stack.d.ts +1 -0
  66. package/dist/stack.js +2 -0
  67. package/dist/styles.css +1 -0
  68. package/dist/switch-DQ0Eaz6M.js +138 -0
  69. package/dist/switch-DeQNPnla.cjs +1 -0
  70. package/dist/switch.cjs +1 -0
  71. package/dist/switch.d.ts +1 -0
  72. package/dist/switch.js +2 -0
  73. package/dist/text-CoinZsjJ.cjs +1 -0
  74. package/dist/text-q58TQcH-.js +111 -0
  75. package/dist/text.cjs +1 -0
  76. package/dist/text.d.ts +1 -0
  77. package/dist/text.js +2 -0
  78. package/package.json +50 -23
@@ -0,0 +1,62 @@
1
+ //#region src/components/grid/Grid.js
2
+ var e = class extends HTMLElement {
3
+ static get observedAttributes() {
4
+ return [
5
+ "columns",
6
+ "sm",
7
+ "md",
8
+ "lg",
9
+ "xl",
10
+ "gap"
11
+ ];
12
+ }
13
+ constructor() {
14
+ super();
15
+ }
16
+ connectedCallback() {
17
+ this.classList.add("box-border", "m-0", "p-0", "border-0", "align-baseline", "block"), this.render();
18
+ }
19
+ attributeChangedCallback(e, t, n) {
20
+ t !== n && this.render();
21
+ }
22
+ getColumns() {
23
+ return this.getAttribute("columns") || "1";
24
+ }
25
+ getSm() {
26
+ return this.getAttribute("sm") || null;
27
+ }
28
+ getMd() {
29
+ return this.getAttribute("md") || null;
30
+ }
31
+ getLg() {
32
+ return this.getAttribute("lg") || null;
33
+ }
34
+ getXl() {
35
+ return this.getAttribute("xl") || null;
36
+ }
37
+ getGap() {
38
+ return "3";
39
+ }
40
+ getGridClasses() {
41
+ let e = ["grid"], t = this.getColumns();
42
+ e.push(`grid-cols-${t}`);
43
+ let n = this.getSm();
44
+ n && e.push(`sm:grid-cols-${n}`);
45
+ let r = this.getMd();
46
+ r && e.push(`md:grid-cols-${r}`);
47
+ let i = this.getLg();
48
+ i && e.push(`lg:grid-cols-${i}`);
49
+ let a = this.getXl();
50
+ a && e.push(`xl:grid-cols-${a}`);
51
+ let o = this.getGap();
52
+ return e.push(`gap-${o}`), e;
53
+ }
54
+ render() {
55
+ Array.from(this.classList).filter((e) => e.startsWith("grid-cols-") || e.startsWith("sm:grid-cols-") || e.startsWith("md:grid-cols-") || e.startsWith("lg:grid-cols-") || e.startsWith("xl:grid-cols-") || e.startsWith("gap-")).forEach((e) => this.classList.remove(e)), this.classList.contains("grid") || this.classList.add("grid"), this.getGridClasses().forEach((e) => {
56
+ e && e !== "grid" && this.classList.add(e);
57
+ });
58
+ }
59
+ };
60
+ customElements.get("mint-grid") || customElements.define("mint-grid", e);
61
+ //#endregion
62
+ export { e as t };
package/dist/grid.cjs ADDED
@@ -0,0 +1 @@
1
+ const e=require(`./grid-ByGfCtMT.cjs`);module.exports=e.t;
package/dist/grid.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { MintGrid as default } from './mintui-elements'
package/dist/grid.js ADDED
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./grid-DhnNax_w.js";
2
+ export { e as default };