@pallasoft/ps-input-components 1.20.2 → 1.21.0

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.
@@ -0,0 +1,5 @@
1
+ import type { InputHTMLAttributes } from 'react';
2
+ export interface PsRangeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
3
+ label: string;
4
+ }
5
+ export declare const PsRangeInput: ({ className, label, ...props }: PsRangeInputProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PsRangeInput = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const ps_design_system_1 = require("@pallasoft/ps-design-system");
6
+ const PsRangeInput = ({ className, label, ...props }) => ((0, jsx_runtime_1.jsx)("input", { "aria-label": label, className: ps_design_system_1.PallasoftClassNameService.merge('ps-focus-ring h-1.5 w-full cursor-pointer appearance-none rounded-full bg-[rgb(var(--ps-color-muted-rgb)/0.18)] outline-none disabled:cursor-not-allowed disabled:opacity-50', '[&::-webkit-slider-runnable-track]:h-1.5 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-[rgb(var(--ps-color-muted-rgb)/0.18)]', '[&::-webkit-slider-thumb]:-mt-1.5 [&::-webkit-slider-thumb]:h-[18px] [&::-webkit-slider-thumb]:w-[18px] [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-surface [&::-webkit-slider-thumb]:bg-primary', '[&::-moz-range-track]:h-1.5 [&::-moz-range-track]:w-full [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-[rgb(var(--ps-color-muted-rgb)/0.18)]', '[&::-moz-range-thumb]:h-[18px] [&::-moz-range-thumb]:w-[18px] [&::-moz-range-thumb]:cursor-pointer [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-surface [&::-moz-range-thumb]:bg-primary', className), type: 'range', ...props }));
7
+ exports.PsRangeInput = PsRangeInput;
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { PallasoftClassNameService } from '@pallasoft/ps-design-system';
3
+ export const PsRangeInput = ({ className, label, ...props }) => (_jsx("input", { "aria-label": label, className: PallasoftClassNameService.merge('ps-focus-ring h-1.5 w-full cursor-pointer appearance-none rounded-full bg-[rgb(var(--ps-color-muted-rgb)/0.18)] outline-none disabled:cursor-not-allowed disabled:opacity-50', '[&::-webkit-slider-runnable-track]:h-1.5 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-[rgb(var(--ps-color-muted-rgb)/0.18)]', '[&::-webkit-slider-thumb]:-mt-1.5 [&::-webkit-slider-thumb]:h-[18px] [&::-webkit-slider-thumb]:w-[18px] [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-surface [&::-webkit-slider-thumb]:bg-primary', '[&::-moz-range-track]:h-1.5 [&::-moz-range-track]:w-full [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-[rgb(var(--ps-color-muted-rgb)/0.18)]', '[&::-moz-range-thumb]:h-[18px] [&::-moz-range-thumb]:w-[18px] [&::-moz-range-thumb]:cursor-pointer [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-surface [&::-moz-range-thumb]:bg-primary', className), type: 'range', ...props }));
package/dist/esm/index.js CHANGED
@@ -21,6 +21,7 @@ export * from './components/ps-email-input';
21
21
  export * from './components/ps-percent-input';
22
22
  export * from './components/ps-phone-input';
23
23
  export * from './components/ps-postal-code-input';
24
+ export * from './components/ps-range-input';
24
25
  export * from './components/ps-url-input';
25
26
  export * from './constants/ps-phone-input-config';
26
27
  export * from './constants/ps-postal-code-formats';
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './components/ps-email-input';
21
21
  export * from './components/ps-percent-input';
22
22
  export * from './components/ps-phone-input';
23
23
  export * from './components/ps-postal-code-input';
24
+ export * from './components/ps-range-input';
24
25
  export * from './components/ps-url-input';
25
26
  export * from './constants/ps-phone-input-config';
26
27
  export * from './constants/ps-postal-code-formats';
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ __exportStar(require("./components/ps-email-input"), exports);
37
37
  __exportStar(require("./components/ps-percent-input"), exports);
38
38
  __exportStar(require("./components/ps-phone-input"), exports);
39
39
  __exportStar(require("./components/ps-postal-code-input"), exports);
40
+ __exportStar(require("./components/ps-range-input"), exports);
40
41
  __exportStar(require("./components/ps-url-input"), exports);
41
42
  __exportStar(require("./constants/ps-phone-input-config"), exports);
42
43
  __exportStar(require("./constants/ps-postal-code-formats"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pallasoft/ps-input-components",
3
- "version": "1.20.2",
3
+ "version": "1.21.0",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/esm/index.js",