@tsiky/components-r19 1.3.4 → 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.
- package/dist/{PeriodRange-BXSfe73g.js → PeriodRange-BpxD5xRJ.js} +103 -89
- package/dist/PeriodRange-NiT-19Z4.cjs +26 -0
- package/dist/chart.cjs.js +1 -1
- package/dist/chart.js +2 -2
- package/dist/components-r19.css +1 -1
- package/dist/index.cjs.js +1633 -1633
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12846 -12535
- package/dist/src/components/BadgeList/BadgeList.d.ts +19 -0
- package/dist/src/components/BadgeList/BadgeList.d.ts.map +1 -0
- package/dist/src/components/BadgeList/index.d.ts +2 -0
- package/dist/src/components/BadgeList/index.d.ts.map +1 -0
- package/dist/src/components/CircularProgress/CircularProgress.d.ts +2 -0
- package/dist/src/components/CircularProgress/CircularProgress.d.ts.map +1 -1
- package/dist/src/components/Confirmationpopup/ConfirmationPopup.d.ts.map +1 -1
- package/dist/src/components/DashboardSummary/DashboardSummary.d.ts +25 -0
- package/dist/src/components/DashboardSummary/DashboardSummary.d.ts.map +1 -0
- package/dist/src/components/DashboardSummary/index.d.ts +2 -0
- package/dist/src/components/DashboardSummary/index.d.ts.map +1 -0
- package/dist/src/components/DayStatCard/DayStatCard.d.ts +2 -1
- package/dist/src/components/DayStatCard/DayStatCard.d.ts.map +1 -1
- package/dist/src/components/DropdownMenu/DropdownMenu.d.ts +19 -0
- package/dist/src/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/src/components/DynamicInput/input/DateInput.d.ts +2 -0
- package/dist/src/components/DynamicInput/input/DateInput.d.ts.map +1 -1
- package/dist/src/components/DynamicTable/ColumnSorter.d.ts +1 -1
- package/dist/src/components/DynamicTable/ColumnSorter.d.ts.map +1 -1
- package/dist/src/components/DynamicTable/TableauDynamique.d.ts +3 -2
- package/dist/src/components/DynamicTable/TableauDynamique.d.ts.map +1 -1
- package/dist/src/components/Encours/Encours.d.ts +35 -0
- package/dist/src/components/Encours/Encours.d.ts.map +1 -0
- package/dist/src/components/Encours/index.d.ts +2 -0
- package/dist/src/components/Encours/index.d.ts.map +1 -0
- package/dist/src/components/ModuleSideBar/ModuleSideBar.d.ts.map +1 -1
- package/dist/src/components/PeriodRange/PeriodRange.d.ts +14 -2
- package/dist/src/components/PeriodRange/PeriodRange.d.ts.map +1 -1
- package/dist/src/components/PeriodRange/index.d.ts +3 -0
- package/dist/src/components/PeriodRange/index.d.ts.map +1 -0
- package/dist/src/components/TranslationKey/TranslationKey.d.ts.map +1 -1
- package/package.json +88 -88
- package/dist/PeriodRange-B53IzsZ7.cjs +0 -26
- package/dist/PeriodRange-B7crP6r3.js +0 -256
- package/dist/PeriodRange-Bk2LtI3D.cjs +0 -26
- package/dist/assets/index-C-LOvVBi.js +0 -986
- package/dist/assets/index-D8b4DHJx.css +0 -1
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BadgeList/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -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,
|
|
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":"
|
|
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 @@
|
|
|
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
|
-
|
|
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;
|
|
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"}
|
|
@@ -6,8 +6,18 @@ export interface MenuItem {
|
|
|
6
6
|
href?: string;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
type?: 'link' | 'button';
|
|
9
|
+
select?: {
|
|
10
|
+
value: string;
|
|
11
|
+
onChange: (lng: string) => void;
|
|
12
|
+
options: {
|
|
13
|
+
code: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
9
18
|
}
|
|
10
19
|
export interface MenuCategory {
|
|
20
|
+
id?: string;
|
|
11
21
|
title?: string;
|
|
12
22
|
items: MenuItem[];
|
|
13
23
|
}
|
|
@@ -17,6 +27,15 @@ export interface DropdownMenuProps {
|
|
|
17
27
|
position?: 'left' | 'right';
|
|
18
28
|
closeOnClickOutside?: boolean;
|
|
19
29
|
logo?: string;
|
|
30
|
+
select?: {
|
|
31
|
+
value: string;
|
|
32
|
+
onChange: (lng: string) => void;
|
|
33
|
+
options: {
|
|
34
|
+
code: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
name?: string;
|
|
38
|
+
};
|
|
20
39
|
}
|
|
21
40
|
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
22
41
|
export default DropdownMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,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,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"}
|
|
@@ -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;
|
|
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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SortConfig, TableColumn } from './tools/tableTypes';
|
|
2
2
|
interface ColumnSorterProps<T = unknown> {
|
|
3
3
|
columns: TableColumn<T>[];
|
|
4
|
-
sortConfig
|
|
4
|
+
sortConfig?: SortConfig;
|
|
5
5
|
onSort: (sortConfig: SortConfig) => void;
|
|
6
6
|
onToggleFilters?: () => void;
|
|
7
7
|
filtersActive?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnSorter.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicTable/ColumnSorter.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGlE,UAAU,iBAAiB,CAAC,CAAC,GAAG,OAAO;IACrC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ColumnSorter.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicTable/ColumnSorter.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGlE,UAAU,iBAAiB,CAAC,CAAC,GAAG,OAAO;IACrC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAOD,QAAA,MAAM,YAAY,GAAI,CAAC,EAAG,iCAAiC,iBAAiB,CAAC,CAAC,CAAC,4CAiK9E,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TableauDynamiqueProps } from './tools/tableTypes';
|
|
2
|
+
import type { TableauDynamiqueProps, SortConfig } from './tools/tableTypes';
|
|
3
3
|
import type { FilterConfig, AppliedFilter } from './tools/filterTypes';
|
|
4
4
|
export interface EnhancedTableauDynamiqueProps<T> extends TableauDynamiqueProps<T> {
|
|
5
5
|
columnFilterable?: boolean;
|
|
@@ -7,11 +7,12 @@ export interface EnhancedTableauDynamiqueProps<T> extends TableauDynamiqueProps<
|
|
|
7
7
|
externalFilters?: AppliedFilter[];
|
|
8
8
|
onFiltersChange?: (filters: AppliedFilter[]) => void;
|
|
9
9
|
onApplyFilters?: (filters: AppliedFilter[]) => void;
|
|
10
|
+
onSort?: (sortConfig: SortConfig) => void;
|
|
10
11
|
filtersControlled?: boolean;
|
|
11
12
|
debounceTimeout?: number;
|
|
12
13
|
getRowStyle?: (row: T) => React.CSSProperties;
|
|
13
14
|
background?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare const TableauDynamique: <T>({ columns, data, pagination, onRowClick, searchTerm, className, filterConfig, externalFilters, onFiltersChange, onApplyFilters, filtersControlled, debounceTimeout, getRowStyle, background, onNewPage, }: EnhancedTableauDynamiqueProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const TableauDynamique: <T>({ columns, data, pagination, onRowClick, searchTerm, className, filterConfig, externalFilters, onFiltersChange, onApplyFilters, onSort, filtersControlled, debounceTimeout, getRowStyle, background, onNewPage, }: EnhancedTableauDynamiqueProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export default TableauDynamique;
|
|
17
18
|
//# sourceMappingURL=TableauDynamique.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableauDynamique.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicTable/TableauDynamique.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,KAAK,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"TableauDynamique.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicTable/TableauDynamique.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIvE,MAAM,WAAW,6BAA6B,CAAC,CAAC,CAAE,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAChF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;IACrD,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;IACpD,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,KAAK,CAAC,aAAa,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,mNAiBlC,6BAA6B,CAAC,CAAC,CAAC,4CAmHlC,CAAC;AAEF,eAAe,gBAAgB,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,eA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AAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA6CF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAgG1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Encours/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/ModuleSideBar/ModuleSideBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModuleSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/ModuleSideBar/ModuleSideBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,eAAe,CAAC;CAC/B;AAED,UAAU,kBAAkB;IAC1B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuJtD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Sampling = '
|
|
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,
|
|
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 @@
|
|
|
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,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,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,88 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tsiky/components-r19",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "vite",
|
|
7
|
-
"build": "npm run build:types && npm run build:js",
|
|
8
|
-
"build:types": "tsc -b tsconfig.app.json --emitDeclarationOnly",
|
|
9
|
-
"build:js": "vite build --config vite.lib.config.ts",
|
|
10
|
-
"lint": "eslint . --fix",
|
|
11
|
-
"format": "prettier --write .",
|
|
12
|
-
"preview": "vite preview",
|
|
13
|
-
"storybook": "storybook dev -p 6006",
|
|
14
|
-
"build-storybook": "storybook build",
|
|
15
|
-
"prepublishOnly": "npm run build",
|
|
16
|
-
"type-check": "tsc --noEmit"
|
|
17
|
-
},
|
|
18
|
-
"main": "./dist/index.cjs.js",
|
|
19
|
-
"module": "./dist/index.js",
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"style": "dist/components-r19.css",
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"types": "./dist/index.d.ts",
|
|
25
|
-
"import": "./dist/index.js",
|
|
26
|
-
"require": "./dist/index.cjs.js"
|
|
27
|
-
},
|
|
28
|
-
"./chart": {
|
|
29
|
-
"types": "./dist/chart.d.ts",
|
|
30
|
-
"import": "./dist/chart.js",
|
|
31
|
-
"require": "./dist/chart.cjs.js"
|
|
32
|
-
},
|
|
33
|
-
"./components-r19.css": "./dist/components-r19.css",
|
|
34
|
-
"./package.json": "./package.json"
|
|
35
|
-
},
|
|
36
|
-
"files": [
|
|
37
|
-
"dist"
|
|
38
|
-
],
|
|
39
|
-
"peerDependencies": {
|
|
40
|
-
"react": "^19.1.0",
|
|
41
|
-
"react-dom": "^19.1.0",
|
|
42
|
-
"styled-components": "^6.1.19"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@nivo/core": "^0.99.0",
|
|
46
|
-
"@nivo/sankey": "^0.99.0",
|
|
47
|
-
"ag-charts-react": "^12.2.0",
|
|
48
|
-
"apexsankey": "^1.2.5",
|
|
49
|
-
"chart.js": "^4.5.0",
|
|
50
|
-
"chartjs-chart-sankey": "^0.14.0",
|
|
51
|
-
"lucide-react": "^0.540.0",
|
|
52
|
-
"react-apexcharts": "^1.8.0",
|
|
53
|
-
"react-chartjs-2": "^5.3.0"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@chromatic-com/storybook": "^4.1.0",
|
|
57
|
-
"@eslint/js": "^9.30.1",
|
|
58
|
-
"@storybook/addon-a11y": "^9.1.0",
|
|
59
|
-
"@storybook/addon-docs": "^9.1.0",
|
|
60
|
-
"@storybook/addon-onboarding": "^9.1.0",
|
|
61
|
-
"@storybook/addon-vitest": "^9.1.0",
|
|
62
|
-
"@storybook/react-vite": "^9.1.0",
|
|
63
|
-
"@types/lodash": "^4.17.20",
|
|
64
|
-
"@types/react": "^19.1.8",
|
|
65
|
-
"@types/react-dom": "^19.1.6",
|
|
66
|
-
"@types/styled-components": "^5.1.34",
|
|
67
|
-
"@vitejs/plugin-react": "^4.6.0",
|
|
68
|
-
"@vitest/browser": "^3.2.4",
|
|
69
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
70
|
-
"eslint": "^9.30.1",
|
|
71
|
-
"eslint-config-prettier": "^10.1.8",
|
|
72
|
-
"eslint-plugin-prettier": "^5.5.4",
|
|
73
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
74
|
-
"eslint-plugin-react-refresh": "^0.4.20",
|
|
75
|
-
"eslint-plugin-storybook": "^9.1.0",
|
|
76
|
-
"globals": "^16.3.0",
|
|
77
|
-
"playwright": "^1.54.2",
|
|
78
|
-
"prettier": "^3.6.2",
|
|
79
|
-
"react": "^19.1.0",
|
|
80
|
-
"react-dom": "^19.1.0",
|
|
81
|
-
"storybook": "^9.1.0",
|
|
82
|
-
"styled-components": "^6.1.19",
|
|
83
|
-
"typescript": "~5.8.3",
|
|
84
|
-
"typescript-eslint": "^8.35.1",
|
|
85
|
-
"vite": "^7.0.4",
|
|
86
|
-
"vitest": "^3.2.4"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tsiky/components-r19",
|
|
3
|
+
"version": "1.4.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite",
|
|
7
|
+
"build": "npm run build:types && npm run build:js",
|
|
8
|
+
"build:types": "tsc -b tsconfig.app.json --emitDeclarationOnly",
|
|
9
|
+
"build:js": "vite build --config vite.lib.config.ts",
|
|
10
|
+
"lint": "eslint . --fix",
|
|
11
|
+
"format": "prettier --write .",
|
|
12
|
+
"preview": "vite preview",
|
|
13
|
+
"storybook": "storybook dev -p 6006",
|
|
14
|
+
"build-storybook": "storybook build",
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"type-check": "tsc --noEmit"
|
|
17
|
+
},
|
|
18
|
+
"main": "./dist/index.cjs.js",
|
|
19
|
+
"module": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"style": "dist/components-r19.css",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"require": "./dist/index.cjs.js"
|
|
27
|
+
},
|
|
28
|
+
"./chart": {
|
|
29
|
+
"types": "./dist/chart.d.ts",
|
|
30
|
+
"import": "./dist/chart.js",
|
|
31
|
+
"require": "./dist/chart.cjs.js"
|
|
32
|
+
},
|
|
33
|
+
"./components-r19.css": "./dist/components-r19.css",
|
|
34
|
+
"./package.json": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "^19.1.0",
|
|
41
|
+
"react-dom": "^19.1.0",
|
|
42
|
+
"styled-components": "^6.1.19"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@nivo/core": "^0.99.0",
|
|
46
|
+
"@nivo/sankey": "^0.99.0",
|
|
47
|
+
"ag-charts-react": "^12.2.0",
|
|
48
|
+
"apexsankey": "^1.2.5",
|
|
49
|
+
"chart.js": "^4.5.0",
|
|
50
|
+
"chartjs-chart-sankey": "^0.14.0",
|
|
51
|
+
"lucide-react": "^0.540.0",
|
|
52
|
+
"react-apexcharts": "^1.8.0",
|
|
53
|
+
"react-chartjs-2": "^5.3.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@chromatic-com/storybook": "^4.1.0",
|
|
57
|
+
"@eslint/js": "^9.30.1",
|
|
58
|
+
"@storybook/addon-a11y": "^9.1.0",
|
|
59
|
+
"@storybook/addon-docs": "^9.1.0",
|
|
60
|
+
"@storybook/addon-onboarding": "^9.1.0",
|
|
61
|
+
"@storybook/addon-vitest": "^9.1.0",
|
|
62
|
+
"@storybook/react-vite": "^9.1.0",
|
|
63
|
+
"@types/lodash": "^4.17.20",
|
|
64
|
+
"@types/react": "^19.1.8",
|
|
65
|
+
"@types/react-dom": "^19.1.6",
|
|
66
|
+
"@types/styled-components": "^5.1.34",
|
|
67
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
68
|
+
"@vitest/browser": "^3.2.4",
|
|
69
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
70
|
+
"eslint": "^9.30.1",
|
|
71
|
+
"eslint-config-prettier": "^10.1.8",
|
|
72
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
73
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
74
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
75
|
+
"eslint-plugin-storybook": "^9.1.0",
|
|
76
|
+
"globals": "^16.3.0",
|
|
77
|
+
"playwright": "^1.54.2",
|
|
78
|
+
"prettier": "^3.6.2",
|
|
79
|
+
"react": "^19.1.0",
|
|
80
|
+
"react-dom": "^19.1.0",
|
|
81
|
+
"storybook": "^9.1.0",
|
|
82
|
+
"styled-components": "^6.1.19",
|
|
83
|
+
"typescript": "~5.8.3",
|
|
84
|
+
"typescript-eslint": "^8.35.1",
|
|
85
|
+
"vite": "^7.0.4",
|
|
86
|
+
"vitest": "^3.2.4"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -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;
|