@nutui/nutui-react 1.3.9-beta.0 → 1.3.10-beta.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/CHANGELOG.md +36 -0
- package/dist/esm/Button.js +3 -1
- package/dist/esm/Checkbox.js +7 -121
- package/dist/esm/CheckboxGroup.js +36 -4
- package/dist/esm/Input.js +11 -4
- package/dist/esm/Menu.js +3 -2
- package/dist/esm/MenuItem.js +1 -2
- package/dist/esm/NoticeBar.js +12 -16
- package/dist/esm/Price.js +20 -23
- package/dist/esm/Radio.js +6 -115
- package/dist/esm/RadioGroup.js +36 -6
- package/dist/esm/TabbarItem.js +6 -5
- package/dist/esm/Tag.js +6 -4
- package/dist/esm/checkbox-255983fc.js +121 -0
- package/dist/esm/radio-cf953c7a.js +118 -0
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +6 -1
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +2 -0
- package/dist/esm/types/src/packages/checkboxgroup/type.d.ts +6 -0
- package/dist/esm/types/src/packages/input/input.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +91 -0
- package/dist/esm/types/src/packages/price/price.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/type.d.ts +7 -0
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/nutui.react.es.js +162 -83
- package/dist/nutui.react.umd.js +162 -83
- package/dist/packages/badge/badge.scss +10 -10
- package/dist/packages/button/button.scss +3 -3
- package/dist/packages/cell/cell.scss +1 -4
- package/dist/packages/cellgroup/cellgroup.scss +8 -0
- package/dist/packages/countdown/countdown.scss +1 -1
- package/dist/packages/infiniteloading/infiniteloading.scss +1 -1
- package/dist/packages/inputnumber/inputnumber.scss +3 -3
- package/dist/packages/noticebar/noticebar.scss +3 -0
- package/dist/packages/price/price.scss +27 -11
- package/dist/packages/radio/radio.scss +8 -7
- package/dist/packages/shortpassword/shortpassword.scss +4 -4
- package/dist/packages/skeleton/skeleton.scss +1 -1
- package/dist/packages/swiper/swiper.scss +4 -4
- package/dist/packages/switch/switch.scss +8 -8
- package/dist/packages/timepannel/timepannel.scss +3 -3
- package/dist/packages/timeselect/timeselect.scss +4 -4
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/variables.scss +573 -248
- package/dist/types/index.d.ts +19 -3
- package/package.json +1 -1
- package/dist/esm/context-aa058329.js +0 -6
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { CSSProperties, ReactNode, FunctionComponent, ReactHTML, ReactElement, MouseEvent as MouseEvent$1, ChangeEvent, FocusEvent, HTMLInputTypeAttribute,
|
|
2
|
+
import React__default, { CSSProperties, ReactNode, FunctionComponent, ReactHTML, ReactElement, MouseEvent as MouseEvent$1, MouseEventHandler, ChangeEvent, FocusEvent, HTMLInputTypeAttribute, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component, ReactEventHandler } from 'react';
|
|
3
3
|
|
|
4
4
|
interface IComponent {
|
|
5
5
|
className?: string;
|
|
@@ -386,7 +386,7 @@ declare const Tabbar: FunctionComponent<Partial<TabbarProps>>;
|
|
|
386
386
|
interface TabbarItemProps extends IComponent {
|
|
387
387
|
dot: boolean;
|
|
388
388
|
size: string | number;
|
|
389
|
-
|
|
389
|
+
className: string;
|
|
390
390
|
tabTitle: string;
|
|
391
391
|
icon: string;
|
|
392
392
|
href: string;
|
|
@@ -625,14 +625,26 @@ interface CalendarProps {
|
|
|
625
625
|
}
|
|
626
626
|
declare const Calendar: React__default.ForwardRefExoticComponent<Partial<CalendarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, ""> & React__default.RefAttributes<CalendarRef$1>>;
|
|
627
627
|
|
|
628
|
+
interface RadioGroupOptionType {
|
|
629
|
+
label: string;
|
|
630
|
+
value: string;
|
|
631
|
+
disabled?: boolean;
|
|
632
|
+
onChange?: MouseEventHandler<HTMLDivElement>;
|
|
633
|
+
}
|
|
634
|
+
|
|
628
635
|
interface CheckboxGroupProps {
|
|
629
636
|
disabled: boolean;
|
|
630
637
|
checkedValue: string[];
|
|
631
638
|
max: number | undefined;
|
|
632
639
|
onChange: (value: string[]) => void;
|
|
640
|
+
options: RadioGroupOptionType[];
|
|
633
641
|
}
|
|
634
642
|
declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Partial<CheckboxGroupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<unknown>>;
|
|
635
643
|
|
|
644
|
+
interface InheritParentProps {
|
|
645
|
+
getParentVals?: () => string[] | undefined;
|
|
646
|
+
max?: number | undefined;
|
|
647
|
+
}
|
|
636
648
|
interface CheckboxProps extends IComponent {
|
|
637
649
|
checked: boolean;
|
|
638
650
|
disabled: boolean;
|
|
@@ -647,7 +659,7 @@ interface CheckboxProps extends IComponent {
|
|
|
647
659
|
label: string;
|
|
648
660
|
onChange: (state: boolean, label: string) => void;
|
|
649
661
|
}
|
|
650
|
-
declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'
|
|
662
|
+
declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & InheritParentProps> & {
|
|
651
663
|
Group: typeof CheckboxGroup;
|
|
652
664
|
};
|
|
653
665
|
|
|
@@ -716,6 +728,7 @@ declare type InputRule = {
|
|
|
716
728
|
};
|
|
717
729
|
interface InputProps extends IComponent {
|
|
718
730
|
type: InputType;
|
|
731
|
+
name: string;
|
|
719
732
|
defaultValue: any;
|
|
720
733
|
placeholder: string;
|
|
721
734
|
label: string;
|
|
@@ -777,6 +790,7 @@ interface RadioGroupProps {
|
|
|
777
790
|
textPosition: Position$1;
|
|
778
791
|
direction: Direction;
|
|
779
792
|
onChange: (value: string | number | boolean) => void;
|
|
793
|
+
options: RadioGroupOptionType[];
|
|
780
794
|
}
|
|
781
795
|
declare const RadioGroup: React__default.ForwardRefExoticComponent<Partial<RadioGroupProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & React__default.RefAttributes<unknown>>;
|
|
782
796
|
|
|
@@ -1493,6 +1507,8 @@ interface PriceProps {
|
|
|
1493
1507
|
symbol: string;
|
|
1494
1508
|
decimalDigits: number;
|
|
1495
1509
|
thousands: boolean;
|
|
1510
|
+
position: string;
|
|
1511
|
+
size: string;
|
|
1496
1512
|
className: string;
|
|
1497
1513
|
style: React__default.CSSProperties;
|
|
1498
1514
|
}
|
package/package.json
CHANGED