playbook_ui 14.9.0.pre.rc.12 → 14.9.0.pre.rc.13
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/pb_background/_background.tsx +8 -2
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +3 -1
- data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +4 -1
- data/app/pb_kits/playbook/pb_image/_image.tsx +3 -1
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +6 -3
- data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +3 -1
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +3 -1
- data/app/pb_kits/playbook/pb_table/_table.tsx +6 -1
- data/dist/chunks/{_typeahead-C8Q_fFYF.js → _typeahead-PpBCdLHD.js} +2 -2
- data/dist/chunks/_weekday_stacked-DZMBXSFp.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/lib/playbook/version.rb +1 -1
- metadata +3 -3
- data/dist/chunks/_weekday_stacked-CUJfwh5E.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: d9a1afef0874b1b8e11f757bd69b5b3eb03a40de207d702658be6f27b8446905
|
4
|
+
data.tar.gz: da40d6dd98f5860f78d9184bfb8346d4988a751d0c3c7b483cc88afed226fd92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3db5cfd68277e4703cf0579481a76e20a67f1953e9a74aa6bc13acba3224c035fa910e44bae07ddb3278283d9c0c9f773af00f223c3e1dae16e6cd7c6c7f8268
|
7
|
+
data.tar.gz: 6396e1fa11a67ea33a27ec3aa866b9f2cf348da51ccffba14a3c554bd6a6c464578890b6af05d92bf26c772248a536a2c3c30c0a39d110f09b4fad09a4129c50
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useEffect, useState } from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
3
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
4
|
-
import { GlobalProps, globalProps } from '../utilities/globalProps'
|
4
|
+
import { GlobalProps, globalProps, globalInlineProps } from '../utilities/globalProps'
|
5
5
|
|
6
6
|
type BackgroundColors = 'gradient' |
|
7
7
|
'dark' |'light' | 'white' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'primary' | 'shadow' |
|
@@ -145,6 +145,12 @@ const Background = (props: BackgroundProps): React.ReactElement => {
|
|
145
145
|
} : {})
|
146
146
|
};
|
147
147
|
|
148
|
+
const dynamicInlineProps = globalInlineProps(props);
|
149
|
+
const combinedStyles = {
|
150
|
+
...backgroundStyle,
|
151
|
+
...dynamicInlineProps
|
152
|
+
};
|
153
|
+
|
148
154
|
const Tag: React.ReactElement | any = `${tag}`;
|
149
155
|
const ariaProps = buildAriaProps(aria);
|
150
156
|
const dataProps = buildDataProps(data);
|
@@ -158,7 +164,7 @@ const Background = (props: BackgroundProps): React.ReactElement => {
|
|
158
164
|
alt={alt}
|
159
165
|
className={classes}
|
160
166
|
id={id}
|
161
|
-
style={
|
167
|
+
style={combinedStyles}
|
162
168
|
>
|
163
169
|
{children}
|
164
170
|
</Tag>
|
@@ -2,7 +2,7 @@ import React, { useEffect, ReactElement } from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
3
3
|
import useCollapsible from './useCollapsible'
|
4
4
|
|
5
|
-
import { globalProps } from '../utilities/globalProps'
|
5
|
+
import { globalProps, globalInlineProps } from '../utilities/globalProps'
|
6
6
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
7
7
|
|
8
8
|
import CollapsibleContent from './child_kits/CollapsibleContent'
|
@@ -75,6 +75,7 @@ const Collapsible = ({
|
|
75
75
|
globalProps(props),
|
76
76
|
className
|
77
77
|
)
|
78
|
+
const dynamicInlineProps = globalInlineProps(props)
|
78
79
|
return (
|
79
80
|
<CollapsibleContext.Provider value={{ collapsed: isCollapsed, toggle, icon, iconSize, iconColor, onIconClick, onClick }}>
|
80
81
|
<div
|
@@ -83,6 +84,7 @@ const Collapsible = ({
|
|
83
84
|
{...htmlProps}
|
84
85
|
className={classes}
|
85
86
|
id={id}
|
87
|
+
style={dynamicInlineProps}
|
86
88
|
>
|
87
89
|
{Main ? (
|
88
90
|
<CollapsibleMain {...mainProps}>
|
@@ -7,7 +7,7 @@ import {
|
|
7
7
|
buildDataProps,
|
8
8
|
buildHtmlProps,
|
9
9
|
} from "../utilities/props";
|
10
|
-
import { globalProps } from "../utilities/globalProps";
|
10
|
+
import { globalProps, globalInlineProps } from "../utilities/globalProps";
|
11
11
|
|
12
12
|
import { DialogContext } from "../pb_dialog/_dialog_context";
|
13
13
|
|
@@ -101,6 +101,8 @@ const Drawer = (props: DrawerProps): React.ReactElement => {
|
|
101
101
|
|
102
102
|
const classes = classnames(buildCss("pb_drawer_wrapper"), className);
|
103
103
|
|
104
|
+
const dynamicInlineProps = globalInlineProps(props)
|
105
|
+
|
104
106
|
const [triggerOpened, setTriggerOpened] = useState(false);
|
105
107
|
|
106
108
|
const breakpointWidths: Record<DrawerProps["breakpoint"], number> = {
|
@@ -198,6 +200,7 @@ const Drawer = (props: DrawerProps): React.ReactElement => {
|
|
198
200
|
{...dataProps}
|
199
201
|
{...htmlProps}
|
200
202
|
className={classes}
|
203
|
+
style={dynamicInlineProps}
|
201
204
|
>
|
202
205
|
{isModalVisible && (
|
203
206
|
<div
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
|
-
import { GlobalProps, globalProps } from '../utilities/globalProps'
|
3
|
+
import { GlobalProps, globalProps, globalInlineProps } from '../utilities/globalProps'
|
4
4
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
5
5
|
|
6
6
|
type ImageType = {
|
@@ -41,6 +41,7 @@ const Image = (props: ImageType): React.ReactElement => {
|
|
41
41
|
globalProps(props),
|
42
42
|
className
|
43
43
|
)
|
44
|
+
const dynamicInlineProps = globalInlineProps(props)
|
44
45
|
const dataProps = buildDataProps(data)
|
45
46
|
const htmlProps = buildHtmlProps(htmlOptions)
|
46
47
|
|
@@ -56,6 +57,7 @@ const Image = (props: ImageType): React.ReactElement => {
|
|
56
57
|
id={id}
|
57
58
|
onError={onError}
|
58
59
|
src={url}
|
60
|
+
style={dynamicInlineProps}
|
59
61
|
/>
|
60
62
|
)
|
61
63
|
}
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
3
3
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
4
4
|
|
5
|
-
import { globalProps } from '../utilities/globalProps'
|
5
|
+
import { GlobalProps, globalProps, globalInlineProps } from '../utilities/globalProps'
|
6
6
|
|
7
7
|
type LayoutPropTypes = {
|
8
8
|
aria?: {[key: string]: string},
|
@@ -19,7 +19,7 @@ type LayoutPropTypes = {
|
|
19
19
|
variant?: "light" | "dark" | "gradient",
|
20
20
|
transparent?: boolean,
|
21
21
|
layout?: "sidebar" | "collection" | "kanban" | "content" | "masonry",
|
22
|
-
}
|
22
|
+
} & GlobalProps
|
23
23
|
|
24
24
|
type LayoutSideProps = {
|
25
25
|
children: React.ReactNode[] | React.ReactNode,
|
@@ -159,6 +159,8 @@ const Layout = (props: LayoutPropTypes) => {
|
|
159
159
|
const filteredProps = {...props}
|
160
160
|
delete filteredProps?.position
|
161
161
|
|
162
|
+
const dynamicInlineProps = globalInlineProps(props)
|
163
|
+
|
162
164
|
return (
|
163
165
|
<div
|
164
166
|
{...ariaProps}
|
@@ -171,7 +173,8 @@ const Layout = (props: LayoutPropTypes) => {
|
|
171
173
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
172
174
|
//@ts-ignore
|
173
175
|
globalProps(filteredProps)
|
174
|
-
|
176
|
+
)}
|
177
|
+
style={dynamicInlineProps}
|
175
178
|
>
|
176
179
|
{subComponentTags('Side')}
|
177
180
|
{nonSideChildren}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
3
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
4
|
-
import { globalProps } from '../utilities/globalProps'
|
4
|
+
import { globalProps, globalInlineProps } from '../utilities/globalProps'
|
5
5
|
import OverlayPercentage from './subcomponents/_overlay_percentage'
|
6
6
|
import OverlayToken from './subcomponents/_overlay_token'
|
7
7
|
|
@@ -39,6 +39,7 @@ const Overlay = (props: OverlayProps) => {
|
|
39
39
|
const dataProps = buildDataProps(data)
|
40
40
|
const classes = classnames(buildCss('pb_overlay'), globalProps(props), className)
|
41
41
|
const htmlProps = buildHtmlProps(htmlOptions)
|
42
|
+
const dynamicInlineProps = globalInlineProps(props)
|
42
43
|
|
43
44
|
const getPosition = () => {
|
44
45
|
return Object.keys(layout)[0]
|
@@ -57,6 +58,7 @@ const Overlay = (props: OverlayProps) => {
|
|
57
58
|
{...htmlProps}
|
58
59
|
className={classes}
|
59
60
|
id={id}
|
61
|
+
style={dynamicInlineProps}
|
60
62
|
>
|
61
63
|
{isSizePercentage ?
|
62
64
|
OverlayPercentage({
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
3
3
|
|
4
4
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
5
|
-
import { globalProps } from '../utilities/globalProps'
|
5
|
+
import { globalProps, globalInlineProps } from '../utilities/globalProps'
|
6
6
|
|
7
7
|
import Caption from '../pb_caption/_caption'
|
8
8
|
|
@@ -38,6 +38,7 @@ const SectionSeparator = (props: SectionSeparatorProps): React.ReactElement => {
|
|
38
38
|
const dataProps = buildDataProps(data)
|
39
39
|
const htmlProps = buildHtmlProps(htmlOptions)
|
40
40
|
const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation, lineStyle === "dashed" ? lineStyle : ""), globalProps(props), className)
|
41
|
+
const dynamicInlineProps = globalInlineProps(props)
|
41
42
|
|
42
43
|
return (
|
43
44
|
|
@@ -47,6 +48,7 @@ const SectionSeparator = (props: SectionSeparatorProps): React.ReactElement => {
|
|
47
48
|
{...htmlProps}
|
48
49
|
className={classes}
|
49
50
|
id={id}
|
51
|
+
style={dynamicInlineProps}
|
50
52
|
>
|
51
53
|
{
|
52
54
|
children && children ||
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useEffect } from 'react'
|
2
2
|
import classnames from 'classnames'
|
3
3
|
import { buildAriaProps, buildDataProps, buildHtmlProps } from '../utilities/props'
|
4
|
-
import { globalProps, GlobalProps } from '../utilities/globalProps'
|
4
|
+
import { globalProps, GlobalProps, globalInlineProps } from '../utilities/globalProps'
|
5
5
|
import PbTable from '.'
|
6
6
|
import {
|
7
7
|
TableHead,
|
@@ -66,6 +66,7 @@ const Table = (props: TableProps): React.ReactElement => {
|
|
66
66
|
const spaceCssName = outerPadding !== 'none' ? 'space_' : ''
|
67
67
|
const outerPaddingCss = outerPadding ? `outer_padding_${spaceCssName}${outerPadding}` : ''
|
68
68
|
const isTableTag = tag === 'table'
|
69
|
+
const dynamicInlineProps = globalInlineProps(props)
|
69
70
|
|
70
71
|
const classNames = classnames(
|
71
72
|
'pb_table',
|
@@ -154,6 +155,7 @@ const Table = (props: TableProps): React.ReactElement => {
|
|
154
155
|
{...htmlProps}
|
155
156
|
className={classNames}
|
156
157
|
id={id}
|
158
|
+
style={dynamicInlineProps}
|
157
159
|
>
|
158
160
|
{children}
|
159
161
|
</table>
|
@@ -164,6 +166,7 @@ const Table = (props: TableProps): React.ReactElement => {
|
|
164
166
|
{...htmlProps}
|
165
167
|
className={classNames}
|
166
168
|
id={id}
|
169
|
+
style={dynamicInlineProps}
|
167
170
|
>
|
168
171
|
{children}
|
169
172
|
</div>
|
@@ -177,6 +180,7 @@ const Table = (props: TableProps): React.ReactElement => {
|
|
177
180
|
{...htmlProps}
|
178
181
|
className={classNames}
|
179
182
|
id={id}
|
183
|
+
style={dynamicInlineProps}
|
180
184
|
>
|
181
185
|
{children}
|
182
186
|
</table>
|
@@ -187,6 +191,7 @@ const Table = (props: TableProps): React.ReactElement => {
|
|
187
191
|
{...htmlProps}
|
188
192
|
className={classNames}
|
189
193
|
id={id}
|
194
|
+
style={dynamicInlineProps}
|
190
195
|
>
|
191
196
|
{children}
|
192
197
|
</div>
|