@spark-ui/internal-utils 17.2.1-beta.1 → 17.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## 17.2.2 (2026-03-27)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **icons:** fixed invalid icons pathes ([2bda22c0b](https://github.com/leboncoin/spark-web/commit/2bda22c0b))
6
+ - removed last docs bits about tsup builds ([944ab23d6](https://github.com/leboncoin/spark-web/commit/944ab23d6))
7
+
8
+ ### 💅 Refactors
9
+
10
+ - typescript v6 ([74135c9ed](https://github.com/leboncoin/spark-web/commit/74135c9ed))
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - Powerplex @Powerplex
15
+
16
+ ## 17.2.1 (2026-03-27)
17
+
18
+ ### 🩹 Fixes
19
+
20
+ - **components:** improved segmented control styles ([e6a844700](https://github.com/leboncoin/spark-web/commit/e6a844700))
21
+
22
+ ### ❤️ Thank You
23
+
24
+ - Powerplex @Powerplex
25
+
1
26
  ## 17.2.0 (2026-03-24)
2
27
 
3
28
  This was a version bump only for @spark-ui/internal-utils to align it with other projects, there were no code changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/internal-utils",
3
- "version": "17.2.1-beta.1",
3
+ "version": "17.2.2",
4
4
  "description": "package for sharing reusable code and resources across the codebase",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,15 +0,0 @@
1
-
2
- 
3
- > @spark-ui/internal-utils@10.6.1 build
4
- > vite build
5
-
6
- vite v6.3.5 building for production...
7
- transforming (1) src/index.tstransforming (2) src/variants/types.ts✓ 11 modules transformed.
8
- rendering chunks (1)...
9
- [vite:dts] Start generate declaration files...
10
- computing gzip size (0)...computing gzip size (1)...dist/index.mjs 1.66 kB │ gzip: 0.80 kB
11
- [vite:dts] Declaration files built in 925ms.
12
- 
13
- rendering chunks (1)...computing gzip size (1)...dist/index.js 1.49 kB │ gzip: 0.72 kB
14
- ✓ built in 1.44s
15
- ⠙
@@ -1,6 +0,0 @@
1
-
2
- 
3
- > @spark-ui/internal-utils@10.6.1 lint
4
- > eslint "src/**/*.{ts,tsx}" --ext .ts,.tsx
5
-
6
- ⠙
@@ -1,3 +0,0 @@
1
- type EnsureKeys<ExpectedKeys extends (keyof Target)[], Target> = keyof Target extends ExpectedKeys[number] ? unknown : `Missing required keys: ${Exclude<keyof Target, ExpectedKeys[number]> & string}`;
2
- export declare const createSplitProps: <Target>() => <Keys extends (keyof Target)[], Props extends Target = Target>(props: Props, keys: Keys & EnsureKeys<Keys, Target>) => [Target, Omit<Props, Extract<(Keys & EnsureKeys<Keys, Target>)[number], string>>];
3
- export {};
package/dist/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export { tw } from './tw';
2
- export { makeVariants } from './variants';
3
- export * as VariantTypes from './variants/types';
4
- export * as variantConstants from './variants/constants';
5
- export { deepFind } from './react-children-utilities/deepFind';
6
- export { createSplitProps } from './create-split-props';
7
- export { omit } from './object/omit';
8
- export { useEvent } from './use-event';
@@ -1,16 +0,0 @@
1
- /**
2
- * Returns a partial copy of an object omitting the keys specified.
3
- *
4
- * @example
5
- *
6
- * const item = {
7
- * label: 'ten',
8
- * id: 10,
9
- * isValid: true
10
- * }
11
- *
12
- * const updatedItem = omit(item, ['label', 'isValid'])
13
- * // updatedItem === { id: 10 }
14
- *
15
- */
16
- export declare function omit<T extends object, K extends keyof T>(obj: T, keys: readonly (K | undefined)[]): Omit<T, K>;
@@ -1,3 +0,0 @@
1
- import { ReactNode } from 'react';
2
- declare function deepFind(children: ReactNode | ReactNode[], deepFindFn: (child: ReactNode, index?: number, children?: ReactNode[]) => boolean): ReactNode | undefined;
3
- export { deepFind };
@@ -1,5 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- declare function hasChildren(element: ReactNode): element is ReactElement<{
3
- children: ReactNode | ReactNode[];
4
- }>;
5
- export { hasChildren };
@@ -1,5 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- declare function hasComplexChildren(element: ReactNode): element is ReactElement<{
3
- children: ReactNode | ReactNode[];
4
- }>;
5
- export { hasComplexChildren };
@@ -1,29 +0,0 @@
1
- /**
2
- * A utility function that serves as a workaround for Tailwind CSS IntelliSense issues
3
- * in large objects or when regex breaks in VSCode.
4
- *
5
- * For more context, see: https://github.com/joe-bell/cva/discussions/85#discussioncomment-4568738
6
- *
7
- * @example
8
- *
9
- * // before
10
- * const styles: cva(['flex bg-main', 'cursor-pointer'], {
11
- * variants: {
12
- * size: {
13
- * small: "h-sz-24",
14
- * medium: "h-sz-48"
15
- * }
16
- * }
17
- * })
18
- *
19
- * // after
20
- * const styles = cva(tw(['flex bg-main', 'cursor-pointer']), {
21
- * variants: {
22
- * size: {
23
- * small: tw("h-sz-24"),
24
- * medium: tw("h-sz-48"),
25
- * }
26
- * }
27
- * })
28
- */
29
- export declare function tw<T>(v: T): T;
@@ -1,12 +0,0 @@
1
- type AnyFunction = (...args: any[]) => any;
2
- interface Options {
3
- /**
4
- * Whether to use queueMicrotask or not
5
- */
6
- sync?: boolean;
7
- }
8
- /**
9
- * Returns a memoized callback that will queueMicrotask the callback if sync is true
10
- */
11
- declare function useEvent<T extends AnyFunction>(callback: T | undefined, opts?: Options): T;
12
- export { useEvent };
@@ -1,5 +0,0 @@
1
- declare const sizes: readonly ["current", "sm", "md", "lg", "xl"];
2
- declare const intents: readonly ["current", "main", "support", "success", "error", "info", "alert", "danger", "neutral", "surface", "surfaceInverse", "accent"];
3
- declare const designs: readonly ["filled", "outlined", "tinted", "ghost", "contrast", "dashed"];
4
- declare const shapes: readonly ["rounded", "square", "pill"];
5
- export { sizes, intents, designs, shapes };
@@ -1,3 +0,0 @@
1
- import { Picks, VariantLookup } from './types';
2
- declare function makeVariants<Variant extends 'design' | 'intent' | 'shape' | 'size', P extends (keyof VariantLookup[Variant])[] = []>(variants: P extends [] ? VariantLookup[Variant] : Picks<VariantLookup[Variant], P>): P extends [] ? VariantLookup[Variant] : Picks<VariantLookup[Variant], P>;
3
- export { makeVariants };
@@ -1,20 +0,0 @@
1
- import { designs, intents, shapes, sizes } from './constants';
2
- type Picks<T extends object, PickedItems extends (keyof T)[], Acc = {}> = PickedItems extends [
3
- infer Head,
4
- ...infer Rest
5
- ] ? Rest extends (keyof T)[] ? Head extends keyof T ? Picks<T, Rest, Acc & Pick<T, Head>> : Acc : Acc : Acc;
6
- type Size = (typeof sizes)[number];
7
- type SizeLookup = Record<Size, string[]>;
8
- type Intent = (typeof intents)[number];
9
- type IntentLookup = Record<Intent, string[]>;
10
- type Design = (typeof designs)[number];
11
- type DesignLookup = Record<Design, string[]>;
12
- type Shape = (typeof shapes)[number];
13
- type ShapeLookup = Record<Shape, string[]>;
14
- interface VariantLookup {
15
- design: DesignLookup;
16
- intent: IntentLookup;
17
- shape: ShapeLookup;
18
- size: SizeLookup;
19
- }
20
- export type { Size, SizeLookup, Intent, IntentLookup, Design, DesignLookup, Shape, ShapeLookup, Picks, VariantLookup, };