@koine/react 1.0.1 → 1.0.2

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 (152) hide show
  1. package/Alert/Alert.d.ts +5 -0
  2. package/Alert/index.d.ts +1 -0
  3. package/Animations/Reveal.d.ts +4 -0
  4. package/Animations/Underline.d.ts +1 -0
  5. package/Animations/index.d.ts +3 -0
  6. package/Animations/useReveal.d.ts +34 -0
  7. package/Autocomplete/AutocompleteDownshift.d.ts +1 -0
  8. package/Autocomplete/AutocompleteDownshiftMultiselect.d.ts +1 -0
  9. package/Autocomplete/AutocompleteMui.d.ts +47 -0
  10. package/Autocomplete/AutocompleteReach.d.ts +1 -0
  11. package/Autocomplete/components.d.ts +21 -0
  12. package/Autocomplete/helpers.d.ts +3 -0
  13. package/Autocomplete/index.d.ts +2 -0
  14. package/Bg/BgColor.d.ts +36 -0
  15. package/Bg/BgPhoto.d.ts +14 -0
  16. package/Bg/BgSvg.d.ts +8 -0
  17. package/Bg/index.d.ts +3 -0
  18. package/Breadcrumbs/Breadcrumbs.d.ts +14 -0
  19. package/Breadcrumbs/index.d.ts +1 -0
  20. package/Buttons/Button.d.ts +18 -0
  21. package/Buttons/ButtonComposite.d.ts +23 -0
  22. package/Buttons/ButtonFab.d.ts +7 -0
  23. package/Buttons/ButtonLink.d.ts +9 -0
  24. package/Buttons/IconButton.d.ts +11 -0
  25. package/Buttons/index.d.ts +5 -0
  26. package/Calendar/CalendarDaygridCell.d.ts +36 -0
  27. package/Calendar/CalendarDaygridNav.d.ts +28 -0
  28. package/Calendar/CalendarDaygridTable.d.ts +26 -0
  29. package/Calendar/CalendarLegend.d.ts +19 -0
  30. package/Calendar/calendar-api-google.d.ts +18 -0
  31. package/Calendar/index.d.ts +6 -0
  32. package/Calendar/types.d.ts +81 -0
  33. package/Calendar/useCalendar.d.ts +50 -0
  34. package/Calendar/utils.d.ts +11 -0
  35. package/Carousel/Carousel.d.ts +1 -0
  36. package/Carousel/CarouselCss.d.ts +47 -0
  37. package/Carousel/index.d.ts +1 -0
  38. package/Collapsable/Collapsable.d.ts +60 -0
  39. package/Collapsable/index.d.ts +1 -0
  40. package/Debug/Debug.d.ts +5 -0
  41. package/Debug/index.d.ts +1 -0
  42. package/Dialog/Dialog.d.ts +23 -0
  43. package/Dialog/index.d.ts +1 -0
  44. package/Editor/Editor--tiptap.d.ts +10 -0
  45. package/Editor/components.d.ts +8 -0
  46. package/Editor/index.d.ts +1 -0
  47. package/Favicon/FaviconTags.d.ts +19 -0
  48. package/Favicon/index.d.ts +1 -0
  49. package/Forms/Checkbox/Checkbox.d.ts +11 -0
  50. package/Forms/Checkbox/index.d.ts +1 -0
  51. package/Forms/Feedback/Feedback.d.ts +5 -0
  52. package/Forms/Feedback/index.d.ts +1 -0
  53. package/Forms/Field/Field.d.ts +16 -0
  54. package/Forms/Field/FieldControl.d.ts +26 -0
  55. package/Forms/Field/FieldHint.d.ts +1 -0
  56. package/Forms/Field/index.d.ts +2 -0
  57. package/Forms/Form/Form.d.ts +31 -0
  58. package/Forms/Form/index.d.ts +1 -0
  59. package/Forms/Input/Input.d.ts +9 -0
  60. package/Forms/Input/index.d.ts +1 -0
  61. package/Forms/InputGroup/InputGroup.d.ts +13 -0
  62. package/Forms/InputGroup/index.d.ts +1 -0
  63. package/Forms/Label/Label.d.ts +3 -0
  64. package/Forms/Label/index.d.ts +1 -0
  65. package/Forms/Password/Password.d.ts +5 -0
  66. package/Forms/Password/index.d.ts +1 -0
  67. package/Forms/Radio/Radio.d.ts +12 -0
  68. package/Forms/Radio/index.d.ts +1 -0
  69. package/Forms/Switch/Switch.d.ts +9 -0
  70. package/Forms/Switch/index.d.ts +1 -0
  71. package/Forms/Textarea/Textarea.d.ts +5 -0
  72. package/Forms/Textarea/TextareaRich.d.ts +6 -0
  73. package/Forms/Textarea/index.d.ts +2 -0
  74. package/Forms/Toggle/Toggle.d.ts +26 -0
  75. package/Forms/Toggle/index.d.ts +1 -0
  76. package/Forms/Toggle/useToggle.d.ts +46 -0
  77. package/Forms/antispam.d.ts +24 -0
  78. package/Forms/helpers.d.ts +26 -0
  79. package/Forms/index.d.ts +16 -0
  80. package/Forms/styles.d.ts +20 -0
  81. package/Gauge/Gauge.d.ts +5 -0
  82. package/Grid/Grid.d.ts +60 -0
  83. package/Grid/index.d.ts +1 -0
  84. package/Hamburger/Hamburger.d.ts +6 -0
  85. package/Hamburger/index.d.ts +1 -0
  86. package/Header/index.d.ts +1 -0
  87. package/Header/useHeader.d.ts +20 -0
  88. package/Hidden/Hidden.d.ts +6 -0
  89. package/Hidden/index.d.ts +1 -0
  90. package/Img/Img.d.ts +11 -0
  91. package/Img/index.d.ts +1 -0
  92. package/Link/Link.d.ts +5 -0
  93. package/Link/LinkBlank.d.ts +8 -0
  94. package/Link/index.d.ts +2 -0
  95. package/Menu/Menu.d.ts +1 -0
  96. package/Menu/index.d.ts +1 -0
  97. package/MenuItem/MenuItem.d.ts +4 -0
  98. package/MenuItem/index.d.ts +1 -0
  99. package/Meta/Meta.d.ts +15 -0
  100. package/Meta/index.d.ts +1 -0
  101. package/NoJs/NoJs.d.ts +3 -0
  102. package/NoJs/index.d.ts +1 -0
  103. package/Pagination/PaginationNav.d.ts +23 -0
  104. package/Pagination/PaginationResults.d.ts +3 -0
  105. package/Pagination/index.d.ts +2 -0
  106. package/Pill/Pill.d.ts +5 -0
  107. package/Pill/index.d.ts +1 -0
  108. package/Progress/ProgressCircular.d.ts +20 -0
  109. package/Progress/ProgressLinear.d.ts +23 -0
  110. package/Progress/ProgressOverlay.d.ts +5 -0
  111. package/Progress/index.d.ts +3 -0
  112. package/Rating/Rating.d.ts +35 -0
  113. package/Rating/index.d.ts +11 -0
  114. package/Select/SelectDownshift.d.ts +5 -0
  115. package/Select/components.d.ts +6 -0
  116. package/Select/index.d.ts +2 -0
  117. package/Sidebar/Sidebar.d.ts +3 -0
  118. package/Sidebar/index.d.ts +1 -0
  119. package/Spacing/Spacing.d.ts +30 -0
  120. package/Spacing/index.d.ts +1 -0
  121. package/Sticky/Sticky.d.ts +2 -0
  122. package/Sticky/StickyCss.d.ts +5 -0
  123. package/Sticky/index.d.ts +1 -0
  124. package/Tabs/Tabs.d.ts +25 -0
  125. package/Tabs/index.d.ts +1 -0
  126. package/Typography/CopyPasteVisible.d.ts +1 -0
  127. package/Typography/Native.d.ts +10 -0
  128. package/Typography/ReadMore.d.ts +12 -0
  129. package/Typography/TextLoop.d.ts +16 -0
  130. package/Typography/TypeStairs.d.ts +6 -0
  131. package/Typography/index.d.ts +5 -0
  132. package/helpers/index.d.ts +1 -0
  133. package/hooks/index.d.ts +5 -0
  134. package/hooks/useDateLocale.d.ts +7 -0
  135. package/hooks/useFocus.d.ts +5 -0
  136. package/hooks/usePrevious.d.ts +1 -0
  137. package/hooks/useTraceUpdate.d.ts +4 -0
  138. package/hooks/useWindowSize.d.ts +1 -0
  139. package/index.d.ts +35 -0
  140. package/index.esm.js +9223 -9676
  141. package/index.umd.js +9657 -10111
  142. package/package.json +5 -5
  143. package/styles/Body.d.ts +10 -0
  144. package/styles/Global.d.ts +15 -0
  145. package/styles/classed.d.ts +4 -0
  146. package/styles/index.d.ts +7 -0
  147. package/styles/media.d.ts +67 -0
  148. package/styles/spacing.d.ts +13 -0
  149. package/styles/styled.d.ts +12 -0
  150. package/styles/theme--vanilla.d.ts +18 -0
  151. package/styles/theme.d.ts +89 -0
  152. package/types.d.ts +11 -0
