@redis-ui/components 51.23.0 → 51.24.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.
@@ -1,4 +1,5 @@
1
1
  const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
2
+ const require_Media_style = require("../Media/Media.style.cjs");
2
3
  let styled_components = require("styled-components");
3
4
  styled_components = require_runtime.__toESM(styled_components, 1);
4
5
  let _redislabsdev_redis_ui_styles = require("@redis-ui/styles");
@@ -6,6 +7,11 @@ let _redislabsdev_redis_ui_styles = require("@redis-ui/styles");
6
7
  var HeroContainer = styled_components.default.div.withConfig({
7
8
  displayName: "Composestyle__HeroContainer",
8
9
  componentId: "RedisUI__sc-126p7uz-0"
9
- })(["display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:", ";align-items:start;@media (max-width:75rem){grid-template-columns:minmax(0,1fr);}"], () => (0, _redislabsdev_redis_ui_styles.useTheme)().core.space.space200);
10
+ })([
11
+ "display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:",
12
+ ";align-items:start;@media ",
13
+ "{grid-template-columns:minmax(0,1fr);& > ",
14
+ "{order:-1;justify-items:start;padding-inline:0;}}"
15
+ ], () => (0, _redislabsdev_redis_ui_styles.useTheme)().core.space.space200, _redislabsdev_redis_ui_styles.media.laptop, require_Media_style.Media);
10
16
  //#endregion
11
17
  exports.HeroContainer = HeroContainer;
@@ -1,9 +1,15 @@
1
+ import { Media } from "../Media/Media.style.js";
1
2
  import _styled from "styled-components";
2
- import { useTheme } from "@redis-ui/styles";
3
+ import { media, useTheme } from "@redis-ui/styles";
3
4
  //#region src/Hero/components/Compose/Compose.style.ts
4
5
  var HeroContainer = _styled.div.withConfig({
5
6
  displayName: "Composestyle__HeroContainer",
6
7
  componentId: "RedisUI__sc-126p7uz-0"
7
- })(["display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:", ";align-items:start;@media (max-width:75rem){grid-template-columns:minmax(0,1fr);}"], () => useTheme().core.space.space200);
8
+ })([
9
+ "display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:",
10
+ ";align-items:start;@media ",
11
+ "{grid-template-columns:minmax(0,1fr);& > ",
12
+ "{order:-1;justify-items:start;padding-inline:0;}}"
13
+ ], () => useTheme().core.space.space200, media.laptop, Media);
8
14
  //#endregion
9
15
  export { HeroContainer };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/components",
3
3
  "license": "UNLICENSED",
4
- "version": "51.23.0",
4
+ "version": "51.24.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "repository": "git@github.com:redislabsdev/redis-ui.git",
@@ -36,7 +36,7 @@ Every slot except `heading` is optional. A slot is skipped when its value is `nu
36
36
 
37
37
  `Hero` is assembled with `Object.assign`; drop to these for full control. Each part spreads its own props, so any single slot can be restyled or rearranged.
38
38
 
39
- - `Hero.Compose` - the two-column container: copy on the leading side, media on the trailing side, stacking on narrow viewports.
39
+ - `Hero.Compose` - the two-column container: copy on the leading side, media on the trailing side. Below the `laptop` breakpoint the columns stack with the media on top, left-aligned with the copy; the DOM order stays copy first.
40
40
  - `Hero.Content` - the copy column. It spaces its children apart: wrap the heading and subtitle in one column `FlexGroup` and the details, actions and footnote in another, as the root does.
41
41
  - `Hero.Heading` - the main claim (`h1` by default; pass `component` to change the level; wraps `Typography.Heading`).
42
42
  - `Hero.Subtitle` - supporting copy (wraps `Typography.Body`).