playbook_ui 14.8.0.pre.alpha.PLAY1658tanstackbump4657 → 14.8.0.pre.alpha.PLAY1680newwidthprop4661
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +1 -0
- data/app/pb_kits/playbook/utilities/_max_width.scss +25 -9
- data/app/pb_kits/playbook/utilities/_min_width.scss +5 -1
- data/app/pb_kits/playbook/utilities/_width.scss +45 -0
- data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -0
- data/app/pb_kits/playbook/utilities/globalProps.ts +13 -4
- data/dist/chunks/{_typeahead-C8Q_fFYF.js → _typeahead-Bg7nPSBj.js} +1 -1
- data/dist/chunks/_weekday_stacked-9V0rzCNn.js +45 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/classnames.rb +1 -0
- data/lib/playbook/spacing.rb +21 -0
- data/lib/playbook/version.rb +1 -1
- metadata +5 -4
- data/dist/chunks/_weekday_stacked-BmcCeSXm.js +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 470ceb2308e2f5f036f019c0ae83adb3446f845a4e83f75560b0a2d6b1bec89b
|
4
|
+
data.tar.gz: 0a443da489c1d1242379a99ec020a709e4f24e03b1c65b148aefb50d91f06bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9fc193798b1eff208434da829db369218807400c99f6b3b601282b3f3a4ad10107ffb75ac93a647aa0bf92fa4d2c1692d987bd183500bbcd0fe105ddd18df8b
|
7
|
+
data.tar.gz: 58cc3188841d723a6d402b79b9c964bda66d33a88db3c90c1fa0753fcf220af9bb4e0850603519c4558eac64b98528024b544babab98f1ecd9efc5c10eb8e04a
|
@@ -1,31 +1,47 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}
|
1
|
+
@import "../tokens/container";
|
2
|
+
|
4
3
|
.max_width_0 {
|
5
|
-
max-width:
|
4
|
+
max-width: map-get($containers, 'none');
|
6
5
|
}
|
6
|
+
|
7
7
|
.max_width_none {
|
8
8
|
max-width: none;
|
9
9
|
}
|
10
10
|
|
11
|
+
.max_width_0_percent {
|
12
|
+
max-width: $container_0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.max_width_xxs {
|
16
|
+
max-width: $container_xxs;
|
17
|
+
}
|
18
|
+
|
19
|
+
.max_width_xs {
|
20
|
+
max-width: $container_xs;
|
21
|
+
}
|
22
|
+
|
11
23
|
.max_width_sm {
|
12
|
-
max-width:
|
24
|
+
max-width: $container_sm;
|
13
25
|
}
|
14
26
|
|
15
27
|
.max_width_md {
|
16
|
-
max-width:
|
28
|
+
max-width: $container_md;
|
17
29
|
}
|
18
30
|
|
19
31
|
.max_width_lg {
|
20
|
-
max-width:
|
32
|
+
max-width: $container_lg;
|
21
33
|
}
|
22
34
|
|
23
35
|
.max_width_xl {
|
24
|
-
max-width:
|
36
|
+
max-width: $container_xl;
|
25
37
|
}
|
26
38
|
|
27
39
|
.max_width_xxl {
|
28
|
-
max-width:
|
40
|
+
max-width: $container_xxl;
|
41
|
+
}
|
42
|
+
|
43
|
+
.max_width_100_percent {
|
44
|
+
max-width: $container_100;
|
29
45
|
}
|
30
46
|
|
31
47
|
.width-resize {
|
@@ -0,0 +1,45 @@
|
|
1
|
+
@import "../tokens/container";
|
2
|
+
|
3
|
+
.width_none {
|
4
|
+
width: none;
|
5
|
+
}
|
6
|
+
|
7
|
+
.width_0 {
|
8
|
+
width: map-get($containers, 'none');
|
9
|
+
}
|
10
|
+
|
11
|
+
.width_0_percent {
|
12
|
+
width: map-get($containers, 'none');
|
13
|
+
}
|
14
|
+
|
15
|
+
.width_xxs {
|
16
|
+
width: $container_xxs;
|
17
|
+
}
|
18
|
+
|
19
|
+
.width_xs {
|
20
|
+
width: $container_xs;
|
21
|
+
}
|
22
|
+
|
23
|
+
.width_sm {
|
24
|
+
width: $container_sm;
|
25
|
+
}
|
26
|
+
|
27
|
+
.width_md {
|
28
|
+
width: $container_md;
|
29
|
+
}
|
30
|
+
|
31
|
+
.width_lg {
|
32
|
+
width: $container_lg;
|
33
|
+
}
|
34
|
+
|
35
|
+
.width_xl {
|
36
|
+
width: $container_xl;
|
37
|
+
}
|
38
|
+
|
39
|
+
.width_xxl {
|
40
|
+
width: $container_xxl;
|
41
|
+
}
|
42
|
+
|
43
|
+
.width_100_percent {
|
44
|
+
width: $container_100;
|
45
|
+
}
|
@@ -95,12 +95,16 @@ type Margin = {
|
|
95
95
|
default?: string
|
96
96
|
}
|
97
97
|
|
98
|
+
type Width = {
|
99
|
+
width?: string
|
100
|
+
}
|
101
|
+
|
98
102
|
type MaxWidth = {
|
99
|
-
maxWidth?:
|
103
|
+
maxWidth?: string,
|
100
104
|
}
|
101
105
|
|
102
106
|
type MinWidth = {
|
103
|
-
minWidth?:
|
107
|
+
minWidth?: string,
|
104
108
|
}
|
105
109
|
|
106
110
|
type NumberSpacing = {
|
@@ -176,7 +180,7 @@ type ZIndex = {
|
|
176
180
|
} | ZIndexResponsiveType
|
177
181
|
|
178
182
|
type Height = {
|
179
|
-
height?: string
|
183
|
+
height?: string
|
180
184
|
}
|
181
185
|
|
182
186
|
type MaxHeight = {
|
@@ -191,7 +195,7 @@ type MinHeight = {
|
|
191
195
|
export type GlobalProps = AlignContent & AlignItems & AlignSelf &
|
192
196
|
BorderRadius & Cursor & Dark & Display & DisplaySizes & Flex & FlexDirection &
|
193
197
|
FlexGrow & FlexShrink & FlexWrap & JustifyContent & JustifySelf &
|
194
|
-
LineHeight & Margin & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
|
198
|
+
LineHeight & Margin & Width & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
|
195
199
|
Position & Shadow & TextAlign & Truncate & VerticalAlign & ZIndex & { hover?: string } & Top & Right & Bottom & Left & Height & MaxHeight & MinHeight;
|
196
200
|
|
197
201
|
const getResponsivePropClasses = (prop: {[key: string]: string}, classPrefix: string) => {
|
@@ -351,6 +355,11 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
|
|
351
355
|
css += numberSpacing ? `ns_${numberSpacing} ` : ''
|
352
356
|
return css
|
353
357
|
},
|
358
|
+
widthProps: ({ width }: Width) => {
|
359
|
+
let css = ''
|
360
|
+
css += width ? `width_${filterClassName(width)} ` : ''
|
361
|
+
return css.trimEnd()
|
362
|
+
},
|
354
363
|
minWidthProps: ({ minWidth }: MinWidth) => {
|
355
364
|
let css = ''
|
356
365
|
css += minWidth ? `min_width_${filterClassName(minWidth)} ` : ''
|