@digdir/designsystemet-react 1.1.4 → 1.1.6
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/cjs/components/breadcrumbs/index.js +6 -6
- package/dist/cjs/components/card/index.js +3 -3
- package/dist/cjs/components/chip/index.js +6 -6
- package/dist/cjs/components/details/index.js +4 -4
- package/dist/cjs/components/dialog/dialog.js +3 -2
- package/dist/cjs/components/dialog/index.js +5 -5
- package/dist/cjs/components/dropdown/dropdown-button.js +12 -0
- package/dist/cjs/components/dropdown/dropdown-heading.js +8 -0
- package/dist/cjs/components/dropdown/dropdown-item.js +12 -0
- package/dist/cjs/components/dropdown/dropdown-list.js +12 -0
- package/dist/cjs/components/dropdown/dropdown-trigger-context.js +9 -9
- package/dist/cjs/components/dropdown/dropdown-trigger.js +16 -0
- package/dist/cjs/components/dropdown/index.js +20 -9
- package/dist/cjs/components/error-summary/error-summary-heading.js +8 -0
- package/dist/cjs/components/error-summary/error-summary-item.js +4 -4
- package/dist/cjs/components/error-summary/error-summary-link.js +8 -1
- package/dist/cjs/components/error-summary/error-summary-list.js +15 -0
- package/dist/cjs/components/error-summary/index.js +6 -6
- package/dist/cjs/components/field/field-description.js +6 -0
- package/dist/cjs/components/field/field-observer.js +7 -5
- package/dist/cjs/components/field/index.js +6 -6
- package/dist/cjs/components/fieldset/fieldset-description.js +2 -2
- package/dist/cjs/components/fieldset/fieldset-legend.js +1 -1
- package/dist/cjs/components/fieldset/index.js +4 -4
- package/dist/cjs/components/list/index.js +5 -5
- package/dist/cjs/components/list/list-item.js +6 -0
- package/dist/cjs/components/list/lists.js +8 -8
- package/dist/cjs/components/pagination/index.js +5 -5
- package/dist/cjs/components/pagination/pagination-button.js +3 -3
- package/dist/cjs/components/pagination/pagination-item.js +5 -5
- package/dist/cjs/components/pagination/pagination-list.js +5 -5
- package/dist/cjs/components/popover/index.js +4 -4
- package/dist/cjs/components/popover/popover-trigger-context.js +3 -3
- package/dist/cjs/components/popover/popover-trigger.js +6 -6
- package/dist/cjs/components/search/index.js +5 -5
- package/dist/cjs/components/search/search-button.js +2 -2
- package/dist/cjs/components/search/search-clear.js +2 -2
- package/dist/cjs/components/search/search-input.js +1 -1
- package/dist/cjs/components/select/index.js +4 -4
- package/dist/cjs/components/select/select-optgroup.js +4 -4
- package/dist/cjs/components/select/select-option.js +2 -2
- package/dist/cjs/components/suggestion/suggestion-chips.js +6 -8
- package/dist/cjs/components/suggestion/suggestion-input.js +2 -5
- package/dist/cjs/components/suggestion/suggestion-list.js +5 -11
- package/dist/cjs/components/suggestion/suggestion-option.js +12 -0
- package/dist/cjs/components/suggestion/suggestion.js +28 -16
- package/dist/cjs/components/table/index.js +9 -9
- package/dist/cjs/components/table/table-body.js +6 -6
- package/dist/cjs/components/table/table-cell.js +1 -1
- package/dist/cjs/components/table/table-foot.js +6 -6
- package/dist/cjs/components/table/table-head.js +6 -6
- package/dist/cjs/components/table/table-header-cell.js +1 -1
- package/dist/cjs/components/table/table-row.js +4 -4
- package/dist/cjs/components/tabs/index.js +5 -5
- package/dist/cjs/components/tabs/tabs-list.js +4 -4
- package/dist/cjs/components/tabs/tabs-panel.js +1 -1
- package/dist/cjs/components/tabs/tabs-tab.js +1 -1
- package/dist/cjs/components/toggle-group/index.js +3 -3
- package/dist/cjs/components/toggle-group/toggle-group-item.js +1 -1
- package/dist/esm/components/breadcrumbs/index.js +7 -7
- package/dist/esm/components/card/index.js +4 -4
- package/dist/esm/components/checkbox/checkbox.js +2 -2
- package/dist/esm/components/chip/index.js +6 -6
- package/dist/esm/components/details/index.js +5 -5
- package/dist/esm/components/dialog/dialog.js +3 -2
- package/dist/esm/components/dialog/index.js +6 -6
- package/dist/esm/components/dropdown/dropdown-button.js +12 -0
- package/dist/esm/components/dropdown/dropdown-heading.js +8 -0
- package/dist/esm/components/dropdown/dropdown-item.js +12 -0
- package/dist/esm/components/dropdown/dropdown-list.js +12 -0
- package/dist/esm/components/dropdown/dropdown-trigger-context.js +9 -9
- package/dist/esm/components/dropdown/dropdown-trigger.js +16 -0
- package/dist/esm/components/dropdown/index.js +21 -10
- package/dist/esm/components/error-summary/error-summary-heading.js +8 -0
- package/dist/esm/components/error-summary/error-summary-item.js +4 -4
- package/dist/esm/components/error-summary/error-summary-link.js +8 -1
- package/dist/esm/components/error-summary/error-summary-list.js +17 -2
- package/dist/esm/components/error-summary/index.js +7 -7
- package/dist/esm/components/field/field-description.js +6 -0
- package/dist/esm/components/field/field-observer.js +7 -5
- package/dist/esm/components/field/index.js +7 -7
- package/dist/esm/components/fieldset/fieldset-description.js +2 -2
- package/dist/esm/components/fieldset/fieldset-legend.js +1 -1
- package/dist/esm/components/fieldset/index.js +5 -5
- package/dist/esm/components/list/index.js +5 -5
- package/dist/esm/components/list/list-item.js +6 -0
- package/dist/esm/components/list/lists.js +8 -8
- package/dist/esm/components/pagination/index.js +6 -6
- package/dist/esm/components/pagination/pagination-button.js +3 -3
- package/dist/esm/components/pagination/pagination-item.js +5 -5
- package/dist/esm/components/pagination/pagination-list.js +5 -5
- package/dist/esm/components/popover/index.js +5 -5
- package/dist/esm/components/popover/popover-trigger-context.js +3 -3
- package/dist/esm/components/popover/popover-trigger.js +6 -6
- package/dist/esm/components/radio/radio.js +2 -2
- package/dist/esm/components/search/index.js +6 -6
- package/dist/esm/components/search/search-button.js +2 -2
- package/dist/esm/components/search/search-clear.js +2 -2
- package/dist/esm/components/search/search-input.js +1 -1
- package/dist/esm/components/select/index.js +5 -5
- package/dist/esm/components/select/select-optgroup.js +4 -4
- package/dist/esm/components/select/select-option.js +2 -2
- package/dist/esm/components/suggestion/suggestion-chips.js +6 -8
- package/dist/esm/components/suggestion/suggestion-input.js +3 -6
- package/dist/esm/components/suggestion/suggestion-list.js +6 -12
- package/dist/esm/components/suggestion/suggestion-option.js +12 -0
- package/dist/esm/components/suggestion/suggestion.js +28 -16
- package/dist/esm/components/switch/switch.js +2 -2
- package/dist/esm/components/table/index.js +10 -10
- package/dist/esm/components/table/table-body.js +6 -6
- package/dist/esm/components/table/table-cell.js +1 -1
- package/dist/esm/components/table/table-foot.js +6 -6
- package/dist/esm/components/table/table-head.js +6 -6
- package/dist/esm/components/table/table-header-cell.js +1 -1
- package/dist/esm/components/table/table-row.js +4 -4
- package/dist/esm/components/tabs/index.js +6 -6
- package/dist/esm/components/tabs/tabs-list.js +4 -4
- package/dist/esm/components/tabs/tabs-panel.js +1 -1
- package/dist/esm/components/tabs/tabs-tab.js +1 -1
- package/dist/esm/components/textfield/textfield.js +2 -2
- package/dist/esm/components/toggle-group/index.js +4 -4
- package/dist/esm/components/toggle-group/toggle-group-item.js +1 -1
- package/dist/react-types.d.ts +1 -2
- package/dist/types/colors.d.ts +1 -23
- package/dist/types/colors.d.ts.map +1 -1
- package/dist/types/components/Combobox/Combobox.d.ts +2 -2
- package/dist/types/components/Combobox/useFormField/useFormField.d.ts +1 -1
- package/dist/types/components/Combobox/useFormField/useFormField.d.ts.map +1 -1
- package/dist/types/components/alert/alert.d.ts +1 -1
- package/dist/types/components/alert/alert.d.ts.map +1 -1
- package/dist/types/components/avatar/avatar.d.ts +2 -1
- package/dist/types/components/avatar/avatar.d.ts.map +1 -1
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/badge/badge.d.ts.map +1 -1
- package/dist/types/components/badge/index.d.ts +1 -1
- package/dist/types/components/breadcrumbs/index.d.ts +48 -12
- package/dist/types/components/breadcrumbs/index.d.ts.map +1 -1
- package/dist/types/components/button/button.d.ts +3 -3
- package/dist/types/components/button/button.d.ts.map +1 -1
- package/dist/types/components/card/index.d.ts +18 -10
- package/dist/types/components/card/index.d.ts.map +1 -1
- package/dist/types/components/chip/index.d.ts +33 -14
- package/dist/types/components/chip/index.d.ts.map +1 -1
- package/dist/types/components/details/index.d.ts +19 -7
- package/dist/types/components/details/index.d.ts.map +1 -1
- package/dist/types/components/dialog/dialog-trigger.d.ts +1 -1
- package/dist/types/components/dialog/dialog.d.ts.map +1 -1
- package/dist/types/components/dialog/index.d.ts +46 -25
- package/dist/types/components/dialog/index.d.ts.map +1 -1
- package/dist/types/components/dropdown/dropdown-button.d.ts +12 -0
- package/dist/types/components/dropdown/dropdown-button.d.ts.map +1 -1
- package/dist/types/components/dropdown/dropdown-heading.d.ts +8 -0
- package/dist/types/components/dropdown/dropdown-heading.d.ts.map +1 -1
- package/dist/types/components/dropdown/dropdown-item.d.ts +12 -0
- package/dist/types/components/dropdown/dropdown-item.d.ts.map +1 -1
- package/dist/types/components/dropdown/dropdown-list.d.ts +12 -0
- package/dist/types/components/dropdown/dropdown-list.d.ts.map +1 -1
- package/dist/types/components/dropdown/dropdown-trigger-context.d.ts +9 -9
- package/dist/types/components/dropdown/dropdown-trigger.d.ts +16 -0
- package/dist/types/components/dropdown/dropdown-trigger.d.ts.map +1 -1
- package/dist/types/components/dropdown/index.d.ts +99 -19
- package/dist/types/components/dropdown/index.d.ts.map +1 -1
- package/dist/types/components/error-summary/error-summary-heading.d.ts +8 -0
- package/dist/types/components/error-summary/error-summary-heading.d.ts.map +1 -1
- package/dist/types/components/error-summary/error-summary-item.d.ts +4 -4
- package/dist/types/components/error-summary/error-summary-link.d.ts +8 -1
- package/dist/types/components/error-summary/error-summary-link.d.ts.map +1 -1
- package/dist/types/components/error-summary/error-summary-list.d.ts +15 -0
- package/dist/types/components/error-summary/error-summary-list.d.ts.map +1 -1
- package/dist/types/components/error-summary/index.d.ts +52 -20
- package/dist/types/components/error-summary/index.d.ts.map +1 -1
- package/dist/types/components/field/field-counter.d.ts +1 -1
- package/dist/types/components/field/field-description.d.ts +6 -0
- package/dist/types/components/field/field-description.d.ts.map +1 -1
- package/dist/types/components/field/field-observer.d.ts.map +1 -1
- package/dist/types/components/field/index.d.ts +45 -17
- package/dist/types/components/field/index.d.ts.map +1 -1
- package/dist/types/components/fieldset/fieldset-description.d.ts +2 -2
- package/dist/types/components/fieldset/fieldset-legend.d.ts +1 -1
- package/dist/types/components/fieldset/index.d.ts +21 -9
- package/dist/types/components/fieldset/index.d.ts.map +1 -1
- package/dist/types/components/list/index.d.ts +32 -11
- package/dist/types/components/list/index.d.ts.map +1 -1
- package/dist/types/components/list/list-item.d.ts +6 -0
- package/dist/types/components/list/list-item.d.ts.map +1 -1
- package/dist/types/components/list/lists.d.ts +8 -8
- package/dist/types/components/pagination/index.d.ts +38 -15
- package/dist/types/components/pagination/index.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination-button.d.ts +3 -3
- package/dist/types/components/pagination/pagination-item.d.ts +5 -5
- package/dist/types/components/pagination/pagination-list.d.ts +5 -5
- package/dist/types/components/popover/index.d.ts +39 -18
- package/dist/types/components/popover/index.d.ts.map +1 -1
- package/dist/types/components/popover/popover-trigger-context.d.ts +3 -3
- package/dist/types/components/popover/popover-trigger.d.ts +6 -6
- package/dist/types/components/popover/popover.d.ts +1 -1
- package/dist/types/components/popover/popover.d.ts.map +1 -1
- package/dist/types/components/search/index.d.ts +34 -15
- package/dist/types/components/search/index.d.ts.map +1 -1
- package/dist/types/components/search/search-button.d.ts +3 -3
- package/dist/types/components/search/search-clear.d.ts +2 -2
- package/dist/types/components/search/search-input.d.ts +1 -1
- package/dist/types/components/select/index.d.ts +27 -12
- package/dist/types/components/select/index.d.ts.map +1 -1
- package/dist/types/components/select/select-optgroup.d.ts +4 -4
- package/dist/types/components/select/select-option.d.ts +2 -2
- package/dist/types/components/suggestion/index.d.ts +71 -41
- package/dist/types/components/suggestion/index.d.ts.map +1 -1
- package/dist/types/components/suggestion/suggestion-chips.d.ts +6 -14
- package/dist/types/components/suggestion/suggestion-chips.d.ts.map +1 -1
- package/dist/types/components/suggestion/suggestion-input.d.ts.map +1 -1
- package/dist/types/components/suggestion/suggestion-list.d.ts.map +1 -1
- package/dist/types/components/suggestion/suggestion-option.d.ts +12 -0
- package/dist/types/components/suggestion/suggestion-option.d.ts.map +1 -1
- package/dist/types/components/suggestion/suggestion.d.ts +79 -22
- package/dist/types/components/suggestion/suggestion.d.ts.map +1 -1
- package/dist/types/components/table/index.d.ts +65 -16
- package/dist/types/components/table/index.d.ts.map +1 -1
- package/dist/types/components/table/table-body.d.ts +6 -6
- package/dist/types/components/table/table-cell.d.ts +1 -1
- package/dist/types/components/table/table-foot.d.ts +6 -6
- package/dist/types/components/table/table-head.d.ts +6 -6
- package/dist/types/components/table/table-header-cell.d.ts +1 -1
- package/dist/types/components/table/table-row.d.ts +4 -4
- package/dist/types/components/tabs/index.d.ts +29 -14
- package/dist/types/components/tabs/index.d.ts.map +1 -1
- package/dist/types/components/tabs/tabs-list.d.ts +4 -4
- package/dist/types/components/tabs/tabs-panel.d.ts +1 -1
- package/dist/types/components/tabs/tabs-tab.d.ts +1 -1
- package/dist/types/components/tag/tag.d.ts +1 -1
- package/dist/types/components/tag/tag.d.ts.map +1 -1
- package/dist/types/components/toggle-group/index.d.ts +11 -11
- package/dist/types/components/toggle-group/index.d.ts.map +1 -1
- package/dist/types/components/toggle-group/toggle-group-item.d.ts +1 -1
- package/dist/types/components/validation-message/validation-message.d.ts +1 -1
- package/dist/types/components/validation-message/validation-message.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utilities/roving-focus/use-roving-focus.d.ts +2 -2
- package/package.json +9 -8
|
@@ -8,7 +8,7 @@ import { useMergeRefs } from '../../utilities/hooks/use-merge-refs/use-merge-ref
|
|
|
8
8
|
* A single content item in a Tabs component.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* <
|
|
11
|
+
* <TabsPanel value='1'>content 1</TabsPanel>
|
|
12
12
|
*/
|
|
13
13
|
const TabsPanel = forwardRef(function TabsPanel({ children, value, ...rest }, ref) {
|
|
14
14
|
const { value: tabsValue } = useContext(Context);
|
|
@@ -8,7 +8,7 @@ import { Context } from './tabs.js';
|
|
|
8
8
|
* A single item in a Tabs component.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* <
|
|
11
|
+
* <TabsTab value='1'>Tab 1</TabsTab>
|
|
12
12
|
*/
|
|
13
13
|
const TabsTab = forwardRef(function TabsTab({ value, id, ...rest }, ref) {
|
|
14
14
|
const tabs = useContext(Context);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import { Field } from '../field/index.js';
|
|
4
|
+
import { Field as FieldComponent } from '../field/index.js';
|
|
5
5
|
import { Input } from '../input/input.js';
|
|
6
6
|
import { Label } from '../label/label.js';
|
|
7
7
|
import { Textarea } from '../textarea/textarea.js';
|
|
@@ -19,7 +19,7 @@ import { FieldAffixes, FieldAffix } from '../field/field-affix.js';
|
|
|
19
19
|
* <Textfield label="Textfield label">
|
|
20
20
|
*/
|
|
21
21
|
const Textfield = forwardRef(function Textfield({ label, description, error, multiline, prefix, suffix, 'data-size': size, counter, style, className, ...rest }, ref) {
|
|
22
|
-
return (jsxs(
|
|
22
|
+
return (jsxs(FieldComponent, { className: className, "data-size": size, style: style, children: [!!label && jsx(Label, { children: label }), !!description && jsx(FieldDescription, { children: description }), jsxs(FieldAffixes, { children: [prefix === undefined || jsx(FieldAffix, { children: prefix }), multiline === true ? (jsx(Textarea, { ref: ref, "aria-invalid": Boolean(error) || undefined, ...rest })) : (jsx(Input, { ref: ref, "aria-invalid": Boolean(error) || undefined, ...rest })), suffix === undefined || jsx(FieldAffix, { children: suffix })] }), !!error && jsx(ValidationMessage, { children: error }), !!counter && (jsx(FieldComponent.Counter, { ...(typeof counter === 'number' ? { limit: counter } : counter) }))] }));
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
export { Textfield };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { ToggleGroup
|
|
2
|
+
import { ToggleGroup } from './toggle-group.js';
|
|
3
3
|
import { ToggleGroupItem } from './toggle-group-item.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -12,9 +12,9 @@ import { ToggleGroupItem } from './toggle-group-item.js';
|
|
|
12
12
|
* <ToggleGroup.Item value='3'>Toggle 3</ToggleGroup.Item>
|
|
13
13
|
* </ToggleGroup>
|
|
14
14
|
*/
|
|
15
|
-
const
|
|
15
|
+
const ToggleGroupComponent = Object.assign(ToggleGroup, {
|
|
16
16
|
Item: ToggleGroupItem,
|
|
17
17
|
});
|
|
18
|
-
|
|
18
|
+
ToggleGroupComponent.Item.displayName = 'ToggleGroup.Item';
|
|
19
19
|
|
|
20
|
-
export { ToggleGroup, ToggleGroupItem };
|
|
20
|
+
export { ToggleGroupComponent as ToggleGroup, ToggleGroupItem };
|
|
@@ -8,7 +8,7 @@ import { useToggleGroupItem } from './use-toggle-groupitem.js';
|
|
|
8
8
|
/**
|
|
9
9
|
* A single item in a ToggleGroup.
|
|
10
10
|
* @example
|
|
11
|
-
* <
|
|
11
|
+
* <ToggleGroupItem value='1'>Toggle 1</ToggleGroupItem>
|
|
12
12
|
*/
|
|
13
13
|
const ToggleGroupItem = forwardRef(function ToggleGroupItem(rest, ref) {
|
|
14
14
|
const { active, buttonProps, value } = useToggleGroupItem(rest);
|
package/dist/react-types.d.ts
CHANGED
package/dist/types/colors.d.ts
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type EmptyObject = {
|
|
3
|
-
[emptyObjectSymbol]?: never;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Base interface for available colors in Designsystemet.
|
|
7
|
-
* The CLI will generate augmentations of this interface to allow
|
|
8
|
-
* type safety of custom color names.
|
|
9
|
-
*/
|
|
10
|
-
export interface MainAndSupportColors {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* If {@link MainAndSupportColors} has been extended to include color names, return T,
|
|
14
|
-
* otherwise return the arbitrary string type.
|
|
15
|
-
*/
|
|
16
|
-
type ColorWithFallback<T> = MainAndSupportColors extends EmptyObject ? string : T;
|
|
17
|
-
export type SeverityInfo = 'info';
|
|
18
|
-
export type SeveritySuccess = 'success';
|
|
19
|
-
export type SeverityWarning = 'warning';
|
|
20
|
-
export type SeverityDanger = 'danger';
|
|
21
|
-
export type SeverityColors = SeverityInfo | SeveritySuccess | SeverityWarning | SeverityDanger;
|
|
22
|
-
export type Color = ColorWithFallback<'neutral' | keyof MainAndSupportColors>;
|
|
23
|
-
export {};
|
|
1
|
+
export type { Color, SeverityColors, } from '@digdir/designsystemet/types';
|
|
24
2
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,cAAc,GACf,MAAM,8BAA8B,CAAC"}
|
|
@@ -206,7 +206,7 @@ export declare const ComboboxComponent: React.ForwardRefExoticComponent<{
|
|
|
206
206
|
description?: ReactNode;
|
|
207
207
|
id?: string;
|
|
208
208
|
readOnly?: boolean;
|
|
209
|
-
size?: import("
|
|
209
|
+
size?: import("packages/cli/dist/src/types").Size;
|
|
210
210
|
} & Pick<React.HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
211
211
|
export declare const Combobox: React.ForwardRefExoticComponent<{
|
|
212
212
|
/**
|
|
@@ -312,6 +312,6 @@ export declare const Combobox: React.ForwardRefExoticComponent<{
|
|
|
312
312
|
description?: ReactNode;
|
|
313
313
|
id?: string;
|
|
314
314
|
readOnly?: boolean;
|
|
315
|
-
size?: import("
|
|
315
|
+
size?: import("packages/cli/dist/src/types").Size;
|
|
316
316
|
} & Pick<React.HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
317
317
|
//# sourceMappingURL=Combobox.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Size } from '@digdir/designsystemet/types';
|
|
1
2
|
import type { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import type { Size } from '../../../types';
|
|
3
3
|
export type FormFieldProps = {
|
|
4
4
|
/** Error message for form field */
|
|
5
5
|
error?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormField.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/useFormField/useFormField.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFormField.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/useFormField/useFormField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5E,MAAM,MAAM,cAAc,GAAG;IAC3B,mCAAmC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2BAA2B;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,IAAI,CACN,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,UAAU,GAAG,cAAc,GAAG,kBAAkB,CACjD,CAAC;CACH,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,cAAc,EACrB,QAAQ,MAAM,KACb,SAkCF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { SeverityColors } from '@digdir/designsystemet/types';
|
|
1
2
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
import type { SeverityColors } from '../../colors';
|
|
3
3
|
import type { DefaultProps } from '../../types';
|
|
4
4
|
import type { MergeRight } from '../../utilities';
|
|
5
5
|
export type AlertProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAfd;;;;OAIG;mBACY,cAAc;wCAsB/B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Size } from '@digdir/designsystemet/types';
|
|
1
2
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import type { DefaultProps
|
|
3
|
+
import type { DefaultProps } from '../../types';
|
|
3
4
|
import type { MergeRight } from '../../utilities';
|
|
4
5
|
export type AvatarProps = MergeRight<DefaultProps & HTMLAttributes<HTMLSpanElement>, {
|
|
5
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,cAAc,CAAC,eAAe,CAAC,EAC9C;IACE;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM;IA3Cf;;OAEG;kBACW,MAAM;IACpB;;OAEG;kBACW,IAAI,GAAG,IAAI;IACzB;;;;OAIG;cACO,QAAQ,GAAG,QAAQ;IAC7B;;OAEG;eACQ,MAAM;IACjB;;;;OAIG;eACQ,SAAS;yCAkDtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Color, SeverityColors } from '@digdir/designsystemet
|
|
1
|
+
import type { Color, SeverityColors } from '@digdir/designsystemet/types';
|
|
2
2
|
import { type HTMLAttributes } from 'react';
|
|
3
3
|
import type { DefaultProps } from '../../types';
|
|
4
4
|
import type { MergeRight } from '../../utilities';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,eAAe,CAAC,EAC9C;IACE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,CACF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK;IAjCd;;OAEG;YACK,MAAM;IACd;;OAEG;eACQ,MAAM;IACjB;;;;OAIG;cACO,MAAM,GAAG,QAAQ;IAC3B;;OAEG;mBACY,KAAK,GAAG,cAAc;eAC1B,KAAK;yCA8BlB,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const Badge: React.ForwardRefExoticComponent<Omit<import("../../types").
|
|
|
9
9
|
count?: number;
|
|
10
10
|
maxCount?: number;
|
|
11
11
|
variant?: "base" | "tinted";
|
|
12
|
-
'data-color'?: import("
|
|
12
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | import("packages/cli/dist/src/types").SeverityColors;
|
|
13
13
|
children?: never;
|
|
14
14
|
} & React.RefAttributes<HTMLSpanElement>> & {
|
|
15
15
|
Position: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLSpanElement>, "placement" | "overlap"> & {
|
|
@@ -1,11 +1,56 @@
|
|
|
1
|
+
import { Breadcrumbs as BreadcrumbsParent } from './breadcrumbs';
|
|
1
2
|
import { BreadcrumbsItem } from './breadcrumbs-item';
|
|
2
3
|
import { BreadcrumbsLink } from './breadcrumbs-link';
|
|
3
4
|
import { BreadcrumbsList } from './breadcrumbs-list';
|
|
5
|
+
type Breadcrumbs = typeof BreadcrumbsParent & {
|
|
6
|
+
/**
|
|
7
|
+
* Component that provides a Breadcrumbs item.
|
|
8
|
+
*
|
|
9
|
+
* Place as a descendant of `Breadcrumbs.List`
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <Breadcrumbs.List>
|
|
13
|
+
* <Breadcrumbs.Item>
|
|
14
|
+
* <Breadcrumbs.Link href='#'>Nivå 1</Breadcrumbs.Link>
|
|
15
|
+
* </Breadcrumbs.Item>
|
|
16
|
+
* </Breadcrumbs.List>
|
|
17
|
+
*/
|
|
18
|
+
Item: typeof BreadcrumbsItem;
|
|
19
|
+
/**
|
|
20
|
+
* Component that provides a link for the Breadcrumbs.
|
|
21
|
+
*
|
|
22
|
+
* Place as a descendant of `Breadcrumbs`
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <Breadcrumbs>
|
|
26
|
+
* <Breadcrumbs.Link href='#'>Nivå 1</Breadcrumbs.Link>
|
|
27
|
+
* </Breadcrumbs>
|
|
28
|
+
*/
|
|
29
|
+
Link: typeof BreadcrumbsLink;
|
|
30
|
+
/**
|
|
31
|
+
* Component that provides a list of Breadcrumbs items.
|
|
32
|
+
*
|
|
33
|
+
* Place as a descendant of `Breadcrumbs`
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* <Breadcrumbs>
|
|
37
|
+
* <Breadcrumbs.List>
|
|
38
|
+
* <Breadcrumbs.Item>
|
|
39
|
+
* <Breadcrumbs.Link href='#'>Nivå 1</Breadcrumbs.Link>
|
|
40
|
+
* </Breadcrumbs.Item>
|
|
41
|
+
* <Breadcrumbs.Item>
|
|
42
|
+
* <Breadcrumbs.Link href='#'>Nivå 2</Breadcrumbs.Link>
|
|
43
|
+
* </Breadcrumbs.Item>
|
|
44
|
+
* </Breadcrumbs.List>
|
|
45
|
+
* </Breadcrumbs>
|
|
46
|
+
*/
|
|
47
|
+
List: typeof BreadcrumbsList;
|
|
48
|
+
};
|
|
4
49
|
/**
|
|
5
50
|
* `Breadcrumbs` is a component that displays a list of breadcrumbs.
|
|
6
51
|
*
|
|
7
52
|
* @example
|
|
8
|
-
* <Breadcrumbs aria-label='Du er her:'
|
|
53
|
+
* <Breadcrumbs aria-label='Du er her:'>
|
|
9
54
|
* <Breadcrumbs.Link href='#' aria-label='Tilbake til Nivå 1'>
|
|
10
55
|
* Nivå 1
|
|
11
56
|
* </Breadcrumbs.Link>
|
|
@@ -19,19 +64,10 @@ import { BreadcrumbsList } from './breadcrumbs-list';
|
|
|
19
64
|
* </Breadcrumbs.List>
|
|
20
65
|
* </Breadcrumbs>
|
|
21
66
|
*/
|
|
22
|
-
|
|
23
|
-
'aria-label'?: string;
|
|
24
|
-
} & React.RefAttributes<HTMLElement>> & {
|
|
25
|
-
List: React.ForwardRefExoticComponent<import("./breadcrumbs-list").BreadcrumbsListProps & React.RefAttributes<HTMLOListElement>>;
|
|
26
|
-
Item: React.ForwardRefExoticComponent<import("./breadcrumbs-item").BreadcrumbsItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
27
|
-
Link: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
|
|
28
|
-
children: React.ReactNode;
|
|
29
|
-
asChild?: boolean;
|
|
30
|
-
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
31
|
-
};
|
|
67
|
+
declare const BreadcrumbsComponent: Breadcrumbs;
|
|
32
68
|
export type { BreadcrumbsProps } from './breadcrumbs';
|
|
33
69
|
export type { BreadcrumbsItemProps } from './breadcrumbs-item';
|
|
34
70
|
export type { BreadcrumbsLinkProps } from './breadcrumbs-link';
|
|
35
71
|
export type { BreadcrumbsListProps } from './breadcrumbs-list';
|
|
36
|
-
export { BreadcrumbsList, BreadcrumbsItem, BreadcrumbsLink };
|
|
72
|
+
export { BreadcrumbsComponent as Breadcrumbs, BreadcrumbsList, BreadcrumbsItem, BreadcrumbsLink, };
|
|
37
73
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumbs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumbs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,KAAK,WAAW,GAAG,OAAO,iBAAiB,GAAG;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,EAAE,OAAO,eAAe,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,oBAAoB,EAAE,WAI1B,CAAC;AAMH,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,oBAAoB,IAAI,WAAW,EACnC,eAAe,EACf,eAAe,EACf,eAAe,GAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Color,
|
|
1
|
+
import type { Color, SeverityColors } from '@digdir/designsystemet/types';
|
|
2
2
|
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import type { DefaultProps } from '../../types';
|
|
4
4
|
import type { MergeRight } from '../../utilities';
|
|
@@ -11,7 +11,7 @@ export type ButtonProps = MergeRight<DefaultProps & ButtonHTMLAttributes<HTMLBut
|
|
|
11
11
|
/**
|
|
12
12
|
* Change the color scheme of the button
|
|
13
13
|
*/
|
|
14
|
-
'data-color'?: Color |
|
|
14
|
+
'data-color'?: Color | Extract<SeverityColors, 'danger'>;
|
|
15
15
|
/**
|
|
16
16
|
* Toggle icon only styling, pass icon as children
|
|
17
17
|
* @default false
|
|
@@ -50,7 +50,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<DefaultProps &
|
|
|
50
50
|
/**
|
|
51
51
|
* Change the color scheme of the button
|
|
52
52
|
*/
|
|
53
|
-
'data-color'?: Color |
|
|
53
|
+
'data-color'?: Color | Extract<SeverityColors, "danger">;
|
|
54
54
|
/**
|
|
55
55
|
* Toggle icon only styling, pass icon as children
|
|
56
56
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACzD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM;IAxCf;;;OAGG;cACO,SAAS,GAAG,WAAW,GAAG,UAAU;IAC9C;;OAEG;mBACY,KAAK,GAAG,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC;IACxD;;;OAGG;WACI,OAAO;IACd;;;;;OAKG;cACO,OAAO,GAAG,SAAS;IAC7B;;;OAGG;cACO,OAAO;IACjB;;;OAGG;WACI,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;2CAgDzD,CAAC"}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
+
import { Card as CardParent } from './card';
|
|
1
2
|
import { CardBlock } from './card-block';
|
|
3
|
+
type Card = typeof CardParent & {
|
|
4
|
+
/**
|
|
5
|
+
* Use `Card.Block` to segment content with divider lines or to add full-bleed pictures/video
|
|
6
|
+
*
|
|
7
|
+
* Place as a descendant of `Card`
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Card>
|
|
11
|
+
* <Card.Block>Header</Card.Block>
|
|
12
|
+
* <Card.Block>Content</Card.Block>
|
|
13
|
+
* <Card.Block>Footer</Card.Block>
|
|
14
|
+
* </Card>
|
|
15
|
+
*/
|
|
16
|
+
Block: typeof CardBlock;
|
|
17
|
+
};
|
|
2
18
|
/**
|
|
3
19
|
* Card component to present content in a structured way.
|
|
4
20
|
*
|
|
@@ -9,16 +25,8 @@ import { CardBlock } from './card-block';
|
|
|
9
25
|
* <Card.Block>Footer</Card.Block>
|
|
10
26
|
* </Card>
|
|
11
27
|
*/
|
|
12
|
-
declare const
|
|
13
|
-
variant?: "default" | "tinted";
|
|
14
|
-
asChild?: boolean;
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
} & React.RefAttributes<HTMLDivElement>> & {
|
|
17
|
-
Block: React.ForwardRefExoticComponent<{
|
|
18
|
-
asChild?: boolean;
|
|
19
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
};
|
|
28
|
+
declare const CardComponent: Card;
|
|
21
29
|
export type { CardProps } from './card';
|
|
22
30
|
export type { CardBlockProps } from './card-block';
|
|
23
|
-
export { Card, CardBlock };
|
|
31
|
+
export { CardComponent as Card, CardBlock };
|
|
24
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,KAAK,IAAI,GAAG,OAAO,UAAU,GAAG;IAC9B;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,OAAO,SAAS,CAAC;CACzB,CAAC;AACF;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,EAAE,IAEnB,CAAC;AAIH,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,18 +1,37 @@
|
|
|
1
1
|
import { ChipButton, ChipCheckbox, ChipRadio, ChipRemovable } from './chips';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
type Chip = {
|
|
3
|
+
/**
|
|
4
|
+
* Chip.Button used for interaction
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Chip.Button>Click me</Chip.Button>
|
|
8
|
+
*/
|
|
9
|
+
Button: typeof ChipButton;
|
|
10
|
+
/**
|
|
11
|
+
* Chip.Checkbox used for multiselection
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* <Chip.Checkbox name="language" value="nynorsk">Nynorsk</Chip.Checkbox>
|
|
15
|
+
* <Chip.Checkbox name="language" value="bokmål">Bokmål</Chip.Checkbox>
|
|
16
|
+
*/
|
|
17
|
+
Checkbox: typeof ChipCheckbox;
|
|
18
|
+
/**
|
|
19
|
+
* Chip.Radio used for single selection
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <Chip.Radio name="language" value="nynorsk">Nynorsk</Chip.Radio>
|
|
23
|
+
* <Chip.Radio name="language" value="bokmål">Bokmål</Chip.Radio>
|
|
24
|
+
*/
|
|
25
|
+
Radio: typeof ChipRadio;
|
|
26
|
+
/**
|
|
27
|
+
* Chip.Removable used for interaction
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <Chip.Removable>Click to remove me</Chip.Removable>
|
|
31
|
+
*/
|
|
32
|
+
Removable: typeof ChipRemovable;
|
|
15
33
|
};
|
|
34
|
+
declare const ChipComponent: Chip;
|
|
16
35
|
export type { ChipButtonProps, ChipCheckboxProps, ChipRadioProps, ChipRemovableProps, } from './chips';
|
|
17
|
-
export { Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable };
|
|
36
|
+
export { ChipComponent as Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable, };
|
|
18
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,KAAK,IAAI,GAAG;IACV;;;;;OAKG;IACH,MAAM,EAAE,OAAO,UAAU,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,YAAY,CAAC;IAC9B;;;;;;OAMG;IACH,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB;;;;;OAKG;IACH,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,IAKpB,CAAC;AAOF,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,aAAa,IAAI,IAAI,EACrB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,aAAa,GACd,CAAC"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
+
import { Details as DetailsParent } from './details';
|
|
1
2
|
import { DetailsContent } from './details-content';
|
|
2
3
|
import { DetailsSummary } from './details-summary';
|
|
4
|
+
type Details = typeof DetailsParent & {
|
|
5
|
+
/**
|
|
6
|
+
* Details summary component, contains a the heading to toggle the content.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <Details.Summary>Heading</Details.Summary>
|
|
10
|
+
*/
|
|
11
|
+
Summary: typeof DetailsSummary;
|
|
12
|
+
/**
|
|
13
|
+
* Details content component, contains the content of the details item.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <DetailsContent>Content</DetailsContent>
|
|
17
|
+
*/
|
|
18
|
+
Content: typeof DetailsContent;
|
|
19
|
+
};
|
|
3
20
|
/**
|
|
4
21
|
* Details component, contains `Details.Summary` and `Details.Content` components.
|
|
5
22
|
*
|
|
@@ -9,14 +26,9 @@ import { DetailsSummary } from './details-summary';
|
|
|
9
26
|
* <Details.Content>Content</Details.Content>
|
|
10
27
|
* </Details>
|
|
11
28
|
*/
|
|
12
|
-
declare const
|
|
13
|
-
Summary: React.ForwardRefExoticComponent<{
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
} & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
16
|
-
Content: React.ForwardRefExoticComponent<import("./details-content").DetailsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
};
|
|
29
|
+
declare const DetailsComponent: Details;
|
|
18
30
|
export type { DetailsProps } from './details';
|
|
19
31
|
export type { DetailsContentProps } from './details-content';
|
|
20
32
|
export type { DetailsSummaryProps } from './details-summary';
|
|
21
|
-
export { Details, DetailsContent, DetailsSummary };
|
|
33
|
+
export { DetailsComponent as Details, DetailsContent, DetailsSummary };
|
|
22
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/details/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/details/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,OAAO,GAAG,OAAO,aAAa,GAAG;IACpC;;;;;OAKG;IACH,OAAO,EAAE,OAAO,cAAc,CAAC;IAC/B;;;;;OAKG;IACH,OAAO,EAAE,OAAO,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,EAAE,OAGtB,CAAC;AAKH,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -14,7 +14,7 @@ export type DialogTriggerProps = ComponentPropsWithRef<typeof Button>;
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
|
|
16
16
|
variant?: "primary" | "secondary" | "tertiary";
|
|
17
|
-
'data-color'?: import("
|
|
17
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
|
|
18
18
|
icon?: boolean;
|
|
19
19
|
loading?: boolean | React.ReactNode;
|
|
20
20
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,KAAK,CAAC;IAC3C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,MAAM;IA1Df;;;OAGG;kBACW,MAAM,GAAG,KAAK;IAC5B;;;;OAIG;eACQ,MAAM,GAAG,cAAc,GAAG,KAAK;IAC1C;;;;;;OAMG;YACK,OAAO;IACf;;OAEG;WACI,OAAO;IACd;;OAEG;cACO,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;IAChC;;;OAGG;cACO,OAAO;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,KAAK,CAAC;IAC3C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,MAAM;IA1Df;;;OAGG;kBACW,MAAM,GAAG,KAAK;IAC5B;;;;OAIG;eACQ,MAAM,GAAG,cAAc,GAAG,KAAK;IAC1C;;;;;;OAMG;YACK,OAAO;IACf;;OAEG;WACI,OAAO;IACd;;OAEG;cACO,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;IAChC;;;OAGG;cACO,OAAO;2CAqHpB,CAAC"}
|
|
@@ -1,6 +1,50 @@
|
|
|
1
|
+
import { Dialog as DialogParent } from './dialog';
|
|
1
2
|
import { DialogBlock } from './dialog-block';
|
|
2
3
|
import { DialogTrigger } from './dialog-trigger';
|
|
3
4
|
import { DialogTriggerContext } from './dialog-trigger-context';
|
|
5
|
+
type Dialog = typeof DialogParent & {
|
|
6
|
+
/**
|
|
7
|
+
* DialogTriggerContext component, used to provide a context for a dialog trigger.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Dialog.TriggerContext>
|
|
11
|
+
* <Dialog.Trigger>Open Dialog</Dialog.Trigger>
|
|
12
|
+
* <Dialog>
|
|
13
|
+
* Content
|
|
14
|
+
* </Dialog>
|
|
15
|
+
* </Dialog.TriggerContext>
|
|
16
|
+
*/
|
|
17
|
+
TriggerContext: typeof DialogTriggerContext;
|
|
18
|
+
/**
|
|
19
|
+
* DialogTrigger component, used within a Dialog.TriggerContext to open a dialog.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <Dialog.TriggerContext>
|
|
23
|
+
* <Dialog.Trigger>Open Dialog</Dialog.Trigger>
|
|
24
|
+
* <Dialog>
|
|
25
|
+
* Content
|
|
26
|
+
* </Dialog>
|
|
27
|
+
* </Dialog.TriggerContext>
|
|
28
|
+
*/
|
|
29
|
+
Trigger: typeof DialogTrigger;
|
|
30
|
+
/**
|
|
31
|
+
* DialogBlock component, used to separate content in a Dialog.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* <Dialog>
|
|
35
|
+
* <Dialog.Block>
|
|
36
|
+
* Header
|
|
37
|
+
* </Dialog.Block>
|
|
38
|
+
* <Dialog.Block>
|
|
39
|
+
* Content
|
|
40
|
+
* </Dialog.Block>
|
|
41
|
+
* <Dialog.Block>
|
|
42
|
+
* Footer
|
|
43
|
+
* </Dialog.Block>
|
|
44
|
+
* </Dialog>
|
|
45
|
+
*/
|
|
46
|
+
Block: typeof DialogBlock;
|
|
47
|
+
};
|
|
4
48
|
/**
|
|
5
49
|
* Dialog component, used to display a Dialog dialog.
|
|
6
50
|
*
|
|
@@ -14,33 +58,10 @@ import { DialogTriggerContext } from './dialog-trigger-context';
|
|
|
14
58
|
* </Dialog>
|
|
15
59
|
* </Dialog.TriggerContext>
|
|
16
60
|
*/
|
|
17
|
-
declare const
|
|
18
|
-
closeButton?: string | false;
|
|
19
|
-
closedby?: "none" | "closerequest" | "any";
|
|
20
|
-
modal?: boolean;
|
|
21
|
-
open?: boolean;
|
|
22
|
-
onClose?: (event: Event) => void;
|
|
23
|
-
asChild?: boolean;
|
|
24
|
-
} & React.RefAttributes<HTMLDialogElement>> & {
|
|
25
|
-
Block: React.ForwardRefExoticComponent<{
|
|
26
|
-
asChild?: boolean;
|
|
27
|
-
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
-
TriggerContext: {
|
|
29
|
-
({ children, }: import("./dialog-trigger-context").DialogTriggerContextProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
32
|
-
Trigger: React.ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
|
|
33
|
-
variant?: "primary" | "secondary" | "tertiary";
|
|
34
|
-
'data-color'?: import("../../colors").Color | import("../../colors").SeverityDanger;
|
|
35
|
-
icon?: boolean;
|
|
36
|
-
loading?: boolean | React.ReactNode;
|
|
37
|
-
asChild?: boolean;
|
|
38
|
-
type?: React.ButtonHTMLAttributes<HTMLButtonElement>["type"];
|
|
39
|
-
} & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
40
|
-
};
|
|
61
|
+
declare const DialogComponent: Dialog;
|
|
41
62
|
export type { DialogProps } from './dialog';
|
|
42
63
|
export type { DialogBlockProps } from './dialog-block';
|
|
43
64
|
export type { DialogTriggerProps } from './dialog-trigger';
|
|
44
65
|
export type { DialogTriggerContextProps } from './dialog-trigger-context';
|
|
45
|
-
export { Dialog, DialogBlock, DialogTriggerContext, DialogTrigger };
|
|
66
|
+
export { DialogComponent as Dialog, DialogBlock, DialogTriggerContext, DialogTrigger, };
|
|
46
67
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,KAAK,MAAM,GAAG,OAAO,YAAY,GAAG;IAClC;;;;;;;;;;OAUG;IACH,cAAc,EAAE,OAAO,oBAAoB,CAAC;IAC5C;;;;;;;;;;OAUG;IACH,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B;;;;;;;;;;;;;;;OAeG;IACH,KAAK,EAAE,OAAO,WAAW,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,eAAe,EAAE,MAIrB,CAAC;AAMH,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EACL,eAAe,IAAI,MAAM,EACzB,WAAW,EACX,oBAAoB,EACpB,aAAa,GACd,CAAC"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { type ButtonProps } from '../button/button';
|
|
2
2
|
export type DropdownButtonProps = Omit<ButtonProps, 'variant'>;
|
|
3
|
+
/**
|
|
4
|
+
* DropdownButton component, used to display a button in the DropdownItem.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Dropdown>
|
|
8
|
+
* <DropdownList>
|
|
9
|
+
* <DropdownItem>
|
|
10
|
+
* <DropdownButton>Button</DropdownButton>
|
|
11
|
+
* </DropdownItem>
|
|
12
|
+
* </DropdownList>
|
|
13
|
+
* </Dropdown>
|
|
14
|
+
*/
|
|
3
15
|
export declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4
16
|
//# sourceMappingURL=dropdown-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-button.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAE/D,eAAO,MAAM,cAAc,+FAKzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"dropdown-button.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAE/D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,+FAKzB,CAAC"}
|