@max-ts/kit 1.8.1 → 1.9.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.
- package/lib/components/RangeInput/RangeInput.d.ts.map +1 -1
- package/lib/components/RangeInput/useLogic/useLogic.d.ts +8 -6
- package/lib/components/RangeInput/useLogic/useLogic.d.ts.map +1 -1
- package/lib/components/Slider/Slider.d.ts +3 -2
- package/lib/components/Slider/Slider.d.ts.map +1 -1
- package/lib/components/SliderInput/SliderInput.d.ts +14 -0
- package/lib/components/SliderInput/SliderInput.d.ts.map +1 -0
- package/lib/components/SliderInput/index.d.ts +2 -0
- package/lib/components/SliderInput/index.d.ts.map +1 -0
- package/lib/components/SliderInput/styles.css.d.ts +7 -0
- package/lib/components/SliderInput/styles.css.d.ts.map +1 -0
- package/lib/components/SliderInput/useLogic/index.d.ts +2 -0
- package/lib/components/SliderInput/useLogic/index.d.ts.map +1 -0
- package/lib/components/SliderInput/useLogic/useLogic.d.ts +12 -0
- package/lib/components/SliderInput/useLogic/useLogic.d.ts.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/index.mjs +211 -35
- package/lib/stories/SliderInput.stories.d.ts +8 -0
- package/lib/stories/SliderInput.stories.d.ts.map +1 -0
- package/lib/styles.css +77 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeInput.d.ts","sourceRoot":"","sources":["../../../src/components/RangeInput/RangeInput.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,eAAe,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EA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,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAChD,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAC1B,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAW,EACX,IAAS,EACT,IAAe,EACf,SAAS,EACT,QAAQ,EACR,WAAW,EACX,WAAW,GACX,EAAE,eAAe,+BA0EjB"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ChangeEvent, type KeyboardEvent } from 'react';
|
|
2
|
+
import type { SliderValue } from '../../Slider';
|
|
2
3
|
import type { RangeInputProps } from '../RangeInput';
|
|
3
4
|
export declare const useLogic: ({ min, max, maxValue, minValue, onChange, }: RangeInputProps) => {
|
|
4
5
|
maxId: string;
|
|
5
6
|
minId: string;
|
|
6
7
|
minVal: number;
|
|
7
8
|
maxVal: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
sliderValue: readonly [number, number];
|
|
10
|
+
onValueChange: (newValue: SliderValue) => void;
|
|
11
|
+
onMinValueChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
onMaxValueChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
onKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
14
|
+
onConfirm: (value: SliderValue) => void;
|
|
13
15
|
};
|
|
14
16
|
//# sourceMappingURL=useLogic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../src/components/RangeInput/useLogic/useLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,
|
|
1
|
+
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../src/components/RangeInput/useLogic/useLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,aAAa,EAKlB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAwCrD,eAAO,MAAM,QAAQ,GAAI,6CAMtB,eAAe;;;;;;8BAsB4B,WAAW;8BAkB/C,WAAW,CAAC,gBAAgB,CAAC;8BAY7B,WAAW,CAAC,gBAAgB,CAAC;uBAY7B,aAAa,CAAC,gBAAgB,CAAC;uBAW/B,WAAW;CA8BpB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Slider as SliderPrimitive } from '@base-ui/react/slider';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export type
|
|
4
|
-
|
|
3
|
+
export type SliderValue = number | readonly number[];
|
|
4
|
+
export type SliderProps = SliderPrimitive.Root.Props<SliderValue> & {
|
|
5
|
+
onValueCommit?: (value: SliderValue) => void;
|
|
5
6
|
};
|
|
6
7
|
export declare function Slider({ className, defaultValue, value, min, max, onValueCommit, onValueCommitted, ...props }: SliderProps): React.JSX.Element;
|
|
7
8
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG;IACnE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CAC7C,CAAC;AA2BF,wBAAgB,MAAM,CAAC,EACtB,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,aAAa,EACb,gBAAgB,EAChB,GAAG,KAAK,EACR,EAAE,WAAW,qBAkDb"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SliderInputProps = {
|
|
2
|
+
value?: number | null;
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
unit?: string;
|
|
6
|
+
onChange: (value: number) => void;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
className?: string;
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
12
|
+
};
|
|
13
|
+
export declare function SliderInput({ min, max, onChange, value, width, unit, size, className, isActive, inputRef, }: SliderInputProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=SliderInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderInput.d.ts","sourceRoot":"","sources":["../../../src/components/SliderInput/SliderInput.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,gBAAgB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC7C,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC3B,GAAG,EACH,GAAG,EACH,QAAQ,EACR,KAAK,EACL,KAAW,EACX,IAAS,EACT,IAAe,EACf,SAAS,EACT,QAAQ,EACR,QAAQ,GACR,EAAE,gBAAgB,+BAuDlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SliderInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const container: string;
|
|
2
|
+
export declare const activeClass: string;
|
|
3
|
+
export declare const sizes: Record<"small" | "medium" | "large", string>;
|
|
4
|
+
export declare const inputClass: string;
|
|
5
|
+
export declare const textClass: string;
|
|
6
|
+
export declare const slider: string;
|
|
7
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/SliderInput/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAgBpB,CAAC;AAEH,eAAO,MAAM,WAAW,QAEtB,CAAC;AAEH,eAAO,MAAM,KAAK,8CAgBhB,CAAC;AAEH,eAAO,MAAM,UAAU,QAgBrB,CAAC;AAEH,eAAO,MAAM,SAAS,QAEpB,CAAC;AAEH,eAAO,MAAM,MAAM,QAOjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SliderInput/useLogic/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ChangeEvent, type KeyboardEvent } from 'react';
|
|
2
|
+
import type { SliderValue } from '../../Slider';
|
|
3
|
+
import type { SliderInputProps } from '../SliderInput';
|
|
4
|
+
export declare const useLogic: ({ min, max, value, onChange }: SliderInputProps) => {
|
|
5
|
+
inputId: string;
|
|
6
|
+
inputValue: number;
|
|
7
|
+
onInputValueChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
onKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
9
|
+
onValueChange: (newValue: SliderValue) => void;
|
|
10
|
+
onConfirm: (value: SliderValue) => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useLogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLogic.d.ts","sourceRoot":"","sources":["../../../../src/components/SliderInput/useLogic/useLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,aAAa,EAKlB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAmBvD,eAAO,MAAM,QAAQ,GAAI,+BAA+B,gBAAgB;;;gCAyB9D,WAAW,CAAC,gBAAgB,CAAC;uBAW7B,aAAa,CAAC,gBAAgB,CAAC;8BAtBK,WAAW;uBAiC/C,WAAW;CAwBpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,C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Ac,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
package/lib/index.mjs
CHANGED
|
@@ -4282,11 +4282,26 @@ var styles_css_range = 'style__h9oy583';
|
|
|
4282
4282
|
var Slider_styles_css_root = 'style__h9oy580';
|
|
4283
4283
|
var styles_css_thumb = 'style__h9oy584';
|
|
4284
4284
|
var track = 'style__h9oy582';
|
|
4285
|
+
const getValues = (value, defaultValue, min, max)=>{
|
|
4286
|
+
if ('number' == typeof value) return [
|
|
4287
|
+
value
|
|
4288
|
+
];
|
|
4289
|
+
if (Array.isArray(value)) return [
|
|
4290
|
+
...value
|
|
4291
|
+
];
|
|
4292
|
+
if ('number' == typeof defaultValue) return [
|
|
4293
|
+
defaultValue
|
|
4294
|
+
];
|
|
4295
|
+
if (Array.isArray(defaultValue)) return [
|
|
4296
|
+
...defaultValue
|
|
4297
|
+
];
|
|
4298
|
+
return [
|
|
4299
|
+
min,
|
|
4300
|
+
max
|
|
4301
|
+
];
|
|
4302
|
+
};
|
|
4285
4303
|
function Slider_Slider({ className, defaultValue, value, min = 0, max = 100, onValueCommit, onValueCommitted, ...props }) {
|
|
4286
|
-
const values = __rspack_external_react.useMemo(()=>
|
|
4287
|
-
min,
|
|
4288
|
-
max
|
|
4289
|
-
], [
|
|
4304
|
+
const values = __rspack_external_react.useMemo(()=>getValues(value, defaultValue, min, max), [
|
|
4290
4305
|
value,
|
|
4291
4306
|
defaultValue,
|
|
4292
4307
|
min,
|
|
@@ -4343,37 +4358,84 @@ var RangeInput_styles_css_sizes = {
|
|
|
4343
4358
|
};
|
|
4344
4359
|
var sliderClass = 'style__1pnwkko7';
|
|
4345
4360
|
var styles_css_textClass = 'style__1pnwkko5';
|
|
4361
|
+
const getNumberFromInputValue = (value)=>{
|
|
4362
|
+
const numberValue = Number(value);
|
|
4363
|
+
return Number.isNaN(numberValue) ? null : numberValue;
|
|
4364
|
+
};
|
|
4365
|
+
const clamp = (value, min, max)=>Math.min(Math.max(value, min), max);
|
|
4366
|
+
const normalizeRange = (minValue, maxValue)=>{
|
|
4367
|
+
if (minValue <= maxValue) return [
|
|
4368
|
+
minValue,
|
|
4369
|
+
maxValue
|
|
4370
|
+
];
|
|
4371
|
+
return [
|
|
4372
|
+
maxValue,
|
|
4373
|
+
minValue
|
|
4374
|
+
];
|
|
4375
|
+
};
|
|
4376
|
+
const getSliderValue = (minValue, maxValue, min, max)=>normalizeRange(clamp(minValue, min, max), clamp(maxValue, min, max));
|
|
4377
|
+
const getRangeValue = (value)=>{
|
|
4378
|
+
if (!Array.isArray(value)) return null;
|
|
4379
|
+
const [minValue, maxValue] = value;
|
|
4380
|
+
if (void 0 === minValue || void 0 === maxValue) return null;
|
|
4381
|
+
return [
|
|
4382
|
+
minValue,
|
|
4383
|
+
maxValue
|
|
4384
|
+
];
|
|
4385
|
+
};
|
|
4346
4386
|
const RangeInput_useLogic_useLogic_useLogic = ({ min, max, maxValue, minValue, onChange })=>{
|
|
4347
4387
|
const minId = useId();
|
|
4348
4388
|
const maxId = useId();
|
|
4349
|
-
const [minVal, setMinVal] = useState(min);
|
|
4350
|
-
const [maxVal, setMaxVal] = useState(max);
|
|
4351
|
-
const
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4389
|
+
const [minVal, setMinVal] = useState(minValue ?? min);
|
|
4390
|
+
const [maxVal, setMaxVal] = useState(maxValue ?? max);
|
|
4391
|
+
const sliderValue = getSliderValue(minVal, maxVal, min, max);
|
|
4392
|
+
const commit = useCallback((nextMinValue, nextMaxValue)=>{
|
|
4393
|
+
const [normalizedMinValue, normalizedMaxValue] = normalizeRange(clamp(nextMinValue, min, max), clamp(nextMaxValue, min, max));
|
|
4394
|
+
setMinVal(normalizedMinValue);
|
|
4395
|
+
setMaxVal(normalizedMaxValue);
|
|
4396
|
+
onChange(normalizedMinValue, normalizedMaxValue);
|
|
4397
|
+
}, [
|
|
4398
|
+
min,
|
|
4399
|
+
max,
|
|
4400
|
+
onChange
|
|
4401
|
+
]);
|
|
4402
|
+
const onValueChange = useCallback((newValue)=>{
|
|
4403
|
+
const rangeValue = getRangeValue(newValue);
|
|
4404
|
+
if (null === rangeValue) return;
|
|
4405
|
+
const [newMinValue, newMaxValue] = rangeValue;
|
|
4406
|
+
const [normalizedMinValue, normalizedMaxValue] = normalizeRange(newMinValue, newMaxValue);
|
|
4407
|
+
setMinVal(normalizedMinValue);
|
|
4408
|
+
setMaxVal(normalizedMaxValue);
|
|
4409
|
+
}, []);
|
|
4410
|
+
const onMinValueChange = useCallback((event)=>{
|
|
4357
4411
|
const { value } = event.target;
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4412
|
+
const numberValue = getNumberFromInputValue(value);
|
|
4413
|
+
if (null !== numberValue) setMinVal(numberValue);
|
|
4414
|
+
}, []);
|
|
4415
|
+
const onMaxValueChange = useCallback((event)=>{
|
|
4361
4416
|
const { value } = event.target;
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4417
|
+
const numberValue = getNumberFromInputValue(value);
|
|
4418
|
+
if (null !== numberValue) setMaxVal(numberValue);
|
|
4419
|
+
}, []);
|
|
4420
|
+
const onKeyDown = useCallback((event)=>{
|
|
4421
|
+
if ('Enter' !== event.key) return;
|
|
4422
|
+
commit(minVal, maxVal);
|
|
4423
|
+
}, [
|
|
4424
|
+
commit,
|
|
4425
|
+
minVal,
|
|
4426
|
+
maxVal
|
|
4427
|
+
]);
|
|
4428
|
+
const onConfirm = useCallback((value)=>{
|
|
4429
|
+
const rangeValue = getRangeValue(value);
|
|
4430
|
+
if (null === rangeValue) return;
|
|
4431
|
+
const [nextMinValue, nextMaxValue] = rangeValue;
|
|
4432
|
+
commit(nextMinValue, nextMaxValue);
|
|
4433
|
+
}, [
|
|
4434
|
+
commit
|
|
4435
|
+
]);
|
|
4374
4436
|
useEffect(()=>{
|
|
4375
|
-
setMinVal(minValue
|
|
4376
|
-
setMaxVal(maxValue
|
|
4437
|
+
setMinVal(minValue ?? min);
|
|
4438
|
+
setMaxVal(maxValue ?? max);
|
|
4377
4439
|
}, [
|
|
4378
4440
|
minValue,
|
|
4379
4441
|
maxValue,
|
|
@@ -4385,6 +4447,7 @@ const RangeInput_useLogic_useLogic_useLogic = ({ min, max, maxValue, minValue, o
|
|
|
4385
4447
|
minId,
|
|
4386
4448
|
minVal,
|
|
4387
4449
|
maxVal,
|
|
4450
|
+
sliderValue,
|
|
4388
4451
|
onValueChange,
|
|
4389
4452
|
onMinValueChange,
|
|
4390
4453
|
onMaxValueChange,
|
|
@@ -4393,7 +4456,7 @@ const RangeInput_useLogic_useLogic_useLogic = ({ min, max, maxValue, minValue, o
|
|
|
4393
4456
|
};
|
|
4394
4457
|
};
|
|
4395
4458
|
function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit = '', size = 'medium', className, isActive, minInputRef, maxInputRef }) {
|
|
4396
|
-
const { onMinValueChange, onMaxValueChange, minVal, maxVal, onKeyDown, onValueChange, onConfirm, minId, maxId } = RangeInput_useLogic_useLogic_useLogic({
|
|
4459
|
+
const { onMinValueChange, onMaxValueChange, minVal, maxVal, onKeyDown, onValueChange, onConfirm, sliderValue, minId, maxId } = RangeInput_useLogic_useLogic_useLogic({
|
|
4397
4460
|
min,
|
|
4398
4461
|
max,
|
|
4399
4462
|
maxValue,
|
|
@@ -4401,6 +4464,7 @@ function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit
|
|
|
4401
4464
|
onChange
|
|
4402
4465
|
});
|
|
4403
4466
|
return /*#__PURE__*/ jsxs("div", {
|
|
4467
|
+
"data-slot": "range-input",
|
|
4404
4468
|
className: clsx(RangeInput_styles_css_container, RangeInput_styles_css_sizes[size], {
|
|
4405
4469
|
[activeClass]: isActive
|
|
4406
4470
|
}, className),
|
|
@@ -4415,6 +4479,7 @@ function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit
|
|
|
4415
4479
|
children: "от"
|
|
4416
4480
|
}),
|
|
4417
4481
|
/*#__PURE__*/ jsx("input", {
|
|
4482
|
+
"data-slot": "range-input-min-field",
|
|
4418
4483
|
className: inputClass,
|
|
4419
4484
|
type: "text",
|
|
4420
4485
|
id: minId,
|
|
@@ -4430,6 +4495,7 @@ function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit
|
|
|
4430
4495
|
children: "до"
|
|
4431
4496
|
}),
|
|
4432
4497
|
/*#__PURE__*/ jsx("input", {
|
|
4498
|
+
"data-slot": "range-input-max-field",
|
|
4433
4499
|
className: inputClass,
|
|
4434
4500
|
type: "text",
|
|
4435
4501
|
id: maxId,
|
|
@@ -4445,14 +4511,12 @@ function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit
|
|
|
4445
4511
|
children: unit
|
|
4446
4512
|
}),
|
|
4447
4513
|
/*#__PURE__*/ jsx("div", {
|
|
4514
|
+
"data-slot": "range-input-slider",
|
|
4448
4515
|
className: sliderClass,
|
|
4449
4516
|
children: /*#__PURE__*/ jsx(Slider_Slider, {
|
|
4450
4517
|
min: min,
|
|
4451
4518
|
max: max,
|
|
4452
|
-
value:
|
|
4453
|
-
Number(minVal),
|
|
4454
|
-
Number(maxVal)
|
|
4455
|
-
],
|
|
4519
|
+
value: sliderValue,
|
|
4456
4520
|
onValueChange: onValueChange,
|
|
4457
4521
|
onValueCommit: onConfirm
|
|
4458
4522
|
})
|
|
@@ -5426,6 +5490,118 @@ const Sidebar_Sidebar = Object.assign(SidebarRoot, {
|
|
|
5426
5490
|
MenuSubItem: MenuSubItem,
|
|
5427
5491
|
MenuSubButton: MenuSubButton
|
|
5428
5492
|
});
|
|
5493
|
+
var styles_css_activeClass = 'style__pyzq971';
|
|
5494
|
+
var SliderInput_styles_css_container = 'style__pyzq970';
|
|
5495
|
+
var styles_css_inputClass = 'style__pyzq975';
|
|
5496
|
+
var SliderInput_styles_css_sizes = {
|
|
5497
|
+
small: 'small__pyzq972',
|
|
5498
|
+
medium: 'medium__pyzq973',
|
|
5499
|
+
large: 'large__pyzq974'
|
|
5500
|
+
};
|
|
5501
|
+
var slider = 'style__pyzq977';
|
|
5502
|
+
var SliderInput_styles_css_textClass = 'style__pyzq976';
|
|
5503
|
+
const useLogic_getNumberFromInputValue = (value)=>{
|
|
5504
|
+
const numberValue = Number(value);
|
|
5505
|
+
return Number.isNaN(numberValue) ? null : numberValue;
|
|
5506
|
+
};
|
|
5507
|
+
const useLogic_clamp = (value, min, max)=>Math.min(Math.max(value, min), max);
|
|
5508
|
+
const getSingleValue = (value)=>{
|
|
5509
|
+
if (Array.isArray(value)) return value[0] ?? null;
|
|
5510
|
+
return value;
|
|
5511
|
+
};
|
|
5512
|
+
const SliderInput_useLogic_useLogic_useLogic = ({ min, max, value, onChange })=>{
|
|
5513
|
+
const inputId = useId();
|
|
5514
|
+
const [inputValue, setInputValue] = useState(value ?? min);
|
|
5515
|
+
const commit = useCallback((nextValue)=>{
|
|
5516
|
+
const normalizedValue = useLogic_clamp(nextValue, min, max);
|
|
5517
|
+
setInputValue(normalizedValue);
|
|
5518
|
+
onChange(normalizedValue);
|
|
5519
|
+
}, [
|
|
5520
|
+
min,
|
|
5521
|
+
max,
|
|
5522
|
+
onChange
|
|
5523
|
+
]);
|
|
5524
|
+
const onValueChange = useCallback((newValue)=>{
|
|
5525
|
+
const nextValue = getSingleValue(newValue);
|
|
5526
|
+
if (null === nextValue) return;
|
|
5527
|
+
setInputValue(nextValue);
|
|
5528
|
+
}, []);
|
|
5529
|
+
const onInputValueChange = useCallback((event)=>{
|
|
5530
|
+
const numberValue = useLogic_getNumberFromInputValue(event.target.value);
|
|
5531
|
+
if (null !== numberValue) setInputValue(numberValue);
|
|
5532
|
+
}, []);
|
|
5533
|
+
const onKeyDown = useCallback((event)=>{
|
|
5534
|
+
if ('Enter' !== event.key) return;
|
|
5535
|
+
commit(inputValue);
|
|
5536
|
+
}, [
|
|
5537
|
+
commit,
|
|
5538
|
+
inputValue
|
|
5539
|
+
]);
|
|
5540
|
+
const onConfirm = useCallback((value)=>{
|
|
5541
|
+
const nextValue = getSingleValue(value);
|
|
5542
|
+
if (null === nextValue) return;
|
|
5543
|
+
commit(nextValue);
|
|
5544
|
+
}, [
|
|
5545
|
+
commit
|
|
5546
|
+
]);
|
|
5547
|
+
useEffect(()=>{
|
|
5548
|
+
setInputValue(value ?? min);
|
|
5549
|
+
}, [
|
|
5550
|
+
value,
|
|
5551
|
+
min
|
|
5552
|
+
]);
|
|
5553
|
+
return {
|
|
5554
|
+
inputId,
|
|
5555
|
+
inputValue,
|
|
5556
|
+
onInputValueChange,
|
|
5557
|
+
onKeyDown,
|
|
5558
|
+
onValueChange,
|
|
5559
|
+
onConfirm
|
|
5560
|
+
};
|
|
5561
|
+
};
|
|
5562
|
+
function SliderInput({ min, max, onChange, value, width = 150, unit = '', size = 'medium', className, isActive, inputRef }) {
|
|
5563
|
+
const { inputId, inputValue, onInputValueChange, onKeyDown, onValueChange, onConfirm } = SliderInput_useLogic_useLogic_useLogic({
|
|
5564
|
+
min,
|
|
5565
|
+
max,
|
|
5566
|
+
value,
|
|
5567
|
+
onChange
|
|
5568
|
+
});
|
|
5569
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
5570
|
+
"data-slot": "slider-input",
|
|
5571
|
+
className: clsx(SliderInput_styles_css_container, SliderInput_styles_css_sizes[size], {
|
|
5572
|
+
[styles_css_activeClass]: isActive
|
|
5573
|
+
}, className),
|
|
5574
|
+
style: {
|
|
5575
|
+
width
|
|
5576
|
+
},
|
|
5577
|
+
children: [
|
|
5578
|
+
/*#__PURE__*/ jsx("input", {
|
|
5579
|
+
"data-slot": "slider-input-field",
|
|
5580
|
+
className: styles_css_inputClass,
|
|
5581
|
+
type: "text",
|
|
5582
|
+
id: inputId,
|
|
5583
|
+
value: inputValue,
|
|
5584
|
+
onChange: onInputValueChange,
|
|
5585
|
+
onKeyDown: onKeyDown,
|
|
5586
|
+
ref: inputRef
|
|
5587
|
+
}),
|
|
5588
|
+
unit ? /*#__PURE__*/ jsx(Typography, {
|
|
5589
|
+
className: SliderInput_styles_css_textClass,
|
|
5590
|
+
color: "disabled",
|
|
5591
|
+
variant: "caption",
|
|
5592
|
+
children: unit
|
|
5593
|
+
}) : null,
|
|
5594
|
+
/*#__PURE__*/ jsx(Slider_Slider, {
|
|
5595
|
+
min: min,
|
|
5596
|
+
max: max,
|
|
5597
|
+
value: inputValue,
|
|
5598
|
+
onValueChange: onValueChange,
|
|
5599
|
+
onValueCommit: onConfirm,
|
|
5600
|
+
className: slider
|
|
5601
|
+
})
|
|
5602
|
+
]
|
|
5603
|
+
});
|
|
5604
|
+
}
|
|
5429
5605
|
var Switch_styles_css_root = 'style__gj1ia10';
|
|
5430
5606
|
var Switch_styles_css_thumb = 'style__gj1ia11';
|
|
5431
5607
|
function Switch_Switch({ className, size = 'medium', ...props }) {
|
|
@@ -5524,4 +5700,4 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
5524
5700
|
]
|
|
5525
5701
|
});
|
|
5526
5702
|
};
|
|
5527
|
-
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Autocomplete, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input, Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, Select_Select as Select, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Spinner, Switch_Switch as Switch, Tabs_Tabs as Tabs, TextField, Textarea_Textarea as Textarea, ToggleGroup, Tooltip_Tooltip as Tooltip, Typography, alignments, badgeVariants, calculateSize, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, negativeSpacing, notification, spacing, styles_css_colors as colors, styles_css_variants as variants, theme, transforms, useComboboxAnchor, useDashboard, useIsMobile, useOverflowed, useSidebar, weights };
|
|
5703
|
+
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Autocomplete, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input, Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, Select_Select as Select, Sheet, Sidebar_Sidebar as Sidebar, SliderInput, Slider_Slider as Slider, Spinner, Switch_Switch as Switch, Tabs_Tabs as Tabs, TextField, Textarea_Textarea as Textarea, ToggleGroup, Tooltip_Tooltip as Tooltip, Typography, alignments, badgeVariants, calculateSize, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, negativeSpacing, notification, spacing, styles_css_colors as colors, styles_css_variants as variants, theme, transforms, useComboboxAnchor, useDashboard, useIsMobile, useOverflowed, useSidebar, weights };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Meta } from 'storybook-react-rsbuild';
|
|
3
|
+
import { SliderInput } from '../components/index.ts';
|
|
4
|
+
declare const _default: Meta<typeof SliderInput>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare function Demo(): React.JSX.Element;
|
|
7
|
+
export declare function Active(): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=SliderInput.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderInput.stories.d.ts","sourceRoot":"","sources":["../../src/stories/SliderInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;wBAStC,IAAI,CAAC,OAAO,WAAW,CAAC;AAP7B,wBAO8B;AAE9B,wBAAgB,IAAI,sBAkCnB;AAED,wBAAgB,MAAM,sBAcrB"}
|
package/lib/styles.css
CHANGED
|
@@ -4254,6 +4254,10 @@ a.outline__1af895x4:hover {
|
|
|
4254
4254
|
transform: translateX(-50%);
|
|
4255
4255
|
}
|
|
4256
4256
|
|
|
4257
|
+
.style__1pnwkko7 [data-slot="slider-track"] {
|
|
4258
|
+
height: 1px;
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4257
4261
|
@media (width <= 600px) {
|
|
4258
4262
|
.style__1pnwkko0 {
|
|
4259
4263
|
width: 100%;
|
|
@@ -5542,6 +5546,79 @@ a.outline__1af895x4:hover {
|
|
|
5542
5546
|
}
|
|
5543
5547
|
}
|
|
5544
5548
|
|
|
5549
|
+
.style__pyzq970 {
|
|
5550
|
+
align-items: center;
|
|
5551
|
+
column-gap: var(--spacing-1);
|
|
5552
|
+
background: var(--colors-background-paper);
|
|
5553
|
+
border: 1px solid var(--colors-border);
|
|
5554
|
+
border-radius: var(--borderRadius-md);
|
|
5555
|
+
grid-template-columns: 1fr auto;
|
|
5556
|
+
transition: border .2s;
|
|
5557
|
+
display: grid;
|
|
5558
|
+
position: relative;
|
|
5559
|
+
}
|
|
5560
|
+
|
|
5561
|
+
.style__pyzq971 {
|
|
5562
|
+
border-color: var(--colors-primary);
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5565
|
+
.small__pyzq972 {
|
|
5566
|
+
height: 28px;
|
|
5567
|
+
font-size: var(--fontSize-sm);
|
|
5568
|
+
padding-inline: var(--spacing-2);
|
|
5569
|
+
}
|
|
5570
|
+
|
|
5571
|
+
.medium__pyzq973 {
|
|
5572
|
+
height: 32px;
|
|
5573
|
+
font-size: var(--fontSize-base);
|
|
5574
|
+
padding-inline: var(--spacing-2);
|
|
5575
|
+
}
|
|
5576
|
+
|
|
5577
|
+
.large__pyzq974 {
|
|
5578
|
+
height: 36px;
|
|
5579
|
+
padding-inline: var(--spacing-3);
|
|
5580
|
+
font-size: var(--fontSize-base);
|
|
5581
|
+
}
|
|
5582
|
+
|
|
5583
|
+
.style__pyzq975 {
|
|
5584
|
+
text-align: center;
|
|
5585
|
+
width: 100%;
|
|
5586
|
+
min-width: 24px;
|
|
5587
|
+
font-size: inherit;
|
|
5588
|
+
text-wrap: nowrap;
|
|
5589
|
+
text-overflow: ellipsis;
|
|
5590
|
+
border: none;
|
|
5591
|
+
outline: none;
|
|
5592
|
+
overflow: hidden;
|
|
5593
|
+
}
|
|
5594
|
+
|
|
5595
|
+
.style__pyzq975:focus {
|
|
5596
|
+
border: none;
|
|
5597
|
+
}
|
|
5598
|
+
|
|
5599
|
+
.style__pyzq976 {
|
|
5600
|
+
font-size: inherit;
|
|
5601
|
+
}
|
|
5602
|
+
|
|
5603
|
+
.style__pyzq977 {
|
|
5604
|
+
padding-inline: var(--spacing-2);
|
|
5605
|
+
border-radius: 9999px;
|
|
5606
|
+
position: absolute;
|
|
5607
|
+
bottom: -1px;
|
|
5608
|
+
left: 50%;
|
|
5609
|
+
transform: translateX(-50%);
|
|
5610
|
+
}
|
|
5611
|
+
|
|
5612
|
+
.style__pyzq977 [data-slot="slider-track"] {
|
|
5613
|
+
height: 1px;
|
|
5614
|
+
}
|
|
5615
|
+
|
|
5616
|
+
@media (width <= 600px) {
|
|
5617
|
+
.style__pyzq970 {
|
|
5618
|
+
width: 100%;
|
|
5619
|
+
}
|
|
5620
|
+
}
|
|
5621
|
+
|
|
5545
5622
|
.style__gj1ia10 {
|
|
5546
5623
|
cursor: pointer;
|
|
5547
5624
|
border: 1px solid #0000;
|