@telegraph/modal 0.0.5 → 0.0.7

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,21 @@
1
1
  # @telegraph/modal
2
2
 
3
+ ## 0.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`aa7b43d`](https://github.com/knocklabs/telegraph/commit/aa7b43d6a43aadab268abb2d93c67ad2c9dd981a), [`a93cecc`](https://github.com/knocklabs/telegraph/commit/a93cecce8fd3723759c340812bbd2fd71aa57644)]:
8
+ - @telegraph/layout@0.0.10
9
+ - @telegraph/icon@0.0.10
10
+ - @telegraph/button@0.0.18
11
+
12
+ ## 0.0.6
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`c4fd745`](https://github.com/knocklabs/telegraph/commit/c4fd74560d25ae6905f4d9230714786b09d365b1)]:
17
+ - @telegraph/button@0.0.17
18
+
3
19
  ## 0.0.5
4
20
 
5
21
  ### Patch Changes
@@ -1,28 +1,38 @@
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"> & {
12
- leadingIcon?: ({
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
+ leadingIcon?: ((({
13
13
  icon: React.ForwardRefExoticComponent<Omit<Lucide.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
14
- alt: string;
15
14
  size?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | undefined;
16
15
  variant?: "primary" | "secondary" | undefined;
17
16
  color?: "white" | "disabled" | "default" | "gray" | "accent" | "beige" | "blue" | "green" | "yellow" | "purple" | "red" | undefined;
18
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SVGSVGElement>) | undefined;
19
- trailingIcon?: ({
20
- icon: React.ForwardRefExoticComponent<Omit<Lucide.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
17
+ } & ({
21
18
  alt: string;
19
+ "aria-hidden"?: boolean | undefined;
20
+ } | {
21
+ alt?: string | undefined;
22
+ "aria-hidden": true;
23
+ })) & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<SVGSVGElement>) | undefined;
24
+ trailingIcon?: ((({
25
+ icon: React.ForwardRefExoticComponent<Omit<Lucide.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
22
26
  size?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | undefined;
23
27
  variant?: "primary" | "secondary" | undefined;
24
28
  color?: "white" | "disabled" | "default" | "gray" | "accent" | "beige" | "blue" | "green" | "yellow" | "purple" | "red" | undefined;
25
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SVGSVGElement>) | undefined;
29
+ } & ({
30
+ alt: string;
31
+ "aria-hidden"?: boolean | undefined;
32
+ } | {
33
+ alt?: string | undefined;
34
+ "aria-hidden": true;
35
+ })) & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<SVGSVGElement>) | undefined;
26
36
  icon?: undefined;
27
37
  } & {
28
38
  variant?: "ghost" | "solid" | "soft" | "outline" | undefined;
@@ -32,14 +42,19 @@ declare const Close: React.ForwardRefExoticComponent<(Omit<Omit<Omit<Dialog.Dial
32
42
  active?: boolean | undefined;
33
43
  } & {
34
44
  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"> & {
36
- icon?: ({
45
+ }, "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"> & {
46
+ icon?: ((({
37
47
  icon: React.ForwardRefExoticComponent<Omit<Lucide.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
38
- alt: string;
39
48
  size?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | undefined;
40
49
  variant?: "primary" | "secondary" | undefined;
41
50
  color?: "white" | "disabled" | "default" | "gray" | "accent" | "beige" | "blue" | "green" | "yellow" | "purple" | "red" | undefined;
42
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SVGSVGElement>) | undefined;
51
+ } & ({
52
+ alt: string;
53
+ "aria-hidden"?: boolean | undefined;
54
+ } | {
55
+ alt?: string | undefined;
56
+ "aria-hidden": true;
57
+ })) & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<SVGSVGElement>) | undefined;
43
58
  leadingIcon?: undefined;
44
59
  trailingIcon?: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AAW;aACR,cAAc;WAChB,YAAY;UACb,WAAW;YACT,aAAa;YACb,aAAa;CACtB,CAAC;AAWF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -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.7",
4
4
  "repository": "https://github.com/knocklabs/telegraph/tree/main/packages/modal",
5
5
  "author": "@knocklabs",
6
6
  "license": "MIT",
@@ -36,9 +36,9 @@
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",
40
- "@telegraph/icon": "^0.0.9",
41
- "@telegraph/layout": "^0.0.9",
39
+ "@telegraph/button": "^0.0.18",
40
+ "@telegraph/icon": "^0.0.10",
41
+ "@telegraph/layout": "^0.0.10",
42
42
  "clsx": "^2.1.0",
43
43
  "framer-motion": "^11.1.9"
44
44
  },
@@ -46,7 +46,7 @@
46
46
  "@knocklabs/eslint-config": "^0.0.3",
47
47
  "@knocklabs/prettier-config": "^0.0.1",
48
48
  "@knocklabs/typescript-config": "^0.0.2",
49
- "@telegraph/postcss-config": "^0.0.14",
49
+ "@telegraph/postcss-config": "^0.0.15",
50
50
  "@telegraph/tailwind-config": "^0.0.11",
51
51
  "@telegraph/vite-config": "^0.0.9",
52
52
  "@telegraph/vitest-config": "^0.0.6",
@@ -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"}