@norges-domstoler/dds-components 24.3.1 → 24.4.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.cjs +101 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +33 -0
- package/dist/index.d.cts +49 -4
- package/dist/index.d.mts +49 -4
- package/dist/index.mjs +101 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -4274,6 +4274,26 @@
|
|
|
4274
4274
|
cursor: not-allowed;
|
|
4275
4275
|
position: relative;
|
|
4276
4276
|
}
|
|
4277
|
+
.dds-Badge-module__container {
|
|
4278
|
+
border-radius: var(--dds-border-radius-rounded);
|
|
4279
|
+
box-sizing: border-box;
|
|
4280
|
+
}
|
|
4281
|
+
|
|
4282
|
+
.dds-Badge-module__notification {
|
|
4283
|
+
background-color: var(--dds-color-surface-notification);
|
|
4284
|
+
}
|
|
4285
|
+
|
|
4286
|
+
.dds-Badge-module__action {
|
|
4287
|
+
background-color: var(--dds-color-surface-action-resting);
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
.dds-Badge-module__neutral {
|
|
4291
|
+
background-color: var(--dds-color-surface-inverse-default);
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4294
|
+
.dds-Badge-module__subtle {
|
|
4295
|
+
background-color: var(--dds-color-surface-medium);
|
|
4296
|
+
}
|
|
4277
4297
|
.dds-Spinner-module__svg {
|
|
4278
4298
|
display: block;
|
|
4279
4299
|
}
|
|
@@ -4769,6 +4789,13 @@
|
|
|
4769
4789
|
color: var(--dds-color-text-on-action);
|
|
4770
4790
|
}
|
|
4771
4791
|
}
|
|
4792
|
+
|
|
4793
|
+
.dds-Button-module__badge {
|
|
4794
|
+
position: absolute;
|
|
4795
|
+
top: 0;
|
|
4796
|
+
right: 0;
|
|
4797
|
+
transform: translate(50%, -50%);
|
|
4798
|
+
}
|
|
4772
4799
|
.dds-OverflowMenu-module__container {
|
|
4773
4800
|
box-sizing: border-box;
|
|
4774
4801
|
}
|
|
@@ -7100,6 +7127,7 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
|
|
|
7100
7127
|
}
|
|
7101
7128
|
|
|
7102
7129
|
.dds-Tabs-module__tab {
|
|
7130
|
+
position: relative;
|
|
7103
7131
|
border: none;
|
|
7104
7132
|
-webkit-user-select: text;
|
|
7105
7133
|
user-select: text;
|
|
@@ -7161,6 +7189,11 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
|
|
|
7161
7189
|
box-shadow: inset 0px -2px 0px 0px var(--dds-color-surface-action-selected);
|
|
7162
7190
|
cursor: default;
|
|
7163
7191
|
}
|
|
7192
|
+
|
|
7193
|
+
.dds-Tabs-module__tab--column__badge {
|
|
7194
|
+
position: absolute;
|
|
7195
|
+
transform: translateX(50%);
|
|
7196
|
+
}
|
|
7164
7197
|
.dds-Tag-module__container {
|
|
7165
7198
|
border: 1px solid;
|
|
7166
7199
|
display: inline-flex;
|
package/dist/index.d.cts
CHANGED
|
@@ -314,6 +314,47 @@ export type ExtractStrict<T, U extends T> = U;
|
|
|
314
314
|
export type Nullable<T> = T | null;
|
|
315
315
|
export type Callback<T> = (e: T) => void;
|
|
316
316
|
//#endregion
|
|
317
|
+
//#region src/components/Badge/Badge.d.ts
|
|
318
|
+
declare const BADGE_PURPOSES: readonly ["notification", "action", "neutral", "subtle"];
|
|
319
|
+
declare const BADGE_SIZES: ["xsmall", "small", "medium", "large"];
|
|
320
|
+
type BadgePurpose = (typeof BADGE_PURPOSES)[number];
|
|
321
|
+
type BadgeSize = (typeof BADGE_SIZES)[number];
|
|
322
|
+
type BadgeProps = BaseComponentProps<HTMLElement, {
|
|
323
|
+
/**
|
|
324
|
+
* Formål med komponenten. Påvirker styling.
|
|
325
|
+
* @default 'notification'
|
|
326
|
+
*/
|
|
327
|
+
purpose?: BadgePurpose;
|
|
328
|
+
/**
|
|
329
|
+
* Størrelse.
|
|
330
|
+
* @default 'medium'
|
|
331
|
+
*/
|
|
332
|
+
size?: BadgeSize;
|
|
333
|
+
/**
|
|
334
|
+
* Barn. Støtter kun tall.
|
|
335
|
+
*/
|
|
336
|
+
children?: number;
|
|
337
|
+
/**
|
|
338
|
+
* Maksimalt tall som kan vises. legger på `'+'` dersom tallet overstiger maksverdien. Kan bli deaktivert.
|
|
339
|
+
* @default 9
|
|
340
|
+
*/
|
|
341
|
+
max?: number;
|
|
342
|
+
/**
|
|
343
|
+
* Om komponenten skal vise tallet selv om det er 0.
|
|
344
|
+
* @default false
|
|
345
|
+
*/
|
|
346
|
+
showZero?: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* HTML `aria-label` attributt.
|
|
349
|
+
*/
|
|
350
|
+
'aria-label'?: string;
|
|
351
|
+
}>;
|
|
352
|
+
type BadgeInComponentProps = Omit<BadgeProps, 'size'>;
|
|
353
|
+
export declare const Badge: {
|
|
354
|
+
({ id, className, style, htmlProps, purpose, size, children, max, showZero, ...rest }: BadgeProps): import("react").JSX.Element | null;
|
|
355
|
+
displayName: string;
|
|
356
|
+
};
|
|
357
|
+
//#endregion
|
|
317
358
|
//#region src/components/Icon/utils/types.d.ts
|
|
318
359
|
type SvgProps = {
|
|
319
360
|
title?: string;
|
|
@@ -365,6 +406,8 @@ type ButtonProps<I extends SvgIcon = SvgIcon, T extends ElementType = 'button'>
|
|
|
365
406
|
iconState?: IconStatesOf<I>;
|
|
366
407
|
/**Knapp med full bredde. */
|
|
367
408
|
fullWidth?: boolean;
|
|
409
|
+
/**Props for `<Badge>` som vises på knappen. */
|
|
410
|
+
badgeProps?: Omit<BadgeProps, 'size'>;
|
|
368
411
|
} & PickedHTMLAttributes$3>;
|
|
369
412
|
declare namespace index_d_exports$1 {
|
|
370
413
|
export { AdvancedPseudos, AtRule, AtRules, DataType, Fallback, Globals, HtmlAttributes, ObsoleteProperties, ObsoletePropertiesFallback, ObsoletePropertiesHyphen, ObsoletePropertiesHyphenFallback, Properties, PropertiesFallback, PropertiesHyphen, PropertiesHyphenFallback, Property, PropertyValue, Pseudos, SimplePseudos, StandardLonghandProperties, StandardLonghandPropertiesFallback, StandardLonghandPropertiesHyphen, StandardLonghandPropertiesHyphenFallback, StandardProperties, StandardPropertiesFallback, StandardPropertiesHyphen, StandardPropertiesHyphenFallback, StandardShorthandProperties, StandardShorthandPropertiesFallback, StandardShorthandPropertiesHyphen, StandardShorthandPropertiesHyphenFallback, SvgAttributes, SvgProperties, SvgPropertiesFallback, SvgPropertiesHyphen, SvgPropertiesHyphenFallback, VendorLonghandProperties, VendorLonghandPropertiesFallback, VendorLonghandPropertiesHyphen, VendorLonghandPropertiesHyphenFallback, VendorProperties, VendorPropertiesFallback, VendorPropertiesHyphen, VendorPropertiesHyphenFallback, VendorShorthandProperties, VendorShorthandPropertiesFallback, VendorShorthandPropertiesHyphen, VendorShorthandPropertiesHyphenFallback };
|
|
@@ -20736,7 +20779,7 @@ export declare namespace Icon {
|
|
|
20736
20779
|
//#endregion
|
|
20737
20780
|
//#region src/components/Button/Button.d.ts
|
|
20738
20781
|
export declare const Button: {
|
|
20739
|
-
<I extends SvgIcon, T extends ElementType = "button">({ as: propAs, children, purpose, size: propSize, iconPosition, loading, loadingTooltip, fullWidth, icon, iconState, onClick, onFocus, onBlur, id, ref, className, style, htmlProps, ...props }: ButtonProps<I, T>): import("react").JSX.Element;
|
|
20782
|
+
<I extends SvgIcon, T extends ElementType = "button">({ as: propAs, children, purpose, size: propSize, iconPosition, loading, loadingTooltip, fullWidth, icon, iconState, onClick, onFocus, onBlur, badgeProps, id, ref, className, style, htmlProps, ...props }: ButtonProps<I, T>): import("react").JSX.Element;
|
|
20740
20783
|
displayName: string;
|
|
20741
20784
|
};
|
|
20742
20785
|
//#endregion
|
|
@@ -20822,10 +20865,11 @@ export interface DropdownItemCustomProps<T extends DropdownItemT = 'span'> {
|
|
|
20822
20865
|
/**Bestemmer farger basert på formål.
|
|
20823
20866
|
* @default "default"
|
|
20824
20867
|
*/
|
|
20868
|
+
badgeProps?: BadgeInComponentProps;
|
|
20825
20869
|
purpose?: 'default' | 'danger';
|
|
20826
20870
|
}
|
|
20827
20871
|
export type DropdownItemProps<T extends DropdownItemT = 'span'> = DropdownItemCustomProps<T> & DropdownItemButtonProps & (T extends typeof StylelessButton ? StylelessButtonProps : ComponentPropsWithRef<T>);
|
|
20828
|
-
export declare const DropdownItem: <T extends DropdownItemT = "span">({ icon, className, children: propChildren, purpose, loading, loadingTooltip, ...rest }: DropdownItemProps<T>) => import("react").JSX.Element;
|
|
20872
|
+
export declare const DropdownItem: <T extends DropdownItemT = "span">({ icon, className, children: propChildren, purpose, loading, loadingTooltip, badgeProps, ...rest }: DropdownItemProps<T>) => import("react").JSX.Element;
|
|
20829
20873
|
//#endregion
|
|
20830
20874
|
//#region src/components/helpers/Dropdown/DropdownHeader.d.ts
|
|
20831
20875
|
type DropdownHeaderProps = ComponentPropsWithRef<'h2'>;
|
|
@@ -27046,9 +27090,10 @@ export type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
27046
27090
|
* @default "1fr"
|
|
27047
27091
|
*/
|
|
27048
27092
|
width?: Properties['width'];
|
|
27093
|
+
badgeProps?: BadgeInComponentProps;
|
|
27049
27094
|
} & PickedAttributes>;
|
|
27050
27095
|
export declare const Tab: {
|
|
27051
|
-
({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, style, width, ref, ...rest }: TabProps): import("react").JSX.Element;
|
|
27096
|
+
({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, style, width, ref, badgeProps, ...rest }: TabProps): import("react").JSX.Element;
|
|
27052
27097
|
displayName: string;
|
|
27053
27098
|
};
|
|
27054
27099
|
//#endregion
|
|
@@ -27261,5 +27306,5 @@ export declare const VisuallyHidden: {
|
|
|
27261
27306
|
displayName: string;
|
|
27262
27307
|
};
|
|
27263
27308
|
//#endregion
|
|
27264
|
-
export { Bleed$1 as Bleed, type BleedProps, type Breakpoint, type ButtonProps, type ButtonPurpose, type ButtonSize, type CalendarProps, type CardProps, type CardSelectableProps, type DatePickerProps, type DdsTheme, type DrawerPlacement, type DrawerProps, type DrawerSize, type ErrorSummaryItemProps, type ErrorSummaryProps, type FavStarProps, type GlobalMessageProps, type GlobalMessagePurpose, type IconPosition, type IconProps, type IconSize, type InlineEditInputProps, type InlineEditSelectProps, type InlineEditTextAreaProps, type NewsPopoverProps, type ParagraphProps, type PhoneInputProps, type ProgressBarProps, type ProgressBarSize, type Purpose, type RadioButtonProps, type RadioValue, type ResponsiveProps, type ResponsiveStackProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSuggestionsProps, type Size$1 as Size, type SortOrder, type SpacingScale, type SvgIcon, type SvgProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, type TabsProps, type TagAppearance, type TagProps, type TagPurpose, type TimePickerProps, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, type ToggleButtonProps, type ToggleProps, type ToggleSize, type WeightedSearchData, type ZIndex, index_d_exports as icons };
|
|
27309
|
+
export { type BadgeInComponentProps, type BadgeProps, type BadgePurpose, type BadgeSize, Bleed$1 as Bleed, type BleedProps, type Breakpoint, type ButtonProps, type ButtonPurpose, type ButtonSize, type CalendarProps, type CardProps, type CardSelectableProps, type DatePickerProps, type DdsTheme, type DrawerPlacement, type DrawerProps, type DrawerSize, type ErrorSummaryItemProps, type ErrorSummaryProps, type FavStarProps, type GlobalMessageProps, type GlobalMessagePurpose, type IconPosition, type IconProps, type IconSize, type InlineEditInputProps, type InlineEditSelectProps, type InlineEditTextAreaProps, type NewsPopoverProps, type ParagraphProps, type PhoneInputProps, type ProgressBarProps, type ProgressBarSize, type Purpose, type RadioButtonProps, type RadioValue, type ResponsiveProps, type ResponsiveStackProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSuggestionsProps, type Size$1 as Size, type SortOrder, type SpacingScale, type SvgIcon, type SvgProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, type TabsProps, type TagAppearance, type TagProps, type TagPurpose, type TimePickerProps, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, type ToggleButtonProps, type ToggleProps, type ToggleSize, type WeightedSearchData, type ZIndex, index_d_exports as icons };
|
|
27265
27310
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -313,6 +313,47 @@ export type ExtractStrict<T, U extends T> = U;
|
|
|
313
313
|
export type Nullable<T> = T | null;
|
|
314
314
|
export type Callback<T> = (e: T) => void;
|
|
315
315
|
//#endregion
|
|
316
|
+
//#region src/components/Badge/Badge.d.ts
|
|
317
|
+
declare const BADGE_PURPOSES: readonly ["notification", "action", "neutral", "subtle"];
|
|
318
|
+
declare const BADGE_SIZES: ["xsmall", "small", "medium", "large"];
|
|
319
|
+
type BadgePurpose = (typeof BADGE_PURPOSES)[number];
|
|
320
|
+
type BadgeSize = (typeof BADGE_SIZES)[number];
|
|
321
|
+
type BadgeProps = BaseComponentProps<HTMLElement, {
|
|
322
|
+
/**
|
|
323
|
+
* Formål med komponenten. Påvirker styling.
|
|
324
|
+
* @default 'notification'
|
|
325
|
+
*/
|
|
326
|
+
purpose?: BadgePurpose;
|
|
327
|
+
/**
|
|
328
|
+
* Størrelse.
|
|
329
|
+
* @default 'medium'
|
|
330
|
+
*/
|
|
331
|
+
size?: BadgeSize;
|
|
332
|
+
/**
|
|
333
|
+
* Barn. Støtter kun tall.
|
|
334
|
+
*/
|
|
335
|
+
children?: number;
|
|
336
|
+
/**
|
|
337
|
+
* Maksimalt tall som kan vises. legger på `'+'` dersom tallet overstiger maksverdien. Kan bli deaktivert.
|
|
338
|
+
* @default 9
|
|
339
|
+
*/
|
|
340
|
+
max?: number;
|
|
341
|
+
/**
|
|
342
|
+
* Om komponenten skal vise tallet selv om det er 0.
|
|
343
|
+
* @default false
|
|
344
|
+
*/
|
|
345
|
+
showZero?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* HTML `aria-label` attributt.
|
|
348
|
+
*/
|
|
349
|
+
'aria-label'?: string;
|
|
350
|
+
}>;
|
|
351
|
+
type BadgeInComponentProps = Omit<BadgeProps, 'size'>;
|
|
352
|
+
export declare const Badge: {
|
|
353
|
+
({ id, className, style, htmlProps, purpose, size, children, max, showZero, ...rest }: BadgeProps): import("react").JSX.Element | null;
|
|
354
|
+
displayName: string;
|
|
355
|
+
};
|
|
356
|
+
//#endregion
|
|
316
357
|
//#region src/components/Icon/utils/types.d.ts
|
|
317
358
|
type SvgProps = {
|
|
318
359
|
title?: string;
|
|
@@ -364,6 +405,8 @@ type ButtonProps<I extends SvgIcon = SvgIcon, T extends ElementType = 'button'>
|
|
|
364
405
|
iconState?: IconStatesOf<I>;
|
|
365
406
|
/**Knapp med full bredde. */
|
|
366
407
|
fullWidth?: boolean;
|
|
408
|
+
/**Props for `<Badge>` som vises på knappen. */
|
|
409
|
+
badgeProps?: Omit<BadgeProps, 'size'>;
|
|
367
410
|
} & PickedHTMLAttributes$3>;
|
|
368
411
|
declare namespace index_d_exports$1 {
|
|
369
412
|
export { AdvancedPseudos, AtRule, AtRules, DataType, Fallback, Globals, HtmlAttributes, ObsoleteProperties, ObsoletePropertiesFallback, ObsoletePropertiesHyphen, ObsoletePropertiesHyphenFallback, Properties, PropertiesFallback, PropertiesHyphen, PropertiesHyphenFallback, Property, PropertyValue, Pseudos, SimplePseudos, StandardLonghandProperties, StandardLonghandPropertiesFallback, StandardLonghandPropertiesHyphen, StandardLonghandPropertiesHyphenFallback, StandardProperties, StandardPropertiesFallback, StandardPropertiesHyphen, StandardPropertiesHyphenFallback, StandardShorthandProperties, StandardShorthandPropertiesFallback, StandardShorthandPropertiesHyphen, StandardShorthandPropertiesHyphenFallback, SvgAttributes, SvgProperties, SvgPropertiesFallback, SvgPropertiesHyphen, SvgPropertiesHyphenFallback, VendorLonghandProperties, VendorLonghandPropertiesFallback, VendorLonghandPropertiesHyphen, VendorLonghandPropertiesHyphenFallback, VendorProperties, VendorPropertiesFallback, VendorPropertiesHyphen, VendorPropertiesHyphenFallback, VendorShorthandProperties, VendorShorthandPropertiesFallback, VendorShorthandPropertiesHyphen, VendorShorthandPropertiesHyphenFallback };
|
|
@@ -20735,7 +20778,7 @@ export declare namespace Icon {
|
|
|
20735
20778
|
//#endregion
|
|
20736
20779
|
//#region src/components/Button/Button.d.ts
|
|
20737
20780
|
export declare const Button: {
|
|
20738
|
-
<I extends SvgIcon, T extends ElementType = "button">({ as: propAs, children, purpose, size: propSize, iconPosition, loading, loadingTooltip, fullWidth, icon, iconState, onClick, onFocus, onBlur, id, ref, className, style, htmlProps, ...props }: ButtonProps<I, T>): import("react").JSX.Element;
|
|
20781
|
+
<I extends SvgIcon, T extends ElementType = "button">({ as: propAs, children, purpose, size: propSize, iconPosition, loading, loadingTooltip, fullWidth, icon, iconState, onClick, onFocus, onBlur, badgeProps, id, ref, className, style, htmlProps, ...props }: ButtonProps<I, T>): import("react").JSX.Element;
|
|
20739
20782
|
displayName: string;
|
|
20740
20783
|
};
|
|
20741
20784
|
//#endregion
|
|
@@ -20821,10 +20864,11 @@ export interface DropdownItemCustomProps<T extends DropdownItemT = 'span'> {
|
|
|
20821
20864
|
/**Bestemmer farger basert på formål.
|
|
20822
20865
|
* @default "default"
|
|
20823
20866
|
*/
|
|
20867
|
+
badgeProps?: BadgeInComponentProps;
|
|
20824
20868
|
purpose?: 'default' | 'danger';
|
|
20825
20869
|
}
|
|
20826
20870
|
export type DropdownItemProps<T extends DropdownItemT = 'span'> = DropdownItemCustomProps<T> & DropdownItemButtonProps & (T extends typeof StylelessButton ? StylelessButtonProps : ComponentPropsWithRef<T>);
|
|
20827
|
-
export declare const DropdownItem: <T extends DropdownItemT = "span">({ icon, className, children: propChildren, purpose, loading, loadingTooltip, ...rest }: DropdownItemProps<T>) => import("react").JSX.Element;
|
|
20871
|
+
export declare const DropdownItem: <T extends DropdownItemT = "span">({ icon, className, children: propChildren, purpose, loading, loadingTooltip, badgeProps, ...rest }: DropdownItemProps<T>) => import("react").JSX.Element;
|
|
20828
20872
|
//#endregion
|
|
20829
20873
|
//#region src/components/helpers/Dropdown/DropdownHeader.d.ts
|
|
20830
20874
|
type DropdownHeaderProps = ComponentPropsWithRef<'h2'>;
|
|
@@ -27045,9 +27089,10 @@ export type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
27045
27089
|
* @default "1fr"
|
|
27046
27090
|
*/
|
|
27047
27091
|
width?: Properties['width'];
|
|
27092
|
+
badgeProps?: BadgeInComponentProps;
|
|
27048
27093
|
} & PickedAttributes>;
|
|
27049
27094
|
export declare const Tab: {
|
|
27050
|
-
({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, style, width, ref, ...rest }: TabProps): import("react").JSX.Element;
|
|
27095
|
+
({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, style, width, ref, badgeProps, ...rest }: TabProps): import("react").JSX.Element;
|
|
27051
27096
|
displayName: string;
|
|
27052
27097
|
};
|
|
27053
27098
|
//#endregion
|
|
@@ -27260,5 +27305,5 @@ export declare const VisuallyHidden: {
|
|
|
27260
27305
|
displayName: string;
|
|
27261
27306
|
};
|
|
27262
27307
|
//#endregion
|
|
27263
|
-
export { Bleed$1 as Bleed, type BleedProps, type Breakpoint, type ButtonProps, type ButtonPurpose, type ButtonSize, type CalendarProps, type CardProps, type CardSelectableProps, type DatePickerProps, type DdsTheme, type DrawerPlacement, type DrawerProps, type DrawerSize, type ErrorSummaryItemProps, type ErrorSummaryProps, type FavStarProps, type GlobalMessageProps, type GlobalMessagePurpose, type IconPosition, type IconProps, type IconSize, type InlineEditInputProps, type InlineEditSelectProps, type InlineEditTextAreaProps, type NewsPopoverProps, type ParagraphProps, type PhoneInputProps, type ProgressBarProps, type ProgressBarSize, type Purpose, type RadioButtonProps, type RadioValue, type ResponsiveProps, type ResponsiveStackProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSuggestionsProps, type Size$1 as Size, type SortOrder, type SpacingScale, type SvgIcon, type SvgProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, type TabsProps, type TagAppearance, type TagProps, type TagPurpose, type TimePickerProps, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, type ToggleButtonProps, type ToggleProps, type ToggleSize, type WeightedSearchData, type ZIndex, index_d_exports as icons };
|
|
27308
|
+
export { type BadgeInComponentProps, type BadgeProps, type BadgePurpose, type BadgeSize, Bleed$1 as Bleed, type BleedProps, type Breakpoint, type ButtonProps, type ButtonPurpose, type ButtonSize, type CalendarProps, type CardProps, type CardSelectableProps, type DatePickerProps, type DdsTheme, type DrawerPlacement, type DrawerProps, type DrawerSize, type ErrorSummaryItemProps, type ErrorSummaryProps, type FavStarProps, type GlobalMessageProps, type GlobalMessagePurpose, type IconPosition, type IconProps, type IconSize, type InlineEditInputProps, type InlineEditSelectProps, type InlineEditTextAreaProps, type NewsPopoverProps, type ParagraphProps, type PhoneInputProps, type ProgressBarProps, type ProgressBarSize, type Purpose, type RadioButtonProps, type RadioValue, type ResponsiveProps, type ResponsiveStackProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSuggestionsProps, type Size$1 as Size, type SortOrder, type SpacingScale, type SvgIcon, type SvgProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, type TabsProps, type TagAppearance, type TagProps, type TagPurpose, type TimePickerProps, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, type ToggleButtonProps, type ToggleProps, type ToggleSize, type WeightedSearchData, type ZIndex, index_d_exports as icons };
|
|
27264
27309
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1675,6 +1675,59 @@ var DropdownItem_module_default = {
|
|
|
1675
1675
|
"item--loading": "dds-DropdownItem-module__item--loading"
|
|
1676
1676
|
};
|
|
1677
1677
|
//#endregion
|
|
1678
|
+
//#region src/components/Badge/Badge.module.css
|
|
1679
|
+
var Badge_module_default = {
|
|
1680
|
+
"container": "dds-Badge-module__container",
|
|
1681
|
+
"notification": "dds-Badge-module__notification",
|
|
1682
|
+
"action": "dds-Badge-module__action",
|
|
1683
|
+
"neutral": "dds-Badge-module__neutral",
|
|
1684
|
+
"subtle": "dds-Badge-module__subtle"
|
|
1685
|
+
};
|
|
1686
|
+
const Badge = ({ id, className, style, htmlProps, purpose = "notification", size = "medium", children, max = 9, showZero = false, ...rest }) => {
|
|
1687
|
+
const hasChildren = !!children || showZero && children === 0;
|
|
1688
|
+
const heightVariant = hasChildren ? "withChildren" : "noChildren";
|
|
1689
|
+
const height = {
|
|
1690
|
+
withChildren: {
|
|
1691
|
+
xsmall: "18px",
|
|
1692
|
+
small: "21px",
|
|
1693
|
+
medium: "24px",
|
|
1694
|
+
large: "27px"
|
|
1695
|
+
},
|
|
1696
|
+
noChildren: {
|
|
1697
|
+
xsmall: "x0.5",
|
|
1698
|
+
small: "x0.75",
|
|
1699
|
+
medium: "x1",
|
|
1700
|
+
large: "x1.5"
|
|
1701
|
+
}
|
|
1702
|
+
};
|
|
1703
|
+
const color = {
|
|
1704
|
+
notification: "text-on-notification",
|
|
1705
|
+
action: "text-on-action",
|
|
1706
|
+
neutral: "text-on-inverse",
|
|
1707
|
+
subtle: "text-default"
|
|
1708
|
+
};
|
|
1709
|
+
const displayValue = hasChildren && max && children > max ? `${max}+` : children;
|
|
1710
|
+
if (!(!showZero && children === 0 ? false : true)) return null;
|
|
1711
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
1712
|
+
as: "span",
|
|
1713
|
+
paddingInline: hasChildren ? "x0.25" : void 0,
|
|
1714
|
+
minWidth: height[heightVariant][size],
|
|
1715
|
+
maxWidth: "fit-content",
|
|
1716
|
+
height: height[heightVariant][size],
|
|
1717
|
+
display: "inline-flex",
|
|
1718
|
+
alignItems: "center",
|
|
1719
|
+
justifyContent: "center",
|
|
1720
|
+
...getBaseHTMLProps(id, cn(className, Badge_module_default.container, Badge_module_default[purpose], typographyStyles_module_default[`body-short-${size}`]), style, htmlProps, rest),
|
|
1721
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
1722
|
+
as: "span",
|
|
1723
|
+
typographyType: `body-short-${size}`,
|
|
1724
|
+
color: color[purpose],
|
|
1725
|
+
children: displayValue
|
|
1726
|
+
})
|
|
1727
|
+
});
|
|
1728
|
+
};
|
|
1729
|
+
Badge.displayName = "Badge";
|
|
1730
|
+
//#endregion
|
|
1678
1731
|
//#region src/components/Icon/Icon.tsx
|
|
1679
1732
|
const getSize = (iconSize) => {
|
|
1680
1733
|
switch (iconSize) {
|
|
@@ -1860,7 +1913,7 @@ var focus_module_default = {
|
|
|
1860
1913
|
};
|
|
1861
1914
|
//#endregion
|
|
1862
1915
|
//#region src/components/helpers/Dropdown/DropdownItem.tsx
|
|
1863
|
-
const DropdownItem = ({ icon, className, children: propChildren, purpose = "default", loading, loadingTooltip, ...rest }) => {
|
|
1916
|
+
const DropdownItem = ({ icon, className, children: propChildren, purpose = "default", loading, loadingTooltip, badgeProps, ...rest }) => {
|
|
1864
1917
|
const itemCns = [
|
|
1865
1918
|
DropdownItem_module_default.item,
|
|
1866
1919
|
DropdownItem_module_default[purpose],
|
|
@@ -1898,7 +1951,13 @@ const DropdownItem = ({ icon, className, children: propChildren, purpose = "defa
|
|
|
1898
1951
|
icon,
|
|
1899
1952
|
className: cn(loading && utilStyles_module_default.invisible)
|
|
1900
1953
|
}),
|
|
1901
|
-
children
|
|
1954
|
+
children,
|
|
1955
|
+
badgeProps && /* @__PURE__ */ jsx(Box, {
|
|
1956
|
+
as: Badge,
|
|
1957
|
+
...badgeProps,
|
|
1958
|
+
size: "small",
|
|
1959
|
+
marginInline: "x0.25 0"
|
|
1960
|
+
})
|
|
1902
1961
|
]
|
|
1903
1962
|
});
|
|
1904
1963
|
};
|
|
@@ -4687,7 +4746,8 @@ var Button_module_default = {
|
|
|
4687
4746
|
"button--primary": "dds-Button-module__button--primary",
|
|
4688
4747
|
"button--secondary": "dds-Button-module__button--secondary",
|
|
4689
4748
|
"button--tertiary": "dds-Button-module__button--tertiary",
|
|
4690
|
-
"button--danger": "dds-Button-module__button--danger"
|
|
4749
|
+
"button--danger": "dds-Button-module__button--danger",
|
|
4750
|
+
"badge": "dds-Button-module__badge"
|
|
4691
4751
|
};
|
|
4692
4752
|
//#endregion
|
|
4693
4753
|
//#region src/components/ButtonGroup/ButtonGroup.context.tsx
|
|
@@ -4695,7 +4755,7 @@ const ButtonGroupContext = createContext({});
|
|
|
4695
4755
|
const useButtonGroupContext = () => useContext(ButtonGroupContext);
|
|
4696
4756
|
//#endregion
|
|
4697
4757
|
//#region src/components/Button/Button.tsx
|
|
4698
|
-
const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "medium", iconPosition = "left", loading, loadingTooltip, fullWidth = false, icon, iconState, onClick, onFocus, onBlur, id, ref, className, style, htmlProps, ...props }) => {
|
|
4758
|
+
const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "medium", iconPosition = "left", loading, loadingTooltip, fullWidth = false, icon, iconState, onClick, onFocus, onBlur, badgeProps, id, ref, className, style, htmlProps, ...props }) => {
|
|
4699
4759
|
const { purpose: groupPurpose, size: groupSize } = useButtonGroupContext();
|
|
4700
4760
|
const { t } = useTranslation();
|
|
4701
4761
|
const spinnerTooltip = loadingTooltip ?? t(texts$28.saving);
|
|
@@ -4738,7 +4798,7 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
|
|
|
4738
4798
|
const isDisabled = (restDisabled ?? htmlDisabled ?? loading) === true;
|
|
4739
4799
|
const as = propAs ? propAs : "button";
|
|
4740
4800
|
const aProps = as === "a" ? { rel: "noopener noreferrer" } : {};
|
|
4741
|
-
return /* @__PURE__ */
|
|
4801
|
+
return /* @__PURE__ */ jsxs(ElementAs, {
|
|
4742
4802
|
as,
|
|
4743
4803
|
ref,
|
|
4744
4804
|
...getBaseHTMLProps(id, buttonCn, style, htmlProps, restFinal),
|
|
@@ -4747,7 +4807,11 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
|
|
|
4747
4807
|
onBlur,
|
|
4748
4808
|
disabled: isDisabled,
|
|
4749
4809
|
...aProps,
|
|
4750
|
-
children: content
|
|
4810
|
+
children: [content, badgeProps && /* @__PURE__ */ jsx(Badge, {
|
|
4811
|
+
...badgeProps,
|
|
4812
|
+
size,
|
|
4813
|
+
className: cn(Button_module_default.badge, badgeProps.className)
|
|
4814
|
+
})]
|
|
4751
4815
|
});
|
|
4752
4816
|
};
|
|
4753
4817
|
Button.displayName = "Button";
|
|
@@ -12729,7 +12793,8 @@ var Tabs_module_default = {
|
|
|
12729
12793
|
"tab--medium--column": "dds-Tabs-module__tab--medium--column",
|
|
12730
12794
|
"tab--small--column": "dds-Tabs-module__tab--small--column",
|
|
12731
12795
|
"tab--row": "dds-Tabs-module__tab--row",
|
|
12732
|
-
"tab--column": "dds-Tabs-module__tab--column"
|
|
12796
|
+
"tab--column": "dds-Tabs-module__tab--column",
|
|
12797
|
+
"tab--column__badge": "dds-Tabs-module__tab--column__badge"
|
|
12733
12798
|
};
|
|
12734
12799
|
//#endregion
|
|
12735
12800
|
//#region src/components/Tabs/TabWidthContext.tsx
|
|
@@ -12816,7 +12881,7 @@ const Tabs = ({ id, activeTab, onChange, tabContentDirection = "row", size = "sm
|
|
|
12816
12881
|
Tabs.displayName = "Tabs";
|
|
12817
12882
|
//#endregion
|
|
12818
12883
|
//#region src/components/Tabs/Tab.tsx
|
|
12819
|
-
const Tab = ({ active = false, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps = {}, style, width = "1fr", ref, ...rest }) => {
|
|
12884
|
+
const Tab = ({ active = false, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps = {}, style, width = "1fr", ref, badgeProps, ...rest }) => {
|
|
12820
12885
|
useSetTabWidth(index, width);
|
|
12821
12886
|
const itemRef = useRef(null);
|
|
12822
12887
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
@@ -12840,6 +12905,32 @@ const Tab = ({ active = false, icon, children, focus, setFocus, index, onClick,
|
|
|
12840
12905
|
handleSelect();
|
|
12841
12906
|
onKeyDown?.(e);
|
|
12842
12907
|
};
|
|
12908
|
+
const badgeSize = {
|
|
12909
|
+
small: "xsmall",
|
|
12910
|
+
medium: "small"
|
|
12911
|
+
};
|
|
12912
|
+
const hasIcon = !!icon;
|
|
12913
|
+
const hasVerticalBadge = badgeProps && !!badgeProps?.children === false && tabContentDirection === "column" && hasIcon;
|
|
12914
|
+
const hasHorizontalBadge = badgeProps && !hasVerticalBadge;
|
|
12915
|
+
const content = hasHorizontalBadge && tabContentDirection === "row" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", { children }), /* @__PURE__ */ jsx(Box, {
|
|
12916
|
+
as: Badge,
|
|
12917
|
+
...badgeProps,
|
|
12918
|
+
size: badgeSize[size]
|
|
12919
|
+
})] }) : hasHorizontalBadge && tabContentDirection === "column" ? /* @__PURE__ */ jsxs(HStack, {
|
|
12920
|
+
gap: "x0.5",
|
|
12921
|
+
children: [children, /* @__PURE__ */ jsx(Box, {
|
|
12922
|
+
as: Badge,
|
|
12923
|
+
...badgeProps,
|
|
12924
|
+
size: badgeSize[size]
|
|
12925
|
+
})]
|
|
12926
|
+
}) : hasVerticalBadge ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", { children }), /* @__PURE__ */ jsx(Box, {
|
|
12927
|
+
as: Badge,
|
|
12928
|
+
...badgeProps,
|
|
12929
|
+
size: badgeSize[size],
|
|
12930
|
+
className: cn(Tabs_module_default["tab--column__badge"], badgeProps?.className),
|
|
12931
|
+
top: "x0.125",
|
|
12932
|
+
right: "calc(50% - (var(--dds-size-icon-component) / 2 ))"
|
|
12933
|
+
})] }) : /* @__PURE__ */ jsx("span", { children });
|
|
12843
12934
|
return /* @__PURE__ */ jsxs("button", {
|
|
12844
12935
|
...getBaseHTMLProps(id, cn(className, Tabs_module_default.tab, Tabs_module_default[`tab--${size}--${tabContentDirection}`], active && Tabs_module_default["tab--active"], Tabs_module_default[`tab--${tabContentDirection}`], typographyStyles_module_default[`body-short-${size}`], focus_module_default["focusable--inset"]), style, fixedHtmlProps, rest),
|
|
12845
12936
|
ref: combinedRef,
|
|
@@ -12851,7 +12942,7 @@ const Tab = ({ active = false, icon, children, focus, setFocus, index, onClick,
|
|
|
12851
12942
|
children: [icon && /* @__PURE__ */ jsx(Icon, {
|
|
12852
12943
|
icon,
|
|
12853
12944
|
iconSize: "component"
|
|
12854
|
-
}),
|
|
12945
|
+
}), content]
|
|
12855
12946
|
});
|
|
12856
12947
|
};
|
|
12857
12948
|
Tab.displayName = "Tab";
|
|
@@ -13302,6 +13393,6 @@ const ToggleButtonGroup = (props) => {
|
|
|
13302
13393
|
};
|
|
13303
13394
|
ToggleButtonGroup.displayName = "ToggleButtonGroup";
|
|
13304
13395
|
//#endregion
|
|
13305
|
-
export { Accordion, AccordionBody, AccordionContextProvider, AccordionHeader, AddTabButton, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, Backdrop, BarChartBoxedIcon, BarChartIcon, Bleed, BlockIcon, BookIcon, Box, Breadcrumb, Breadcrumbs, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, Calendar, CalendarIcon, CalendarMonthIcon, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, Caption, Card, CardExpandable, CardExpandableBody, CardExpandableHeader, CardSelectable, CardSelectableGroup, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CommentIcon, Contrast, CookieBanner, CookieBannerCheckbox, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, DateRangeIcon, DdsProvider, DeathsIcon, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, DesktopIcon, DesktopMobileIcon, DetailList, DetailListDesc, DetailListRow, DetailListTerm, Divider, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, DropdownHeader, DropdownItem, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, EmptyContent, ErrorIcon, ErrorSummary, ErrorSummaryItem, ExclaimIcon, ExpandIcon, FacebookIcon, FamilyIcon, FavStar, Feedback, FeedbackIcon, Fieldset, FieldsetGroup, FileAddIcon, FileIcon, FileShieldedIcon, FileSignedIcon, FileTextIcon, FileUploader, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, FooterList, FooterListGroup, FooterListHeader, FooterLogo, FooterSocialsGroup, FooterSocialsList, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, Grid, GridChild, GroupIcon, GuardianIcon, HStack, Heading, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, Icon, ImageIcon, InfoIcon, InlineButton, InlineEditInput, InlineEditSelect, InlineEditTextArea, InputMessage, InstagramIcon, InternalHeader, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, LagmannsrettIcon, LanguageIcon, Legend, LineChartIcon, Link, LinkIcon, LinkOffIcon, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, LocalMessage, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, ModalBody, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NewsPopover, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, OnlineMeetingIcon, OpenExternalIcon, OverflowMenu, OverflowMenuButton, OverflowMenuDivider, OverflowMenuGroup, OverflowMenuLink, OverflowMenuList, OverflowMenuListHeader, OverflowMenuSpan, OverflowMenuToggle, Pagination, PaletteIcon, PanelLeftIcon, Paper, PaperPlaneIcon, Paragraph, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, PinIcon, PlusCircledIcon, PlusIcon, Popover, PopoverGroup, PowerOfAttorneyIcon, PrintIcon, ProgressBar, ProgressTracker, ProgressTrackerItem, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, SearchIcon, SearchSuggestions, SectionIcon, Select, SettingsIcon, ShowHide, Skeleton, SkipToContent, SmsIcon, Spinner, SplitButton, StarFilledIcon, StarHalfFilledIcon, StarIcon, StickyNoteIcon, StylelessButton, StylelessList, StylelessOList, SunHalfFilledIcon, SunIcon, SupportIcon, SyncIcon, TG_BODY_LONG_TYPES, TG_BODY_SHORT_TYPES, TG_BODY_TYPES, TG_HEADING_TYPES, TG_LEAD_TYPES, Tab, TabList, TabPanel, TabPanels, Table, Body as TableBody, Cell as TableCell, Foot as TableFoot, Head as TableHead, Row as TableRow, SortCell as TableSortCell, TableWrapper, Tabs, Tag, TextArea, TextInput, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, TingrettIcon, TipIcon, Toggle, ToggleBar, ToggleButton, ToggleButtonGroup, ToggleRadio, Tooltip, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, VStack, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, WarningIcon, WebexIcon, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, icons_exports as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
|
|
13396
|
+
export { Accordion, AccordionBody, AccordionContextProvider, AccordionHeader, AddTabButton, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, Backdrop, Badge, BarChartBoxedIcon, BarChartIcon, Bleed, BlockIcon, BookIcon, Box, Breadcrumb, Breadcrumbs, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, Calendar, CalendarIcon, CalendarMonthIcon, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, Caption, Card, CardExpandable, CardExpandableBody, CardExpandableHeader, CardSelectable, CardSelectableGroup, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CommentIcon, Contrast, CookieBanner, CookieBannerCheckbox, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, DateRangeIcon, DdsProvider, DeathsIcon, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, DesktopIcon, DesktopMobileIcon, DetailList, DetailListDesc, DetailListRow, DetailListTerm, Divider, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, DropdownHeader, DropdownItem, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, EmptyContent, ErrorIcon, ErrorSummary, ErrorSummaryItem, ExclaimIcon, ExpandIcon, FacebookIcon, FamilyIcon, FavStar, Feedback, FeedbackIcon, Fieldset, FieldsetGroup, FileAddIcon, FileIcon, FileShieldedIcon, FileSignedIcon, FileTextIcon, FileUploader, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, FooterList, FooterListGroup, FooterListHeader, FooterLogo, FooterSocialsGroup, FooterSocialsList, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, Grid, GridChild, GroupIcon, GuardianIcon, HStack, Heading, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, Icon, ImageIcon, InfoIcon, InlineButton, InlineEditInput, InlineEditSelect, InlineEditTextArea, InputMessage, InstagramIcon, InternalHeader, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, LagmannsrettIcon, LanguageIcon, Legend, LineChartIcon, Link, LinkIcon, LinkOffIcon, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, LocalMessage, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, ModalBody, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NewsPopover, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, OnlineMeetingIcon, OpenExternalIcon, OverflowMenu, OverflowMenuButton, OverflowMenuDivider, OverflowMenuGroup, OverflowMenuLink, OverflowMenuList, OverflowMenuListHeader, OverflowMenuSpan, OverflowMenuToggle, Pagination, PaletteIcon, PanelLeftIcon, Paper, PaperPlaneIcon, Paragraph, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, PinIcon, PlusCircledIcon, PlusIcon, Popover, PopoverGroup, PowerOfAttorneyIcon, PrintIcon, ProgressBar, ProgressTracker, ProgressTrackerItem, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, SearchIcon, SearchSuggestions, SectionIcon, Select, SettingsIcon, ShowHide, Skeleton, SkipToContent, SmsIcon, Spinner, SplitButton, StarFilledIcon, StarHalfFilledIcon, StarIcon, StickyNoteIcon, StylelessButton, StylelessList, StylelessOList, SunHalfFilledIcon, SunIcon, SupportIcon, SyncIcon, TG_BODY_LONG_TYPES, TG_BODY_SHORT_TYPES, TG_BODY_TYPES, TG_HEADING_TYPES, TG_LEAD_TYPES, Tab, TabList, TabPanel, TabPanels, Table, Body as TableBody, Cell as TableCell, Foot as TableFoot, Head as TableHead, Row as TableRow, SortCell as TableSortCell, TableWrapper, Tabs, Tag, TextArea, TextInput, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, TingrettIcon, TipIcon, Toggle, ToggleBar, ToggleButton, ToggleButtonGroup, ToggleRadio, Tooltip, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, VStack, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, WarningIcon, WebexIcon, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, icons_exports as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
|
|
13306
13397
|
|
|
13307
13398
|
//# sourceMappingURL=index.mjs.map
|