@base-framework/ui 1.0.130 → 1.0.132

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,8 +3,8 @@ import { Component as N, Data as z, Atom as k, DateTime as j } from "@base-frame
3
3
  import { B as A } from "./buttons-Cm9etaEG.js";
4
4
  import { Icons as T } from "./icons.es.js";
5
5
  const W = (e, t) => {
6
- const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10, a = globalThis.scrollX, l = globalThis.scrollY;
7
- let c = n.left + a, f = n.bottom + l;
6
+ const n = e ? e.getBoundingClientRect() : { top: 0, bottom: 0, left: 0 }, s = t.getBoundingClientRect(), o = 10, r = globalThis.scrollX, l = globalThis.scrollY;
7
+ let c = n.left + r, f = n.bottom + l;
8
8
  const h = globalThis.innerHeight - n.bottom, d = n.top;
9
9
  return c + s.width > globalThis.innerWidth && (c = globalThis.innerWidth - s.width - o), h < s.height && d > h ? f = n.top + l - s.height - o : h < s.height && (f = n.bottom + l - (s.height - h) - o), { x: c, y: f };
10
10
  };
@@ -144,9 +144,9 @@ const H = k(({ src: e, alt: t }) => e ? I({
144
144
  * If there's an error loading the image, hide it.
145
145
  */
146
146
  error: (n) => n.target.style.display = "none"
147
- }) : null), R = (e) => e.split(" ").map((t) => t.charAt(0)).join(""), B = (e) => !e || e.length < 2 ? e : R(e), X = (e) => M([e, (t, n) => {
147
+ }) : null), R = (e) => e && (typeof e != "string" && (e = String(e)), e.split(" ").map((t) => t.charAt(0)).join("")), B = (e) => !e || e.length < 2 ? e : R(e), X = (e) => M([e, (t, n) => {
148
148
  n.textContent = B(t);
149
- }]), P = {
149
+ }]), S = {
150
150
  xs: "h-6 w-6",
151
151
  sm: "h-8 w-8",
152
152
  md: "h-12 w-12",
@@ -156,7 +156,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
156
156
  "3xl": "h-48 w-48",
157
157
  "4xl": "h-64 w-64",
158
158
  default: "h-12 w-12"
159
- }, S = {
159
+ }, P = {
160
160
  xs: "text-[7px]",
161
161
  sm: "text-xs",
162
162
  md: "text-base",
@@ -166,7 +166,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
166
166
  "3xl": "text-4xl",
167
167
  "4xl": "text-5xl",
168
168
  default: "text-base"
169
- }, E = (e) => P[e] || P.default, G = (e) => S[e] || S.default, L = (e, t = null, n = "md") => {
169
+ }, E = (e) => S[e] || S.default, G = (e) => P[e] || P.default, L = (e, t = null, n = "md") => {
170
170
  const s = B(e), o = G(n);
171
171
  return i(
172
172
  {
@@ -181,17 +181,17 @@ const H = k(({ src: e, alt: t }) => e ? I({
181
181
  ]
182
182
  );
183
183
  }, ct = k(({ src: e, alt: t, fallbackText: n, watcherFallback: s, size: o }) => {
184
- const a = E(o);
184
+ const r = E(o);
185
185
  return i(
186
186
  {
187
- class: `relative flex items-center justify-center ${a}`
187
+ class: `relative flex items-center justify-center ${r}`
188
188
  },
189
189
  [
190
190
  H({ src: e, alt: t }),
191
191
  L(n, s, o)
192
192
  ]
193
193
  );
194
- }), x = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), q = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), p = (e, t, n) => `${e}-${x(t + 1)}-${x(n)}`, J = (e) => e ? "bg-accent text-primary" : "", K = (e) => e ? "text-muted-foreground opacity-50" : "", Q = (e, t) => e === t, U = (e, t) => Q(e, t) ? "bg-primary text-primary-foreground" : "", V = (e, t, n, s) => {
194
+ }), x = (e) => (e *= 1, e < 10 ? `0${e}` : String(e)), q = (e) => (e.indexOf("T") === -1 && e.indexOf(" ") === -1 && (e += "T00:00:01"), e.replace(" ", "T"), e), m = (e, t, n) => `${e}-${x(t + 1)}-${x(n)}`, J = (e) => e ? "bg-accent text-primary" : "", K = (e) => e ? "text-muted-foreground opacity-50" : "", Q = (e, t) => e === t, U = (e, t) => Q(e, t) ? "bg-primary text-primary-foreground" : "", V = (e, t, n, s) => {
195
195
  const o = U(t, s);
196
196
  return o || (e ? J(e) : n ? K(n) : "text-foreground");
197
197
  }, v = (e) => {
@@ -200,7 +200,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
200
200
  currentDate: n,
201
201
  date: s,
202
202
  isToday: o,
203
- isOutsideMonth: a,
203
+ isOutsideMonth: r,
204
204
  select: l,
205
205
  disabled: c
206
206
  } = e;
