@tsiky/components-r19 1.3.3 → 1.4.0

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.
@@ -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,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;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,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;CACf;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4E7C,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;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,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: 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;IACvB,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
+ {"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,EAAc,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,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,2MAgBlC,6BAA6B,CAAC,CAAC,CAAC,4CA8GlC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
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"}
@@ -1 +1 @@
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,CAiItD,CAAC"}
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"}
package/package.json CHANGED
@@ -1,88 +1,88 @@
1
- {
2
- "name": "@tsiky/components-r19",
3
- "version": "1.3.3",
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.0",
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()),_=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;
@@ -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;
@@ -1,256 +0,0 @@
1
- import { forwardRef as C, createElement as _, useState as w, useRef as W, useEffect as m } 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 j = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), P = (e) => e.replace(
10
- /^([A-Z])|[\s-_]+(\w)/g,
11
- (a, t, r) => r ? r.toUpperCase() : t.toLowerCase()
12
- ), y = (e) => {
13
- const a = P(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(), I = (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) => _(
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 && !I(d) && { "aria-hidden": "true" },
64
- ...d
65
- },
66
- [
67
- ...p.map(([h, f]) => _(h, f)),
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) => _(O, {
81
- ref: i,
82
- iconNode: a,
83
- className: N(
84
- `lucide-${j(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
- ], q = 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_urwzi_1", A = "_label_urwzi_27", S = "_labelText_urwzi_45", T = "_calendarIcon_urwzi_55", E = "_rangeRow_urwzi_65", F = "_dateWrap_urwzi_81", $ = "_innerLabel_urwzi_97", D = "_dateInput_urwzi_109", H = "_sepWrap_urwzi_137", V = "_separator_urwzi_151", B = "_samplingWrap_urwzi_163", U = "_samplingLabel_urwzi_181", Z = "_samplingSelect_urwzi_191", 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: B,
147
- samplingLabel: U,
148
- samplingSelect: Z
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] = w(e), [u, h] = w(a), [f, b] = w(r), g = W(null);
159
- m(() => d(e), [e]), m(() => h(a), [a]), m(() => b(r), [r]), m(() => {
160
- function s(z) {
161
- const v = z.target;
162
- g.current && v && g.current.contains(v);
163
- }
164
- return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
165
- }, []), m(() => {
166
- t?.({ start: p, end: u });
167
- }, [p, u, t]);
168
- const L = (s) => {
169
- b(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) => h(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: f,
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
- q as M,
251
- Y as P,
252
- J as a,
253
- X as b,
254
- M as c,
255
- Q as g
256
- };
@@ -1 +0,0 @@
1
- ._wrapper_urwzi_1{box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--color-card-background);border-radius:10px;border:1px solid rgba(16,24,40,.06);box-shadow:0 1px #10182808;width:100%}._label_urwzi_27{display:inline-flex;align-items:center;gap:8px;color:var(--color-text);font-size:14px;flex:0 0 auto}._labelText_urwzi_45{display:inline-block;color:var(--color-text)}._calendarIcon_urwzi_55{opacity:.75;display:block}._rangeRow_urwzi_65{display:flex;align-items:center;gap:10px;width:100%;flex-wrap:nowrap}._dateWrap_urwzi_81{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 0}._innerLabel_urwzi_97{font-size:12px;color:#6b7280;display:block}._dateInput_urwzi_109{-webkit-appearance:none;appearance:none;border:1px solid;padding:8px 10px;border-radius:8px;border-color:var(--color-border);font-size:14px;background:transparent;width:100%;box-sizing:border-box;color:var(--color-text)}._sepWrap_urwzi_137{display:flex;align-items:center;justify-content:center;padding:0 6px}._separator_urwzi_151{color:#9ca3af;font-weight:600;-webkit-user-select:none;user-select:none}._samplingWrap_urwzi_163{display:flex;flex-direction:column;gap:6px;min-width:160px;flex:0 0 auto}._samplingLabel_urwzi_181{font-size:12px;color:#374151}._samplingSelect_urwzi_191{padding:8px 10px;border-radius:8px;border:1px solid rgba(16,24,40,.06);background:var(--color-background);font-size:14px;box-sizing:border-box;width:100%;border-color:var(--color-border);color:var(--color-text);cursor:pointer}@media (max-width: 720px){._wrapper_urwzi_1{padding:10px}._rangeRow_urwzi_65{gap:8px}._label_urwzi_27{font-size:13px}._samplingWrap_urwzi_163{min-width:140px}}@media (max-width: 520px){._wrapper_urwzi_1{flex-direction:column;align-items:stretch;gap:10px}._label_urwzi_27{order:0}._rangeRow_urwzi_65{flex-direction:row;flex-wrap:wrap;align-items:flex-start}._dateWrap_urwzi_81{flex:1 1 48%}._sepWrap_urwzi_137{display:none}._samplingWrap_urwzi_163{flex:1 1 100%;min-width:0}}@media (max-width: 360px){._dateWrap_urwzi_81{flex:1 1 100%}}
@@ -1 +0,0 @@
1
- ._wrapper_urwzi_1{box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--color-card-background);border-radius:10px;border:1px solid rgba(16,24,40,.06);box-shadow:0 1px #10182808;width:100%}._label_urwzi_27{display:inline-flex;align-items:center;gap:8px;color:var(--color-text);font-size:14px;flex:0 0 auto}._labelText_urwzi_45{display:inline-block;color:var(--color-text)}._calendarIcon_urwzi_55{opacity:.75;display:block}._rangeRow_urwzi_65{display:flex;align-items:center;gap:10px;width:100%;flex-wrap:nowrap}._dateWrap_urwzi_81{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 0}._innerLabel_urwzi_97{font-size:12px;color:#6b7280;display:block}._dateInput_urwzi_109{-webkit-appearance:none;appearance:none;border:1px solid;padding:8px 10px;border-radius:8px;border-color:var(--color-border);font-size:14px;background:transparent;width:100%;box-sizing:border-box;color:var(--color-text)}._sepWrap_urwzi_137{display:flex;align-items:center;justify-content:center;padding:0 6px}._separator_urwzi_151{color:#9ca3af;font-weight:600;-webkit-user-select:none;user-select:none}._samplingWrap_urwzi_163{display:flex;flex-direction:column;gap:6px;min-width:160px;flex:0 0 auto}._samplingLabel_urwzi_181{font-size:12px;color:#374151}._samplingSelect_urwzi_191{padding:8px 10px;border-radius:8px;border:1px solid rgba(16,24,40,.06);background:var(--color-background);font-size:14px;box-sizing:border-box;width:100%;border-color:var(--color-border);color:var(--color-text);cursor:pointer}@media (max-width: 720px){._wrapper_urwzi_1{padding:10px}._rangeRow_urwzi_65{gap:8px}._label_urwzi_27{font-size:13px}._samplingWrap_urwzi_163{min-width:140px}}@media (max-width: 520px){._wrapper_urwzi_1{flex-direction:column;align-items:stretch;gap:10px}._label_urwzi_27{order:0}._rangeRow_urwzi_65{flex-direction:row;flex-wrap:wrap;align-items:flex-start}._dateWrap_urwzi_81{flex:1 1 48%}._sepWrap_urwzi_137{display:none}._samplingWrap_urwzi_163{flex:1 1 100%;min-width:0}}@media (max-width: 360px){._dateWrap_urwzi_81{flex:1 1 100%}}