@hopper-ui/components 1.0.4 → 1.0.6
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/README.md +3 -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/{badge → Badge}/src/Badge.css +11 -11
- package/dist/{badge → Badge}/src/Badge.d.ts +1 -1
- package/dist/{badge → Badge}/src/Badge.js +4 -3
- package/dist/Badge/src/BadgeContext.js +2 -0
- package/dist/{badge → Badge}/src/index.css +11 -11
- package/dist/{badge → Badge}/src/index.js +4 -3
- package/dist/{chip → Chip}/src/Chip.css +34 -34
- package/dist/{chip → Chip}/src/Chip.js +6 -6
- package/dist/Chip/src/ChipContext.js +2 -0
- package/dist/{chip → Chip}/src/index.css +34 -34
- package/dist/{chip → Chip}/src/index.js +6 -6
- package/dist/Divider/src/Divider.css +32 -0
- package/dist/Divider/src/Divider.d.ts +15 -0
- package/dist/Divider/src/Divider.js +4 -0
- package/dist/Divider/src/DividerContext.d.ts +8 -0
- package/dist/Divider/src/DividerContext.js +2 -0
- package/dist/Divider/src/index.css +32 -0
- package/dist/Divider/src/index.d.ts +5 -0
- package/dist/Divider/src/index.js +4 -0
- package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.css +12 -12
- package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.js +5 -5
- package/dist/ErrorMessage/src/ErrorMessageContext.js +2 -0
- package/dist/{errorMessage → ErrorMessage}/src/index.css +12 -12
- package/dist/{errorMessage → ErrorMessage}/src/index.js +5 -5
- package/dist/Header/src/Header.d.ts +17 -0
- package/dist/Header/src/Header.js +3 -0
- package/dist/Header/src/HeaderContext.d.ts +10 -0
- package/dist/Header/src/HeaderContext.js +2 -0
- package/dist/Header/src/index.d.ts +7 -0
- package/dist/Header/src/index.js +3 -0
- package/dist/{helperMessage → HelperMessage}/src/HelperMessage.css +12 -12
- package/dist/{helperMessage → HelperMessage}/src/HelperMessage.js +5 -5
- package/dist/HelperMessage/src/HelperMessageContext.js +2 -0
- package/dist/{helperMessage → HelperMessage}/src/index.css +12 -12
- package/dist/{helperMessage → HelperMessage}/src/index.js +5 -5
- package/dist/HopperProvider/src/HopperProvider.d.ts +1 -1
- package/dist/HopperProvider/src/HopperProvider.js +1 -1
- package/dist/HopperProvider/src/index.js +1 -1
- 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 +7 -7
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +7 -7
- package/dist/ListBox/src/ListBox.css +1434 -0
- package/dist/ListBox/src/ListBox.d.ts +48 -0
- package/dist/ListBox/src/ListBox.js +34 -0
- package/dist/ListBox/src/ListBoxContext.d.ts +10 -0
- package/dist/ListBox/src/ListBoxContext.js +2 -0
- package/dist/ListBox/src/ListBoxItem.css +1297 -0
- package/dist/ListBox/src/ListBoxItem.d.ts +39 -0
- package/dist/ListBox/src/ListBoxItem.js +27 -0
- package/dist/ListBox/src/ListBoxItemContext.d.ts +9 -0
- package/dist/ListBox/src/ListBoxItemContext.js +2 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.css +56 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +23 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.js +4 -0
- package/dist/ListBox/src/ListBoxItemSkeletonContext.d.ts +10 -0
- package/dist/ListBox/src/ListBoxItemSkeletonContext.js +2 -0
- package/dist/ListBox/src/index.css +1434 -0
- package/dist/ListBox/src/index.d.ts +8 -0
- package/dist/ListBox/src/index.js +34 -0
- package/dist/ListBox/src/useLoadOnScroll.d.ts +16 -0
- package/dist/ListBox/src/useLoadOnScroll.js +2 -0
- package/dist/Section/src/Section.d.ts +19 -0
- package/dist/Section/src/Section.js +3 -0
- package/dist/Section/src/SectionContext.d.ts +9 -0
- package/dist/Section/src/SectionContext.js +2 -0
- package/dist/Section/src/index.d.ts +6 -0
- package/dist/Section/src/index.js +3 -0
- package/dist/Spinner/src/Spinner.css +19 -19
- 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 +103 -103
- package/dist/buttons/src/Button.d.ts +2 -2
- package/dist/buttons/src/Button.js +12 -12
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +3 -3
- package/dist/buttons/src/ClearButton.css +12 -12
- package/dist/buttons/src/ClearButton.js +4 -4
- package/dist/buttons/src/EmbeddedButton.css +12 -12
- package/dist/buttons/src/EmbeddedButton.js +2 -2
- package/dist/buttons/src/index.css +126 -126
- package/dist/buttons/src/index.js +16 -16
- package/dist/checkbox/src/Checkbox.css +81 -96
- package/dist/checkbox/src/Checkbox.d.ts +3 -1
- package/dist/checkbox/src/Checkbox.js +6 -6
- package/dist/checkbox/src/CheckboxContext.d.ts +2 -0
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +2 -2
- package/dist/checkbox/src/CheckboxGroup.css +118 -133
- package/dist/checkbox/src/CheckboxGroup.js +4 -4
- package/dist/checkbox/src/index.css +118 -133
- package/dist/checkbox/src/index.js +10 -10
- package/dist/{chunk-BGESEKEN.js → chunk-2XUHTPCX.js} +13 -7
- package/dist/{chunk-FGDSWA7S.js → chunk-37NW34QM.js} +5 -5
- package/dist/{chunk-F7HR3VI4.js → chunk-3A6TTZAA.js} +2 -2
- package/dist/{chunk-LSVXKVG4.js → chunk-3LH2JHUO.js} +4 -4
- package/dist/{chunk-ZAJJD5FY.js → chunk-4JAV3FIH.js} +6 -6
- package/dist/chunk-4TXFHYHL.js +52 -0
- package/dist/{chunk-OMBQ3J4O.js → chunk-53FHDOG7.js} +13 -7
- package/dist/chunk-5H5AZJPQ.js +7 -0
- package/dist/{chunk-WTKIUAHI.js → chunk-632B5YBQ.js} +1 -1
- package/dist/{chunk-XSASR6CK.js → chunk-6QMIRVLY.js} +2 -2
- package/dist/chunk-7JOGKC3W.js +7 -0
- package/dist/chunk-AES7QBQE.js +7 -0
- package/dist/chunk-BC5A7RHI.js +1260 -0
- package/dist/{chunk-HDYG2F3D.js → chunk-BKC74M6Y.js} +3 -3
- package/dist/{chunk-ZSFJVMJN.js → chunk-CQDLZ42T.js} +1 -1
- package/dist/chunk-E4ALW4MZ.js +250 -0
- package/dist/chunk-E4WFKXW4.js +161 -0
- package/dist/{chunk-PEPKE5SW.js → chunk-F2URSFJA.js} +5 -5
- package/dist/{chunk-ACVMW6YD.js → chunk-FAE27DLF.js} +1 -1
- package/dist/chunk-FYIHMKHI.js +7 -0
- package/dist/{chunk-Y7XWWUMU.js → chunk-G242LPQE.js} +2 -2
- package/dist/chunk-GFHBDUJD.js +17 -0
- package/dist/{chunk-2CKDJG6R.js → chunk-HR25MLRP.js} +1 -1
- package/dist/{chunk-ESVVLTEN.js → chunk-HZKFQ33E.js} +1 -1
- package/dist/chunk-I4VPBQI7.js +7 -0
- package/dist/chunk-ITQK6JTD.js +81 -0
- package/dist/chunk-J33IFG4U.js +46 -0
- package/dist/chunk-J53HGLCT.js +49 -0
- package/dist/{chunk-PDYU6DNF.js → chunk-JRDN364E.js} +5 -5
- package/dist/chunk-JTNMFPM4.js +41 -0
- package/dist/chunk-JUMJ6A3K.js +46 -0
- package/dist/chunk-JWW56J7M.js +7 -0
- package/dist/{chunk-BCHUEONM.js → chunk-K4ZGI7DJ.js} +1 -1
- package/dist/chunk-L5A2UTQV.js +43 -0
- package/dist/{chunk-6MSYEF4W.js → chunk-MED2BIDV.js} +2 -2
- package/dist/{chunk-QJBQRYJS.js → chunk-MVRI6GLQ.js} +3 -3
- package/dist/{chunk-Z3ID4UEE.js → chunk-N77LTZ4U.js} +3 -15
- package/dist/{chunk-ANVMQBBG.js → chunk-NMKBUGSO.js} +12 -1
- package/dist/chunk-NS3XVOQ7.js +53 -0
- package/dist/chunk-O5PTD6IN.js +41 -0
- package/dist/{chunk-5GRWAXTT.js → chunk-OHB5QR5P.js} +2 -2
- package/dist/chunk-OKZYR4RF.js +7 -0
- package/dist/{chunk-GBABMUAI.js → chunk-P5CWOV3L.js} +3 -3
- package/dist/{chunk-RCFB4SN4.js → chunk-QBCCF2C2.js} +6 -6
- package/dist/chunk-RA7PM75O.js +142 -0
- package/dist/{chunk-TSXPLL55.js → chunk-RCX5B3S3.js} +4 -4
- package/dist/{chunk-WGDP4ECF.js → chunk-RG4JKE4N.js} +3 -3
- package/dist/{chunk-LRXYIR2A.js → chunk-SOSHKMNI.js} +6 -5
- package/dist/chunk-UIEP5BA5.js +7 -0
- package/dist/{chunk-DZTMUFVC.js → chunk-V5GOY6TV.js} +2 -2
- package/dist/{chunk-Y3L6TPP3.js → chunk-XGKPMLYD.js} +8 -8
- package/dist/{chunk-N745TDH5.js → chunk-XRC7XE6B.js} +2 -2
- package/dist/chunk-Y2POLIXK.js +7 -0
- package/dist/{chunk-H6CDFWVR.js → chunk-ZOTVZM6F.js} +6 -2
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/inputs/src/InputGroup.css +12 -12
- package/dist/inputs/src/InputGroup.js +2 -2
- package/dist/inputs/src/PasswordField.css +1340 -570
- package/dist/inputs/src/PasswordField.js +80 -164
- package/dist/inputs/src/SearchField.css +1325 -576
- package/dist/inputs/src/SearchField.d.ts +2 -2
- package/dist/inputs/src/SearchField.js +80 -164
- package/dist/inputs/src/TextField.css +1337 -571
- package/dist/inputs/src/TextField.js +79 -56
- package/dist/inputs/src/index.css +1237 -471
- package/dist/inputs/src/index.d.ts +4 -0
- package/dist/inputs/src/index.js +79 -56
- 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 +1480 -639
- package/dist/overlays/Popover/src/Popover.d.ts +5 -6
- package/dist/overlays/Popover/src/Popover.js +80 -54
- package/dist/overlays/Popover/src/PopoverContext.d.ts +1 -2
- package/dist/overlays/Popover/src/PopoverTrigger.d.ts +8 -0
- package/dist/overlays/Popover/src/PopoverTrigger.js +2 -0
- package/dist/overlays/Popover/src/index.css +1480 -639
- package/dist/overlays/Popover/src/index.d.ts +3 -2
- package/dist/overlays/Popover/src/index.js +80 -54
- package/dist/radio/src/Radio.css +69 -81
- package/dist/radio/src/Radio.d.ts +3 -1
- package/dist/radio/src/Radio.js +6 -6
- package/dist/radio/src/RadioContext.d.ts +2 -0
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +4 -4
- package/dist/radio/src/RadioGroup.css +106 -118
- package/dist/radio/src/RadioGroup.js +5 -5
- package/dist/radio/src/index.css +106 -118
- package/dist/radio/src/index.js +11 -11
- package/dist/switch/src/Switch.css +27 -28
- package/dist/switch/src/Switch.js +6 -6
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +33 -34
- package/dist/switch/src/index.js +7 -7
- package/dist/tag/src/Tag.css +1550 -633
- package/dist/tag/src/Tag.js +80 -52
- package/dist/tag/src/TagGroup.css +30 -30
- package/dist/tag/src/TagGroup.js +5 -5
- package/dist/tag/src/index.css +1550 -633
- package/dist/tag/src/index.js +80 -52
- package/dist/typography/Heading/src/Heading.css +1439 -522
- package/dist/typography/Heading/src/Heading.js +80 -52
- package/dist/typography/Heading/src/index.css +1439 -522
- package/dist/typography/Heading/src/index.js +80 -52
- 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 +3 -3
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +3 -3
- package/dist/utils/src/index.d.ts +1 -1
- package/dist/utils/src/index.js +3 -3
- package/dist/utils/src/types.d.ts +16 -1
- package/package.json +5 -4
- package/dist/badge/src/BadgeContext.js +0 -2
- package/dist/chip/src/ChipContext.js +0 -2
- package/dist/chunk-CPWTHZGJ.js +0 -156
- package/dist/chunk-LJXTJRSB.js +0 -1
- package/dist/chunk-SWMFTL46.js +0 -373
- package/dist/chunk-TR7YX3IZ.js +0 -96
- package/dist/errorMessage/src/ErrorMessageContext.js +0 -2
- package/dist/helperMessage/src/HelperMessageContext.js +0 -2
- /package/dist/{badge → Badge}/src/BadgeContext.d.ts +0 -0
- /package/dist/{badge → Badge}/src/index.d.ts +0 -0
- /package/dist/{chip → Chip}/src/Chip.d.ts +0 -0
- /package/dist/{chip → Chip}/src/ChipContext.d.ts +0 -0
- /package/dist/{chip → Chip}/src/index.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/ErrorMessageContext.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/index.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/HelperMessage.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/HelperMessageContext.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/index.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @hopper-ui/components
|
|
2
2
|
|
|
3
|
+
## 1.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9cf3058: pre-release of the components
|
|
8
|
+
|
|
9
|
+
## 1.0.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [339c517]
|
|
14
|
+
- @hopper-ui/icons@2.4.0
|
|
15
|
+
|
|
3
16
|
## 1.0.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# @hopper-ui/components
|
|
2
2
|
|
|
3
|
+
> [!IMPORTANT]
|
|
4
|
+
> Key information: This version of the package is in pre-release; it is not recommended for production use.
|
|
5
|
+
|
|
3
6
|
Hopper is a design system developed by Workleap to help create the best experience for our customers and drive consistency between all our web apps.
|
|
4
7
|
|
|
5
8
|
[](../../LICENSE)
|
|
@@ -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___R2v-y {
|
|
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___r7PMb {
|
|
34
|
+
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
|
+
}
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___nZFlr {
|
|
38
|
+
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
|
+
}
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___mkcIx {
|
|
42
|
+
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
|
+
}
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___TifOU {
|
|
46
|
+
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
|
+
}
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___xs3Zv {
|
|
50
|
+
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
|
+
}
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___l0TTX {
|
|
54
|
+
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
|
+
}
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___R2v-y[data-disabled] {
|
|
58
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
|
+
}
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___6FWkl {
|
|
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___R2v-y[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___6FWkl {
|
|
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-JUMJ6A3K.js';
|
|
2
|
+
import '../../chunk-AES7QBQE.js';
|
|
3
|
+
import '../../chunk-ITQK6JTD.js';
|
|
4
|
+
import '../../chunk-M36KANKC.js';
|
|
5
|
+
import '../../chunk-KVDXQMWI.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___B7ZPi {
|
|
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___B7ZPi) {
|
|
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___2lyVp) {
|
|
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___ZJw0q) {
|
|
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___JVXXA) {
|
|
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___cL0LO) {
|
|
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___KLn7g) {
|
|
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___gb6mt) {
|
|
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___-UFCW) {
|
|
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___R2v-y {
|
|
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___r7PMb {
|
|
114
|
+
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
115
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
116
|
+
}
|
|
117
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___nZFlr {
|
|
118
|
+
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
119
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
120
|
+
}
|
|
121
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___mkcIx {
|
|
122
|
+
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
123
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
124
|
+
}
|
|
125
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___TifOU {
|
|
126
|
+
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
127
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
128
|
+
}
|
|
129
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___xs3Zv {
|
|
130
|
+
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
131
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
132
|
+
}
|
|
133
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___l0TTX {
|
|
134
|
+
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
135
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
136
|
+
}
|
|
137
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___R2v-y[data-disabled] {
|
|
138
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
139
|
+
}
|
|
140
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___6FWkl {
|
|
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___R2v-y[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___6FWkl {
|
|
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___8RZO3 {
|
|
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___ynFuF {
|
|
198
|
+
--size: var(--hop-Avatar-xs-size);
|
|
199
|
+
}
|
|
200
|
+
.Avatar-module__hop-Avatar--sm___3oY2t {
|
|
201
|
+
--size: var(--hop-Avatar-sm-size);
|
|
202
|
+
}
|
|
203
|
+
.Avatar-module__hop-Avatar--md___6Gv9Q {
|
|
204
|
+
--size: var(--hop-Avatar-md-size);
|
|
205
|
+
}
|
|
206
|
+
.Avatar-module__hop-Avatar--lg___S6Ehu {
|
|
207
|
+
--size: var(--hop-Avatar-lg-size);
|
|
208
|
+
}
|
|
209
|
+
.Avatar-module__hop-Avatar--xl___1CYyi {
|
|
210
|
+
--size: var(--hop-Avatar-xl-size);
|
|
211
|
+
}
|
|
212
|
+
.Avatar-module__hop-Avatar--2xl___u7E0y {
|
|
213
|
+
--size: var(--hop-Avatar-2xl-size);
|
|
214
|
+
}
|
|
215
|
+
.Avatar-module__hop-Avatar--decorative-option1___ULBn2 {
|
|
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___J4qwW {
|
|
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___yKw7L {
|
|
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___KS3Oe {
|
|
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___lTcxY {
|
|
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___vuJcI {
|
|
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___SBK4z {
|
|
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___smE79 {
|
|
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___vvtuE {
|
|
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___8RZO3[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___M4hSZ {
|
|
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-E4WFKXW4.js';
|
|
2
|
+
import '../../chunk-RG4JKE4N.js';
|
|
3
|
+
import '../../chunk-X6SER3TZ.js';
|
|
4
|
+
import '../../chunk-HXI3MEEK.js';
|
|
5
|
+
import '../../chunk-AES7QBQE.js';
|
|
6
|
+
import '../../chunk-ITQK6JTD.js';
|
|
7
|
+
import '../../chunk-M36KANKC.js';
|
|
8
|
+
import '../../chunk-KVDXQMWI.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___R2v-y {
|
|
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___r7PMb {
|
|
34
|
+
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
|
+
}
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___nZFlr {
|
|
38
|
+
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
|
+
}
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___mkcIx {
|
|
42
|
+
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
|
+
}
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___TifOU {
|
|
46
|
+
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
|
+
}
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___xs3Zv {
|
|
50
|
+
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
|
+
}
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___l0TTX {
|
|
54
|
+
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
|
+
}
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___R2v-y[data-disabled] {
|
|
58
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
|
+
}
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___6FWkl {
|
|
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___R2v-y[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___6FWkl {
|
|
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-J33IFG4U.js';
|
|
2
|
+
import '../../chunk-AES7QBQE.js';
|
|
3
|
+
import '../../chunk-ITQK6JTD.js';
|
|
4
|
+
import '../../chunk-M36KANKC.js';
|
|
5
|
+
import '../../chunk-KVDXQMWI.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___R2v-y {
|
|
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___r7PMb {
|
|
34
|
+
--size: var(--hop-RichIconAvatarImage-xs-size);
|
|
35
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xs-size);
|
|
36
|
+
}
|
|
37
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___nZFlr {
|
|
38
|
+
--size: var(--hop-RichIconAvatarImage-sm-size);
|
|
39
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-sm-size);
|
|
40
|
+
}
|
|
41
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--md___mkcIx {
|
|
42
|
+
--size: var(--hop-RichIconAvatarImage-md-size);
|
|
43
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-md-size);
|
|
44
|
+
}
|
|
45
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___TifOU {
|
|
46
|
+
--size: var(--hop-RichIconAvatarImage-lg-size);
|
|
47
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-lg-size);
|
|
48
|
+
}
|
|
49
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___xs3Zv {
|
|
50
|
+
--size: var(--hop-RichIconAvatarImage-xl-size);
|
|
51
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-xl-size);
|
|
52
|
+
}
|
|
53
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___l0TTX {
|
|
54
|
+
--size: var(--hop-RichIconAvatarImage-2xl-size);
|
|
55
|
+
--icon-size: var(--hop-RichIconAvatarImage-icon-2xl-size);
|
|
56
|
+
}
|
|
57
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage___R2v-y[data-disabled] {
|
|
58
|
+
--background-color: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
59
|
+
}
|
|
60
|
+
.RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___6FWkl {
|
|
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___R2v-y[data-disabled] .RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___6FWkl {
|
|
67
|
+
--hop-RichIcon-placeholder-background: var(--hop-RichIconAvatarImage-background-color-disabled);
|
|
68
|
+
--hop-RichIcon-placeholder-shadow: var(--hop-RichIconAvatarImage-icon-color-disabled);
|
|
69
|
+
}
|