playbook_ui 14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 → 14.8.0.pre.alpha.PLAY1658tanstackbump4657

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db8ee9f13c7629142d8ebee9009fe589989ec0a27cf7cb7177adf16d52ffa1d3
4
- data.tar.gz: c793285b7a81d5ff14d5caba6ec65320c00763fba4fc01d9d388794bc684289a
3
+ metadata.gz: c34918e042ff05229cd38821d218ff77de30c33ccbafbf05ed70d0393dc9609e
4
+ data.tar.gz: bb94daebc61e1615b3752347d6aa69e10ecd261267380f14f864d878a5231bd8
5
5
  SHA512:
6
- metadata.gz: 9768ae568bb5b7688320d5c6fc48dee29c5f551614622c2e0f5ce9f0efe08b91891a5ef5798b912aed744e9c0cb6cea69a7a3fdb1046dcbe528cd8d760f634cc
7
- data.tar.gz: e33ec41098720c971d57a925d57d9f77882e977bfea8273c60c4ff87b8b4302cdf323f51fe629a79f343c7db729a2ca9061feed631229c9818c39b6207759204
6
+ metadata.gz: 22da37f0010cb2819757ee0eedb2484daf12730c82d5b98a7ceec251595137b4c4c86ed339ea682216278d3508736b83af1f451ee371f47f18b3f4bc20a41afd
7
+ data.tar.gz: f06c136f366fb43ecb80e5fe8e02aa3ed2eb1380c36de2039e473cb566a11071d221cd89d545f8465d9f9a2e07c6b44cbe8cceb7b632eb8218c360a4b511405a
@@ -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, globalInlineProps } from '../utilities/globalProps'
4
+ import { GlobalProps, globalProps } from '../utilities/globalProps'
5
5
 
6
6
  type BackgroundColors = 'gradient' |
7
7
  'dark' |'light' | 'white' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'primary' | 'shadow' |
@@ -145,12 +145,6 @@ 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
-
154
148
  const Tag: React.ReactElement | any = `${tag}`;
155
149
  const ariaProps = buildAriaProps(aria);
156
150
  const dataProps = buildDataProps(data);
@@ -164,7 +158,7 @@ const Background = (props: BackgroundProps): React.ReactElement => {
164
158
  alt={alt}
165
159
  className={classes}
166
160
  id={id}
167
- style={combinedStyles}
161
+ style={backgroundStyle}
168
162
  >
169
163
  {children}
170
164
  </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, globalInlineProps } from '../utilities/globalProps'
5
+ import { globalProps } from '../utilities/globalProps'
6
6
  import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
7
7
 
8
8
  import CollapsibleContent from './child_kits/CollapsibleContent'