@@ -0,0 +1,47 @@
1
+ /// <reference types="react" />
2
+ import { RowProps, ColProps } from "../Grid";
3
+ export declare const CarouselCssRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Grid").GridProps & {
4
+ $valign?: import("csstype").Property.AlignItems | undefined;
5
+ $reverse?: "min:xs" | "min:sm" | "min:md" | "min:lg" | "min:xl" | "min:xxl" | "max:xs" | "max:sm" | "max:md" | "max:lg" | "max:xl" | "max:xxl" | undefined;
6
+ $noWrap?: boolean | undefined;
7
+ } & import("@koine/utils").Simplify<import("@koine/utils").Except<RowProps, "$gutter"> & Required<Pick<RowProps, "$gutter">>>, never>;
8
+ export declare const CarouselCssCol: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Grid").GridProps & Partial<Record<import("..").Breakpoint, number>> & {
9
+ $width?: number | undefined;
10
+ $flex?: boolean | undefined;
11
+ $valign?: import("csstype").Property.AlignItems | undefined;
12
+ $auto?: boolean | undefined;
13
+ $offset?: string | undefined;
14
+ } & Pick<KoineCarouselCssProps, "$snap"> & {
15
+ $width: KoineCarouselCssProps["width"];
16
+ }, never>;
17
+ export declare type KoineCarouselCssProps = ColProps & {
18
+ /**
19
+ * Override the `<Row>` gutter, if not specified `$gutter` prop is used
20
+ */
21
+ $gutterRow?: RowProps["$gutter"];
22
+ /**
23
+ * Override the `<Col>` gutter, if not specified `$gutter` prop is used
24
+ */
25
+ $gutterCol?: ColProps["$gutter"];
26
+ /**
27
+ * If items are not passed solely children are used
28
+ */
29
+ items?: JSX.Element[];
30
+ /**
31
+ * @default undefined (in percentage)
32
+ */
33
+ $proportion?: number;
34
+ /**
35
+ * @default "start"
36
+ */
37
+ $snap?: React.CSSProperties["scrollSnapAlign"];
38
+ /**
39
+ * Carousel's slide width
40
+ */
41
+ width?: number;
42
+ };
43
+ export declare type CarouselCssProps = KoineCarouselCssProps;
44
+ /**
45
+ * For programmatic usage an example here @see https://stackoverflow.com/a/65902068/9122820
46
+ */
47
+ export declare const KoineCarouselCss: React.FC<CarouselCssProps>;
@@ -0,0 +1 @@
1
+ export * from "./CarouselCss";
@@ -0,0 +1,60 @@
1
+ /// <reference types="react" />
2
+ import { MotionProps } from "framer-motion";
3
+ export declare type CollapsableStyledProps = {
4
+ $expanded?: boolean;
5
+ };
6
+ export declare const CollapsableHeadRoot: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLLabelElement, import("framer-motion").HTMLMotionProps<"label">>, import("styled-components").DefaultTheme, {
7
+ htmlFor: `${string}-input`;
8
+ } & Pick<CollapsableStyledProps, "$expanded">, "htmlFor">;
9
+ export declare const CollapsableHeadSpace: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const CollapsableHeadAction: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const CollaspableHeadLine: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
12
+ export declare const collapsableHeadLineMotion: {
13
+ hover: {
14
+ width: string;
15
+ transition: {
16
+ duration: number;
17
+ };
18
+ };
19
+ };
20
+ export declare const CollapsableHeadText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
21
+ export declare const CollapsableHeadIcon: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
22
+ export declare type CollapsableHeadProps = Pick<CollapsableStyledProps, "$expanded"> & CollapsableComponents & {
23
+ id: CollapsableProps["id"];
24
+ onClick: (...args: any) => any;
25
+ };
26
+ export declare const CollapsableHead: React.FC<CollapsableHeadProps>;
27
+ export declare const CollapsableInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
28
+ type: "checkbox";
29
+ }, "type">;
30
+ export declare const CollasableBodyWrap: import("styled-components").StyledComponent<import("@reach/utils/dist/declarations/src/polymorphic").ForwardRefComponent<"div", import("@reach/disclosure/dist/declarations/src").DisclosurePanelProps>, import("styled-components").DefaultTheme, CollapsableStyledProps, never>;
31
+ export declare const CollapsableBodyRoot: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
32
+ export declare type CollapsableBodyProps = MotionProps & Pick<CollapsableStyledProps, "$expanded"> & {
33
+ children?: React.ReactNode;
34
+ style?: React.CSSProperties;
35
+ };
36
+ export declare const CollapsableBody: import("react").ForwardRefExoticComponent<MotionProps & Pick<CollapsableStyledProps, "$expanded"> & {
37
+ children?: React.ReactNode;
38
+ style?: import("react").CSSProperties | undefined;
39
+ } & import("react").RefAttributes<HTMLDivElement>>;
40
+ export declare type CollapsableComponents = {
41
+ HeadRoot?: typeof CollapsableHeadRoot;
42
+ HeadAction?: null | typeof CollapsableHeadAction | React.FC<any>;
43
+ HeadIcon?: null | typeof CollapsableHeadIcon | React.FC<any>;
44
+ };
45
+ export declare type CollapsableProps = React.ComponentPropsWithoutRef<"div"> & {
46
+ id?: string;
47
+ expanded?: boolean;
48
+ /** Used to trigger a recalculation effect */
49
+ recalc?: any;
50
+ onChange?: () => any;
51
+ head: null | React.ReactNode;
52
+ body: React.ReactNode;
53
+ /** Amount of milliseconds after which the component collapses */
54
+ components?: CollapsableComponents;
55
+ /** @default "Expand" */
56
+ ariaExpand?: string;
57
+ /** @default "Collapse" */
58
+ ariaCollapse?: string;
59
+ };
60
+ export declare const Collapsable: ({ expanded: propExpanded, recalc, onChange, id, head, body, components, ariaExpand, ariaCollapse, ...props }: CollapsableProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Collapsable";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare type DebugProps = {
3
+ data: object;
4
+ };
5
+ export declare const Debug: ({ data }: DebugProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Debug";
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import { MotionProps } from "framer-motion";
3
+ import { DialogProps as BaseDialogProps } from "@reach/dialog";
4
+ import { SetRequired } from "@koine/utils";
5
+ export declare const koineDialogBg: import("styled-components").FlattenSimpleInterpolation;
6
+ export declare const koineDialogBackdropMotion: MotionProps;
7
+ export declare const koineDialogInnerMotion: MotionProps;
8
+ export declare const KoineDialogOverlay: import("styled-components").StyledComponent<import("@reach/utils/dist/declarations/src/polymorphic").ForwardRefComponent<"div", import("@reach/dialog/dist/declarations/src").DialogOverlayProps>, import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const KoineDialogBackdrop: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const KoineDialogInner: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, Pick<KoineDialogProps, "$centered">, never>;
11
+ export declare const KoineDialogContent: import("styled-components").StyledComponent<import("@reach/utils/dist/declarations/src/polymorphic").ForwardRefComponent<"div", import("@reach/dialog/dist/declarations/src").DialogContentProps>, import("styled-components").DefaultTheme, Pick<KoineDialogProps, "$centered">, never>;
12
+ export declare const KoineDialogCloseButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("../Buttons").KoineButtonUiProps & {
13
+ disabled?: boolean | undefined;
14
+ }, never>;
15
+ export declare const KoineDialogHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
+ export declare const KoineDialogBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
17
+ export declare const KoineDialogBodyChildren: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
18
+ export declare type KoineDialogProps = SetRequired<BaseDialogProps, "onDismiss"> & {
19
+ title?: string;
20
+ /** @default true */
21
+ $centered?: boolean;
22
+ };
23
+ export declare const KoineDialog: ({ children, title, onDismiss, isOpen, $centered, ...props }: KoineDialogProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Dialog";
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { Editor as EditorType, EditorOptions } from "@tiptap/react";
3
+ export declare type EditorBarProps = {
4
+ editor: null | EditorType;
5
+ };
6
+ export declare const EditorBar: ({ editor }: EditorBarProps) => JSX.Element | null;
7
+ export declare type EditorProps = {
8
+ options?: Partial<EditorOptions>;
9
+ };
10
+ export declare const Editor: ({ options, ...props }: EditorProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ export { MdFormatBold as EditorIconBold } from "@react-icons/all-files/md/MdFormatBold";
2
+ export { MdFormatItalic as EditorIconItalic } from "@react-icons/all-files/md/MdFormatItalic";
3
+ export declare const EditorRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const EditorBarRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const EditorBarBtn: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("..").KoineButtonUiProps & {
6
+ disabled?: boolean | undefined;
7
+ }, never>;
8
+ export declare const EditorGlobalStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
@@ -0,0 +1 @@
1
+ export * from "./Editor--tiptap";
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ export declare type FaviconTagsProps = {
3
+ name: string;
4
+ color?: string;
5
+ safariTabColor?: string;
6
+ tileColor?: string;
7
+ themeColor?: string;
8
+ };
9
+ /**
10
+ * Favicon tags.
11
+ *
12
+ * This component is meant to be wrapped in a `<head>` manager component.
13
+ *
14
+ * These tags have been produced by [realfavicongenerator.net](https://realfavicongenerator.net/)
15
+ * on _**16 Feb 2022**_.
16
+ *
17
+ * @see https://realfavicongenerator.net/
18
+ */
19
+ export declare const FaviconTags: ({ name, color, safariTabColor, tileColor, themeColor, }: FaviconTagsProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./FaviconTags";
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { UseToggleProps } from "../Toggle/useToggle";
3
+ export declare const CheckboxRoot: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const CheckboxToggle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const CheckboxIndicator: import("styled-components").StyledComponent<(props: unknown) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const CheckboxLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare type CheckboxProps = UseToggleProps;
8
+ /**
9
+ * All logic and invisible Inputs come from the `useToggle` hook
10
+ */
11
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Pick<UseToggleProps, "form" | "slot" | "style" | "title" | "pattern" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "height" | "max" | "min" | "width" | "crossOrigin" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "autoComplete" | "accept" | "capture" | "checked" | "enterKeyHint" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | keyof import("..").FormControlProps<any> | "valueTrue" | "valueFalse" | "options"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from "./Checkbox";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare type FeedbackProps = {
3
+ $danger?: boolean;
4
+ };
5
+ export declare const Feedback: React.FC<FeedbackProps>;
@@ -0,0 +1 @@
1
+ export * from "./Feedback";
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { FieldError as RHF_FieldError, FieldErrors as RHF_FieldErrors } from "react-hook-form";
3
+ import type { Translate } from "../../types";
4
+ export declare const field: import("styled-components").FlattenSimpleInterpolation;
5
+ export declare const FieldBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const FieldRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
+ $danger: boolean;
8
+ }, never>;
9
+ export declare type FieldProps = {
10
+ name?: string;
11
+ t?: Translate;
12
+ error?: RHF_FieldError;
13
+ errors?: RHF_FieldErrors;
14
+ style?: React.CSSProperties;
15
+ };
16
+ export declare const Field: React.FC<FieldProps>;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import type { Translate } from "../../types";
3
+ import type { FormControl } from "../helpers";
4
+ declare type FieldControlRenderProps = Pick<FormControl, "control" | "register" | "setValue" | "name" | "label" | "placeholder">;
5
+ export declare type FieldControlProps = FieldControlRenderProps & {
6
+ /** Render props pattern */
7
+ children: (props: FieldControlRenderProps) => React.ReactNode;
8
+ t: Translate;
9
+ showError?: boolean;
10
+ encode?: boolean;
11
+ hint?: string;
12
+ className?: string;
13
+ style?: React.CSSProperties;
14
+ };
15
+ /**
16
+ *
17
+ * - it expects the `field` object from our `useForm` wrapper around react-hook-form
18
+ * - automatically get translated strings from the given `t` function` for the
19
+ * field `label`, `placeholder` and `errors`. The .json expected by the `t` function
20
+ * look like this:
21
+ *
22
+ * ```json
23
+ * ```
24
+ */
25
+ export declare const FieldControl: ({ control, register, setValue, name: maybeEncodedName, label, placeholder, hint, t, showError, children, encode, ...props }: FieldControlProps) => JSX.Element;
26
+ export {};
@@ -0,0 +1 @@
1
+ export declare const FieldHint: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,2 @@
1
+ export * from "./Field";
2
+ export * from "./FieldControl";
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ export declare const FormRoot: import("styled-components").StyledComponent<"form", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const FormOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const FormFeedback: import("styled-components").StyledComponent<import("react").FC<import("../../Alert").AlertProps>, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare type FormProps = React.ComponentPropsWithoutRef<"form"> & {
6
+ action: string;
7
+ ok?: boolean;
8
+ Ok?: typeof FormFeedback;
9
+ okProps?: object;
10
+ fail?: boolean;
11
+ Fail?: typeof FormFeedback;
12
+ failProps?: object;
13
+ loading?: boolean;
14
+ /** Whether the form should collapse on `ok` */
15
+ collapseOnOk?: boolean;
16
+ /** Whether the form should collapse on `fail` */
17
+ collapseOnFail?: boolean;
18
+ /**
19
+ * Determines the time (in ms) that the `Ok` component wait before collapsing
20
+ * When <= 0 the `Ok` component will persist
21
+ *
22
+ * @default 3000 */
23
+ okTimeout?: number;
24
+ /**
25
+ * Determines the time (in ms) that the `Fail` component wait before collapsing
26
+ * When <= 0 the `Fail` component will persist
27
+ *
28
+ * @default 3000 */
29
+ failTimeout?: number;
30
+ };
31
+ export declare const Form: React.FC<FormProps>;
@@ -0,0 +1 @@
1
+ export * from "./Form";
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { FormControl } from "../helpers";
3
+ export declare const InputWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const InputMain: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const InputPre: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const InputPost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const InputNative: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
8
+ export declare type InputProps = FormControl;
9
+ export declare const Input: import("react").ForwardRefExoticComponent<Pick<InputProps, "form" | "slot" | "style" | "title" | "pattern" | "type" | "key" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "size" | "src" | "step" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../helpers").FormControlProps<any>> & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from "./Input";
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { KoineButton, KoineButtonProps } from "../../Buttons";
3
+ export declare const InputGroupRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const InputGroupMain: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const InputGroupButtonPre: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("../../Buttons").KoineButtonUiProps, never>;
6
+ export declare const InputGroupButtonPost: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("../../Buttons").KoineButtonUiProps, never>;
7
+ export declare type InputGroupProps = {
8
+ pre?: boolean;
9
+ post?: boolean;
10
+ Button?: typeof KoineButton;
11
+ btnProps?: KoineButtonProps;
12
+ };
13
+ export declare const InputGroup: React.FC<InputGroupProps>;
@@ -0,0 +1 @@
1
+ export * from "./InputGroup";
@@ -0,0 +1,3 @@
1
+ export declare const label = "\n display: flex;\n font-size: 13px;\n cursor: pointer;\n";
2
+ export declare const labelMaterial = "\n z-index: 2;\n position: relative;\n display: inline-block;\n padding: 0 5px;\n font-weight: 100;\n font-size: 10px;\n background: var(--bodyBg);\n transform: translateY(-0.3em) translateX(1em);\n cursor: pointer;\n\n + * {\n margin-top: -1em;\n }\n";
3
+ export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1 @@
1
+ export * from "./Label";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { FormControl } from "../helpers";
3
+ export declare const PasswordInputNative: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare type PasswordProps = FormControl;
5
+ export declare const Password: import("react").ForwardRefExoticComponent<Pick<PasswordProps, "form" | "slot" | "style" | "title" | "pattern" | "type" | "key" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "size" | "src" | "step" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../helpers").FormControlProps<any>> & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from "./Password";
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { Option } from "../../types";
3
+ import { FormControl } from "../helpers";
4
+ declare type RadioOptionProps = Omit<FormControl, "value"> & Option & {
5
+ $ref: React.ForwardedRef<HTMLInputElement>;
6
+ };
7
+ export declare type RadioProps = Omit<FormControl, "value"> & {
8
+ value?: string;
9
+ options?: Pick<RadioOptionProps, "label" | "value">[];
10
+ };
11
+ export declare const Radio: import("react").ForwardRefExoticComponent<Pick<RadioProps, "form" | "slot" | "style" | "title" | "pattern" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "height" | "max" | "min" | "width" | "crossOrigin" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "autoComplete" | "accept" | "capture" | "checked" | "enterKeyHint" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | keyof import("../helpers").FormControlProps<any> | "options"> & import("react").RefAttributes<HTMLInputElement>>;
12
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./Radio";
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { UseToggleProps } from "../Toggle/useToggle";
3
+ export declare const SwitchTrack: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const SwitchHandle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare type SwitchProps = UseToggleProps;
6
+ /**
7
+ * All logic and invisible Inputs come from the `useToggle` hook
8
+ */
9
+ export declare const Switch: import("react").ForwardRefExoticComponent<Pick<UseToggleProps, "form" | "slot" | "style" | "title" | "pattern" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "src" | "step" | "value" | "width" | keyof import("..").FormControlProps<any> | "valueTrue" | "valueFalse" | "options"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from "./Switch";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { FormControl } from "../helpers";
3
+ export declare const TextareaNative: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare type TextareaProps = FormControl<"textarea">;
5
+ export declare const Textarea: import("react").ForwardRefExoticComponent<Pick<TextareaProps, "form" | "slot" | "style" | "title" | "key" | "autoComplete" | "autoFocus" | "cols" | "dirName" | "disabled" | "maxLength" | "minLength" | "placeholder" | "readOnly" | "required" | "rows" | "value" | "wrap" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../helpers").FormControlProps<any>> & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { FormControl } from "../helpers";
3
+ export declare type TextareaRichProps = FormControl<"textarea"> & {
4
+ defaultValue?: string;
5
+ };
6
+ export declare const TextareaRich: import("react").ForwardRefExoticComponent<Pick<TextareaRichProps, "form" | "slot" | "style" | "title" | "key" | "autoComplete" | "autoFocus" | "cols" | "dirName" | "disabled" | "maxLength" | "minLength" | "placeholder" | "readOnly" | "required" | "rows" | "value" | "wrap" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../helpers").FormControlProps<any>> & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,2 @@
1
+ export * from "./Textarea";
2
+ export * from "./TextareaRich";
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @file
3
+ *
4
+ * About accessibility:
5
+ * - minimum target size of 44px https://www.w3.org/TR/WCAG21/#target-size
6
+ */
7
+ /// <reference types="react" />
8
+ export declare const toggleBase = "\n border: 1px solid var(--forms-border-color);\n";
9
+ export declare const toggleIndicatorBg = "\n display: inline-block;\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n";
10
+ export declare const toggleIndicatorBgShape: string;
11
+ export declare const toggleIndicatorFg = "\n position: absolute;\n left: 0;\n width: 100%;\n height: 100%;\n fill: currentcolor;\n";
12
+ export declare const Toggle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const ToggleLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const ToggleLabelSub: import("styled-components").StyledComponent<"small", import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const ToggleIndicatorHolder: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
16
+ export declare const ToggleIndicatorBgSquare: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, {}, never>;
17
+ export declare const ToggleIndicatorBgCircle: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, {}, never>;
18
+ export declare const ToggleIndicatorFg: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, {}, never>;
19
+ export declare type ToggleIndicatorProps = unknown;
20
+ export declare type ToggleIndicatorSquaredProps = ToggleIndicatorProps;
21
+ export declare const ToggleIndicatorSquared: (props: ToggleIndicatorSquaredProps) => JSX.Element;
22
+ export declare type ToggleIndicatorRoundedProps = ToggleIndicatorProps & {
23
+ /** @default 6 */
24
+ r?: number;
25
+ };
26
+ export declare const ToggleIndicatorRounded: ({ r, }: ToggleIndicatorRoundedProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Toggle";