@ctlyst.id/internal-ui 2.1.8 → 2.1.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/{checkbox/__stories__/checkbox-group.stories.d.ts → anchor/__stories__/anchor.stories.d.ts} +2 -3
- package/dist/components/anchor/components/anchor.d.ts +20 -0
- package/dist/components/anchor/components/index.d.ts +1 -0
- package/dist/components/anchor/index.d.ts +1 -0
- package/dist/components/badge/components/index.d.ts +1 -0
- package/dist/components/badge/index.d.ts +1 -2
- package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +4 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/{base/__stories__/switch.stories.d.ts → collapse/__stories__/collapse.stories.d.ts} +1 -2
- package/dist/components/counter/__stories__/counter.stories.d.ts +10 -0
- package/dist/components/counter/components/counter.d.ts +15 -0
- package/dist/components/counter/index.d.ts +1 -0
- package/dist/components/dialog/__stories__/dialog.stories.d.ts +7 -0
- package/dist/components/dialog/components/dialog.d.ts +12 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/empty-state/__stories__/dialog.stories.d.ts +7 -0
- package/dist/components/field/__stories__/field.stories.d.ts +7 -0
- package/dist/components/{radio/__stories__/radio-group.stories.d.ts → image/__stories__/image.stories.d.ts} +2 -3
- package/dist/components/index.d.ts +5 -0
- package/dist/components/layouting/index.d.ts +1 -1
- package/dist/components/loader/index.d.ts +1 -1
- package/dist/components/radio/__stories__/radio.stories.d.ts +4 -0
- package/dist/components/radio/components/radio-group.d.ts +6 -5
- package/dist/components/radio/components/radio.d.ts +8 -7
- package/dist/components/radio/index.d.ts +1 -2
- package/dist/components/tabs/index.d.ts +1 -3
- package/dist/components/toast/__stories__/toast.stories.d.ts +0 -1
- package/dist/components/toast/components/toast.d.ts +2 -0
- package/dist/config/theme/components/index.d.ts +1 -0
- package/dist/config/theme/components/tabs.d.ts +30 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/internal-ui.cjs.development.js +756 -233
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +6 -6
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +426 -235
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/tabs/components/tab-list.d.ts +0 -3
- package/dist/components/tabs/components/tab-panel.d.ts +0 -3
@@ -5,6 +5,5 @@ declare const _default: {
|
|
5
5
|
};
|
6
6
|
export default _default;
|
7
7
|
export declare const Default: () => JSX.Element;
|
8
|
-
export declare const
|
9
|
-
export declare const
|
10
|
-
export declare const WithError: () => JSX.Element;
|
8
|
+
export declare const AnchorWithPill: () => JSX.Element;
|
9
|
+
export declare const AnchorChildl: () => JSX.Element;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import type { LinkProps } from '@chakra-ui/layout';
|
2
|
+
import type { PropsWithChildren } from 'react';
|
3
|
+
import * as React from 'react';
|
4
|
+
export interface AnchorProps extends LinkProps, PropsWithChildren {
|
5
|
+
leftIcon?: React.ReactNode;
|
6
|
+
rightIcon?: React.ReactNode;
|
7
|
+
isActive?: boolean;
|
8
|
+
isChild?: boolean;
|
9
|
+
}
|
10
|
+
export declare const Anchor: {
|
11
|
+
({ children, leftIcon, rightIcon, isActive, isChild, ...props }: AnchorProps): JSX.Element;
|
12
|
+
displayName: string;
|
13
|
+
defaultProps: {
|
14
|
+
leftIcon: undefined;
|
15
|
+
rightIcon: undefined;
|
16
|
+
isActive: boolean;
|
17
|
+
isChild: boolean;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
export default Anchor;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Anchor, AnchorProps } from './anchor';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './components';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as Badge, BadgeProps } from './badge';
|
@@ -1,2 +1 @@
|
|
1
|
-
export
|
2
|
-
export * from './components/badge';
|
1
|
+
export * from './components';
|
@@ -7,3 +7,7 @@ export default _default;
|
|
7
7
|
export declare const Default: () => JSX.Element;
|
8
8
|
export declare const WithLabel: () => JSX.Element;
|
9
9
|
export declare const WithHelpText: () => JSX.Element;
|
10
|
+
export declare const DefaultGroup: () => JSX.Element;
|
11
|
+
export declare const GroupRequiredLabel: () => JSX.Element;
|
12
|
+
export declare const GroupWithHelpText: () => JSX.Element;
|
13
|
+
export declare const GroupWithError: () => JSX.Element;
|
@@ -2,3 +2,4 @@ export { default as Checkbox } from './components/checkbox';
|
|
2
2
|
export * from './components/checkbox';
|
3
3
|
export { default as CheckboxGroup } from './components/checkbox-group';
|
4
4
|
export * from './components/checkbox-group';
|
5
|
+
export { CheckboxGroupContext, CheckboxGroupProps, CheckboxIcon, CheckboxIconProps, CheckboxState, useCheckbox, useCheckboxGroup, UseCheckboxGroupProps, UseCheckboxGroupReturn, UseCheckboxProps, UseCheckboxReturn, } from '@chakra-ui/checkbox';
|
@@ -4,5 +4,4 @@ declare const _default: {
|
|
4
4
|
decorators: ((Story: React.ElementType) => JSX.Element)[];
|
5
5
|
};
|
6
6
|
export default _default;
|
7
|
-
export declare const
|
8
|
-
export declare const SwitchDisabled: () => JSX.Element;
|
7
|
+
export declare const Default: () => JSX.Element;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
declare const _default: {
|
3
|
+
title: string;
|
4
|
+
decorators: ((Story: React.ElementType) => JSX.Element)[];
|
5
|
+
};
|
6
|
+
export default _default;
|
7
|
+
export declare const Counter: () => JSX.Element;
|
8
|
+
export declare const CounterHelperText: () => JSX.Element;
|
9
|
+
export declare const CounterError: () => JSX.Element;
|
10
|
+
export declare const CounterDisable: () => JSX.Element;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface CounterProps {
|
3
|
+
value: number;
|
4
|
+
size?: string;
|
5
|
+
min?: number;
|
6
|
+
max?: number;
|
7
|
+
onChange: (val: number) => void;
|
8
|
+
isError?: boolean;
|
9
|
+
disabled?: boolean;
|
10
|
+
error?: string | React.ReactNode;
|
11
|
+
helperText?: string | React.ReactNode;
|
12
|
+
isReadOnly?: boolean;
|
13
|
+
}
|
14
|
+
declare const Counter: ({ value, size, min, max, onChange, isError, disabled, error, helperText, isReadOnly, }: CounterProps) => JSX.Element;
|
15
|
+
export default Counter;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as Counter } from './components/counter';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { ModalProps as ChakraModalProps } from '@chakra-ui/react';
|
2
|
+
import React from 'react';
|
3
|
+
interface DialogProps extends Omit<ChakraModalProps, 'children'> {
|
4
|
+
title: string;
|
5
|
+
content: React.ReactNode;
|
6
|
+
footer: React.ReactNode;
|
7
|
+
isModalOverlay?: boolean;
|
8
|
+
width?: string;
|
9
|
+
isOverlayClickable?: boolean;
|
10
|
+
}
|
11
|
+
declare const Dialog: React.FC<DialogProps>;
|
12
|
+
export default Dialog;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as Dialog } from './components/dialog';
|
@@ -5,6 +5,5 @@ declare const _default: {
|
|
5
5
|
};
|
6
6
|
export default _default;
|
7
7
|
export declare const Default: () => JSX.Element;
|
8
|
-
export declare const
|
9
|
-
export declare const
|
10
|
-
export declare const WithError: () => JSX.Element;
|
8
|
+
export declare const NoImage: () => JSX.Element;
|
9
|
+
export declare const ErrorImage: () => JSX.Element;
|
@@ -1,12 +1,16 @@
|
|
1
|
+
export * from './accordion';
|
1
2
|
export * from './alert';
|
3
|
+
export * from './anchor';
|
2
4
|
export * from './badge';
|
3
5
|
export * from './breadcrumb';
|
4
6
|
export * from './button';
|
5
7
|
export * from './card';
|
6
8
|
export * from './checkbox';
|
7
9
|
export * from './chips';
|
10
|
+
export * from './counter';
|
8
11
|
export * from './data-table';
|
9
12
|
export * from './datepicker';
|
13
|
+
export * from './dialog';
|
10
14
|
export * from './field';
|
11
15
|
export * from './form';
|
12
16
|
export * from './header';
|
@@ -27,3 +31,4 @@ export * from './tabs';
|
|
27
31
|
export * from './text';
|
28
32
|
export * from './tooltip';
|
29
33
|
export * from './uploader';
|
34
|
+
export { Avatar, AvatarBadge, AvatarBadgeProps, AvatarGroup, AvatarGroupProps, AvatarProps, Collapse, CollapseProps, Fade, FadeProps, Hide, HideProps, Img, ImgProps, ScaleFade, ScaleFadeProps, Show, ShowProps, Slide, SlideFade, SlideFadeProps, SlideProps, Step, StepDescription, StepIcon, StepIndicator, StepNumber, Stepper, StepSeparator, StepStatus, StepTitle, useBreakpoint, UseBreakpointOptions, useBreakpointValue, useColorModePreference, useImage, UseImageProps, UseImageReturn, useMediaQuery, UseMediaQueryOptions, usePrefersReducedMotion, useQuery, UseQueryProps, useSteps, VisuallyHidden, VisuallyHiddenInput, } from '@chakra-ui/react';
|
@@ -1 +1 @@
|
|
1
|
-
export { Box, BoxProps, Center,
|
1
|
+
export { Box, BoxProps, Center, Container, ContainerProps, Divider, DividerProps, Flex, FlexProps, Grid, GridItem, GridItemProps, GridProps, HStack, SimpleGrid, Spacer, Stack, StackProps, VStack, Wrap, WrapItem, WrapItemProps, WrapProps, } from '@chakra-ui/react';
|
@@ -7,3 +7,7 @@ export default _default;
|
|
7
7
|
export declare const Default: () => JSX.Element;
|
8
8
|
export declare const WithLabel: () => JSX.Element;
|
9
9
|
export declare const WithHelpText: () => JSX.Element;
|
10
|
+
export declare const GroupDefault: () => JSX.Element;
|
11
|
+
export declare const GroupRequiredLabel: () => JSX.Element;
|
12
|
+
export declare const GroupWithHelpText: () => JSX.Element;
|
13
|
+
export declare const WithError: () => JSX.Element;
|
@@ -6,12 +6,13 @@ export interface RadioGroupComponentProps extends FieldProps, RadioGroupProps {
|
|
6
6
|
isError?: boolean;
|
7
7
|
errorMessage?: string;
|
8
8
|
}
|
9
|
-
declare
|
10
|
-
|
11
|
-
|
9
|
+
export declare const RadioGroup: {
|
10
|
+
({ children, label, helpText, isError, errorMessage, ...props }: RadioGroupComponentProps): JSX.Element;
|
11
|
+
displayName: string;
|
12
|
+
defaultProps: {
|
12
13
|
helpText: string;
|
13
14
|
isError: boolean;
|
14
15
|
errorMessage: string;
|
15
16
|
};
|
16
|
-
}
|
17
|
-
export default
|
17
|
+
};
|
18
|
+
export default RadioGroup;
|
@@ -1,16 +1,17 @@
|
|
1
|
-
import type { RadioProps } from '@chakra-ui/react';
|
1
|
+
import type { RadioProps as ChakraRadioProps } from '@chakra-ui/react';
|
2
2
|
import type { PropsWithChildren } from 'react';
|
3
|
-
export interface
|
3
|
+
export interface RadioProps extends ChakraRadioProps, PropsWithChildren {
|
4
4
|
isError?: boolean;
|
5
5
|
helpText?: string;
|
6
6
|
errorText?: string;
|
7
7
|
}
|
8
|
-
declare
|
9
|
-
|
10
|
-
|
8
|
+
export declare const Radio: {
|
9
|
+
({ isError, helpText, errorText, children, isDisabled, ...rest }: RadioProps): JSX.Element;
|
10
|
+
displayName: string;
|
11
|
+
defaultProps: {
|
11
12
|
isError: boolean;
|
12
13
|
helpText: string;
|
13
14
|
errorText: string;
|
14
15
|
};
|
15
|
-
}
|
16
|
-
export default
|
16
|
+
};
|
17
|
+
export default Radio;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
export { default as Radio } from './components/radio';
|
2
1
|
export * from './components/radio';
|
3
|
-
export { default as RadioGroup } from './components/radio-group';
|
4
2
|
export * from './components/radio-group';
|
3
|
+
export { RadioGroupContext, useRadio, useRadioGroup, useRadioGroupContext, UseRadioGroupProps, UseRadioGroupReturn, UseRadioProps, UseRadioReturn, } from '@chakra-ui/radio';
|
@@ -1,4 +1,2 @@
|
|
1
1
|
export { default as Tab } from './components/tab';
|
2
|
-
export {
|
3
|
-
export { default as TabPanel } from './components/tab-panel';
|
4
|
-
export { TabIndicator, TabIndicatorProps, TabListProps, TabPanelProps, TabPanels, TabPanelsProps, TabProps, Tabs, TabsDescendantsProvider, TabsProps, TabsProvider, useTab, useTabIndicator, useTabList, UseTabListProps, UseTabListReturn, UseTabOptions, useTabPanel, useTabPanels, UseTabPanelsProps, UseTabProps, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext, UseTabsProps, UseTabsReturn, useTabsStyles, } from '@chakra-ui/react';
|
2
|
+
export { TabIndicator, TabIndicatorProps, TabList, TabListProps, TabPanel, TabPanelProps, TabPanels, TabPanelsProps, TabProps, Tabs, TabsDescendantsProvider, TabsProps, TabsProvider, useTab, useTabIndicator, useTabList, UseTabListProps, UseTabListReturn, UseTabOptions, useTabPanel, useTabPanels, UseTabPanelsProps, UseTabProps, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext, UseTabsProps, UseTabsReturn, useTabsStyles, } from '@chakra-ui/react';
|
@@ -10,4 +10,3 @@ export declare const ToastIcon: () => JSX.Element;
|
|
10
10
|
export declare const ToastLink: () => JSX.Element;
|
11
11
|
export declare const ToastIconAndLink: () => JSX.Element;
|
12
12
|
export declare const ToastCustomColor: () => JSX.Element;
|
13
|
-
export declare const ToastPhone: () => JSX.Element;
|
@@ -12,4 +12,5 @@ export { default as Popover } from './popover';
|
|
12
12
|
export { default as Radio } from './radio';
|
13
13
|
export { default as Switch } from './switch';
|
14
14
|
export { default as Table } from './table';
|
15
|
+
export { default as Tabs } from './tabs';
|
15
16
|
export { default as Textarea } from './textarea';
|
@@ -0,0 +1,30 @@
|
|
1
|
+
declare const tabsTheme: {
|
2
|
+
baseStyle?: Partial<Record<"root" | "tab" | "tablist" | "tabpanel" | "tabpanels" | "indicator", import("@chakra-ui/styled-system").RecursiveCSSObject<import("@chakra-ui/styled-system").CSSWithMultiValues>>> | import("@chakra-ui/styled-system").PartsStyleFunction<{
|
3
|
+
keys: ("root" | "tab" | "tablist" | "tabpanel" | "tabpanels" | "indicator")[];
|
4
|
+
}> | undefined;
|
5
|
+
sizes?: {
|
6
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
7
|
+
keys: ("root" | "tab" | "tablist" | "tabpanel" | "tabpanels" | "indicator")[];
|
8
|
+
}>;
|
9
|
+
} | undefined;
|
10
|
+
variants?: {
|
11
|
+
line: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
12
|
+
tablist: {
|
13
|
+
[x: string]: string;
|
14
|
+
borderColor: string;
|
15
|
+
};
|
16
|
+
tab: {
|
17
|
+
[x: string]: string;
|
18
|
+
borderColor: string;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
unstyled: {};
|
22
|
+
} | undefined;
|
23
|
+
defaultProps?: {
|
24
|
+
size?: string | number | undefined;
|
25
|
+
variant?: "line" | "unstyled" | undefined;
|
26
|
+
colorScheme?: string | undefined;
|
27
|
+
} | undefined;
|
28
|
+
parts: ("root" | "tab" | "tablist" | "tabpanel" | "tabpanels" | "indicator")[];
|
29
|
+
};
|
30
|
+
export default tabsTheme;
|
package/dist/hooks/index.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { default as useFetcher } from './useFetcher';
|
2
|
-
export { useBoolean, useColorMode, useColorModeValue, useDisclosure, UseDisclosureProps, UseRadioGroupProps, useToken, } from '@chakra-ui/react';
|
2
|
+
export { useBoolean, useBreakpointValue, useClipboard, useColorMode, useColorModeValue, useConst, useControllableProp, useControllableState, useDimensions, useDisclosure, UseDisclosureProps, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, UseRadioGroupProps, useTheme, useToken, } from '@chakra-ui/react';
|