@purpurds/tabs 4.5.0 → 4.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/tabs",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/tabs.cjs.js",
6
6
  "types": "./dist/tabs.d.ts",
@@ -16,9 +16,9 @@
16
16
  "dependencies": {
17
17
  "classnames": "~2.5.0",
18
18
  "@radix-ui/react-tabs": "~1.0.4",
19
- "@purpurds/tokens": "4.5.0",
20
- "@purpurds/paragraph": "4.5.0",
21
- "@purpurds/icon": "4.5.0"
19
+ "@purpurds/tokens": "4.6.0",
20
+ "@purpurds/paragraph": "4.6.0",
21
+ "@purpurds/icon": "4.6.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@rushstack/eslint-patch": "~1.10.0",
package/src/tabs.tsx CHANGED
@@ -195,7 +195,7 @@ export const Tabs: TabsCmp<TabsProps> = ({
195
195
 
196
196
  return (
197
197
  <Root
198
- defaultValue={defaultValue}
198
+ defaultValue={defaultValue ?? tabContentChildren[0].props.tabId}
199
199
  onValueChange={handleTabChange}
200
200
  data-testid={dataTestId}
201
201
  className={classNames}