svelte-ag 1.0.16 → 1.0.17

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.
Files changed (85) hide show
  1. package/dist/lib/api/query/query.svelte.d.ts +1 -1
  2. package/dist/lib/api/query/query.svelte.d.ts.map +1 -1
  3. package/dist/lib/api/query/query.svelte.js +4 -4
  4. package/dist/lib/components/animated/animated.svelte +7 -7
  5. package/dist/lib/components/breakpoint-badge/BreakpointBadge.svelte +7 -1
  6. package/dist/lib/components/breakpoint-badge/BreakpointBadge.svelte.d.ts.map +1 -1
  7. package/dist/lib/components/dnd/DndDroppable.svelte +1 -0
  8. package/dist/lib/components/dnd/DndDroppable.svelte.d.ts.map +1 -1
  9. package/dist/lib/components/dnd/DndHandle.svelte +1 -1
  10. package/dist/lib/components/dnd/DndItem.svelte +1 -0
  11. package/dist/lib/components/dnd/DndItem.svelte.d.ts.map +1 -1
  12. package/dist/lib/components/dnd/DndSortableItem.svelte +1 -0
  13. package/dist/lib/components/dnd/DndSortableItem.svelte.d.ts +1 -1
  14. package/dist/lib/components/dnd/DndSortableItem.svelte.d.ts.map +1 -1
  15. package/dist/lib/components/dnd/examples/SimpleSortable.svelte +4 -4
  16. package/dist/lib/components/dnd/utils.svelte.d.ts +2 -1
  17. package/dist/lib/components/dnd/utils.svelte.d.ts.map +1 -1
  18. package/dist/lib/components/form/form-description.svelte +1 -1
  19. package/dist/lib/components/form/form-field-errors.svelte +1 -1
  20. package/dist/lib/components/form/form-legend.svelte +1 -1
  21. package/dist/lib/components/gradient/Gradient.svelte +2 -2
  22. package/dist/lib/components/search/combinations/searchPopover.svelte +1 -1
  23. package/dist/lib/components/search/components/search-input.svelte +2 -2
  24. package/dist/lib/components/search/components/search-list.svelte +1 -1
  25. package/dist/lib/components/shader/WebGpuShader.svelte +2 -1
  26. package/dist/lib/components/shader/WebGpuShader.svelte.d.ts.map +1 -1
  27. package/dist/lib/components/sidebar/sidebar-content.svelte +4 -1
  28. package/dist/lib/components/sidebar/sidebar-content.svelte.d.ts.map +1 -1
  29. package/dist/lib/components/sidebar/sidebar-group-action.svelte +11 -2
  30. package/dist/lib/components/sidebar/sidebar-group-action.svelte.d.ts.map +1 -1
  31. package/dist/lib/components/sidebar/sidebar-group-label.svelte +1 -1
  32. package/dist/lib/components/sidebar/sidebar-input.svelte +7 -1
  33. package/dist/lib/components/sidebar/sidebar-input.svelte.d.ts +1 -1
  34. package/dist/lib/components/sidebar/sidebar-input.svelte.d.ts.map +1 -1
  35. package/dist/lib/components/sidebar/sidebar-inset.svelte +3 -4
  36. package/dist/lib/components/sidebar/sidebar-inset.svelte.d.ts.map +1 -1
  37. package/dist/lib/components/sidebar/sidebar-menu-action.svelte +8 -5
  38. package/dist/lib/components/sidebar/sidebar-menu-action.svelte.d.ts.map +1 -1
  39. package/dist/lib/components/sidebar/sidebar-menu-badge.svelte +8 -2
  40. package/dist/lib/components/sidebar/sidebar-menu-badge.svelte.d.ts.map +1 -1
  41. package/dist/lib/components/sidebar/sidebar-menu-button.svelte +8 -8
  42. package/dist/lib/components/sidebar/sidebar-menu-sub-button.svelte +4 -4
  43. package/dist/lib/components/sidebar/sidebar-menu-sub.svelte +1 -1
  44. package/dist/lib/components/sidebar/sidebar-provider.svelte +1 -1
  45. package/dist/lib/components/sidebar/sidebar-rail.svelte +5 -4
  46. package/dist/lib/components/sidebar/sidebar-rail.svelte.d.ts.map +1 -1
  47. package/dist/lib/components/sidebar/sidebar-separator.svelte +1 -1
  48. package/dist/lib/components/sidebar/sidebar.svelte +9 -9
  49. package/dist/lib/vite/vite-plugin-component-source-collector.d.ts +0 -1
  50. package/dist/lib/vite/vite-plugin-component-source-collector.d.ts.map +1 -1
  51. package/dist/lib/vite/vite-plugin-component-source-collector.js +13 -15
  52. package/dist/routes/+page.svelte +1 -1
  53. package/package.json +37 -44
  54. package/src/lib/api/query/query.svelte.ts +4 -4
  55. package/src/lib/components/animated/animated.svelte +7 -7
  56. package/src/lib/components/breakpoint-badge/BreakpointBadge.svelte +7 -1
  57. package/src/lib/components/dnd/DndDroppable.svelte +1 -0
  58. package/src/lib/components/dnd/DndHandle.svelte +1 -1
  59. package/src/lib/components/dnd/DndItem.svelte +1 -0
  60. package/src/lib/components/dnd/DndSortableItem.svelte +1 -0
  61. package/src/lib/components/dnd/examples/SimpleSortable.svelte +4 -4
  62. package/src/lib/components/form/form-description.svelte +1 -1
  63. package/src/lib/components/form/form-field-errors.svelte +1 -1
  64. package/src/lib/components/form/form-legend.svelte +1 -1
  65. package/src/lib/components/gradient/Gradient.svelte +2 -2
  66. package/src/lib/components/search/combinations/searchPopover.svelte +1 -1
  67. package/src/lib/components/search/components/search-input.svelte +2 -2
  68. package/src/lib/components/search/components/search-list.svelte +1 -1
  69. package/src/lib/components/shader/WebGpuShader.svelte +2 -1
  70. package/src/lib/components/sidebar/sidebar-content.svelte +4 -1
  71. package/src/lib/components/sidebar/sidebar-group-action.svelte +11 -2
  72. package/src/lib/components/sidebar/sidebar-group-label.svelte +1 -1
  73. package/src/lib/components/sidebar/sidebar-input.svelte +7 -1
  74. package/src/lib/components/sidebar/sidebar-inset.svelte +3 -4
  75. package/src/lib/components/sidebar/sidebar-menu-action.svelte +8 -5
  76. package/src/lib/components/sidebar/sidebar-menu-badge.svelte +8 -2
  77. package/src/lib/components/sidebar/sidebar-menu-button.svelte +8 -8
  78. package/src/lib/components/sidebar/sidebar-menu-sub-button.svelte +4 -4
  79. package/src/lib/components/sidebar/sidebar-menu-sub.svelte +1 -1
  80. package/src/lib/components/sidebar/sidebar-provider.svelte +1 -1
  81. package/src/lib/components/sidebar/sidebar-rail.svelte +5 -4
  82. package/src/lib/components/sidebar/sidebar-separator.svelte +1 -1
  83. package/src/lib/components/sidebar/sidebar.svelte +9 -9
  84. package/src/lib/vite/vite-plugin-component-source-collector.ts +13 -18
  85. package/src/routes/+page.svelte +1 -1
