@geoinsight/react-components 1.1.1 → 1.1.3
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/package.json +2 -3
- package/storybook-static/145.bf71aa82.iframe.bundle.js +2 -0
- package/storybook-static/145.bf71aa82.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/203.dbe95018.iframe.bundle.js +1 -0
- package/storybook-static/286.82d3e377.iframe.bundle.js +1 -0
- package/storybook-static/294.cc038596.iframe.bundle.js +1 -0
- package/storybook-static/421.8dbbcf32.iframe.bundle.js +1 -0
- package/storybook-static/425.2e91814e.iframe.bundle.js +1 -0
- package/storybook-static/503.3722f1cb.iframe.bundle.js +2 -0
- package/storybook-static/503.3722f1cb.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/584.f99ec69d.iframe.bundle.js +1 -0
- package/storybook-static/647.80bf61d7.iframe.bundle.js +1 -0
- package/storybook-static/652.910f7e3c.iframe.bundle.js +411 -0
- package/storybook-static/652.910f7e3c.iframe.bundle.js.LICENSE.txt +53 -0
- package/storybook-static/652.910f7e3c.iframe.bundle.js.map +1 -0
- package/storybook-static/71.3c04378a.iframe.bundle.js +44 -0
- package/storybook-static/71.3c04378a.iframe.bundle.js.map +1 -0
- package/storybook-static/710.7480b175.iframe.bundle.js +1 -0
- package/storybook-static/765.318ce5aa.iframe.bundle.js +2 -0
- package/storybook-static/765.318ce5aa.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/819.b2f05968.iframe.bundle.js +1 -0
- package/storybook-static/857.27880e38.iframe.bundle.js +1 -0
- package/storybook-static/871.d6a2618f.iframe.bundle.js +134 -0
- package/storybook-static/871.d6a2618f.iframe.bundle.js.LICENSE.txt +16 -0
- package/storybook-static/871.d6a2618f.iframe.bundle.js.map +1 -0
- package/storybook-static/components-button-index-stories.b9043eb5.iframe.bundle.js +1 -0
- package/storybook-static/components-checkbox-index-stories.806a4da2.iframe.bundle.js +2 -0
- package/storybook-static/components-checkbox-index-stories.806a4da2.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-form-index-stories.98e14f53.iframe.bundle.js +1 -0
- package/storybook-static/components-input-index-stories.53dbac5d.iframe.bundle.js +2 -0
- package/storybook-static/components-input-index-stories.53dbac5d.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-loading-index-stories.6082476b.iframe.bundle.js +2 -0
- package/storybook-static/components-loading-index-stories.6082476b.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/components-menu-index-stories.12782e23.iframe.bundle.js +1 -0
- package/storybook-static/components-modal-index-stories.280a7455.iframe.bundle.js +1 -0
- package/storybook-static/components-range-index-stories.d3287106.iframe.bundle.js +1 -0
- package/storybook-static/components-select-index-stories.12475707.iframe.bundle.js +1 -0
- package/storybook-static/components-text-area-index-stories.b8cf9f86.iframe.bundle.js +2 -0
- package/storybook-static/components-text-area-index-stories.b8cf9f86.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/context-loading-index-stories.432db9d9.iframe.bundle.js +2 -0
- package/storybook-static/context-loading-index-stories.432db9d9.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/context-modal-index-stories.eb9322f7.iframe.bundle.js +1 -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.952e99c7.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.8e0cbb62.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-MXTFSDU5.js +1 -0
- package/storybook-static/sb-manager/chunk-5QAFKPS7.js +7 -0
- package/storybook-static/sb-manager/chunk-7PRFHFSS.js +9 -0
- package/storybook-static/sb-manager/chunk-XE6LDGTE.js +406 -0
- package/storybook-static/sb-manager/chunk-YDUB7CS6.js +348 -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-MJWPISIS-JOSCT6CQ.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.03fceaf1.iframe.bundle.js +2 -0
- package/storybook-static/stories-Introduction-stories-mdx.03fceaf1.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/stories.json +1 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +0 -1
- package/dist/cjs/components/button/index.d.ts +0 -9
- package/dist/cjs/components/button/index.stories.d.ts +0 -19
- package/dist/cjs/components/button/index.types.d.ts +0 -50
- package/dist/cjs/components/form/form-input.d.ts +0 -4
- package/dist/cjs/components/form/form-select.d.ts +0 -4
- package/dist/cjs/components/form/form-text-area.d.ts +0 -4
- package/dist/cjs/components/form/index.d.ts +0 -4
- package/dist/cjs/components/form/index.stories.d.ts +0 -10
- package/dist/cjs/components/form/index.types.d.ts +0 -72
- package/dist/cjs/components/input/index.d.ts +0 -4
- package/dist/cjs/components/input/index.stories.d.ts +0 -12
- package/dist/cjs/components/input/index.types.d.ts +0 -56
- 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/menu/index.d.ts +0 -11
- package/dist/cjs/components/menu/index.stories.d.ts +0 -7
- package/dist/cjs/components/menu/menu-button.d.ts +0 -21
- package/dist/cjs/components/menu/menu-content.d.ts +0 -8
- package/dist/cjs/components/menu/menu-item.d.ts +0 -10
- package/dist/cjs/components/menu/menu-root.d.ts +0 -21
- package/dist/cjs/components/menu/menu-utils.d.ts +0 -1
- package/dist/cjs/components/menu/menu-wrapper.d.ts +0 -10
- package/dist/cjs/components/modal/index.d.ts +0 -4
- package/dist/cjs/components/modal/index.stories.d.ts +0 -11
- package/dist/cjs/components/modal/index.types.d.ts +0 -39
- package/dist/cjs/components/range/hooks.d.ts +0 -34
- package/dist/cjs/components/range/index.d.ts +0 -4
- package/dist/cjs/components/range/index.stories.d.ts +0 -9
- package/dist/cjs/components/range/index.types.d.ts +0 -18
- package/dist/cjs/components/range/range-content.d.ts +0 -16
- package/dist/cjs/components/range/range-controls.d.ts +0 -13
- package/dist/cjs/components/range/range-thumb.d.ts +0 -12
- package/dist/cjs/components/range/values.d.ts +0 -1
- package/dist/cjs/components/select/index.d.ts +0 -4
- package/dist/cjs/components/select/index.stories.d.ts +0 -10
- package/dist/cjs/components/select/index.types.d.ts +0 -53
- package/dist/cjs/components/text-area/index.d.ts +0 -5
- package/dist/cjs/components/text-area/index.stories.d.ts +0 -10
- package/dist/cjs/components/text-area/index.types.d.ts +0 -50
- 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/map/index.d.ts +0 -20
- 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/withMap.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.css +0 -964
- package/dist/cjs/index.d.ts +0 -16
- package/dist/cjs/index.js +0 -682
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/utils/html.d.ts +0 -10
- package/dist/cjs/utils/palette.d.ts +0 -1
- package/dist/esm/components/button/index.d.ts +0 -9
- package/dist/esm/components/button/index.stories.d.ts +0 -19
- package/dist/esm/components/button/index.types.d.ts +0 -50
- package/dist/esm/components/form/form-input.d.ts +0 -4
- package/dist/esm/components/form/form-select.d.ts +0 -4
- package/dist/esm/components/form/form-text-area.d.ts +0 -4
- package/dist/esm/components/form/index.d.ts +0 -4
- package/dist/esm/components/form/index.stories.d.ts +0 -10
- package/dist/esm/components/form/index.types.d.ts +0 -72
- package/dist/esm/components/input/index.d.ts +0 -4
- package/dist/esm/components/input/index.stories.d.ts +0 -12
- package/dist/esm/components/input/index.types.d.ts +0 -56
- 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/menu/index.d.ts +0 -11
- package/dist/esm/components/menu/index.stories.d.ts +0 -7
- package/dist/esm/components/menu/menu-button.d.ts +0 -21
- package/dist/esm/components/menu/menu-content.d.ts +0 -8
- package/dist/esm/components/menu/menu-item.d.ts +0 -10
- package/dist/esm/components/menu/menu-root.d.ts +0 -21
- package/dist/esm/components/menu/menu-utils.d.ts +0 -1
- package/dist/esm/components/menu/menu-wrapper.d.ts +0 -10
- package/dist/esm/components/modal/index.d.ts +0 -4
- package/dist/esm/components/modal/index.stories.d.ts +0 -11
- package/dist/esm/components/modal/index.types.d.ts +0 -39
- package/dist/esm/components/range/hooks.d.ts +0 -34
- package/dist/esm/components/range/index.d.ts +0 -4
- package/dist/esm/components/range/index.stories.d.ts +0 -9
- package/dist/esm/components/range/index.types.d.ts +0 -18
- package/dist/esm/components/range/range-content.d.ts +0 -16
- package/dist/esm/components/range/range-controls.d.ts +0 -13
- package/dist/esm/components/range/range-thumb.d.ts +0 -12
- package/dist/esm/components/range/values.d.ts +0 -1
- package/dist/esm/components/select/index.d.ts +0 -4
- package/dist/esm/components/select/index.stories.d.ts +0 -10
- package/dist/esm/components/select/index.types.d.ts +0 -53
- package/dist/esm/components/text-area/index.d.ts +0 -5
- package/dist/esm/components/text-area/index.stories.d.ts +0 -10
- package/dist/esm/components/text-area/index.types.d.ts +0 -50
- 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/map/index.d.ts +0 -20
- 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/withMap.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.css +0 -964
- package/dist/esm/index.d.ts +0 -16
- package/dist/esm/index.js +0 -660
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/utils/html.d.ts +0 -10
- package/dist/esm/utils/palette.d.ts +0 -1
- package/yarn-error.log +0 -12301
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Modal } from "./index";
|
|
3
|
-
declare const meta: Meta<typeof Modal>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Modal>;
|
|
6
|
-
export declare const PrimaryWithOverlay: Story;
|
|
7
|
-
export declare const TitleAndSubtitle: Story;
|
|
8
|
-
export declare const WithoutOverlay: Story;
|
|
9
|
-
export declare const WithFooter: Story;
|
|
10
|
-
export declare const WithFooterAndSubtitle: Story;
|
|
11
|
-
export declare const WithoutCloseButton: Story;
|
|
@@ -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,34 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from "react";
|
|
2
|
-
/** Props */
|
|
3
|
-
type Props = {
|
|
4
|
-
allPositions?: number[];
|
|
5
|
-
handlePosition: (pixelPosition: number, thumbPosition: number, index: number, isHandleSelected: boolean) => void;
|
|
6
|
-
handleOverContent: (value: string | number | undefined) => void;
|
|
7
|
-
values: string[] | number[];
|
|
8
|
-
};
|
|
9
|
-
type TimerProps = Props & {
|
|
10
|
-
indexPosition: number;
|
|
11
|
-
};
|
|
12
|
-
type ThumbProps = Props & {
|
|
13
|
-
panelRef: MutableRefObject<null>;
|
|
14
|
-
};
|
|
15
|
-
export declare function usePositions(panelRef: MutableRefObject<null>): {
|
|
16
|
-
panelRef: MutableRefObject<null>;
|
|
17
|
-
allPositions: number[] | undefined;
|
|
18
|
-
setAllPositions: import("react").Dispatch<import("react").SetStateAction<number[] | undefined>>;
|
|
19
|
-
pixelPosition: string | undefined;
|
|
20
|
-
setPixelPosition: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
21
|
-
thumbPosition: string | undefined;
|
|
22
|
-
setThumbPosition: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
23
|
-
};
|
|
24
|
-
export declare function getThumbBounds(): DOMRect;
|
|
25
|
-
export declare function useTimer({ allPositions, indexPosition, handlePosition, handleOverContent, values, }: TimerProps): {
|
|
26
|
-
isPlay: boolean;
|
|
27
|
-
setIsPlay: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
28
|
-
handlePlay: () => void;
|
|
29
|
-
handleStop: () => void;
|
|
30
|
-
};
|
|
31
|
-
export declare function useThumb({ allPositions, panelRef, handlePosition, handleOverContent, values, }: ThumbProps): {
|
|
32
|
-
handleDownThumb: () => void;
|
|
33
|
-
};
|
|
34
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StoryObj, Meta } from "@storybook/react";
|
|
2
|
-
import { Range } from "./index";
|
|
3
|
-
declare const meta: Meta<typeof Range>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Range>;
|
|
6
|
-
export declare const RangeMonths: Story;
|
|
7
|
-
export declare const RangeTimestamps: Story;
|
|
8
|
-
export declare const RangeTimestampsPeriod: Story;
|
|
9
|
-
export declare const RangeUseCase: Story;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface Range {
|
|
2
|
-
/**
|
|
3
|
-
* Function that handles any external logic
|
|
4
|
-
*/
|
|
5
|
-
handleSelected?: (obj: {
|
|
6
|
-
value?: string | number;
|
|
7
|
-
index: number;
|
|
8
|
-
position: number;
|
|
9
|
-
}) => void;
|
|
10
|
-
/**
|
|
11
|
-
* Period that seperates the ticks
|
|
12
|
-
*/
|
|
13
|
-
period?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Values that populate the range
|
|
16
|
-
*/
|
|
17
|
-
values: string[] | number[];
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** React */
|
|
2
|
-
import { HtmlHTMLAttributes } from "react";
|
|
3
|
-
/** CSS */
|
|
4
|
-
import "./index.css";
|
|
5
|
-
/** Props */
|
|
6
|
-
type Props = HtmlHTMLAttributes<HTMLDivElement> & {
|
|
7
|
-
period?: number;
|
|
8
|
-
values: string[] | number[];
|
|
9
|
-
allPositions?: number[];
|
|
10
|
-
handlePosition: (pixelPosition: number, thumbPosition: number, index: number, isHandleSelected?: boolean) => void;
|
|
11
|
-
handleOverContent: (value: string | number | undefined) => void;
|
|
12
|
-
handleOutContent: () => void;
|
|
13
|
-
over: string | number | undefined;
|
|
14
|
-
};
|
|
15
|
-
export declare function RangeContent({ period, values, allPositions, handlePosition, handleOverContent, handleOutContent, over, }: Props): import("react/jsx-runtime").JSX.Element[];
|
|
16
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** React */
|
|
2
|
-
import { HtmlHTMLAttributes } from "react";
|
|
3
|
-
/** CSS */
|
|
4
|
-
import "./index.css";
|
|
5
|
-
/** Props */
|
|
6
|
-
type Props = HtmlHTMLAttributes<HTMLDivElement> & {
|
|
7
|
-
indexPosition: number;
|
|
8
|
-
isPlay: boolean;
|
|
9
|
-
handlePlay: () => void;
|
|
10
|
-
handleStop: () => void;
|
|
11
|
-
};
|
|
12
|
-
export declare function RangeControls({ indexPosition, isPlay, handlePlay, handleStop, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** React */
|
|
2
|
-
import { HtmlHTMLAttributes } from "react";
|
|
3
|
-
/** CSS */
|
|
4
|
-
import "./index.css";
|
|
5
|
-
/** Props */
|
|
6
|
-
type Props = HtmlHTMLAttributes<HTMLDivElement> & {
|
|
7
|
-
thumbPosition?: string;
|
|
8
|
-
handleOverContent: (value: string | number | undefined) => void;
|
|
9
|
-
handleDownThumb: () => void;
|
|
10
|
-
};
|
|
11
|
-
export declare function RangeThumb({ thumbPosition, handleOverContent, handleDownThumb }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DATES: string[];
|
|
@@ -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, label, labelClassName, error, backgroundColor, isRequired, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default Select;
|
|
@@ -1,10 +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 PrimaryLabelAndLabelClass: Story;
|
|
8
|
-
export declare const Error: Story;
|
|
9
|
-
export declare const DifferentDefaultSelectedValue: Story;
|
|
10
|
-
export declare const DifferentClassNameGroup: Story;
|
|
@@ -1,53 +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
|
-
* Options of the select component.
|
|
18
|
-
*/
|
|
19
|
-
options?: string[];
|
|
20
|
-
/**
|
|
21
|
-
* Error message to show when input has an error.
|
|
22
|
-
*/
|
|
23
|
-
error: {
|
|
24
|
-
is: boolean;
|
|
25
|
-
message: string;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Style input group wrapper
|
|
29
|
-
*/
|
|
30
|
-
styleGroup?: CSSProperties;
|
|
31
|
-
/**Default selected value */
|
|
32
|
-
defaultValue?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Style of the backgroundColor
|
|
35
|
-
*/
|
|
36
|
-
backgroundColor?: string;
|
|
37
|
-
/**Pass a custom function to the select */
|
|
38
|
-
handleSelect?: Function;
|
|
39
|
-
/**Pass a custom function to the select */
|
|
40
|
-
setFormSelected?: Function;
|
|
41
|
-
/**Pass a custom function to the select on clear error*/
|
|
42
|
-
clearError?: Function;
|
|
43
|
-
/**Pass a custom function to the select on reset form*/
|
|
44
|
-
resetForm?: Function;
|
|
45
|
-
/**Pass a custom function to the select on form blur, when closing the select*/
|
|
46
|
-
onFormBlur?: Function;
|
|
47
|
-
/**Pass a custom label to the select*/
|
|
48
|
-
label?: string;
|
|
49
|
-
/**Pass a custom class to the label of the select*/
|
|
50
|
-
labelClassName?: string;
|
|
51
|
-
/**Sets if select is required or not*/
|
|
52
|
-
isRequired: boolean;
|
|
53
|
-
}
|
|
@@ -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, labelClassName, isRequired, placeholder, showHeight, backgroundColor, style, textareaClassName, ...rest }: TextAreaProps): JSX.Element;
|
|
5
|
-
export default TextArea;
|
|
@@ -1,10 +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;
|
|
8
|
-
export declare const ActiveWithLabel: Story;
|
|
9
|
-
export declare const ActiveWithConfigurableLabel: Story;
|
|
10
|
-
export declare const NoToggleButton: Story;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
2
|
-
import { FieldError, FieldErrorsImpl, Merge } from "react-hook-form";
|
|
3
|
-
export interface TextArea {
|
|
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
|
-
/**Places a text on top of the text-area */
|
|
41
|
-
label?: string;
|
|
42
|
-
/**className of the text on top of the text-area */
|
|
43
|
-
labelClassName?: string;
|
|
44
|
-
/**Shows the full component as disabled */
|
|
45
|
-
buttonDisabled?: boolean;
|
|
46
|
-
/**Changes the background color of the input*/
|
|
47
|
-
backgroundColor?: string;
|
|
48
|
-
/**Makes input text required or not*/
|
|
49
|
-
isRequired: boolean;
|
|
50
|
-
}
|
|
@@ -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,20 +0,0 @@
|
|
|
1
|
-
/** React */
|
|
2
|
-
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
3
|
-
import { Toc } from "../../components/map/index.types";
|
|
4
|
-
/** Context type */
|
|
5
|
-
type MapContextType = {
|
|
6
|
-
state?: {
|
|
7
|
-
currentLayer?: Toc;
|
|
8
|
-
};
|
|
9
|
-
setCurrentLayer: Dispatch<SetStateAction<Toc | undefined>>;
|
|
10
|
-
};
|
|
11
|
-
/** Props */
|
|
12
|
-
type MapProviderProps = {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
};
|
|
15
|
-
type UseMapProps = {
|
|
16
|
-
defaultLayer?: Toc;
|
|
17
|
-
};
|
|
18
|
-
export declare function MapProvider({ children }: MapProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare function useMap({ defaultLayer }: UseMapProps): MapContextType;
|
|
20
|
-
export {};
|
|
@@ -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;
|