@bison-lab/ui 0.19.0 → 0.19.2
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/dist/index.d.mts +86 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +320 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1, unstable_PasswordToggleField } from "radix-ui";
|
|
7
7
|
import { cva } from "class-variance-authority";
|
|
8
8
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
9
|
-
import { faAlignCenter, faAlignLeft, faAlignRight, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsUpDown, faBars, faBold, faCalendar, faCamera, faCheck, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChevronsLeft, faChevronsRight, faCircle, faCircleCheck, faCircleExclamation, faCircleInfo, faCircleXmark, faCode, faEllipsis, faEnvelope, faEye, faEyeSlash, faFileCircleQuestion, faH1, faH2, faH3, faImage, faInbox, faItalic, faLink, faLinkSlash, faList, faListOl, faMagnifyingGlass, faMinus, faPen, faPlus, faQuoteLeft, faRightFromBracket, faRotateLeft, faRotateRight, faServer, faShieldExclamation, faSidebarFlip, faSlidersUp, faSpinnerThird, faStrikethrough, faTriangleExclamation, faUnderline, faUpDown, faWrench, faXmark } from "@fortawesome/pro-regular-svg-icons";
|
|
9
|
+
import { faAlignCenter, faAlignLeft, faAlignRight, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsUpDown, faBars, faBold, faCalendar, faCamera, faCheck, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChevronsLeft, faChevronsRight, faCircle, faCircleCheck, faCircleExclamation, faCircleInfo, faCircleXmark, faCode, faEllipsis, faEnvelope, faEye, faEyeSlash, faFileCircleQuestion, faForward, faH1, faH2, faH3, faImage, faInbox, faItalic, faLink, faLinkSlash, faList, faListOl, faMagnifyingGlass, faMinus, faPen, faPlus, faQuoteLeft, faRightFromBracket, faRotateLeft, faRotateRight, faServer, faShieldExclamation, faSidebarFlip, faSlidersUp, faSpinnerThird, faStrikethrough, faTriangleExclamation, faUnderline, faUpDown, faWrench, faXmark } from "@fortawesome/pro-regular-svg-icons";
|
|
10
10
|
import { DayPicker } from "react-day-picker";
|
|
11
11
|
import { endOfMonth, endOfWeek, format, startOfMonth, startOfWeek, startOfYear, subDays, subMonths, subYears } from "date-fns";
|
|
12
12
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
@@ -1588,17 +1588,37 @@ const AlertDescription = React.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1588
1588
|
}));
|
|
1589
1589
|
AlertDescription.displayName = "AlertDescription";
|
|
1590
1590
|
//#endregion
|
|
1591
|
+
//#region src/lib/semantic-tint-tones.ts
|
|
1592
|
+
/**
|
|
1593
|
+
* Soft semantic tints — used for status indicators (badges, callouts) where
|
|
1594
|
+
* the element is informational/passive (not an interactive tile or button).
|
|
1595
|
+
*
|
|
1596
|
+
* Pattern: `border-{color}-500/30 bg-{color}-500/10 text-{color}-700`
|
|
1597
|
+
* with dark-mode shifts to `*-400` shades. Yields a subtle, non-clickable
|
|
1598
|
+
* "I am a {success|warning|error|info} indicator" look.
|
|
1599
|
+
*
|
|
1600
|
+
* Distinct from `semantic-action-tones.ts`:
|
|
1601
|
+
* - Action tones (positive/negative): brighter, clickable tile look
|
|
1602
|
+
* (`bg-X-100 + border-X-200/0.9 + text-X-600 + shadow-sm`). Used by Button.
|
|
1603
|
+
* - Tint tones (here): subtler, indicator look. Used by Badge.
|
|
1604
|
+
*
|
|
1605
|
+
* If you find yourself reaching for "soft semantic background" — interactive
|
|
1606
|
+
* → use action tones; passive → use these.
|
|
1607
|
+
*/
|
|
1608
|
+
const tintToneSuccess = "border-success-500/30 bg-success-500/10 text-success-700 dark:border-success-400/30 dark:bg-success-400/10 dark:text-success-400";
|
|
1609
|
+
const tintToneWarning = "border-warning-500/30 bg-warning-500/10 text-warning-700 dark:border-warning-400/30 dark:bg-warning-400/10 dark:text-warning-400";
|
|
1610
|
+
//#endregion
|
|
1591
1611
|
//#region src/components/badge.tsx
|
|
1592
|
-
const badgeVariants = cva("inline-flex h-6 items-center justify-center rounded-
|
|
1612
|
+
const badgeVariants = cva("inline-flex h-6 items-center justify-center rounded-md border px-2.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-2", {
|
|
1593
1613
|
variants: { variant: {
|
|
1594
|
-
default: "border-
|
|
1614
|
+
default: "border-border bg-muted text-muted-foreground hover:bg-muted/80",
|
|
1595
1615
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary-700",
|
|
1596
1616
|
accent: "border-transparent bg-brand-accent text-brand-accent-foreground hover:bg-brand-accent-600",
|
|
1597
1617
|
highlight: "border-transparent bg-highlight text-highlight-foreground hover:bg-highlight-600",
|
|
1598
1618
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive-700",
|
|
1599
1619
|
outline: "text-foreground",
|
|
1600
|
-
success:
|
|
1601
|
-
warning:
|
|
1620
|
+
success: tintToneSuccess,
|
|
1621
|
+
warning: tintToneWarning,
|
|
1602
1622
|
error: "border-destructive-500/30 bg-destructive-500/10 text-destructive-700 dark:border-destructive-400/30 dark:bg-destructive-400/10 dark:text-destructive-400",
|
|
1603
1623
|
info: "border-primary-500/30 bg-primary-500/10 text-primary-700 dark:border-primary-400/30 dark:bg-primary-400/10 dark:text-primary-400"
|
|
1604
1624
|
} },
|
|
@@ -1984,6 +2004,300 @@ const TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1984
2004
|
...props
|
|
1985
2005
|
}));
|
|
1986
2006
|
TabsContent.displayName = Tabs$1.Content.displayName;
|
|
2007
|
+
const CONNECTOR_THICKNESS_PX = 2;
|
|
2008
|
+
const StepperContext = React.createContext(null);
|
|
2009
|
+
function useStepperContext(component) {
|
|
2010
|
+
const ctx = React.useContext(StepperContext);
|
|
2011
|
+
if (!ctx) throw new Error(`<${component}> must be used inside <Stepper>`);
|
|
2012
|
+
return ctx;
|
|
2013
|
+
}
|
|
2014
|
+
const StepperItemContext = React.createContext(null);
|
|
2015
|
+
function useStepperItemContext(component) {
|
|
2016
|
+
const ctx = React.useContext(StepperItemContext);
|
|
2017
|
+
if (!ctx) throw new Error(`<${component}> must be used inside <StepperItem>`);
|
|
2018
|
+
return ctx;
|
|
2019
|
+
}
|
|
2020
|
+
const Stepper = React.forwardRef(({ className, orientation = "horizontal", interactive = false, allowSkipAhead = false, onStepClick, children, ...props }, ref) => {
|
|
2021
|
+
const value = React.useMemo(() => ({
|
|
2022
|
+
orientation,
|
|
2023
|
+
interactive,
|
|
2024
|
+
allowSkipAhead,
|
|
2025
|
+
onStepClick
|
|
2026
|
+
}), [
|
|
2027
|
+
orientation,
|
|
2028
|
+
interactive,
|
|
2029
|
+
allowSkipAhead,
|
|
2030
|
+
onStepClick
|
|
2031
|
+
]);
|
|
2032
|
+
const childArray = React.Children.toArray(children);
|
|
2033
|
+
const totalItems = childArray.reduce((acc, child) => React.isValidElement(child) && child.type?.displayName === "StepperItem" ? acc + 1 : acc, 0);
|
|
2034
|
+
let itemIndex = 0;
|
|
2035
|
+
const decoratedChildren = childArray.map((child) => {
|
|
2036
|
+
if (!React.isValidElement(child) || child.type?.displayName !== "StepperItem") return child;
|
|
2037
|
+
const index = itemIndex;
|
|
2038
|
+
itemIndex += 1;
|
|
2039
|
+
return React.cloneElement(child, {
|
|
2040
|
+
_index: index,
|
|
2041
|
+
_isLast: index === totalItems - 1
|
|
2042
|
+
});
|
|
2043
|
+
});
|
|
2044
|
+
return /* @__PURE__ */ jsx(StepperContext.Provider, {
|
|
2045
|
+
value,
|
|
2046
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
2047
|
+
ref,
|
|
2048
|
+
role: interactive ? "tablist" : void 0,
|
|
2049
|
+
"aria-orientation": orientation,
|
|
2050
|
+
className: cn("flex w-full", orientation === "horizontal" ? "flex-row items-start" : "flex-col items-stretch", className),
|
|
2051
|
+
...props,
|
|
2052
|
+
children: decoratedChildren
|
|
2053
|
+
})
|
|
2054
|
+
});
|
|
2055
|
+
});
|
|
2056
|
+
Stepper.displayName = "Stepper";
|
|
2057
|
+
const stepperItemVariants = cva("group/stepper-item relative flex transition-colors", {
|
|
2058
|
+
variants: {
|
|
2059
|
+
orientation: {
|
|
2060
|
+
horizontal: "min-w-0 flex-1 flex-col items-center text-center",
|
|
2061
|
+
vertical: "flex-row items-start gap-3 text-left"
|
|
2062
|
+
},
|
|
2063
|
+
interactive: {
|
|
2064
|
+
true: "cursor-pointer rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",
|
|
2065
|
+
false: ""
|
|
2066
|
+
}
|
|
2067
|
+
},
|
|
2068
|
+
defaultVariants: {
|
|
2069
|
+
orientation: "horizontal",
|
|
2070
|
+
interactive: false
|
|
2071
|
+
}
|
|
2072
|
+
});
|
|
2073
|
+
const StepperItem = React.forwardRef(({ state = "upcoming", connectorState, hideConnector = false, disabled: disabledProp, className, onClick, children, _index, _isLast, ...props }, ref) => {
|
|
2074
|
+
const { orientation, interactive, allowSkipAhead, onStepClick } = useStepperContext("StepperItem");
|
|
2075
|
+
const index = _index ?? 0;
|
|
2076
|
+
const isLast = _isLast ?? true;
|
|
2077
|
+
const disabled = disabledProp ?? (interactive && state === "upcoming" && !allowSkipAhead);
|
|
2078
|
+
const itemValue = React.useMemo(() => ({
|
|
2079
|
+
state,
|
|
2080
|
+
index,
|
|
2081
|
+
isLast,
|
|
2082
|
+
disabled
|
|
2083
|
+
}), [
|
|
2084
|
+
state,
|
|
2085
|
+
index,
|
|
2086
|
+
isLast,
|
|
2087
|
+
disabled
|
|
2088
|
+
]);
|
|
2089
|
+
const handleClick = (event) => {
|
|
2090
|
+
if (disabled) return;
|
|
2091
|
+
onClick?.(event);
|
|
2092
|
+
onStepClick?.(index);
|
|
2093
|
+
};
|
|
2094
|
+
const handleKeyDown = (event) => {
|
|
2095
|
+
if (!interactive) return;
|
|
2096
|
+
const target = event.currentTarget;
|
|
2097
|
+
const items = Array.from(target.parentElement?.querySelectorAll("[data-stepper-item=\"true\"]:not([disabled])") ?? []);
|
|
2098
|
+
const currentIdx = items.indexOf(target);
|
|
2099
|
+
if (currentIdx < 0) return;
|
|
2100
|
+
const nextKey = orientation === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2101
|
+
const prevKey = orientation === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
2102
|
+
if (event.key === nextKey) {
|
|
2103
|
+
event.preventDefault();
|
|
2104
|
+
items[(currentIdx + 1) % items.length]?.focus();
|
|
2105
|
+
} else if (event.key === prevKey) {
|
|
2106
|
+
event.preventDefault();
|
|
2107
|
+
items[(currentIdx - 1 + items.length) % items.length]?.focus();
|
|
2108
|
+
} else if (event.key === "Home") {
|
|
2109
|
+
event.preventDefault();
|
|
2110
|
+
items[0]?.focus();
|
|
2111
|
+
} else if (event.key === "End") {
|
|
2112
|
+
event.preventDefault();
|
|
2113
|
+
items[items.length - 1]?.focus();
|
|
2114
|
+
}
|
|
2115
|
+
};
|
|
2116
|
+
const showConnector = !isLast && !hideConnector;
|
|
2117
|
+
const resolvedConnectorState = connectorState ?? state;
|
|
2118
|
+
const itemSpacing = !showConnector ? "" : orientation === "vertical" ? "pb-8" : "";
|
|
2119
|
+
const sharedProps = {
|
|
2120
|
+
"data-stepper-item": "true",
|
|
2121
|
+
"data-state": state,
|
|
2122
|
+
"aria-current": state === "active" ? "step" : void 0,
|
|
2123
|
+
className: cn(stepperItemVariants({
|
|
2124
|
+
orientation,
|
|
2125
|
+
interactive
|
|
2126
|
+
}), itemSpacing, className)
|
|
2127
|
+
};
|
|
2128
|
+
const { indicator, rest } = splitIndicator(children);
|
|
2129
|
+
const content = /* @__PURE__ */ jsxs(StepperItemContext.Provider, {
|
|
2130
|
+
value: itemValue,
|
|
2131
|
+
children: [
|
|
2132
|
+
indicator,
|
|
2133
|
+
rest.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
2134
|
+
className: cn("relative z-10 flex min-w-0 flex-col gap-1", orientation === "horizontal" ? "mt-2 items-center" : "flex-1 items-start"),
|
|
2135
|
+
children: rest
|
|
2136
|
+
}) : null,
|
|
2137
|
+
showConnector ? /* @__PURE__ */ jsx(Connector, {
|
|
2138
|
+
orientation,
|
|
2139
|
+
state: resolvedConnectorState
|
|
2140
|
+
}) : null
|
|
2141
|
+
]
|
|
2142
|
+
});
|
|
2143
|
+
if (interactive) return /* @__PURE__ */ jsx("button", {
|
|
2144
|
+
ref,
|
|
2145
|
+
type: "button",
|
|
2146
|
+
role: "tab",
|
|
2147
|
+
"aria-selected": state === "active",
|
|
2148
|
+
disabled,
|
|
2149
|
+
onClick: handleClick,
|
|
2150
|
+
onKeyDown: handleKeyDown,
|
|
2151
|
+
...sharedProps,
|
|
2152
|
+
...props,
|
|
2153
|
+
children: content
|
|
2154
|
+
});
|
|
2155
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2156
|
+
ref,
|
|
2157
|
+
...sharedProps,
|
|
2158
|
+
...props,
|
|
2159
|
+
children: content
|
|
2160
|
+
});
|
|
2161
|
+
});
|
|
2162
|
+
StepperItem.displayName = "StepperItem";
|
|
2163
|
+
/**
|
|
2164
|
+
* Trailing connector line, absolutely positioned along the indicator's
|
|
2165
|
+
* center axis. By anchoring to the item box (not to a flex sibling) the
|
|
2166
|
+
* line is guaranteed to align with the indicator regardless of how much
|
|
2167
|
+
* content sits below or beside it.
|
|
2168
|
+
*
|
|
2169
|
+
* - Horizontal: line runs from the right edge of this item's indicator to
|
|
2170
|
+
* the left edge of the next item's indicator. Top = indicator center.
|
|
2171
|
+
* - Vertical: line runs from the bottom edge of this item's indicator to
|
|
2172
|
+
* the top edge of the next item's indicator. Left = indicator center.
|
|
2173
|
+
*/
|
|
2174
|
+
function Connector({ orientation, state }) {
|
|
2175
|
+
if (orientation === "horizontal") return /* @__PURE__ */ jsx("div", {
|
|
2176
|
+
role: "presentation",
|
|
2177
|
+
"aria-hidden": "true",
|
|
2178
|
+
className: cn("pointer-events-none absolute z-0 h-0.5 transition-colors", connectorColor(state)),
|
|
2179
|
+
style: {
|
|
2180
|
+
top: 18 - CONNECTOR_THICKNESS_PX / 2,
|
|
2181
|
+
left: `calc(50% + 18px)`,
|
|
2182
|
+
right: `calc(-50% + 18px)`
|
|
2183
|
+
}
|
|
2184
|
+
});
|
|
2185
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2186
|
+
role: "presentation",
|
|
2187
|
+
"aria-hidden": "true",
|
|
2188
|
+
className: cn("pointer-events-none absolute z-0 w-0.5 transition-colors", connectorColor(state)),
|
|
2189
|
+
style: {
|
|
2190
|
+
left: 18 - CONNECTOR_THICKNESS_PX / 2,
|
|
2191
|
+
top: 36,
|
|
2192
|
+
bottom: 0
|
|
2193
|
+
}
|
|
2194
|
+
});
|
|
2195
|
+
}
|
|
2196
|
+
/**
|
|
2197
|
+
* Pulls the first <StepperIndicator> out of a children list. Returns the
|
|
2198
|
+
* indicator (or null) and the remaining children. Identity-checked so it
|
|
2199
|
+
* works with forwardRef wrappers regardless of displayName quirks.
|
|
2200
|
+
*/
|
|
2201
|
+
function splitIndicator(children) {
|
|
2202
|
+
let indicator = null;
|
|
2203
|
+
const rest = [];
|
|
2204
|
+
React.Children.forEach(children, (child) => {
|
|
2205
|
+
if (indicator === null && React.isValidElement(child) && child.type === StepperIndicator) indicator = child;
|
|
2206
|
+
else rest.push(child);
|
|
2207
|
+
});
|
|
2208
|
+
return {
|
|
2209
|
+
indicator,
|
|
2210
|
+
rest
|
|
2211
|
+
};
|
|
2212
|
+
}
|
|
2213
|
+
function connectorColor(state) {
|
|
2214
|
+
switch (state) {
|
|
2215
|
+
case "completed": return "bg-success-500 dark:bg-success-400";
|
|
2216
|
+
case "active": return "bg-primary";
|
|
2217
|
+
case "skipped": return "bg-warning-500 dark:bg-warning-400";
|
|
2218
|
+
default: return "bg-border";
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
const stepperIndicatorVariants = cva("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full border-2 text-sm font-semibold transition-colors", {
|
|
2222
|
+
variants: { state: {
|
|
2223
|
+
completed: tintToneSuccess,
|
|
2224
|
+
active: "border-primary bg-primary text-primary-foreground ring-2 ring-primary/30 ring-offset-2 ring-offset-background",
|
|
2225
|
+
skipped: tintToneWarning,
|
|
2226
|
+
upcoming: "border-border bg-muted text-muted-foreground"
|
|
2227
|
+
} },
|
|
2228
|
+
defaultVariants: { state: "upcoming" }
|
|
2229
|
+
});
|
|
2230
|
+
const StepperIndicator = React.forwardRef(({ className, icon, children, style, ...props }, ref) => {
|
|
2231
|
+
const { state, index } = useStepperItemContext("StepperIndicator");
|
|
2232
|
+
let inner;
|
|
2233
|
+
if (state === "completed") inner = /* @__PURE__ */ jsx(FontAwesomeIcon, {
|
|
2234
|
+
icon: faCheck,
|
|
2235
|
+
className: "h-4 w-4",
|
|
2236
|
+
"aria-hidden": "true"
|
|
2237
|
+
});
|
|
2238
|
+
else if (state === "skipped") inner = /* @__PURE__ */ jsx(FontAwesomeIcon, {
|
|
2239
|
+
icon: faForward,
|
|
2240
|
+
className: "h-4 w-4",
|
|
2241
|
+
"aria-hidden": "true"
|
|
2242
|
+
});
|
|
2243
|
+
else if (icon) inner = /* @__PURE__ */ jsx(FontAwesomeIcon, {
|
|
2244
|
+
icon,
|
|
2245
|
+
className: "h-4 w-4",
|
|
2246
|
+
"aria-hidden": "true"
|
|
2247
|
+
});
|
|
2248
|
+
else if (children !== void 0) inner = children;
|
|
2249
|
+
else inner = index + 1;
|
|
2250
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2251
|
+
ref,
|
|
2252
|
+
"aria-hidden": state !== "active",
|
|
2253
|
+
className: cn(stepperIndicatorVariants({ state }), className),
|
|
2254
|
+
style: {
|
|
2255
|
+
height: 36,
|
|
2256
|
+
width: 36,
|
|
2257
|
+
...style
|
|
2258
|
+
},
|
|
2259
|
+
...props,
|
|
2260
|
+
children: inner
|
|
2261
|
+
});
|
|
2262
|
+
});
|
|
2263
|
+
StepperIndicator.displayName = "StepperIndicator";
|
|
2264
|
+
const stepperLabelVariants = cva("text-sm font-medium transition-colors", {
|
|
2265
|
+
variants: { state: {
|
|
2266
|
+
completed: "text-foreground",
|
|
2267
|
+
active: "text-foreground",
|
|
2268
|
+
skipped: "text-muted-foreground line-through",
|
|
2269
|
+
upcoming: "text-muted-foreground"
|
|
2270
|
+
} },
|
|
2271
|
+
defaultVariants: { state: "upcoming" }
|
|
2272
|
+
});
|
|
2273
|
+
const StepperLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
2274
|
+
const { state } = useStepperItemContext("StepperLabel");
|
|
2275
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2276
|
+
ref,
|
|
2277
|
+
className: cn(stepperLabelVariants({ state }), className),
|
|
2278
|
+
...props
|
|
2279
|
+
});
|
|
2280
|
+
});
|
|
2281
|
+
StepperLabel.displayName = "StepperLabel";
|
|
2282
|
+
const StepperDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("span", {
|
|
2283
|
+
ref,
|
|
2284
|
+
className: cn("text-xs text-muted-foreground", className),
|
|
2285
|
+
...props
|
|
2286
|
+
}));
|
|
2287
|
+
StepperDescription.displayName = "StepperDescription";
|
|
2288
|
+
/**
|
|
2289
|
+
* Backwards-compatible no-op separator.
|
|
2290
|
+
*
|
|
2291
|
+
* The connector line between steps is now rendered automatically by each
|
|
2292
|
+
* `<StepperItem>`. Continue using `<StepperSeparator>` between items if you
|
|
2293
|
+
* prefer the explicit syntax — it renders nothing and the auto-connector
|
|
2294
|
+
* handles the visual.
|
|
2295
|
+
*
|
|
2296
|
+
* @deprecated Connectors are rendered automatically by `<StepperItem>`.
|
|
2297
|
+
* This component is now a no-op kept for source compatibility.
|
|
2298
|
+
*/
|
|
2299
|
+
const StepperSeparator = () => null;
|
|
2300
|
+
StepperSeparator.displayName = "StepperSeparator";
|
|
1987
2301
|
//#endregion
|
|
1988
2302
|
//#region src/components/accordion.tsx
|
|
1989
2303
|
const Accordion = Accordion$1.Root;
|
|
@@ -5086,6 +5400,6 @@ function NotificationSettingsBlock({ groups, onSave, loading = false, error, dis
|
|
|
5086
5400
|
});
|
|
5087
5401
|
}
|
|
5088
5402
|
//#endregion
|
|
5089
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSidebarBlock, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BisonProvider, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeInput, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CurrencyInput, DataTable, DataTableColumnHeader, DatePicker, DateRangePicker, DensityProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableTitle, EmptyStateBlock, FooterBlock, ForgotPasswordBlock, Form, FormError, FormField, HeaderBlock, Input, InputGroup, Label, MaintenanceBlock, MediaCard, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, NotificationSettingsBlock, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, ResetPasswordBlock, SavedPing, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBlock, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignInBlock, SignUpBlock, Skeleton, Slider, SocialProviders, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextContent, TextEditor, Textarea, ThemeProvider, ThemeScope, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, navigationMenuTriggerStyle, progressBarVariants, spinnerVariants, toast, useDensity, useFormContext, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
5403
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSidebarBlock, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BisonProvider, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeInput, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CurrencyInput, DataTable, DataTableColumnHeader, DatePicker, DateRangePicker, DensityProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableTitle, EmptyStateBlock, FooterBlock, ForgotPasswordBlock, Form, FormError, FormField, HeaderBlock, Input, InputGroup, Label, MaintenanceBlock, MediaCard, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, NotificationSettingsBlock, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, ResetPasswordBlock, SavedPing, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarBlock, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignInBlock, SignUpBlock, Skeleton, Slider, SocialProviders, Spinner, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperLabel, StepperSeparator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TextContent, TextEditor, Textarea, ThemeProvider, ThemeScope, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, navigationMenuTriggerStyle, progressBarVariants, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, toast, useDensity, useFormContext, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
5090
5404
|
|
|
5091
5405
|
//# sourceMappingURL=index.mjs.map
|