@embedreach/components 0.1.93 → 0.1.95

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.
@@ -1,4 +1,4 @@
1
- import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, m as mutationSortFns, n as on, p as setAttribute, q as getSidedProp, r as use, v as createUniqueId, w as batch, x as getQueryStatusLabel, y as getMutationStatusColor, z as getQueryStatusColor, A as getQueryStatusColorByLabel, B as displayValue, F as For, C as convertRemToPixels, D as untrack, $ as $TRACK, E as useTransition, G as spread, H as mergeProps, I as createRoot, J as serialize, K as Index, L as updateNestedDataByPath, M as addEventListener, N as stringify, O as Match, Q as Switch, R as deleteNestedDataByPath, T as splitProps, U as Dynamic, V as createComputed } from "./index.js";
1
+ import { s as sortFns, m as mutationSortFns, b as createSignal, d as delegateEvents, e as createEffect, a as createComponent, f as mergeProps, h as splitProps, S as Show, c as createMemo, i as createContext, u as useContext, j as createRenderEffect, k as setAttribute, l as createUniqueId, o as on, P as Portal, n as onCleanup, D as Dynamic, t as template, p as onMount, q as use, r as insert, v as className, w as getQueryStatusColor, x as getMutationStatusColor, y as spread, z as getQueryStatusColorByLabel, A as displayValue, F as For, B as batch, C as clearDelegatedEvents, E as untrack, G as createComputed, H as serialize, I as Index, J as updateNestedDataByPath, K as convertRemToPixels, L as getSidedProp, M as getQueryStatusLabel, $ as $TRACK, N as createRoot, O as addEventListener, Q as stringify, R as Match, T as Switch, U as deleteNestedDataByPath, V as useTransition } from "./index.js";
2
2
  var isNonNullable = (i2) => i2 != null;
