@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,62 @@
1
+ .pf-checkbox-field {
2
+ align-items: center;
3
+ display: inline-flex;
4
+ gap: var(--space-2);
5
+ }
6
+
7
+ .pf-checkbox {
8
+ appearance: none;
9
+ background: var(--pf-checkbox-bg);
10
+ border: 1px solid var(--pf-checkbox-border);
11
+ border-radius: var(--pf-checkbox-radius, var(--radius-sm));
12
+ box-sizing: border-box;
13
+ cursor: pointer;
14
+ display: inline-block;
15
+ flex-shrink: 0;
16
+ height: 18px;
17
+ margin: 0;
18
+ position: relative;
19
+ width: 18px;
20
+ }
21
+
22
+ .pf-checkbox:checked {
23
+ background: var(--pf-checkbox-checked-bg);
24
+ border-color: var(--pf-checkbox-border);
25
+ }
26
+
27
+ .pf-checkbox::after {
28
+ border: solid var(--pf-checkbox-check-color);
29
+ border-width: 0 2px 2px 0;
30
+ content: '';
31
+ height: 9px;
32
+ left: 5px;
33
+ opacity: 0;
34
+ position: absolute;
35
+ top: 2px;
36
+ transform: rotate(45deg);
37
+ width: 5px;
38
+ }
39
+
40
+ .pf-checkbox:checked::after {
41
+ opacity: 1;
42
+ }
43
+
44
+ .pf-checkbox:focus-visible {
45
+ box-shadow: var(--pf-checkbox-focus-ring, var(--pf-focus-ring));
46
+ outline: none;
47
+ }
48
+
49
+ .pf-checkbox:disabled {
50
+ cursor: not-allowed;
51
+ opacity: 0.55;
52
+ }
53
+
54
+ .pf-checkbox:disabled + label {
55
+ cursor: not-allowed;
56
+ opacity: 0.65;
57
+ }
58
+
59
+ .pf-checkbox-field label {
60
+ color: var(--pf-checkbox-label-text);
61
+ font-size: var(--font-size-md);
62
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './Checkbox.css';/* empty css */
3
3
  import { forwardRef, useId } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/Checkbox/Checkbox.tsx
@@ -0,0 +1,155 @@
1
+ .pf-code-snippet {
2
+ background: var(--pf-code-snippet-bg, var(--color-gray-900));
3
+ border: 1px solid
4
+ var(
5
+ --pf-code-snippet-border,
6
+ color-mix(
7
+ in srgb,
8
+ var(--pf-code-snippet-bg, var(--color-gray-900)) 82%,
9
+ var(--color-base-white)
10
+ )
11
+ );
12
+ border-radius: var(--radius-md);
13
+ color: var(--pf-code-snippet-text, var(--color-gray-100));
14
+ display: grid;
15
+ overflow: hidden;
16
+ }
17
+
18
+ .pf-code-snippet__header,
19
+ .pf-code-snippet__toolbar {
20
+ align-items: center;
21
+ background: var(
22
+ --pf-code-snippet-header-bg,
23
+ color-mix(
24
+ in srgb,
25
+ var(--pf-code-snippet-bg, var(--color-gray-900)) 78%,
26
+ var(--color-base-white)
27
+ )
28
+ );
29
+ border-bottom: 1px solid
30
+ var(
31
+ --pf-code-snippet-header-border,
32
+ color-mix(
33
+ in srgb,
34
+ var(--pf-code-snippet-bg, var(--color-gray-900)) 65%,
35
+ var(--color-base-white)
36
+ )
37
+ );
38
+ display: flex;
39
+ gap: var(--space-3);
40
+ justify-content: space-between;
41
+ min-height: 40px;
42
+ padding: 0 var(--space-3);
43
+ }
44
+
45
+ .pf-code-snippet__meta {
46
+ align-items: baseline;
47
+ display: inline-flex;
48
+ gap: var(--space-2);
49
+ }
50
+
51
+ .pf-code-snippet__title {
52
+ color: var(--pf-code-snippet-title, var(--color-base-white));
53
+ font-size: var(--font-size-sm);
54
+ font-weight: var(--font-weight-semibold);
55
+ }
56
+
57
+ .pf-code-snippet__language {
58
+ color: var(--pf-code-snippet-language, var(--color-gray-300));
59
+ font-size: var(--font-size-2xs);
60
+ letter-spacing: 0.04em;
61
+ text-transform: uppercase;
62
+ }
63
+
64
+ .pf-code-snippet__copy {
65
+ align-items: center;
66
+ background: var(
67
+ --pf-code-snippet-copy-bg,
68
+ color-mix(
69
+ in srgb,
70
+ var(--pf-code-snippet-bg, var(--color-gray-900)) 70%,
71
+ var(--color-base-white)
72
+ )
73
+ );
74
+ border: 1px solid
75
+ var(
76
+ --pf-code-snippet-copy-border,
77
+ color-mix(
78
+ in srgb,
79
+ var(--pf-code-snippet-bg, var(--color-gray-900)) 55%,
80
+ var(--color-base-white)
81
+ )
82
+ );
83
+ border-radius: var(--radius-sm);
84
+ color: var(--pf-code-snippet-copy-text, var(--color-gray-100));
85
+ cursor: pointer;
86
+ display: inline-flex;
87
+ font-size: var(--font-size-xs);
88
+ gap: var(--space-1);
89
+ height: 28px;
90
+ padding: 0 var(--space-2);
91
+ }
92
+
93
+ .pf-code-snippet__copy:hover {
94
+ background: var(
95
+ --pf-code-snippet-copy-hover-bg,
96
+ color-mix(
97
+ in srgb,
98
+ var(--pf-code-snippet-bg, var(--color-gray-900)) 58%,
99
+ var(--color-base-white)
100
+ )
101
+ );
102
+ }
103
+
104
+ .pf-code-snippet__copy:focus-visible {
105
+ box-shadow: var(--pf-code-snippet-focus-ring, var(--pf-focus-ring));
106
+ outline: none;
107
+ }
108
+
109
+ .pf-code-snippet__pre {
110
+ margin: 0;
111
+ max-width: 100%;
112
+ overflow: auto;
113
+ padding: var(--space-3);
114
+ }
115
+
116
+ .pf-code-snippet__pre code {
117
+ color: inherit;
118
+ display: block;
119
+ font-family:
120
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
121
+ monospace;
122
+ font-size: var(--font-size-xs);
123
+ line-height: 1.65;
124
+ white-space: pre;
125
+ }
126
+
127
+ .pf-code-snippet__table {
128
+ border-collapse: collapse;
129
+ width: 100%;
130
+ }
131
+
132
+ .pf-code-snippet__line-number {
133
+ color: var(--pf-code-snippet-line-number, var(--color-gray-400));
134
+ min-width: 2.5ch;
135
+ padding-inline-end: var(--space-3);
136
+ text-align: end;
137
+ user-select: none;
138
+ vertical-align: top;
139
+ }
140
+
141
+ .pf-code-snippet__line-content {
142
+ white-space: pre;
143
+ }
144
+
145
+ .pf-code-snippet__sr-only {
146
+ border: 0;
147
+ clip: rect(0 0 0 0);
148
+ height: 1px;
149
+ margin: -1px;
150
+ overflow: hidden;
151
+ padding: 0;
152
+ position: absolute;
153
+ white-space: nowrap;
154
+ width: 1px;
155
+ }
@@ -1,9 +1,9 @@
1
- import { cx } from "./index4.js";
2
- import { Icon } from "./index6.js";
3
- import { Highlight2, themes_exports } from "./index44.js";
4
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import { Icon } from "../Icon/Icon2.js";
3
+ import './CodeSnippet.css';/* empty css */
5
4
  import { forwardRef, useEffect, useId, useState } from "react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { Highlight, themes } from "prism-react-renderer";
7
7
  //#region src/components/CodeSnippet/CodeSnippet.tsx
8
8
  var CodeSnippet = forwardRef(function CodeSnippet({ className, code, language, title, showLineNumbers = false, maxHeight, copyLabel = "Copy", copiedLabel = "Copied", onCodeCopy, ...props }, ref) {
9
9
  const [copied, setCopied] = useState(false);
@@ -73,10 +73,10 @@ var CodeSnippet = forwardRef(function CodeSnippet({ className, code, language, t
73
73
  }), /* @__PURE__ */ jsx("span", { children: copied ? copiedLabel : copyLabel })]
74
74
  })
75
75
  }) : null,
