@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.
Files changed (137) hide show
  1. package/README.md +20 -5
  2. package/dist/components/Alert/Alert.css +83 -0
  3. package/dist/{index8.js → components/Alert/Alert2.js} +3 -3
  4. package/dist/components/Avatar/Avatar.css +97 -0
  5. package/dist/{index10.js → components/Avatar/Avatar2.js} +2 -2
  6. package/dist/components/Badge/Badge.css +26 -0
  7. package/dist/{index23.js → components/Badge/Badge2.js} +2 -2
  8. package/dist/components/BadgeGroup/BadgeGroup.css +115 -0
  9. package/dist/{index14.js → components/BadgeGroup/BadgeGroup2.js} +2 -2
  10. package/dist/components/Breadcrumbs/Breadcrumbs.css +45 -0
  11. package/dist/{index18.js → components/Breadcrumbs/Breadcrumbs2.js} +2 -2
  12. package/dist/components/Button/Button.css +93 -0
  13. package/dist/{index12.js → components/Button/Button2.js} +2 -2
  14. package/dist/components/ButtonGroup/ButtonGroup.css +107 -0
  15. package/dist/{index16.js → components/ButtonGroup/ButtonGroup2.js} +2 -2
  16. package/dist/components/Calendar/Calendar.css +144 -0
  17. package/dist/{index40.js → components/Calendar/Calendar2.js} +4 -4
  18. package/dist/components/Card/Card.css +23 -0
  19. package/dist/{index25.js → components/Card/Card2.js} +2 -2
  20. package/dist/components/Carousel/Carousel.css +122 -0
  21. package/dist/{index42.js → components/Carousel/Carousel2.js} +3 -3
  22. package/dist/components/Checkbox/Checkbox.css +62 -0
  23. package/dist/{index29.js → components/Checkbox/Checkbox2.js} +2 -2
  24. package/dist/components/CodeSnippet/CodeSnippet.css +155 -0
  25. package/dist/{index46.js → components/CodeSnippet/CodeSnippet2.js} +6 -6
  26. package/dist/components/ContentDivider/ContentDivider.css +38 -0
  27. package/dist/{index48.js → components/ContentDivider/ContentDivider2.js} +2 -2
  28. package/dist/components/CreditCard/CreditCard.css +139 -0
  29. package/dist/{index27.js → components/CreditCard/CreditCard2.js} +2 -2
  30. package/dist/components/DatePicker/DatePicker.css +91 -0
  31. package/dist/{index50.js → components/DatePicker/DatePicker2.js} +9 -9
  32. package/dist/components/Dropdown/Dropdown.css +132 -0
  33. package/dist/{index38.js → components/Dropdown/Dropdown2.js} +8 -8
  34. package/dist/components/EmptyState/EmptyState.css +72 -0
  35. package/dist/{index52.js → components/EmptyState/EmptyState2.js} +3 -3
  36. package/dist/components/FileUploader/FileUploader.css +135 -0
  37. package/dist/{index54.js → components/FileUploader/FileUploader2.js} +4 -4
  38. package/dist/components/GaugeChart/GaugeChart.css +46 -0
  39. package/dist/components/GaugeChart/GaugeChart2.js +73 -0
  40. package/dist/components/HeaderNavigation/HeaderNavigation.css +87 -0
  41. package/dist/{index56.js → components/HeaderNavigation/HeaderNavigation2.js} +2 -2
  42. package/dist/components/Icon/Icon.css +6 -0
  43. package/dist/{index6.js → components/Icon/Icon2.js} +2 -2
  44. package/dist/components/InlineCTA/InlineCTA.css +86 -0
  45. package/dist/{index58.js → components/InlineCTA/InlineCTA2.js} +3 -3
  46. package/dist/components/Input/Input.css +75 -0
  47. package/dist/{index21.js → components/Input/Input2.js} +3 -3
  48. package/dist/components/LineBarCharts/LineBarChart.css +122 -0
  49. package/dist/{index60.js → components/LineBarCharts/LineBarChart2.js} +11 -3
  50. package/dist/components/LoadingIndicators/LoadingIndicators.css +107 -0
  51. package/dist/{index62.js → components/LoadingIndicators/LoadingIndicators2.js} +2 -2
  52. package/dist/components/Metrics/Metrics.css +106 -0
  53. package/dist/{index64.js → components/Metrics/Metrics2.js} +3 -3
  54. package/dist/components/Modal/Modal.css +136 -0
  55. package/dist/{index66.js → components/Modal/Modal2.js} +4 -4
  56. package/dist/components/MultiSelect/MultiSelect.css +157 -0
  57. package/dist/{index68.js → components/MultiSelect/MultiSelect2.js} +11 -11
  58. package/dist/components/Notification/Notification.css +187 -0
  59. package/dist/{index70.js → components/Notification/Notification2.js} +3 -3
  60. package/dist/components/PageHeader/PageHeader.css +85 -0
  61. package/dist/{index72.js → components/PageHeader/PageHeader2.js} +3 -3
  62. package/dist/components/Pagination/Pagination.css +101 -0
  63. package/dist/{index74.js → components/Pagination/Pagination2.js} +2 -2
  64. package/dist/components/PieChart/PieChart.css +81 -0
  65. package/dist/{index76.js → components/PieChart/PieChart2.js} +2 -2
  66. package/dist/components/ProgressIndicators/ProgressIndicators.css +77 -0
  67. package/dist/{index78.js → components/ProgressIndicators/ProgressIndicators2.js} +2 -2
  68. package/dist/components/ProgressSteps/ProgressSteps.css +158 -0
  69. package/dist/{index80.js → components/ProgressSteps/ProgressSteps2.js} +2 -2
  70. package/dist/components/RadarChart/RadarChart.css +97 -0
  71. package/dist/{index82.js → components/RadarChart/RadarChart2.js} +2 -2
  72. package/dist/components/RadioButton/RadioButton.css +21 -0
  73. package/dist/{index84.js → components/RadioButton/RadioButton2.js} +2 -2
  74. package/dist/components/RadioGroup/RadioGroup.css +64 -0
  75. package/dist/{index86.js → components/RadioGroup/RadioGroup2.js} +2 -2
  76. package/dist/components/Rating/Rating.css +91 -0
  77. package/dist/{index88.js → components/Rating/Rating2.js} +3 -3
  78. package/dist/components/RichTextEditor/RichTextEditor.css +94 -0
  79. package/dist/{index90.js → components/RichTextEditor/RichTextEditor2.js} +4 -4
  80. package/dist/components/SectionFooter/SectionFooter.css +59 -0
  81. package/dist/{index92.js → components/SectionFooter/SectionFooter2.js} +2 -2
  82. package/dist/components/SectionHeader/SectionHeader.css +78 -0
  83. package/dist/{index94.js → components/SectionHeader/SectionHeader2.js} +2 -2
  84. package/dist/components/Select/Select.css +137 -0
  85. package/dist/{index102.js → components/Select/Select2.js} +11 -11
  86. package/dist/components/SidebarNavigation/SidebarNavigation.css +116 -0
  87. package/dist/{index96.js → components/SidebarNavigation/SidebarNavigation2.js} +2 -2
  88. package/dist/components/SlideoutMenu/SlideoutMenu.css +161 -0
  89. package/dist/{index98.js → components/SlideoutMenu/SlideoutMenu2.js} +3 -3
  90. package/dist/components/Slider/Slider.css +106 -0
  91. package/dist/{index104.js → components/Slider/Slider2.js} +2 -2
  92. package/dist/components/Sparkline/Sparkline.css +17 -0
  93. package/dist/components/Sparkline/Sparkline2.js +99 -0
  94. package/dist/components/Switch/Switch.css +59 -0
  95. package/dist/{index100.js → components/Switch/Switch2.js} +2 -2
  96. package/dist/components/Table/Table.css +126 -0
  97. package/dist/{index108.js → components/Table/Table2.js} +2 -2
  98. package/dist/components/Tabs/Tabs.css +112 -0
  99. package/dist/{index110.js → components/Tabs/Tabs2.js} +2 -2
  100. package/dist/components/Tag/Tag.css +64 -0
  101. package/dist/{index106.js → components/Tag/Tag2.js} +3 -3
  102. package/dist/components/Textarea/Textarea.css +52 -0
  103. package/dist/{index112.js → components/Textarea/Textarea2.js} +3 -3
  104. package/dist/components/Tooltip/Tooltip.css +26 -0
  105. package/dist/{index114.js → components/Tooltip/Tooltip2.js} +2 -2
  106. package/dist/components/TreeView/TreeView.css +109 -0
  107. package/dist/{index116.js → components/TreeView/TreeView2.js} +2 -2
  108. package/dist/components/UtilityButton/UtilityButton.css +90 -0
  109. package/dist/{index118.js → components/UtilityButton/UtilityButton2.js} +2 -2
  110. package/dist/components/VideoPlayer/VideoPlayer.css +41 -0
  111. package/dist/{index120.js → components/VideoPlayer/VideoPlayer2.js} +2 -2
  112. package/dist/{index33.js → hooks/useDisclosure.js} +1 -1
  113. package/dist/{index34.js → hooks/useFocusTrap.js} +1 -1
  114. package/dist/index.cjs +380 -4450
  115. package/dist/index.js +65 -63
  116. package/dist/src/components/GaugeChart/GaugeChart.d.ts +17 -0
  117. package/dist/src/components/GaugeChart/GaugeChart.test.d.ts +1 -0
  118. package/dist/src/components/GaugeChart/index.d.ts +1 -0
  119. package/dist/src/components/LineBarCharts/LineBarChart.d.ts +2 -0
  120. package/dist/src/components/Sparkline/Sparkline.d.ts +15 -0
  121. package/dist/src/components/Sparkline/Sparkline.test.d.ts +1 -0
  122. package/dist/src/components/Sparkline/index.d.ts +1 -0
  123. package/dist/src/index.d.ts +2 -0
  124. package/dist/styles/theme.css +779 -0
  125. package/dist/styles.css +124 -5
  126. package/dist/{index19.js → utils/FieldWrapper.js} +1 -1
  127. package/package.json +8 -4
  128. package/theme.starter.css +57 -0
  129. package/dist/index43.js +0 -16
  130. package/dist/index44.js +0 -4232
  131. /package/dist/{index3.js → a11y/index.js} +0 -0
  132. /package/dist/{index30.js → hooks/useAnchoredPosition.js} +0 -0
  133. /package/dist/{index31.js → hooks/useComposedRefs.js} +0 -0
  134. /package/dist/{index32.js → hooks/useControllableState.js} +0 -0
  135. /package/dist/{index35.js → hooks/useListNavigation.js} +0 -0
  136. /package/dist/{index36.js → hooks/useOutsideInteraction.js} +0 -0
  137. /package/dist/{index4.js → utils/cx.js} +0 -0