@@ -75,7 +75,6 @@ const Collapsible = ({
75
75
  globalProps(props),
76
76
  className
77
77
  )
78
- const dynamicInlineProps = globalInlineProps(props)
79
78
  return (
80
79
  <CollapsibleContext.Provider value={{ collapsed: isCollapsed, toggle, icon, iconSize, iconColor, onIconClick, onClick }}>
81
80
  <div
@@ -84,7 +83,6 @@ const Collapsible = ({
84
83
  {...htmlProps}
85
84
  className={classes}
86
85
  id={id}
87
- style={dynamicInlineProps}
88
86
  >
89
87
  {Main ? (
90
88
  <CollapsibleMain {...mainProps}>
@@ -7,7 +7,7 @@ import {
7
7
  buildDataProps,
8
8
  buildHtmlProps,
9
9
  } from "../utilities/props";
10
- import { globalProps, globalInlineProps } from "../utilities/globalProps";
10
+ import { globalProps } from "../utilities/globalProps";
11
11
 
12
12
  import { DialogContext } from "../pb_dialog/_dialog_context";
13
13
 
@@ -101,8 +101,6 @@ 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
-
106
104
  const [triggerOpened, setTriggerOpened] = useState(false);
107
105
 
108
106
  const breakpointWidths: Record<DrawerProps["breakpoint"], number> = {
@@ -200,7 +198,6 @@ const Drawer = (props: DrawerProps): React.ReactElement => {
200
198
  {...dataProps}
201
199
  {...htmlProps}
202
200
  className={classes}
203
- style={dynamicInlineProps}
204
201
  >
205
202
  {isModalVisible && (
206
203
  <div
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import classnames from 'classnames'
3
- import { GlobalProps, globalProps, globalInlineProps } from '../utilities/globalProps'
3
+ import { GlobalProps, globalProps } from '../utilities/globalProps'
4
4
  import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
5
5
 
6
6
  type ImageType = {
@@ -41,7 +41,6 @@ const Image = (props: ImageType): React.ReactElement => {
41
41
  globalProps(props),
42
42
  className
43
43
  )
44
- const dynamicInlineProps = globalInlineProps(props)
45
44
  const dataProps = buildDataProps(data)
46
45
  const htmlProps = buildHtmlProps(htmlOptions)
47
46
 
@@ -57,7 +56,6 @@ const Image = (props: ImageType): React.ReactElement => {
57
56
  id={id}
58
57
  onError={onError}
59
58
  src={url}
60
- style={dynamicInlineProps}
61
59
  />
62
60
  )
63
61
  }
@@ -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, globalProps, globalInlineProps } from '../utilities/globalProps'
5
+ import { globalProps } 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
- } & GlobalProps
22
+ }
23
23
 
24
24
  type LayoutSideProps = {
25
25
  children: React.ReactNode[] | React.ReactNode,
@@ -159,8 +159,6 @@ const Layout = (props: LayoutPropTypes) => {
159
159
  const filteredProps = {...props}
160
160
  delete filteredProps?.position
161
161
 
162
- const dynamicInlineProps = globalInlineProps(props)
163
-
164
162
  return (
165
163
  <div
166
164
  {...ariaProps}
@@ -173,8 +171,7 @@ const Layout = (props: LayoutPropTypes) => {
173
171
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
174
172
  //@ts-ignore
175
173
  globalProps(filteredProps)
176
- )}
177
- style={dynamicInlineProps}
174
+ )}
178
175
  >
179
176
  {subComponentTags('Side')}
180
177
  {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, globalInlineProps } from '../utilities/globalProps'
4
+ import { globalProps } from '../utilities/globalProps'
5
5
  import OverlayPercentage from './subcomponents/_overlay_percentage'
6
6
  import OverlayToken from './subcomponents/_overlay_token'
7
7
 
@@ -39,7 +39,6 @@ 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)
43
42
 
44
43
  const getPosition = () => {
45
44
  return Object.keys(layout)[0]
@@ -58,7 +57,6 @@ const Overlay = (props: OverlayProps) => {
58
57
  {...htmlProps}
59
58
  className={classes}
60
59
  id={id}
61
- style={dynamicInlineProps}
62
60
  >
63
61
  {isSizePercentage ?
64
62
  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, globalInlineProps } from '../utilities/globalProps'
5
+ import { globalProps } from '../utilities/globalProps'
6
6
 
7
7
  import Caption from '../pb_caption/_caption'
8
8
 
@@ -38,7 +38,6 @@ 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)
42
41
 
43
42
  return (
44
43
 
@@ -48,7 +47,6 @@ const SectionSeparator = (props: SectionSeparatorProps): React.ReactElement => {
48
47
  {...htmlProps}
49
48
  className={classes}
50
49
  id={id}
51
- style={dynamicInlineProps}
52
50
  >
53
51
  {
54
52
  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, globalInlineProps } from '../utilities/globalProps'
4
+ import { globalProps, GlobalProps } from '../utilities/globalProps'
5
5
  import PbTable from '.'
6
6
  import {
7
7
  TableHead,
@@ -64,7 +64,6 @@ const Table = (props: TableProps): React.ReactElement => {
64
64
  const spaceCssName = outerPadding !== 'none' ? 'space_' : ''
65
65
  const outerPaddingCss = outerPadding ? `outer_padding_${spaceCssName}${outerPadding}` : ''
66
66
  const isTableTag = tag === 'table'
67
- const dynamicInlineProps = globalInlineProps(props)
68
67
 
69
68
  const classNames = classnames(
70
69
  'pb_table',
@@ -100,7 +99,6 @@ const Table = (props: TableProps): React.ReactElement => {
100
99
  {...htmlProps}
101
100
  className={classNames}
102
101
  id={id}
103
- style={dynamicInlineProps}
104
102
  >
105
103
  {children}
106
104
  </table>