@norges-domstoler/dds-components 14.0.0 → 14.1.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/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as CSS from 'csstype';
2
3
  import { Property, StandardProperties } from 'csstype';
3
4
  import * as styled_components from 'styled-components';
4
5
  import * as styled_components_dist_types from 'styled-components/dist/types';
@@ -2470,6 +2471,11 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
2470
2471
  setFocus?: Dispatch<SetStateAction<number>>;
2471
2472
  /** Indeksen til `<Tab />`. **OBS!** settes automatisk av forelder.*/
2472
2473
  index?: number;
2474
+ /**
2475
+ * Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
2476
+ * @default '1fr'
2477
+ */
2478
+ width?: CSS.Properties['width'];
2473
2479
  } & Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>>;
2474
2480
  declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick">, "className" | "id"> & {
2475
2481
  /**Spesifiserer om fanen er aktiv. */
@@ -2482,6 +2488,11 @@ declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttribute
2482
2488
  setFocus?: Dispatch<SetStateAction<number>> | undefined;
2483
2489
  /** Indeksen til `<Tab />`. **OBS!** settes automatisk av forelder.*/
2484
2490
  index?: number | undefined;
2491
+ /**
2492
+ * Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
2493
+ * @default '1fr'
2494
+ */
2495
+ width?: CSS.Properties['width'];
2485
2496
  } & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick"> & {
2486
2497
  children?: react.ReactNode;
2487
2498
  } & {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as CSS from 'csstype';
2
3
  import { Property, StandardProperties } from 'csstype';
3
4
  import * as styled_components from 'styled-components';
4
5
  import * as styled_components_dist_types from 'styled-components/dist/types';
@@ -2470,6 +2471,11 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
2470
2471
  setFocus?: Dispatch<SetStateAction<number>>;
2471
2472
  /** Indeksen til `<Tab />`. **OBS!** settes automatisk av forelder.*/
2472
2473
  index?: number;
2474
+ /**
2475
+ * Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
2476
+ * @default '1fr'
2477
+ */
2478
+ width?: CSS.Properties['width'];
2473
2479
  } & Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>>;
2474
2480
  declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick">, "className" | "id"> & {
2475
2481
  /**Spesifiserer om fanen er aktiv. */
@@ -2482,6 +2488,11 @@ declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttribute
2482
2488
  setFocus?: Dispatch<SetStateAction<number>> | undefined;
2483
2489
  /** Indeksen til `<Tab />`. **OBS!** settes automatisk av forelder.*/
2484
2490
  index?: number | undefined;
2491
+ /**
2492
+ * Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
2493
+ * @default '1fr'
2494
+ */
2495
+ width?: CSS.Properties['width'];
2485
2496
  } & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick"> & {
2486
2497
  children?: react.ReactNode;
2487
2498
  } & {