@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,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,156 @@
|
|
|
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: start;
|
|
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 var(--pf-transition-fast);
|
|
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
|
+
transform-origin: top center;
|
|
98
|
+
animation: pf-select-menu-in var(--duration-fast) var(--easing-decelerate);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@keyframes pf-select-menu-in {
|
|
102
|
+
from {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
transform: translateY(-4px) scaleY(0.96);
|
|
105
|
+
}
|
|
106
|
+
to {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
transform: translateY(0) scaleY(1);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media (prefers-reduced-motion: reduce) {
|
|
113
|
+
.pf-select__menu {
|
|
114
|
+
animation: none;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pf-select__option {
|
|
119
|
+
border-radius: var(--radius-sm);
|
|
120
|
+
color: var(--pf-select-input-text, var(--pf-input-text));
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
padding: var(--space-2) var(--space-3);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.pf-select__option:hover,
|
|
126
|
+
.pf-select__option--active {
|
|
127
|
+
background: var(--pf-select-option-active-bg);
|
|
128
|
+
color: var(--pf-select-option-active-text);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.pf-select__option--selected {
|
|
132
|
+
font-weight: var(--font-weight-medium);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.pf-select__option--disabled {
|
|
136
|
+
background: transparent;
|
|
137
|
+
color: var(--pf-select-input-placeholder, var(--pf-input-placeholder));
|
|
138
|
+
cursor: not-allowed;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.pf-select__option--disabled:hover {
|
|
142
|
+
background: transparent;
|
|
143
|
+
color: var(--pf-select-input-placeholder, var(--pf-input-placeholder));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.pf-select__option--disabled.pf-select__option--active {
|
|
147
|
+
background: transparent;
|
|
148
|
+
color: var(--pf-select-input-placeholder, var(--pf-input-placeholder));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (prefers-reduced-motion: reduce) {
|
|
152
|
+
.pf-select__trigger,
|
|
153
|
+
.pf-select__icon {
|
|
154
|
+
transition: none;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Keys, composeDescribedBy, isActivationKey } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import { Keys, composeDescribedBy, isActivationKey } from "../../a11y/index.js";
|
|
2
|
+
import { useAnchoredPosition } from "../../hooks/useAnchoredPosition.js";
|
|
3
|
+
import { useComposedRefs } from "../../hooks/useComposedRefs.js";
|
|
4
|
+
import { useControllableState } from "../../hooks/useControllableState.js";
|
|
5
|
+
import { useDisclosure } from "../../hooks/useDisclosure.js";
|
|
6
|
+
import { useListNavigation } from "../../hooks/useListNavigation.js";
|
|
7
|
+
import { useOutsideInteraction } from "../../hooks/useOutsideInteraction.js";
|
|
8
|
+
import { cx } from "../../utils/cx.js";
|
|
9
|
+
import { Icon } from "../Icon/Icon2.js";
|
|
10
|
+
import { FieldWrapper } from "../../utils/FieldWrapper.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";
|
|
@@ -119,7 +119,6 @@ var Select = forwardRef(({ id, options, value, defaultValue, onValueChange, plac
|
|
|
119
119
|
disabled,
|
|
120
120
|
"aria-haspopup": "listbox",
|
|
121
121
|
"aria-expanded": isOpen,
|
|
122
|
-
"aria-controls": isOpen ? listboxId : void 0,
|
|
123
122
|
"aria-required": required || void 0,
|
|
124
123
|
"aria-describedby": describedBy,
|
|
125
124
|
onClick: () => {
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
.pf-sidebar-navigation {
|
|
2
|
+
background: var(--pf-sidebar-nav-bg);
|
|
3
|
+
border: 1px solid var(--pf-sidebar-nav-border);
|
|
4
|
+
border-radius: var(--radius-md);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
min-height: 0;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (min-width: 768px) {
|
|
12
|
+
.pf-sidebar-navigation {
|
|
13
|
+
min-height: 360px;
|
|
14
|
+
width: min(100%, 280px);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pf-sidebar-navigation__header,
|
|
19
|
+
.pf-sidebar-navigation__footer {
|
|
20
|
+
border-color: var(--pf-sidebar-nav-border);
|
|
21
|
+
padding: var(--space-3) var(--space-3);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pf-sidebar-navigation__header {
|
|
25
|
+
border-bottom: 1px solid var(--pf-sidebar-nav-border);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pf-sidebar-navigation__footer {
|
|
29
|
+
border-top: 1px solid var(--pf-sidebar-nav-border);
|
|
30
|
+
margin-top: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pf-sidebar-navigation__nav {
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: var(--space-3);
|
|
36
|
+
padding: var(--space-3);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pf-sidebar-navigation__section {
|
|
40
|
+
display: grid;
|
|
41
|
+
gap: var(--space-1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pf-sidebar-navigation__section-title {
|
|
45
|
+
color: var(--pf-sidebar-nav-text-muted);
|
|
46
|
+
font-size: var(--font-size-xs);
|
|
47
|
+
font-weight: var(--font-weight-semibold);
|
|
48
|
+
letter-spacing: 0.04em;
|
|
49
|
+
margin: 0;
|
|
50
|
+
padding: 0 var(--space-2);
|
|
51
|
+
text-transform: uppercase;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pf-sidebar-navigation__list {
|
|
55
|
+
display: grid;
|
|
56
|
+
gap: 2px;
|
|
57
|
+
list-style: none;
|
|
58
|
+
margin: 0;
|
|
59
|
+
padding: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pf-sidebar-navigation__item {
|
|
63
|
+
min-width: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pf-sidebar-navigation__link {
|
|
67
|
+
align-items: center;
|
|
68
|
+
background: transparent;
|
|
69
|
+
border: 0;
|
|
70
|
+
border-radius: var(--radius-sm);
|
|
71
|
+
color: var(--pf-sidebar-nav-text-muted);
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
display: grid;
|
|
74
|
+
font: inherit;
|
|
75
|
+
gap: var(--space-2);
|
|
76
|
+
grid-template-columns: auto 1fr auto;
|
|
77
|
+
min-height: 36px;
|
|
78
|
+
padding: 0 var(--space-2);
|
|
79
|
+
text-align: start;
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.pf-sidebar-navigation__link:hover {
|
|
85
|
+
background: var(--pf-sidebar-nav-bg-subtle);
|
|
86
|
+
color: var(--pf-sidebar-nav-text);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pf-sidebar-navigation__link:focus-visible {
|
|
90
|
+
box-shadow: var(--pf-sidebarnavigation-focus-ring, var(--pf-focus-ring));
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.pf-sidebar-navigation__link--active {
|
|
95
|
+
background: var(--pf-sidebar-nav-bg-subtle);
|
|
96
|
+
color: var(--pf-sidebar-nav-text);
|
|
97
|
+
font-weight: var(--font-weight-semibold);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.pf-sidebar-navigation__link--disabled {
|
|
101
|
+
cursor: not-allowed;
|
|
102
|
+
opacity: 0.45;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.pf-sidebar-navigation__icon,
|
|
106
|
+
.pf-sidebar-navigation__badge {
|
|
107
|
+
align-items: center;
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pf-sidebar-navigation__label {
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
text-overflow: ellipsis;
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './SidebarNavigation.css';/* empty css */
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/SidebarNavigation/SidebarNavigation.tsx
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
.pf-slideout__portal {
|
|
2
|
+
inset: 0;
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 1000;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pf-slideout__overlay {
|
|
8
|
+
background: var(--pf-slideoutmenu-overlay-backdrop, var(--pf-overlay-backdrop));
|
|
9
|
+
opacity: 1;
|
|
10
|
+
inset: 0;
|
|
11
|
+
position: absolute;
|
|
12
|
+
transition: opacity var(--pf-transition-slow);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pf-slideout__viewport {
|
|
16
|
+
display: flex;
|
|
17
|
+
inset: 0;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
position: absolute;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pf-slideout__viewport--right {
|
|
23
|
+
justify-content: flex-end;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pf-slideout__viewport--left {
|
|
27
|
+
justify-content: flex-start;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pf-slideout {
|
|
31
|
+
background: var(--pf-slideout-bg);
|
|
32
|
+
border-color: var(--pf-slideout-border);
|
|
33
|
+
border-style: solid;
|
|
34
|
+
box-shadow: var(--pf-slideoutmenu-elevation-overlay-shadow, var(--pf-elevation-overlay-shadow));
|
|
35
|
+
color: var(--pf-slideout-text);
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-rows: auto 1fr auto;
|
|
38
|
+
height: 100%;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
pointer-events: auto;
|
|
41
|
+
transition: transform var(--pf-transition-slow);
|
|
42
|
+
will-change: transform;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pf-slideout:focus-visible {
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pf-slideout__viewport--right .pf-slideout {
|
|
50
|
+
border-left-width: 1px;
|
|
51
|
+
transform: translateX(0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pf-slideout__viewport--left .pf-slideout {
|
|
55
|
+
border-right-width: 1px;
|
|
56
|
+
transform: translateX(0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.pf-slideout__portal[data-state='closed'] .pf-slideout__overlay {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pf-slideout__portal[data-state='closed'] .pf-slideout__viewport--right .pf-slideout {
|
|
64
|
+
transform: translateX(100%);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.pf-slideout__portal[data-state='closed'] .pf-slideout__viewport--left .pf-slideout {
|
|
68
|
+
transform: translateX(-100%);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (prefers-reduced-motion: reduce) {
|
|
72
|
+
.pf-slideout,
|
|
73
|
+
.pf-slideout__overlay {
|
|
74
|
+
transition: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.pf-slideout--sm {
|
|
79
|
+
width: min(420px, 100vw);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.pf-slideout--md {
|
|
83
|
+
width: min(520px, 100vw);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.pf-slideout--lg {
|
|
87
|
+
width: min(680px, 100vw);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.pf-slideout__header,
|
|
91
|
+
.pf-slideout__footer {
|
|
92
|
+
align-items: start;
|
|
93
|
+
display: flex;
|
|
94
|
+
gap: var(--space-3);
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
padding: var(--space-3);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (min-width: 768px) {
|
|
100
|
+
.pf-slideout__header,
|
|
101
|
+
.pf-slideout__body,
|
|
102
|
+
.pf-slideout__footer {
|
|
103
|
+
padding: var(--space-4);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.pf-slideout__header {
|
|
108
|
+
border-bottom: 1px solid var(--pf-slideout-border);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.pf-slideout__footer {
|
|
112
|
+
border-top: 1px solid var(--pf-slideout-border);
|
|
113
|
+
justify-content: flex-end;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.pf-slideout__body {
|
|
117
|
+
overflow-y: auto;
|
|
118
|
+
padding: var(--space-3);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.pf-slideout__heading-group {
|
|
122
|
+
display: grid;
|
|
123
|
+
gap: var(--space-1);
|
|
124
|
+
min-width: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.pf-slideout__title {
|
|
128
|
+
font-size: var(--font-size-lg);
|
|
129
|
+
font-weight: var(--font-weight-semibold);
|
|
130
|
+
line-height: 1.2;
|
|
131
|
+
margin: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.pf-slideout__description {
|
|
135
|
+
color: var(--pf-slideout-text-muted);
|
|
136
|
+
font-size: var(--font-size-sm);
|
|
137
|
+
line-height: 1.45;
|
|
138
|
+
margin: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.pf-slideout__close {
|
|
142
|
+
align-items: center;
|
|
143
|
+
background: transparent;
|
|
144
|
+
border: 0;
|
|
145
|
+
border-radius: var(--radius-sm);
|
|
146
|
+
color: var(--pf-slideout-text-muted);
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
flex: 0 0 auto;
|
|
150
|
+
font-size: var(--font-size-lg);
|
|
151
|
+
height: var(--space-8);
|
|
152
|
+
justify-content: center;
|
|
153
|
+
width: var(--space-8);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.pf-slideout__close:hover,
|
|
157
|
+
.pf-slideout__close:focus-visible {
|
|
158
|
+
background: var(--pf-slideout-bg-subtle);
|
|
159
|
+
color: var(--pf-slideout-text);
|
|
160
|
+
outline: none;
|
|
161
|
+
}
|
|
@@ -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 './SlideoutMenu.css';/* empty css */
|
|
4
4
|
import { useEffect, useId, useRef, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { createPortal } from "react-dom";
|