@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,106 @@
1
+ .pf-metric-grid {
2
+ display: grid;
3
+ gap: var(--space-4);
4
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
5
+ }
6
+
7
+ .pf-metric-card {
8
+ background: var(--pf-metric-bg);
9
+ border: 1px solid var(--pf-metric-border);
10
+ border-radius: var(--radius-md);
11
+ display: grid;
12
+ gap: var(--space-3);
13
+ padding: var(--space-3);
14
+ }
15
+
16
+ @media (min-width: 768px) {
17
+ .pf-metric-card {
18
+ padding: var(--space-4);
19
+ }
20
+ }
21
+
22
+ .pf-metric-card__header {
23
+ align-items: start;
24
+ display: flex;
25
+ gap: var(--space-3);
26
+ justify-content: space-between;
27
+ }
28
+
29
+ .pf-metric-card__heading-wrap {
30
+ align-items: center;
31
+ display: inline-flex;
32
+ gap: var(--space-2);
33
+ min-width: 0;
34
+ }
35
+
36
+ .pf-metric-card__heading {
37
+ color: var(--pf-metric-text-muted);
38
+ font-size: var(--font-size-sm);
39
+ margin: 0;
40
+ }
41
+
42
+ .pf-metric-card__icon {
43
+ align-items: center;
44
+ color: var(--pf-metric-text-muted);
45
+ display: inline-flex;
46
+ font-size: var(--font-size-sm);
47
+ justify-content: center;
48
+ }
49
+
50
+ .pf-metric-card__action {
51
+ align-items: center;
52
+ display: inline-flex;
53
+ gap: var(--space-2);
54
+ }
55
+
56
+ .pf-metric-card__body {
57
+ align-items: baseline;
58
+ display: flex;
59
+ flex-wrap: wrap;
60
+ gap: var(--space-2);
61
+ }
62
+
63
+ .pf-metric-card__value {
64
+ color: var(--pf-metric-text);
65
+ font-size: clamp(var(--font-size-3xl), 3vw, var(--font-size-4xl));
66
+ font-weight: var(--font-weight-semibold);
67
+ letter-spacing: -0.02em;
68
+ line-height: 1.05;
69
+ margin: 0;
70
+ }
71
+
72
+ .pf-metric-card__trend {
73
+ align-items: center;
74
+ border-radius: var(--radius-full);
75
+ display: inline-flex;
76
+ font-size: var(--font-size-xs);
77
+ font-weight: var(--font-weight-medium);
78
+ gap: var(--space-1);
79
+ padding: var(--space-1) var(--space-2);
80
+ }
81
+
82
+ .pf-metric-card__trend-symbol {
83
+ font-size: var(--font-size-2xs);
84
+ line-height: 1;
85
+ }
86
+
87
+ .pf-metric-card__trend--positive {
88
+ background: color-mix(in srgb, var(--pf-metric-success-bg) 55%, var(--color-base-white));
89
+ color: var(--pf-metric-success-text);
90
+ }
91
+
92
+ .pf-metric-card__trend--negative {
93
+ background: color-mix(in srgb, var(--pf-metric-danger-bg) 55%, var(--color-base-white));
94
+ color: var(--pf-metric-danger-text);
95
+ }
96
+
97
+ .pf-metric-card__trend--neutral {
98
+ background: var(--pf-metric-bg-subtle);
99
+ color: var(--pf-metric-text-muted);
100
+ }
101
+
102
+ .pf-metric-card__description {
103
+ color: var(--pf-metric-text-muted);
104
+ font-size: var(--font-size-sm);
105
+ margin: 0;
106
+ }
@@ -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 './Metrics.css';/* empty css */
4
4
  import { forwardRef } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/Metrics/Metrics.tsx
