@sanity/ui 5.0.0-alpha.2 → 5.0.0-alpha.20

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.
Files changed (136) hide show
  1. package/README.md +1 -1
  2. package/dist/LazyRefractor-CQ22IeXB.js +19 -0
  3. package/dist/LazyRefractor-CQ22IeXB.js.map +1 -0
  4. package/dist/cli/install.js +2 -1
  5. package/dist/index.d.ts +825 -855
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +2460 -1796
  8. package/dist/index.js.map +1 -1
  9. package/dist/polyfills.d.ts +1 -0
  10. package/dist/polyfills.js +5 -0
  11. package/dist/polyfills.js.map +1 -0
  12. package/dist/styles.css +1 -1
  13. package/package.json +16 -9
  14. package/src/cli/install.ts +2 -1
  15. package/src/components/avatar/Avatar.tsx +50 -0
  16. package/src/components/avatar/avatar.css +51 -0
  17. package/src/components/avatar/avatar.props.ts +57 -0
  18. package/src/components/avatar-counter/AvatarCounter.tsx +38 -0
  19. package/src/components/avatar-counter/avatar-counter.css +8 -0
  20. package/src/components/avatar-counter/avatarCounter.props.ts +44 -0
  21. package/src/components/avatar-stack/AvatarStack.tsx +60 -0
  22. package/src/components/avatar-stack/avatar-stack.css +16 -0
  23. package/src/components/avatar-stack/avatarStack.props.ts +20 -0
  24. package/src/components/badge/Badge.tsx +53 -0
  25. package/src/components/badge/badge.css +6 -0
  26. package/src/components/badge/badge.props.ts +31 -0
  27. package/src/components/box/box.css +5 -0
  28. package/src/components/box/box.props.ts +7 -2
  29. package/src/components/button/Button.tsx +7 -1
  30. package/src/components/button/button.css +51 -23
  31. package/src/components/button/button.props.ts +27 -9
  32. package/src/components/card/Card.tsx +1 -1
  33. package/src/components/card/card.props.ts +10 -5
  34. package/src/components/checkbox/Checkbox.tsx +15 -29
  35. package/src/components/checkbox/checkbox.css +19 -20
  36. package/src/components/checkbox/checkbox.props.ts +11 -12
  37. package/src/components/code/code.props.ts +10 -3
  38. package/src/components/container/Container.tsx +5 -1
  39. package/src/components/container/container.css +4 -0
  40. package/src/components/container/container.props.ts +6 -2
  41. package/src/components/dialog/Dialog.tsx +139 -0
  42. package/src/components/dialog/dialog.css +49 -0
  43. package/src/components/dialog/dialog.props.ts +45 -0
  44. package/src/components/eyebrow/eyebrow.props.ts +6 -2
  45. package/src/components/flex/flex.css +5 -0
  46. package/src/components/flex/flex.props.ts +6 -2
  47. package/src/components/grid/grid.css +5 -0
  48. package/src/components/grid/grid.props.ts +14 -3
  49. package/src/components/h-stack/HStack.tsx +8 -14
  50. package/src/components/h-stack/hStack.props.ts +5 -13
  51. package/src/components/heading/heading.props.ts +8 -2
  52. package/src/components/hotkeys/Hotkeys.tsx +29 -0
  53. package/src/components/hotkeys/hotkeys.css +3 -0
  54. package/src/components/hotkeys/hotkeys.props.ts +15 -0
  55. package/src/components/icon/Icon.tsx +22 -11
  56. package/src/components/icon/icon.props.ts +7 -3
  57. package/src/components/icon-button/iconButton.props.ts +7 -2
  58. package/src/components/index.css +12 -1
  59. package/src/components/indicator/indicator.css +1 -1
  60. package/src/components/indicator/indicator.props.ts +6 -2
  61. package/src/components/indicator-stack/indicatorStack.props.ts +3 -1
  62. package/src/components/inline/inline.props.ts +6 -2
  63. package/src/components/kbd/KBD.tsx +33 -0
  64. package/src/components/kbd/kbd.css +6 -0
  65. package/src/components/kbd/kbd.props.ts +20 -0
  66. package/src/components/link/link.props.ts +4 -4
  67. package/src/components/list/list.props.ts +27 -9
  68. package/src/components/popover/Popover.tsx +85 -0
  69. package/src/components/popover/popover.css +21 -0
  70. package/src/components/popover/popover.props.ts +38 -0
  71. package/src/components/press-area/pressArea.props.ts +3 -1
  72. package/src/components/radio/Radio.tsx +10 -28
  73. package/src/components/radio/radio.css +17 -32
  74. package/src/components/radio/radio.props.ts +1 -19
  75. package/src/components/select/Select.tsx +41 -0
  76. package/src/components/select/select.css +67 -0
  77. package/src/components/select/select.props.ts +18 -0
  78. package/src/components/skip-to-content/skipToContent.props.ts +9 -3
  79. package/src/components/spinner/Spinner.tsx +2 -1
  80. package/src/components/spinner/spinner.props.ts +3 -0
  81. package/src/components/switch/Switch.tsx +9 -21
  82. package/src/components/switch/switch.css +22 -23
  83. package/src/components/switch/switch.props.ts +7 -11
  84. package/src/components/tabs/Tabs.tsx +186 -0
  85. package/src/components/tabs/tabs.css +34 -0
  86. package/src/components/tabs/tabs.props.ts +66 -0
  87. package/src/components/text/text.props.ts +6 -2
  88. package/src/components/text-area/TextArea.tsx +32 -0
  89. package/src/components/text-area/text-area.css +56 -0
  90. package/src/components/text-area/textArea.props.ts +35 -0
  91. package/src/components/text-input/TextInput.tsx +32 -0
  92. package/src/components/text-input/text-input.css +55 -0
  93. package/src/components/text-input/textInput.props.ts +42 -0
  94. package/src/components/tooltip/Tooltip.tsx +59 -55
  95. package/src/components/tooltip/tooltip.css +21 -40
  96. package/src/components/tooltip/tooltip.props.ts +24 -8
  97. package/src/components/tooltip-group/TooltipGroup.tsx +2 -5
  98. package/src/components/tooltip-group/tooltipGroup.props.ts +3 -1
  99. package/src/components/v-stack/VStack.tsx +8 -14
  100. package/src/components/v-stack/vStack.props.ts +5 -13
  101. package/src/components/visually-hidden/visuallyHidden.props.ts +6 -2
  102. package/src/css/classes/dynamic/height.css +2 -0
  103. package/src/css/classes/generic/display.css +8 -8
  104. package/src/css/classes/generic/placement.css +105 -86
  105. package/src/css/classes/local/animation.css +4 -0
  106. package/src/css/classes/local/field-sizing.css +3 -0
  107. package/src/css/classes/local/index.css +3 -1
  108. package/src/css/classes/local/text-trim.css +11 -4
  109. package/src/css/classes/local/top-anchor.css +4 -0
  110. package/src/css/classes/system/shadow.css +6 -6
  111. package/src/css/classes/system/typography.css +0 -4
  112. package/src/css/global/reset.css +12 -1
  113. package/src/css/tokens/semantic.css +7 -6
  114. package/src/css/tokens/surface.css +80 -12
  115. package/src/hooks/useIsClient.ts +10 -0
  116. package/src/index.ts +17 -2
  117. package/src/polyfills.ts +17 -0
  118. package/src/props/formElement.ts +34 -0
  119. package/src/props/layout.ts +3 -3
  120. package/src/props/tone.ts +13 -2
  121. package/src/types/Avatar.ts +14 -0
  122. package/src/types/Eyebrow.ts +1 -1
  123. package/src/types/FormElement.ts +2 -0
  124. package/src/types/Heading.ts +1 -1
  125. package/src/types/TextAlign.ts +1 -1
  126. package/src/types/Tone.ts +2 -0
  127. package/src/utils/getProps.ts +1 -1
  128. package/src/utils/mergeTriggerProps.ts +66 -0
  129. package/src/utils/renderPortal.tsx +14 -0
  130. package/src/version.ts +2 -2
  131. package/dist/_chunks-es/LazyRefractor.js +0 -20
  132. package/dist/_chunks-es/LazyRefractor.js.map +0 -1
  133. package/src/components/label/Label.tsx +0 -34
  134. package/src/components/label/label.css +0 -3
  135. package/src/components/label/label.props.ts +0 -19
  136. package/src/css/classes/local/tone.css +0 -75
