@embedreach/components 0.1.79 → 0.1.80

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 { 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";
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";
2
2
  var isNonNullable = (i2) => i2 != null;
3
3
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
4
4
  function chain(callbacks) {
@@ -1069,8 +1069,6 @@ function clsx() {
1069
1069
  (e2 = arguments[f]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
1070
1070
  return n2;
1071
1071
  }
1072
- var noop2 = () => {
1073
- };
1074
1072
  function createListTransition(source, options) {
1075
1073
  const initSource = untrack(source);
1076
1074
  const { onChange } = options;
@@ -1078,12 +1076,12 @@ function createListTransition(source, options) {
1078
1076
  const exiting = /* @__PURE__ */ new WeakSet();
1079
1077
  const [toRemove, setToRemove] = createSignal([], { equals: false });
1080
1078
  const [isTransitionPending] = useTransition();
1081
- const finishRemoved = options.exitMethod === "remove" ? noop2 : (els) => {
1079
+ const finishRemoved = (els) => {
1082
1080
  setToRemove((p2) => (p2.push.apply(p2, els), p2));
1083
1081
  for (const el of els)
1084
1082
  exiting.delete(el);
1085
1083
  };
1086
- const handleRemoved = options.exitMethod === "remove" ? noop2 : options.exitMethod === "keep-index" ? (els, el, i2) => els.splice(i2, 0, el) : (els, el) => els.push(el);
1084
+ const handleRemoved = (els, el, i2) => els.splice(i2, 0, el);
1087
1085
  return createMemo(
1088
1086
  (prev) => {
1089
1087
  const elsToRemove = toRemove();
@@ -1238,7 +1236,6 @@ var TransitionGroup = (props) => {
1238
1236
  const classnames = createClassnames(props);
1239
1237
  return createListTransition(resolveElements(() => props.children).toArray, {
1240
1238
  appear: props.appear,
1241
- exitMethod: "keep-index",
1242
1239
  onChange({ added, removed, finishRemoved, list }) {
1243
1240
  const classes = classnames();
1244
1241
  for (const el of added) {
@@ -1673,7 +1670,7 @@ function getFocusableTreeWalker(root, opts, scope) {
1673
1670
  if (opts?.from?.contains(node)) {
1674
1671
  return NodeFilter.FILTER_REJECT;
1675
1672
  }
1676
- if (node.matches(selector) && isElementVisible(node) && !scope && (!opts?.accept || opts.accept(node))) {
1673
+ if (node.matches(selector) && isElementVisible(node) && true && (!opts?.accept || opts.accept(node))) {
1677
1674
  return NodeFilter.FILTER_ACCEPT;
1678
1675
  }
1679
1676
  return NodeFilter.FILTER_SKIP;
@@ -8284,85 +8281,34 @@ var tokens = {
8284
8281
  }
8285
8282
  },
8286
8283
  alpha: {
8287
- 100: "ff",
8288
8284
  90: "e5",
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"
8285
+ 80: "cc"
8298
8286
  },
8299
8287
  font: {
8300
8288
  size: {
8301
- "2xs": "calc(var(--tsqd-font-size) * 0.625)",
8302
8289
  xs: "calc(var(--tsqd-font-size) * 0.75)",
8303
8290
  sm: "calc(var(--tsqd-font-size) * 0.875)",
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)"
8291
+ md: "var(--tsqd-font-size)"
8315
8292
  },
8316
8293
  lineHeight: {
8317
8294
  xs: "calc(var(--tsqd-font-size) * 1)",
8318
8295
  sm: "calc(var(--tsqd-font-size) * 1.25)",
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)"
8296
+ md: "calc(var(--tsqd-font-size) * 1.5)"
8330
8297
  },
8331
8298
  weight: {
8332
- thin: "100",
8333
- extralight: "200",
8334
- light: "300",
8335
- normal: "400",
8336
8299
  medium: "500",
8337
8300
  semibold: "600",
8338
- bold: "700",
8339
- extrabold: "800",
8340
- black: "900"
8301
+ bold: "700"
8341
8302
  }
8342
8303
  },
8343
- breakpoints: {
8344
- xs: "320px",
8345
- sm: "640px",
8346
- md: "768px",
8347
- lg: "1024px",
8348
- xl: "1280px",
8349
- "2xl": "1536px"
8350
- },
8351
8304
  border: {
8352
8305
  radius: {
8353
- none: "0px",
8354
8306
  xs: "calc(var(--tsqd-font-size) * 0.125)",
8355
8307
  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)",
8361
8308
  full: "9999px"
8362
8309
  }
8363
8310
  },
8364
8311
  size: {
8365
- 0: "0px",
8366
8312
  0.25: "calc(var(--tsqd-font-size) * 0.0625)",
8367
8313
  0.5: "calc(var(--tsqd-font-size) * 0.125)",
8368
8314
  1: "calc(var(--tsqd-font-size) * 0.25)",
@@ -8374,32 +8320,9 @@ var tokens = {
8374
8320
  4: "calc(var(--tsqd-font-size) * 1)",
8375
8321
  4.5: "calc(var(--tsqd-font-size) * 1.125)",
8376
8322
  5: "calc(var(--tsqd-font-size) * 1.25)",
8377
- 5.5: "calc(var(--tsqd-font-size) * 1.375)",
8378
8323
  6: "calc(var(--tsqd-font-size) * 1.5)",
8379
8324
  6.5: "calc(var(--tsqd-font-size) * 1.625)",
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)"
8325
+ 14: "calc(var(--tsqd-font-size) * 3.5)"
8403
8326
  },
8404
8327
  shadow: {
8405
8328
  xs: (_ = "rgb(0 0 0 / 0.1)") => `0 1px 2px 0 rgb(0 0 0 / 0.05)`,
@@ -8410,21 +8333,6 @@ var tokens = {
8410
8333
  "2xl": (color = "rgb(0 0 0 / 0.25)") => `0 25px 50px -12px ${color}`,
8411
8334
  inner: (color = "rgb(0 0 0 / 0.05)") => `inset 0 2px 4px 0 ${color}`,
8412
8335
  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
8428
8336
  }
8429
8337
  };
8430
8338
  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>`);