@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 +25 -0
- package/package.json +1 -1
- package/.turbo/turbo-build.log +0 -15
- package/.turbo/turbo-lint.log +0 -6
- package/dist/create-split-props/index.d.ts +0 -3
- package/dist/index.d.ts +0 -8
- package/dist/object/omit.d.ts +0 -16
- package/dist/react-children-utilities/deepFind.d.ts +0 -3
- package/dist/react-children-utilities/hasChildren.d.ts +0 -5
- package/dist/react-children-utilities/hasComplexChildren.d.ts +0 -5
- package/dist/tw/index.d.ts +0 -29
- package/dist/use-event/index.d.ts +0 -12
- package/dist/variants/constants.d.ts +0 -5
- package/dist/variants/index.d.ts +0 -3
- package/dist/variants/types.d.ts +0 -20
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
package/.turbo/turbo-build.log
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> @spark-ui/internal-utils@10.6.1 build
|
|
4
|
-
> vite build
|
|
5
|
-
|
|
6
|
-
[1G[0K[36mvite v6.3.5 [32mbuilding for production...[36m[39m
|
|
7
|
-
[2K[1Gtransforming (1) [2msrc/index.ts[22m[2K[1Gtransforming (2) [2msrc/variants/types.ts[22m[2K[1G[32m✓[39m 11 modules transformed.
|
|
8
|
-
[2K[1Grendering chunks (1)...[2K[1G[32m
|
|
9
|
-
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
10
|
-
[2K[1Gcomputing gzip size (0)...[2K[1Gcomputing gzip size (1)...[2K[1G[2mdist/[22m[36mindex.mjs [39m[1m[2m1.66 kB[22m[1m[22m[2m │ gzip: 0.80 kB[22m
|
|
11
|
-
[32m[36m[vite:dts][32m Declaration files built in 925ms.
|
|
12
|
-
[39m
|
|
13
|
-
[2K[1Grendering chunks (1)...[2K[1G[2K[1Gcomputing gzip size (1)...[2K[1G[2mdist/[22m[36mindex.js [39m[1m[2m1.49 kB[22m[1m[22m[2m │ gzip: 0.72 kB[22m
|
|
14
|
-
[32m✓ built in 1.44s[39m
|
|
15
|
-
[1G[0K⠙[1G[0K
|
package/.turbo/turbo-lint.log
DELETED
|
@@ -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';
|
package/dist/object/omit.d.ts
DELETED
|
@@ -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>;
|
package/dist/tw/index.d.ts
DELETED
|
@@ -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 };
|
package/dist/variants/index.d.ts
DELETED
|
@@ -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 };
|
package/dist/variants/types.d.ts
DELETED
|
@@ -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, };
|