@pitchfork-ui/react 0.1.9 → 0.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/README.md +20 -5
- package/dist/components/Alert/Alert.css +83 -0
- package/dist/{index8.js → components/Alert/Alert2.js} +3 -3
- 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 +122 -0
- package/dist/{index42.js → components/Carousel/Carousel2.js} +3 -3
- 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 +132 -0
- package/dist/{index38.js → components/Dropdown/Dropdown2.js} +8 -8
- 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 +46 -0
- package/dist/components/GaugeChart/GaugeChart2.js +73 -0
- package/dist/components/HeaderNavigation/HeaderNavigation.css +87 -0
- package/dist/{index56.js → components/HeaderNavigation/HeaderNavigation2.js} +2 -2
- package/dist/components/Icon/Icon.css +6 -0
- package/dist/{index6.js → components/Icon/Icon2.js} +2 -2
- package/dist/components/InlineCTA/InlineCTA.css +86 -0
- package/dist/{index58.js → components/InlineCTA/InlineCTA2.js} +3 -3
- 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 +136 -0
- package/dist/{index66.js → components/Modal/Modal2.js} +4 -4
- package/dist/components/MultiSelect/MultiSelect.css +157 -0
- package/dist/{index68.js → components/MultiSelect/MultiSelect2.js} +11 -11
- package/dist/components/Notification/Notification.css +187 -0
- package/dist/{index70.js → components/Notification/Notification2.js} +3 -3
- 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 +81 -0
- package/dist/{index76.js → components/PieChart/PieChart2.js} +2 -2
- package/dist/components/ProgressIndicators/ProgressIndicators.css +77 -0
- package/dist/{index78.js → components/ProgressIndicators/ProgressIndicators2.js} +2 -2
- package/dist/components/ProgressSteps/ProgressSteps.css +158 -0
- package/dist/{index80.js → components/ProgressSteps/ProgressSteps2.js} +2 -2
- package/dist/components/RadarChart/RadarChart.css +97 -0
- package/dist/{index82.js → components/RadarChart/RadarChart2.js} +2 -2
- 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 +137 -0
- package/dist/{index102.js → components/Select/Select2.js} +11 -11
- 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 +17 -0
- package/dist/components/Sparkline/Sparkline2.js +99 -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 +112 -0
- package/dist/{index110.js → components/Tabs/Tabs2.js} +2 -2
- 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 +26 -0
- package/dist/{index114.js → components/Tooltip/Tooltip2.js} +2 -2
- 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/{index34.js → hooks/useFocusTrap.js} +1 -1
- package/dist/index.cjs +380 -4450
- package/dist/index.js +65 -63
- 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/LineBarCharts/LineBarChart.d.ts +2 -0
- package/dist/src/components/Sparkline/Sparkline.d.ts +15 -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/index.d.ts +2 -0
- package/dist/styles/theme.css +779 -0
- package/dist/styles.css +124 -5
- package/dist/{index19.js → utils/FieldWrapper.js} +1 -1
- package/package.json +8 -4
- package/theme.starter.css +57 -0
- 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,64 @@
|
|
|
1
|
+
.pf-radio-group {
|
|
2
|
+
border: 0;
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: var(--space-3);
|
|
5
|
+
margin: 0;
|
|
6
|
+
min-inline-size: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.pf-radio-group--horizontal {
|
|
11
|
+
column-gap: var(--space-6);
|
|
12
|
+
grid-auto-flow: column;
|
|
13
|
+
justify-content: flex-start;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pf-radio-group__legend {
|
|
17
|
+
color: var(--pf-radiogroup-text);
|
|
18
|
+
font-size: var(--font-size-md);
|
|
19
|
+
font-weight: var(--font-weight-semibold);
|
|
20
|
+
margin-bottom: var(--space-1);
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pf-radio-group__item {
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
gap: var(--space-2);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pf-radio-group__input {
|
|
31
|
+
accent-color: var(--pf-radiogroup-accent);
|
|
32
|
+
height: 18px;
|
|
33
|
+
margin-top: 2px;
|
|
34
|
+
width: 18px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pf-radio-group__input:focus-visible {
|
|
38
|
+
box-shadow: var(--pf-radiogroup-focus-ring, var(--pf-focus-ring));
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pf-radio-group__label {
|
|
43
|
+
color: var(--pf-radiogroup-text);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
display: grid;
|
|
46
|
+
gap: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pf-radio-group__label-text {
|
|
50
|
+
font-size: var(--font-size-md);
|
|
51
|
+
line-height: 1.3;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pf-radio-group__description {
|
|
55
|
+
color: var(--pf-radiogroup-text-muted);
|
|
56
|
+
font-size: var(--font-size-sm);
|
|
57
|
+
line-height: 1.35;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pf-radio-group:disabled .pf-radio-group__label,
|
|
61
|
+
.pf-radio-group__input:disabled + .pf-radio-group__label {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
opacity: 0.6;
|
|
64
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './RadioGroup.css';/* empty css */
|
|
3
3
|
import { forwardRef, useId, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/RadioGroup/RadioGroup.tsx
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
.pf-rating-stars {
|
|
2
|
+
align-items: center;
|
|
3
|
+
color: var(--pf-rating-text);
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
gap: var(--space-2);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pf-rating-stars__track {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
gap: 2px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pf-rating-stars__star {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
position: relative;
|
|
16
|
+
height: var(--pf-rating-size, var(--font-size-lg));
|
|
17
|
+
width: var(--pf-rating-size, var(--font-size-lg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pf-rating-stars__star-icon {
|
|
21
|
+
font-size: var(--pf-rating-size, var(--font-size-lg));
|
|
22
|
+
height: 1em;
|
|
23
|
+
width: 1em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pf-rating-stars__star-icon--base {
|
|
27
|
+
color: var(--pf-rating-star-empty);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pf-rating-stars__star-fill {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
inset: 0;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
position: absolute;
|
|
35
|
+
width: var(--pf-rating-fill, 0%);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pf-rating-stars__star-icon--fill {
|
|
39
|
+
color: var(--pf-rating-star-fill);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pf-rating-stars__value {
|
|
43
|
+
color: var(--pf-rating-text-muted);
|
|
44
|
+
font-size: var(--font-size-sm);
|
|
45
|
+
font-weight: var(--font-weight-medium);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pf-rating-badge {
|
|
49
|
+
align-items: center;
|
|
50
|
+
background: var(--pf-rating-badge-bg);
|
|
51
|
+
border: 1px solid var(--pf-rating-badge-border);
|
|
52
|
+
border-radius: var(--radius-full);
|
|
53
|
+
color: var(--pf-rating-badge-text);
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
font-size: var(--font-size-sm);
|
|
56
|
+
font-weight: var(--font-weight-semibold);
|
|
57
|
+
gap: var(--space-2);
|
|
58
|
+
line-height: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.pf-rating-badge--sm {
|
|
62
|
+
min-height: 24px;
|
|
63
|
+
padding: 0 var(--space-2);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pf-rating-badge--md {
|
|
67
|
+
min-height: 28px;
|
|
68
|
+
padding: 0 var(--space-3);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.pf-rating-badge__icon {
|
|
72
|
+
display: block;
|
|
73
|
+
fill: currentColor;
|
|
74
|
+
height: 14px;
|
|
75
|
+
width: 14px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.pf-rating-badge__value {
|
|
79
|
+
align-items: center;
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
gap: var(--space-1);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.pf-rating-badge__separator {
|
|
85
|
+
opacity: 0.65;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.pf-rating-badge__reviews {
|
|
89
|
+
color: var(--pf-rating-badge-reviews);
|
|
90
|
+
font-weight: var(--font-weight-medium);
|
|
91
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
import { Icon } from "
|
|
3
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import { Icon } from "../Icon/Icon2.js";
|
|
3
|
+
import './Rating.css';/* empty css */
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Rating/Rating.tsx
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
.pf-rte {
|
|
2
|
+
background: var(--pf-rte-bg);
|
|
3
|
+
border: 1px solid var(--pf-rte-border);
|
|
4
|
+
border-radius: var(--radius-md);
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pf-rte:focus-within {
|
|
9
|
+
border-color: var(--pf-rte-focus-border);
|
|
10
|
+
box-shadow: var(--pf-richtexteditor-focus-ring, var(--pf-focus-ring));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pf-rte--invalid {
|
|
14
|
+
border-color: var(--pf-rte-invalid-border);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pf-rte--disabled {
|
|
18
|
+
opacity: 0.75;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pf-rte__toolbar {
|
|
22
|
+
align-items: center;
|
|
23
|
+
background: var(--pf-rte-bg-subtle);
|
|
24
|
+
border-bottom: 1px solid var(--pf-rte-border);
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
gap: var(--space-1);
|
|
28
|
+
padding: var(--space-2);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pf-rte__tool {
|
|
32
|
+
background: transparent;
|
|
33
|
+
border: 1px solid transparent;
|
|
34
|
+
border-radius: var(--radius-sm);
|
|
35
|
+
color: var(--pf-rte-text);
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
font-size: var(--font-size-sm);
|
|
38
|
+
font-weight: var(--font-weight-medium);
|
|
39
|
+
min-height: 28px;
|
|
40
|
+
padding: 0 var(--space-2);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pf-rte__tool:hover:not(:disabled) {
|
|
44
|
+
background: var(--pf-rte-bg);
|
|
45
|
+
border-color: var(--pf-rte-border);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pf-rte__tool:focus-visible {
|
|
49
|
+
box-shadow: var(--pf-richtexteditor-focus-ring, var(--pf-focus-ring));
|
|
50
|
+
outline: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pf-rte__tool:disabled {
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
opacity: 0.55;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pf-rte__divider {
|
|
59
|
+
background: var(--pf-rte-border);
|
|
60
|
+
height: 18px;
|
|
61
|
+
margin: 0 var(--space-1);
|
|
62
|
+
width: 1px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pf-rte__editor {
|
|
66
|
+
color: var(--pf-rte-text);
|
|
67
|
+
font: inherit;
|
|
68
|
+
line-height: 1.5;
|
|
69
|
+
min-height: var(--pf-rte-min-height, 140px);
|
|
70
|
+
outline: none;
|
|
71
|
+
overflow-wrap: anywhere;
|
|
72
|
+
padding: var(--space-3);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pf-rte__editor p {
|
|
76
|
+
margin: 0 0 0.75em;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pf-rte__editor p:last-child {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.pf-rte__editor:empty::before {
|
|
84
|
+
color: var(--pf-rte-text-muted);
|
|
85
|
+
content: attr(data-placeholder);
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pf-rte__count {
|
|
90
|
+
color: var(--pf-rte-text-muted);
|
|
91
|
+
font-size: var(--font-size-sm);
|
|
92
|
+
margin: var(--space-2) 0 0;
|
|
93
|
+
text-align: right;
|
|
94
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { composeDescribedBy } from "
|
|
2
|
-
import { cx } from "
|
|
3
|
-
import { FieldWrapper } from "
|
|
4
|
-
|
|
1
|
+
import { composeDescribedBy } from "../../a11y/index.js";
|
|
2
|
+
import { cx } from "../../utils/cx.js";
|
|
3
|
+
import { FieldWrapper } from "../../utils/FieldWrapper.js";
|
|
4
|
+
import './RichTextEditor.css';/* empty css */
|
|
5
5
|
import { forwardRef, useEffect, useId, useImperativeHandle, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/RichTextEditor/RichTextEditor.tsx
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.pf-section-footer {
|
|
2
|
+
align-items: flex-start;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--space-4);
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
padding-top: var(--space-4);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (min-width: 640px) {
|
|
11
|
+
.pf-section-footer {
|
|
12
|
+
align-items: center;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pf-section-footer--divider {
|
|
18
|
+
border-top: 1px solid var(--pf-section-footer-border);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pf-section-footer--start {
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pf-section-footer--end {
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pf-section-footer__content {
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pf-section-footer__heading {
|
|
34
|
+
color: var(--pf-section-footer-text);
|
|
35
|
+
font-size: var(--font-size-base);
|
|
36
|
+
font-weight: var(--font-weight-semibold);
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pf-section-footer__description {
|
|
41
|
+
color: var(--pf-section-footer-text-muted);
|
|
42
|
+
font-size: var(--font-size-sm);
|
|
43
|
+
line-height: 1.4;
|
|
44
|
+
margin: var(--space-1) 0 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pf-section-footer__actions {
|
|
48
|
+
align-items: center;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
gap: var(--space-2);
|
|
52
|
+
width: 100%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (min-width: 640px) {
|
|
56
|
+
.pf-section-footer__actions {
|
|
57
|
+
width: auto;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './SectionFooter.css';/* empty css */
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/SectionFooter/SectionFooter.tsx
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.pf-section-header {
|
|
2
|
+
align-items: flex-start;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--space-4);
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
padding-bottom: var(--space-4);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (min-width: 640px) {
|
|
11
|
+
.pf-section-header {
|
|
12
|
+
align-items: center;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pf-section-header--divider {
|
|
18
|
+
border-bottom: 1px solid var(--pf-section-header-border);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pf-section-header--start {
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pf-section-header--end {
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pf-section-header__content {
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pf-section-header__eyebrow {
|
|
34
|
+
color: var(--pf-section-header-text-muted);
|
|
35
|
+
font-size: var(--font-size-xs);
|
|
36
|
+
font-weight: var(--font-weight-semibold);
|
|
37
|
+
letter-spacing: 0.04em;
|
|
38
|
+
margin: 0 0 var(--space-1);
|
|
39
|
+
text-transform: uppercase;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pf-section-header__heading {
|
|
43
|
+
color: var(--pf-section-header-text);
|
|
44
|
+
font-size: var(--font-size-xl);
|
|
45
|
+
font-weight: var(--font-weight-semibold);
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pf-section-header__description {
|
|
50
|
+
color: var(--pf-section-header-text-muted);
|
|
51
|
+
font-size: var(--font-size-sm);
|
|
52
|
+
line-height: 1.5;
|
|
53
|
+
margin: var(--space-1) 0 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pf-section-header__metadata {
|
|
57
|
+
align-items: center;
|
|
58
|
+
color: var(--pf-section-header-text-muted);
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
flex-wrap: wrap;
|
|
61
|
+
font-size: var(--font-size-sm);
|
|
62
|
+
gap: var(--space-2);
|
|
63
|
+
margin-top: var(--space-2);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pf-section-header__actions {
|
|
67
|
+
align-items: center;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
flex-wrap: wrap;
|
|
70
|
+
gap: var(--space-2);
|
|
71
|
+
width: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (min-width: 640px) {
|
|
75
|
+
.pf-section-header__actions {
|
|
76
|
+
width: auto;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './SectionHeader.css';/* empty css */
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/SectionHeader/SectionHeader.tsx
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
.pf-select {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.pf-select__trigger {
|
|
6
|
+
align-items: center;
|
|
7
|
+
background: var(--pf-select-input-bg, var(--pf-input-bg));
|
|
8
|
+
border: 1px solid var(--pf-select-input-border, var(--pf-input-border));
|
|
9
|
+
border-radius: var(--radius-md);
|
|
10
|
+
color: var(--pf-select-input-text, var(--pf-input-text));
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
display: flex;
|
|
13
|
+
font: inherit;
|
|
14
|
+
gap: var(--space-2);
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
min-height: 40px;
|
|
17
|
+
padding: 0 var(--space-3);
|
|
18
|
+
text-align: left;
|
|
19
|
+
width: 100%;
|
|
20
|
+
transition:
|
|
21
|
+
background 0.2s,
|
|
22
|
+
border 0.2s,
|
|
23
|
+
color 0.2s,
|
|
24
|
+
opacity 0.2s;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.pf-select__trigger:disabled,
|
|
28
|
+
.pf-select__trigger[aria-disabled='true'] {
|
|
29
|
+
background: var(--pf-control-bg-disabled);
|
|
30
|
+
border-color: var(--pf-control-border-disabled);
|
|
31
|
+
color: var(--pf-control-text-disabled);
|
|
32
|
+
cursor: not-allowed;
|
|
33
|
+
opacity: 0.6;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.pf-select__trigger:focus {
|
|
37
|
+
outline: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pf-select__trigger:focus-visible {
|
|
41
|
+
border-color: var(--pf-select-focus-border);
|
|
42
|
+
box-shadow: var(--pf-select-focus-ring, var(--pf-focus-ring));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pf-select__trigger--open {
|
|
46
|
+
border-color: var(--pf-select-focus-border);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pf-select__trigger--invalid {
|
|
50
|
+
border-color: var(--pf-select-invalid-border);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pf-select__value {
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
text-overflow: ellipsis;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.pf-select__placeholder {
|
|
60
|
+
color: var(--pf-select-input-placeholder, var(--pf-input-placeholder));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pf-select__icon {
|
|
64
|
+
align-items: center;
|
|
65
|
+
color: var(--pf-select-input-text, var(--pf-input-text));
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
height: 20px;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
width: 20px;
|
|
71
|
+
transform-origin: center;
|
|
72
|
+
transition: transform 140ms ease;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pf-select__icon svg {
|
|
76
|
+
display: block;
|
|
77
|
+
height: 16px;
|
|
78
|
+
width: 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.pf-select__icon--open {
|
|
82
|
+
transform: rotate(180deg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.pf-select__menu {
|
|
86
|
+
background: var(--pf-select-menu-bg);
|
|
87
|
+
border: 1px solid var(--pf-select-menu-border);
|
|
88
|
+
border-radius: var(--radius-md);
|
|
89
|
+
box-shadow: var(--pf-select-elevation-popover-shadow, var(--pf-elevation-popover-shadow));
|
|
90
|
+
list-style: none;
|
|
91
|
+
margin: 0;
|
|
92
|
+
max-height: 220px;
|
|
93
|
+
overflow: auto;
|
|
94
|
+
padding: var(--space-1);
|
|
95
|
+
position: fixed;
|
|
96
|
+
z-index: 1000;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.pf-select__option {
|
|
100
|
+
border-radius: var(--radius-sm);
|
|
101
|
+
color: var(--pf-select-input-text, var(--pf-input-text));
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
padding: var(--space-2) var(--space-3);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.pf-select__option:hover,
|
|
107
|
+
.pf-select__option--active {
|
|
108
|
+
background: var(--pf-select-option-active-bg);
|
|
109
|
+
color: var(--pf-select-option-active-text);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pf-select__option--selected {
|
|
113
|
+
font-weight: var(--font-weight-medium);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.pf-select__option--disabled {
|
|
117
|
+
background: transparent;
|
|
118
|
+
color: var(--pf-select-input-placeholder, var(--pf-input-placeholder));
|
|
119
|
+
cursor: not-allowed;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.pf-select__option--disabled:hover {
|
|
123
|
+
background: transparent;
|
|
124
|
+
color: var(--pf-select-input-placeholder, var(--pf-input-placeholder));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.pf-select__option--disabled.pf-select__option--active {
|
|
128
|
+
background: transparent;
|
|
129
|
+
color: var(--pf-select-input-placeholder, var(--pf-input-placeholder));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@media (prefers-reduced-motion: reduce) {
|
|
133
|
+
.pf-select__trigger,
|
|
134
|
+
.pf-select__icon {
|
|
135
|
+
transition: none;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Keys, composeDescribedBy, isActivationKey } from "
|
|
2
|
-
import { cx } from "
|
|
3
|
-
import { Icon } from "
|
|
4
|
-
import { FieldWrapper } from "
|
|
5
|
-
import { useAnchoredPosition } from "
|
|
6
|
-
import { useComposedRefs } from "
|
|
7
|
-
import { useControllableState } from "
|
|
8
|
-
import { useDisclosure } from "
|
|
9
|
-
import { useListNavigation } from "
|
|
10
|
-
import { useOutsideInteraction } from "
|
|
11
|
-
|
|
1
|
+
import { Keys, composeDescribedBy, isActivationKey } from "../../a11y/index.js";
|
|
2
|
+
import { cx } from "../../utils/cx.js";
|
|
3
|
+
import { Icon } from "../Icon/Icon2.js";
|
|
4
|
+
import { FieldWrapper } from "../../utils/FieldWrapper.js";
|
|
5
|
+
import { useAnchoredPosition } from "../../hooks/useAnchoredPosition.js";
|
|
6
|
+
import { useComposedRefs } from "../../hooks/useComposedRefs.js";
|
|
7
|
+
import { useControllableState } from "../../hooks/useControllableState.js";
|
|
8
|
+
import { useDisclosure } from "../../hooks/useDisclosure.js";
|
|
9
|
+
import { useListNavigation } from "../../hooks/useListNavigation.js";
|
|
10
|
+
import { useOutsideInteraction } from "../../hooks/useOutsideInteraction.js";
|
|
11
|
+
import './Select.css';/* empty css */
|
|
12
12
|
import { forwardRef, useEffect, useId, useMemo, useRef } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { createPortal } from "react-dom";
|