@bison-lab/ui 1.5.1 → 1.7.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/dist/index.d.mts +42 -15
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +191 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -462,7 +462,7 @@ const OutlinedField = React.forwardRef(({ label, htmlFor, error, errorVersion =
|
|
|
462
462
|
children: [
|
|
463
463
|
/* @__PURE__ */ jsxs("div", {
|
|
464
464
|
ref: shellRef,
|
|
465
|
-
className: cn("group/outlined relative w-full min-w-0 rounded-md border border-input bg-background", "ring-offset-background", "focus-within:border-primary focus-within:ring-2 focus-within:ring-primary/30 focus-within:ring-offset-0", error && "border-destructive bison-shake", outlinedFieldNestResetClasses, isTextarea ? "flex min-h-[80px] flex-col py-2" : "flex h-[var(--density-height-md)] items-stretch", !isFloated && !focused && "[&_input]:placeholder:text-transparent [&_textarea]:placeholder:text-transparent"),
|
|
465
|
+
className: cn("group/outlined relative w-full min-w-0 rounded-md border border-input bg-background", "ring-offset-background", "focus-within:border-primary focus-within:ring-2 focus-within:ring-primary/30 focus-within:ring-offset-0", error && "border-destructive bison-shake", outlinedFieldNestResetClasses, isTextarea ? "flex min-h-[80px] flex-col py-2" : "flex h-[var(--density-height-md)] items-stretch pointer-coarse:min-h-11", !isFloated && !focused && "[&_input]:placeholder:text-transparent [&_textarea]:placeholder:text-transparent"),
|
|
466
466
|
onInputCapture: handleInputCapture,
|
|
467
467
|
children: [/* @__PURE__ */ jsxs(motion.label, {
|
|
468
468
|
htmlFor,
|
|
@@ -654,10 +654,50 @@ const inputSurfaceClasses = "flex w-full rounded-md border border-input bg-backg
|
|
|
654
654
|
*/
|
|
655
655
|
const inputFocusClasses = "focus-visible:outline-none focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:ring-offset-0";
|
|
656
656
|
/**
|
|
657
|
-
* Standard single-line input sizing:
|
|
658
|
-
* Textarea uses `min-h-[80px]`
|
|
657
|
+
* Standard single-line input sizing per size: density height + horizontal
|
|
658
|
+
* padding + vertical padding, scaled per size. Textarea uses `min-h-[80px]`
|
|
659
|
+
* instead of any of these.
|
|
660
|
+
*
|
|
661
|
+
* `pointer-coarse:min-h-11` floors the height at 44px on touch pointers on
|
|
662
|
+
* every size, matching the Button primitive (and Button-based DatePicker /
|
|
663
|
+
* DateRangePicker triggers) so inputs, selects, and buttons stay the same
|
|
664
|
+
* height when combined in a form. Fine (mouse) pointers keep the exact
|
|
665
|
+
* density height for the chosen size.
|
|
666
|
+
*
|
|
667
|
+
* `'md'` (the default) is byte-identical to the original fixed sizing this
|
|
668
|
+
* function replaced — every existing caller passes `'md'` explicitly and
|
|
669
|
+
* renders unchanged.
|
|
670
|
+
*/
|
|
671
|
+
const inputSizingClassesBySize = {
|
|
672
|
+
sm: "h-[var(--density-height-sm)] px-3 py-1 text-sm pointer-coarse:min-h-11",
|
|
673
|
+
md: "h-[var(--density-height-md)] px-3 py-2 pointer-coarse:min-h-11",
|
|
674
|
+
lg: "h-[var(--density-height-lg)] px-3 py-2.5 text-base pointer-coarse:min-h-11"
|
|
675
|
+
};
|
|
676
|
+
function inputSizingClasses(size = "md") {
|
|
677
|
+
return inputSizingClassesBySize[size];
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Minimum 44px tap target on touch (coarse) pointers, applied to the element
|
|
681
|
+
* itself. For standalone icon buttons that can safely grow their box on touch
|
|
682
|
+
* without crowding neighbors (e.g. Dialog / Sheet close). Pair with
|
|
683
|
+
* `inline-flex items-center justify-center` to keep the glyph centered. Fine
|
|
684
|
+
* (mouse) pointers are unchanged, so desktop chrome is pixel-identical. Mirrors
|
|
685
|
+
* the Button primitive's own coarse-pointer floor (WCAG 2.5.5).
|
|
686
|
+
*
|
|
687
|
+
* Used by: Dialog Close, Sheet Close.
|
|
688
|
+
*/
|
|
689
|
+
const touchTargetClasses = "pointer-coarse:min-h-11 pointer-coarse:min-w-11";
|
|
690
|
+
/**
|
|
691
|
+
* Expanded 44px tap target for small controls whose *visual* size must stay
|
|
692
|
+
* fixed (a 44px checkbox would look broken). Renders a centered, transparent
|
|
693
|
+
* 44px pseudo-element that captures pointer events on touch (coarse) pointers
|
|
694
|
+
* only, so the drawn control is unchanged on every pointer and desktop layouts
|
|
695
|
+
* (dense tables, tight forms) stay pixel-identical. Includes `relative`; the
|
|
696
|
+
* host element must not be `overflow-hidden` or the pseudo is clipped.
|
|
697
|
+
*
|
|
698
|
+
* Used by: Checkbox, Radio, Switch, Slider thumb.
|
|
659
699
|
*/
|
|
660
|
-
const
|
|
700
|
+
const coarseHitAreaClasses = "relative before:absolute before:left-1/2 before:top-1/2 before:hidden before:size-11 before:-translate-x-1/2 before:-translate-y-1/2 before:content-[''] pointer-coarse:before:block";
|
|
661
701
|
/**
|
|
662
702
|
* Menu surface chrome shared by floating menus and popovers:
|
|
663
703
|
* Select Content, DropdownMenu Content, ContextMenu Content, Command.
|
|
@@ -709,7 +749,7 @@ const centeredModalContentClasses = "fixed left-[50%] top-[50%] z-[var(--z-modal
|
|
|
709
749
|
const Input = React.forwardRef(({ className, type, ...props }, ref) => {
|
|
710
750
|
return /* @__PURE__ */ jsx("input", {
|
|
711
751
|
type,
|
|
712
|
-
className: cn(inputSurfaceClasses, inputSizingClasses, inputFocusClasses, "file:border-0 file:bg-transparent file:text-base file:font-medium sm:file:text-sm", className),
|
|
752
|
+
className: cn(inputSurfaceClasses, inputSizingClasses("md"), inputFocusClasses, "file:border-0 file:bg-transparent file:text-base file:font-medium sm:file:text-sm", className),
|
|
713
753
|
ref,
|
|
714
754
|
...props
|
|
715
755
|
});
|
|
@@ -721,7 +761,7 @@ const PasswordInput = React.forwardRef(({ className, ...props }, ref) => {
|
|
|
721
761
|
return /* @__PURE__ */ jsx(unstable_PasswordToggleField.Root, { children: /* @__PURE__ */ jsxs("div", {
|
|
722
762
|
className: "relative",
|
|
723
763
|
children: [/* @__PURE__ */ jsx(unstable_PasswordToggleField.Input, {
|
|
724
|
-
className: cn(inputSurfaceClasses, inputSizingClasses, inputFocusClasses, "pr-10 file:border-0 file:bg-transparent file:text-base file:font-medium sm:file:text-sm", className),
|
|
764
|
+
className: cn(inputSurfaceClasses, inputSizingClasses("md"), inputFocusClasses, "pr-10 file:border-0 file:bg-transparent file:text-base file:font-medium sm:file:text-sm", className),
|
|
725
765
|
ref,
|
|
726
766
|
...props
|
|
727
767
|
}), /* @__PURE__ */ jsx(unstable_PasswordToggleField.Toggle, {
|
|
@@ -845,7 +885,7 @@ const CurrencyInput = React.forwardRef(({ className, value, onChange, symbol = "
|
|
|
845
885
|
value: display,
|
|
846
886
|
onChange: handleChange,
|
|
847
887
|
onBlur: handleBlur,
|
|
848
|
-
className: cn(inputSurfaceClasses, inputSizingClasses, inputFocusClasses, "pl-7 pr-3 text-sm", className),
|
|
888
|
+
className: cn(inputSurfaceClasses, inputSizingClasses("md"), inputFocusClasses, "pl-7 pr-3 text-sm", className),
|
|
849
889
|
...props
|
|
850
890
|
})]
|
|
851
891
|
});
|
|
@@ -956,7 +996,7 @@ const SelectGroup = Select$1.Group;
|
|
|
956
996
|
const SelectValue = Select$1.Value;
|
|
957
997
|
const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(Select$1.Trigger, {
|
|
958
998
|
ref,
|
|
959
|
-
className: cn(inputSurfaceClasses, inputSizingClasses, inputFocusClasses, "items-center justify-between [&>span]:line-clamp-1", className),
|
|
999
|
+
className: cn(inputSurfaceClasses, inputSizingClasses("md"), inputFocusClasses, "items-center justify-between [&>span]:line-clamp-1", className),
|
|
960
1000
|
...props,
|
|
961
1001
|
children: [children, /* @__PURE__ */ jsx(Select$1.Icon, {
|
|
962
1002
|
asChild: true,
|
|
@@ -1099,6 +1139,142 @@ const DatePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a da
|
|
|
1099
1139
|
});
|
|
1100
1140
|
DatePicker.displayName = "DatePicker";
|
|
1101
1141
|
//#endregion
|
|
1142
|
+
//#region src/components/time-picker.tsx
|
|
1143
|
+
const useIsomorphicLayoutEffect$1 = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
1144
|
+
/** Zero-pads a number to a 2-digit string ("5" → "05"). */
|
|
1145
|
+
function pad2(n) {
|
|
1146
|
+
return String(n).padStart(2, "0");
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* A segment's controlled Select value: zero-padded, or `''` when unset.
|
|
1150
|
+
*
|
|
1151
|
+
* Radix's Select.Root treats `''` as "clear the selection and show the
|
|
1152
|
+
* placeholder" (see @radix-ui/react-select's own SelectItem invariant: a
|
|
1153
|
+
* SelectItem's value may never be `''` for exactly this reason) while still
|
|
1154
|
+
* remaining fully controlled by us. Passing `undefined` instead would leave
|
|
1155
|
+
* Select.Root uncontrolled whenever a segment is unset, and Radix's internal
|
|
1156
|
+
* uncontrolled fallback state -- populated only by the user's own picks via
|
|
1157
|
+
* onValueChange -- does not reset just because our `value` prop returns to
|
|
1158
|
+
* `undefined`, so a cleared, previously-picked trigger would keep showing
|
|
1159
|
+
* its last value. Always passing a defined string avoids that entirely.
|
|
1160
|
+
*/
|
|
1161
|
+
function toSegmentValue(n) {
|
|
1162
|
+
return n === void 0 ? "" : pad2(n);
|
|
1163
|
+
}
|
|
1164
|
+
const HOUR_OPTIONS = Array.from({ length: 12 }, (_, i) => pad2(i + 1));
|
|
1165
|
+
/** Generates zero-padded minute option strings ("00", "05", ...) stepped by `step`. */
|
|
1166
|
+
function getMinuteOptions(step) {
|
|
1167
|
+
const options = [];
|
|
1168
|
+
for (let minute = 0; minute < 60; minute += step) options.push(pad2(minute));
|
|
1169
|
+
return options;
|
|
1170
|
+
}
|
|
1171
|
+
/** Parses a 24-hour "HH:mm" string into 12-hour parts. Returns {} for undefined/malformed input. */
|
|
1172
|
+
function parseTimeValue(value) {
|
|
1173
|
+
if (!value) return {};
|
|
1174
|
+
const match = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(value);
|
|
1175
|
+
if (!match) return {};
|
|
1176
|
+
const hour24 = Number(match[1]);
|
|
1177
|
+
const minute = Number(match[2]);
|
|
1178
|
+
const period = hour24 >= 12 ? "PM" : "AM";
|
|
1179
|
+
return {
|
|
1180
|
+
hour12: hour24 % 12 === 0 ? 12 : hour24 % 12,
|
|
1181
|
+
minute,
|
|
1182
|
+
period
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
/** Formats 12-hour parts back into a 24-hour "HH:mm" string. */
|
|
1186
|
+
function formatTimeValue(parts) {
|
|
1187
|
+
let hour24 = parts.hour12 % 12;
|
|
1188
|
+
if (parts.period === "PM") hour24 += 12;
|
|
1189
|
+
return `${pad2(hour24)}:${pad2(parts.minute)}`;
|
|
1190
|
+
}
|
|
1191
|
+
const TimePicker = React.forwardRef(({ value, onChange, minuteStep = 5, size = "md", disabled = false, placeholder, className }, ref) => {
|
|
1192
|
+
const [partial, setPartial] = React.useState({});
|
|
1193
|
+
const parsedValue = parseTimeValue(value);
|
|
1194
|
+
const isControlled = parsedValue.hour12 !== void 0;
|
|
1195
|
+
const parts = isControlled ? parsedValue : partial;
|
|
1196
|
+
const wasControlledRef = React.useRef(isControlled);
|
|
1197
|
+
useIsomorphicLayoutEffect$1(() => {
|
|
1198
|
+
if (wasControlledRef.current && !isControlled) setPartial({});
|
|
1199
|
+
wasControlledRef.current = isControlled;
|
|
1200
|
+
}, [isControlled]);
|
|
1201
|
+
const minuteOptions = React.useMemo(() => {
|
|
1202
|
+
const options = getMinuteOptions(minuteStep);
|
|
1203
|
+
if (parts.minute !== void 0) {
|
|
1204
|
+
const minuteStr = pad2(parts.minute);
|
|
1205
|
+
if (!options.includes(minuteStr)) return [...options, minuteStr].sort();
|
|
1206
|
+
}
|
|
1207
|
+
return options;
|
|
1208
|
+
}, [minuteStep, parts.minute]);
|
|
1209
|
+
function commit(next) {
|
|
1210
|
+
if (!isControlled) setPartial(next);
|
|
1211
|
+
if (next.hour12 !== void 0 && next.minute !== void 0 && next.period !== void 0) onChange?.(formatTimeValue({
|
|
1212
|
+
hour12: next.hour12,
|
|
1213
|
+
minute: next.minute,
|
|
1214
|
+
period: next.period
|
|
1215
|
+
}));
|
|
1216
|
+
}
|
|
1217
|
+
const triggerClassName = cn(inputSizingClasses(size), "w-auto min-w-0");
|
|
1218
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1219
|
+
ref,
|
|
1220
|
+
className: cn("flex gap-2", className),
|
|
1221
|
+
children: [
|
|
1222
|
+
/* @__PURE__ */ jsxs(Select, {
|
|
1223
|
+
disabled,
|
|
1224
|
+
value: toSegmentValue(parts.hour12),
|
|
1225
|
+
onValueChange: (hour) => commit({
|
|
1226
|
+
...parts,
|
|
1227
|
+
hour12: Number(hour)
|
|
1228
|
+
}),
|
|
1229
|
+
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
1230
|
+
"aria-label": "Hour",
|
|
1231
|
+
className: triggerClassName,
|
|
1232
|
+
children: /* @__PURE__ */ jsx(SelectValue, { placeholder: placeholder?.hour ?? "HH" })
|
|
1233
|
+
}), /* @__PURE__ */ jsx(SelectContent, { children: HOUR_OPTIONS.map((hour) => /* @__PURE__ */ jsx(SelectItem, {
|
|
1234
|
+
value: hour,
|
|
1235
|
+
children: hour
|
|
1236
|
+
}, hour)) })]
|
|
1237
|
+
}),
|
|
1238
|
+
/* @__PURE__ */ jsxs(Select, {
|
|
1239
|
+
disabled,
|
|
1240
|
+
value: toSegmentValue(parts.minute),
|
|
1241
|
+
onValueChange: (minute) => commit({
|
|
1242
|
+
...parts,
|
|
1243
|
+
minute: Number(minute)
|
|
1244
|
+
}),
|
|
1245
|
+
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
1246
|
+
"aria-label": "Minute",
|
|
1247
|
+
className: triggerClassName,
|
|
1248
|
+
children: /* @__PURE__ */ jsx(SelectValue, { placeholder: placeholder?.minute ?? "MM" })
|
|
1249
|
+
}), /* @__PURE__ */ jsx(SelectContent, { children: minuteOptions.map((minute) => /* @__PURE__ */ jsx(SelectItem, {
|
|
1250
|
+
value: minute,
|
|
1251
|
+
children: minute
|
|
1252
|
+
}, minute)) })]
|
|
1253
|
+
}),
|
|
1254
|
+
/* @__PURE__ */ jsxs(Select, {
|
|
1255
|
+
disabled,
|
|
1256
|
+
value: parts.period ?? "",
|
|
1257
|
+
onValueChange: (period) => commit({
|
|
1258
|
+
...parts,
|
|
1259
|
+
period
|
|
1260
|
+
}),
|
|
1261
|
+
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
1262
|
+
"aria-label": "AM or PM",
|
|
1263
|
+
className: triggerClassName,
|
|
1264
|
+
children: /* @__PURE__ */ jsx(SelectValue, { placeholder: placeholder?.period ?? "AM" })
|
|
1265
|
+
}), /* @__PURE__ */ jsxs(SelectContent, { children: [/* @__PURE__ */ jsx(SelectItem, {
|
|
1266
|
+
value: "AM",
|
|
1267
|
+
children: "AM"
|
|
1268
|
+
}), /* @__PURE__ */ jsx(SelectItem, {
|
|
1269
|
+
value: "PM",
|
|
1270
|
+
children: "PM"
|
|
1271
|
+
})] })]
|
|
1272
|
+
})
|
|
1273
|
+
]
|
|
1274
|
+
});
|
|
1275
|
+
});
|
|
1276
|
+
TimePicker.displayName = "TimePicker";
|
|
1277
|
+
//#endregion
|
|
1102
1278
|
//#region src/components/date-range-picker.tsx
|
|
1103
1279
|
/** Built-in preset range generators */
|
|
1104
1280
|
const dateRangePresets = {
|
|
@@ -1569,7 +1745,7 @@ function IndeterminateIcon({ className }) {
|
|
|
1569
1745
|
const Checkbox = React.forwardRef(({ className, checked, ...props }, ref) => /* @__PURE__ */ jsx(Checkbox$1.Root, {
|
|
1570
1746
|
ref,
|
|
1571
1747
|
checked,
|
|
1572
|
-
className: cn("peer h-4 w-4 shrink-0 cursor-pointer rounded-[2px] border border-primary bg-background ring-offset-background transition-[color,background-color,border-color] duration-fast ease-default focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/35 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground", className),
|
|
1748
|
+
className: cn("peer h-4 w-4 shrink-0 cursor-pointer rounded-[2px] border border-primary bg-background ring-offset-background transition-[color,background-color,border-color] duration-fast ease-default focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/35 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground", coarseHitAreaClasses, className),
|
|
1573
1749
|
...props,
|
|
1574
1750
|
children: /* @__PURE__ */ jsx(Checkbox$1.Indicator, {
|
|
1575
1751
|
className: cn("flex h-full w-full items-center justify-center text-current"),
|
|
@@ -1587,7 +1763,7 @@ const RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1587
1763
|
RadioGroup.displayName = RadioGroup$1.Root.displayName;
|
|
1588
1764
|
const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadioGroup$1.Item, {
|
|
1589
1765
|
ref,
|
|
1590
|
-
className: cn("inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-primary bg-background text-primary ring-offset-background focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/35 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary", className),
|
|
1766
|
+
className: cn("inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-primary bg-background text-primary ring-offset-background focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/35 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary", coarseHitAreaClasses, className),
|
|
1591
1767
|
...props,
|
|
1592
1768
|
children: /* @__PURE__ */ jsx(RadioGroup$1.Indicator, {
|
|
1593
1769
|
className: "flex h-full w-full items-center justify-center",
|
|
@@ -1617,7 +1793,7 @@ const switchThumbVariants = cva("pointer-events-none block rounded-full bg-backg
|
|
|
1617
1793
|
defaultVariants: { size: "md" }
|
|
1618
1794
|
});
|
|
1619
1795
|
const Switch = React.forwardRef(({ className, size, ...props }, ref) => /* @__PURE__ */ jsx(Switch$1.Root, {
|
|
1620
|
-
className: cn(switchVariants({ size }), className),
|
|
1796
|
+
className: cn(switchVariants({ size }), coarseHitAreaClasses, className),
|
|
1621
1797
|
...props,
|
|
1622
1798
|
ref,
|
|
1623
1799
|
children: /* @__PURE__ */ jsx(Switch$1.Thumb, { className: cn(switchThumbVariants({ size })) })
|
|
@@ -1632,7 +1808,7 @@ const Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1632
1808
|
children: [/* @__PURE__ */ jsx(Slider$1.Track, {
|
|
1633
1809
|
className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",
|
|
1634
1810
|
children: /* @__PURE__ */ jsx(Slider$1.Range, { className: "absolute h-full bg-primary" })
|
|
1635
|
-
}), /* @__PURE__ */ jsx(Slider$1.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })]
|
|
1811
|
+
}), /* @__PURE__ */ jsx(Slider$1.Thumb, { className: cn("block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", coarseHitAreaClasses) })]
|
|
1636
1812
|
}));
|
|
1637
1813
|
Slider.displayName = Slider$1.Root.displayName;
|
|
1638
1814
|
//#endregion
|
|
@@ -1830,7 +2006,7 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
1830
2006
|
className: cn(centeredModalContentClasses, className),
|
|
1831
2007
|
...props,
|
|
1832
2008
|
children: [children, /* @__PURE__ */ jsxs(Dialog$1.Close, {
|
|
1833
|
-
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
2009
|
+
className: cn("absolute right-4 top-4 inline-flex items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", touchTargetClasses),
|
|
1834
2010
|
children: [/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
1835
2011
|
className: "sr-only",
|
|
1836
2012
|
children: "Close"
|
|
@@ -2002,7 +2178,7 @@ const SheetContent = React.forwardRef(({ side = "right", size = "sm", className,
|
|
|
2002
2178
|
}), className),
|
|
2003
2179
|
...props,
|
|
2004
2180
|
children: [children, /* @__PURE__ */ jsxs(Dialog$1.Close, {
|
|
2005
|
-
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
2181
|
+
className: cn("absolute right-4 top-4 inline-flex items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", touchTargetClasses),
|
|
2006
2182
|
children: [/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
2007
2183
|
className: "sr-only",
|
|
2008
2184
|
children: "Close"
|
|
@@ -5681,6 +5857,6 @@ function NotificationSettingsBlock({ groups, onSave, loading = false, error, dis
|
|
|
5681
5857
|
});
|
|
5682
5858
|
}
|
|
5683
5859
|
//#endregion
|
|
5684
|
-
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, OutlinedField, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverTrigger, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, Rating, ResetPasswordBlock, ReviewsBlock, 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, formatUsPhone, navigationMenuTriggerStyle, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, switchVariants, toast, useDensity, useFormContext, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
5860
|
+
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, OutlinedField, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverTrigger, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, Rating, ResetPasswordBlock, ReviewsBlock, 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, TimePicker, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, formatUsPhone, navigationMenuTriggerStyle, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, switchVariants, toast, useDensity, useFormContext, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
5685
5861
|
|
|
5686
5862
|
//# sourceMappingURL=index.mjs.map
|