@telegraph/tag 0.0.14 → 0.0.16
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 +16 -0
- package/dist/types/Tag/Tag.d.ts +17 -6
- package/dist/types/Tag/Tag.d.ts.map +1 -1
- package/dist/types/Tag/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +5 -5
- package/dist/types/Tag/Tag.stories.d.ts +0 -11
- package/dist/types/Tag/Tag.stories.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @telegraph/tag
|
|
2
2
|
|
|
3
|
+
## 0.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`a93cecc`](https://github.com/knocklabs/telegraph/commit/a93cecce8fd3723759c340812bbd2fd71aa57644)]:
|
|
8
|
+
- @telegraph/icon@0.0.10
|
|
9
|
+
- @telegraph/button@0.0.18
|
|
10
|
+
- @telegraph/typography@0.0.10
|
|
11
|
+
|
|
12
|
+
## 0.0.15
|
|
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.14
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/types/Tag/Tag.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Lucide, Icon as TelegraphIcon } from
|
|
2
|
-
import React from
|
|
3
|
-
import { COLOR } from
|
|
1
|
+
import { Lucide, Icon as TelegraphIcon } from '@telegraph/icon';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { COLOR } from './Tag.constants';
|
|
4
|
+
|
|
4
5
|
type RootBaseProps = {
|
|
5
6
|
size?: "1" | "2";
|
|
6
7
|
color?: keyof (typeof COLOR.Root)["soft"];
|
|
@@ -20,7 +21,7 @@ declare const Text: React.ForwardRefExoticComponent<Omit<Omit<React.HTMLAttribut
|
|
|
20
21
|
color?: "white" | "default" | "gray" | "accent" | "red" | "blue" | "green" | "yellow" | "purple" | "beige" | "disabled" | undefined;
|
|
21
22
|
weight?: "regular" | "medium" | undefined;
|
|
22
23
|
} & React.RefAttributes<HTMLParagraphElement & HTMLSpanElement & HTMLDivElement & HTMLLabelElement & HTMLPreElement>, "as">>, "ref"> & React.RefAttributes<HTMLParagraphElement & HTMLSpanElement & HTMLDivElement & HTMLLabelElement & HTMLPreElement>>;
|
|
23
|
-
declare const Button: React.ForwardRefExoticComponent<Omit<import(
|
|
24
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<import('@telegraph/helpers').AsProp<React.ElementType<any, keyof React.JSX.IntrinsicElements>> & Omit<any, "as"> & {
|
|
24
25
|
variant?: "soft" | "solid" | "outline" | "ghost" | undefined;
|
|
25
26
|
size?: "1" | "2" | "3" | undefined;
|
|
26
27
|
color?: "gray" | "accent" | "red" | "blue" | "green" | "yellow" | "purple" | undefined;
|
|
@@ -29,13 +30,23 @@ declare const Button: React.ForwardRefExoticComponent<Omit<import("@telegraph/he
|
|
|
29
30
|
} & {
|
|
30
31
|
ref?: (string | React.Ref<HTMLButtonElement>) | undefined;
|
|
31
32
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
32
|
-
declare const Icon: React.ForwardRefExoticComponent<Omit<{
|
|
33
|
+
declare const Icon: React.ForwardRefExoticComponent<(Omit<{
|
|
33
34
|
icon: React.ForwardRefExoticComponent<Omit<Lucide.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
35
|
+
size?: "1" | "2" | "0" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | undefined;
|
|
36
|
+
variant?: "primary" | "secondary" | undefined;
|
|
37
|
+
color?: "white" | "default" | "gray" | "accent" | "red" | "blue" | "green" | "yellow" | "purple" | "beige" | "disabled" | undefined;
|
|
38
|
+
} & {
|
|
34
39
|
alt: string;
|
|
40
|
+
"aria-hidden"?: boolean | undefined;
|
|
41
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SVGSVGElement>, "ref"> | Omit<{
|
|
42
|
+
icon: React.ForwardRefExoticComponent<Omit<Lucide.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
35
43
|
size?: "1" | "2" | "0" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | undefined;
|
|
36
44
|
variant?: "primary" | "secondary" | undefined;
|
|
37
45
|
color?: "white" | "default" | "gray" | "accent" | "red" | "blue" | "green" | "yellow" | "purple" | "beige" | "disabled" | undefined;
|
|
38
|
-
} &
|
|
46
|
+
} & {
|
|
47
|
+
alt?: string | undefined;
|
|
48
|
+
"aria-hidden": true;
|
|
49
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SVGSVGElement>, "ref">) & React.RefAttributes<SVGSVGElement>>;
|
|
39
50
|
type DefaultProps = React.ComponentProps<typeof Root> & {
|
|
40
51
|
icon?: React.ComponentProps<typeof TelegraphIcon>;
|
|
41
52
|
onCopy?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/Tag/Tag.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAQ,MAAM,iBAAiB,CAAC;AAE9C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,OA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C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Tag } from
|
|
1
|
+
export { Tag } from './Tag';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Tag } from
|
|
1
|
+
export { Tag } from './Tag';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telegraph/tag",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"repository": "https://github.com/knocklabs/telegraph/tree/main/packages/tag",
|
|
5
5
|
"author": "@knocklabs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"preview": "vite preview"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@telegraph/button": "^0.0.
|
|
37
|
+
"@telegraph/button": "^0.0.18",
|
|
38
38
|
"@telegraph/helpers": "^0.0.1",
|
|
39
|
-
"@telegraph/icon": "^0.0.
|
|
39
|
+
"@telegraph/icon": "^0.0.10",
|
|
40
40
|
"@telegraph/typography": "^0.0.10",
|
|
41
41
|
"clsx": "^2.1.0"
|
|
42
42
|
},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@knocklabs/eslint-config": "^0.0.3",
|
|
45
45
|
"@knocklabs/prettier-config": "^0.0.1",
|
|
46
46
|
"@knocklabs/typescript-config": "^0.0.2",
|
|
47
|
-
"@telegraph/postcss-config": "^0.0.
|
|
47
|
+
"@telegraph/postcss-config": "^0.0.15",
|
|
48
48
|
"@telegraph/tailwind-config": "^0.0.11",
|
|
49
49
|
"@telegraph/vite-config": "^0.0.9",
|
|
50
50
|
"@telegraph/vitest-config": "^0.0.6",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-dom": "^18.2.0",
|
|
55
55
|
"typescript": "^5.3.3",
|
|
56
|
-
"vite": "^5.
|
|
56
|
+
"vite": "^5.2.12",
|
|
57
57
|
"vitest": "^1.2.2"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
-
import { Tag as TelegraphTag } from "./Tag";
|
|
4
|
-
declare const meta: Meta<typeof TelegraphTag>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type StorybookTagType = Omit<React.ComponentProps<typeof TelegraphTag>, "icon"> & {
|
|
7
|
-
icon?: string;
|
|
8
|
-
};
|
|
9
|
-
type Story = StoryObj<StorybookTagType>;
|
|
10
|
-
export declare const Tag: Story;
|
|
11
|
-
//# sourceMappingURL=Tag.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.stories.d.ts","sourceRoot":"","sources":["../../../src/Tag/Tag.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,OAAO,CAAC;AAK5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAwCnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,gBAAgB,GAAG,IAAI,CAC1B,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EACzC,MAAM,CACP,GAAG;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAExC,eAAO,MAAM,GAAG,EAAE,KAoBjB,CAAC"}
|