@symbo.ls/create 2.11.482 → 2.11.484

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.
@@ -3914,7 +3914,7 @@ var require_cjs2 = __commonJS({
3914
3914
  mixTwoRgb: () => mixTwoRgb,
3915
3915
  mixTwoRgba: () => mixTwoRgba,
3916
3916
  numToLetterMap: () => numToLetterMap,
3917
- opacify: () => opacify,
3917
+ opacify: () => opacify2,
3918
3918
  returnSubThemeOrDefault: () => returnSubThemeOrDefault,
3919
3919
  rgbArrayToHex: () => rgbArrayToHex,
3920
3920
  rgbToHSL: () => rgbToHSL,
@@ -3988,7 +3988,7 @@ var require_cjs2 = __commonJS({
3988
3988
  mixTwoRgb: () => mixTwoRgb,
3989
3989
  mixTwoRgba: () => mixTwoRgba,
3990
3990
  numToLetterMap: () => numToLetterMap,
3991
- opacify: () => opacify,
3991
+ opacify: () => opacify2,
3992
3992
  returnSubThemeOrDefault: () => returnSubThemeOrDefault,
3993
3993
  rgbArrayToHex: () => rgbArrayToHex,
3994
3994
  rgbToHSL: () => rgbToHSL,
@@ -4125,7 +4125,7 @@ var require_cjs2 = __commonJS({
4125
4125
  }
4126
4126
  return `rgba(${arr})`;
4127
4127
  };
4128
- var opacify = (color, opacity) => {
4128
+ var opacify2 = (color, opacity) => {
4129
4129
  const arr = colorStringToRgbaArray(color);
4130
4130
  if (!arr) {
4131
4131
  if (ENV3 === "test" || ENV3 === "development")
@@ -13251,8 +13251,13 @@ var require_methods = __commonJS({
13251
13251
  };
13252
13252
  var remove = function(key, options = {}) {
13253
13253
  const state = this;
13254
- state[key] = null;
13255
- return state.set(state.parse(), { replace: true, ...options });
13254
+ if ((0, import_utils27.isArray)(state))
13255
+ (0, import_utils27.removeFromArray)(state, key);
13256
+ if ((0, import_utils27.isObject)(state))
13257
+ (0, import_utils27.removeFromObject)(state, key);
13258
+ if (options.applyReset)
13259
+ return state.set(state.parse(), { replace: true, ...options });
13260
+ return state.update();
13256
13261
  };
13257
13262
  var set3 = function(val, options = {}) {
13258
13263
  const state = this;
@@ -13670,7 +13675,7 @@ var require_create = __commonJS({
13670
13675
  return (0, import_utils27.exec)(state, element);
13671
13676
  } else if ((0, import_utils27.is)(state)("string", "number")) {
13672
13677
  ref.__state = state;
13673
- return {};
13678
+ return { value: state };
13674
13679
  } else if (state === true) {
13675
13680
  ref.__state = element.key;
13676
13681
  return {};
@@ -15243,6 +15248,102 @@ var init_Avatar = __esm({
15243
15248
  }
15244
15249
  });
15245
15250
 
15251
+ // ../uikit/Range/index.js
15252
+ var import_scratch12, Range;
15253
+ var init_Range = __esm({
15254
+ "../uikit/Range/index.js"() {
15255
+ "use strict";
15256
+ import_scratch12 = __toESM(require_cjs2());
15257
+ Range = {
15258
+ props: {
15259
+ appearance: "none",
15260
+ width: "100%",
15261
+ height: "2px",
15262
+ outline: "none",
15263
+ flex: 1,
15264
+ onInput: (ev, el, s) => {
15265
+ const props4 = el.props;
15266
+ if (el.call("isFunction", props4.onInput)) {
15267
+ props4.onInput(ev, el, s);
15268
+ } else {
15269
+ s.update({ value: parseFloat(el.node.value) });
15270
+ }
15271
+ },
15272
+ onChange: (ev, el, s) => {
15273
+ const props4 = el.props;
15274
+ if (el.call("isFunction", props4.onChange)) {
15275
+ props4.onChange(ev, el, s);
15276
+ } else {
15277
+ s.update({ value: parseFloat(el.node.value) });
15278
+ }
15279
+ },
15280
+ "::-webkit-slider-thumb": {
15281
+ boxSizing: "content-box",
15282
+ width: "8px",
15283
+ height: "8px",
15284
+ borderWidth: "2px",
15285
+ borderStyle: "solid",
15286
+ borderRadius: "100%",
15287
+ opacity: ".8",
15288
+ style: {
15289
+ appearance: "none"
15290
+ }
15291
+ },
15292
+ "::-webkit-slider-runnable-track": {},
15293
+ "@dark": {
15294
+ background: "white 0.2",
15295
+ "::-webkit-slider-thumb": {
15296
+ background: "#232526",
15297
+ borderColor: (0, import_scratch12.opacify)("#454646", 0.75)
15298
+ },
15299
+ ":hover": {
15300
+ "::-webkit-slider-thumb": {
15301
+ borderColor: (0, import_scratch12.opacify)("#fff", 0.35)
15302
+ }
15303
+ },
15304
+ ":focus": {
15305
+ "::-webkit-slider-thumb": {
15306
+ borderColor: "#3C6AC0"
15307
+ }
15308
+ }
15309
+ },
15310
+ "@light": {
15311
+ background: "gray9",
15312
+ "::-webkit-slider-thumb": {
15313
+ background: "white",
15314
+ borderColor: "gray9"
15315
+ },
15316
+ ":hover": {
15317
+ "::-webkit-slider-thumb": {
15318
+ borderColor: "gray7"
15319
+ }
15320
+ },
15321
+ ":focus": {
15322
+ "::-webkit-slider-thumb": {
15323
+ borderColor: "blue"
15324
+ }
15325
+ }
15326
+ }
15327
+ },
15328
+ deps: {
15329
+ returnPropertyValue: (el, property, def) => {
15330
+ const val = el.props && el.props[property];
15331
+ const r = el.call("isFunction", val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
15332
+ return r + "";
15333
+ }
15334
+ },
15335
+ tag: "input",
15336
+ attr: {
15337
+ type: "range",
15338
+ value: (el, s) => parseFloat(el.state.value || el.props.value || el.props.defaultValue),
15339
+ min: (el, s) => el.deps.returnPropertyValue(el, "min", 0),
15340
+ max: (el, s) => el.deps.returnPropertyValue(el, "max", 100),
15341
+ step: (el, s) => el.deps.returnPropertyValue(el, "step", 1)
15342
+ }
15343
+ };
15344
+ }
15345
+ });
15346
+
15246
15347
  // ../uikit/index.js
15247
15348
  var uikit_exports = {};
15248
15349
  __export(uikit_exports, {
@@ -15306,6 +15407,7 @@ __export(uikit_exports, {
15306
15407
  Pseudo: () => Pseudo,
15307
15408
  Radio: () => Radio,
15308
15409
  RadioHgroup: () => RadioHgroup,
15410
+ Range: () => Range,
15309
15411
  RouteLink: () => RouteLink,
15310
15412
  RouterLink: () => RouterLink,
15311
15413
  Select: () => Select,
@@ -15348,6 +15450,7 @@ var init_uikit = __esm({
15348
15450
  init_Dialog();
15349
15451
  init_Tooltip();
15350
15452
  init_Avatar();
15453
+ init_Range();
15351
15454
  }
15352
15455
  });
15353
15456
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.482",
3
+ "version": "2.11.484",
4
4
  "license": "MIT",
5
- "gitHead": "0a1b1317d8c11138bcd9dc171074db65453289ed",
5
+ "gitHead": "8b1e8fb4387591a6aa1e3fd5afeadc077d0f4df8",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -37,8 +37,8 @@
37
37
  "@symbo.ls/fetch": "^2.11.475",
38
38
  "@symbo.ls/init": "^2.11.475",
39
39
  "@symbo.ls/scratch": "^2.11.475",
40
- "@symbo.ls/sync": "^2.11.482",
41
- "@symbo.ls/uikit": "^2.11.482",
40
+ "@symbo.ls/sync": "^2.11.484",
41
+ "@symbo.ls/uikit": "^2.11.484",
42
42
  "@symbo.ls/utils": "^2.11.475",
43
43
  "domql": "^2.5.158"
44
44
  },