@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
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './ProgressIndicators.css';/* empty css */
3
3
  import { forwardRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/ProgressIndicators/ProgressIndicators.tsx
@@ -63,7 +63,10 @@ var ProgressCircle = forwardRef(function ProgressCircle({ value, max = 100, size
63
63
  r: radius,
64
64
  strokeWidth,
65
65
  strokeDasharray: circumference,
66
- strokeDashoffset: dashOffset
66
+ style: {
67
+ "--pf-progress-dashoffset": dashOffset,
68
+ "--pf-progress-circ": circumference
69
+ }
67
70
  })]
68
71
  }), showValue ? /* @__PURE__ */ jsxs("span", {
69
72
  className: "pf-progress-circle__value",
@@ -0,0 +1,175 @@
1
+ .pf-progress-steps {
2
+ list-style: none;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ .pf-progress-steps--horizontal {
8
+ --pf-progress-step-gap: var(--space-3);
9
+ display: grid;
10
+ gap: var(--pf-progresssteps-progress-step-gap, var(--pf-progress-step-gap));
11
+ grid-template-columns: 1fr;
12
+ }
13
+
14
+ @media (min-width: 640px) {
15
+ .pf-progress-steps--horizontal {
16
+ --pf-progress-step-gap: var(--space-4);
17
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
18
+ }
19
+ }
20
+
21
+ .pf-progress-steps--vertical {
22
+ display: grid;
23
+ gap: var(--space-3);
24
+ }
25
+
26
+ .pf-progress-steps__item {
27
+ display: flex;
28
+ gap: var(--space-3);
29
+ }
30
+
31
+ .pf-progress-steps__marker-wrap {
32
+ align-items: center;
33
+ display: flex;
34
+ flex: 0 0 auto;
35
+ }
36
+
37
+ .pf-progress-steps--horizontal .pf-progress-steps__marker-wrap {
38
+ flex: 0 0 auto;
39
+ justify-content: center;
40
+ }
41
+
42
+ @media (min-width: 640px) {
43
+ .pf-progress-steps--horizontal .pf-progress-steps__marker-wrap {
44
+ flex: 1;
45
+ position: relative;
46
+ width: 100%;
47
+ }
48
+ }
49
+
50
+ .pf-progress-steps__marker {
51
+ align-items: center;
52
+ background: var(--pf-progress-steps-bg);
53
+ border: 1px solid var(--pf-progress-steps-border);
54
+ border-radius: 999px;
55
+ color: var(--pf-progress-steps-text-muted);
56
+ display: inline-flex;
57
+ flex: 0 0 auto;
58
+ font-size: var(--font-size-xs);
59
+ font-weight: var(--font-weight-semibold);
60
+ height: 28px;
61
+ justify-content: center;
62
+ width: 28px;
63
+ position: relative;
64
+ z-index: 1;
65
+ /* Animate marker as its status changes when the current step advances */
66
+ transition:
67
+ background-color var(--pf-transition-medium),
68
+ border-color var(--pf-transition-medium),
69
+ color var(--pf-transition-medium),
70
+ box-shadow var(--pf-transition-medium);
71
+ }
72
+
73
+ .pf-progress-steps__connector {
74
+ background: var(--pf-progress-steps-border);
75
+ display: block;
76
+ flex: 1;
77
+ margin-inline-start: var(--space-2);
78
+ /* Connector "activates" with a smooth fill as the step completes */
79
+ transition: background-color var(--pf-transition-slow);
80
+ }
81
+
82
+ .pf-progress-steps--horizontal .pf-progress-steps__connector {
83
+ display: none;
84
+ }
85
+
86
+ @media (min-width: 640px) {
87
+ .pf-progress-steps--horizontal .pf-progress-steps__connector {
88
+ display: block;
89
+ height: 1px;
90
+ left: 50%;
91
+ margin-inline-start: 0;
92
+ position: absolute;
93
+ top: 50%;
94
+ transform: translateY(-50%);
95
+ width: calc(100% + var(--pf-progresssteps-progress-step-gap, var(--pf-progress-step-gap)));
96
+ z-index: 0;
97
+ }
98
+ }
99
+
100
+ .pf-progress-steps--horizontal .pf-progress-steps__item {
101
+ align-items: center;
102
+ flex-direction: column;
103
+ gap: var(--space-2);
104
+ }
105
+
106
+ .pf-progress-steps--horizontal .pf-progress-steps__content {
107
+ text-align: center;
108
+ }
109
+
110
+ .pf-progress-steps--vertical .pf-progress-steps__item {
111
+ align-items: flex-start;
112
+ position: relative;
113
+ }
114
+
115
+ .pf-progress-steps--vertical .pf-progress-steps__marker-wrap {
116
+ align-items: center;
117
+ flex-direction: column;
118
+ }
119
+
120
+ .pf-progress-steps--vertical .pf-progress-steps__connector {
121
+ bottom: calc(var(--space-3) * -1);
122
+ inset-inline-start: 14px;
123
+ margin: 0;
124
+ position: absolute;
125
+ top: 28px;
126
+ width: 1px;
127
+ }
128
+
129
+ .pf-progress-steps__content {
130
+ min-width: 0;
131
+ }
132
+
133
+ .pf-progress-steps__title {
134
+ color: var(--pf-progress-steps-text);
135
+ font-size: var(--font-size-sm);
136
+ font-weight: var(--font-weight-semibold);
137
+ margin: var(--space-1) 0 0;
138
+ transition: color var(--pf-transition-medium);
139
+ }
140
+
141
+ .pf-progress-steps__description {
142
+ color: var(--pf-progress-steps-text-muted);
143
+ font-size: var(--font-size-sm);
144
+ line-height: 1.4;
145
+ margin: var(--space-1) 0 0;
146
+ }
147
+
148
+ .pf-progress-steps__item--complete .pf-progress-steps__marker {
149
+ background: var(--pf-progress-steps-complete-bg);
150
+ border-color: var(--pf-progress-steps-complete-border);
151
+ color: var(--pf-progress-steps-complete-text);
152
+ }
153
+
154
+ .pf-progress-steps__item--current .pf-progress-steps__marker {
155
+ background: var(--pf-progress-steps-current-bg);
156
+ border-color: var(--pf-progress-steps-current-border);
157
+ box-shadow: var(--focus-ring-shadow);
158
+ color: var(--pf-progress-steps-current-text);
159
+ }
160
+
161
+ .pf-progress-steps__item--complete .pf-progress-steps__connector {
162
+ background: var(--pf-progress-steps-complete-border);
163
+ }
164
+
165
+ .pf-progress-steps__item--current .pf-progress-steps__title {
166
+ color: var(--pf-progress-steps-current-title);
167
+ }
168
+
169
+ @media (prefers-reduced-motion: reduce) {
170
+ .pf-progress-steps__marker,
171
+ .pf-progress-steps__connector,
172
+ .pf-progress-steps__title {
173
+ transition: none;
174
+ }
175
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './ProgressSteps.css';/* empty css */
3
3
  import { forwardRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/ProgressSteps/ProgressSteps.tsx
@@ -0,0 +1,119 @@
1
+ .pf-radar-chart {
2
+ align-items: stretch;
3
+ display: inline-flex;
4
+ flex-direction: column;
5
+ gap: var(--space-4);
6
+ }
7
+
8
+ @media (min-width: 640px) {
9
+ .pf-radar-chart {
10
+ align-items: center;
11
+ flex-direction: row;
12
+ gap: var(--space-6);
13
+ }
14
+ }
15
+
16
+ .pf-radar-chart__svg {
17
+ display: block;
18
+ height: auto;
19
+ overflow: visible;
20
+ width: min(100%, 320px);
21
+ }
22
+
23
+ .pf-radar-chart__grid {
24
+ fill: none;
25
+ stroke: var(--pf-radar-grid-stroke);
26
+ stroke-width: 1;
27
+ }
28
+
29
+ .pf-radar-chart__axis {
30
+ stroke: var(--pf-radar-axis-stroke);
31
+ stroke-width: 1;
32
+ }
33
+
34
+ .pf-radar-chart__area {
35
+ fill-opacity: 1;
36
+ stroke-width: 2;
37
+ }
38
+
39
+ .pf-radar-chart__point {
40
+ stroke: var(--pf-radar-point-stroke);
41
+ stroke-width: 1.5;
42
+ }
43
+
44
+ .pf-radar-chart__label {
45
+ fill: var(--pf-radar-label);
46
+ font-size: var(--font-size-2xs);
47
+ font-weight: var(--font-weight-medium);
48
+ }
49
+
50
+ .pf-radar-chart__legend {
51
+ display: grid;
52
+ gap: var(--space-2);
53
+ list-style: none;
54
+ margin: 0;
55
+ min-width: 0;
56
+ padding: 0;
57
+ width: 100%;
58
+ }
59
+
60
+ @media (min-width: 640px) {
61
+ .pf-radar-chart__legend {
62
+ min-width: 140px;
63
+ width: auto;
64
+ }
65
+ }
66
+
67
+ .pf-radar-chart__legend-item {
68
+ align-items: center;
69
+ display: flex;
70
+ gap: var(--space-2);
71
+ justify-content: space-between;
72
+ }
73
+
74
+ .pf-radar-chart__legend-label {
75
+ color: var(--pf-radar-legend-text);
76
+ font-size: var(--font-size-sm);
77
+ }
78
+
79
+ .pf-radar-chart__legend-value {
80
+ color: var(--pf-radar-legend-value);
81
+ font-size: var(--font-size-sm);
82
+ font-variant-numeric: tabular-nums;
83
+ }
84
+
85
+ .pf-radar-chart__empty {
86
+ align-items: center;
87
+ border: 1px dashed var(--pf-radar-empty-border);
88
+ border-radius: var(--radius-md);
89
+ color: var(--pf-radar-empty-text);
90
+ display: inline-flex;
91
+ font-size: var(--font-size-sm);
92
+ justify-content: center;
93
+ min-height: 180px;
94
+ min-width: 260px;
95
+ padding: var(--space-4);
96
+ text-align: center;
97
+ }
98
+
99
+ /* Grow the value polygon out from the center on mount */
100
+ .pf-radar-chart__value {
101
+ animation: pf-radar-grow var(--duration-slow) var(--easing-decelerate);
102
+ }
103
+
104
+ @keyframes pf-radar-grow {
105
+ from {
106
+ opacity: 0;
107
+ transform: scale(0);
108
+ }
109
+ to {
110
+ opacity: 1;
111
+ transform: scale(1);
112
+ }
113
+ }
114
+
115
+ @media (prefers-reduced-motion: reduce) {
116
+ .pf-radar-chart__value {
117
+ animation: none;
118
+ }
119
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './RadarChart.css';/* empty css */
3
3
  import { forwardRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/RadarChart/RadarChart.tsx
@@ -69,21 +69,27 @@ var RadarChart = forwardRef(function RadarChart({ className, data, size = 280, m
69
69
  x2: axis.end.x,
70
70
  y2: axis.end.y
71
71
  }, `axis-${index}`)) : null,
72
- /* @__PURE__ */ jsx("polygon", {
73
- className: "pf-radar-chart__area",
74
- points: valuePolygon,
72
+ /* @__PURE__ */ jsxs("g", {
73
+ className: "pf-radar-chart__value",
75
74
  style: {
76
- fill: fillColor,
77
- stroke: strokeColor
78
- }
75
+ transformBox: "view-box",
76
+ transformOrigin: `${center}px ${center}px`
77
+ },
78
+ children: [/* @__PURE__ */ jsx("polygon", {
79
+ className: "pf-radar-chart__area",
80
+ points: valuePolygon,
81
+ style: {
82
+ fill: fillColor,
83
+ stroke: strokeColor
84
+ }
85
+ }), valuePoints.map((point, index) => /* @__PURE__ */ jsx("circle", {
86
+ className: "pf-radar-chart__point",
87
+ cx: point.x,
88
+ cy: point.y,
89
+ r: 3,
90
+ style: { fill: strokeColor }
91
+ }, `point-${index}`))]
79
92
  }),
80
- valuePoints.map((point, index) => /* @__PURE__ */ jsx("circle", {
81
- className: "pf-radar-chart__point",
82
- cx: point.x,
83
- cy: point.y,
84
- r: 3,
85
- style: { fill: strokeColor }
86
- }, `point-${index}`)),
87
93
  axes.map((axis, index) => {
88
94
  const labelPoint = polarToCartesian(center, center, outerRadius + 18, axis.angle);
89
95
  return /* @__PURE__ */ jsx("text", {
@@ -0,0 +1,21 @@
1
+ .pf-radio-field {
2
+ align-items: center;
3
+ display: inline-flex;
4
+ gap: var(--space-2);
5
+ }
6
+
7
+ .pf-radio {
8
+ accent-color: var(--pf-radio-checked-color);
9
+ height: 18px;
10
+ width: 18px;
11
+ }
12
+
13
+ .pf-radio:focus-visible {
14
+ box-shadow: var(--pf-radio-focus-ring, var(--pf-focus-ring));
15
+ outline: none;
16
+ }
17
+
18
+ .pf-radio-field label {
19
+ color: var(--pf-radio-label-text);
20
+ font-size: var(--font-size-md);
21
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './RadioButton.css';/* empty css */
3
3
  import { forwardRef, useId } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/RadioButton/RadioButton.tsx
@@ -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 "./index4.js";
2
- /* empty css */
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 "./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 './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: end;
94
+ }
@@ -1,7 +1,7 @@
1
- import { composeDescribedBy } from "./index3.js";
2
- import { cx } from "./index4.js";
3
- import { FieldWrapper } from "./index19.js";
4
- /* empty css */
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