@telegraph/modal 0.0.5 → 0.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @telegraph/modal
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`c4fd745`](https://github.com/knocklabs/telegraph/commit/c4fd74560d25ae6905f4d9230714786b09d365b1)]:
8
+ - @telegraph/button@0.0.17
9
+
3
10
  ## 0.0.5
4
11
 
5
12
  ### Patch Changes
@@ -1,14 +1,14 @@
1
+ import { Lucide } from '@telegraph/icon';
2
+ import { Stack } from '@telegraph/layout';
3
+ import { default as React } from 'react';
1
4
  import * as Dialog from "@radix-ui/react-dialog";
2
- import { Lucide } from "@telegraph/icon";
3
- import { Stack } from "@telegraph/layout";
4
- import React from "react";
5
5
  type RootProps = Omit<React.ComponentPropsWithoutRef<typeof Dialog.Root>, "modal"> & React.ComponentPropsWithoutRef<typeof Stack> & {
6
6
  a11yTitle: string;
7
7
  a11yDescription?: string;
8
8
  };
9
9
  declare const Root: React.ForwardRefExoticComponent<Omit<RootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
10
  declare const Content: React.ForwardRefExoticComponent<Omit<Dialog.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- declare const Close: React.ForwardRefExoticComponent<(Omit<Omit<Omit<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref">, "color"> & Omit<import("@telegraph/helpers").AsProp<React.ElementType<any, keyof React.JSX.IntrinsicElements>> & Omit<any, "as"> & {
11
+ declare const Close: React.ForwardRefExoticComponent<(Omit<Omit<Omit<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref">, "color"> & Omit<import('@telegraph/helpers').AsProp<React.ElementType<any, keyof React.JSX.IntrinsicElements>> & Omit<any, "as"> & {
12
12
  leadingIcon?: ({
13
13
  icon: React.ForwardRefExoticComponent<Omit<Lucide.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
14
14
  alt: string;
@@ -32,7 +32,7 @@ declare const Close: React.ForwardRefExoticComponent<(Omit<Omit<Omit<Dialog.Dial
32
32
  active?: boolean | undefined;
33
33
  } & {
34
34
  ref?: (string | React.Ref<HTMLButtonElement>) | undefined;
35
- }, "ref">, "ref"> | Omit<Omit<Omit<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref">, "color"> & Omit<import("@telegraph/helpers").AsProp<React.ElementType<any, keyof React.JSX.IntrinsicElements>> & Omit<any, "as"> & {
35
+ }, "ref">, "ref"> | Omit<Omit<Omit<Dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref">, "color"> & Omit<import('@telegraph/helpers').AsProp<React.ElementType<any, keyof React.JSX.IntrinsicElements>> & Omit<any, "as"> & {
36
36
  icon?: ({
37
37
  icon: React.ForwardRefExoticComponent<Omit<Lucide.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
38
38
  alt: string;
@@ -1,2 +1,2 @@
1
- export { Modal } from "./Modal";
1
+ export { Modal } from './Modal';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { Modal } from "./Modal";
1
+ export { Modal } from './Modal';
2
2
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telegraph/modal",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "repository": "https://github.com/knocklabs/telegraph/tree/main/packages/modal",
5
5
  "author": "@knocklabs",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@radix-ui/react-dialog": "^1.0.5",
38
38
  "@radix-ui/react-visually-hidden": "^1.0.3",
39
- "@telegraph/button": "^0.0.16",
39
+ "@telegraph/button": "^0.0.17",
40
40
  "@telegraph/icon": "^0.0.9",
41
41
  "@telegraph/layout": "^0.0.9",
42
42
  "clsx": "^2.1.0",
@@ -55,7 +55,7 @@
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
57
  "typescript": "^5.3.3",
58
- "vite": "^5.1.7",
58
+ "vite": "^5.2.12",
59
59
  "vitest": "^1.2.2"
60
60
  },
61
61
  "peerDependencies": {
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { Modal as TelegraphModal } from "./Modal";
3
- declare const meta: Meta<typeof TelegraphModal.Root>;
4
- export default meta;
5
- type Story = StoryObj<typeof TelegraphModal.Root>;
6
- export declare const Modal: Story;
7
- //# sourceMappingURL=Modal.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../src/Modal/Modal.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,SAAS,CAAC;AAElD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAAC,IAAI,CAG1C,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAElD,eAAO,MAAM,KAAK,EAAE,KA6BnB,CAAC"}