3
3
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
4
4
  function chain(callbacks) {
@@ -1069,6 +1069,8 @@ function clsx() {
1069
1069
  (e2 = arguments[f]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
1070
1070
  return n2;
1071
1071
  }
1072
+ var noop2 = () => {
1073
+ };
1072
1074
  function createListTransition(source, options) {
1073
1075
  const initSource = untrack(source);
1074
1076
  const { onChange } = options;
@@ -1076,12 +1078,12 @@ function createListTransition(source, options) {
1076
1078
  const exiting = /* @__PURE__ */ new WeakSet();
1077
1079
  const [toRemove, setToRemove] = createSignal([], { equals: false });
1078
1080
  const [isTransitionPending] = useTransition();
1079
- const finishRemoved = (els) => {
1081
+ const finishRemoved = options.exitMethod === "remove" ? noop2 : (els) => {
1080
1082
  setToRemove((p2) => (p2.push.apply(p2, els), p2));
1081
1083
  for (const el of els)
1082
1084
  exiting.delete(el);
1083
1085
  };
1084
- const handleRemoved = (els, el, i2) => els.splice(i2, 0, el);
1086
+ const handleRemoved = options.exitMethod === "remove" ? noop2 : options.exitMethod === "keep-index" ? (els, el, i2) => els.splice(i2, 0, el) : (els, el) => els.push(el);
1085
1087
  return createMemo(
1086
1088
  (prev) => {
1087
1089
  const elsToRemove = toRemove();
@@ -1236,6 +1238,7 @@ var TransitionGroup = (props) => {
1236
1238
  const classnames = createClassnames(props);
1237
1239
  return createListTransition(resolveElements(() => props.children).toArray, {
1238
1240
  appear: props.appear,
1241
+ exitMethod: "keep-index",
1239
1242
  onChange({ added, removed, finishRemoved, list }) {
1240
1243
  const classes = classnames();
1241
1244
  for (const el of added) {
@@ -1670,7 +1673,7 @@ function getFocusableTreeWalker(root, opts, scope) {
1670
1673
  if (opts?.from?.contains(node)) {
1671
1674
  return NodeFilter.FILTER_REJECT;
1672
1675
  }
1673
- if (node.matches(selector) && isElementVisible(node) && true && (!opts?.accept || opts.accept(node))) {
1676
+ if (node.matches(selector) && isElementVisible(node) && !scope && (!opts?.accept || opts.accept(node))) {
1674
1677
  return NodeFilter.FILTER_ACCEPT;
1675
1678
  }
1676
1679
  return NodeFilter.FILTER_SKIP;
@@ -8281,34 +8284,85 @@ var tokens = {
8281
8284
  }
8282
8285
  },
8283
8286
  alpha: {
8287
+ 100: "ff",
8284
8288
  90: "e5",
8285
- 80: "cc"
8289
+ 80: "cc",
8290
+ 70: "b3",
8291
+ 60: "99",
8292
+ 50: "80",
8293
+ 40: "66",
8294
+ 30: "4d",
8295
+ 20: "33",
8296
+ 10: "1a",
8297
+ 0: "00"
8286
8298
  },
8287
8299
  font: {
8288
8300
  size: {
8301
+ "2xs": "calc(var(--tsqd-font-size) * 0.625)",
8289
8302
  xs: "calc(var(--tsqd-font-size) * 0.75)",
8290
8303
  sm: "calc(var(--tsqd-font-size) * 0.875)",
8291
- md: "var(--tsqd-font-size)"
8304
+ md: "var(--tsqd-font-size)",
8305
+ lg: "calc(var(--tsqd-font-size) * 1.125)",
8306
+ xl: "calc(var(--tsqd-font-size) * 1.25)",
8307
+ "2xl": "calc(var(--tsqd-font-size) * 1.5)",
8308
+ "3xl": "calc(var(--tsqd-font-size) * 1.875)",
8309
+ "4xl": "calc(var(--tsqd-font-size) * 2.25)",
8310
+ "5xl": "calc(var(--tsqd-font-size) * 3)",
8311
+ "6xl": "calc(var(--tsqd-font-size) * 3.75)",
8312
+ "7xl": "calc(var(--tsqd-font-size) * 4.5)",
8313
+ "8xl": "calc(var(--tsqd-font-size) * 6)",
8314
+ "9xl": "calc(var(--tsqd-font-size) * 8)"
8292
8315
  },
8293
8316
  lineHeight: {
8294
8317
  xs: "calc(var(--tsqd-font-size) * 1)",
8295
8318
  sm: "calc(var(--tsqd-font-size) * 1.25)",
8296
- md: "calc(var(--tsqd-font-size) * 1.5)"
8319
+ md: "calc(var(--tsqd-font-size) * 1.5)",
8320
+ lg: "calc(var(--tsqd-font-size) * 1.75)",
8321
+ xl: "calc(var(--tsqd-font-size) * 2)",
8322
+ "2xl": "calc(var(--tsqd-font-size) * 2.25)",
8323
+ "3xl": "calc(var(--tsqd-font-size) * 2.5)",
8324
+ "4xl": "calc(var(--tsqd-font-size) * 2.75)",
8325
+ "5xl": "calc(var(--tsqd-font-size) * 3)",
8326
+ "6xl": "calc(var(--tsqd-font-size) * 3.25)",
8327
+ "7xl": "calc(var(--tsqd-font-size) * 3.5)",
8328
+ "8xl": "calc(var(--tsqd-font-size) * 3.75)",
8329
+ "9xl": "calc(var(--tsqd-font-size) * 4)"
8297
8330
  },
8298
8331
  weight: {
8332
+ thin: "100",
8333
+ extralight: "200",
8334
+ light: "300",
8335
+ normal: "400",
8299
8336
  medium: "500",
8300
8337
  semibold: "600",
8301
- bold: "700"
8338
+ bold: "700",
8339
+ extrabold: "800",
8340
+ black: "900"
8302
8341
  }
8303
8342
  },
8343
+ breakpoints: {
8344
+ xs: "320px",
8345
+ sm: "640px",
8346
+ md: "768px",
8347
+ lg: "1024px",
8348
+ xl: "1280px",
8349
+ "2xl": "1536px"
8350
+ },
8304
8351
  border: {
8305
8352
  radius: {
8353
+ none: "0px",
8306
8354
  xs: "calc(var(--tsqd-font-size) * 0.125)",
8307
8355
  sm: "calc(var(--tsqd-font-size) * 0.25)",
8356
+ md: "calc(var(--tsqd-font-size) * 0.375)",
8357
+ lg: "calc(var(--tsqd-font-size) * 0.5)",
8358
+ xl: "calc(var(--tsqd-font-size) * 0.75)",
8359
+ "2xl": "calc(var(--tsqd-font-size) * 1)",
8360
+ "3xl": "calc(var(--tsqd-font-size) * 1.5)",
8308
8361
  full: "9999px"
8309
8362
  }
8310
8363
  },
8311
8364
  size: {
8365
+ 0: "0px",
8312
8366
  0.25: "calc(var(--tsqd-font-size) * 0.0625)",
8313
8367
  0.5: "calc(var(--tsqd-font-size) * 0.125)",
8314
8368
  1: "calc(var(--tsqd-font-size) * 0.25)",
@@ -8320,9 +8374,32 @@ var tokens = {
8320
8374
  4: "calc(var(--tsqd-font-size) * 1)",
8321
8375
  4.5: "calc(var(--tsqd-font-size) * 1.125)",
8322
8376
  5: "calc(var(--tsqd-font-size) * 1.25)",
8377
+ 5.5: "calc(var(--tsqd-font-size) * 1.375)",
8323
8378
  6: "calc(var(--tsqd-font-size) * 1.5)",
8324
8379
  6.5: "calc(var(--tsqd-font-size) * 1.625)",
8325
- 14: "calc(var(--tsqd-font-size) * 3.5)"
8380
+ 7: "calc(var(--tsqd-font-size) * 1.75)",
8381
+ 8: "calc(var(--tsqd-font-size) * 2)",
8382
+ 9: "calc(var(--tsqd-font-size) * 2.25)",
8383
+ 10: "calc(var(--tsqd-font-size) * 2.5)",
8384
+ 11: "calc(var(--tsqd-font-size) * 2.75)",
8385
+ 12: "calc(var(--tsqd-font-size) * 3)",
8386
+ 14: "calc(var(--tsqd-font-size) * 3.5)",
8387
+ 16: "calc(var(--tsqd-font-size) * 4)",
8388
+ 20: "calc(var(--tsqd-font-size) * 5)",
8389
+ 24: "calc(var(--tsqd-font-size) * 6)",
8390
+ 28: "calc(var(--tsqd-font-size) * 7)",
8391
+ 32: "calc(var(--tsqd-font-size) * 8)",
8392
+ 36: "calc(var(--tsqd-font-size) * 9)",
8393
+ 40: "calc(var(--tsqd-font-size) * 10)",
8394
+ 44: "calc(var(--tsqd-font-size) * 11)",
8395
+ 48: "calc(var(--tsqd-font-size) * 12)",
8396
+ 52: "calc(var(--tsqd-font-size) * 13)",
8397
+ 56: "calc(var(--tsqd-font-size) * 14)",
8398
+ 60: "calc(var(--tsqd-font-size) * 15)",
8399
+ 64: "calc(var(--tsqd-font-size) * 16)",
8400
+ 72: "calc(var(--tsqd-font-size) * 18)",
8401
+ 80: "calc(var(--tsqd-font-size) * 20)",
8402
+ 96: "calc(var(--tsqd-font-size) * 24)"
8326
8403
  },
8327
8404
  shadow: {
8328
8405
  xs: (_ = "rgb(0 0 0 / 0.1)") => `0 1px 2px 0 rgb(0 0 0 / 0.05)`,
@@ -8333,6 +8410,21 @@ var tokens = {
8333
8410
  "2xl": (color = "rgb(0 0 0 / 0.25)") => `0 25px 50px -12px ${color}`,
8334
8411
  inner: (color = "rgb(0 0 0 / 0.05)") => `inset 0 2px 4px 0 ${color}`,
8335
8412
  none: () => `none`
8413
+ },
8414
+ zIndices: {
8415
+ hide: -1,
8416
+ auto: "auto",
8417
+ base: 0,
8418
+ docked: 10,
8419
+ dropdown: 1e3,
8420
+ sticky: 1100,
8421
+ banner: 1200,
8422
+ overlay: 1300,
8423
+ modal: 1400,
8424
+ popover: 1500,
8425
+ skipLink: 1600,
8426
+ toast: 1700,
8427
+ tooltip: 1800
8336
8428
  }
8337
8429
  };
8338
8430
  var _tmpl$2 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);