@4alldigital/foundation-ui--core 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/ButtonDeprecated/Button.tsx +1 -1
- package/src/components/Card/types/CardBasic/CardBasic.tsx +1 -1
- package/src/components/Card/types/CardMedia/CardMedia.tsx +1 -1
- package/src/components/Cart/Cart.tsx +1 -1
- package/src/components/FullScreenVideoModal/FullScreenVideoModal.tsx +1 -1
- package/src/components/Screen/Screen.tsx +1 -1
- package/src/components/SubscriptionManager/SubscriptionManager.tsx +1 -1
- package/src/features/Search/views/SearchBox/SearchBox.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4alldigital/foundation-ui--core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Foundation UI Core Component Library (source distribution)",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
},
|
|
33
33
|
"author": "Joe Mewes",
|
|
34
34
|
"license": "MIT",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "991b789a0fa6a5b5e000ccc41c90b7af7ecfd06c"
|
|
36
36
|
}
|
|
@@ -29,7 +29,7 @@ const buttonVariants = cva(
|
|
|
29
29
|
|
|
30
30
|
// Outline is handled as compound variant
|
|
31
31
|
outline:
|
|
32
|
-
'border-primary bg-transparent text-body-text dark:text-body-text-dark hover:bg-
|
|
32
|
+
'border-primary bg-transparent text-body-text dark:text-body-text-dark hover:bg-primary/10 border-primary-300 dark:border-primary-400 hover:border-primary-400 dark:hover:border-primary-500',
|
|
33
33
|
},
|
|
34
34
|
size: {
|
|
35
35
|
sm: 'h-8 px-3 py-1 text-xs',
|
|
@@ -87,7 +87,7 @@ const Button = ({
|
|
|
87
87
|
{ 'text-white border-primary bg-primary hover:bg-primary-darker': variant === BTN_VARIANTS.PRIMARY },
|
|
88
88
|
{ 'text-white border-secondary bg-secondary hover:bg-secondary-darker': variant === BTN_VARIANTS.SECONDARY },
|
|
89
89
|
{ 'text-black border-tertiary bg-tertiary hover:bg-tertiary-darker': variant === BTN_VARIANTS.TERTIARY },
|
|
90
|
-
{ 'border-primary bg-transparent text-body-text dark:text-body-text-dark hover:bg-
|
|
90
|
+
{ 'border-primary bg-transparent text-body-text dark:text-body-text-dark hover:bg-primary/10': outline },
|
|
91
91
|
{ 'border-primary-300 dark:border-primary-400 hover:border-primary-400 dark:hover:border-primary-500': outline },
|
|
92
92
|
{
|
|
93
93
|
'px-0 text-body-text dark:text-body-text-dark border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert':
|
|
@@ -53,7 +53,7 @@ const CardBasic = ({
|
|
|
53
53
|
</div>
|
|
54
54
|
)}
|
|
55
55
|
{titleOverlay && title && (
|
|
56
|
-
<div className="absolute inset-0 w-full h-full z-10 flex items-center justify-center bg-black
|
|
56
|
+
<div className="absolute inset-0 w-full h-full z-10 flex items-center justify-center bg-black/30">
|
|
57
57
|
<Heading tag={HEADING_TAGS.H4} singleLine flush className='text-white'>
|
|
58
58
|
{title}
|
|
59
59
|
</Heading>
|
|
@@ -42,7 +42,7 @@ const CardMedia = ({
|
|
|
42
42
|
className={cx('absolute inset-0 object-cover group-hover:scale-110', animateClasses)}
|
|
43
43
|
/>
|
|
44
44
|
{accessRestriced && (
|
|
45
|
-
<div className="absolute top-0 left-0 right-0 bottom-0 bg-body-bg
|
|
45
|
+
<div className="absolute top-0 left-0 right-0 bottom-0 bg-body-bg/50 flex items-center justify-center">
|
|
46
46
|
<Copy bold transform={COPY_TRANSFORM.UPPERCASE}>
|
|
47
47
|
{T.UI.PURCHASE_TO_ACCESS}
|
|
48
48
|
</Copy>
|
|
@@ -82,7 +82,7 @@ const Cart = ({ testID, isCheckout }: Props) => {
|
|
|
82
82
|
className="w-full p-0"
|
|
83
83
|
onClick={() => context?.handleItemClick?.(item.uuid)}>
|
|
84
84
|
<div className="flex gap-2 w-full">
|
|
85
|
-
<div className="relative max-w-32 flex flex-1 overflow-hidden rounded h-
|
|
85
|
+
<div className="relative max-w-32 flex flex-1 overflow-hidden rounded h-12">
|
|
86
86
|
<Image
|
|
87
87
|
src={item.image}
|
|
88
88
|
alt="item image"
|
|
@@ -24,7 +24,7 @@ const FullScreenVideoModal = ({
|
|
|
24
24
|
isOpen={modalIsOpen}
|
|
25
25
|
onRequestClose={onCloseCallback}
|
|
26
26
|
className="absolute bg-none top-1/2 left-1/2 right-auto bottom-auto mr-[-50%] transform translate-x-[-50%] translate-y-[-50%] w-full h-full p-0"
|
|
27
|
-
overlayClassName="fixed top-0 left-0 right-0 bottom-0 bg-black
|
|
27
|
+
overlayClassName="fixed top-0 left-0 right-0 bottom-0 bg-black z-50"
|
|
28
28
|
ariaHideApp={ariaHideApp} // Only use in development, adjust for production use
|
|
29
29
|
data-testid={testID || 'FullScreenVideoModal'}>
|
|
30
30
|
<div className="h-full relative">
|
|
@@ -21,7 +21,7 @@ const Screen = ({
|
|
|
21
21
|
{showHeader && (
|
|
22
22
|
<Header
|
|
23
23
|
className={cx({
|
|
24
|
-
'absolute top-0 left-0 right-0 bg-
|
|
24
|
+
'absolute top-0 left-0 right-0 bg-header-bg/0 dark:bg-header-bg-dark/0 md:bg-header-bg/20 md:dark:bg-header-bg-dark/20 z-50':
|
|
25
25
|
fixedHeader,
|
|
26
26
|
})}
|
|
27
27
|
/>
|
|
@@ -355,7 +355,7 @@ const SubscriptionManager = ({
|
|
|
355
355
|
)}
|
|
356
356
|
</div>
|
|
357
357
|
{isLoading && (
|
|
358
|
-
<div className="absolute top-0 left-0 w-full h-full bg-body-bg
|
|
358
|
+
<div className="absolute top-0 left-0 w-full h-full bg-body-bg/50 flex items-center justify-center">
|
|
359
359
|
<Loader />
|
|
360
360
|
</div>
|
|
361
361
|
)}
|
|
@@ -17,7 +17,7 @@ function SearchBox({
|
|
|
17
17
|
return (
|
|
18
18
|
<div className={cx('m-0 md:px-48', className)}>
|
|
19
19
|
<form onSubmit={e => onSubmit(e)} className="flex items-center">
|
|
20
|
-
<div className="flex-1 bg-body-bg dark:bg-body-bg-dark
|
|
20
|
+
<div className="flex-1 bg-body-bg/80 dark:bg-body-bg-dark/80 rounded">
|
|
21
21
|
<TextInput
|
|
22
22
|
name="SearchBoxInput"
|
|
23
23
|
type={InputType.TEXT}
|