@kingsimba/nc-ui 0.1.14 → 0.1.16
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/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -4
- package/dist/index.js +589 -588
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +66 -66
package/dist/index.d.ts
CHANGED
|
@@ -665,7 +665,7 @@ export declare interface ListGroupProps {
|
|
|
665
665
|
style?: default_2.CSSProperties;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
export declare function MonthRangePicker({ startMonth, endMonth, onChange, label, className, disabled, }: MonthRangePickerProps): JSX_2.Element;
|
|
668
|
+
export declare function MonthRangePicker({ startMonth, endMonth, onChange, label, className, disabled, size, }: MonthRangePickerProps): JSX_2.Element;
|
|
669
669
|
|
|
670
670
|
export declare interface MonthRangePickerProps {
|
|
671
671
|
/** Start month value in YY-M, YY-MM, YYYY-M, or YYYY-MM format */
|
|
@@ -680,6 +680,8 @@ export declare interface MonthRangePickerProps {
|
|
|
680
680
|
className?: string;
|
|
681
681
|
/** Whether the picker is disabled */
|
|
682
682
|
disabled?: boolean;
|
|
683
|
+
/** The scale/size of the component */
|
|
684
|
+
size?: 'small' | 'default';
|
|
683
685
|
}
|
|
684
686
|
|
|
685
687
|
export declare function MultiSelect({ values, onChange, options, placeholder, label }: MultiSelectProps): JSX_2.Element;
|
|
@@ -925,6 +927,13 @@ export declare interface SliderProps {
|
|
|
925
927
|
width?: number | string;
|
|
926
928
|
}
|
|
927
929
|
|
|
930
|
+
export declare interface TabItem {
|
|
931
|
+
/** The stable key used for matching active state */
|
|
932
|
+
id: string;
|
|
933
|
+
/** The localized or formatted display label */
|
|
934
|
+
label: default_2.ReactNode;
|
|
935
|
+
}
|
|
936
|
+
|
|
928
937
|
/**
|
|
929
938
|
* Individual tab panel - use as children of TabPanels
|
|
930
939
|
*/
|
|
@@ -981,9 +990,9 @@ export declare interface TabPanelsProps {
|
|
|
981
990
|
export declare function Tabs({ tabs, active, onChange, onClose, permanentTabs, className, toolbar, multiline, orientation, style }: TabsProps): JSX_2.Element;
|
|
982
991
|
|
|
983
992
|
export declare interface TabsProps {
|
|
984
|
-
/** Array of tab labels */
|
|
985
|
-
tabs: string[];
|
|
986
|
-
/** Currently active tab label */
|
|
993
|
+
/** Array of tab labels as strings, or tab objects with id and localized label */
|
|
994
|
+
tabs: (string | TabItem)[];
|
|
995
|
+
/** Currently active tab label or TabItem.id */
|
|
987
996
|
active: string;
|
|
988
997
|
/** Callback when a tab is selected */
|
|
989
998
|
onChange: (tab: string) => void;
|