@toptal/picasso-tabs 3.0.2-alpha-fx-null-revert-tabs-96315ad16.40 → 4.0.1

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.
@@ -2,7 +2,7 @@ import type { ForwardedRef, ReactNode } from 'react';
2
2
  import React from 'react';
3
3
  import { Tabs as MUITabs } from '@material-ui/core';
4
4
  import type { BaseProps } from '@toptal/picasso-shared';
5
- export declare type TabsValueType = string | number | null;
5
+ export declare type TabsValueType = string | number | false;
6
6
  export interface Props<V extends TabsValueType> extends BaseProps {
7
7
  /** Tabs content containing Tab components */
8
8
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,KAAqB,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAMvD,oBAAY,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;AAElD,MAAM,WAAW,KAAK,CAAC,CAAC,SAAS,aAAa,CAAE,SAAQ,SAAS;IAC/D,6CAA6C;IAC7C,QAAQ,EAAE,SAAS,CAAA;IAEnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAElE,uHAAuH;IACvH,KAAK,EAAE,CAAC,CAAA;IAER,oDAAoD;IACpD,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IAEvC,yDAAyD;IACzD,OAAO,CAAC,EAAE,YAAY,GAAG,WAAW,CAAA;CACrC;AAMD,eAAO,MAAM,sBAAsB,0CAEpB,CAAA;AAEf,eAAO,MAAM,IAAI;;MAqCZ,WAAW,cAAc,CAAC,CAAA;AAE/B,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,KAAqB,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAMvD,oBAAY,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;AAEnD,MAAM,WAAW,KAAK,CAAC,CAAC,SAAS,aAAa,CAAE,SAAQ,SAAS;IAC/D,6CAA6C;IAC7C,QAAQ,EAAE,SAAS,CAAA;IAEnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAElE,uHAAuH;IACvH,KAAK,EAAE,CAAC,CAAA;IAER,oDAAoD;IACpD,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IAEvC,yDAAyD;IACzD,OAAO,CAAC,EAAE,YAAY,GAAG,WAAW,CAAA;CACrC;AAMD,eAAO,MAAM,sBAAsB,0CAEpB,CAAA;AAEf,eAAO,MAAM,IAAI;;MAqCZ,WAAW,cAAc,CAAC,CAAA;AAE/B,eAAe,IAAI,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/picasso-tabs",
3
- "version": "3.0.2-alpha-fx-null-revert-tabs-96315ad16.40+96315ad16",
3
+ "version": "4.0.1",
4
4
  "description": "Toptal UI components library - Tabs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
24
24
  "dependencies": {
25
- "@toptal/picasso-container": "2.0.1-alpha-fx-null-revert-tabs-96315ad16.54+96315ad16",
26
- "@toptal/picasso-icons": "1.6.1-alpha-fx-null-revert-tabs-96315ad16.40+96315ad16",
27
- "@toptal/picasso-shared": "15.0.1-alpha-fx-null-revert-tabs-96315ad16.133+96315ad16",
28
- "@toptal/picasso-typography": "3.0.1-alpha-fx-null-revert-tabs-96315ad16.54+96315ad16",
29
- "@toptal/picasso-typography-overflow": "2.0.5-alpha-fx-null-revert-tabs-96315ad16.54+96315ad16",
30
- "@toptal/picasso-user-badge": "3.0.2-alpha-fx-null-revert-tabs-96315ad16.40+96315ad16",
31
- "@toptal/picasso-utils": "1.0.4-alpha-fx-null-revert-tabs-96315ad16.133+96315ad16",
25
+ "@toptal/picasso-container": "2.0.0",
26
+ "@toptal/picasso-icons": "1.6.0",
27
+ "@toptal/picasso-shared": "15.0.0",
28
+ "@toptal/picasso-typography": "3.0.0",
29
+ "@toptal/picasso-typography-overflow": "2.0.4",
30
+ "@toptal/picasso-user-badge": "3.0.1",
31
+ "@toptal/picasso-utils": "1.0.3",
32
32
  "ap-style-title-case": "^1.1.2",
33
33
  "classnames": "^2.5.1"
34
34
  },
@@ -39,21 +39,19 @@
39
39
  "peerDependencies": {
40
40
  "@material-ui/core": "4.12.4",
41
41
  "@toptal/picasso-provider": "*",
42
- "react": ">=16.12.0 < 19.0.0",
43
- "tailwindcss": ">=3"
42
+ "react": ">=16.12.0 < 19.0.0"
44
43
  },
45
44
  "exports": {
46
45
  ".": "./dist-package/src/index.js"
47
46
  },
48
47
  "devDependencies": {
49
- "@toptal/picasso-provider": "5.0.1-alpha-fx-null-revert-tabs-96315ad16.54+96315ad16",
50
- "@toptal/picasso-tailwind-merge": "1.2.1-alpha-fx-null-revert-tabs-96315ad16.54+96315ad16",
51
- "@toptal/picasso-test-utils": "1.1.2-alpha-fx-null-revert-tabs-96315ad16.133+96315ad16"
48
+ "@toptal/picasso-provider": "5.0.0",
49
+ "@material-ui/core": "4.12.4",
50
+ "@toptal/picasso-test-utils": "1.1.1"
52
51
  },
53
52
  "files": [
54
53
  "dist-package/**",
55
54
  "!dist-package/tsconfig.tsbuildinfo",
56
55
  "src"
57
- ],
58
- "gitHead": "96315ad160eabd6ec2f07fd7c70fbc5f69c04016"
56
+ ]
59
57
  }
