@cgi-learning-hub/ui 0.0.1-dev.1711467832 → 0.0.1-dev.1711719764
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/{SearchInput-CHgn0D5z.js → SearchInput-CtPUde8G.js} +48 -39
- package/dist/{SearchInput-jw0WbvcW.cjs → SearchInput-RQ8PErJq.cjs} +1 -1
- package/dist/{TextInput-1LnyCYsf.cjs → TextInput-BVYR7dwx.cjs} +11 -11
- package/dist/{TextInput-OqzSYhoO.js → TextInput-q6mkaobT.js} +7 -5
- package/dist/{TimePicker-sGuo7yu_.cjs → TimePicker-CdZbE5Fk.cjs} +21 -19
- package/dist/{TimePicker-etCsF_pD.js → TimePicker-CkUlMaV7.js} +5211 -4730
- package/dist/assets/index.css +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.es.js +109 -106
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +2 -2
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.d.ts +1 -0
- package/dist/components/inputs/SearchInput/SearchInput.es.js +2 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +107 -104
- package/package.json +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as b from "react";
|
|
1
|
+
import { jsx as n, jsxs as A } from "react/jsx-runtime";
|
|
3
2
|
import { g as T, s as I, c as S, a as L } from "./styled-BsJ0U393.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { g as
|
|
3
|
+
import { u as M, F as N, I as R } from "./InputBase-Bhjpy85y.js";
|
|
4
|
+
import { g as z, _ as m, u as O, b as _, P as e, c as v } from "./useThemeProps-CHA42TL5.js";
|
|
5
|
+
import * as b from "react";
|
|
6
6
|
import { T as $ } from "./Typography-CkBmZs84.js";
|
|
7
7
|
import { c as j } from "./createSvgIcon-T1h5CEgM.js";
|
|
8
|
-
const F = j(/* @__PURE__ */
|
|
8
|
+
const F = j(/* @__PURE__ */ n("path", {
|
|
9
9
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-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"
|
|
10
10
|
}), "Search");
|
|
11
|
-
function U(
|
|
12
|
-
return
|
|
11
|
+
function U(o) {
|
|
12
|
+
return z("MuiInputAdornment", o);
|
|
13
13
|
}
|
|
14
14
|
const w = T("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]), g = w;
|
|
15
15
|
var y;
|
|
16
|
-
const B = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"],
|
|
16
|
+
const B = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], k = (o, t) => {
|
|
17
17
|
const {
|
|
18
18
|
ownerState: s
|
|
19
|
-
} =
|
|
19
|
+
} = o;
|
|
20
20
|
return [t.root, t[`position${v(s.position)}`], s.disablePointerEvents === !0 && t.disablePointerEvents, t[s.variant]];
|
|
21
|
-
},
|
|
21
|
+
}, D = (o) => {
|
|
22
22
|
const {
|
|
23
23
|
classes: t,
|
|
24
24
|
disablePointerEvents: s,
|
|
25
|
-
hiddenLabel:
|
|
25
|
+
hiddenLabel: i,
|
|
26
26
|
position: r,
|
|
27
27
|
size: l,
|
|
28
28
|
variant: p
|
|
29
|
-
} =
|
|
30
|
-
root: ["root", s && "disablePointerEvents", r && `position${v(r)}`, p,
|
|
29
|
+
} = o, d = {
|
|
30
|
+
root: ["root", s && "disablePointerEvents", r && `position${v(r)}`, p, i && "hiddenLabel", l && `size${v(l)}`]
|
|
31
31
|
};
|
|
32
32
|
return L(d, U, t);
|
|
33
|
-
},
|
|
33
|
+
}, V = I("div", {
|
|
34
34
|
name: "MuiInputAdornment",
|
|
35
35
|
slot: "Root",
|
|
36
|
-
overridesResolver:
|
|
36
|
+
overridesResolver: k
|
|
37
37
|
})(({
|
|
38
|
-
theme:
|
|
38
|
+
theme: o,
|
|
39
39
|
ownerState: t
|
|
40
40
|
}) => m({
|
|
41
41
|
display: "flex",
|
|
@@ -44,7 +44,7 @@ const B = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
44
44
|
maxHeight: "2em",
|
|
45
45
|
alignItems: "center",
|
|
46
46
|
whiteSpace: "nowrap",
|
|
47
|
-
color: (
|
|
47
|
+
color: (o.vars || o).palette.action.active
|
|
48
48
|
}, t.variant === "filled" && {
|
|
49
49
|
// Styles applied to the root element if `variant="filled"`.
|
|
50
50
|
[`&.${g.positionStart}&:not(.${g.hiddenLabel})`]: {
|
|
@@ -59,8 +59,8 @@ const B = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
59
59
|
}, t.disablePointerEvents === !0 && {
|
|
60
60
|
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
61
61
|
pointerEvents: "none"
|
|
62
|
-
})),
|
|
63
|
-
const
|
|
62
|
+
})), C = /* @__PURE__ */ b.forwardRef(function(t, s) {
|
|
63
|
+
const i = O({
|
|
64
64
|
props: t,
|
|
65
65
|
name: "MuiInputAdornment"
|
|
66
66
|
}), {
|
|
@@ -68,34 +68,34 @@ const B = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
68
68
|
className: l,
|
|
69
69
|
component: p = "div",
|
|
70
70
|
disablePointerEvents: d = !1,
|
|
71
|
-
disableTypography:
|
|
71
|
+
disableTypography: E = !1,
|
|
72
72
|
position: h,
|
|
73
73
|
variant: c
|
|
74
|
-
} =
|
|
74
|
+
} = i, P = _(i, B), a = M() || {};
|
|
75
75
|
let u = c;
|
|
76
|
-
c &&
|
|
77
|
-
const f = m({},
|
|
78
|
-
hiddenLabel:
|
|
79
|
-
size:
|
|
76
|
+
c && a.variant && process.env.NODE_ENV !== "production" && c === a.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), a && !u && (u = a.variant);
|
|
77
|
+
const f = m({}, i, {
|
|
78
|
+
hiddenLabel: a.hiddenLabel,
|
|
79
|
+
size: a.size,
|
|
80
80
|
disablePointerEvents: d,
|
|
81
81
|
position: h,
|
|
82
82
|
variant: u
|
|
83
|
-
}),
|
|
84
|
-
return /* @__PURE__ */
|
|
83
|
+
}), x = D(f);
|
|
84
|
+
return /* @__PURE__ */ n(N.Provider, {
|
|
85
85
|
value: null,
|
|
86
|
-
children: /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ n(V, m({
|
|
87
87
|
as: p,
|
|
88
88
|
ownerState: f,
|
|
89
|
-
className: S(
|
|
89
|
+
className: S(x.root, l),
|
|
90
90
|
ref: s
|
|
91
|
-
},
|
|
92
|
-
children: typeof r == "string" && !
|
|
91
|
+
}, P, {
|
|
92
|
+
children: typeof r == "string" && !E ? /* @__PURE__ */ n($, {
|
|
93
93
|
color: "text.secondary",
|
|
94
94
|
children: r
|
|
95
95
|
}) : /* @__PURE__ */ A(b.Fragment, {
|
|
96
96
|
children: [h === "start" ? (
|
|
97
97
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
98
|
-
y || (y = /* @__PURE__ */
|
|
98
|
+
y || (y = /* @__PURE__ */ n("span", {
|
|
99
99
|
className: "notranslate",
|
|
100
100
|
children: ""
|
|
101
101
|
}))
|
|
@@ -104,7 +104,7 @@ const B = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
104
104
|
}))
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
|
-
process.env.NODE_ENV !== "production" && (
|
|
107
|
+
process.env.NODE_ENV !== "production" && (C.propTypes = {
|
|
108
108
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
109
109
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
110
110
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -152,23 +152,32 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
152
152
|
*/
|
|
153
153
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
154
154
|
});
|
|
155
|
-
const q =
|
|
155
|
+
const q = C, H = I(R)(({ theme: o }) => ({
|
|
156
156
|
width: "auto",
|
|
157
157
|
padding: "0px 12px",
|
|
158
|
-
backgroundColor:
|
|
158
|
+
backgroundColor: o.palette.grey[50],
|
|
159
159
|
borderRadius: 30,
|
|
160
160
|
"& .MuiInputBase-input": {
|
|
161
161
|
padding: "8px 0px"
|
|
162
|
+
},
|
|
163
|
+
"&:hover, &.Mui-focused": {
|
|
164
|
+
"& .MuiInputAdornment-root": {
|
|
165
|
+
color: o.palette.primary.main
|
|
166
|
+
}
|
|
162
167
|
}
|
|
163
168
|
})), Y = ({
|
|
164
|
-
placeholder:
|
|
169
|
+
placeholder: o = "Rechercher",
|
|
165
170
|
...t
|
|
166
|
-
}) => /* @__PURE__ */
|
|
171
|
+
}) => /* @__PURE__ */ n(
|
|
167
172
|
H,
|
|
168
173
|
{
|
|
169
174
|
...t,
|
|
170
|
-
placeholder:
|
|
171
|
-
startAdornment: /* @__PURE__ */
|
|
175
|
+
placeholder: o,
|
|
176
|
+
startAdornment: /* @__PURE__ */ n(q, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ n(F, {}) }),
|
|
177
|
+
type: "search",
|
|
178
|
+
autoComplete: "off",
|
|
179
|
+
autoCorrect: "off",
|
|
180
|
+
spellCheck: !1
|
|
172
181
|
}
|
|
173
182
|
);
|
|
174
183
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),p=require("./styled-BNeo3RSn.cjs"),y=require("./InputBase-BlYJWP6N.cjs"),e=require("./useThemeProps-BRWSvuZw.cjs"),C=require("react"),E=require("./Typography-Bt-7Kw4t.cjs"),A=require("./createSvgIcon-eNQw4DMM.cjs");function S(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const f=S(C),O=A.createSvgIcon(r.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-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"}),"Search");function _(t){return e.generateUtilityClass("MuiInputAdornment",t)}const z=p.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),b=z;var P;const M=["children","className","component","disablePointerEvents","disableTypography","position","variant"],N=(t,n)=>{const{ownerState:o}=t;return[n.root,n[`position${e.capitalize(o.position)}`],o.disablePointerEvents===!0&&n.disablePointerEvents,n[o.variant]]},R=t=>{const{classes:n,disablePointerEvents:o,hiddenLabel:s,position:i,size:l,variant:c}=t,d={root:["root",o&&"disablePointerEvents",i&&`position${e.capitalize(i)}`,c,s&&"hiddenLabel",l&&`size${e.capitalize(l)}`]};return p.composeClasses(d,_,n)},q=p.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:N})(({theme:t,ownerState:n})=>e._extends({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},n.variant==="filled"&&{[`&.${b.positionStart}&:not(.${b.hiddenLabel})`]:{marginTop:16}},n.position==="start"&&{marginRight:8},n.position==="end"&&{marginLeft:8},n.disablePointerEvents===!0&&{pointerEvents:"none"})),T=f.forwardRef(function(n,o){const s=e.useThemeProps({props:n,name:"MuiInputAdornment"}),{children:i,className:l,component:c="div",disablePointerEvents:d=!1,disableTypography:x=!1,position:v,variant:u}=s,I=e._objectWithoutPropertiesLoose(s,M),a=y.useFormControl()||{};let m=u;u&&a.variant&&process.env.NODE_ENV!=="production"&&u===a.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),a&&!m&&(m=a.variant);const h=e._extends({},s,{hiddenLabel:a.hiddenLabel,size:a.size,disablePointerEvents:d,position:v,variant:m}),j=R(h);return r.jsx(y.FormControlContext.Provider,{value:null,children:r.jsx(q,e._extends({as:c,ownerState:h,className:p.clsx(j.root,l),ref:o},I,{children:typeof i=="string"&&!x?r.jsx(E.Typography,{color:"text.secondary",children:i}):r.jsxs(f.Fragment,{children:[v==="start"?P||(P=r.jsx("span",{className:"notranslate",children:""})):null,i]})}))})});process.env.NODE_ENV!=="production"&&(T.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});const g=T,L=p.styled(y.InputBase)(({theme:t})=>({width:"auto",padding:"0px 12px",backgroundColor:t.palette.grey[50],borderRadius:30,"& .MuiInputBase-input":{padding:"8px 0px"},"&:hover, &.Mui-focused":{"& .MuiInputAdornment-root":{color:t.palette.primary.main}}})),$=({placeholder:t="Rechercher",...n})=>r.jsx(L,{...n,placeholder:t,startAdornment:r.jsx(g,{position:"start",disablePointerEvents:!0,children:r.jsx(O,{})}),type:"search",autoComplete:"off",autoCorrect:"off",spellCheck:!1});exports.InputAdornment=g;exports.SearchInput=$;
|