@kwantis-id3/frontend-library 1.0.0-rc.39 → 1.0.0-rc.40
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/esm/index.js +98 -60
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/esm/types/components/Checkbox/CheckboxInterfaces.d.ts +24 -0
- package/dist/esm/types/components/Checkbox/CheckboxStyled.d.ts +32 -0
- package/dist/esm/types/components/Checkbox/index.d.ts +2 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +26 -1
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import { TCheckboxProps } from "./CheckboxInterfaces";
|
|
3
|
+
export declare const Checkbox: ({ label, htmlId, checked, defaultChecked, onChange, indeterminate, disabled, className, sx, name, size, }: TCheckboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Interpolation } from "@emotion/react";
|
|
2
|
+
import { Theme } from "@emotion/react/dist/declarations/src";
|
|
3
|
+
export type TCheckboxProps = {
|
|
4
|
+
/** Lable of the checkbox */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** HTML id */
|
|
7
|
+
htmlId?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Controlled checked state */
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
/** Uncontrolled default checked state */
|
|
12
|
+
defaultChecked?: boolean;
|
|
13
|
+
/** onChange handler */
|
|
14
|
+
onChange?: (checked: boolean) => void;
|
|
15
|
+
/** Mixed state in its children checkboxes */
|
|
16
|
+
indeterminate?: boolean;
|
|
17
|
+
/** Disabled state */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
/** Custom styles */
|
|
21
|
+
sx?: Interpolation<Theme>;
|
|
22
|
+
/** Checkbox sizes */
|
|
23
|
+
size?: "small" | "medium" | "large";
|
|
24
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const StyledLabel: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
} & {
|
|
5
|
+
$disabled?: boolean;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
7
|
+
export declare const StyledCheckboxInput: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme;
|
|
9
|
+
as?: React.ElementType;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
11
|
+
export declare const StyledCheckboxBox: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
} & {
|
|
15
|
+
$checked: boolean;
|
|
16
|
+
$indeterminate: boolean;
|
|
17
|
+
$disabled?: boolean;
|
|
18
|
+
$backgroundColor?: string;
|
|
19
|
+
$checkmarkColor?: string;
|
|
20
|
+
$borderColor?: string;
|
|
21
|
+
$size?: "small" | "medium" | "large";
|
|
22
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
23
|
+
export declare const StyledIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme;
|
|
25
|
+
as?: React.ElementType;
|
|
26
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
27
|
+
export declare const StyledLabelText: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
|
+
} & {
|
|
31
|
+
$disabled?: boolean;
|
|
32
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -628,6 +628,31 @@ type TDrawerProps = {
|
|
|
628
628
|
|
|
629
629
|
declare const Drawer: ({ anchor, isOpen: isOpenProp, openContent, closedContent, openTrigger, closedTrigger, minOpen, maxOpen, bgColor, triggerColor, triggerHoverColor, onOpen, onClose, zIndex, hideTrigger, keepMounted, sx, }: TDrawerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
630
630
|
|
|
631
|
+
type TCheckboxProps = {
|
|
632
|
+
/** Lable of the checkbox */
|
|
633
|
+
label?: string;
|
|
634
|
+
/** HTML id */
|
|
635
|
+
htmlId?: string;
|
|
636
|
+
name?: string;
|
|
637
|
+
/** Controlled checked state */
|
|
638
|
+
checked?: boolean;
|
|
639
|
+
/** Uncontrolled default checked state */
|
|
640
|
+
defaultChecked?: boolean;
|
|
641
|
+
/** onChange handler */
|
|
642
|
+
onChange?: (checked: boolean) => void;
|
|
643
|
+
/** Mixed state in its children checkboxes */
|
|
644
|
+
indeterminate?: boolean;
|
|
645
|
+
/** Disabled state */
|
|
646
|
+
disabled?: boolean;
|
|
647
|
+
className?: string;
|
|
648
|
+
/** Custom styles */
|
|
649
|
+
sx?: Interpolation<Theme>;
|
|
650
|
+
/** Checkbox sizes */
|
|
651
|
+
size?: "small" | "medium" | "large";
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
declare const Checkbox: ({ label, htmlId, checked, defaultChecked, onChange, indeterminate, disabled, className, sx, name, size, }: TCheckboxProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
655
|
+
|
|
631
656
|
/**
|
|
632
657
|
* emotion.js doesn't support transient options out of the box.
|
|
633
658
|
*
|
|
@@ -677,4 +702,4 @@ declare const getActiveColor: (color: string) => string;
|
|
|
677
702
|
|
|
678
703
|
declare function usePrefersColorScheme(): "light" | "dark";
|
|
679
704
|
|
|
680
|
-
export { Accordion, AccordionGroup, Button, Card, CardContent, CardFooter, CardHeader, CardIndicators, CardMediaSection, ControlledTreeView, DataGrid, Drawer, Dropdown, IBackgroundColors, ICommonColors, IIndicatorColors, IPalette, IStandardPaletteColor, ITagColors, IThemeContextProps, IThemeContextValue, Indicator, InputField, Modal, MultiSelect, MultiSelectProps, MultiViewGrid, MultiViewList, SingleSelect, SingleSelectProps, Slider, TAccordionProps, TButtonProps, TButtonVariants, TCardSectionProps, TCellValues, TColorScale, TControlledTreeViewProps, TCustomRenderProps, TDataGridProps, TDataGridRow, TDrawerProps, TDropdownItem, TDropdownItemProps, TDropdownProps, TIndicatorInstanceProps, TIndicatorProps, TIndicatorVariants, TModalProps, TMultiViewGridProps, TMultiViewListProps, TRenderTriggerProps, TSliderProps, TTableCell, TTableProps, TTableRow, TTagProps, TTextFieldProps, TThemeMode, TTreeViewItem, TUncontrolledTreeViewProps, TViewState, Table, Tag, ThemeContextProvider, UncontrolledTreeView, commonColors, darkenColor, defaultDarkPalette, defaultLightPalette, getActiveColor, getContrastColor, getHoverColor, lightenColor, renderCell, transientOptions, useIsMobile, usePrefersColorScheme, useThemeContext };
|
|
705
|
+
export { Accordion, AccordionGroup, Button, Card, CardContent, CardFooter, CardHeader, CardIndicators, CardMediaSection, Checkbox, ControlledTreeView, DataGrid, Drawer, Dropdown, IBackgroundColors, ICommonColors, IIndicatorColors, IPalette, IStandardPaletteColor, ITagColors, IThemeContextProps, IThemeContextValue, Indicator, InputField, Modal, MultiSelect, MultiSelectProps, MultiViewGrid, MultiViewList, SingleSelect, SingleSelectProps, Slider, TAccordionProps, TButtonProps, TButtonVariants, TCardSectionProps, TCellValues, TCheckboxProps, TColorScale, TControlledTreeViewProps, TCustomRenderProps, TDataGridProps, TDataGridRow, TDrawerProps, TDropdownItem, TDropdownItemProps, TDropdownProps, TIndicatorInstanceProps, TIndicatorProps, TIndicatorVariants, TModalProps, TMultiViewGridProps, TMultiViewListProps, TRenderTriggerProps, TSliderProps, TTableCell, TTableProps, TTableRow, TTagProps, TTextFieldProps, TThemeMode, TTreeViewItem, TUncontrolledTreeViewProps, TViewState, Table, Tag, ThemeContextProvider, UncontrolledTreeView, commonColors, darkenColor, defaultDarkPalette, defaultLightPalette, getActiveColor, getContrastColor, getHoverColor, lightenColor, renderCell, transientOptions, useIsMobile, usePrefersColorScheme, useThemeContext };
|