@wow-two-beta/ui 0.0.44 → 0.0.46
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.
|
@@ -478,18 +478,18 @@ var checkboxVariants = tv({
|
|
|
478
478
|
{ variant: "ghost", tone: "danger", class: "text-destructive peer-checked:bg-destructive/10" },
|
|
479
479
|
{ variant: "ghost", tone: "success", class: "text-success peer-checked:bg-success/10" },
|
|
480
480
|
{ variant: "ghost", tone: "warning", class: "text-warning peer-checked:bg-warning/10" },
|
|
481
|
-
// === GLASS × tone — dark glass
|
|
482
|
-
{ variant: "glass", tone: "primary", class: "text-white
|
|
483
|
-
{ variant: "glass", tone: "neutral", class: "text-white
|
|
484
|
-
{ variant: "glass", tone: "danger", class: "text-white
|
|
485
|
-
{ variant: "glass", tone: "success", class: "text-white
|
|
486
|
-
{ variant: "glass", tone: "warning", class: "text-white
|
|
487
|
-
// === GLASS-SURFACE × tone — same
|
|
488
|
-
{ variant: "glass-surface", tone: "primary", class: "text-white peer-checked:
|
|
489
|
-
{ variant: "glass-surface", tone: "neutral", class: "text-white peer-checked:
|
|
490
|
-
{ variant: "glass-surface", tone: "danger", class: "text-white peer-checked:
|
|
491
|
-
{ variant: "glass-surface", tone: "success", class: "text-white peer-checked:
|
|
492
|
-
{ variant: "glass-surface", tone: "warning", class: "text-white peer-checked:
|
|
481
|
+
// === GLASS × tone — dark glass stays on check; only the white check icon appears (peer-checked:opacity-100 on Check). Tone is preserved as text-white throughout — bg doesn't swap, matching the photo-overlay aesthetic. ===
|
|
482
|
+
{ variant: "glass", tone: "primary", class: "text-white" },
|
|
483
|
+
{ variant: "glass", tone: "neutral", class: "text-white" },
|
|
484
|
+
{ variant: "glass", tone: "danger", class: "text-white" },
|
|
485
|
+
{ variant: "glass", tone: "success", class: "text-white" },
|
|
486
|
+
{ variant: "glass", tone: "warning", class: "text-white" },
|
|
487
|
+
// === GLASS-SURFACE × tone — same: dark glass + white check on check. Border emphasis (white/80) optional on check for stronger affordance. ===
|
|
488
|
+
{ variant: "glass-surface", tone: "primary", class: "text-white peer-checked:border-white/80" },
|
|
489
|
+
{ variant: "glass-surface", tone: "neutral", class: "text-white peer-checked:border-white/80" },
|
|
490
|
+
{ variant: "glass-surface", tone: "danger", class: "text-white peer-checked:border-white/80" },
|
|
491
|
+
{ variant: "glass-surface", tone: "success", class: "text-white peer-checked:border-white/80" },
|
|
492
|
+
{ variant: "glass-surface", tone: "warning", class: "text-white peer-checked:border-white/80" }
|
|
493
493
|
],
|
|
494
494
|
defaultVariants: {
|
|
495
495
|
variant: "solid",
|
|
@@ -553,19 +553,20 @@ var INDETERMINATE_CHECKED_CLASS = {
|
|
|
553
553
|
success: "bg-success/10 text-success",
|
|
554
554
|
warning: "bg-warning/10 text-warning"
|
|
555
555
|
},
|
|
556
|
+
/* Glass family keeps dark glass bg in indeterminate state (matches checked behavior). The Minus icon renders unconditionally; text-white from variant base makes it visible. */
|
|
556
557
|
glass: {
|
|
557
|
-
primary: "
|
|
558
|
-
neutral: "
|
|
559
|
-
danger: "
|
|
560
|
-
success: "
|
|
561
|
-
warning: "
|
|
558
|
+
primary: "text-white",
|
|
559
|
+
neutral: "text-white",
|
|
560
|
+
danger: "text-white",
|
|
561
|
+
success: "text-white",
|
|
562
|
+
warning: "text-white"
|
|
562
563
|
},
|
|
563
564
|
"glass-surface": {
|
|
564
|
-
primary: "
|
|
565
|
-
neutral: "
|
|
566
|
-
danger: "
|
|
567
|
-
success: "
|
|
568
|
-
warning: "
|
|
565
|
+
primary: "text-white border-white/80",
|
|
566
|
+
neutral: "text-white border-white/80",
|
|
567
|
+
danger: "text-white border-white/80",
|
|
568
|
+
success: "text-white border-white/80",
|
|
569
|
+
warning: "text-white border-white/80"
|
|
569
570
|
}
|
|
570
571
|
};
|
|
571
572
|
var Checkbox = forwardRef(
|
|
@@ -617,9 +618,9 @@ var Checkbox = forwardRef(
|
|
|
617
618
|
"aria-hidden": "true",
|
|
618
619
|
className: cn(
|
|
619
620
|
checkboxVariants({ variant, tone }),
|
|
620
|
-
indeterminate
|
|
621
|
+
indeterminate ? INDETERMINATE_CHECKED_CLASS[variant][tone] : "[&>svg]:opacity-0 peer-checked:[&>svg]:opacity-100"
|
|
621
622
|
),
|
|
622
|
-
children: indeterminate ? /* @__PURE__ */ jsx(Minus, { className: iconClass }) : /* @__PURE__ */ jsx(Check, { className:
|
|
623
|
+
children: indeterminate ? /* @__PURE__ */ jsx(Minus, { className: iconClass }) : /* @__PURE__ */ jsx(Check, { className: iconClass })
|
|
623
624
|
}
|
|
624
625
|
)
|
|
625
626
|
]
|
|
@@ -7271,5 +7272,5 @@ var ChatComposer = forwardRef(
|
|
|
7271
7272
|
ChatComposer.displayName = "ChatComposer";
|
|
7272
7273
|
|
|
7273
7274
|
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 };
|
|
7274
|
-
//# sourceMappingURL=chunk-
|
|
7275
|
-
//# sourceMappingURL=chunk-
|
|
7275
|
+
//# sourceMappingURL=chunk-WJGJNSNP.js.map
|
|
7276
|
+
//# sourceMappingURL=chunk-WJGJNSNP.js.map
|