@rebilly/revel 6.34.1 → 6.35.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,6 @@
1
- ## [6.34.1](https://github.com/Rebilly/rebilly/compare/revel-v6.34.0...revel-v6.34.1) (2024-10-01)
1
+ ## [6.35.0](https://github.com/Rebilly/rebilly/compare/revel-v6.34.1...revel-v6.35.0) (2024-10-02)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * **revel:** Update wrap and offsets to use CSS classes ([#7851](https://github.com/Rebilly/rebilly/issues/7851)) ([3696d55](https://github.com/Rebilly/rebilly/commit/3696d55fcaf2c3b626ba86b741cede7182cdc92b))
6
+ * **revel:** New layout components `RFlex` and `RFlexItem` ([#7866](https://github.com/Rebilly/rebilly/issues/7866)) ([977adde](https://github.com/Rebilly/rebilly/commit/977adde8ea4606b12024b2658917fa9d82f4a9eb))
@@ -7,6 +7,8 @@ export { default as RButtonGroup } from './r-button-group/r-button-group.vue';
7
7
  export { default as RCheckbox } from './r-checkbox/r-checkbox.vue';
8
8
  export { default as RDateInput } from './r-date-input/r-date-input.vue';
9
9
  export { default as RFileUpload } from './r-file-upload/r-file-upload.vue';
10
+ export { default as RFlex } from './r-flex/r-flex.vue';
11
+ export { default as RFlexItem } from './r-flex/r-flex-item.vue';
10
12
  export { default as RGrid } from './r-grid/r-grid.vue';
11
13
  export { default as RGridCell } from './r-grid/r-grid-cell.vue';
12
14
  export { default as RIcon } from './r-icon/r-icon.vue';
@@ -0,0 +1,67 @@
1
+ import type { FlexSize, Distribution } from './types';
2
+ export interface Props {
3
+ /**
4
+ * Number of flex columns (1 to 12)
5
+ */
6
+ span?: FlexSize | 'fill' | 'auto';
7
+ /**
8
+ * Move to the next row
9
+ */
10
+ wrap?: Nullable<boolean>;
11
+ /**
12
+ * Move the item to the right."
13
+ */
14
+ offset?: Nullable<FlexSize | 'auto'>;
15
+ /**
16
+ * Align items in the flex container
17
+ */
18
+ alignSelf?: Nullable<Distribution>;
19
+ /**
20
+ * Remove flex properties
21
+ */
22
+ flexNone?: boolean;
23
+ }
24
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
25
+ span: string;
26
+ alignSelf: null;
27
+ wrap: null;
28
+ offset: null;
29
+ flexNone: boolean;
30
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
31
+ span: string;
32
+ alignSelf: null;
33
+ wrap: null;
34
+ offset: null;
35
+ flexNone: boolean;
36
+ }>>>, {
37
+ span: "fill" | "auto" | FlexSize;
38
+ offset: Nullable<"auto" | FlexSize>;
39
+ wrap: Nullable<boolean>;
40
+ alignSelf: Nullable<Distribution>;
41
+ flexNone: boolean;
42
+ }>, {
43
+ default?(_: {}): any;
44
+ }>;
45
+ export default _default;
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
+ default: D[K];
49
+ }> : P[K];
50
+ };
51
+ type __VLS_Prettify<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
54
+ type __VLS_WithTemplateSlots<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };
59
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
60
+ type __VLS_TypePropsToOption<T> = {
61
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
62
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
63
+ } : {
64
+ type: import('vue').PropType<T[K]>;
65
+ required: true;
66
+ };
67
+ };
@@ -0,0 +1,88 @@
1
+ import type { FlexSize, Distribution, ContentDistribution, Gap, Direction, Wrap } from './types';
2
+ export interface Props {
3
+ /**
4
+ * Number of flex columns (1 to 12)
5
+ */
6
+ columns?: FlexSize;
7
+ /**
8
+ * Gap between flex columns (0 to 12), or two values separated by a comma for different row and column gaps.
9
+ */
10
+ gap?: Gap;
11
+ /**
12
+ * Align items in the flex container
13
+ */
14
+ alignItems?: Nullable<Distribution>;
15
+ /**
16
+ * Align content in the flex container
17
+ */
18
+ alignContent?: Nullable<ContentDistribution>;
19
+ /**
20
+ * Justify content in the flex container
21
+ */
22
+ justifyContent?: Nullable<ContentDistribution>;
23
+ /**
24
+ * Adjust flex items direction
25
+ */
26
+ direction?: Nullable<Direction>;
27
+ /**
28
+ * Adjust flex items wrapping
29
+ */
30
+ wrap?: Nullable<Wrap>;
31
+ /**
32
+ * Prevents flex container to stack on smaller screens
33
+ */
34
+ unstackable?: boolean;
35
+ }
36
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
37
+ columns: string;
38
+ gap: string;
39
+ alignItems: null;
40
+ alignContent: null;
41
+ justifyContent: null;
42
+ direction: null;
43
+ wrap: null;
44
+ unstackable: boolean;
45
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
46
+ columns: string;
47
+ gap: string;
48
+ alignItems: null;
49
+ alignContent: null;
50
+ justifyContent: null;
51
+ direction: null;
52
+ wrap: null;
53
+ unstackable: boolean;
54
+ }>>>, {
55
+ columns: FlexSize;
56
+ wrap: Nullable<Wrap>;
57
+ gap: Gap;
58
+ alignItems: Nullable<Distribution>;
59
+ alignContent: Nullable<ContentDistribution>;
60
+ justifyContent: Nullable<ContentDistribution>;
61
+ direction: Nullable<Direction>;
62
+ unstackable: boolean;
63
+ }>, {
64
+ default?(_: {}): any;
65
+ }>;
66
+ export default _default;
67
+ type __VLS_WithDefaults<P, D> = {
68
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
69
+ default: D[K];
70
+ }> : P[K];
71
+ };
72
+ type __VLS_Prettify<T> = {
73
+ [K in keyof T]: T[K];
74
+ } & {};
75
+ type __VLS_WithTemplateSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
80
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
81
+ type __VLS_TypePropsToOption<T> = {
82
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
83
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
84
+ } : {
85
+ type: import('vue').PropType<T[K]>;
86
+ required: true;
87
+ };
88
+ };
@@ -0,0 +1,6 @@
1
+ export type FlexSize = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
2
+ export type Distribution = 'flex-start' | 'flex-end' | 'start' | 'end' | 'center' | 'stretch' | 'baseline';
3
+ export type ContentDistribution = Distribution | 'space-between' | 'space-around' | 'space-evenly';
4
+ export type Direction = 'row' | 'row-reverse' | 'column' | 'column-reverse';
5
+ export type Wrap = 'nowrap' | 'wrap' | 'wrap-reverse';
6
+ export type Gap = '0' | FlexSize | `${'0' | FlexSize}, ${'0' | FlexSize}`;
@@ -37,9 +37,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
37
37
  }>>>, {
38
38
  span: GridSize;
39
39
  offset: Nullable<"1, 1" | "1, 2" | "1, 3" | "1, 4" | "1, 5" | "1, 6" | "1, 7" | "1, 8" | "1, 9" | "1, 10" | "1, 11" | "1, 12" | "2, 1" | "2, 2" | "2, 3" | "2, 4" | "2, 5" | "2, 6" | "2, 7" | "2, 8" | "2, 9" | "2, 10" | "2, 11" | "2, 12" | "3, 1" | "3, 2" | "3, 3" | "3, 4" | "3, 5" | "3, 6" | "3, 7" | "3, 8" | "3, 9" | "3, 10" | "3, 11" | "3, 12" | "4, 1" | "4, 2" | "4, 3" | "4, 4" | "4, 5" | "4, 6" | "4, 7" | "4, 8" | "4, 9" | "4, 10" | "4, 11" | "4, 12" | "5, 1" | "5, 2" | "5, 3" | "5, 4" | "5, 5" | "5, 6" | "5, 7" | "5, 8" | "5, 9" | "5, 10" | "5, 11" | "5, 12" | "6, 1" | "6, 2" | "6, 3" | "6, 4" | "6, 5" | "6, 6" | "6, 7" | "6, 8" | "6, 9" | "6, 10" | "6, 11" | "6, 12" | "7, 1" | "7, 2" | "7, 3" | "7, 4" | "7, 5" | "7, 6" | "7, 7" | "7, 8" | "7, 9" | "7, 10" | "7, 11" | "7, 12" | "8, 1" | "8, 2" | "8, 3" | "8, 4" | "8, 5" | "8, 6" | "8, 7" | "8, 8" | "8, 9" | "8, 10" | "8, 11" | "8, 12" | "9, 1" | "9, 2" | "9, 3" | "9, 4" | "9, 5" | "9, 6" | "9, 7" | "9, 8" | "9, 9" | "9, 10" | "9, 11" | "9, 12" | "10, 1" | "10, 2" | "10, 3" | "10, 4" | "10, 5" | "10, 6" | "10, 7" | "10, 8" | "10, 9" | "10, 10" | "10, 11" | "10, 12" | "11, 1" | "11, 2" | "11, 3" | "11, 4" | "11, 5" | "11, 6" | "11, 7" | "11, 8" | "11, 9" | "11, 10" | "11, 11" | "11, 12" | "12, 1" | "12, 2" | "12, 3" | "12, 4" | "12, 5" | "12, 6" | "12, 7" | "12, 8" | "12, 9" | "12, 10" | "12, 11" | "12, 12">;
40
- justifySelf: Nullable<Distribution>;
41
- alignSelf: Nullable<Distribution>;
42
40
  wrap: boolean;
41
+ alignSelf: Nullable<Distribution>;
42
+ justifySelf: Nullable<Distribution>;
43
43
  }>, {
44
44
  default?(_: {}): any;
45
45
  }>;
