@telicent-oss/ds 0.8.1-rc3 → 0.9.1-rc3
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/ds.js +19583 -17393
- package/dist/ds.umd.cjs +133 -118
- package/dist/src/test-utils.d.ts +3 -1
- package/dist/src/v1/components/data-display/FontAwesomeIcons/ClockIcon.d.ts +6 -0
- package/dist/src/v1/components/data-display/FontAwesomeIcons/index.d.ts +1 -0
- package/dist/src/v1/components/data-display/Icons/DragHandleIcon.d.ts +5 -0
- package/dist/src/v1/components/data-display/Icons/MapIcon.d.ts +5 -0
- package/dist/src/v1/components/data-display/Icons/index.d.ts +2 -0
- package/dist/src/v1/components/inputs/SearchBox/MiniSearchAutocomplete.d.ts +1 -1
- package/dist/src/v1/components/surfaces/FloatingPanel/DraggableFloatingPanel.d.ts +18 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/DraggableFloatingPanel.stories.d.ts +7 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/FloatingPanelDock.d.ts +10 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/FloatingPanelDock.stories.d.ts +7 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/FloatingPanelDockItem.d.ts +12 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/FloatingPanelDockItem.stories.d.ts +7 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/FloatingPanelProvider.d.ts +22 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/FloatingPanelToggleButton.d.ts +10 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/__tests__/useFloatingPanels.test.d.ts +1 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/__tests__/useFloatingPanelsContext.test.d.ts +1 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/index.d.ts +13 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/useFloatingPanelContext.d.ts +5 -0
- package/dist/src/v1/components/surfaces/FloatingPanel/useFloatingPanels.d.ts +4 -0
- package/dist/src/v1/components/surfaces/index.d.ts +1 -0
- package/package.json +2 -1
package/dist/src/test-utils.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { RenderOptions } from '@testing-library/react';
|
|
2
|
+
|
|
3
|
+
export declare const setup: (jsx: JSX.Element, options: RenderOptions) => {
|
|
2
4
|
container: HTMLElement;
|
|
3
5
|
baseElement: HTMLElement;
|
|
4
6
|
debug: (baseElement?: Element | DocumentFragment | Array<Element | DocumentFragment>, maxLength?: number, options?: import('pretty-format').OptionsReceived) => void;
|
|
@@ -2,8 +2,10 @@ export { default as BinIcon } from './BinIcon';
|
|
|
2
2
|
export { default as CloseIcon } from './CloseIcon';
|
|
3
3
|
export { default as DataServiceIcon } from './DataServiceIcon';
|
|
4
4
|
export { default as DataSetIcon } from './DataSetIcon';
|
|
5
|
+
export { default as DragHandleIcon } from './DragHandleIcon';
|
|
5
6
|
export { default as FloppyDiskIcon } from './FloppyDiskIcon';
|
|
6
7
|
export { default as GridIcon } from './GridIcon';
|
|
8
|
+
export { default as MapIcon } from './MapIcon';
|
|
7
9
|
export { default as MinusCircleIcon } from './MinusCircleIcon';
|
|
8
10
|
export { default as PlayIcon } from './PlayIcon';
|
|
9
11
|
export { default as PlusCircleIcon } from './PlusCircleIcon';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { UseAutocompleteProps } from '@mui/material/useAutocomplete
|
|
2
|
+
import { UseAutocompleteProps } from '@mui/material/useAutocomplete';
|
|
3
3
|
import { ProgressProps } from './MiniSearchBox';
|
|
4
4
|
|
|
5
5
|
type AutocompleteOption = {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
interface DraggableFloatingPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
targetId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
bounds?: "parent" | "window" | "body" | string | Element;
|
|
7
|
+
count?: number;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
defaultPosition?: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const DraggableFloatingPanel: React.FC<DraggableFloatingPanelProps>;
|
|
17
|
+
export default DraggableFloatingPanel;
|
|
18
|
+
export type { DraggableFloatingPanelProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { FloatingPanel } from './index';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof FloatingPanel.DraggablePanel>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof FloatingPanel.DraggablePanel>;
|
|
7
|
+
export declare const Demo: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
|
|
3
|
+
interface FloatingPanelDockProps extends PropsWithChildren<HTMLAttributes<HTMLUListElement>> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Appears at the bottom of the screen. Holds `FloatingPanelItem` items
|
|
7
|
+
*/
|
|
8
|
+
declare const FloatingPanelDock: React.FC<FloatingPanelDockProps>;
|
|
9
|
+
export default FloatingPanelDock;
|
|
10
|
+
export type { FloatingPanelDockProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
interface FloatingPanelItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
4
|
+
label: string;
|
|
5
|
+
targetId: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
count?: number;
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const FloatingPanelItem: React.FC<FloatingPanelItemProps>;
|
|
11
|
+
export default FloatingPanelItem;
|
|
12
|
+
export type { FloatingPanelItemProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { FloatingPanel } from './index';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof FloatingPanel.DockItem>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof FloatingPanel.DockItem>;
|
|
7
|
+
export declare const Demo: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface PanelState {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
minimised: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface PanelsType extends Record<string, PanelState> {
|
|
8
|
+
}
|
|
9
|
+
type ToggleFn = (id: string) => void;
|
|
10
|
+
type GetFn = (id: string, state: "visible" | "minimised") => boolean;
|
|
11
|
+
interface FloatingPanelContextType {
|
|
12
|
+
toggleVisibility: ToggleFn;
|
|
13
|
+
toggleMinimized: ToggleFn;
|
|
14
|
+
get: GetFn;
|
|
15
|
+
panels: PanelsType;
|
|
16
|
+
}
|
|
17
|
+
export declare const FloatingPanelContext: React.Context<FloatingPanelContextType | undefined>;
|
|
18
|
+
interface FloatingPanelProviderProps {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const FloatingPanelProvider: React.FC<FloatingPanelProviderProps>;
|
|
22
|
+
export type { FloatingPanelContextType, FloatingPanelProviderProps, PanelsType, PanelState, ToggleFn };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToggleButtonProps as MUIToggleButtonProps } from '@mui/material/ToggleButton';
|
|
3
|
+
|
|
4
|
+
interface FloatingPanelToggleButtonProps extends Omit<MUIToggleButtonProps, "sx" | "classes" | "color" | "onClick" | "selected"> {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
declare const FloatingPanelToggleButton: React.FC<FloatingPanelToggleButtonProps>;
|
|
9
|
+
export default FloatingPanelToggleButton;
|
|
10
|
+
export type { FloatingPanelToggleButtonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/src/v1/components/surfaces/FloatingPanel/__tests__/useFloatingPanelsContext.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const FloatingPanel: {
|
|
2
|
+
Dock: import('react').FC<import('./FloatingPanelDock').FloatingPanelDockProps>;
|
|
3
|
+
DockItem: import('react').FC<import('./FloatingPanelDockItem').FloatingPanelItemProps>;
|
|
4
|
+
DraggablePanel: import('react').FC<import('./DraggableFloatingPanel').DraggableFloatingPanelProps>;
|
|
5
|
+
Provider: import('react').FC<import('./FloatingPanelProvider').FloatingPanelProviderProps>;
|
|
6
|
+
ToggleButton: import('react').FC<import('./FloatingPanelToggleButton').FloatingPanelToggleButtonProps>;
|
|
7
|
+
};
|
|
8
|
+
export { default as useFloatingPanels } from './useFloatingPanels';
|
|
9
|
+
export * from './DraggableFloatingPanel';
|
|
10
|
+
export * from './FloatingPanelDock';
|
|
11
|
+
export * from './FloatingPanelDockItem';
|
|
12
|
+
export * from './FloatingPanelProvider';
|
|
13
|
+
export * from './FloatingPanelToggleButton';
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/telicent-oss/telicent-ds.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.9.1-rc3",
|
|
11
11
|
"private": false,
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@emotion/react": "^11.10.6",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"lodash": "^4.17.21",
|
|
28
28
|
"maplibre-gl": "^4.0.0",
|
|
29
29
|
"react-map-gl": "7.1.0",
|
|
30
|
+
"react-rnd": "^10.4.13",
|
|
30
31
|
"zod": "^3.21.4"
|
|
31
32
|
},
|
|
32
33
|
"resolutions": {
|