@dt-dds/react-tag 1.0.0-beta.46 → 1.0.0-beta.48
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 +23 -0
- package/dist/index.d.mts +39 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @dt-ui/react-tag
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.48
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: replace rounded with sharp icons
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @dt-dds/themes@1.0.0-beta.6
|
|
13
|
+
- @dt-dds/react-core@1.0.0-beta.46
|
|
14
|
+
- @dt-dds/react-tooltip@1.0.0-beta.54
|
|
15
|
+
|
|
16
|
+
## 1.0.0-beta.47
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- chore(dependencies): upgrade builders versions
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @dt-dds/react-core@1.0.0-beta.45
|
|
23
|
+
- @dt-dds/react-tooltip@1.0.0-beta.53
|
|
24
|
+
- @dt-dds/themes@1.0.0-beta.5
|
|
25
|
+
|
|
3
26
|
## 1.0.0-beta.46
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CustomTheme } from '@dt-dds/themes';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ComponentSize, BaseProps } from '@dt-dds/react-core';
|
|
4
|
+
import { TooltipBackground } from '@dt-dds/react-tooltip';
|
|
5
|
+
|
|
6
|
+
type TagColor = 'primary' | 'secondary' | 'informative' | 'warning' | 'success' | 'error';
|
|
7
|
+
type TagVariant = 'solid' | 'outlined';
|
|
8
|
+
type TagBorder = 'rounded' | 'squared';
|
|
9
|
+
type TagSize = Extract<ComponentSize, 'small' | 'medium'>;
|
|
10
|
+
|
|
11
|
+
type TagProps = {
|
|
12
|
+
variant?: TagVariant;
|
|
13
|
+
color?: TagColor;
|
|
14
|
+
border?: TagBorder;
|
|
15
|
+
size?: TagSize;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
isClickable?: boolean;
|
|
18
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;
|
|
19
|
+
onClose?: (event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
20
|
+
tooltipVariant?: TooltipBackground;
|
|
21
|
+
} & BaseProps;
|
|
22
|
+
declare const Tag: react.ForwardRefExoticComponent<{
|
|
23
|
+
variant?: TagVariant | undefined;
|
|
24
|
+
color?: TagColor | undefined;
|
|
25
|
+
border?: TagBorder | undefined;
|
|
26
|
+
size?: TagSize | undefined;
|
|
27
|
+
isDisabled?: boolean | undefined;
|
|
28
|
+
isClickable?: boolean | undefined;
|
|
29
|
+
onClick?: ((event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void) | undefined;
|
|
30
|
+
onClose?: ((event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void) | undefined;
|
|
31
|
+
tooltipVariant?: TooltipBackground | undefined;
|
|
32
|
+
} & BaseProps & react.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
|
|
34
|
+
declare module '@emotion/react' {
|
|
35
|
+
interface Theme extends CustomTheme {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { Tag, type TagBorder, type TagColor, type TagProps, type TagSize, type TagVariant };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -45,11 +45,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
45
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
46
|
|
|
47
47
|
// index.ts
|
|
48
|
-
var
|
|
49
|
-
__export(
|
|
48
|
+
var index_exports = {};
|
|
49
|
+
__export(index_exports, {
|
|
50
50
|
Tag: () => Tag
|
|
51
51
|
});
|
|
52
|
-
module.exports = __toCommonJS(
|
|
52
|
+
module.exports = __toCommonJS(index_exports);
|
|
53
53
|
|
|
54
54
|
// src/Tag.tsx
|
|
55
55
|
var import_react_tooltip = require("@dt-dds/react-tooltip");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-tag",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.48",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"test:update:snapshot": "jest -u"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
24
|
-
"@dt-dds/react-tooltip": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-core": "1.0.0-beta.46",
|
|
24
|
+
"@dt-dds/react-tooltip": "1.0.0-beta.54",
|
|
25
|
+
"@dt-dds/themes": "1.0.0-beta.6"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.22.9",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react": "^18.1.0",
|
|
44
44
|
"react-dom": "^18.2.0",
|
|
45
45
|
"tsconfig": "*",
|
|
46
|
-
"tsup": "^
|
|
46
|
+
"tsup": "^8.5.0",
|
|
47
47
|
"typescript": "^4.5.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|