@tsiky/components-r19 1.0.0 → 1.2.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.
Files changed (61) hide show
  1. package/index.ts +35 -33
  2. package/package.json +1 -1
  3. package/src/components/AnnouncementPanel/FlexRowContainer.css +17 -17
  4. package/src/components/AnnouncementPanel/FlexRowContainer.stories.tsx +329 -329
  5. package/src/components/AnnouncementPanel/FlexRowContainer.tsx +24 -24
  6. package/src/components/AnnouncementPanel/ListBox/CounterListBox.css +56 -56
  7. package/src/components/AnnouncementPanel/ListBox/CounterListBox.stories.tsx +292 -292
  8. package/src/components/AnnouncementPanel/ListBox/CounterListBox.tsx +106 -106
  9. package/src/components/AnnouncementPanel/ListBox/SimpleListBox.css +57 -57
  10. package/src/components/AnnouncementPanel/ListBox/SimpleListBox.stories.tsx +189 -189
  11. package/src/components/AnnouncementPanel/ListBox/SimpleListBox.tsx +138 -138
  12. package/src/components/AnnouncementPanel/ListBox/TrendListBox.css +61 -61
  13. package/src/components/AnnouncementPanel/ListBox/TrendListBox.stories.tsx +257 -257
  14. package/src/components/AnnouncementPanel/ListBox/TrendListBox.tsx +90 -90
  15. package/src/components/AnnouncementPanel/ListBox/index.ts +3 -3
  16. package/src/components/AnnouncementPanel/ListContentContainer.css +23 -23
  17. package/src/components/AnnouncementPanel/ListContentContainer.stories.tsx +212 -212
  18. package/src/components/AnnouncementPanel/ListContentContainer.tsx +33 -33
  19. package/src/components/AnnouncementPanel/index.ts +3 -3
  20. package/src/components/Charts/area-chart-admission/AreaChartAdmission.tsx +129 -89
  21. package/src/components/Charts/bar-chart/BarChart.tsx +171 -132
  22. package/src/components/Charts/boxplot-chart/BoxPlotChart.tsx +114 -114
  23. package/src/components/Charts/mixed-chart/MixedChart.tsx +65 -9
  24. package/src/components/Charts/sankey-adaptation/sankey.tsx +70 -70
  25. package/src/components/Charts/sankey-chart/SankeyChart.tsx +183 -155
  26. package/src/components/Confirmationpopup/ConfirmationPopup.module.css +88 -0
  27. package/src/components/Confirmationpopup/ConfirmationPopup.stories.tsx +94 -0
  28. package/src/components/Confirmationpopup/ConfirmationPopup.tsx +47 -0
  29. package/src/components/Confirmationpopup/index.ts +6 -0
  30. package/src/components/Confirmationpopup/useConfirmationPopup.ts +48 -0
  31. package/src/components/DayStatCard/DayStatCard.tsx +96 -69
  32. package/src/components/DraggableSwitcher/DraggableSwitcherButton.tsx +58 -58
  33. package/src/components/DraggableSwitcher/context/useDraggableSwitcher.tsx +45 -45
  34. package/src/components/DraggableSwitcher/index.ts +2 -2
  35. package/src/components/DynamicInput/input/SelectInput.tsx +75 -75
  36. package/src/components/DynamicInput/input/assets/SelectInput.module.css +95 -95
  37. package/src/components/DynamicTable/TableCell.tsx +38 -30
  38. package/src/components/DynamicTable/TableHeader.tsx +39 -34
  39. package/src/components/DynamicTable/TableauDynamique.module.css +1333 -1287
  40. package/src/components/DynamicTable/TableauDynamique.tsx +154 -154
  41. package/src/components/DynamicTable/tools/tableTypes.ts +63 -63
  42. package/src/components/Grid/Grid.tsx +5 -0
  43. package/src/components/Grid/grid.css +285 -285
  44. package/src/components/Header/Header.tsx +4 -2
  45. package/src/components/Header/header.css +61 -31
  46. package/src/components/MetricsPanel/MetricsPanel.module.css +688 -636
  47. package/src/components/MetricsPanel/MetricsPanel.tsx +220 -282
  48. package/src/components/MetricsPanel/renderers/CompactRenderer.tsx +148 -125
  49. package/src/components/NavBar/NavBar.tsx +1 -1
  50. package/src/components/NavItem/NavItem.tsx +58 -58
  51. package/src/components/PeriodRange/PeriodRange.module.css +158 -158
  52. package/src/components/PeriodRange/PeriodRange.tsx +130 -130
  53. package/src/components/SearchBar/SearchBar.css +40 -40
  54. package/src/components/SelectFilter/SelectFilter.module.css +249 -0
  55. package/src/components/SelectFilter/SelectFilter.stories.tsx +321 -0
  56. package/src/components/SelectFilter/SelectFilter.tsx +219 -0
  57. package/src/components/SelectFilter/index.ts +2 -0
  58. package/src/components/SelectFilter/types.ts +19 -0
  59. package/src/components/TranslationKey/TranslationKey.css +272 -272
  60. package/src/components/TranslationKey/TranslationKey.tsx +266 -245
  61. package/src/components/TrendList/TrendList.tsx +72 -45
