@ctlyst.id/internal-ui 2.1.9 → 2.1.11-canary.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/dist/index.d.mts +549 -0
  2. package/dist/index.d.ts +549 -5
  3. package/dist/index.js +9768 -5
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +9760 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +10 -11
  8. package/dist/components/accordion/__stories__/accordion.stories.d.ts +0 -9
  9. package/dist/components/accordion/components/accordion-indicator.d.ts +0 -1
  10. package/dist/components/accordion/components/index.d.ts +0 -2
  11. package/dist/components/accordion/index.d.ts +0 -1
  12. package/dist/components/alert/__stories__/alert.stories.d.ts +0 -11
  13. package/dist/components/alert/components/alert-action.d.ts +0 -6
  14. package/dist/components/alert/components/alert-close.d.ts +0 -6
  15. package/dist/components/alert/components/alert-context.d.ts +0 -33
  16. package/dist/components/alert/components/alert-description.d.ts +0 -3
  17. package/dist/components/alert/components/alert-icon.d.ts +0 -6
  18. package/dist/components/alert/components/alert-title.d.ts +0 -3
  19. package/dist/components/alert/components/alert.d.ts +0 -25
  20. package/dist/components/alert/components/icons.d.ts +0 -3
  21. package/dist/components/alert/components/index.d.ts +0 -14
  22. package/dist/components/alert/index.d.ts +0 -1
  23. package/dist/components/badge/__stories__/badge.stories.d.ts +0 -15
  24. package/dist/components/badge/components/badge.d.ts +0 -11
  25. package/dist/components/badge/index.d.ts +0 -2
  26. package/dist/components/base/__stories__/switch.stories.d.ts +0 -8
  27. package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +0 -8
  28. package/dist/components/breadcrumb/components/bread-crumb.d.ts +0 -18
  29. package/dist/components/breadcrumb/index.d.ts +0 -2
  30. package/dist/components/button/__stories__/button.stories.d.ts +0 -12
  31. package/dist/components/button/components/button.d.ts +0 -4
  32. package/dist/components/button/index.d.ts +0 -3
  33. package/dist/components/card/__stories__/card.stories.d.ts +0 -8
  34. package/dist/components/card/components/card.d.ts +0 -8
  35. package/dist/components/card/index.d.ts +0 -2
  36. package/dist/components/checkbox/__stories__/checkbox-group.stories.d.ts +0 -10
  37. package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +0 -9
  38. package/dist/components/checkbox/components/checkbox-group.d.ts +0 -18
  39. package/dist/components/checkbox/components/checkbox.d.ts +0 -10
  40. package/dist/components/checkbox/index.d.ts +0 -4
  41. package/dist/components/chips/__stories__/chips.stories.d.ts +0 -9
  42. package/dist/components/chips/components/chips.d.ts +0 -19
  43. package/dist/components/chips/index.d.ts +0 -2
  44. package/dist/components/data-table/__stories__/datatable.stories.d.ts +0 -21
  45. package/dist/components/data-table/components/data-table.d.ts +0 -30
  46. package/dist/components/data-table/index.d.ts +0 -3
  47. package/dist/components/data-table/types/table-core.d.ts +0 -1
  48. package/dist/components/datepicker/__stories__/datepicker.stories.d.ts +0 -13
  49. package/dist/components/datepicker/components/datepicker-month/datepicker-month.d.ts +0 -9
  50. package/dist/components/datepicker/components/datepicker-month/index.d.ts +0 -4
  51. package/dist/components/datepicker/components/datepicker-month/multi-datepicker-month.d.ts +0 -9
  52. package/dist/components/datepicker/components/datepicker.d.ts +0 -17
  53. package/dist/components/datepicker/components/styles.d.ts +0 -2
  54. package/dist/components/datepicker/components/time-input.d.ts +0 -9
  55. package/dist/components/datepicker/index.d.ts +0 -3
  56. package/dist/components/field/components/field.d.ts +0 -15
  57. package/dist/components/field/index.d.ts +0 -2
  58. package/dist/components/form/__stories__/input.stories.d.ts +0 -15
  59. package/dist/components/form/__stories__/textarea.stories.d.ts +0 -7
  60. package/dist/components/form/components/input-addon.d.ts +0 -7
  61. package/dist/components/form/components/input-element.d.ts +0 -2
  62. package/dist/components/form/components/input-field.d.ts +0 -13
  63. package/dist/components/form/components/textarea.d.ts +0 -8
  64. package/dist/components/form/index.d.ts +0 -7
  65. package/dist/components/form/styles/input-field.d.ts +0 -4
  66. package/dist/components/header/__stories__/header.stories.d.ts +0 -9
  67. package/dist/components/header/components/header.d.ts +0 -19
  68. package/dist/components/header/components/logo.d.ts +0 -10
  69. package/dist/components/header/components/profile.d.ts +0 -11
  70. package/dist/components/header/components/switch-mode.d.ts +0 -3
  71. package/dist/components/header/components/version.d.ts +0 -10
  72. package/dist/components/header/index.d.ts +0 -3
  73. package/dist/components/header/types.d.ts +0 -10
  74. package/dist/components/header/utils/formatter.d.ts +0 -2
  75. package/dist/components/image/index.d.ts +0 -1
  76. package/dist/components/index.d.ts +0 -29
  77. package/dist/components/layouting/index.d.ts +0 -1
  78. package/dist/components/list/index.d.ts +0 -1
  79. package/dist/components/loader/__stories__/loader.stories.d.ts +0 -9
  80. package/dist/components/loader/components/loader.d.ts +0 -10
  81. package/dist/components/loader/index.d.ts +0 -3
  82. package/dist/components/modal/__stories__/modal.stories.d.ts +0 -7
  83. package/dist/components/modal/components/modal-body.d.ts +0 -4
  84. package/dist/components/modal/components/modal-close-button.d.ts +0 -4
  85. package/dist/components/modal/components/modal-footer.d.ts +0 -4
  86. package/dist/components/modal/components/modal-header.d.ts +0 -4
  87. package/dist/components/modal/index.d.ts +0 -5
  88. package/dist/components/navigation/__stories__/navigation.stories.d.ts +0 -8
  89. package/dist/components/navigation/components/customer-icon.d.ts +0 -2
  90. package/dist/components/navigation/components/mapping-icon.d.ts +0 -2
  91. package/dist/components/navigation/components/navigation-bar.d.ts +0 -12
  92. package/dist/components/navigation/components/navigation.d.ts +0 -11
  93. package/dist/components/navigation/index.d.ts +0 -4
  94. package/dist/components/navigation/types.d.ts +0 -24
  95. package/dist/components/pagination/__stories__/pagination.stories.d.ts +0 -10
  96. package/dist/components/pagination/components/pagination-button-trigger.d.ts +0 -10
  97. package/dist/components/pagination/components/pagination-button.d.ts +0 -6
  98. package/dist/components/pagination/components/pagination-detail.d.ts +0 -10
  99. package/dist/components/pagination/components/pagination-filter.d.ts +0 -13
  100. package/dist/components/pagination/components/pagination.d.ts +0 -16
  101. package/dist/components/pagination/index.d.ts +0 -6
  102. package/dist/components/popover/index.d.ts +0 -1
  103. package/dist/components/radio/__stories__/radio-group.stories.d.ts +0 -10
  104. package/dist/components/radio/__stories__/radio.stories.d.ts +0 -9
  105. package/dist/components/radio/components/radio-group.d.ts +0 -17
  106. package/dist/components/radio/components/radio.d.ts +0 -16
  107. package/dist/components/radio/index.d.ts +0 -4
  108. package/dist/components/rating/__stories__/rating.stories.d.ts +0 -7
  109. package/dist/components/rating/components/rating.d.ts +0 -6
  110. package/dist/components/rating/index.d.ts +0 -2
  111. package/dist/components/select/__stories__/select.stories.d.ts +0 -10
  112. package/dist/components/select/components/select-async-creatable.d.ts +0 -5
  113. package/dist/components/select/components/select-async.d.ts +0 -6
  114. package/dist/components/select/components/select-creatable.d.ts +0 -5
  115. package/dist/components/select/components/select-wrapper.d.ts +0 -6
  116. package/dist/components/select/components/select.d.ts +0 -5
  117. package/dist/components/select/components/types/select.types.d.ts +0 -3
  118. package/dist/components/select/components/utils.d.ts +0 -26
  119. package/dist/components/select/index.d.ts +0 -8
  120. package/dist/components/switch/__stories__/switch.stories.d.ts +0 -10
  121. package/dist/components/switch/components/switch.d.ts +0 -18
  122. package/dist/components/switch/index.d.ts +0 -2
  123. package/dist/components/table/index.d.ts +0 -1
  124. package/dist/components/tabs/__stories__/tabs.stories.d.ts +0 -8
  125. package/dist/components/tabs/components/tab-list.d.ts +0 -3
  126. package/dist/components/tabs/components/tab-panel.d.ts +0 -3
  127. package/dist/components/tabs/components/tab.d.ts +0 -12
  128. package/dist/components/tabs/index.d.ts +0 -4
  129. package/dist/components/text/index.d.ts +0 -1
  130. package/dist/components/toast/__stories__/toast.stories.d.ts +0 -13
  131. package/dist/components/toast/components/toast.d.ts +0 -19
  132. package/dist/components/toast/index.d.ts +0 -1
  133. package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +0 -7
  134. package/dist/components/tooltip/index.d.ts +0 -1
  135. package/dist/components/uploader/__stories__/uploader.stories.d.ts +0 -9
  136. package/dist/components/uploader/components/uploader.d.ts +0 -12
  137. package/dist/components/uploader/constants.d.ts +0 -8
  138. package/dist/components/uploader/index.d.ts +0 -2
  139. package/dist/config/__stories__/foundations.stories.d.ts +0 -15
  140. package/dist/config/__stories__/globals.stories.d.ts +0 -10
  141. package/dist/config/index.d.ts +0 -1
  142. package/dist/config/theme/components/accordion.d.ts +0 -53
  143. package/dist/config/theme/components/alert.d.ts +0 -69
  144. package/dist/config/theme/components/badge.d.ts +0 -3
  145. package/dist/config/theme/components/button.d.ts +0 -3
  146. package/dist/config/theme/components/card.d.ts +0 -18
  147. package/dist/config/theme/components/checkbox.d.ts +0 -101
  148. package/dist/config/theme/components/chips.d.ts +0 -34
  149. package/dist/config/theme/components/form-label.d.ts +0 -20
  150. package/dist/config/theme/components/index.d.ts +0 -15
  151. package/dist/config/theme/components/input.d.ts +0 -101
  152. package/dist/config/theme/components/loader.d.ts +0 -85
  153. package/dist/config/theme/components/popover.d.ts +0 -3
  154. package/dist/config/theme/components/radio.d.ts +0 -102
  155. package/dist/config/theme/components/switch.d.ts +0 -75
  156. package/dist/config/theme/components/table.d.ts +0 -180
  157. package/dist/config/theme/components/textarea.d.ts +0 -55
  158. package/dist/config/theme/foundations/index.d.ts +0 -5
  159. package/dist/config/theme/foundations/radius.d.ts +0 -8
  160. package/dist/config/theme/foundations/shadows.d.ts +0 -15
  161. package/dist/config/theme/foundations/sizes.d.ts +0 -66
  162. package/dist/config/theme/foundations/spacing.d.ts +0 -42
  163. package/dist/config/theme/foundations/typography.d.ts +0 -191
  164. package/dist/config/theme/index.d.ts +0 -1
  165. package/dist/config/theme/themeConfiguration.d.ts +0 -6
  166. package/dist/hooks/index.d.ts +0 -2
  167. package/dist/hooks/useFetcher.d.ts +0 -4
  168. package/dist/interfaces/common.d.ts +0 -17
  169. package/dist/internal-ui.cjs.development.js +0 -5604
  170. package/dist/internal-ui.cjs.development.js.map +0 -1
  171. package/dist/internal-ui.cjs.production.min.js +0 -38
  172. package/dist/internal-ui.cjs.production.min.js.map +0 -1
  173. package/dist/internal-ui.esm.js +0 -4899
  174. package/dist/internal-ui.esm.js.map +0 -1
  175. package/dist/provider/__stories__/provider.stories.d.ts +0 -13
  176. package/dist/provider/components/provider.d.ts +0 -7
  177. package/dist/provider/index.d.ts +0 -3
  178. package/dist/provider/types.d.ts +0 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctlyst.id/internal-ui",
