diff --git a/docs/src/examples/components/Popup/Types/PopupExample.shorthand.tsx b/docs/src/examples/components/Popup/Types/PopupExample.shorthand.tsx
index 67b5e8bf9f..1ea57f2fae 100644
--- a/docs/src/examples/components/Popup/Types/PopupExample.shorthand.tsx
+++ b/docs/src/examples/components/Popup/Types/PopupExample.shorthand.tsx
@@ -1,6 +1,6 @@
import * as React from 'react'
import { Button, Popup } from '@stardust-ui/react'
-const PopupExample = () =>
} content="Hello from popup!" />
+const PopupExample = () =>
} content="Hello from popup!" />
export default PopupExample
diff --git a/docs/src/examples/components/Popup/Types/PopupExample.tsx b/docs/src/examples/components/Popup/Types/PopupExample.tsx
index 5e5c9b7ff4..1379346b11 100644
--- a/docs/src/examples/components/Popup/Types/PopupExample.tsx
+++ b/docs/src/examples/components/Popup/Types/PopupExample.tsx
@@ -3,7 +3,7 @@ import { Button, Popup } from '@stardust-ui/react'
const PopupExample = () => (
-
+
)
diff --git a/docs/src/examples/components/Popup/Types/PopupExampleInline.shorthand.tsx b/docs/src/examples/components/Popup/Types/PopupExampleInline.shorthand.tsx
index 51eaa06ce4..686bce498c 100644
--- a/docs/src/examples/components/Popup/Types/PopupExampleInline.shorthand.tsx
+++ b/docs/src/examples/components/Popup/Types/PopupExampleInline.shorthand.tsx
@@ -3,7 +3,7 @@ import { Button, Popup } from '@stardust-ui/react'
const PopupExampleInline = () => (
}
+ trigger={
}
content="This popup is rendered next to the trigger."
inline
/>
diff --git a/docs/src/examples/components/Popup/Types/PopupExampleInline.tsx b/docs/src/examples/components/Popup/Types/PopupExampleInline.tsx
index 1d973ab032..1d83596d79 100644
--- a/docs/src/examples/components/Popup/Types/PopupExampleInline.tsx
+++ b/docs/src/examples/components/Popup/Types/PopupExampleInline.tsx
@@ -3,7 +3,7 @@ import { Button, Popup } from '@stardust-ui/react'
const PopupExampleInline = () => (
-
+
)
diff --git a/docs/src/examples/components/Popup/Types/PopupExamplePointing.shorthand.tsx b/docs/src/examples/components/Popup/Types/PopupExamplePointing.shorthand.tsx
index bfad09f7f1..f22bd73baa 100644
--- a/docs/src/examples/components/Popup/Types/PopupExamplePointing.shorthand.tsx
+++ b/docs/src/examples/components/Popup/Types/PopupExamplePointing.shorthand.tsx
@@ -17,25 +17,85 @@ const PopupWithButton = props => (
trigger={
}
/>
)
const triggers = [
- { position: 'above', align: 'start', icon: 'arrow circle up', padding: '5px 42px 18px 5px' },
- { position: 'above', align: 'center', icon: 'arrow circle up', padding: '5px 5px 18px 5px' },
- { position: 'above', align: 'end', icon: 'arrow circle up', padding: '5px 5px 18px 42px' },
- { position: 'below', align: 'start', icon: 'arrow circle down', padding: '18px 42px 5px 5px' },
- { position: 'below', align: 'center', icon: 'arrow circle down', padding: '18px 5px 5px 5px' },
- { position: 'below', align: 'end', icon: 'arrow circle down', padding: '18px 5px 5px 42px' },
- { position: 'before', align: 'top', icon: 'arrow circle left', padding: '5px 42px 18px 5px' },
- { position: 'before', align: 'center', icon: 'arrow circle left', padding: '5px 42px 5px 5px' },
- { position: 'before', align: 'bottom', icon: 'arrow circle left', padding: '18px 42px 5px 5px' },
- { position: 'after', align: 'top', icon: 'arrow circle right', padding: '5px 5px 18px 42px' },
- { position: 'after', align: 'center', icon: 'arrow circle right', padding: '5px 5px 5px 42px' },
- { position: 'after', align: 'bottom', icon: 'arrow circle right', padding: '18px 5px 5px 42px' },
+ {
+ position: 'above',
+ align: 'start',
+ icon: { name: 'arrow-up', circular: true, bordered: true },
+ padding: '5px 42px 18px 5px',
+ },
+ {
+ position: 'above',
+ align: 'center',
+ icon: { name: 'arrow-up', circular: true, bordered: true },
+ padding: '5px 5px 18px 5px',
+ },
+ {
+ position: 'above',
+ align: 'end',
+ icon: { name: 'arrow-up', circular: true, bordered: true },
+ padding: '5px 5px 18px 42px',
+ },
+ {
+ position: 'below',
+ align: 'start',
+ icon: { name: 'arrow-down', circular: true, bordered: true },
+ padding: '18px 42px 5px 5px',
+ },
+ {
+ position: 'below',
+ align: 'center',
+ icon: { name: 'arrow-down', circular: true, bordered: true },
+ padding: '18px 5px 5px 5px',
+ },
+ {
+ position: 'below',
+ align: 'end',
+ icon: { name: 'arrow-down', circular: true, bordered: true },
+ padding: '18px 5px 5px 42px',
+ },
+ {
+ position: 'before',
+ align: 'top',
+ icon: { name: 'arrow-left', circular: true, bordered: true },
+ padding: '5px 42px 18px 5px',
+ },
+ {
+ position: 'before',
+ align: 'center',
+ icon: { name: 'arrow-left', circular: true, bordered: true },
+ padding: '5px 42px 5px 5px',
+ },
+ {
+ position: 'before',
+ align: 'bottom',
+ icon: { name: 'arrow-left', circular: true, bordered: true },
+ padding: '18px 42px 5px 5px',
+ },
+ {
+ position: 'after',
+ align: 'top',
+ icon: { name: 'arrow-right', circular: true, bordered: true },
+ padding: '5px 5px 18px 42px',
+ },
+ {
+ position: 'after',
+ align: 'center',
+ icon: { name: 'arrow-right', circular: true, bordered: true },
+ padding: '5px 5px 5px 42px',
+ },
+ {
+ position: 'after',
+ align: 'bottom',
+ icon: { name: 'arrow-right', circular: true, bordered: true },
+ padding: '18px 5px 5px 42px',
+ },
]
const PopupExamplePointing = () => (
diff --git a/docs/src/examples/components/Popup/Types/PopupFocusTrapExample.shorthand.tsx b/docs/src/examples/components/Popup/Types/PopupFocusTrapExample.shorthand.tsx
index b208e8c71b..f448c31431 100644
--- a/docs/src/examples/components/Popup/Types/PopupFocusTrapExample.shorthand.tsx
+++ b/docs/src/examples/components/Popup/Types/PopupFocusTrapExample.shorthand.tsx
@@ -6,7 +6,7 @@ const PopupFocusTrapExample = () => (
}
+ trigger={
}
content={
<>
This content traps focus on appearance.
@@ -17,7 +17,7 @@ const PopupFocusTrapExample = () => (
{/* Default Popup behavior doesn't introduce focus trap. */}
}
+ trigger={
}
content={
<>
Focus is not trapped for this content.
diff --git a/docs/src/examples/components/Popup/Usage/PopupExampleAsync.shorthand.tsx b/docs/src/examples/components/Popup/Usage/PopupExampleAsync.shorthand.tsx
index 64845cb30c..284a412d84 100644
--- a/docs/src/examples/components/Popup/Usage/PopupExampleAsync.shorthand.tsx
+++ b/docs/src/examples/components/Popup/Usage/PopupExampleAsync.shorthand.tsx
@@ -22,7 +22,7 @@ class AsyncDataLoader extends React.Component
{
const PopupExampleAsync = () => (
}
+ trigger={}
renderContent={updatePosition => }
/>
)
diff --git a/docs/src/examples/components/Popup/Usage/PopupExampleCloseButton.shorthand.tsx b/docs/src/examples/components/Popup/Usage/PopupExampleCloseButton.shorthand.tsx
index e38d6c128e..cf349625fc 100644
--- a/docs/src/examples/components/Popup/Usage/PopupExampleCloseButton.shorthand.tsx
+++ b/docs/src/examples/components/Popup/Usage/PopupExampleCloseButton.shorthand.tsx
@@ -86,7 +86,7 @@ const PopupControlledExample = () => {
setOpen(open)}
- trigger={}
+ trigger={}
content={{
content: popupContent,
'aria-label': 'People picker',
diff --git a/docs/src/examples/components/Popup/Usage/PopupExampleCloseButton.tsx b/docs/src/examples/components/Popup/Usage/PopupExampleCloseButton.tsx
index a8a79f781c..40c014b271 100644
--- a/docs/src/examples/components/Popup/Usage/PopupExampleCloseButton.tsx
+++ b/docs/src/examples/components/Popup/Usage/PopupExampleCloseButton.tsx
@@ -92,7 +92,7 @@ const PopupCloseButtonExample = () => {
}}
trapFocus
>
-
+
)
}
diff --git a/docs/src/examples/components/Popup/Usage/PopupExampleOn.shorthand.tsx b/docs/src/examples/components/Popup/Usage/PopupExampleOn.shorthand.tsx
index 784da0dc4c..28fb51a457 100644
--- a/docs/src/examples/components/Popup/Usage/PopupExampleOn.shorthand.tsx
+++ b/docs/src/examples/components/Popup/Usage/PopupExampleOn.shorthand.tsx
@@ -14,24 +14,24 @@ class PopupExampleOn extends React.Component {
<>
}
+ trigger={}
content="Hello from popup on click!"
on="click"
/>
}
+ trigger={}
content="Hello from popup on hover!"
on="hover"
/>
}
+ trigger={}
content="Hello from popup on focus!"
on="focus"
/>
+
}
content="Hello from popup on click!"
on={['click', 'focus']}
/>
+
}
content="Hello from popup on hover!"
on={['hover', 'focus']}
@@ -32,7 +32,7 @@ class PopupExampleOnMultiple extends React.Component {
}
+ trigger={}
content={contentWithButtons}
trapFocus
on="click"
/>
}
+ trigger={}
content={contentWithButtons}
trapFocus
on="hover"
/>
}
+ trigger={}
content={contentWithButtons}
trapFocus
on="focus"
@@ -41,7 +41,7 @@ class PopupExampleOnWithFocusTrap extends React.Component {
(
+const renderButton = () => (
@@ -17,7 +19,7 @@ const PopupExamplePosition = () => (
align="start"
position="above"
offset="-100%p"
- trigger={renderButton('-45deg')}
+ trigger={renderButton()}
content={
The popup is rendered at above-start
diff --git a/docs/src/examples/components/Popup/Variations/PopupExamplePosition.shorthand.tsx b/docs/src/examples/components/Popup/Variations/PopupExamplePosition.shorthand.tsx
index f377b1b5a4..a0b1e43ca7 100644
--- a/docs/src/examples/components/Popup/Variations/PopupExamplePosition.shorthand.tsx
+++ b/docs/src/examples/components/Popup/Variations/PopupExamplePosition.shorthand.tsx
@@ -23,7 +23,12 @@ const PopupExamplePosition = () => {
align={align}
position={position}
unstable_pinned={unstable_pinned}
- trigger={}
+ trigger={
+
+ }
content={
The popup is rendered {position} the trigger
@@ -53,11 +58,11 @@ const positionAndAlignValues = [
'after-bottom',
]
-const icons: Record = {
- above: 'arrow circle up',
- below: 'arrow circle down',
- before: 'arrow circle left',
- after: 'arrow circle right',
+const iconNames: Record = {
+ above: 'arrow-up',
+ below: 'arrow-down',
+ before: 'arrow-left',
+ after: 'arrow-right',
}
const paddings: Record = {
diff --git a/docs/src/examples/components/Popup/Variations/PopupExamplePosition.tsx b/docs/src/examples/components/Popup/Variations/PopupExamplePosition.tsx
index 52947014be..bd5e1fc84b 100644
--- a/docs/src/examples/components/Popup/Variations/PopupExamplePosition.tsx
+++ b/docs/src/examples/components/Popup/Variations/PopupExamplePosition.tsx
@@ -31,7 +31,10 @@ const PopupExamplePosition = () => {
}
>
-
+
)
@@ -54,11 +57,11 @@ const positionAndAlignValues = [
'after-bottom',
]
-const icons: Record = {
- above: 'arrow circle up',
- below: 'arrow circle down',
- before: 'arrow circle left',
- after: 'arrow circle right',
+const iconNames: Record = {
+ above: 'arrow-up',
+ below: 'arrow-down',
+ before: 'arrow-left',
+ after: 'arrow-right',
}
const paddings: Record = {
diff --git a/docs/src/examples/components/Provider/Types/ProviderDisableAnimationsExample.tsx b/docs/src/examples/components/Provider/Types/ProviderDisableAnimationsExample.tsx
index 1ccacafac0..b7f8655234 100644
--- a/docs/src/examples/components/Provider/Types/ProviderDisableAnimationsExample.tsx
+++ b/docs/src/examples/components/Provider/Types/ProviderDisableAnimationsExample.tsx
@@ -16,7 +16,7 @@ const spinner = {
const AnimatedIcon = () => (
-
+
)
diff --git a/docs/src/examples/components/Reaction/Rtl/ReactionExample.rtl.tsx b/docs/src/examples/components/Reaction/Rtl/ReactionExample.rtl.tsx
index 05e969de14..4b3d3dfd27 100644
--- a/docs/src/examples/components/Reaction/Rtl/ReactionExample.rtl.tsx
+++ b/docs/src/examples/components/Reaction/Rtl/ReactionExample.rtl.tsx
@@ -4,8 +4,8 @@ import { Reaction } from '@stardust-ui/react'
const ReactionGroupExampleRtl = () => (
)
diff --git a/docs/src/examples/components/Reaction/Types/ReactionExample.shorthand.tsx b/docs/src/examples/components/Reaction/Types/ReactionExample.shorthand.tsx
index ad9d0a6e41..d4439b37dc 100644
--- a/docs/src/examples/components/Reaction/Types/ReactionExample.shorthand.tsx
+++ b/docs/src/examples/components/Reaction/Types/ReactionExample.shorthand.tsx
@@ -1,6 +1,6 @@
import * as React from 'react'
import { Reaction } from '@stardust-ui/react'
-const ReactionExample = () =>
+const ReactionExample = () =>
export default ReactionExample
diff --git a/docs/src/examples/components/Reaction/Types/ReactionGroupExample.shorthand.tsx b/docs/src/examples/components/Reaction/Types/ReactionGroupExample.shorthand.tsx
index e4648d85a7..a77280e9a7 100644
--- a/docs/src/examples/components/Reaction/Types/ReactionGroupExample.shorthand.tsx
+++ b/docs/src/examples/components/Reaction/Types/ReactionGroupExample.shorthand.tsx
@@ -4,8 +4,8 @@ import { Reaction } from '@stardust-ui/react'
const ReactionGroupExample = () => (
)
diff --git a/docs/src/examples/components/Status/Variations/StatusCustomExample.shorthand.tsx b/docs/src/examples/components/Status/Variations/StatusCustomExample.shorthand.tsx
index 7059da6bed..474de80e99 100644
--- a/docs/src/examples/components/Status/Variations/StatusCustomExample.shorthand.tsx
+++ b/docs/src/examples/components/Status/Variations/StatusCustomExample.shorthand.tsx
@@ -3,11 +3,11 @@ import { Status } from '@stardust-ui/react'
const StatusCustomExampleShorthand = () => (
-
+
-
+
-
+
)
diff --git a/docs/src/examples/components/Status/Variations/StatusIconExample.shorthand.tsx b/docs/src/examples/components/Status/Variations/StatusIconExample.shorthand.tsx
index 26837366f4..f7e8492ce8 100644
--- a/docs/src/examples/components/Status/Variations/StatusIconExample.shorthand.tsx
+++ b/docs/src/examples/components/Status/Variations/StatusIconExample.shorthand.tsx
@@ -3,9 +3,9 @@ import { Status } from '@stardust-ui/react'
const StatusIconExampleShorthand = () => (
-
+
-
+
)
diff --git a/docs/src/examples/components/Tooltip/States/TooltipOpenControlledExample.shorthand.tsx b/docs/src/examples/components/Tooltip/States/TooltipOpenControlledExample.shorthand.tsx
index 38202b5b17..6fa6bcd222 100644
--- a/docs/src/examples/components/Tooltip/States/TooltipOpenControlledExample.shorthand.tsx
+++ b/docs/src/examples/components/Tooltip/States/TooltipOpenControlledExample.shorthand.tsx
@@ -9,7 +9,7 @@ const TooltipOpenExample = () => {
setOpen(data.open)}
- trigger={}
+ trigger={}
content="This is a controlled Tooltip"
/>
)
diff --git a/docs/src/examples/components/Tooltip/States/TooltipOpenControlledExample.tsx b/docs/src/examples/components/Tooltip/States/TooltipOpenControlledExample.tsx
index 31ad1cb492..c8e3e0d43e 100644
--- a/docs/src/examples/components/Tooltip/States/TooltipOpenControlledExample.tsx
+++ b/docs/src/examples/components/Tooltip/States/TooltipOpenControlledExample.tsx
@@ -11,7 +11,7 @@ const TooltipOpenExample = () => {
onOpenChange={(e, data) => setOpen(data.open)}
content="This is a controlled Tooltip"
>
-
+
)
}
diff --git a/docs/src/examples/components/Tooltip/Types/TooltipExamplePointing.shorthand.tsx b/docs/src/examples/components/Tooltip/Types/TooltipExamplePointing.shorthand.tsx
index 91e76b79c0..f51959667e 100644
--- a/docs/src/examples/components/Tooltip/Types/TooltipExamplePointing.shorthand.tsx
+++ b/docs/src/examples/components/Tooltip/Types/TooltipExamplePointing.shorthand.tsx
@@ -2,7 +2,7 @@ import * as React from 'react'
import { Button, Tooltip } from '@stardust-ui/react'
const TooltipExamplePointing = () => (
- } content="The tooltip is pointing." />
+ } content="The tooltip is pointing." />
)
export default TooltipExamplePointing
diff --git a/docs/src/examples/components/Tooltip/Types/TooltipExamplePointing.tsx b/docs/src/examples/components/Tooltip/Types/TooltipExamplePointing.tsx
index 5ea796a74d..474efb085f 100644
--- a/docs/src/examples/components/Tooltip/Types/TooltipExamplePointing.tsx
+++ b/docs/src/examples/components/Tooltip/Types/TooltipExamplePointing.tsx
@@ -3,7 +3,7 @@ import { Button, Tooltip } from '@stardust-ui/react'
const TooltipExamplePointing = () => (
-
+
)
diff --git a/docs/src/examples/components/Tooltip/Usage/TooltipExampleTarget.shorthand.tsx b/docs/src/examples/components/Tooltip/Usage/TooltipExampleTarget.shorthand.tsx
index 15509b5986..555e5c807c 100644
--- a/docs/src/examples/components/Tooltip/Usage/TooltipExampleTarget.shorthand.tsx
+++ b/docs/src/examples/components/Tooltip/Usage/TooltipExampleTarget.shorthand.tsx
@@ -9,7 +9,7 @@ const TooltipExampleTarget = () => {
{/* CUSTOM DOM ELEMENT is used as target for Tooltip */}
}
+ trigger={}
content="well, yes, I am just a garbish text ¯\_(ツ)_/¯"
position="below"
/>
diff --git a/docs/src/examples/components/Tooltip/Usage/TooltipExampleTarget.tsx b/docs/src/examples/components/Tooltip/Usage/TooltipExampleTarget.tsx
index 0ab4e09370..ffb604ca91 100644
--- a/docs/src/examples/components/Tooltip/Usage/TooltipExampleTarget.tsx
+++ b/docs/src/examples/components/Tooltip/Usage/TooltipExampleTarget.tsx
@@ -12,7 +12,7 @@ const TooltipExampleTarget = () => {
content="well, yes, I am just a garbish text ¯\_(ツ)_/¯"
position="below"
>
-
+
Could you guess what does this text means? :)
diff --git a/docs/src/pages/ShorthandProps.mdx b/docs/src/pages/ShorthandProps.mdx
index 974416154a..7a9ae66ddf 100644
--- a/docs/src/pages/ShorthandProps.mdx
+++ b/docs/src/pages/ShorthandProps.mdx
@@ -18,7 +18,7 @@ Each component's slot has associated default element type. For example, by defau
```jsx
// 💡 'name' and 'size' will be used as
element's props
-
+
```
## Primitive as value
@@ -33,7 +33,7 @@ will be used as icon's `name`:
<>
{/* 💡 has identical effect to the previous one */}
-
+
>
```
@@ -67,7 +67,7 @@ powerful option for customizing component's slot. The only requirements for this
Thus, in its simplest form, it could be used the following way:
```jsx
-