@fewangsit/wangsvue-presets 1.0.99-rc.1 → 1.0.100-alpha.0

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 (65) hide show
  1. package/fixedasset/buttonradio/index.d.ts +6 -4
  2. package/fixedasset/buttonradio/index.js +8 -12
  3. package/fixedasset/checkbox/index.js +1 -3
  4. package/fixedasset/fieldwrapper/index.d.ts +5 -2
  5. package/fixedasset/fieldwrapper/index.js +4 -1
  6. package/fixedasset/index.d.ts +2 -2
  7. package/fixedasset/index.es.js +664 -326
  8. package/fixedasset/index.js +94 -94
  9. package/fixedasset/index.system.js +2 -2
  10. package/fixedasset/inputotp/index.d.ts +1 -136
  11. package/fixedasset/inputotp/index.js +50 -53
  12. package/fixedasset/password/index.js +1 -0
  13. package/fixedasset/style.css +137 -49
  14. package/fixedasset/tabmenu/index.d.ts +1 -104
  15. package/fixedasset/tabmenu/index.js +48 -27
  16. package/fixedasset/timeline/index.d.ts +24 -2
  17. package/fixedasset/timeline/index.js +24 -5
  18. package/fixedasset/tree/index.d.ts +14 -5
  19. package/fixedasset/tree/index.js +7 -4
  20. package/fixedasset/username/index.js +1 -1
  21. package/globalsettings/buttonradio/index.d.ts +6 -4
  22. package/globalsettings/buttonradio/index.js +8 -12
  23. package/globalsettings/checkbox/index.js +1 -3
  24. package/globalsettings/fieldwrapper/index.d.ts +5 -2
  25. package/globalsettings/fieldwrapper/index.js +4 -1
  26. package/globalsettings/index.d.ts +1 -1
  27. package/globalsettings/index.es.js +520 -178
  28. package/globalsettings/index.js +26 -26
  29. package/globalsettings/index.system.js +2 -2
  30. package/globalsettings/style.css +120 -51
  31. package/globalsettings/tabmenu/index.d.ts +1 -104
  32. package/globalsettings/tabmenu/index.js +48 -27
  33. package/globalsettings/timeline/index.d.ts +22 -0
  34. package/globalsettings/timeline/index.js +19 -0
  35. package/package.json +1 -1
  36. package/supplyasset/buttonradio/index.d.ts +6 -4
  37. package/supplyasset/buttonradio/index.js +8 -12
  38. package/supplyasset/checkbox/index.js +1 -3
  39. package/supplyasset/fieldwrapper/index.d.ts +5 -2
  40. package/supplyasset/fieldwrapper/index.js +4 -1
  41. package/supplyasset/index.d.ts +1 -1
  42. package/supplyasset/index.es.js +543 -200
  43. package/supplyasset/index.js +24 -24
  44. package/supplyasset/index.system.js +2 -2
  45. package/supplyasset/style.css +120 -51
  46. package/supplyasset/tabmenu/index.d.ts +1 -104
  47. package/supplyasset/tabmenu/index.js +50 -28
  48. package/supplyasset/timeline/index.d.ts +22 -0
  49. package/supplyasset/timeline/index.js +19 -0
  50. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  51. package/wangsvue/buttonbulkaction/index.js +2 -1
  52. package/wangsvue/buttonradio/index.d.ts +2 -1
  53. package/wangsvue/buttonradio/index.js +3 -7
  54. package/wangsvue/checkbox/index.js +1 -3
  55. package/wangsvue/fieldwrapper/index.d.ts +5 -2
  56. package/wangsvue/fieldwrapper/index.js +4 -1
  57. package/wangsvue/index.d.ts +1 -1
  58. package/wangsvue/index.es.js +591 -260
  59. package/wangsvue/index.js +44 -44
  60. package/wangsvue/index.system.js +2 -2
  61. package/wangsvue/style.css +104 -51
  62. package/wangsvue/tabmenu/index.d.ts +1 -56
  63. package/wangsvue/tabmenu/index.js +20 -13
  64. package/wangsvue/timeline/index.d.ts +20 -0
  65. package/wangsvue/timeline/index.js +16 -0