@@ -0,0 +1,126 @@
1
+ .pf-table {
2
+ background: var(--pf-table-bg);
3
+ border: 1px solid var(--pf-table-border);
4
+ border-radius: var(--radius-md);
5
+ overflow: auto;
6
+ }
7
+
8
+ .pf-table__native {
9
+ border-collapse: separate;
10
+ border-spacing: 0;
11
+ min-width: 620px;
12
+ width: 100%;
13
+ }
14
+
15
+ .pf-table__caption {
16
+ align-items: center;
17
+ border-bottom: 1px solid var(--pf-table-border);
18
+ color: var(--pf-table-text-muted);
19
+ display: flex;
20
+ font-size: var(--font-size-sm);
21
+ min-height: 56px;
22
+ padding-top: var(--space-3);
23
+ padding-right: var(--space-4, 16px);
24
+ padding-bottom: var(--space-3);
25
+ padding-left: var(--space-4, 16px);
26
+ }
27
+
28
+ .pf-table__head-cell,
29
+ .pf-table__body-cell,
30
+ .pf-table__empty {
31
+ border-bottom: 1px solid var(--pf-table-border);
32
+ font-size: var(--font-size-sm);
33
+ line-height: 1.4;
34
+ padding: 14px var(--space-3);
35
+ vertical-align: middle;
36
+ }
37
+
38
+ @media (min-width: 768px) {
39
+ .pf-table__head-cell,
40
+ .pf-table__body-cell,
41
+ .pf-table__empty {
42
+ padding-inline: var(--space-4);
43
+ }
44
+ }
45
+
46
+ .pf-table__head-cell {
47
+ background: var(--pf-table-bg-subtle);
48
+ color: var(--pf-table-text-muted);
49
+ font-weight: var(--font-weight-semibold);
50
+ position: relative;
51
+ text-transform: none;
52
+ width: var(--pf-col-width, auto);
53
+ }
54
+
55
+ .pf-table__sort-button {
56
+ align-items: center;
57
+ background: transparent;
58
+ border: 0;
59
+ color: inherit;
60
+ cursor: pointer;
61
+ display: inline-flex;
62
+ font: inherit;
63
+ gap: var(--space-2);
64
+ justify-content: inherit;
65
+ padding: 0;
66
+ width: 100%;
67
+ }
68
+
69
+ .pf-table__sort-button:hover,
70
+ .pf-table__sort-button:focus-visible {
71
+ color: var(--pf-table-text);
72
+ outline: none;
73
+ }
74
+
75
+ .pf-table__sort-indicator {
76
+ display: inline-flex;
77
+ font-size: var(--font-size-2xs);
78
+ line-height: 1;
79
+ opacity: 0.7;
80
+ }
81
+
82
+ .pf-table__body-cell {
83
+ color: var(--pf-table-text);
84
+ }
85
+
86
+ .pf-table__native tbody tr:last-child .pf-table__body-cell,
87
+ .pf-table__native tbody tr:last-child .pf-table__empty {
88
+ border-bottom: 0;
89
+ }
90
+
91
+ .pf-table--striped .pf-table__native tbody tr:nth-child(even) .pf-table__body-cell {
92
+ background: color-mix(in srgb, var(--pf-table-bg-subtle) 55%, transparent);
93
+ }
94
+
95
+ .pf-table--hoverable .pf-table__native tbody tr:hover .pf-table__body-cell {
96
+ background: color-mix(in srgb, var(--pf-table-bg-subtle) 70%, transparent);
97
+ }
98
+
99
+ .pf-table--sticky-header .pf-table__head-cell {
100
+ position: sticky;
101
+ top: 0;
102
+ z-index: 1;
103
+ }
104
+
105
+ .pf-table__cell--left {
106
+ text-align: left;
107
+ }
108
+
109
+ .pf-table__cell--center {
110
+ text-align: center;
111
+ }
112
+
113
+ .pf-table__cell--right {
114
+ text-align: right;
115
+ }
116
+
117
+ .pf-table__empty {
118
+ color: var(--pf-table-text-muted);
119
+ text-align: center;
120
+ }
121
+
122
+ .pf-table--dense .pf-table__head-cell,
123
+ .pf-table--dense .pf-table__body-cell,
124
+ .pf-table--dense .pf-table__empty {
125
+ padding-block: var(--space-3);
126
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './Table.css';/* empty css */
3
3
  import { useMemo, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/Table/Table.tsx
@@ -0,0 +1,112 @@
1
+ .pf-tabs {
2
+ display: grid;
3
+ gap: var(--space-3);
4
+ }
5
+
6
+ @media (min-width: 768px) {
7
+ .pf-tabs {
8
+ gap: var(--space-4);
9
+ }
10
+ }
11
+
12
+ .pf-tabs__list {
13
+ display: flex;
14
+ overflow-x: auto;
15
+ }
16
+
17
+ .pf-tabs__list--full-width {
18
+ width: 100%;
19
+ }
20
+
21
+ .pf-tabs__list--underline {
22
+ border-bottom: 1px solid var(--pf-tabs-border);
23
+ gap: var(--space-1);
24
+ }
25
+
26
+ .pf-tabs__list--pills {
27
+ background: var(--pf-tabs-bg-subtle);
28
+ border-radius: var(--radius-md);
29
+ gap: var(--space-1);
30
+ padding: var(--space-1);
31
+ }
32
+
33
+ .pf-tabs__tab {
34
+ appearance: none;
35
+ background: transparent;
36
+ border: 0;
37
+ color: var(--pf-tabs-text-muted);
38
+ cursor: pointer;
39
+ font-family: inherit;
40
+ font-weight: var(--font-weight-medium);
41
+ min-width: 0;
42
+ position: relative;
43
+ transition: color 160ms ease;
44
+ white-space: nowrap;
45
+ }
46
+
47
+ .pf-tabs__tab:disabled {
48
+ cursor: not-allowed;
49
+ opacity: 0.45;
50
+ }
51
+
52
+ .pf-tabs__tab--sm {
53
+ font-size: var(--font-size-sm);
54
+ padding: var(--space-2) var(--space-3);
55
+ }
56
+
57
+ .pf-tabs__tab--md {
58
+ font-size: var(--font-size-sm);
59
+ padding: var(--pf-tabs-tab-padding-y-md) var(--pf-tabs-tab-padding-x-md);
60
+ }
61
+
62
+ .pf-tabs__list--full-width .pf-tabs__tab {
63
+ flex: 1;
64
+ justify-content: center;
65
+ }
66
+
67
+ .pf-tabs__tab--underline {
68
+ border-bottom: var(--pf-tabs-underline-width) solid transparent;
69
+ margin-bottom: -1px;
70
+ }
71
+
72
+ .pf-tabs__tab--underline:hover:not(:disabled),
73
+ .pf-tabs__tab--underline:focus-visible {
74
+ color: var(--pf-tabs-text);
75
+ }
76
+
77
+ .pf-tabs__tab--underline.pf-tabs__tab--active {
78
+ border-bottom-color: var(--pf-tabs-text);
79
+ color: var(--pf-tabs-text);
80
+ }
81
+
82
+ .pf-tabs__tab--pills {
83
+ border-radius: var(--radius-sm);
84
+ }
85
+
86
+ .pf-tabs__tab--pills:hover:not(:disabled),
87
+ .pf-tabs__tab--pills:focus-visible {
88
+ color: var(--pf-tabs-text);
89
+ }
90
+
91
+ .pf-tabs__tab--pills.pf-tabs__tab--active {
92
+ background: var(--pf-tabs-bg);
93
+ box-shadow: var(--pf-tabs-elevation-tab-active-shadow, var(--pf-elevation-tab-active-shadow));
94
+ color: var(--pf-tabs-text);
95
+ }
96
+
97
+ .pf-tabs__tab:focus-visible {
98
+ outline: 2px solid color-mix(in srgb, var(--pf-tabs-text) 32%, transparent);
99
+ outline-offset: 2px;
100
+ }
101
+
102
+ .pf-tabs__panel {
103
+ color: var(--pf-tabs-text);
104
+ line-height: 1.5;
105
+ min-width: 0;
106
+ }
107
+
108
+ @media (prefers-reduced-motion: reduce) {
109
+ .pf-tabs__tab {
110
+ transition: none;
111
+ }
112
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './Tabs.css';/* empty css */
3
3
  import { forwardRef, useId, useMemo, useRef, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/Tabs/Tabs.tsx
@@ -0,0 +1,64 @@
1
+ .pf-tag {
2
+ align-items: center;
3
+ border-radius: var(--radius-full);
4
+ display: inline-flex;
5
+ gap: var(--space-1);
6
+ min-height: 26px;
7
+ padding: 0 var(--space-2);
8
+ }
9
+
10
+ .pf-tag__label {
11
+ font-size: var(--font-size-sm);
12
+ font-weight: var(--font-weight-medium);
13
+ line-height: 1;
14
+ }
15
+
16
+ .pf-tag--neutral {
17
+ background: var(--pf-tag-neutral-bg);
18
+ color: var(--pf-tag-neutral-text);
19
+ }
20
+
21
+ .pf-tag--brand {
22
+ background: var(--pf-tag-brand-bg);
23
+ color: var(--pf-tag-brand-text);
24
+ }
25
+
26
+ .pf-tag--success {
27
+ background: var(--pf-tag-success-bg);
28
+ color: var(--pf-tag-success-text);
29
+ }
30
+
31
+ .pf-tag--warning {
32
+ background: var(--pf-tag-warning-bg);
33
+ color: var(--pf-tag-warning-text);
34
+ }
35
+
36
+ .pf-tag__dismiss {
37
+ align-items: center;
38
+ background: transparent;
39
+ border: 0;
40
+ border-radius: 999px;
41
+ color: currentColor;
42
+ cursor: pointer;
43
+ display: inline-flex;
44
+ height: 18px;
45
+ justify-content: center;
46
+ margin-right: -2px;
47
+ padding: 0;
48
+ width: 18px;
49
+ }
50
+
51
+ .pf-tag__dismiss:hover {
52
+ background: var(--pf-tag-subtle-hover-overlay, var(--pf-subtle-hover-overlay));
53
+ }
54
+
55
+ .pf-tag__dismiss:focus-visible {
56
+ box-shadow: var(--pf-tag-focus-ring, var(--pf-focus-ring));
57
+ outline: none;
58
+ }
59
+
60
+ .pf-tag__dismiss svg {
61
+ display: block;
62
+ height: 12px;
63
+ width: 12px;
64
+ }
@@ -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 './Tag.css';/* empty css */
4
4
  import { forwardRef } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/Tag/Tag.tsx
@@ -0,0 +1,52 @@
1
+ .pf-field {
2
+ display: grid;
3
+ gap: var(--space-2);
4
+ }
5
+
6
+ .pf-field__label {
7
+ color: var(--pf-field-label);
8
+ font-size: var(--font-size-sm);
9
+ font-weight: var(--font-weight-medium);
10
+ }
11
+
12
+ .pf-field__description {
13
+ color: var(--pf-field-description);
14
+ font-size: var(--font-size-sm);
15
+ margin: 0;
16
+ }
17
+
18
+ .pf-field__error {
19
+ color: var(--pf-field-error);
20
+ font-size: var(--font-size-sm);
21
+ margin: 0;
22
+ }
23
+
24
+ .pf-textarea {
25
+ background: var(--pf-textarea-bg);
26
+ border: 1px solid var(--pf-textarea-border);
27
+ border-radius: var(--radius-md);
28
+ color: var(--pf-textarea-text);
29
+ font: inherit;
30
+ line-height: 1.45;
31
+ min-height: 96px;
32
+ padding: var(--space-2) var(--space-3);
33
+ resize: vertical;
34
+ width: 100%;
35
+ }
36
+
37
+ .pf-textarea:focus {
38
+ outline: none;
39
+ }
40
+
41
+ .pf-textarea:focus-visible {
42
+ border-color: var(--pf-textarea-focus-border);
43
+ box-shadow: var(--pf-textarea-focus-ring, var(--pf-focus-ring));
44
+ }
45
+
46
+ .pf-textarea::placeholder {
47
+ color: var(--pf-textarea-text-muted);
48
+ }
49
+
50
+ .pf-textarea--invalid {
51
+ border-color: var(--pf-textarea-invalid-border);
52
+ }
@@ -1,6 +1,6 @@
1
- import { cx } from "./index4.js";
2
- import { FieldWrapper } from "./index19.js";
3
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import { FieldWrapper } from "../../utils/FieldWrapper.js";
3
+ import './Textarea.css';/* empty css */
4
4
  import { forwardRef, useId } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/Textarea/Textarea.tsx
@@ -0,0 +1,26 @@
1
+ .pf-tooltip__trigger {
2
+ border-radius: var(--radius-sm);
3
+ display: inline-flex;
4
+ }
5
+
6
+ .pf-tooltip__trigger:has(:focus-visible) {
7
+ outline: var(--pf-focus-ring);
8
+ outline-offset: 2px;
9
+ }
10
+
11
+ .pf-tooltip {
12
+ background: var(--pf-tooltip-bg);
13
+ border-radius: var(--radius-sm);
14
+ box-shadow: var(--pf-tooltip-elevation-tooltip-shadow, var(--pf-elevation-tooltip-shadow));
15
+ color: var(--pf-tooltip-text);
16
+ font-size: var(--font-size-sm);
17
+ line-height: 1.35;
18
+ max-height: calc(100vh - 16px);
19
+ max-width: min(260px, calc(100vw - 16px));
20
+ overflow: hidden;
21
+ overflow-wrap: anywhere;
22
+ padding: var(--space-2) var(--pf-tooltip-padding-x);
23
+ pointer-events: none;
24
+ position: fixed;
25
+ z-index: 1100;
26
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './Tooltip.css';/* empty css */
3
3
  import { forwardRef, useEffect, useId, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  import { createPortal } from "react-dom";
@@ -0,0 +1,109 @@
1
+ .pf-tree-view {
2
+ background: var(--pf-treeview-bg);
3
+ border: 1px solid var(--pf-treeview-border);
4
+ border-radius: var(--radius-md);
5
+ padding: var(--space-2);
6
+ }
7
+
8
+ .pf-tree-view__list {
9
+ list-style: none;
10
+ margin: 0;
11
+ padding: 0;
12
+ }
13
+
14
+ .pf-tree-view__item {
15
+ min-width: 0;
16
+ }
17
+
18
+ .pf-tree-view__row {
19
+ align-items: center;
20
+ display: grid;
21
+ grid-template-columns: auto 1fr;
22
+ min-width: 0;
23
+ padding-left: calc(var(--pf-tree-level, 0) * var(--space-4));
24
+ }
25
+
26
+ .pf-tree-view__toggle-wrap {
27
+ align-items: center;
28
+ display: inline-flex;
29
+ justify-content: center;
30
+ width: 24px;
31
+ }
32
+
33
+ .pf-tree-view__toggle,
34
+ .pf-tree-view__spacer {
35
+ align-items: center;
36
+ color: var(--pf-treeview-text-muted);
37
+ display: inline-flex;
38
+ font-size: var(--font-size-xs);
39
+ height: 24px;
40
+ justify-content: center;
41
+ width: 24px;
42
+ }
43
+
44
+ .pf-tree-view__toggle {
45
+ background: transparent;
46
+ border: 0;
47
+ border-radius: var(--radius-sm);
48
+ cursor: pointer;
49
+ padding: 0;
50
+ }
51
+
52
+ .pf-tree-view__toggle:hover {
53
+ background: var(--pf-treeview-bg-subtle);
54
+ color: var(--pf-treeview-text);
55
+ }
56
+
57
+ .pf-tree-view__node {
58
+ align-items: center;
59
+ background: transparent;
60
+ border: 0;
61
+ border-radius: var(--radius-sm);
62
+ color: var(--pf-treeview-text-muted);
63
+ cursor: pointer;
64
+ display: grid;
65
+ font: inherit;
66
+ gap: var(--space-2);
67
+ grid-template-columns: auto 1fr auto;
68
+ justify-items: start;
69
+ min-height: 34px;
70
+ min-width: 0;
71
+ padding: 0 var(--space-2);
72
+ text-align: left;
73
+ width: 100%;
74
+ }
75
+
76
+ .pf-tree-view__node:hover {
77
+ background: var(--pf-treeview-bg-subtle);
78
+ color: var(--pf-treeview-text);
79
+ }
80
+
81
+ .pf-tree-view__node:focus-visible {
82
+ box-shadow: var(--pf-treeview-focus-ring, var(--pf-focus-ring));
83
+ outline: none;
84
+ }
85
+
86
+ .pf-tree-view__row--selected .pf-tree-view__node {
87
+ background: var(--pf-treeview-bg-subtle);
88
+ color: var(--pf-treeview-text);
89
+ font-weight: var(--font-weight-semibold);
90
+ }
91
+
92
+ .pf-tree-view__row--disabled .pf-tree-view__node {
93
+ cursor: not-allowed;
94
+ opacity: 0.5;
95
+ }
96
+
97
+ .pf-tree-view__icon,
98
+ .pf-tree-view__badge {
99
+ align-items: center;
100
+ display: inline-flex;
101
+ justify-content: center;
102
+ }
103
+
104
+ .pf-tree-view__label {
105
+ min-width: 0;
106
+ overflow: hidden;
107
+ text-overflow: ellipsis;
108
+ white-space: nowrap;
109
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './TreeView.css';/* empty css */
3
3
  import { forwardRef, useCallback, useImperativeHandle, useMemo, useRef, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/TreeView/TreeView.tsx
@@ -0,0 +1,90 @@
1
+ .pf-utility-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-medium);
9
+ gap: var(--space-1);
10
+ justify-content: center;
11
+ line-height: 1;
12
+ transition:
13
+ background-color 120ms ease,
14
+ border-color 120ms ease,
15
+ color 120ms ease,
16
+ box-shadow 120ms ease;
17
+ }
18
+
19
+ .pf-utility-button:focus-visible {
20
+ box-shadow: var(--pf-utilitybutton-focus-ring, var(--pf-focus-ring));
21
+ outline: none;
22
+ }
23
+
24
+ .pf-utility-button:disabled {
25
+ cursor: not-allowed;
26
+ opacity: 0.55;
27
+ }
28
+
29
+ .pf-utility-button--sm {
30
+ font-size: var(--font-size-sm);
31
+ min-height: 32px;
32
+ padding: 0 var(--space-2);
33
+ }
34
+
35
+ .pf-utility-button--md {
36
+ font-size: var(--font-size-sm);
37
+ min-height: 36px;
38
+ padding: 0 var(--space-3);
39
+ }
40
+
41
+ .pf-utility-button--neutral {
42
+ background: var(--pf-utility-btn-neutral-bg);
43
+ border-color: var(--pf-utility-btn-neutral-border);
44
+ color: var(--pf-utility-btn-neutral-text);
45
+ }
46
+
47
+ .pf-utility-button--neutral:hover:not(:disabled) {
48
+ background: var(--pf-utility-btn-neutral-bg-hover);
49
+ border-color: var(--pf-utility-btn-neutral-border-hover);
50
+ }
51
+
52
+ .pf-utility-button--brand {
53
+ background: var(--pf-utility-btn-brand-bg);
54
+ border-color: var(--pf-utility-btn-brand-border);
55
+ color: var(--pf-utility-btn-brand-text);
56
+ }
57
+
58
+ .pf-utility-button--brand:hover:not(:disabled) {
59
+ background: var(--pf-utility-btn-brand-bg-hover);
60
+ }
61
+
62
+ .pf-utility-button--danger {
63
+ background: var(--pf-utility-btn-danger-bg);
64
+ border-color: var(--pf-utility-btn-danger-border);
65
+ color: var(--pf-utility-btn-danger-text);
66
+ }
67
+
68
+ .pf-utility-button--danger:hover:not(:disabled) {
69
+ background: var(--pf-utility-btn-danger-bg-hover);
70
+ }
71
+
72
+ .pf-utility-button__icon {
73
+ display: inline-flex;
74
+ }
75
+
76
+ .pf-utility-button__icon svg {
77
+ display: block;
78
+ height: 16px;
79
+ width: 16px;
80
+ }
81
+
82
+ .pf-utility-button__label {
83
+ white-space: nowrap;
84
+ }
85
+
86
+ @media (prefers-reduced-motion: reduce) {
87
+ .pf-utility-button {
88
+ transition: none;
89
+ }
90
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './UtilityButton.css';/* empty css */
3
3
  import { forwardRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/UtilityButton/UtilityButton.tsx
@@ -0,0 +1,41 @@
1
+ .pf-video-player {
2
+ background: var(--pf-videoplayer-bg);
3
+ border: 1px solid var(--pf-videoplayer-border);
4
+ border-radius: var(--radius-md);
5
+ overflow: hidden;
6
+ width: 100%;
7
+ }
8
+
9
+ .pf-video-player--ratio-16-9 {
10
+ aspect-ratio: 16 / 9;
11
+ }
12
+
13
+ .pf-video-player--ratio-4-3 {
14
+ aspect-ratio: 4 / 3;
15
+ }
16
+
17
+ .pf-video-player--ratio-1-1 {
18
+ aspect-ratio: 1 / 1;
19
+ }
20
+
21
+ .pf-video-player--invalid {
22
+ border-color: var(--pf-videoplayer-invalid-border);
23
+ }
24
+
25
+ .pf-video-player__video {
26
+ display: block;
27
+ height: 100%;
28
+ object-fit: cover;
29
+ width: 100%;
30
+ }
31
+
32
+ .pf-video-player__empty {
33
+ align-items: center;
34
+ color: var(--pf-videoplayer-text-muted);
35
+ display: flex;
36
+ font-size: var(--font-size-sm);
37
+ height: 100%;
38
+ justify-content: center;
39
+ padding: var(--space-4);
40
+ text-align: center;
41
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './VideoPlayer.css';/* empty css */
3
3
  import { forwardRef, useId } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/VideoPlayer/VideoPlayer.tsx
@@ -1,4 +1,4 @@
1
- import { useControllableState } from "./index32.js";
1
+ import { useControllableState } from "./useControllableState.js";
2
2
  import { useCallback } from "react";
3
3
  //#region src/hooks/useDisclosure.ts
4
4
  function useDisclosure({ open, defaultOpen = false, onOpenChange, disabled = false } = {}) {