3
- "version": "2.1.9",
3
+ "version": "2.1.11-canary.0",
4
4
  "description": "Voila Internal UI Component",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/internal-ui.esm.js",
@@ -16,13 +16,12 @@
16
16
  "access": "public"
17
17
  },
18
18
  "scripts": {
19
- "build": "tsdx build --transpileOnly --tsconfig tsconfig.build.json",
19
+ "build": "tsup --dts",
20
20
  "clean": "rimraf dist",
21
21
  "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
22
22
  "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
23
23
  "prepublish": "yarn build",
24
24
  "report-coverage": "codecov -f ./coverage/*.json",
25
- "start": "tsdx watch --transpileOnly --tsconfig tsconfig.build.json --verbose",
26
25
  "test": "jest",
27
26
  "test:coverage": "jest --coverage",
28
27
  "type-check": "tsc --noEmit"
@@ -35,11 +34,11 @@
35
34
  "@chakra-ui/system": "^2.3.0",
36
35
  "@chakra-ui/theme-tools": "^2.0.12",
37
36
  "@chakra-ui/utils": "^2.0.11",
38
- "@ctlyst.id/internal-icon": "^1.0.6",
39
- "@tanstack/react-table": "^8.5.17",
37
+ "@ctlyst.id/internal-icon": "^1.0.7-canary.0",
38
+ "@tanstack/react-table": "^8.19.2",
40
39
  "axios": "^0.27.2",
41
40
  "clsx": "^1.1.1",
42
- "react-datepicker": "^4.8.0",
41
+ "react-datepicker": "^7.2.0",
43
42
  "react-dropzone": "^14.2.3",
44
43
  "react-icons": "^4.6.0",
45
44
  "react-select": "^5.6.0",
@@ -53,21 +52,21 @@
53
52
  },
