@sharedex/ui 0.9.0 → 0.10.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 +37 -2
- package/dist/backgrounds/hosts/CssHost.d.ts +2 -6
- package/dist/backgrounds/hosts/CssHost.js +3 -17
- package/dist/backgrounds/hosts/styleHref.d.ts +6 -0
- package/dist/backgrounds/hosts/styleHref.js +20 -0
- package/dist/buttons/pick.d.ts +9 -3
- package/dist/buttons/pick.js +4 -1
- package/dist/forms/base.d.ts +1 -0
- package/dist/forms/base.js +224 -0
- package/dist/forms/buddy.d.ts +6 -0
- package/dist/forms/buddy.js +150 -0
- package/dist/forms/chips.d.ts +1 -0
- package/dist/forms/chips.js +140 -0
- package/dist/forms/choice.d.ts +1 -0
- package/dist/forms/choice.js +208 -0
- package/dist/forms/controls/CheckGroup.d.ts +65 -0
- package/dist/forms/controls/CheckGroup.js +99 -0
- package/dist/forms/controls/Checkbox.d.ts +43 -0
- package/dist/forms/controls/Checkbox.js +67 -0
- package/dist/forms/controls/ChipGroup.d.ts +50 -0
- package/dist/forms/controls/ChipGroup.js +56 -0
- package/dist/forms/controls/Combobox.d.ts +75 -0
- package/dist/forms/controls/Combobox.js +249 -0
- package/dist/forms/controls/ErrorSummary.d.ts +29 -0
- package/dist/forms/controls/ErrorSummary.js +79 -0
- package/dist/forms/controls/Field.d.ts +92 -0
- package/dist/forms/controls/Field.js +219 -0
- package/dist/forms/controls/FileDrop.d.ts +81 -0
- package/dist/forms/controls/FileDrop.js +328 -0
- package/dist/forms/controls/FormBuddy.d.ts +22 -0
- package/dist/forms/controls/FormBuddy.js +143 -0
- package/dist/forms/controls/FormReveal.d.ts +21 -0
- package/dist/forms/controls/FormReveal.js +19 -0
- package/dist/forms/controls/FormSteps.d.ts +75 -0
- package/dist/forms/controls/FormSteps.js +205 -0
- package/dist/forms/controls/FormSwap.d.ts +27 -0
- package/dist/forms/controls/FormSwap.js +38 -0
- package/dist/forms/controls/InlineEdit.d.ts +50 -0
- package/dist/forms/controls/InlineEdit.js +136 -0
- package/dist/forms/controls/NumberField.d.ts +43 -0
- package/dist/forms/controls/NumberField.js +205 -0
- package/dist/forms/controls/OtpField.d.ts +46 -0
- package/dist/forms/controls/OtpField.js +195 -0
- package/dist/forms/controls/PasswordRules.d.ts +31 -0
- package/dist/forms/controls/PasswordRules.js +85 -0
- package/dist/forms/controls/RadioGroup.d.ts +69 -0
- package/dist/forms/controls/RadioGroup.js +95 -0
- package/dist/forms/controls/Range.d.ts +60 -0
- package/dist/forms/controls/Range.js +169 -0
- package/dist/forms/controls/SaveStatus.d.ts +25 -0
- package/dist/forms/controls/SaveStatus.js +88 -0
- package/dist/forms/controls/Select.d.ts +46 -0
- package/dist/forms/controls/Select.js +35 -0
- package/dist/forms/controls/Switch.d.ts +54 -0
- package/dist/forms/controls/Switch.js +91 -0
- package/dist/forms/controls/TagsField.d.ts +68 -0
- package/dist/forms/controls/TagsField.js +0 -0
- package/dist/forms/controls/choiceChecks.d.ts +11 -0
- package/dist/forms/controls/choiceChecks.js +19 -0
- package/dist/forms/controls/choiceParts.d.ts +40 -0
- package/dist/forms/controls/choiceParts.js +49 -0
- package/dist/forms/controls/fieldChecks.d.ts +17 -0
- package/dist/forms/controls/fieldChecks.js +34 -0
- package/dist/forms/controls/fieldTools.d.ts +62 -0
- package/dist/forms/controls/fieldTools.js +54 -0
- package/dist/forms/controls/pickerChecks.d.ts +10 -0
- package/dist/forms/controls/pickerChecks.js +27 -0
- package/dist/forms/controls/rangeChecks.d.ts +11 -0
- package/dist/forms/controls/rangeChecks.js +23 -0
- package/dist/forms/controls/shared.d.ts +8 -0
- package/dist/forms/controls/shared.js +18 -0
- package/dist/forms/effects/cards.d.ts +11 -0
- package/dist/forms/effects/cards.js +52 -0
- package/dist/forms/effects/check/checkCard.d.ts +10 -0
- package/dist/forms/effects/check/checkCard.js +15 -0
- package/dist/forms/effects/check/checkCard.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkCard.schema.js +9 -0
- package/dist/forms/effects/check/checkConfetti.d.ts +18 -0
- package/dist/forms/effects/check/checkConfetti.js +38 -0
- package/dist/forms/effects/check/checkConfetti.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkConfetti.schema.js +13 -0
- package/dist/forms/effects/check/checkDraw.d.ts +7 -0
- package/dist/forms/effects/check/checkDraw.js +12 -0
- package/dist/forms/effects/check/checkDraw.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkDraw.schema.js +9 -0
- package/dist/forms/effects/check/checkHeart.d.ts +9 -0
- package/dist/forms/effects/check/checkHeart.js +84 -0
- package/dist/forms/effects/check/checkHeart.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkHeart.schema.js +10 -0
- package/dist/forms/effects/check/checkJelly.d.ts +9 -0
- package/dist/forms/effects/check/checkJelly.js +23 -0
- package/dist/forms/effects/check/checkJelly.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkJelly.schema.js +10 -0
- package/dist/forms/effects/check/checkMerge.d.ts +9 -0
- package/dist/forms/effects/check/checkMerge.js +37 -0
- package/dist/forms/effects/check/checkMerge.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkMerge.schema.js +10 -0
- package/dist/forms/effects/check/checkMixed.d.ts +7 -0
- package/dist/forms/effects/check/checkMixed.js +25 -0
- package/dist/forms/effects/check/checkMixed.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkMixed.schema.js +9 -0
- package/dist/forms/effects/check/checkMorph.d.ts +9 -0
- package/dist/forms/effects/check/checkMorph.js +53 -0
- package/dist/forms/effects/check/checkMorph.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkMorph.schema.js +10 -0
- package/dist/forms/effects/check/checkPop.d.ts +9 -0
- package/dist/forms/effects/check/checkPop.js +27 -0
- package/dist/forms/effects/check/checkPop.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkPop.schema.js +10 -0
- package/dist/forms/effects/check/checkRipple.d.ts +7 -0
- package/dist/forms/effects/check/checkRipple.js +33 -0
- package/dist/forms/effects/check/checkRipple.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkRipple.schema.js +9 -0
- package/dist/forms/effects/check/checkScribble.d.ts +11 -0
- package/dist/forms/effects/check/checkScribble.js +42 -0
- package/dist/forms/effects/check/checkScribble.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkScribble.schema.js +11 -0
- package/dist/forms/effects/check/checkStrike.d.ts +9 -0
- package/dist/forms/effects/check/checkStrike.js +54 -0
- package/dist/forms/effects/check/checkStrike.schema.d.ts +1 -0
- package/dist/forms/effects/check/checkStrike.schema.js +10 -0
- package/dist/forms/effects/chip/chipCheck.d.ts +7 -0
- package/dist/forms/effects/chip/chipCheck.js +26 -0
- package/dist/forms/effects/chip/chipCheck.schema.d.ts +1 -0
- package/dist/forms/effects/chip/chipCheck.schema.js +9 -0
- package/dist/forms/effects/chip/chipMerge.d.ts +9 -0
- package/dist/forms/effects/chip/chipMerge.js +63 -0
- package/dist/forms/effects/chip/chipMerge.schema.d.ts +1 -0
- package/dist/forms/effects/chip/chipMerge.schema.js +10 -0
- package/dist/forms/effects/file/fileButton.d.ts +7 -0
- package/dist/forms/effects/file/fileButton.js +28 -0
- package/dist/forms/effects/file/fileButton.schema.d.ts +1 -0
- package/dist/forms/effects/file/fileButton.schema.js +9 -0
- package/dist/forms/effects/file/fileCards.d.ts +7 -0
- package/dist/forms/effects/file/fileCards.js +38 -0
- package/dist/forms/effects/file/fileCards.schema.d.ts +1 -0
- package/dist/forms/effects/file/fileCards.schema.js +9 -0
- package/dist/forms/effects/file/fileDrag.d.ts +9 -0
- package/dist/forms/effects/file/fileDrag.js +45 -0
- package/dist/forms/effects/file/fileDrag.schema.d.ts +1 -0
- package/dist/forms/effects/file/fileDrag.schema.js +10 -0
- package/dist/forms/effects/file/filePage.d.ts +7 -0
- package/dist/forms/effects/file/filePage.js +46 -0
- package/dist/forms/effects/file/filePage.schema.d.ts +1 -0
- package/dist/forms/effects/file/filePage.schema.js +9 -0
- package/dist/forms/effects/file/filePreview.d.ts +7 -0
- package/dist/forms/effects/file/filePreview.js +17 -0
- package/dist/forms/effects/file/filePreview.schema.d.ts +1 -0
- package/dist/forms/effects/file/filePreview.schema.js +9 -0
- package/dist/forms/effects/file/fileProgress.d.ts +9 -0
- package/dist/forms/effects/file/fileProgress.js +92 -0
- package/dist/forms/effects/file/fileProgress.schema.d.ts +1 -0
- package/dist/forms/effects/file/fileProgress.schema.js +10 -0
- package/dist/forms/effects/file/fileReject.d.ts +7 -0
- package/dist/forms/effects/file/fileReject.js +24 -0
- package/dist/forms/effects/file/fileReject.schema.d.ts +1 -0
- package/dist/forms/effects/file/fileReject.schema.js +9 -0
- package/dist/forms/effects/input/inputAside.d.ts +11 -0
- package/dist/forms/effects/input/inputAside.js +42 -0
- package/dist/forms/effects/input/inputAside.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputAside.schema.js +11 -0
- package/dist/forms/effects/input/inputBeam.d.ts +14 -0
- package/dist/forms/effects/input/inputBeam.js +51 -0
- package/dist/forms/effects/input/inputBeam.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputBeam.schema.js +18 -0
- package/dist/forms/effects/input/inputCaret.d.ts +13 -0
- package/dist/forms/effects/input/inputCaret.js +33 -0
- package/dist/forms/effects/input/inputCaret.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputCaret.schema.js +26 -0
- package/dist/forms/effects/input/inputCounter.d.ts +16 -0
- package/dist/forms/effects/input/inputCounter.js +84 -0
- package/dist/forms/effects/input/inputCounter.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputCounter.schema.js +12 -0
- package/dist/forms/effects/input/inputCycle.d.ts +19 -0
- package/dist/forms/effects/input/inputCycle.js +93 -0
- package/dist/forms/effects/input/inputCycle.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputCycle.schema.js +11 -0
- package/dist/forms/effects/input/inputDepth.d.ts +11 -0
- package/dist/forms/effects/input/inputDepth.js +31 -0
- package/dist/forms/effects/input/inputDepth.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputDepth.schema.js +11 -0
- package/dist/forms/effects/input/inputDraw.d.ts +13 -0
- package/dist/forms/effects/input/inputDraw.js +27 -0
- package/dist/forms/effects/input/inputDraw.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputDraw.schema.js +12 -0
- package/dist/forms/effects/input/inputFlap.d.ts +9 -0
- package/dist/forms/effects/input/inputFlap.js +24 -0
- package/dist/forms/effects/input/inputFlap.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputFlap.schema.js +10 -0
- package/dist/forms/effects/input/inputFloat.d.ts +12 -0
- package/dist/forms/effects/input/inputFloat.js +46 -0
- package/dist/forms/effects/input/inputFloat.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputFloat.schema.js +10 -0
- package/dist/forms/effects/input/inputFlood.d.ts +11 -0
- package/dist/forms/effects/input/inputFlood.js +30 -0
- package/dist/forms/effects/input/inputFlood.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputFlood.schema.js +11 -0
- package/dist/forms/effects/input/inputFrame.d.ts +18 -0
- package/dist/forms/effects/input/inputFrame.js +77 -0
- package/dist/forms/effects/input/inputFrame.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputFrame.schema.js +13 -0
- package/dist/forms/effects/input/inputIcon.d.ts +11 -0
- package/dist/forms/effects/input/inputIcon.js +18 -0
- package/dist/forms/effects/input/inputIcon.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputIcon.schema.js +11 -0
- package/dist/forms/effects/input/inputNotch.d.ts +9 -0
- package/dist/forms/effects/input/inputNotch.js +70 -0
- package/dist/forms/effects/input/inputNotch.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputNotch.schema.js +10 -0
- package/dist/forms/effects/input/inputReveal.d.ts +15 -0
- package/dist/forms/effects/input/inputReveal.js +56 -0
- package/dist/forms/effects/input/inputReveal.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputReveal.schema.js +16 -0
- package/dist/forms/effects/input/inputRing.d.ts +13 -0
- package/dist/forms/effects/input/inputRing.js +27 -0
- package/dist/forms/effects/input/inputRing.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputRing.schema.js +12 -0
- package/dist/forms/effects/input/inputRise.d.ts +9 -0
- package/dist/forms/effects/input/inputRise.js +22 -0
- package/dist/forms/effects/input/inputRise.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputRise.schema.js +10 -0
- package/dist/forms/effects/input/inputSearch.d.ts +9 -0
- package/dist/forms/effects/input/inputSearch.js +37 -0
- package/dist/forms/effects/input/inputSearch.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputSearch.schema.js +10 -0
- package/dist/forms/effects/input/inputSkeleton.d.ts +7 -0
- package/dist/forms/effects/input/inputSkeleton.js +41 -0
- package/dist/forms/effects/input/inputSkeleton.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputSkeleton.schema.js +9 -0
- package/dist/forms/effects/input/inputSpotlight.d.ts +9 -0
- package/dist/forms/effects/input/inputSpotlight.js +20 -0
- package/dist/forms/effects/input/inputSpotlight.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputSpotlight.schema.js +10 -0
- package/dist/forms/effects/input/inputStrength.d.ts +9 -0
- package/dist/forms/effects/input/inputStrength.js +29 -0
- package/dist/forms/effects/input/inputStrength.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputStrength.schema.js +10 -0
- package/dist/forms/effects/input/inputSwap.d.ts +11 -0
- package/dist/forms/effects/input/inputSwap.js +39 -0
- package/dist/forms/effects/input/inputSwap.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputSwap.schema.js +11 -0
- package/dist/forms/effects/input/inputUnderline.d.ts +13 -0
- package/dist/forms/effects/input/inputUnderline.js +36 -0
- package/dist/forms/effects/input/inputUnderline.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputUnderline.schema.js +18 -0
- package/dist/forms/effects/input/inputWave.d.ts +11 -0
- package/dist/forms/effects/input/inputWave.js +23 -0
- package/dist/forms/effects/input/inputWave.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputWave.schema.js +11 -0
- package/dist/forms/effects/input/inputWavy.d.ts +11 -0
- package/dist/forms/effects/input/inputWavy.js +53 -0
- package/dist/forms/effects/input/inputWavy.schema.d.ts +1 -0
- package/dist/forms/effects/input/inputWavy.schema.js +11 -0
- package/dist/forms/effects/kit.d.ts +213 -0
- package/dist/forms/effects/kit.js +226 -0
- package/dist/forms/effects/picker/chipPop.d.ts +7 -0
- package/dist/forms/effects/picker/chipPop.js +28 -0
- package/dist/forms/effects/picker/chipPop.schema.d.ts +1 -0
- package/dist/forms/effects/picker/chipPop.schema.js +9 -0
- package/dist/forms/effects/picker/listHighlight.d.ts +9 -0
- package/dist/forms/effects/picker/listHighlight.js +42 -0
- package/dist/forms/effects/picker/listHighlight.schema.d.ts +1 -0
- package/dist/forms/effects/picker/listHighlight.schema.js +10 -0
- package/dist/forms/effects/picker/listMatch.d.ts +7 -0
- package/dist/forms/effects/picker/listMatch.js +21 -0
- package/dist/forms/effects/picker/listMatch.schema.d.ts +1 -0
- package/dist/forms/effects/picker/listMatch.schema.js +9 -0
- package/dist/forms/effects/picker/pickerArrow.d.ts +9 -0
- package/dist/forms/effects/picker/pickerArrow.js +17 -0
- package/dist/forms/effects/picker/pickerArrow.schema.d.ts +1 -0
- package/dist/forms/effects/picker/pickerArrow.schema.js +10 -0
- package/dist/forms/effects/picker/pickerCheck.d.ts +7 -0
- package/dist/forms/effects/picker/pickerCheck.js +31 -0
- package/dist/forms/effects/picker/pickerCheck.schema.d.ts +1 -0
- package/dist/forms/effects/picker/pickerCheck.schema.js +9 -0
- package/dist/forms/effects/picker/pickerOpen.d.ts +12 -0
- package/dist/forms/effects/picker/pickerOpen.js +34 -0
- package/dist/forms/effects/picker/pickerOpen.schema.d.ts +1 -0
- package/dist/forms/effects/picker/pickerOpen.schema.js +16 -0
- package/dist/forms/effects/picker/pickerSheet.d.ts +9 -0
- package/dist/forms/effects/picker/pickerSheet.js +47 -0
- package/dist/forms/effects/picker/pickerSheet.schema.d.ts +1 -0
- package/dist/forms/effects/picker/pickerSheet.schema.js +10 -0
- package/dist/forms/effects/picker/pickerStagger.d.ts +9 -0
- package/dist/forms/effects/picker/pickerStagger.js +31 -0
- package/dist/forms/effects/picker/pickerStagger.schema.d.ts +1 -0
- package/dist/forms/effects/picker/pickerStagger.schema.js +10 -0
- package/dist/forms/effects/radio/radioCard.d.ts +10 -0
- package/dist/forms/effects/radio/radioCard.js +15 -0
- package/dist/forms/effects/radio/radioCard.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioCard.schema.js +9 -0
- package/dist/forms/effects/radio/radioCircle.d.ts +9 -0
- package/dist/forms/effects/radio/radioCircle.js +49 -0
- package/dist/forms/effects/radio/radioCircle.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioCircle.schema.js +10 -0
- package/dist/forms/effects/radio/radioDot.d.ts +7 -0
- package/dist/forms/effects/radio/radioDot.js +10 -0
- package/dist/forms/effects/radio/radioDot.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioDot.schema.js +9 -0
- package/dist/forms/effects/radio/radioEmoji.d.ts +9 -0
- package/dist/forms/effects/radio/radioEmoji.js +94 -0
- package/dist/forms/effects/radio/radioEmoji.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioEmoji.schema.js +10 -0
- package/dist/forms/effects/radio/radioPulse.d.ts +9 -0
- package/dist/forms/effects/radio/radioPulse.js +24 -0
- package/dist/forms/effects/radio/radioPulse.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioPulse.schema.js +10 -0
- package/dist/forms/effects/radio/radioScale.d.ts +9 -0
- package/dist/forms/effects/radio/radioScale.js +73 -0
- package/dist/forms/effects/radio/radioScale.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioScale.schema.js +10 -0
- package/dist/forms/effects/radio/radioSegment.d.ts +7 -0
- package/dist/forms/effects/radio/radioSegment.js +52 -0
- package/dist/forms/effects/radio/radioSegment.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioSegment.schema.js +9 -0
- package/dist/forms/effects/radio/radioStars.d.ts +15 -0
- package/dist/forms/effects/radio/radioStars.js +125 -0
- package/dist/forms/effects/radio/radioStars.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioStars.schema.js +13 -0
- package/dist/forms/effects/radio/radioTravel.d.ts +9 -0
- package/dist/forms/effects/radio/radioTravel.js +49 -0
- package/dist/forms/effects/radio/radioTravel.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioTravel.schema.js +10 -0
- package/dist/forms/effects/radio/radioUnderline.d.ts +9 -0
- package/dist/forms/effects/radio/radioUnderline.js +61 -0
- package/dist/forms/effects/radio/radioUnderline.schema.d.ts +1 -0
- package/dist/forms/effects/radio/radioUnderline.schema.js +10 -0
- package/dist/forms/effects/radio/shape.d.ts +13 -0
- package/dist/forms/effects/radio/shape.js +61 -0
- package/dist/forms/effects/range/rangeBubble.d.ts +9 -0
- package/dist/forms/effects/range/rangeBubble.js +54 -0
- package/dist/forms/effects/range/rangeBubble.schema.d.ts +1 -0
- package/dist/forms/effects/range/rangeBubble.schema.js +10 -0
- package/dist/forms/effects/range/rangeElastic.d.ts +9 -0
- package/dist/forms/effects/range/rangeElastic.js +101 -0
- package/dist/forms/effects/range/rangeElastic.schema.d.ts +1 -0
- package/dist/forms/effects/range/rangeElastic.schema.js +10 -0
- package/dist/forms/effects/range/rangeFace.d.ts +11 -0
- package/dist/forms/effects/range/rangeFace.js +68 -0
- package/dist/forms/effects/range/rangeFace.schema.d.ts +1 -0
- package/dist/forms/effects/range/rangeFace.schema.js +11 -0
- package/dist/forms/effects/range/rangeFill.d.ts +7 -0
- package/dist/forms/effects/range/rangeFill.js +29 -0
- package/dist/forms/effects/range/rangeFill.schema.d.ts +1 -0
- package/dist/forms/effects/range/rangeFill.schema.js +9 -0
- package/dist/forms/effects/range/rangeHistogram.d.ts +14 -0
- package/dist/forms/effects/range/rangeHistogram.js +65 -0
- package/dist/forms/effects/range/rangeHistogram.schema.d.ts +1 -0
- package/dist/forms/effects/range/rangeHistogram.schema.js +11 -0
- package/dist/forms/effects/range/rangeThumb.d.ts +9 -0
- package/dist/forms/effects/range/rangeThumb.js +39 -0
- package/dist/forms/effects/range/rangeThumb.schema.d.ts +1 -0
- package/dist/forms/effects/range/rangeThumb.schema.js +10 -0
- package/dist/forms/effects/range/rangeTicks.d.ts +9 -0
- package/dist/forms/effects/range/rangeTicks.js +44 -0
- package/dist/forms/effects/range/rangeTicks.schema.d.ts +1 -0
- package/dist/forms/effects/range/rangeTicks.schema.js +18 -0
- package/dist/forms/effects/ring.d.ts +5 -0
- package/dist/forms/effects/ring.js +12 -0
- package/dist/forms/effects/step/stepProgress.d.ts +9 -0
- package/dist/forms/effects/step/stepProgress.js +35 -0
- package/dist/forms/effects/step/stepProgress.schema.d.ts +1 -0
- package/dist/forms/effects/step/stepProgress.schema.js +10 -0
- package/dist/forms/effects/step/stepSlide.d.ts +9 -0
- package/dist/forms/effects/step/stepSlide.js +50 -0
- package/dist/forms/effects/step/stepSlide.schema.d.ts +1 -0
- package/dist/forms/effects/step/stepSlide.schema.js +10 -0
- package/dist/forms/effects/switch/switchBulb.d.ts +9 -0
- package/dist/forms/effects/switch/switchBulb.js +70 -0
- package/dist/forms/effects/switch/switchBulb.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchBulb.schema.js +10 -0
- package/dist/forms/effects/switch/switchDayNight.d.ts +15 -0
- package/dist/forms/effects/switch/switchDayNight.js +96 -0
- package/dist/forms/effects/switch/switchDayNight.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchDayNight.schema.js +13 -0
- package/dist/forms/effects/switch/switchFace.d.ts +7 -0
- package/dist/forms/effects/switch/switchFace.js +75 -0
- package/dist/forms/effects/switch/switchFace.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchFace.schema.js +9 -0
- package/dist/forms/effects/switch/switchFlip.d.ts +7 -0
- package/dist/forms/effects/switch/switchFlip.js +45 -0
- package/dist/forms/effects/switch/switchFlip.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchFlip.schema.js +9 -0
- package/dist/forms/effects/switch/switchGoo.d.ts +7 -0
- package/dist/forms/effects/switch/switchGoo.js +95 -0
- package/dist/forms/effects/switch/switchGoo.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchGoo.schema.js +9 -0
- package/dist/forms/effects/switch/switchIcon.d.ts +9 -0
- package/dist/forms/effects/switch/switchIcon.js +63 -0
- package/dist/forms/effects/switch/switchIcon.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchIcon.schema.js +10 -0
- package/dist/forms/effects/switch/switchLabels.d.ts +11 -0
- package/dist/forms/effects/switch/switchLabels.js +55 -0
- package/dist/forms/effects/switch/switchLabels.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchLabels.schema.js +11 -0
- package/dist/forms/effects/switch/switchMorph.d.ts +9 -0
- package/dist/forms/effects/switch/switchMorph.js +22 -0
- package/dist/forms/effects/switch/switchMorph.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchMorph.schema.js +10 -0
- package/dist/forms/effects/switch/switchNeon.d.ts +11 -0
- package/dist/forms/effects/switch/switchNeon.js +53 -0
- package/dist/forms/effects/switch/switchNeon.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchNeon.schema.js +11 -0
- package/dist/forms/effects/switch/switchSlide.d.ts +7 -0
- package/dist/forms/effects/switch/switchSlide.js +11 -0
- package/dist/forms/effects/switch/switchSlide.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchSlide.schema.js +9 -0
- package/dist/forms/effects/switch/switchStretch.d.ts +9 -0
- package/dist/forms/effects/switch/switchStretch.js +21 -0
- package/dist/forms/effects/switch/switchStretch.schema.d.ts +1 -0
- package/dist/forms/effects/switch/switchStretch.schema.js +10 -0
- package/dist/forms/effects/valid/validAsync.d.ts +7 -0
- package/dist/forms/effects/valid/validAsync.js +36 -0
- package/dist/forms/effects/valid/validAsync.schema.d.ts +1 -0
- package/dist/forms/effects/valid/validAsync.schema.js +9 -0
- package/dist/forms/effects/valid/validBubble.d.ts +7 -0
- package/dist/forms/effects/valid/validBubble.js +61 -0
- package/dist/forms/effects/valid/validBubble.schema.d.ts +1 -0
- package/dist/forms/effects/valid/validBubble.schema.js +9 -0
- package/dist/forms/effects/valid/validCheck.d.ts +9 -0
- package/dist/forms/effects/valid/validCheck.js +50 -0
- package/dist/forms/effects/valid/validCheck.schema.d.ts +1 -0
- package/dist/forms/effects/valid/validCheck.schema.js +10 -0
- package/dist/forms/effects/valid/validColor.d.ts +11 -0
- package/dist/forms/effects/valid/validColor.js +28 -0
- package/dist/forms/effects/valid/validColor.schema.d.ts +1 -0
- package/dist/forms/effects/valid/validColor.schema.js +11 -0
- package/dist/forms/effects/valid/validFlash.d.ts +9 -0
- package/dist/forms/effects/valid/validFlash.js +36 -0
- package/dist/forms/effects/valid/validFlash.schema.d.ts +1 -0
- package/dist/forms/effects/valid/validFlash.schema.js +10 -0
- package/dist/forms/effects/valid/validMessage.d.ts +7 -0
- package/dist/forms/effects/valid/validMessage.js +24 -0
- package/dist/forms/effects/valid/validMessage.schema.d.ts +1 -0
- package/dist/forms/effects/valid/validMessage.schema.js +9 -0
- package/dist/forms/effects/valid/validShake.d.ts +9 -0
- package/dist/forms/effects/valid/validShake.js +37 -0
- package/dist/forms/effects/valid/validShake.schema.d.ts +1 -0
- package/dist/forms/effects/valid/validShake.schema.js +10 -0
- package/dist/forms/effects/valid/validSwap.d.ts +7 -0
- package/dist/forms/effects/valid/validSwap.js +33 -0
- package/dist/forms/effects/valid/validSwap.schema.d.ts +1 -0
- package/dist/forms/effects/valid/validSwap.schema.js +9 -0
- package/dist/forms/errors.d.ts +12 -0
- package/dist/forms/errors.js +20 -0
- package/dist/forms/file.d.ts +1 -0
- package/dist/forms/file.js +268 -0
- package/dist/forms/files.d.ts +7 -0
- package/dist/forms/files.js +29 -0
- package/dist/forms/formSteps.d.ts +9 -0
- package/dist/forms/formSteps.js +6 -0
- package/dist/forms/ids.d.ts +17 -0
- package/dist/forms/ids.js +13 -0
- package/dist/forms/inline.d.ts +3 -0
- package/dist/forms/inline.js +128 -0
- package/dist/forms/number.d.ts +1 -0
- package/dist/forms/number.js +67 -0
- package/dist/forms/otp.d.ts +4 -0
- package/dist/forms/otp.js +171 -0
- package/dist/forms/picker.d.ts +1 -0
- package/dist/forms/picker.js +303 -0
- package/dist/forms/range.d.ts +3 -0
- package/dist/forms/range.js +223 -0
- package/dist/forms/registry.d.ts +4 -0
- package/dist/forms/registry.js +133 -0
- package/dist/forms/reveal.d.ts +6 -0
- package/dist/forms/reveal.js +51 -0
- package/dist/forms/runtime/focus.d.ts +16 -0
- package/dist/forms/runtime/focus.js +55 -0
- package/dist/forms/runtime/listMatch.d.ts +2 -0
- package/dist/forms/runtime/listMatch.js +33 -0
- package/dist/forms/runtime/origin.d.ts +10 -0
- package/dist/forms/runtime/origin.js +25 -0
- package/dist/forms/runtime/placePopup.d.ts +10 -0
- package/dist/forms/runtime/placePopup.js +55 -0
- package/dist/forms/runtime/useFlip.d.ts +7 -0
- package/dist/forms/runtime/useFlip.js +38 -0
- package/dist/forms/runtime/useMorph.d.ts +8 -0
- package/dist/forms/runtime/useMorph.js +56 -0
- package/dist/forms/runtime/useOffScreen.d.ts +3 -0
- package/dist/forms/runtime/useOffScreen.js +16 -0
- package/dist/forms/runtime/useSwitchDrag.d.ts +8 -0
- package/dist/forms/runtime/useSwitchDrag.js +83 -0
- package/dist/forms/runtime/vanish.d.ts +6 -0
- package/dist/forms/runtime/vanish.js +185 -0
- package/dist/forms/steps.d.ts +1 -0
- package/dist/forms/steps.js +149 -0
- package/dist/forms/swap.d.ts +7 -0
- package/dist/forms/swap.js +149 -0
- package/dist/forms/switch.d.ts +1 -0
- package/dist/forms/switch.js +99 -0
- package/dist/forms/tools.d.ts +3 -0
- package/dist/forms/tools.js +248 -0
- package/dist/forms/types.d.ts +161 -0
- package/dist/forms/types.js +5 -0
- package/dist/index.d.ts +234 -0
- package/dist/index.js +119 -0
- package/dist/schema/forms.d.ts +3 -0
- package/dist/schema/forms.js +194 -0
- package/dist/schema/index.d.ts +2 -1
- package/dist/schema/index.js +3 -1
- package/dist/schema/types.d.ts +2 -2
- package/dist/schema/types.js +1 -0
- package/guides/README.md +62 -61
- package/guides/contact.md +100 -77
- package/guides/forms.md +105 -0
- package/package.json +1 -1
- package/styles/form.css +594 -0
- package/theme.css +6 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// The structural sheet of OtpField: one real input laid over drawn slots, transparent, so typing, pasting, a phone's
|
|
2
|
+
// SMS code and a screen reader all meet one ordinary text box, while the slots show its characters. Positioning only;
|
|
3
|
+
// the look is styles/form.css. Pure strings. See ./CLAUDE.md.
|
|
4
|
+
import { LAYER_ORDER } from "../backgrounds/runtime/rootCss.js";
|
|
5
|
+
const CONTROL = "[data-sx-otp-control]";
|
|
6
|
+
const FOCUSED = `:has(${CONTROL}:focus)`;
|
|
7
|
+
// The real input lies over every slot, the same box, its own text, caret and selection invisible; never hidden, it takes
|
|
8
|
+
// the keys, the paste, the SMS code and the screen reader. Its text is 16 px or more, so a phone doesn't zoom in on focus.
|
|
9
|
+
// The slot the next character goes to is ringed, with a caret while it is empty.
|
|
10
|
+
export const OTP_CSS = `${LAYER_ORDER}
|
|
11
|
+
@layer components {
|
|
12
|
+
:where([data-sx-otp]) {
|
|
13
|
+
--sx-otp-w: 2.75rem;
|
|
14
|
+
--sx-otp-h: 3.25rem;
|
|
15
|
+
--sx-otp-gap: 0.5rem;
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: minmax(0, 1fr);
|
|
18
|
+
grid-template-areas: "label" "box" "description" "message";
|
|
19
|
+
justify-items: start;
|
|
20
|
+
min-inline-size: 0;
|
|
21
|
+
}
|
|
22
|
+
:where([data-sx-otp-label]) {
|
|
23
|
+
grid-area: label;
|
|
24
|
+
margin-block-end: 0.375rem;
|
|
25
|
+
}
|
|
26
|
+
:where([data-sx-otp-box]) {
|
|
27
|
+
grid-area: box;
|
|
28
|
+
position: relative;
|
|
29
|
+
max-inline-size: 100%;
|
|
30
|
+
}
|
|
31
|
+
:where([data-sx-otp-slots]) {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: var(--sx-otp-gap);
|
|
35
|
+
}
|
|
36
|
+
:where([data-sx-otp-slot]) {
|
|
37
|
+
position: relative;
|
|
38
|
+
display: grid;
|
|
39
|
+
place-items: center;
|
|
40
|
+
flex: 0 1 var(--sx-otp-w);
|
|
41
|
+
min-inline-size: 1.5rem;
|
|
42
|
+
block-size: var(--sx-otp-h);
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
font-size: 1.25rem;
|
|
45
|
+
font-variant-numeric: tabular-nums;
|
|
46
|
+
line-height: 1;
|
|
47
|
+
}
|
|
48
|
+
:where([data-sx-otp-char]) {
|
|
49
|
+
grid-area: 1 / 1;
|
|
50
|
+
}
|
|
51
|
+
:where([data-sx-otp-gap]) {
|
|
52
|
+
display: grid;
|
|
53
|
+
place-items: center;
|
|
54
|
+
inline-size: 0.75rem;
|
|
55
|
+
}
|
|
56
|
+
:where([data-sx-otp-gap] > span) {
|
|
57
|
+
inline-size: 100%;
|
|
58
|
+
block-size: 2px;
|
|
59
|
+
border-radius: 1px;
|
|
60
|
+
background: currentColor;
|
|
61
|
+
opacity: 0.4;
|
|
62
|
+
}
|
|
63
|
+
:where(${CONTROL}) {
|
|
64
|
+
position: absolute;
|
|
65
|
+
inset: 0;
|
|
66
|
+
z-index: 1;
|
|
67
|
+
inline-size: 100%;
|
|
68
|
+
block-size: 100%;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
border: 0;
|
|
73
|
+
background: transparent;
|
|
74
|
+
color: transparent;
|
|
75
|
+
-webkit-text-fill-color: transparent;
|
|
76
|
+
caret-color: transparent;
|
|
77
|
+
font: inherit;
|
|
78
|
+
font-size: max(16px, 1em);
|
|
79
|
+
letter-spacing: 0;
|
|
80
|
+
outline: none;
|
|
81
|
+
cursor: text;
|
|
82
|
+
appearance: none;
|
|
83
|
+
}
|
|
84
|
+
:where(${CONTROL})::selection {
|
|
85
|
+
background: transparent;
|
|
86
|
+
color: transparent;
|
|
87
|
+
}
|
|
88
|
+
:where(${CONTROL}:autofill) {
|
|
89
|
+
-webkit-text-fill-color: transparent;
|
|
90
|
+
transition: background-color 0s 600000s, color 0s 600000s;
|
|
91
|
+
}
|
|
92
|
+
:where(${CONTROL}:disabled) {
|
|
93
|
+
cursor: not-allowed;
|
|
94
|
+
}
|
|
95
|
+
:where([data-sx-otp]${FOCUSED} [data-sx-otp-slot][data-active], [data-sx-otp]${FOCUSED} [data-sx-otp-slot][data-selected]) {
|
|
96
|
+
outline: 2px solid var(--color-sx-primary, currentColor);
|
|
97
|
+
outline-offset: -1px;
|
|
98
|
+
z-index: 0;
|
|
99
|
+
}
|
|
100
|
+
:where([data-sx-otp-caret]) {
|
|
101
|
+
grid-area: 1 / 1;
|
|
102
|
+
inline-size: 2px;
|
|
103
|
+
block-size: 1.15em;
|
|
104
|
+
border-radius: 1px;
|
|
105
|
+
background: currentColor;
|
|
106
|
+
opacity: 0;
|
|
107
|
+
}
|
|
108
|
+
:where([data-sx-otp]${FOCUSED} [data-sx-otp-slot][data-active]:not([data-filled]) [data-sx-otp-caret]) {
|
|
109
|
+
opacity: 1;
|
|
110
|
+
}
|
|
111
|
+
:where([data-sx-otp-description]) {
|
|
112
|
+
grid-area: description;
|
|
113
|
+
margin: 0.375rem 0 0;
|
|
114
|
+
}
|
|
115
|
+
:where([data-sx-otp-message]) {
|
|
116
|
+
grid-area: message;
|
|
117
|
+
display: grid;
|
|
118
|
+
grid-template-rows: 0fr;
|
|
119
|
+
}
|
|
120
|
+
:where([data-sx-otp-message]:has([data-sx-otp-says])) {
|
|
121
|
+
grid-template-rows: 1fr;
|
|
122
|
+
}
|
|
123
|
+
:where([data-sx-otp-error]) {
|
|
124
|
+
min-block-size: 0;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
margin: 0;
|
|
127
|
+
}
|
|
128
|
+
:where([data-sx-otp-says]) {
|
|
129
|
+
display: block;
|
|
130
|
+
padding-block-start: 0.375rem;
|
|
131
|
+
}
|
|
132
|
+
@media (forced-colors: active) {
|
|
133
|
+
:where([data-sx-otp-slot]) {
|
|
134
|
+
border: 1px solid CanvasText;
|
|
135
|
+
}
|
|
136
|
+
:where([data-sx-otp]${FOCUSED} [data-sx-otp-slot][data-active], [data-sx-otp]${FOCUSED} [data-sx-otp-slot][data-selected]) {
|
|
137
|
+
outline-color: Highlight;
|
|
138
|
+
}
|
|
139
|
+
:where([data-sx-otp-caret]) {
|
|
140
|
+
forced-color-adjust: none;
|
|
141
|
+
background: CanvasText;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}`;
|
|
145
|
+
/** What moves: a typed character pops in (only while the field has the focus: never on load), the caret blinks and
|
|
146
|
+
* stays lit when the page pauses its loops (WCAG 2.2.2). Dropped under reduced motion. */
|
|
147
|
+
export const OTP_MOTION = `@layer components {
|
|
148
|
+
:where([data-sx-otp-char]) {
|
|
149
|
+
transition: scale 160ms var(--ease-sx-out, ease-out), opacity 160ms var(--ease-sx-out, ease-out);
|
|
150
|
+
}
|
|
151
|
+
@starting-style {
|
|
152
|
+
:where([data-sx-otp]${FOCUSED} [data-sx-otp-char]) {
|
|
153
|
+
scale: 0.6;
|
|
154
|
+
opacity: 0;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
:where([data-sx-otp-slot]) {
|
|
158
|
+
transition: outline-color 120ms ease-out;
|
|
159
|
+
}
|
|
160
|
+
:where([data-sx-otp]${FOCUSED} [data-sx-otp-slot][data-active]:not([data-filled]) [data-sx-otp-caret]) {
|
|
161
|
+
animation: sx-form-otp-blink 1.06s steps(1, end) infinite;
|
|
162
|
+
}
|
|
163
|
+
:where(html[data-sx-loops-paused] [data-sx-otp-caret]) {
|
|
164
|
+
animation: none;
|
|
165
|
+
}
|
|
166
|
+
@keyframes sx-form-otp-blink {
|
|
167
|
+
50% {
|
|
168
|
+
opacity: 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PICKER_BASE_CSS: string;
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
// The structural sheet of Select and Combobox: the label, the box, the arrow, the real <select> made stylable where the
|
|
2
|
+
// browser allows it (`appearance: base-select`), the Combobox's popup in the top layer tied to the box by anchor
|
|
3
|
+
// positioning, the list, the options, the chips, the error row. Positioning only; the look is styles/form.css.
|
|
4
|
+
import { LAYER_ORDER } from "../backgrounds/runtime/rootCss.js";
|
|
5
|
+
const CONTROL = "[data-sx-picker-control]";
|
|
6
|
+
const SELECT = `select${CONTROL}`;
|
|
7
|
+
// How the list opens and closes: one transition here, the starting look in variables an effect sets (`pickerOpen` on
|
|
8
|
+
// the root, `pickerSheet` on the popup itself, so on a phone the sheet's slide wins whatever their order). Without an
|
|
9
|
+
// effect the time is 0 and the list just appears. A rule each for the Combobox's popup and the `<select>`'s own picker:
|
|
10
|
+
// a browser that doesn't know `::picker()` drops a whole selector list that names it.
|
|
11
|
+
const FROM = ` opacity: var(--sx-picker-from-opacity, 1);
|
|
12
|
+
scale: var(--sx-picker-from-scale, 1);
|
|
13
|
+
translate: var(--sx-picker-from-shift, 0 0);
|
|
14
|
+
clip-path: var(--sx-picker-from-clip, var(--sx-picker-clip, none));`;
|
|
15
|
+
const OPENING = [
|
|
16
|
+
{ at: "[data-sx-picker-popup]", pseudo: "", closed: ":not(:popover-open)", open: ":popover-open" },
|
|
17
|
+
{ at: SELECT, pseudo: "::picker(select)", closed: ":not(:open)", open: ":open" },
|
|
18
|
+
];
|
|
19
|
+
// A TagsField (`data-sx-kind="tags"`) has no arrow to leave room for; a tag typed again is ringed for a moment.
|
|
20
|
+
export const PICKER_BASE_CSS = `${LAYER_ORDER}
|
|
21
|
+
@layer components {
|
|
22
|
+
:where([data-sx-picker]) {
|
|
23
|
+
--sx-form-dir: 1;
|
|
24
|
+
--sx-picker-px: 1rem;
|
|
25
|
+
--sx-picker-py: 0.75rem;
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: minmax(0, 1fr);
|
|
28
|
+
grid-template-areas: "label" "box" "description" "message";
|
|
29
|
+
align-content: start;
|
|
30
|
+
min-inline-size: 0;
|
|
31
|
+
position: relative;
|
|
32
|
+
isolation: isolate;
|
|
33
|
+
}
|
|
34
|
+
:where([data-sx-picker]:dir(rtl)) {
|
|
35
|
+
--sx-form-dir: -1;
|
|
36
|
+
}
|
|
37
|
+
:where([data-sx-picker][data-sx-inline]) {
|
|
38
|
+
--sx-picker-px: 0.125rem;
|
|
39
|
+
--sx-picker-py: 0rem;
|
|
40
|
+
display: inline-grid;
|
|
41
|
+
vertical-align: baseline;
|
|
42
|
+
grid-template-areas: "box";
|
|
43
|
+
}
|
|
44
|
+
:where([data-sx-picker][data-sx-inline] > [data-sx-picker-label]) {
|
|
45
|
+
position: absolute;
|
|
46
|
+
inline-size: 1px;
|
|
47
|
+
block-size: 1px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
clip-path: inset(50%);
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
:where([data-sx-picker][data-sx-inline] select[data-sx-picker-control]) {
|
|
53
|
+
field-sizing: content;
|
|
54
|
+
inline-size: auto;
|
|
55
|
+
}
|
|
56
|
+
:where([data-sx-picker][data-sx-inline] > [data-sx-picker-message]) {
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset-block-start: 100%;
|
|
59
|
+
inset-inline-start: 0;
|
|
60
|
+
inline-size: max-content;
|
|
61
|
+
}
|
|
62
|
+
:where([data-sx-picker-label]) {
|
|
63
|
+
grid-area: label;
|
|
64
|
+
justify-self: start;
|
|
65
|
+
margin-block-end: 0.375rem;
|
|
66
|
+
}
|
|
67
|
+
:where([data-sx-picker-box]) {
|
|
68
|
+
grid-area: box;
|
|
69
|
+
position: relative;
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-wrap: wrap;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: 0.25rem;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
min-inline-size: 0;
|
|
76
|
+
}
|
|
77
|
+
:where(${CONTROL}) {
|
|
78
|
+
flex: 1 1 6rem;
|
|
79
|
+
min-inline-size: 0;
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
margin: 0;
|
|
82
|
+
border: 0;
|
|
83
|
+
border-radius: inherit;
|
|
84
|
+
padding-block: var(--sx-picker-py);
|
|
85
|
+
padding-inline: var(--sx-picker-px) calc(var(--sx-picker-px) + 1.5em);
|
|
86
|
+
background: transparent;
|
|
87
|
+
color: inherit;
|
|
88
|
+
font: inherit;
|
|
89
|
+
line-height: 1.5;
|
|
90
|
+
outline: none;
|
|
91
|
+
appearance: none;
|
|
92
|
+
}
|
|
93
|
+
:where(${SELECT}) {
|
|
94
|
+
inline-size: 100%;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
:where([data-sx-picker-box]:has([data-sx-chip])) {
|
|
98
|
+
padding-inline-start: 0.375rem;
|
|
99
|
+
}
|
|
100
|
+
:where([data-sx-picker-box]:has([data-sx-chip]) ${CONTROL}) {
|
|
101
|
+
padding-inline-start: 0.25rem;
|
|
102
|
+
}
|
|
103
|
+
:where([data-sx-picker]:has(${CONTROL}:focus-visible) > [data-sx-picker-box]) {
|
|
104
|
+
outline: 2px solid var(--color-sx-primary, currentColor);
|
|
105
|
+
outline-offset: 2px;
|
|
106
|
+
}
|
|
107
|
+
:where([data-sx-picker-arrow]) {
|
|
108
|
+
position: absolute;
|
|
109
|
+
inset-block: 0;
|
|
110
|
+
inset-inline-end: 0;
|
|
111
|
+
display: grid;
|
|
112
|
+
place-items: center;
|
|
113
|
+
inline-size: calc(var(--sx-picker-px) * 2 + 0.5em);
|
|
114
|
+
margin: 0;
|
|
115
|
+
padding: 0;
|
|
116
|
+
border: 0;
|
|
117
|
+
background: transparent;
|
|
118
|
+
color: inherit;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
}
|
|
121
|
+
:where(span[data-sx-picker-arrow]) {
|
|
122
|
+
pointer-events: none;
|
|
123
|
+
}
|
|
124
|
+
:where([data-sx-picker-arrow] > svg, [data-sx-option-check] > svg, [data-sx-chip] svg) {
|
|
125
|
+
display: block;
|
|
126
|
+
inline-size: 1em;
|
|
127
|
+
block-size: 1em;
|
|
128
|
+
overflow: visible;
|
|
129
|
+
fill: none;
|
|
130
|
+
stroke: currentColor;
|
|
131
|
+
stroke-width: 2;
|
|
132
|
+
stroke-linecap: round;
|
|
133
|
+
stroke-linejoin: round;
|
|
134
|
+
}
|
|
135
|
+
@supports (appearance: base-select) {
|
|
136
|
+
:where(${SELECT}) {
|
|
137
|
+
appearance: base-select;
|
|
138
|
+
}
|
|
139
|
+
:where(${SELECT})::picker(select) {
|
|
140
|
+
appearance: base-select;
|
|
141
|
+
}
|
|
142
|
+
:where(${SELECT})::picker-icon {
|
|
143
|
+
display: none;
|
|
144
|
+
}
|
|
145
|
+
:where(${SELECT})::picker(select) {
|
|
146
|
+
clip-path: var(--sx-picker-clip, none);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
:where([data-sx-picker-popup]) {
|
|
150
|
+
inset: auto;
|
|
151
|
+
box-sizing: border-box;
|
|
152
|
+
margin: 0.25rem 0;
|
|
153
|
+
padding: 0.25rem;
|
|
154
|
+
overflow: auto;
|
|
155
|
+
position-anchor: var(--sx-picker-anchor);
|
|
156
|
+
position-area: block-end span-inline-end;
|
|
157
|
+
position-try-fallbacks: flip-block;
|
|
158
|
+
inline-size: anchor-size(width);
|
|
159
|
+
max-block-size: min(20rem, 50vh);
|
|
160
|
+
}
|
|
161
|
+
:where([data-sx-picker-popup]) {
|
|
162
|
+
clip-path: var(--sx-picker-clip, none);
|
|
163
|
+
}
|
|
164
|
+
:where([data-sx-picker-popup] > [data-sx-choice-layer]) {
|
|
165
|
+
position: absolute;
|
|
166
|
+
z-index: -1;
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
}
|
|
169
|
+
:where([data-sx-picker-list]) {
|
|
170
|
+
position: relative;
|
|
171
|
+
isolation: isolate;
|
|
172
|
+
margin: 0;
|
|
173
|
+
padding: 0;
|
|
174
|
+
list-style: none;
|
|
175
|
+
}
|
|
176
|
+
:where([data-sx-option], ${SELECT} option) {
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
gap: 0.5rem;
|
|
180
|
+
min-block-size: 1.5rem;
|
|
181
|
+
padding: 0.5rem 0.75rem;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
}
|
|
184
|
+
:where([data-sx-option][aria-disabled="true"]) {
|
|
185
|
+
cursor: not-allowed;
|
|
186
|
+
}
|
|
187
|
+
:where([data-sx-option-text]) {
|
|
188
|
+
flex: 1 1 auto;
|
|
189
|
+
min-inline-size: 0;
|
|
190
|
+
}
|
|
191
|
+
:where([data-sx-option-check]) {
|
|
192
|
+
flex: none;
|
|
193
|
+
}
|
|
194
|
+
:where([data-sx-option-check] path) {
|
|
195
|
+
stroke-dasharray: 1 2;
|
|
196
|
+
stroke-dashoffset: 1.01;
|
|
197
|
+
}
|
|
198
|
+
:where([data-sx-option][aria-selected="true"] [data-sx-option-check] path) {
|
|
199
|
+
stroke-dashoffset: 0;
|
|
200
|
+
}
|
|
201
|
+
:where([data-sx-option-note]) {
|
|
202
|
+
padding: 0.5rem 0.75rem;
|
|
203
|
+
}
|
|
204
|
+
:where([data-sx-chip]) {
|
|
205
|
+
display: inline-flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
gap: 0.125rem;
|
|
208
|
+
max-inline-size: 100%;
|
|
209
|
+
min-block-size: 1.75rem;
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
padding-inline: 0.625rem 0.125rem;
|
|
212
|
+
border-radius: 999px;
|
|
213
|
+
font-size: 0.875em;
|
|
214
|
+
}
|
|
215
|
+
:where([data-sx-chip] > button) {
|
|
216
|
+
display: grid;
|
|
217
|
+
place-items: center;
|
|
218
|
+
inline-size: 1.5rem;
|
|
219
|
+
block-size: 1.5rem;
|
|
220
|
+
margin: 0;
|
|
221
|
+
padding: 0;
|
|
222
|
+
border: 0;
|
|
223
|
+
border-radius: 50%;
|
|
224
|
+
background: transparent;
|
|
225
|
+
color: inherit;
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
}
|
|
228
|
+
:where([data-sx-chip] > button:focus-visible) {
|
|
229
|
+
outline: 2px solid var(--color-sx-primary, currentColor);
|
|
230
|
+
}
|
|
231
|
+
:where([data-sx-chip][data-sx-leaving]) {
|
|
232
|
+
pointer-events: none;
|
|
233
|
+
}
|
|
234
|
+
:where([data-sx-kind="tags"] ${CONTROL}) {
|
|
235
|
+
padding-inline-end: var(--sx-picker-px);
|
|
236
|
+
}
|
|
237
|
+
:where([data-sx-chip][data-sx-again]) {
|
|
238
|
+
outline: 2px solid var(--color-sx-primary, currentColor);
|
|
239
|
+
outline-offset: 1px;
|
|
240
|
+
}
|
|
241
|
+
:where([data-sx-picker-description]) {
|
|
242
|
+
grid-area: description;
|
|
243
|
+
margin: 0.375rem 0 0;
|
|
244
|
+
}
|
|
245
|
+
:where([data-sx-picker-message]) {
|
|
246
|
+
grid-area: message;
|
|
247
|
+
display: grid;
|
|
248
|
+
grid-template-rows: 0fr;
|
|
249
|
+
}
|
|
250
|
+
:where([data-sx-picker-message]:has(> [data-sx-picker-error]:not(:empty))) {
|
|
251
|
+
grid-template-rows: 1fr;
|
|
252
|
+
}
|
|
253
|
+
:where([data-sx-picker-error]) {
|
|
254
|
+
min-block-size: 0;
|
|
255
|
+
margin: 0;
|
|
256
|
+
overflow: hidden;
|
|
257
|
+
}
|
|
258
|
+
:where([data-sx-picker-says]) {
|
|
259
|
+
display: block;
|
|
260
|
+
padding-block-start: 0.375rem;
|
|
261
|
+
}
|
|
262
|
+
:where([data-sx-picker-sr]) {
|
|
263
|
+
position: absolute;
|
|
264
|
+
inline-size: 1px;
|
|
265
|
+
block-size: 1px;
|
|
266
|
+
overflow: hidden;
|
|
267
|
+
clip-path: inset(50%);
|
|
268
|
+
white-space: nowrap;
|
|
269
|
+
}
|
|
270
|
+
@media (pointer: coarse) {
|
|
271
|
+
:where(${CONTROL}) {
|
|
272
|
+
font-size: max(16px, 1em);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
@media (forced-colors: active) {
|
|
276
|
+
:where([data-sx-option][data-active]) {
|
|
277
|
+
outline: 2px solid Highlight;
|
|
278
|
+
outline-offset: -2px;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
282
|
+
${OPENING.map((o) => ` :where(${o.at})${o.pseudo} {
|
|
283
|
+
transform-origin: 50% 0;
|
|
284
|
+
transition-property: opacity, scale, translate, clip-path, display, overlay;
|
|
285
|
+
transition-duration: var(--sx-picker-time, 0s);
|
|
286
|
+
transition-timing-function: var(--ease-sx-out, ease-out);
|
|
287
|
+
transition-behavior: allow-discrete;
|
|
288
|
+
}
|
|
289
|
+
:where(${o.at}${o.closed})${o.pseudo} {
|
|
290
|
+
${FROM}
|
|
291
|
+
}
|
|
292
|
+
@starting-style {
|
|
293
|
+
:where(${o.at}${o.open})${o.pseudo} {
|
|
294
|
+
${FROM}
|
|
295
|
+
}
|
|
296
|
+
}`).join("\n")}
|
|
297
|
+
}
|
|
298
|
+
@media (prefers-reduced-motion: reduce) {
|
|
299
|
+
:where([data-sx-picker] [data-sx-choice-layer]:not([data-sx-choice-keep])) {
|
|
300
|
+
display: none;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}`;
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
// The structural sheet of Range: the head (label, value), the drawn rail and thumbs, and the real range inputs on top at
|
|
2
|
+
// opacity 0, their own thumbs the same size as the drawn ones so a press lands where it looks. One or two thumbs,
|
|
3
|
+
// across or upright. Positioning only; the look is styles/form.css. The thumbs and the rail's layers glide to a new value
|
|
4
|
+
// (a key, a click on the rail) and follow a drag at once; effects tune that through variables, never `transition`:
|
|
5
|
+
// `--sx-range-glide`, `--sx-range-drag-glide` (ticks spring from step to step), `--sx-range-grow` (a thumb's scale).
|
|
6
|
+
import { LAYER_ORDER } from "../backgrounds/runtime/rootCss.js";
|
|
7
|
+
const CONTROL = "[data-sx-range-control]";
|
|
8
|
+
const THUMB = "[data-sx-range-thumb]";
|
|
9
|
+
const TRACK = "[data-sx-range-track]";
|
|
10
|
+
const UPRIGHT = "[data-sx-vertical]";
|
|
11
|
+
const SPRING = "linear(0, 0.45 12%, 0.85 25%, 1.08 38%, 1.1 46%, 1.03 62%, 0.99 78%, 1)";
|
|
12
|
+
/** The real thumbs, one rule per engine: a browser drops a whole selector list that names another engine's part. */
|
|
13
|
+
const NATIVE = ["::-webkit-slider-thumb", "::-moz-range-thumb"];
|
|
14
|
+
/** How many gaps an auto tick row (`rangeTicks`) shows: every step up to 20, else the largest count up to 20 that lands on steps. */
|
|
15
|
+
export function autoTicks(steps) {
|
|
16
|
+
if (!Number.isFinite(steps) || steps <= 0)
|
|
17
|
+
return 1;
|
|
18
|
+
const whole = Math.round(steps);
|
|
19
|
+
if (whole <= 20)
|
|
20
|
+
return whole;
|
|
21
|
+
for (let n = 20; n >= 2; n--)
|
|
22
|
+
if (whole % n === 0)
|
|
23
|
+
return n;
|
|
24
|
+
return 10;
|
|
25
|
+
}
|
|
26
|
+
export const RANGE_BASE_CSS = `${LAYER_ORDER}
|
|
27
|
+
@layer components {
|
|
28
|
+
:where([data-sx-range]) {
|
|
29
|
+
--sx-form-dir: 1;
|
|
30
|
+
--sx-range-thumb: 1.25rem;
|
|
31
|
+
--sx-range-h: 0.375rem;
|
|
32
|
+
--sx-range-length: 10rem;
|
|
33
|
+
display: grid;
|
|
34
|
+
grid-template-columns: minmax(0, 1fr);
|
|
35
|
+
grid-template-areas: "head" "box" "description" "message";
|
|
36
|
+
align-content: start;
|
|
37
|
+
min-inline-size: 0;
|
|
38
|
+
position: relative;
|
|
39
|
+
isolation: isolate;
|
|
40
|
+
}
|
|
41
|
+
:where([data-sx-range]:dir(rtl)) {
|
|
42
|
+
--sx-form-dir: -1;
|
|
43
|
+
}
|
|
44
|
+
:where([data-sx-range-head]) {
|
|
45
|
+
grid-area: head;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: baseline;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
gap: 0.75rem;
|
|
50
|
+
margin-block-end: 0.5rem;
|
|
51
|
+
}
|
|
52
|
+
:where([data-sx-range-output]) {
|
|
53
|
+
font-variant-numeric: tabular-nums;
|
|
54
|
+
}
|
|
55
|
+
:where([data-sx-range-box]) {
|
|
56
|
+
grid-area: box;
|
|
57
|
+
position: relative;
|
|
58
|
+
container-type: inline-size;
|
|
59
|
+
block-size: max(1.5rem, var(--sx-range-thumb));
|
|
60
|
+
min-inline-size: 0;
|
|
61
|
+
touch-action: pan-y;
|
|
62
|
+
}
|
|
63
|
+
:where(${TRACK}) {
|
|
64
|
+
position: absolute;
|
|
65
|
+
inset-inline: calc(var(--sx-range-thumb) / 2);
|
|
66
|
+
inset-block: 0;
|
|
67
|
+
margin-block: auto;
|
|
68
|
+
block-size: var(--sx-range-h);
|
|
69
|
+
border-radius: 999px;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
}
|
|
72
|
+
:where(${TRACK} > [data-sx-choice-layer]) {
|
|
73
|
+
position: absolute;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
:where(${THUMB}) {
|
|
77
|
+
position: absolute;
|
|
78
|
+
inset-inline-start: 0;
|
|
79
|
+
inset-block: 0;
|
|
80
|
+
margin-block: auto;
|
|
81
|
+
display: grid;
|
|
82
|
+
place-items: center;
|
|
83
|
+
inline-size: var(--sx-range-thumb);
|
|
84
|
+
block-size: var(--sx-range-thumb);
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
translate: calc((var(--sx-at) * (100cqi - var(--sx-range-thumb)) + var(--sx-range-pull, 0px)) * var(--sx-form-dir)) 0;
|
|
89
|
+
}
|
|
90
|
+
:where(${THUMB} > [data-sx-choice-layer]) {
|
|
91
|
+
position: absolute;
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
}
|
|
94
|
+
:where([data-sx-range-says]) {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
:where(${CONTROL}) {
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset: 0;
|
|
100
|
+
z-index: 1;
|
|
101
|
+
inline-size: 100%;
|
|
102
|
+
block-size: 100%;
|
|
103
|
+
margin: 0;
|
|
104
|
+
padding: 0;
|
|
105
|
+
opacity: 0;
|
|
106
|
+
appearance: none;
|
|
107
|
+
background: transparent;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
:where(${CONTROL}:disabled) {
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
}
|
|
113
|
+
${NATIVE.map((part) => ` :where(${CONTROL})${part} {
|
|
114
|
+
appearance: none;
|
|
115
|
+
inline-size: var(--sx-range-thumb);
|
|
116
|
+
block-size: var(--sx-range-thumb);
|
|
117
|
+
border: 0;
|
|
118
|
+
border-radius: 50%;
|
|
119
|
+
}`).join("\n")}
|
|
120
|
+
:where([data-sx-dual] ${CONTROL}) {
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
}
|
|
123
|
+
${NATIVE.map((part) => ` :where([data-sx-dual] ${CONTROL})${part} {
|
|
124
|
+
pointer-events: auto;
|
|
125
|
+
}`).join("\n")}
|
|
126
|
+
:where([data-sx-dual][data-sx-top="a"] ${CONTROL}[data-sx-thumb="a"]) {
|
|
127
|
+
z-index: 2;
|
|
128
|
+
}
|
|
129
|
+
:where([data-sx-range]:has(${CONTROL}[data-sx-thumb="a"]:focus-visible) ${THUMB}[data-sx-thumb="a"],
|
|
130
|
+
[data-sx-range]:has(${CONTROL}[data-sx-thumb="b"]:focus-visible) ${THUMB}[data-sx-thumb="b"]) {
|
|
131
|
+
outline: 2px solid var(--color-sx-primary, currentColor);
|
|
132
|
+
outline-offset: 2px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:where(${UPRIGHT}) {
|
|
136
|
+
justify-items: start;
|
|
137
|
+
}
|
|
138
|
+
:where(${UPRIGHT} > [data-sx-range-box]) {
|
|
139
|
+
container-type: size;
|
|
140
|
+
inline-size: max(1.5rem, var(--sx-range-thumb));
|
|
141
|
+
block-size: var(--sx-range-length);
|
|
142
|
+
touch-action: pan-x;
|
|
143
|
+
}
|
|
144
|
+
:where(${UPRIGHT} ${TRACK}) {
|
|
145
|
+
inset-inline: 0;
|
|
146
|
+
inset-block: calc(var(--sx-range-thumb) / 2);
|
|
147
|
+
margin-inline: auto;
|
|
148
|
+
margin-block: 0;
|
|
149
|
+
inline-size: var(--sx-range-h);
|
|
150
|
+
block-size: auto;
|
|
151
|
+
}
|
|
152
|
+
:where(${UPRIGHT} ${THUMB}) {
|
|
153
|
+
inset-block: 0 auto;
|
|
154
|
+
inset-inline: 0;
|
|
155
|
+
margin: 0 auto;
|
|
156
|
+
translate: 0 calc((1 - var(--sx-at)) * (100cqb - var(--sx-range-thumb)) - var(--sx-range-pull, 0px));
|
|
157
|
+
}
|
|
158
|
+
:where(${UPRIGHT} ${CONTROL}) {
|
|
159
|
+
writing-mode: vertical-lr;
|
|
160
|
+
direction: rtl;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:where([data-sx-range-description]) {
|
|
164
|
+
grid-area: description;
|
|
165
|
+
margin: 0.5rem 0 0;
|
|
166
|
+
}
|
|
167
|
+
:where([data-sx-range-message]) {
|
|
168
|
+
grid-area: message;
|
|
169
|
+
display: grid;
|
|
170
|
+
grid-template-rows: 0fr;
|
|
171
|
+
}
|
|
172
|
+
:where([data-sx-range-message]:has(> [data-sx-range-error]:not(:empty))) {
|
|
173
|
+
grid-template-rows: 1fr;
|
|
174
|
+
}
|
|
175
|
+
:where([data-sx-range-error]) {
|
|
176
|
+
min-block-size: 0;
|
|
177
|
+
margin: 0;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
}
|
|
180
|
+
:where([data-sx-range-says-error]) {
|
|
181
|
+
display: block;
|
|
182
|
+
padding-block-start: 0.375rem;
|
|
183
|
+
}
|
|
184
|
+
:where([data-sx-range-name]) {
|
|
185
|
+
display: none;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
189
|
+
:where(${THUMB}) {
|
|
190
|
+
transition-property: translate, scale;
|
|
191
|
+
transition-duration: var(--sx-range-glide, 0.12s), var(--sx-range-grow, 0.2s);
|
|
192
|
+
transition-timing-function: ${SPRING};
|
|
193
|
+
}
|
|
194
|
+
:where(${TRACK} > [data-sx-choice-layer]) {
|
|
195
|
+
transition-property: translate, scale, clip-path;
|
|
196
|
+
transition-duration: var(--sx-range-glide, 0.12s);
|
|
197
|
+
transition-timing-function: ${SPRING};
|
|
198
|
+
}
|
|
199
|
+
:where([data-sx-dragging] ${THUMB}) {
|
|
200
|
+
transition-duration: var(--sx-range-drag-glide, 0s), var(--sx-range-grow, 0.2s);
|
|
201
|
+
}
|
|
202
|
+
:where([data-sx-dragging] ${TRACK} > [data-sx-choice-layer]) {
|
|
203
|
+
transition-duration: var(--sx-range-drag-glide, 0s);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
@media (prefers-reduced-motion: reduce) {
|
|
207
|
+
:where([data-sx-range] [data-sx-choice-layer]:not([data-sx-choice-keep])) {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
@media (forced-colors: active) {
|
|
212
|
+
:where(${TRACK}) {
|
|
213
|
+
border: 1px solid CanvasText;
|
|
214
|
+
}
|
|
215
|
+
:where(${THUMB}) {
|
|
216
|
+
forced-color-adjust: none;
|
|
217
|
+
background: CanvasText;
|
|
218
|
+
}
|
|
219
|
+
:where([data-sx-range]:has(${CONTROL}:disabled) ${THUMB}) {
|
|
220
|
+
background: GrayText;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}`;
|