@wix/origami-system-components 1.10.8 → 1.10.9

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.
@@ -0,0 +1,9 @@
1
+ /* Sections (and Header/Footer Sections) are always a single-cell grid around
2
+ their InternalContainer, so the component owns that layout instead of layout.css.
3
+ :where() keeps specificity at 0, so the instance's layout.css rule (e.g.
4
+ `display: none` for hidden) always wins. */
5
+ :where(.origami-section) {
6
+ display: grid;
7
+ grid-template-columns: 1fr;
8
+ grid-template-rows: min-content;
9
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ import './Section.css';
2
3
  export interface SectionProps {
3
4
  id: string;
4
5
  className?: string | undefined;
@@ -1,12 +1,14 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { withInteractions } from '@wix/origami-runtime';
4
+ import './Section.css';
4
5
  /**
5
6
  * Experimental plain Section. The authored InternalContainer child owns its
6
7
  * background and content layers; this component does not create another container.
8
+ * It owns the constant single-cell grid that hosts that InternalContainer.
7
9
  */
8
10
  function BaseSection({ id, className, children }) {
9
- return (_jsx("section", { id: id, className: className, tabIndex: -1, children: children }));
11
+ return (_jsx("section", { id: id, className: ['origami-section', className].filter(Boolean).join(' '), tabIndex: -1, children: children }));
10
12
  }
11
13
  const InteractiveSection = withInteractions(BaseSection);
12
14
  export function Section(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/origami-system-components",
3
- "version": "1.10.8",
3
+ "version": "1.10.9",
4
4
  "description": "Editor structural and system components for standalone Origami sites",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -132,5 +132,5 @@
132
132
  "@wix/builder-state": "^1.49.3",
133
133
  "@wix/editor-components": "^1.16.0"
134
134
  },
135
- "falconPackageHash": "411984e75a931f6a742ab4fd846eb1484b9d602c1591a1b880bbf9df"
135
+ "falconPackageHash": "f0bda00dc10fc8ceb13c5d315d34c8d38fbe730a657c180d249c8fea"
136
136
  }