76
- /* @__PURE__ */ jsx(Highlight2, {
76
+ /* @__PURE__ */ jsx(Highlight, {
77
77
  code,
78
78
  language: language || "tsx",
79
- theme: themes_exports.vsDark,
79
+ theme: themes.vsDark,
80
80
  children: ({ className: prismClass, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ jsx("pre", {
81
81
  className: cx("pf-code-snippet__pre", prismClass),
82
82
  style: {
@@ -0,0 +1,38 @@
1
+ .pf-content-divider {
2
+ align-items: center;
3
+ color: var(--pf-content-divider-text);
4
+ display: flex;
5
+ gap: var(--space-3);
6
+ width: 100%;
7
+ }
8
+
9
+ .pf-content-divider--inset {
10
+ padding-inline-start: var(--space-2);
11
+ padding-inline-end: var(--space-2);
12
+ }
13
+
14
+ .pf-content-divider__line {
15
+ background: var(--pf-content-divider-line);
16
+ display: block;
17
+ flex: 1;
18
+ height: 1px;
19
+ }
20
+
21
+ .pf-content-divider__label {
22
+ color: var(--pf-content-divider-text);
23
+ font-size: var(--font-size-xs);
24
+ font-weight: var(--font-weight-medium);
25
+ line-height: 1;
26
+ text-transform: uppercase;
27
+ white-space: nowrap;
28
+ }
29
+
30
+ .pf-content-divider--vertical {
31
+ align-self: stretch;
32
+ background: var(--pf-content-divider-line);
33
+ display: inline-block;
34
+ flex: 0 0 auto;
35
+ height: auto;
36
+ min-height: 100%;
37
+ width: 1px;
38
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './ContentDivider.css';/* empty css */
3
3
  import { forwardRef } from "react";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/ContentDivider/ContentDivider.tsx
@@ -0,0 +1,139 @@
1
+ /* Ensure Storybook CSS variable controls always apply to the card */
2
+ /* Ensure Storybook CSS variable controls always apply to the card */
3
+ .css-var-scope .pf-credit-card {
4
+ color: var(--pf-credit-card-text-color, var(--color-base-white));
5
+ }
6
+ /* ...existing code... */
7
+ .pf-credit-card {
8
+ --pf-credit-card-border: color-mix(in srgb, var(--color-base-white) 25%, transparent);
9
+ --pf-credit-card-glare: color-mix(in srgb, var(--color-base-white) 22%, transparent);
10
+ --pf-credit-card-generic-gradient: linear-gradient(
11
+ 135deg,
12
+ var(--color-gray-800),
13
+ var(--color-gray-900) 55%,
14
+ var(--color-gray-700)
15
+ );
16
+ --pf-credit-card-visa-gradient: linear-gradient(
17
+ 135deg,
18
+ var(--color-brand-700),
19
+ var(--color-brand-900) 55%,
20
+ var(--color-brand-700)
21
+ );
22
+ --pf-credit-card-mastercard-gradient: linear-gradient(
23
+ 135deg,
24
+ var(--color-warning-600),
25
+ var(--color-warning-800) 55%,
26
+ var(--color-danger-500)
27
+ );
28
+ --pf-credit-card-amex-gradient: linear-gradient(
29
+ 135deg,
30
+ var(--color-success-700),
31
+ var(--color-success-800) 55%,
32
+ var(--color-gray-800)
33
+ );
34
+ --pf-credit-card-chip-gradient: linear-gradient(
35
+ 135deg,
36
+ var(--color-gray-50),
37
+ var(--color-gray-300)
38
+ );
39
+
40
+ border: 1px solid var(--pf-credit-card-border);
41
+ border-radius: var(--radius-lg);
42
+ box-shadow: var(--shadow-md);
43
+ color: var(--pf-credit-card-text-color, var(--color-base-white));
44
+ display: flex;
45
+ flex-direction: column;
46
+ gap: var(--space-4);
47
+ max-width: 100%;
48
+ width: 340px;
49
+ aspect-ratio: 1.586;
50
+ min-height: 200px;
51
+ padding: var(--space-4);
52
+ position: relative;
53
+ }
54
+
55
+ .pf-credit-card::before {
56
+ background: radial-gradient(circle at 20% 20%, var(--pf-credit-card-glare), transparent 40%);
57
+ border-radius: inherit;
58
+ content: '';
59
+ inset: 0;
60
+ pointer-events: none;
61
+ position: absolute;
62
+ }
63
+
64
+ .pf-credit-card.is-generic {
65
+ background: var(--pf-credit-card-generic-gradient);
66
+ }
67
+ .pf-credit-card.is-visa {
68
+ background: var(--pf-credit-card-visa-gradient);
69
+ }
70
+ .pf-credit-card.is-mastercard {
71
+ background: var(--pf-credit-card-mastercard-gradient);
72
+ }
73
+ .pf-credit-card.is-amex {
74
+ background: var(--pf-credit-card-amex-gradient);
75
+ }
76
+
77
+ .pf-credit-card .top-row {
78
+ align-items: center;
79
+ display: flex;
80
+ justify-content: space-between;
81
+ position: relative;
82
+ z-index: 1;
83
+ }
84
+
85
+ .pf-credit-card .chip {
86
+ background: var(--pf-credit-card-chip-gradient);
87
+ border-radius: 4px;
88
+ display: inline-flex;
89
+ height: 28px;
90
+ width: 38px;
91
+ }
92
+
93
+ .pf-credit-card .brand,
94
+ .pf-credit-card .number,
95
+ .pf-credit-card .label,
96
+ .pf-credit-card .value {
97
+ color: inherit;
98
+ }
99
+
100
+ .pf-credit-card .brand {
101
+ font-size: var(--font-size-xs);
102
+ font-weight: var(--font-weight-semibold);
103
+ letter-spacing: 0.08em;
104
+ }
105
+
106
+ .pf-credit-card .number {
107
+ font-size: clamp(var(--font-size-lg), 2.6vw, var(--font-size-2xl));
108
+ font-weight: var(--font-weight-semibold);
109
+ letter-spacing: 0.08em;
110
+ line-height: 1.25;
111
+ margin: 0;
112
+ position: relative;
113
+ z-index: 1;
114
+ }
115
+
116
+ .pf-credit-card .meta {
117
+ display: flex;
118
+ gap: var(--space-4);
119
+ position: relative;
120
+ z-index: 1;
121
+ }
122
+
123
+ .pf-credit-card .meta > div {
124
+ display: flex;
125
+ flex-direction: column;
126
+ gap: var(--space-1);
127
+ }
128
+
129
+ .pf-credit-card .label {
130
+ font-size: var(--font-size-2xs);
131
+ letter-spacing: 0.08em;
132
+ opacity: 0.85;
133
+ text-transform: uppercase;
134
+ }
135
+
136
+ .pf-credit-card .value {
137
+ font-size: var(--font-size-sm);
138
+ font-weight: var(--font-weight-medium);
139
+ }
@@ -1,5 +1,5 @@
1
- import { cx } from "./index4.js";
2
- /* empty css */
1
+ import { cx } from "../../utils/cx.js";
2
+ import './CreditCard.css';/* empty css */
3
3
  import { forwardRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/CreditCard/CreditCard.tsx
@@ -0,0 +1,91 @@
1
+ .pf-date-picker {
2
+ position: relative;
3
+ }
4
+
5
+ .pf-date-picker__trigger {
6
+ align-items: center;
7
+ background: var(--pf-datepicker-bg);
8
+ border: 1px solid var(--pf-datepicker-border);
9
+ border-radius: var(--radius-md);
10
+ color: var(--pf-datepicker-text);
11
+ cursor: pointer;
12
+ display: inline-flex;
13
+ flex: 1;
14
+ font-size: var(--font-size-sm);
15
+ gap: var(--space-2);
16
+ justify-content: space-between;
17
+ min-height: 40px;
18
+ min-width: 0;
19
+ padding: 0 var(--space-3);
20
+ text-align: start;
21
+ }
22
+
23
+ .pf-date-picker__trigger:hover:not(:disabled) {
24
+ border-color: var(--pf-datepicker-border-strong);
25
+ }
26
+
27
+ .pf-date-picker__trigger:focus-visible {
28
+ box-shadow: var(--pf-datepicker-focus-ring, var(--pf-focus-ring));
29
+ outline: none;
30
+ }
31
+
32
+ .pf-date-picker__trigger:disabled {
33
+ background: var(--pf-datepicker-bg-subtle);
34
+ color: var(--pf-datepicker-text-muted);
35
+ cursor: not-allowed;
36
+ }
37
+
38
+ .pf-date-picker__trigger--invalid {
39
+ border-color: var(--pf-datepicker-invalid-border);
40
+ }
41
+
42
+ .pf-date-picker__value {
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ }
47
+
48
+ .pf-date-picker__value--placeholder {
49
+ color: var(--pf-datepicker-text-muted);
50
+ }
51
+
52
+ .pf-date-picker__control-row {
53
+ align-items: center;
54
+ display: flex;
55
+ gap: var(--space-1);
56
+ }
57
+
58
+ .pf-date-picker__icon-button {
59
+ align-items: center;
60
+ background: transparent;
61
+ border: 0;
62
+ border-radius: var(--radius-sm);
63
+ color: var(--pf-datepicker-text-muted);
64
+ cursor: pointer;
65
+ display: inline-flex;
66
+ flex-shrink: 0;
67
+ height: 28px;
68
+ justify-content: center;
69
+ width: 28px;
70
+ }
71
+
72
+ .pf-date-picker__icon-button:focus-visible,
73
+ .pf-date-picker__icon-button:hover {
74
+ background: var(--pf-datepicker-bg-subtle);
75
+ color: var(--pf-datepicker-text);
76
+ outline: none;
77
+ }
78
+
79
+ .pf-date-picker__icon-button:disabled {
80
+ cursor: not-allowed;
81
+ opacity: 0.45;
82
+ }
83
+
84
+ .pf-date-picker__popover {
85
+ position: fixed;
86
+ z-index: 999;
87
+ }
88
+
89
+ .pf-date-picker__popover .pf-field {
90
+ margin: 0;
91
+ }
@@ -1,12 +1,12 @@
1
- import { Keys, composeDescribedBy } 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 { useDisclosure } from "./index33.js";
7
- import { useOutsideInteraction } from "./index36.js";
8
- import { Calendar } from "./index40.js";
9
- /* empty css */
1
+ import { Keys, composeDescribedBy } from "../../a11y/index.js";
2
+ import { useAnchoredPosition } from "../../hooks/useAnchoredPosition.js";
3
+ import { useDisclosure } from "../../hooks/useDisclosure.js";
4
+ import { useOutsideInteraction } from "../../hooks/useOutsideInteraction.js";
5
+ import { cx } from "../../utils/cx.js";
6
+ import { Icon } from "../Icon/Icon2.js";
7
+ import { FieldWrapper } from "../../utils/FieldWrapper.js";
8
+ import { Calendar } from "../Calendar/Calendar2.js";
9
+ import './DatePicker.css';/* empty css */
10
10
  import { forwardRef, useId, useMemo, useRef, useState } from "react";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
12
12
  import { createPortal } from "react-dom";