slexkit 0.3.0 → 0.3.2
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/CHANGELOG.md +30 -0
- package/README.md +4 -3
- package/README.zh-CN.md +4 -3
- package/dist/ai/llms-components.txt +2 -1
- package/dist/ai/llms-full.txt +85 -42
- package/dist/ai/llms-runtime.txt +11 -12
- package/dist/ai/llms.txt +1 -1
- package/dist/ai/slexkit-ai-manifest.json +77 -73
- package/dist/base.css +0 -46
- package/dist/components/checkbox.js +1 -0
- package/dist/components/choice.css +2 -2
- package/dist/components/display.css +1 -1
- package/dist/components/index.js +56 -153
- package/dist/components/input.css +53 -119
- package/dist/components/input.js +33 -143
- package/dist/components/radio-group.js +1 -0
- package/dist/components/select.css +0 -6
- package/dist/components/slider.css +27 -18
- package/dist/components/specs.js +2 -1
- package/dist/components/switch.css +3 -3
- package/dist/components/switch.js +1 -0
- package/dist/components/text-input.css +21 -90
- package/dist/components/text.js +12 -0
- package/dist/components/tooling.css +0 -1
- package/dist/runtime.cjs +67 -28
- package/dist/runtime.js +67 -28
- package/dist/slexkit.cjs +123 -181
- package/dist/slexkit.css +54 -167
- package/dist/slexkit.js +123 -181
- package/dist/types/engine/types.d.ts +1 -1
- package/dist/types/version.d.ts +2 -2
- package/dist/umd/slexkit.tooling.umd.js +122 -181
- package/dist/umd/slexkit.umd.js +123 -181
- package/package.json +3 -2
- package/skills/slexkit-host-integration/SKILL.md +1 -1
- package/src/components/svelte/display/Text.svelte +14 -1
- package/src/components/svelte/input/Checkbox.svelte +1 -1
- package/src/components/svelte/input/Input.svelte +0 -110
- package/src/components/svelte/input/RadioGroup.svelte +1 -1
- package/src/components/svelte/input/Switch.svelte +1 -1
- package/src/styles/components/choice.css +2 -2
- package/src/styles/components/select.css +0 -6
- package/src/styles/components/slider.css +27 -18
- package/src/styles/components/switch.css +3 -3
- package/src/styles/components/text-input.css +21 -90
- package/src/styles/display.css +1 -1
- package/src/styles/layout.css +0 -46
- package/src/styles/tooling.css +0 -1
package/dist/base.css
CHANGED
|
@@ -133,52 +133,6 @@ color-scheme: dark;
|
|
|
133
133
|
box-sizing: border-box;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
body[data-mobile-nav-open] {
|
|
137
|
-
overflow: hidden;
|
|
138
|
-
overscroll-behavior: contain;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
#mobileNav {
|
|
142
|
-
--mobile-nav-backdrop-opacity: 0;
|
|
143
|
-
--mobile-nav-panel-translate: -100%;
|
|
144
|
-
pointer-events: none;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
#mobileNav[data-open="true"] {
|
|
148
|
-
--mobile-nav-backdrop-opacity: 1;
|
|
149
|
-
--mobile-nav-panel-translate: 0px;
|
|
150
|
-
pointer-events: auto;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
#mobileNav [data-mobile-nav-backdrop] {
|
|
154
|
-
opacity: var(--mobile-nav-backdrop-opacity);
|
|
155
|
-
touch-action: pan-y;
|
|
156
|
-
transition: opacity 180ms ease;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
#mobileNav [data-mobile-nav-panel] {
|
|
160
|
-
transform: translateX(var(--mobile-nav-panel-translate));
|
|
161
|
-
touch-action: pan-y;
|
|
162
|
-
transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
163
|
-
will-change: transform;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
#mobileNav[data-dragging="true"] [data-mobile-nav-backdrop],
|
|
167
|
-
#mobileNav[data-dragging="true"] [data-mobile-nav-panel] {
|
|
168
|
-
transition: none;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@media (prefers-reduced-motion: reduce) {
|
|
172
|
-
#mobileNav [data-mobile-nav-backdrop],
|
|
173
|
-
#mobileNav [data-mobile-nav-panel] {
|
|
174
|
-
transition: none;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.slexkit-for-wrapper {
|
|
179
|
-
display: contents;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
136
|
.slexkit-source-toolbar {
|
|
183
137
|
display: flex;
|
|
184
138
|
align-items: center;
|
|
@@ -88,6 +88,7 @@ function Checkbox($$anchor, $$props) {
|
|
|
88
88
|
reset(label);
|
|
89
89
|
reset(span);
|
|
90
90
|
template_effect(($0, $1) => {
|
|
91
|
+
set_attribute(label, "data-disabled", get(p).disabled ? "true" : undefined);
|
|
91
92
|
input.disabled = !!get(p).disabled;
|
|
92
93
|
set_attribute(input, "data-state", get(checked) ? "checked" : "unchecked");
|
|
93
94
|
set_attribute(input, "aria-label", $0);
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
transform: none;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
.slex-checkbox-field
|
|
158
|
-
.slex-radio-field
|
|
157
|
+
.slex-checkbox-field[data-disabled="true"],
|
|
158
|
+
.slex-radio-field[data-disabled="true"] {
|
|
159
159
|
cursor: not-allowed;
|
|
160
160
|
opacity: 0.65;
|
|
161
161
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -7630,6 +7630,7 @@ function Checkbox($$anchor, $$props) {
|
|
|
7630
7630
|
reset(label2);
|
|
7631
7631
|
reset(span);
|
|
7632
7632
|
template_effect(($0, $1) => {
|
|
7633
|
+
set_attribute2(label2, "data-disabled", get2(p).disabled ? "true" : undefined);
|
|
7633
7634
|
input.disabled = !!get2(p).disabled;
|
|
7634
7635
|
set_attribute2(input, "data-state", get2(checked) ? "checked" : "unchecked");
|
|
7635
7636
|
set_attribute2(input, "aria-label", $0);
|
|
@@ -7705,6 +7706,7 @@ function Switch($$anchor, $$props) {
|
|
|
7705
7706
|
reset(span);
|
|
7706
7707
|
template_effect(($0, $1) => {
|
|
7707
7708
|
set_attribute2(label2, "data-state", get2(enabled) ? "on" : "off");
|
|
7709
|
+
set_attribute2(label2, "data-disabled", get2(p).disabled ? "true" : undefined);
|
|
7708
7710
|
input.disabled = !!get2(p).disabled;
|
|
7709
7711
|
set_attribute2(input, "aria-label", $0);
|
|
7710
7712
|
set_text(text_1, $1);
|
|
@@ -7808,26 +7810,11 @@ function parseEngineeringNumber(input) {
|
|
|
7808
7810
|
var nextInputId = 0;
|
|
7809
7811
|
var root_14 = from_html(`<label class="slex-input-label"> </label>`);
|
|
7810
7812
|
var root_2 = from_html(`<span class="slex-input-unit" aria-hidden="true"> </span>`);
|
|
7811
|
-
var root_33 = from_html(`<
|
|
7812
|
-
var root_4 = from_html(`<div class="slex-input-
|
|
7813
|
-
var
|
|
7814
|
-
var root8 = from_html(`<div class="slex-input-field"><!> <div class="slex-input-control"><input class="slex-input"/> <!> <!></div> <!> <!></div>`);
|
|
7813
|
+
var root_33 = from_html(`<div class="slex-input-description"> </div>`);
|
|
7814
|
+
var root_4 = from_html(`<div class="slex-input-error" role="alert"> </div>`);
|
|
7815
|
+
var root8 = from_html(`<div class="slex-input-field"><!> <div class="slex-input-control"><input class="slex-input"/> <!></div> <!> <!></div>`);
|
|
7815
7816
|
function Input($$anchor, $$props) {
|
|
7816
7817
|
push($$props, true);
|
|
7817
|
-
const engineeringPrefixFactors = {
|
|
7818
|
-
p: 0.000000000001,
|
|
7819
|
-
n: 0.000000001,
|
|
7820
|
-
u: 0.000001,
|
|
7821
|
-
"µ": 0.000001,
|
|
7822
|
-
"碌": 0.000001,
|
|
7823
|
-
m: 0.001,
|
|
7824
|
-
k: 1000,
|
|
7825
|
-
K: 1000,
|
|
7826
|
-
M: 1e6,
|
|
7827
|
-
meg: 1e6,
|
|
7828
|
-
G: 1e9,
|
|
7829
|
-
T: 1000000000000
|
|
7830
|
-
};
|
|
7831
7818
|
let p = state(proxy({}));
|
|
7832
7819
|
let value = state("");
|
|
7833
7820
|
const fallbackId = `slex-input-${++nextInputId}`;
|
|
@@ -7839,8 +7826,6 @@ function Input($$anchor, $$props) {
|
|
|
7839
7826
|
const readonly = user_derived(() => bool(get2(p).readonly) || bool(get2(p).readOnly));
|
|
7840
7827
|
const required = user_derived(() => bool(get2(p).required));
|
|
7841
7828
|
const invalid2 = user_derived(() => bool(get2(p).invalid) || !!get2(errorText));
|
|
7842
|
-
const steppable = user_derived(isSteppableInput);
|
|
7843
|
-
const controls = user_derived(() => get2(steppable) && get2(p).controls !== false && get2(p).controls !== "false");
|
|
7844
7829
|
const componentId = user_derived(() => safeId($$props.componentName));
|
|
7845
7830
|
const inputId = user_derived(() => text2(get2(p).id) || (get2(componentId) ? `slex-input-${get2(componentId)}` : fallbackId));
|
|
7846
7831
|
const descriptionId = user_derived(() => `${get2(inputId)}-description`);
|
|
@@ -7851,10 +7836,6 @@ function Input($$anchor, $$props) {
|
|
|
7851
7836
|
get2(descriptionText) ? get2(descriptionId) : "",
|
|
7852
7837
|
get2(errorText) ? get2(errorId) : ""
|
|
7853
7838
|
].filter(Boolean).join(" "));
|
|
7854
|
-
const numericValue = user_derived(readNumericValue);
|
|
7855
|
-
const controlLabel = user_derived(() => get2(labelText) || text2(get2(p).placeholder) || $$props.componentName || "input");
|
|
7856
|
-
const decrementDisabled = user_derived(() => !canStep(-1));
|
|
7857
|
-
const incrementDisabled = user_derived(() => !canStep(1));
|
|
7858
7839
|
user_effect(() => bindPropStore($$props.props, (next2) => {
|
|
7859
7840
|
set(p, next2, true);
|
|
7860
7841
|
set(value, text2(next2.value), true);
|
|
@@ -7865,72 +7846,6 @@ function Input($$anchor, $$props) {
|
|
|
7865
7846
|
function inputType() {
|
|
7866
7847
|
return text2(get2(p).type, "text") === "engineering" ? "text" : text2(get2(p).type, "text");
|
|
7867
7848
|
}
|
|
7868
|
-
function isSteppableInput() {
|
|
7869
|
-
const kind = text2(get2(p).type, "text");
|
|
7870
|
-
return kind === "number" || kind === "engineering" || get2(p).min !== undefined || get2(p).max !== undefined || get2(p).step !== undefined;
|
|
7871
|
-
}
|
|
7872
|
-
function numericProp(input) {
|
|
7873
|
-
if (input === undefined || input === null || input === "")
|
|
7874
|
-
return;
|
|
7875
|
-
const next2 = Number(input);
|
|
7876
|
-
return Number.isFinite(next2) ? next2 : undefined;
|
|
7877
|
-
}
|
|
7878
|
-
function stepSize() {
|
|
7879
|
-
const next2 = numericProp(get2(p).step);
|
|
7880
|
-
if (next2 !== undefined && next2 > 0)
|
|
7881
|
-
return next2;
|
|
7882
|
-
if (text2(get2(p).type, "text") !== "engineering")
|
|
7883
|
-
return 1;
|
|
7884
|
-
const parsed = parseEngineeringNumber(get2(value));
|
|
7885
|
-
if (!parsed.valid || !parsed.prefix)
|
|
7886
|
-
return 1;
|
|
7887
|
-
return engineeringPrefixFactors[parsed.prefix] ?? 1;
|
|
7888
|
-
}
|
|
7889
|
-
function readNumericValue() {
|
|
7890
|
-
if (text2(get2(p).type, "text") === "engineering") {
|
|
7891
|
-
const parsed = parseEngineeringNumber(get2(value));
|
|
7892
|
-
return parsed.valid && parsed.number !== null ? parsed.number : null;
|
|
7893
|
-
}
|
|
7894
|
-
const next2 = Number(get2(value));
|
|
7895
|
-
return Number.isFinite(next2) ? next2 : null;
|
|
7896
|
-
}
|
|
7897
|
-
function clamp(next2) {
|
|
7898
|
-
const min = numericProp(get2(p).min);
|
|
7899
|
-
const max = numericProp(get2(p).max);
|
|
7900
|
-
let clamped = next2;
|
|
7901
|
-
if (min !== undefined)
|
|
7902
|
-
clamped = Math.max(min, clamped);
|
|
7903
|
-
if (max !== undefined)
|
|
7904
|
-
clamped = Math.min(max, clamped);
|
|
7905
|
-
return clamped;
|
|
7906
|
-
}
|
|
7907
|
-
function canStep(direction) {
|
|
7908
|
-
if (!get2(controls) || get2(disabled) || get2(readonly) || get2(numericValue) === null)
|
|
7909
|
-
return false;
|
|
7910
|
-
return clamp(get2(numericValue) + direction * stepSize()) !== get2(numericValue);
|
|
7911
|
-
}
|
|
7912
|
-
function formatSteppedValue(next2) {
|
|
7913
|
-
if (text2(get2(p).type, "text") !== "engineering")
|
|
7914
|
-
return text2(next2);
|
|
7915
|
-
const parsed = parseEngineeringNumber(get2(value));
|
|
7916
|
-
if (!parsed.valid)
|
|
7917
|
-
return text2(next2);
|
|
7918
|
-
const factor = parsed.prefix ? engineeringPrefixFactors[parsed.prefix] : undefined;
|
|
7919
|
-
const visibleNumber = factor ? next2 / factor : next2;
|
|
7920
|
-
return `${formatNumber(visibleNumber)}${parsed.prefix}${parsed.unit}`;
|
|
7921
|
-
}
|
|
7922
|
-
function formatNumber(next2) {
|
|
7923
|
-
return text2(Number(next2.toPrecision(12)));
|
|
7924
|
-
}
|
|
7925
|
-
function emitValue(nextValue) {
|
|
7926
|
-
set(value, nextValue, true);
|
|
7927
|
-
emit($$props.ctx, "change", text2(get2(p).type, "text") === "engineering" ? parseEngineeringNumber(get2(value)) : get2(value));
|
|
7928
|
-
}
|
|
7929
|
-
function stepBy(direction) {
|
|
7930
|
-
if (!canStep(direction) || get2(numericValue) === null)
|
|
7931
|
-
return;
|
|
7932
|
-
emitValue(formatSteppedValue(clamp(get2(numericValue) + direction * stepSize())));
|
|
7933
|
-
}
|
|
7934
7849
|
function update2(event2) {
|
|
7935
7850
|
if (get2(disabled) || get2(readonly))
|
|
7936
7851
|
return;
|
|
@@ -7956,9 +7871,9 @@ function Input($$anchor, $$props) {
|
|
|
7956
7871
|
});
|
|
7957
7872
|
}
|
|
7958
7873
|
var div_1 = sibling(node, 2);
|
|
7959
|
-
var
|
|
7960
|
-
remove_input_defaults(
|
|
7961
|
-
var node_1 = sibling(
|
|
7874
|
+
var input = child(div_1);
|
|
7875
|
+
remove_input_defaults(input);
|
|
7876
|
+
var node_1 = sibling(input, 2);
|
|
7962
7877
|
{
|
|
7963
7878
|
var consequent_1 = ($$anchor2) => {
|
|
7964
7879
|
var span = root_2();
|
|
@@ -7972,33 +7887,11 @@ function Input($$anchor, $$props) {
|
|
|
7972
7887
|
$$render(consequent_1);
|
|
7973
7888
|
});
|
|
7974
7889
|
}
|
|
7975
|
-
var node_2 = sibling(node_1, 2);
|
|
7976
|
-
{
|
|
7977
|
-
var consequent_2 = ($$anchor2) => {
|
|
7978
|
-
var span_1 = root_33();
|
|
7979
|
-
var button = child(span_1);
|
|
7980
|
-
var button_1 = sibling(button, 2);
|
|
7981
|
-
reset(span_1);
|
|
7982
|
-
template_effect(() => {
|
|
7983
|
-
set_attribute2(button, "aria-label", `Increase ${get2(controlLabel)}`);
|
|
7984
|
-
button.disabled = get2(incrementDisabled);
|
|
7985
|
-
set_attribute2(button_1, "aria-label", `Decrease ${get2(controlLabel)}`);
|
|
7986
|
-
button_1.disabled = get2(decrementDisabled);
|
|
7987
|
-
});
|
|
7988
|
-
delegated("click", button, () => stepBy(1));
|
|
7989
|
-
delegated("click", button_1, () => stepBy(-1));
|
|
7990
|
-
append($$anchor2, span_1);
|
|
7991
|
-
};
|
|
7992
|
-
if_block(node_2, ($$render) => {
|
|
7993
|
-
if (get2(controls))
|
|
7994
|
-
$$render(consequent_2);
|
|
7995
|
-
});
|
|
7996
|
-
}
|
|
7997
7890
|
reset(div_1);
|
|
7998
|
-
var
|
|
7891
|
+
var node_2 = sibling(div_1, 2);
|
|
7999
7892
|
{
|
|
8000
|
-
var
|
|
8001
|
-
var div_2 =
|
|
7893
|
+
var consequent_2 = ($$anchor2) => {
|
|
7894
|
+
var div_2 = root_33();
|
|
8002
7895
|
var text_3 = child(div_2, true);
|
|
8003
7896
|
reset(div_2);
|
|
8004
7897
|
template_effect(() => {
|
|
@@ -8007,15 +7900,15 @@ function Input($$anchor, $$props) {
|
|
|
8007
7900
|
});
|
|
8008
7901
|
append($$anchor2, div_2);
|
|
8009
7902
|
};
|
|
8010
|
-
if_block(
|
|
7903
|
+
if_block(node_2, ($$render) => {
|
|
8011
7904
|
if (get2(descriptionText))
|
|
8012
|
-
$$render(
|
|
7905
|
+
$$render(consequent_2);
|
|
8013
7906
|
});
|
|
8014
7907
|
}
|
|
8015
|
-
var
|
|
7908
|
+
var node_3 = sibling(node_2, 2);
|
|
8016
7909
|
{
|
|
8017
|
-
var
|
|
8018
|
-
var div_3 =
|
|
7910
|
+
var consequent_3 = ($$anchor2) => {
|
|
7911
|
+
var div_3 = root_4();
|
|
8019
7912
|
var text_4 = child(div_3, true);
|
|
8020
7913
|
reset(div_3);
|
|
8021
7914
|
template_effect(() => {
|
|
@@ -8024,9 +7917,9 @@ function Input($$anchor, $$props) {
|
|
|
8024
7917
|
});
|
|
8025
7918
|
append($$anchor2, div_3);
|
|
8026
7919
|
};
|
|
8027
|
-
if_block(
|
|
7920
|
+
if_block(node_3, ($$render) => {
|
|
8028
7921
|
if (get2(errorText))
|
|
8029
|
-
$$render(
|
|
7922
|
+
$$render(consequent_3);
|
|
8030
7923
|
});
|
|
8031
7924
|
}
|
|
8032
7925
|
reset(div);
|
|
@@ -8035,21 +7928,20 @@ function Input($$anchor, $$props) {
|
|
|
8035
7928
|
set_attribute2(div, "data-required", get2(required) ? "true" : undefined);
|
|
8036
7929
|
set_attribute2(div, "data-readonly", get2(readonly) ? "true" : undefined);
|
|
8037
7930
|
set_attribute2(div_1, "data-has-unit", get2(unitText) ? "true" : undefined);
|
|
8038
|
-
set_attribute2(
|
|
8039
|
-
set_attribute2(
|
|
8040
|
-
set_attribute2(
|
|
8041
|
-
set_attribute2(
|
|
8042
|
-
set_attribute2(
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
set_attribute2(
|
|
8048
|
-
set_attribute2(
|
|
8049
|
-
set_attribute2(
|
|
8050
|
-
set_attribute2(
|
|
8051
|
-
set_attribute2(
|
|
8052
|
-
set_attribute2(input_1, "aria-invalid", get2(invalid2) ? "true" : undefined);
|
|
7931
|
+
set_attribute2(input, "id", get2(inputId));
|
|
7932
|
+
set_attribute2(input, "type", $0);
|
|
7933
|
+
set_attribute2(input, "inputmode", $1);
|
|
7934
|
+
set_attribute2(input, "name", $2);
|
|
7935
|
+
set_attribute2(input, "placeholder", $3);
|
|
7936
|
+
input.disabled = get2(disabled);
|
|
7937
|
+
input.readOnly = get2(readonly);
|
|
7938
|
+
input.required = get2(required);
|
|
7939
|
+
set_attribute2(input, "min", $4);
|
|
7940
|
+
set_attribute2(input, "max", $5);
|
|
7941
|
+
set_attribute2(input, "step", $6);
|
|
7942
|
+
set_attribute2(input, "aria-label", get2(computedAriaLabel) || undefined);
|
|
7943
|
+
set_attribute2(input, "aria-describedby", get2(describedBy) || undefined);
|
|
7944
|
+
set_attribute2(input, "aria-invalid", get2(invalid2) ? "true" : undefined);
|
|
8053
7945
|
}, [
|
|
8054
7946
|
() => inputType(),
|
|
8055
7947
|
() => text2(get2(p).type, "text") === "engineering" ? "decimal" : undefined,
|
|
@@ -8059,12 +7951,12 @@ function Input($$anchor, $$props) {
|
|
|
8059
7951
|
() => get2(p).max === undefined ? undefined : text2(get2(p).max),
|
|
8060
7952
|
() => get2(p).step === undefined ? undefined : text2(get2(p).step)
|
|
8061
7953
|
]);
|
|
8062
|
-
delegated("input",
|
|
8063
|
-
bind_value(
|
|
7954
|
+
delegated("input", input, update2);
|
|
7955
|
+
bind_value(input, () => get2(value), ($$value) => set(value, $$value));
|
|
8064
7956
|
append($$anchor, div);
|
|
8065
7957
|
pop();
|
|
8066
7958
|
}
|
|
8067
|
-
delegate(["input"
|
|
7959
|
+
delegate(["input"]);
|
|
8068
7960
|
|
|
8069
7961
|
// src/components/svelte/input/RadioGroup.svelte
|
|
8070
7962
|
var root_34 = from_html(`<span> </span>`);
|
|
@@ -8180,6 +8072,7 @@ function RadioGroup($$anchor, $$props) {
|
|
|
8180
8072
|
reset(label2);
|
|
8181
8073
|
reset(span_1);
|
|
8182
8074
|
template_effect(($0, $1, $2) => {
|
|
8075
|
+
set_attribute2(label2, "data-disabled", get2(disabled) ? "true" : undefined);
|
|
8183
8076
|
set_attribute2(input, "name", $0);
|
|
8184
8077
|
set_value(input, $1);
|
|
8185
8078
|
set_checked(input, get2(itemValue) === get2(value));
|
|
@@ -8215,7 +8108,7 @@ var root_35 = from_html(`<span> </span>`);
|
|
|
8215
8108
|
var root_16 = from_html(`<label class="slex-select-label"><!> <!></label>`);
|
|
8216
8109
|
var root_8 = from_html(`<span class="slex-select-check" aria-hidden="true"></span>`);
|
|
8217
8110
|
var root_6 = from_html(`<li role="option"><span class="slex-select-option-label"><!> <span> </span></span> <!></li>`);
|
|
8218
|
-
var
|
|
8111
|
+
var root_52 = from_html(`<ul class="slex-select-menu" role="listbox"></ul>`);
|
|
8219
8112
|
var root_9 = from_html(`<option> </option>`);
|
|
8220
8113
|
var root10 = from_html(`<div class="slex-select"><!> <button type="button" class="slex-select-trigger" aria-haspopup="listbox"><span class="slex-select-value"><!> <span> </span></span> <span class="slex-select-icon" aria-hidden="true"></span></button> <!> <select class="slex-select-native" tabindex="-1" aria-hidden="true"><option> </option><!></select></div>`);
|
|
8221
8114
|
function Select($$anchor, $$props) {
|
|
@@ -8419,7 +8312,7 @@ function Select($$anchor, $$props) {
|
|
|
8419
8312
|
var node_4 = sibling(button, 2);
|
|
8420
8313
|
{
|
|
8421
8314
|
var consequent_6 = ($$anchor2) => {
|
|
8422
|
-
var ul =
|
|
8315
|
+
var ul = root_52();
|
|
8423
8316
|
each(ul, 21, () => get2(options), index, ($$anchor3, item, index2) => {
|
|
8424
8317
|
const isSelected = user_derived(() => get2(item).value === text2(get2(value)));
|
|
8425
8318
|
const isActive = user_derived(() => index2 === get2(activeIndex));
|
|
@@ -11270,7 +11163,7 @@ function TabItem($$anchor, $$props) {
|
|
|
11270
11163
|
delegate(["click"]);
|
|
11271
11164
|
|
|
11272
11165
|
// src/components/svelte/input/Tabs.svelte
|
|
11273
|
-
var
|
|
11166
|
+
var root_53 = from_html(`<span class="slex-sr-only"> </span>`);
|
|
11274
11167
|
var root_36 = from_html(`<!> <!>`, 1);
|
|
11275
11168
|
var root_82 = from_html(`<div></div>`);
|
|
11276
11169
|
var root_18 = from_html(`<!> <span class="slex-tabs-selected-indicator" aria-hidden="true"></span>`, 1);
|
|
@@ -11448,7 +11341,7 @@ function Tabs2($$anchor, $$props) {
|
|
|
11448
11341
|
var node_4 = sibling(node_3, 2);
|
|
11449
11342
|
{
|
|
11450
11343
|
var consequent_1 = ($$anchor5) => {
|
|
11451
|
-
var span =
|
|
11344
|
+
var span = root_53();
|
|
11452
11345
|
var text_1 = child(span, true);
|
|
11453
11346
|
reset(span);
|
|
11454
11347
|
template_effect(() => set_text(text_1, get2(label2)));
|
|
@@ -11888,7 +11781,7 @@ var root_43 = from_svg(`<svg fill="currentColor" viewBox="0 0 20 20" xmlns="http
|
|
|
11888
11781
|
var root_111 = from_html(`<button><!> <!></button>`);
|
|
11889
11782
|
var root_62 = from_html(`<span class="sr-only"> </span>`);
|
|
11890
11783
|
var root_83 = from_svg(`<svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>`);
|
|
11891
|
-
var
|
|
11784
|
+
var root_54 = from_html(`<a><!> <!></a>`);
|
|
11892
11785
|
function CloseButton($$anchor, $$props) {
|
|
11893
11786
|
push($$props, true);
|
|
11894
11787
|
let color = prop($$props, "color", 3, "gray"), name = prop($$props, "name", 3, "Close"), size = prop($$props, "size", 3, "md"), restProps = rest_props($$props, [
|
|
@@ -11962,7 +11855,7 @@ function CloseButton($$anchor, $$props) {
|
|
|
11962
11855
|
append($$anchor2, button);
|
|
11963
11856
|
};
|
|
11964
11857
|
var alternate_2 = ($$anchor2) => {
|
|
11965
|
-
var a =
|
|
11858
|
+
var a = root_54();
|
|
11966
11859
|
attribute_effect(a, ($0) => ({
|
|
11967
11860
|
...restProps,
|
|
11968
11861
|
onclick,
|
|
@@ -12595,11 +12488,21 @@ function Text2($$anchor, $$props) {
|
|
|
12595
12488
|
push($$props, true);
|
|
12596
12489
|
let p = state(proxy({}));
|
|
12597
12490
|
user_effect(() => bindPropStore($$props.props, (next2) => set(p, next2, true)));
|
|
12491
|
+
const color = user_derived(() => get2(p).color == null || get2(p).color === "" ? undefined : text2(get2(p).color));
|
|
12492
|
+
const size = user_derived(() => cssLength(get2(p).size));
|
|
12493
|
+
function cssLength(value) {
|
|
12494
|
+
if (value == null || value === "")
|
|
12495
|
+
return;
|
|
12496
|
+
const rendered = text2(value);
|
|
12497
|
+
return /^-?\d+(\.\d+)?$/.test(rendered) ? `${rendered}px` : rendered;
|
|
12498
|
+
}
|
|
12598
12499
|
var div = root20();
|
|
12500
|
+
let styles;
|
|
12599
12501
|
var text_1 = child(div, true);
|
|
12600
12502
|
reset(div);
|
|
12601
12503
|
template_effect(($0, $1) => {
|
|
12602
12504
|
set_class(div, 1, $0);
|
|
12505
|
+
styles = set_style(div, "", styles, { color: get2(color), "font-size": get2(size) });
|
|
12603
12506
|
set_text(text_1, $1);
|
|
12604
12507
|
}, [
|
|
12605
12508
|
() => `slex-text${get2(p).variant ? ` slex-text--${text2(get2(p).variant)}` : ""}${get2(p).class ? ` ${text2(get2(p).class)}` : ""}`,
|
|
@@ -12771,7 +12674,7 @@ var root_311 = from_html(`<span> </span>`);
|
|
|
12771
12674
|
var root_45 = from_html(`<span class="slex-code-block-language"> </span>`);
|
|
12772
12675
|
var root_114 = from_html(`<figcaption class="slex-code-block-header"><span class="slex-code-block-title"><!> <!></span> <!></figcaption>`);
|
|
12773
12676
|
var root_72 = from_html(`<span> </span>`);
|
|
12774
|
-
var
|
|
12677
|
+
var root_55 = from_html(`<span class="slex-code-line"><span class="slex-code-line-content"></span></span>`);
|
|
12775
12678
|
var root22 = from_html(`<figure class="slex-code-block"><!> <pre class="slex-code-block-pre"><code></code></pre></figure>`);
|
|
12776
12679
|
function CodeBlock($$anchor, $$props) {
|
|
12777
12680
|
push($$props, true);
|
|
@@ -12940,7 +12843,7 @@ function CodeBlock($$anchor, $$props) {
|
|
|
12940
12843
|
var pre = sibling(node, 2);
|
|
12941
12844
|
var code_1 = child(pre);
|
|
12942
12845
|
each(code_1, 21, () => get2(lines), index, ($$anchor2, line) => {
|
|
12943
|
-
var span_3 =
|
|
12846
|
+
var span_3 = root_55();
|
|
12944
12847
|
var span_4 = child(span_3);
|
|
12945
12848
|
each(span_4, 21, () => get2(line), index, ($$anchor3, token) => {
|
|
12946
12849
|
var fragment_1 = comment();
|
|
@@ -27080,7 +26983,7 @@ function Table($$anchor, $$props) {
|
|
|
27080
26983
|
|
|
27081
26984
|
// src/components/svelte/content/Section.svelte
|
|
27082
26985
|
var root_28 = from_html(`<div class="slex-section-eyebrow"> </div>`);
|
|
27083
|
-
var
|
|
26986
|
+
var root_56 = from_html(`<span> </span>`);
|
|
27084
26987
|
var root_313 = from_html(`<h2 class="slex-section-title"><!><!></h2>`);
|
|
27085
26988
|
var root_65 = from_html(`<p class="slex-section-subtitle"> </p>`);
|
|
27086
26989
|
var root_73 = from_html(`<a class="slex-section-action"> </a>`);
|
|
@@ -27131,7 +27034,7 @@ function Section($$anchor, $$props) {
|
|
|
27131
27034
|
var node_4 = sibling(node_3);
|
|
27132
27035
|
{
|
|
27133
27036
|
var consequent_2 = ($$anchor4) => {
|
|
27134
|
-
var span =
|
|
27037
|
+
var span = root_56();
|
|
27135
27038
|
var text_2 = child(span, true);
|
|
27136
27039
|
reset(span);
|
|
27137
27040
|
template_effect(($0) => set_text(text_2, $0), [() => text2(get2(p).title)]);
|