@geoinsight/react-components 0.8.11 → 1.0.0
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/dist/cjs/index.css +463 -178
- package/dist/cjs/index.js +303 -220
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.css +463 -178
- package/dist/esm/index.js +304 -217
- package/dist/esm/index.js.map +1 -1
- package/package.json +14 -12
- package/storybook-static/106.ec5a495a.iframe.bundle.js +1 -0
- package/storybook-static/115.875b767a.iframe.bundle.js +1 -0
- package/storybook-static/143.e6f5cdb6.iframe.bundle.js +2 -0
- package/storybook-static/143.e6f5cdb6.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook-static/155.77237ba4.iframe.bundle.js +1 -0
- package/storybook-static/158.734aa560.iframe.bundle.js +2 -0
- package/storybook-static/158.734aa560.iframe.bundle.js.LICENSE.txt +1 -0
- package/storybook-static/40.a1700674.iframe.bundle.js +2 -0
- package/storybook-static/40.a1700674.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/426.afefed49.iframe.bundle.js +44 -0
- package/storybook-static/426.afefed49.iframe.bundle.js.map +1 -0
- package/storybook-static/433.19f615e7.iframe.bundle.js +1 -0
- package/storybook-static/439.c739b452.iframe.bundle.js +1 -0
- package/storybook-static/49.9b0e5ded.iframe.bundle.js +2 -0
- package/storybook-static/49.9b0e5ded.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/497.a86e867f.iframe.bundle.js +134 -0
- package/storybook-static/497.a86e867f.iframe.bundle.js.LICENSE.txt +16 -0
- package/storybook-static/497.a86e867f.iframe.bundle.js.map +1 -0
- package/storybook-static/607.55c78741.iframe.bundle.js +1 -0
- package/storybook-static/729.0e069928.iframe.bundle.js +1 -0
- package/storybook-static/750.1274e780.iframe.bundle.js +1 -0
- package/storybook-static/751.ce4b4118.iframe.bundle.js +411 -0
- package/storybook-static/751.ce4b4118.iframe.bundle.js.LICENSE.txt +53 -0
- package/storybook-static/751.ce4b4118.iframe.bundle.js.map +1 -0
- package/storybook-static/797.7e13109b.iframe.bundle.js +1 -0
- package/storybook-static/887.40a58cdf.iframe.bundle.js +1 -0
- package/storybook-static/components-button-index-stories.6b018cc0.iframe.bundle.js +1 -0
- package/storybook-static/components-form-index-stories.847721d0.iframe.bundle.js +1 -0
- package/storybook-static/components-input-index-stories.dba32411.iframe.bundle.js +2 -0
- package/storybook-static/components-input-index-stories.dba32411.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-loading-index-stories.b0653762.iframe.bundle.js +2 -0
- package/storybook-static/components-loading-index-stories.b0653762.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-map-index-stories.08759744.iframe.bundle.js +1 -0
- package/storybook-static/components-menu-index-stories.0c6eb18b.iframe.bundle.js +1 -0
- package/storybook-static/components-modal-index-stories.ef8c8dd0.iframe.bundle.js +2 -0
- package/storybook-static/components-modal-index-stories.ef8c8dd0.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-select-index-stories.a5ffb2f5.iframe.bundle.js +1 -0
- package/storybook-static/components-text-area-index-stories.44892133.iframe.bundle.js +2 -0
- package/storybook-static/components-text-area-index-stories.44892133.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/context-loading-index-stories.ad731185.iframe.bundle.js +2 -0
- package/storybook-static/context-loading-index-stories.ad731185.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/context-modal-index-stories.a607105d.iframe.bundle.js +2 -0
- package/storybook-static/context-modal-index-stories.a607105d.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/favicon.svg +7 -0
- package/storybook-static/iframe.html +355 -0
- package/storybook-static/index.html +127 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/main.9dd1aacd.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.3725a291.iframe.bundle.js +1 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +63 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/fonts.css +31 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js +1 -0
- package/storybook-static/sb-manager/chunk-2IXBUOFS.js +7 -0
- package/storybook-static/sb-manager/chunk-F4FCO4CF.js +406 -0
- package/storybook-static/sb-manager/chunk-INSKDKQB.js +348 -0
- package/storybook-static/sb-manager/chunk-NGTUFCUO.js +9 -0
- package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +1 -0
- package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
- package/storybook-static/sb-manager/globals-module-info.js +1 -0
- package/storybook-static/sb-manager/globals.js +1 -0
- package/storybook-static/sb-manager/index.js +1 -0
- package/storybook-static/sb-manager/runtime.js +1 -0
- package/storybook-static/sb-manager/syntaxhighlighter-V7JZZA35-DXZCI2WR.js +1 -0
- package/storybook-static/sb-preview/globals.js +1 -0
- package/storybook-static/sb-preview/runtime.js +112 -0
- package/storybook-static/static/media/code-brackets.2e1112d7.svg +1 -0
- package/storybook-static/static/media/colors.a4bd0486.svg +1 -0
- package/storybook-static/static/media/comments.a3859089.svg +1 -0
- package/storybook-static/static/media/direction.b770f9af.svg +1 -0
- package/storybook-static/static/media/flow.edad2ac1.svg +1 -0
- package/storybook-static/static/media/loading.cbc96c95.gif +0 -0
- package/storybook-static/static/media/plugin.d494b228.svg +1 -0
- package/storybook-static/static/media/repo.6d496322.svg +1 -0
- package/storybook-static/static/media/spinner_2.6f37ee56.png +0 -0
- package/storybook-static/static/media/stackalt.dba9fbb3.svg +1 -0
- package/storybook-static/stories-Introduction-stories-mdx.d86fb94b.iframe.bundle.js +2 -0
- package/storybook-static/stories-Introduction-stories-mdx.d86fb94b.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/stories.json +1 -0
- package/dist/cjs/components/accordion/accordion-button.d.ts +0 -4
- package/dist/cjs/components/accordion/accordion-content.d.ts +0 -4
- package/dist/cjs/components/accordion/accordion-item.d.ts +0 -4
- package/dist/cjs/components/accordion/accordion.d.ts +0 -4
- package/dist/cjs/components/accordion/index.d.ts +0 -4
- package/dist/cjs/components/accordion/index.stories.d.ts +0 -7
- package/dist/cjs/components/accordion/index.types.d.ts +0 -36
- package/dist/cjs/components/button/index.d.ts +0 -5
- package/dist/cjs/components/button/index.stories.d.ts +0 -7
- package/dist/cjs/components/button/index.types.d.ts +0 -41
- package/dist/cjs/components/form/FormInput.d.ts +0 -4
- package/dist/cjs/components/form/FormSelect.d.ts +0 -4
- package/dist/cjs/components/form/FormTextArea.d.ts +0 -4
- package/dist/cjs/components/form/index.d.ts +0 -4
- package/dist/cjs/components/form/index.stories.d.ts +0 -7
- package/dist/cjs/components/form/index.types.d.ts +0 -45
- package/dist/cjs/components/input/index.d.ts +0 -4
- package/dist/cjs/components/input/index.stories.d.ts +0 -8
- package/dist/cjs/components/input/index.types.d.ts +0 -40
- package/dist/cjs/components/loading/index.d.ts +0 -4
- package/dist/cjs/components/loading/index.stories.d.ts +0 -6
- package/dist/cjs/components/loading/index.types.d.ts +0 -11
- package/dist/cjs/components/map/MapboxMap.d.ts +0 -2
- package/dist/cjs/components/map/index.d.ts +0 -4
- package/dist/cjs/components/map/index.stories.d.ts +0 -8
- package/dist/cjs/components/map/index.types.d.ts +0 -56
- package/dist/cjs/components/map/useAddMap.d.ts +0 -8
- package/dist/cjs/components/map-control/index.d.ts +0 -4
- package/dist/cjs/components/map-control/index.types.d.ts +0 -11
- package/dist/cjs/components/modal/index.d.ts +0 -4
- package/dist/cjs/components/modal/index.stories.d.ts +0 -6
- package/dist/cjs/components/modal/index.types.d.ts +0 -39
- package/dist/cjs/components/select/index.d.ts +0 -4
- package/dist/cjs/components/select/index.stories.d.ts +0 -7
- package/dist/cjs/components/select/index.types.d.ts +0 -30
- package/dist/cjs/components/text-area/index.d.ts +0 -5
- package/dist/cjs/components/text-area/index.stories.d.ts +0 -7
- package/dist/cjs/components/text-area/index.types.d.ts +0 -43
- package/dist/cjs/context/accordion/index.d.ts +0 -10
- package/dist/cjs/context/loading/index.d.ts +0 -24
- package/dist/cjs/context/loading/index.stories.d.ts +0 -8
- package/dist/cjs/context/modal/index.d.ts +0 -29
- package/dist/cjs/context/modal/index.stories.d.ts +0 -6
- package/dist/cjs/context/theme/index.d.ts +0 -18
- package/dist/cjs/decorators/withColorScheme.d.ts +0 -7
- package/dist/cjs/decorators/withLoading.d.ts +0 -2
- package/dist/cjs/decorators/withModal.d.ts +0 -2
- package/dist/cjs/decorators/withWrapper.d.ts +0 -2
- package/dist/cjs/index.d.ts +0 -18
- package/dist/cjs/utils/palette.d.ts +0 -1
- package/dist/cjs/utils/recursive.d.ts +0 -6
- package/dist/esm/components/accordion/accordion-button.d.ts +0 -4
- package/dist/esm/components/accordion/accordion-content.d.ts +0 -4
- package/dist/esm/components/accordion/accordion-item.d.ts +0 -4
- package/dist/esm/components/accordion/accordion.d.ts +0 -4
- package/dist/esm/components/accordion/index.d.ts +0 -4
- package/dist/esm/components/accordion/index.stories.d.ts +0 -7
- package/dist/esm/components/accordion/index.types.d.ts +0 -36
- package/dist/esm/components/button/index.d.ts +0 -5
- package/dist/esm/components/button/index.stories.d.ts +0 -7
- package/dist/esm/components/button/index.types.d.ts +0 -41
- package/dist/esm/components/form/FormInput.d.ts +0 -4
- package/dist/esm/components/form/FormSelect.d.ts +0 -4
- package/dist/esm/components/form/FormTextArea.d.ts +0 -4
- package/dist/esm/components/form/index.d.ts +0 -4
- package/dist/esm/components/form/index.stories.d.ts +0 -7
- package/dist/esm/components/form/index.types.d.ts +0 -45
- package/dist/esm/components/input/index.d.ts +0 -4
- package/dist/esm/components/input/index.stories.d.ts +0 -8
- package/dist/esm/components/input/index.types.d.ts +0 -40
- package/dist/esm/components/loading/index.d.ts +0 -4
- package/dist/esm/components/loading/index.stories.d.ts +0 -6
- package/dist/esm/components/loading/index.types.d.ts +0 -11
- package/dist/esm/components/map/MapboxMap.d.ts +0 -2
- package/dist/esm/components/map/index.d.ts +0 -4
- package/dist/esm/components/map/index.stories.d.ts +0 -8
- package/dist/esm/components/map/index.types.d.ts +0 -56
- package/dist/esm/components/map/useAddMap.d.ts +0 -8
- package/dist/esm/components/map-control/index.d.ts +0 -4
- package/dist/esm/components/map-control/index.types.d.ts +0 -11
- package/dist/esm/components/modal/index.d.ts +0 -4
- package/dist/esm/components/modal/index.stories.d.ts +0 -6
- package/dist/esm/components/modal/index.types.d.ts +0 -39
- package/dist/esm/components/select/index.d.ts +0 -4
- package/dist/esm/components/select/index.stories.d.ts +0 -7
- package/dist/esm/components/select/index.types.d.ts +0 -30
- package/dist/esm/components/text-area/index.d.ts +0 -5
- package/dist/esm/components/text-area/index.stories.d.ts +0 -7
- package/dist/esm/components/text-area/index.types.d.ts +0 -43
- package/dist/esm/context/accordion/index.d.ts +0 -10
- package/dist/esm/context/loading/index.d.ts +0 -24
- package/dist/esm/context/loading/index.stories.d.ts +0 -8
- package/dist/esm/context/modal/index.d.ts +0 -29
- package/dist/esm/context/modal/index.stories.d.ts +0 -6
- package/dist/esm/context/theme/index.d.ts +0 -18
- package/dist/esm/decorators/withColorScheme.d.ts +0 -7
- package/dist/esm/decorators/withLoading.d.ts +0 -2
- package/dist/esm/decorators/withModal.d.ts +0 -2
- package/dist/esm/decorators/withWrapper.d.ts +0 -2
- package/dist/esm/index.d.ts +0 -18
- package/dist/esm/utils/palette.d.ts +0 -1
- package/dist/esm/utils/recursive.d.ts +0 -6
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Viewport } from "@deck.gl/core/typed";
|
|
3
|
-
import { LayerProps } from "@deck.gl/core/typed";
|
|
4
|
-
export interface Map {
|
|
5
|
-
/**
|
|
6
|
-
* Basemap tile
|
|
7
|
-
*/
|
|
8
|
-
basemap?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Component's children
|
|
11
|
-
*/
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Viewport of the map
|
|
15
|
-
*/
|
|
16
|
-
initialViewState?: Viewport;
|
|
17
|
-
/**
|
|
18
|
-
* Type of the visualization framework
|
|
19
|
-
*/
|
|
20
|
-
framework?: "deck.gl" | "mapboxgl";
|
|
21
|
-
/**
|
|
22
|
-
* if it has switch basemap button
|
|
23
|
-
*/
|
|
24
|
-
hasSwitchBasemap?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Props of the visualization framework
|
|
27
|
-
*/
|
|
28
|
-
layers?: {
|
|
29
|
-
type: string;
|
|
30
|
-
layer: LayerProps;
|
|
31
|
-
}[];
|
|
32
|
-
/**
|
|
33
|
-
* Props of the visualization framework
|
|
34
|
-
*/
|
|
35
|
-
mapProps?: {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Controls you want to add
|
|
40
|
-
*/
|
|
41
|
-
controls?: Controls;
|
|
42
|
-
}
|
|
43
|
-
export type Controls = {
|
|
44
|
-
[key in keyof Position]: ReactNode;
|
|
45
|
-
};
|
|
46
|
-
export interface Position {
|
|
47
|
-
"top-left"?: ReactNode;
|
|
48
|
-
"top-center"?: ReactNode;
|
|
49
|
-
"top-right"?: ReactNode;
|
|
50
|
-
"center-left"?: ReactNode;
|
|
51
|
-
center?: ReactNode;
|
|
52
|
-
"center-right"?: ReactNode;
|
|
53
|
-
"bottom-left"?: ReactNode;
|
|
54
|
-
"bottom-center"?: ReactNode;
|
|
55
|
-
"bottom-right"?: ReactNode;
|
|
56
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface MapControl {
|
|
3
|
-
/**
|
|
4
|
-
* Position of the control
|
|
5
|
-
*/
|
|
6
|
-
position?: "top-left" | "top-center" | "top-right" | "center-left" | "center" | "center-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
7
|
-
/**
|
|
8
|
-
* Children inside the control
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Modal as ModalProps } from "./index.types";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
export declare function Modal({ className, modalref, children, title, subtitle, footer, hasOverlay, hasCloseButton, handleClose, ...rest }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default Modal;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface Modal {
|
|
3
|
-
/**
|
|
4
|
-
* Custom css class name.
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Children
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Modal footer
|
|
13
|
-
*/
|
|
14
|
-
footer?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Close click function
|
|
17
|
-
*/
|
|
18
|
-
handleClose?: any;
|
|
19
|
-
/**
|
|
20
|
-
* Modal close button
|
|
21
|
-
*/
|
|
22
|
-
hasCloseButton?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Overlay div
|
|
25
|
-
*/
|
|
26
|
-
hasOverlay?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Modal body ref
|
|
29
|
-
*/
|
|
30
|
-
modalref?: React.LegacyRef<HTMLDivElement>;
|
|
31
|
-
/**
|
|
32
|
-
* Subtitle of the modal
|
|
33
|
-
*/
|
|
34
|
-
subtitle?: React.ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* Title of the modal
|
|
37
|
-
*/
|
|
38
|
-
title?: React.ReactNode;
|
|
39
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Select as SelectProps } from "./index.types";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
export declare function Select({ inputClassName, classNameGroup, options, styleGroup, defaultValue, setFormSelected, clearError, resetForm, onFormBlur, handleSelect, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default Select;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Select } from "./index";
|
|
3
|
-
declare const meta: Meta<typeof Select>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Select>;
|
|
6
|
-
export declare const Primary: Story;
|
|
7
|
-
export declare const Error: Story;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
2
|
-
import { dataTheme } from "data-theme";
|
|
3
|
-
export interface Select extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Custom css class name.
|
|
6
|
-
*/
|
|
7
|
-
inputClassName?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Custom css class name for group wrapper.
|
|
10
|
-
*/
|
|
11
|
-
classNameGroup?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Data theme for the html. `${themes}`
|
|
14
|
-
*/
|
|
15
|
-
paletteTheme?: dataTheme;
|
|
16
|
-
/**
|
|
17
|
-
* Error message to show when input has an error.
|
|
18
|
-
*/
|
|
19
|
-
options?: string[];
|
|
20
|
-
/**
|
|
21
|
-
* Style input group wrapper
|
|
22
|
-
*/
|
|
23
|
-
styleGroup?: CSSProperties;
|
|
24
|
-
defaultValue?: string;
|
|
25
|
-
setFormSelected?: any;
|
|
26
|
-
clearError?: any;
|
|
27
|
-
resetForm?: any;
|
|
28
|
-
onFormBlur?: any;
|
|
29
|
-
handleSelect?: any;
|
|
30
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TextArea as TextAreaProps } from "./index.types";
|
|
3
|
-
import "./index.css";
|
|
4
|
-
export declare function TextArea({ buttonDisabled, className, disabled, error, hasToggleButton, hideHeight, label, labelClass, placeholder, showHeight, style, textareaClassName, ...rest }: TextAreaProps): JSX.Element;
|
|
5
|
-
export default TextArea;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { TextArea } from "./index";
|
|
3
|
-
declare const meta: Meta<typeof TextArea>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TextArea>;
|
|
6
|
-
export declare const Active: Story;
|
|
7
|
-
export declare const Disabled: Story;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
2
|
-
import { FieldError, FieldErrorsImpl, Merge } from "react-hook-form";
|
|
3
|
-
export interface TextArea extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Custom css class name textarea wrapper.
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Disable prop
|
|
10
|
-
*/
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Error message to show when input has an error.
|
|
14
|
-
*/
|
|
15
|
-
error?: {
|
|
16
|
-
message?: string | false | FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined;
|
|
17
|
-
is?: boolean;
|
|
18
|
-
};
|
|
19
|
-
hasToggleButton?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Minimum height if toggle button is true
|
|
22
|
-
*/
|
|
23
|
-
hideHeight?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Placeholder for textarea html tag
|
|
26
|
-
*/
|
|
27
|
-
placeholder?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Maximum height if toggle button is false
|
|
30
|
-
*/
|
|
31
|
-
showHeight?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Style textarea group wrapper
|
|
34
|
-
*/
|
|
35
|
-
style?: CSSProperties;
|
|
36
|
-
/**
|
|
37
|
-
* Classname of the textarea
|
|
38
|
-
*/
|
|
39
|
-
textareaClassName?: string;
|
|
40
|
-
label?: string;
|
|
41
|
-
labelClass?: string;
|
|
42
|
-
buttonDisabled?: boolean;
|
|
43
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Accordion, ToggleArray } from "../../components/accordion/index.types";
|
|
3
|
-
interface State {
|
|
4
|
-
toggle?: ToggleArray;
|
|
5
|
-
setToggle: (prev: any) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const AccordionContext: React.Context<State | undefined>;
|
|
8
|
-
declare function AccordionProvider({ children, expanded }: Accordion): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function useAccordion(): State;
|
|
10
|
-
export { useAccordion, AccordionContext, AccordionProvider };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, RefObject } from "react";
|
|
2
|
-
type State = {
|
|
3
|
-
isLoading: boolean;
|
|
4
|
-
message?: string | React.ReactNode;
|
|
5
|
-
ref?: RefObject<ReactNode>;
|
|
6
|
-
};
|
|
7
|
-
type Context = {
|
|
8
|
-
state: State;
|
|
9
|
-
setRef: (ref: RefObject<ReactNode>) => void;
|
|
10
|
-
setMessage: (message: string) => void;
|
|
11
|
-
startLoading: () => void;
|
|
12
|
-
stopLoading: () => void;
|
|
13
|
-
};
|
|
14
|
-
type LoadingProviderProps = {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
};
|
|
17
|
-
type UseLoadingProps = {
|
|
18
|
-
ref?: RefObject<ReactNode>;
|
|
19
|
-
message?: string;
|
|
20
|
-
};
|
|
21
|
-
declare const LoadingContext: React.Context<Context | undefined>;
|
|
22
|
-
declare function LoadingProvider({ children }: LoadingProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
declare function useLoading({ ref, message }?: UseLoadingProps): Context;
|
|
24
|
-
export { LoadingContext, LoadingProvider, useLoading };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { LoadingProvider } from ".";
|
|
3
|
-
declare const meta: Meta<typeof LoadingProvider>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof LoadingProvider>;
|
|
6
|
-
export declare const Basic: Story;
|
|
7
|
-
export declare const CustomMessage: Story;
|
|
8
|
-
export declare const CustomImage: Story;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Modal from "../../components/modal";
|
|
3
|
-
type Modal = {
|
|
4
|
-
title?: React.ReactNode;
|
|
5
|
-
subtitle?: React.ReactNode;
|
|
6
|
-
content?: React.ReactNode;
|
|
7
|
-
hasCloseButton?: boolean;
|
|
8
|
-
hasOverlay?: boolean;
|
|
9
|
-
hasWindowClose?: boolean;
|
|
10
|
-
footer?: React.ReactNode;
|
|
11
|
-
isCustom?: boolean;
|
|
12
|
-
customRef?: any;
|
|
13
|
-
};
|
|
14
|
-
interface State extends Modal {
|
|
15
|
-
isModal: boolean;
|
|
16
|
-
}
|
|
17
|
-
type Context = {
|
|
18
|
-
state: State;
|
|
19
|
-
openModal: (modal?: Modal) => void;
|
|
20
|
-
closeModal: () => void;
|
|
21
|
-
};
|
|
22
|
-
type ModalProviderProps = {
|
|
23
|
-
children: React.ReactNode;
|
|
24
|
-
};
|
|
25
|
-
type UseModalProps = {};
|
|
26
|
-
declare const ModalContext: React.Context<Context | undefined>;
|
|
27
|
-
declare function ModalProvider({ children }: ModalProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
declare function useModal({}?: UseModalProps): Context;
|
|
29
|
-
export { ModalContext, ModalProvider, useModal };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DataPalette } from "data-palette";
|
|
2
|
-
import React from "react";
|
|
3
|
-
type DataTheme = "light" | "dark";
|
|
4
|
-
type State = {
|
|
5
|
-
dataTheme?: DataTheme;
|
|
6
|
-
switchDataTheme: (mode: DataTheme) => void;
|
|
7
|
-
dataPalette?: DataPalette;
|
|
8
|
-
switchDataPalette: (mode: DataPalette) => void;
|
|
9
|
-
};
|
|
10
|
-
type ThemeProviderProps = {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
dataTheme?: DataTheme;
|
|
13
|
-
dataPalette?: DataPalette;
|
|
14
|
-
};
|
|
15
|
-
declare const ThemeContext: React.Context<State | undefined>;
|
|
16
|
-
declare function ThemeProvider({ children, dataTheme: dataThemeProp, dataPalette: dataPaletteProp, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
declare function useTheme(): State;
|
|
18
|
-
export { ThemeContext, ThemeProvider, useTheme };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StoryContext, StoryFn } from "@storybook/react";
|
|
2
|
-
import "../styles/variables.css";
|
|
3
|
-
export declare const withColorScheme: (Story: StoryFn, context: StoryContext) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const Wrapped: ({ Story, context, }: {
|
|
5
|
-
Story: StoryFn;
|
|
6
|
-
context: StoryContext;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "../src/styles/variables.css";
|
|
2
|
-
export { Accordion, AccordionItem, AccordionButton, AccordionContent } from "./components/accordion";
|
|
3
|
-
export { Button } from "./components/button";
|
|
4
|
-
export { Form } from "./components/form";
|
|
5
|
-
export { FormInput } from "./components/form/FormInput";
|
|
6
|
-
export { FormTextArea } from "./components/form/FormTextArea";
|
|
7
|
-
export { FormSelect } from "./components/form/FormSelect";
|
|
8
|
-
export { Input } from "./components/input";
|
|
9
|
-
export { Loading } from "./components/loading";
|
|
10
|
-
export { Modal } from "./components/modal";
|
|
11
|
-
export { Select } from "./components/select";
|
|
12
|
-
export { TextArea } from "./components/text-area";
|
|
13
|
-
export { MapComponent } from "./components/map";
|
|
14
|
-
export { MapControl } from "./components/map-control";
|
|
15
|
-
export { LoadingContext, LoadingProvider, useLoading } from "./context/loading";
|
|
16
|
-
export { ModalContext, ModalProvider, useModal } from "./context/modal";
|
|
17
|
-
export { ThemeContext, ThemeProvider, useTheme } from "./context/theme";
|
|
18
|
-
export { AccordionContext, AccordionProvider, useAccordion } from "./context/accordion";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const palette: readonly ["forest", "water", "earth"];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { ToggleArray } from "../components/accordion/index.types";
|
|
3
|
-
export declare function recursiveChildren(children: ReactNode | ReactNode[], i?: number): ReactNode;
|
|
4
|
-
export declare function recursiveToggle(children: ReactNode[], toggleArray: ToggleArray | undefined, i: number | undefined, props: {
|
|
5
|
-
expanded: "all" | "none" | "custom";
|
|
6
|
-
}): ToggleArray | undefined;
|