@@ -1,4 +1,7 @@
1
- const y = {
1
+ var z = Object.defineProperty;
2
+ var _ = (e, t, a) => t in e ? z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var b = (e, t, a) => _(e, typeof t != "symbol" ? t + "" : t, a);
4
+ const A = {
2
5
  accordiontab: {
3
6
  header: ({ props: e }) => ({
4
7
  class: [
@@ -60,7 +63,7 @@ const y = {
60
63
  leaveToClass: "max-h-0"
61
64
  }
62
65
  }
63
- }, l = {
66
+ }, d = {
64
67
  root: ({ props: e }) => ({
65
68
  class: [
66
69
  // Alignment
@@ -109,7 +112,7 @@ const y = {
109
112
  "icon-class": "w-[10px] h-[10px] !text-[10px]",
110
113
  "data-wv-section": "removebutton"
111
114
  })
112
- }, w = {
115
+ }, S = {
113
116
  root: ({ context: e }) => ({
114
117
  class: [
115
118
  // Font
@@ -147,7 +150,7 @@ const y = {
147
150
  }
148
151
  ]
149
152
  })
150
- }, p = {
153
+ }, T = {
151
154
  root: ({ props: e, context: t }) => ({
152
155
  class: [
153
156
  "relative",
@@ -464,7 +467,7 @@ const y = {
464
467
  }
465
468
  ]
466
469
  })
467
- }, k = {
470
+ }, N = {
468
471
  root: ({ props: e }) => ({
469
472
  class: [
470
473
  "rounded ring-1 ring-success-500 p-[5px] ring-inset",
@@ -481,7 +484,7 @@ const y = {
481
484
  "data-wv-section": "icon",
482
485
  severity: "success"
483
486
  }
484
- }, C = {
487
+ }, F = {
485
488
  root: ({ context: e }) => ({
486
489
  class: [
487
490
  "rounded ring-1 ring-general-500 p-[5px] ring-inset",
@@ -498,7 +501,7 @@ const y = {
498
501
  ],
499
502
  "data-wv-section": "icon"
500
503
  })
501
- }, j = {
504
+ }, P = {
502
505
  buttontrigger: {
503
506
  root: ({ context: e }) => ({
504
507
  class: [
@@ -547,7 +550,7 @@ const y = {
547
550
  inputtext: {
548
551
  class: "!h-max !py-0 !px-0"
549
552
  }
550
- }, z = {
553
+ }, V = {
551
554
  root: ["w-max"],
552
555
  button: {
553
556
  class: [
@@ -556,7 +559,7 @@ const y = {
556
559
  "data-sp-section": "button-split"
557
560
  },
558
561
  menuButton: "!rounded-ss-none !rounded-es-none"
559
- }, u = navigator.userAgent.includes("Firefox"), _ = {
562
+ }, h = navigator.userAgent.includes("Firefox"), I = {
560
563
  root: ({ props: e }) => ({
561
564
  class: [
562
565
  // Display and Position
@@ -1017,8 +1020,8 @@ const y = {
1017
1020
  class: [
1018
1021
  "w-[39px] h-[26px] flex justify-center items-center ring-general-200 rounded",
1019
1022
  {
1020
- "ring-1": u,
1021
- "ring-[0.5px]": !u
1023
+ "ring-1": h,
1024
+ "ring-[0.5px]": !h
1022
1025
  }
1023
1026
  ]
1024
1027
  },
@@ -1143,7 +1146,7 @@ const y = {
1143
1146
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
1144
1147
  leaveToClass: "opacity-0"
1145
1148
  }
1146
- }, A = {
1149
+ }, E = {
1147
1150
  root: {
1148
1151
  class: [
1149
1152
  //Shape
@@ -1172,7 +1175,7 @@ const y = {
1172
1175
  footer: {
1173
1176
  class: ["inline-flex gap-1 text-xs items-center"]
1174
1177
  }
1175
- }, V = {
1178
+ }, B = {
1176
1179
  root: {
1177
1180
  class: [
1178
1181
  // Flexbox
@@ -1286,7 +1289,7 @@ const y = {
1286
1289
  }
1287
1290
  ]
1288
1291
  })
1289
- }, F = {
1292
+ }, U = {
1290
1293
  button: ({ props: e, buttonClass: t }) => ({
1291
1294
  class: [
1292
1295
  t,
@@ -1325,12 +1328,11 @@ const y = {
1325
1328
  buttondownload: {
1326
1329
  "data-wv-section": "changelog-dialog-button-download"
1327
1330
  }
1328
- }, s = {
1331
+ }, c = {
1329
1332
  root: {
1330
1333
  class: [
1331
1334
  "relative",
1332
1335
  "w-max items-center cursor-pointer",
1333
- "w-4 h-4",
1334
1336
  "shrink-0",
1335
1337
  // Alignment
1336
1338
  "inline-flex",
@@ -1347,8 +1349,7 @@ const y = {
1347
1349
  "items-center",
1348
1350
  "justify-center",
1349
1351
  // Size
1350
- "w-4",
1351
- "h-full",
1352
+ "w-4 h-4",
1352
1353
  // Shape
1353
1354
  "rounded",
1354
1355
  "border-2",
@@ -1437,7 +1438,7 @@ const y = {
1437
1438
  tooltipicon: {
1438
1439
  class: "text-primary-500 w-[10px] h-[10px]"
1439
1440
  }
1440
- }, S = {
1441
+ }, $ = {
1441
1442
  copybutton: {
1442
1443
  class: "peer-hover:visible scale-125 !absolute top-2 right-2 z-50"
1443
1444
  },
@@ -1457,7 +1458,7 @@ const y = {
1457
1458
  "px-2 bg-primary-100 sticky left-0 text-right select-none"
1458
1459
  ]
1459
1460
  }
1460
- }, T = {
1461
+ }, G = {
1461
1462
  menustart: {
1462
1463
  class: ""
1463
1464
  },
@@ -1481,7 +1482,7 @@ const y = {
1481
1482
  { invisible: e.dragable === !1 }
1482
1483
  ]
1483
1484
  })
1484
- }, P = {
1485
+ }, L = {
1485
1486
  root: {
1486
1487
  "data-wv-name": "datatable",
1487
1488
  "data-wv-section": "root",
@@ -1697,7 +1698,7 @@ const y = {
1697
1698
  class: "",
1698
1699
  template: "FirstPageLink PrevPageLink PageLinks JumpToPageInput NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown"
1699
1700
  })
1700
- }, h = {
1701
+ }, C = {
1701
1702
  root: ({ state: e }) => ({
1702
1703
  class: [
1703
1704
  // Shape
@@ -1890,7 +1891,7 @@ const y = {
1890
1891
  leaveActiveClass: "transition-all duration-200 ease-out",
1891
1892
  leaveToClass: "opacity-0 scale-75 mask-active"
1892
1893
  }
1893
- }, I = {
1894
+ }, R = {
1894
1895
  root: {
1895
1896
  class: ["!w-[clamp(360px,75vw,400px)]"],
1896
1897
  "data-wv-name": (e) => e ?? "root",
@@ -1932,7 +1933,7 @@ const y = {
1932
1933
  class: "flex items-end justify-end gap-1 !mt-0",
1933
1934
  "data-wv-section": "dialog-confirm-footer"
1934
1935
  }
1935
- }, $ = {
1936
+ }, M = {
1936
1937
  root: {
1937
1938
  class: ["max-w-[90vw]"],
1938
1939
  style: (e) => `width: ${e}`,
@@ -2036,9 +2037,9 @@ const y = {
2036
2037
  ]
2037
2038
  };
2038
2039
  },
2039
- token: l.root({ props: { severity: "dark" } }),
2040
- tokenLabel: l.input({ props: {}, context: {} }),
2041
- removeTokenIcon: l.removebutton({
2040
+ token: d.root({ props: { severity: "dark" } }),
2041
+ tokenLabel: d.input({ props: {}, context: {} }),
2042
+ removeTokenIcon: d.removebutton({
2042
2043
  props: { badgeSeverity: "dark" }
2043
2044
  }),
2044
2045
  loadingplaceholder: {
@@ -2115,12 +2116,12 @@ const y = {
2115
2116
  ]
2116
2117
  },
2117
2118
  headerCheckbox: {
2118
- ...s,
2119
+ ...c,
2119
2120
  root: {
2120
- class: ["!mx-auto", ...s.root.class]
2121
+ class: ["!mx-auto", ...c.root.class]
2121
2122
  }
2122
2123
  },
2123
- itemCheckbox: s,
2124
+ itemCheckbox: c,
2124
2125
  closeButton: {
2125
2126
  class: ["hidden"]
2126
2127
  },
@@ -2268,7 +2269,7 @@ const y = {
2268
2269
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
2269
2270
  leaveToClass: "opacity-0"
2270
2271
  }
2271
- }, M = {
2272
+ }, O = {
2272
2273
  root: ({ props: e, state: t }) => ({
2273
2274
  class: [
2274
2275
  // Display and Position
@@ -2460,7 +2461,7 @@ const y = {
2460
2461
  loadingplaceholder: {
2461
2462
  class: "text-general-200 font-light"
2462
2463
  }
2463
- }, R = {
2464
+ }, D = {
2464
2465
  // :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
2465
2466
  root: () => ({
2466
2467
  class: [
@@ -2501,14 +2502,14 @@ const y = {
2501
2502
  "validator-message": {
2502
2503
  class: ["static w-max transform-none"]
2503
2504
  }
2504
- }, B = [
2505
+ }, W = [
2505
2506
  {
2506
2507
  "ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
2507
2508
  "ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
2508
2509
  },
2509
2510
  "ring-inset",
2510
2511
  "ring-general-200"
2511
- ], L = {
2512
+ ], K = {
2512
2513
  css: `
2513
2514
  *[data-pd-ripple="true"]{
2514
2515
  overflow: hidden;
@@ -2585,7 +2586,7 @@ const y = {
2585
2586
  }
2586
2587
  }
2587
2588
  `
2588
- }, D = {
2589
+ }, Y = {
2589
2590
  root: ({ props: e }) => ({
2590
2591
  class: [
2591
2592
  "relative inline-block",
@@ -2723,7 +2724,7 @@ const y = {
2723
2724
  leaveActiveClass: "transition-all duration-150 ease-in",
2724
2725
  leaveToClass: "opacity-0 scale-75"
2725
2726
  }
2726
- }, E = {
2727
+ }, H = {
2727
2728
  root: ({ props: e }) => ({
2728
2729
  class: [
2729
2730
  "rounded-md p-3",
@@ -2753,7 +2754,7 @@ const y = {
2753
2754
  "font-medium"
2754
2755
  ]
2755
2756
  }
2756
- }, v = {
2757
+ }, j = {
2757
2758
  root: ({ props: e, context: t, parent: a }) => {
2758
2759
  var r, i;
2759
2760
  return {
@@ -2777,15 +2778,15 @@ const y = {
2777
2778
  ]
2778
2779
  };
2779
2780
  }
2780
- }, g = navigator.userAgent.includes("Firefox"), O = {
2781
+ }, v = navigator.userAgent.includes("Firefox"), q = {
2781
2782
  root: ({ context: e }) => ({
2782
2783
  class: [
2783
2784
  "flex flex-wrap gap-x-0.5 gap-y-[5px] items-center",
2784
2785
  "min-h-[26px] h-fit w-full",
2785
2786
  "ring-inset rounded px-[12px] py-[3px]",
2786
2787
  {
2787
- "ring-[1px]": g,
2788
- "ring-[0.5px]": !g
2788
+ "ring-[1px]": v,
2789
+ "ring-[0.5px]": !v
2789
2790
  },
2790
2791
  { "!ring-danger-500 !dark:ring-danger-500": e.invalidInput },
2791
2792
  { "!ring-general-200 !dark:ring-general-200": !e.invalidInput },
@@ -2794,7 +2795,7 @@ const y = {
2794
2795
  }),
2795
2796
  input: ({ context: e, parent: t, props: a }) => ({
2796
2797
  class: [
2797
- ...v.root({
2798
+ ...j.root({
2798
2799
  props: a,
2799
2800
  context: e,
2800
2801
  parent: t
@@ -2810,7 +2811,7 @@ const y = {
2810
2811
  erroroverlaypanel: {
2811
2812
  class: ["px-3 py-1 text-[12px] text-general-800"]
2812
2813
  }
2813
- }, f = navigator.userAgent.includes("Firefox"), H = {
2814
+ }, y = navigator.userAgent.includes("Firefox"), J = {
2814
2815
  root: ({ props: e }) => ({
2815
2816
  class: [
2816
2817
  {
@@ -2822,8 +2823,8 @@ const y = {
2822
2823
  "[&:has(:focus)]:!ring-primary-500 [&:has(:focus)_.inputgroupaddon]:!ring-primary-500": e.ring !== "none"
2823
2824
  },
2824
2825
  {
2825
- "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": f && e.ring !== "none",
2826
- "ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !f && e.ring !== "none"
2826
+ "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": y && e.ring !== "none",
2827
+ "ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !y && e.ring !== "none"
2827
2828
  },
2828
2829
  "[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]",
2829
2830
  "[&:has(input)]:cursor-text",
@@ -2835,7 +2836,7 @@ const y = {
2835
2836
  ],
2836
2837
  "data-wv-section": "inputgroup"
2837
2838
  })
2838
- }, q = {
2839
+ }, Z = {
2839
2840
  root: ({ props: e }) => ({
2840
2841
  class: [
2841
2842
  "inputgroupaddon",
@@ -2865,13 +2866,13 @@ const y = {
2865
2866
  "data-addon-variant": e.addonVariant
2866
2867
  // Used in inputgroup to set styling
2867
2868
  })
2868
- }, b = "text-xs font-medium tracking-[0.02em] leading-[18px]", m = "h-[26px]", N = {
2869
+ }, w = "text-xs font-medium tracking-[0.02em] leading-[18px]", p = "h-[26px]", Q = {
2869
2870
  root: ({ props: e, parent: t }) => ({
2870
2871
  class: [
2871
2872
  // Layout
2872
2873
  "flex items-center self-stretch shrink-0 grow",
2873
2874
  //Size
2874
- m,
2875
+ p,
2875
2876
  // Spacing
2876
2877
  "py-1 px-3",
2877
2878
  // Border
@@ -2884,7 +2885,7 @@ const y = {
2884
2885
  class: [
2885
2886
  "border-0 h-full w-full outline-none",
2886
2887
  "bg-inherit",
2887
- b,
2888
+ w,
2888
2889
  "placeholder:text-general-200 placeholder:font-light",
2889
2890
  t.disabled ? "text-general-200" : "text-general-800"
2890
2891
  ]
@@ -2892,8 +2893,8 @@ const y = {
2892
2893
  },
2893
2894
  inputresizer: {
2894
2895
  class: [
2895
- b,
2896
- m,
2896
+ w,
2897
+ p,
2897
2898
  "user-select-none py-1 px-3 block min-w-4 text-transparent"
2898
2899
  ]
2899
2900
  },
@@ -2932,7 +2933,7 @@ const y = {
2932
2933
  }
2933
2934
  ]
2934
2935
  })
2935
- }, c = ({ isFirefoxBased: e, invalidInput: t }) => [
2936
+ }, g = ({ isFirefoxBased: e, invalidInput: t }) => [
2936
2937
  { "ring-[1px]": e, "ring-[0.5px]": !e },
2937
2938
  { "!ring-danger-500": t },
2938
2939
  "ring-inset",
@@ -2942,23 +2943,23 @@ const y = {
2942
2943
  "[&:has(:focus)]:ring-1",
2943
2944
  "bg-white",
2944
2945
  "z-[0] [&:has(:focus)]:z-[12]"
2945
- ], G = {
2946
+ ], X = {
2946
2947
  dialcode: {
2947
2948
  root: (e) => ({
2948
- class: [...c(e), "rounded-l rounded-r-none"]
2949
+ class: [...g(e), "rounded-l rounded-r-none"]
2949
2950
  }),
2950
2951
  dropdownicon: ({ state: e }) => n.dropdownicon({ state: e })
2951
2952
  },
2952
2953
  input: (e) => ({
2953
2954
  class: [
2954
- ...c(e),
2955
+ ...g(e),
2955
2956
  "rounded-r rounded-l-none -ml-[1px]",
2956
2957
  "focus:bg-none",
2957
2958
  "focus:ring-primary-500",
2958
2959
  "focus:ring-1"
2959
2960
  ]
2960
2961
  })
2961
- }, J = {
2962
+ }, ee = {
2962
2963
  root: {
2963
2964
  class: [
2964
2965
  // Position
@@ -3058,7 +3059,7 @@ const y = {
3058
3059
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3059
3060
  leaveToClass: "opacity-0"
3060
3061
  }
3061
- }, Y = {
3062
+ }, te = {
3062
3063
  root: ({ props: e }) => ({
3063
3064
  class: [
3064
3065
  // Spacing and Shape
@@ -3134,7 +3135,7 @@ const y = {
3134
3135
  leaveActiveClass: "overflow-hidden transition-all duration-300 ease-in",
3135
3136
  leaveToClass: "max-h-0 opacity-0 !m-0"
3136
3137
  }
3137
- }, Z = {
3138
+ }, ae = {
3138
3139
  root: {
3139
3140
  class: [
3140
3141
  "h-max",
@@ -3165,7 +3166,7 @@ const y = {
3165
3166
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3166
3167
  leaveToClass: "opacity-0"
3167
3168
  }
3168
- }, K = {
3169
+ }, re = {
3169
3170
  root: {
3170
3171
  class: [
3171
3172
  // Flex & Alignment
@@ -3609,7 +3610,7 @@ const y = {
3609
3610
  current: {
3610
3611
  class: ["text-xs font-normal leading-6 px-3"]
3611
3612
  }
3612
- }, Q = {
3613
+ }, ne = {
3613
3614
  root: ({ props: e }) => ({
3614
3615
  class: [
3615
3616
  "w-full",
@@ -3698,7 +3699,7 @@ const y = {
3698
3699
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3699
3700
  leaveToClass: "opacity-0"
3700
3701
  }
3701
- }, x = navigator.userAgent.includes("Firefox"), o = {
3702
+ }, k = navigator.userAgent.includes("Firefox"), u = {
3702
3703
  root: ({ props: e }) => ({
3703
3704
  class: [
3704
3705
  // Alignments
@@ -3738,7 +3739,7 @@ const y = {
3738
3739
  },
3739
3740
  // Colors
3740
3741
  "ring-1",
3741
- { "ring-1": x, "ring-[0.5px]": !x },
3742
+ { "ring-1": k, "ring-[0.5px]": !k },
3742
3743
  {
3743
3744
  "before:bg-white": e.modelValue == e.trueValue,
3744
3745
  "before:bg-general-100": e.modelValue !== e.trueValue,
@@ -3812,8 +3813,8 @@ const y = {
3812
3813
  tooltipicon: {
3813
3814
  class: "text-primary-500 w-[10px] h-[10px]"
3814
3815
  }
3815
- }, U = {
3816
- root: ({ props: e }) => ({
3816
+ }, ie = {
3817
+ root: ({ props: e, state: t }) => ({
3817
3818
  class: [
3818
3819
  "relative",
3819
3820
  // Flexbox & Alignment
@@ -3826,10 +3827,10 @@ const y = {
3826
3827
  "rounded-full",
3827
3828
  // Colors
3828
3829
  {
3829
- "bg-white": !e.disabled || e.value == e.modelValue,
3830
- "bg-general-50": e.disabled && e.value != e.modelValue,
3831
- "ring-general-100": !e.disabled && e.value != e.modelValue,
3832
- "ring-primary-500": !e.disabled && e.value == e.modelValue,
3830
+ "bg-white": !e.disabled || t.checked,
3831
+ "bg-general-50": e.disabled && !t.checked,
3832
+ "ring-general-100": !e.disabled && !t.checked,
3833
+ "ring-primary-500": !e.disabled && t.checked,
3833
3834
  "ring-general-200": e.disabled
3834
3835
  },
3835
3836
  {
@@ -3841,7 +3842,7 @@ const y = {
3841
3842
  "data-wv-name": "buttonradio",
3842
3843
  "data-wv-section": "root"
3843
3844
  }),
3844
- box: ({ props: e }) => ({
3845
+ box: ({ props: e, state: t }) => ({
3845
3846
  class: [
3846
3847
  // Size
3847
3848
  "w-2 h-2",
@@ -3856,8 +3857,8 @@ const y = {
3856
3857
  "transition duration-200 ease-in-out",
3857
3858
  // Colors
3858
3859
  {
3859
- "bg-primary-500": e.value == e.modelValue && e.value !== void 0 && !e.disabled,
3860
- "bg-general-200": e.value == e.modelValue && e.value !== void 0 && e.disabled
3860
+ "bg-primary-500": t.checked && e.value !== void 0 && !e.disabled,
3861
+ "bg-general-200": t.checked && e.value !== void 0 && e.disabled
3861
3862
  },
3862
3863
  // States
3863
3864
  {
@@ -3891,15 +3892,15 @@ const y = {
3891
3892
  icon: {
3892
3893
  class: "hidden"
3893
3894
  },
3894
- label: o.label,
3895
- labeltext: o.labeltext,
3896
- tooltipicon: o.tooltipicon
3897
- }, W = {
3895
+ label: u.label,
3896
+ labeltext: u.labeltext,
3897
+ tooltipicon: u.tooltipicon
3898
+ }, le = {
3898
3899
  root: {
3899
3900
  class: ["block absolute bg-surface-0/50 rounded-full pointer-events-none"],
3900
3901
  style: "transform: scale(0)"
3901
3902
  }
3902
- }, X = {
3903
+ }, se = {
3903
3904
  root: {
3904
3905
  class: "relative"
3905
3906
  },
@@ -4006,12 +4007,319 @@ const y = {
4006
4007
  "max-w-full"
4007
4008
  ]
4008
4009
  })
4009
- }, ee = {
4010
+ };
4011
+ function x(e, t) {
4012
+ return { [e]: t }[e];
4013
+ }
4014
+ x("WANGS-TAB-MENU", {
4015
+ root: {
4016
+ class: "overflow-x-visible"
4017
+ },
4018
+ menu: ({ props: e }) => ({
4019
+ class: [
4020
+ // Flexbox
4021
+ "flex flex-1",
4022
+ // Spacing
4023
+ "list-none",
4024
+ "p-0 m-0",
4025
+ // Colors
4026
+ "text-general-100",
4027
+ { "w-max ring-1 ring-inset ring-general-100 rounded": e.type === "segmented" }
4028
+ ]
4029
+ }),
4030
+ menuitem: {
4031
+ class: "mr-0"
4032
+ },
4033
+ action: ({ props: e, context: t }) => {
4034
+ var a, r;
4035
+ return {
4036
+ class: [
4037
+ "relative",
4038
+ // Font
4039
+ "font-medium",
4040
+ "text-xs leading-4 tracking-[0.02em]",
4041
+ // Flexbox and Alignment
4042
+ "flex items-center",
4043
+ // Spacing
4044
+ {
4045
+ "rounded-xl py-1 px-3": e.type === "pill",
4046
+ rounded: e.type === "segmented",
4047
+ "p-2 pb-1.5 pt-0.5 !h-6": e.type === "tab",
4048
+ "py-[5px] px-3 !h-6": e.type === "segmented",
4049
+ "ml-1": e.type === "pill" && t.index !== 0,
4050
+ "gap-1": t.item.icon
4051
+ },
4052
+ // Shape
4053
+ {
4054
+ "border-b-2": e.type === "tab",
4055
+ "shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible": e.type === "segmented" && t.active
4056
+ },
4057
+ // Colors and Conditions
4058
+ {
4059
+ "border-primary-700": t.active,
4060
+ "border-grayscale-400": !t.active,
4061
+ "text-grayscale-600": !t.active && e.type === "tab",
4062
+ "text-primary-700": t.active && e.type === "tab",
4063
+ "bg-primary-700 text-white": e.type === "pill" && t.active,
4064
+ "bg-grayscale-100 text-grayscale-800": e.type === "pill" && !t.active,
4065
+ "bg-primary-500 text-white": e.type === "segmented" && t.active,
4066
+ "!text-general-800": e.type === "segmented" && !t.active,
4067
+ "bg-transparent ": e.type !== "pill" && !t.active
4068
+ },
4069
+ // States
4070
+ { "hover:bg-primary-50": e.type === "tab" },
4071
+ "focus-visible:outline-none focus-visible:outline-offset-0",
4072
+ {
4073
+ "focus-visible:border-primary-200 focus-visible:text-primary-400": !t.active
4074
+ },
4075
+ // Disabled States
4076
+ {
4077
+ "pointer-events-none": (a = t.item) == null ? void 0 : a.disabled,
4078
+ "opacity-60": (r = t.item) == null ? void 0 : r.disabled
4079
+ },
4080
+ // Transitions
4081
+ "transition-all duration-200",
4082
+ // Misc
4083
+ "cursor-pointer select-none text-decoration-none",
4084
+ "overflow-hidden",
4085
+ "user-select-none",
4086
+ "!no-underline",
4087
+ "whitespace-nowrap"
4088
+ ]
4089
+ };
4090
+ },
4091
+ icon: {
4092
+ class: "mr-2"
4093
+ },
4094
+ inkbar: ({ props: e }) => ({
4095
+ class: ["grow border-b-2 border-grayscale-400", { hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented" }]
4096
+ })
4097
+ });
4098
+ x("WANGS-INPUT-OTP", {
4099
+ root: {
4100
+ class: [
4101
+ // Alignment
4102
+ "flex items-center",
4103
+ "gap-[6px]",
4104
+ "w-max"
4105
+ ]
4106
+ },
4107
+ input: ({ props: e, context: t, parent: a }) => ({
4108
+ class: [
4109
+ // Font
4110
+ "text-[14px] leading-none font-medium",
4111
+ // Flex & Alignment
4112
+ { "flex-1 w-[1%]": a.tagName == "WANGS-INPUT-GROUP" },
4113
+ "text-center",
4114
+ // Spacing
4115
+ "m-0",
4116
+ // Size
4117
+ "w-[42px] h-[42px]",
4118
+ // Shape
4119
+ { "rounded-md": a.tagName !== "WANGS-INPUT-GROUP" },
4120
+ {
4121
+ "first:rounded-l-md rounded-none last:rounded-r-md": a.tagName == "WANGS-INPUT-GROUP"
4122
+ },
4123
+ {
4124
+ "border-0 border-y border-l last:border-r": a.tagName == "WANGS-INPUT-GROUP"
4125
+ },
4126
+ // Colors
4127
+ "text-general-800 dark:text-general-800",
4128
+ "placeholder:text-surface-400 dark:placeholder:text-surface-500",
4129
+ "bg-white dark:bg-white",
4130
+ {
4131
+ "ring-1": navigator.userAgent.includes("Firefox"),
4132
+ "ring-[0.5px]": !navigator.userAgent.includes("Firefox")
4133
+ },
4134
+ { "ring-general-200 dark:ring-general-200": !e.invalid },
4135
+ // Invalid State
4136
+ { "ring-danger-500 dark:ring-danger-500": e.invalid },
4137
+ // States
4138
+ {
4139
+ "hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400": !t.disabled && !e.invalid,
4140
+ "focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400": !t.disabled && !e.invalid,
4141
+ "focus:outline-none focus:outline-offset-0": !t.disabled,
4142
+ "opacity-60 select-none pointer-events-none cursor-default": t.disabled
4143
+ },
4144
+ // Filled State *for FloatLabel
4145
+ { filled: a.tagName == "WANGS-FLOAT-LABEL" && t.filled },
4146
+ // Misc
4147
+ "appearance-none",
4148
+ "transition-colors duration-200"
4149
+ ]
4150
+ })
4151
+ });
4152
+ const l = class l {
4153
+ constructor() {
4154
+ /**
4155
+ * Stores base URLs associated with different app identifiers.
4156
+ */
4157
+ b(this, "_baseUrl", "");
4158
+ if (globalThis[l.SINGLETON_KEY])
4159
+ return globalThis[l.SINGLETON_KEY];
4160
+ globalThis[l.SINGLETON_KEY] = this;
4161
+ }
4162
+ /**
4163
+ * Registers a base URL for a specific app.
4164
+ *
4165
+ * @param base - The base URL to be used as a prefix for all routes in that app.
4166
+ */
4167
+ setNavigationBaseUrl(t) {
4168
+ this._baseUrl = this.normalizeBase(t);
4169
+ }
4170
+ /**
4171
+ * Retrieves the base URL for a specific app.
4172
+ *
4173
+ * @returns The base URL registered for the app or an empty string if not set.
4174
+ */
4175
+ getNavigationBaseUrl() {
4176
+ return this._baseUrl;
4177
+ }
4178
+ /**
4179
+ * Ensures the base URL ends with a single slash and removes trailing slashes.
4180
+ *
4181
+ * @param base - The base URL to normalize.
4182
+ * @returns A clean base URL ending with a single `/`.
4183
+ */
4184
+ normalizeBase(t) {
4185
+ return t.replace(/\/+$/, "").concat("/");
4186
+ }
4187
+ /**
4188
+ * Prepends the base URL (if any) to the given path.
4189
+ *
4190
+ * @param path - The relative path to normalize.
4191
+ * @returns A fully normalized path prefixed with the base URL if applicable.
4192
+ */
4193
+ normalizePath(t) {
4194
+ const a = this.getNavigationBaseUrl();
4195
+ if (!a)
4196
+ return t;
4197
+ const r = t.startsWith("/") ? t.slice(1) : t;
4198
+ return `${a}${r}`;
4199
+ }
4200
+ /**
4201
+ * Removes the specified base path from the beginning of a given route path.
4202
+ *
4203
+ * This is useful when your app is deployed under a subdirectory (e.g., `/base`)
4204
+ * and you want to normalize the route path to match menu or route definitions
4205
+ * that don't include the base.
4206
+ *
4207
+ * @param path - The full route path (e.g., `/base/about`).
4208
+ * @param base - The optional base URL to remove (e.g., `/base`).
4209
+ * @returns The normalized path without the base prefix (e.g., `/about`).
4210
+ *
4211
+ * @example
4212
+ * stripBase('/base/home', '/base'); // returns '/home'
4213
+ * stripBase('/about', '/base'); // returns '/about' (base not present)
4214
+ * stripBase('/base', '/base'); // returns '/'
4215
+ */
4216
+ stripBase(t, a) {
4217
+ return a || (a = this.getNavigationBaseUrl()), a !== "/" && t.startsWith(a) ? "/" + t.slice(a.length).replace(/^\/+/, "") : t;
4218
+ }
4219
+ /**
4220
+ * Pushes a new entry to the browser's history stack.
4221
+ *
4222
+ * @param route - The target URL or path to push. Can be a string, URL object, or null.
4223
+ * @param data - Optional state object associated with the history entry. Accessible via `history.state`.
4224
+ * @param unused - Optional title parameter (currently unused due to limited browser support).
4225
+ *
4226
+ * @example
4227
+ * Router.push('/about', { from: 'home' });
4228
+ */
4229
+ push(t, a = {}, r = "") {
4230
+ var o;
4231
+ const i = {
4232
+ ...a,
4233
+ ...history.state ?? {},
4234
+ current: t,
4235
+ back: (o = history.state) == null ? void 0 : o.current,
4236
+ forward: void 0,
4237
+ replaced: !1,
4238
+ position: history.length + 1
4239
+ };
4240
+ window.history.pushState(i, r, t);
4241
+ }
4242
+ /**
4243
+ * Replaces the current entry in the browser's history stack.
4244
+ *
4245
+ * @param route - The target URL or path to replace with. Can be a string, URL object, or null.
4246
+ * @param data - Optional state object associated with the history entry. Accessible via `history.state`.
4247
+ * @param unused - Optional title parameter (currently unused due to limited browser support).
4248
+ *
4249
+ * @example
4250
+ * Router.replace('/login', { reason: 'session expired' });
4251
+ */
4252
+ replace(t, a = {}, r = "") {
4253
+ const i = {
4254
+ ...a,
4255
+ ...history.state ?? {},
4256
+ forward: void 0,
4257
+ current: t,
4258
+ replaced: !0
4259
+ };
4260
+ window.history.replaceState(i, r, t);
4261
+ }
4262
+ /**
4263
+ * Dispatches a custom event before navigation occurs.
4264
+ * Used to notify subscribers of an upcoming route change.
4265
+ *
4266
+ * @param route - The route that will be navigated to.
4267
+ * @param mode - The navigation mode ('push' or 'replace').
4268
+ * @param data - Optional state object for the navigation.
4269
+ */
4270
+ dispatchBeforeNavigationEvent(t, a, r) {
4271
+ window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event", {
4272
+ detail: { route: t, mode: a, state: r }
4273
+ }));
4274
+ }
4275
+ /**
4276
+ * Dispatches a custom event after navigation occurs.
4277
+ * Used to notify subscribers that the route has changed.
4278
+ *
4279
+ * @param route - The route that was navigated to.
4280
+ * @param mode - The navigation mode ('push' or 'replace').
4281
+ * @param data - Optional state object for the navigation.
4282
+ */
4283
+ dispatchNavigationEvent(t, a, r) {
4284
+ window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event", {
4285
+ detail: { route: t, mode: a, state: r }
4286
+ }));
4287
+ }
4288
+ /**
4289
+ * Navigates to a specified route using the browser's History API.
4290
+ *
4291
+ * This updates the URL in the browser without reloading the page.
4292
+ * It can either push a new entry to the history stack or replace the current one.
4293
+ * Also dispatches custom events before and after the navigation.
4294
+ *
4295
+ * @param route - The target route to navigate to. Can be a string or URL object.
4296
+ * @param navigationMode - Determines how navigation is handled.
4297
+ * - `'push'` (default): Adds a new entry to the browser history.
4298
+ * - `'replace'`: Replaces the current history entry.
4299
+ * @param data - Optional state object associated with the history entry. Can be accessed via `history.state`.
4300
+ * @param unused - Optional title parameter (currently unused due to browser support limitations).
4301
+ *
4302
+ * @example
4303
+ * router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
4304
+ */
4305
+ navigateToRoute(t, a = "push", r = {}, i = "") {
4306
+ if (!t)
4307
+ return;
4308
+ const o = typeof t == "string" ? t : t.toString(), s = this.normalizePath(o);
4309
+ if (s === location.pathname)
4310
+ return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
4311
+ this.dispatchBeforeNavigationEvent(s, a, r), a === "push" ? this.push(s, r, i) : this.replace(s, r, i), this.dispatchNavigationEvent(s, a, r);
4312
+ }
4313
+ };
4314
+ b(l, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
4315
+ let m = l;
4316
+ new m();
4317
+ const oe = x("WANGS-TAB-MENU", {
4010
4318
  root: {
4011
4319
  class: "overflow-x-auto",
4012
4320
  style: "scrollbar-width: none"
4013
4321
  },
4014
- menu: {
4322
+ menu: ({ props: e }) => ({
4015
4323
  class: [
4016
4324
  // Flexbox
4017
4325
  "flex flex-1",
@@ -4019,13 +4327,16 @@ const y = {
4019
4327
  "list-none",
4020
4328
  "p-0 m-0",
4021
4329
  // Colors
4022
- "text-general-100"
4330
+ "text-general-100",
4331
+ {
4332
+ "w-max ring-1 ring-inset ring-general-100 rounded !m-[2px]": e.type === "segmented"
4333
+ }
4023
4334
  ]
4024
- },
4335
+ }),
4025
4336
  menuitem: {
4026
4337
  class: "mr-0"
4027
4338
  },
4028
- action: ({ context: e, state: t }) => {
4339
+ action: ({ props: e, context: t }) => {
4029
4340
  var a, r;
4030
4341
  return {
4031
4342
  class: [
@@ -4038,12 +4349,14 @@ const y = {
4038
4349
  // Spacing
4039
4350
  {
4040
4351
  "rounded-xl py-1 px-3": e.type === "pill",
4041
- "p-2 pb-1.5 pt-0.5 !h-6": e.type !== "pill",
4042
- "ml-1": e.type === "pill" && e.index !== 0
4352
+ rounded: e.type === "segmented",
4353
+ "p-2 pb-1.5 pt-0.5 !h-6": e.type === "tab",
4354
+ "py-[5px] px-3 !h-[26px]": e.type === "segmented",
4355
+ "ml-1": e.type === "pill" && t.index !== 0
4043
4356
  },
4044
4357
  // Shape
4045
4358
  {
4046
- "border-b-2": e.type !== "pill"
4359
+ "border-b-2": e.type === "tab"
4047
4360
  },
4048
4361
  // Colors and Conditions
4049
4362
  {
@@ -4053,6 +4366,8 @@ const y = {
4053
4366
  "text-primary-500": t.active,
4054
4367
  "bg-primary-500 text-white": e.type === "pill" && t.active,
4055
4368
  "bg-grayscale-200 text-grayscale-800": e.type === "pill" && !t.active,
4369
+ "bg-primary-500 text-white shadow-[-2px_2px_2px_rgba(0,0,0,0.25)]": e.type === "segmented" && t.active,
4370
+ "!text-general-800": e.type === "segmented" && !t.active,
4056
4371
  "bg-transparent ": e.type !== "pill" && !t.active
4057
4372
  },
4058
4373
  // States
@@ -4062,8 +4377,8 @@ const y = {
4062
4377
  },
4063
4378
  // Disabled States
4064
4379
  {
4065
- "pointer-events-none": (a = e.item) == null ? void 0 : a.disabled,
4066
- "opacity-60": (r = e.item) == null ? void 0 : r.disabled
4380
+ "pointer-events-none": (a = t.item) == null ? void 0 : a.disabled,
4381
+ "opacity-60": (r = t.item) == null ? void 0 : r.disabled
4067
4382
  },
4068
4383
  // Transitions
4069
4384
  "transition-all duration-200",
@@ -4079,10 +4394,15 @@ const y = {
4079
4394
  icon: {
4080
4395
  class: "mr-2"
4081
4396
  },
4082
- inkbar: {
4083
- class: "grow border-b-2 border-primary-100"
4084
- }
4085
- }, te = {
4397
+ inkbar: ({ props: e }) => ({
4398
+ class: [
4399
+ "grow border-b-2 border-primary-100",
4400
+ {
4401
+ hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented"
4402
+ }
4403
+ ]
4404
+ })
4405
+ }), de = {
4086
4406
  root: ({ context: e, props: t }) => ({
4087
4407
  class: [
4088
4408
  // Font
@@ -4100,7 +4420,7 @@ const y = {
4100
4420
  // Shape
4101
4421
  "rounded",
4102
4422
  "appearance-none",
4103
- ...B,
4423
+ ...W,
4104
4424
  {
4105
4425
  "!ring-danger-500": e.invalidInput
4106
4426
  },
@@ -4118,16 +4438,16 @@ const y = {
4118
4438
  "data-wv-name": "textarea",
4119
4439
  "data-wv-section": "root"
4120
4440
  })
4121
- }, d = (e) => {
4441
+ }, f = (e) => {
4122
4442
  if (!e) return !0;
4123
4443
  const t = Object.keys(e);
4124
4444
  return t.length ? t.every((a) => {
4125
4445
  const r = e[a];
4126
4446
  return typeof r == "object" ? Array.isArray(r) ? !r.length || r.every(
4127
- (i) => typeof i == "object" ? d(i) : i == null
4128
- ) : d(r) : r == null;
4447
+ (i) => typeof i == "object" ? f(i) : i == null
4448
+ ) : f(r) : r == null;
4129
4449
  }) : !0;
4130
- }, ae = {
4450
+ }, ce = {
4131
4451
  root: ({ props: e }) => ({
4132
4452
  class: ["flex flex-col grow", "text-xs font-normal text-grayscale-900"]
4133
4453
  }),
@@ -4158,18 +4478,37 @@ const y = {
4158
4478
  markerArrow: (e) => ({
4159
4479
  class: [
4160
4480
  "w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900",
4161
- { "!visible": e.detail && !d(e.detail) },
4481
+ { "!visible": e.detail && !f(e.detail) },
4162
4482
  { "rotate-180": e.showDetail }
4163
4483
  ],
4164
4484
  "data-wv-section": "markerArrow"
4165
4485
  }),
4486
+ markerDot: (e) => ({
4487
+ class: [
4488
+ "hidden w-[6px] h-[6px] m-[3px] rounded-full bg-black",
4489
+ { "!flex": !e.detail || f(e.detail) }
4490
+ ],
4491
+ "data-wv-section": "markerDot"
4492
+ }),
4493
+ contentHeader: {
4494
+ class: ["leading-5 cursor-pointer truncate !text-xs !font-bold"]
4495
+ },
4496
+ contentDetailKey: {
4497
+ class: ["text-general-400 whitespace-nowrap"]
4498
+ },
4499
+ contentDetailValue: {
4500
+ class: ["text-xs text-general-800"]
4501
+ },
4502
+ contentDate: {
4503
+ class: ["text-xs font-medium"]
4504
+ },
4166
4505
  connector: ({ props: e }) => ({
4167
4506
  class: ["w-[2px] grow bg-grayscale-900"]
4168
4507
  }),
4169
4508
  content: ({ props: e, context: t }) => ({
4170
4509
  class: ["grid grid-rows-[max-content,auto] pb-2.5 gap-1"]
4171
4510
  })
4172
- }, ne = {
4511
+ }, ue = {
4173
4512
  root: ({ props: e }) => ({
4174
4513
  class: [
4175
4514
  //Size and Shape
@@ -4252,7 +4591,7 @@ const y = {
4252
4591
  leaveActiveClass: "!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",
4253
4592
  leaveToClass: "max-h-0 opacity-0 mb-0"
4254
4593
  }
4255
- }, re = {
4594
+ }, ge = {
4256
4595
  root: {
4257
4596
  class: [
4258
4597
  "relative",
@@ -4323,7 +4662,7 @@ const y = {
4323
4662
  icon: {
4324
4663
  class: [" mr-2", "text-surface-700/80"]
4325
4664
  }
4326
- }, ie = {
4665
+ }, fe = {
4327
4666
  root: ({ context: e, props: t }) => ({
4328
4667
  class: [
4329
4668
  // Position
@@ -4359,7 +4698,7 @@ const y = {
4359
4698
  "break-words"
4360
4699
  ]
4361
4700
  }
4362
- }, le = {
4701
+ }, be = {
4363
4702
  root: {
4364
4703
  class: [
4365
4704
  "relative",
@@ -4614,7 +4953,7 @@ const y = {
4614
4953
  }
4615
4954
  ]
4616
4955
  })
4617
- }, se = {
4956
+ }, me = {
4618
4957
  root: ({ props: e, state: t }) => ({
4619
4958
  class: [
4620
4959
  // Display and Position
@@ -4935,7 +5274,7 @@ const y = {
4935
5274
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
4936
5275
  leaveToClass: "opacity-0"
4937
5276
  }
4938
- }, oe = {
5277
+ }, xe = {
4939
5278
  root: {
4940
5279
  class: [
4941
5280
  "relative",
@@ -5035,13 +5374,13 @@ const y = {
5035
5374
  "duration-200"
5036
5375
  ]
5037
5376
  }
5038
- }, ce = {
5377
+ }, he = {
5039
5378
  root: {
5040
5379
  class: ["!mt-0 text-danger-500 text-xs font-light tracking-[0.02em]"],
5041
5380
  "data-wv-name": "validatormessage",
5042
5381
  "data-wv-section": "root"
5043
5382
  }
5044
- }, de = {
5383
+ }, ve = {
5045
5384
  root: {
5046
5385
  class: "flex gap-2 items-center shrink-0",
5047
5386
  "data-wv-name": "buttonbulkaction",
@@ -5096,7 +5435,7 @@ const y = {
5096
5435
  class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
5097
5436
  "data-wv-section": "buttonclearselection"
5098
5437
  }
5099
- }, ue = {
5438
+ }, ye = {
5100
5439
  root: {
5101
5440
  class: "flex flex-nowrap items-center gap-1",
5102
5441
  "data-wv-name": "badgegroup",
@@ -5108,7 +5447,7 @@ const y = {
5108
5447
  },
5109
5448
  showmoredialog: {
5110
5449
  root: {
5111
- class: [h.root({ state: {} }).class, "w-[400px]"],
5450
+ class: [C.root({ state: {} }).class, "w-[400px]"],
5112
5451
  "data-wv-section": "showmoredialog"
5113
5452
  },
5114
5453
  title: {
@@ -5121,7 +5460,7 @@ const y = {
5121
5460
  }
5122
5461
  // All section in Dialog Preset can be added here
5123
5462
  }
5124
- }, ge = {
5463
+ }, we = {
5125
5464
  root: {
5126
5465
  class: [
5127
5466
  "flex gap-[5px] items-center text-left h-[26px]",
@@ -5146,16 +5485,16 @@ const y = {
5146
5485
  content: ">",
5147
5486
  "data-wv-section": "separator"
5148
5487
  }
5149
- }, fe = {
5488
+ }, pe = {
5150
5489
  currency: (e) => ({
5151
- class: [...c(e), "rounded-l rounded-r-none"],
5490
+ class: [...g(e), "rounded-l rounded-r-none"],
5152
5491
  "data-wv-section": "currency"
5153
5492
  }),
5154
5493
  value: (e) => ({
5155
- class: [...c(e), "rounded-r rounded-l-none -ml-[1px]"],
5494
+ class: [...g(e), "rounded-r rounded-l-none -ml-[1px]"],
5156
5495
  "data-wv-section": "value"
5157
5496
  })
5158
- }, be = {
5497
+ }, ke = {
5159
5498
  root: {
5160
5499
  "data-wv-name": "fileupload",
5161
5500
  "data-wv-section": "root"
@@ -5177,7 +5516,7 @@ const y = {
5177
5516
  requirements: {
5178
5517
  class: "flex justify-start"
5179
5518
  }
5180
- }, me = {
5519
+ }, Ce = {
5181
5520
  root: {
5182
5521
  class: [
5183
5522
  "flex flex-col items-start justify-start relative gap-1 w-full shrink-0 overflow-hidden"
@@ -5185,12 +5524,15 @@ const y = {
5185
5524
  "data-wv-name": "fieldwrapper",
5186
5525
  "data-wv-section": "root"
5187
5526
  },
5188
- label: ({ props: e }) => ({
5527
+ label: ({ props: e, slots: t }) => ({
5189
5528
  class: [
5190
5529
  [
5191
5530
  "text-general-900 text-xs flex gap-[2px] font-medium tracking-[0.02em]",
5192
5531
  e.labelClass
5193
- ]
5532
+ ],
5533
+ {
5534
+ "w-full": t["label-addon"]
5535
+ }
5194
5536
  ],
5195
5537
  "data-wv-section": "fieldlabel"
5196
5538
  }),
@@ -5203,14 +5545,14 @@ const y = {
5203
5545
  arterisksign: {
5204
5546
  class: "text-danger-500"
5205
5547
  }
5206
- }, xe = {
5548
+ }, je = {
5207
5549
  root: {
5208
5550
  class: [
5209
5551
  "bg-general-50 rounded-lg [&>*]:w-full [&>*]min-w-0",
5210
5552
  "grid items-end p-3 gap-x-3 gap-y-4"
5211
5553
  ]
5212
5554
  }
5213
- }, he = {
5555
+ }, ze = {
5214
5556
  root: {
5215
5557
  class: [
5216
5558
  "w-screen h-screen fixed top-0 left-0 z-[9999999]",
@@ -5222,7 +5564,7 @@ const y = {
5222
5564
  animation: {
5223
5565
  class: ["w-[700px] h-auto"]
5224
5566
  }
5225
- }, ve = {
5567
+ }, _e = {
5226
5568
  root: {
5227
5569
  class: "flex items-center gap-1"
5228
5570
  },
@@ -5256,78 +5598,78 @@ const y = {
5256
5598
  class: "flex flex-col gap-0.5 items-center justify-center"
5257
5599
  }
5258
5600
  }
5259
- }, ye = {
5260
- badge: w,
5261
- ripple: W,
5262
- tooltip: ie
5263
- }, we = {
5264
- global: L,
5265
- directives: ye,
5601
+ }, Ae = {
5602
+ badge: S,
5603
+ ripple: le,
5604
+ tooltip: fe
5605
+ }, Te = {
5606
+ global: K,
5607
+ directives: Ae,
5266
5608
  // Forms
5267
- form: R,
5268
- filtercontainer: xe,
5269
- dropdown: M,
5270
- inputnumber: N,
5271
- inputphonenumber: G,
5272
- inputcurrency: fe,
5273
- inputtext: v,
5274
- inputbadge: O,
5275
- calendar: _,
5276
- checkbox: s,
5277
- buttonradio: U,
5609
+ form: D,
5610
+ filtercontainer: je,
5611
+ dropdown: O,
5612
+ inputnumber: Q,
5613
+ inputphonenumber: X,
5614
+ inputcurrency: pe,
5615
+ inputtext: j,
5616
+ inputbadge: q,
5617
+ calendar: I,
5618
+ checkbox: c,
5619
+ buttonradio: ie,
5278
5620
  multiselect: n,
5279
- togglebutton: re,
5280
- toggleswitch: o,
5281
- inputgroup: H,
5282
- inputgroupaddon: q,
5283
- treeselect: se,
5284
- tristatecheckbox: oe,
5285
- textarea: te,
5286
- password: Q,
5287
- validatormessage: ce,
5288
- fileupload: be,
5289
- fieldwrapper: me,
5621
+ togglebutton: ge,
5622
+ toggleswitch: u,
5623
+ inputgroup: J,
5624
+ inputgroupaddon: Z,
5625
+ treeselect: me,
5626
+ tristatecheckbox: xe,
5627
+ textarea: de,
5628
+ password: ne,
5629
+ validatormessage: he,
5630
+ fileupload: ke,
5631
+ fieldwrapper: Ce,
5290
5632
  // Buttons
5291
- button: p,
5292
- buttondownload: k,
5293
- buttonbulkaction: de,
5294
- buttonsearch: j,
5295
- buttonsplit: z,
5296
- buttonfilter: C,
5633
+ button: T,
5634
+ buttondownload: N,
5635
+ buttonbulkaction: ve,
5636
+ buttonsearch: P,
5637
+ buttonsplit: V,
5638
+ buttonfilter: F,
5297
5639
  // Data
5298
- paginator: K,
5299
- datatable: P,
5300
- customcolumn: T,
5301
- tree: le,
5302
- timeline: ae,
5303
- changelog: F,
5640
+ paginator: re,
5641
+ datatable: L,
5642
+ customcolumn: G,
5643
+ tree: be,
5644
+ timeline: ce,
5645
+ changelog: U,
5304
5646
  // Panels
5305
- accordion: y,
5306
- card: A,
5647
+ accordion: A,
5648
+ card: E,
5307
5649
  // Menu
5308
- menu: J,
5309
- steps: X,
5310
- breadcrumb: ge,
5311
- tabmenu: ee,
5650
+ menu: ee,
5651
+ steps: se,
5652
+ breadcrumb: we,
5653
+ tabmenu: oe,
5312
5654
  // Overlays
5313
- dialog: h,
5314
- dialogconfirm: I,
5315
- dialogform: $,
5316
- overlaypanel: Z,
5655
+ dialog: C,
5656
+ dialogconfirm: R,
5657
+ dialogform: M,
5658
+ overlaypanel: ae,
5317
5659
  // Messages
5318
- message: Y,
5319
- inlinemessage: E,
5320
- toast: ne,
5660
+ message: te,
5661
+ inlinemessage: H,
5662
+ toast: ue,
5321
5663
  // Media
5322
- carousel: V,
5664
+ carousel: B,
5323
5665
  // Misc
5324
- badge: l,
5325
- badgegroup: ue,
5326
- image: D,
5327
- loading: he,
5328
- codesnippet: S,
5329
- username: ve
5666
+ badge: d,
5667
+ badgegroup: ye,
5668
+ image: Y,
5669
+ loading: ze,
5670
+ codesnippet: $,
5671
+ username: _e
5330
5672
  };
5331
5673
  export {
5332
- we as default
5674
+ Te as default
5333
5675
  };