@@ -208,7 +208,7 @@ const H = k(({ src: e, alt: t }) => e ? I({
208
208
  {
209
209
  class: `
210
210
  flex items-center justify-center h-9 w-auto p-0 font-normal text-sm rounded-md
211
- ${V(o, n, a, s)}
211
+ ${V(o, n, r, s)}
212
212
  hover:bg-muted/50 hover:text-muted-foreground focus:z-10
213
213
  disabled:pointer-events-none disabled:opacity-50
214
214
  `,
@@ -220,14 +220,14 @@ const H = k(({ src: e, alt: t }) => e ? I({
220
220
  t.toString()
221
221
  );
222
222
  }, C = (e, t, n, s) => e === s.date && t === s.month && n === s.year, Z = (e, t, n, s = !1) => {
223
- const { year: o, month: a } = e, l = p(o, a, e.date), c = new Date(o, a, 1).getDay(), f = new Date(o, a + 1, 0).getDate(), h = new Date(o, a, 0).getDate(), d = [], D = a === 0 ? 11 : a - 1, y = a === 0 ? o - 1 : o;
224
- for (let r = c - 1; r >= 0; r--) {
225
- const u = h - r, g = C(u, D, y, t), m = new Date(y, D, u) < new Date(t.year, t.month, t.date), F = s && m;
223
+ const { year: o, month: r } = e, l = m(o, r, e.date), c = new Date(o, r, 1).getDay(), f = new Date(o, r + 1, 0).getDate(), h = new Date(o, r, 0).getDate(), d = [], D = r === 0 ? 11 : r - 1, y = r === 0 ? o - 1 : o;
224
+ for (let a = c - 1; a >= 0; a--) {
225
+ const u = h - a, g = C(u, D, y, t), p = new Date(y, D, u) < new Date(t.year, t.month, t.date), F = s && p;
226
226
  d.push(
227
227
  v({
228
228
  day: u,
229
229
  currentDate: l,
230
- date: p(y, D, u),
230
+ date: m(y, D, u),
231
231
  isToday: g,
232
232
  isOutsideMonth: !0,
233
233
  select: n,
@@ -235,32 +235,32 @@ const H = k(({ src: e, alt: t }) => e ? I({
235
235
  })
236
236
  );
237
237
  }
238
- for (let r = 1; r <= f; r++) {
239
- const u = C(r, a, o, t), g = new Date(o, a, r) < new Date(t.year, t.month, t.date), m = s && g;
238
+ for (let a = 1; a <= f; a++) {
239
+ const u = C(a, r, o, t), g = new Date(o, r, a) < new Date(t.year, t.month, t.date), p = s && g;
240
240
  d.push(
241
241
  v({
242
- day: r,
242
+ day: a,
243
243
  currentDate: l,
244
- date: p(o, a, r),
244
+ date: m(o, r, a),
245
245
  isToday: u,
246
246
  isOutsideMonth: !1,
247
247
  select: n,
248
- disabled: m
248
+ disabled: p
249
249
  })
250
250
  );
251
251
  }
252
- const w = a === 11 ? 0 : a + 1, b = a === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
253
- for (let r = 1; r <= O; r++) {
254
- const u = C(r, w, b, t), g = new Date(b, w, r) < new Date(t.year, t.month, t.date), m = s && g;
252
+ const w = r === 11 ? 0 : r + 1, b = r === 11 ? o + 1 : o, O = (7 - d.length % 7) % 7;
253
+ for (let a = 1; a <= O; a++) {
254
+ const u = C(a, w, b, t), g = new Date(b, w, a) < new Date(t.year, t.month, t.date), p = s && g;
255
255
  d.push(
256
256
  v({
257
- day: r,
257
+ day: a,
258
258
  currentDate: l,
259
- date: p(b, w, r),
259
+ date: m(b, w, a),
260
260
  isToday: u,
261
261
  isOutsideMonth: !0,
262
262
  select: n,
263
- disabled: m
263
+ disabled: p
264
264
  })
265
265
  );
266
266
  }
@@ -429,7 +429,7 @@ export {
429
429
  ct as A,
430
430
  Z as C,
431
431
  v as D,
432
- p as F,
432
+ m as F,
433
433
  nt as M,
434
434
  lt as P,
435
435
  _ as a,
@@ -1,6 +1,6 @@
1
1
  import { Div as n, H5 as _, P as b, I as g, Li as O, Span as a, Ul as V, Button as m, OnState as v, Label as W, Form as R, H2 as A, Header as B, Footer as M, A as Y, H3 as G, Checkbox as J, Nav as K, Input as C, UseParent as Q, Time as X, Dialog as Z } from "@base-framework/atoms";
2
2
  import { Atom as c, Component as p, Html as L, Dom as ee, base as te, Data as k, Builder as U, Jot as S, DateTime as $ } from "@base-framework/base";
3
- import { P as D, b as se } from "./calendar-C58Jn2WA.js";
3
+ import { P as D, b as se } from "./calendar-D8GLE8AM.js";
4
4
  import { B as h, I as x } from "./buttons-Cm9etaEG.js";
5
5
  import { Icons as u } from "./icons.es.js";
6
6
  import { a as w } from "./veil-D4dRxILB.js";
package/dist/index.es.js CHANGED
@@ -3,9 +3,9 @@ import { B as g, I as T, L as c } from "./buttons-Cm9etaEG.js";
3
3
  import { C as b, d as D, D as S, c as I, E as B, F as P, H as F, I as M, M as k, N, P as v, R as f, S as x, T as h, a as y, b as W, U as L, W as A } from "./inputs-Dmu4Z-7-.js";
4
4
  import { V as w, a as U } from "./veil-D4dRxILB.js";
5
5
  import { Icons as R } from "./icons.es.js";
6
- import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-Cwa4UcJr.js";
7
- import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-C58Jn2WA.js";
8
- import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-BmP_6HMl.js";
6
+ import { A as G, B as V, C as j, z as q, u as z, v as J, w as _, D as K, j as Q, k as X, G as Y, E as Z, s as $, c as aa, a as sa, b as ea, i as oa, g as ta, e as ra, h as na, F as ia, d as la, f as pa, t as ua, M as ma, l as da, N as ga, P as Ta, p as ca, q as Ca, S as ba, n as Da, o as Sa, T as Ia, x as Ba, y as Pa, m as Fa, r as Ma } from "./confirmation-NiMCveEM.js";
7
+ import { A as Na, b as va, C as fa, D as xa, a as ha, F as ya, M as Wa, P as La, c as Aa, g as Ha, p as wa } from "./calendar-D8GLE8AM.js";
8
+ import { B as Oa, n as Ra, C as Ea, j as Ga, D as Va, l as ja, H as qa, I as za, N as Ja, O as _a, P as Ka, S as Qa, m as Xa, r as Ya, q as Za, o as $a, p as as, T as ss, k as es, U as os, W as ts, f as rs, h as ns, i as is, c as ls, d as ps, b as us, e as ms, a as ds, g as gs } from "./signature-panel-rfv7cz7U.js";
9
9
  import { B as cs, I as Cs, M as bs, d as Ds, e as Ss, g as Is, N as Bs, b as Ps, a as Fs, f as Ms, P as ks, c as Ns, S as vs, T as fs } from "./mobile-nav-wrapper-Dj67Pb8l.js";
10
10
  import { B as hs, a as ys, C as Ws, F as Ls, b as As, c as Hs, M as ws, P as Us, S as Os } from "./sidebar-menu-page-BVryQj2Z.js";
11
11
  import { A as Es, F as Gs, M as Vs, a as js, T as qs } from "./aside-template-McEj_Gxc.js";
@@ -1,5 +1,5 @@
1
- import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-Cwa4UcJr.js";
2
- import { A as O, P as R, g as _ } from "./calendar-C58Jn2WA.js";
1
+ import { A as o, B as t, C as e, z as i, u as r, v as n, w as m, D as l, j as S, k as D, G as c, E as u, s as d, c as g, a as p, b as C, i as F, g as T, e as A, h as P, F as f, d as b, f as w, t as B, M as I, l as M, N as x, P as y, p as k, q as v, S as N, n as h, o as E, T as L, x as U, y as j, m as q, r as z } from "./confirmation-NiMCveEM.js";
2
+ import { A as O, P as R, g as _ } from "./calendar-D8GLE8AM.js";
3
3
  export {
4
4
  o as Alert,
5
5
  O as Avatar,
@@ -1,5 +1,5 @@
1
- import { B as s, n as o, C as t, j as r, D as l, l as n, H as i, I as b, N as d, O as v, P as g, S as p, m as u, r as N, q as k, o as D, p as C, T, k as c, U as M, W as B, f as m, h as y, i as W, c as h, d as H, b as P, e as S, a as f, g as x } from "./signature-panel-BmP_6HMl.js";
2
- import { b as L, C as O, D as F, a as U, F as G, M as j, c as q, p as w } from "./calendar-C58Jn2WA.js";
1
+ import { B as s, n as o, C as t, j as r, D as l, l as n, H as i, I as b, N as d, O as v, P as g, S as p, m as u, r as N, q as k, o as D, p as C, T, k as c, U as M, W as B, f as m, h as y, i as W, c as h, d as H, b as P, e as S, a as f, g as x } from "./signature-panel-rfv7cz7U.js";
2
+ import { b as L, C as O, D as F, a as U, F as G, M as j, c as q, p as w } from "./calendar-D8GLE8AM.js";
3
3
  import { B as A, I as E, M as J, d as K, e as Q, g as R, N as V, b as X, a as Y, f as Z, P as _, c as $, S as aa, T as ea } from "./mobile-nav-wrapper-Dj67Pb8l.js";
4
4
  export {
5
5
  s as BackButton,
@@ -4,7 +4,7 @@ import { B as C, I as V } from "./buttons-Cm9etaEG.js";
4
4
  import { Icons as k } from "./icons.es.js";
5
5
  import { TableBody as _, ScrollableTableBody as J, List as Z, IntervalTimer as ee } from "@base-framework/organisms";
6
6
  import { C as te, I as se, H as ae } from "./inputs-Dmu4Z-7-.js";
7
- import { A as ie, P as ne } from "./calendar-C58Jn2WA.js";
7
+ import { A as ie, P as ne } from "./calendar-D8GLE8AM.js";
8
8
  d((t, e) => ({
9
9
  class: "flex items-center px-4 py-2",
10
10
  ...t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.130",
3
+ "version": "1.0.132",
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": {