@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/README.md
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koine/react",
|
|
3
|
+
"version": "1.0.10",
|
|
3
4
|
"sideEffects": false,
|
|
4
|
-
"
|
|
5
|
-
"main": "./index.umd.js",
|
|
6
|
-
"module": "./index.esm.js",
|
|
5
|
+
"main": "./node/index.js",
|
|
7
6
|
"typings": "./index.d.ts",
|
|
8
7
|
"dependencies": {
|
|
9
8
|
"styled-components": "^5.3.5",
|
|
10
|
-
"framer-motion": "^6.
|
|
11
|
-
"react": "
|
|
12
|
-
"@mui/base": "^5.0.0-alpha.
|
|
13
|
-
"
|
|
14
|
-
"@react-icons/all-files": "^4.1.0",
|
|
9
|
+
"framer-motion": "^6.3.3",
|
|
10
|
+
"react": "^16.8 || ^17 || ^18",
|
|
11
|
+
"@mui/base": "^5.0.0-alpha.79",
|
|
12
|
+
"react-icons": "^4.3.1",
|
|
15
13
|
"date-fns": "^2.28.0",
|
|
16
|
-
"react-swipeable": "^
|
|
17
|
-
"@reach/disclosure": "^0.
|
|
18
|
-
"@
|
|
19
|
-
"@tiptap/
|
|
20
|
-
"@tiptap/starter-kit": "^2.0.0-beta.183",
|
|
14
|
+
"react-swipeable": "^7.0.0",
|
|
15
|
+
"@reach/disclosure": "^0.17.0",
|
|
16
|
+
"@tiptap/react": "^2.0.0-beta.109",
|
|
17
|
+
"@tiptap/starter-kit": "^2.0.0-beta.184",
|
|
21
18
|
"yup": "^0.32.11",
|
|
22
|
-
"react-hook-form": "^7.
|
|
23
|
-
"
|
|
19
|
+
"react-hook-form": "^7.30.0",
|
|
20
|
+
"type-fest": "^2.12.2",
|
|
24
21
|
"react-use": "^17.3.2",
|
|
25
|
-
"@reach/tabs": "^0.
|
|
22
|
+
"@reach/tabs": "^0.17.0",
|
|
23
|
+
"tslib": "^2.4.0"
|
|
26
24
|
},
|
|
27
|
-
"peerDependencies": {}
|
|
25
|
+
"peerDependencies": {},
|
|
26
|
+
"module": "./index.js",
|
|
27
|
+
"types": "./index.d.ts"
|
|
28
28
|
}
|
package/typings.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "styled-components";
|
|
2
|
+
// import type {} from "styled-components/cssprop"; // for `css` prop
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Styled components utility types
|
|
6
|
+
*/
|
|
7
|
+
type Theme = import("./styles/theme").Theme;
|
|
8
|
+
|
|
9
|
+
declare module "styled-components" {
|
|
10
|
+
// extends the global DefaultTheme with our ThemeType.
|
|
11
|
+
export interface DefaultTheme extends Theme {
|
|
12
|
+
maxWidth: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Types specifically related to `@koine/react` exposed on the global unique
|
|
18
|
+
* namespace `Koine`. Most of the types here should be prefixed by `React`, e.g.
|
|
19
|
+
* `ReactSomeFeature` accessible anywhere from `Koine.ReactSomeFeature`
|
|
20
|
+
*/
|
|
21
|
+
declare namespace Koine {}
|
package/Alert/Alert.d.ts
DELETED
package/Alert/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Alert";
|
package/Animations/Reveal.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const UnderlineSkewed: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLElement, import("framer-motion").HTMLMotionProps<"i">>, import("styled-components").DefaultTheme, {}, never>;
|
package/Animations/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type UseRevealOptions = {
|
|
3
|
-
/**
|
|
4
|
-
* @default "left"
|
|
5
|
-
*/
|
|
6
|
-
direction?: "left" | "right";
|
|
7
|
-
/**
|
|
8
|
-
* A number that represents the offset to start the animations, giving `-1`
|
|
9
|
-
* means that the animation will start when the scroll position is at
|
|
10
|
-
* 100% higher than the given element. Giving `2` the animation will starts
|
|
11
|
-
* when the scroll reached two times the height of the given element below
|
|
12
|
-
* the top edge of the element itself
|
|
13
|
-
*
|
|
14
|
-
* @default -2
|
|
15
|
-
*/
|
|
16
|
-
offsetStartY?: number;
|
|
17
|
-
/**
|
|
18
|
-
* When 0 it defaults to the same as the offsetStartY
|
|
19
|
-
* @default 0
|
|
20
|
-
*/
|
|
21
|
-
offsetEndY?: number;
|
|
22
|
-
/**
|
|
23
|
-
* A value from `0` to `1` representing a proportion of the element width
|
|
24
|
-
* or "all" to make it completely out of the viewport
|
|
25
|
-
* @default "all"
|
|
26
|
-
* */
|
|
27
|
-
offsetStartX?: number | "all";
|
|
28
|
-
};
|
|
29
|
-
export declare function useReveal<T extends HTMLElement = HTMLDivElement>({ direction, offsetStartY, offsetEndY, offsetStartX, }: UseRevealOptions): {
|
|
30
|
-
ref: import("react").RefObject<T>;
|
|
31
|
-
startY: number;
|
|
32
|
-
endY: number;
|
|
33
|
-
startX: number;
|
|
34
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Autocomplete: null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Autocomplete: null;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Option } from "../types";
|
|
3
|
-
import { FormControl } from "../Forms/helpers";
|
|
4
|
-
export declare type AutocompleteOption = Option | string;
|
|
5
|
-
export declare type AutocompleteValue<TMultiple extends boolean | undefined = undefined> = TMultiple extends undefined ? null | Option[] | string[] | Option | string : TMultiple extends true ? Option[] | string[] : null | Option | string;
|
|
6
|
-
export declare type AutocompleteConfig<TOption extends AutocompleteOption, TValue extends AutocompleteValue> = {
|
|
7
|
-
creatable?: boolean;
|
|
8
|
-
multiple?: boolean;
|
|
9
|
-
autoComplete?: boolean;
|
|
10
|
-
options?: TOption[];
|
|
11
|
-
loadOptions?: (query?: string) => Promise<TOption[]>;
|
|
12
|
-
onChange?: (value: TValue) => any;
|
|
13
|
-
defaultValue?: TValue;
|
|
14
|
-
value?: TValue;
|
|
15
|
-
defaultInputValue?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type AutocompleteProps<TOption extends AutocompleteOption, TValue extends AutocompleteValue> = Omit<FormControl, keyof AutocompleteConfig<TOption, TValue>> & AutocompleteConfig<TOption, TValue> & {
|
|
18
|
-
className?: string;
|
|
19
|
-
style?: React.CSSProperties;
|
|
20
|
-
$ref?: React.ForwardedRef<HTMLInputElement>;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Autocomplete/autocomplete component based on [`@mui useAutocomplete hook`](https://mui.com/components/autocomplete/#useautocomplete).
|
|
24
|
-
*
|
|
25
|
-
* This component is design to work out of the box with [`react-hook-form`](https://react-hook-form.com/)
|
|
26
|
-
* and [`yup`](https://github.com/jquense/yup) alongside our custom `Field`
|
|
27
|
-
* component.
|
|
28
|
-
*
|
|
29
|
-
* After a lot of tests and attempts with `downshift` and `@reach` this proved
|
|
30
|
-
* the best headless hook, small in size and behaving correctly in all scenarios.
|
|
31
|
-
* `downshift` had in fact problems treating the initial `defaultValue` which
|
|
32
|
-
* here is elegantly managed by the `isOptionEqualToValue` option passed into
|
|
33
|
-
* the `useAutocomplete` hook.
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* Validation with `yup` and `react-hook-form` example:
|
|
37
|
-
*
|
|
38
|
-
* ```ts
|
|
39
|
-
* const schema = object({
|
|
40
|
-
* // the value must be an array with at least one non-empty string
|
|
41
|
-
* test1: array(string().required()).required().min(1),
|
|
42
|
-
* // the value must be an array of strings or an empty array
|
|
43
|
-
* test2: array(string().required()).required(),
|
|
44
|
-
* }).required();
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare const Autocomplete: <TOption extends AutocompleteOption = AutocompleteOption, TValue extends string | Option | Option[] | string[] | null = string | Option | Option[] | string[] | null>({ creatable, multiple, autoComplete, loadOptions, options: defaultOptions, defaultValue, value: controlledValue, defaultInputValue, label, placeholder, register, setValue, name, onChange, $ref, children, ...props }: AutocompleteProps<TOption, TValue>) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Autocomplete: null;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const AutocompleteRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const AutocompleteLabel: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const AutocompleteWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
export declare const AutocompleteInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const AutocompleteItem: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export declare const AutocompleteItemLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const AutocompleteItemRemove: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
-
export declare const AutocompleteInputWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
-
export declare const AutocompleteInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
-
/**
|
|
12
|
-
* This cannot be a button otherwise on `Enter` the form would submit instead
|
|
13
|
-
* of opening the dropdown or adding the selection. There are too many events
|
|
14
|
-
* to prevent if we were using a standard HTML `<button>`
|
|
15
|
-
*/
|
|
16
|
-
export declare const AutocompleteInputArrow: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Select/components").SelectArrowProps & import("react").RefAttributes<HTMLSpanElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
export declare const AutocompleteMenu: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
-
export declare const AutocompleteMenuItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
|
|
19
|
-
$active?: boolean | undefined;
|
|
20
|
-
disabled?: boolean | undefined;
|
|
21
|
-
}, never>;
|
package/Autocomplete/index.d.ts
DELETED
package/Bg/BgColor.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ContainerProps } from "../Grid";
|
|
3
|
-
export declare const BgColor: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
|
-
$bg: BgContainerProps["color"];
|
|
5
|
-
}, never>;
|
|
6
|
-
export declare const BgColorSkewed: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
|
-
$bg: BgContainerProps["color"];
|
|
8
|
-
$transform: string;
|
|
9
|
-
}, never>;
|
|
10
|
-
export declare type BgContainerProps = ContainerProps & {
|
|
11
|
-
color: NonNullable<React.CSSProperties["background"]>;
|
|
12
|
-
/**
|
|
13
|
-
* In `deg` unit.
|
|
14
|
-
* @default 0
|
|
15
|
-
*/
|
|
16
|
-
skewY?: number;
|
|
17
|
-
/**
|
|
18
|
-
* In `deg` unit. Suggested `10` to `20`
|
|
19
|
-
* @default 0
|
|
20
|
-
*/
|
|
21
|
-
rotate?: number;
|
|
22
|
-
/**
|
|
23
|
-
* @default 1
|
|
24
|
-
*/
|
|
25
|
-
scaleY?: number;
|
|
26
|
-
/**
|
|
27
|
-
* @default 1
|
|
28
|
-
*/
|
|
29
|
-
scaleX?: number;
|
|
30
|
-
/**
|
|
31
|
-
* In `vw` unit
|
|
32
|
-
* @default 0
|
|
33
|
-
*/
|
|
34
|
-
perspective?: number;
|
|
35
|
-
};
|
|
36
|
-
export declare const BgContainer: React.FC<BgContainerProps>;
|
package/Bg/BgPhoto.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ContainerProps } from "../Grid";
|
|
3
|
-
export declare type BgPhotoPropsStyled = Required<Pick<BgPhotoProps, "containerSize" | "$overlap">>;
|
|
4
|
-
export declare type BgPhotoProps = {
|
|
5
|
-
src: string;
|
|
6
|
-
containerSize?: ContainerProps["size"];
|
|
7
|
-
/**
|
|
8
|
-
* Bg photo overlap on container, in px
|
|
9
|
-
*
|
|
10
|
-
* @default 0
|
|
11
|
-
*/
|
|
12
|
-
$overlap?: number;
|
|
13
|
-
};
|
|
14
|
-
export declare const BgPhoto: ({ src, containerSize, $overlap, }: BgPhotoProps) => JSX.Element;
|
package/Bg/BgSvg.d.ts
DELETED
package/Bg/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { KoineComponentProps, KoineComponent } from "../types";
|
|
3
|
-
export declare type BreadcrumbsItem = {
|
|
4
|
-
title: string;
|
|
5
|
-
url?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type KoineBreadcrumbsProps = {
|
|
8
|
-
items: BreadcrumbsItem[];
|
|
9
|
-
};
|
|
10
|
-
declare type BreadcrumbsProps = KoineComponentProps<KoineBreadcrumbsProps, {
|
|
11
|
-
Link: KoineComponent;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const KoineBreadcrumbs: ({ items, Koine, ...props }: BreadcrumbsProps) => JSX.Element | null;
|
|
14
|
-
export {};
|
package/Breadcrumbs/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Breadcrumbs";
|
package/Buttons/Button.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Prevent 300ms delay with `touch-action` performance optimization,
|
|
4
|
-
* @see https://twitter.com/argyleink/status/1405881231695302659
|
|
5
|
-
*/
|
|
6
|
-
export declare const btnStyleUndo: import("styled-components").FlattenSimpleInterpolation;
|
|
7
|
-
export declare const btnStyleReset: import("styled-components").FlattenSimpleInterpolation;
|
|
8
|
-
export declare const btnStyleBase: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<KoineButtonUiProps, import("styled-components").DefaultTheme>>;
|
|
9
|
-
export declare const btnStyleContained: import("styled-components").FlattenSimpleInterpolation;
|
|
10
|
-
export declare const btnStyleOutlined: import("styled-components").FlattenSimpleInterpolation;
|
|
11
|
-
export declare const KoineButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, KoineButtonUiProps, never>;
|
|
12
|
-
export declare type KoineButtonUiProps = {
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
$variant?: "contained" | "outlined";
|
|
15
|
-
$noGutter?: boolean;
|
|
16
|
-
$block?: boolean;
|
|
17
|
-
};
|
|
18
|
-
export declare type KoineButtonProps = KoineButtonUiProps & React.ComponentPropsWithRef<"button">;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IconBaseProps, IconType } from "@react-icons/all-files/lib";
|
|
3
|
-
import { KoineComponentProps, KoineComponent } from "../types";
|
|
4
|
-
import { KoineButtonProps } from "./Button";
|
|
5
|
-
import { ButtonLinkProps } from "./ButtonLink";
|
|
6
|
-
export declare type KoineButtonCompositeProps = KoineButtonProps & Omit<ButtonLinkProps, "Koine"> & {
|
|
7
|
-
Icon?: IconType | React.ElementType;
|
|
8
|
-
iconProps?: IconBaseProps;
|
|
9
|
-
textMain?: string;
|
|
10
|
-
textSub?: string;
|
|
11
|
-
text?: string;
|
|
12
|
-
textReverse?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare type ButtonCompositeStyledProps = {
|
|
15
|
-
$twoLines?: boolean;
|
|
16
|
-
$reverse?: boolean;
|
|
17
|
-
$icon?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare type ButtonCompositeProps = KoineComponentProps<KoineButtonCompositeProps, {
|
|
20
|
-
Button?: KoineComponent;
|
|
21
|
-
ButtonLink?: KoineComponent;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const KoineButtonComposite: ({ Icon, iconProps, textMain, textSub, textReverse, text, Koine, ...props }: ButtonCompositeProps) => JSX.Element;
|
package/Buttons/ButtonFab.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IconButtonProps } from "./IconButton";
|
|
3
|
-
export declare const buttonFab: import("styled-components").FlattenSimpleInterpolation;
|
|
4
|
-
export declare const IconButtonFab: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("./Button").KoineButtonUiProps & {
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
}, never>;
|
|
7
|
-
export declare type IconButtonFabProps = IconButtonProps & React.ComponentPropsWithRef<"button">;
|
package/Buttons/ButtonLink.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { KoineComponentProps, KoineComponent } from "../types";
|
|
3
|
-
import { KoineLinkProps } from "../Link";
|
|
4
|
-
import { KoineButtonUiProps } from "./Button";
|
|
5
|
-
export declare type KoineButtonLinkProps = KoineButtonUiProps & KoineLinkProps;
|
|
6
|
-
export declare type ButtonLinkProps = KoineComponentProps<KoineButtonLinkProps, {
|
|
7
|
-
Link?: KoineComponent;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const KoineButtonLink: React.FC<ButtonLinkProps>;
|
package/Buttons/IconButton.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { KoineButtonUiProps } from "./Button";
|
|
3
|
-
export declare const iconBtnStyleReset: import("styled-components").FlattenSimpleInterpolation;
|
|
4
|
-
export declare const iconBtnStyleBase: import("styled-components").FlattenSimpleInterpolation;
|
|
5
|
-
export declare const IconButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, KoineButtonUiProps & {
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
}, never>;
|
|
8
|
-
export declare type IconButtonUiProps = KoineButtonUiProps & {
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare type IconButtonProps = IconButtonUiProps & React.ComponentPropsWithRef<"button">;
|
package/Buttons/index.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { KoineComponentProps, KoineComponent } from "../types";
|
|
3
|
-
import type { CalendarsMap, CalendarView, CalendarViewEvent, CalendarViewDayProps } from "./types";
|
|
4
|
-
import { UseCalendarReturn } from "./useCalendar";
|
|
5
|
-
export declare type KoineCalendarDaygridCellProps = {
|
|
6
|
-
eventClicked?: UseCalendarReturn["eventClicked"];
|
|
7
|
-
setEventClicked: UseCalendarReturn["setEventClicked"];
|
|
8
|
-
eventHovered?: UseCalendarReturn["eventHovered"];
|
|
9
|
-
setEventHovered: UseCalendarReturn["setEventHovered"];
|
|
10
|
-
view: CalendarView;
|
|
11
|
-
maxEvents: number;
|
|
12
|
-
events: CalendarViewEvent[];
|
|
13
|
-
calendarsMap: CalendarsMap;
|
|
14
|
-
};
|
|
15
|
-
export declare type CalendarDaygridCellStyledProps = CalendarViewDayProps & {
|
|
16
|
-
$view: CalendarView;
|
|
17
|
-
$selected?: boolean;
|
|
18
|
-
$past?: boolean;
|
|
19
|
-
$color: string;
|
|
20
|
-
};
|
|
21
|
-
export declare type CalendarDaygridCellEventProps = React.ComponentPropsWithoutRef<"div"> & ((CalendarDaygridCellStyledProps & {
|
|
22
|
-
$placeholder?: false;
|
|
23
|
-
}) | {
|
|
24
|
-
$placeholder: true;
|
|
25
|
-
});
|
|
26
|
-
export declare type CalendarDaygridCellEventBtnProps = CalendarDaygridCellEventProps;
|
|
27
|
-
export declare type CalendarDaygridCellComponents = {
|
|
28
|
-
Cell?: KoineComponent;
|
|
29
|
-
CellOverflow?: KoineComponent;
|
|
30
|
-
CellEvent?: KoineComponent<CalendarDaygridCellEventProps>;
|
|
31
|
-
CellEventBtn?: KoineComponent<CalendarDaygridCellEventBtnProps>;
|
|
32
|
-
CellEventTitle?: KoineComponent;
|
|
33
|
-
CellEventStart?: KoineComponent;
|
|
34
|
-
};
|
|
35
|
-
export declare type CalendarDaygridCellProps = KoineComponentProps<KoineCalendarDaygridCellProps, CalendarDaygridCellComponents>;
|
|
36
|
-
export declare const CalendarDaygridCell: ({ eventClicked, setEventClicked, setEventHovered, view, maxEvents, events, calendarsMap, Koine, }: CalendarDaygridCellProps) => JSX.Element;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { KoineComponentProps, KoineComponent } from "../types";
|
|
3
|
-
import type { CalendarRange, CalendarView } from "./types";
|
|
4
|
-
export declare type KoineCalendarDaygridNavProps = {
|
|
5
|
-
locale: string;
|
|
6
|
-
range: CalendarRange;
|
|
7
|
-
view: CalendarView;
|
|
8
|
-
todayInView?: boolean;
|
|
9
|
-
handlePrev: () => any;
|
|
10
|
-
handleNext: () => any;
|
|
11
|
-
handleToday: () => any;
|
|
12
|
-
handleView: (view: CalendarView) => any;
|
|
13
|
-
};
|
|
14
|
-
export declare type CalendarDaygridNavTitleProps = {
|
|
15
|
-
range: CalendarRange;
|
|
16
|
-
formatted: string;
|
|
17
|
-
};
|
|
18
|
-
export declare type CalendarDaygridNavProps = KoineComponentProps<KoineCalendarDaygridNavProps, {
|
|
19
|
-
NavRoot?: KoineComponent;
|
|
20
|
-
NavTitle?: KoineComponent<CalendarDaygridNavTitleProps>;
|
|
21
|
-
NavBtns?: KoineComponent;
|
|
22
|
-
NavBtnPrev?: KoineComponent;
|
|
23
|
-
NavBtnNext?: KoineComponent;
|
|
24
|
-
NavBtnToday?: KoineComponent;
|
|
25
|
-
NavBtnViewMonth?: KoineComponent;
|
|
26
|
-
NavBtnViewWeek?: KoineComponent;
|
|
27
|
-
}>;
|
|
28
|
-
export declare const KoineCalendarDaygridNav: ({ range, view, todayInView, handlePrev, handleNext, handleToday, handleView, locale: localeCode, Koine, }: CalendarDaygridNavProps) => JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { KoineComponentProps, KoineComponent } from "../types";
|
|
3
|
-
import type { CalendarRange, CalendarEventsMap, CalendarView, CalendarViewDayProps } from "./types";
|
|
4
|
-
import { CalendarDaygridCellProps, CalendarDaygridCellComponents } from "./CalendarDaygridCell";
|
|
5
|
-
export declare type CalendarDaygridTableBodyCellProps = CalendarViewDayProps;
|
|
6
|
-
export declare type CalendarDaygridTableBodyCellDateProps = CalendarViewDayProps;
|
|
7
|
-
export declare type KoineCalendarDaygridTableProps = {
|
|
8
|
-
maxEvents?: CalendarDaygridCellProps["maxEvents"];
|
|
9
|
-
locale: string;
|
|
10
|
-
events: CalendarEventsMap;
|
|
11
|
-
handlePrev: () => any;
|
|
12
|
-
handleNext: () => any;
|
|
13
|
-
view: CalendarView;
|
|
14
|
-
range: CalendarRange;
|
|
15
|
-
dayLabels?: string[];
|
|
16
|
-
} & Pick<CalendarDaygridCellProps, "eventClicked" | "setEventClicked" | "eventHovered" | "setEventHovered" | "calendarsMap">;
|
|
17
|
-
export declare type CalendarDaygridTableProps = KoineComponentProps<KoineCalendarDaygridTableProps, {
|
|
18
|
-
Table?: KoineComponent;
|
|
19
|
-
TableHead?: KoineComponent;
|
|
20
|
-
TableHeadCell?: KoineComponent;
|
|
21
|
-
TableBody?: KoineComponent;
|
|
22
|
-
TableBodyCell?: KoineComponent<CalendarDaygridTableBodyCellProps>;
|
|
23
|
-
TableBodyCellDate?: KoineComponent<CalendarDaygridTableBodyCellDateProps>;
|
|
24
|
-
TableBodyRow?: KoineComponent;
|
|
25
|
-
} & CalendarDaygridCellComponents>;
|
|
26
|
-
export declare const KoineCalendarDaygridTable: ({ locale: localeCode, handlePrev, handleNext, events, dayLabels, view, range, eventClicked, setEventClicked, eventHovered, setEventHovered, calendarsMap, maxEvents, Koine, }: CalendarDaygridTableProps) => JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { CalendarsMap } from "./types";
|
|
3
|
-
import type { KoineComponentProps, KoineComponent } from "../types";
|
|
4
|
-
export declare type KoineCalendarLegendProps = {
|
|
5
|
-
toggleCalendarVisibility: (id: string) => void;
|
|
6
|
-
calendarsMap: CalendarsMap;
|
|
7
|
-
};
|
|
8
|
-
export declare type CalendarLegendItemProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
9
|
-
$color: string;
|
|
10
|
-
$empty: boolean;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare type CalendarLegendProps = KoineComponentProps<KoineCalendarLegendProps, {
|
|
14
|
-
LegendItem?: KoineComponent<CalendarLegendItemProps>;
|
|
15
|
-
LegendItemStatus?: KoineComponent;
|
|
16
|
-
LegendItemLabel?: KoineComponent;
|
|
17
|
-
LegendItemEvents?: KoineComponent;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const KoineCalendarLegend: ({ calendarsMap, toggleCalendarVisibility, Koine, }: CalendarLegendProps) => JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Calendars, CalendarEventsMap } from "./types";
|
|
2
|
-
declare type GetCalendarsEventsFromGoogleOptions = {
|
|
3
|
-
/** Fall back to `process.env.GOOGLE_CALENDAR_API_KEY */
|
|
4
|
-
apiKey?: string;
|
|
5
|
-
/** Start gethering events from date */
|
|
6
|
-
start: Date;
|
|
7
|
-
/** End gethering events at date */
|
|
8
|
-
end: Date;
|
|
9
|
-
/**
|
|
10
|
-
* The default is the time zone of the calendar
|
|
11
|
-
* @see https://developers.google.com/calendar/api/v3/reference/events/list
|
|
12
|
-
*/
|
|
13
|
-
timeZone?: string;
|
|
14
|
-
/** The calendars settings */
|
|
15
|
-
calendars: Calendars;
|
|
16
|
-
};
|
|
17
|
-
export declare function getCalendarsEventsFromGoogle({ calendars, ...options }: GetCalendarsEventsFromGoogleOptions): Promise<CalendarEventsMap>;
|
|
18
|
-
export {};
|
package/Calendar/index.d.ts
DELETED
package/Calendar/types.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export declare type Calendar = {
|
|
2
|
-
id: string;
|
|
3
|
-
color: string;
|
|
4
|
-
/**
|
|
5
|
-
* If not defined the name is gathered from the remote calendar response,
|
|
6
|
-
* for google calendars that comes from the `summary` value.
|
|
7
|
-
*/
|
|
8
|
-
name?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type Calendars = Calendar[];
|
|
11
|
-
export declare type CalendarsMap = Record<Calendar["id"], Required<Calendar> & {
|
|
12
|
-
on?: boolean;
|
|
13
|
-
events?: number;
|
|
14
|
-
}>;
|
|
15
|
-
export declare type CalendarRange = [Date, Date];
|
|
16
|
-
export declare type CalendarView = "month" | "week";
|
|
17
|
-
export declare type CalendarEvent = {
|
|
18
|
-
calendar: Calendar;
|
|
19
|
-
/**
|
|
20
|
-
* List of day timestamps across which the event spans
|
|
21
|
-
*/
|
|
22
|
-
days: number[];
|
|
23
|
-
/**
|
|
24
|
-
* Lookup object for day timestamps across which the event spans
|
|
25
|
-
*/
|
|
26
|
-
daysMap: Record<number, 1>;
|
|
27
|
-
/**
|
|
28
|
-
* Flag for events that spans across multiple days
|
|
29
|
-
*/
|
|
30
|
-
multi: boolean;
|
|
31
|
-
allDay: boolean;
|
|
32
|
-
link: string;
|
|
33
|
-
title: string;
|
|
34
|
-
status: string;
|
|
35
|
-
created: Date;
|
|
36
|
-
start: Date;
|
|
37
|
-
end: Date;
|
|
38
|
-
color: string;
|
|
39
|
-
location: string;
|
|
40
|
-
description: string;
|
|
41
|
-
uid: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Calendar events mapped by day `timestamp` number
|
|
45
|
-
*/
|
|
46
|
-
export declare type CalendarEventsByTimestamp = Record<number, CalendarEventsMap>;
|
|
47
|
-
/**
|
|
48
|
-
* Calendar events map by `uid`
|
|
49
|
-
*/
|
|
50
|
-
export declare type CalendarEventsMap = Record<CalendarEvent["uid"], CalendarEvent>;
|
|
51
|
-
export declare type CalendarViewWeeks = CalendarViewWeek[];
|
|
52
|
-
export declare type CalendarViewWeek = {
|
|
53
|
-
props: {
|
|
54
|
-
key: string;
|
|
55
|
-
};
|
|
56
|
-
days: CalendarViewDay[];
|
|
57
|
-
};
|
|
58
|
-
export declare type CalendarViewDay = {
|
|
59
|
-
props: {
|
|
60
|
-
key: string;
|
|
61
|
-
} & CalendarViewDayProps;
|
|
62
|
-
label: string;
|
|
63
|
-
timestamp: string;
|
|
64
|
-
events: CalendarViewEvent[];
|
|
65
|
-
};
|
|
66
|
-
export declare type CalendarViewDayProps = {
|
|
67
|
-
$isToday?: boolean;
|
|
68
|
-
$isOutOfRange?: boolean;
|
|
69
|
-
};
|
|
70
|
-
export declare type CalendarViewEvent = {
|
|
71
|
-
key: string;
|
|
72
|
-
placeholder: true;
|
|
73
|
-
top: number;
|
|
74
|
-
} | (CalendarEvent & CalendarViewDayProps & {
|
|
75
|
-
key: string;
|
|
76
|
-
placeholder?: false;
|
|
77
|
-
top: number;
|
|
78
|
-
width: number;
|
|
79
|
-
firstOfMulti?: boolean;
|
|
80
|
-
isPast?: boolean;
|
|
81
|
-
});
|