@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.
Files changed (154) hide show
  1. package/README.md +20 -5
  2. package/dist/components/Accordion/Accordion.css +85 -0
  3. package/dist/components/Accordion/Accordion2.js +96 -0
  4. package/dist/components/Alert/Alert.css +111 -0
  5. package/dist/{index8.js → components/Alert/Alert2.js} +7 -5
  6. package/dist/components/Avatar/Avatar.css +97 -0
  7. package/dist/{index10.js → components/Avatar/Avatar2.js} +2 -2
  8. package/dist/components/Badge/Badge.css +26 -0
  9. package/dist/{index23.js → components/Badge/Badge2.js} +2 -2
  10. package/dist/components/BadgeGroup/BadgeGroup.css +115 -0
  11. package/dist/{index14.js → components/BadgeGroup/BadgeGroup2.js} +2 -2
  12. package/dist/components/Breadcrumbs/Breadcrumbs.css +45 -0
  13. package/dist/{index18.js → components/Breadcrumbs/Breadcrumbs2.js} +2 -2
  14. package/dist/components/Button/Button.css +93 -0
  15. package/dist/{index12.js → components/Button/Button2.js} +2 -2
  16. package/dist/components/ButtonGroup/ButtonGroup.css +107 -0
  17. package/dist/{index16.js → components/ButtonGroup/ButtonGroup2.js} +2 -2
  18. package/dist/components/Calendar/Calendar.css +144 -0
  19. package/dist/{index40.js → components/Calendar/Calendar2.js} +4 -4
  20. package/dist/components/Card/Card.css +23 -0
  21. package/dist/{index25.js → components/Card/Card2.js} +2 -2
  22. package/dist/components/Carousel/Carousel.css +124 -0
  23. package/dist/components/Carousel/Carousel2.js +147 -0
  24. package/dist/components/Checkbox/Checkbox.css +62 -0
  25. package/dist/{index29.js → components/Checkbox/Checkbox2.js} +2 -2
  26. package/dist/components/CodeSnippet/CodeSnippet.css +155 -0
  27. package/dist/{index46.js → components/CodeSnippet/CodeSnippet2.js} +6 -6
  28. package/dist/components/ContentDivider/ContentDivider.css +38 -0
  29. package/dist/{index48.js → components/ContentDivider/ContentDivider2.js} +2 -2
  30. package/dist/components/CreditCard/CreditCard.css +139 -0
  31. package/dist/{index27.js → components/CreditCard/CreditCard2.js} +2 -2
  32. package/dist/components/DatePicker/DatePicker.css +91 -0
  33. package/dist/{index50.js → components/DatePicker/DatePicker2.js} +9 -9
  34. package/dist/components/Dropdown/Dropdown.css +149 -0
  35. package/dist/{index38.js → components/Dropdown/Dropdown2.js} +8 -9
  36. package/dist/components/EmptyState/EmptyState.css +72 -0
  37. package/dist/{index52.js → components/EmptyState/EmptyState2.js} +3 -3
  38. package/dist/components/FileUploader/FileUploader.css +135 -0
  39. package/dist/{index54.js → components/FileUploader/FileUploader2.js} +4 -4
  40. package/dist/components/GaugeChart/GaugeChart.css +63 -0
  41. package/dist/components/GaugeChart/GaugeChart2.js +74 -0
  42. package/dist/components/HeaderNavigation/HeaderNavigation.css +87 -0
  43. package/dist/{index56.js → components/HeaderNavigation/HeaderNavigation2.js} +2 -2
  44. package/dist/components/Heatmap/Heatmap.css +100 -0
  45. package/dist/components/Heatmap/Heatmap2.js +160 -0
  46. package/dist/components/Icon/Icon.css +6 -0
  47. package/dist/{index6.js → components/Icon/Icon2.js} +2 -2
  48. package/dist/components/InlineCTA/InlineCTA.css +144 -0
  49. package/dist/{index58.js → components/InlineCTA/InlineCTA2.js} +17 -5
  50. package/dist/components/Input/Input.css +75 -0
  51. package/dist/{index21.js → components/Input/Input2.js} +3 -3
  52. package/dist/components/LineBarCharts/LineBarChart.css +122 -0
  53. package/dist/{index60.js → components/LineBarCharts/LineBarChart2.js} +11 -3
  54. package/dist/components/LoadingIndicators/LoadingIndicators.css +107 -0
  55. package/dist/{index62.js → components/LoadingIndicators/LoadingIndicators2.js} +2 -2
  56. package/dist/components/Metrics/Metrics.css +106 -0
  57. package/dist/{index64.js → components/Metrics/Metrics2.js} +3 -3
  58. package/dist/components/Modal/Modal.css +198 -0
  59. package/dist/{index66.js → components/Modal/Modal2.js} +11 -9
  60. package/dist/components/MultiSelect/MultiSelect.css +174 -0
  61. package/dist/{index68.js → components/MultiSelect/MultiSelect2.js} +11 -12
  62. package/dist/components/Notification/Notification.css +242 -0
  63. package/dist/{index70.js → components/Notification/Notification2.js} +7 -5
  64. package/dist/components/PageHeader/PageHeader.css +85 -0
  65. package/dist/{index72.js → components/PageHeader/PageHeader2.js} +3 -3
  66. package/dist/components/Pagination/Pagination.css +101 -0
  67. package/dist/{index74.js → components/Pagination/Pagination2.js} +2 -2
  68. package/dist/components/PieChart/PieChart.css +115 -0
  69. package/dist/{index76.js → components/PieChart/PieChart2.js} +3 -3
  70. package/dist/components/ProgressIndicators/ProgressIndicators.css +95 -0
  71. package/dist/{index78.js → components/ProgressIndicators/ProgressIndicators2.js} +6 -3
  72. package/dist/components/ProgressSteps/ProgressSteps.css +175 -0
  73. package/dist/{index80.js → components/ProgressSteps/ProgressSteps2.js} +2 -2
  74. package/dist/components/RadarChart/RadarChart.css +119 -0
  75. package/dist/{index82.js → components/RadarChart/RadarChart2.js} +21 -15
  76. package/dist/components/RadioButton/RadioButton.css +21 -0
  77. package/dist/{index84.js → components/RadioButton/RadioButton2.js} +2 -2
  78. package/dist/components/RadioGroup/RadioGroup.css +64 -0
  79. package/dist/{index86.js → components/RadioGroup/RadioGroup2.js} +2 -2
  80. package/dist/components/Rating/Rating.css +91 -0
  81. package/dist/{index88.js → components/Rating/Rating2.js} +3 -3
  82. package/dist/components/RichTextEditor/RichTextEditor.css +94 -0
  83. package/dist/{index90.js → components/RichTextEditor/RichTextEditor2.js} +4 -4
  84. package/dist/components/SectionFooter/SectionFooter.css +59 -0
  85. package/dist/{index92.js → components/SectionFooter/SectionFooter2.js} +2 -2
  86. package/dist/components/SectionHeader/SectionHeader.css +78 -0
  87. package/dist/{index94.js → components/SectionHeader/SectionHeader2.js} +2 -2
  88. package/dist/components/Select/Select.css +156 -0
  89. package/dist/{index102.js → components/Select/Select2.js} +11 -12
  90. package/dist/components/SidebarNavigation/SidebarNavigation.css +116 -0
  91. package/dist/{index96.js → components/SidebarNavigation/SidebarNavigation2.js} +2 -2
  92. package/dist/components/SlideoutMenu/SlideoutMenu.css +161 -0
  93. package/dist/{index98.js → components/SlideoutMenu/SlideoutMenu2.js} +3 -3
  94. package/dist/components/Slider/Slider.css +106 -0
  95. package/dist/{index104.js → components/Slider/Slider2.js} +2 -2
  96. package/dist/components/Sparkline/Sparkline.css +65 -0
  97. package/dist/components/Sparkline/Sparkline2.js +100 -0
  98. package/dist/components/Switch/Switch.css +59 -0
  99. package/dist/{index100.js → components/Switch/Switch2.js} +2 -2
  100. package/dist/components/Table/Table.css +126 -0
  101. package/dist/{index108.js → components/Table/Table2.js} +2 -2
  102. package/dist/components/Tabs/Tabs.css +138 -0
  103. package/dist/{index110.js → components/Tabs/Tabs2.js} +53 -6
  104. package/dist/components/Tag/Tag.css +64 -0
  105. package/dist/{index106.js → components/Tag/Tag2.js} +3 -3
  106. package/dist/components/Textarea/Textarea.css +52 -0
  107. package/dist/{index112.js → components/Textarea/Textarea2.js} +3 -3
  108. package/dist/components/Tooltip/Tooltip.css +61 -0
  109. package/dist/{index114.js → components/Tooltip/Tooltip2.js} +6 -6
  110. package/dist/components/TreeView/TreeView.css +109 -0
  111. package/dist/{index116.js → components/TreeView/TreeView2.js} +2 -2
  112. package/dist/components/UtilityButton/UtilityButton.css +90 -0
  113. package/dist/{index118.js → components/UtilityButton/UtilityButton2.js} +2 -2
  114. package/dist/components/VideoPlayer/VideoPlayer.css +41 -0
  115. package/dist/{index120.js → components/VideoPlayer/VideoPlayer2.js} +2 -2
  116. package/dist/{index33.js → hooks/useDisclosure.js} +1 -1
  117. package/dist/hooks/useExitAnimation.js +25 -0
  118. package/dist/{index34.js → hooks/useFocusTrap.js} +1 -1
  119. package/dist/hooks/usePresence.js +31 -0
  120. package/dist/index.cjs +1030 -4720
  121. package/dist/index.js +69 -63
  122. package/dist/src/components/Accordion/Accordion.d.ts +20 -0
  123. package/dist/src/components/Accordion/Accordion.test.d.ts +1 -0
  124. package/dist/src/components/Accordion/index.d.ts +1 -0
  125. package/dist/src/components/GaugeChart/GaugeChart.d.ts +17 -0
  126. package/dist/src/components/GaugeChart/GaugeChart.test.d.ts +1 -0
  127. package/dist/src/components/GaugeChart/index.d.ts +1 -0
  128. package/dist/src/components/Heatmap/Heatmap.d.ts +28 -0
  129. package/dist/src/components/Heatmap/Heatmap.test.d.ts +1 -0
  130. package/dist/src/components/Heatmap/index.d.ts +1 -0
  131. package/dist/src/components/InlineCTA/InlineCTA.d.ts +2 -0
  132. package/dist/src/components/LineBarCharts/LineBarChart.d.ts +2 -0
  133. package/dist/src/components/Sparkline/Sparkline.d.ts +17 -0
  134. package/dist/src/components/Sparkline/Sparkline.test.d.ts +1 -0
  135. package/dist/src/components/Sparkline/index.d.ts +1 -0
  136. package/dist/src/hooks/index.d.ts +2 -0
  137. package/dist/src/hooks/useExitAnimation.d.ts +18 -0
  138. package/dist/src/hooks/usePresence.d.ts +13 -0
  139. package/dist/src/index.d.ts +4 -0
  140. package/dist/styles/theme.css +813 -0
  141. package/dist/styles.css +881 -68
  142. package/dist/{index19.js → utils/FieldWrapper.js} +1 -1
  143. package/package.json +8 -4
  144. package/theme.starter.css +58 -0
  145. package/dist/index42.js +0 -134
  146. package/dist/index43.js +0 -16
  147. package/dist/index44.js +0 -4232
  148. /package/dist/{index3.js → a11y/index.js} +0 -0
  149. /package/dist/{index30.js → hooks/useAnchoredPosition.js} +0 -0
  150. /package/dist/{index31.js → hooks/useComposedRefs.js} +0 -0
  151. /package/dist/{index32.js → hooks/useControllableState.js} +0 -0
  152. /package/dist/{index35.js → hooks/useListNavigation.js} +0 -0
  153. /package/dist/{index36.js → hooks/useOutsideInteraction.js} +0 -0
  154. /package/dist/{index4.js → utils/cx.js} +0 -0