@@ -0,0 +1,136 @@
1
+ .pf-modal__portal {
2
+ inset: 0;
3
+ position: fixed;
4
+ z-index: 1000;
5
+ }
6
+
7
+ .pf-modal__overlay {
8
+ background: var(--pf-modal-overlay-backdrop, var(--pf-overlay-backdrop));
9
+ inset: 0;
10
+ position: absolute;
11
+ }
12
+
13
+ .pf-modal__viewport {
14
+ align-items: end;
15
+ display: flex;
16
+ inset: 0;
17
+ justify-content: center;
18
+ overflow-y: auto;
19
+ padding: var(--space-2);
20
+ position: relative;
21
+ }
22
+
23
+ @media (min-width: 768px) {
24
+ .pf-modal__viewport {
25
+ align-items: center;
26
+ padding: var(--space-4);
27
+ }
28
+ }
29
+
30
+ .pf-modal {
31
+ background: var(--pf-modal-bg);
32
+ border: 1px solid color-mix(in srgb, var(--pf-modal-border) 85%, transparent);
33
+ border-radius: var(--radius-lg) var(--radius-lg) 0 0;
34
+ box-shadow: var(--pf-modal-elevation-overlay-shadow, var(--pf-elevation-overlay-shadow));
35
+ color: var(--pf-modal-text);
36
+ display: grid;
37
+ max-height: 92vh;
38
+ overflow: hidden;
39
+ width: 100%;
40
+ }
41
+
42
+ @media (min-width: 768px) {
43
+ .pf-modal {
44
+ border-radius: var(--radius-lg);
45
+ max-height: min(90vh, 720px);
46
+ }
47
+ }
48
+
49
+ .pf-modal:focus-visible {
50
+ outline: none;
51
+ }
52
+
53
+ .pf-modal--sm {
54
+ max-width: 420px;
55
+ }
56
+
57
+ .pf-modal--md {
58
+ max-width: 560px;
59
+ }
60
+
61
+ .pf-modal--lg {
62
+ max-width: 720px;
63
+ }
64
+
65
+ .pf-modal__header,
66
+ .pf-modal__footer {
67
+ align-items: start;
68
+ display: flex;
69
+ gap: var(--space-3);
70
+ justify-content: space-between;
71
+ padding: var(--space-3);
72
+ }
73
+
74
+ @media (min-width: 768px) {
75
+ .pf-modal__header,
76
+ .pf-modal__body,
77
+ .pf-modal__footer {
78
+ padding: var(--space-4);
79
+ }
80
+ }
81
+
82
+ .pf-modal__header {
83
+ border-bottom: 1px solid var(--pf-modal-border);
84
+ }
85
+
86
+ .pf-modal__footer {
87
+ border-top: 1px solid var(--pf-modal-border);
88
+ justify-content: flex-end;
89
+ }
90
+
91
+ .pf-modal__body {
92
+ overflow-y: auto;
93
+ padding: var(--space-3);
94
+ }
95
+
96
+ .pf-modal__heading-group {
97
+ display: grid;
98
+ gap: var(--space-1);
99
+ min-width: 0;
100
+ }
101
+
102
+ .pf-modal__title {
103
+ font-size: var(--font-size-lg);
104
+ font-weight: var(--font-weight-semibold);
105
+ line-height: 1.2;
106
+ margin: 0;
107
+ }
108
+
109
+ .pf-modal__description {
110
+ color: var(--pf-modal-text-muted);
111
+ font-size: var(--font-size-sm);
112
+ line-height: 1.45;
113
+ margin: 0;
114
+ }
115
+
116
+ .pf-modal__close {
117
+ align-items: center;
118
+ background: transparent;
119
+ border: 0;
120
+ border-radius: var(--radius-sm);
121
+ color: var(--pf-modal-text-muted);
122
+ cursor: pointer;
123
+ display: inline-flex;
124
+ flex: 0 0 auto;
125
+ font-size: var(--font-size-lg);
126
+ height: var(--space-8);
127
+ justify-content: center;
128
+ width: var(--space-8);
129
+ }
130
+
131
+ .pf-modal__close:hover,
132
+ .pf-modal__close:focus-visible {
133
+ background: var(--pf-modal-bg-subtle);
134
+ color: var(--pf-modal-text);
135
+ outline: none;
136
+ }
@@ -1,7 +1,7 @@
1
- import { cx } from "./index4.js";
2
- import { Icon } from "./index6.js";
3
- import { useFocusTrap } from "./index34.js";
4
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import { Icon } from "../Icon/Icon2.js";
3
+ import { useFocusTrap } from "../../hooks/useFocusTrap.js";
4
+ import './Modal.css';/* empty css */
5
5
  import { forwardRef, useEffect, useId, useImperativeHandle, useRef } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { createPortal } from "react-dom";
