@rebilly/revel 12.56.0 → 12.57.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,5 @@
1
- ## [12.56.0](https://github.com/Rebilly/rebilly/compare/revel-v12.55.0...revel-v12.56.0) (2026-09-24)
2
-
1
+ ## 12.57.0 (2026-09-25)
3
2
 
4
3
  ### Features
5
4
 
6
- * **recomm:** keep grid actions usable as icon-only buttons ([#26964](https://github.com/Rebilly/rebilly/issues/26964)) ([081cbc9](https://github.com/Rebilly/rebilly/commit/081cbc94628b5901df9e1b7a5222fe1f46143d48))
5
+ - **revel:** default layout gap follows the tile inset ([#27146](https://github.com/Rebilly/rebilly/pull/27146))
package/README.md CHANGED
@@ -20,12 +20,6 @@
20
20
  <a href="https://www.npmjs.com/package/@rebilly/revel">
21
21
  <img alt="npm latest version" src="https://img.shields.io/npm/v/@rebilly/revel/latest.svg">
22
22
  </a>
23
- <a href="https://github.com/semantic-release/semantic-release">
24
- <img alt="semantic-release: conventional commits" src="https://img.shields.io/badge/semantic--release-conventional%20commits-e10079?logo=semantic-release">
25
- </a>
26
- <a href="https://github.com/Rebilly/revel/actions/workflows/release.yml">
27
- <img alt="Release status" src="https://github.com/Rebilly/revel/actions/workflows/release.yml/badge.svg">
28
- </a>
29
23
  </p>
30
24
 
31
25
  ## About this repo
@@ -6,8 +6,9 @@ export interface Props {
6
6
  columns?: FlexSize;
7
7
  /**
8
8
  * Gap between flex columns (0 to 12), or two values separated by a comma for different row and column gaps.
9
+ * When omitted, the gap follows `--r-layout-gap`: 6 by default, or the tile inset inside `r-tile`.
9
10
  */
10
- gap?: Gap;
11
+ gap?: Nullable<Gap>;
11
12
  /**
12
13
  * Align items in the flex container
13
14
  */
@@ -41,7 +42,7 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
41
42
  columns: FlexSize;
42
43
  direction: Nullable<Direction>;
43
44
  wrap: Nullable<Wrap>;
44
- gap: Gap;
45
+ gap: Nullable<Gap>;
45
46
  alignItems: Nullable<Distribution>;
46
47
  alignContent: Nullable<ContentDistribution>;
47
48
  justifyContent: Nullable<ContentDistribution>;
@@ -5,9 +5,10 @@ export interface Props {
5
5
  */
6
6
  columns?: GridSize;
7
7
  /**
8
- * Gap between grid columns (0 to 12)
8
+ * Gap between grid columns (0 to 12).
9
+ * When omitted, the gap follows `--r-layout-gap`: 6 by default, or the tile inset inside `r-tile`.
9
10
  */
10
- gap?: Gap;
11
+ gap?: Nullable<Gap>;
11
12
  /**
12
13
  * Justify items in the grid
13
14
  */
@@ -35,7 +36,7 @@ type __VLS_Slots = {} & {
35
36
  };
36
37
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
37
38
  columns: GridSize;
38
- gap: Gap;
39
+ gap: Nullable<Gap>;
39
40
  alignItems: Nullable<Distribution>;
40
41
  alignContent: Nullable<ContentDistribution>;
41
42
  unstackable: boolean;
package/dist/revel.mjs CHANGED
@@ -10179,7 +10179,7 @@ const iv = { class: "r-file-dropzone-fields" }, lv = { class: "r-file-dropzone-h
10179
10179
  __name: "r-flex",
10180
10180
  props: {
10181
10181
  columns: { default: "12" },
10182
- gap: { default: "6" },
10182
+ gap: { default: null },
10183
10183
  alignItems: { default: null },
10184
10184
  alignContent: { default: null },
10185
10185
  justifyContent: { default: null },
@@ -10197,17 +10197,20 @@ const iv = { class: "r-file-dropzone-fields" }, lv = { class: "r-file-dropzone-h
10197
10197
  [`r-flex-layout-direction-${b.direction}`]: !!b.direction,
10198
10198
  [`r-flex-layout-wrap-${b.wrap}`]: !!b.wrap,
10199
10199
  "r-flex-layout-unstackable": b.unstackable
10200
- }, e = b.gap.replace(/\s/g, "").split(",");
10201
- if (e.length === 2) {
10202
- const [o, t] = e;
10203
- p[`r-flex-layout-gap-row-${o}`] = !0, p[`r-flex-layout-gap-column-${t}`] = !0;
10204
- } else
10205
- p[`r-flex-layout-gap-${b.gap}`] = !0;
10200
+ };
10201
+ if (b.gap) {
10202
+ const e = b.gap.replace(/\s/g, "").split(",");
10203
+ if (e.length === 2) {
10204
+ const [o, t] = e;
10205
+ p[`r-flex-layout-gap-row-${o}`] = !0, p[`r-flex-layout-gap-column-${t}`] = !0;
10206
+ } else
10207
+ p[`r-flex-layout-gap-${b.gap}`] = !0;
10208
+ }
10206
10209
  return p;
10207
10210
  });
10208
10211
  return k0("flexLayoutProps", B3(b)), Number(b.columns) > 12 && console.warn(
10209
10212
  `Revel[RFlex]: 'columns' prop only covers 12 columns. Received: ${b.columns}`
10210
- ), (Number(b.gap) > 12 || Array.isArray(b.gap.split(",")) && b.gap.split(",").some((p) => Number(p) > 12)) && console.warn(
10213
+ ), b.gap && b.gap.split(",").some((p) => Number(p) > 12) && console.warn(
10211
10214
  `Revel[RFlex]: 'gap' prop only covers 12 sizes. Received: ${b.gap}`
10212
10215
  ), (p, e) => (r(), q("div", {
10213
10216
  class: U(["r-flex-layout", z.value]),
@@ -10246,7 +10249,7 @@ const iv = { class: "r-file-dropzone-fields" }, lv = { class: "r-file-dropzone-h
10246
10249
  __name: "r-grid",
10247
10250
  props: {
10248
10251
  columns: { default: "12" },
10249
- gap: { default: "6" },
10252
+ gap: { default: null },
10250
10253
  justifyItems: { default: null },
10251
10254
  alignItems: { default: null },
10252
10255
  jutifyContent: { default: null },
@@ -10256,7 +10259,7 @@ const iv = { class: "r-file-dropzone-fields" }, lv = { class: "r-file-dropzone-h
10256
10259
  setup(M) {
10257
10260
  const b = M, z = u(() => ({
10258
10261
  [`r-grid-layout-columns-${b.columns}`]: !0,
10259
- [`r-grid-layout-gap-${b.gap}`]: !0,
10262
+ [`r-grid-layout-gap-${b.gap}`]: !!b.gap,
10260
10263
  [`r-grid-layout-justify-content-${b.jutifyContent}`]: !!b.jutifyContent,
10261
10264
  [`r-grid-layout-align-content-${b.alignContent}`]: !!b.alignContent,
10262
10265
  [`r-grid-layout-justify-items-${b.justifyItems}`]: !!b.justifyItems,
@@ -10265,7 +10268,7 @@ const iv = { class: "r-file-dropzone-fields" }, lv = { class: "r-file-dropzone-h
10265
10268
  }));
10266
10269
  return k0("gridLayoutProps", B3(b)), Number(b.columns) > 12 && console.warn(
10267
10270
  `Revel[RGrid]: 'columns' prop only covers 12 columns. Received: ${b.columns}`
10268
- ), Number(b.gap) > 12 && console.warn(
10271
+ ), b.gap && Number(b.gap) > 12 && console.warn(
10269
10272
  `Revel[RGrid]: 'gap' prop only covers 12 sizes. Received: ${b.gap}`
10270
10273
  ), (p, e) => (r(), q("div", {
10271
10274
  class: U(["r-grid-layout", z.value]),