@tsiky/components-r19 1.1.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.
- package/package.json +1 -1
- package/src/components/AnnouncementPanel/FlexRowContainer.css +17 -17
- package/src/components/AnnouncementPanel/FlexRowContainer.stories.tsx +329 -329
- package/src/components/AnnouncementPanel/FlexRowContainer.tsx +24 -24
- package/src/components/AnnouncementPanel/ListBox/CounterListBox.css +56 -56
- package/src/components/AnnouncementPanel/ListBox/CounterListBox.stories.tsx +292 -292
- package/src/components/AnnouncementPanel/ListBox/CounterListBox.tsx +106 -106
- package/src/components/AnnouncementPanel/ListBox/SimpleListBox.css +57 -57
- package/src/components/AnnouncementPanel/ListBox/SimpleListBox.stories.tsx +189 -189
- package/src/components/AnnouncementPanel/ListBox/SimpleListBox.tsx +138 -138
- package/src/components/AnnouncementPanel/ListBox/TrendListBox.css +61 -61
- package/src/components/AnnouncementPanel/ListBox/TrendListBox.stories.tsx +257 -257
- package/src/components/AnnouncementPanel/ListBox/TrendListBox.tsx +90 -90
- package/src/components/AnnouncementPanel/ListBox/index.ts +3 -3
- package/src/components/AnnouncementPanel/ListContentContainer.css +23 -23
- package/src/components/AnnouncementPanel/ListContentContainer.stories.tsx +212 -212
- package/src/components/AnnouncementPanel/ListContentContainer.tsx +33 -33
- package/src/components/AnnouncementPanel/index.ts +3 -3
- package/src/components/Charts/area-chart-admission/AreaChartAdmission.tsx +7 -1
- package/src/components/Charts/bar-chart/BarChart.tsx +6 -2
- package/src/components/Charts/boxplot-chart/BoxPlotChart.tsx +114 -114
- package/src/components/Charts/mixed-chart/MixedChart.tsx +1 -1
- package/src/components/Charts/sankey-adaptation/sankey.tsx +70 -70
- package/src/components/DraggableSwitcher/DraggableSwitcherButton.tsx +58 -58
- package/src/components/DraggableSwitcher/context/useDraggableSwitcher.tsx +45 -45
- package/src/components/DraggableSwitcher/index.ts +2 -2
- package/src/components/DynamicInput/input/SelectInput.tsx +75 -75
- package/src/components/DynamicInput/input/assets/SelectInput.module.css +95 -95
- package/src/components/DynamicTable/AdvancedFilters.tsx +196 -196
- package/src/components/DynamicTable/ColumnSorter.tsx +185 -185
- package/src/components/DynamicTable/Pagination.tsx +115 -115
- package/src/components/DynamicTable/TableCell.tsx +38 -30
- package/src/components/DynamicTable/TableHeader.tsx +39 -34
- package/src/components/DynamicTable/TableauDynamique.module.css +79 -33
- package/src/components/DynamicTable/TableauDynamique.tsx +154 -154
- package/src/components/DynamicTable/filters/SelectFilter.tsx +69 -69
- package/src/components/DynamicTable/tools/tableTypes.ts +63 -63
- package/src/components/EntryControl/EntryControl.tsx +117 -117
- package/src/components/Grid/grid.css +285 -285
- package/src/components/MetricsPanel/MetricsPanel.tsx +37 -37
- package/src/components/MetricsPanel/renderers/CompactRenderer.tsx +1 -1
- package/src/components/NavItem/NavItem.tsx +58 -58
- package/src/components/PeriodRange/PeriodRange.module.css +158 -158
- package/src/components/PeriodRange/PeriodRange.tsx +130 -130
- package/src/components/SearchBar/SearchBar.css +40 -40
- package/src/components/TranslationKey/TranslationKey.css +272 -272
- package/src/components/TranslationKey/TranslationKey.tsx +8 -7
|
@@ -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
|
+
}
|