@jasonshimmy/custom-elements-runtime 1.1.1 → 1.1.2

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.
@@ -25,6 +25,7 @@ export declare const containerVariants: MediaVariantMap;
25
25
  export declare const responsiveOrder: string[];
26
26
  export declare const containerOrder: string[];
27
27
  export declare function parseSpacing(className: string): string | null;
28
+ export declare function parseSpaceUtility(className: string): string | null;
28
29
  export declare function hexToRgb(hex: string): string;
29
30
  export declare function parseColorClass(className: string): string | null;
30
31
  export declare function parseOpacityModifier(className: string): {
@@ -75,6 +75,10 @@ export interface TransitionGroupOptions extends Omit<TransitionOptions, 'show'>
75
75
  moveClass?: string;
76
76
  /** Whether to show the group (defaults to true for TransitionGroup) */
77
77
  show?: boolean;
78
+ /** CSS classes to apply to the wrapper element (e.g., 'flex gap-4' or 'grid grid-cols-3') */
79
+ class?: string;
80
+ /** Inline styles to apply to the wrapper element */
81
+ style?: string | Record<string, string>;
78
82
  }
79
83
  /**
80
84
  * Pre-defined transition presets using JIT CSS classes
@@ -206,6 +210,7 @@ export declare function Transition(options: TransitionOptions, content: VNode |
206
210
  *
207
211
  * @example
208
212
  * ```ts
213
+ * // Basic usage
209
214
  * ${TransitionGroup({
210
215
  * preset: 'slide-right',
211
216
  * tag: 'ul',
@@ -213,6 +218,22 @@ export declare function Transition(options: TransitionOptions, content: VNode |
213
218
  * }, each(items.value, (item) => html`
214
219
  * <li key="${item.id}">${item.text}</li>
215
220
  * `))}
221
+ *
222
+ * // With flex layout
223
+ * ${TransitionGroup({
224
+ * preset: 'fade',
225
+ * class: 'flex gap-4 flex-wrap'
226
+ * }, each(items.value, (item) => html`
227
+ * <div key="${item.id}" class="flex-shrink-0">${item.text}</div>
228
+ * `))}
229
+ *
230
+ * // With grid layout
231
+ * ${TransitionGroup({
232
+ * preset: 'scale',
233
+ * class: 'grid grid-cols-3 gap-4'
234
+ * }, each(items.value, (item) => html`
235
+ * <div key="${item.id}">${item.text}</div>
236
+ * `))}
216
237
  * ```
217
238
  */
218
239
  export declare function TransitionGroup(options: TransitionGroupOptions, children: VNode[]): VNode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jasonshimmy/custom-elements-runtime",
3
3
  "description": "A powerful, modern, and lightweight runtime for creating reactive web components with TypeScript",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "web-components",