@extrachill/components 0.4.17 → 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.17",
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;
@@ -517,7 +517,6 @@
517
517
  }
518
518
 
519
519
  .ec-panel {
520
- background: var(--background-color, #fff);
521
520
  border-radius: 0;
522
521
  border-left: 0;
523
522
  border-right: 0;
@@ -528,20 +527,6 @@
528
527
  padding-right: var(--spacing-md, 1rem);
529
528
  }
530
529
 
531
- .ec-panel--depth-0,
532
- .ec-panel--depth-2,
533
- .ec-section--depth-0,
534
- .ec-section--depth-2 {
535
- background: var(--card-background, #f1f5f9);
536
- }
537
-
538
- .ec-panel--depth-1,
539
- .ec-panel--depth-3,
540
- .ec-section--depth-1,
541
- .ec-section--depth-3 {
542
- background: var(--background-color, #fff);
543
- }
544
-
545
530
  .ec-section {
546
531
  border-radius: 0;
547
532
  border-left: 0;