@toptal/picasso-tabs 4.0.0 → 4.0.2

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": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Toptal UI components library - Tabs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,7 +27,7 @@
27
27
  "@toptal/picasso-shared": "15.0.0",
28
28
  "@toptal/picasso-typography": "3.0.0",
29
29
  "@toptal/picasso-typography-overflow": "2.0.4",
30
- "@toptal/picasso-user-badge": "3.0.1",
30
+ "@toptal/picasso-user-badge": "3.0.2",
31
31
  "@toptal/picasso-utils": "1.0.3",
32
32
  "ap-style-title-case": "^1.1.2",
33
33
  "classnames": "^2.5.1"
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@toptal/picasso-provider": "5.0.0",
49
- "@toptal/picasso-tailwind-merge": "1.2.0",
49
+ "@material-ui/core": "4.12.4",
50
50
  "@toptal/picasso-test-utils": "1.1.1"
51
51
  },
52
52
  "files": [
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