@obosbbl/grunnmuren-react 3.4.1 → 3.4.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -4
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1504,16 +1504,15 @@ const CarouselButton = ({ className, isIconOnly = true, slot, ...rest })=>{
1504
1504
  };
1505
1505
  const CarouselItem = ({ className, children, ...rest })=>{
1506
1506
  return /*#__PURE__*/ jsx("div", {
1507
- className: cx(className, 'min-w-0 shrink-0 grow-0'),
1508
- "data-slot": "carousel-item",
1509
1507
  ...rest,
1508
+ className: cx(className, 'min-w-0 shrink-0 grow-0', '*:data-[slot=media]:aspect-square', '*:data-[slot=media]:max-sm:data-[fit="contain"]:*:object-cover', '*:data-[slot=media]:sm:aspect-4/3', '*:data-[slot=media]:md:aspect-3/2', '*:data-[slot=media]:lg:aspect-2/1', '*:data-[slot=media]:*:h-full', '*:data-[slot=media]:*:w-full', '*:data-[slot=media]:data-[fit="contain"]:bg-blue-dark'),
1509
+ "data-slot": "carousel-item",
1510
1510
  children: /*#__PURE__*/ jsx(Provider, {
1511
1511
  values: [
1512
1512
  [
1513
1513
  MediaContext,
1514
1514
  {
1515
- fit: 'cover',
1516
- className: cx('data-[fit="contain"]:bg-blue-dark', '*:h-full *:w-full', 'aspect-square max-sm:data-[fit="contain"]:*:object-cover sm:aspect-4/3 md:aspect-3/2 lg:aspect-2/1')
1515
+ fit: 'cover'
1517
1516
  }
1518
1517
  ]
1519
1518
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-react",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "Grunnmuren components in React",
5
5
  "repository": {
6
6
  "url": "https://github.com/code-obos/grunnmuren"
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@obosbbl/grunnmuren-icons-react": "^2.1.0",
21
+ "@obosbbl/grunnmuren-icons-react": "^2.1.2",
22
22
  "@react-aria/form": "^3.0.18",
23
23
  "@react-aria/interactions": "^3.25.3",
24
24
  "@react-aria/utils": "^3.29.1",