@overmap-ai/blocks 0.0.2-alpha.1 → 0.0.2-alpha.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.
Files changed (84) hide show
  1. package/package.json +1 -1
  2. package/dist/stories/AlertDialog.stories.d.ts +0 -22
  3. package/dist/stories/Badge.stories.d.ts +0 -16
  4. package/dist/stories/Button.stories.d.ts +0 -20
  5. package/dist/stories/ButtonGroup.stories.d.ts +0 -30
  6. package/dist/stories/Dialog.stories.d.ts +0 -31
  7. package/dist/stories/DropdownMenu.stories.d.ts +0 -18
  8. package/dist/stories/Input.stories.d.ts +0 -17
  9. package/dist/stories/LeftAndRightPanels.stories.d.ts +0 -14
  10. package/dist/stories/Select.stories.d.ts +0 -21
  11. package/dist/stories/Separator.stories.d.ts +0 -17
  12. package/dist/stories/Switch.stories.d.ts +0 -24
  13. package/dist/stories/Text.stories.d.ts +0 -17
  14. package/dist/stories/TextArea.stories.d.ts +0 -17
  15. package/dist/stories/ToggleGroup.stories.d.ts +0 -24
  16. package/dist/stories/constants.d.ts +0 -2
  17. /package/dist/{src/Badge → Badge}/Badge.d.ts +0 -0
  18. /package/dist/{src/Badge → Badge}/index.d.ts +0 -0
  19. /package/dist/{src/Badge → Badge}/typings.d.ts +0 -0
  20. /package/dist/{src/ButtonGroup → ButtonGroup}/ButtonGroup.d.ts +0 -0
  21. /package/dist/{src/ButtonGroup → ButtonGroup}/context.d.ts +0 -0
  22. /package/dist/{src/ButtonGroup → ButtonGroup}/index.d.ts +0 -0
  23. /package/dist/{src/ButtonGroup → ButtonGroup}/typings.d.ts +0 -0
  24. /package/dist/{src/Buttons → Buttons}/Button.d.ts +0 -0
  25. /package/dist/{src/Buttons → Buttons}/IconButton.d.ts +0 -0
  26. /package/dist/{src/Buttons → Buttons}/constants.d.ts +0 -0
  27. /package/dist/{src/Buttons → Buttons}/index.d.ts +0 -0
  28. /package/dist/{src/Buttons → Buttons}/typings.d.ts +0 -0
  29. /package/dist/{src/Dialogs → Dialogs}/AlertDialog/AlertDialog.d.ts +0 -0
  30. /package/dist/{src/Dialogs → Dialogs}/AlertDialog/AlertDialogContent.d.ts +0 -0
  31. /package/dist/{src/Dialogs → Dialogs}/AlertDialog/context.d.ts +0 -0
  32. /package/dist/{src/Dialogs → Dialogs}/AlertDialog/hooks.d.ts +0 -0
  33. /package/dist/{src/Dialogs → Dialogs}/AlertDialog/index.d.ts +0 -0
  34. /package/dist/{src/Dialogs → Dialogs}/AlertDialog/typings.d.ts +0 -0
  35. /package/dist/{src/Dialogs → Dialogs}/Dialog/Dialog.d.ts +0 -0
  36. /package/dist/{src/Dialogs → Dialogs}/Dialog/DialogContent.d.ts +0 -0
  37. /package/dist/{src/Dialogs → Dialogs}/Dialog/index.d.ts +0 -0
  38. /package/dist/{src/Dialogs → Dialogs}/Dialog/typings.d.ts +0 -0
  39. /package/dist/{src/Dialogs → Dialogs}/index.d.ts +0 -0
  40. /package/dist/{src/Dialogs → Dialogs}/typings.d.ts +0 -0
  41. /package/dist/{src/DropdownMenu → DropdownMenu}/DropdownMenu.d.ts +0 -0
  42. /package/dist/{src/DropdownMenu → DropdownMenu}/index.d.ts +0 -0
  43. /package/dist/{src/DropdownMenu → DropdownMenu}/typings.d.ts +0 -0
  44. /package/dist/{src/Input → Input}/Input.d.ts +0 -0
  45. /package/dist/{src/Input → Input}/index.d.ts +0 -0
  46. /package/dist/{src/Input → Input}/typings.d.ts +0 -0
  47. /package/dist/{src/LeftAndRightPanels → LeftAndRightPanels}/LeftAndRightPanels.d.ts +0 -0
  48. /package/dist/{src/LeftAndRightPanels → LeftAndRightPanels}/index.d.ts +0 -0
  49. /package/dist/{src/MultiSelect → MultiSelect}/MultiSelect.d.ts +0 -0
  50. /package/dist/{src/MultiSelect → MultiSelect}/MultiSelectItem.d.ts +0 -0
  51. /package/dist/{src/MultiSelect → MultiSelect}/index.d.ts +0 -0
  52. /package/dist/{src/Popover → Popover}/Popover.d.ts +0 -0
  53. /package/dist/{src/Popover → Popover}/index.d.ts +0 -0
  54. /package/dist/{src/Popover → Popover}/typings.d.ts +0 -0
  55. /package/dist/{src/Select → Select}/Select.d.ts +0 -0
  56. /package/dist/{src/Select → Select}/index.d.ts +0 -0
  57. /package/dist/{src/Select → Select}/typings.d.ts +0 -0
  58. /package/dist/{src/Separator → Separator}/Separator.d.ts +0 -0
  59. /package/dist/{src/Separator → Separator}/index.d.ts +0 -0
  60. /package/dist/{src/Separator → Separator}/typings.d.ts +0 -0
  61. /package/dist/{src/Sidebar → Sidebar}/Sidebar.d.ts +0 -0
  62. /package/dist/{src/Sidebar → Sidebar}/index.d.ts +0 -0
  63. /package/dist/{src/Switch → Switch}/Switch.d.ts +0 -0
  64. /package/dist/{src/Switch → Switch}/index.d.ts +0 -0
  65. /package/dist/{src/Switch → Switch}/typings.d.ts +0 -0
  66. /package/dist/{src/Text → Text}/Text.d.ts +0 -0
  67. /package/dist/{src/Text → Text}/index.d.ts +0 -0
  68. /package/dist/{src/TextArea → TextArea}/TextArea.d.ts +0 -0
  69. /package/dist/{src/TextArea → TextArea}/index.d.ts +0 -0
  70. /package/dist/{src/TextArea → TextArea}/typings.d.ts +0 -0
  71. /package/dist/{src/Theme → Theme}/DefaultTheme.d.ts +0 -0
  72. /package/dist/{src/Theme → Theme}/index.d.ts +0 -0
  73. /package/dist/{src/Toast → Toast}/Toast.d.ts +0 -0
  74. /package/dist/{src/Toast → Toast}/ToastContext.d.ts +0 -0
  75. /package/dist/{src/Toast → Toast}/ToastProvider.d.ts +0 -0
  76. /package/dist/{src/Toast → Toast}/index.d.ts +0 -0
  77. /package/dist/{src/Toast → Toast}/typings.d.ts +0 -0
  78. /package/dist/{src/ToggleGroup → ToggleGroup}/ToggleGroup.d.ts +0 -0
  79. /package/dist/{src/ToggleGroup → ToggleGroup}/index.d.ts +0 -0
  80. /package/dist/{src/ToggleGroup → ToggleGroup}/typings.d.ts +0 -0
  81. /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
  82. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  83. /package/dist/{src/typings.d.ts → typings.d.ts} +0 -0
  84. /package/dist/{src/utils.d.ts → utils.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overmap-ai/blocks",
3
- "version": "0.0.2-alpha.1",
3
+ "version": "0.0.2-alpha.3",
4
4
  "description": "A collection of React components for building Overmap's UI.",
5
5
  "private": false,
6
6
  "author": "Wôrdn Inc.",
@@ -1,22 +0,0 @@
1
- import React from "react";
2
- import { AlertDialog } from "../src";
3
- import type { StoryObj } from "@storybook/react";
4
- declare const meta: {
5
- title: string;
6
- component: React.NamedExoticComponent<import("../src/Dialogs/AlertDialog/typings").AlertDialogProps>;
7
- tags: string[];
8
- argTypes: {
9
- severity: {
10
- options: string[];
11
- control: {
12
- type: string;
13
- };
14
- };
15
- };
16
- };
17
- export default meta;
18
- type Story = StoryObj<typeof AlertDialog>;
19
- export declare const Basic: Story;
20
- /** Complete example using `AlertDialogProvider`, `useAlertDialog`, and `Dialog` */
21
- export declare const AlertToDiscardChangesOnClose: Story;
22
- export declare const WithCustomContent: Story;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { Badge } from "../src";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src").BadgeProps>;
7
- tags: string[];
8
- args: {
9
- children: string;
10
- };
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof Badge>;
14
- export declare const Basic: Story;
15
- export declare const Variants: Story;
16
- export declare const Severity: Story;
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { Button } from "../src";
3
- import type { StoryObj } from "@storybook/react";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src/Buttons/typings").ButtonProps>;
7
- tags: string[];
8
- args: {
9
- children: string;
10
- };
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof Button>;
14
- export declare const Basic: Story;
15
- /** Disabling the buttons effects the click-ability, background color, and cursor. */
16
- export declare const Disabled: Story;
17
- export declare const Variants: Story;
18
- export declare const Sizes: Story;
19
- export declare const Severities: Story;
20
- export declare const HoverEffects: Story;
@@ -1,30 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonGroup } from "../src";
3
- import type { StoryObj } from "@storybook/react";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src").ButtonGroupProps>;
7
- tags: string[];
8
- args: {
9
- width: "100%";
10
- };
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof ButtonGroup>;
14
- export declare const Basic: Story;
15
- /** ButtonGroup offers a variety of layout related props. The merged prop will result in each Button in the ButtonGroup
16
- * being flush with one another creating a connected look. Note that it is suggested not to use this with the outline Variant.
17
- * When merge is false, the gap prop can be altered to change how far the spacing between Buttons contained within the ButtonGroup.
18
- * Other components in general can be rendered within the ButtonGroup giving freedom to specify custom Separators between each Button.
19
- * */
20
- export declare const MergedVsUnmerged: Story;
21
- /** ButtonGroup supports the common severities */
22
- export declare const Severities: Story;
23
- /** ButtonGroup supports the same Variants as the Button and IconButton components. The variant will be applied to
24
- * all Button and IconButton components contained within the ButtonGroup. The ButtonGroup variant can be overridden
25
- * by passing in a variant to an individual Button or IconButton component. ButtonGroup variants refer to different styles
26
- * or appearances that a button can have. Choosing the right button variant is crucial for providing clear user feedback
27
- * and maintaining a consistent user interface.*/
28
- export declare const Variants: Story;
29
- export declare const Sizes: Story;
30
- export declare const HoverEffects: Story;
@@ -1,31 +0,0 @@
1
- /// <reference types="react" />
2
- import { Dialog } from "../src";
3
- import type { StoryObj } from "@storybook/react";
4
- import { DialogContent } from "../src/Dialogs/Dialog/DialogContent";
5
- declare const meta: {
6
- title: string;
7
- component: import("react").NamedExoticComponent<import("../src/Dialogs/Dialog/typings").DialogProps>;
8
- tags: string[];
9
- argTypes: {
10
- size: {
11
- options: string[];
12
- control: {
13
- type: string;
14
- };
15
- };
16
- };
17
- args: {
18
- onCloseInterrupt: undefined;
19
- };
20
- };
21
- export default meta;
22
- type Story = StoryObj<typeof Dialog>;
23
- export declare const Basic: Story;
24
- export declare const Nested: Story;
25
- export declare const WithInsetContent: Story;
26
- /**
27
- * The `DialogContent` should not be used directly. This story is just to show
28
- * how some of the props are used without being forced to open the dialog, and so
29
- * accessability reports can be generated for the content of the dialog.
30
- */
31
- export declare const Content: StoryObj<typeof DialogContent>;
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { Root } from "../src/DropdownMenu/DropdownMenu";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src").DropdownMenuProps>;
7
- tags: string[];
8
- };
9
- export default meta;
10
- type Story = StoryObj<typeof Root>;
11
- /** This is the component structure of how to use the DropdownMenu component. Click show code to view the structure. */
12
- export declare const Basic: Story;
13
- /** DropdownMenu gives 2 options for applying severities. Severities can be applied to the overall DropdownMenu
14
- * which will apply to every DropdownMenuItem. Severities can be individually applied to each DropdownMenuItem which
15
- * will overwrite any severity passed into the overall DropdownMenu */
16
- export declare const Severities: Story;
17
- export declare const Variants: Story;
18
- export declare const Separators: Story;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { Input } from "../src/Input/Input";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src").InputProps>;
7
- tags: string[];
8
- args: {
9
- placeholder: string;
10
- };
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof Input>;
14
- export declare const Basic: Story;
15
- export declare const Size: Story;
16
- export declare const WithButtons: Story;
17
- export declare const Variants: Story;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- declare const meta: {
3
- title: string;
4
- component: import("react").FC<import("../src").LeftAndRightPanelsProps>;
5
- tags: string[];
6
- args: {
7
- children: import("react/jsx-runtime").JSX.Element;
8
- leftPanel: import("react/jsx-runtime").JSX.Element;
9
- rightPanel: import("react/jsx-runtime").JSX.Element;
10
- };
11
- };
12
- export default meta;
13
- export declare const Basic: () => import("react/jsx-runtime").JSX.Element;
14
- export declare const Linear: () => import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { Select } from "../src/Select/Select";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src").SelectProps>;
7
- tags: string[];
8
- args: {
9
- placeholder: string;
10
- items: {
11
- value: string;
12
- itemContent: string;
13
- }[];
14
- };
15
- };
16
- export default meta;
17
- type Story = StoryObj<typeof Select>;
18
- export declare const Basic: Story;
19
- export declare const SizesWithButtons: Story;
20
- export declare const SeveritiesAndVariants: Story;
21
- export declare const Customizability: Story;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { Separator } from "../src";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src").SeparatorProps>;
7
- tags: string[];
8
- args: {
9
- text: string;
10
- size: "4";
11
- };
12
- };
13
- export default meta;
14
- type Story = StoryObj<typeof Separator>;
15
- export declare const Basic: Story;
16
- export declare const Sizes: Story;
17
- export declare const Severities: Story;
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { Switch } from "../src";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src").SwitchProps>;
7
- tags: string[];
8
- args: {
9
- severity: "danger";
10
- variant: "soft";
11
- icon: {
12
- unchecked: import("react/jsx-runtime").JSX.Element;
13
- checked: import("react/jsx-runtime").JSX.Element;
14
- };
15
- };
16
- };
17
- export default meta;
18
- type Story = StoryObj<typeof Switch>;
19
- export declare const Basic: Story;
20
- /** The Switch component has the ability to be controlled using a boolean state. Controlling the Switch is done through the
21
- * props checked and onCheckedChange. */
22
- export declare const Controlled: () => import("react/jsx-runtime").JSX.Element;
23
- /** The Switch component can also be left uncontrolled. The prop defaultChecked can be used to set the inital state */
24
- export declare const Uncontrolled: Story;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { Text } from "../src";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<import("../src").TextProps>;
7
- tags: string[];
8
- args: {
9
- children: string;
10
- };
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof Text>;
14
- export declare const Basic: Story;
15
- /** `noWrap` will turn the component into a block component and only allow a single line, adding an ellipse at the end of overflowing */
16
- export declare const OverflowingText: Story;
17
- export declare const Sizes: Story;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { TextArea, TextAreaProps } from "../src";
4
- declare const meta: {
5
- title: string;
6
- component: import("react").FC<TextAreaProps>;
7
- tags: string[];
8
- args: {
9
- placeholder: string;
10
- };
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof TextArea>;
14
- export declare const Basic: Story;
15
- export declare const Size: Story;
16
- export declare const Variants: Story;
17
- export declare const InputLength: Story;
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import { ToggleGroup } from "../src";
4
- import { ToggleGroupSingleProps } from "../src";
5
- declare const meta: {
6
- title: string;
7
- component: import("react").FC<ToggleGroupSingleProps>;
8
- tags: string[];
9
- args: {
10
- type: "single";
11
- value: string;
12
- size: "large";
13
- width: "100%";
14
- fluid: true;
15
- merged: false;
16
- items: {
17
- value: string;
18
- children: import("react/jsx-runtime").JSX.Element;
19
- }[];
20
- };
21
- };
22
- export default meta;
23
- type Story = StoryObj<typeof ToggleGroup>;
24
- export declare const Basic: Story;
@@ -1,2 +0,0 @@
1
- import { Severity } from "../src";
2
- export declare const severities: Severity[];
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes