@fewangsit/wangsvue-presets 1.0.102 → 1.0.103-alpha.1

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  root: {
5
5
  'class': [
6
- 'flex gap-[5px] items-center text-left h-[21px]',
6
+ 'flex gap-[5px] items-center text-left h-[26px]',
7
7
  'text-general-800',
8
8
  'text-xs font-medium leading-4 tracking-[0.02em]',
9
9
  ],
@@ -4302,10 +4302,12 @@ const a = class a {
4302
4302
  * @returns A fully normalized path prefixed with the base URL if applicable.
4303
4303
  */
4304
4304
  normalizePath(t) {
4305
+ if (!t.startsWith("/"))
4306
+ return new URL(t, window.location.href).pathname;
4305
4307
  const r = this.getNavigationBaseUrl();
4306
4308
  if (!r)
4307
4309
  return t;
4308
- const i = t.startsWith("/") ? t.slice(1) : t;
4310
+ const i = t.slice(1);
4309
4311
  return `${r}${i}`;
4310
4312
  }
4311
4313
  /**
@@ -4413,7 +4415,7 @@ const a = class a {
4413
4415
  * @example
4414
4416
  * router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
4415
4417
  */
4416
- navigateToRoute(t, r = "push", i = {}, n = "") {
4418
+ navigateToRoute(t, r = "push", i = history.state, n = "") {
4417
4419
  if (!t)
4418
4420
  return;
4419
4421
  const l = typeof t == "string" ? t : t.toString(), o = this.normalizePath(l);
@@ -9714,7 +9716,7 @@ const me = m("WANGS-INPUT-OTP", {
9714
9716
  }, nt = {
9715
9717
  root: {
9716
9718
  class: [
9717
- "flex gap-[5px] items-center text-left h-[21px]",
9719
+ "flex gap-[5px] items-center text-left h-[26px]",
9718
9720
  "text-general-800",
9719
9721
  "text-xs font-medium leading-4 tracking-[0.02em]"
9720
9722
  ],