@@ -0,0 +1,149 @@
1
+ .pf-dropdown {
2
+ display: inline-flex;
3
+ }
4
+
5
+ .pf-dropdown__trigger {
6
+ align-items: center;
7
+ background: var(--pf-dropdown-button-secondary-bg, var(--pf-button-secondary-bg));
8
+ border: 1px solid var(--pf-dropdown-button-secondary-border, var(--pf-button-secondary-border));
9
+ border-radius: var(--radius-md);
10
+ color: var(--pf-dropdown-button-secondary-text, var(--pf-button-secondary-text));
11
+ cursor: pointer;
12
+ display: inline-flex;
13
+ gap: var(--space-2);
14
+ min-height: 36px;
15
+ padding: 0 var(--space-3);
16
+ }
17
+
18
+ .pf-dropdown__trigger:hover:not(:disabled) {
19
+ background: var(--pf-dropdown-button-secondary-bg-hover, var(--pf-button-secondary-bg-hover));
20
+ border-color: var(
21
+ --pf-dropdown-button-secondary-border-hover,
22
+ var(--pf-button-secondary-border-hover)
23
+ );
24
+ }
25
+
26
+ .pf-dropdown__trigger:focus-visible {
27
+ box-shadow: var(--pf-dropdown-focus-ring, var(--pf-focus-ring));
28
+ outline: none;
29
+ }
30
+
31
+ .pf-dropdown__trigger:disabled,
32
+ .pf-dropdown__trigger[aria-disabled='true'] {
33
+ background: var(--pf-dropdown-button-secondary-bg-disabled, #f5f5f5);
34
+ border-color: var(--pf-dropdown-button-secondary-border-disabled, #e0e0e0);
35
+ color: var(--pf-dropdown-button-secondary-text-disabled, #b0b0b0);
36
+ cursor: not-allowed;
37
+ opacity: 0.6;
38
+ }
39
+
40
+ .pf-dropdown__chevron {
41
+ color: var(--pf-dropdown-text-muted);
42
+ display: inline-flex;
43
+ height: var(--pf-dropdown-icon-size);
44
+ transition: transform var(--pf-transition-fast);
45
+ width: var(--pf-dropdown-icon-size);
46
+ }
47
+
48
+ .pf-dropdown__chevron svg {
49
+ height: var(--pf-dropdown-icon-size);
50
+ width: var(--pf-dropdown-icon-size);
51
+ }
52
+
53
+ .pf-dropdown__chevron--open {
54
+ transform: rotate(180deg);
55
+ }
56
+
57
+ .pf-dropdown__menu {
58
+ background: var(--pf-dropdown-surface-bg, var(--pf-surface-bg));
59
+ border: 1px solid var(--pf-dropdown-surface-border, var(--pf-surface-border));
60
+ border-radius: var(--radius-md);
61
+ box-shadow: var(--shadow-md);
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: var(--pf-dropdown-menu-gap);
65
+ padding: var(--space-1);
66
+ position: fixed;
67
+ z-index: 1000;
68
+ transform-origin: top center;
69
+ animation: pf-dropdown-menu-in var(--duration-fast) var(--easing-decelerate);
70
+ }
71
+
72
+ @keyframes pf-dropdown-menu-in {
73
+ from {
74
+ opacity: 0;
75
+ transform: translateY(-4px) scale(0.97);
76
+ }
77
+ to {
78
+ opacity: 1;
79
+ transform: translateY(0) scale(1);
80
+ }
81
+ }
82
+
83
+ .pf-dropdown__item {
84
+ align-items: center;
85
+ background: transparent;
86
+ border: 0;
87
+ border-radius: var(--radius-sm);
88
+ color: var(--pf-dropdown-text);
89
+ cursor: pointer;
90
+ display: inline-flex;
91
+ font: inherit;
92
+ justify-content: space-between;
93
+ min-height: 34px;
94
+ padding: 0 var(--space-2);
95
+ text-align: start;
96
+ width: 100%;
97
+ }
98
+
99
+ .pf-dropdown__item-left {
100
+ align-items: center;
101
+ display: inline-flex;
102
+ gap: var(--space-2);
103
+ }
104
+
105
+ .pf-dropdown__item-icon {
106
+ color: var(--pf-dropdown-text-muted);
107
+ display: inline-flex;
108
+ height: var(--pf-dropdown-icon-size);
109
+ width: var(--pf-dropdown-icon-size);
110
+ }
111
+
112
+ .pf-dropdown__item-icon svg {
113
+ height: var(--pf-dropdown-icon-size);
114
+ width: var(--pf-dropdown-icon-size);
115
+ }
116
+
117
+ .pf-dropdown__item-shortcut {
118
+ color: var(--pf-dropdown-text-muted);
119
+ font-size: var(--font-size-xs);
120
+ }
121
+
122
+ .pf-dropdown__item:hover:not(:disabled),
123
+ .pf-dropdown__item--active {
124
+ background: var(--pf-dropdown-surface-subtle, var(--pf-surface-subtle));
125
+ }
126
+
127
+ .pf-dropdown__item--destructive {
128
+ color: var(--pf-dropdown-text-danger);
129
+ }
130
+
131
+ .pf-dropdown__item--destructive .pf-dropdown__item-icon {
132
+ color: var(--pf-dropdown-icon-danger);
133
+ }
134
+
135
+ .pf-dropdown__item:disabled {
136
+ color: var(--pf-dropdown-text-muted);
137
+ cursor: not-allowed;
138
+ opacity: 0.7;
139
+ }
140
+
141
+ @media (prefers-reduced-motion: reduce) {
142
+ .pf-dropdown__chevron {
143
+ transition: none;
144
+ }
145
+
146
+ .pf-dropdown__menu {
147
+ animation: none;
148
+ }
149
+ }
@@ -1,11 +1,11 @@
1
- import { Keys, isActivationKey } from "./index3.js";
2
- import { cx } from "./index4.js";
3
- import { Icon } from "./index6.js";
4
- import { useAnchoredPosition } from "./index30.js";
5
- import { useDisclosure } from "./index33.js";
6
- import { useListNavigation } from "./index35.js";
7
- import { useOutsideInteraction } from "./index36.js";
8
- /* empty css */
1
+ import { Keys, isActivationKey } from "../../a11y/index.js";
2
+ import { useAnchoredPosition } from "../../hooks/useAnchoredPosition.js";
3
+ import { useDisclosure } from "../../hooks/useDisclosure.js";
4
+ import { useListNavigation } from "../../hooks/useListNavigation.js";
5
+ import { useOutsideInteraction } from "../../hooks/useOutsideInteraction.js";
6
+ import { cx } from "../../utils/cx.js";
7
+ import { Icon } from "../Icon/Icon2.js";
8
+ import './Dropdown.css';/* empty css */
9
9
  import { forwardRef, useEffect, useId, useRef } from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { createPortal } from "react-dom";
@@ -85,7 +85,6 @@ var Dropdown = forwardRef(({ label = "Actions", items, align = "start", disabled
85
85
  className: "pf-dropdown__trigger",
86
86
  "aria-haspopup": "menu",
87
87
  "aria-expanded": isOpen,
88
- "aria-controls": isOpen ? menuId : void 0,
89
88
  onClick: () => {
90
89
  disclosure.toggle();
91
90
  },
@@ -0,0 +1,72 @@
1
+ .pf-empty-state {
2
+ align-items: center;
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--space-3);
6
+ padding: var(--space-8);
7
+ text-align: center;
8
+ }
9
+
10
+ .pf-empty-state--sm {
11
+ gap: var(--space-2);
12
+ padding: var(--space-4);
13
+ }
14
+
15
+ .pf-empty-state--lg {
16
+ gap: var(--space-4);
17
+ padding: var(--space-10);
18
+ }
19
+
20
+ .pf-empty-state__icon {
21
+ color: var(--pf-empty-state-icon);
22
+ display: inline-flex;
23
+ font-size: var(--font-size-3xl);
24
+ line-height: 1;
25
+ margin-bottom: var(--space-1);
26
+ }
27
+
28
+ .pf-empty-state--sm .pf-empty-state__icon {
29
+ font-size: var(--font-size-xl);
30
+ margin-bottom: 0;
31
+ }
32
+
33
+ .pf-empty-state--lg .pf-empty-state__icon {
34
+ font-size: var(--font-size-5xl);
35
+ margin-bottom: var(--space-2);
36
+ }
37
+
38
+ .pf-empty-state__heading {
39
+ color: var(--pf-empty-state-text);
40
+ font-size: var(--font-size-md);
41
+ font-weight: var(--font-weight-semibold);
42
+ line-height: 1.3;
43
+ margin: 0;
44
+ }
45
+
46
+ .pf-empty-state--sm .pf-empty-state__heading {
47
+ font-size: var(--font-size-sm);
48
+ }
49
+
50
+ .pf-empty-state--lg .pf-empty-state__heading {
51
+ font-size: var(--font-size-xl);
52
+ }
53
+
54
+ .pf-empty-state__description {
55
+ color: var(--pf-empty-state-text-muted);
56
+ font-size: var(--font-size-sm);
57
+ line-height: 1.5;
58
+ margin: 0;
59
+ max-width: 40ch;
60
+ }
61
+
62
+ .pf-empty-state--lg .pf-empty-state__description {
63
+ font-size: var(--font-size-md);
64
+ max-width: 48ch;
65
+ }
66
+
67
+ .pf-empty-state__action {
68
+ align-items: center;
69
+ display: inline-flex;
70
+ gap: var(--space-2);
71
+ margin-top: var(--space-1);
72
+ }
@@ -1,6 +1,6 @@
1
- import { cx } from "./index4.js";
2
- import { Icon } from "./index6.js";
3
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import { Icon } from "../Icon/Icon2.js";
3
+ import './EmptyState.css';/* empty css */
4
4
  import { forwardRef } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/EmptyState/EmptyState.tsx
@@ -0,0 +1,135 @@
1
+ .pf-file-uploader {
2
+ display: grid;
3
+ gap: var(--space-3);
4
+ }
5
+
6
+ .pf-file-uploader__input {
7
+ display: none;
8
+ }
9
+
10
+ .pf-file-uploader__dropzone {
11
+ align-items: center;
12
+ background: var(--pf-file-uploader-bg);
13
+ border: 1px dashed var(--pf-file-uploader-border);
14
+ border-radius: var(--radius-md);
15
+ color: var(--pf-file-uploader-text);
16
+ cursor: pointer;
17
+ display: grid;
18
+ gap: var(--space-1);
19
+ justify-items: center;
20
+ padding: var(--space-4);
21
+ text-align: center;
22
+ width: 100%;
23
+ }
24
+
25
+ .pf-file-uploader__dropzone:hover:not(:disabled) {
26
+ border-color: var(--pf-file-uploader-border-strong);
27
+ background: var(--pf-file-uploader-bg-subtle);
28
+ }
29
+
30
+ .pf-file-uploader__dropzone:focus-visible {
31
+ box-shadow: var(--pf-fileuploader-focus-ring, var(--pf-focus-ring));
32
+ outline: none;
33
+ }
34
+
35
+ .pf-file-uploader__dropzone--active {
36
+ border-color: var(--pf-file-uploader-active-border);
37
+ box-shadow: inset 0 0 0 1px var(--pf-file-uploader-active-border);
38
+ }
39
+
40
+ .pf-file-uploader__dropzone--invalid {
41
+ border-color: var(--pf-file-uploader-invalid-border);
42
+ }
43
+
44
+ .pf-file-uploader__dropzone:disabled {
45
+ cursor: not-allowed;
46
+ opacity: 0.6;
47
+ }
48
+
49
+ .pf-file-uploader__icon {
50
+ align-items: center;
51
+ background: var(--pf-file-uploader-bg-subtle);
52
+ border: 1px solid var(--pf-file-uploader-border);
53
+ border-radius: 999px;
54
+ color: var(--pf-file-uploader-text-muted);
55
+ display: inline-flex;
56
+ height: 36px;
57
+ justify-content: center;
58
+ width: 36px;
59
+ }
60
+
61
+ .pf-file-uploader__title {
62
+ font-size: var(--font-size-sm);
63
+ font-weight: var(--font-weight-semibold);
64
+ }
65
+
66
+ .pf-file-uploader__subtitle,
67
+ .pf-file-uploader__hint {
68
+ color: var(--pf-file-uploader-text-muted);
69
+ font-size: var(--font-size-xs);
70
+ }
71
+
72
+ .pf-file-uploader__list {
73
+ display: grid;
74
+ gap: var(--space-2);
75
+ list-style: none;
76
+ margin: 0;
77
+ padding: 0;
78
+ }
79
+
80
+ .pf-file-uploader__list-item {
81
+ align-items: center;
82
+ background: var(--pf-file-uploader-bg);
83
+ border: 1px solid var(--pf-file-uploader-border);
84
+ border-radius: var(--radius-sm);
85
+ display: flex;
86
+ justify-content: space-between;
87
+ padding: var(--space-2) var(--space-3);
88
+ }
89
+
90
+ .pf-file-uploader__file-meta {
91
+ display: grid;
92
+ gap: 2px;
93
+ min-width: 0;
94
+ }
95
+
96
+ .pf-file-uploader__file-name {
97
+ color: var(--pf-file-uploader-text);
98
+ font-size: var(--font-size-sm);
99
+ overflow: hidden;
100
+ text-overflow: ellipsis;
101
+ white-space: nowrap;
102
+ }
103
+
104
+ .pf-file-uploader__file-size {
105
+ color: var(--pf-file-uploader-text-muted);
106
+ font-size: var(--font-size-xs);
107
+ }
108
+
109
+ .pf-file-uploader__remove {
110
+ align-items: center;
111
+ background: transparent;
112
+ border: 0;
113
+ border-radius: var(--radius-sm);
114
+ color: var(--pf-file-uploader-text-muted);
115
+ cursor: pointer;
116
+ display: inline-flex;
117
+ height: 24px;
118
+ justify-content: center;
119
+ width: 24px;
120
+ }
121
+
122
+ .pf-file-uploader__remove:hover:not(:disabled) {
123
+ background: var(--pf-file-uploader-bg-subtle);
124
+ color: var(--pf-file-uploader-text);
125
+ }
126
+
127
+ .pf-file-uploader__remove:focus-visible {
128
+ box-shadow: var(--pf-fileuploader-focus-ring, var(--pf-focus-ring));
129
+ outline: none;
130
+ }
131
+
132
+ .pf-file-uploader__remove:disabled {
133
+ cursor: not-allowed;
134
+ opacity: 0.55;
135
+ }
@@ -1,7 +1,7 @@
1
- import { cx } from "./index4.js";
2
- import { Icon } from "./index6.js";
3
- import { FieldWrapper } from "./index19.js";
4
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import { Icon } from "../Icon/Icon2.js";
3
+ import { FieldWrapper } from "../../utils/FieldWrapper.js";
4
+ import './FileUploader.css';/* empty css */
5
5
  import { forwardRef, useId, useMemo, useRef, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/FileUploader/FileUploader.tsx
@@ -0,0 +1,63 @@
1
+ .pf-gauge {
2
+ position: relative;
3
+ display: inline-flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ }
7
+
8
+ .pf-gauge__svg {
9
+ position: absolute;
10
+ inset: 0;
11
+ }
12
+
13
+ .pf-gauge__track {
14
+ stroke: var(--pf-gauge-track-color);
15
+ }
16
+
17
+ .pf-gauge__fill {
18
+ stroke-dashoffset: var(--pf-gauge-offset);
19
+ /* Animate the arc filling from empty to its value on mount, and smoothly
20
+ when the value changes afterward. */
21
+ animation: pf-gauge-fill var(--duration-slow) var(--easing-decelerate);
22
+ transition: stroke-dashoffset var(--pf-transition-medium);
23
+ }
24
+
25
+ @keyframes pf-gauge-fill {
26
+ from {
27
+ stroke-dashoffset: var(--pf-gauge-circumference);
28
+ }
29
+ }
30
+
31
+ @media (prefers-reduced-motion: reduce) {
32
+ .pf-gauge__fill {
33
+ animation: none;
34
+ transition: none;
35
+ }
36
+ }
37
+
38
+ .pf-gauge__center {
39
+ display: flex;
40
+ flex-direction: column;
41
+ align-items: center;
42
+ justify-content: center;
43
+ gap: var(--space-1);
44
+ position: relative;
45
+ z-index: 1;
46
+ padding: var(--space-2);
47
+ border-radius: var(--radius-full);
48
+ background: var(--pf-gauge-center-bg);
49
+ text-align: center;
50
+ }
51
+
52
+ .pf-gauge__label {
53
+ color: var(--pf-gauge-label-color);
54
+ font-size: var(--pf-gauge-label-size);
55
+ font-weight: var(--font-weight-semibold);
56
+ line-height: 1;
57
+ }
58
+
59
+ .pf-gauge__sub-label {
60
+ color: var(--pf-gauge-sub-label-color);
61
+ font-size: var(--font-size-sm);
62
+ line-height: 1;
63
+ }
@@ -0,0 +1,74 @@
1
+ import { cx } from "../../utils/cx.js";
2
+ import './GaugeChart.css';/* empty css */
3
+ import { forwardRef } from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/GaugeChart/GaugeChart.tsx
6
+ var GaugeChart = forwardRef(function GaugeChart({ className, value, max = 100, centerLabel, subLabel, size = 200, strokeWidth = 16, color, style, ...props }, ref) {
7
+ const progress = max > 0 ? Math.min(Math.max(value, 0), max) / max : 0;
8
+ const radius = (size - strokeWidth) / 2;
9
+ const circumference = 2 * Math.PI * radius;
10
+ const offset = circumference - progress * circumference;
11
+ const center = size / 2;
12
+ const pct = Math.round(progress * 100);
13
+ const defaultLabel = `${pct}%`;
14
+ const colorVar = color ?? "var(--pf-gauge-color)";
15
+ return /* @__PURE__ */ jsxs("div", {
16
+ ref,
17
+ className: cx("pf-gauge", className),
18
+ style: {
19
+ width: size,
20
+ height: size,
21
+ ...style
22
+ },
23
+ role: "meter",
24
+ "aria-valuenow": value,
25
+ "aria-valuemin": 0,
26
+ "aria-valuemax": max,
27
+ "aria-label": `${pct}%`,
28
+ ...props,
29
+ children: [/* @__PURE__ */ jsxs("svg", {
30
+ width: size,
31
+ height: size,
32
+ viewBox: `0 0 ${size} ${size}`,
33
+ "aria-hidden": "true",
34
+ className: "pf-gauge__svg",
35
+ children: [/* @__PURE__ */ jsx("circle", {
36
+ cx: center,
37
+ cy: center,
38
+ r: radius,
39
+ fill: "none",
40
+ strokeWidth,
41
+ className: "pf-gauge__track"
42
+ }), /* @__PURE__ */ jsx("circle", {
43
+ cx: center,
44
+ cy: center,
45
+ r: radius,
46
+ fill: "none",
47
+ stroke: colorVar,
48
+ strokeWidth,
49
+ strokeLinecap: "round",
50
+ strokeDasharray: circumference,
51
+ style: {
52
+ transform: "rotate(-90deg)",
53
+ transformOrigin: `${center}px ${center}px`,
54
+ "--pf-gauge-circumference": circumference,
55
+ "--pf-gauge-offset": offset
56
+ },
57
+ className: "pf-gauge__fill"
58
+ })]
59
+ }), /* @__PURE__ */ jsxs("div", {
60
+ className: "pf-gauge__center",
61
+ "aria-hidden": "true",
62
+ children: [/* @__PURE__ */ jsx("span", {
63
+ className: "pf-gauge__label",
64
+ children: centerLabel ?? defaultLabel
65
+ }), subLabel ? /* @__PURE__ */ jsx("span", {
66
+ className: "pf-gauge__sub-label",
67
+ children: subLabel
68
+ }) : null]
69
+ })]
70
+ });
71
+ });
72
+ GaugeChart.displayName = "GaugeChart";
73
+ //#endregion
74
+ export { GaugeChart };
@@ -0,0 +1,87 @@
1
+ .pf-header-navigation {
2
+ background: var(--pf-header-nav-bg);
3
+ border: 1px solid var(--pf-header-nav-border);
4
+ border-radius: var(--radius-md);
5
+ width: 100%;
6
+ }
7
+
8
+ .pf-header-navigation__nav {
9
+ align-items: center;
10
+ display: grid;
11
+ gap: var(--space-3);
12
+ grid-template-columns: 1fr;
13
+ min-height: 56px;
14
+ padding: var(--space-3);
15
+ }
16
+
17
+ @media (min-width: 768px) {
18
+ .pf-header-navigation__nav {
19
+ grid-template-columns: auto 1fr auto;
20
+ padding: 0 var(--space-4);
21
+ }
22
+ }
23
+
24
+ .pf-header-navigation__brand {
25
+ color: var(--pf-header-nav-text);
26
+ font-size: var(--font-size-md);
27
+ font-weight: var(--font-weight-semibold);
28
+ white-space: nowrap;
29
+ }
30
+
31
+ .pf-header-navigation__list {
32
+ align-items: center;
33
+ display: flex;
34
+ gap: var(--space-1);
35
+ list-style: none;
36
+ margin: 0;
37
+ overflow-x: auto;
38
+ padding: 0;
39
+ }
40
+
41
+ .pf-header-navigation__item {
42
+ flex: 0 0 auto;
43
+ }
44
+
45
+ .pf-header-navigation__link {
46
+ align-items: center;
47
+ background: transparent;
48
+ border: 0;
49
+ border-radius: var(--radius-sm);
50
+ color: var(--pf-header-nav-text-muted);
51
+ cursor: pointer;
52
+ display: inline-flex;
53
+ font: inherit;
54
+ min-height: 32px;
55
+ padding: 0 var(--space-2);
56
+ text-decoration: none;
57
+ white-space: nowrap;
58
+ }
59
+
60
+ .pf-header-navigation__link:hover {
61
+ background: var(--pf-header-nav-bg-subtle);
62
+ color: var(--pf-header-nav-text);
63
+ }
64
+
65
+ .pf-header-navigation__link:focus-visible {
66
+ box-shadow: var(--pf-headernavigation-focus-ring, var(--pf-focus-ring));
67
+ outline: none;
68
+ }
69
+
70
+ .pf-header-navigation__link--active {
71
+ background: var(--pf-header-nav-bg-subtle);
72
+ color: var(--pf-header-nav-text);
73
+ font-weight: var(--font-weight-semibold);
74
+ }
75
+
76
+ .pf-header-navigation__actions {
77
+ align-items: center;
78
+ display: inline-flex;
79
+ gap: var(--space-2);
80
+ justify-content: flex-start;
81
+ }
82
+
83
+ @media (min-width: 768px) {
84
+ .pf-header-navigation__actions {
85
+ justify-content: initial;
86
+ }
87
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './HeaderNavigation.css';/* empty css */
3
3
  import { forwardRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/HeaderNavigation/HeaderNavigation.tsx