@risalabs_frontend_org/oasis-ui-kit 0.88.0 → 0.89.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,17 @@
1
+ import React from "react";
2
+ import "./affix-input.scss";
3
+ export interface AffixInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> {
4
+ label?: string;
5
+ labelAddon?: React.ReactNode;
6
+ prefix?: React.ReactNode;
7
+ suffix?: React.ReactNode;
8
+ hint?: string;
9
+ error?: string;
10
+ requiredError?: string;
11
+ size?: "sm" | "md" | "lg";
12
+ fullWidth?: boolean;
13
+ labelClassName?: string;
14
+ inputClassName?: string;
15
+ }
16
+ export declare function AffixInput({ label, labelAddon, prefix, suffix, hint, error, requiredError, size, fullWidth, labelClassName, inputClassName, className, disabled, required, id, ...rest }: AffixInputProps): React.JSX.Element;
17
+ export default AffixInput;
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import "./date-selector.scss";
3
+ interface DateSelectorValue {
4
+ month: number;
5
+ day: number;
6
+ year: number;
7
+ }
8
+ interface DateSelectorChangeData extends DateSelectorValue {
9
+ iso: string;
10
+ }
11
+ export interface DateSelectorProps {
12
+ label: string;
13
+ labelAddon?: React.ReactNode;
14
+ inputMode?: "manual" | "scroll";
15
+ monthFormat?: "numeric" | "short";
16
+ value?: DateSelectorValue;
17
+ defaultValue?: DateSelectorValue;
18
+ onChange?: (data: DateSelectorChangeData | null) => void;
19
+ minYear?: number;
20
+ maxYear?: number;
21
+ required?: boolean;
22
+ disabled?: boolean;
23
+ readOnly?: boolean;
24
+ error?: string;
25
+ hasError?: boolean;
26
+ hint?: string;
27
+ className?: string;
28
+ id?: string;
29
+ monthPlaceholder?: string;
30
+ dayPlaceholder?: string;
31
+ yearPlaceholder?: string;
32
+ }
33
+ export declare function DateSelector({ label, labelAddon, inputMode, monthFormat, value, defaultValue, onChange, minYear, maxYear, required, disabled, readOnly, error, hasError, hint, className, id, monthPlaceholder, dayPlaceholder, yearPlaceholder, }: DateSelectorProps): React.JSX.Element;
34
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import "./scroll-picker.scss";
3
+ interface ScrollPickerItem {
4
+ label: string;
5
+ value: string | number;
6
+ }
7
+ interface ScrollPickerProps {
8
+ items: ScrollPickerItem[];
9
+ selectedValue?: string | number;
10
+ onSelect: (value: string | number) => void;
11
+ onClose: () => void;
12
+ }
13
+ export declare function ScrollPicker({ items, selectedValue, onSelect, onClose, }: ScrollPickerProps): React.JSX.Element;
14
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@risalabs_frontend_org/oasis-ui-kit",
3
- "version": "0.88.0",
3
+ "version": "0.89.0",
4
4
  "description": "RISA Oasis UI",
5
5
  "private": false,
6
6
  "main": "dist/index.js",