@@ -28,7 +28,7 @@ export declare class Requestor<API extends ApiEndpoints, Path extends API['path'
28
28
  path: Path;
29
29
  }>['method']> {
30
30
  #private;
31
- constructor(path: Path, method: Method, request: ApiRequestFunction<API>, cache: Cache, batchDetails?: BatchDetails<API, Path, Method>);
31
+ constructor(path: Path, method: Method, request: ApiRequestFunction<API>, _cache: Cache, batchDetails?: BatchDetails<API, Path, Method>);
32
32
  private fetch;
33
33
  /**
34
34
  * Empties the batch queue for the id by combining the inputs.
@@ -1 +1 @@
1
- {"version":3,"file":"query.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/query/query.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,kBAAkB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAInH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAK5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEnE,qBAAa,KAAK,CAChB,GAAG,SAAS,YAAY,EACxB,IAAI,SAAS,GAAG,CAAC,MAAM,CAAC,EACxB,MAAM,SAAS,OAAO,CAAC,GAAG,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,QAAQ,CAAC;;gBAyBzC,EACV,IAAI,EACJ,MAAM,EACN,KAAK,EACL,SAAS,EACT,KAAK,EACN,EAAE;QACD,IAAI,EAAE,IAAI,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QACnC,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QACxC,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,CAAC,EAAE;YACL,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAA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M,SAAS,OAAO,CAAC,GAAG,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,QAAQ,CAAC;;gBA6BnD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAChC,MAAM,EAAE,KAAK,EACb,YAAY,CAAC,EAAE,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC;YAkBlC,KAAK;IAOnB;;;OAGG;YACW,eAAe;IAqBvB,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;CAkB3F"}
@@ -91,11 +91,11 @@ export class Requestor {
91
91
  #batchInput;
92
92
  #unBatchOutput;
93
93
  #limiter;
94
- #cache;
94
+ // #cache: Cache;
95
95
  // -------- State --------
96
96
  #batchQueue = {};
97
97
  #batchTimers = {};
98
- constructor(path, method, request, cache, batchDetails) {
98
+ constructor(path, method, request, _cache, batchDetails) {
99
99
  this.#path = path;
100
100
  this.#method = method;
101
101
  this.#request = request;
@@ -103,11 +103,11 @@ export class Requestor {
103
103
  maxConcurrent: 5,
104
104
  minTime: 100
105
105
  });
106
- this.#cache = cache;
106
+ // this.#cache = cache;
107
107
  // TODO
108
108
  this.#canBatch = batchDetails ? batchDetails.canBatch : () => false;
109
109
  this.#batchInput = batchDetails ? batchDetails.batchInput : (inputs) => inputs;
110
- this.#unBatchOutput = batchDetails ? batchDetails.unBatchOutput : (inputs, output) => [output];
110
+ this.#unBatchOutput = batchDetails ? batchDetails.unBatchOutput : (_inputs, output) => [output];
111
111
  }
112
112
  // Makes the actual call to the api
113
113
  async fetch(input) {
@@ -6,30 +6,30 @@
6
6
  variants: {
7
7
  animation: {
8
8
  flyAndScale: `
9
+ data-[state="hidden"]:animate-out data-[state="hidden"]:fade-out-0 data-[state="hidden"]:zoom-out-95
10
+ data-[state="hidden"]:slide-out-to-bottom-[10%]
9
11
  data-[state="visible"]:animate-in data-[state="visible"]:fade-in-0 data-[state="visible"]:zoom-in-95
10
12
  data-[state="visible"]:slide-in-from-bottom-[10%]
11
- data-[state="hidden"]:fade-out-0 data-[state="hidden"]:zoom-out-95
12
- data-[state="hidden"]:slide-out-to-bottom-[10%] data-[state="hidden"]:animate-out
13
13
  `,
14
14
  slide: `
15
+ data-[state="hidden"]:animate-out data-[state="hidden"]:slide-out-to-right
15
16
  data-[state="visible"]:animate-in data-[state="visible"]:slide-in-from-right
16
- data-[state="hidden"]:slide-out-to-right data-[state="hidden"]:animate-out
17
17
  `,
18
18
  fade: `
19
+ data-[state="hidden"]:animate-out data-[state="hidden"]:fade-out
19
20
  data-[state="visible"]:animate-in data-[state="visible"]:fade-in
20
- data-[state="hidden"]:fade-out data-[state="hidden"]:animate-out
21
21
  `,
22
22
  zoom: `
23
+ data-[state="hidden"]:animate-out data-[state="hidden"]:zoom-out-95
23
24
  data-[state="visible"]:animate-in data-[state="visible"]:zoom-in-95
24
- data-[state="hidden"]:zoom-out-95 data-[state="hidden"]:animate-out
25
25
  `,
26
26
  slideUp: `
27
+ data-[state="hidden"]:animate-out data-[state="hidden"]:slide-out-to-bottom
27
28
  data-[state="visible"]:animate-in data-[state="visible"]:slide-in-from-bottom
28
- data-[state="hidden"]:slide-out-to-bottom data-[state="hidden"]:animate-out
29
29
  `,
30
30
  slideDown: `
31
+ data-[state="hidden"]:animate-out data-[state="hidden"]:slide-out-to-top
31
32
  data-[state="visible"]:animate-in data-[state="visible"]:slide-in-from-top
32
- data-[state="hidden"]:slide-out-to-top data-[state="hidden"]:animate-out
33
33
  `,
34
34
  growHeight: `overflow-hidden`
35
35
  },
@@ -77,7 +77,13 @@
77
77
  <div class="w-fit">
78
78
  {#each breakpoints as bp (bp.name)}
79
79
  <div
80
- class="{bp.rounded} {bp.bgClass} {bp.hideClass} border {bp.borderClass} px-2 text-xs font-bold {bp.textClass}"
80
+ class="{bp.rounded}
81
+ {bp.bgClass}
82
+ {bp.hideClass}
83
+ border
84
+ {bp.borderClass}
85
+ px-2 text-xs font-bold
86
+ {bp.textClass}"
81
87
  >
82
88
  {bp.name}
83
89
  </div>
@@ -1 +1 @@
1
- {"version":3,"file":"BreakpointBadge.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/breakpoint-badge/BreakpointBadge.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,0BAA0B,GAAG;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AAuF5D,QAAA,MAAM,eAAe,gEAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"BreakpointBadge.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/breakpoint-badge/BreakpointBadge.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,0BAA0B,GAAG;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AA6F5D,QAAA,MAAM,eAAe,gEAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
@@ -10,6 +10,7 @@
10
10
 
11
11
  let { children, class: className, ...rest }: DroppableProps = $props();
12
12
 
13
+ // svelte-ignore state_referenced_locally
13
14
  const { ref, isDropTarget } = useDroppable(rest);
14
15
  </script>
15
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"DndDroppable.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/DndDroppable.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGpC,UAAU,cAAe,SAAQ,iBAAiB;IAChD,QAAQ,EAAE,OAAO,CAAC,CAAC;QAAE,YAAY,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAkBH,QAAA,MAAM,YAAY,oDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"DndDroppable.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/DndDroppable.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGpC,UAAU,cAAe,SAAQ,iBAAiB;IAChD,QAAQ,EAAE,OAAO,CAAC,CAAC;QAAE,YAAY,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAmBH,QAAA,MAAM,YAAY,oDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
@@ -14,7 +14,7 @@
14
14
  let handleClass = $derived(
15
15
  cn(
16
16
  `
17
- icon-draghandle text-muted-foreground flex size-4 transition-colors duration-150
17
+ icon-draghandle flex size-4 text-muted-foreground transition-colors duration-150
18
18
  hover:text-foreground
19
19
  `,
20
20
  item?.isDragging?.current ? `cursor-grabbing` : `cursor-grab`,
@@ -27,6 +27,7 @@
27
27
 
28
28
  let { child, class: className, style: styleName, ...rest }: DndItemProps = $props();
29
29
 
30
+ // svelte-ignore state_referenced_locally
30
31
  const { isDragging, ref, handleRef } = useDraggable({
31
32
  ...rest
32
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"DndItem.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/DndItem.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAC1C,iBAAiB,GAAG;IAClB,KAAK,EAAE,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;CACrC,CAAC;AAGN;;;;;;;;KAQK;AACL,OAAO,EAAM,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AA8BtC,QAAA,MAAM,OAAO,kDAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"DndItem.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/DndItem.svelte.ts"],"names":[],"mappings":"AAGE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAC1C,iBAAiB,GAAG;IAClB,KAAK,EAAE,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;CACrC,CAAC;AAGN;;;;;;;;KAQK;AACL,OAAO,EAAM,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AA+BtC,QAAA,MAAM,OAAO,kDAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
@@ -35,6 +35,7 @@
35
35
 
36
36
  let { class: className, child, ...rest }: DndSortableItemProps = $props();
37
37
 
38
+ // svelte-ignore state_referenced_locally
38
39
  const { ref, handleRef, isDragging } = useSortable({ ...rest, feedback: 'move' });
39
40
 
40
41
  setItemContext({ handleRef, isDragging });
@@ -15,7 +15,7 @@ export declare function getItemContext(): ItemContext;
15
15
  import { useSortable, type UseSortableInput } from '@dnd-kit-svelte/svelte/sortable';
16
16
  import type { HTMLDivAttributes } from '../../utils/bits.js';
17
17
  import type { Attachment } from 'svelte/attachments';
18
- declare const DndSortableItem: import("svelte").Component<any, {}, "">;
18
+ declare const DndSortableItem: import("svelte").Component<DndSortableItemProps, {}, "">;
19
19
  type DndSortableItem = ReturnType<typeof DndSortableItem>;
20
20
  export default DndSortableItem;
21
21
  //# sourceMappingURL=DndSortableItem.svelte.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DndSortableItem.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/DndSortableItem.svelte.ts"],"names":[],"mappings":"AAGE,OAAO,EAA0B,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GACjD,iBAAiB,GAAG;IAClB,KAAK,EAAE,OAAO,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC;CAC1C,CAAC;AAIJ,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC;IACzD,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAChC,CAA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MAAM,oBAAoB,CAAC;AA2BrD,QAAA,MAAM,eAAe,0DAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
@@ -19,11 +19,11 @@
19
19
  </script>
20
20
 
21
21
  <button onclick={() => console.log($state.snapshot(items))}>hello</button>
22
- <SimpleSortable class="bg-sidebar flex h-100 flex-col gap-4 rounded-2xl p-6" bind:items>
22
+ <SimpleSortable class="flex h-100 flex-col gap-4 rounded-2xl bg-sidebar p-6" bind:items>
23
23
  {#snippet item(p)}
24
24
  <div
25
25
  class={cn(
26
- 'bg-secondary text-secondary-foreground rounded-md border-2 p-2',
26
+ 'rounded-md border-2 bg-secondary p-2 text-secondary-foreground',
27
27
  p.isOverlay && 'shadow-2xl',
28
28
  p.isDragging && 'bg-amber-700 opacity-20'
29
29
  )}
@@ -37,11 +37,11 @@
37
37
  </SimpleSortable>
38
38
 
39
39
  <!-- With handle -->
40
- <SimpleSortable class="bg-sidebar flex h-100 flex-col gap-4 rounded-2xl p-6" bind:items={items2}>
40
+ <SimpleSortable class="flex h-100 flex-col gap-4 rounded-2xl bg-sidebar p-6" bind:items={items2}>
41
41
  {#snippet item(p)}
42
42
  <div
43
43
  class={cn(
44
- 'bg-secondary text-secondary-foreground rounded-md border-2 p-2',
44
+ 'rounded-md border-2 bg-secondary p-2 text-secondary-foreground',
45
45
  p.isOverlay && 'shadow-2xl',
46
46
  p.isDragging && 'bg-amber-700 opacity-20'
47
47
  )}
@@ -1,6 +1,7 @@
1
1
  import { KeyboardSensor, PointerSensor } from '@dnd-kit-svelte/svelte';
2
+ import { RestrictToWindowEdges } from '@dnd-kit-svelte/svelte/modifiers';
2
3
  export declare const sensors: (typeof KeyboardSensor | typeof PointerSensor)[];
3
- export declare const modifiers: any[];
4
+ export declare const modifiers: (typeof RestrictToWindowEdges)[];
4
5
  /**
5
6
  * Finds an item recursively through the dnd.items list and each item's children
6
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"utils.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/utils.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvE,eAAO,MAAM,OAAO,kDAAkC,CAAC;AACvD,eAAO,MAAM,SAAS,OAA0B,CAAC;AAEjD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;CAAE,EAC/D,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,KAAK,EAAE,CAAC,EAAE,GACT;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,IAAI,EAAE,CAAC,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAanD"}
1
+ {"version":3,"file":"utils.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/dnd/utils.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,eAAO,MAAM,OAAO,kDAAkC,CAAC;AACvD,eAAO,MAAM,SAAS,kCAA0B,CAAC;AAEjD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;CAAE,EAC/D,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,KAAK,EAAE,CAAC,EAAE,GACT;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,IAAI,EAAE,CAAC,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAanD"}
@@ -13,6 +13,6 @@
13
13
  <FormPrimitive.Description
14
14
  bind:ref
15
15
  data-slot="form-description"
16
- class={cn('text-muted-foreground text-sm', className)}
16
+ class={cn('text-sm text-muted-foreground', className)}
17
17
  {...restProps}
18
18
  />
@@ -14,7 +14,7 @@
14
14
  } = $props();
15
15
  </script>
16
16
 
17
- <FormPrimitive.FieldErrors bind:ref class={cn('text-destructive text-sm font-medium', className)} {...restProps}>
17
+ <FormPrimitive.FieldErrors bind:ref class={cn('text-sm font-medium text-destructive', className)} {...restProps}>
18
18
  {#snippet children({ errors, errorProps })}
19
19
  {#if childrenProp}
20
20
  {@render childrenProp({ errors, errorProps })}
@@ -10,8 +10,8 @@
10
10
  bind:ref
11
11
  class={cn(
12
12
  `
13
- data-fs-error:text-destructive
14
13
  text-sm leading-none font-medium
14
+ data-fs-error:text-destructive
15
15
  `,
16
16
  className
17
17
  )}
@@ -21,7 +21,7 @@
21
21
  } = $props();
22
22
 
23
23
  function toRgba(color: Vec4): string {
24
- const [r, g, b, a] = color.map((c) => Math.round(c * 255));
24
+ const [r, g, b, _a] = color.map((c) => Math.round(c * 255));
25
25
  return `rgba(${r}, ${g}, ${b}, ${color[3].toFixed(3)})`;
26
26
  }
27
27
 
@@ -40,7 +40,7 @@
40
40
  });
41
41
  </script>
42
42
 
43
- <div class={cn('h-full w-full', className)}>
43
+ <div class={cn('size-full', className)}>
44
44
  <WebGlShader
45
45
  width="100%"
46
46
  height="100%"
@@ -56,7 +56,7 @@
56
56
  {:else}
57
57
  Select an item...
58
58
  {/if}
59
- <span class="icon-[lucide--chevrons-up-down] ml-2 size-4 shrink-0 opacity-50"> </span>
59
+ <span class="ml-2 icon-[lucide--chevrons-up-down] size-4 shrink-0 opacity-50"> </span>
60
60
  </Button>
61
61
  {/snippet}
62
62
  </Popover.Trigger>
@@ -33,15 +33,15 @@
33
33
  {@render child({ props: mergedProps })}
34
34
  {:else}
35
35
  <div class="flex w-full items-center border-b px-2" data-command-input-wrapper="">
36
- <span class="icon-[lucide--search] mr-2 size-4 shrink-0 opacity-50"></span>
36
+ <span class="mr-2 icon-[lucide--search] size-4 shrink-0 opacity-50"></span>
37
37
  <input
38
38
  {...mergedProps}
39
39
  type="text"
40
40
  placeholder="Search..."
41
41
  class={cn(
42
42
  `
43
- placeholder:text-muted-foreground
44
43
  flex h-11 w-full rounded-md bg-transparent py-3 text-base outline-none
44
+ placeholder:text-muted-foreground
45
45
  disabled:cursor-not-allowed disabled:opacity-50
46
46
  md:text-sm
47
47
  `,
@@ -28,8 +28,8 @@
28
28
  variant="ghost"
29
29
  class={cn(
30
30
  `
31
- hover:bg-muted
32
31
  flex h-full min-h-fit w-full min-w-fit flex-1 cursor-pointer rounded-md p-2
32
+ hover:bg-muted
33
33
  `,
34
34
  listState.selected(listItem) && 'bg-muted',
35
35
  listState.visible(listItem) ? '' : 'hidden!',
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  // Prevent recompiling identical fragment shaders across mounts.
67
- const cachedPipelines = new Map<string, any>();
67
+ const cachedPipelines = new SvelteMap<string, any>();
68
68
  </script>
69
69
 
70
70
  <script lang="ts">
@@ -75,6 +75,7 @@
75
75
  import { zip } from './utils.js';
76
76
  import type { WebGpuParameter as Parameter, WebGpuBuiltinParameter as BuiltinParameter } from './types.js';
77
77
  import { isBuiltinValue } from './types.js';
78
+ import { SvelteMap } from 'svelte/reactivity';
78
79
 
79
80
  type Props = {
80
81
  width?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"WebGpuShader.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/shader/WebGpuShader.svelte.ts"],"names":[],"mappings":"AAGE,YAAY,EACV,YAAY,EACZ,sBAAsB,IAAI,gBAAgB,EAC1C,eAAe,IAAI,SAAS,EAC7B,MAAM,YAAY,CAAC;AAiEtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAItC,OAAO,KAAK,EAAE,eAAe,IAAI,SAAS,EAA8C,MAAM,YAAY,CAAC;AAIzG,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAoSJ,QAAA,MAAM,YAAY,2CAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"WebGpuShader.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/shader/WebGpuShader.svelte.ts"],"names":[],"mappings":"AAGE,YAAY,EACV,YAAY,EACZ,sBAAsB,IAAI,gBAAgB,EAC1C,eAAe,IAAI,SAAS,EAC7B,MAAM,YAAY,CAAC;AAiEtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAItC,OAAO,KAAK,EAAE,eAAe,IAAI,SAAS,EAA8C,MAAM,YAAY,CAAC;AAKzG,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAqSJ,QAAA,MAAM,YAAY,2CAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
@@ -15,7 +15,10 @@
15
15
  bind:this={ref}
16
16
  data-sidebar="content"
17
17
  class={cn(
18
- 'flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden',
18
+ `
19
+ flex min-h-0 flex-1 flex-col gap-2 overflow-auto
20
+ group-data-[collapsible=icon]:overflow-hidden
21
+ `,
19
22
  className
20
23
  )}
21
24
  {...restProps}
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-content.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-content.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAyB9C,QAAA,MAAM,cAAc,oFAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"sidebar-content.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-content.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA4B9C,QAAA,MAAM,cAAc,oFAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
@@ -16,9 +16,18 @@
16
16
 
17
17
  const propObj = $derived({
18
18
  class: cn(
19
- 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
19
+ `
20
+ absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0
21
+ text-sidebar-foreground ring-sidebar-ring transition-transform outline-none
22
+ hover:bg-sidebar-accent hover:text-sidebar-accent-foreground
23
+ focus-visible:ring-2
24
+ [&>svg]:size-4 [&>svg]:shrink-0
25
+ `,
20
26
  // Increases the hit area of the button on mobile.
21
- 'after:absolute after:-inset-2 after:md:hidden',
27
+ `
28
+ after:absolute after:-inset-2
29
+ after:md:hidden
30
+ `,
22
31
  'group-data-[collapsible=icon]:hidden',
23
32
  className
24
33
  ),
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-group-action.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-group-action.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,KAAK,gBAAgB,GAAI,cAAc,CAAC,oBAAoB,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC,CAAC;CACvD,CAAC;AAsCJ,QAAA,MAAM,kBAAkB,yDAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"sidebar-group-action.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-group-action.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,KAAK,gBAAgB,GAAI,cAAc,CAAC,oBAAoB,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC,CAAC;CACvD,CAAC;AA+CJ,QAAA,MAAM,kBAAkB,yDAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
@@ -17,7 +17,7 @@
17
17
  const mergedProps = $derived({
18
18
  class: cn(
19
19
  `
20
- text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium
20
+ flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring
21
21
  transition-[margin,opa] duration-200 ease-linear outline-none
22
22
  focus-visible:ring-2
23
23
  [&>svg]:size-4 [&>svg]:shrink-0
@@ -15,6 +15,12 @@
15
15
  bind:ref
16
16
  bind:value
17
17
  data-sidebar="input"
18
- class={cn('bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2', className)}
18
+ class={cn(
19
+ `
20
+ h-8 w-full bg-background shadow-none
21
+ focus-visible:ring-2 focus-visible:ring-sidebar-ring
22
+ `,
23
+ className
24
+ )}
19
25
  {...restProps}
20
26
  />
@@ -2,7 +2,7 @@ declare const SidebarInput: import("svelte").Component<(Omit<import("svelte/elem
2
2
  type: "file";
3
3
  files?: FileList;
4
4
  } | {
5
- type?: "number" | "hidden" | "color" | "button" | "search" | "time" | "email" | "tel" | "reset" | "submit" | "image" | "text" | "checkbox" | "radio" | (string & {}) | "url" | "date" | "datetime-local" | "month" | "password" | "range" | "week";
5
+ type?: "number" | "hidden" | "color" | "button" | "search" | "time" | "email" | "tel" | "reset" | "submit" | "image" | "text" | "url" | "checkbox" | "radio" | (string & {}) | "date" | "datetime-local" | "month" | "password" | "range" | "week";
6
6
  files?: undefined;
7
7
  })) & {
8
8
  ref?: HTMLElement | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-input.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-input.svelte.ts"],"names":[],"mappings":"AAwBA,QAAA,MAAM,YAAY;;;;;;;;uBAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"sidebar-input.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-input.svelte.ts"],"names":[],"mappings":"AA8BA,QAAA,MAAM,YAAY;;;;;;;;uBAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
@@ -16,11 +16,10 @@
16
16
  <main
17
17
  bind:this={ref}
18
18
  class={cn(
19
- 'bg-background relative flex flex-1 flex-col',
19
+ 'relative flex flex-1 flex-col bg-background',
20
20
  `
21
- md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0
22
- md:peer-data-[variant=inset]:rounded-xl
23
- md:peer-data-[variant=inset]:shadow
21
+ md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl
22
+ md:peer-data-[variant=inset]:shadow-sm
24
23
  md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2
25
24
  `,
26
25
  className
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-inset.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-inset.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAgCtD,QAAA,MAAM,YAAY,oFAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"sidebar-inset.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-inset.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AA+BtD,QAAA,MAAM,YAAY,oFAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
@@ -19,24 +19,27 @@
19
19
  const mergedProps = $derived({
20
20
  class: cn(
21
21
  `
22
- text-sidebar-foreground ring-sidebar-ring absolute top-1.5 right-1 flex aspect-square w-5 items-center
23
- justify-center rounded-md p-0 transition-transform outline-none
24
- hover:bg-sidebar-accent hover:text-sidebar-accent-foreground
22
+ absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0
23
+ text-sidebar-foreground ring-sidebar-ring transition-transform outline-none
25
24
  peer-hover/menu-button:text-sidebar-accent-foreground
25
+ hover:bg-sidebar-accent hover:text-sidebar-accent-foreground
26
26
  focus-visible:ring-2
27
27
  [&>svg]:size-4 [&>svg]:shrink-0
28
28
  `,
29
29
  // Increases the hit area of the button on mobile.
30
- 'after:absolute after:-inset-2 after:md:hidden',
30
+ `
31
+ after:absolute after:-inset-2
32
+ after:md:hidden
33
+ `,
31
34
  'peer-data-[size=sm]/menu-button:top-1',
32
35
  'peer-data-[size=default]/menu-button:top-1.5',
33
36
  'peer-data-[size=lg]/menu-button:top-2.5',
34
37
  'group-data-[collapsible=icon]:hidden',
35
38
  showOnHover &&
36
39
  `
37
- peer-data-[active=true]/menu-button:text-sidebar-accent-foreground
38
40
  group-focus-within/menu-item:opacity-100
39
41
  group-hover/menu-item:opacity-100
42
+ peer-data-[active=true]/menu-button:text-sidebar-accent-foreground
40
43
  data-[state=open]:opacity-100
41
44
  md:opacity-0
42
45
  `,
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-menu-action.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-menu-action.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,KAAK,gBAAgB,GAAI,cAAc,CAAC,oBAAoB,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC,CAAC;IACtD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAyDJ,QAAA,MAAM,iBAAiB,yDAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"sidebar-menu-action.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-menu-action.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,KAAK,gBAAgB,GAAI,cAAc,CAAC,oBAAoB,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC,CAAC;IACtD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AA4DJ,QAAA,MAAM,iBAAiB,yDAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
@@ -15,8 +15,14 @@
15
15
  bind:this={ref}
16
16
  data-sidebar="menu-badge"
17
17
  class={cn(
18
- 'text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums',
19
- 'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground',
18
+ `
19
+ pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs
20
+ font-medium text-sidebar-foreground tabular-nums select-none
21
+ `,
22
+ `
23
+ peer-hover/menu-button:text-sidebar-accent-foreground
24
+ peer-data-[active=true]/menu-button:text-sidebar-accent-foreground
25
+ `,
20
26
  'peer-data-[size=sm]/menu-button:top-1',
21
27
  'peer-data-[size=default]/menu-button:top-1.5',
22
28
  'peer-data-[size=lg]/menu-button:top-2.5',
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-menu-badge.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-menu-badge.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AA6BtD,QAAA,MAAM,gBAAgB,oFAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"sidebar-menu-badge.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/sidebar-menu-badge.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAmCtD,QAAA,MAAM,gBAAgB,oFAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
@@ -3,18 +3,18 @@
3
3
 
4
4
  export const sidebarMenuButtonVariants = tv({
5
5
  base: cn(`
6
- peer/menu-button ring-sidebar-ring flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm
6
+ peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring
7
7
  transition-[width,height,padding] outline-none
8
+ group-has-data-[sidebar=menu-action]/menu-item:pr-8
9
+ group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!
8
10
  hover:bg-sidebar-accent hover:text-sidebar-accent-foreground
9
- active:bg-sidebar-accent active:text-sidebar-accent-foreground
10
- data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground
11
- data-[active=true]:font-medium
12
- data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground
13
- group-has-[[data-sidebar=menu-action]]/menu-item:pr-8
14
- group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2
15
11
  focus-visible:ring-2
12
+ active:bg-sidebar-accent active:text-sidebar-accent-foreground
16
13
  disabled:pointer-events-none disabled:opacity-50
17
14
  aria-disabled:pointer-events-none aria-disabled:opacity-50
15
+ data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium
16
+ data-[active=true]:text-sidebar-accent-foreground
17
+ data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground
18
18
  [&>span:last-child]:truncate
19
19
  [&>svg]:size-4 [&>svg]:shrink-0
20
20
  `),
@@ -32,7 +32,7 @@
32
32
  sm: 'h-7 text-xs',
33
33
  lg: `
34
34
  h-12 text-sm
35
- group-data-[collapsible=icon]:!p-0
35
+ group-data-[collapsible=icon]:p-0!
36
36
  `
37
37
  }
38
38
  },
@@ -21,15 +21,15 @@
21
21
  const mergedProps = $derived({
22
22
  class: cn(
23
23
  `
24
- text-sidebar-foreground ring-sidebar-ring flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden
25
- rounded-md px-2 outline-none
24
+ flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground
25
+ ring-sidebar-ring outline-none
26
26
  hover:bg-sidebar-accent hover:text-sidebar-accent-foreground
27
- active:bg-sidebar-accent active:text-sidebar-accent-foreground
28
- [&>svg]:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0
29
27
  focus-visible:ring-2
28
+ active:bg-sidebar-accent active:text-sidebar-accent-foreground
30
29
  disabled:pointer-events-none disabled:opacity-50
31
30
  aria-disabled:pointer-events-none aria-disabled:opacity-50
32
31
  [&>span:last-child]:truncate
32
+ [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground
33
33
  `,
34
34
  'data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground',
35
35
  size === 'sm' && 'text-xs',
@@ -15,7 +15,7 @@
15
15
  bind:this={ref}
16
16
  data-sidebar="menu-sub"
17
17
  class={cn(
18
- 'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5',
18
+ 'mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5',
19
19
  'group-data-[collapsible=icon]:hidden',
20
20
  className
21
21
  )}
@@ -45,7 +45,7 @@
45
45
  class={cn(
46
46
  `
47
47
  group/sidebar-wrapper flex w-full flex-auto
48
- has-[[data-variant=inset]]:bg-sidebar
48
+ has-data-[variant=inset]:bg-sidebar
49
49
  `,
50
50
  className
51
51
  )}