@wow-two-beta/ui 0.0.62 → 0.0.64
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/actions/index.js +2 -1
- package/dist/actions/toggleButton/ToggleButton.d.ts +1 -0
- package/dist/{chunk-INSI3NPU.js → chunk-5YT7XRTW.js} +41 -13
- package/dist/chunk-5YT7XRTW.js.map +1 -0
- package/dist/{chunk-BLU5JZAB.js → chunk-GTBNVI77.js} +51 -22
- package/dist/chunk-GTBNVI77.js.map +1 -0
- package/dist/{chunk-MYLSXVIS.js → chunk-H3WC7KRX.js} +115 -49
- package/dist/chunk-H3WC7KRX.js.map +1 -0
- package/dist/{chunk-H4P5MAGS.js → chunk-MZZKA3ZS.js} +33 -11
- package/dist/chunk-MZZKA3ZS.js.map +1 -0
- package/dist/{chunk-WIXKLDTN.js → chunk-NEH4ITXL.js} +205 -87
- package/dist/chunk-NEH4ITXL.js.map +1 -0
- package/dist/{chunk-3IVQNIHV.js → chunk-NIFL35PJ.js} +3 -3
- package/dist/{chunk-3IVQNIHV.js.map → chunk-NIFL35PJ.js.map} +1 -1
- package/dist/{chunk-EQNTG53H.js → chunk-NW7ULTYL.js} +8 -7
- package/dist/chunk-NW7ULTYL.js.map +1 -0
- package/dist/{chunk-DPB2K3BH.js → chunk-O4Y52ERR.js} +80 -37
- package/dist/chunk-O4Y52ERR.js.map +1 -0
- package/dist/{chunk-VQGGK4VP.js → chunk-RDRFXVNX.js} +67 -108
- package/dist/chunk-RDRFXVNX.js.map +1 -0
- package/dist/chunk-YQGEF43L.js +118 -0
- package/dist/chunk-YQGEF43L.js.map +1 -0
- package/dist/{chunk-5JYRZ5PA.js → chunk-ZC4H4PIN.js} +88 -56
- package/dist/chunk-ZC4H4PIN.js.map +1 -0
- package/dist/display/index.js +2 -1
- package/dist/feedback/index.js +2 -2
- package/dist/feedback/undoBar/UndoBar.d.ts +1 -1
- package/dist/forms/InputStyles.d.ts +100 -2
- package/dist/forms/combobox/Combobox.d.ts +1 -1
- package/dist/forms/index.js +5 -5
- package/dist/forms/select/Select.variants.d.ts +128 -2
- package/dist/index.css +38 -0
- package/dist/index.js +11 -10
- package/dist/layout/index.js +3 -3
- package/dist/nav/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/nav/index.js +3 -3
- package/dist/nav/menu/Menu.d.ts +1 -1
- package/dist/overlays/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-5JYRZ5PA.js.map +0 -1
- package/dist/chunk-BLU5JZAB.js.map +0 -1
- package/dist/chunk-DPB2K3BH.js.map +0 -1
- package/dist/chunk-EQNTG53H.js.map +0 -1
- package/dist/chunk-H4P5MAGS.js.map +0 -1
- package/dist/chunk-INSI3NPU.js.map +0 -1
- package/dist/chunk-MYLSXVIS.js.map +0 -1
- package/dist/chunk-VQGGK4VP.js.map +0 -1
- package/dist/chunk-WIXKLDTN.js.map +0 -1
package/dist/actions/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { BackToTopButton, Button, ButtonGroup, CopyButton, DisclosureButton, FAB, Link, SegmentedControl, SpeedDial, SpeedDialAction, SpeedDialTrigger, ToggleButton, ToggleButtonGroup, Toolbar, ToolbarButton, ToolbarLink, ToolbarSeparator, buttonVariants, fabVariants, linkVariants, toggleButtonVariants } from '../chunk-
|
|
1
|
+
export { BackToTopButton, Button, ButtonGroup, CopyButton, DisclosureButton, FAB, Link, SegmentedControl, SpeedDial, SpeedDialAction, SpeedDialTrigger, ToggleButton, ToggleButtonGroup, Toolbar, ToolbarButton, ToolbarLink, ToolbarSeparator, buttonVariants, fabVariants, linkVariants, toggleButtonVariants } from '../chunk-O4Y52ERR.js';
|
|
2
|
+
import '../chunk-YQGEF43L.js';
|
|
2
3
|
import '../chunk-V267IMBH.js';
|
|
3
4
|
import '../chunk-MVMDDGW7.js';
|
|
4
5
|
import '../chunk-DX7FYAKY.js';
|
|
@@ -15,6 +15,7 @@ export interface ToggleButtonProps extends Omit<ButtonProps, 'variant' | 'tone'
|
|
|
15
15
|
title?: StateAware<string>;
|
|
16
16
|
'aria-label'?: StateAware<string>;
|
|
17
17
|
color?: ColorProp;
|
|
18
|
+
tooltip?: ReactNode;
|
|
18
19
|
}
|
|
19
20
|
export declare const ToggleButton: import("react").ForwardRefExoticComponent<ToggleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
20
21
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { listboxItemVariants, listboxVariants, listboxGroupLabelVariants, listboxSeparatorVariants, listboxEmptyVariants } from './chunk-FMTBJJP6.js';
|
|
2
|
-
import { PopoverTrigger, Popover, PopoverContent } from './chunk-
|
|
2
|
+
import { PopoverTrigger, Popover, PopoverContent } from './chunk-GTBNVI77.js';
|
|
3
3
|
import { startOfMonth, isSameDay, isToday, isDateDisabled, parseISODate, formatISODate, parseISOTime, Tag, addMonths, Kbd, addDays, buildMonthGrid, MONTHS_LONG, WEEKDAYS_SHORT, formatISOTime, startOfDay, isInRange } from './chunk-3SWPYYRQ.js';
|
|
4
4
|
import { useControlled, useTypeahead } from './chunk-V267IMBH.js';
|
|
5
5
|
import { Icon } from './chunk-MVMDDGW7.js';
|
|
6
6
|
import { tv, CssExtensions, ColorExtensions, dataAttr, surfaceVariants, Equality } from './chunk-DX7FYAKY.js';
|
|
7
|
-
import { useFormControl, FormControlProvider, Announce, RovingFocusGroup, useRovingFocusItem,
|
|
7
|
+
import { useFormControl, FormControlProvider, Announce, Portal, RovingFocusGroup, useRovingFocusItem, Presence, AnchoredPositioner, DismissableLayer } from './chunk-XLYJF3HC.js';
|
|
8
8
|
import { useId } from './chunk-LGTGZ3RW.js';
|
|
9
9
|
import { cn, composeRefs } from './chunk-X2MYOHOB.js';
|
|
10
10
|
import * as React from 'react';
|
|
@@ -101,7 +101,7 @@ Legend.displayName = "Legend";
|
|
|
101
101
|
|
|
102
102
|
// src/forms/InputStyles.ts
|
|
103
103
|
var inputBaseVariants = tv({
|
|
104
|
-
base: "flex w-full rounded-md
|
|
104
|
+
base: "flex w-full rounded-md bg-popover text-foreground placeholder:text-subtle-foreground transition-colors focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 read-only:bg-muted",
|
|
105
105
|
variants: {
|
|
106
106
|
size: {
|
|
107
107
|
xs: "h-7 px-2 text-xs",
|
|
@@ -112,15 +112,33 @@ var inputBaseVariants = tv({
|
|
|
112
112
|
state: {
|
|
113
113
|
default: "border-input hover:border-border-strong",
|
|
114
114
|
invalid: "border-destructive focus-visible:ring-destructive"
|
|
115
|
+
},
|
|
116
|
+
/* Border weight — scale like `size`/`radius`; default `sm` (1px). Set a literal via `className="border-[1.5px]"`. */
|
|
117
|
+
border: {
|
|
118
|
+
none: "border-0",
|
|
119
|
+
xs: "border-[0.5px]",
|
|
120
|
+
sm: "border",
|
|
121
|
+
md: "border-2",
|
|
122
|
+
lg: "border-4",
|
|
123
|
+
xl: "border-8"
|
|
124
|
+
},
|
|
125
|
+
/* Focus-ring weight — default `md` (2px). The ring being wider than the border read as "thick"; use `sm` for a hairline focus. */
|
|
126
|
+
ring: {
|
|
127
|
+
none: "focus-visible:ring-0",
|
|
128
|
+
sm: "focus-visible:ring-1",
|
|
129
|
+
md: "focus-visible:ring-2",
|
|
130
|
+
lg: "focus-visible:ring-4"
|
|
115
131
|
}
|
|
116
132
|
},
|
|
117
133
|
defaultVariants: {
|
|
118
134
|
size: "md",
|
|
119
|
-
state: "default"
|
|
135
|
+
state: "default",
|
|
136
|
+
border: "sm",
|
|
137
|
+
ring: "md"
|
|
120
138
|
}
|
|
121
139
|
});
|
|
122
140
|
var TextInput = forwardRef(
|
|
123
|
-
({ className, size, state, id, disabled, required, readOnly, ...props }, ref) => {
|
|
141
|
+
({ className, size, state, border, ring, id, disabled, required, readOnly, ...props }, ref) => {
|
|
124
142
|
const ctx = useFormControl();
|
|
125
143
|
const finalState = state ?? (ctx?.isInvalid ? "invalid" : "default");
|
|
126
144
|
return /* @__PURE__ */ jsx(
|
|
@@ -134,7 +152,7 @@ var TextInput = forwardRef(
|
|
|
134
152
|
readOnly: readOnly ?? ctx?.isReadOnly,
|
|
135
153
|
"aria-invalid": ctx?.isInvalid || void 0,
|
|
136
154
|
"aria-describedby": ctx ? `${ctx.helperId} ${ctx.errorId}` : void 0,
|
|
137
|
-
className: cn(inputBaseVariants({ size, state: finalState }), className),
|
|
155
|
+
className: cn(inputBaseVariants({ size, state: finalState, border, ring }), className),
|
|
138
156
|
...props
|
|
139
157
|
}
|
|
140
158
|
);
|
|
@@ -2201,7 +2219,7 @@ var MultiSelectTrigger = forwardRef(
|
|
|
2201
2219
|
ChevronDown,
|
|
2202
2220
|
{
|
|
2203
2221
|
className: cn(
|
|
2204
|
-
"h-4 w-4 shrink-0 self-center text-muted-foreground transition-transform",
|
|
2222
|
+
"h-4 w-4 shrink-0 self-center text-muted-foreground motion-safe:transition-transform",
|
|
2205
2223
|
ctx.open && "rotate-180"
|
|
2206
2224
|
)
|
|
2207
2225
|
}
|
|
@@ -2527,9 +2545,8 @@ function ComboboxContent({
|
|
|
2527
2545
|
ctx.setActiveId(list[0]?.id ?? null);
|
|
2528
2546
|
}
|
|
2529
2547
|
});
|
|
2530
|
-
if (!ctx.open) return null;
|
|
2531
2548
|
const resolvedPadding = padding ?? "xs";
|
|
2532
|
-
return /* @__PURE__ */ jsx(
|
|
2549
|
+
return /* @__PURE__ */ jsx(Presence, { isPresent: ctx.open, children: /* @__PURE__ */ jsx(ComboboxPortalRoot, { children: /* @__PURE__ */ jsx(
|
|
2533
2550
|
AnchoredPositioner,
|
|
2534
2551
|
{
|
|
2535
2552
|
anchor: ctx.inputRef.current,
|
|
@@ -2551,6 +2568,10 @@ function ComboboxContent({
|
|
|
2551
2568
|
id: ctx.listboxId,
|
|
2552
2569
|
role: "listbox",
|
|
2553
2570
|
className: cn(
|
|
2571
|
+
/* pop (fade+scale) gated on the portal-root data-state + motion-safe
|
|
2572
|
+
so reduced-motion users get no movement. */
|
|
2573
|
+
"motion-safe:group-data-[state=open]:animate-(--animate-pop-in)",
|
|
2574
|
+
"motion-safe:group-data-[state=closed]:animate-(--animate-pop-out) motion-reduce:animate-none",
|
|
2554
2575
|
surfaceVariants({
|
|
2555
2576
|
variant,
|
|
2556
2577
|
tone,
|
|
@@ -2568,8 +2589,13 @@ function ComboboxContent({
|
|
|
2568
2589
|
}
|
|
2569
2590
|
)
|
|
2570
2591
|
}
|
|
2571
|
-
) });
|
|
2592
|
+
) }) });
|
|
2572
2593
|
}
|
|
2594
|
+
var ComboboxPortalRoot = forwardRef(
|
|
2595
|
+
function ComboboxPortalRoot2({ children, className, ...props }, ref) {
|
|
2596
|
+
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx("div", { ref, className: cn("group contents", className), ...props, children }) });
|
|
2597
|
+
}
|
|
2598
|
+
);
|
|
2573
2599
|
var ComboboxItem = forwardRef(function ComboboxItem2({ value, isDisabled = false, className, children, onClick, onPointerEnter, ...rest }, forwardedRef) {
|
|
2574
2600
|
const ctx = useComboboxContext();
|
|
2575
2601
|
const id = useId$1();
|
|
@@ -3445,6 +3471,8 @@ var ColorField = forwardRef(function ColorField2({
|
|
|
3445
3471
|
hasAlpha = false,
|
|
3446
3472
|
size,
|
|
3447
3473
|
state,
|
|
3474
|
+
border,
|
|
3475
|
+
ring,
|
|
3448
3476
|
className,
|
|
3449
3477
|
id,
|
|
3450
3478
|
disabled,
|
|
@@ -3506,7 +3534,7 @@ var ColorField = forwardRef(function ColorField2({
|
|
|
3506
3534
|
}
|
|
3507
3535
|
},
|
|
3508
3536
|
className: cn(
|
|
3509
|
-
inputBaseVariants({ size, state: state ?? (ctx?.isInvalid ? "invalid" : "default") }),
|
|
3537
|
+
inputBaseVariants({ size, state: state ?? (ctx?.isInvalid ? "invalid" : "default"), border, ring }),
|
|
3510
3538
|
"pl-9 font-mono uppercase",
|
|
3511
3539
|
className
|
|
3512
3540
|
),
|
|
@@ -7748,5 +7776,5 @@ var ChatComposer = forwardRef(
|
|
|
7748
7776
|
ChatComposer.displayName = "ChatComposer";
|
|
7749
7777
|
|
|
7750
7778
|
export { ADDRESS_COUNTRIES, AddressForm, BUILT_IN_EMOJI, BUILT_IN_FONTS, Calendar, CharacterCount, ChatComposer, Checkbox, CheckboxField, CheckboxGroup, ChoiceCard, CodeEditor, ColorArea, ColorField, ColorPicker, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorWheel, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxSeparator, CronInput, CurrencyInput, DateField, DatePicker, DateRangePicker, Editable, EditableCancel, EditableInput, EditablePreview, EditableSubmit, EmailInput, EmojiPicker, Fieldset, FilePicker, FileUpload, FontPicker, FormErrorMessage, FormField, FormHelperText, GradientPicker, IconPicker, InputAddon, InputGroup, JSONEditor, KeyboardShortcutPicker, Knob, Label, LabeledInput, Legend, Listbox, ListboxEmpty, ListboxGroup, ListboxItem, ListboxSeparator, MarkdownEditor, MaskedInput, MultiSelect, MultiSelectContent, MultiSelectItem, MultiSelectTags, MultiSelectTrigger, NumberInput, PHONE_COUNTRIES, PasswordInput, PasswordStrength, PercentInput, PhoneInput, PinInput, Radio, RadioField, RadioGroup, RangeCalendar, ReactionPicker, RecurrenceEditor, SearchInput, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Slider, Stepper, StepperList, StepperPanel, StepperStep, Switch, SwitchField, TagsInput, TelInput, TextInput, Textarea, TimeField, TimePicker, UrlInput, Wizard, WizardFooter, WizardStep, WizardSteps, colorSwatchVariants, gradientToCss, useWizard };
|
|
7751
|
-
//# sourceMappingURL=chunk-
|
|
7752
|
-
//# sourceMappingURL=chunk-
|
|
7779
|
+
//# sourceMappingURL=chunk-5YT7XRTW.js.map
|
|
7780
|
+
//# sourceMappingURL=chunk-5YT7XRTW.js.map
|