@base-framework/ui 1.0.220 → 1.0.222

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.
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@ import { V as w, a as R } from "./veil-D4dRxILB.js";
5
5
  import { Icons as E } from "./icons.es.js";
6
6
  import { A as O, B as V, C as j, t as q, E as z, v as J, w as _, x as K, D as Q, j as X, k as Y, H as Z, G as $, s as aa, c as ea, a as sa, b as oa, I as ta, i as ra, g as na, e as la, h as ia, F as pa, d as ua, f as ma, u as da, M as ca, l as ga, N as Ca, P as Ta, p as ba, q as Da, S as Ia, n as Sa, o as Ba, T as Pa, y as Fa, z as Ma, m as ka, r as Na } from "./empty-state-2O1fITpG.js";
7
7
  import { A as va, b as xa, C as ya, D as ha, a as Wa, F as Ha, M as La, P as Aa, c as wa, g as Ra, p as Ua } from "./calendar-Bn55oWBo.js";
8
- import { B as Ga, p as Oa, C as Va, j as ja, D as qa, m as za, k as Ja, H as _a, I as Ka, N as Qa, O as Xa, P as Ya, R as Za, S as $a, n as ae, o as ee, t as se, s as oe, q as te, r as re, T as ne, l as le, U as ie, W as pe, f as ue, h as me, i as de, c as ce, d as ge, b as Ce, e as Te, a as be, g as De } from "./signature-panel-CqpWCYXF.js";
8
+ import { B as Ga, p as Oa, C as Va, j as ja, D as qa, m as za, k as Ja, H as _a, I as Ka, N as Qa, O as Xa, P as Ya, R as Za, S as $a, n as ae, o as ee, t as se, s as oe, q as te, r as re, T as ne, l as le, U as ie, W as pe, f as ue, h as me, i as de, c as ce, d as ge, b as Ce, e as Te, a as be, g as De } from "./signature-panel-B_oAT8dn.js";
9
9
  import { B as Se, I as Be, M as Pe, d as Fe, e as Me, g as ke, N as Ne, b as fe, a as ve, f as xe, P as ye, c as he, S as We, T as He } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as Ae, a as we, C as Re, F as Ue, b as Ee, c as Ge, M as Oe, P as Ve, S as je } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as ze, F as Je, M as _e, a as Ke, T as Qe } from "./aside-template-McEj_Gxc.js";
@@ -1,4 +1,4 @@
1
- import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, R as v, S as D, n as N, o as k, t as C, s as c, q as T, r as M, T as m, l as y, U as B, W, f as h, h as S, i as H, c as P, d as I, b as f, e as x, a as L, g as O } from "./signature-panel-CqpWCYXF.js";
1
+ import { B as s, p as t, C as o, j as r, D as n, m as l, k as i, H as b, I as d, N as g, O as p, P as u, R as v, S as D, n as N, o as k, t as C, s as c, q as T, r as M, T as m, l as y, U as B, W, f as h, h as S, i as H, c as P, d as I, b as f, e as x, a as L, g as O } from "./signature-panel-B_oAT8dn.js";
2
2
  import { b as U, C as G, D as R, a as j, F as q, M as w, c as z, p as A } from "./calendar-Bn55oWBo.js";
3
3
  import { B as J, I as K, M as Q, d as V, e as X, g as Y, N as Z, b as _, a as $, f as aa, P as ea, c as sa, S as ta, T as oa } from "./mobile-nav-wrapper-Dj67Pb8l.js";
