@clickhouse/click-ui 0.0.0-alpha

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.
Files changed (233) hide show
  1. package/README.md +11 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/assets/RightArrow/RightArrow.d.ts +1 -0
  4. package/dist/assets/S3Logo/S3Logo.d.ts +1 -0
  5. package/dist/click-ui.es.js +14187 -0
  6. package/dist/click-ui.umd.js +686 -0
  7. package/dist/components/Accordion/Accordion.d.ts +572 -0
  8. package/dist/components/Accordion/Accordion.stories.d.ts +293 -0
  9. package/dist/components/Accordion/Accordion.test.d.ts +1 -0
  10. package/dist/components/Alert/Alert.d.ts +16 -0
  11. package/dist/components/Alert/Alert.stories.d.ts +12 -0
  12. package/dist/components/Alert/Alert.test.d.ts +1 -0
  13. package/dist/components/Avatar/Avatar.d.ts +7 -0
  14. package/dist/components/Avatar/Avatar.stories.d.ts +11 -0
  15. package/dist/components/Badge/Badge.d.ts +16 -0
  16. package/dist/components/Badge/Badge.stories.d.ts +34 -0
  17. package/dist/components/Badge/Badge.test.d.ts +1 -0
  18. package/dist/components/BigStat/BigStat.d.ts +10 -0
  19. package/dist/components/BigStat/BigStat.stories.d.ts +20 -0
  20. package/dist/components/Button/Button.d.ts +16 -0
  21. package/dist/components/Button/Button.stories.d.ts +28 -0
  22. package/dist/components/Button/Button.test.d.ts +1 -0
  23. package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
  24. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +12 -0
  25. package/dist/components/CardPrimary/CardPrimary.d.ts +13 -0
  26. package/dist/components/CardPrimary/CardPrimary.stories.d.ts +18 -0
  27. package/dist/components/CardPrimary/CardPrimary.test.d.ts +1 -0
  28. package/dist/components/CardSecondary/CardSecondary.d.ts +15 -0
  29. package/dist/components/CardSecondary/CardSecondary.stories.d.ts +27 -0
  30. package/dist/components/CardSecondary/CardSecondary.test.d.ts +1 -0
  31. package/dist/components/Checkbox/Checkbox.d.ts +5 -0
  32. package/dist/components/Checkbox/Checkbox.stories.d.ts +29 -0
  33. package/dist/components/Checkbox/Checkbox.test.d.ts +1 -0
  34. package/dist/components/Collapsible/Collapsible.d.ts +34 -0
  35. package/dist/components/Collapsible/Collapsible.test.d.ts +1 -0
  36. package/dist/components/Collapsible/IconWrapper.d.ts +7 -0
  37. package/dist/components/ContextMenu/ContextMenu.d.ts +38 -0
  38. package/dist/components/ContextMenu/ContextMenu.stories.d.ts +30 -0
  39. package/dist/components/ContextMenu/ContextMenu.test.d.ts +1 -0
  40. package/dist/components/Dropdown/Dropdown.d.ts +38 -0
  41. package/dist/components/Dropdown/Dropdown.stories.d.ts +36 -0
  42. package/dist/components/Dropdown/Dropdown.test.d.ts +1 -0
  43. package/dist/components/FileTabs/FileTabs.d.ts +39 -0
  44. package/dist/components/FileTabs/FileTabs.stories.d.ts +23 -0
  45. package/dist/components/FileTabs/FileTabs.test.d.ts +0 -0
  46. package/dist/components/GenericMenu.d.ts +763 -0
  47. package/dist/components/HoverCard/HoverCard.d.ts +20 -0
  48. package/dist/components/HoverCard/HoverCard.stories.d.ts +36 -0
  49. package/dist/components/HoverCard/HoverCard.test.d.ts +0 -0
  50. package/dist/components/Icon/Icon.d.ts +484 -0
  51. package/dist/components/Icon/Icon.stories.d.ts +494 -0
  52. package/dist/components/Icon/IconCommon.d.ts +570 -0
  53. package/dist/components/Icon/types.d.ts +8 -0
  54. package/dist/components/IconButton/IconButton.d.ts +9 -0
  55. package/dist/components/IconButton/IconButton.stories.d.ts +30 -0
  56. package/dist/components/IconButton/IconButton.test.d.ts +1 -0
  57. package/dist/components/Input/InputWrapper.d.ts +797 -0
  58. package/dist/components/Input/NumberField.d.ts +8 -0
  59. package/dist/components/Input/NumberField.stories.d.ts +34 -0
  60. package/dist/components/Input/PasswordField.d.ts +8 -0
  61. package/dist/components/Input/PasswordField.stories.d.ts +34 -0
  62. package/dist/components/Input/SearchField.d.ts +9 -0
  63. package/dist/components/Input/SearchField.stories.d.ts +37 -0
  64. package/dist/components/Input/TextField.d.ts +10 -0
  65. package/dist/components/Input/TextField.stories.d.ts +43 -0
  66. package/dist/components/Label/Label.d.ts +7 -0
  67. package/dist/components/Label/Label.stories.d.ts +28 -0
  68. package/dist/components/Panel/Panel.d.ts +11 -0
  69. package/dist/components/Panel/Panel.stories.d.ts +23 -0
  70. package/dist/components/Popover/Popover.d.ts +23 -0
  71. package/dist/components/Popover/Popover.stories.d.ts +43 -0
  72. package/dist/components/Popover/Popover.test.d.ts +1 -0
  73. package/dist/components/RadioGroup/RadioGroup.d.ts +17 -0
  74. package/dist/components/RadioGroup/RadioGroup.stories.d.ts +39 -0
  75. package/dist/components/RadioGroup/RadioGroup.test.d.ts +1 -0
  76. package/dist/components/Select/Select.d.ts +43 -0
  77. package/dist/components/Select/Select.stories.d.ts +54 -0
  78. package/dist/components/Select/Select.test.d.ts +0 -0
  79. package/dist/components/Select/SelectContext.d.ts +24 -0
  80. package/dist/components/Select/useSelect.d.ts +8 -0
  81. package/dist/components/Separator/Separator.d.ts +6 -0
  82. package/dist/components/SidebarCollapsibleItem/SidebarCollapsibleItem.d.ts +15 -0
  83. package/dist/components/SidebarCollapsibleItem/SidebarCollapsibleItem.stories.d.ts +14 -0
  84. package/dist/components/SidebarCollapsibleItem/SidebarCollapsibleItem.test.d.ts +1 -0
  85. package/dist/components/SidebarCollapsibleTitle/SidebarCollapsibleTitle.d.ts +12 -0
  86. package/dist/components/SidebarCollapsibleTitle/SidebarCollapsibleTitle.stories.d.ts +14 -0
  87. package/dist/components/SidebarCollapsibleTitle/SidebarCollapsibleTitle.test.d.ts +1 -0
  88. package/dist/components/SidebarNavigationItem/SidebarNavigationItem.d.ts +15 -0
  89. package/dist/components/SidebarNavigationItem/SidebarNavigationItem.stories.d.ts +13 -0
  90. package/dist/components/SidebarNavigationItem/SidebarNavigationItem.test.d.ts +1 -0
  91. package/dist/components/SidebarNavigationTitle/SidebarNavigationTitle.d.ts +12 -0
  92. package/dist/components/SidebarNavigationTitle/SidebarNavigationTitle.stories.d.ts +13 -0
  93. package/dist/components/SidebarNavigationTitle/SidebarNavigationTitle.test.d.ts +1 -0
  94. package/dist/components/Spacer/Spacer.d.ts +6 -0
  95. package/dist/components/Spacer/Spacer.stories.d.ts +19 -0
  96. package/dist/components/SplitButton/SplitButton.d.ts +32 -0
  97. package/dist/components/SplitButton/SplitButton.stories.d.ts +28 -0
  98. package/dist/components/SplitButton/SplitButton.test.d.ts +1 -0
  99. package/dist/components/Switch/Switch.d.ts +8 -0
  100. package/dist/components/Table/Table.d.ts +568 -0
  101. package/dist/components/Table/Table.stories.d.ts +575 -0
  102. package/dist/components/Tabs/Tabs.d.ts +848 -0
  103. package/dist/components/Tabs/Tabs.stories.d.ts +845 -0
  104. package/dist/components/Tabs/Tabs.test.d.ts +1 -0
  105. package/dist/components/Tooltip/Tooltip.d.ts +17 -0
  106. package/dist/components/Tooltip/Tooltip.stories.d.ts +45 -0
  107. package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
  108. package/dist/components/Typography/Text/Text.d.ts +19 -0
  109. package/dist/components/Typography/Text/Text.stories.d.ts +29 -0
  110. package/dist/components/Typography/Text/Text.test.d.ts +1 -0
  111. package/dist/components/Typography/Title/Title.d.ts +14 -0
  112. package/dist/components/Typography/Title/Title.stories.d.ts +35 -0
  113. package/dist/components/Typography/Title/Title.test.d.ts +1 -0
  114. package/dist/components/commonElement.d.ts +1382 -0
  115. package/dist/components/icons/Activity.d.ts +3 -0
  116. package/dist/components/icons/ArrowDown.d.ts +3 -0
  117. package/dist/components/icons/ArrowRight.d.ts +3 -0
  118. package/dist/components/icons/ArrowTriangle.d.ts +3 -0
  119. package/dist/components/icons/ArrowUp.d.ts +3 -0
  120. package/dist/components/icons/Backups.d.ts +3 -0
  121. package/dist/components/icons/Blog.d.ts +3 -0
  122. package/dist/components/icons/Book.d.ts +3 -0
  123. package/dist/components/icons/Brackets.d.ts +3 -0
  124. package/dist/components/icons/Briefcase.d.ts +3 -0
  125. package/dist/components/icons/Building.d.ts +3 -0
  126. package/dist/components/icons/BurgerMenu.d.ts +3 -0
  127. package/dist/components/icons/Cards.d.ts +3 -0
  128. package/dist/components/icons/CellTower.d.ts +3 -0
  129. package/dist/components/icons/ChatIcon.d.ts +3 -0
  130. package/dist/components/icons/CheckIcon.d.ts +3 -0
  131. package/dist/components/icons/CheckInCircle.d.ts +3 -0
  132. package/dist/components/icons/ChevronDown.d.ts +2 -0
  133. package/dist/components/icons/ChevronLeft.d.ts +3 -0
  134. package/dist/components/icons/ChevronRight.d.ts +2 -0
  135. package/dist/components/icons/ChevronUp.d.ts +3 -0
  136. package/dist/components/icons/Clock.d.ts +3 -0
  137. package/dist/components/icons/Cloud.d.ts +3 -0
  138. package/dist/components/icons/Code.d.ts +3 -0
  139. package/dist/components/icons/CodeInSquare.d.ts +3 -0
  140. package/dist/components/icons/Connect.d.ts +3 -0
  141. package/dist/components/icons/ConnectAlt.d.ts +3 -0
  142. package/dist/components/icons/Console.d.ts +3 -0
  143. package/dist/components/icons/Copy.d.ts +3 -0
  144. package/dist/components/icons/CrossIcon.d.ts +3 -0
  145. package/dist/components/icons/Data.d.ts +3 -0
  146. package/dist/components/icons/DatabaseIcon.d.ts +3 -0
  147. package/dist/components/icons/Disk.d.ts +3 -0
  148. package/dist/components/icons/Display.d.ts +3 -0
  149. package/dist/components/icons/Document.d.ts +3 -0
  150. package/dist/components/icons/DotsHorizontal.d.ts +3 -0
  151. package/dist/components/icons/DotsVertical.d.ts +3 -0
  152. package/dist/components/icons/Email.d.ts +3 -0
  153. package/dist/components/icons/Empty.d.ts +3 -0
  154. package/dist/components/icons/Eye.d.ts +3 -0
  155. package/dist/components/icons/EyeClosed.d.ts +3 -0
  156. package/dist/components/icons/FilterIcon.d.ts +3 -0
  157. package/dist/components/icons/Fire.d.ts +3 -0
  158. package/dist/components/icons/Flags/EuropeanUnion.d.ts +3 -0
  159. package/dist/components/icons/Flags/Germany.d.ts +3 -0
  160. package/dist/components/icons/Flags/India.d.ts +3 -0
  161. package/dist/components/icons/Flags/Ireland.d.ts +3 -0
  162. package/dist/components/icons/Flags/Netherlands.d.ts +3 -0
  163. package/dist/components/icons/Flags/Singapore.d.ts +3 -0
  164. package/dist/components/icons/Flags/UnitedKingdom.d.ts +3 -0
  165. package/dist/components/icons/Flags/UnitedStates.d.ts +3 -0
  166. package/dist/components/icons/Flags/index.d.ts +6 -0
  167. package/dist/components/icons/Folder.d.ts +3 -0
  168. package/dist/components/icons/Gift.d.ts +3 -0
  169. package/dist/components/icons/HistoryIcon.d.ts +3 -0
  170. package/dist/components/icons/Home.d.ts +3 -0
  171. package/dist/components/icons/Http.d.ts +3 -0
  172. package/dist/components/icons/InfoInCircleIcon.d.ts +3 -0
  173. package/dist/components/icons/InformationIcon.d.ts +3 -0
  174. package/dist/components/icons/InsertRowIcon.d.ts +3 -0
  175. package/dist/components/icons/Integrations.d.ts +3 -0
  176. package/dist/components/icons/LightBulb.d.ts +3 -0
  177. package/dist/components/icons/Lightening.d.ts +3 -0
  178. package/dist/components/icons/Loading.d.ts +3 -0
  179. package/dist/components/icons/LoadingAnimated.d.ts +482 -0
  180. package/dist/components/icons/Metrics.d.ts +3 -0
  181. package/dist/components/icons/MetricsAlt.d.ts +3 -0
  182. package/dist/components/icons/Payment.d.ts +3 -0
  183. package/dist/components/icons/Payments/Amex.d.ts +3 -0
  184. package/dist/components/icons/Payments/MasterCard.d.ts +3 -0
  185. package/dist/components/icons/Payments/Paypal.d.ts +3 -0
  186. package/dist/components/icons/Payments/Visa.d.ts +3 -0
  187. package/dist/components/icons/Payments/index.d.ts +6 -0
  188. package/dist/components/icons/Pencil.d.ts +3 -0
  189. package/dist/components/icons/PieChart.d.ts +3 -0
  190. package/dist/components/icons/Play.d.ts +3 -0
  191. package/dist/components/icons/Plus.d.ts +3 -0
  192. package/dist/components/icons/Popout.d.ts +3 -0
  193. package/dist/components/icons/PopoverArrow.d.ts +3 -0
  194. package/dist/components/icons/Question.d.ts +3 -0
  195. package/dist/components/icons/Refresh.d.ts +3 -0
  196. package/dist/components/icons/Search.d.ts +3 -0
  197. package/dist/components/icons/Secure.d.ts +3 -0
  198. package/dist/components/icons/Services.d.ts +3 -0
  199. package/dist/components/icons/Settings.d.ts +3 -0
  200. package/dist/components/icons/Share.d.ts +3 -0
  201. package/dist/components/icons/SlideIn.d.ts +3 -0
  202. package/dist/components/icons/SlideOut.d.ts +3 -0
  203. package/dist/components/icons/SortAltIcon.d.ts +3 -0
  204. package/dist/components/icons/SortIcon.d.ts +3 -0
  205. package/dist/components/icons/Sparkle.d.ts +3 -0
  206. package/dist/components/icons/Speaker.d.ts +3 -0
  207. package/dist/components/icons/Speed.d.ts +3 -0
  208. package/dist/components/icons/Star.d.ts +3 -0
  209. package/dist/components/icons/Support.d.ts +3 -0
  210. package/dist/components/icons/Table.d.ts +3 -0
  211. package/dist/components/icons/Taxi.d.ts +3 -0
  212. package/dist/components/icons/Trash.d.ts +3 -0
  213. package/dist/components/icons/Upload.d.ts +3 -0
  214. package/dist/components/icons/Url.d.ts +3 -0
  215. package/dist/components/icons/UserIcon.d.ts +2 -0
  216. package/dist/components/icons/UsersIcon.d.ts +2 -0
  217. package/dist/components/icons/WarningIcon.d.ts +3 -0
  218. package/dist/components/index.d.ts +36 -0
  219. package/dist/components/types.d.ts +59 -0
  220. package/dist/favicon.ico +0 -0
  221. package/dist/index.d.ts +2 -0
  222. package/dist/logo.svg +17 -0
  223. package/dist/main.d.ts +0 -0
  224. package/dist/styles/types.d.ts +2266 -0
  225. package/dist/styles/variables.classic.json.d.ts +268 -0
  226. package/dist/styles/variables.dark.json.d.ts +954 -0
  227. package/dist/styles/variables.json.d.ts +2268 -0
  228. package/dist/styles/variables.light.json.d.ts +1006 -0
  229. package/dist/theme/index.d.ts +10 -0
  230. package/dist/theme/theme.d.ts +6 -0
  231. package/dist/utils/mergeRefs.d.ts +2 -0
  232. package/dist/vite.svg +1 -0
  233. package/package.json +108 -0
