@telegraph/modal 0.0.6 → 0.0.8

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,23 @@
1
1
  # @telegraph/modal
2
2
 
3
+ ## 0.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`c0647b8`](https://github.com/knocklabs/telegraph/commit/c0647b81149fbeae8d0a35629e04c2b95bd74d80), [`33a183c`](https://github.com/knocklabs/telegraph/commit/33a183cb834e3553251ab855c30ab93d512a3e38)]:
8
+ - @telegraph/layout@0.0.11
9
+ - @telegraph/button@0.0.19
10
+ - @telegraph/icon@0.0.11
11
+
12
+ ## 0.0.7
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`aa7b43d`](https://github.com/knocklabs/telegraph/commit/aa7b43d6a43aadab268abb2d93c67ad2c9dd981a), [`a93cecc`](https://github.com/knocklabs/telegraph/commit/a93cecce8fd3723759c340812bbd2fd71aa57644)]:
17
+ - @telegraph/layout@0.0.10
18
+ - @telegraph/icon@0.0.10
19
+ - @telegraph/button@0.0.18
20
+
3
21
  ## 0.0.6
4
22
 
5
23
  ### Patch Changes
@@ -9,20 +9,30 @@ type RootProps = Omit<React.ComponentPropsWithoutRef<typeof Dialog.Root>, "modal
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
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?: ({
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;
@@ -33,13 +43,18 @@ declare const Close: React.ForwardRefExoticComponent<(Omit<Omit<Omit<Dialog.Dial
33
43
  } & {
34
44
  ref?: (string | React.Ref<HTMLButtonElement>) | undefined;
35
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"> & {
36
- icon?: ({
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?: undefined;
45
60
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAO,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,SAAS,GAAG,IAAI,CACnB,KAAK,CAAC,wBAAwB,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,EAClD,OAAO,CACR,GACC,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,GAAG;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,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,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAIJ,QAAA,MAAM,IAAI,+FAqET,CAAC;AAKF,QAAA,MAAM,OAAO,qJAQZ,CAAC;AASF,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DAcV,CAAC;AAEF,KAAK,SAAS,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAG9D,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAQ7B,CAAC;AAEF,KAAK,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAGhE,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiBjC,CAAC;AAEF,KAAK,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAGhE,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkBjC,CAAC;AAEF,QAAA,MAAM,KAAK;UACH,WAAW;aACR,cAAc;WAChB,YAAY;UACb,WAAW;YACT,aAAa;YACb,aAAa;CACtB,CAAC;AAWF,OAAO,EAAE,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telegraph/modal",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
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.17",
40
- "@telegraph/icon": "^0.0.9",
41
- "@telegraph/layout": "^0.0.9",
39
+ "@telegraph/button": "^0.0.19",
40
+ "@telegraph/icon": "^0.0.11",
41
+ "@telegraph/layout": "^0.0.11",
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.2.12",
58
+ "vite": "^5.2.13",
59
59
  "vitest": "^1.2.2"
60
60
  },
61
61
  "peerDependencies": {