@toptal/picasso-tag 2.0.1 → 2.0.3-alpha-fx-null-fix-tag-7b2900a3d.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/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021-2022 Toptal, LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -13,7 +13,7 @@ import React, { forwardRef } from 'react';
13
13
  import { twMerge } from 'tailwind-merge';
14
14
  export const TagGroup = forwardRef(function TagGroup(props, ref) {
15
15
  const { children, className } = props, rest = __rest(props, ["children", "className"]);
16
- return (React.createElement("div", Object.assign({}, rest, { ref: ref, className: twMerge('min-w-full transition-none -mr-[0.5em] -mb-[0.5em] [&>*]:mr-2 [&>*]:mb-2', className) }), children));
16
+ return (React.createElement("div", Object.assign({}, rest, { ref: ref, className: twMerge('-mr-[0.5em] -mb-[0.5em] [&>*]:mr-[0.5em] [&>*]:mb-[0.5em]', className) }), children));
17
17
  });
18
18
  TagGroup.defaultProps = {
19
19
  children: undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"TagGroup.js","sourceRoot":"","sources":["../../../src/TagGroup/TagGroup.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAOxC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAwB,SAAS,QAAQ,CACzE,KAAK,EACL,GAAG;IAEH,MAAM,EAAE,QAAQ,EAAE,SAAS,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAxC,yBAAgC,CAAQ,CAAA;IAE9C,OAAO,CACL,6CACM,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,CAChB,0EAA0E,EAC1E,SAAS,CACV,KAEA,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,YAAY,GAAG;IACtB,QAAQ,EAAE,SAAS;CACpB,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"TagGroup.js","sourceRoot":"","sources":["../../../src/TagGroup/TagGroup.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAOxC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAwB,SAAS,QAAQ,CACzE,KAAK,EACL,GAAG;IAEH,MAAM,EAAE,QAAQ,EAAE,SAAS,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAxC,yBAAgC,CAAQ,CAAA;IAE9C,OAAO,CACL,6CACM,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,CAChB,2DAA2D,EAC3D,SAAS,CACV,KAEA,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,YAAY,GAAG;IACtB,QAAQ,EAAE,SAAS;CACpB,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,eAAe,QAAQ,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/picasso-tag",
3
- "version": "2.0.1",
3
+ "version": "2.0.3-alpha-fx-null-fix-tag-7b2900a3d.7+7b2900a3d",
4
4
  "description": "Toptal UI components library - Tag",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
24
24
  "dependencies": {
25
- "@toptal/picasso-icons": "1.2.0",
26
- "@toptal/picasso-shared": "15.0.0",
27
- "@toptal/picasso-typography": "2.0.1",
28
- "@toptal/picasso-utils": "1.0.3",
25
+ "@toptal/picasso-icons": "1.2.1-alpha-fx-null-fix-tag-7b2900a3d.11+7b2900a3d",
26
+ "@toptal/picasso-shared": "15.0.1-alpha-fx-null-fix-tag-7b2900a3d.25+7b2900a3d",
27
+ "@toptal/picasso-typography": "2.0.3-alpha-fx-null-fix-tag-7b2900a3d.7+7b2900a3d",
28
+ "@toptal/picasso-utils": "1.0.4-alpha-fx-null-fix-tag-7b2900a3d.25+7b2900a3d",
29
29
  "ap-style-title-case": "^1.1.2",
30
30
  "tailwind-merge": "^2.2.2"
31
31
  },
@@ -42,12 +42,13 @@
42
42
  ".": "./dist-package/src/index.js"
43
43
  },
44
44
  "devDependencies": {
45
- "@toptal/picasso-provider": "4.2.1",
46
- "@toptal/picasso-test-utils": "1.1.1"
45
+ "@toptal/picasso-provider": "4.2.2-alpha-fx-null-fix-tag-7b2900a3d.33+7b2900a3d",
46
+ "@toptal/picasso-test-utils": "1.1.2-alpha-fx-null-fix-tag-7b2900a3d.25+7b2900a3d"
47
47
  },
48
48
  "files": [
49
49
  "dist-package/**",
50
50
  "!dist-package/tsconfig.tsbuildinfo",
51
51
  "src"
52
- ]
52
+ ],
53
+ "gitHead": "7b2900a3d34f5627022f65bf3cbaa23b53aa48b8"
53
54
  }
