@pitchfork-ui/react 0.1.9 → 0.6.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/README.md +20 -5
- package/dist/components/Accordion/Accordion.css +85 -0
- package/dist/components/Accordion/Accordion2.js +96 -0
- package/dist/components/Alert/Alert.css +111 -0
- package/dist/{index8.js → components/Alert/Alert2.js} +7 -5
- package/dist/components/Avatar/Avatar.css +97 -0
- package/dist/{index10.js → components/Avatar/Avatar2.js} +2 -2
- package/dist/components/Badge/Badge.css +26 -0
- package/dist/{index23.js → components/Badge/Badge2.js} +2 -2
- package/dist/components/BadgeGroup/BadgeGroup.css +115 -0
- package/dist/{index14.js → components/BadgeGroup/BadgeGroup2.js} +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.css +45 -0
- package/dist/{index18.js → components/Breadcrumbs/Breadcrumbs2.js} +2 -2
- package/dist/components/Button/Button.css +93 -0
- package/dist/{index12.js → components/Button/Button2.js} +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.css +107 -0
- package/dist/{index16.js → components/ButtonGroup/ButtonGroup2.js} +2 -2
- package/dist/components/Calendar/Calendar.css +144 -0
- package/dist/{index40.js → components/Calendar/Calendar2.js} +4 -4
- package/dist/components/Card/Card.css +23 -0
- package/dist/{index25.js → components/Card/Card2.js} +2 -2
- package/dist/components/Carousel/Carousel.css +124 -0
- package/dist/components/Carousel/Carousel2.js +147 -0
- package/dist/components/Checkbox/Checkbox.css +62 -0
- package/dist/{index29.js → components/Checkbox/Checkbox2.js} +2 -2
- package/dist/components/CodeSnippet/CodeSnippet.css +155 -0
- package/dist/{index46.js → components/CodeSnippet/CodeSnippet2.js} +6 -6
- package/dist/components/ContentDivider/ContentDivider.css +38 -0
- package/dist/{index48.js → components/ContentDivider/ContentDivider2.js} +2 -2
- package/dist/components/CreditCard/CreditCard.css +139 -0
- package/dist/{index27.js → components/CreditCard/CreditCard2.js} +2 -2
- package/dist/components/DatePicker/DatePicker.css +91 -0
- package/dist/{index50.js → components/DatePicker/DatePicker2.js} +9 -9
- package/dist/components/Dropdown/Dropdown.css +149 -0
- package/dist/{index38.js → components/Dropdown/Dropdown2.js} +8 -9
- package/dist/components/EmptyState/EmptyState.css +72 -0
- package/dist/{index52.js → components/EmptyState/EmptyState2.js} +3 -3
- package/dist/components/FileUploader/FileUploader.css +135 -0
- package/dist/{index54.js → components/FileUploader/FileUploader2.js} +4 -4
- package/dist/components/GaugeChart/GaugeChart.css +63 -0
- package/dist/components/GaugeChart/GaugeChart2.js +74 -0
- package/dist/components/HeaderNavigation/HeaderNavigation.css +87 -0
- package/dist/{index56.js → components/HeaderNavigation/HeaderNavigation2.js} +2 -2
- package/dist/components/Heatmap/Heatmap.css +100 -0
- package/dist/components/Heatmap/Heatmap2.js +160 -0
- package/dist/components/Icon/Icon.css +6 -0
- package/dist/{index6.js → components/Icon/Icon2.js} +2 -2
- package/dist/components/InlineCTA/InlineCTA.css +144 -0
- package/dist/{index58.js → components/InlineCTA/InlineCTA2.js} +17 -5
- package/dist/components/Input/Input.css +75 -0
- package/dist/{index21.js → components/Input/Input2.js} +3 -3
- package/dist/components/LineBarCharts/LineBarChart.css +122 -0
- package/dist/{index60.js → components/LineBarCharts/LineBarChart2.js} +11 -3
- package/dist/components/LoadingIndicators/LoadingIndicators.css +107 -0
- package/dist/{index62.js → components/LoadingIndicators/LoadingIndicators2.js} +2 -2
- package/dist/components/Metrics/Metrics.css +106 -0
- package/dist/{index64.js → components/Metrics/Metrics2.js} +3 -3
- package/dist/components/Modal/Modal.css +198 -0
- package/dist/{index66.js → components/Modal/Modal2.js} +11 -9
- package/dist/components/MultiSelect/MultiSelect.css +174 -0
- package/dist/{index68.js → components/MultiSelect/MultiSelect2.js} +11 -12
- package/dist/components/Notification/Notification.css +242 -0
- package/dist/{index70.js → components/Notification/Notification2.js} +7 -5
- package/dist/components/PageHeader/PageHeader.css +85 -0
- package/dist/{index72.js → components/PageHeader/PageHeader2.js} +3 -3
- package/dist/components/Pagination/Pagination.css +101 -0
- package/dist/{index74.js → components/Pagination/Pagination2.js} +2 -2
- package/dist/components/PieChart/PieChart.css +115 -0
- package/dist/{index76.js → components/PieChart/PieChart2.js} +3 -3
- package/dist/components/ProgressIndicators/ProgressIndicators.css +95 -0
- package/dist/{index78.js → components/ProgressIndicators/ProgressIndicators2.js} +6 -3
- package/dist/components/ProgressSteps/ProgressSteps.css +175 -0
- package/dist/{index80.js → components/ProgressSteps/ProgressSteps2.js} +2 -2
- package/dist/components/RadarChart/RadarChart.css +119 -0
- package/dist/{index82.js → components/RadarChart/RadarChart2.js} +21 -15
- package/dist/components/RadioButton/RadioButton.css +21 -0
- package/dist/{index84.js → components/RadioButton/RadioButton2.js} +2 -2
- package/dist/components/RadioGroup/RadioGroup.css +64 -0
- package/dist/{index86.js → components/RadioGroup/RadioGroup2.js} +2 -2
- package/dist/components/Rating/Rating.css +91 -0
- package/dist/{index88.js → components/Rating/Rating2.js} +3 -3
- package/dist/components/RichTextEditor/RichTextEditor.css +94 -0
- package/dist/{index90.js → components/RichTextEditor/RichTextEditor2.js} +4 -4
- package/dist/components/SectionFooter/SectionFooter.css +59 -0
- package/dist/{index92.js → components/SectionFooter/SectionFooter2.js} +2 -2
- package/dist/components/SectionHeader/SectionHeader.css +78 -0
- package/dist/{index94.js → components/SectionHeader/SectionHeader2.js} +2 -2
- package/dist/components/Select/Select.css +156 -0
- package/dist/{index102.js → components/Select/Select2.js} +11 -12
- package/dist/components/SidebarNavigation/SidebarNavigation.css +116 -0
- package/dist/{index96.js → components/SidebarNavigation/SidebarNavigation2.js} +2 -2
- package/dist/components/SlideoutMenu/SlideoutMenu.css +161 -0
- package/dist/{index98.js → components/SlideoutMenu/SlideoutMenu2.js} +3 -3
- package/dist/components/Slider/Slider.css +106 -0
- package/dist/{index104.js → components/Slider/Slider2.js} +2 -2
- package/dist/components/Sparkline/Sparkline.css +65 -0
- package/dist/components/Sparkline/Sparkline2.js +100 -0
- package/dist/components/Switch/Switch.css +59 -0
- package/dist/{index100.js → components/Switch/Switch2.js} +2 -2
- package/dist/components/Table/Table.css +126 -0
- package/dist/{index108.js → components/Table/Table2.js} +2 -2
- package/dist/components/Tabs/Tabs.css +138 -0
- package/dist/{index110.js → components/Tabs/Tabs2.js} +53 -6
- package/dist/components/Tag/Tag.css +64 -0
- package/dist/{index106.js → components/Tag/Tag2.js} +3 -3
- package/dist/components/Textarea/Textarea.css +52 -0
- package/dist/{index112.js → components/Textarea/Textarea2.js} +3 -3
- package/dist/components/Tooltip/Tooltip.css +61 -0
- package/dist/{index114.js → components/Tooltip/Tooltip2.js} +6 -6
- package/dist/components/TreeView/TreeView.css +109 -0
- package/dist/{index116.js → components/TreeView/TreeView2.js} +2 -2
- package/dist/components/UtilityButton/UtilityButton.css +90 -0
- package/dist/{index118.js → components/UtilityButton/UtilityButton2.js} +2 -2
- package/dist/components/VideoPlayer/VideoPlayer.css +41 -0
- package/dist/{index120.js → components/VideoPlayer/VideoPlayer2.js} +2 -2
- package/dist/{index33.js → hooks/useDisclosure.js} +1 -1
- package/dist/hooks/useExitAnimation.js +25 -0
- package/dist/{index34.js → hooks/useFocusTrap.js} +1 -1
- package/dist/hooks/usePresence.js +31 -0
- package/dist/index.cjs +1030 -4720
- package/dist/index.js +69 -63
- package/dist/src/components/Accordion/Accordion.d.ts +20 -0
- package/dist/src/components/Accordion/Accordion.test.d.ts +1 -0
- package/dist/src/components/Accordion/index.d.ts +1 -0
- package/dist/src/components/GaugeChart/GaugeChart.d.ts +17 -0
- package/dist/src/components/GaugeChart/GaugeChart.test.d.ts +1 -0
- package/dist/src/components/GaugeChart/index.d.ts +1 -0
- package/dist/src/components/Heatmap/Heatmap.d.ts +28 -0
- package/dist/src/components/Heatmap/Heatmap.test.d.ts +1 -0
- package/dist/src/components/Heatmap/index.d.ts +1 -0
- package/dist/src/components/InlineCTA/InlineCTA.d.ts +2 -0
- package/dist/src/components/LineBarCharts/LineBarChart.d.ts +2 -0
- package/dist/src/components/Sparkline/Sparkline.d.ts +17 -0
- package/dist/src/components/Sparkline/Sparkline.test.d.ts +1 -0
- package/dist/src/components/Sparkline/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/useExitAnimation.d.ts +18 -0
- package/dist/src/hooks/usePresence.d.ts +13 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/styles/theme.css +813 -0
- package/dist/styles.css +881 -68
- package/dist/{index19.js → utils/FieldWrapper.js} +1 -1
- package/package.json +8 -4
- package/theme.starter.css +58 -0
- package/dist/index42.js +0 -134
- package/dist/index43.js +0 -16
- package/dist/index44.js +0 -4232
- /package/dist/{index3.js → a11y/index.js} +0 -0
- /package/dist/{index30.js → hooks/useAnchoredPosition.js} +0 -0
- /package/dist/{index31.js → hooks/useComposedRefs.js} +0 -0
- /package/dist/{index32.js → hooks/useControllableState.js} +0 -0
- /package/dist/{index35.js → hooks/useListNavigation.js} +0 -0
- /package/dist/{index36.js → hooks/useOutsideInteraction.js} +0 -0
- /package/dist/{index4.js → utils/cx.js} +0 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
.pf-notification-stack {
|
|
2
|
+
display: grid;
|
|
3
|
+
gap: var(--space-3);
|
|
4
|
+
left: var(--space-2);
|
|
5
|
+
position: fixed;
|
|
6
|
+
right: var(--space-2);
|
|
7
|
+
width: auto;
|
|
8
|
+
z-index: 1000;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pf-notification-stack--top-right,
|
|
12
|
+
.pf-notification-stack--top-left {
|
|
13
|
+
top: var(--space-2);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pf-notification-stack--bottom-right,
|
|
17
|
+
.pf-notification-stack--bottom-left {
|
|
18
|
+
bottom: var(--space-2);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (min-width: 768px) {
|
|
22
|
+
.pf-notification-stack {
|
|
23
|
+
left: auto;
|
|
24
|
+
right: auto;
|
|
25
|
+
width: min(420px, calc(100vw - (var(--space-4) * 2)));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pf-notification-stack--top-right,
|
|
29
|
+
.pf-notification-stack--top-left {
|
|
30
|
+
top: var(--space-4);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pf-notification-stack--bottom-right,
|
|
34
|
+
.pf-notification-stack--bottom-left {
|
|
35
|
+
bottom: var(--space-4);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pf-notification-stack--top-right,
|
|
39
|
+
.pf-notification-stack--bottom-right {
|
|
40
|
+
justify-items: end;
|
|
41
|
+
right: var(--space-4);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pf-notification-stack--top-left,
|
|
45
|
+
.pf-notification-stack--bottom-left {
|
|
46
|
+
left: var(--space-4);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pf-notification {
|
|
51
|
+
align-items: flex-start;
|
|
52
|
+
background: var(--pf-notification-bg);
|
|
53
|
+
border: 1px solid var(--pf-notification-border);
|
|
54
|
+
border-radius: var(--radius-md);
|
|
55
|
+
box-shadow: var(--pf-notification-elevation-floating-shadow, var(--pf-elevation-floating-shadow));
|
|
56
|
+
display: grid;
|
|
57
|
+
gap: var(--space-3);
|
|
58
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
59
|
+
max-width: none;
|
|
60
|
+
padding: var(--space-3);
|
|
61
|
+
width: 100%;
|
|
62
|
+
animation: pf-notification-in var(--duration-moderate) var(--easing-decelerate);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@keyframes pf-notification-in {
|
|
66
|
+
from {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
transform: translateX(12px);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Exit: slide off to the right and collapse so stacked siblings reflow. */
|
|
73
|
+
.pf-notification--exiting {
|
|
74
|
+
animation: pf-notification-out var(--duration-moderate) var(--easing-accelerate) forwards;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@keyframes pf-notification-out {
|
|
80
|
+
from {
|
|
81
|
+
opacity: 1;
|
|
82
|
+
transform: translateX(0);
|
|
83
|
+
max-height: 480px;
|
|
84
|
+
}
|
|
85
|
+
to {
|
|
86
|
+
opacity: 0;
|
|
87
|
+
transform: translateX(100%);
|
|
88
|
+
max-height: 0;
|
|
89
|
+
margin-top: 0;
|
|
90
|
+
margin-bottom: 0;
|
|
91
|
+
padding-top: 0;
|
|
92
|
+
padding-bottom: 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (prefers-reduced-motion: reduce) {
|
|
97
|
+
.pf-notification,
|
|
98
|
+
.pf-notification--exiting {
|
|
99
|
+
animation: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (min-width: 768px) {
|
|
104
|
+
.pf-notification {
|
|
105
|
+
max-width: 420px;
|
|
106
|
+
padding: var(--space-4);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.pf-notification--info {
|
|
111
|
+
background: color-mix(
|
|
112
|
+
in srgb,
|
|
113
|
+
var(--pf-notification-info-bg) 45%,
|
|
114
|
+
var(--pf-notification-mix-base)
|
|
115
|
+
);
|
|
116
|
+
border-color: var(--pf-notification-info-border);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.pf-notification--success {
|
|
120
|
+
background: color-mix(
|
|
121
|
+
in srgb,
|
|
122
|
+
var(--pf-notification-success-bg) 45%,
|
|
123
|
+
var(--pf-notification-mix-base)
|
|
124
|
+
);
|
|
125
|
+
border-color: var(--pf-notification-success-border);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.pf-notification--warning {
|
|
129
|
+
background: color-mix(
|
|
130
|
+
in srgb,
|
|
131
|
+
var(--pf-notification-warning-bg) 45%,
|
|
132
|
+
var(--pf-notification-mix-base)
|
|
133
|
+
);
|
|
134
|
+
border-color: var(--pf-notification-warning-border);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.pf-notification--danger {
|
|
138
|
+
background: color-mix(
|
|
139
|
+
in srgb,
|
|
140
|
+
var(--pf-notification-danger-bg) 45%,
|
|
141
|
+
var(--pf-notification-mix-base)
|
|
142
|
+
);
|
|
143
|
+
border-color: var(--pf-notification-danger-border);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.pf-notification__icon {
|
|
147
|
+
align-items: center;
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
font-size: var(--font-size-lg);
|
|
150
|
+
height: 1em;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
line-height: 1;
|
|
153
|
+
margin-top: 2px;
|
|
154
|
+
width: 1em;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.pf-notification--info .pf-notification__icon {
|
|
158
|
+
color: var(--pf-notification-info-icon);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.pf-notification--info .pf-notification__title {
|
|
162
|
+
color: var(--pf-notification-info-title);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.pf-notification--info .pf-notification__description {
|
|
166
|
+
color: var(--pf-notification-info-icon);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.pf-notification--info .pf-notification__dismiss {
|
|
170
|
+
color: var(--pf-notification-info-icon);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.pf-notification--info .pf-notification__dismiss:hover,
|
|
174
|
+
.pf-notification--info .pf-notification__dismiss:focus-visible {
|
|
175
|
+
background: var(--pf-notification-info-hover-bg);
|
|
176
|
+
color: var(--pf-notification-info-hover-icon);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.pf-notification--success .pf-notification__icon {
|
|
180
|
+
color: var(--pf-notification-success-icon);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.pf-notification--warning .pf-notification__icon {
|
|
184
|
+
color: var(--pf-notification-warning-icon);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.pf-notification--danger .pf-notification__icon {
|
|
188
|
+
color: var(--pf-notification-danger-icon);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.pf-notification__content {
|
|
192
|
+
display: grid;
|
|
193
|
+
gap: var(--space-1);
|
|
194
|
+
min-width: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.pf-notification__title {
|
|
198
|
+
color: var(--pf-notification-text);
|
|
199
|
+
font-size: var(--font-size-sm);
|
|
200
|
+
font-weight: var(--font-weight-semibold);
|
|
201
|
+
line-height: 1.35;
|
|
202
|
+
margin: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.pf-notification__description {
|
|
206
|
+
color: var(--pf-notification-text-muted);
|
|
207
|
+
font-size: var(--font-size-sm);
|
|
208
|
+
line-height: 1.45;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.pf-notification__description p {
|
|
212
|
+
margin: 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.pf-notification__action {
|
|
216
|
+
align-items: center;
|
|
217
|
+
display: inline-flex;
|
|
218
|
+
gap: var(--space-2);
|
|
219
|
+
margin-top: var(--space-2);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.pf-notification__dismiss {
|
|
223
|
+
align-items: center;
|
|
224
|
+
align-self: start;
|
|
225
|
+
background: transparent;
|
|
226
|
+
border: 0;
|
|
227
|
+
border-radius: var(--radius-sm);
|
|
228
|
+
color: var(--pf-notification-text-muted);
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
display: inline-flex;
|
|
231
|
+
font-size: var(--font-size-md);
|
|
232
|
+
height: 28px;
|
|
233
|
+
justify-content: center;
|
|
234
|
+
width: 28px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.pf-notification__dismiss:hover,
|
|
238
|
+
.pf-notification__dismiss:focus-visible {
|
|
239
|
+
background: var(--pf-notification-bg-subtle);
|
|
240
|
+
color: var(--pf-notification-text);
|
|
241
|
+
outline: none;
|
|
242
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { useExitAnimation } from "../../hooks/useExitAnimation.js";
|
|
2
|
+
import { cx } from "../../utils/cx.js";
|
|
3
|
+
import { Icon } from "../Icon/Icon2.js";
|
|
4
|
+
import './Notification.css';/* empty css */
|
|
4
5
|
import { forwardRef } from "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
//#region src/components/Notification/Notification.tsx
|
|
@@ -22,9 +23,10 @@ var Notification = forwardRef(({ className, variant = "info", heading, descripti
|
|
|
22
23
|
"aria-hidden": true
|
|
23
24
|
});
|
|
24
25
|
const body = children ?? description;
|
|
26
|
+
const { isExiting, startExit } = useExitAnimation({ onExited: onDismiss });
|
|
25
27
|
return /* @__PURE__ */ jsxs("div", {
|
|
26
28
|
ref,
|
|
27
|
-
className: cx("pf-notification", `pf-notification--${variant}`, className),
|
|
29
|
+
className: cx("pf-notification", `pf-notification--${variant}`, isExiting && "pf-notification--exiting", className),
|
|
28
30
|
role: "status",
|
|
29
31
|
...props,
|
|
30
32
|
children: [
|
|
@@ -54,7 +56,7 @@ var Notification = forwardRef(({ className, variant = "info", heading, descripti
|
|
|
54
56
|
type: "button",
|
|
55
57
|
className: "pf-notification__dismiss",
|
|
56
58
|
"aria-label": "Dismiss notification",
|
|
57
|
-
onClick:
|
|
59
|
+
onClick: startExit,
|
|
58
60
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
59
61
|
name: "circle-xmark",
|
|
60
62
|
"aria-hidden": true
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.pf-page-header {
|
|
2
|
+
display: grid;
|
|
3
|
+
gap: var(--space-4);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.pf-page-header__breadcrumbs {
|
|
7
|
+
min-width: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.pf-page-header__row {
|
|
11
|
+
align-items: start;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--space-4);
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (min-width: 768px) {
|
|
19
|
+
.pf-page-header__row {
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pf-page-header__content {
|
|
25
|
+
display: grid;
|
|
26
|
+
gap: var(--space-2);
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pf-page-header__eyebrow {
|
|
31
|
+
color: var(--pf-page-header-eyebrow);
|
|
32
|
+
font-size: var(--font-size-xs);
|
|
33
|
+
font-weight: var(--font-weight-semibold);
|
|
34
|
+
letter-spacing: 0.08em;
|
|
35
|
+
margin: 0;
|
|
36
|
+
text-transform: uppercase;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pf-page-header__heading {
|
|
40
|
+
color: var(--pf-page-header-text);
|
|
41
|
+
font-size: clamp(var(--font-size-3xl), 3vw, var(--font-size-5xl));
|
|
42
|
+
font-weight: var(--font-weight-semibold);
|
|
43
|
+
letter-spacing: -0.03em;
|
|
44
|
+
line-height: 1.05;
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pf-page-header__description {
|
|
49
|
+
color: var(--pf-page-header-text-muted);
|
|
50
|
+
font-size: var(--font-size-sm);
|
|
51
|
+
line-height: 1.5;
|
|
52
|
+
margin: 0;
|
|
53
|
+
max-width: 68ch;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: 768px) {
|
|
57
|
+
.pf-page-header__description {
|
|
58
|
+
font-size: var(--font-size-md);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pf-page-header__meta {
|
|
63
|
+
align-items: center;
|
|
64
|
+
color: var(--pf-page-header-text-muted);
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
flex-wrap: wrap;
|
|
67
|
+
gap: var(--space-2);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.pf-page-header__actions {
|
|
71
|
+
align-items: center;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
flex: 0 0 auto;
|
|
74
|
+
flex-wrap: wrap;
|
|
75
|
+
gap: var(--space-2);
|
|
76
|
+
justify-content: flex-start;
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (min-width: 768px) {
|
|
81
|
+
.pf-page-header__actions {
|
|
82
|
+
justify-content: flex-end;
|
|
83
|
+
width: auto;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
import { Breadcrumbs } from "
|
|
3
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import { Breadcrumbs } from "../Breadcrumbs/Breadcrumbs2.js";
|
|
3
|
+
import './PageHeader.css';/* empty css */
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/PageHeader/PageHeader.tsx
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.pf-pagination {
|
|
2
|
+
align-items: center;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
gap: var(--space-2);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@media (min-width: 640px) {
|
|
8
|
+
.pf-pagination {
|
|
9
|
+
gap: var(--space-3);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pf-pagination--disabled {
|
|
14
|
+
opacity: 0.65;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pf-pagination__list {
|
|
18
|
+
align-items: center;
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
gap: var(--space-2);
|
|
21
|
+
list-style: none;
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pf-pagination__page,
|
|
27
|
+
.pf-pagination__nav {
|
|
28
|
+
align-items: center;
|
|
29
|
+
background: var(--pf-pagination-bg);
|
|
30
|
+
border: 1px solid var(--pf-pagination-border);
|
|
31
|
+
border-radius: var(--radius-md);
|
|
32
|
+
color: var(--pf-pagination-text);
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
font-size: var(--font-size-sm);
|
|
36
|
+
font-weight: var(--font-weight-medium);
|
|
37
|
+
justify-content: center;
|
|
38
|
+
line-height: 1;
|
|
39
|
+
transition: box-shadow 140ms ease;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pf-pagination__page {
|
|
43
|
+
height: var(--pf-pagination-page-size);
|
|
44
|
+
min-width: var(--pf-pagination-page-size);
|
|
45
|
+
padding: 0 var(--space-2);
|
|
46
|
+
transition: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pf-pagination__nav {
|
|
50
|
+
height: var(--pf-control-height-sm);
|
|
51
|
+
min-width: var(--pf-control-height-sm);
|
|
52
|
+
padding: 0 var(--space-2);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (min-width: 640px) {
|
|
56
|
+
.pf-pagination__nav {
|
|
57
|
+
padding: 0 var(--space-3);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.pf-pagination__page:hover,
|
|
62
|
+
.pf-pagination__nav:hover {
|
|
63
|
+
border-color: var(--pf-pagination-active-border);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pf-pagination__page:focus-visible,
|
|
67
|
+
.pf-pagination__nav:focus-visible {
|
|
68
|
+
box-shadow: var(--pf-focus-ring);
|
|
69
|
+
outline: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pf-pagination__page--active {
|
|
73
|
+
background: var(--pf-pagination-active-bg);
|
|
74
|
+
border-color: var(--pf-pagination-active-border);
|
|
75
|
+
color: var(--pf-pagination-active-text);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.pf-pagination__page--active:hover {
|
|
79
|
+
background: var(--pf-pagination-active-hover-bg);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.pf-pagination__page:disabled,
|
|
83
|
+
.pf-pagination__nav:disabled {
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
opacity: 0.5;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.pf-pagination__ellipsis {
|
|
89
|
+
color: var(--pf-pagination-text-muted);
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
font-size: var(--font-size-sm);
|
|
92
|
+
justify-content: center;
|
|
93
|
+
min-width: 20px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (prefers-reduced-motion: reduce) {
|
|
97
|
+
.pf-pagination__page,
|
|
98
|
+
.pf-pagination__nav {
|
|
99
|
+
transition: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './Pagination.css';/* empty css */
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/Pagination/Pagination.tsx
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
.pf-pie-chart {
|
|
2
|
+
align-items: flex-start;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--space-4);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@media (min-width: 640px) {
|
|
9
|
+
.pf-pie-chart {
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
gap: var(--space-6);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pf-pie-chart__visual {
|
|
17
|
+
align-items: center;
|
|
18
|
+
border-radius: 999px;
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* The conic-gradient lives on a masked layer so it can sweep ("build out")
|
|
25
|
+
clockwise on mount without clipping the center label. */
|
|
26
|
+
@property --pf-pie-sweep {
|
|
27
|
+
syntax: '<percentage>';
|
|
28
|
+
inherits: false;
|
|
29
|
+
initial-value: 0%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.pf-pie-chart__visual::before {
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
inset: 0;
|
|
36
|
+
border-radius: inherit;
|
|
37
|
+
background-image: var(--pf-pie-gradient);
|
|
38
|
+
--pf-pie-sweep: 100%;
|
|
39
|
+
-webkit-mask: conic-gradient(#000 var(--pf-pie-sweep), #0000 0);
|
|
40
|
+
mask: conic-gradient(#000 var(--pf-pie-sweep), #0000 0);
|
|
41
|
+
animation: pf-pie-sweep var(--duration-slow) var(--easing-decelerate);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes pf-pie-sweep {
|
|
45
|
+
from {
|
|
46
|
+
--pf-pie-sweep: 0%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (prefers-reduced-motion: reduce) {
|
|
51
|
+
.pf-pie-chart__visual::before {
|
|
52
|
+
animation: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pf-pie-chart__visual--empty {
|
|
57
|
+
outline: 1px solid var(--pf-piechart-border-muted);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pf-pie-chart__center {
|
|
61
|
+
align-items: center;
|
|
62
|
+
background: var(--pf-piechart-bg);
|
|
63
|
+
border-radius: 999px;
|
|
64
|
+
color: var(--pf-piechart-text);
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
font-size: var(--font-size-sm);
|
|
67
|
+
font-weight: var(--font-weight-semibold);
|
|
68
|
+
justify-content: center;
|
|
69
|
+
line-height: 1.2;
|
|
70
|
+
position: relative;
|
|
71
|
+
z-index: 1;
|
|
72
|
+
text-align: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pf-pie-chart__legend {
|
|
76
|
+
display: grid;
|
|
77
|
+
gap: var(--space-2);
|
|
78
|
+
list-style: none;
|
|
79
|
+
margin: 0;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
padding: 0;
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media (min-width: 640px) {
|
|
86
|
+
.pf-pie-chart__legend {
|
|
87
|
+
min-width: 180px;
|
|
88
|
+
width: auto;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.pf-pie-chart__legend-item {
|
|
93
|
+
align-items: center;
|
|
94
|
+
display: grid;
|
|
95
|
+
gap: var(--space-2);
|
|
96
|
+
grid-template-columns: 10px 1fr auto;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.pf-pie-chart__legend-dot {
|
|
100
|
+
border-radius: 999px;
|
|
101
|
+
display: inline-block;
|
|
102
|
+
height: 10px;
|
|
103
|
+
width: 10px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.pf-pie-chart__legend-label {
|
|
107
|
+
color: var(--pf-piechart-text);
|
|
108
|
+
font-size: var(--font-size-sm);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.pf-pie-chart__legend-value {
|
|
112
|
+
color: var(--pf-piechart-text-muted);
|
|
113
|
+
font-size: var(--font-size-sm);
|
|
114
|
+
font-variant-numeric: tabular-nums;
|
|
115
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './PieChart.css';/* empty css */
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/PieChart/PieChart.tsx
|
|
@@ -52,7 +52,7 @@ var PieChart = forwardRef(function PieChart({ className, data, size = 192, cutou
|
|
|
52
52
|
style: {
|
|
53
53
|
width: chartSize,
|
|
54
54
|
height: chartSize,
|
|
55
|
-
|
|
55
|
+
"--pf-pie-gradient": conicGradient
|
|
56
56
|
},
|
|
57
57
|
role: "img",
|
|
58
58
|
"aria-label": "Pie chart",
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.pf-progress-bar {
|
|
2
|
+
align-items: center;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
gap: var(--space-2);
|
|
5
|
+
min-width: 220px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pf-progress-bar__track {
|
|
9
|
+
background: var(--pf-progress-track-bg);
|
|
10
|
+
border-radius: var(--radius-full);
|
|
11
|
+
flex: 1;
|
|
12
|
+
height: 8px;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pf-progress-bar__fill {
|
|
18
|
+
background: var(--pf-progress-accent);
|
|
19
|
+
border-radius: inherit;
|
|
20
|
+
height: 100%;
|
|
21
|
+
width: var(--pf-progress-fill, 0%);
|
|
22
|
+
/* Animate fill in from 0 on mount, and smoothly between values on change */
|
|
23
|
+
transition: width var(--pf-transition-slow);
|
|
24
|
+
animation: pf-progress-bar-in var(--duration-slow) var(--easing-decelerate);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes pf-progress-bar-in {
|
|
28
|
+
from {
|
|
29
|
+
width: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pf-progress-bar__value {
|
|
34
|
+
color: var(--pf-progress-text-muted);
|
|
35
|
+
font-size: var(--font-size-sm);
|
|
36
|
+
font-weight: var(--font-weight-medium);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pf-progress-circle {
|
|
40
|
+
align-items: center;
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
height: var(--pf-progress-circle-size, 64px);
|
|
43
|
+
justify-content: center;
|
|
44
|
+
position: relative;
|
|
45
|
+
width: var(--pf-progress-circle-size, 64px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pf-progress-circle__svg {
|
|
49
|
+
display: block;
|
|
50
|
+
height: 100%;
|
|
51
|
+
transform: rotate(-90deg);
|
|
52
|
+
width: 100%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pf-progress-circle__track,
|
|
56
|
+
.pf-progress-circle__fill {
|
|
57
|
+
fill: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pf-progress-circle__track {
|
|
61
|
+
stroke: var(--pf-progress-track-bg);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.pf-progress-circle__fill {
|
|
65
|
+
stroke: var(--pf-progress-accent);
|
|
66
|
+
stroke-linecap: round;
|
|
67
|
+
stroke-dashoffset: var(--pf-progress-dashoffset);
|
|
68
|
+
/* Animate fill in from empty on mount, and smoothly between values on change */
|
|
69
|
+
transition: stroke-dashoffset var(--pf-transition-slow);
|
|
70
|
+
animation: pf-progress-circle-in var(--duration-slow) var(--easing-decelerate);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes pf-progress-circle-in {
|
|
74
|
+
from {
|
|
75
|
+
stroke-dashoffset: var(--pf-progress-circ);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pf-progress-circle__value {
|
|
80
|
+
color: var(--pf-progress-text);
|
|
81
|
+
font-size: var(--font-size-xs);
|
|
82
|
+
font-weight: var(--font-weight-semibold);
|
|
83
|
+
left: 50%;
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 50%;
|
|
86
|
+
transform: translate(-50%, -50%);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (prefers-reduced-motion: reduce) {
|
|
90
|
+
.pf-progress-bar__fill,
|
|
91
|
+
.pf-progress-circle__fill {
|
|
92
|
+
transition: none;
|
|
93
|
+
animation: none;
|
|
94
|
+
}
|
|
95
|
+
}
|