@hopper-ui/components 1.0.3 → 1.0.5
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 +14 -0
- package/dist/Avatar/src/AnonymousAvatar.css +69 -0
- package/dist/Avatar/src/AnonymousAvatar.d.ts +29 -0
- package/dist/Avatar/src/AnonymousAvatar.js +7 -0
- package/dist/Avatar/src/Avatar.css +265 -0
- package/dist/Avatar/src/Avatar.d.ts +60 -0
- package/dist/Avatar/src/Avatar.js +11 -0
- package/dist/Avatar/src/AvatarContext.d.ts +12 -0
- package/dist/Avatar/src/AvatarContext.js +2 -0
- package/dist/Avatar/src/DeletedAvatar.css +69 -0
- package/dist/Avatar/src/DeletedAvatar.d.ts +29 -0
- package/dist/Avatar/src/DeletedAvatar.js +7 -0
- package/dist/Avatar/src/RichIconAvatarImage.css +69 -0
- package/dist/Avatar/src/RichIconAvatarImage.d.ts +32 -0
- package/dist/Avatar/src/RichIconAvatarImage.js +5 -0
- package/dist/Avatar/src/RichIconAvatarImageContext.d.ts +14 -0
- package/dist/Avatar/src/RichIconAvatarImageContext.js +2 -0
- package/dist/Avatar/src/index.css +265 -0
- package/dist/Avatar/src/index.d.ts +14 -0
- package/dist/Avatar/src/index.js +13 -0
- package/dist/Avatar/src/useImageFallback.d.ts +34 -0
- package/dist/Avatar/src/useImageFallback.js +2 -0
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +2 -2
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +2 -2
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +5 -5
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +5 -5
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +2 -2
- package/dist/badge/src/Badge.css +10 -10
- package/dist/badge/src/Badge.js +2 -2
- package/dist/badge/src/index.css +10 -10
- package/dist/badge/src/index.js +2 -2
- package/dist/buttons/src/Button.css +103 -103
- package/dist/buttons/src/Button.d.ts +2 -2
- package/dist/buttons/src/Button.js +6 -6
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +12 -12
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +12 -12
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +126 -126
- package/dist/buttons/src/index.js +9 -9
- package/dist/checkbox/src/Checkbox.css +35 -35
- package/dist/checkbox/src/Checkbox.js +4 -4
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +70 -70
- package/dist/checkbox/src/CheckboxGroup.js +1 -1
- package/dist/checkbox/src/index.css +70 -70
- package/dist/checkbox/src/index.js +6 -6
- package/dist/chip/src/Chip.css +33 -33
- package/dist/chip/src/Chip.js +3 -3
- package/dist/chip/src/index.css +33 -33
- package/dist/chip/src/index.js +3 -3
- package/dist/{chunk-3DWVMCIV.js → chunk-22YUFCHD.js} +2 -2
- package/dist/{chunk-5EPNXRCT.js → chunk-3IEED7AY.js} +1 -1
- package/dist/{chunk-XIOIAME2.js → chunk-3OWQHIJ6.js} +2 -2
- package/dist/{chunk-CTK5YVBZ.js → chunk-5F5CWOM4.js} +1 -1
- package/dist/{chunk-OGMLQRES.js → chunk-6WWYES56.js} +1 -1
- package/dist/{chunk-4RIAVSLK.js → chunk-7Q7VIED2.js} +1 -1
- package/dist/chunk-AES7QBQE.js +7 -0
- package/dist/{chunk-JLF7DSUY.js → chunk-BD53A2LL.js} +4 -4
- package/dist/{chunk-WLSLSMK7.js → chunk-BVGKXCQH.js} +2 -2
- package/dist/chunk-CP4AWOFU.js +81 -0
- package/dist/{chunk-LYV2D5RZ.js → chunk-F7S2I43Y.js} +1 -1
- package/dist/chunk-FYDLV5BM.js +46 -0
- package/dist/{chunk-DLTYFRKN.js → chunk-GELM73MQ.js} +4 -4
- package/dist/chunk-GFHBDUJD.js +17 -0
- package/dist/{chunk-RXBKOHT2.js → chunk-GWEUWPLT.js} +1 -1
- package/dist/{chunk-2VBOJKEP.js → chunk-IIZECZAH.js} +2 -2
- package/dist/chunk-JWW56J7M.js +7 -0
- package/dist/{chunk-JLFHTZUA.js → chunk-KOA2CREJ.js} +5 -5
- package/dist/{chunk-DJU2DUTQ.js → chunk-KOJGCQ3F.js} +3 -3
- package/dist/{chunk-EE75ND6V.js → chunk-KQPY2D3P.js} +1 -1
- package/dist/{chunk-UY7WQ7TC.js → chunk-LUAIMTPE.js} +7 -7
- package/dist/{chunk-Z3ID4UEE.js → chunk-N77LTZ4U.js} +3 -15
- package/dist/chunk-NS3XVOQ7.js +53 -0
- package/dist/{chunk-OQW6BT6B.js → chunk-NXNV5JDN.js} +50 -31
- package/dist/chunk-OPFRM3JC.js +161 -0
- package/dist/{chunk-UARL5M2W.js → chunk-P7JRKXBD.js} +1 -1
- package/dist/{chunk-XFKAXBB5.js → chunk-T6VFQSII.js} +4 -4
- package/dist/{chunk-OUN5KSHD.js → chunk-THCG3QCD.js} +1 -1
- package/dist/{chunk-BAKCRZAG.js → chunk-TM6742MU.js} +1 -1
- package/dist/{chunk-CTOL6AVF.js → chunk-UOBWYTW7.js} +5 -5
- package/dist/{chunk-IOLNBXZM.js → chunk-UYVKDU2W.js} +2 -2
- package/dist/{chunk-7NT6M6KM.js → chunk-W2SKBBWE.js} +2 -2
- package/dist/{chunk-3XFTRBIC.js → chunk-WFPCHFJI.js} +1 -1
- package/dist/{chunk-GF2U6E4D.js → chunk-WNVTTHBK.js} +2 -2
- package/dist/chunk-Z33QZKRG.js +46 -0
- package/dist/{chunk-YQHNOQ3N.js → chunk-ZCEVY7LM.js} +3 -3
- package/dist/errorMessage/src/ErrorMessage.css +11 -11
- package/dist/errorMessage/src/ErrorMessage.js +2 -2
- package/dist/errorMessage/src/index.css +11 -11
- package/dist/errorMessage/src/index.js +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/inputs/src/InputGroup.css +12 -12
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/PasswordField.css +540 -355
- package/dist/inputs/src/PasswordField.js +40 -32
- package/dist/inputs/src/SearchField.css +546 -361
- package/dist/inputs/src/SearchField.d.ts +2 -2
- package/dist/inputs/src/SearchField.js +40 -32
- package/dist/inputs/src/TextField.css +541 -356
- package/dist/inputs/src/TextField.js +40 -32
- package/dist/inputs/src/index.css +541 -356
- package/dist/inputs/src/index.js +40 -32
- package/dist/layout/src/Grid.d.ts +2 -22
- package/dist/layout/src/Grid.js +1 -1
- package/dist/layout/src/grid-helpers.d.ts +24 -0
- package/dist/layout/src/grid-helpers.js +2 -0
- package/dist/overlays/Popover/src/Popover.css +600 -415
- package/dist/overlays/Popover/src/Popover.js +39 -31
- package/dist/overlays/Popover/src/index.css +600 -415
- package/dist/overlays/Popover/src/index.js +39 -31
- package/dist/radio/src/Radio.css +32 -32
- package/dist/radio/src/Radio.js +4 -4
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +67 -67
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/index.css +67 -67
- package/dist/radio/src/index.js +7 -7
- package/dist/switch/src/Switch.css +27 -28
- package/dist/switch/src/Switch.js +4 -4
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +1 -1
- package/dist/switch/src/index.css +33 -34
- package/dist/switch/src/index.js +5 -5
- package/dist/tag/src/Tag.css +593 -408
- package/dist/tag/src/Tag.js +38 -30
- package/dist/tag/src/TagGroup.css +28 -28
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/index.css +593 -408
- package/dist/tag/src/index.js +38 -30
- package/dist/typography/Heading/src/Heading.css +593 -408
- package/dist/typography/Heading/src/Heading.js +38 -30
- package/dist/typography/Heading/src/index.css +593 -408
- package/dist/typography/Heading/src/index.js +38 -30
- package/dist/typography/Label/src/Label.css +9 -9
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +9 -9
- 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.js +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @hopper-ui/components
|
|
2
2
|
|
|
3
|
+
## 1.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [339c517]
|
|
8
|
+
- @hopper-ui/icons@2.4.0
|
|
9
|
+
|
|
10
|
+
## 1.0.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [1dc67e4]
|
|
15
|
+
- @hopper-ui/icons@2.3.0
|
|
16
|
+
|
|
3
17
|
## 1.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -0,0 +1,69 @@
|
|
|
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-RichIconAvatarImage___oV9WF {
|
|
3
|
+
--hop-RichIconAvatarImage-background-color: var(--hop-decorative-option7-surface);
|
|
4
|
+
--hop-RichIconAvatarImage-border-radius: var(--hop-shape-circle);
|
|
5
|
+
--hop-RichIconAvatarImage-icon-color: var(--hop-decorative-option7-icon);
|
|
6
|
+
--hop-RichIconAvatarImage-xs-size: 1rem;
|
|
7
|
+
--hop-RichIconAvatarImage-icon-xs-size: 1rem;
|
|
8
|
+
--hop-RichIconAvatarImage-sm-size: 1.5rem;
|
|
9
|
+
--hop-RichIconAvatarImage-icon-sm-size: 1.5rem;
|
|
10
|
+
--hop-RichIconAvatarImage-md-size: 2rem;
|
|
11
|
+
--hop-RichIconAvatarImage-icon-md-size: 2rem;
|
|
12
|
+
--hop-RichIconAvatarImage-lg-size: 3rem;
|
|
13
|
+
--hop-RichIconAvatarImage-icon-lg-size: 3rem;
|
|
14
|
+
--hop-RichIconAvatarImage-xl-size: 4rem;
|
|
15
|
+
--hop-RichIconAvatarImage-icon-xl-size: 4rem;
|
|
16
|
+
--hop-RichIconAvatarImage-2xl-size: 6rem;
|
|
17
|
+
--hop-RichIconAvatarImage-icon-2xl-size: 4rem;
|
|
18
|
+
--hop-RichIconAvatarImage-background-color-disabled: var(--hop-neutral-surface-disabled);
|
|
19
|
+
--hop-RichIconAvatarImage-icon-color-disabled: var(--hop-neutral-icon-disabled);
|
|
20
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color);
|
|
21
|
+
user-select: none;
|
|
22
|
+
position: relative;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
inline-size: var(--size, var(--hop-RichIconAvatarImage-md-size));
|
|
28
|
+
block-size: var(--size, var(--hop-RichIconAvatarImage-md-size));
|
|
29
|
+
color: var(--hop-RichIconAvatarImage-icon-color);
|
|
30
|
+
background-color: var(--background-color);
|
|
31
|
+
border-radius: var(--hop-RichIconAvatarImage-border-radius);
|
|
32
|
+
}
|
|
33
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___kdGVl {
|
|
34
|
+
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
|
+
}
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___4WUqP {
|
|
38
|
+
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
|
+
}
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___fsiew {
|
|
42
|
+
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
|
+
}
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___BJtzS {
|
|
46
|
+
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
|
+
}
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___MFhsm {
|
|
50
|
+
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
|
+
}
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___jFtFa {
|
|
54
|
+
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
|
+
}
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF[data-disabled] {
|
|
58
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
|
+
}
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3 {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: block;
|
|
63
|
+
inline-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
64
|
+
block-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
65
|
+
}
|
|
66
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3 {
|
|
67
|
+
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
68
|
+
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
69
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
3
|
+
import { BaseComponentProps } from '../../utils/src/types.js';
|
|
4
|
+
import { AvatarSize } from './Avatar.js';
|
|
5
|
+
import '@react-types/shared';
|
|
6
|
+
import 'react-aria-components';
|
|
7
|
+
import '../../typography/Text/src/Text.js';
|
|
8
|
+
import '../../utils/src/sizeAdapter.js';
|
|
9
|
+
|
|
10
|
+
declare const GlobalAnonymousAvatarCssSelector = "hop-AnonymousAvatar";
|
|
11
|
+
interface AnonymousAvatarProps extends StyledSystemProps, BaseComponentProps {
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the avatar is disabled.
|
|
14
|
+
*/
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The size of the avatar.
|
|
18
|
+
* * @default "md"
|
|
19
|
+
*/
|
|
20
|
+
size?: ResponsiveProp<AvatarSize>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* AnonymousAvatars are used to represent users who wish to remain anonymous.
|
|
24
|
+
*
|
|
25
|
+
* [View Documentation](TODO)
|
|
26
|
+
*/
|
|
27
|
+
declare const _AnonymousAvatar: react.ForwardRefExoticComponent<AnonymousAvatarProps & react.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export { _AnonymousAvatar as AnonymousAvatar, type AnonymousAvatarProps, GlobalAnonymousAvatarCssSelector };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { _AnonymousAvatar as AnonymousAvatar, GlobalAnonymousAvatarCssSelector } from '../../chunk-FYDLV5BM.js';
|
|
2
|
+
import '../../chunk-AES7QBQE.js';
|
|
3
|
+
import '../../chunk-CP4AWOFU.js';
|
|
4
|
+
import '../../chunk-KVDXQMWI.js';
|
|
5
|
+
import '../../chunk-M36KANKC.js';
|
|
6
|
+
import '../../chunk-JWW56J7M.js';
|
|
7
|
+
import '../../chunk-2P3A4VVY.js';
|
|
@@ -0,0 +1,265 @@
|
|
|
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-Text___xYoYb {
|
|
3
|
+
--hop-Text-xs-font-size: var(--hop-body-xs-font-size);
|
|
4
|
+
--hop-Text-xs-font-family: var(--hop-body-xs-font-family);
|
|
5
|
+
--hop-Text-xs-font-weight: var(--hop-body-xs-font-weight);
|
|
6
|
+
--hop-Text-xs-line-height: var(--hop-body-xs-line-height);
|
|
7
|
+
--hop-Text-sm-font-size: var(--hop-body-sm-font-size);
|
|
8
|
+
--hop-Text-sm-font-family: var(--hop-body-sm-font-family);
|
|
9
|
+
--hop-Text-sm-font-weight: var(--hop-body-sm-font-weight);
|
|
10
|
+
--hop-Text-sm-line-height: var(--hop-body-sm-line-height);
|
|
11
|
+
--hop-Text-md-font-size: var(--hop-body-md-font-size);
|
|
12
|
+
--hop-Text-md-font-family: var(--hop-body-md-font-family);
|
|
13
|
+
--hop-Text-md-font-weight: var(--hop-body-md-font-weight);
|
|
14
|
+
--hop-Text-md-line-height: var(--hop-body-md-line-height);
|
|
15
|
+
--hop-Text-lg-font-size: var(--hop-body-lg-font-size);
|
|
16
|
+
--hop-Text-lg-font-family: var(--hop-body-lg-font-family);
|
|
17
|
+
--hop-Text-lg-font-weight: var(--hop-body-lg-font-weight);
|
|
18
|
+
--hop-Text-lg-line-height: var(--hop-body-lg-line-height);
|
|
19
|
+
--hop-Text-xl-font-size: var(--hop-body-xl-font-size);
|
|
20
|
+
--hop-Text-xl-font-family: var(--hop-body-xl-font-family);
|
|
21
|
+
--hop-Text-xl-font-weight: var(--hop-body-xl-font-weight);
|
|
22
|
+
--hop-Text-xl-line-height: var(--hop-body-xl-line-height);
|
|
23
|
+
--hop-Text-2xl-font-size: var(--hop-body-2xl-font-size);
|
|
24
|
+
--hop-Text-2xl-font-family: var(--hop-body-2xl-font-family);
|
|
25
|
+
--hop-Text-2xl-font-weight: var(--hop-body-2xl-font-weight);
|
|
26
|
+
--hop-Text-2xl-line-height: var(--hop-body-2xl-line-height);
|
|
27
|
+
--hop-Text-inherit-size-font-size: inherit;
|
|
28
|
+
--hop-Text-inherit-size-font-family: inherit;
|
|
29
|
+
--hop-Text-inherit-size-font-weight: inherit;
|
|
30
|
+
--hop-Text-inherit-size-line-height: inherit;
|
|
31
|
+
}
|
|
32
|
+
:where(.Text-module__hop-Text___xYoYb) {
|
|
33
|
+
font-family: var(--font-family);
|
|
34
|
+
font-size: var(--font-size);
|
|
35
|
+
font-weight: var(--font-weight);
|
|
36
|
+
line-height: var(--line-height);
|
|
37
|
+
}
|
|
38
|
+
:where(.Text-module__hop-Text--xs___nPUGu) {
|
|
39
|
+
--font-size: var(--hop-Text-xs-font-size);
|
|
40
|
+
--font-family: var(--hop-Text-xs-font-family);
|
|
41
|
+
--font-weight: var(--hop-Text-xs-font-weight);
|
|
42
|
+
--line-height: var(--hop-Text-xs-line-height);
|
|
43
|
+
}
|
|
44
|
+
:where(.Text-module__hop-Text--sm___nMPq3) {
|
|
45
|
+
--font-size: var(--hop-Text-sm-font-size);
|
|
46
|
+
--font-family: var(--hop-Text-sm-font-family);
|
|
47
|
+
--font-weight: var(--hop-Text-sm-font-weight);
|
|
48
|
+
--line-height: var(--hop-Text-sm-line-height);
|
|
49
|
+
}
|
|
50
|
+
:where(.Text-module__hop-Text--md___HT-Wz) {
|
|
51
|
+
--font-size: var(--hop-Text-md-font-size);
|
|
52
|
+
--font-family: var(--hop-Text-md-font-family);
|
|
53
|
+
--font-weight: var(--hop-Text-md-font-weight);
|
|
54
|
+
--line-height: var(--hop-Text-md-line-height);
|
|
55
|
+
}
|
|
56
|
+
:where(.Text-module__hop-Text--lg___NL7tS) {
|
|
57
|
+
--font-size: var(--hop-Text-lg-font-size);
|
|
58
|
+
--font-family: var(--hop-Text-lg-font-family);
|
|
59
|
+
--font-weight: var(--hop-Text-lg-font-weight);
|
|
60
|
+
--line-height: var(--hop-Text-lg-line-height);
|
|
61
|
+
}
|
|
62
|
+
:where(.Text-module__hop-Text--xl___3aFN2) {
|
|
63
|
+
--font-size: var(--hop-Text-xl-font-size);
|
|
64
|
+
--font-family: var(--hop-Text-xl-font-family);
|
|
65
|
+
--font-weight: var(--hop-Text-xl-font-weight);
|
|
66
|
+
--line-height: var(--hop-Text-xl-line-height);
|
|
67
|
+
}
|
|
68
|
+
:where(.Text-module__hop-Text--2xl___bsEDq) {
|
|
69
|
+
--font-size: var(--hop-Text-2xl-font-size);
|
|
70
|
+
--font-family: var(--hop-Text-2xl-font-family);
|
|
71
|
+
--font-weight: var(--hop-Text-2xl-font-weight);
|
|
72
|
+
--line-height: var(--hop-Text-2xl-line-height);
|
|
73
|
+
}
|
|
74
|
+
:where(.Text-module__hop-Text--inherit___xKxgn) {
|
|
75
|
+
--font-size: var(--hop-Text-inherit-size-font-size);
|
|
76
|
+
--font-family: var(--hop-Text-inherit-size-font-family);
|
|
77
|
+
--font-weight: var(--hop-Text-inherit-size-font-weight);
|
|
78
|
+
--line-height: var(--hop-Text-inherit-size-line-height);
|
|
79
|
+
}
|
|
80
|
+
|
|
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-RichIconAvatarImage___oV9WF {
|
|
83
|
+
--hop-RichIconAvatarImage-background-color: var(--hop-decorative-option7-surface);
|
|
84
|
+
--hop-RichIconAvatarImage-border-radius: var(--hop-shape-circle);
|
|
85
|
+
--hop-RichIconAvatarImage-icon-color: var(--hop-decorative-option7-icon);
|
|
86
|
+
--hop-RichIconAvatarImage-xs-size: 1rem;
|
|
87
|
+
--hop-RichIconAvatarImage-icon-xs-size: 1rem;
|
|
88
|
+
--hop-RichIconAvatarImage-sm-size: 1.5rem;
|
|
89
|
+
--hop-RichIconAvatarImage-icon-sm-size: 1.5rem;
|
|
90
|
+
--hop-RichIconAvatarImage-md-size: 2rem;
|
|
91
|
+
--hop-RichIconAvatarImage-icon-md-size: 2rem;
|
|
92
|
+
--hop-RichIconAvatarImage-lg-size: 3rem;
|
|
93
|
+
--hop-RichIconAvatarImage-icon-lg-size: 3rem;
|
|
94
|
+
--hop-RichIconAvatarImage-xl-size: 4rem;
|
|
95
|
+
--hop-RichIconAvatarImage-icon-xl-size: 4rem;
|
|
96
|
+
--hop-RichIconAvatarImage-2xl-size: 6rem;
|
|
97
|
+
--hop-RichIconAvatarImage-icon-2xl-size: 4rem;
|
|
98
|
+
--hop-RichIconAvatarImage-background-color-disabled: var(--hop-neutral-surface-disabled);
|
|
99
|
+
--hop-RichIconAvatarImage-icon-color-disabled: var(--hop-neutral-icon-disabled);
|
|
100
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color);
|
|
101
|
+
user-select: none;
|
|
102
|
+
position: relative;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
inline-size: var(--size, var(--hop-RichIconAvatarImage-md-size));
|
|
108
|
+
block-size: var(--size, var(--hop-RichIconAvatarImage-md-size));
|
|
109
|
+
color: var(--hop-RichIconAvatarImage-icon-color);
|
|
110
|
+
background-color: var(--background-color);
|
|
111
|
+
border-radius: var(--hop-RichIconAvatarImage-border-radius);
|
|
112
|
+
}
|
|
113
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___kdGVl {
|
|
114
|
+
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
115
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
116
|
+
}
|
|
117
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___4WUqP {
|
|
118
|
+
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
119
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
120
|
+
}
|
|
121
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___fsiew {
|
|
122
|
+
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
123
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
124
|
+
}
|
|
125
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___BJtzS {
|
|
126
|
+
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
127
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
128
|
+
}
|
|
129
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___MFhsm {
|
|
130
|
+
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
131
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
132
|
+
}
|
|
133
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___jFtFa {
|
|
134
|
+
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
135
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
136
|
+
}
|
|
137
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF[data-disabled] {
|
|
138
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
139
|
+
}
|
|
140
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3 {
|
|
141
|
+
position: relative;
|
|
142
|
+
display: block;
|
|
143
|
+
inline-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
144
|
+
block-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
145
|
+
}
|
|
146
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3 {
|
|
147
|
+
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
148
|
+
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
149
|
+
}
|
|
150
|
+
|
|
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-Avatar___d9YZ9 {
|
|
153
|
+
--hop-Avatar-border-radius: var(--hop-shape-circle);
|
|
154
|
+
--hop-Avatar-mix-blend-mode: normal;
|
|
155
|
+
--hop-Avatar-decorative-1-background-color: var(--hop-decorative-option1-surface-strong);
|
|
156
|
+
--hop-Avatar-decorative-2-background-color: var(--hop-decorative-option2-surface-strong);
|
|
157
|
+
--hop-Avatar-decorative-3-background-color: var(--hop-decorative-option3-surface-strong);
|
|
158
|
+
--hop-Avatar-decorative-4-background-color: var(--hop-decorative-option4-surface-strong);
|
|
159
|
+
--hop-Avatar-decorative-5-background-color: var(--hop-decorative-option5-surface-strong);
|
|
160
|
+
--hop-Avatar-decorative-6-background-color: var(--hop-decorative-option6-surface-strong);
|
|
161
|
+
--hop-Avatar-decorative-7-background-color: var(--hop-decorative-option7-surface-strong);
|
|
162
|
+
--hop-Avatar-decorative-8-background-color: var(--hop-decorative-option8-surface-strong);
|
|
163
|
+
--hop-Avatar-decorative-9-background-color: var(--hop-decorative-option9-surface-strong);
|
|
164
|
+
--hop-Avatar-decorative-1-text-color: var(--hop-decorative-option1-text);
|
|
165
|
+
--hop-Avatar-decorative-2-text-color: var(--hop-decorative-option2-text);
|
|
166
|
+
--hop-Avatar-decorative-3-text-color: var(--hop-decorative-option3-text);
|
|
167
|
+
--hop-Avatar-decorative-4-text-color: var(--hop-decorative-option4-text);
|
|
168
|
+
--hop-Avatar-decorative-5-text-color: var(--hop-decorative-option5-text);
|
|
169
|
+
--hop-Avatar-decorative-6-text-color: var(--hop-decorative-option6-text);
|
|
170
|
+
--hop-Avatar-decorative-7-text-color: var(--hop-decorative-option7-text);
|
|
171
|
+
--hop-Avatar-decorative-8-text-color: var(--hop-decorative-option8-text);
|
|
172
|
+
--hop-Avatar-decorative-9-text-color: var(--hop-decorative-option9-text);
|
|
173
|
+
--hop-Avatar-xs-size: 1rem;
|
|
174
|
+
--hop-Avatar-sm-size: 1.5rem;
|
|
175
|
+
--hop-Avatar-md-size: 2rem;
|
|
176
|
+
--hop-Avatar-lg-size: 3rem;
|
|
177
|
+
--hop-Avatar-xl-size: 4rem;
|
|
178
|
+
--hop-Avatar-2xl-size: 6rem;
|
|
179
|
+
--hop-Avatar-background-color-disabled: var(--hop-neutral-surface-disabled);
|
|
180
|
+
--hop-Avatar-text-color-disabled: var(--hop-neutral-text-disabled);
|
|
181
|
+
--hop-Avatar-mix-blend-mode-disabled: luminosity;
|
|
182
|
+
--mix-blend-mode: var(--hop-Avatar-mix-blend-mode);
|
|
183
|
+
user-select: none;
|
|
184
|
+
position: relative;
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
display: flex;
|
|
187
|
+
flex: 0 0 auto;
|
|
188
|
+
align-items: center;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
box-sizing: border-box;
|
|
191
|
+
inline-size: var(--size, var(--hop-Avatar-md-size));
|
|
192
|
+
block-size: var(--size, var(--hop-Avatar-md-size));
|
|
193
|
+
color: var(--text-color, var(--hop-neutral-text));
|
|
194
|
+
background-color: var(--background-color, transparent);
|
|
195
|
+
border-radius: var(--hop-Avatar-border-radius);
|
|
196
|
+
}
|
|
197
|
+
.Avatar-module__hop-Avatar--xs___BWHEr {
|
|
198
|
+
--size: var(--hop-Avatar-xs-size);
|
|
199
|
+
}
|
|
200
|
+
.Avatar-module__hop-Avatar--sm___fNWQO {
|
|
201
|
+
--size: var(--hop-Avatar-sm-size);
|
|
202
|
+
}
|
|
203
|
+
.Avatar-module__hop-Avatar--md___-6GnY {
|
|
204
|
+
--size: var(--hop-Avatar-md-size);
|
|
205
|
+
}
|
|
206
|
+
.Avatar-module__hop-Avatar--lg___f8yyT {
|
|
207
|
+
--size: var(--hop-Avatar-lg-size);
|
|
208
|
+
}
|
|
209
|
+
.Avatar-module__hop-Avatar--xl___r5PUt {
|
|
210
|
+
--size: var(--hop-Avatar-xl-size);
|
|
211
|
+
}
|
|
212
|
+
.Avatar-module__hop-Avatar--2xl___CG0YD {
|
|
213
|
+
--size: var(--hop-Avatar-2xl-size);
|
|
214
|
+
}
|
|
215
|
+
.Avatar-module__hop-Avatar--decorative-option1___OIRSj {
|
|
216
|
+
--background-color: var(--hop-Avatar-decorative-1-background-color);
|
|
217
|
+
--text-color: var(--hop-Avatar-decorative-1-text-color);
|
|
218
|
+
}
|
|
219
|
+
.Avatar-module__hop-Avatar--decorative-option2___-uwSb {
|
|
220
|
+
--background-color: var(--hop-Avatar-decorative-2-background-color);
|
|
221
|
+
--text-color: var(--hop-Avatar-decorative-2-text-color);
|
|
222
|
+
}
|
|
223
|
+
.Avatar-module__hop-Avatar--decorative-option3___xhe3G {
|
|
224
|
+
--background-color: var(--hop-Avatar-decorative-3-background-color);
|
|
225
|
+
--text-color: var(--hop-Avatar-decorative-3-text-color);
|
|
226
|
+
}
|
|
227
|
+
.Avatar-module__hop-Avatar--decorative-option4___e38Gs {
|
|
228
|
+
--background-color: var(--hop-Avatar-decorative-4-background-color);
|
|
229
|
+
--text-color: var(--hop-Avatar-decorative-4-text-color);
|
|
230
|
+
}
|
|
231
|
+
.Avatar-module__hop-Avatar--decorative-option5___-GQzw {
|
|
232
|
+
--background-color: var(--hop-Avatar-decorative-5-background-color);
|
|
233
|
+
--text-color: var(--hop-Avatar-decorative-5-text-color);
|
|
234
|
+
}
|
|
235
|
+
.Avatar-module__hop-Avatar--decorative-option6___CeiJh {
|
|
236
|
+
--background-color: var(--hop-Avatar-decorative-6-background-color);
|
|
237
|
+
--text-color: var(--hop-Avatar-decorative-6-text-color);
|
|
238
|
+
}
|
|
239
|
+
.Avatar-module__hop-Avatar--decorative-option7___nvuXB {
|
|
240
|
+
--background-color: var(--hop-Avatar-decorative-7-background-color);
|
|
241
|
+
--text-color: var(--hop-Avatar-decorative-7-text-color);
|
|
242
|
+
}
|
|
243
|
+
.Avatar-module__hop-Avatar--decorative-option8___Q4Z9Z {
|
|
244
|
+
--background-color: var(--hop-Avatar-decorative-8-background-color);
|
|
245
|
+
--text-color: var(--hop-Avatar-decorative-8-text-color);
|
|
246
|
+
}
|
|
247
|
+
.Avatar-module__hop-Avatar--decorative-option9___TsOBZ {
|
|
248
|
+
--background-color: var(--hop-Avatar-decorative-9-background-color);
|
|
249
|
+
--text-color: var(--hop-Avatar-decorative-9-text-color);
|
|
250
|
+
}
|
|
251
|
+
.Avatar-module__hop-Avatar___d9YZ9[data-disabled] {
|
|
252
|
+
--background-color: var(--hop-Avatar-background-color-disabled);
|
|
253
|
+
--text-color: var(--hop-Avatar-text-color-disabled);
|
|
254
|
+
--mix-blend-mode: var(--hop-Avatar-mix-blend-mode-disabled);
|
|
255
|
+
isolation: isolate;
|
|
256
|
+
}
|
|
257
|
+
.Avatar-module__hop-Avatar__image___6YUZZ {
|
|
258
|
+
position: relative;
|
|
259
|
+
display: block;
|
|
260
|
+
box-sizing: border-box;
|
|
261
|
+
inline-size: 100%;
|
|
262
|
+
block-size: 100%;
|
|
263
|
+
object-fit: cover;
|
|
264
|
+
mix-blend-mode: var(--mix-blend-mode);
|
|
265
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLProps } from 'react';
|
|
3
|
+
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
4
|
+
import { TextProps } from '../../typography/Text/src/Text.js';
|
|
5
|
+
import { SizeAdapter } from '../../utils/src/sizeAdapter.js';
|
|
6
|
+
import { BaseComponentProps } from '../../utils/src/types.js';
|
|
7
|
+
import 'react-aria-components';
|
|
8
|
+
import '@react-types/shared';
|
|
9
|
+
|
|
10
|
+
declare const GlobalAvatarCssSelector = "hop-Avatar";
|
|
11
|
+
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
12
|
+
type AvatarImageBaseProps = HTMLProps<HTMLImageElement>;
|
|
13
|
+
interface AvatarProps extends StyledSystemProps, BaseComponentProps {
|
|
14
|
+
/**
|
|
15
|
+
* The src of the image to display if the image fails to load. If set to null, the initials will be displayed instead.
|
|
16
|
+
* * @default "BrokenImageRichIcon"
|
|
17
|
+
*/
|
|
18
|
+
fallbackSrc?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* Props to add to the img element when src is provided.
|
|
21
|
+
*/
|
|
22
|
+
imageProps?: AvatarImageBaseProps;
|
|
23
|
+
/**
|
|
24
|
+
* Whether or not the avatar is disabled.
|
|
25
|
+
*/
|
|
26
|
+
isDisabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The name of the Avatar. This will be used for the alt text of the image or the initials if no image is provided.
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* The size of the avatar.
|
|
33
|
+
* * @default "md"
|
|
34
|
+
*/
|
|
35
|
+
size?: ResponsiveProp<AvatarSize>;
|
|
36
|
+
/**
|
|
37
|
+
* The src of the image to display. If not provided, the initials will be displayed instead.
|
|
38
|
+
*/
|
|
39
|
+
src?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const AvatarToTextSizeAdapter: SizeAdapter<AvatarProps["size"], TextProps["size"]>;
|
|
42
|
+
interface AvatarInitialsProps {
|
|
43
|
+
/**
|
|
44
|
+
* The name of the Avatar. This will be used for the alt text of the image or the initials if no image is provided.
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
* The size of the avatar.
|
|
49
|
+
* * @default "md"
|
|
50
|
+
*/
|
|
51
|
+
size: ResponsiveProp<AvatarSize>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Avatars are used to show a thumbnail representation of an individual, team or group in the interface.
|
|
55
|
+
*
|
|
56
|
+
* [View Documentation](TODO)
|
|
57
|
+
*/
|
|
58
|
+
declare const _Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
|
|
60
|
+
export { _Avatar as Avatar, type AvatarInitialsProps, type AvatarProps, type AvatarSize, AvatarToTextSizeAdapter, GlobalAvatarCssSelector };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { _Avatar as Avatar, AvatarToTextSizeAdapter, GlobalAvatarCssSelector } from '../../chunk-OPFRM3JC.js';
|
|
2
|
+
import '../../chunk-7Q7VIED2.js';
|
|
3
|
+
import '../../chunk-HXI3MEEK.js';
|
|
4
|
+
import '../../chunk-X6SER3TZ.js';
|
|
5
|
+
import '../../chunk-AES7QBQE.js';
|
|
6
|
+
import '../../chunk-CP4AWOFU.js';
|
|
7
|
+
import '../../chunk-KVDXQMWI.js';
|
|
8
|
+
import '../../chunk-M36KANKC.js';
|
|
9
|
+
import '../../chunk-JWW56J7M.js';
|
|
10
|
+
import '../../chunk-NS3XVOQ7.js';
|
|
11
|
+
import '../../chunk-2P3A4VVY.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ContextValue } from 'react-aria-components';
|
|
3
|
+
import { AvatarProps } from './Avatar.js';
|
|
4
|
+
import '@hopper-ui/styled-system';
|
|
5
|
+
import '../../typography/Text/src/Text.js';
|
|
6
|
+
import '../../utils/src/sizeAdapter.js';
|
|
7
|
+
import '../../utils/src/types.js';
|
|
8
|
+
import '@react-types/shared';
|
|
9
|
+
|
|
10
|
+
declare const AvatarContext: react.Context<ContextValue<AvatarProps, HTMLDivElement>>;
|
|
11
|
+
|
|
12
|
+
export { AvatarContext };
|
|
@@ -0,0 +1,69 @@
|
|
|
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-RichIconAvatarImage___oV9WF {
|
|
3
|
+
--hop-RichIconAvatarImage-background-color: var(--hop-decorative-option7-surface);
|
|
4
|
+
--hop-RichIconAvatarImage-border-radius: var(--hop-shape-circle);
|
|
5
|
+
--hop-RichIconAvatarImage-icon-color: var(--hop-decorative-option7-icon);
|
|
6
|
+
--hop-RichIconAvatarImage-xs-size: 1rem;
|
|
7
|
+
--hop-RichIconAvatarImage-icon-xs-size: 1rem;
|
|
8
|
+
--hop-RichIconAvatarImage-sm-size: 1.5rem;
|
|
9
|
+
--hop-RichIconAvatarImage-icon-sm-size: 1.5rem;
|
|
10
|
+
--hop-RichIconAvatarImage-md-size: 2rem;
|
|
11
|
+
--hop-RichIconAvatarImage-icon-md-size: 2rem;
|
|
12
|
+
--hop-RichIconAvatarImage-lg-size: 3rem;
|
|
13
|
+
--hop-RichIconAvatarImage-icon-lg-size: 3rem;
|
|
14
|
+
--hop-RichIconAvatarImage-xl-size: 4rem;
|
|
15
|
+
--hop-RichIconAvatarImage-icon-xl-size: 4rem;
|
|
16
|
+
--hop-RichIconAvatarImage-2xl-size: 6rem;
|
|
17
|
+
--hop-RichIconAvatarImage-icon-2xl-size: 4rem;
|
|
18
|
+
--hop-RichIconAvatarImage-background-color-disabled: var(--hop-neutral-surface-disabled);
|
|
19
|
+
--hop-RichIconAvatarImage-icon-color-disabled: var(--hop-neutral-icon-disabled);
|
|
20
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color);
|
|
21
|
+
user-select: none;
|
|
22
|
+
position: relative;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
inline-size: var(--size, var(--hop-RichIconAvatarImage-md-size));
|
|
28
|
+
block-size: var(--size, var(--hop-RichIconAvatarImage-md-size));
|
|
29
|
+
color: var(--hop-RichIconAvatarImage-icon-color);
|
|
30
|
+
background-color: var(--background-color);
|
|
31
|
+
border-radius: var(--hop-RichIconAvatarImage-border-radius);
|
|
32
|
+
}
|
|
33
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___kdGVl {
|
|
34
|
+
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
|
+
}
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___4WUqP {
|
|
38
|
+
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
|
+
}
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___fsiew {
|
|
42
|
+
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
|
+
}
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___BJtzS {
|
|
46
|
+
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
|
+
}
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___MFhsm {
|
|
50
|
+
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
|
+
}
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___jFtFa {
|
|
54
|
+
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
|
+
}
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF[data-disabled] {
|
|
58
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
|
+
}
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3 {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: block;
|
|
63
|
+
inline-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
64
|
+
block-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
65
|
+
}
|
|
66
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3 {
|
|
67
|
+
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
68
|
+
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
69
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
3
|
+
import { BaseComponentProps } from '../../utils/src/types.js';
|
|
4
|
+
import { AvatarSize } from './Avatar.js';
|
|
5
|
+
import '@react-types/shared';
|
|
6
|
+
import 'react-aria-components';
|
|
7
|
+
import '../../typography/Text/src/Text.js';
|
|
8
|
+
import '../../utils/src/sizeAdapter.js';
|
|
9
|
+
|
|
10
|
+
declare const GlobalDeletedAvatarCssSelector = "hop-DeletedAvatar";
|
|
11
|
+
interface DeletedAvatarProps extends StyledSystemProps, BaseComponentProps {
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the avatar is disabled.
|
|
14
|
+
*/
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The size of the avatar.
|
|
18
|
+
* * @default "md"
|
|
19
|
+
*/
|
|
20
|
+
size?: ResponsiveProp<AvatarSize>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* DeletedAvatars are used to represent deleted users.
|
|
24
|
+
*
|
|
25
|
+
* [View Documentation](TODO)
|
|
26
|
+
*/
|
|
27
|
+
declare const _DeletedAvatar: react.ForwardRefExoticComponent<DeletedAvatarProps & react.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export { _DeletedAvatar as DeletedAvatar, type DeletedAvatarProps, GlobalDeletedAvatarCssSelector };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { _DeletedAvatar as DeletedAvatar, GlobalDeletedAvatarCssSelector } from '../../chunk-Z33QZKRG.js';
|
|
2
|
+
import '../../chunk-AES7QBQE.js';
|
|
3
|
+
import '../../chunk-CP4AWOFU.js';
|
|
4
|
+
import '../../chunk-KVDXQMWI.js';
|
|
5
|
+
import '../../chunk-M36KANKC.js';
|
|
6
|
+
import '../../chunk-JWW56J7M.js';
|
|
7
|
+
import '../../chunk-2P3A4VVY.js';
|
|
@@ -0,0 +1,69 @@
|
|
|
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-RichIconAvatarImage___oV9WF {
|
|
3
|
+
--hop-RichIconAvatarImage-background-color: var(--hop-decorative-option7-surface);
|
|
4
|
+
--hop-RichIconAvatarImage-border-radius: var(--hop-shape-circle);
|
|
5
|
+
--hop-RichIconAvatarImage-icon-color: var(--hop-decorative-option7-icon);
|
|
6
|
+
--hop-RichIconAvatarImage-xs-size: 1rem;
|
|
7
|
+
--hop-RichIconAvatarImage-icon-xs-size: 1rem;
|
|
8
|
+
--hop-RichIconAvatarImage-sm-size: 1.5rem;
|
|
9
|
+
--hop-RichIconAvatarImage-icon-sm-size: 1.5rem;
|
|
10
|
+
--hop-RichIconAvatarImage-md-size: 2rem;
|
|
11
|
+
--hop-RichIconAvatarImage-icon-md-size: 2rem;
|
|
12
|
+
--hop-RichIconAvatarImage-lg-size: 3rem;
|
|
13
|
+
--hop-RichIconAvatarImage-icon-lg-size: 3rem;
|
|
14
|
+
--hop-RichIconAvatarImage-xl-size: 4rem;
|
|
15
|
+
--hop-RichIconAvatarImage-icon-xl-size: 4rem;
|
|
16
|
+
--hop-RichIconAvatarImage-2xl-size: 6rem;
|
|
17
|
+
--hop-RichIconAvatarImage-icon-2xl-size: 4rem;
|
|
18
|
+
--hop-RichIconAvatarImage-background-color-disabled: var(--hop-neutral-surface-disabled);
|
|
19
|
+
--hop-RichIconAvatarImage-icon-color-disabled: var(--hop-neutral-icon-disabled);
|
|
20
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color);
|
|
21
|
+
user-select: none;
|
|
22
|
+
position: relative;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
inline-size: var(--size, var(--hop-RichIconAvatarImage-md-size));
|
|
28
|
+
block-size: var(--size, var(--hop-RichIconAvatarImage-md-size));
|
|
29
|
+
color: var(--hop-RichIconAvatarImage-icon-color);
|
|
30
|
+
background-color: var(--background-color);
|
|
31
|
+
border-radius: var(--hop-RichIconAvatarImage-border-radius);
|
|
32
|
+
}
|
|
33
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___kdGVl {
|
|
34
|
+
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
|
+
}
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___4WUqP {
|
|
38
|
+
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
|
+
}
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___fsiew {
|
|
42
|
+
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
|
+
}
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___BJtzS {
|
|
46
|
+
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
|
+
}
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___MFhsm {
|
|
50
|
+
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
|
+
}
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___jFtFa {
|
|
54
|
+
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
|
+
}
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF[data-disabled] {
|
|
58
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
|
+
}
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3 {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: block;
|
|
63
|
+
inline-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
64
|
+
block-size: var(--icon-size, var(--hop-RichIconAvatarImage-icon-md-size));
|
|
65
|
+
}
|
|
66
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3 {
|
|
67
|
+
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
68
|
+
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
69
|
+
}
|