@@ -0,0 +1,157 @@
1
+ .pf-multi-select {
2
+ position: relative;
3
+ }
4
+
5
+ .pf-multi-select__trigger {
6
+ align-items: center;
7
+ background: var(--pf-multiselect-bg);
8
+ border: 1px solid var(--pf-multiselect-border);
9
+ border-radius: var(--radius-md);
10
+ color: var(--pf-multiselect-text);
11
+ cursor: pointer;
12
+ display: flex;
13
+ font: inherit;
14
+ gap: var(--space-2);
15
+ justify-content: space-between;
16
+ min-height: 40px;
17
+ padding: var(--space-1) var(--space-2) var(--space-1) var(--space-2);
18
+ text-align: left;
19
+ width: 100%;
20
+ transition:
21
+ background 0.2s,
22
+ border 0.2s,
23
+ color 0.2s,
24
+ opacity 0.2s;
25
+ }
26
+
27
+ .pf-multi-select__trigger:disabled,
28
+ .pf-multi-select__trigger[aria-disabled='true'] {
29
+ background: var(--pf-control-bg-disabled);
30
+ border-color: var(--pf-control-border-disabled);
31
+ color: var(--pf-control-text-disabled);
32
+ cursor: not-allowed;
33
+ opacity: 0.6;
34
+ }
35
+
36
+ .pf-multi-select__trigger:focus {
37
+ outline: none;
38
+ }
39
+
40
+ .pf-multi-select__trigger:focus-visible {
41
+ border-color: var(--pf-multiselect-focus-border);
42
+ box-shadow: var(--pf-multiselect-focus-ring, var(--pf-focus-ring));
43
+ }
44
+
45
+ .pf-multi-select__trigger--open {
46
+ border-color: var(--pf-multiselect-focus-border);
47
+ }
48
+
49
+ .pf-multi-select__trigger--invalid {
50
+ border-color: var(--pf-multiselect-invalid-border);
51
+ }
52
+
53
+ .pf-multi-select__placeholder {
54
+ color: var(--pf-multiselect-text-muted);
55
+ }
56
+
57
+ .pf-multi-select__chips {
58
+ display: flex;
59
+ flex-wrap: wrap;
60
+ gap: var(--space-1);
61
+ }
62
+
63
+ .pf-multi-select__chip {
64
+ background: var(--pf-multiselect-bg-subtle);
65
+ border-radius: var(--radius-full);
66
+ color: var(--pf-multiselect-text);
67
+ font-size: var(--font-size-sm);
68
+ line-height: 1;
69
+ padding: 7px var(--space-2);
70
+ }
71
+
72
+ .pf-multi-select__icon {
73
+ align-items: center;
74
+ color: var(--pf-multiselect-text);
75
+ display: inline-flex;
76
+ flex-shrink: 0;
77
+ height: 20px;
78
+ justify-content: center;
79
+ width: 20px;
80
+ transform-origin: center;
81
+ transition: transform 140ms ease;
82
+ }
83
+
84
+ .pf-multi-select__icon svg {
85
+ display: block;
86
+ height: 16px;
87
+ width: 16px;
88
+ }
89
+
90
+ .pf-multi-select__icon--open {
91
+ transform: rotate(180deg);
92
+ }
93
+
94
+ .pf-multi-select__menu {
95
+ background: var(--pf-multiselect-bg);
96
+ border: 1px solid var(--pf-multiselect-border);
97
+ border-radius: var(--radius-md);
98
+ box-shadow: var(--pf-multiselect-elevation-popover-shadow, var(--pf-elevation-popover-shadow));
99
+ list-style: none;
100
+ margin: 0;
101
+ max-height: 240px;
102
+ overflow: auto;
103
+ padding: var(--space-1);
104
+ position: fixed;
105
+ z-index: 1000;
106
+ }
107
+
108
+ .pf-multi-select__option {
109
+ align-items: center;
110
+ border-radius: var(--radius-sm);
111
+ color: var(--pf-multiselect-text);
112
+ cursor: pointer;
113
+ display: flex;
114
+ justify-content: space-between;
115
+ gap: var(--space-2);
116
+ padding: var(--space-2) var(--space-3);
117
+ }
118
+
119
+ .pf-multi-select__option:hover,
120
+ .pf-multi-select__option--active {
121
+ background: var(--pf-multiselect-active-bg);
122
+ color: var(--pf-multiselect-active-text);
123
+ }
124
+
125
+ .pf-multi-select__option--selected {
126
+ font-weight: var(--font-weight-medium);
127
+ }
128
+
129
+ .pf-multi-select__option--disabled {
130
+ background: transparent;
131
+ color: var(--pf-multiselect-text-muted);
132
+ cursor: not-allowed;
133
+ }
134
+
135
+ .pf-multi-select__option--disabled:hover {
136
+ background: transparent;
137
+ color: var(--pf-multiselect-text-muted);
138
+ }
139
+
140
+ .pf-multi-select__check {
141
+ display: inline-flex;
142
+ height: 16px;
143
+ width: 16px;
144
+ }
145
+
146
+ .pf-multi-select__check svg {
147
+ display: block;
148
+ height: 16px;
149
+ width: 16px;
150
+ }
151
+
152
+ @media (prefers-reduced-motion: reduce) {
153
+ .pf-multi-select__trigger,
154
+ .pf-multi-select__icon {
155
+ transition: none;
156
+ }
157
+ }
@@ -1,14 +1,14 @@
1
- import { Keys, composeDescribedBy, isActivationKey } from "./index3.js";
2
- import { cx } from "./index4.js";
3
- import { Icon } from "./index6.js";
4
- import { FieldWrapper } from "./index19.js";
5
- import { useAnchoredPosition } from "./index30.js";
6
- import { useComposedRefs } from "./index31.js";
7
- import { useControllableState } from "./index32.js";
8
- import { useDisclosure } from "./index33.js";
9
- import { useListNavigation } from "./index35.js";
10
- import { useOutsideInteraction } from "./index36.js";
11
- /* empty css */
1
+ import { Keys, composeDescribedBy, isActivationKey } from "../../a11y/index.js";
2
+ import { cx } from "../../utils/cx.js";
3
+ import { Icon } from "../Icon/Icon2.js";
4
+ import { FieldWrapper } from "../../utils/FieldWrapper.js";
5
+ import { useAnchoredPosition } from "../../hooks/useAnchoredPosition.js";
6
+ import { useComposedRefs } from "../../hooks/useComposedRefs.js";
7
+ import { useControllableState } from "../../hooks/useControllableState.js";
8
+ import { useDisclosure } from "../../hooks/useDisclosure.js";
9
+ import { useListNavigation } from "../../hooks/useListNavigation.js";
10
+ import { useOutsideInteraction } from "../../hooks/useOutsideInteraction.js";
11
+ import './MultiSelect.css';/* empty css */
12
12
  import { forwardRef, useEffect, useId, useMemo, useRef } from "react";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