54
53
  "devDependencies": {
55
54
  "@babel/core": "^7.15.0",
55
+ "@babel/preset-env": "^7.24.7",
56
+ "@babel/preset-react": "^7.24.7",
56
57
  "@babel/preset-typescript": "^7.18.6",
57
- "@ctlyst.id/ctlyst-theme": "^0.0.4",
58
- "@ctlyst.id/voila-theme": "^0.0.5",
58
+ "@ctlyst.id/ctlyst-theme": "^0.0.5-canary.0",
59
+ "@ctlyst.id/voila-theme": "^0.0.6-canary.0",
59
60
  "@emotion/core": "^11.0.0",
60
61
  "@emotion/react": "^11.9.3",
61
62
  "@emotion/styled": "^11.9.3",
62
63
  "@testing-library/jest-dom": "^5.14.1",
63
64
  "@testing-library/react": "^12.0.0",
64
65
  "@types/jest": "^26.0.24",
65
- "@types/react-datepicker": "^4.8.0",
66
66
  "babel-loader": "^8.2.2",
67
- "babel-preset-react-app": "^10.0.0",
68
67
  "codecov": "^3.8.3",
69
68
  "framer-motion": "^6.3.13",
70
69
  "jest": "^26.6.3"
71
70
  },
72
- "gitHead": "5c7f298093b9253ebae8534203ed924fc98fed59"
71
+ "gitHead": "c9ce81d9f68206ad1b19682f5f1c490eb408f566"
73
72
  }
