@synerise/ds-tags 0.10.16 → 0.10.18

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
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.10.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@0.10.17...@synerise/ds-tags@0.10.18) (2024-11-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fixed types with htmlattributes ([7e84ba3](https://github.com/Synerise/synerise-design/commit/7e84ba316db9abee7bf16a46fa6b15ea76337cf4))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.10.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@0.10.16...@synerise/ds-tags@0.10.17) (2024-11-12)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-tags
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.10.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@0.10.15...@synerise/ds-tags@0.10.16) (2024-11-12)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-tags
package/dist/Tag/Tag.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["id", "name", "className", "disabled", "removable", "image", "shape", "color", "textColor", "onRemove", "onClick", "prefixel", "suffixel", "texts", "asPill", "dashed"];
2
2
 
3
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,6 +1,7 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
2
- import { TagsTexts } from '../Tags.types';
3
- export type TagProps = {
1
+ import type { ReactNode } from 'react';
2
+ import type { WithHTMLAttributes } from '@synerise/ds-utils';
3
+ import type { TagsTexts } from '../Tags.types';
4
+ export type TagProps = WithHTMLAttributes<HTMLDivElement, {
4
5
  id?: string | number;
5
6
  name?: string;
6
7
  textColor?: string;
@@ -17,7 +18,7 @@ export type TagProps = {
17
18
  texts?: TagsTexts;
18
19
  asPill?: boolean;
19
20
  dashed?: boolean;
20
- } & HTMLAttributes<HTMLDivElement>;
21
+ }>;
21
22
  export type Props = TagProps;
22
23
  export declare enum TagShape {
23
24
  SINGLE_CHARACTER_ROUND = "single_character_round",
package/dist/Tags.d.ts CHANGED
@@ -6,10 +6,10 @@ declare const _default: React.ForwardRefExoticComponent<{
6
6
  children?: React.ReactNode;
7
7
  disabled?: boolean | undefined;
8
8
  maxHeight?: number | undefined;
9
- selected?: import("./Tag/Tag.types").TagProps[] | undefined;
10
9
  removable?: boolean | undefined;
11
10
  texts?: import("./Tags.types").TagsTexts | undefined;
12
11
  asPill?: boolean | undefined;
12
+ selected?: import("./Tag/Tag.types").TagProps[] | undefined;
13
13
  overlayStyle?: React.CSSProperties | undefined;
14
14
  tagShape?: import("./Tag/Tag.types").TagShape | undefined;
15
15
  onSelectedChange?: ((tags: import("./Tag/Tag.types").TagProps[], action: import("./Tags.types").ActionTaken) => void) | undefined;
package/dist/Tags.js CHANGED
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
4
  import { withTheme } from 'styled-components';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-tags",
3
- "version": "0.10.16",
3
+ "version": "0.10.18",
4
4
  "description": "Tags UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,19 +34,19 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^0.21.17",
38
- "@synerise/ds-dropdown": "^0.18.22",
39
- "@synerise/ds-icon": "^0.66.3",
40
- "@synerise/ds-result": "^0.7.12",
41
- "@synerise/ds-scrollbar": "^0.11.17",
42
- "@synerise/ds-search-bar": "^0.7.0",
43
- "@synerise/ds-tooltip": "^0.14.47",
44
- "@synerise/ds-utils": "^0.31.0"
37
+ "@synerise/ds-button": "^0.21.19",
38
+ "@synerise/ds-dropdown": "^0.18.24",
39
+ "@synerise/ds-icon": "^0.67.0",
40
+ "@synerise/ds-result": "^0.7.14",
41
+ "@synerise/ds-scrollbar": "^0.11.19",
42
+ "@synerise/ds-search-bar": "^0.7.2",
43
+ "@synerise/ds-tooltip": "^0.14.49",
44
+ "@synerise/ds-utils": "^0.31.2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@synerise/ds-core": "*",
48
48
  "react": ">=16.9.0 <= 17.0.2",
49
49
  "styled-components": "5.0.1"
50
50
  },
51
- "gitHead": "1bb66dcc360a650e81b9bd195d5b77aa8ae2d308"
51
+ "gitHead": "05f083c767e2cec3c2f91c9475aee89852a77d6c"
52
52
  }