@tsiky/components-r19 1.4.0 → 1.4.1

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.
Files changed (41) hide show
  1. package/dist/{PeriodRange-BXSfe73g.js → PeriodRange-BpxD5xRJ.js} +103 -89
  2. package/dist/PeriodRange-NiT-19Z4.cjs +26 -0
  3. package/dist/chart.cjs.js +1 -1
  4. package/dist/chart.js +2 -2
  5. package/dist/components-r19.css +1 -1
  6. package/dist/index.cjs.js +1633 -1633
  7. package/dist/index.d.ts +4 -2
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +12897 -12611
  10. package/dist/src/components/BadgeList/BadgeList.d.ts +19 -0
  11. package/dist/src/components/BadgeList/BadgeList.d.ts.map +1 -0
  12. package/dist/src/components/BadgeList/index.d.ts +2 -0
  13. package/dist/src/components/BadgeList/index.d.ts.map +1 -0
  14. package/dist/src/components/CircularProgress/CircularProgress.d.ts +2 -0
  15. package/dist/src/components/CircularProgress/CircularProgress.d.ts.map +1 -1
  16. package/dist/src/components/Confirmationpopup/ConfirmationPopup.d.ts.map +1 -1
  17. package/dist/src/components/DashboardSummary/DashboardSummary.d.ts +25 -0
  18. package/dist/src/components/DashboardSummary/DashboardSummary.d.ts.map +1 -0
  19. package/dist/src/components/DashboardSummary/index.d.ts +2 -0
  20. package/dist/src/components/DashboardSummary/index.d.ts.map +1 -0
  21. package/dist/src/components/DayStatCard/DayStatCard.d.ts +2 -1
  22. package/dist/src/components/DayStatCard/DayStatCard.d.ts.map +1 -1
  23. package/dist/src/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  24. package/dist/src/components/DynamicInput/input/DateInput.d.ts +2 -0
  25. package/dist/src/components/DynamicInput/input/DateInput.d.ts.map +1 -1
  26. package/dist/src/components/Encours/Encours.d.ts +35 -0
  27. package/dist/src/components/Encours/Encours.d.ts.map +1 -0
  28. package/dist/src/components/Encours/index.d.ts +2 -0
  29. package/dist/src/components/Encours/index.d.ts.map +1 -0
  30. package/dist/src/components/PeriodRange/PeriodRange.d.ts +14 -2
  31. package/dist/src/components/PeriodRange/PeriodRange.d.ts.map +1 -1
  32. package/dist/src/components/PeriodRange/index.d.ts +3 -0
  33. package/dist/src/components/PeriodRange/index.d.ts.map +1 -0
  34. package/dist/src/components/TranslationKey/TranslationKey.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/dist/PeriodRange-B53IzsZ7.cjs +0 -26
  37. package/dist/PeriodRange-B7crP6r3.js +0 -256
  38. package/dist/PeriodRange-Bk2LtI3D.cjs +0 -26
  39. package/dist/assets/index-C-LOvVBi.js +0 -986
  40. package/dist/assets/index-D8b4DHJx.css +0 -1
  41. package/dist/index.html +0 -14
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export type BadgeItem = {
3
+ badgeColor?: string;
4
+ textColor?: string;
5
+ text: string;
6
+ };
7
+ export interface BadgeListProps {
8
+ data: BadgeItem[];
9
+ style?: React.CSSProperties;
10
+ defaultBadgeColor?: string;
11
+ defaultTextColor?: string;
12
+ bgColor?: string;
13
+ activateTooltip?: boolean;
14
+ maxVisible?: number;
15
+ width?: number | string;
16
+ gap?: number | string;
17
+ }
18
+ export declare function BadgeList({ data, style, defaultBadgeColor, defaultTextColor, bgColor, activateTooltip, maxVisible, width, gap, }: BadgeListProps): import("react/jsx-runtime").JSX.Element;
19
+ //# sourceMappingURL=BadgeList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadgeList.d.ts","sourceRoot":"","sources":["../../../../src/components/BadgeList/BadgeList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,MAAM,MAAM,SAAS,GAAG;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,iBAA6B,EAC7B,gBAAyB,EACzB,OAAuB,EACvB,eAAsB,EACtB,UAAc,EACd,KAAc,EACd,GAAO,GACR,EAAE,cAAc,2CA4FhB"}
@@ -0,0 +1,2 @@
1
+ export * from './BadgeList';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BadgeList/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -6,6 +6,8 @@ export type CircularProgressProps = {
6
6
  size?: number;
7
7
  strokeWidth?: number;
8
8
  color?: string;
9
+ bgColor?: string;
10
+ textColor?: string;
9
11
  textTop?: string;
10
12
  textBottom?: string;
11
13
  label?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CircularProgress.d.ts","sourceRoot":"","sources":["../../../../src/components/CircularProgress/CircularProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,wBAAwB,CAAC;AAEhC,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAmF5D,CAAC"}
1
+ {"version":3,"file":"CircularProgress.d.ts","sourceRoot":"","sources":["../../../../src/components/CircularProgress/CircularProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,wBAAwB,CAAC;AAEhC,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA4E5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmationPopup.d.ts","sourceRoot":"","sources":["../../../../src/components/Confirmationpopup/ConfirmationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,sBAAsB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;CACtC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAgC9D,CAAC"}
1
+ {"version":3,"file":"ConfirmationPopup.d.ts","sourceRoot":"","sources":["../../../../src/components/Confirmationpopup/ConfirmationPopup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,sBAAsB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;CACtC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAsD9D,CAAC"}
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ export interface StatItem {
3
+ label: string;
4
+ value: string;
5
+ subValue?: string;
6
+ subLeftColor: string;
7
+ subRightColor: string;
8
+ }
9
+ export interface FontProps {
10
+ valueFontSize?: string;
11
+ valueFontWeight?: number | string;
12
+ subFontSize?: string;
13
+ subFontWeight?: number | string;
14
+ }
15
+ export interface ColorProps {
16
+ backgroundColor?: string;
17
+ labelColor?: string;
18
+ valueColor?: string;
19
+ }
20
+ export interface DashboardSummaryProps extends FontProps, ColorProps {
21
+ dms?: string;
22
+ stats?: StatItem[];
23
+ }
24
+ export declare const DashboardSummary: React.FC<DashboardSummaryProps>;
25
+ //# sourceMappingURL=DashboardSummary.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export * from './DashboardSummary';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardSummary/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { CSSProperties } from 'react';
3
3
  import './DayStatCard.css';
4
4
  import type { CircularProgressProps } from '../CircularProgress/CircularProgress';
5
+ import { BadgeListProps } from '../BadgeList/BadgeList';
5
6
  export type DayStatCardProps = {
6
7
  background?: string;
7
8
  headerTop: string;
@@ -9,7 +10,7 @@ export type DayStatCardProps = {
9
10
  headerTopStyle?: CSSProperties;
10
11
  headerBottomStyle?: CSSProperties;
11
12
  progress1: CircularProgressProps;
12
- progress2: CircularProgressProps;
13
+ badgeList: BadgeListProps;
13
14
  progress3: CircularProgressProps;
14
15
  style?: CSSProperties;
15
16
  size?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"DayStatCard.d.ts","sourceRoot":"","sources":["../../../../src/components/DayStatCard/DayStatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAGlF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,SAAS,EAAE,qBAAqB,CAAC;IACjC,SAAS,EAAE,qBAAqB,CAAC;IACjC,SAAS,EAAE,qBAAqB,CAAC;IACjC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyElD,CAAC"}
1
+ {"version":3,"file":"DayStatCard.d.ts","sourceRoot":"","sources":["../../../../src/components/DayStatCard/DayStatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAa,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGnE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,SAAS,EAAE,qBAAqB,CAAC;IACjC,SAAS,EAAE,cAAc,CAAC;IAC1B,SAAS,EAAE,qBAAqB,CAAC;IACjC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwElD,CAAC"}
@@ -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,OAAO,oBAAoB,CAAC;AAK5B,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAEzB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAChC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAChC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+H7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,oBAAoB,CAAC;AAK5B,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAChC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAChC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuI7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -7,6 +7,8 @@ interface DateInputProps {
7
7
  onBlur: () => void;
8
8
  error?: string;
9
9
  touched?: boolean;
10
+ labelColor?: string;
11
+ backgroundColor?: string;
10
12
  }
11
13
  export declare const DateInput: React.FC<DateInputProps>;
12
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicInput/input/DateInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAG3E,UAAU,cAAc;IACtB,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA2C9C,CAAC"}
1
+ {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/DynamicInput/input/DateInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAG3E,UAAU,cAAc;IACtB,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8C9C,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { CSSProperties } from 'react';
2
+ export type EncoursDataItem = {
3
+ value: string | number;
4
+ label?: string;
5
+ valueColor?: string;
6
+ valueFontSize?: number | string;
7
+ valueFontWeight?: CSSProperties['fontWeight'];
8
+ labelColor?: string;
9
+ labelFontSize?: number | string;
10
+ labelFontWeight?: CSSProperties['fontWeight'];
11
+ background?: string;
12
+ width?: number | string;
13
+ };
14
+ export type EncoursProps = {
15
+ title: string;
16
+ titleColor?: string;
17
+ titleFontSize?: number | string;
18
+ titleFontWeight?: CSSProperties['fontWeight'];
19
+ icon?: string;
20
+ iconSize?: number | string;
21
+ iconColor?: string;
22
+ defaultValueFontSize?: number | string;
23
+ defaultValueFontWeight?: CSSProperties['fontWeight'];
24
+ defaultLabelFontSize?: number | string;
25
+ defaultLabelFontWeight?: CSSProperties['fontWeight'];
26
+ data: ReadonlyArray<EncoursDataItem>;
27
+ style?: CSSProperties;
28
+ bg?: string;
29
+ width?: number | string;
30
+ gap?: number;
31
+ className?: string;
32
+ ariaLabel?: string;
33
+ };
34
+ export declare function Encours(props: EncoursProps): import("react/jsx-runtime").JSX.Element;
35
+ //# sourceMappingURL=Encours.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Encours.d.ts","sourceRoot":"","sources":["../../../../src/components/Encours/Encours.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM7C,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC,sBAAsB,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrD,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC,sBAAsB,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrD,IAAI,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA6CF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAgG1C"}
@@ -0,0 +1,2 @@
1
+ export * from './Encours';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Encours/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
- export type Sampling = 'Par jour' | 'Par semaine' | 'Par mois' | 'Par heure';
1
+ export type Sampling = 'hour' | 'day' | 'week' | 'month';
2
2
  export interface PeriodRangeProps {
3
3
  start?: string;
4
4
  end?: string;
@@ -8,7 +8,19 @@ export interface PeriodRangeProps {
8
8
  }) => void;
9
9
  sampling?: Sampling;
10
10
  onSamplingChange?: (s: Sampling) => void;
11
+ labels?: {
12
+ period?: string;
13
+ start?: string;
14
+ end?: string;
15
+ sampling?: string;
16
+ };
17
+ samplingOptions?: {
18
+ hour?: string;
19
+ day?: string;
20
+ week?: string;
21
+ month?: string;
22
+ };
11
23
  className?: string;
12
24
  }
13
- export default function PeriodRange({ start, end, onChange, sampling, onSamplingChange, className, }: PeriodRangeProps): import("react/jsx-runtime").JSX.Element;
25
+ export default function PeriodRange({ start, end, onChange, sampling, onSamplingChange, labels, samplingOptions, className, }: PeriodRangeProps): import("react/jsx-runtime").JSX.Element;
14
26
  //# sourceMappingURL=PeriodRange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PeriodRange.d.ts","sourceRoot":"","sources":["../../../../src/components/PeriodRange/PeriodRange.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,UAAU,GAAG,WAAW,CAAC;AAE7E,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,KAAU,EACV,GAAQ,EACR,QAAQ,EACR,QAAqB,EACrB,gBAAgB,EAChB,SAAc,GACf,EAAE,gBAAgB,2CA0GlB"}
1
+ {"version":3,"file":"PeriodRange.d.ts","sourceRoot":"","sources":["../../../../src/components/PeriodRange/PeriodRange.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAE/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAG3D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IAGzC,MAAM,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IAGF,eAAe,CAAC,EAAE;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,KAAU,EACV,GAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,gBAAgB,EAChB,MAAW,EACX,eAAoB,EACpB,SAAc,GACf,EAAE,gBAAgB,2CA6HlB"}
@@ -0,0 +1,3 @@
1
+ export * from './PeriodRange';
2
+ export { default as PeriodRange } from './PeriodRange';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/PeriodRange/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TranslationKey.d.ts","sourceRoot":"","sources":["../../../../src/components/TranslationKey/TranslationKey.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,sBAAsB,CAAC;AAG9B,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,kBAAkB,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACrD,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClF,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmPxD,CAAC"}
1
+ {"version":3,"file":"TranslationKey.d.ts","sourceRoot":"","sources":["../../../../src/components/TranslationKey/TranslationKey.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,sBAAsB,CAAC;AAG9B,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,kBAAkB,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACrD,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClF,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqPxD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsiky/components-r19",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
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 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
- };
@@ -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()),_=e=>{const t=N(e);return t.charAt(0).toUpperCase()+t.slice(1)},b=(...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 z={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 j=o.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:c,iconNode:d,...u},p)=>o.createElement("svg",{ref:p,...z,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:b("lucide",l),...!c&&!L(u)&&{"aria-hidden":"true"},...u},[...d.map(([m,h])=>o.createElement(m,h)),...Array.isArray(c)?c:[c]]));/**
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 v=(e,t)=>{const r=o.forwardRef(({className:n,...l},c)=>o.createElement(j,{ref:c,iconNode:t,className:b(`lucide-${C(_(e))}`,`lucide-${e}`,n),...l}));return r.displayName=_(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 W=[["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=v("move",W);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_urwzi_1",O="_label_urwzi_27",M="_labelText_urwzi_45",S="_calendarIcon_urwzi_55",A="_rangeRow_urwzi_65",F="_dateWrap_urwzi_81",T="_innerLabel_urwzi_97",D="_dateInput_urwzi_109",$="_sepWrap_urwzi_137",H="_separator_urwzi_151",V="_samplingWrap_urwzi_163",B="_samplingLabel_urwzi_181",q="_samplingSelect_urwzi_191",s={wrapper:k,label:O,labelText:M,calendarIcon:S,rangeRow:A,dateWrap:F,innerLabel:T,dateInput:D,sepWrap:$,separator:H,samplingWrap:V,samplingLabel:B,samplingSelect:q};function G({start:e="",end:t="",onChange:r,sampling:n="Par jour",onSamplingChange:l,className:c=""}){const[d,u]=o.useState(e),[p,m]=o.useState(t),[h,g]=o.useState(n),f=o.useRef(null);o.useEffect(()=>u(e),[e]),o.useEffect(()=>m(t),[t]),o.useEffect(()=>g(n),[n]),o.useEffect(()=>{function i(x){const w=x.target;f.current&&w&&f.current.contains(w)}return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[]),o.useEffect(()=>{r?.({start:d,end:p})},[d,p,r]);const y=i=>{g(i),l?.(i)};return a.jsxs("div",{className:`${s.wrapper} ${c}`,ref:f,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:i=>u(i.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:p,onChange:i=>m(i.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:h,onChange:i=>y(i.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=j;exports.Move=I;exports.PeriodRange=G;exports.commonjsGlobal=P;exports.createLucideIcon=v;exports.getAugmentedNamespace=R;exports.getDefaultExportFromCjs=E;