@@ -1,9 +0,0 @@
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 Default: () => JSX.Element;
8
- export declare const AccordionWithEyeIcon: () => JSX.Element;
9
- export declare const AccordionWithActiveIndicator: () => JSX.Element;
@@ -1 +0,0 @@
1
- export declare const AccordionIndicator: () => JSX.Element | null;
@@ -1,2 +0,0 @@
1
- export * from './accordion-indicator';
2
- export { Accordion, AccordionButton, AccordionButtonProps, AccordionIcon, AccordionIconProps, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, AccordionProvider, useAccordion, useAccordionContext, useAccordionItem, UseAccordionItemProps, UseAccordionItemReturn, useAccordionItemState, UseAccordionProps, UseAccordionReturn, useAccordionStyles, } from '@chakra-ui/react';
@@ -1 +0,0 @@
1
- export * from './components';
@@ -1,11 +0,0 @@
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 Default: () => JSX.Element;
8
- export declare const AlertWithClose: () => JSX.Element;
9
- export declare const AlertWithCTA: () => JSX.Element;
10
- export declare const AlertWithCloseAndCTA: () => JSX.Element;
11
- export declare const Variant: () => JSX.Element;
@@ -1,6 +0,0 @@
1
- import type { HTMLChakraProps } from '@chakra-ui/system';
2
- export declare type AlertActionProps = HTMLChakraProps<'button'>;
3
- export declare function AlertAction({ children, className }: AlertActionProps): JSX.Element;
4
- export declare namespace AlertAction {
5
- var displayName: string;
6
- }
@@ -1,6 +0,0 @@
1
- import type { HTMLChakraProps } from '@chakra-ui/system';
2
- export declare type AlertCloseProps = HTMLChakraProps<'span'>;
3
- export declare function AlertClose({ className, children, ...rest }: AlertCloseProps): JSX.Element;
4
- export declare namespace AlertClose {
5
- var displayName: string;
6
- }
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import { CheckIcon, InfoIcon, WarningIcon } from './icons';
3
- export declare const AlertProvider: import("react").Provider<AlertContext>, useAlertContext: () => AlertContext;
4
- export declare const AlertStylesProvider: import("react").Provider<Record<string, import("@chakra-ui/styled-system").RecursiveCSSObject<import("@chakra-ui/styled-system").CSSWithMultiValues>>>, useAlertStyles: () => Record<string, import("@chakra-ui/styled-system").RecursiveCSSObject<import("@chakra-ui/styled-system").CSSWithMultiValues>>;
5
- declare const STATUSES: {
6
- info: {
7
- icon: typeof InfoIcon;
8
- colorScheme: string;
9
- };
10
- warning: {
11
- icon: typeof InfoIcon;
12
- colorScheme: string;
13
- };
14
- success: {
15
- icon: typeof CheckIcon;
16
- colorScheme: string;
17
- };
18
- error: {
19
- icon: typeof WarningIcon;
20
- colorScheme: string;
21
- };
22
- neutral: {
23
- icon: typeof InfoIcon;
24
- colorScheme: string;
25
- };
26
- };
27
- export declare function getStatusColorScheme(status: AlertStatus): string;
28
- export declare function getStatusIcon(status: AlertStatus): typeof InfoIcon | typeof CheckIcon | typeof WarningIcon;
29
- export declare type AlertStatus = keyof typeof STATUSES;
30
- export interface AlertContext {
31
- status: AlertStatus;
32
- }
33
- export {};
@@ -1,3 +0,0 @@
1
- import type { HTMLChakraProps } from '@chakra-ui/system';
2
- export declare type AlertDescriptionProps = HTMLChakraProps<'div'>;
3
- export declare const AlertDescription: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"div", HTMLChakraProps<"div">>;
@@ -1,6 +0,0 @@
1
- import type { HTMLChakraProps } from '@chakra-ui/system';
2
- export declare type AlertIconProps = HTMLChakraProps<'span'>;
3
- export declare function AlertIcon({ className, children, ...rest }: AlertIconProps): JSX.Element;
4
- export declare namespace AlertIcon {
5
- var displayName: string;
6
- }
@@ -1,3 +0,0 @@
1
- import type { HTMLChakraProps } from '@chakra-ui/system';
2
- export declare type AlertTitleProps = HTMLChakraProps<'div'>;
3
- export declare const AlertTitle: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"div", HTMLChakraProps<"div">>;
@@ -1,25 +0,0 @@
1
- import type { HTMLChakraProps, ThemingProps } from '@chakra-ui/system';
2
- import type { AlertStatus } from './alert-context';
3
- interface AlertOptions {
4
- /**
5
- * The status of the alert
6
- * @default "info"
7
- */
8
- status?: AlertStatus;
9
- }
10
- export declare type AlertVariant = 'solid' | 'light';
11
- export interface AlertProps extends HTMLChakraProps<'div'>, AlertOptions, ThemingProps<'Alert'> {
12
- /**
13
- * @default false
14
- */
15
- addRole?: boolean;
16
- }
17
- /**
18
- * Alert is used to communicate the state or status of a
19
- * page, feature or action
20
- *
21
- * @see Docs https://chakra-ui.com/docs/components/alert
22
- * @see WAI-ARIA https://www.w3.org/WAI/ARIA/apg/patterns/alert/
23
- */
24
- export declare const Alert: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"div", AlertProps>;
25
- export {};
@@ -1,3 +0,0 @@
1
- export declare function CheckIcon(): JSX.Element;
2
- export declare function InfoIcon(): JSX.Element;
3
- export declare function WarningIcon(): JSX.Element;
@@ -1,14 +0,0 @@
1
- export type { AlertProps } from './alert';
2
- export { Alert } from './alert';
3
- export type { AlertActionProps } from './alert-action';
4
- export { AlertAction } from './alert-action';
5
- export type { AlertCloseProps } from './alert-close';
6
- export { AlertClose } from './alert-close';
7
- export type { AlertStatus } from './alert-context';
8
- export { useAlertStyles } from './alert-context';
9
- export type { AlertDescriptionProps } from './alert-description';
10
- export { AlertDescription } from './alert-description';
11
- export type { AlertIconProps } from './alert-icon';
12
- export { AlertIcon } from './alert-icon';
13
- export type { AlertTitleProps } from './alert-title';
14
- export { AlertTitle } from './alert-title';
@@ -1 +0,0 @@
1
- export * from './components';
@@ -1,15 +0,0 @@
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 Default: () => JSX.Element;
8
- export declare const BadgeDefault: {
9
- (): JSX.Element;
10
- storyName: string;
11
- };
12
- export declare const PillsDefault: {
13
- (): JSX.Element;
14
- storyName: string;
15
- };
@@ -1,11 +0,0 @@
1
- import type { BadgeProps as BadgeChakraProps } from '@chakra-ui/react';
2
- export interface BadgeProps extends BadgeChakraProps {
3
- pill?: boolean;
4
- }
5
- declare const Badge: {
6
- (props: BadgeProps): JSX.Element;
7
- defaultProps: {
8
- pill: boolean;
9
- };
10
- };
11
- export default Badge;
@@ -1,2 +0,0 @@
1
- export { default as Badge } from './components/badge';
2
- export * from './components/badge';
@@ -1,8 +0,0 @@
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 SwitchDefault: () => JSX.Element;
8
- export declare const SwitchDisabled: () => JSX.Element;
@@ -1,8 +0,0 @@
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 Default: () => JSX.Element;
8
- export declare const PanelBar: () => JSX.Element;
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- export interface BreadCrumbParentProps {
3
- name: string;
4
- onClick?: () => void;
5
- disable?: boolean;
6
- link: string;
7
- }
8
- export interface BreadCrumbProps {
9
- title: string;
10
- children?: React.ReactNode;
11
- parents?: BreadCrumbParentProps[];
12
- className?: string;
13
- disableHome?: boolean;
14
- spacing?: number;
15
- backButton?: () => void;
16
- }
17
- declare const BreadCrumb: React.FC<BreadCrumbProps>;
18
- export default BreadCrumb;
@@ -1,2 +0,0 @@
1
- export { default as BreadCrumb } from './components/bread-crumb';
2
- export * from './components/bread-crumb';
@@ -1,12 +0,0 @@
1
- import 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 Default: () => JSX.Element;
8
- export declare const Size: () => JSX.Element;
9
- export declare const Variant: () => JSX.Element;
10
- export declare const TextLink: () => JSX.Element;
11
- export declare const IconButton: () => JSX.Element;
12
- export declare const ButtonGroupDefault: () => JSX.Element;
@@ -1,4 +0,0 @@
1
- import type { ButtonProps as ButtonChakraProps } from '@chakra-ui/react';
2
- export declare type ButtonProps = ButtonChakraProps;
3
- declare const Button: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"button", ButtonChakraProps>;
4
- export default Button;
@@ -1,3 +0,0 @@
1
- export { default as Button } from './components/button';
2
- export * from './components/button';
3
- export { ButtonGroup, ButtonGroupProps, CloseButton, CloseButtonProps, IconButton, IconButtonProps, } from '@chakra-ui/react';
@@ -1,8 +0,0 @@
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 Default: () => JSX.Element;
8
- export declare const Variant: () => JSX.Element;
@@ -1,8 +0,0 @@
1
- import type { BoxProps } from '@chakra-ui/react';
2
- import React from 'react';
3
- export interface CardProps extends BoxProps {
4
- withShadow?: boolean;
5
- isRounded?: boolean;
6
- }
7
- declare const CardCustom: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
8
- export default CardCustom;
@@ -1,2 +0,0 @@
1
- export { default as Card } from './components/card';
2
- export * from './components/card';
@@ -1,10 +0,0 @@
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 Default: () => JSX.Element;
8
- export declare const RequiredLabel: () => JSX.Element;
9
- export declare const WithHelpText: () => JSX.Element;
10
- export declare const WithError: () => JSX.Element;
@@ -1,9 +0,0 @@
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 Default: () => JSX.Element;
8
- export declare const WithLabel: () => JSX.Element;
9
- export declare const WithHelpText: () => JSX.Element;
@@ -1,18 +0,0 @@
1
- import type { CheckboxGroupProps } from '@chakra-ui/react';
2
- import type { PropsWithChildren } from 'react';
3
- import type { FieldProps } from '../../field';
4
- export interface CheckboxGroupComponentProps extends FieldProps, CheckboxGroupProps, PropsWithChildren {
5
- label: string;
6
- helpText?: string;
7
- isError?: boolean;
8
- errorMessage?: string;
9
- }
10
- declare function CheckboxGroupComponent(props: CheckboxGroupComponentProps): JSX.Element;
11
- declare namespace CheckboxGroupComponent {
12
- var defaultProps: {
13
- helpText: string;
14
- isError: boolean;
15
- errorMessage: string;
16
- };
17
- }
18
- export default CheckboxGroupComponent;
@@ -1,10 +0,0 @@
1
- import type { BoxProps, CheckboxProps } from '@chakra-ui/react';
2
- import type { PropsWithChildren } from 'react';
3
- export interface CheckboxComponentProps extends CheckboxProps, PropsWithChildren {
4
- isError?: boolean;
5
- helpText?: string;
6
- errorText?: string;
7
- boxProps?: BoxProps;
8
- }
9
- declare const CheckboxComponent: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"input", CheckboxComponentProps>;
10
- export default CheckboxComponent;
@@ -1,4 +0,0 @@
1
- export { default as Checkbox } from './components/checkbox';
2
- export * from './components/checkbox';
3
- export { default as CheckboxGroup } from './components/checkbox-group';
4
- export * from './components/checkbox-group';
@@ -1,9 +0,0 @@
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 Default: () => JSX.Element;
8
- export declare const Variant: () => JSX.Element;
9
- export declare const WithClose: () => JSX.Element;
@@ -1,19 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export interface ChipsProps {
3
- isDisabled?: boolean;
4
- isActive?: boolean;
5
- onClose?: () => void;
6
- children?: ReactNode;
7
- size?: 'sm' | 'md';
8
- }
9
- declare const Chips: {
10
- ({ children, ...rest }: ChipsProps): JSX.Element;
11
- defaultProps: {
12
- isDisabled: boolean;
13
- isActive: boolean;
14
- onClose: undefined;
15
- children: undefined;
16
- size: string;
17
- };
18
- };
19
- export default Chips;
@@ -1,2 +0,0 @@
1
- export { default as Chips } from './components/chips';
2
- export * from './components/chips';
@@ -1,21 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: <T extends unknown>(props: import("../components/data-table").DataTableProps<T> & {
5
- ref?: ((instance: Pick<any, "toggleAllRowsSelected"> | null) => void) | React.RefObject<Pick<any, "toggleAllRowsSelected">> | null | undefined;
6
- }) => JSX.Element;
7
- argTypes: {
8
- selectedRow: {
9
- options: boolean[];
10
- control: {
11
- type: string;
12
- };
13
- };
14
- };
15
- decorators: ((Story: React.ElementType) => JSX.Element)[];
16
- };
17
- export default _default;
18
- export declare const DataTableDefault: () => JSX.Element;
19
- export declare const DataTableManualSorting: () => JSX.Element;
20
- export declare const DataTableSelectedRow: () => JSX.Element;
21
- export declare const DataTableWithStyles: () => JSX.Element;
@@ -1,30 +0,0 @@
1
- import type { BoxProps, TableBodyProps, TableCellProps, TableColumnHeaderProps, TableHeadProps, TableProps, TableRowProps } from '@chakra-ui/react';
2
- import type { ColumnDef, RowSelectionInstance, SortingState } from '@tanstack/react-table';
3
- import * as React from 'react';
4
- export interface TableStyleProps {
5
- table?: TableProps;
6
- tableHead?: TableHeadProps;
7
- tableRow?: TableRowProps;
8
- tableBody?: TableBodyProps;
9
- tableColumnHeader?: TableColumnHeaderProps;
10
- tableCell?: TableCellProps;
11
- }
12
- export interface DataTableProps<T = unknown> extends BoxProps {
13
- styles?: TableStyleProps;
14
- columns: ColumnDef<T>[];
15
- dataSource: T[] | undefined;
16
- isLoading?: boolean;
17
- withSelectedRow?: boolean | undefined;
18
- onSelectedRow?: (data: T[]) => void;
19
- onSort?: (data: SortingState) => void;
20
- manualSorting?: boolean;
21
- sortingState?: SortingState;
22
- sortDescFirst?: boolean;
23
- headerSticky?: boolean;
24
- onRowClick?: (data: T) => void;
25
- }
26
- export declare type DataTableRefs<T> = Pick<RowSelectionInstance<T>, 'toggleAllRowsSelected'>;
27
- declare const _default: <T extends unknown>(props: DataTableProps<T> & {
28
- ref?: ((instance: Pick<any, "toggleAllRowsSelected"> | null) => void) | React.RefObject<Pick<any, "toggleAllRowsSelected">> | null | undefined;
29
- }) => JSX.Element;
30
- export default _default;
@@ -1,3 +0,0 @@
1
- export { default as DataTable } from './components/data-table';
2
- export * from './components/data-table';
3
- export * from './types/table-core';
@@ -1 +0,0 @@
1
- export type { AccessorColumnDef, AccessorFn, AccessorFnColumnDef, AccessorKeyColumnDef, AggregationFn, AggregationFnOption, AggregationFns, aggregationFns, AnyRender, buildHeaderGroups, BuiltInAggregationFn, BuiltInFilterFn, BuiltInSortingFn, Cell, CellContext, Column, ColumnDef, ColumnDefaultOptions, ColumnDefBase, ColumnDefResolved, ColumnDefTemplate, ColumnFilter, ColumnFilterAutoRemoveTestFn, ColumnFiltersState, ColumnHelper, ColumnMeta, ColumnOrderDefaultOptions, ColumnOrderInstance, ColumnOrderOptions, ColumnOrderState, ColumnOrderTableState, ColumnPinningColumn, ColumnPinningColumnDef, ColumnPinningDefaultOptions, ColumnPinningInstance, ColumnPinningOptions, ColumnPinningPosition, ColumnPinningRow, ColumnPinningState, ColumnPinningTableState, ColumnResizeMode, ColumnSizing, ColumnSizingColumn, ColumnSizingColumnDef, ColumnSizingDefaultOptions, ColumnSizingHeader, ColumnSizingInfoState, ColumnSizingInstance, ColumnSizingOptions, ColumnSizingState, ColumnSizingTableState, ColumnSort, CoreCell, CoreColumn, CoreHeader, CoreHeaderGroup, CoreInstance, CoreOptions, CoreRow, CoreTableState, createCell, createColumn, createColumnHelper, createRow, createTable, CustomAggregationFns, CustomFilterFns, CustomSortingFns, DeepKeys, DeepValue, defaultColumnSizing, DisplayColumnDef, ExpandedInstance, ExpandedOptions, ExpandedRow, ExpandedState, ExpandedStateList, ExpandedTableState, Expanding, expandRows, FilterFn, FilterFnOption, FilterFns, filterFns, FilterMeta, Filters, FiltersColumn, FiltersColumnDef, FiltersInstance, FiltersOptions, FiltersRow, FiltersTableState, flattenBy, functionalUpdate, getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, Getter, GroupColumnDef, Grouping, GroupingCell, GroupingColumn, GroupingColumnDef, GroupingColumnMode, GroupingInstance, GroupingOptions, GroupingRow, GroupingState, GroupingTableState, HeaderContext, HeaderGroup, Headers, HeadersInstance, Header as HeaderTable, IdentifiedColumnDef, InitialTableState, IsAny, isFunction, IsKnown, isRowSelected, isSubRowSelected, makeStateUpdater, memo, NoInfer, noop, OnChangeFn, orderColumns, Ordering, Overwrite, PaginationDefaultOptions, PaginationInitialTableState, PaginationInstance, PaginationOptions, PaginationState, Pagination as PaginationTable, PaginationTableState, PartialKeys, passiveEventSupported, Pinning, RequiredKeys, ResolvedColumnFilter, reSplitAlphaNumeric, Row, RowData, RowModel, RowSelection, RowSelectionInstance, RowSelectionOptions, RowSelectionRow, RowSelectionState, RowSelectionTableState, selectRowsFn, shouldAutoRemoveFilter, SortDirection, Sorting, SortingColumn, SortingColumnDef, SortingFn, SortingFnOption, SortingFns, sortingFns, SortingInstance, SortingOptions, SortingState, SortingTableState, StringOrTemplateHeader, Table, TableFeature, TableMeta, TableOptions, TableOptionsResolved, TableState, TransformFilterValueFn, UnionToIntersection, Updater, Visibility, VisibilityColumn, VisibilityColumnDef, VisibilityDefaultOptions, VisibilityInstance, VisibilityOptions, VisibilityRow, VisibilityState, VisibilityTableState, } from '@tanstack/table-core';
@@ -1,13 +0,0 @@
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 DatePickerDefault: () => JSX.Element;
8
- export declare const DatePickerMonthExample: () => JSX.Element;
9
- export declare const DatePickerWithYearMonthDropdown: () => JSX.Element;
10
- export declare const DatePickerWithTime: () => JSX.Element;
11
- export declare const DatePickerWithDateRange: () => JSX.Element;
12
- export declare const DatePickerWithNumberOfMonthRange: () => JSX.Element;
13
- export declare const DefaulMultiDatePickerMonth: () => JSX.Element;
@@ -1,9 +0,0 @@
1
- import type { FC } from 'react';
2
- export interface DatePickerMonthProps {
3
- onChange: (date: string) => void;
4
- 'data-test-id'?: string;
5
- min: string;
6
- max: string;
7
- }
8
- declare const DatePickerMonth: FC<DatePickerMonthProps>;
9
- export default DatePickerMonth;
@@ -1,4 +0,0 @@
1
- export * from './datepicker-month';
2
- export { default as DatePickerMonth } from './datepicker-month';
3
- export * from './multi-datepicker-month';
4
- export { default as MultiDatePickerMonth } from './multi-datepicker-month';
@@ -1,9 +0,0 @@
1
- import type { FC } from 'react';
2
- export interface MultiDatePickerMonthProps {
3
- onChange: (startDate: string | null, endDate: string | null) => void;
4
- min?: string;
5
- max?: string;
6
- isError?: boolean;
7
- }
8
- declare const MultiDatePickerMonth: FC<MultiDatePickerMonthProps>;
9
- export default MultiDatePickerMonth;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import type { ReactDatePickerProps } from 'react-datepicker';
3
- export interface DatepickerProps extends Omit<ReactDatePickerProps, 'selectsRange'> {
4
- id?: string;
5
- isRequired?: boolean;
6
- label?: string;
7
- error?: string | React.ReactNode;
8
- isError?: boolean;
9
- helperText?: string | React.ReactNode;
10
- withTime?: boolean;
11
- onClear?: () => void;
12
- selectsRange?: boolean;
13
- showMonth?: boolean;
14
- shortMonth?: boolean;
15
- }
16
- declare const Datepicker: React.FC<DatepickerProps>;
17
- export default Datepicker;
@@ -1,2 +0,0 @@
1
- declare const Styles: () => JSX.Element;
2
- export default Styles;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface TimeInputProps {
3
- value?: string;
4
- onChange?: (time: string) => void;
5
- label?: string;
6
- rightAddon?: React.ReactNode | string;
7
- }
8
- declare const TimeInput: React.FC<TimeInputProps>;
9
- export default TimeInput;
@@ -1,3 +0,0 @@
1
- export { default as Datepicker } from './components/datepicker';
2
- export * from './components/datepicker';
3
- export * from './components/datepicker-month';
@@ -1,15 +0,0 @@
1
- import type { FormControlProps } from '@chakra-ui/react';
2
- import type { FC, PropsWithChildren, ReactNode } from 'react';
3
- export interface Props {
4
- label?: string | ReactNode;
5
- isError?: boolean;
6
- isSuccess?: boolean;
7
- errorMessage?: string | ReactNode;
8
- leftHelperText?: string | ReactNode;
9
- rightHelperText?: string | ReactNode;
10
- isRequired?: boolean;
11
- boxProps?: FormControlProps;
12
- }
13
- export declare type FieldProps<T = unknown> = Props & T;
14
- declare const Field: FC<PropsWithChildren<Props>>;
15
- export default Field;
@@ -1,2 +0,0 @@
1
- export { default as Field } from './components/field';
2
- export * from './components/field';
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- chakra: {
4
- theme: Record<string, any>;
5
- };
6
- title: string;
7
- decorators: ((Story: React.ElementType) => JSX.Element)[];
8
- };
9
- export default _default;
10
- export declare const Default: () => JSX.Element;
11
- export declare const Variant: () => JSX.Element;
12
- export declare const PasswordField: () => JSX.Element;
13
- export declare const WithClear: () => JSX.Element;
14
- export declare const WithElement: () => JSX.Element;
15
- export declare const WithAddOn: () => JSX.Element;