@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
package/README.md
CHANGED
|
@@ -12,21 +12,36 @@ Accessible, token-driven React components for [lelandrangel.com](https://lelandr
|
|
|
12
12
|
npm install @pitchfork-ui/react
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
> **
|
|
15
|
+
> **Required peer dependencies** — install these if not already in your project:
|
|
16
16
|
>
|
|
17
17
|
> ```bash
|
|
18
18
|
> npm install @fortawesome/fontawesome-svg-core @fortawesome/free-regular-svg-icons @fortawesome/react-fontawesome
|
|
19
19
|
> ```
|
|
20
|
+
>
|
|
21
|
+
> **Optional peer dependencies** — only needed if you use specific components:
|
|
22
|
+
>
|
|
23
|
+
> | Package | Component |
|
|
24
|
+
> | ---------------------- | ------------- |
|
|
25
|
+
> | `prism-react-renderer` | `CodeSnippet` |
|
|
26
|
+
>
|
|
27
|
+
> ```bash
|
|
28
|
+
> npm install prism-react-renderer
|
|
29
|
+
> ```
|
|
20
30
|
|
|
21
31
|
## Setup
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
No stylesheet import needed. Component CSS and design token variables are injected automatically when components are imported.
|
|
24
34
|
|
|
25
|
-
```
|
|
26
|
-
|
|
35
|
+
```tsx
|
|
36
|
+
// CSS loads automatically — nothing else required
|
|
37
|
+
import { Button } from '@pitchfork-ui/react';
|
|
27
38
|
```
|
|
28
39
|
|
|
29
|
-
|
|
40
|
+
> **CJS / SSR environments** — if your bundler does not support CSS-in-JS injection, import the full stylesheet manually:
|
|
41
|
+
>
|
|
42
|
+
> ```ts
|
|
43
|
+
> import '@pitchfork-ui/react/styles.css';
|
|
44
|
+
> ```
|
|
30
45
|
|
|
31
46
|
## Usage
|
|
32
47
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.pf-alert {
|
|
2
|
+
align-items: flex-start;
|
|
3
|
+
border: 1px solid var(--pf-alert-border);
|
|
4
|
+
border-radius: var(--radius-md);
|
|
5
|
+
display: flex;
|
|
6
|
+
gap: var(--space-3);
|
|
7
|
+
padding: var(--space-3);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.pf-alert--info {
|
|
11
|
+
background: var(--pf-alert-info-background);
|
|
12
|
+
border-color: var(--pf-alert-info-border);
|
|
13
|
+
color: var(--pf-alert-info-foreground);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pf-alert--success {
|
|
17
|
+
background: var(--pf-alert-success-background);
|
|
18
|
+
border-color: var(--pf-alert-success-border);
|
|
19
|
+
color: var(--pf-alert-success-foreground);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pf-alert--warning {
|
|
23
|
+
background: var(--pf-alert-warning-background);
|
|
24
|
+
border-color: var(--pf-alert-warning-border);
|
|
25
|
+
color: var(--pf-alert-warning-foreground);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pf-alert--danger {
|
|
29
|
+
background: var(--pf-alert-danger-background);
|
|
30
|
+
border-color: var(--pf-alert-danger-border);
|
|
31
|
+
color: var(--pf-alert-danger-foreground);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pf-alert__icon {
|
|
35
|
+
align-items: center;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
font-size: var(--font-size-lg);
|
|
38
|
+
height: 1em;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
line-height: 1;
|
|
41
|
+
margin-top: 1px;
|
|
42
|
+
width: 1em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pf-alert__content {
|
|
46
|
+
display: grid;
|
|
47
|
+
gap: var(--space-1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pf-alert__title {
|
|
51
|
+
font-size: var(--font-size-sm);
|
|
52
|
+
font-weight: var(--font-weight-semibold);
|
|
53
|
+
line-height: 1.3;
|
|
54
|
+
margin: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.pf-alert__description {
|
|
58
|
+
font-size: var(--font-size-sm);
|
|
59
|
+
line-height: 1.4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pf-alert__description p {
|
|
63
|
+
margin: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pf-alert__dismiss {
|
|
67
|
+
align-items: center;
|
|
68
|
+
background: transparent;
|
|
69
|
+
border: 0;
|
|
70
|
+
border-radius: var(--radius-sm);
|
|
71
|
+
color: currentColor;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
font-size: var(--font-size-md);
|
|
75
|
+
justify-content: center;
|
|
76
|
+
margin-left: auto;
|
|
77
|
+
padding: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pf-alert__dismiss:focus-visible {
|
|
81
|
+
box-shadow: var(--pf-alert-focus-ring, var(--pf-focus-ring));
|
|
82
|
+
outline: none;
|
|
83
|
+
}
|
|
@@ -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 './Alert.css';/* empty css */
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Alert/Alert.tsx
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.pf-avatar {
|
|
2
|
+
--pf-avatar-status-size: 10px;
|
|
3
|
+
--pf-avatar-status-offset: -2px;
|
|
4
|
+
|
|
5
|
+
background: var(--pf-avatar-bg, var(--pf-surface-subtle));
|
|
6
|
+
border: 1px solid var(--pf-avatar-border, var(--pf-surface-border));
|
|
7
|
+
border-radius: var(--radius-full);
|
|
8
|
+
color: var(--pf-avatar-text);
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
font-weight: var(--font-weight-semibold);
|
|
11
|
+
justify-content: center;
|
|
12
|
+
overflow: visible;
|
|
13
|
+
position: relative;
|
|
14
|
+
text-transform: uppercase;
|
|
15
|
+
user-select: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pf-avatar--sm {
|
|
19
|
+
--pf-avatar-status-size: 9px;
|
|
20
|
+
--pf-avatar-status-offset: -2px;
|
|
21
|
+
|
|
22
|
+
font-size: var(--font-size-2xs);
|
|
23
|
+
height: 24px;
|
|
24
|
+
width: 24px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.pf-avatar--md {
|
|
28
|
+
--pf-avatar-status-size: 10px;
|
|
29
|
+
--pf-avatar-status-offset: -2px;
|
|
30
|
+
|
|
31
|
+
font-size: var(--font-size-xs);
|
|
32
|
+
height: 32px;
|
|
33
|
+
width: 32px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.pf-avatar--lg {
|
|
37
|
+
--pf-avatar-status-size: 12px;
|
|
38
|
+
--pf-avatar-status-offset: -2px;
|
|
39
|
+
|
|
40
|
+
font-size: var(--font-size-sm);
|
|
41
|
+
height: 40px;
|
|
42
|
+
width: 40px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pf-avatar--xl {
|
|
46
|
+
--pf-avatar-status-size: 14px;
|
|
47
|
+
--pf-avatar-status-offset: -1px;
|
|
48
|
+
|
|
49
|
+
font-size: var(--font-size-md);
|
|
50
|
+
height: 56px;
|
|
51
|
+
width: 56px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pf-avatar__image {
|
|
55
|
+
border-radius: inherit;
|
|
56
|
+
display: block;
|
|
57
|
+
height: 100%;
|
|
58
|
+
object-fit: cover;
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pf-avatar__fallback {
|
|
63
|
+
align-items: center;
|
|
64
|
+
border-radius: inherit;
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
height: 100%;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
line-height: 1;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pf-avatar__status {
|
|
73
|
+
border: 2px solid var(--pf-avatar-status-border);
|
|
74
|
+
border-radius: var(--radius-full);
|
|
75
|
+
top: var(--pf-avatar-status-offset);
|
|
76
|
+
height: var(--pf-avatar-status-size, 10px);
|
|
77
|
+
position: absolute;
|
|
78
|
+
right: var(--pf-avatar-status-offset);
|
|
79
|
+
width: var(--pf-avatar-status-size, 10px);
|
|
80
|
+
z-index: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.pf-avatar__status--online {
|
|
84
|
+
background: var(--pf-avatar-status-online);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pf-avatar__status--away {
|
|
88
|
+
background: var(--pf-avatar-status-away);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.pf-avatar__status--busy {
|
|
92
|
+
background: var(--pf-avatar-status-busy);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.pf-avatar__status--offline {
|
|
96
|
+
background: var(--pf-avatar-status-offline);
|
|
97
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.pf-badge {
|
|
2
|
+
align-items: center;
|
|
3
|
+
border-radius: var(--radius-full);
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
font-size: var(--font-size-xs);
|
|
6
|
+
font-weight: var(--font-weight-medium);
|
|
7
|
+
line-height: 1;
|
|
8
|
+
min-height: 22px;
|
|
9
|
+
padding: 0 var(--space-2);
|
|
10
|
+
}
|
|
11
|
+
.pf-badge--neutral {
|
|
12
|
+
background: var(--pf-badge-neutral-background, var(--color-gray-100));
|
|
13
|
+
color: var(--pf-badge-neutral-foreground, var(--color-gray-700));
|
|
14
|
+
}
|
|
15
|
+
.pf-badge--brand {
|
|
16
|
+
background: var(--pf-badge-brand-background, var(--color-brand-100));
|
|
17
|
+
color: var(--pf-badge-brand-foreground, var(--color-brand-700));
|
|
18
|
+
}
|
|
19
|
+
.pf-badge--success {
|
|
20
|
+
background: var(--pf-badge-success-background, var(--color-semantic-status-success-background));
|
|
21
|
+
color: var(--pf-badge-success-foreground, var(--color-semantic-status-success-foreground));
|
|
22
|
+
}
|
|
23
|
+
.pf-badge--warning {
|
|
24
|
+
background: var(--pf-badge-warning-background, var(--color-semantic-status-warning-background));
|
|
25
|
+
color: var(--pf-badge-warning-foreground, var(--color-semantic-status-warning-foreground));
|
|
26
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
.pf-badge-group {
|
|
2
|
+
align-items: center;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
font-size: var(--font-size-xs);
|
|
5
|
+
font-weight: var(--font-weight-medium);
|
|
6
|
+
line-height: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pf-badge-group__badge,
|
|
10
|
+
.pf-badge-group__text {
|
|
11
|
+
border: 1px solid;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
min-height: 24px;
|
|
14
|
+
padding: 0 var(--space-2);
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pf-badge-group__badge {
|
|
19
|
+
align-items: center;
|
|
20
|
+
border-radius: var(--radius-full);
|
|
21
|
+
z-index: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pf-badge-group__text {
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pf-badge-group--leading .pf-badge-group__text {
|
|
29
|
+
margin-left: -1px;
|
|
30
|
+
padding-left: calc(var(--space-2) + 2px);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pf-badge-group--trailing .pf-badge-group__text {
|
|
34
|
+
margin-right: -1px;
|
|
35
|
+
padding-right: calc(var(--space-2) + 2px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pf-badge-group--leading .pf-badge-group__badge {
|
|
39
|
+
border-radius: var(--radius-full) 0 0 var(--radius-full);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pf-badge-group--leading .pf-badge-group__text {
|
|
43
|
+
border-radius: 0 var(--radius-full) var(--radius-full) 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pf-badge-group--trailing .pf-badge-group__text {
|
|
47
|
+
border-radius: var(--radius-full) 0 0 var(--radius-full);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pf-badge-group--trailing .pf-badge-group__badge {
|
|
51
|
+
border-radius: 0 var(--radius-full) var(--radius-full) 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pf-badge-group__badge--gray {
|
|
55
|
+
background: var(--pf-badgegroup-gray-100);
|
|
56
|
+
border-color: var(--pf-badgegroup-gray-200);
|
|
57
|
+
color: var(--pf-badgegroup-gray-700);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pf-badge-group__badge--brand {
|
|
61
|
+
background: var(--pf-badgegroup-brand-100);
|
|
62
|
+
border-color: var(--pf-badgegroup-brand-300);
|
|
63
|
+
color: var(--pf-badgegroup-brand-700);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pf-badge-group__badge--error {
|
|
67
|
+
background: var(--pf-badgegroup-danger-bg);
|
|
68
|
+
border-color: var(--pf-badgegroup-danger-border);
|
|
69
|
+
color: var(--pf-badgegroup-danger-text);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pf-badge-group__badge--warning {
|
|
73
|
+
background: var(--pf-badgegroup-warning-bg);
|
|
74
|
+
border-color: var(--pf-badgegroup-warning-border);
|
|
75
|
+
color: var(--pf-badgegroup-warning-text);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.pf-badge-group__badge--success {
|
|
79
|
+
background: var(--pf-badgegroup-success-bg);
|
|
80
|
+
border-color: var(--pf-badgegroup-success-border);
|
|
81
|
+
color: var(--pf-badgegroup-success-text);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.pf-badge-group__text--pill {
|
|
85
|
+
background: var(--pf-badgegroup-surface-bg, var(--pf-surface-bg));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.pf-badge-group__text--modern {
|
|
89
|
+
background: var(--pf-badgegroup-surface-subtle, var(--pf-surface-subtle));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.pf-badge-group__text--gray {
|
|
93
|
+
border-color: var(--pf-badgegroup-gray-200);
|
|
94
|
+
color: var(--pf-badgegroup-gray-700);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.pf-badge-group__text--brand {
|
|
98
|
+
border-color: var(--pf-badgegroup-brand-300);
|
|
99
|
+
color: var(--pf-badgegroup-brand-700);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pf-badge-group__text--error {
|
|
103
|
+
border-color: var(--pf-badgegroup-danger-border);
|
|
104
|
+
color: var(--pf-badgegroup-danger-text);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.pf-badge-group__text--warning {
|
|
108
|
+
border-color: var(--pf-badgegroup-warning-border);
|
|
109
|
+
color: var(--pf-badgegroup-warning-text);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pf-badge-group__text--success {
|
|
113
|
+
border-color: var(--pf-badgegroup-success-border);
|
|
114
|
+
color: var(--pf-badgegroup-success-text);
|
|
115
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './BadgeGroup.css';/* empty css */
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/BadgeGroup/BadgeGroup.tsx
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.pf-breadcrumbs {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.pf-breadcrumbs__list {
|
|
6
|
+
align-items: center;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
gap: var(--space-2);
|
|
10
|
+
list-style: none;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pf-breadcrumbs__item {
|
|
16
|
+
align-items: center;
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
gap: var(--space-2);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pf-breadcrumbs__link {
|
|
22
|
+
color: var(--pf-breadcrumbs-link-color);
|
|
23
|
+
font-size: var(--font-size-sm);
|
|
24
|
+
line-height: 1.4;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pf-breadcrumbs__link:hover {
|
|
29
|
+
color: var(--pf-breadcrumbs-link-hover-color);
|
|
30
|
+
text-decoration: underline;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pf-breadcrumbs__link--current,
|
|
34
|
+
.pf-breadcrumbs__link[aria-current='page'] {
|
|
35
|
+
color: var(--pf-breadcrumbs-link-current-color);
|
|
36
|
+
font-weight: var(--font-weight-medium);
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pf-breadcrumbs__separator {
|
|
41
|
+
color: var(--pf-breadcrumbs-separator-color);
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
font-size: var(--font-size-xs);
|
|
44
|
+
line-height: 1;
|
|
45
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './Breadcrumbs.css';/* empty css */
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.pf-button {
|
|
2
|
+
align-items: center;
|
|
3
|
+
border: 1px solid transparent;
|
|
4
|
+
border-radius: var(--radius-md);
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
font-family: inherit;
|
|
8
|
+
font-weight: var(--font-weight-semibold);
|
|
9
|
+
gap: var(--space-2);
|
|
10
|
+
justify-content: center;
|
|
11
|
+
line-height: 1;
|
|
12
|
+
min-height: 40px;
|
|
13
|
+
text-decoration: none;
|
|
14
|
+
transition:
|
|
15
|
+
background-color 120ms ease,
|
|
16
|
+
border-color 120ms ease,
|
|
17
|
+
color 120ms ease,
|
|
18
|
+
box-shadow 120ms ease;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pf-button:focus-visible {
|
|
22
|
+
box-shadow: var(--pf-button-focus-ring, var(--pf-focus-ring));
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pf-button:disabled {
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
opacity: 0.55;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pf-button--sm {
|
|
32
|
+
font-size: var(--font-size-sm);
|
|
33
|
+
min-height: 36px;
|
|
34
|
+
padding: 0 var(--space-3);
|
|
35
|
+
}
|
|
36
|
+
.pf-button--md {
|
|
37
|
+
font-size: var(--font-size-md);
|
|
38
|
+
min-height: 40px;
|
|
39
|
+
padding: 0 var(--space-4);
|
|
40
|
+
}
|
|
41
|
+
.pf-button--lg {
|
|
42
|
+
font-size: var(--font-size-lg);
|
|
43
|
+
min-height: 48px;
|
|
44
|
+
padding: 0 var(--space-5);
|
|
45
|
+
}
|
|
46
|
+
.pf-button--full {
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pf-button--primary {
|
|
51
|
+
background: var(--pf-button-primary-bg);
|
|
52
|
+
color: var(--pf-button-primary-text);
|
|
53
|
+
}
|
|
54
|
+
.pf-button--primary:hover:not(:disabled) {
|
|
55
|
+
background: var(--pf-button-primary-bg-hover);
|
|
56
|
+
}
|
|
57
|
+
.pf-button--secondary {
|
|
58
|
+
background: var(--pf-button-secondary-bg);
|
|
59
|
+
border-color: var(--pf-button-secondary-border);
|
|
60
|
+
color: var(--pf-button-secondary-text);
|
|
61
|
+
}
|
|
62
|
+
.pf-button--secondary:hover:not(:disabled) {
|
|
63
|
+
background: var(--pf-button-secondary-bg-hover);
|
|
64
|
+
border-color: var(--pf-button-secondary-border-hover);
|
|
65
|
+
}
|
|
66
|
+
.pf-button--ghost {
|
|
67
|
+
background: transparent;
|
|
68
|
+
color: var(--pf-button-ghost-text);
|
|
69
|
+
}
|
|
70
|
+
.pf-button--ghost:hover:not(:disabled) {
|
|
71
|
+
background: var(--pf-button-ghost-bg-hover);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.pf-button--loading:disabled {
|
|
75
|
+
cursor: wait;
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pf-button__spinner {
|
|
80
|
+
animation: pf-spin 0.65s linear infinite;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (prefers-reduced-motion: reduce) {
|
|
85
|
+
.pf-button {
|
|
86
|
+
transition: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pf-button__spinner {
|
|
90
|
+
animation-duration: 0.01ms;
|
|
91
|
+
animation-iteration-count: 1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.pf-button-group {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
align-items: stretch;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pf-button-group__button {
|
|
8
|
+
align-items: center;
|
|
9
|
+
background: var(--pf-buttongroup-bg);
|
|
10
|
+
border: 1px solid var(--pf-buttongroup-border);
|
|
11
|
+
color: var(--pf-buttongroup-text);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
gap: var(--space-2);
|
|
15
|
+
justify-content: center;
|
|
16
|
+
line-height: 1;
|
|
17
|
+
margin-left: -1px;
|
|
18
|
+
min-height: 40px;
|
|
19
|
+
padding: 0 var(--space-4);
|
|
20
|
+
position: relative;
|
|
21
|
+
transition:
|
|
22
|
+
background-color 120ms ease,
|
|
23
|
+
border-color 120ms ease,
|
|
24
|
+
color 120ms ease,
|
|
25
|
+
box-shadow 120ms ease;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pf-button-group__button:first-child {
|
|
29
|
+
border-bottom-left-radius: var(--radius-md);
|
|
30
|
+
border-top-left-radius: var(--radius-md);
|
|
31
|
+
margin-left: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pf-button-group__button:last-child {
|
|
35
|
+
border-bottom-right-radius: var(--radius-md);
|
|
36
|
+
border-top-right-radius: var(--radius-md);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pf-button-group__button:focus-visible {
|
|
40
|
+
box-shadow: var(--pf-buttongroup-focus-ring, var(--pf-focus-ring));
|
|
41
|
+
outline: none;
|
|
42
|
+
z-index: 2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pf-button-group__button:hover:not(:disabled):not(.pf-button-group__button--selected) {
|
|
46
|
+
background: var(--pf-buttongroup-bg-subtle);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pf-button-group__button--selected {
|
|
50
|
+
background: var(--pf-buttongroup-action-primary);
|
|
51
|
+
border-color: var(--pf-buttongroup-action-primary);
|
|
52
|
+
color: var(--pf-buttongroup-action-primary-text);
|
|
53
|
+
z-index: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pf-button-group__button--selected:hover:not(:disabled) {
|
|
57
|
+
background: var(--pf-buttongroup-action-primary-hover);
|
|
58
|
+
border-color: var(--pf-buttongroup-action-primary-hover);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.pf-button-group__button:disabled {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
opacity: 0.55;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pf-button-group__button:disabled:hover {
|
|
67
|
+
background: var(--pf-buttongroup-bg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.pf-button-group__button--selected:disabled:hover {
|
|
71
|
+
background: var(--pf-buttongroup-action-primary);
|
|
72
|
+
border-color: var(--pf-buttongroup-action-primary);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pf-button-group__icon {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pf-button-group__icon svg {
|
|
81
|
+
display: block;
|
|
82
|
+
height: 16px;
|
|
83
|
+
width: 16px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.pf-button-group__dot {
|
|
87
|
+
background: var(--pf-buttongroup-action-primary);
|
|
88
|
+
border-radius: 999px;
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
height: 8px;
|
|
91
|
+
width: 8px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.pf-button-group__button--selected .pf-button-group__dot {
|
|
95
|
+
background: var(--pf-buttongroup-dot-selected);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.pf-button-group__label {
|
|
99
|
+
font: inherit;
|
|
100
|
+
font-weight: var(--font-weight-semibold);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (prefers-reduced-motion: reduce) {
|
|
104
|
+
.pf-button-group__button {
|
|
105
|
+
transition: none;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cx } from "
|
|
2
|
-
|
|
1
|
+
import { cx } from "../../utils/cx.js";
|
|
2
|
+
import './ButtonGroup.css';/* empty css */
|
|
3
3
|
import { forwardRef, useMemo, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/ButtonGroup/ButtonGroup.tsx
|