@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.
- package/README.md +20 -5
- package/dist/components/Accordion/Accordion.css +85 -0
- package/dist/components/Accordion/Accordion2.js +96 -0
- package/dist/components/Alert/Alert.css +111 -0
- package/dist/{index8.js → components/Alert/Alert2.js} +7 -5
- package/dist/components/Avatar/Avatar.css +97 -0
- package/dist/{index10.js → components/Avatar/Avatar2.js} +2 -2
- package/dist/components/Badge/Badge.css +26 -0
- package/dist/{index23.js → components/Badge/Badge2.js} +2 -2
- package/dist/components/BadgeGroup/BadgeGroup.css +115 -0
- package/dist/{index14.js → components/BadgeGroup/BadgeGroup2.js} +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.css +45 -0
- package/dist/{index18.js → components/Breadcrumbs/Breadcrumbs2.js} +2 -2
- package/dist/components/Button/Button.css +93 -0
- package/dist/{index12.js → components/Button/Button2.js} +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.css +107 -0
- package/dist/{index16.js → components/ButtonGroup/ButtonGroup2.js} +2 -2
- package/dist/components/Calendar/Calendar.css +144 -0
- package/dist/{index40.js → components/Calendar/Calendar2.js} +4 -4
- package/dist/components/Card/Card.css +23 -0
- package/dist/{index25.js → components/Card/Card2.js} +2 -2
- package/dist/components/Carousel/Carousel.css +124 -0
- package/dist/components/Carousel/Carousel2.js +147 -0
- package/dist/components/Checkbox/Checkbox.css +62 -0
- package/dist/{index29.js → components/Checkbox/Checkbox2.js} +2 -2
- package/dist/components/CodeSnippet/CodeSnippet.css +155 -0
- package/dist/{index46.js → components/CodeSnippet/CodeSnippet2.js} +6 -6
- package/dist/components/ContentDivider/ContentDivider.css +38 -0
- package/dist/{index48.js → components/ContentDivider/ContentDivider2.js} +2 -2
- package/dist/components/CreditCard/CreditCard.css +139 -0
- package/dist/{index27.js → components/CreditCard/CreditCard2.js} +2 -2
- package/dist/components/DatePicker/DatePicker.css +91 -0
- package/dist/{index50.js → components/DatePicker/DatePicker2.js} +9 -9
- package/dist/components/Dropdown/Dropdown.css +149 -0
- package/dist/{index38.js → components/Dropdown/Dropdown2.js} +8 -9
- package/dist/components/EmptyState/EmptyState.css +72 -0
- package/dist/{index52.js → components/EmptyState/EmptyState2.js} +3 -3
- package/dist/components/FileUploader/FileUploader.css +135 -0
- package/dist/{index54.js → components/FileUploader/FileUploader2.js} +4 -4
- package/dist/components/GaugeChart/GaugeChart.css +63 -0
- package/dist/components/GaugeChart/GaugeChart2.js +74 -0
- package/dist/components/HeaderNavigation/HeaderNavigation.css +87 -0
- package/dist/{index56.js → components/HeaderNavigation/HeaderNavigation2.js} +2 -2
- package/dist/components/Heatmap/Heatmap.css +100 -0
- package/dist/components/Heatmap/Heatmap2.js +160 -0
- package/dist/components/Icon/Icon.css +6 -0
- package/dist/{index6.js → components/Icon/Icon2.js} +2 -2
- package/dist/components/InlineCTA/InlineCTA.css +144 -0
- package/dist/{index58.js → components/InlineCTA/InlineCTA2.js} +17 -5
- package/dist/components/Input/Input.css +75 -0
- package/dist/{index21.js → components/Input/Input2.js} +3 -3
- package/dist/components/LineBarCharts/LineBarChart.css +122 -0
- package/dist/{index60.js → components/LineBarCharts/LineBarChart2.js} +11 -3
- package/dist/components/LoadingIndicators/LoadingIndicators.css +107 -0
- package/dist/{index62.js → components/LoadingIndicators/LoadingIndicators2.js} +2 -2
- package/dist/components/Metrics/Metrics.css +106 -0
- package/dist/{index64.js → components/Metrics/Metrics2.js} +3 -3
- package/dist/components/Modal/Modal.css +198 -0
- package/dist/{index66.js → components/Modal/Modal2.js} +11 -9
- package/dist/components/MultiSelect/MultiSelect.css +174 -0
- package/dist/{index68.js → components/MultiSelect/MultiSelect2.js} +11 -12
- package/dist/components/Notification/Notification.css +242 -0
- package/dist/{index70.js → components/Notification/Notification2.js} +7 -5
- package/dist/components/PageHeader/PageHeader.css +85 -0
- package/dist/{index72.js → components/PageHeader/PageHeader2.js} +3 -3
- package/dist/components/Pagination/Pagination.css +101 -0
- package/dist/{index74.js → components/Pagination/Pagination2.js} +2 -2
- package/dist/components/PieChart/PieChart.css +115 -0
- package/dist/{index76.js → components/PieChart/PieChart2.js} +3 -3
- package/dist/components/ProgressIndicators/ProgressIndicators.css +95 -0
- package/dist/{index78.js → components/ProgressIndicators/ProgressIndicators2.js} +6 -3
- package/dist/components/ProgressSteps/ProgressSteps.css +175 -0
- package/dist/{index80.js → components/ProgressSteps/ProgressSteps2.js} +2 -2
- package/dist/components/RadarChart/RadarChart.css +119 -0
- package/dist/{index82.js → components/RadarChart/RadarChart2.js} +21 -15
- package/dist/components/RadioButton/RadioButton.css +21 -0
- package/dist/{index84.js → components/RadioButton/RadioButton2.js} +2 -2
- package/dist/components/RadioGroup/RadioGroup.css +64 -0
- package/dist/{index86.js → components/RadioGroup/RadioGroup2.js} +2 -2
- package/dist/components/Rating/Rating.css +91 -0
- package/dist/{index88.js → components/Rating/Rating2.js} +3 -3
- package/dist/components/RichTextEditor/RichTextEditor.css +94 -0
- package/dist/{index90.js → components/RichTextEditor/RichTextEditor2.js} +4 -4
- package/dist/components/SectionFooter/SectionFooter.css +59 -0
- package/dist/{index92.js → components/SectionFooter/SectionFooter2.js} +2 -2
- package/dist/components/SectionHeader/SectionHeader.css +78 -0
- package/dist/{index94.js → components/SectionHeader/SectionHeader2.js} +2 -2
- package/dist/components/Select/Select.css +156 -0
- package/dist/{index102.js → components/Select/Select2.js} +11 -12
- package/dist/components/SidebarNavigation/SidebarNavigation.css +116 -0
- package/dist/{index96.js → components/SidebarNavigation/SidebarNavigation2.js} +2 -2
- package/dist/components/SlideoutMenu/SlideoutMenu.css +161 -0
- package/dist/{index98.js → components/SlideoutMenu/SlideoutMenu2.js} +3 -3
- package/dist/components/Slider/Slider.css +106 -0
- package/dist/{index104.js → components/Slider/Slider2.js} +2 -2
- package/dist/components/Sparkline/Sparkline.css +65 -0
- package/dist/components/Sparkline/Sparkline2.js +100 -0
- package/dist/components/Switch/Switch.css +59 -0
- package/dist/{index100.js → components/Switch/Switch2.js} +2 -2
- package/dist/components/Table/Table.css +126 -0
- package/dist/{index108.js → components/Table/Table2.js} +2 -2
- package/dist/components/Tabs/Tabs.css +138 -0
- package/dist/{index110.js → components/Tabs/Tabs2.js} +53 -6
- package/dist/components/Tag/Tag.css +64 -0
- package/dist/{index106.js → components/Tag/Tag2.js} +3 -3
- package/dist/components/Textarea/Textarea.css +52 -0
- package/dist/{index112.js → components/Textarea/Textarea2.js} +3 -3
- package/dist/components/Tooltip/Tooltip.css +61 -0
- package/dist/{index114.js → components/Tooltip/Tooltip2.js} +6 -6
- package/dist/components/TreeView/TreeView.css +109 -0
- package/dist/{index116.js → components/TreeView/TreeView2.js} +2 -2
- package/dist/components/UtilityButton/UtilityButton.css +90 -0
- package/dist/{index118.js → components/UtilityButton/UtilityButton2.js} +2 -2
- package/dist/components/VideoPlayer/VideoPlayer.css +41 -0
- package/dist/{index120.js → components/VideoPlayer/VideoPlayer2.js} +2 -2
- package/dist/{index33.js → hooks/useDisclosure.js} +1 -1
- package/dist/hooks/useExitAnimation.js +25 -0
- package/dist/{index34.js → hooks/useFocusTrap.js} +1 -1
- package/dist/hooks/usePresence.js +31 -0
- package/dist/index.cjs +1030 -4720
- package/dist/index.js +69 -63
- package/dist/src/components/Accordion/Accordion.d.ts +20 -0
- package/dist/src/components/Accordion/Accordion.test.d.ts +1 -0
- package/dist/src/components/Accordion/index.d.ts +1 -0
- package/dist/src/components/GaugeChart/GaugeChart.d.ts +17 -0
- package/dist/src/components/GaugeChart/GaugeChart.test.d.ts +1 -0
- package/dist/src/components/GaugeChart/index.d.ts +1 -0
- package/dist/src/components/Heatmap/Heatmap.d.ts +28 -0
- package/dist/src/components/Heatmap/Heatmap.test.d.ts +1 -0
- package/dist/src/components/Heatmap/index.d.ts +1 -0
- package/dist/src/components/InlineCTA/InlineCTA.d.ts +2 -0
- package/dist/src/components/LineBarCharts/LineBarChart.d.ts +2 -0
- package/dist/src/components/Sparkline/Sparkline.d.ts +17 -0
- package/dist/src/components/Sparkline/Sparkline.test.d.ts +1 -0
- package/dist/src/components/Sparkline/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/useExitAnimation.d.ts +18 -0
- package/dist/src/hooks/usePresence.d.ts +13 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/styles/theme.css +813 -0
- package/dist/styles.css +881 -68
- package/dist/{index19.js → utils/FieldWrapper.js} +1 -1
- package/package.json +8 -4
- package/theme.starter.css +58 -0
- package/dist/index42.js +0 -134
- package/dist/index43.js +0 -16
- package/dist/index44.js +0 -4232
- /package/dist/{index3.js → a11y/index.js} +0 -0
- /package/dist/{index30.js → hooks/useAnchoredPosition.js} +0 -0
- /package/dist/{index31.js → hooks/useComposedRefs.js} +0 -0
- /package/dist/{index32.js → hooks/useControllableState.js} +0 -0
- /package/dist/{index35.js → hooks/useListNavigation.js} +0 -0
- /package/dist/{index36.js → hooks/useOutsideInteraction.js} +0 -0
- /package/dist/{index4.js → utils/cx.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pitchfork-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"src/**/*.css"
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"theme.starter.css"
|
|
14
15
|
],
|
|
15
16
|
"scripts": {
|
|
16
17
|
"build": "vite build",
|
|
@@ -21,13 +22,15 @@
|
|
|
21
22
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
22
23
|
"@fortawesome/free-regular-svg-icons": "^7.2.0",
|
|
23
24
|
"@fortawesome/react-fontawesome": "^3.3.1",
|
|
25
|
+
"prism-react-renderer": "^2.0.0",
|
|
24
26
|
"react": ">=18.2.0 || >=19.0.0",
|
|
25
27
|
"react-dom": ">=18.2.0 || >=19.0.0"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
30
|
"@pitchfork-ui/tokens": "^0.1.0",
|
|
29
31
|
"@vitejs/plugin-react": "latest",
|
|
30
|
-
"vite-plugin-dts": "latest"
|
|
32
|
+
"vite-plugin-dts": "latest",
|
|
33
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
31
34
|
},
|
|
32
35
|
"publishConfig": {
|
|
33
36
|
"access": "public"
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
"import": "./dist/index.js",
|
|
39
42
|
"require": "./dist/index.cjs"
|
|
40
43
|
},
|
|
41
|
-
"./styles.css": "./dist/styles.css"
|
|
44
|
+
"./styles.css": "./dist/styles.css",
|
|
45
|
+
"./theme.starter.css": "./theme.starter.css"
|
|
42
46
|
}
|
|
43
47
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PitchforkUI — theme starter
|
|
3
|
+
*
|
|
4
|
+
* Copy this file into your project and override only the variables you need.
|
|
5
|
+
* Import it AFTER @pitchfork-ui/react/styles.css.
|
|
6
|
+
*
|
|
7
|
+
* import '@pitchfork-ui/react/styles.css';
|
|
8
|
+
* import './my-theme.css';
|
|
9
|
+
*
|
|
10
|
+
* WCAG note: when choosing a primary color, ensure --color-semantic-action-primary-text
|
|
11
|
+
* achieves at least 4.5:1 contrast against --color-semantic-action-primary.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
/* ── Brand / primary action ──────────────────────────────────────────────
|
|
16
|
+
Drives buttons, calendar selections, checkboxes, sliders, pagination,
|
|
17
|
+
progress steps, focus rings, and all other primary interactive states. */
|
|
18
|
+
|
|
19
|
+
--color-semantic-action-primary: #2563eb; /* your brand-600 equivalent */
|
|
20
|
+
--color-semantic-action-primary-hover: #1d4ed8; /* your brand-700 */
|
|
21
|
+
--color-semantic-action-primary-active: #1e40af; /* your brand-800 */
|
|
22
|
+
--color-semantic-action-primary-text: #ffffff; /* text ON the primary color */
|
|
23
|
+
|
|
24
|
+
/* ── Border radius ───────────────────────────────────────────────────────
|
|
25
|
+
Presets:
|
|
26
|
+
sharp → 0 / 2px / 4px / 4px
|
|
27
|
+
default → 0.375rem / 0.5rem / 0.75rem / 9999px
|
|
28
|
+
soft → 0.5rem / 0.75rem / 1rem / 9999px */
|
|
29
|
+
|
|
30
|
+
--radius-sm: 0.375rem;
|
|
31
|
+
--radius-md: 0.5rem;
|
|
32
|
+
--radius-lg: 0.75rem;
|
|
33
|
+
--radius-full: 9999px;
|
|
34
|
+
|
|
35
|
+
/* ── Typography ──────────────────────────────────────────────────────────
|
|
36
|
+
Defaults to Geist (load it, or it falls back to Inter / system-ui).
|
|
37
|
+
Override to use your own typeface.
|
|
38
|
+
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap'); */
|
|
39
|
+
|
|
40
|
+
--font-family-sans: Geist, Inter, system-ui, -apple-system, sans-serif;
|
|
41
|
+
|
|
42
|
+
/* ── Focus ring ──────────────────────────────────────────────────────────
|
|
43
|
+
Defaults to a semi-transparent version of the primary color.
|
|
44
|
+
Override to match your brand or accessibility requirements. */
|
|
45
|
+
|
|
46
|
+
/* --pf-focus-ring-color: var(--color-semantic-action-primary); */
|
|
47
|
+
/* --pf-focus-ring-width: 3px; */
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ── Dark mode overrides ─────────────────────────────────────────────────────
|
|
51
|
+
If you change the brand color, add dark-mode variants here.
|
|
52
|
+
Use a lighter shade so white text keeps a 4.5:1 contrast ratio. */
|
|
53
|
+
|
|
54
|
+
[data-theme='dark'] {
|
|
55
|
+
--color-semantic-action-primary: #3b82f6; /* brand-500 equivalent */
|
|
56
|
+
--color-semantic-action-primary-hover: #2563eb; /* brand-600 */
|
|
57
|
+
--color-semantic-action-primary-active: #1d4ed8; /* brand-700 */
|
|
58
|
+
}
|
package/dist/index42.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { cx } from "./index4.js";
|
|
2
|
-
import { Icon } from "./index6.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { forwardRef, useEffect, useMemo, useState } from "react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/Carousel/Carousel.tsx
|
|
7
|
-
var clamp = (value, min, max) => {
|
|
8
|
-
return Math.min(Math.max(value, min), max);
|
|
9
|
-
};
|
|
10
|
-
var Carousel = forwardRef(function Carousel({ className, slides, initialIndex = 0, loop = true, showIndicators = true, autoPlay = false, autoPlayInterval = 5e3, onIndexChange, "aria-label": ariaLabel = "Carousel", ...props }, ref) {
|
|
11
|
-
const totalSlides = slides.length;
|
|
12
|
-
const [activeIndex, setActiveIndex] = useState(clamp(initialIndex, 0, Math.max(totalSlides - 1, 0)));
|
|
13
|
-
const resolvedActiveIndex = clamp(activeIndex, 0, Math.max(totalSlides - 1, 0));
|
|
14
|
-
const goToIndex = (nextIndex) => {
|
|
15
|
-
if (totalSlides === 0) return;
|
|
16
|
-
const resolvedIndex = loop ? (nextIndex % totalSlides + totalSlides) % totalSlides : clamp(nextIndex, 0, totalSlides - 1);
|
|
17
|
-
setActiveIndex(resolvedIndex);
|
|
18
|
-
onIndexChange?.(resolvedIndex);
|
|
19
|
-
};
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
if (!autoPlay || totalSlides < 2) return;
|
|
22
|
-
const interval = window.setInterval(() => {
|
|
23
|
-
setActiveIndex((current) => {
|
|
24
|
-
const next = loop ? (current + 1) % totalSlides : Math.min(current + 1, totalSlides - 1);
|
|
25
|
-
onIndexChange?.(next);
|
|
26
|
-
return next;
|
|
27
|
-
});
|
|
28
|
-
}, autoPlayInterval);
|
|
29
|
-
return () => {
|
|
30
|
-
window.clearInterval(interval);
|
|
31
|
-
};
|
|
32
|
-
}, [
|
|
33
|
-
autoPlay,
|
|
34
|
-
autoPlayInterval,
|
|
35
|
-
loop,
|
|
36
|
-
onIndexChange,
|
|
37
|
-
totalSlides
|
|
38
|
-
]);
|
|
39
|
-
const isPrevDisabled = !loop && resolvedActiveIndex <= 0;
|
|
40
|
-
const isNextDisabled = !loop && resolvedActiveIndex >= totalSlides - 1;
|
|
41
|
-
const slideLabel = useMemo(() => {
|
|
42
|
-
if (totalSlides === 0) return "No slides";
|
|
43
|
-
return `Slide ${resolvedActiveIndex + 1} of ${totalSlides}`;
|
|
44
|
-
}, [resolvedActiveIndex, totalSlides]);
|
|
45
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
46
|
-
ref,
|
|
47
|
-
className: cx("pf-carousel", className),
|
|
48
|
-
"aria-label": ariaLabel,
|
|
49
|
-
...props,
|
|
50
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
51
|
-
className: "pf-carousel__viewport",
|
|
52
|
-
role: "region",
|
|
53
|
-
"aria-roledescription": "carousel",
|
|
54
|
-
"aria-label": slideLabel,
|
|
55
|
-
children: totalSlides === 0 ? /* @__PURE__ */ jsx("div", {
|
|
56
|
-
className: "pf-carousel__empty",
|
|
57
|
-
role: "status",
|
|
58
|
-
children: "Add at least one slide."
|
|
59
|
-
}) : /* @__PURE__ */ jsx("div", {
|
|
60
|
-
className: "pf-carousel__track",
|
|
61
|
-
style: { transform: `translateX(-${resolvedActiveIndex * 100}%)` },
|
|
62
|
-
children: slides.map((slide, index) => /* @__PURE__ */ jsx("div", {
|
|
63
|
-
className: "pf-carousel__slide",
|
|
64
|
-
role: "group",
|
|
65
|
-
"aria-roledescription": "slide",
|
|
66
|
-
"aria-label": `Slide ${index + 1} of ${totalSlides}`,
|
|
67
|
-
"aria-hidden": index !== resolvedActiveIndex,
|
|
68
|
-
children: slide
|
|
69
|
-
}, `slide-${index}`))
|
|
70
|
-
})
|
|
71
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
72
|
-
className: "pf-carousel__controls",
|
|
73
|
-
onKeyDown: (event) => {
|
|
74
|
-
if (event.key === "ArrowLeft") {
|
|
75
|
-
event.preventDefault();
|
|
76
|
-
goToIndex(resolvedActiveIndex - 1);
|
|
77
|
-
} else if (event.key === "ArrowRight") {
|
|
78
|
-
event.preventDefault();
|
|
79
|
-
goToIndex(resolvedActiveIndex + 1);
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ jsx("button", {
|
|
84
|
-
type: "button",
|
|
85
|
-
className: "pf-carousel__nav",
|
|
86
|
-
"aria-label": "Previous slide",
|
|
87
|
-
disabled: isPrevDisabled || totalSlides < 2,
|
|
88
|
-
onClick: () => {
|
|
89
|
-
goToIndex(resolvedActiveIndex - 1);
|
|
90
|
-
},
|
|
91
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
92
|
-
name: "square-caret-left",
|
|
93
|
-
"aria-hidden": true
|
|
94
|
-
})
|
|
95
|
-
}),
|
|
96
|
-
showIndicators && totalSlides > 1 ? /* @__PURE__ */ jsx("div", {
|
|
97
|
-
className: "pf-carousel__indicators",
|
|
98
|
-
"aria-label": "Slide indicators",
|
|
99
|
-
children: slides.map((_, index) => {
|
|
100
|
-
const isActive = index === resolvedActiveIndex;
|
|
101
|
-
return /* @__PURE__ */ jsx("button", {
|
|
102
|
-
type: "button",
|
|
103
|
-
className: cx("pf-carousel__indicator", isActive && "pf-carousel__indicator--active"),
|
|
104
|
-
"aria-label": `Go to slide ${index + 1}`,
|
|
105
|
-
"aria-current": isActive ? "true" : void 0,
|
|
106
|
-
onClick: () => {
|
|
107
|
-
goToIndex(index);
|
|
108
|
-
}
|
|
109
|
-
}, `indicator-${index}`);
|
|
110
|
-
})
|
|
111
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
112
|
-
className: "pf-carousel__indicator-spacer",
|
|
113
|
-
"aria-hidden": true
|
|
114
|
-
}),
|
|
115
|
-
/* @__PURE__ */ jsx("button", {
|
|
116
|
-
type: "button",
|
|
117
|
-
className: "pf-carousel__nav",
|
|
118
|
-
"aria-label": "Next slide",
|
|
119
|
-
disabled: isNextDisabled || totalSlides < 2,
|
|
120
|
-
onClick: () => {
|
|
121
|
-
goToIndex(resolvedActiveIndex + 1);
|
|
122
|
-
},
|
|
123
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
124
|
-
name: "square-caret-right",
|
|
125
|
-
"aria-hidden": true
|
|
126
|
-
})
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
})]
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
Carousel.displayName = "Carousel";
|
|
133
|
-
//#endregion
|
|
134
|
-
export { Carousel };
|
package/dist/index43.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
2
|
-
function r(e) {
|
|
3
|
-
var t, f, n = "";
|
|
4
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
-
var o = e.length;
|
|
7
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
function clsx() {
|
|
12
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { clsx as default };
|