@tsiky/components-r19 1.4.2 → 1.4.3

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.
@@ -20,6 +20,7 @@ export interface ColorProps {
20
20
  export interface DashboardSummaryProps extends FontProps, ColorProps {
21
21
  dms?: string;
22
22
  stats?: StatItem[];
23
+ itemWidth?: string;
23
24
  }
24
25
  export declare const DashboardSummary: React.FC<DashboardSummaryProps>;
25
26
  //# sourceMappingURL=DashboardSummary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardSummary/DashboardSummary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAsB,SAAQ,SAAS,EAAE,UAAU;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA0E5D,CAAC"}
1
+ {"version":3,"file":"DashboardSummary.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardSummary/DashboardSummary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAsB,SAAQ,SAAS,EAAE,UAAU;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2E5D,CAAC"}
@@ -24,7 +24,7 @@ export interface MenuCategory {
24
24
  export interface DropdownMenuProps {
25
25
  categories?: MenuCategory[];
26
26
  buttonContent?: React.ReactNode;
27
- position?: 'left' | 'right';
27
+ position?: 'left' | 'right' | 'auto';
28
28
  closeOnClickOutside?: boolean;
29
29
  logo?: string;
30
30
  select?: {
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D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CAAA;SAAE,EAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwJ7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -6,6 +6,7 @@ export type NavBarProps = {
6
6
  onNavClick?: (id: string) => void;
7
7
  highlightColor?: string;
8
8
  moduleConfig?: Record<string, boolean>;
9
+ dropdownPosition?: 'left' | 'right' | 'auto';
9
10
  };
10
11
  export declare const NavBar: React.FC<NavBarProps>;
11
12
  //# sourceMappingURL=NavBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/NavBar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsFxC,CAAC"}
1
+ {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/NavBar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8HxC,CAAC"}
@@ -9,6 +9,7 @@ export type TrendItemProps = {
9
9
  subtitleStyle?: React.CSSProperties;
10
10
  textStyle?: React.CSSProperties;
11
11
  itemStyle?: React.CSSProperties;
12
+ icon?: React.ReactNode;
12
13
  };
13
14
  export declare const TrendItem: React.FC<TrendItemProps>;
14
15
  export default TrendItem;
@@ -1 +1 @@
1
- {"version":3,"file":"TrendItem.d.ts","sourceRoot":"","sources":["../../../../src/components/TrendItem/TrendItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8B9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TrendItem.d.ts","sourceRoot":"","sources":["../../../../src/components/TrendItem/TrendItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkC9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -3,7 +3,7 @@ import './TrendList.css';
3
3
  import { TrendItemProps } from '../TrendItem';
4
4
  export type TrendListItem = {
5
5
  id: string | number;
6
- } & Pick<TrendItemProps, 'title' | 'subtitle' | 'text' | 'background' | 'itemStyle' | 'titleStyle' | 'subtitleStyle' | 'textStyle'>;
6
+ } & Pick<TrendItemProps, 'title' | 'subtitle' | 'text' | 'background' | 'itemStyle' | 'titleStyle' | 'subtitleStyle' | 'textStyle' | 'icon'>;
7
7
  interface TrendListProps {
8
8
  items: TrendListItem[];
9
9
  onReorder?: (next: TrendListItem[]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"TrendList.d.ts","sourceRoot":"","sources":["../../../../src/components/TrendList/TrendList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AAGzD,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB,GA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C,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACnC;AAED;;;;GAIG;AACH,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6HvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsiky/components-r19",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -1,26 +0,0 @@
1
- "use strict";const o=require("react"),a=require("react/jsx-runtime");/**
2
- * @license lucide-react v0.540.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const k=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),j=e=>{const t=q(e);return t.charAt(0).toUpperCase()+t.slice(1)},y=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),I=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
7
- * @license lucide-react v0.540.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */var P={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
- * @license lucide-react v0.540.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const x=o.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:d,iconNode:m,...f},i)=>o.createElement("svg",{ref:i,...P,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:y("lucide",l),...!d&&!I(f)&&{"aria-hidden":"true"},...f},[...m.map(([p,u])=>o.createElement(p,u)),...Array.isArray(d)?d:[d]]));/**
17
- * @license lucide-react v0.540.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const C=(e,t)=>{const r=o.forwardRef(({className:n,...l},d)=>o.createElement(x,{ref:d,iconNode:t,className:y(`lucide-${k(j(e))}`,`lucide-${e}`,n),...l}));return r.displayName=j(e),r};/**
22
- * @license lucide-react v0.540.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const E=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],R=C("move",E);var O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function M(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var l=!1;try{l=this instanceof n}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}const A="_wrapper_ffq96_1",F="_label_ffq96_14",T="_labelText_ffq96_23",$="_calendarIcon_ffq96_28",H="_rangeRow_ffq96_33",D="_dateWrap_ffq96_41",V="_innerLabel_ffq96_49",z="_dateInput_ffq96_55",B="_sepWrap_ffq96_69",G="_separator_ffq96_76",U="_samplingWrap_ffq96_82",Z="_samplingLabel_ffq96_91",K="_samplingSelect_ffq96_96",s={wrapper:A,label:F,labelText:T,calendarIcon:$,rangeRow:H,dateWrap:D,innerLabel:V,dateInput:z,sepWrap:B,separator:G,samplingWrap:U,samplingLabel:Z,samplingSelect:K};function J({start:e="",end:t="",onChange:r,sampling:n="day",onSamplingChange:l,labels:d={},samplingOptions:m={},className:f=""}){const i={period:"Période",start:"Début",end:"Fin",sampling:"Échantillonnage",...d},p={hour:"Par heure",day:"Par jour",week:"Par semaine",month:"Par mois",...m},[u,_]=o.useState(e),[h,b]=o.useState(t),[N,v]=o.useState(n),g=o.useRef(null);o.useEffect(()=>_(e),[e]),o.useEffect(()=>b(t),[t]),o.useEffect(()=>v(n),[n]),o.useEffect(()=>{function c(W){const w=W.target;g.current&&w&&g.current.contains(w)}return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),o.useEffect(()=>{r?.({start:u,end:h})},[u,h,r]);const L=c=>{v(c),l?.(c)};return a.jsxs("div",{className:`${s.wrapper} ${f}`,ref:g,children:[a.jsxs("label",{className:s.label,"aria-hidden":!0,children:[a.jsxs("svg",{className:s.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[a.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),a.jsx("path",{fill:"currentColor",d:"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zM5 20V9h14l.002 11H5z"})]}),a.jsx("span",{className:s.labelText,children:i.period})]}),a.jsxs("div",{className:s.rangeRow,children:[a.jsxs("div",{className:s.dateWrap,children:[a.jsx("label",{className:s.innerLabel,htmlFor:"period-from",children:i.start}),a.jsx("input",{id:"period-from",className:s.dateInput,type:"date",value:u,onChange:c=>_(c.target.value),"aria-label":i.start})]}),a.jsx("div",{className:s.sepWrap,"aria-hidden":!0,children:a.jsx("span",{className:s.separator,children:"—"})}),a.jsxs("div",{className:s.dateWrap,children:[a.jsx("label",{className:s.innerLabel,htmlFor:"period-to",children:i.end}),a.jsx("div",{className:s.inputWithIcon,children:a.jsx("input",{id:"period-to",className:s.dateInput,type:"date",value:h,onChange:c=>b(c.target.value),"aria-label":i.end})})]}),a.jsxs("div",{className:s.samplingWrap,children:[a.jsx("label",{className:s.samplingLabel,htmlFor:"period-sampling",children:i.sampling}),a.jsxs("select",{id:"period-sampling",className:s.samplingSelect,value:N,onChange:c=>L(c.target.value),"aria-label":i.sampling,children:[a.jsx("option",{value:"hour",children:p.hour}),a.jsx("option",{value:"day",children:p.day}),a.jsx("option",{value:"week",children:p.week}),a.jsx("option",{value:"month",children:p.month})]})]})]})]})}exports.Icon=x;exports.Move=R;exports.PeriodRange=J;exports.commonjsGlobal=O;exports.createLucideIcon=C;exports.getAugmentedNamespace=M;exports.getDefaultExportFromCjs=S;
@@ -1,26 +0,0 @@
1
- "use strict";const s=require("react"),a=require("react/jsx-runtime");/**
2
- * @license lucide-react v0.540.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const k=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),I=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),j=e=>{const t=I(e);return t.charAt(0).toUpperCase()+t.slice(1)},y=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),P=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
7
- * @license lucide-react v0.540.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */var E={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
- * @license lucide-react v0.540.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const x=s.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:d,iconNode:h,...m},i)=>s.createElement("svg",{ref:i,...E,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:y("lucide",l),...!d&&!P(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,u])=>s.createElement(p,u)),...Array.isArray(d)?d:[d]]));/**
17
- * @license lucide-react v0.540.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const C=(e,t)=>{const r=s.forwardRef(({className:n,...l},d)=>s.createElement(x,{ref:d,iconNode:t,className:y(`lucide-${k(j(e))}`,`lucide-${e}`,n),...l}));return r.displayName=j(e),r};/**
22
- * @license lucide-react v0.540.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const R=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],O=C("move",R);var S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var l=!1;try{l=this instanceof n}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}const F="_wrapper_1c0o1_1",T="_label_1c0o1_14",$="_labelText_1c0o1_23",H="_calendarIcon_1c0o1_28",D="_rangeRow_1c0o1_33",V="_dateWrap_1c0o1_41",z="_innerLabel_1c0o1_49",B="_dateInput_1c0o1_54",q="_sepWrap_1c0o1_68",G="_separator_1c0o1_75",U="_samplingWrap_1c0o1_80",Z="_samplingLabel_1c0o1_89",K="_samplingSelect_1c0o1_93",o={wrapper:F,label:T,labelText:$,calendarIcon:H,rangeRow:D,dateWrap:V,innerLabel:z,dateInput:B,sepWrap:q,separator:G,samplingWrap:U,samplingLabel:Z,samplingSelect:K};function J({start:e="",end:t="",onChange:r,sampling:n="day",onSamplingChange:l,labels:d={},samplingOptions:h={},className:m=""}){const i={period:"Période",start:"Début",end:"Fin",sampling:"Échantillonnage",...d},p={hour:"Par heure",day:"Par jour",week:"Par semaine",month:"Par mois",...h},[u,_]=s.useState(e),[f,b]=s.useState(t),[N,v]=s.useState(n),g=s.useRef(null);s.useEffect(()=>_(e),[e]),s.useEffect(()=>b(t),[t]),s.useEffect(()=>v(n),[n]),s.useEffect(()=>{function c(W){const w=W.target;g.current&&w&&g.current.contains(w)}return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),s.useEffect(()=>{r?.({start:u,end:f})},[u,f,r]);const L=c=>{v(c),l?.(c)};return a.jsxs("div",{className:`${o.wrapper} ${m}`,ref:g,children:[a.jsxs("label",{className:o.label,"aria-hidden":!0,children:[a.jsxs("svg",{className:o.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[a.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),a.jsx("path",{fill:"currentColor",d:"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zM5 20V9h14l.002 11H5z"})]}),a.jsx("span",{className:o.labelText,children:i.period})]}),a.jsxs("div",{className:o.rangeRow,children:[a.jsxs("div",{className:o.dateWrap,children:[a.jsx("label",{className:o.innerLabel,htmlFor:"period-from",children:i.start}),a.jsx("input",{id:"period-from",className:o.dateInput,type:"date",value:u,onChange:c=>_(c.target.value),"aria-label":i.start})]}),a.jsx("div",{className:o.sepWrap,"aria-hidden":!0,children:a.jsx("span",{className:o.separator,children:"—"})}),a.jsxs("div",{className:o.dateWrap,children:[a.jsx("label",{className:o.innerLabel,htmlFor:"period-to",children:i.end}),a.jsx("div",{className:o.inputWithIcon,children:a.jsx("input",{id:"period-to",className:o.dateInput,type:"date",value:f,onChange:c=>b(c.target.value),"aria-label":i.end})})]}),a.jsxs("div",{className:o.samplingWrap,children:[a.jsx("label",{className:o.samplingLabel,htmlFor:"period-sampling",children:i.sampling}),a.jsxs("select",{id:"period-sampling",className:o.samplingSelect,value:N,onChange:c=>L(c.target.value),"aria-label":i.sampling,children:[a.jsx("option",{value:"hour",children:p.hour}),a.jsx("option",{value:"day",children:p.day}),a.jsx("option",{value:"week",children:p.week}),a.jsx("option",{value:"month",children:p.month})]})]})]})]})}exports.Icon=x;exports.Move=O;exports.PeriodRange=J;exports.commonjsGlobal=S;exports.createLucideIcon=C;exports.getAugmentedNamespace=A;exports.getDefaultExportFromCjs=M;
@@ -1,26 +0,0 @@
1
- "use strict";const o=require("react"),a=require("react/jsx-runtime");/**
2
- * @license lucide-react v0.540.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const C=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),N=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),b=e=>{const t=N(e);return t.charAt(0).toUpperCase()+t.slice(1)},j=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),L=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
7
- * @license lucide-react v0.540.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */var W={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
- * @license lucide-react v0.540.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const v=o.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:i,iconNode:d,...p},u)=>o.createElement("svg",{ref:u,...W,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:j("lucide",l),...!i&&!L(p)&&{"aria-hidden":"true"},...p},[...d.map(([f,m])=>o.createElement(f,m)),...Array.isArray(i)?i:[i]]));/**
17
- * @license lucide-react v0.540.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const w=(e,t)=>{const r=o.forwardRef(({className:n,...l},i)=>o.createElement(v,{ref:i,iconNode:t,className:j(`lucide-${C(b(e))}`,`lucide-${e}`,n),...l}));return r.displayName=b(e),r};/**
22
- * @license lucide-react v0.540.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const q=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],I=w("move",q);var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function R(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var l=!1;try{l=this instanceof n}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}const k="_wrapper_ffq96_1",O="_label_ffq96_14",M="_labelText_ffq96_23",S="_calendarIcon_ffq96_28",A="_rangeRow_ffq96_33",F="_dateWrap_ffq96_41",T="_innerLabel_ffq96_49",D="_dateInput_ffq96_55",$="_sepWrap_ffq96_69",H="_separator_ffq96_76",V="_samplingWrap_ffq96_82",z="_samplingLabel_ffq96_91",B="_samplingSelect_ffq96_96",s={wrapper:k,label:O,labelText:M,calendarIcon:S,rangeRow:A,dateWrap:F,innerLabel:T,dateInput:D,sepWrap:$,separator:H,samplingWrap:V,samplingLabel:z,samplingSelect:B};function G({start:e="",end:t="",onChange:r,sampling:n="Par jour",onSamplingChange:l,className:i=""}){const[d,p]=o.useState(e),[u,f]=o.useState(t),[m,g]=o.useState(n),h=o.useRef(null);o.useEffect(()=>p(e),[e]),o.useEffect(()=>f(t),[t]),o.useEffect(()=>g(n),[n]),o.useEffect(()=>{function c(x){const _=x.target;h.current&&_&&h.current.contains(_)}return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),o.useEffect(()=>{r?.({start:d,end:u})},[d,u,r]);const y=c=>{g(c),l?.(c)};return a.jsxs("div",{className:`${s.wrapper} ${i}`,ref:h,children:[a.jsxs("label",{className:s.label,"aria-hidden":!0,children:[a.jsxs("svg",{className:s.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[a.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),a.jsx("path",{fill:"currentColor",d:"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zM5 20V9h14l.002 11H5z"})]}),a.jsx("span",{className:s.labelText,children:"Période"})]}),a.jsxs("div",{className:s.rangeRow,children:[a.jsxs("div",{className:s.dateWrap,children:[a.jsx("label",{className:s.innerLabel,htmlFor:"period-from",children:"Début"}),a.jsx("input",{id:"period-from",className:s.dateInput,type:"date",value:d,onChange:c=>p(c.target.value),"aria-label":"Date de début"})]}),a.jsx("div",{className:s.sepWrap,"aria-hidden":!0,children:a.jsx("span",{className:s.separator,children:"—"})}),a.jsxs("div",{className:s.dateWrap,children:[a.jsx("label",{className:s.innerLabel,htmlFor:"period-to",children:"Fin"}),a.jsx("div",{className:s.inputWithIcon,children:a.jsx("input",{id:"period-to",className:s.dateInput,type:"date",value:u,onChange:c=>f(c.target.value),"aria-label":"Date de fin"})})]}),a.jsxs("div",{className:s.samplingWrap,children:[a.jsx("label",{className:s.samplingLabel,htmlFor:"period-sampling",children:"Échantillonnage"}),a.jsxs("select",{id:"period-sampling",className:s.samplingSelect,value:m,onChange:c=>y(c.target.value),"aria-label":"Échantillonnage",children:[a.jsx("option",{children:"Par jour"}),a.jsx("option",{children:"Par semaine"}),a.jsx("option",{children:"Par mois"}),a.jsx("option",{children:"Par heure"})]})]})]})]})}exports.Icon=v;exports.Move=I;exports.PeriodRange=G;exports.commonjsGlobal=P;exports.createLucideIcon=w;exports.getAugmentedNamespace=R;exports.getDefaultExportFromCjs=E;
@@ -1,256 +0,0 @@
1
- import { forwardRef as C, createElement as b, useState as _, useRef as j, useEffect as f } from "react";
2
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
3
- /**
4
- * @license lucide-react v0.540.0 - ISC
5
- *
6
- * This source code is licensed under the ISC license.
7
- * See the LICENSE file in the root directory of this source tree.
8
- */
9
- const P = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), I = (e) => e.replace(
10
- /^([A-Z])|[\s-_]+(\w)/g,
11
- (a, t, r) => r ? r.toUpperCase() : t.toLowerCase()
12
- ), y = (e) => {
13
- const a = I(e);
14
- return a.charAt(0).toUpperCase() + a.slice(1);
15
- }, N = (...e) => e.filter((a, t, r) => !!a && a.trim() !== "" && r.indexOf(a) === t).join(" ").trim(), q = (e) => {
16
- for (const a in e)
17
- if (a.startsWith("aria-") || a === "role" || a === "title")
18
- return !0;
19
- };
20
- /**
21
- * @license lucide-react v0.540.0 - ISC
22
- *
23
- * This source code is licensed under the ISC license.
24
- * See the LICENSE file in the root directory of this source tree.
25
- */
26
- var k = {
27
- xmlns: "http://www.w3.org/2000/svg",
28
- width: 24,
29
- height: 24,
30
- viewBox: "0 0 24 24",
31
- fill: "none",
32
- stroke: "currentColor",
33
- strokeWidth: 2,
34
- strokeLinecap: "round",
35
- strokeLinejoin: "round"
36
- };
37
- /**
38
- * @license lucide-react v0.540.0 - ISC
39
- *
40
- * This source code is licensed under the ISC license.
41
- * See the LICENSE file in the root directory of this source tree.
42
- */
43
- const O = C(
44
- ({
45
- color: e = "currentColor",
46
- size: a = 24,
47
- strokeWidth: t = 2,
48
- absoluteStrokeWidth: r,
49
- className: l = "",
50
- children: i,
51
- iconNode: p,
52
- ...d
53
- }, u) => b(
54
- "svg",
55
- {
56
- ref: u,
57
- ...k,
58
- width: a,
59
- height: a,
60
- stroke: e,
61
- strokeWidth: r ? Number(t) * 24 / Number(a) : t,
62
- className: N("lucide", l),
63
- ...!i && !q(d) && { "aria-hidden": "true" },
64
- ...d
65
- },
66
- [
67
- ...p.map(([m, h]) => b(m, h)),
68
- ...Array.isArray(i) ? i : [i]
69
- ]
70
- )
71
- );
72
- /**
73
- * @license lucide-react v0.540.0 - ISC
74
- *
75
- * This source code is licensed under the ISC license.
76
- * See the LICENSE file in the root directory of this source tree.
77
- */
78
- const M = (e, a) => {
79
- const t = C(
80
- ({ className: r, ...l }, i) => b(O, {
81
- ref: i,
82
- iconNode: a,
83
- className: N(
84
- `lucide-${P(y(e))}`,
85
- `lucide-${e}`,
86
- r
87
- ),
88
- ...l
89
- })
90
- );
91
- return t.displayName = y(e), t;
92
- };
93
- /**
94
- * @license lucide-react v0.540.0 - ISC
95
- *
96
- * This source code is licensed under the ISC license.
97
- * See the LICENSE file in the root directory of this source tree.
98
- */
99
- const x = [
100
- ["path", { d: "M12 2v20", key: "t6zp3m" }],
101
- ["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
102
- ["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
103
- ["path", { d: "M2 12h20", key: "9i4pu4" }],
104
- ["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
105
- ["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
106
- ], K = M("move", x);
107
- var J = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
108
- function Q(e) {
109
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
110
- }
111
- function X(e) {
112
- if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
113
- var a = e.default;
114
- if (typeof a == "function") {
115
- var t = function r() {
116
- var l = !1;
117
- try {
118
- l = this instanceof r;
119
- } catch {
120
- }
121
- return l ? Reflect.construct(a, arguments, this.constructor) : a.apply(this, arguments);
122
- };
123
- t.prototype = a.prototype;
124
- } else t = {};
125
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
126
- var l = Object.getOwnPropertyDescriptor(e, r);
127
- Object.defineProperty(t, r, l.get ? l : {
128
- enumerable: !0,
129
- get: function() {
130
- return e[r];
131
- }
132
- });
133
- }), t;
134
- }
135
- const R = "_wrapper_ffq96_1", A = "_label_ffq96_14", S = "_labelText_ffq96_23", T = "_calendarIcon_ffq96_28", E = "_rangeRow_ffq96_33", F = "_dateWrap_ffq96_41", $ = "_innerLabel_ffq96_49", D = "_dateInput_ffq96_55", H = "_sepWrap_ffq96_69", V = "_separator_ffq96_76", z = "_samplingWrap_ffq96_82", B = "_samplingLabel_ffq96_91", U = "_samplingSelect_ffq96_96", n = {
136
- wrapper: R,
137
- label: A,
138
- labelText: S,
139
- calendarIcon: T,
140
- rangeRow: E,
141
- dateWrap: F,
142
- innerLabel: $,
143
- dateInput: D,
144
- sepWrap: H,
145
- separator: V,
146
- samplingWrap: z,
147
- samplingLabel: B,
148
- samplingSelect: U
149
- };
150
- function Y({
151
- start: e = "",
152
- end: a = "",
153
- onChange: t,
154
- sampling: r = "Par jour",
155
- onSamplingChange: l,
156
- className: i = ""
157
- }) {
158
- const [p, d] = _(e), [u, m] = _(a), [h, v] = _(r), g = j(null);
159
- f(() => d(e), [e]), f(() => m(a), [a]), f(() => v(r), [r]), f(() => {
160
- function s(W) {
161
- const w = W.target;
162
- g.current && w && g.current.contains(w);
163
- }
164
- return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
165
- }, []), f(() => {
166
- t?.({ start: p, end: u });
167
- }, [p, u, t]);
168
- const L = (s) => {
169
- v(s), l?.(s);
170
- };
171
- return /* @__PURE__ */ c("div", { className: `${n.wrapper} ${i}`, ref: g, children: [
172
- /* @__PURE__ */ c("label", { className: n.label, "aria-hidden": !0, children: [
173
- /* @__PURE__ */ c(
174
- "svg",
175
- {
176
- className: n.calendarIcon,
177
- xmlns: "http://www.w3.org/2000/svg",
178
- viewBox: "0 0 24 24",
179
- width: "18",
180
- height: "18",
181
- "aria-hidden": !0,
182
- children: [
183
- /* @__PURE__ */ o("path", { fill: "currentColor", d: "M7 10h5v5H7z", opacity: "0" }),
184
- /* @__PURE__ */ o(
185
- "path",
186
- {
187
- fill: "currentColor",
188
- d: "M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zM5 20V9h14l.002 11H5z"
189
- }
190
- )
191
- ]
192
- }
193
- ),
194
- /* @__PURE__ */ o("span", { className: n.labelText, children: "Période" })
195
- ] }),
196
- /* @__PURE__ */ c("div", { className: n.rangeRow, children: [
197
- /* @__PURE__ */ c("div", { className: n.dateWrap, children: [
198
- /* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-from", children: "Début" }),
199
- /* @__PURE__ */ o(
200
- "input",
201
- {
202
- id: "period-from",
203
- className: n.dateInput,
204
- type: "date",
205
- value: p,
206
- onChange: (s) => d(s.target.value),
207
- "aria-label": "Date de début"
208
- }
209
- )
210
- ] }),
211
- /* @__PURE__ */ o("div", { className: n.sepWrap, "aria-hidden": !0, children: /* @__PURE__ */ o("span", { className: n.separator, children: "—" }) }),
212
- /* @__PURE__ */ c("div", { className: n.dateWrap, children: [
213
- /* @__PURE__ */ o("label", { className: n.innerLabel, htmlFor: "period-to", children: "Fin" }),
214
- /* @__PURE__ */ o("div", { className: n.inputWithIcon, children: /* @__PURE__ */ o(
215
- "input",
216
- {
217
- id: "period-to",
218
- className: n.dateInput,
219
- type: "date",
220
- value: u,
221
- onChange: (s) => m(s.target.value),
222
- "aria-label": "Date de fin"
223
- }
224
- ) })
225
- ] }),
226
- /* @__PURE__ */ c("div", { className: n.samplingWrap, children: [
227
- /* @__PURE__ */ o("label", { className: n.samplingLabel, htmlFor: "period-sampling", children: "Échantillonnage" }),
228
- /* @__PURE__ */ c(
229
- "select",
230
- {
231
- id: "period-sampling",
232
- className: n.samplingSelect,
233
- value: h,
234
- onChange: (s) => L(s.target.value),
235
- "aria-label": "Échantillonnage",
236
- children: [
237
- /* @__PURE__ */ o("option", { children: "Par jour" }),
238
- /* @__PURE__ */ o("option", { children: "Par semaine" }),
239
- /* @__PURE__ */ o("option", { children: "Par mois" }),
240
- /* @__PURE__ */ o("option", { children: "Par heure" })
241
- ]
242
- }
243
- )
244
- ] })
245
- ] })
246
- ] });
247
- }
248
- export {
249
- O as I,
250
- K as M,
251
- Y as P,
252
- J as a,
253
- X as b,
254
- M as c,
255
- Q as g
256
- };