@cgi-learning-hub/ui 1.11.1-dev.1765194222 → 1.11.1-dev.1765209149
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/dist/index.cjs.js +7 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +8 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -58640,8 +58640,10 @@ const ResourceCard = ({
|
|
|
58640
58640
|
}
|
|
58641
58641
|
) });
|
|
58642
58642
|
};
|
|
58643
|
+
const SearchRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
58644
|
+
d: "M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
58645
|
+
}), "SearchRounded");
|
|
58643
58646
|
const StyledInput = styled(InputBase)(({ theme }) => ({
|
|
58644
|
-
width: "auto",
|
|
58645
58647
|
padding: "0px 12px",
|
|
58646
58648
|
backgroundColor: theme.palette.grey[50],
|
|
58647
58649
|
borderRadius: 30,
|
|
@@ -58655,15 +58657,18 @@ const StyledInput = styled(InputBase)(({ theme }) => ({
|
|
|
58655
58657
|
}
|
|
58656
58658
|
}));
|
|
58657
58659
|
const SearchInput = ({
|
|
58660
|
+
name = "search",
|
|
58658
58661
|
placeholder = "Rechercher",
|
|
58662
|
+
loading = false,
|
|
58659
58663
|
...otherProps
|
|
58660
58664
|
}) => {
|
|
58661
58665
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
58662
58666
|
StyledInput,
|
|
58663
58667
|
{
|
|
58664
58668
|
...otherProps,
|
|
58669
|
+
name,
|
|
58665
58670
|
placeholder,
|
|
58666
|
-
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(InputAdornment, { position: "start", disablePointerEvents: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
58671
|
+
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(InputAdornment, { position: "start", disablePointerEvents: true, children: loading ? /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: "16px", sx: { mx: 0.5 } }) : /* @__PURE__ */ jsxRuntime.jsx(SearchRoundedIcon, {}) }),
|
|
58667
58672
|
type: "search",
|
|
58668
58673
|
autoComplete: "off",
|
|
58669
58674
|
autoCorrect: "off",
|
package/dist/index.d.ts
CHANGED
|
@@ -551,7 +551,9 @@ export declare type ResourceCardSize = "md" | "sm";
|
|
|
551
551
|
|
|
552
552
|
export declare const SearchInput: React.FunctionComponent<SearchInputProps>;
|
|
553
553
|
|
|
554
|
-
export declare type SearchInputProps = InputBaseProps & {
|
|
554
|
+
export declare type SearchInputProps = InputBaseProps & {
|
|
555
|
+
loading?: boolean;
|
|
556
|
+
};
|
|
555
557
|
|
|
556
558
|
export { Select }
|
|
557
559
|
|
package/dist/index.es.js
CHANGED
|
@@ -10,7 +10,7 @@ import { useTheme as useTheme$4, styled as styled$3, Box as Box$1, ClickAwayList
|
|
|
10
10
|
import { CirclePicker } from "react-color";
|
|
11
11
|
import dayjs from "dayjs";
|
|
12
12
|
import { useDropzone } from "react-dropzone";
|
|
13
|
-
import { InsertDriveFileOutlined, OndemandVideoRounded, DescriptionOutlined, PictureAsPdfOutlined, CalendarViewMonthRounded, MovieOutlined, PhotoOutlined, MusicNoteRounded, DownloadRounded, CloseRounded, VisibilityOff, Visibility
|
|
13
|
+
import { InsertDriveFileOutlined, OndemandVideoRounded, DescriptionOutlined, PictureAsPdfOutlined, CalendarViewMonthRounded, MovieOutlined, PhotoOutlined, MusicNoteRounded, DownloadRounded, CloseRounded, VisibilityOff, Visibility } from "@mui/icons-material";
|
|
14
14
|
function getDefaultExportFromCjs(x) {
|
|
15
15
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
16
16
|
}
|
|
@@ -58623,8 +58623,10 @@ const ResourceCard = ({
|
|
|
58623
58623
|
}
|
|
58624
58624
|
) });
|
|
58625
58625
|
};
|
|
58626
|
+
const SearchRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
58627
|
+
d: "M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
58628
|
+
}), "SearchRounded");
|
|
58626
58629
|
const StyledInput = styled(InputBase)(({ theme }) => ({
|
|
58627
|
-
width: "auto",
|
|
58628
58630
|
padding: "0px 12px",
|
|
58629
58631
|
backgroundColor: theme.palette.grey[50],
|
|
58630
58632
|
borderRadius: 30,
|
|
@@ -58638,15 +58640,18 @@ const StyledInput = styled(InputBase)(({ theme }) => ({
|
|
|
58638
58640
|
}
|
|
58639
58641
|
}));
|
|
58640
58642
|
const SearchInput = ({
|
|
58643
|
+
name = "search",
|
|
58641
58644
|
placeholder = "Rechercher",
|
|
58645
|
+
loading = false,
|
|
58642
58646
|
...otherProps
|
|
58643
58647
|
}) => {
|
|
58644
58648
|
return /* @__PURE__ */ jsx(
|
|
58645
58649
|
StyledInput,
|
|
58646
58650
|
{
|
|
58647
58651
|
...otherProps,
|
|
58652
|
+
name,
|
|
58648
58653
|
placeholder,
|
|
58649
|
-
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", disablePointerEvents: true, children: /* @__PURE__ */ jsx(
|
|
58654
|
+
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", disablePointerEvents: true, children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: "16px", sx: { mx: 0.5 } }) : /* @__PURE__ */ jsx(SearchRoundedIcon, {}) }),
|
|
58650
58655
|
type: "search",
|
|
58651
58656
|
autoComplete: "off",
|
|
58652
58657
|
autoCorrect: "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.11.1-dev.
|
|
3
|
+
"version": "1.11.1-dev.1765209149",
|
|
4
4
|
"description": "React component library for Hub's design system, built on Material UI with custom and extended components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cgi-learning-hub",
|