@kreftforeningen/web-react 1.0.31 → 1.0.32

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/main.cjs.js CHANGED
@@ -1633,7 +1633,7 @@ ${Object.entries(C_).map(([r,n])=>` ${n.css}: var(--kf-box-${r}-${e}, var(--k
1633
1633
  color: var(--kf-color-gray-900, #0f172a);
1634
1634
  }
1635
1635
 
1636
- @media (prefers-color-scheme: dark) {
1636
+ .dark {
1637
1637
  .kf-calendar {
1638
1638
  background: color-mix(
1639
1639
  in srgb,
@@ -2455,7 +2455,7 @@ ${r.map(([a,i])=>{const s=i.theme?.[n]||i.color;return s?` --kf-color-${a}: ${s
2455
2455
  color: var(--kf-color-gray-500, rgba(15, 23, 42, 0.6));
2456
2456
  }
2457
2457
 
2458
- @media (prefers-color-scheme: dark) {
2458
+ .dark {
2459
2459
  .kf-command-dialog__content {
2460
2460
  background: var(--kf-color-gray-950, #020617);
2461
2461
  color: var(--kf-color-gray-50, #f9fafb);
@@ -2764,7 +2764,7 @@ ${r.map(([a,i])=>{const s=i.theme?.[n]||i.color;return s?` --kf-color-${a}: ${s
2764
2764
  }
2765
2765
  }
2766
2766
 
2767
- @media (prefers-color-scheme: dark) {
2767
+ .dark {
2768
2768
  .kf-context-menu__content,
2769
2769
  .kf-context-menu__sub-content {
2770
2770
  background: var(--kf-color-gray-900, #020617);
@@ -3127,7 +3127,7 @@ ${r.map(([a,i])=>{const s=i.theme?.[n]||i.color;return s?` --kf-color-${a}: ${s
3127
3127
  color: var(--kf-color-gray-700, #374151);
3128
3128
  }
3129
3129
 
3130
- @media (prefers-color-scheme: dark) {
3130
+ .dark {
3131
3131
  .kf-drawer__overlay {
3132
3132
  background: color-mix(in srgb, #000000 70%, transparent);
3133
3133
  }
@@ -5321,7 +5321,7 @@ ${Object.entries(MP).map(([r,n])=>` ${n.css}: var(--kf-hstack-${r}-${e}, var(
5321
5321
  display: inline-flex;
5322
5322
  gap: calc(var(--kf-spacing, 0.25rem) * 2);
5323
5323
  align-items: center;
5324
- font-size: var(--kf-text-sm, 0.875rem);
5324
+ font-size: var(--kf-font-size-md, 1rem);
5325
5325
  line-height: var(--kf-text-sm--line-height, 1.4285714286);
5326
5326
  font-weight: 500;
5327
5327
  }
@@ -6437,39 +6437,37 @@ ${Object.entries(MP).map(([r,n])=>` ${n.css}: var(--kf-hstack-${r}-${e}, var(
6437
6437
  height: calc(var(--kf-spacing, 0.25rem) * 4);
6438
6438
  }
6439
6439
 
6440
- @media (prefers-color-scheme: dark) {
6441
- .kf-pagination__link {
6442
- color: var(--kf-color-gray-100, #e5e7eb);
6443
- }
6440
+ .dark .kf-pagination__link {
6441
+ color: var(--kf-color-gray-100, #e5e7eb);
6442
+ }
6444
6443
 
6445
- .kf-pagination__link[data-active="true"] {
6446
- border-color: var(--kf-color-blue-300, #93c5fd);
6447
- background: color-mix(
6448
- in srgb,
6449
- var(--kf-color-blue-300, #93c5fd) 18%,
6450
- transparent
6451
- );
6452
- color: var(--kf-color-blue-50, #eff6ff);
6453
- }
6444
+ .dark .kf-pagination__link[data-active="true"] {
6445
+ border-color: var(--kf-color-blue-300, #93c5fd);
6446
+ background: color-mix(
6447
+ in srgb,
6448
+ var(--kf-color-blue-300, #93c5fd) 18%,
6449
+ transparent
6450
+ );
6451
+ color: var(--kf-color-blue-50, #eff6ff);
6452
+ }
6454
6453
 
6455
- .kf-pagination__link:hover {
6456
- background: color-mix(
6457
- in srgb,
6458
- var(--kf-color-gray-700, #374151) 70%,
6459
- transparent
6460
- );
6461
- }
6454
+ .dark .kf-pagination__link:hover {
6455
+ background: color-mix(
6456
+ in srgb,
6457
+ var(--kf-color-gray-700, #374151) 70%,
6458
+ transparent
6459
+ );
6460
+ }
6462
6461
 
6463
- .kf-pagination__link:focus-visible {
6464
- border-color: var(--kf-color-blue-300, #93c5fd);
6465
- box-shadow:
6466
- 0 0 0 2px rgba(15, 23, 42, 1),
6467
- 0 0 0 4px var(--kf-color-blue-500, #3b82f6);
6468
- }
6462
+ .dark .kf-pagination__link:focus-visible {
6463
+ border-color: var(--kf-color-blue-300, #93c5fd);
6464
+ box-shadow:
6465
+ 0 0 0 2px rgba(15, 23, 42, 1),
6466
+ 0 0 0 4px var(--kf-color-blue-500, #3b82f6);
6467
+ }
6469
6468
 
6470
- .kf-pagination__ellipsis {
6471
- color: var(--kf-color-gray-400, #9ca3af);
6472
- }
6469
+ .dark .kf-pagination__ellipsis {
6470
+ color: var(--kf-color-gray-400, #9ca3af);
6473
6471
  }
6474
6472
  `;function Qee({className:e,...t}){return d.jsxs(d.Fragment,{children:[d.jsx(Zee,{}),d.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:M("kf-pagination",e),...t})]})}function Jee({className:e,...t}){return d.jsx("ul",{"data-slot":"pagination-content",className:M("kf-pagination__content",e),...t})}function ete({className:e,...t}){return d.jsx("li",{"data-slot":"pagination-item",className:M("kf-pagination__item",e),...t})}function nv({className:e,isActive:t,size:r="icon",...n}){return d.jsx("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,"data-size":r,className:M("kf-pagination__link",e),...n})}function tte({className:e,...t}){return d.jsxs(nv,{"aria-label":"Go to previous page",size:"default",className:e,...t,children:[d.jsx(jx,{className:"kf-pagination__icon","aria-hidden":"true",focusable:"false"}),d.jsx("span",{className:"kf-pagination__label",children:"Previous"})]})}function rte({className:e,...t}){return d.jsxs(nv,{"aria-label":"Go to next page",size:"default",className:e,...t,children:[d.jsx("span",{className:"kf-pagination__label",children:"Next"}),d.jsx(To,{className:"kf-pagination__icon","aria-hidden":"true",focusable:"false"})]})}function nte({className:e,...t}){return d.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:M("kf-pagination__ellipsis",e),...t,children:[d.jsx(Ax,{className:"kf-pagination__ellipsis-icon","aria-hidden":"true",focusable:"false"}),d.jsx("span",{children:"More pages"})]})}var Tu="Popover",[NO]=Ve(Tu,[Kr]),Ns=Kr(),[ote,Hn]=NO(Tu),TO=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Ns(t),c=m.useRef(null),[l,f]=m.useState(!1),[u,p]=We({prop:n,defaultProp:o??!1,onChange:a,caller:Tu});return d.jsx(Fa,{...s,children:d.jsx(ote,{scope:t,contentId:Re(),triggerRef:c,open:u,onOpenChange:p,onOpenToggle:m.useCallback(()=>p(g=>!g),[p]),hasCustomAnchor:l,onCustomAnchorAdd:m.useCallback(()=>f(!0),[]),onCustomAnchorRemove:m.useCallback(()=>f(!1),[]),modal:i,children:r})})};TO.displayName=Tu;var DO="PopoverAnchor",jO=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Hn(DO,r),a=Ns(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return m.useEffect(()=>(i(),()=>s()),[i,s]),d.jsx(za,{...a,...n,ref:t})});jO.displayName=DO;var AO="PopoverTrigger",IO=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Hn(AO,r),a=Ns(r),i=de(t,o.triggerRef),s=d.jsx(ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":zO(o.open),...n,ref:i,onClick:q(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:d.jsx(za,{asChild:!0,...a,children:s})});IO.displayName=AO;var ov="PopoverPortal",[ate,ite]=NO(ov,{forceMount:void 0}),RO=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Hn(ov,t);return d.jsx(ate,{scope:t,forceMount:r,children:d.jsx(Fe,{present:r||a.open,children:d.jsx(Do,{asChild:!0,container:o,children:n})})})};RO.displayName=ov;var ba="PopoverContent",$O=m.forwardRef((e,t)=>{const r=ite(ba,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Hn(ba,e.__scopePopover);return d.jsx(Fe,{present:n||a.open,children:a.modal?d.jsx(cte,{...o,ref:t}):d.jsx(lte,{...o,ref:t})})});$O.displayName=ba;var ste=ho("PopoverContent.RemoveScroll"),cte=m.forwardRef((e,t)=>{const r=Hn(ba,e.__scopePopover),n=m.useRef(null),o=de(t,n),a=m.useRef(!1);return m.useEffect(()=>{const i=n.current;if(i)return Pl(i)},[]),d.jsx(Vi,{as:ste,allowPinchZoom:!0,children:d.jsx(LO,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,i=>{i.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,l=s.button===2||c;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),lte=m.forwardRef((e,t)=>{const r=Hn(ba,e.__scopePopover),n=m.useRef(!1),o=m.useRef(!1);return d.jsx(LO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;r.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),LO=m.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:f,...u}=e,p=Hn(ba,r),g=Ns(r);return El(),d.jsx(Gi,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(jn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:d.jsx(ks,{"data-state":zO(p.open),role:"dialog",id:p.contentId,...g,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),FO="PopoverClose",ute=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Hn(FO,r);return d.jsx(ae.button,{type:"button",...n,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});ute.displayName=FO;var fte="PopoverArrow",dte=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ns(r);return d.jsx(ys,{...o,...n,ref:t})});dte.displayName=fte;function zO(e){return e?"open":"closed"}var pte=TO,mte=jO,gte=IO,hte=RO,vte=$O;const bte=ce.createGlobalStyle`
6475
6473
  .kf-popover__content {
@@ -8300,7 +8298,7 @@ Defaulting to \`null\`.`}var Ite=GO,Rte=UO;const $te=ce.createGlobalStyle`
8300
8298
  opacity: 0.5;
8301
8299
  }
8302
8300
 
8303
- @media (prefers-color-scheme: dark) {
8301
+ .dark {
8304
8302
  .kf-toggle {
8305
8303
  color: var(--kf-color-gray-100, #e5e7eb);
8306
8304
  }
package/dist/main.es.js CHANGED
@@ -7729,7 +7729,7 @@ const R3 = ue`
7729
7729
  color: var(--kf-color-gray-900, #0f172a);
7730
7730
  }
7731
7731
 
7732
- @media (prefers-color-scheme: dark) {
7732
+ .dark {
7733
7733
  .kf-calendar {
7734
7734
  background: color-mix(
7735
7735
  in srgb,
@@ -22714,7 +22714,7 @@ const WV = ue`
22714
22714
  color: var(--kf-color-gray-500, rgba(15, 23, 42, 0.6));
22715
22715
  }
22716
22716
 
22717
- @media (prefers-color-scheme: dark) {
22717
+ .dark {
22718
22718
  .kf-command-dialog__content {
22719
22719
  background: var(--kf-color-gray-950, #020617);
22720
22720
  color: var(--kf-color-gray-50, #f9fafb);
@@ -25663,7 +25663,7 @@ const pY = ue`
25663
25663
  }
25664
25664
  }
25665
25665
 
25666
- @media (prefers-color-scheme: dark) {
25666
+ .dark {
25667
25667
  .kf-context-menu__content,
25668
25668
  .kf-context-menu__sub-content {
25669
25669
  background: var(--kf-color-gray-900, #020617);
@@ -27386,7 +27386,7 @@ const Jn = {
27386
27386
  color: var(--kf-color-gray-700, #374151);
27387
27387
  }
27388
27388
 
27389
- @media (prefers-color-scheme: dark) {
27389
+ .dark {
27390
27390
  .kf-drawer__overlay {
27391
27391
  background: color-mix(in srgb, #000000 70%, transparent);
27392
27392
  }
@@ -31821,7 +31821,7 @@ const qP = ue`
31821
31821
  display: inline-flex;
31822
31822
  gap: calc(var(--kf-spacing, 0.25rem) * 2);
31823
31823
  align-items: center;
31824
- font-size: var(--kf-text-sm, 0.875rem);
31824
+ font-size: var(--kf-font-size-md, 1rem);
31825
31825
  line-height: var(--kf-text-sm--line-height, 1.4285714286);
31826
31826
  font-weight: 500;
31827
31827
  }
@@ -34504,39 +34504,37 @@ const vZ = ue`
34504
34504
  height: calc(var(--kf-spacing, 0.25rem) * 4);
34505
34505
  }
34506
34506
 
34507
- @media (prefers-color-scheme: dark) {
34508
- .kf-pagination__link {
34509
- color: var(--kf-color-gray-100, #e5e7eb);
34510
- }
34507
+ .dark .kf-pagination__link {
34508
+ color: var(--kf-color-gray-100, #e5e7eb);
34509
+ }
34511
34510
 
34512
- .kf-pagination__link[data-active="true"] {
34513
- border-color: var(--kf-color-blue-300, #93c5fd);
34514
- background: color-mix(
34515
- in srgb,
34516
- var(--kf-color-blue-300, #93c5fd) 18%,
34517
- transparent
34518
- );
34519
- color: var(--kf-color-blue-50, #eff6ff);
34520
- }
34511
+ .dark .kf-pagination__link[data-active="true"] {
34512
+ border-color: var(--kf-color-blue-300, #93c5fd);
34513
+ background: color-mix(
34514
+ in srgb,
34515
+ var(--kf-color-blue-300, #93c5fd) 18%,
34516
+ transparent
34517
+ );
34518
+ color: var(--kf-color-blue-50, #eff6ff);
34519
+ }
34521
34520
 
34522
- .kf-pagination__link:hover {
34523
- background: color-mix(
34524
- in srgb,
34525
- var(--kf-color-gray-700, #374151) 70%,
34526
- transparent
34527
- );
34528
- }
34521
+ .dark .kf-pagination__link:hover {
34522
+ background: color-mix(
34523
+ in srgb,
34524
+ var(--kf-color-gray-700, #374151) 70%,
34525
+ transparent
34526
+ );
34527
+ }
34529
34528
 
34530
- .kf-pagination__link:focus-visible {
34531
- border-color: var(--kf-color-blue-300, #93c5fd);
34532
- box-shadow:
34533
- 0 0 0 2px rgba(15, 23, 42, 1),
34534
- 0 0 0 4px var(--kf-color-blue-500, #3b82f6);
34535
- }
34529
+ .dark .kf-pagination__link:focus-visible {
34530
+ border-color: var(--kf-color-blue-300, #93c5fd);
34531
+ box-shadow:
34532
+ 0 0 0 2px rgba(15, 23, 42, 1),
34533
+ 0 0 0 4px var(--kf-color-blue-500, #3b82f6);
34534
+ }
34536
34535
 
34537
- .kf-pagination__ellipsis {
34538
- color: var(--kf-color-gray-400, #9ca3af);
34539
- }
34536
+ .dark .kf-pagination__ellipsis {
34537
+ color: var(--kf-color-gray-400, #9ca3af);
34540
34538
  }
34541
34539
  `;
34542
34540
  function aie({ className: e, ...t }) {
@@ -43046,7 +43044,7 @@ const zte = ue`
43046
43044
  opacity: 0.5;
43047
43045
  }
43048
43046
 
43049
- @media (prefers-color-scheme: dark) {
43047
+ .dark {
43050
43048
  .kf-toggle {
43051
43049
  color: var(--kf-color-gray-100, #e5e7eb);
43052
43050
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreftforeningen/web-react",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"