@extrachill/components 0.4.34 → 0.4.35

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.35] - 2026-03-26
4
+
5
+ ### Changed
6
+ - unify shared card vertical padding
7
+ - remove shell divider variants
8
+
3
9
  ## [0.4.34] - 2026-03-26
4
10
 
5
11
  ### Fixed
@@ -5,7 +5,6 @@ export interface BlockShellHeaderProps {
5
5
  actions?: ReactNode;
6
6
  className?: string;
7
7
  classPrefix?: string;
8
- showDivider?: boolean;
9
8
  }
10
- export declare function BlockShellHeader({ title, description, actions, className, classPrefix, showDivider, }: BlockShellHeaderProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function BlockShellHeader({ title, description, actions, className, classPrefix, }: BlockShellHeaderProps): import("react/jsx-runtime").JSX.Element;
11
10
  //# sourceMappingURL=BlockShellHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockShellHeader.d.ts","sourceRoot":"","sources":["../src/BlockShellHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAE,EACjC,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAc,EACd,WAAqC,EACrC,WAAkB,GAClB,EAAE,qBAAqB,2CAiBvB"}
1
+ {"version":3,"file":"BlockShellHeader.d.ts","sourceRoot":"","sources":["../src/BlockShellHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAE,EACjC,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAc,EACd,WAAqC,GACrC,EAAE,qBAAqB,2CAgBvB"}
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export function BlockShellHeader({ title, description, actions, className = '', classPrefix = 'ec-block-shell-header', showDivider = true, }) {
2
+ export function BlockShellHeader({ title, description, actions, className = '', classPrefix = 'ec-block-shell-header', }) {
3
3
  return (_jsxs("div", { className: [
4
4
  classPrefix,
5
5
  'ec-edge-gutter',
6
- showDivider ? `${classPrefix}--with-divider` : `${classPrefix}--without-divider`,
7
6
  className,
8
7
  ].filter(Boolean).join(' '), children: [_jsxs("div", { className: `${classPrefix}__main`, children: [title && _jsx("div", { className: `${classPrefix}__title`, children: title }), description && _jsx("div", { className: `${classPrefix}__description`, children: description })] }), actions && _jsx("div", { className: `${classPrefix}__actions`, children: actions })] }));
9
8
  }
@@ -7,7 +7,6 @@ export interface ShellTabsProps {
7
7
  classPrefix?: string;
8
8
  tabsClassName?: string;
9
9
  tabsClassPrefix?: string;
10
- showDivider?: boolean;
11
10
  }
12
- export declare function ShellTabs({ tabs, active, onChange, className, classPrefix, tabsClassName, tabsClassPrefix, showDivider, }: ShellTabsProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function ShellTabs({ tabs, active, onChange, className, classPrefix, tabsClassName, tabsClassPrefix, }: ShellTabsProps): import("react/jsx-runtime").JSX.Element;
13
12
  //# sourceMappingURL=ShellTabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShellTabs.d.ts","sourceRoot":"","sources":["../src/ShellTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACxB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,SAAS,CAAE,EAC1B,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAc,EACd,WAA6B,EAC7B,aAAkB,EAClB,eAA2B,EAC3B,WAAkB,GAClB,EAAE,cAAc,2CAkBhB"}
1
+ {"version":3,"file":"ShellTabs.d.ts","sourceRoot":"","sources":["../src/ShellTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACxB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,SAAS,CAAE,EAC1B,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAc,EACd,WAA6B,EAC7B,aAAkB,EAClB,eAA2B,GAC3B,EAAE,cAAc,2CAiBhB"}
package/dist/ShellTabs.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Tabs } from "./Tabs.js";
3
- export function ShellTabs({ tabs, active, onChange, className = '', classPrefix = 'ec-shell-tabs', tabsClassName = '', tabsClassPrefix = 'ec-tabs', showDivider = true, }) {
3
+ export function ShellTabs({ tabs, active, onChange, className = '', classPrefix = 'ec-shell-tabs', tabsClassName = '', tabsClassPrefix = 'ec-tabs', }) {
4
4
  return (_jsx("div", { className: [
5
5
  classPrefix,
6
- showDivider ? `${classPrefix}--with-divider` : `${classPrefix}--without-divider`,
7
6
  className,
8
7
  ].filter(Boolean).join(' '), children: _jsx(Tabs, { tabs: tabs, active: active, onChange: onChange, className: tabsClassName, classPrefix: tabsClassPrefix }) }));
9
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrachill/components",
3
- "version": "0.4.34",
3
+ "version": "0.4.35",
4
4
  "description": "Shared React components for the Extra Chill Platform.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -6,7 +6,6 @@ export interface BlockShellHeaderProps {
6
6
  actions?: ReactNode;
7
7
  className?: string;
8
8
  classPrefix?: string;
9
- showDivider?: boolean;
10
9
  }
11
10
 
12
11
  export function BlockShellHeader( {
@@ -15,14 +14,12 @@ export function BlockShellHeader( {
15
14
  actions,
16
15
  className = '',
17
16
  classPrefix = 'ec-block-shell-header',
18
- showDivider = true,
19
17
  }: BlockShellHeaderProps ) {
20
18
  return (
21
19
  <div
22
20
  className={ [
23
21
  classPrefix,
24
22
  'ec-edge-gutter',
25
- showDivider ? `${ classPrefix }--with-divider` : `${ classPrefix }--without-divider`,
26
23
  className,
27
24
  ].filter( Boolean ).join( ' ' ) }
28
25
  >
package/src/ShellTabs.tsx CHANGED
@@ -8,7 +8,6 @@ export interface ShellTabsProps {
8
8
  classPrefix?: string;
9
9
  tabsClassName?: string;
10
10
  tabsClassPrefix?: string;
11
- showDivider?: boolean;
12
11
  }
13
12
 
14
13
  export function ShellTabs( {
@@ -19,13 +18,11 @@ export function ShellTabs( {
19
18
  classPrefix = 'ec-shell-tabs',
20
19
  tabsClassName = '',
21
20
  tabsClassPrefix = 'ec-tabs',
22
- showDivider = true,
23
21
  }: ShellTabsProps ) {
24
22
  return (
25
23
  <div
26
24
  className={ [
27
25
  classPrefix,
28
- showDivider ? `${ classPrefix }--with-divider` : `${ classPrefix }--without-divider`,
29
26
  className,
30
27
  ].filter( Boolean ).join( ' ' ) }
31
28
  >
@@ -131,19 +131,9 @@
131
131
  .ec-shell-tabs {
132
132
  display: grid;
133
133
  gap: var(--spacing-sm, 0.5rem);
134
- padding-bottom: var(--spacing-md, 1rem);
135
134
  background: var(--card-background, #f1f5f9);
136
135
  }
137
136
 
138
- .ec-shell-tabs--with-divider {
139
- border-bottom: 1px solid var(--border-color, #ddd);
140
- }
141
-
142
- .ec-shell-tabs--without-divider {
143
- border-bottom: 0;
144
- padding-bottom: 0;
145
- }
146
-
147
137
  .ec-responsive-tabs {
148
138
  display: grid;
149
139
  gap: var(--spacing-md, 1rem);
@@ -283,6 +273,13 @@
283
273
  gap: var(--spacing-md, 1rem);
284
274
  }
285
275
 
276
+ .ec-panel,
277
+ .ec-section,
278
+ .ec-surface-card {
279
+ padding-top: var(--spacing-md, 1rem);
280
+ padding-bottom: var(--spacing-md, 1rem);
281
+ }
282
+
286
283
  // Block shell / top-level wrapper
287
284
  .ec-block-shell {
288
285
  background: transparent;
@@ -357,16 +354,6 @@
357
354
  align-items: center;
358
355
  gap: var(--spacing-md, 1rem);
359
356
  flex-wrap: wrap;
360
- padding-bottom: var(--spacing-md, 1rem);
361
- }
362
-
363
- .ec-block-shell-header--with-divider {
364
- border-bottom: 1px solid var(--border-color, #ddd);
365
- }
366
-
367
- .ec-block-shell-header--without-divider {
368
- border-bottom: 0;
369
- padding-bottom: 0;
370
357
  }
371
358
 
372
359
  .ec-block-shell-header__main {
@@ -503,6 +490,39 @@
503
490
  gap: var(--spacing-xs, 0.25rem);
504
491
  }
505
492
 
493
+ .ec-field-group__control > input:not([type='checkbox']):not([type='radio']):not([type='file']),
494
+ .ec-field-group__control > select,
495
+ .ec-field-group__control > textarea {
496
+ width: 100%;
497
+ padding: var(--spacing-sm, 0.5rem);
498
+ border: 1px solid var(--border-color, #ddd);
499
+ border-radius: var(--border-radius-sm, 4px);
500
+ background: var(--background-color, #fff);
501
+ color: var(--text-color, #111);
502
+ font: inherit;
503
+ font-size: var(--font-size-base, 1rem);
504
+ box-sizing: border-box;
505
+ max-width: 100%;
506
+ }
507
+
508
+ .ec-field-group__control > textarea {
509
+ min-height: 120px;
510
+ resize: vertical;
511
+ font-family: inherit;
512
+ }
513
+
514
+ .ec-field-group__control > input[disabled],
515
+ .ec-field-group__control > select[disabled],
516
+ .ec-field-group__control > textarea[disabled] {
517
+ cursor: not-allowed;
518
+ opacity: 0.6;
519
+ }
520
+
521
+ .ec-field-group__control > input[type='checkbox'],
522
+ .ec-field-group__control > input[type='radio'] {
523
+ margin: 0;
524
+ }
525
+
506
526
  .ec-field-group__help {
507
527
  font-size: var(--font-size-sm, 0.875rem);
508
528
  color: var(--muted-text, #666);
@@ -554,7 +574,10 @@
554
574
  border-radius: 0;
555
575
  border-left: 0;
556
576
  border-right: 0;
557
- padding: var(--spacing-sm, 0.5rem) 0;
577
+ padding-top: var(--spacing-md, 1rem);
578
+ padding-bottom: var(--spacing-md, 1rem);
579
+ padding-left: 0;
580
+ padding-right: 0;
558
581
  margin-left: calc(var(--spacing-md, 1rem) * -1);
559
582
  margin-right: calc(var(--spacing-md, 1rem) * -1);
560
583
  padding-left: var(--spacing-md, 1rem);