@@ -104,7 +104,7 @@ exports[`Tag renders with adornment 1`] = `
104
104
  foobar
105
105
  </span>
106
106
  <span
107
- class="m-0 text-xxs text-inherit font-regular inline-flex items-center gap-[5px] text-gray group-aria-disabled:text-gray"
107
+ class="m-0 text-xxs font-regular inline-flex items-center gap-[5px] text-gray group-aria-disabled:text-gray"
108
108
  >
109
109
  <svg
110
110
  class="PicassoSvgLink16-root"
@@ -150,7 +150,7 @@ exports[`Tag renders with connection and icon 1`] = `
150
150
  foobar
151
151
  </span>
152
152
  <span
153
- class="m-0 text-xxs text-inherit font-regular inline-flex items-center gap-[5px] text-gray group-aria-disabled:text-gray"
153
+ class="m-0 text-xxs font-regular inline-flex items-center gap-[5px] text-gray group-aria-disabled:text-gray"
154
154
  >
155
155
  <svg
156
156
  class="PicassoSvgLink16-root"
@@ -19,7 +19,7 @@ export const TagGroup = forwardRef<HTMLDivElement, Props>(function TagGroup(
19
19
  {...rest}
20
20
  ref={ref}
21
21
  className={twMerge(
22
- 'min-w-full transition-none -mr-[0.5em] -mb-[0.5em] [&>*]:mr-2 [&>*]:mb-2',
22
+ '-mr-[0.5em] -mb-[0.5em] [&>*]:mr-[0.5em] [&>*]:mb-[0.5em]',
23
23
  className
24
24
  )}
25
25
  >
@@ -6,7 +6,7 @@ exports[`TagGroup should render label group with 4 labels 1`] = `
6
6
  class="Picasso-root"
7
7
  >
8
8
  <div
9
- class="min-w transition-none -mr -mb [&>*]:mr-2 [&>*]:mb-2"
9
+ class="-mr -mb [&>*]:mr-[0.5em] [&>*]:mb-[0.5em]"
10
10
  >
11
11
  <div
12
12
  class="text-lg transition-none border border-solid rounded-[6.25rem] h-6 max-w inline-flex justify-center items-center cursor-default bg-white group align-middle leading-[inherit] text-graphite border-gray"
@@ -9,7 +9,7 @@ exports[`TagRectangular renders rectangular Tag 1`] = `
9
9
  class="text-lg transition-none rounded-sm font-semibold h-4 inline-flex content-center justify-center align-middle bg-gray"
10
10
  >
11
11
  <p
12
- class="m-0 text-2xs text-graphite font-semibold whitespace-nowrap overflow-ellipsis overflow-hidden mx-1 w-max text-graphite"
12
+ class="m-0 text-2xs font-semibold whitespace-nowrap overflow-ellipsis overflow-hidden mx-1 w-max text-graphite"
13
13
  >
14
14
  Reactangular Tag
15
15
  </p>
@@ -1,12 +0,0 @@
1
- declare const _default: () => {
2
- root: {
3
- marginRight: string;
4
- marginBottom: string;
5
- '& > *': {
6
- marginRight: string;
7
- marginBottom: string;
8
- };
9
- };
10
- };
11
- export default _default;
12
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/TagGroup/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wBAUE"}
@@ -1,11 +0,0 @@
1
- export default () => ({
2
- root: {
3
- marginRight: '-0.5em',
4
- marginBottom: '-0.5em',
5
- '& > *': {
6
- marginRight: '0.5em',
7
- marginBottom: '0.5em',
8
- },
9
- },
10
- });
11
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/TagGroup/styles.ts"],"names":[],"mappings":"AAAA,eAAe,GAAG,EAAE,CAAC,CAAC;IACpB,IAAI,EAAE;QACJ,WAAW,EAAE,QAAQ;QACrB,YAAY,EAAE,QAAQ;QAEtB,OAAO,EAAE;YACP,WAAW,EAAE,OAAO;YACpB,YAAY,EAAE,OAAO;SACtB;KACF;CACF,CAAC,CAAA"}
@@ -1,11 +0,0 @@
1
- export default () => ({
2
- root: {
3
- marginRight: '-0.5em',
4
- marginBottom: '-0.5em',
5
-
6
- '& > *': {
7
- marginRight: '0.5em',
8
- marginBottom: '0.5em',
9
- },
10
- },
11
- })