@edifice.io/react 2.5.4-develop-b2school-actualites.20251211160636 → 2.5.4-develop-b2school-actualites.20251211173912
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.
|
@@ -16,8 +16,9 @@ export interface SegmentedOption {
|
|
|
16
16
|
*
|
|
17
17
|
* Minimal interface that only exposes what is necessary.
|
|
18
18
|
* Ant Design implementation is hidden and no Ant Design-specific props are exposed.
|
|
19
|
+
* Standard HTML div attributes are supported (passed through to the underlying DOM element).
|
|
19
20
|
*/
|
|
20
|
-
export interface SegmentedControlProps {
|
|
21
|
+
export interface SegmentedControlProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
21
22
|
/**
|
|
22
23
|
* Segmented control options
|
|
23
24
|
*/
|
|
@@ -30,10 +31,6 @@ export interface SegmentedControlProps {
|
|
|
30
31
|
* Callback called when value changes
|
|
31
32
|
*/
|
|
32
33
|
onChange?: (value: string) => void;
|
|
33
|
-
/**
|
|
34
|
-
* Optional CSS class name
|
|
35
|
-
*/
|
|
36
|
-
className?: string;
|
|
37
34
|
}
|
|
38
35
|
/**
|
|
39
36
|
* SegmentedControl component
|
|
@@ -58,8 +55,5 @@ export interface SegmentedControlProps {
|
|
|
58
55
|
* />
|
|
59
56
|
* ```
|
|
60
57
|
*/
|
|
61
|
-
declare const SegmentedControl:
|
|
62
|
-
(props: SegmentedControlProps): import("react/jsx-runtime").JSX.Element;
|
|
63
|
-
displayName: string;
|
|
64
|
-
};
|
|
58
|
+
declare const SegmentedControl: import('react').ForwardRefExoticComponent<SegmentedControlProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
65
59
|
export default SegmentedControl;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
2
3
|
import { Segmented } from "antd";
|
|
3
|
-
const SegmentedControl =
|
|
4
|
-
|
|
4
|
+
const SegmentedControl = /* @__PURE__ */ forwardRef(({
|
|
5
|
+
options,
|
|
6
|
+
value,
|
|
7
|
+
onChange,
|
|
8
|
+
...htmlProps
|
|
9
|
+
}, ref) => {
|
|
10
|
+
const antProps = {
|
|
5
11
|
options,
|
|
6
12
|
value,
|
|
7
13
|
onChange,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onChange,
|
|
14
|
-
className
|
|
15
|
-
} });
|
|
16
|
-
};
|
|
14
|
+
ref,
|
|
15
|
+
...htmlProps
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsx(Segmented, { ...antProps });
|
|
18
|
+
});
|
|
17
19
|
export {
|
|
18
20
|
SegmentedControl as default
|
|
19
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.4-develop-b2school-actualites.
|
|
3
|
+
"version": "2.5.4-develop-b2school-actualites.20251211173912",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -133,9 +133,9 @@
|
|
|
133
133
|
"react-slugify": "^3.0.3",
|
|
134
134
|
"swiper": "^10.1.0",
|
|
135
135
|
"ua-parser-js": "^1.0.36",
|
|
136
|
-
"@edifice.io/
|
|
137
|
-
"@edifice.io/tiptap-extensions": "2.5.4-develop-b2school-actualites.
|
|
138
|
-
"@edifice.io/
|
|
136
|
+
"@edifice.io/bootstrap": "2.5.4-develop-b2school-actualites.20251211173912",
|
|
137
|
+
"@edifice.io/tiptap-extensions": "2.5.4-develop-b2school-actualites.20251211173912",
|
|
138
|
+
"@edifice.io/utilities": "2.5.4-develop-b2school-actualites.20251211173912"
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"vite": "^5.4.11",
|
|
167
167
|
"vite-plugin-dts": "^4.1.0",
|
|
168
168
|
"vite-tsconfig-paths": "^5.0.1",
|
|
169
|
-
"@edifice.io/client": "2.5.4-develop-b2school-actualites.
|
|
170
|
-
"@edifice.io/config": "2.5.4-develop-b2school-actualites.
|
|
169
|
+
"@edifice.io/client": "2.5.4-develop-b2school-actualites.20251211173912",
|
|
170
|
+
"@edifice.io/config": "2.5.4-develop-b2school-actualites.20251211173912"
|
|
171
171
|
},
|
|
172
172
|
"peerDependencies": {
|
|
173
173
|
"@react-spring/web": "^9.7.5",
|