4
4
  export {
@@ -299,15 +299,14 @@ class xe extends m {
299
299
  const j = ({ label: e, click: t }) => g(
300
300
  {
301
301
  class: `
302
- inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
303
- text-muted-foreground hover:text-foreground absolute
304
- ${e === "Previous" ? "left-1" : "right-1"}
305
- transition-colors hover:bg-accent rounded-md
306
- focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2
307
- `,
302
+ inline-flex items-center justify-center h-7 w-7 bg-transparent p-0
303
+ opacity-50 hover:opacity-100 text-muted-foreground absolute
304
+ ${e === "Previous" ? "left-1" : "right-1"}
305
+ focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2
306
+ `,
308
307
  click: t,
309
308
  "aria-label": `${e} month`,
310
- variant: "ghost",
309
+ variant: "icon",
311
310
  icon: e === "Previous" ? b.chevron.single.left : b.chevron.single.right
312
311
  }
313
312
  ), vt = ({ monthName: e, year: t, onMonthClick: s, onYearClick: a, next: n, previous: i }) => o({ class: "flex items-center justify-center space-x-2 relative min-h-12 text-sm font-medium" }, [
@@ -325,7 +324,9 @@ const j = ({ label: e, click: t }) => g(
325
324
  class: `flex items-center justify-center h-9 w-9 p-0 text-sm font-medium rounded-md transition-colors ${c}`,
326
325
  variant: u,
327
326
  disabled: s,
328
- click: () => !s && l()
327
+ click: () => {
328
+ console.log("Day cell clicked:", { day: e, iso: t, disabled: s }), s || l();
329
+ }
329
330
  },
330
331
  e.toString()
331
332
  );
@@ -371,7 +372,9 @@ const j = ({ label: e, click: t }) => g(
371
372
  )
372
373
  ), Tt = ({ start: e, end: t, selecting: s, onSelectStart: a, onSelectEnd: n }) => o({ class: "flex space-x-2 mb-4" }, [
373
374
  g({
374
- click: a,
375
+ click: () => {
376
+ console.log("Start button clicked"), a();
377
+ },
375
378
  variant: s === "start" ? "default" : "outline",
376
379
  class: "flex-1 text-left justify-start px-3 py-2 text-sm font-medium rounded-md border min-h-[2.5rem] flex flex-col items-start"
377
380
  }, [
@@ -379,7 +382,9 @@ const j = ({ label: e, click: t }) => g(
379
382
  o({ class: "font-medium" }, e ? Y(e) : "Select start")
380
383
  ]),
381
384
  g({
382
- click: n,
385
+ click: () => {
386
+ console.log("End button clicked"), n();
387
+ },
383
388
  variant: s === "end" ? "default" : "outline",
384
389
  class: "flex-1 text-left justify-start px-3 py-2 text-sm font-medium rounded-md border min-h-[2.5rem] flex flex-col items-start"
385
390
  }, [
@@ -467,7 +472,7 @@ class ke extends m {
467
472
  * @returns {void}
468
473
  */
469
474
  handleClick(t) {
470
- this.state.selecting === "start" ? (this.state.start = t, this.state.end = null, this.state.selecting = "end") : (this.state.start && t < this.state.start ? (this.state.end = this.state.start, this.state.start = t) : this.state.end = t, this.state.selecting = "start", typeof this.onRangeSelect == "function" && this.onRangeSelect(this.state.start, this.state.end));
475
+ console.log("handleClick called with:", t), console.log("Current state:", this.state), this.state.selecting === "start" ? (this.state.start = t, this.state.end = null, this.state.selecting = "end") : (this.state.start && t < this.state.start ? (this.state.end = this.state.start, this.state.start = t) : this.state.end = t, this.state.selecting = "start", typeof this.onRangeSelect == "function" && this.onRangeSelect(this.state.start, this.state.end)), console.log("New state:", this.state);
471
476
  }
472
477
  /**
473
478
  * Update current month/year in data.
@@ -497,7 +502,7 @@ class ke extends m {
497
502
  isStart: T,
498
503
  isEnd: B,
499
504
  isBetween: X,
500
- click: () => this.handleClick(r)
505
+ click: this.handleClick.bind(this, r)
501
506
  });
502
507
  }
503
508
  return o({ class: "range-calendar bg-background border border-border rounded-lg shadow-md p-4 w-full max-w-sm" }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.220",
3
+ "version": "1.0.222",
4
4
  "description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
5
5
  "main": "./dist/index.es.js",
6
6
  "scripts": {