@obosbbl/grunnmuren-react 2.3.0 → 2.3.1
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/dist/index.d.mts +5 -3
- package/dist/index.mjs +7 -3
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -637,15 +637,17 @@ type CarouselProps = {
|
|
|
637
637
|
};
|
|
638
638
|
declare const Carousel: ({ className, children }: CarouselProps) => react_jsx_runtime.JSX.Element;
|
|
639
639
|
type CarouselItemsProps = {
|
|
640
|
-
/** Additional CSS className for the element. */
|
|
641
|
-
children: React.ReactNode;
|
|
642
640
|
/** The <CarouselItem/> components to be displayed within the carousel. */
|
|
641
|
+
children: React.ReactNode;
|
|
642
|
+
/** Additional CSS className for the element. */
|
|
643
643
|
className?: string;
|
|
644
644
|
};
|
|
645
645
|
declare const CarouselItems: ({ className, children }: CarouselItemsProps) => react_jsx_runtime.JSX.Element;
|
|
646
646
|
type CarouselItemProps = {
|
|
647
|
-
|
|
647
|
+
/** The component/components to display as the <CarouselItem/>. */
|
|
648
648
|
children: React.ReactNode;
|
|
649
|
+
/** Additional CSS className for the element. */
|
|
650
|
+
className?: string;
|
|
649
651
|
};
|
|
650
652
|
declare const CarouselItem: ({ className, children }: CarouselItemProps) => react_jsx_runtime.JSX.Element;
|
|
651
653
|
|
package/dist/index.mjs
CHANGED
|
@@ -402,6 +402,7 @@ function Button({ ref = null, ...props }) {
|
|
|
402
402
|
}) : _children;
|
|
403
403
|
return isLinkProps$1(restProps) ? /*#__PURE__*/ jsx(Link, {
|
|
404
404
|
...restProps,
|
|
405
|
+
routerOptions: restProps.routerOptions,
|
|
405
406
|
className: className,
|
|
406
407
|
ref: ref,
|
|
407
408
|
children: children
|
|
@@ -2046,12 +2047,15 @@ const variants = cva({
|
|
|
2046
2047
|
],
|
|
2047
2048
|
'full-bleed': [
|
|
2048
2049
|
oneColumnLayout,
|
|
2049
|
-
// Match the heights of the <Media> wrapper for the Media content (e.g. image, VideoLoop, video etc.)
|
|
2050
|
-
// biome-ignore lint/nursery/useSortedClasses: biome is unable to sort the custom classes for 3xl and 4xl breakpoints
|
|
2051
|
-
'*:data-[slot="media"]:*:h-70 sm:*:data-[slot="media"]:*:h-[25rem] md:*:data-[slot="media"]:*:h-[30rem] lg:*:data-[slot="media"]:*:h-[35rem] xl:*:data-[slot="media"]:*:h-[40rem] 2xl:*:data-[slot="media"]:*:h-[42rem] 3xl:*:data-[slot="media"]:*:h-[48rem] 4xl:*:data-[slot="media"]:*:h-[53rem]',
|
|
2052
2050
|
// Position the media and carousel content to fill the entire viewport width
|
|
2053
2051
|
'*:data-[slot="media"]:*:absolute *:data-[slot="media"]:*:left-0',
|
|
2054
2052
|
'*:data-[slot="carousel"]:*:absolute *:data-[slot="carousel"]:*:left-0',
|
|
2053
|
+
// Match the heights of the <Media> or <Carousel> wrapper for the Media content (e.g. image, VideoLoop, video etc.)
|
|
2054
|
+
// This is necessary due to the absolute positioning of the media and carousel containers in this variant
|
|
2055
|
+
// biome-ignore lint/nursery/useSortedClasses: biome is unable to sort the custom classes for 3xl and 4xl breakpoints
|
|
2056
|
+
'*:data-[slot="media"]:*:h-70 sm:*:data-[slot="media"]:*:h-[25rem] md:*:data-[slot="media"]:*:h-[30rem] lg:*:data-[slot="media"]:*:h-[35rem] xl:*:data-[slot="media"]:*:h-[40rem] 2xl:*:data-[slot="media"]:*:h-[42rem] 3xl:*:data-[slot="media"]:*:h-[48rem] 4xl:*:data-[slot="media"]:*:h-[53rem]',
|
|
2057
|
+
// biome-ignore lint/nursery/useSortedClasses: biome is unable to sort the custom classes for 3xl and 4xl breakpoints
|
|
2058
|
+
'*:data-[slot="carousel"]:h-70 sm:*:data-[slot="carousel"]:h-[25rem] md:*:data-[slot="carousel"]:h-[30rem] lg:*:data-[slot="carousel"]:h-[35rem] xl:*:data-[slot="carousel"]:h-[40rem] 2xl:*:data-[slot="carousel"]:h-[42rem] 3xl:*:data-[slot="carousel"]:h-[48rem] 4xl:*:data-[slot="carousel"]:h-[53rem]',
|
|
2055
2059
|
'**:data-[slot="carousel-controls"]:container **:data-[slot="carousel-controls"]:right-0 **:data-[slot="carousel-controls"]:bottom-4 **:data-[slot="carousel-controls"]:left-0 **:data-[slot="carousel-controls"]:justify-end',
|
|
2056
2060
|
// Override rounded corners of Carousel slots
|
|
2057
2061
|
'*:data-[slot="carousel"]:*:rounded-none'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obosbbl/grunnmuren-react",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Grunnmuren components in React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/code-obos/grunnmuren"
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@obosbbl/grunnmuren-icons-react": "^2.1.0",
|
|
22
|
-
"@react-aria/form": "^3.0.
|
|
23
|
-
"@react-aria/interactions": "^3.
|
|
24
|
-
"@react-aria/utils": "^3.
|
|
25
|
-
"@react-stately/form": "^3.1.
|
|
26
|
-
"@react-stately/utils": "^3.10.
|
|
22
|
+
"@react-aria/form": "^3.0.18",
|
|
23
|
+
"@react-aria/interactions": "^3.25.3",
|
|
24
|
+
"@react-aria/utils": "^3.29.1",
|
|
25
|
+
"@react-stately/form": "^3.1.5",
|
|
26
|
+
"@react-stately/utils": "^3.10.7",
|
|
27
27
|
"@types/node": "^22.0.0",
|
|
28
28
|
"cva": "^1.0.0-0",
|
|
29
|
-
"react-aria": "^3.
|
|
30
|
-
"react-aria-components": "^1.
|
|
31
|
-
"react-stately": "^3.
|
|
29
|
+
"react-aria": "^3.41.1",
|
|
30
|
+
"react-aria-components": "^1.10.1",
|
|
31
|
+
"react-stately": "^3.39.0",
|
|
32
32
|
"use-debounce": "^10.0.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|