14
  import { createPortal } from "react-dom";
@@ -0,0 +1,187 @@
1
+ .pf-notification-stack {
2
+ display: grid;
3
+ gap: var(--space-3);
4
+ left: var(--space-2);
5
+ position: fixed;
6
+ right: var(--space-2);
7
+ width: auto;
8
+ z-index: 1000;
9
+ }
10
+
11
+ .pf-notification-stack--top-right,
12
+ .pf-notification-stack--top-left {
13
+ top: var(--space-2);
14
+ }
15
+
16
+ .pf-notification-stack--bottom-right,
17
+ .pf-notification-stack--bottom-left {
18
+ bottom: var(--space-2);
19
+ }
20
+
21
+ @media (min-width: 768px) {
22
+ .pf-notification-stack {
23
+ left: auto;
24
+ right: auto;
25
+ width: min(420px, calc(100vw - (var(--space-4) * 2)));
26
+ }
27
+
28
+ .pf-notification-stack--top-right,
29
+ .pf-notification-stack--top-left {
30
+ top: var(--space-4);
31
+ }
32
+
33
+ .pf-notification-stack--bottom-right,
34
+ .pf-notification-stack--bottom-left {
35
+ bottom: var(--space-4);
36
+ }
37
+
38
+ .pf-notification-stack--top-right,
39
+ .pf-notification-stack--bottom-right {
40
+ justify-items: end;
41
+ right: var(--space-4);
42
+ }
43
+
44
+ .pf-notification-stack--top-left,
45
+ .pf-notification-stack--bottom-left {
46
+ left: var(--space-4);
47
+ }
48
+ }
49
+
50
+ .pf-notification {
51
+ align-items: flex-start;
52
+ background: var(--pf-notification-bg);
53
+ border: 1px solid var(--pf-notification-border);
54
+ border-radius: var(--radius-md);
55
+ box-shadow: var(--pf-notification-elevation-floating-shadow, var(--pf-elevation-floating-shadow));
56
+ display: grid;
57
+ gap: var(--space-3);
58
+ grid-template-columns: auto minmax(0, 1fr) auto;
59
+ max-width: none;
60
+ padding: var(--space-3);
61
+ width: 100%;
62
+ }
63
+
64
+ @media (min-width: 768px) {
65
+ .pf-notification {
66
+ max-width: 420px;
67
+ padding: var(--space-4);
68
+ }
69
+ }
70
+
71
+ .pf-notification--info {
72
+ background: color-mix(in srgb, var(--pf-notification-info-bg) 45%, var(--color-base-white));
73
+ border-color: var(--pf-notification-info-border);
74
+ }
75
+
76
+ .pf-notification--success {
77
+ background: color-mix(in srgb, var(--pf-notification-success-bg) 45%, var(--color-base-white));
78
+ border-color: var(--pf-notification-success-border);
79
+ }
80
+
81
+ .pf-notification--warning {
82
+ background: color-mix(in srgb, var(--pf-notification-warning-bg) 45%, var(--color-base-white));
83
+ border-color: var(--pf-notification-warning-border);
84
+ }
85
+
86
+ .pf-notification--danger {
87
+ background: color-mix(in srgb, var(--pf-notification-danger-bg) 45%, var(--color-base-white));
88
+ border-color: var(--pf-notification-danger-border);
89
+ }
90
+
91
+ .pf-notification__icon {
92
+ align-items: center;
93
+ display: inline-flex;
94
+ font-size: var(--font-size-lg);
95
+ height: 1em;
96
+ justify-content: center;
97
+ line-height: 1;
98
+ margin-top: 2px;
99
+ width: 1em;
100
+ }
101
+
102
+ .pf-notification--info .pf-notification__icon {
103
+ color: var(--pf-notification-info-icon);
104
+ }
105
+
106
+ .pf-notification--info .pf-notification__title {
107
+ color: var(--pf-notification-info-title);
108
+ }
109
+
110
+ .pf-notification--info .pf-notification__description {
111
+ color: var(--pf-notification-info-icon);
112
+ }
113
+
114
+ .pf-notification--info .pf-notification__dismiss {
115
+ color: var(--pf-notification-info-icon);
116
+ }
117
+
118
+ .pf-notification--info .pf-notification__dismiss:hover,
119
+ .pf-notification--info .pf-notification__dismiss:focus-visible {
120
+ background: var(--pf-notification-info-hover-bg);
121
+ color: var(--pf-notification-info-hover-icon);
122
+ }
123
+
124
+ .pf-notification--success .pf-notification__icon {
125
+ color: var(--pf-notification-success-icon);
126
+ }
127
+
128
+ .pf-notification--warning .pf-notification__icon {
129
+ color: var(--pf-notification-warning-icon);
130
+ }
131
+
132
+ .pf-notification--danger .pf-notification__icon {
133
+ color: var(--pf-notification-danger-icon);
134
+ }
135
+
136
+ .pf-notification__content {
137
+ display: grid;
138
+ gap: var(--space-1);
139
+ min-width: 0;
140
+ }
141
+
142
+ .pf-notification__title {
143
+ color: var(--pf-notification-text);
144
+ font-size: var(--font-size-sm);
145
+ font-weight: var(--font-weight-semibold);
146
+ line-height: 1.35;
147
+ margin: 0;
148
+ }
149
+
150
+ .pf-notification__description {
151
+ color: var(--pf-notification-text-muted);
152
+ font-size: var(--font-size-sm);
153
+ line-height: 1.45;
154
+ }
155
+
156
+ .pf-notification__description p {
157
+ margin: 0;
158
+ }
159
+
160
+ .pf-notification__action {
161
+ align-items: center;
162
+ display: inline-flex;
163
+ gap: var(--space-2);
164
+ margin-top: var(--space-2);
165
+ }
166
+
167
+ .pf-notification__dismiss {
168
+ align-items: center;
169
+ align-self: start;
170
+ background: transparent;
171
+ border: 0;
172
+ border-radius: var(--radius-sm);
173
+ color: var(--pf-notification-text-muted);
174
+ cursor: pointer;
175
+ display: inline-flex;
176
+ font-size: var(--font-size-md);
177
+ height: 28px;
178
+ justify-content: center;
179
+ width: 28px;
180
+ }
181
+
182
+ .pf-notification__dismiss:hover,
183
+ .pf-notification__dismiss:focus-visible {
184
+ background: var(--pf-notification-bg-subtle);
185
+ color: var(--pf-notification-text);
186
+ outline: none;
187
+ }
@@ -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 './Notification.css';/* empty css */
4
4
  import { forwardRef } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/Notification/Notification.tsx