@@ -0,0 +1,42 @@
1
+ import {formElementDensityProps, type FormElementDensityProps} from '../../props/formElement'
2
+ import {type PropDef} from '../../types/PropDef'
3
+
4
+ export const TEXT_INPUT_EXCLUDED_TYPES = [
5
+ 'button',
6
+ 'checkbox',
7
+ 'color',
8
+ 'file',
9
+ 'hidden',
10
+ 'image',
11
+ 'radio',
12
+ 'range',
13
+ 'reset',
14
+ 'submit',
15
+ ] as const
16
+
17
+ /** @public */
18
+ export type TextInputExcludedTypes = (typeof TEXT_INPUT_EXCLUDED_TYPES)[number]
19
+
20
+ /** @public */
21
+ export type TextInputType = Exclude<React.HTMLInputTypeAttribute, TextInputExcludedTypes>
22
+
23
+ /** @public */
24
+ export interface TextInputProps
25
+ extends Omit<React.ComponentProps<'input'>, 'type'>, FormElementDensityProps {
26
+ /**
27
+ * Used to trigger styling for invalid states.
28
+ * @remarks Use when form validation fails. Pair with a visible error message.
29
+ */
30
+ hasError?: boolean
31
+ /**
32
+ * The html `type` attribute, with non-text based types excluded.
33
+ */
34
+ type?: TextInputType
35
+ }
36
+
37
+ export const textInputProps: Record<string, PropDef> = {
38
+ hasError: {
39
+ type: 'boolean',
40
+ },
41
+ ...formElementDensityProps,
42
+ }
@@ -1,93 +1,97 @@
1
1
  import clsx from 'clsx'
