@extrachill/components 0.4.18 → 0.4.19

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useState } from 'react';
3
3
  import { Tabs } from "./Tabs.js";
4
- export function ResponsiveTabs({ tabs, active, onChange, renderPanel, className = '', classPrefix = 'ec-responsive-tabs', tabsClassName = '', tabsClassPrefix = 'ec-tabs', mobileBreakpoint = 768, accordionClassName = '', showDesktopTabs = true, }) {
4
+ export function ResponsiveTabs({ tabs, active, onChange, renderPanel, className = '', classPrefix = 'ec-responsive-tabs', tabsClassName = '', tabsClassPrefix = 'ec-tabs', mobileBreakpoint = 480, accordionClassName = '', showDesktopTabs = true, }) {
5
5
  const [isMobile, setIsMobile] = useState(() => {
6
6
  if (typeof window === 'undefined') {
7
7
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrachill/components",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "description": "Shared React components for the Extra Chill Platform.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@ export function ResponsiveTabs( {
25
25
  classPrefix = 'ec-responsive-tabs',
26
26
  tabsClassName = '',
27
27
  tabsClassPrefix = 'ec-tabs',
28
- mobileBreakpoint = 768,
28
+ mobileBreakpoint = 480,
29
29
  accordionClassName = '',
30
30
  showDesktopTabs = true,
31
31
  }: ResponsiveTabsProps ) {
@@ -236,13 +236,13 @@
236
236
  color: currentColor;
237
237
  }
238
238
 
239
- @media (min-width: 769px) {
239
+ @media (min-width: 481px) {
240
240
  .ec-responsive-tabs__accordion {
241
241
  display: none;
242
242
  }
243
243
  }
244
244
 
245
- @media (max-width: 768px) {
245
+ @media (max-width: 480px) {
246
246
  .ec-responsive-tabs .ec-tabs__tabs,
247
247
  .ec-responsive-tabs__desktop-panel {
248
248
  display: none;