@@ -6,7 +6,7 @@ exports[`Tab Tab disabled tab 1`] = `
6
6
  class="Picasso-root"
7
7
  >
8
8
  <div
9
- class="MuiTabs-root"
9
+ class="MuiTabs-root Tabs-horizontal"
10
10
  >
11
11
  <div
12
12
  class="MuiTabs-scrollable"
@@ -22,7 +22,7 @@ exports[`Tab Tab disabled tab 1`] = `
22
22
  >
23
23
  <button
24
24
  aria-selected="false"
25
- class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit Mui-disabled Mui-disabled"
25
+ class="MuiButtonBase-root MuiTab-root PicassoTab-horizontal MuiTab-textColorInherit Mui-disabled Mui-disabled"
26
26
  disabled=""
27
27
  role="tab"
28
28
  tabindex="-1"
@@ -32,7 +32,7 @@ exports[`Tab Tab disabled tab 1`] = `
32
32
  class="MuiTab-wrapper PicassoTab-wrapper"
33
33
  >
34
34
  <div
35
- class="m-0 text-md text-inherit font-semibold whitespace-nowrap overflow-ellipsis overflow-hidden inline TypographyOverflow-wrapper !block !whitespace-nowrap"
35
+ class="m-0 text-sm text-inherit font-semibold"
36
36
  >
37
37
  Tab Label
38
38
  </div>
@@ -55,7 +55,7 @@ exports[`Tab Tab renders 1`] = `
55
55
  class="Picasso-root"
56
56
  >
57
57
  <div
58
- class="MuiTabs-root"
58
+ class="MuiTabs-root Tabs-horizontal"
59
59
  >
60
60
  <div
61
61
  class="MuiTabs-scrollable"
@@ -71,7 +71,7 @@ exports[`Tab Tab renders 1`] = `
71
71
  >
72
72
  <button
73
73
  aria-selected="false"
74
- class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit"
74
+ class="MuiButtonBase-root MuiTab-root PicassoTab-horizontal MuiTab-textColorInherit"
75
75
  role="tab"
76
76
  tabindex="0"
77
77
  type="button"
@@ -80,7 +80,7 @@ exports[`Tab Tab renders 1`] = `
80
80
  class="MuiTab-wrapper PicassoTab-wrapper"
81
81
  >
82
82
  <div
83
- class="m-0 text-md text-inherit font-semibold whitespace-nowrap overflow-ellipsis overflow-hidden inline TypographyOverflow-wrapper !block !whitespace-nowrap"
83
+ class="m-0 text-sm text-inherit font-semibold"
84
84
  >
85
85
  Tab Label
86
86
  </div>
@@ -103,7 +103,7 @@ exports[`Tab Tab tab with icon 1`] = `
103
103
  class="Picasso-root"
104
104
  >
105
105
  <div
106
- class="MuiTabs-root"
106
+ class="MuiTabs-root Tabs-horizontal"
107
107
  >
108
108
  <div
109
109
  class="MuiTabs-scrollable"
@@ -119,7 +119,7 @@ exports[`Tab Tab tab with icon 1`] = `
119
119
  >
120
120
  <button
121
121
  aria-selected="false"
122
- class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit MuiTab-labelIcon"
122
+ class="MuiButtonBase-root MuiTab-root PicassoTab-horizontal MuiTab-textColorInherit MuiTab-labelIcon"
123
123
  role="tab"
124
124
  tabindex="0"
125
125
  type="button"
@@ -131,7 +131,7 @@ exports[`Tab Tab tab with icon 1`] = `
131
131
  id="Icon"
132
132
  />
133
133
  <div
134
- class="m-0 text-md text-inherit font-semibold whitespace-nowrap overflow-ellipsis overflow-hidden inline TypographyOverflow-wrapper !block !whitespace-nowrap"
134
+ class="m-0 text-sm text-inherit font-semibold"
135
135
  >
136
136
  Tab Label
137
137
  </div>
package/src/Tabs/Tabs.tsx CHANGED
@@ -9,7 +9,7 @@ import { TabScrollButton } from '../TabScrollButton'
9
9
  import styles from './styles'
10
10
  import useTabAction from './use-tab-action'
11
11
 
12
- export type TabsValueType = string | number | null
12
+ export type TabsValueType = string | number | false
13
13
 
14
14
  export interface Props<V extends TabsValueType> extends BaseProps {
15
15
  /** Tabs content containing Tab components */
package/src/Tabs/test.tsx CHANGED
@@ -60,7 +60,7 @@ describe('Tabs', () => {
60
60
  const { container, queryByTestId } = renderTabs(
61
61
  [{ label: 'Tab 1' }, { label: 'Tab 2' }],
62
62
  {
63
- value: null,
63
+ value: false,
64
64
  }
65
65
  )
66
66
 
@@ -73,7 +73,7 @@ describe('Tabs', () => {
73
73
  it('renders in vertical orientation', () => {
74
74
  const { container } = renderTabs(
75
75
  [{ label: 'Tab 1' }, { label: 'Tab 2' }],
76
- { value: null },
76
+ { value: false },
77
77
  'vertical'
78
78
  )
79
79
 
@@ -159,7 +159,7 @@ describe('Tabs', () => {
159
159
 
160
160
  it('renders in full width', () => {
161
161
  const { container } = renderTabs([{ label: 'Tab 1' }, { label: 'Tab 2' }], {
162
- value: null,
162
+ value: false,
163
163
  variant: 'fullWidth',
164
164
  })
165
165
 
package/LICENSE DELETED
@@ -1,20 +0,0 @@
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.