@koine/react 1.0.5 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/package.json +17 -17
- package/typings.d.ts +21 -0
- package/Alert/Alert.d.ts +0 -5
- package/Alert/index.d.ts +0 -1
- package/Animations/Reveal.d.ts +0 -4
- package/Animations/Underline.d.ts +0 -1
- package/Animations/index.d.ts +0 -3
- package/Animations/useReveal.d.ts +0 -34
- package/Autocomplete/AutocompleteDownshift.d.ts +0 -1
- package/Autocomplete/AutocompleteDownshiftMultiselect.d.ts +0 -1
- package/Autocomplete/AutocompleteMui.d.ts +0 -47
- package/Autocomplete/AutocompleteReach.d.ts +0 -1
- package/Autocomplete/components.d.ts +0 -21
- package/Autocomplete/helpers.d.ts +0 -3
- package/Autocomplete/index.d.ts +0 -2
- package/Bg/BgColor.d.ts +0 -36
- package/Bg/BgPhoto.d.ts +0 -14
- package/Bg/BgSvg.d.ts +0 -8
- package/Bg/index.d.ts +0 -3
- package/Breadcrumbs/Breadcrumbs.d.ts +0 -14
- package/Breadcrumbs/index.d.ts +0 -1
- package/Buttons/Button.d.ts +0 -18
- package/Buttons/ButtonComposite.d.ts +0 -23
- package/Buttons/ButtonFab.d.ts +0 -7
- package/Buttons/ButtonLink.d.ts +0 -9
- package/Buttons/IconButton.d.ts +0 -11
- package/Buttons/index.d.ts +0 -5
- package/Calendar/CalendarDaygridCell.d.ts +0 -36
- package/Calendar/CalendarDaygridNav.d.ts +0 -28
- package/Calendar/CalendarDaygridTable.d.ts +0 -26
- package/Calendar/CalendarLegend.d.ts +0 -19
- package/Calendar/calendar-api-google.d.ts +0 -18
- package/Calendar/index.d.ts +0 -6
- package/Calendar/types.d.ts +0 -81
- package/Calendar/useCalendar.d.ts +0 -50
- package/Calendar/utils.d.ts +0 -11
- package/Carousel/Carousel.d.ts +0 -1
- package/Carousel/CarouselCss.d.ts +0 -47
- package/Carousel/index.d.ts +0 -1
- package/Collapsable/Collapsable.d.ts +0 -60
- package/Collapsable/index.d.ts +0 -1
- package/Debug/Debug.d.ts +0 -5
- package/Debug/index.d.ts +0 -1
- package/Dialog/Dialog.d.ts +0 -23
- package/Dialog/index.d.ts +0 -1
- package/Editor/Editor--tiptap.d.ts +0 -10
- package/Editor/components.d.ts +0 -8
- package/Editor/index.d.ts +0 -1
- package/Favicon/FaviconTags.d.ts +0 -19
- package/Favicon/index.d.ts +0 -1
- package/Forms/Checkbox/Checkbox.d.ts +0 -11
- package/Forms/Checkbox/index.d.ts +0 -1
- package/Forms/Feedback/Feedback.d.ts +0 -5
- package/Forms/Feedback/index.d.ts +0 -1
- package/Forms/Field/Field.d.ts +0 -16
- package/Forms/Field/FieldControl.d.ts +0 -26
- package/Forms/Field/FieldHint.d.ts +0 -1
- package/Forms/Field/index.d.ts +0 -2
- package/Forms/Form/Form.d.ts +0 -31
- package/Forms/Form/index.d.ts +0 -1
- package/Forms/Input/Input.d.ts +0 -9
- package/Forms/Input/index.d.ts +0 -1
- package/Forms/InputGroup/InputGroup.d.ts +0 -13
- package/Forms/InputGroup/index.d.ts +0 -1
- package/Forms/Label/Label.d.ts +0 -3
- package/Forms/Label/index.d.ts +0 -1
- package/Forms/Password/Password.d.ts +0 -5
- package/Forms/Password/index.d.ts +0 -1
- package/Forms/Radio/Radio.d.ts +0 -12
- package/Forms/Radio/index.d.ts +0 -1
- package/Forms/Switch/Switch.d.ts +0 -9
- package/Forms/Switch/index.d.ts +0 -1
- package/Forms/Textarea/Textarea.d.ts +0 -5
- package/Forms/Textarea/TextareaRich.d.ts +0 -6
- package/Forms/Textarea/index.d.ts +0 -2
- package/Forms/Toggle/Toggle.d.ts +0 -26
- package/Forms/Toggle/index.d.ts +0 -1
- package/Forms/Toggle/useToggle.d.ts +0 -46
- package/Forms/antispam.d.ts +0 -24
- package/Forms/helpers.d.ts +0 -26
- package/Forms/index.d.ts +0 -16
- package/Forms/styles.d.ts +0 -20
- package/Gauge/Gauge.d.ts +0 -5
- package/Grid/Grid.d.ts +0 -60
- package/Grid/index.d.ts +0 -1
- package/Hamburger/Hamburger.d.ts +0 -6
- package/Hamburger/index.d.ts +0 -1
- package/Header/index.d.ts +0 -1
- package/Header/useHeader.d.ts +0 -20
- package/Hidden/Hidden.d.ts +0 -6
- package/Hidden/index.d.ts +0 -1
- package/Img/Img.d.ts +0 -11
- package/Img/index.d.ts +0 -1
- package/Link/Link.d.ts +0 -5
- package/Link/LinkBlank.d.ts +0 -8
- package/Link/index.d.ts +0 -2
- package/Menu/Menu.d.ts +0 -1
- package/Menu/index.d.ts +0 -1
- package/MenuItem/MenuItem.d.ts +0 -4
- package/MenuItem/index.d.ts +0 -1
- package/Meta/Meta.d.ts +0 -15
- package/Meta/index.d.ts +0 -1
- package/NoJs/NoJs.d.ts +0 -3
- package/NoJs/index.d.ts +0 -1
- package/Pagination/PaginationNav.d.ts +0 -23
- package/Pagination/PaginationResults.d.ts +0 -3
- package/Pagination/index.d.ts +0 -2
- package/Pill/Pill.d.ts +0 -5
- package/Pill/index.d.ts +0 -1
- package/Progress/ProgressCircular.d.ts +0 -20
- package/Progress/ProgressLinear.d.ts +0 -23
- package/Progress/ProgressOverlay.d.ts +0 -5
- package/Progress/index.d.ts +0 -3
- package/Rating/Rating.d.ts +0 -35
- package/Rating/index.d.ts +0 -11
- package/Select/SelectDownshift.d.ts +0 -5
- package/Select/components.d.ts +0 -6
- package/Select/index.d.ts +0 -2
- package/Sidebar/Sidebar.d.ts +0 -3
- package/Sidebar/index.d.ts +0 -1
- package/Spacing/Spacing.d.ts +0 -30
- package/Spacing/index.d.ts +0 -1
- package/Sticky/Sticky.d.ts +0 -2
- package/Sticky/StickyCss.d.ts +0 -5
- package/Sticky/index.d.ts +0 -1
- package/Tabs/Tabs.d.ts +0 -25
- package/Tabs/index.d.ts +0 -1
- package/Typography/CopyPasteVisible.d.ts +0 -1
- package/Typography/Native.d.ts +0 -10
- package/Typography/ReadMore.d.ts +0 -12
- package/Typography/TextLoop.d.ts +0 -16
- package/Typography/TypeStairs.d.ts +0 -6
- package/Typography/index.d.ts +0 -5
- package/helpers/index.d.ts +0 -1
- package/hooks/index.d.ts +0 -5
- package/hooks/useDateLocale.d.ts +0 -7
- package/hooks/useFocus.d.ts +0 -5
- package/hooks/usePrevious.d.ts +0 -1
- package/hooks/useTraceUpdate.d.ts +0 -4
- package/hooks/useWindowSize.d.ts +0 -1
- package/index.d.ts +0 -35
- package/index.esm.js +0 -9456
- package/index.umd.js +0 -9667
- package/styles/Body.d.ts +0 -10
- package/styles/Global.d.ts +0 -15
- package/styles/classed.d.ts +0 -4
- package/styles/index.d.ts +0 -7
- package/styles/media.d.ts +0 -67
- package/styles/spacing.d.ts +0 -13
- package/styles/styled.d.ts +0 -12
- package/styles/theme--vanilla.d.ts +0 -18
- package/styles/theme.d.ts +0 -89
- package/types.d.ts +0 -11
package/styles/Body.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const BodyRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
/**
|
|
3
|
-
* If you have background graphics to overlap you might need to add:
|
|
4
|
-
*
|
|
5
|
-
* ```css
|
|
6
|
-
* z-index: 1;
|
|
7
|
-
* position: relative;
|
|
8
|
-
* ```
|
|
9
|
-
*/
|
|
10
|
-
export declare const BodyMain: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
|
package/styles/Global.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* App global style
|
|
3
|
-
*
|
|
4
|
-
* For examples of what to do here take a look at [Bootstrap's reset](https://github.com/twbs/bootstrap/blob/main/scss/_reboot.scss)
|
|
5
|
-
* and similar.
|
|
6
|
-
*
|
|
7
|
-
* What we do here:
|
|
8
|
-
* - set the base font family on all possible elements including placeholders prevent Chrome showing a standard font when using the autofill feature
|
|
9
|
-
* - @see https://stackoverflow.com/a/60987373/1938970
|
|
10
|
-
* - set the base font size on all possible elements to prevent weird zooming on input fields on iPhone iOS devices.
|
|
11
|
-
* - @see https://www.warrenchandler.com/2019/04/02/stop-iphones-from-zooming-in-on-form-fields/
|
|
12
|
-
* - @see https://css-tricks.com/16px-or-larger-text-prevents-ios-form-zoom/
|
|
13
|
-
*/
|
|
14
|
-
export declare const stylesGlobal = "\n body {\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n }\n\n body,\n button,\n input,\n textarea,\n select,\n select:-webkit-autofill::first-line,\n input:-webkit-autofill::first-line {\n font-family: var(--font), -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\",\n sans-serif;\n font-size: var(--fontSize);\n }\n\n html {\n box-sizing: border-box;\n @media (prefers-reduced-motion: no-preference) {\n scroll-behavior: smooth;\n }\n }\n\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n -webkit-tap-highlight-color: transparent;\n }\n";
|
|
15
|
-
export declare const StylesGlobal: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
package/styles/classed.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare function classed<P extends Record<string, never>>(type: React.ElementType, ...className: string[]): (props?: (React.Attributes & P) | null) => React.FunctionComponentElement<P>;
|
|
3
|
-
declare function classed<T extends keyof JSX.IntrinsicElements, P extends JSX.IntrinsicElements[T]>(type: keyof JSX.IntrinsicElements, ...className: string[]): (props?: (React.ClassAttributes<T> & P) | null) => React.ReactElement<P, T>;
|
|
4
|
-
export default classed;
|
package/styles/index.d.ts
DELETED
package/styles/media.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Breakpoint, Breakpoints } from "./theme";
|
|
2
|
-
export declare const min: MediaQueryFunction, max: MediaQueryFunction, up: MediaQueryFunction, down: (br: Breakpoint) => string, between: (br1: Breakpoint, br2: Breakpoint) => string, only: (br: Breakpoint) => string;
|
|
3
|
-
export declare type MediaDirection = "min" | "max";
|
|
4
|
-
export declare type MediaQuery = `${MediaDirection}:${Breakpoint}`;
|
|
5
|
-
export declare type MediaQueryFunction = {
|
|
6
|
-
[Breakpoint in keyof Breakpoints]: string;
|
|
7
|
-
} & {
|
|
8
|
-
(breakpoint: Breakpoint): string;
|
|
9
|
-
};
|
|
10
|
-
export declare function useMedia(media: MediaQuery): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Generate media queries helpers
|
|
13
|
-
*
|
|
14
|
-
* Usage:
|
|
15
|
-
* ```jsx
|
|
16
|
-
* import { generateMediaQueries } from "@koine/react";
|
|
17
|
-
*
|
|
18
|
-
* export const breakpoints = {
|
|
19
|
-
* xs: 0,
|
|
20
|
-
* sm: 440,
|
|
21
|
-
* md: 768,
|
|
22
|
-
* lg: 1024,
|
|
23
|
-
* xl: 1368,
|
|
24
|
-
* xxl: 1690,
|
|
25
|
-
* } as const;
|
|
26
|
-
*
|
|
27
|
-
* export const { min, max, up, down, between, only } = generateMediaQueries(breakpoints);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* Consider the following syntaxes, using normal CSS is just slightly
|
|
31
|
-
* longer but it aovid js imports, reduce the js overhead and improve CSS
|
|
32
|
-
* highlighting in the editor.
|
|
33
|
-
*
|
|
34
|
-
* Even if we would reduce the function signature to the bare minimum the advantage
|
|
35
|
-
* in terms of typing would not be much, also loosing in readability.
|
|
36
|
-
*
|
|
37
|
-
* ```css
|
|
38
|
-
* // but unfortunately this does not work
|
|
39
|
-
* @media (min-width: var(--b-sm)) {}
|
|
40
|
-
* @media (min-width: 480px) {}
|
|
41
|
-
*
|
|
42
|
-
* ${media("min", "sm")} {}
|
|
43
|
-
* ${mediaMin("sm")} {}
|
|
44
|
-
* ${min.sm} {}
|
|
45
|
-
* ${p => p.theme.min.sm}``
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* Related projects:
|
|
49
|
-
* @see https://github.com/mg901/styled-breakpoints
|
|
50
|
-
* @see https://github.com/morajabi/styled-media-query
|
|
51
|
-
*
|
|
52
|
-
* @see https://www.w3.org/TR/mediaqueries-5/#custom-mq The spec would allow for
|
|
53
|
-
* something like this syntax
|
|
54
|
-
*
|
|
55
|
-
* ```css
|
|
56
|
-
* @custom-media --narrow-window (max-width: 30em);
|
|
57
|
-
* @media (--narrow-window) {}
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function generateMediaQueries(breakpoints: Breakpoints): {
|
|
61
|
-
min: MediaQueryFunction;
|
|
62
|
-
max: MediaQueryFunction;
|
|
63
|
-
up: MediaQueryFunction;
|
|
64
|
-
down: (br: Breakpoint) => string;
|
|
65
|
-
between: (br1: Breakpoint, br2: Breakpoint) => string;
|
|
66
|
-
only: (br: Breakpoint) => string;
|
|
67
|
-
};
|
package/styles/spacing.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Theme } from "./theme";
|
|
2
|
-
export declare type SpacingSize = "sm" | "md" | "lg";
|
|
3
|
-
export declare type SpacingProperty = "padding" | "margin";
|
|
4
|
-
/** @default 1 */
|
|
5
|
-
export declare type SpacingFactor = number;
|
|
6
|
-
export declare type SpacingDirection = "top" | "bottom";
|
|
7
|
-
export declare type SpacingDirectionAxis = "vertical" | SpacingDirection;
|
|
8
|
-
export declare type SpacingDevices = keyof Theme["devices"];
|
|
9
|
-
export declare type SpacingArgs = Parameters<typeof spacing>;
|
|
10
|
-
export declare function spacing(this: Theme, size?: SpacingSize, factor?: SpacingFactor, property?: SpacingProperty, direction?: SpacingDirectionAxis, devices?: SpacingDevices[]): string;
|
|
11
|
-
export declare function spacingTop(this: Theme, size?: SpacingSize, factor?: SpacingFactor, property?: SpacingProperty, devices?: SpacingDevices[]): string;
|
|
12
|
-
export declare function spacingBottom(this: Theme, size?: SpacingSize, factor?: SpacingFactor, property?: SpacingProperty, devices?: SpacingDevices[]): string;
|
|
13
|
-
export declare function spacingVertical(this: Theme, size?: SpacingSize, factor?: SpacingFactor, property?: SpacingProperty, devices?: SpacingDevices[]): string;
|
package/styles/styled.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Theme } from "./theme";
|
|
2
|
-
export declare function colStretch(this: Theme, direction: "left" | "right", color: keyof Readonly<Theme> | string): string;
|
|
3
|
-
/** @see https://caniuse.com/?search=inset */
|
|
4
|
-
export declare const inset0 = "top:0;left:0;right:0;bottom:0;";
|
|
5
|
-
export declare const overlay: string;
|
|
6
|
-
export declare const centered = "display: flex;align-items: center;justify-content: center;";
|
|
7
|
-
export declare const ellipsis = "overflow: hidden;text-overflow: ellipsis;white-space: nowrap;";
|
|
8
|
-
/**
|
|
9
|
-
* @see import("@mui/utils").visuallyHidden https://github.com/mui-org/material-ui/blob/master/packages/mui-utils/src/visuallyHidden.ts
|
|
10
|
-
*/
|
|
11
|
-
export declare const invisible = "border: 0;clip: rect(0 0 0 0);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;white-space: nowrap;width: 1px;";
|
|
12
|
-
export declare const stateFocus = "outline: 0px;box-shadow: 0 0 0 0.2rem rgba(200, 200, 200, 0.25);";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export declare const THEME_KEY = "theme";
|
|
3
|
-
export declare const THEME_DEFAULT: ThemeVanillaValue;
|
|
4
|
-
export declare const getInitialThemeFromRequest: (cookie?: string | undefined) => ThemeVanillaValue;
|
|
5
|
-
export declare const getInitialThemeFromClient: () => ThemeVanillaValue;
|
|
6
|
-
export declare type ThemeCookie = {
|
|
7
|
-
[THEME_KEY]: ThemeVanillaValue;
|
|
8
|
-
};
|
|
9
|
-
export declare type ThemeVanillaValue = "light" | "dark";
|
|
10
|
-
export declare type ThemeVanillaContextType = {
|
|
11
|
-
theme: ThemeVanillaValue;
|
|
12
|
-
setTheme?: React.Dispatch<React.SetStateAction<ThemeVanillaValue>>;
|
|
13
|
-
};
|
|
14
|
-
export declare const ThemeVanillaContext: import("react").Context<ThemeVanillaContextType>;
|
|
15
|
-
export declare type ThemeVanillaProviderProps = {
|
|
16
|
-
initialTheme: ThemeVanillaValue;
|
|
17
|
-
};
|
|
18
|
-
export declare const ThemeVanillaProvider: FC<ThemeVanillaProviderProps>;
|
package/styles/theme.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { spacing, spacingTop, spacingBottom, spacingVertical } from "./spacing";
|
|
2
|
-
import { colStretch } from "./styled";
|
|
3
|
-
export declare type Breakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
4
|
-
export declare type Breakpoints = Record<Breakpoint, number>;
|
|
5
|
-
/**
|
|
6
|
-
* You can override the default breakpoints through the .env variable
|
|
7
|
-
*
|
|
8
|
-
* FIXME: find a better way to configure it, the problem is that we use the media
|
|
9
|
-
* queries within this pre-compiled library and thrught it was better to avoid
|
|
10
|
-
* using theming props for a more ergonomic usage.
|
|
11
|
-
*
|
|
12
|
-
* ```.env
|
|
13
|
-
* BREAKPOINTS=xs:0,sm:440,md:768,lg:1024,xl:1368,xxl:1690
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare const breakpoints: Breakpoints;
|
|
17
|
-
export declare const createTheme: (options: ThemeOptions) => Theme;
|
|
18
|
-
export declare const useTheme: () => Theme;
|
|
19
|
-
export declare type Theme = {
|
|
20
|
-
maxWidth: number;
|
|
21
|
-
gutter: {
|
|
22
|
-
quarter: number;
|
|
23
|
-
third: number;
|
|
24
|
-
half: number;
|
|
25
|
-
/** @default 60 */
|
|
26
|
-
normal: number;
|
|
27
|
-
double: number;
|
|
28
|
-
triple: number;
|
|
29
|
-
};
|
|
30
|
-
breakpoints: Breakpoints;
|
|
31
|
-
devices: {
|
|
32
|
-
/** @default "sm" */
|
|
33
|
-
mobile: keyof Breakpoints;
|
|
34
|
-
/** @default "md" */
|
|
35
|
-
tablet: keyof Breakpoints;
|
|
36
|
-
/** @default "lg" */
|
|
37
|
-
desktop: keyof Breakpoints;
|
|
38
|
-
};
|
|
39
|
-
spaces: {
|
|
40
|
-
mobile: {
|
|
41
|
-
/** @default 10 */
|
|
42
|
-
sm: number;
|
|
43
|
-
/** @default 20 */
|
|
44
|
-
md: number;
|
|
45
|
-
/** @default 40 */
|
|
46
|
-
lg: number;
|
|
47
|
-
};
|
|
48
|
-
tablet: {
|
|
49
|
-
/** @default 15 */
|
|
50
|
-
sm: number;
|
|
51
|
-
/** @default 30 */
|
|
52
|
-
md: number;
|
|
53
|
-
/** @default 60 */
|
|
54
|
-
lg: number;
|
|
55
|
-
};
|
|
56
|
-
desktop: {
|
|
57
|
-
/** @default 20 */
|
|
58
|
-
sm: number;
|
|
59
|
-
/** @default 40 */
|
|
60
|
-
md: number;
|
|
61
|
-
/** @default 80 */
|
|
62
|
-
lg: number;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
header: {
|
|
66
|
-
/** @default "lg" */
|
|
67
|
-
breakpoint: keyof Breakpoints;
|
|
68
|
-
/** @default [82, 134] */
|
|
69
|
-
height: [number, number];
|
|
70
|
-
/** @default [60, 90] */
|
|
71
|
-
heightSticky: [number, number];
|
|
72
|
-
/** @default [76, 76] */
|
|
73
|
-
logoWidth: [number, number];
|
|
74
|
-
/** @default [70, 70] */
|
|
75
|
-
logoWidthSticky: [number, number];
|
|
76
|
-
};
|
|
77
|
-
spacing: typeof spacing;
|
|
78
|
-
spacingTop: typeof spacingTop;
|
|
79
|
-
spacingBottom: typeof spacingBottom;
|
|
80
|
-
spacingVertical: typeof spacingVertical;
|
|
81
|
-
colStretch: typeof colStretch;
|
|
82
|
-
};
|
|
83
|
-
export declare type ThemeOptions = {
|
|
84
|
-
maxWidth?: number;
|
|
85
|
-
gutter: NonNullable<Theme["gutter"]>;
|
|
86
|
-
devices?: Theme["devices"];
|
|
87
|
-
spaces: NonNullable<Theme["spaces"]>;
|
|
88
|
-
header: NonNullable<Theme["header"]>;
|
|
89
|
-
};
|
package/types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type Translate = (i18nKey: any, query?: any, options?: any) => string;
|
|
3
|
-
export declare type Option = {
|
|
4
|
-
value: string;
|
|
5
|
-
Label?: NonNullable<import("react").ReactNode>;
|
|
6
|
-
label: NonNullable<import("react").ReactChild | import("react").ReactFragment>;
|
|
7
|
-
};
|
|
8
|
-
export declare type KoineComponentProps<BaseComponentProps, ExtendableProps> = BaseComponentProps & {
|
|
9
|
-
Koine: ExtendableProps;
|
|
10
|
-
};
|
|
11
|
-
export declare type KoineComponent<Props = any> = string | React.ForwardRefExoticComponent<Props> | React.ExoticComponent<Props> | React.FC<Props> | ((props: Props) => JSX.Element);
|