@@ -5,7 +5,7 @@ export interface Props {
5
5
  */
6
6
  columns?: GridSize;
7
7
  /**
8
- * Gap between grid columns (1 to 12)
8
+ * Gap between grid columns (0 to 12)
9
9
  */
10
10
  gap?: Gap;
11
11
  /**
@@ -48,11 +48,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
48
48
  }>>>, {
49
49
  columns: GridSize;
50
50
  gap: Gap;
51
- justifyItems: Nullable<Distribution>;
52
51
  alignItems: Nullable<Distribution>;
53
- jutifyContent: Nullable<ContentDistribution>;
54
52
  alignContent: Nullable<ContentDistribution>;
55
53
  unstackable: boolean;
54
+ justifyItems: Nullable<Distribution>;
55
+ jutifyContent: Nullable<ContentDistribution>;
56
56
  }>, {
57
57
  default?(_: {}): any;
58
58
  }>;
@@ -121,6 +121,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
121
121
  autoHide: boolean;
122
122
  position: "bottomEnd" | "bottomStart" | "topStart" | "topEnd";
123
123
  offset: number;
124
+ direction: "horizontal" | "vertical";
124
125
  duration: number;
125
126
  state: Nullable<boolean>;
126
127
  escToHide: boolean;
@@ -128,7 +129,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
128
129
  closeFunction: Nullable<() => unknown>;
129
130
  openOnMount: boolean;
130
131
  margin: MarginsOffset;
131
- direction: "horizontal" | "vertical";
132
132
  slideFrom: SlideFrom;
133
133
  }>, {
134
134
  trigger?(_: {