@@ -0,0 +1,8 @@
1
+ import { ChangeEvent, InputHTMLAttributes } from "react";
2
+ import { WrapperProps } from "./InputWrapper";
3
+ export interface NumberFieldProps extends Omit<WrapperProps, "id" | "children">, Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> {
4
+ type?: "number";
5
+ loading: boolean;
6
+ onChange: (inputValue: string, e?: ChangeEvent<HTMLInputElement>) => void;
7
+ }
8
+ export declare const NumberField: import("react").ForwardRefExoticComponent<NumberFieldProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,34 @@
1
+ import { NumberFieldProps } from "./NumberField";
2
+ declare const _default: {
3
+ component: ({ value: valueProp, ...props }: Omit<NumberFieldProps, "onChange">) => import("react/jsx-runtime").JSX.Element;
4
+ title: string;
5
+ tags: string[];
6
+ argTypes: {
7
+ value: {
8
+ control: string;
9
+ };
10
+ label: {
11
+ control: string;
12
+ };
13
+ error: {
14
+ control: string;
15
+ };
16
+ disabled: {
17
+ control: string;
18
+ };
19
+ placeholder: {
20
+ control: string;
21
+ };
22
+ readOnly: {
23
+ control: string;
24
+ };
25
+ };
26
+ };
27
+ export default _default;
28
+ export declare const Playground: {
29
+ args: {
30
+ label: string;
31
+ disabled: boolean;
32
+ placeholder: string;
33
+ };
34
+ };
@@ -0,0 +1,8 @@
1
+ import { ChangeEvent, InputHTMLAttributes } from "react";
2
+ import { WrapperProps } from "./InputWrapper";
3
+ export interface PasswordFieldProps extends Omit<WrapperProps, "id" | "children">, Omit<InputHTMLAttributes<HTMLInputElement>, "children" | "type" | "string" | "onChange"> {
4
+ type?: "password";
5
+ value?: string;
6
+ onChange: (inputValue: string, e?: ChangeEvent<HTMLInputElement>) => void;
7
+ }
8
+ export declare const PasswordField: import("react").ForwardRefExoticComponent<PasswordFieldProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,34 @@
1
+ import { PasswordFieldProps } from "./PasswordField";
2
+ declare const _default: {
3
+ component: ({ value: valueProp, ...props }: Omit<PasswordFieldProps, "onChange">) => import("react/jsx-runtime").JSX.Element;
4
+ title: string;
5
+ tags: string[];
6
+ argTypes: {
7
+ value: {
8
+ control: string;
9
+ };
10
+ label: {
11
+ control: string;
12
+ };
13
+ error: {
14
+ control: string;
15
+ };
16
+ disabled: {
17
+ control: string;
18
+ };
19
+ placeholder: {
20
+ control: string;
21
+ };
22
+ readOnly: {
23
+ control: string;
24
+ };
25
+ };
26
+ };
27
+ export default _default;
28
+ export declare const Playground: {
29
+ args: {
30
+ label: string;
31
+ disabled: boolean;
32
+ placeholder: string;
33
+ };
34
+ };
@@ -0,0 +1,9 @@
1
+ import { ChangeEvent, InputHTMLAttributes } from "react";
2
+ import { WrapperProps } from "./InputWrapper";
3
+ export interface SearchFieldProps extends Omit<WrapperProps, "id" | "children">, Omit<InputHTMLAttributes<HTMLInputElement>, "children" | "type" | "string" | "onChange"> {
4
+ loading?: boolean;
5
+ value?: string;
6
+ clear?: boolean;
7
+ onChange: (inputValue: string, e?: ChangeEvent<HTMLInputElement>) => void;
8
+ }
9
+ export declare const SearchField: import("react").ForwardRefExoticComponent<SearchFieldProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,37 @@
1
+ import { SearchFieldProps } from "./SearchField";
2
+ declare const _default: {
3
+ component: ({ value: valueProp, ...props }: Omit<SearchFieldProps, "onChange">) => import("react/jsx-runtime").JSX.Element;
4
+ title: string;
5
+ tags: string[];
6
+ argTypes: {
7
+ value: {
8
+ control: string;
9
+ };
10
+ clear: {
11
+ control: string;
12
+ };
13
+ label: {
14
+ control: string;
15
+ };
16
+ error: {
17
+ control: string;
18
+ };
19
+ disabled: {
20
+ control: string;
21
+ };
22
+ placeholder: {
23
+ control: string;
24
+ };
25
+ readOnly: {
26
+ control: string;
27
+ };
28
+ };
29
+ };
30
+ export default _default;
31
+ export declare const Playground: {
32
+ args: {
33
+ label: string;
34
+ disabled: boolean;
35
+ placeholder: string;
36
+ };
37
+ };
@@ -0,0 +1,10 @@
1
+ import { ChangeEvent, InputHTMLAttributes } from "react";
2
+ import { WrapperProps } from "./InputWrapper";
3
+ export interface TextFieldProps extends Omit<WrapperProps, "id" | "children">, Omit<InputHTMLAttributes<HTMLInputElement>, "children" | "type" | "value" | "onChange"> {
4
+ type?: "text" | "email" | "tel" | "url";
5
+ loading?: boolean;
6
+ value?: string;
7
+ clear?: boolean;
8
+ onChange: (inputValue: string, e?: ChangeEvent<HTMLInputElement>) => void;
9
+ }
10
+ export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,43 @@
1
+ import { TextFieldProps } from "./TextField";
2
+ declare const _default: {
3
+ component: ({ value: valueProp, ...props }: Omit<TextFieldProps, "onChange">) => import("react/jsx-runtime").JSX.Element;
4
+ title: string;
5
+ tags: string[];
6
+ argTypes: {
7
+ type: {
8
+ control: string;
9
+ options: string[];
10
+ };
11
+ value: {
12
+ control: string;
13
+ };
14
+ clear: {
15
+ control: string;
16
+ };
17
+ label: {
18
+ control: string;
19
+ };
20
+ error: {
21
+ control: string;
22
+ };
23
+ disabled: {
24
+ control: string;
25
+ };
26
+ placeholder: {
27
+ control: string;
28
+ };
29
+ readOnly: {
30
+ control: string;
31
+ };
32
+ };
33
+ };
34
+ export default _default;
35
+ export declare const Playground: {
36
+ args: {
37
+ label: string;
38
+ clear: boolean;
39
+ type: string;
40
+ disabled: boolean;
41
+ placeholder: string;
42
+ };
43
+ };
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from "react";
2
+ export interface LabelProps extends HTMLAttributes<HTMLLabelElement> {
3
+ disabled?: boolean;
4
+ error?: boolean;
5
+ htmlFor?: string;
6
+ }
7
+ export declare const Label: ({ disabled, error, children, ...props }: LabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ component: ({ disabled, error, text, }: {
3
+ disabled: boolean;
4
+ error: boolean;
5
+ text: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ title: string;
8
+ tags: string[];
9
+ argTypes: {
10
+ disabled: {
11
+ control: string;
12
+ };
13
+ error: {
14
+ control: string;
15
+ };
16
+ text: {
17
+ control: string;
18
+ };
19
+ };
20
+ };
21
+ export default _default;
22
+ export declare const Default: {
23
+ args: {
24
+ text: string;
25
+ error: boolean;
26
+ disabled: boolean;
27
+ };
28
+ };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export type panelPadding = "none" | "xs" | "sm" | "md" | "lg" | "xl";
3
+ export type panelColor = "default" | "muted" | "transparent";
4
+ export interface panelProps {
5
+ hasBorder?: boolean;
6
+ hasShadow?: boolean;
7
+ color?: panelColor;
8
+ padding?: panelPadding;
9
+ children?: React.ReactNode;
10
+ }
11
+ export declare const Panel: ({ hasBorder, hasShadow, color, padding, children }: panelProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ declare const _default: {
2
+ component: ({ hasBorder, hasShadow, color, padding, children }: import("./Panel").panelProps) => import("react/jsx-runtime").JSX.Element;
3
+ title: string;
4
+ tags: string[];
5
+ argTypes: {
6
+ padding: {
7
+ options: string[];
8
+ control: {
9
+ type: string;
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
15
+ export declare const Playground: {
16
+ args: {
17
+ color: string;
18
+ padding: string;
19
+ hasBorder: boolean;
20
+ hasShadow: boolean;
21
+ children: import("react/jsx-runtime").JSX.Element;
22
+ };
23
+ };
@@ -0,0 +1,23 @@
1
+ import * as RadixPopover from "@radix-ui/react-popover";
2
+ import { ReactNode } from "react";
3
+ export declare const Popover: {
4
+ ({ children, ...props }: RadixPopover.PopoverProps): import("react/jsx-runtime").JSX.Element;
5
+ Trigger: {
6
+ ({ children, anchor, ...props }: TriggerProps): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
9
+ Content: {
10
+ ({ children, showArrow, showClose, forceMount, container, ...props }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ };
14
+ interface TriggerProps extends RadixPopover.PopoverTriggerProps {
15
+ anchor?: ReactNode;
16
+ }
17
+ interface PopoverContentProps extends RadixPopover.PopoverContentProps {
18
+ showArrow?: boolean;
19
+ showClose?: boolean;
20
+ forceMount?: true;
21
+ container?: HTMLElement | null;
22
+ }
23
+ export {};
@@ -0,0 +1,43 @@
1
+ declare const _default: {
2
+ component: ({ open, modal, showArrow, showClose, forceMount, side, }: {
3
+ open: "default" | "open" | "closed";
4
+ modal: boolean;
5
+ showArrow: boolean;
6
+ showClose: boolean;
7
+ forceMount?: boolean | undefined;
8
+ side: "top" | "right" | "bottom" | "left";
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ title: string;
11
+ tags: string[];
12
+ argTypes: {
13
+ open: {
14
+ control: string;
15
+ options: string[];
16
+ };
17
+ modal: {
18
+ control: string;
19
+ };
20
+ showArrow: {
21
+ control: string;
22
+ };
23
+ showClose: {
24
+ control: string;
25
+ };
26
+ forceMount: {
27
+ control: string;
28
+ };
29
+ side: {
30
+ control: string;
31
+ options: string[];
32
+ };
33
+ };
34
+ };
35
+ export default _default;
36
+ export declare const Default: {
37
+ args: {
38
+ open: string;
39
+ showArrow: boolean;
40
+ showClose: boolean;
41
+ side: string;
42
+ };
43
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import * as RadixRadioGroup from "@radix-ui/react-radio-group";
2
+ import { HTMLAttributes, ReactNode } from "react";
3
+ export interface RadioGroupProps extends RadixRadioGroup.RadioGroupProps {
4
+ inline?: boolean;
5
+ }
6
+ export declare const RadioGroup: {
7
+ ({ children, inline, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
8
+ Item: {
9
+ ({ id, label, value, disabled, required, ...props }: RadioGroupItemProps): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ };
13
+ interface RadioGroupInputProps extends RadixRadioGroup.RadioGroupItemProps {
14
+ label?: ReactNode;
15
+ }
16
+ export type RadioGroupItemProps = RadioGroupInputProps & HTMLAttributes<HTMLDivElement>;
17
+ export {};
@@ -0,0 +1,39 @@
1
+ import { RadioGroupProps } from "./RadioGroup";
2
+ declare const _default: {
3
+ component: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
4
+ title: string;
5
+ tags: string[];
6
+ argTypes: {
7
+ disabled: {
8
+ control: string;
9
+ };
10
+ required: {
11
+ control: string;
12
+ };
13
+ inline: {
14
+ control: string;
15
+ };
16
+ dir: {
17
+ control: string;
18
+ options: string[];
19
+ };
20
+ orientation: {
21
+ control: string;
22
+ options: string[];
23
+ };
24
+ loop: {
25
+ control: string;
26
+ options: (boolean | undefined)[];
27
+ };
28
+ value: {
29
+ control: string;
30
+ options: (string | undefined)[];
31
+ };
32
+ };
33
+ };
34
+ export default _default;
35
+ export declare const Default: {
36
+ args: {
37
+ disabled: boolean;
38
+ };
39
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,43 @@
1
+ import { HTMLAttributes, ReactNode } from "react";
2
+ import * as RadixPopover from "@radix-ui/react-popover";
3
+ interface Props extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
4
+ placeholder?: string;
5
+ label?: ReactNode;
6
+ children: ReactNode;
7
+ error?: ReactNode;
8
+ showSearch?: boolean;
9
+ disabled?: boolean;
10
+ defaultValue?: string;
11
+ onChange?: (value: string) => void;
12
+ name?: string;
13
+ required?: boolean;
14
+ isFormControl?: boolean;
15
+ value?: string;
16
+ }
17
+ declare type DivProps = HTMLAttributes<HTMLDivElement>;
18
+ export type SelectProps = RadixPopover.PopoverProps & Props;
19
+ export declare const Select: {
20
+ ({ placeholder, label, children, disabled, id, error, value, defaultValue, onChange, open, defaultOpen, onOpenChange, name, required, isFormControl, showSearch, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
21
+ Group: import("react").ForwardRefExoticComponent<GroupProps & import("react").RefAttributes<HTMLDivElement>>;
22
+ Item: import("react").ForwardRefExoticComponent<ItemProps & import("react").RefAttributes<HTMLDivElement>>;
23
+ NoData: {
24
+ ({ children, onClick, ...props }: SelectNoDataProps): ReactNode;
25
+ displayName: string;
26
+ };
27
+ };
28
+ interface GroupProps extends Omit<DivProps, "value" | "heading"> {
29
+ heading?: ReactNode;
30
+ value?: string;
31
+ }
32
+ interface ItemProps extends Omit<DivProps, "disabled" | "onSelect" | "value"> {
33
+ separator?: boolean;
34
+ disabled?: boolean;
35
+ onSelect?: (value: string) => void;
36
+ value?: string;
37
+ }
38
+ type SelectNoDataProps = Omit<HTMLAttributes<HTMLButtonElement>, "children"> & {
39
+ children?: (props: {
40
+ search: string;
41
+ }) => ReactNode;
42
+ };
43
+ export {};
@@ -0,0 +1,54 @@
1
+ import { SelectProps } from "./Select";
2
+ interface Props extends SelectProps {
3
+ clickableNoData?: boolean;
4
+ }
5
+ declare const _default: {
6
+ component: ({ clickableNoData, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ title: string;
8
+ tags: string[];
9
+ argTypes: {
10
+ label: {
11
+ control: string;
12
+ };
13
+ disabled: {
14
+ control: string;
15
+ };
16
+ error: {
17
+ control: string;
18
+ };
19
+ value: {
20
+ control: string;
21
+ };
22
+ defaultValue: {
23
+ control: string;
24
+ };
25
+ open: {
26
+ control: string;
27
+ options: (boolean | undefined)[];
28
+ };
29
+ defaultOpen: {
30
+ control: string;
31
+ };
32
+ name: {
33
+ control: string;
34
+ };
35
+ required: {
36
+ control: string;
37
+ };
38
+ showSearch: {
39
+ control: string;
40
+ };
41
+ isFormCotrol: {
42
+ control: string;
43
+ };
44
+ clickableNoData: {
45
+ control: string;
46
+ };
47
+ };
48
+ };
49
+ export default _default;
50
+ export declare const Playground: {
51
+ args: {
52
+ label: string;
53
+ };
54
+ };
File without changes
@@ -0,0 +1,24 @@
1
+ import { ReactElement, ReactNode } from "react";
2
+ type ContextProps = {
3
+ selectedValue?: string | null;
4
+ onSelect: (value: string) => void;
5
+ popperOpen: boolean;
6
+ valueNode: ReactNode | null;
7
+ onOpenChange: (value: boolean) => void;
8
+ };
9
+ export declare const SelectContext: import("react").Context<ContextProps>;
10
+ type Props = {
11
+ children: ReactNode;
12
+ value?: string;
13
+ defaultValue?: string;
14
+ updateValueNode: (value?: string) => ReactElement | null;
15
+ defaultOpen?: boolean;
16
+ onOpenChange?: (value: boolean) => void;
17
+ onChange?: (value: string) => void;
18
+ };
19
+ export declare const SelectProvider: ({ value, children, }: {
20
+ children: ReactNode;
21
+ value: ContextProps;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const SelectContextProvider: ({ children, value, defaultValue, updateValueNode, defaultOpen, onOpenChange: onOpenChangeProp, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
24
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const useSelect: () => {
3
+ selectedValue?: string | null | undefined;
4
+ onSelect: (value: string) => void;
5
+ popperOpen: boolean;
6
+ valueNode: import("react").ReactNode;
7
+ onOpenChange: (value: boolean) => void;
8
+ };
@@ -0,0 +1,6 @@
1
+ import * as RadixSeparator from "@radix-ui/react-separator";
2
+ interface Props extends RadixSeparator.SeparatorProps {
3
+ size: "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
4
+ }
5
+ declare const Separator: ({ orientation, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default Separator;
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes, ReactNode } from "react";
2
+ import { HorizontalDirection, IconName } from '../../components';
3
+ export interface SidebarCollapsibleItemProps extends HTMLAttributes<HTMLDivElement> {
4
+ label: ReactNode;
5
+ children: ReactNode;
6
+ open?: boolean;
7
+ onOpenChange?: (value: boolean) => void;
8
+ iconDir?: HorizontalDirection;
9
+ icon?: IconName;
10
+ indicatorDir?: HorizontalDirection;
11
+ selected?: boolean;
12
+ level?: number;
13
+ }
14
+ declare const SidebarCollapsibleItem: ({ label, children, open, onOpenChange, iconDir, indicatorDir, icon, level, selected, ...props }: SidebarCollapsibleItemProps) => import("react/jsx-runtime").JSX.Element | undefined;
15
+ export { SidebarCollapsibleItem };
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ component: ({ label, children, open, onOpenChange, iconDir, indicatorDir, icon, level, selected, ...props }: import('../../components').SidebarCollapsibleItemProps) => import("react/jsx-runtime").JSX.Element | undefined;
3
+ title: string;
4
+ tags: string[];
5
+ };
6
+ export default _default;
7
+ export declare const Default: {
8
+ args: {
9
+ icon: string;
10
+ selected: boolean;
11
+ label: import("react/jsx-runtime").JSX.Element;
12
+ children: import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ };
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from "react";
2
+ import { HorizontalDirection, IconName } from '../../components';
3
+ export interface SidebarCollapsibleTitleProps extends React.HTMLAttributes<HTMLButtonElement> {
4
+ label: ReactNode;
5
+ children: React.ReactNode;
6
+ open?: boolean;
7
+ onOpenChange?: (value: boolean) => void;
8
+ iconDir?: HorizontalDirection;
9
+ icon?: IconName;
10
+ selected?: boolean;
11
+ }
12
+ export declare const SidebarCollapsibleTitle: ({ label, children, open, onOpenChange, iconDir, icon, selected, ...props }: SidebarCollapsibleTitleProps) => import("react/jsx-runtime").JSX.Element | undefined;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ component: ({ label, children, open, onOpenChange, iconDir, icon, selected, ...props }: import('../../components').SidebarCollapsibleTitleProps) => import("react/jsx-runtime").JSX.Element | undefined;
3
+ title: string;
4
+ tags: string[];
5
+ };
6
+ export default _default;
7
+ export declare const Default: {
8
+ args: {
9
+ icon: string;
10
+ label: string;
11
+ selected: boolean;
12
+ children: import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ };
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes, ReactNode } from "react";
2
+ import { HorizontalDirection, IconName } from '../../components';
3
+ export interface SidebarNavigationItemProps extends HTMLAttributes<HTMLButtonElement> {
4
+ label: ReactNode;
5
+ selected?: boolean;
6
+ level?: number;
7
+ icon?: IconName;
8
+ iconDir?: HorizontalDirection;
9
+ }
10
+ declare const SidebarNavigationItem: ({ label, level, icon, selected, iconDir, ...props }: SidebarNavigationItemProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const SidebarItemWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
12
+ $collapsible?: boolean | undefined;
13
+ $level: number;
14
+ }>>;
15
+ export { SidebarNavigationItem };
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ component: ({ label, level, icon, selected, iconDir, ...props }: import('../../components').SidebarNavigationItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ title: string;
4
+ tags: string[];
5
+ };
6
+ export default _default;
7
+ export declare const Default: {
8
+ args: {
9
+ icon: string;
10
+ selected: boolean;
11
+ label: import("react/jsx-runtime").JSX.Element;
12
+ };
13
+ };
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes, ReactNode } from "react";
2
+ import { HorizontalDirection, IconName } from '../../components';
3
+ export interface SidebarNavigationTitleProps extends HTMLAttributes<HTMLButtonElement> {
4
+ label: ReactNode;
5
+ selected?: boolean;
6
+ icon?: IconName;
7
+ iconDir?: HorizontalDirection;
8
+ }
9
+ export declare const SidebarNavigationTitle: ({ label, icon, iconDir, selected, ...props }: SidebarNavigationTitleProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const SidebarTitleWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
11
+ $collapsible?: boolean | undefined;
12
+ }>>;