@edifice.io/react 2.2.10-develop-b2school.20250620153818 → 2.2.10-develop-b2school.20250623112051
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.
|
@@ -13,6 +13,10 @@ export interface BaseProps extends Omit<React.ComponentPropsWithoutRef<'input'>,
|
|
|
13
13
|
* Disabled status
|
|
14
14
|
*/
|
|
15
15
|
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Disabled status for button
|
|
18
|
+
*/
|
|
19
|
+
buttonDisabled?: boolean;
|
|
16
20
|
/**
|
|
17
21
|
* Optional class for styling purpose
|
|
18
22
|
*/
|
|
@@ -45,7 +49,7 @@ type DynamicSearchBar = {
|
|
|
45
49
|
export type Props = DefaultSearchBar | DynamicSearchBar;
|
|
46
50
|
export type SearchBarProps = BaseProps & Props;
|
|
47
51
|
declare const SearchBar: {
|
|
48
|
-
({ isVariant, size, placeholder, className, disabled, onChange, onClick, ...restProps }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
({ isVariant, size, placeholder, className, disabled, buttonDisabled, onChange, onClick, ...restProps }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
49
53
|
displayName: string;
|
|
50
54
|
};
|
|
51
55
|
export default SearchBar;
|
|
@@ -10,6 +10,7 @@ const SearchBar = ({
|
|
|
10
10
|
placeholder = "search",
|
|
11
11
|
className,
|
|
12
12
|
disabled,
|
|
13
|
+
buttonDisabled,
|
|
13
14
|
onChange,
|
|
14
15
|
onClick,
|
|
15
16
|
...restProps
|
|
@@ -30,7 +31,7 @@ const SearchBar = ({
|
|
|
30
31
|
return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, children: [
|
|
31
32
|
isVariant && /* @__PURE__ */ jsx("div", { className: "position-absolute z-1 top-50 start-0 translate-middle-y border-0 ps-12 bg-transparent", children: /* @__PURE__ */ jsx(SvgIconSearch, {}) }),
|
|
32
33
|
/* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, disabled, onKeyDown: handleKeyDown, ...restProps }),
|
|
33
|
-
!isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(SvgIconSearch, {}), className: "border-start-0", onClick: handleClick })
|
|
34
|
+
!isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(SvgIconSearch, {}), className: "border-start-0", onClick: handleClick, disabled: buttonDisabled })
|
|
34
35
|
] });
|
|
35
36
|
};
|
|
36
37
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.2.10-develop-b2school.
|
|
3
|
+
"version": "2.2.10-develop-b2school.20250623112051",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"react-slugify": "^3.0.3",
|
|
119
119
|
"swiper": "^10.1.0",
|
|
120
120
|
"ua-parser-js": "^1.0.36",
|
|
121
|
-
"@edifice.io/bootstrap": "2.2.10-develop-b2school.
|
|
122
|
-
"@edifice.io/tiptap-extensions": "2.2.10-develop-b2school.
|
|
123
|
-
"@edifice.io/utilities": "2.2.10-develop-b2school.
|
|
121
|
+
"@edifice.io/bootstrap": "2.2.10-develop-b2school.20250623112051",
|
|
122
|
+
"@edifice.io/tiptap-extensions": "2.2.10-develop-b2school.20250623112051",
|
|
123
|
+
"@edifice.io/utilities": "2.2.10-develop-b2school.20250623112051"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"vite": "^5.4.11",
|
|
152
152
|
"vite-plugin-dts": "^4.1.0",
|
|
153
153
|
"vite-tsconfig-paths": "^5.0.1",
|
|
154
|
-
"@edifice.io/client": "2.2.10-develop-b2school.
|
|
155
|
-
"@edifice.io/config": "2.2.10-develop-b2school.
|
|
154
|
+
"@edifice.io/client": "2.2.10-develop-b2school.20250623112051",
|
|
155
|
+
"@edifice.io/config": "2.2.10-develop-b2school.20250623112051"
|
|
156
156
|
},
|
|
157
157
|
"peerDependencies": {
|
|
158
158
|
"@react-spring/web": "^9.7.5",
|