@iress-oss/ids-components 6.0.0-beta.8 → 6.0.0
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.
- package/.ai/components/avatar.md +13 -0
- package/.ai/components/tab-set.md +10 -1
- package/.ai/components/tooltip.md +10 -0
- package/dist/Shadow-BL3YAhE_.js +57 -0
- package/dist/components/Avatar/Avatar.d.ts +14 -1
- package/dist/components/Avatar/Avatar.js +47 -36
- package/dist/components/Field/Field.styles.d.ts +5 -0
- package/dist/components/Field/Field.styles.js +6 -2
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +1 -0
- package/dist/components/TabSet/TabSet.d.ts +1 -1
- package/dist/components/TabSet/TabSet.styles.d.ts +18 -0
- package/dist/components/TabSet/TabSet.styles.js +13 -1
- package/dist/components/Tooltip/Tooltip.d.ts +7 -1
- package/dist/components/Tooltip/Tooltip.js +30 -27
- package/dist/components/Tooltip/Tooltip.styles.d.ts +10 -1
- package/dist/components/Tooltip/Tooltip.styles.js +12 -2
- package/dist/main.js +1 -1
- package/dist/patterns/Shadow/Shadow.js +1 -1
- package/dist/patterns/Shadow/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -6
- package/dist/Shadow-Duhyx42v.js +0 -57
package/.ai/components/avatar.md
CHANGED
|
@@ -100,6 +100,19 @@ Set `compact={true}` for a smaller avatar with a white stroke border, designed f
|
|
|
100
100
|
|
|
101
101
|
[View "Compact" example in Storybook →](https://main--691abcc79dfa560a36d0a74f.chromatic.com/?path=/story/components_components-avatar--compact)
|
|
102
102
|
|
|
103
|
+
### Tooltip
|
|
104
|
+
|
|
105
|
+
Pass a `tooltip` object to display a rich tooltip on hover. The tooltip shows the user's name prominently
|
|
106
|
+
and optional metadata (`badge`, `type`) in muted text separated by a dot.
|
|
107
|
+
|
|
108
|
+
```tsx
|
|
109
|
+
<IressAvatar>
|
|
110
|
+
JD
|
|
111
|
+
</IressAvatar>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
[View "WithTooltip" example in Storybook →](https://main--691abcc79dfa560a36d0a74f.chromatic.com/?path=/story/components_components-avatar--with-tooltip)
|
|
115
|
+
|
|
103
116
|
## Avatar Group
|
|
104
117
|
|
|
105
118
|
Use `IressAvatarGroup` to stack multiple avatars with proper overlap and z-ordering. The first avatar appears in the foreground.
|
|
@@ -53,7 +53,12 @@ You can use state to control the active tab by setting the `selected` property t
|
|
|
53
53
|
|
|
54
54
|
### Layout
|
|
55
55
|
|
|
56
|
-
`IressTabSet` controls the layout of the tab buttons. These will always appear at the top of the tab container, and can be aligned to the left (default), centrally or to the
|
|
56
|
+
`IressTabSet` controls the layout of the tab buttons. These will always appear at the top of the tab container, and can be aligned to the left (default), centrally, to the right, or stretched to fill the full width via the `layout` prop.
|
|
57
|
+
|
|
58
|
+
- `top-left` (default): tabs align to the start.
|
|
59
|
+
- `top-center`: tabs align centrally.
|
|
60
|
+
- `top-right`: tabs align to the end.
|
|
61
|
+
- `top-stretch`: tabs stretch equally to fill the full available width.
|
|
57
62
|
|
|
58
63
|
```tsx
|
|
59
64
|
<IressStack gap="md">
|
|
@@ -69,6 +74,10 @@ You can use state to control the active tab by setting the `selected` property t
|
|
|
69
74
|
<IressText element="h2">top-right</IressText>
|
|
70
75
|
<IressTabSet layout="top-right" />
|
|
71
76
|
</IressPanel>
|
|
77
|
+
<IressPanel>
|
|
78
|
+
<IressText element="h2">top-stretch</IressText>
|
|
79
|
+
<IressTabSet layout="top-stretch" />
|
|
80
|
+
</IressPanel>
|
|
72
81
|
</IressStack>
|
|
73
82
|
```
|
|
74
83
|
|
|
@@ -164,6 +164,16 @@ The `delay` prop requires a number that is the number of milliseconds that pass
|
|
|
164
164
|
|
|
165
165
|
[View "Delay" example in Storybook →](https://main--691abcc79dfa560a36d0a74f.chromatic.com/?path=/story/components_components-tooltip--delay)
|
|
166
166
|
|
|
167
|
+
### Rich variant
|
|
168
|
+
|
|
169
|
+
Use the `variant="rich"` prop for tooltips that display structured content. The first line is rendered as a prominent name and subsequent lines are rendered in muted, smaller text — ideal for explaining avatar badges and indicators.
|
|
170
|
+
|
|
171
|
+
```tsx
|
|
172
|
+
<IressTooltip variant="rich" />
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
[View "Rich" example in Storybook →](https://main--691abcc79dfa560a36d0a74f.chromatic.com/?path=/story/components_components-tooltip--rich)
|
|
176
|
+
|
|
167
177
|
### The title attribute
|
|
168
178
|
|
|
169
179
|
The component will not make any provision for existing title HTML attributes. If one exists, it will be activated along with the tooltip, potentially overlaying it making it difficult to ascertain the information being imparted. The title could also contain different content to the tooltip increasing the chance of confusing the end user.
|