@hopper-ui/components 1.3.5 → 1.3.7
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/CHANGELOG.md +13 -0
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.d.ts +8 -2
- package/dist/Avatar/src/AnonymousAvatar.js +4 -2
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.d.ts +8 -2
- package/dist/Avatar/src/Avatar.js +5 -3
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.d.ts +8 -2
- package/dist/Avatar/src/DeletedAvatar.js +4 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.d.ts +9 -2
- package/dist/Avatar/src/RichIconAvatarImage.js +3 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +7 -5
- package/dist/Badge/src/Badge.css +21 -21
- package/dist/Badge/src/Badge.d.ts +24 -2
- package/dist/Badge/src/Badge.js +4 -2
- package/dist/Badge/src/FloatingBadge.css +10 -10
- package/dist/Badge/src/FloatingBadge.d.ts +2 -2
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +31 -31
- package/dist/Badge/src/index.js +5 -3
- package/dist/Divider/src/Divider.css +2 -2
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +2 -2
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +4 -3
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +4 -3
- package/dist/Form/src/Form.css +723 -701
- package/dist/Form/src/Form.js +45 -45
- package/dist/Form/src/index.css +723 -701
- package/dist/Form/src/index.js +45 -45
- package/dist/Header/src/Header.d.ts +2 -2
- package/dist/HelperMessage/src/HelperMessage.css +11 -11
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +11 -11
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.d.ts +2 -2
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +3 -3
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +3 -3
- package/dist/ListBox/src/ListBox.css +267 -273
- package/dist/ListBox/src/ListBox.js +8 -8
- package/dist/ListBox/src/ListBoxItem.css +253 -253
- package/dist/ListBox/src/ListBoxItem.js +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +2 -2
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +267 -273
- package/dist/ListBox/src/index.js +8 -8
- package/dist/Select/src/Select.css +723 -701
- package/dist/Select/src/Select.js +45 -45
- package/dist/Select/src/SelectValue.css +60 -60
- package/dist/Select/src/SelectValue.js +7 -7
- package/dist/Select/src/index.css +723 -701
- package/dist/Select/src/index.js +45 -45
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.d.ts +2 -2
- package/dist/Spinner/src/Spinner.js +3 -3
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +3 -3
- package/dist/buttons/src/Button.css +94 -94
- package/dist/buttons/src/Button.js +5 -5
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +71 -71
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +71 -71
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +176 -176
- package/dist/buttons/src/index.js +8 -8
- package/dist/checkbox/src/Checkbox.css +28 -28
- package/dist/checkbox/src/Checkbox.js +3 -3
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.d.ts +8 -2
- package/dist/checkbox/src/CheckboxField.js +3 -1
- package/dist/checkbox/src/CheckboxGroup.css +83 -83
- package/dist/checkbox/src/CheckboxGroup.js +2 -2
- package/dist/checkbox/src/CheckboxList.d.ts +2 -2
- package/dist/checkbox/src/DecorativeCheckbox.css +36 -36
- package/dist/checkbox/src/DecorativeCheckbox.js +4 -4
- package/dist/checkbox/src/index.css +83 -83
- package/dist/checkbox/src/index.js +7 -7
- package/dist/{chunk-5PSDYTOT.js → chunk-2LS24P2S.js} +1 -1
- package/dist/{chunk-GR4ZXUOX.js → chunk-4PCMNJTD.js} +15 -13
- package/dist/{chunk-UEHE2IY5.js → chunk-5CR5V44E.js} +23 -11
- package/dist/{chunk-3SMTAPEK.js → chunk-5LGDXMKZ.js} +4 -4
- package/dist/{chunk-2RFHHVN3.js → chunk-AHMI7DHJ.js} +4 -4
- package/dist/{chunk-YZEDTLPG.js → chunk-AWYN6573.js} +1 -1
- package/dist/{chunk-5IRT2QDF.js → chunk-BNBUTFBN.js} +1 -1
- package/dist/{chunk-24JZVLAU.js → chunk-BUI76FPU.js} +1 -1
- package/dist/{chunk-6AFXZYF5.js → chunk-BZC3DOXC.js} +4 -4
- package/dist/{chunk-T6MMAU6N.js → chunk-C4W3WI5F.js} +2 -2
- package/dist/{chunk-LYTJ7OUI.js → chunk-CWP3RDUT.js} +2 -2
- package/dist/{chunk-PSGKAJML.js → chunk-DCTC6KDW.js} +1 -1
- package/dist/{chunk-EBDEMWL7.js → chunk-DMAM2GFN.js} +5 -5
- package/dist/{chunk-CH44JMHK.js → chunk-DNFIKL5N.js} +3 -3
- package/dist/{chunk-QUEZJSCY.js → chunk-DSUR3NPA.js} +3 -3
- package/dist/{chunk-EOXY566V.js → chunk-F4XYXAPX.js} +1 -1
- package/dist/{chunk-7MCVN25U.js → chunk-FKFP4LFR.js} +22 -12
- package/dist/{chunk-52A7OS5J.js → chunk-FSRORCX7.js} +5 -5
- package/dist/{chunk-LI2RM2EK.js → chunk-HIF2U66B.js} +1 -1
- package/dist/{chunk-7XEWB4YU.js → chunk-IA343FCT.js} +25 -18
- package/dist/{chunk-RMXL2PC5.js → chunk-IZUZUN6Z.js} +8 -6
- package/dist/{chunk-SAHIPNPF.js → chunk-JGOXWGEG.js} +5 -5
- package/dist/{chunk-NT6XKRT2.js → chunk-JKE2GH2D.js} +28 -15
- package/dist/{chunk-GEYJZ3VZ.js → chunk-JZGG67JQ.js} +1 -1
- package/dist/{chunk-UQY26ITM.js → chunk-LULNSRRY.js} +1 -1
- package/dist/{chunk-3KW6ENLR.js → chunk-LXWDXMVL.js} +8 -8
- package/dist/{chunk-LSTGTYUX.js → chunk-MDI3RFZS.js} +22 -14
- package/dist/{chunk-XXFIU5GK.js → chunk-MJ24AAEX.js} +1 -1
- package/dist/{chunk-3OVZI77M.js → chunk-MTQURD2G.js} +4 -4
- package/dist/{chunk-HABA5CYG.js → chunk-PGYHBNCP.js} +2 -2
- package/dist/{chunk-D6CIA7NA.js → chunk-PJLVJG4E.js} +1 -1
- package/dist/{chunk-AIO2PFOS.js → chunk-PQTB3F7K.js} +4 -4
- package/dist/{chunk-SUXNDVNP.js → chunk-PVLUQZAG.js} +24 -16
- package/dist/{chunk-4UOBMEPP.js → chunk-SRT6TJ7K.js} +1 -1
- package/dist/{chunk-S4LXTCFZ.js → chunk-SZIBBFKI.js} +4 -4
- package/dist/{chunk-5IRH7LBK.js → chunk-T2DEFREG.js} +22 -14
- package/dist/{chunk-QBGX4KU2.js → chunk-VMSIQERT.js} +3 -3
- package/dist/{chunk-FMNUFTYZ.js → chunk-VZAUDQPW.js} +4 -4
- package/dist/{chunk-RPYDBKIG.js → chunk-WD3GLWJA.js} +2 -2
- package/dist/{chunk-RYROB3P6.js → chunk-YFJWAPT5.js} +1 -1
- package/dist/{chunk-6UW2BF2Z.js → chunk-YUMDUDZX.js} +4 -4
- package/dist/{chunk-LIGWTMRQ.js → chunk-Z63VLZM2.js} +3 -3
- package/dist/{chunk-Y3VCNKJB.js → chunk-ZVOVNXPJ.js} +22 -13
- package/dist/index.css +723 -701
- package/dist/index.d.ts +1 -1
- package/dist/index.js +45 -45
- package/dist/inputs/src/InputGroup.css +191 -191
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +231 -231
- package/dist/inputs/src/NumberField.js +7 -7
- package/dist/inputs/src/PasswordField.css +219 -219
- package/dist/inputs/src/PasswordField.js +8 -8
- package/dist/inputs/src/SearchField.css +225 -225
- package/dist/inputs/src/SearchField.js +9 -9
- package/dist/inputs/src/TextArea.css +225 -225
- package/dist/inputs/src/TextArea.js +7 -7
- package/dist/inputs/src/TextField.css +223 -223
- package/dist/inputs/src/TextField.js +9 -9
- package/dist/inputs/src/index.css +271 -271
- package/dist/inputs/src/index.js +13 -13
- package/dist/layout/src/Content.d.ts +2 -2
- package/dist/layout/src/Footer.d.ts +2 -2
- package/dist/overlays/Popover/src/Popover.css +723 -701
- package/dist/overlays/Popover/src/Popover.d.ts +2 -2
- package/dist/overlays/Popover/src/Popover.js +45 -45
- package/dist/overlays/Popover/src/index.css +723 -701
- package/dist/overlays/Popover/src/index.js +45 -45
- package/dist/radio/src/DecorativeRadio.css +36 -36
- package/dist/radio/src/DecorativeRadio.js +4 -4
- package/dist/radio/src/Radio.css +28 -28
- package/dist/radio/src/Radio.js +3 -3
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.d.ts +8 -2
- package/dist/radio/src/RadioField.js +3 -1
- package/dist/radio/src/RadioGroup.css +83 -83
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/RadioList.d.ts +2 -2
- package/dist/radio/src/index.css +83 -83
- package/dist/radio/src/index.js +7 -7
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +3 -3
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.d.ts +8 -2
- package/dist/switch/src/SwitchField.js +3 -1
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +5 -4
- package/dist/tag/src/Tag.css +323 -323
- package/dist/tag/src/Tag.js +6 -6
- package/dist/tag/src/TagGroup.css +22 -22
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/index.css +336 -336
- package/dist/tag/src/index.js +7 -7
- package/dist/typography/Heading/src/Heading.css +9 -9
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -9
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +3 -3
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +3 -3
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/index.d.ts +1 -1
- package/dist/utils/src/index.js +2 -2
- package/dist/utils/src/types.d.ts +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @hopper-ui/components
|
|
2
2
|
|
|
3
|
+
## 1.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1e29a8e: Removed support for dividers in Listbox as this is not accessible
|
|
8
|
+
|
|
9
|
+
## 1.3.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- aad6ff0: Accessibility fix
|
|
14
|
+
- 9daeca0: Simplify import of CSS
|
|
15
|
+
|
|
3
16
|
## 1.3.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Avatar/src/RichIconAvatarImage.module.css/#css-module-data */
|
|
2
|
-
.RichIconAvatarImage-module__hop-
|
|
2
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv {
|
|
3
3
|
--hop-RichIconAvatarImage-background-color: var(--hop-decorative-option7-surface);
|
|
4
4
|
--hop-RichIconAvatarImage-border-radius: var(--hop-shape-circle);
|
|
5
5
|
--hop-RichIconAvatarImage-icon-color: var(--hop-decorative-option7-icon);
|
|
@@ -30,40 +30,40 @@
|
|
|
30
30
|
background-color: var(--background-color);
|
|
31
31
|
border-radius: var(--hop-RichIconAvatarImage-border-radius);
|
|
32
32
|
}
|
|
33
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
33
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___is3ow {
|
|
34
34
|
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
35
|
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
36
|
}
|
|
37
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___Uv85l {
|
|
38
38
|
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
39
|
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
40
|
}
|
|
41
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___MKeiw {
|
|
42
42
|
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
43
|
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
44
|
}
|
|
45
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___zWajo {
|
|
46
46
|
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
47
|
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
48
|
}
|
|
49
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___G8Mrm {
|
|
50
50
|
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
51
|
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
52
|
}
|
|
53
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___IX8Rm {
|
|
54
54
|
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
55
|
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
56
|
}
|
|
57
|
-
.RichIconAvatarImage-module__hop-
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv[data-disabled] {
|
|
58
58
|
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
59
|
}
|
|
60
|
-
.RichIconAvatarImage-module__hop-
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9 {
|
|
61
61
|
position: relative;
|
|
62
62
|
display: block;
|
|
63
63
|
inline-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
64
64
|
block-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
65
65
|
}
|
|
66
|
-
.RichIconAvatarImage-module__hop-
|
|
66
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9 {
|
|
67
67
|
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
68
68
|
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
69
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
3
|
-
import {
|
|
3
|
+
import { AccessibleSlotProps, RenderProps } from '../../utils/src/types.js';
|
|
4
4
|
import { AvatarSize } from './Avatar.js';
|
|
5
5
|
import '@react-types/shared';
|
|
6
6
|
import 'react-aria-components';
|
|
@@ -8,7 +8,13 @@ import '../../typography/Text/src/Text.js';
|
|
|
8
8
|
import '../../utils/src/sizeAdapter.js';
|
|
9
9
|
|
|
10
10
|
declare const GlobalAnonymousAvatarCssSelector = "hop-AnonymousAvatar";
|
|
11
|
-
interface
|
|
11
|
+
interface AnonymousAvatarRenderProps {
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the avatar is disabled.
|
|
14
|
+
*/
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface AnonymousAvatarProps extends StyledSystemProps, AccessibleSlotProps, Omit<RenderProps<AnonymousAvatarRenderProps>, "children"> {
|
|
12
18
|
/**
|
|
13
19
|
* Whether or not the avatar is disabled.
|
|
14
20
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { _AnonymousAvatar as AnonymousAvatar, GlobalAnonymousAvatarCssSelector } from '../../chunk-
|
|
1
|
+
export { _AnonymousAvatar as AnonymousAvatar, GlobalAnonymousAvatarCssSelector } from '../../chunk-FKFP4LFR.js';
|
|
2
2
|
import '../../chunk-AES7QBQE.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-ZVOVNXPJ.js';
|
|
4
|
+
import '../../chunk-NH3IVMXB.js';
|
|
5
|
+
import '../../chunk-65JPI4FL.js';
|
|
4
6
|
import '../../chunk-M36KANKC.js';
|
|
5
7
|
import '../../chunk-KVDXQMWI.js';
|
|
6
8
|
import '../../chunk-JWW56J7M.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/Text/src/Text.module.css/#css-module-data */
|
|
2
|
-
.Text-module__hop-
|
|
2
|
+
.Text-module__hop-Text___R8UuG {
|
|
3
3
|
--hop-Text-xs-font-size: var(--hop-body-xs-font-size);
|
|
4
4
|
--hop-Text-xs-font-family: var(--hop-body-xs-font-family);
|
|
5
5
|
--hop-Text-xs-font-weight: var(--hop-body-xs-font-weight);
|
|
@@ -29,49 +29,49 @@
|
|
|
29
29
|
--hop-Text-inherit-size-font-weight: inherit;
|
|
30
30
|
--hop-Text-inherit-size-line-height: inherit;
|
|
31
31
|
}
|
|
32
|
-
:where(.Text-module__hop-
|
|
32
|
+
:where(.Text-module__hop-Text___R8UuG) {
|
|
33
33
|
font-family: var(--font-family);
|
|
34
34
|
font-size: var(--font-size);
|
|
35
35
|
font-weight: var(--font-weight);
|
|
36
36
|
line-height: var(--line-height);
|
|
37
37
|
}
|
|
38
|
-
:where(.Text-module__hop-Text--
|
|
38
|
+
:where(.Text-module__hop-Text--xs___N8buF) {
|
|
39
39
|
--font-size: var(--hop-Text-xs-font-size);
|
|
40
40
|
--font-family: var(--hop-Text-xs-font-family);
|
|
41
41
|
--font-weight: var(--hop-Text-xs-font-weight);
|
|
42
42
|
--line-height: var(--hop-Text-xs-line-height);
|
|
43
43
|
}
|
|
44
|
-
:where(.Text-module__hop-Text--
|
|
44
|
+
:where(.Text-module__hop-Text--sm___ZTn2L) {
|
|
45
45
|
--font-size: var(--hop-Text-sm-font-size);
|
|
46
46
|
--font-family: var(--hop-Text-sm-font-family);
|
|
47
47
|
--font-weight: var(--hop-Text-sm-font-weight);
|
|
48
48
|
--line-height: var(--hop-Text-sm-line-height);
|
|
49
49
|
}
|
|
50
|
-
:where(.Text-module__hop-Text--
|
|
50
|
+
:where(.Text-module__hop-Text--md___PaS1r) {
|
|
51
51
|
--font-size: var(--hop-Text-md-font-size);
|
|
52
52
|
--font-family: var(--hop-Text-md-font-family);
|
|
53
53
|
--font-weight: var(--hop-Text-md-font-weight);
|
|
54
54
|
--line-height: var(--hop-Text-md-line-height);
|
|
55
55
|
}
|
|
56
|
-
:where(.Text-module__hop-Text--
|
|
56
|
+
:where(.Text-module__hop-Text--lg___Wi5qN) {
|
|
57
57
|
--font-size: var(--hop-Text-lg-font-size);
|
|
58
58
|
--font-family: var(--hop-Text-lg-font-family);
|
|
59
59
|
--font-weight: var(--hop-Text-lg-font-weight);
|
|
60
60
|
--line-height: var(--hop-Text-lg-line-height);
|
|
61
61
|
}
|
|
62
|
-
:where(.Text-module__hop-Text--
|
|
62
|
+
:where(.Text-module__hop-Text--xl___zM1uq) {
|
|
63
63
|
--font-size: var(--hop-Text-xl-font-size);
|
|
64
64
|
--font-family: var(--hop-Text-xl-font-family);
|
|
65
65
|
--font-weight: var(--hop-Text-xl-font-weight);
|
|
66
66
|
--line-height: var(--hop-Text-xl-line-height);
|
|
67
67
|
}
|
|
68
|
-
:where(.Text-module__hop-Text--
|
|
68
|
+
:where(.Text-module__hop-Text--2xl___OWNYz) {
|
|
69
69
|
--font-size: var(--hop-Text-2xl-font-size);
|
|
70
70
|
--font-family: var(--hop-Text-2xl-font-family);
|
|
71
71
|
--font-weight: var(--hop-Text-2xl-font-weight);
|
|
72
72
|
--line-height: var(--hop-Text-2xl-line-height);
|
|
73
73
|
}
|
|
74
|
-
:where(.Text-module__hop-Text--
|
|
74
|
+
:where(.Text-module__hop-Text--inherit___r9ZJy) {
|
|
75
75
|
--font-size: var(--hop-Text-inherit-size-font-size);
|
|
76
76
|
--font-family: var(--hop-Text-inherit-size-font-family);
|
|
77
77
|
--font-weight: var(--hop-Text-inherit-size-font-weight);
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Avatar/src/RichIconAvatarImage.module.css/#css-module-data */
|
|
82
|
-
.RichIconAvatarImage-module__hop-
|
|
82
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv {
|
|
83
83
|
--hop-RichIconAvatarImage-background-color: var(--hop-decorative-option7-surface);
|
|
84
84
|
--hop-RichIconAvatarImage-border-radius: var(--hop-shape-circle);
|
|
85
85
|
--hop-RichIconAvatarImage-icon-color: var(--hop-decorative-option7-icon);
|
|
@@ -110,46 +110,46 @@
|
|
|
110
110
|
background-color: var(--background-color);
|
|
111
111
|
border-radius: var(--hop-RichIconAvatarImage-border-radius);
|
|
112
112
|
}
|
|
113
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
113
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___is3ow {
|
|
114
114
|
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
115
115
|
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
116
116
|
}
|
|
117
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
117
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___Uv85l {
|
|
118
118
|
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
119
119
|
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
120
120
|
}
|
|
121
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
121
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___MKeiw {
|
|
122
122
|
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
123
123
|
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
124
124
|
}
|
|
125
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
125
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___zWajo {
|
|
126
126
|
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
127
127
|
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
128
128
|
}
|
|
129
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
129
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___G8Mrm {
|
|
130
130
|
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
131
131
|
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
132
132
|
}
|
|
133
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
133
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___IX8Rm {
|
|
134
134
|
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
135
135
|
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
136
136
|
}
|
|
137
|
-
.RichIconAvatarImage-module__hop-
|
|
137
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv[data-disabled] {
|
|
138
138
|
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
139
139
|
}
|
|
140
|
-
.RichIconAvatarImage-module__hop-
|
|
140
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9 {
|
|
141
141
|
position: relative;
|
|
142
142
|
display: block;
|
|
143
143
|
inline-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
144
144
|
block-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
145
145
|
}
|
|
146
|
-
.RichIconAvatarImage-module__hop-
|
|
146
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9 {
|
|
147
147
|
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
148
148
|
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Avatar/src/Avatar.module.css/#css-module-data */
|
|
152
|
-
.Avatar-module__hop-
|
|
152
|
+
.Avatar-module__hop-Avatar___wvVPM {
|
|
153
153
|
--hop-Avatar-border-radius: var(--hop-shape-circle);
|
|
154
154
|
--hop-Avatar-mix-blend-mode: normal;
|
|
155
155
|
--hop-Avatar-decorative-1-background-color: var(--hop-decorative-option1-surface-strong);
|
|
@@ -194,67 +194,67 @@
|
|
|
194
194
|
background-color: var(--background-color, transparent);
|
|
195
195
|
border-radius: var(--hop-Avatar-border-radius);
|
|
196
196
|
}
|
|
197
|
-
.Avatar-module__hop-Avatar--
|
|
197
|
+
.Avatar-module__hop-Avatar--xs___xWSLM {
|
|
198
198
|
--size: var(--hop-Avatar-xs-size);
|
|
199
199
|
}
|
|
200
|
-
.Avatar-module__hop-Avatar--
|
|
200
|
+
.Avatar-module__hop-Avatar--sm___aYlLW {
|
|
201
201
|
--size: var(--hop-Avatar-sm-size);
|
|
202
202
|
}
|
|
203
|
-
.Avatar-module__hop-Avatar--
|
|
203
|
+
.Avatar-module__hop-Avatar--md___kS3ss {
|
|
204
204
|
--size: var(--hop-Avatar-md-size);
|
|
205
205
|
}
|
|
206
|
-
.Avatar-module__hop-Avatar--
|
|
206
|
+
.Avatar-module__hop-Avatar--lg___gjqxK {
|
|
207
207
|
--size: var(--hop-Avatar-lg-size);
|
|
208
208
|
}
|
|
209
|
-
.Avatar-module__hop-Avatar--
|
|
209
|
+
.Avatar-module__hop-Avatar--xl___Pyynt {
|
|
210
210
|
--size: var(--hop-Avatar-xl-size);
|
|
211
211
|
}
|
|
212
|
-
.Avatar-module__hop-Avatar--
|
|
212
|
+
.Avatar-module__hop-Avatar--2xl___L9LKX {
|
|
213
213
|
--size: var(--hop-Avatar-2xl-size);
|
|
214
214
|
}
|
|
215
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
215
|
+
.Avatar-module__hop-Avatar--decorative-option1___G27ag {
|
|
216
216
|
--background-color: var(--hop-Avatar-decorative-1-background-color);
|
|
217
217
|
--text-color: var(--hop-Avatar-decorative-1-text-color);
|
|
218
218
|
}
|
|
219
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
219
|
+
.Avatar-module__hop-Avatar--decorative-option2___nRYtl {
|
|
220
220
|
--background-color: var(--hop-Avatar-decorative-2-background-color);
|
|
221
221
|
--text-color: var(--hop-Avatar-decorative-2-text-color);
|
|
222
222
|
}
|
|
223
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
223
|
+
.Avatar-module__hop-Avatar--decorative-option3___YIsiX {
|
|
224
224
|
--background-color: var(--hop-Avatar-decorative-3-background-color);
|
|
225
225
|
--text-color: var(--hop-Avatar-decorative-3-text-color);
|
|
226
226
|
}
|
|
227
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
227
|
+
.Avatar-module__hop-Avatar--decorative-option4___6LeoD {
|
|
228
228
|
--background-color: var(--hop-Avatar-decorative-4-background-color);
|
|
229
229
|
--text-color: var(--hop-Avatar-decorative-4-text-color);
|
|
230
230
|
}
|
|
231
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
231
|
+
.Avatar-module__hop-Avatar--decorative-option5___B92oN {
|
|
232
232
|
--background-color: var(--hop-Avatar-decorative-5-background-color);
|
|
233
233
|
--text-color: var(--hop-Avatar-decorative-5-text-color);
|
|
234
234
|
}
|
|
235
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
235
|
+
.Avatar-module__hop-Avatar--decorative-option6___xfeoB {
|
|
236
236
|
--background-color: var(--hop-Avatar-decorative-6-background-color);
|
|
237
237
|
--text-color: var(--hop-Avatar-decorative-6-text-color);
|
|
238
238
|
}
|
|
239
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
239
|
+
.Avatar-module__hop-Avatar--decorative-option7___XIlFt {
|
|
240
240
|
--background-color: var(--hop-Avatar-decorative-7-background-color);
|
|
241
241
|
--text-color: var(--hop-Avatar-decorative-7-text-color);
|
|
242
242
|
}
|
|
243
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
243
|
+
.Avatar-module__hop-Avatar--decorative-option8___v9I39 {
|
|
244
244
|
--background-color: var(--hop-Avatar-decorative-8-background-color);
|
|
245
245
|
--text-color: var(--hop-Avatar-decorative-8-text-color);
|
|
246
246
|
}
|
|
247
|
-
.Avatar-module__hop-Avatar--decorative-
|
|
247
|
+
.Avatar-module__hop-Avatar--decorative-option9___thark {
|
|
248
248
|
--background-color: var(--hop-Avatar-decorative-9-background-color);
|
|
249
249
|
--text-color: var(--hop-Avatar-decorative-9-text-color);
|
|
250
250
|
}
|
|
251
|
-
.Avatar-module__hop-
|
|
251
|
+
.Avatar-module__hop-Avatar___wvVPM[data-disabled] {
|
|
252
252
|
--background-color: var(--hop-Avatar-background-color-disabled);
|
|
253
253
|
--text-color: var(--hop-Avatar-text-color-disabled);
|
|
254
254
|
--mix-blend-mode: var(--hop-Avatar-mix-blend-mode-disabled);
|
|
255
255
|
isolation: isolate;
|
|
256
256
|
}
|
|
257
|
-
.Avatar-module__hop-
|
|
257
|
+
.Avatar-module__hop-Avatar__image___W02lq {
|
|
258
258
|
position: relative;
|
|
259
259
|
display: block;
|
|
260
260
|
box-sizing: border-box;
|
|
@@ -3,14 +3,20 @@ import { HTMLProps } from 'react';
|
|
|
3
3
|
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
4
4
|
import { TextProps } from '../../typography/Text/src/Text.js';
|
|
5
5
|
import { SizeAdapter } from '../../utils/src/sizeAdapter.js';
|
|
6
|
-
import {
|
|
6
|
+
import { AccessibleSlotProps, RenderProps } from '../../utils/src/types.js';
|
|
7
7
|
import 'react-aria-components';
|
|
8
8
|
import '@react-types/shared';
|
|
9
9
|
|
|
10
10
|
declare const GlobalAvatarCssSelector = "hop-Avatar";
|
|
11
11
|
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
12
12
|
type AvatarImageBaseProps = HTMLProps<HTMLImageElement>;
|
|
13
|
-
interface
|
|
13
|
+
interface AvatarRenderProps {
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not the avatar is disabled.
|
|
16
|
+
*/
|
|
17
|
+
isDisabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface AvatarProps extends StyledSystemProps, AccessibleSlotProps, Omit<RenderProps<AvatarRenderProps>, "children"> {
|
|
14
20
|
/**
|
|
15
21
|
* The src of the image to display if the image fails to load. If set to null, the initials will be displayed instead.
|
|
16
22
|
* * @default "BrokenImageRichIcon"
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export { _Avatar as Avatar, AvatarToTextSizeAdapter, GlobalAvatarCssSelector } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { _Avatar as Avatar, AvatarToTextSizeAdapter, GlobalAvatarCssSelector } from '../../chunk-IA343FCT.js';
|
|
2
|
+
import '../../chunk-F4XYXAPX.js';
|
|
3
3
|
import '../../chunk-X6SER3TZ.js';
|
|
4
4
|
import '../../chunk-NS3XVOQ7.js';
|
|
5
5
|
import '../../chunk-HXI3MEEK.js';
|
|
6
6
|
import '../../chunk-AES7QBQE.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-ZVOVNXPJ.js';
|
|
8
|
+
import '../../chunk-NH3IVMXB.js';
|
|
9
|
+
import '../../chunk-65JPI4FL.js';
|
|
8
10
|
import '../../chunk-M36KANKC.js';
|
|
9
11
|
import '../../chunk-KVDXQMWI.js';
|
|
10
12
|
import '../../chunk-JWW56J7M.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Avatar/src/RichIconAvatarImage.module.css/#css-module-data */
|
|
2
|
-
.RichIconAvatarImage-module__hop-
|
|
2
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv {
|
|
3
3
|
--hop-RichIconAvatarImage-background-color: var(--hop-decorative-option7-surface);
|
|
4
4
|
--hop-RichIconAvatarImage-border-radius: var(--hop-shape-circle);
|
|
5
5
|
--hop-RichIconAvatarImage-icon-color: var(--hop-decorative-option7-icon);
|
|
@@ -30,40 +30,40 @@
|
|
|
30
30
|
background-color: var(--background-color);
|
|
31
31
|
border-radius: var(--hop-RichIconAvatarImage-border-radius);
|
|
32
32
|
}
|
|
33
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
33
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___is3ow {
|
|
34
34
|
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
35
|
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
36
|
}
|
|
37
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___Uv85l {
|
|
38
38
|
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
39
|
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
40
|
}
|
|
41
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___MKeiw {
|
|
42
42
|
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
43
|
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
44
|
}
|
|
45
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___zWajo {
|
|
46
46
|
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
47
|
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
48
|
}
|
|
49
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___G8Mrm {
|
|
50
50
|
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
51
|
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
52
|
}
|
|
53
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___IX8Rm {
|
|
54
54
|
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
55
|
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
56
|
}
|
|
57
|
-
.RichIconAvatarImage-module__hop-
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv[data-disabled] {
|
|
58
58
|
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
59
|
}
|
|
60
|
-
.RichIconAvatarImage-module__hop-
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9 {
|
|
61
61
|
position: relative;
|
|
62
62
|
display: block;
|
|
63
63
|
inline-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
64
64
|
block-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
65
65
|
}
|
|
66
|
-
.RichIconAvatarImage-module__hop-
|
|
66
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9 {
|
|
67
67
|
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
68
68
|
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
69
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
3
|
-
import {
|
|
3
|
+
import { AccessibleSlotProps, RenderProps } from '../../utils/src/types.js';
|
|
4
4
|
import { AvatarSize } from './Avatar.js';
|
|
5
5
|
import '@react-types/shared';
|
|
6
6
|
import 'react-aria-components';
|
|
@@ -8,7 +8,13 @@ import '../../typography/Text/src/Text.js';
|
|
|
8
8
|
import '../../utils/src/sizeAdapter.js';
|
|
9
9
|
|
|
10
10
|
declare const GlobalDeletedAvatarCssSelector = "hop-DeletedAvatar";
|
|
11
|
-
interface
|
|
11
|
+
interface DeletedAvatarRenderProps {
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the avatar is disabled.
|
|
14
|
+
*/
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface DeletedAvatarProps extends StyledSystemProps, AccessibleSlotProps, Omit<RenderProps<DeletedAvatarRenderProps>, "children"> {
|
|
12
18
|
/**
|
|
13
19
|
* Whether or not the avatar is disabled.
|
|
14
20
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { _DeletedAvatar as DeletedAvatar, GlobalDeletedAvatarCssSelector } from '../../chunk-
|
|
1
|
+
export { _DeletedAvatar as DeletedAvatar, GlobalDeletedAvatarCssSelector } from '../../chunk-5CR5V44E.js';
|
|
2
2
|
import '../../chunk-AES7QBQE.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-ZVOVNXPJ.js';
|
|
4
|
+
import '../../chunk-NH3IVMXB.js';
|
|
5
|
+
import '../../chunk-65JPI4FL.js';
|
|
4
6
|
import '../../chunk-M36KANKC.js';
|
|
5
7
|
import '../../chunk-KVDXQMWI.js';
|
|
6
8
|
import '../../chunk-JWW56J7M.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Avatar/src/RichIconAvatarImage.module.css/#css-module-data */
|
|
2
|
-
.RichIconAvatarImage-module__hop-
|
|
2
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv {
|
|
3
3
|
--hop-RichIconAvatarImage-background-color: var(--hop-decorative-option7-surface);
|
|
4
4
|
--hop-RichIconAvatarImage-border-radius: var(--hop-shape-circle);
|
|
5
5
|
--hop-RichIconAvatarImage-icon-color: var(--hop-decorative-option7-icon);
|
|
@@ -30,40 +30,40 @@
|
|
|
30
30
|
background-color: var(--background-color);
|
|
31
31
|
border-radius: var(--hop-RichIconAvatarImage-border-radius);
|
|
32
32
|
}
|
|
33
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
33
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___is3ow {
|
|
34
34
|
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
35
|
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
36
|
}
|
|
37
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___Uv85l {
|
|
38
38
|
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
39
|
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
40
|
}
|
|
41
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___MKeiw {
|
|
42
42
|
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
43
|
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
44
|
}
|
|
45
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___zWajo {
|
|
46
46
|
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
47
|
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
48
|
}
|
|
49
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___G8Mrm {
|
|
50
50
|
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
51
|
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
52
|
}
|
|
53
|
-
.RichIconAvatarImage-module__hop-RichIconAvatarImage--
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___IX8Rm {
|
|
54
54
|
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
55
|
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
56
|
}
|
|
57
|
-
.RichIconAvatarImage-module__hop-
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv[data-disabled] {
|
|
58
58
|
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
59
|
}
|
|
60
|
-
.RichIconAvatarImage-module__hop-
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9 {
|
|
61
61
|
position: relative;
|
|
62
62
|
display: block;
|
|
63
63
|
inline-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
64
64
|
block-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
65
65
|
}
|
|
66
|
-
.RichIconAvatarImage-module__hop-
|
|
66
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9 {
|
|
67
67
|
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
68
68
|
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
69
69
|
}
|
|
@@ -3,14 +3,21 @@ import { HTMLAttributes } from 'react';
|
|
|
3
3
|
import { RichIconProps } from '@hopper-ui/icons';
|
|
4
4
|
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
5
5
|
import { SizeAdapter } from '../../utils/src/sizeAdapter.js';
|
|
6
|
-
import {
|
|
6
|
+
import { AccessibleSlotProps, RenderProps } from '../../utils/src/types.js';
|
|
7
7
|
import { AvatarSize, AvatarProps } from './Avatar.js';
|
|
8
8
|
import '@react-types/shared';
|
|
9
9
|
import 'react-aria-components';
|
|
10
10
|
import '../../typography/Text/src/Text.js';
|
|
11
11
|
|
|
12
12
|
declare const GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
13
|
-
interface
|
|
13
|
+
interface RichIconAvatarImageRenderProps {
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not the avatar is disabled.
|
|
16
|
+
*/
|
|
17
|
+
isDisabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
type OmittedDivProps = "slot" | "content" | "color" | "children" | "className" | "style";
|
|
20
|
+
interface RichIconAvatarImageProps extends StyledSystemProps, AccessibleSlotProps, RenderProps<RichIconAvatarImageRenderProps>, Omit<HTMLAttributes<HTMLDivElement>, OmittedDivProps> {
|
|
14
21
|
/**
|
|
15
22
|
* Whether or not the avatar image is disabled.
|
|
16
23
|
*/
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { AvatarToIconSizeAdapter, GlobalRichIconAvatarImageCssSelector, _RichIconAvatarImage as RichIconAvatarImage } from '../../chunk-
|
|
1
|
+
export { AvatarToIconSizeAdapter, GlobalRichIconAvatarImageCssSelector, _RichIconAvatarImage as RichIconAvatarImage } from '../../chunk-ZVOVNXPJ.js';
|
|
2
|
+
import '../../chunk-NH3IVMXB.js';
|
|
3
|
+
import '../../chunk-65JPI4FL.js';
|
|
2
4
|
import '../../chunk-M36KANKC.js';
|
|
3
5
|
import '../../chunk-KVDXQMWI.js';
|
|
4
6
|
import '../../chunk-JWW56J7M.js';
|