2
- import {cloneElement, useEffect, useId, useState} from 'react'
2
+ import {cloneElement, useId, useState, type ToggleEvent} from 'react'
3
3
 
4
+ import {useIsClient} from '../../hooks/useIsClient'
4
5
  import {getProps} from '../../utils/getProps'
6
+ import {mergeTriggerProps} from '../../utils/mergeTriggerProps'
7
+ import {renderPortal} from '../../utils/renderPortal'
5
8
  import {suffixClassName} from '../../utils/suffixClassName'
6
- import {Box} from '../box/Box'
7
9
  import {type TooltipProps, tooltipProps} from './tooltip.props'
8
10
 
9
11
  const tooltipClassName = suffixClassName('sui-Tooltip')
10
- const tooltipDismissedClassName = suffixClassName('sui-Tooltip-Dismissed')
11
12
 
12
- /** @public */
13
- export function Tooltip({placement = 'bottom', ...props}: TooltipProps) {
13
+ function TooltipRoot({
14
+ placement = 'bottom',
15
+ ...props
16
+ }: TooltipProps & {
17
+ triggerProps?: Record<string, unknown>
18
+ }) {
14
19
  const {
15
20
  children,
16
21
  className,
17
22
  style,
18
- disabled,
19
23
  id: idProp,
20
- text,
24
+ anchorName,
25
+ content,
26
+ portal,
27
+ triggerProps: forwardedTriggerProps,
21
28
  ...rest
22
29
  } = getProps({placement, ...props}, tooltipProps)
23
30
  const reactId = useId()
24
31
  const id = idProp || reactId
25
32
  const [dismissed, setDismissed] = useState(false)
33
+ const isClient = useIsClient()
26
34
 
27
- useEffect(() => {
28
- if (dismissed) {
29
- return
30
- }
31
-
32
- const handleKeyDown = (e: KeyboardEvent) => {
33
- if (e.key === 'Escape') {
34
- setDismissed(true)
35
- }
36
- }
37
-
38
- window.addEventListener('keydown', handleKeyDown)
39
- return () => window.removeEventListener('keydown', handleKeyDown)
40
- }, [dismissed])
41
-
42
- const trigger = cloneElement(children, {
35
+ const triggerProps = {
43
36
  'aria-describedby': id,
44
- 'onMouseEnter': (e) => {
37
+ 'interestfor': id,
38
+ 'style': {anchorName: `--anchor-${anchorName || id}`},
39
+ 'onMouseLeave': () => {
45
40
  setDismissed(false)
46
- children.props.onMouseEnter?.(e)
47
41
  },
48
- 'onFocus': (e) => {
42
+ 'onBlur': () => {
49
43
  setDismissed(false)
50
- children.props.onFocus?.(e)
51
44
  },
52
- 'onClick': (e) => {
45
+ 'onClick': () => {
53
46
  setDismissed(true)
54
- children.props.onClick?.(e)
47
+ document.getElementById(id)?.hidePopover()
55
48
  },
56
- 'style': {
57
- ...children.props.style,
58
- anchorName: `--tooltip-anchor-${id}`,
59
- },
60
- })
49
+ }
50
+
51
+ const trigger = children.type.forwardsTriggerProps
52
+ ? cloneElement(children, {triggerProps})
53
+ : cloneElement(children, mergeTriggerProps(children.props, forwardedTriggerProps, triggerProps))
61
54
 
62
- if (disabled) {
63
- return children
55
+ const handleBeforeToggle = (e: ToggleEvent) => {
56
+ if (e.newState === 'open' && dismissed) {
57
+ e.preventDefault()
58
+ }
64
59
  }
65
60
 
66
61
  return (
67
62
  <>
68
63
  {trigger}
69
64
 
70
- <Box
71
- className={clsx(tooltipClassName, dismissed ? tooltipDismissedClassName : '', className)}
72
- role="tooltip"
73
- style={{
74
- ...style,
75
- positionAnchor: `--tooltip-anchor-${id}`,
76
- }}
77
- data-ui="Tooltip"
78
- id={id}
79
- paddingX={2}
80
- paddingY={1}
81
- radius={2}
82
- position="fixed"
83
- zIndex={9999}
84
- shadow={2}
85
- {...rest}
86
- >
87
- {text}
88
- </Box>
65
+ {renderPortal(
66
+ <div
67
+ className={clsx(
68
+ tooltipClassName,
69
+ 'sui-p2 sui-radius2 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',
70
+ className,
71
+ )}
72
+ style={{
73
+ ...style,
74
+ positionAnchor: `--anchor-${anchorName || id}`,
75
+ }}
76
+ data-ui="Tooltip"
77
+ role="tooltip"
78
+ popover="hint"
79
+ id={id}
80
+ onBeforeToggle={handleBeforeToggle}
81
+ {...rest}
82
+ >
83
+ {content}
84
+ </div>,
85
+ isClient,
86
+ portal,
87
+ )}
89
88
  </>
90
89
  )
91
90
  }
92
91
 
92
+ /** @beta */
93
+ export const Tooltip = Object.assign(TooltipRoot, {
94
+ forwardsTriggerProps: true,
95
+ }) as typeof TooltipRoot
96
+
93
97
  export type {TooltipProps}
@@ -1,52 +1,33 @@
1
+ [interestfor] {
2
+ --tooltip-delay: var(--tooltip-delay-group, 500ms);
3
+ /* The interestfor polyfill looks for intereset delay variables */
4
+ --interest-delay-start: var(--tooltip-delay);
5
+ --interest-delay-end: 0ms;
6
+ interest-delay-start: var(--tooltip-delay);
7
+ interest-delay-end: 0ms;
8
+ }
9
+
1
10
  .sui-Tooltip {
2
- --tooltip-delay-open: var(--tooltip-delay-group, 500ms);
3
- --tooltip-delay-close: var(--tooltip-delay-group, 100ms);
4
11
  background: var(--backdrop);
12
+ visibility: hidden;
5
13
  opacity: 0;
6
14
  scale: 0.9;
7
- visibility: hidden;
8
- transition:
9
- opacity 200ms cubic-bezier(0.34, 1.2, 0.64, 1) var(--tooltip-delay-close),
10
- scale 200ms cubic-bezier(0.34, 1.2, 0.64, 1) var(--tooltip-delay-close),
11
- visibility 0s linear calc(var(--tooltip-delay-close) + 200ms);
15
+ transition: none;
16
+ --tooltip-color: var(--foreground-high);
17
+ color: var(--tooltip-color);
12
18
  }
13
19
 
14
- [aria-describedby]:is(:hover, :focus-visible) + [role="tooltip"]:not(.sui-Tooltip-Dismissed) {
20
+ .sui-Tooltip:popover-open {
15
21
  visibility: visible;
16
22
  opacity: 1;
17
23
  scale: 1;
18
- transition:
19
- opacity 200ms cubic-bezier(0.34, 1.2, 0.64, 1) var(--tooltip-delay-open),
20
- scale 200ms cubic-bezier(0.34, 1.2, 0.64, 1) var(--tooltip-delay-open),
21
- visibility 0s linear var(--tooltip-delay-open);
22
- }
23
-
24
- [aria-describedby]:is(:hover, :focus-visible) + .sui-Tooltip-Dismissed[role="tooltip"] {
25
- transition: none;
26
- }
27
-
28
- .sui-Tooltip[class*='placement-bottom'],
29
- .sui-Tooltip[class*='placement-top'] {
30
- margin-block: var(--space-1);
31
- }
32
-
33
- .sui-Tooltip[class*='placement-left'],
34
- .sui-Tooltip[class*='placement-right'] {
35
- margin-inline: var(--space-1);
36
- }
37
-
38
- .sui-Tooltip[class*='bottom'] {
39
- transform-origin: center top;
40
- }
41
-
42
- .sui-Tooltip[class*='top'] {
43
- transform-origin: center bottom;
44
- }
45
-
46
- .sui-Tooltip[class*='left'] {
47
- transform-origin: right center;
24
+ transition: var(--fade-in-transition);
48
25
  }
49
26
 
50
- .sui-Tooltip[class*='right'] {
51
- transform-origin: left center;
27
+ @starting-style {
28
+ .sui-Tooltip:popover-open {
29
+ visibility: hidden;
30
+ opacity: 0;
31
+ scale: 0.9;
32
+ }
52
33
  }
@@ -1,19 +1,35 @@
1
1
  import {type PlacementProps, placementProps} from '../../props/placement'
2
2
  import {type PropDef} from '../../types/PropDef'
3
3
 
4
- /** @public */
5
- export interface TooltipProps extends React.ComponentProps<'div'>, PlacementProps {
6
- /** Tooltip text */
7
- text?: React.ReactNode
8
- /** Disabled state */
9
- disabled?: boolean
4
+ /** @beta */
5
+ export interface TooltipProps
6
+ extends Omit<React.ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {
7
+ /**
8
+ * Shared anchor identifier.
9
+ */
10
+ anchorName?: React.ReactNode
11
+ /**
12
+ * The trigger element.
13
+ */
14
+ children: React.ReactElement<Record<string, unknown>>
15
+ /**
16
+ * The tooltip label.
17
+ */
18
+ content?: React.ReactNode
19
+ /**
20
+ * Renders the label into `document.body` through a React portal instead of inline.
21
+ */
22
+ portal?: boolean
10
23
  }
11
24
 
12
25
  export const tooltipProps: Record<string, PropDef> = {
13
- text: {
26
+ anchorName: {
14
27
  type: 'string',
15
28
  },
16
- disabled: {
29
+ content: {
30
+ type: 'string',
31
+ },
32
+ portal: {
17
33
  type: 'boolean',
18
34
  },
19
35
  ...placementProps,
@@ -23,10 +23,7 @@ export function TooltipGroup<T extends ElementType = 'div'>(
23
23
  return
24
24
  }
25
25
 
26
- if (
27
- e.propertyName === 'visibility' &&
28
- window.getComputedStyle(tooltip).visibility !== 'hidden'
29
- ) {
26
+ if (e.propertyName === 'opacity' && window.getComputedStyle(tooltip).opacity !== '0') {
30
27
  setIsActive(true)
31
28
  }
32
29
  }
@@ -49,7 +46,7 @@ export function TooltipGroup<T extends ElementType = 'div'>(
49
46
  style={{
50
47
  ...style,
51
48
  ...(isActive && {
52
- '--tooltip-delay-group': 0,
49
+ '--tooltip-delay-group': '0ms',
53
50
  }),
54
51
  }}
55
52
  data-ui="TooltipGroup"
@@ -2,7 +2,9 @@ import {type PropDef} from '../../types/PropDef'
2
2
 
3
3
  /** @public */
4
4
  export interface TooltipGroupProps<T extends React.ElementType = 'div'> {
5
- /** Element to render */
5
+ /**
6
+ * HTML element to render.
7
+ */
6
8
  as?: T
7
9
  }
8
10
 
@@ -1,31 +1,25 @@
1
1
  import clsx from 'clsx'
2
2
  import type {ComponentPropsWithRef, ElementType} from 'react'
3
3
 
4
- import {getProps} from '../../utils/getProps'
4
+ import type {ComponentProps} from '../../utils/getProps'
5
5
  import {suffixClassName} from '../../utils/suffixClassName'
6
6
  import {Flex} from '../flex/Flex'
7
- import {type VStackProps, vStackProps} from './vStack.props'
7
+ import {type VStackProps} from './vStack.props'
8
8
 
9
9
  const vStackClassName = suffixClassName('sui-VStack')
10
10
 
11
11
  /** @public */
12
- export function VStack<T extends ElementType = 'div'>(
13
- props: VStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof VStackProps<T>>,
14
- ) {
15
- const {as, children, className, style, ...rest} = getProps(props, vStackProps)
16
- const Component = as || 'div'
17
-
12
+ export function VStack<T extends ElementType = 'div'>({
13
+ className,
14
+ ...props
15
+ }: VStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof VStackProps<T>>) {
18
16
  return (
19
17
  <Flex
20
- as={Component}
21
18
  className={clsx(vStackClassName, className)}
22
- style={style}
23
19
  data-ui="VStack"
24
20
  flexDirection="column"
25
- {...rest}
26
- >
27
- {children}
28
- </Flex>
21
+ {...(props as ComponentProps)}
22
+ />
29
23
  )
30
24
  }
31
25
 
@@ -1,15 +1,7 @@
1
- import {type GapProps, gapProps} from '../../props/gap'
2
- import {type PropDef} from '../../types/PropDef'
1
+ import type {FlexProps} from '../flex/flex.props'
3
2
 
4
3
  /** @public */
5
- export interface VStackProps<T extends React.ElementType = 'div'> extends Pick<GapProps, 'gap'> {
6
- /** Element to render */
7
- as?: T
8
- }
9
-
10
- export const vStackProps: Record<string, PropDef> = {
11
- as: {
12
- type: 'string',
13
- },
14
- gap: gapProps['gap'] as PropDef,
15
- }
4
+ export interface VStackProps<T extends React.ElementType = 'div'> extends Pick<
5
+ FlexProps<T>,
6
+ 'as' | 'gap'
7
+ > {}
@@ -2,9 +2,13 @@ import {type PropDef} from '../../types/PropDef'
2
2
 
3
3
  /** @public */
4
4
  export interface VisuallyHiddenProps<T extends React.ElementType = 'span'> {
5
- /** Element to render */
5
+ /**
6
+ * HTML element to render.
7
+ */
6
8
  as?: T
7
- /** If true, element is visible on :focus-visible */
9
+ /**
10
+ * If true, the element becomes visible on `:focus-visible`.
11
+ */
8
12
  visibleOnFocus?: boolean
9
13
  }
10
14
 
@@ -2,4 +2,6 @@
2
2
  .sui-height { height: var(--height); }
3
3
  .sui-min-height { min-height: var(--min-height); }
4
4
  .sui-max-height { max-height: var(--max-height); }
5
+ .sui-height-full { height: 100%; }
6
+ .sui-height-auto { height: auto; }
5
7
  }
@@ -1,10 +1,10 @@
1
1
  @breakpoints {
2
- .sui-display-block { display: block; }
3
- .sui-display-inline-block { display: inline-block; }
4
- .sui-display-inline { display: inline; }
5
- .sui-display-flex { display: flex; }
6
- .sui-display-inline-flex { display: inline-flex; }
7
- .sui-display-grid { display: grid; }
8
- .sui-display-inline-grid { display: inline-grid; }
9
- .sui-display-none { display: none; }
2
+ .sui-display-block:not([hidden]) { display: block; }
3
+ .sui-display-inline-block:not([hidden]) { display: inline-block; }
4
+ .sui-display-inline:not([hidden]) { display: inline; }
5
+ .sui-display-flex:not([hidden]) { display: flex; }
6
+ .sui-display-inline-flex:not([hidden]) { display: inline-flex; }
7
+ .sui-display-grid:not([hidden]) { display: grid; }
8
+ .sui-display-inline-grid:not([hidden]) { display: inline-grid; }
9
+ .sui-display-none:not([hidden]) { display: none; }
10
10
  }