@spark-ui/components 10.9.0 → 10.11.0
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 +12 -0
- package/dist/accordion/index.d.mts +13 -25
- package/dist/accordion/index.d.ts +13 -25
- package/dist/accordion/index.js +114 -250
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +92 -134
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert-dialog/index.js +65 -12
- package/dist/alert-dialog/index.js.map +1 -1
- package/dist/alert-dialog/index.mjs +3 -3
- package/dist/avatar/index.js +65 -12
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs +2 -2
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +65 -12
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +1 -1
- package/dist/carousel/index.js +65 -12
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs +2 -2
- package/dist/{chunk-7A5MVJB3.mjs → chunk-3PTXYZYN.mjs} +66 -13
- package/dist/chunk-3PTXYZYN.mjs.map +1 -0
- package/dist/{chunk-I7UIKCZK.mjs → chunk-5VKP2RR6.mjs} +2 -2
- package/dist/{chunk-QNYSDG6F.mjs → chunk-MKN2Y3W6.mjs} +2 -2
- package/dist/{chunk-ESSJY557.mjs → chunk-Z45YCYPH.mjs} +2 -2
- package/dist/collapsible/index.d.mts +18 -35
- package/dist/collapsible/index.d.ts +18 -35
- package/dist/collapsible/index.js +47 -78
- package/dist/collapsible/index.js.map +1 -1
- package/dist/collapsible/index.mjs +73 -4
- package/dist/collapsible/index.mjs.map +1 -1
- package/dist/combobox/index.js +65 -12
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +3 -3
- package/dist/dialog/index.js +65 -12
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +3 -3
- package/dist/drawer/index.js +65 -12
- package/dist/drawer/index.js.map +1 -1
- package/dist/drawer/index.mjs +2 -2
- package/dist/dropdown/index.js +65 -12
- package/dist/dropdown/index.js.map +1 -1
- package/dist/dropdown/index.mjs +3 -3
- package/dist/icon-button/index.js +65 -12
- package/dist/icon-button/index.js.map +1 -1
- package/dist/icon-button/index.mjs +2 -2
- package/dist/pagination/index.js +65 -12
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs +2 -2
- package/dist/popover/index.js +65 -12
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +3 -3
- package/dist/scrolling-list/index.js +65 -12
- package/dist/scrolling-list/index.js.map +1 -1
- package/dist/scrolling-list/index.mjs +2 -2
- package/dist/snackbar/index.js +65 -12
- package/dist/snackbar/index.js.map +1 -1
- package/dist/snackbar/index.mjs +2 -2
- package/dist/stepper/index.js +65 -12
- package/dist/stepper/index.js.map +1 -1
- package/dist/stepper/index.mjs +2 -2
- package/dist/tabs/index.js +65 -12
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/package.json +6 -7
- package/dist/chunk-3LEFXZNI.mjs +0 -97
- package/dist/chunk-3LEFXZNI.mjs.map +0 -1
- package/dist/chunk-7A5MVJB3.mjs.map +0 -1
- /package/dist/{chunk-I7UIKCZK.mjs.map → chunk-5VKP2RR6.mjs.map} +0 -0
- /package/dist/{chunk-QNYSDG6F.mjs.map → chunk-MKN2Y3W6.mjs.map} +0 -0
- /package/dist/{chunk-ESSJY557.mjs.map → chunk-Z45YCYPH.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [10.11.0](https://github.com/leboncoin/spark-web/compare/v10.10.0...v10.11.0) (2025-07-10)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **components:** added surfaceInverse intent to button ([331b724](https://github.com/leboncoin/spark-web/commit/331b724dfafc33bcfdaee178b3bff07de48462b4))
|
|
11
|
+
|
|
12
|
+
# [10.10.0](https://github.com/leboncoin/spark-web/compare/v10.9.0...v10.10.0) (2025-07-03)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **components:** migrated accordion from ZagJS to BaseUI ([1607bf5](https://github.com/leboncoin/spark-web/commit/1607bf512a22e9bf482ede8c6bfb56e0cee8926e))
|
|
17
|
+
|
|
6
18
|
# [10.9.0](https://github.com/leboncoin/spark-web/compare/v10.8.2...v10.9.0) (2025-07-01)
|
|
7
19
|
|
|
8
20
|
### Features
|
|
@@ -1,54 +1,41 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { Accordion as Accordion$2 } from '@base-ui-components/react/accordion';
|
|
3
|
+
import { ComponentProps, Ref } from 'react';
|
|
4
4
|
|
|
5
|
-
type ExtentedZagInterface = Omit<
|
|
6
|
-
interface AccordionProps extends ExtentedZagInterface {
|
|
5
|
+
type ExtentedZagInterface$3 = Omit<ComponentProps<typeof Accordion$2.Root>, 'openMultiple' | 'render'>;
|
|
6
|
+
interface AccordionProps extends ExtentedZagInterface$3 {
|
|
7
7
|
/**
|
|
8
8
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
9
9
|
*/
|
|
10
10
|
asChild?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Whether an accordion item can be closed after it has been expanded.
|
|
13
|
-
*/
|
|
14
|
-
collapsible?: boolean;
|
|
15
|
-
defaultValue?: accordion.Props['value'];
|
|
16
11
|
/**
|
|
17
12
|
* Whether the accordion items are disabled
|
|
18
13
|
*/
|
|
19
14
|
disabled?: boolean;
|
|
20
15
|
/**
|
|
21
|
-
* Whether multiple
|
|
16
|
+
* Whether multiple items can be open at the same time.
|
|
22
17
|
*/
|
|
23
18
|
multiple?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The `value` of the accordion items that are currently being expanded.
|
|
26
|
-
*/
|
|
27
|
-
value?: string[];
|
|
28
|
-
/**
|
|
29
|
-
* The callback fired when the state of expanded/collapsed accordion items changes.
|
|
30
|
-
*/
|
|
31
|
-
onValueChange?: (value: string[]) => void;
|
|
32
19
|
design?: 'filled' | 'outlined';
|
|
33
20
|
ref?: Ref<HTMLDivElement>;
|
|
34
21
|
}
|
|
35
22
|
declare const Accordion$1: {
|
|
36
|
-
({ asChild, children,
|
|
23
|
+
({ asChild, children, design, hiddenUntilFound, multiple, className, ref, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
37
24
|
displayName: string;
|
|
38
25
|
};
|
|
39
26
|
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
type ExtentedZagInterface$2 = Omit<ComponentProps<typeof Accordion$2.Item>, 'render'>;
|
|
28
|
+
interface AccordionItemProps extends ExtentedZagInterface$2 {
|
|
42
29
|
asChild?: boolean;
|
|
43
|
-
disabled?: boolean;
|
|
44
30
|
ref?: Ref<HTMLDivElement>;
|
|
45
31
|
}
|
|
46
32
|
declare const Item: {
|
|
47
|
-
({ asChild, className, children,
|
|
33
|
+
({ asChild, className, children, ref, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
48
34
|
displayName: string;
|
|
49
35
|
};
|
|
50
36
|
|
|
51
|
-
|
|
37
|
+
type ExtentedZagInterface$1 = Omit<ComponentProps<typeof Accordion$2.Panel>, 'render'>;
|
|
38
|
+
interface AccordionItemContentProps extends ExtentedZagInterface$1 {
|
|
52
39
|
asChild?: boolean;
|
|
53
40
|
ref?: Ref<HTMLDivElement>;
|
|
54
41
|
}
|
|
@@ -66,7 +53,8 @@ declare const ItemHeader: {
|
|
|
66
53
|
displayName: string;
|
|
67
54
|
};
|
|
68
55
|
|
|
69
|
-
|
|
56
|
+
type ExtentedZagInterface = Omit<ComponentProps<typeof Accordion$2.Trigger>, 'render'>;
|
|
57
|
+
interface AccordionItemTriggerProps extends ExtentedZagInterface {
|
|
70
58
|
asChild?: boolean;
|
|
71
59
|
ref?: Ref<HTMLButtonElement>;
|
|
72
60
|
}
|
|
@@ -1,54 +1,41 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { Accordion as Accordion$2 } from '@base-ui-components/react/accordion';
|
|
3
|
+
import { ComponentProps, Ref } from 'react';
|
|
4
4
|
|
|
5
|
-
type ExtentedZagInterface = Omit<
|
|
6
|
-
interface AccordionProps extends ExtentedZagInterface {
|
|
5
|
+
type ExtentedZagInterface$3 = Omit<ComponentProps<typeof Accordion$2.Root>, 'openMultiple' | 'render'>;
|
|
6
|
+
interface AccordionProps extends ExtentedZagInterface$3 {
|
|
7
7
|
/**
|
|
8
8
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
9
9
|
*/
|
|
10
10
|
asChild?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Whether an accordion item can be closed after it has been expanded.
|
|
13
|
-
*/
|
|
14
|
-
collapsible?: boolean;
|
|
15
|
-
defaultValue?: accordion.Props['value'];
|
|
16
11
|
/**
|
|
17
12
|
* Whether the accordion items are disabled
|
|
18
13
|
*/
|
|
19
14
|
disabled?: boolean;
|
|
20
15
|
/**
|
|
21
|
-
* Whether multiple
|
|
16
|
+
* Whether multiple items can be open at the same time.
|
|
22
17
|
*/
|
|
23
18
|
multiple?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The `value` of the accordion items that are currently being expanded.
|
|
26
|
-
*/
|
|
27
|
-
value?: string[];
|
|
28
|
-
/**
|
|
29
|
-
* The callback fired when the state of expanded/collapsed accordion items changes.
|
|
30
|
-
*/
|
|
31
|
-
onValueChange?: (value: string[]) => void;
|
|
32
19
|
design?: 'filled' | 'outlined';
|
|
33
20
|
ref?: Ref<HTMLDivElement>;
|
|
34
21
|
}
|
|
35
22
|
declare const Accordion$1: {
|
|
36
|
-
({ asChild, children,
|
|
23
|
+
({ asChild, children, design, hiddenUntilFound, multiple, className, ref, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
37
24
|
displayName: string;
|
|
38
25
|
};
|
|
39
26
|
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
type ExtentedZagInterface$2 = Omit<ComponentProps<typeof Accordion$2.Item>, 'render'>;
|
|
28
|
+
interface AccordionItemProps extends ExtentedZagInterface$2 {
|
|
42
29
|
asChild?: boolean;
|
|
43
|
-
disabled?: boolean;
|
|
44
30
|
ref?: Ref<HTMLDivElement>;
|
|
45
31
|
}
|
|
46
32
|
declare const Item: {
|
|
47
|
-
({ asChild, className, children,
|
|
33
|
+
({ asChild, className, children, ref, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
48
34
|
displayName: string;
|
|
49
35
|
};
|
|
50
36
|
|
|
51
|
-
|
|
37
|
+
type ExtentedZagInterface$1 = Omit<ComponentProps<typeof Accordion$2.Panel>, 'render'>;
|
|
38
|
+
interface AccordionItemContentProps extends ExtentedZagInterface$1 {
|
|
52
39
|
asChild?: boolean;
|
|
53
40
|
ref?: Ref<HTMLDivElement>;
|
|
54
41
|
}
|
|
@@ -66,7 +53,8 @@ declare const ItemHeader: {
|
|
|
66
53
|
displayName: string;
|
|
67
54
|
};
|
|
68
55
|
|
|
69
|
-
|
|
56
|
+
type ExtentedZagInterface = Omit<ComponentProps<typeof Accordion$2.Trigger>, 'render'>;
|
|
57
|
+
interface AccordionItemTriggerProps extends ExtentedZagInterface {
|
|
70
58
|
asChild?: boolean;
|
|
71
59
|
ref?: Ref<HTMLButtonElement>;
|
|
72
60
|
}
|