chore(release): refresh private package staging
Quality / quality (ubuntu-latest) (push) Failing after 14m12s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-10 00:55:12 +05:30
parent bca9549f3a
commit db612df6cd
69 changed files with 5421 additions and 7243 deletions
+144 -1
View File
@@ -1,3 +1,7 @@
import FieldStyles from "../styles/FieldStyles.wrn"
import ComponentBaseStyles from "../styles/ComponentBaseStyles.wrn"
component RangeSlider {
outputs {
input(payload: ({ value: number; name: string; sourceEvent: Event }) | ({ sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[]))
@@ -49,7 +53,7 @@ component RangeSlider {
client function increaseValue(sourceEvent) { currentValue = Math.min(Number(max), Number(currentValue) + Number(step)); output.input({ value: currentValue, name: name, sourceEvent: sourceEvent }); output.change({ value: currentValue, name: name, sourceEvent: sourceEvent }) }
}
view {
<div {...attrs} class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--field wire-next--range-slider {class}" data-variant="{variant}" data-inline="{inline}" data-invalid="{error ? 'true' : 'false'}">
<div {...attrs} class="wire-component wire-component--color-{color} wire-component--size-{size} wire-next--field wire-next--range-slider {class}" data-variant="{variant}" data-inline="{inline}" data-invalid="{error ? 'true' : 'false'}">
<div class="wire-next__field-heading"><label class="{hiddenLabel ? 'wire-next__sr-only' : ''}" for="{id || name}">{label}</label>{#if cornerHint}<span class="wire-next__field-hint">{cornerHint}</span>{/if}</div>
<div class="wire-next__range-control" data-variant="{variant}" data-icon-position="{iconPosition}" data-show-steps="{showSteps}">
{#if icon}<span class="{icon}" aria-hidden="true"></span>{/if}
@@ -67,5 +71,144 @@ component RangeSlider {
</div>
{#if helperText}<small class="wire-next__field-help">{helperText}</small>{/if}<small class="wire-next__field-error" data-error="{name}">{error}</small>
</div>
<FieldStyles hidden />
<ComponentBaseStyles hidden />
}
style {
.wire-next__range-track {
display: grid;
flex: 1;
min-width: 0;
gap: 0.35rem;
}
.wire-next__range-control input {
width: 100%;
min-width: 0;
margin: 0;
flex: 1;
accent-color: var(--wire-field-color);
}
.wire-next__custom-slider {
position: relative;
width: 100%;
height: 1.5rem;
cursor: pointer;
touch-action: none;
}
.wire-next__custom-slider::before,
.wire-next__slider-fill {
position: absolute;
top: 50%;
height: 0.4rem;
border-radius: 999px;
transform: translateY(-50%);
content: "";
}
.wire-next__custom-slider::before {
right: 0;
left: 0;
background: var(--wire-color-surface-2);
box-shadow: inset 0 0 0 1px var(--wire-color-border);
}
.wire-next__slider-fill {
z-index: 1;
left: 0;
width: var(--wire-range-progress);
background: var(--wire-field-color);
}
.wire-next__slider-thumb {
position: absolute;
z-index: 3;
top: 50%;
left: var(--wire-range-progress);
width: 1.25rem;
height: 1.25rem;
border: 3px solid var(--wire-field-color);
border-radius: 50%;
background: var(--wire-color-surface);
box-shadow: var(--wire-shadow-1);
transform: translate(-50%, -50%);
}
.wire-next__custom-slider:focus-visible {
outline: 3px solid color-mix(in srgb, var(--wire-field-color) 28%, transparent);
outline-offset: 3px;
}
.wire-next__slider-marks button {
position: absolute;
z-index: 2;
top: 50%;
width: 0.55rem;
height: 0.55rem;
padding: 0;
border: 2px solid var(--wire-color-surface);
border-radius: 50%;
background: var(--wire-color-muted);
transform: translate(-50%, -50%);
}
.wire-next__range-control[data-show-steps="true"] input {
background-image: repeating-linear-gradient(
90deg,
transparent 0,
transparent calc(10% - 1px),
var(--wire-color-border) calc(10% - 1px),
var(--wire-color-border) 10%
);
}
.wire-next__range-bounds {
display: grid;
grid-template-columns: 1fr auto 1fr;
color: var(--wire-color-muted);
font-size: 0.78em;
font-variant-numeric: tabular-nums;
}
.wire-next__range-bounds span:nth-child(2) {
text-align: center;
}
.wire-next__range-bounds span:last-child {
text-align: right;
}
.wire-next__range-control output {
min-width: 3ch;
font-variant-numeric: tabular-nums;
}
.wire-next__range-stepper {
display: inline-grid;
width: 2.35rem;
height: 2.35rem;
flex: 0 0 auto;
place-items: center;
border: 1px solid var(--wire-color-border);
border-radius: 50%;
background: var(--wire-color-surface);
color: var(--wire-color-text);
font: inherit;
font-size: 1.2rem;
cursor: pointer;
}
.wire-next__range-stepper:hover:not(:disabled) {
border-color: var(--wire-field-color);
color: var(--wire-field-color);
}
.wire-next__range-stepper:disabled {
cursor: not-allowed;
opacity: 0.45;
}
}
}