@cfx-dev/ui-components 3.0.5 → 4.0.1

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.
@@ -586,6 +586,7 @@ const Ye = "cfxui__Slider__sliderContainer__fac82", Xe = "cfxui__Slider__sliderL
586
586
  He,
587
587
  {
588
588
  ...m,
589
+ value: t,
589
590
  className: ve(P.sliderRoot, s),
590
591
  onValueChange: d,
591
592
  children: [
@@ -16,10 +16,10 @@ export declare enum OffsetEnum {
16
16
  export type OffesetType = keyof typeof OffsetEnum;
17
17
  export declare enum MediaQueryEnum {
18
18
  initial = "initial",
19
- xxsmall = "xxsmall",
20
- xsmall = "xsmall",
21
19
  small = "small",
20
+ 'small-medium' = "small-medium",
22
21
  medium = "medium",
22
+ 'medium-large' = "medium-large",
23
23
  large = "large",
24
24
  xlarge = "xlarge"
25
25
  }
@@ -1,13 +1,13 @@
1
- var z = /* @__PURE__ */ ((t) => (t.none = "none", t.hairthin = "hairthin", t.thin = "thin", t.xxsmall = "xxsmall", t.xsmall = "xsmall", t.small = "small", t.normal = "normal", t.medium = "medium", t.large = "large", t.xlarge = "xlarge", t.safezone = "safezone", t))(z || {}), A = /* @__PURE__ */ ((t) => (t.initial = "initial", t.xxsmall = "xxsmall", t.xsmall = "xsmall", t.small = "small", t.medium = "medium", t.large = "large", t.xlarge = "xlarge", t))(A || {}), d;
1
+ var z = /* @__PURE__ */ ((t) => (t.none = "none", t.hairthin = "hairthin", t.thin = "thin", t.xxsmall = "xxsmall", t.xsmall = "xsmall", t.small = "small", t.normal = "normal", t.medium = "medium", t.large = "large", t.xlarge = "xlarge", t.safezone = "safezone", t))(z || {}), A = /* @__PURE__ */ ((t) => (t.initial = "initial", t.small = "small", t["small-medium"] = "small-medium", t.medium = "medium", t["medium-large"] = "medium-large", t.large = "large", t.xlarge = "xlarge", t))(A || {}), d;
2
2
  ((t) => {
3
3
  function i(r = 1) {
4
4
  return `calc(var(--quant) * ${r})`;
5
5
  }
6
6
  t.q = i;
7
- function s(r) {
7
+ function m(r) {
8
8
  return `var(--offset-${r})`;
9
9
  }
10
- t.offset = s;
10
+ t.offset = m;
11
11
  function u(r = "normal") {
12
12
  return `var(--font-size-${r})`;
13
13
  }
@@ -25,20 +25,20 @@ var z = /* @__PURE__ */ ((t) => (t.none = "none", t.hairthin = "hairthin", t.thi
25
25
  })(t.cls || (t.cls = {})), t.pc = (r) => `${r}%`, t.px = (r) => `${r}px`, t.ch = (r) => `${r}ch`, t.em = (r) => `${r}em`, t.rem = (r) => `${r}rem`, t.vh = (r) => `${r}vh`, t.vw = (r) => `${r}vw`, t.url = (r) => `url(${r})`, t.getOffsetAttrs = (r, l) => typeof l == "string" || typeof l == "number" ? {
26
26
  [`data-${r}-initial`]: l.toString()
27
27
  } : Object.entries(l).reduce((n, [e, o]) => (n[`data-${r}-${e}`] = o.toString(), n), {}), t.getOffsetStyles = (r, l) => typeof l == "string" ? {
28
- [`--${r}-initial`]: s(l)
28
+ [`--${r}-initial`]: m(l)
29
29
  } : typeof l == "number" ? {
30
30
  [`--${r}-initial`]: i(l)
31
- } : Object.entries(l).reduce((n, [e, o]) => (n[`--${r}-${e}`] = typeof o == "number" ? i(o) : s(o), n), {});
32
- function x(r, l) {
31
+ } : Object.entries(l).reduce((n, [e, o]) => (n[`--${r}-${e}`] = typeof o == "number" ? i(o) : m(o), n), {});
32
+ function s(r, l) {
33
33
  const {
34
34
  m: n,
35
35
  mt: e,
36
36
  mr: o,
37
37
  mb: f,
38
- ml: $,
39
- p: m,
38
+ ml: g,
39
+ p: $,
40
40
  pt: p,
41
- pr: g,
41
+ pr: x,
42
42
  pb: a,
43
43
  pl: h
44
44
  } = r;
@@ -47,15 +47,15 @@ var z = /* @__PURE__ */ ((t) => (t.none = "none", t.hairthin = "hairthin", t.thi
47
47
  ...e ? l("mt", e) : null,
48
48
  ...o ? l("mr", o) : null,
49
49
  ...f ? l("mb", f) : null,
50
- ...$ ? l("ml", $) : null,
51
- ...m ? l("p", m) : null,
50
+ ...g ? l("ml", g) : null,
51
+ ...$ ? l("p", $) : null,
52
52
  ...p ? l("pt", p) : null,
53
- ...g ? l("pr", g) : null,
53
+ ...x ? l("pr", x) : null,
54
54
  ...a ? l("pb", a) : null,
55
55
  ...h ? l("pl", h) : null
56
56
  };
57
57
  }
58
- t.callAllMPProps = x, t.getAllMPStyles = (r) => x(r, t.getOffsetStyles), t.getAllMPAttrs = (r) => x(r, t.getOffsetAttrs);
58
+ t.callAllMPProps = s, t.getAllMPStyles = (r) => s(r, t.getOffsetStyles), t.getAllMPAttrs = (r) => s(r, t.getOffsetAttrs);
59
59
  })(d || (d = {}));
60
60
  export {
61
61
  A as MediaQueryEnum,
package/dist/main.d.ts CHANGED
@@ -94,5 +94,5 @@ export type { PopoverProps } from './components/Popover';
94
94
  export type { AvatarProps, AvatarSize } from './components/Avatar';
95
95
  export { OnScreenSensor } from './components/OnScreenSensor';
96
96
  export { ui } from './components/ui';
97
- export type { OffesetType, MediaQueryType } from './components/ui';
97
+ export type { OffesetType, MediaQueryType, MediaQueryEnum, OffsetEnum, } from './components/ui';
98
98
  export { Symbols } from './components/Symbols';
@@ -326,12 +326,12 @@ $zindexMap: (
326
326
 
327
327
  $mediaMap: (
328
328
  'initial': 0px,
329
- 'xxsmall': 360px,
330
- 'xsmall': 640px,
331
- 'small': 768px,
329
+ 'small': 360px,
330
+ 'small-medium': 640px,
332
331
  'medium': 1024px,
333
- 'large': 1280px,
334
- 'xlarge': 1536px,
332
+ 'medium-large': 1280px,
333
+ 'large': 1920px,
334
+ 'xlarge': 2560px,
335
335
  );
336
336
 
337
337
  @mixin media-max($size: 'medium', $fix: 'empty') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "3.0.5",
4
+ "version": "4.0.1",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",