@@ -1,24 +1,24 @@
1
- import React from 'react';
2
- import './FlexRowContainer.css';
3
-
4
- export type FlexRowContainerProps = {
5
- className?: string;
6
- style?: React.CSSProperties;
7
- children?: React.ReactNode; // normally ListContentContainer nodes
8
- gap?: string;
9
- };
10
-
11
- export const FlexRowContainer: React.FC<FlexRowContainerProps> = ({
12
- className = '',
13
- style = {},
14
- children,
15
- gap = '1rem',
16
- }) => {
17
- return (
18
- <div className={`frc-root ${className}`} style={{ ...style, ['--frc-gap' as any]: gap }}>
19
- {React.Children.map(children, (child) => (
20
- <div className='frc-item'>{child}</div>
21
- ))}
22
- </div>
23
- );
24
- };
1
+ import React from 'react';
2
+ import './FlexRowContainer.css';
3
+
4
+ export type FlexRowContainerProps = {
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ children?: React.ReactNode; // normally ListContentContainer nodes
8
+ gap?: string;
9
+ };
10
+
11
+ export const FlexRowContainer: React.FC<FlexRowContainerProps> = ({
12
+ className = '',
13
+ style = {},
14
+ children,
15
+ gap = '1rem',
16
+ }) => {
17
+ return (
18
+ <div className={`frc-root ${className}`} style={{ ...style, ['--frc-gap' as any]: gap }}>
19
+ {React.Children.map(children, (child) => (
20
+ <div className='frc-item'>{child}</div>
21
+ ))}
22
+ </div>
23
+ );
24
+ };
@@ -1,56 +1,56 @@
1
- .clb-root {
2
- padding: 0.125rem;
3
- }
4
- .clb-title {
5
- font-weight: var(--font-bold);
6
- padding: 0.0625rem 0.125rem;
7
- margin-bottom: 0.0625rem;
8
- }
9
-
10
- .clb-grid {
11
- display: flex;
12
- flex-direction: column;
13
- gap: 0.125rem;
14
- }
15
-
16
- .clb-row {
17
- display: grid;
18
- grid-template-columns: 1fr 1fr;
19
- gap: var(--col-gap, 0.5rem);
20
- align-items: center;
21
- padding: 0;
22
- }
23
-
24
- .clb-badge-col {
25
- display: flex;
26
- justify-content: flex-end;
27
- align-items: center;
28
- }
29
- .counter-badge {
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- border-radius: 9999px;
34
- color: #fff;
35
- min-width: 0;
36
- white-space: nowrap;
37
- line-height: 1;
38
- padding: 0.25rem 0.5rem;
39
- box-sizing: border-box;
40
- }
41
- .clb-text {
42
- padding: 0.25rem 0;
43
- min-width: 0;
44
- overflow: hidden;
45
- word-wrap: break-word;
46
- overflow-wrap: break-word;
47
- }
48
-
49
- .clb-fullrow {
50
- grid-column: 1 / -1;
51
- padding: 0.25rem 0.125rem;
52
- text-align: center;
53
- }
54
- .clb-empty-badge {
55
- min-height: 1px;
56
- }
1
+ .clb-root {
2
+ padding: 0.125rem;
3
+ }
4
+ .clb-title {
5
+ font-weight: var(--font-bold);
6
+ padding: 0.0625rem 0.125rem;
7
+ margin-bottom: 0.0625rem;
8
+ }
9
+
10
+ .clb-grid {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 0.125rem;
14
+ }
15
+
16
+ .clb-row {
17
+ display: grid;
18
+ grid-template-columns: 1fr 1fr;
19
+ gap: var(--col-gap, 0.5rem);
20
+ align-items: center;
21
+ padding: 0;
22
+ }
23
+
24
+ .clb-badge-col {
25
+ display: flex;
26
+ justify-content: flex-end;
27
+ align-items: center;
28
+ }
29
+ .counter-badge {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ border-radius: 9999px;
34
+ color: #fff;
35
+ min-width: 0;
36
+ white-space: nowrap;
37
+ line-height: 1;
38
+ padding: 0.25rem 0.5rem;
39
+ box-sizing: border-box;
40
+ }
41
+ .clb-text {
42
+ padding: 0.25rem 0;
43
+ min-width: 0;
44
+ overflow: hidden;
45
+ word-wrap: break-word;
46
+ overflow-wrap: break-word;
47
+ }
48
+
49
+ .clb-fullrow {
50
+ grid-column: 1 / -1;
51
+ padding: 0.25rem 0.125rem;
52
+ text-align: center;
53
+ }
54
+ .clb-empty-badge {
55
+ min-height: 1px;
56
+ }