@recordair/ui-core 0.3.25 → 0.3.26

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../src/Range.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAGhE,KAAK,UAAU,GAAG,IAAI,CACpB,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAC3C,GAAG;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,KAAK,GAAI,yCAMZ,UAAU,gCAgCZ,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../src/Range.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAGhE,KAAK,UAAU,GAAG,IAAI,CACpB,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAC3C,GAAG;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,KAAK,GAAI,yCAMZ,UAAU,gCAmCZ,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
package/dist/Range.js CHANGED
@@ -5,7 +5,7 @@ const Range = ({ className, max = 100, min = 0, value, ...rest }) => {
5
5
  const interval = max - min;
6
6
  const progress = interval === 0 ? 0 : ((normalizedValue - min) / interval) * 100;
7
7
  const style = { "--range-progress": `${progress}%` };
8
- return (_jsxs("span", { className: "relative flex h-8 w-full items-center", style: style, children: [_jsx("span", { "aria-hidden": true, className: "absolute h-2 w-full rounded-full bg-line" }), _jsx("span", { "aria-hidden": true, className: "absolute h-2 rounded-full bg-brand-primary", style: { width: "var(--range-progress)" } }), _jsx("input", { type: "range", min: min, max: max, value: normalizedValue, className: classNames("relative h-full w-full cursor-pointer appearance-none bg-transparent focus:outline-none focus-visible:rounded-full focus-visible:shadow-focus", "[&::-webkit-slider-runnable-track]:h-2 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent", "[&::-moz-range-track]:h-2 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-transparent", "[&::-webkit-slider-thumb]:size-5 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-surface-elevated [&::-webkit-slider-thumb]:bg-brand-primary", "[&::-moz-range-thumb]:size-5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-surface-elevated [&::-moz-range-thumb]:bg-brand-primary", "disabled:cursor-not-allowed disabled:opacity-50", className), ...rest })] }));
8
+ return (_jsxs("span", { className: "relative flex h-9 w-full items-center", style: style, children: [_jsx("span", { "aria-hidden": true, className: "absolute h-1.5 w-full rounded-full bg-line-subtle" }), _jsx("span", { "aria-hidden": true, className: "absolute h-1.5 rounded-full bg-gradient-to-r from-brand-gradient-from to-brand-gradient-to transition-[width] duration-150", style: { width: "var(--range-progress)" } }), _jsx("input", { type: "range", min: min, max: max, value: normalizedValue, className: classNames("relative h-full w-full cursor-pointer appearance-none bg-transparent focus:outline-none", "[&::-webkit-slider-runnable-track]:h-1.5 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent", "[&::-moz-range-track]:h-1.5 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-transparent", "[&::-webkit-slider-thumb]:size-6 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-[3px] [&::-webkit-slider-thumb]:border-surface-elevated [&::-webkit-slider-thumb]:bg-brand-primary [&::-webkit-slider-thumb]:shadow-brand [&::-webkit-slider-thumb]:transition-transform [&::-webkit-slider-thumb]:duration-150", "[&::-moz-range-thumb]:size-6 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-[3px] [&::-moz-range-thumb]:border-surface-elevated [&::-moz-range-thumb]:bg-brand-primary [&::-moz-range-thumb]:shadow-brand [&::-moz-range-thumb]:transition-transform [&::-moz-range-thumb]:duration-150", "[&:hover::-webkit-slider-thumb]:scale-110 [&:hover::-moz-range-thumb]:scale-110", "[&:active::-webkit-slider-thumb]:scale-95 [&:active::-moz-range-thumb]:scale-95", "[&:focus-visible::-webkit-slider-thumb]:shadow-focus [&:focus-visible::-moz-range-thumb]:shadow-focus", "disabled:cursor-not-allowed disabled:opacity-50", className), ...rest })] }));
9
9
  };
10
10
  export { Range };
11
11
  //# sourceMappingURL=Range.js.map
package/dist/Range.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Range.js","sourceRoot":"","sources":["../src/Range.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAW1C,MAAM,KAAK,GAAG,CAAC,EACb,SAAS,EACT,GAAG,GAAG,GAAG,EACT,GAAG,GAAG,CAAC,EACP,KAAK,EACL,GAAG,IAAI,EACI,EAAE,EAAE;IACf,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAG,GAAG,GAAG,GAAG,CAAC;IAC3B,MAAM,QAAQ,G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AC,CAAC,CAAC,eAAe,GAAG,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,GAAG,CAAC;IACjF,MAAM,KAAK,GAAG,EAAE,kBAAkB,EAAE,GAAG,QAAQ,GAAG,EAAmB,CAAC;IAEtE,OAAO,CACL,gBAAM,SAAS,EAAC,uCAAuC,EAAC,KAAK,EAAE,KAAK,aAClE,oCAAkB,SAAS,EAAC,mDAAmD,GAAG,EAClF,oCAEE,SAAS,EAAC,4HAA4H,EACtI,KAAK,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAE,GACzC,EACF,gBACE,IAAI,EAAC,OAAO,EACZ,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,eAAe,EACtB,SAAS,EAAE,UAAU,CACnB,yFAAyF,EACzF,4IAA4I,EAC5I,qGAAqG,EACrG,oXAAoX,EACpX,0SAA0S,EAC1S,iFAAiF,EACjF,iFAAiF,EACjF,uGAAuG,EACvG,iDAAiD,EACjD,SAAS,CACV,KACG,IAAI,GACR,IACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recordair/ui-core",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "author": "Pierre-Alexandre Monneau",
5
5
  "description": "Primitives React accessibles et thémables extraites de Record'air.",
6
6
  "repository": {