@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
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
import { Fieldset as FieldsetParent } from './fieldset';
|
|
1
2
|
import { FieldsetDescription } from './fieldset-description';
|
|
2
3
|
import { FieldsetLegend } from './fieldset-legend';
|
|
4
|
+
type Fieldset = typeof FieldsetParent & {
|
|
5
|
+
/**
|
|
6
|
+
* Fieldset.Legend component, used to display a legend for a fieldset.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <Fieldset.Legend>Skriv inn dine svar</Fieldset.Legend>
|
|
10
|
+
*/
|
|
11
|
+
Legend: typeof FieldsetLegend;
|
|
12
|
+
/**
|
|
13
|
+
* Fieldset.Description component, used to display a description for a fieldset.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <Fieldset.Description>
|
|
17
|
+
* Gi en kort beskrivelse i begge feltene
|
|
18
|
+
* </Fieldset.Description>
|
|
19
|
+
*/
|
|
20
|
+
Description: typeof FieldsetDescription;
|
|
21
|
+
};
|
|
3
22
|
/**
|
|
4
23
|
* Fieldset component, used to wrap a form field.
|
|
5
24
|
*
|
|
@@ -15,16 +34,9 @@ import { FieldsetLegend } from './fieldset-legend';
|
|
|
15
34
|
* </Field>
|
|
16
35
|
* </Fieldset>
|
|
17
36
|
*/
|
|
18
|
-
declare const
|
|
19
|
-
Legend: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLLegendElement> & import("../../types").DefaultProps & React.RefAttributes<HTMLLegendElement>>;
|
|
20
|
-
Description: React.ForwardRefExoticComponent<{
|
|
21
|
-
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
22
|
-
variant?: "long" | "default" | "short";
|
|
23
|
-
asChild?: boolean;
|
|
24
|
-
} & React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLLegendElement>>;
|
|
25
|
-
};
|
|
37
|
+
declare const FieldsetComponent: Fieldset;
|
|
26
38
|
export type { FieldsetProps } from './fieldset';
|
|
27
39
|
export type { FieldsetDescriptionProps } from './fieldset-description';
|
|
28
40
|
export type { FieldsetLegendProps } from './fieldset-legend';
|
|
29
|
-
export { Fieldset, FieldsetLegend, FieldsetDescription };
|
|
41
|
+
export { FieldsetComponent as Fieldset, FieldsetLegend, FieldsetDescription };
|
|
30
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,QAAQ,GAAG,OAAO,cAAc,GAAG;IACtC;;;;;OAKG;IACH,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B;;;;;;;OAOG;IACH,WAAW,EAAE,OAAO,mBAAmB,CAAC;CACzC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,EAAE,QAGvB,CAAC;AAKH,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
import { ListItem } from './list-item';
|
|
2
2
|
import { ListOrdered, ListUnordered } from './lists';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
type List = {
|
|
4
|
+
/**
|
|
5
|
+
* Component that provides a list item.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <List.Item>Item</List.Item>
|
|
9
|
+
*/
|
|
10
|
+
Item: typeof ListItem;
|
|
11
|
+
/**
|
|
12
|
+
* List.Ordered component, used to display a list of items.
|
|
13
|
+
* Renders a native `ol` element.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <List.Ordered>
|
|
17
|
+
* <List.Item>Item 1</List.Item>
|
|
18
|
+
* <List.Item>Item 2</List.Item>
|
|
19
|
+
* </List.Ordered>
|
|
20
|
+
*/
|
|
21
|
+
Ordered: typeof ListOrdered;
|
|
22
|
+
/**
|
|
23
|
+
* List.Unordered component, used to display a list of items.
|
|
24
|
+
* Renders a native `ul` element.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* <List.Unordered>
|
|
28
|
+
* <List.Item>Item 1</List.Item>
|
|
29
|
+
* <List.Item>Item 2</List.Item>
|
|
30
|
+
* </List.Unordered>
|
|
31
|
+
*/
|
|
32
|
+
Unordered: typeof ListUnordered;
|
|
13
33
|
};
|
|
34
|
+
declare const ListComponent: List;
|
|
14
35
|
export type { ListItemProps } from './list-item';
|
|
15
36
|
export type { ListOrderedProps, ListUnorderedProps } from './lists';
|
|
16
|
-
export { List, ListOrdered, ListUnordered, ListItem };
|
|
37
|
+
export { ListComponent as List, ListOrdered, ListUnordered, ListItem };
|
|
17
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,IAAI,GAAG;IACV;;;;;OAKG;IACH,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB;;;;;;;;;OASG;IACH,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B;;;;;;;;;OASG;IACH,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,IAIpB,CAAC;AAMF,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -6,6 +6,12 @@ export type ListItemProps = {
|
|
|
6
6
|
*/
|
|
7
7
|
asChild?: boolean;
|
|
8
8
|
} & LiHTMLAttributes<HTMLLIElement>;
|
|
9
|
+
/**
|
|
10
|
+
* Component that provides a list item.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <List.Item>Item</List.Item>
|
|
14
|
+
*/
|
|
9
15
|
export declare const ListItem: React.ForwardRefExoticComponent<{
|
|
10
16
|
/**
|
|
11
17
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/components/list/list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAEpC,eAAO,MAAM,QAAQ;
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/components/list/list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;IAbnB;;;OAGG;cACO,OAAO;yEAelB,CAAC"}
|
|
@@ -14,10 +14,10 @@ export type ListOrderedProps = ListBaseProps & Omit<OlHTMLAttributes<HTMLOListEl
|
|
|
14
14
|
* Renders a native `ul` element.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* <
|
|
18
|
-
* <
|
|
19
|
-
* <
|
|
20
|
-
* </
|
|
17
|
+
* <ListUnordered>
|
|
18
|
+
* <ListItem>Item 1</ListItem>
|
|
19
|
+
* <ListItem>Item 2</ListItem>
|
|
20
|
+
* </ListUnordered>
|
|
21
21
|
*/
|
|
22
22
|
export declare const ListUnordered: React.ForwardRefExoticComponent<{
|
|
23
23
|
/**
|
|
@@ -31,10 +31,10 @@ export declare const ListUnordered: React.ForwardRefExoticComponent<{
|
|
|
31
31
|
* Renders a native `ol` element.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <
|
|
36
|
-
* <
|
|
37
|
-
* </
|
|
34
|
+
* <ListOrdered>
|
|
35
|
+
* <ListItem>Item 1</ListItem>
|
|
36
|
+
* <ListItem>Item 2</ListItem>
|
|
37
|
+
* </ListOrdered>
|
|
38
38
|
*/
|
|
39
39
|
export declare const ListOrdered: React.ForwardRefExoticComponent<{
|
|
40
40
|
/**
|
|
@@ -1,6 +1,42 @@
|
|
|
1
|
+
import { Pagination as PaginationParent } from './pagination';
|
|
1
2
|
import { PaginationButton } from './pagination-button';
|
|
2
3
|
import { PaginationItem } from './pagination-item';
|
|
3
4
|
import { PaginationList } from './pagination-list';
|
|
5
|
+
type Pagination = typeof PaginationParent & {
|
|
6
|
+
/**
|
|
7
|
+
* Pagination.List component, use within a Pagination.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Pagination>
|
|
11
|
+
* <Pagination.List>
|
|
12
|
+
* <Pagination.Item>
|
|
13
|
+
* <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
|
|
14
|
+
* </Pagination.Item>
|
|
15
|
+
* </Pagination.List>
|
|
16
|
+
* </Pagination>
|
|
17
|
+
*/
|
|
18
|
+
List: typeof PaginationList;
|
|
19
|
+
/**
|
|
20
|
+
* Pagination.Item component, use within a Pagination.List.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <Pagination.List>
|
|
24
|
+
* <Pagination.Item>
|
|
25
|
+
* <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
|
|
26
|
+
* </Pagination.Item>
|
|
27
|
+
* </Pagination.List>
|
|
28
|
+
*/
|
|
29
|
+
Item: typeof PaginationItem;
|
|
30
|
+
/**
|
|
31
|
+
* PaginationButton component, use within a Pagination.Item.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* <Pagination.Item>
|
|
35
|
+
* <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
|
|
36
|
+
* </Pagination.Item>
|
|
37
|
+
*/
|
|
38
|
+
Button: typeof PaginationButton;
|
|
39
|
+
};
|
|
4
40
|
/**
|
|
5
41
|
* Pagination component, used to navigate through a list of items.
|
|
6
42
|
*
|
|
@@ -19,23 +55,10 @@ import { PaginationList } from './pagination-list';
|
|
|
19
55
|
* </Pagination.List>
|
|
20
56
|
* </Pagination>
|
|
21
57
|
*/
|
|
22
|
-
declare const
|
|
23
|
-
'aria-label'?: string;
|
|
24
|
-
asChild?: boolean;
|
|
25
|
-
} & React.RefAttributes<HTMLElement>> & {
|
|
26
|
-
List: React.ForwardRefExoticComponent<{
|
|
27
|
-
asChild?: boolean;
|
|
28
|
-
} & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLUListElement>>;
|
|
29
|
-
Item: React.ForwardRefExoticComponent<{
|
|
30
|
-
asChild?: boolean;
|
|
31
|
-
} & Omit<React.HTMLAttributes<HTMLLIElement>, "size"> & React.RefAttributes<HTMLLIElement>>;
|
|
32
|
-
Button: React.ForwardRefExoticComponent<{
|
|
33
|
-
'aria-current'?: React.AriaAttributes["aria-current"];
|
|
34
|
-
} & Omit<import("..").ButtonProps, "icon" | "loading"> & React.RefAttributes<HTMLButtonElement>>;
|
|
35
|
-
};
|
|
58
|
+
declare const PaginationComponent: Pagination;
|
|
36
59
|
export type { PaginationProps } from './pagination';
|
|
37
60
|
export type { PaginationButtonProps } from './pagination-button';
|
|
38
61
|
export type { PaginationItemProps } from './pagination-item';
|
|
39
62
|
export type { PaginationListProps } from './pagination-list';
|
|
40
|
-
export { Pagination, PaginationList, PaginationItem, PaginationButton };
|
|
63
|
+
export { PaginationComponent as Pagination, PaginationList, PaginationItem, PaginationButton, };
|
|
41
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,UAAU,GAAG,OAAO,gBAAgB,GAAG;IAC1C;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B;;;;;;;OAOG;IACH,MAAM,EAAE,OAAO,gBAAgB,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,mBAAmB,EAAE,UAIzB,CAAC;AAMH,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EACL,mBAAmB,IAAI,UAAU,EACjC,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,CAAC"}
|
|
@@ -11,9 +11,9 @@ export type PaginationButtonProps = {
|
|
|
11
11
|
* PaginationButton component, use within a Pagination.Item.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* <
|
|
15
|
-
* <
|
|
16
|
-
* </
|
|
14
|
+
* <PaginationItem>
|
|
15
|
+
* <PaginationButton aria-label='Forrige side'>Forrige</PaginationButton>
|
|
16
|
+
* </PaginationItem>
|
|
17
17
|
*/
|
|
18
18
|
export declare const PaginationButton: React.ForwardRefExoticComponent<{
|
|
19
19
|
/**
|
|
@@ -10,11 +10,11 @@ export type PaginationItemProps = {
|
|
|
10
10
|
* PaginationItem component, use within a Pagination.List.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <
|
|
15
|
-
* <
|
|
16
|
-
* </
|
|
17
|
-
* </
|
|
13
|
+
* <PaginationList>
|
|
14
|
+
* <PaginationItem>
|
|
15
|
+
* <PaginationButton aria-label='Forrige side'>Forrige</PaginationButton>
|
|
16
|
+
* </PaginationItem>
|
|
17
|
+
* </PaginationList>
|
|
18
18
|
*/
|
|
19
19
|
export declare const PaginationItem: React.ForwardRefExoticComponent<{
|
|
20
20
|
/**
|
|
@@ -11,11 +11,11 @@ export type PaginationListProps = {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* <Pagination>
|
|
14
|
-
* <
|
|
15
|
-
* <
|
|
16
|
-
* <
|
|
17
|
-
* </
|
|
18
|
-
* </
|
|
14
|
+
* <PaginationList>
|
|
15
|
+
* <PaginationItem>
|
|
16
|
+
* <PaginationButton aria-label='Forrige side'>Forrige</PaginationButton>
|
|
17
|
+
* </PaginationItem>
|
|
18
|
+
* </PaginationList>
|
|
19
19
|
* </Pagination>
|
|
20
20
|
*/
|
|
21
21
|
export declare const PaginationList: React.ForwardRefExoticComponent<{
|
|
@@ -1,5 +1,42 @@
|
|
|
1
|
+
import { Popover as PopoverParent } from './popover';
|
|
1
2
|
import { PopoverTrigger } from './popover-trigger';
|
|
2
3
|
import { PopoverTriggerContext } from './popover-trigger-context';
|
|
4
|
+
type Popover = typeof PopoverParent & {
|
|
5
|
+
/**
|
|
6
|
+
* Popover.TriggerContext component, use to wrap a Popover.Trigger and Popover.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <Popover.TriggerContext>
|
|
10
|
+
* <Popover.Trigger>Open Popover</Popover.Trigger>
|
|
11
|
+
* <Popover>
|
|
12
|
+
* Content
|
|
13
|
+
* </Popover>
|
|
14
|
+
* </Popover.TriggerContext>
|
|
15
|
+
*/
|
|
16
|
+
TriggerContext: typeof PopoverTriggerContext;
|
|
17
|
+
/**
|
|
18
|
+
* PopoverTrigger component, used to trigger a popover.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <Popover.TriggerContext>
|
|
22
|
+
* <Popover.Trigger>Open Popover</Popover.Trigger>
|
|
23
|
+
* <Popover>
|
|
24
|
+
* Content
|
|
25
|
+
* </Popover>
|
|
26
|
+
* </Popover.TriggerContext>
|
|
27
|
+
*
|
|
28
|
+
* @example inline
|
|
29
|
+
* <Popover.TriggerContext>
|
|
30
|
+
* <Paragraph>
|
|
31
|
+
* We can use it <Popover.Trigger inline={true}>inline</Popover.Trigger>.
|
|
32
|
+
* </Paragraph>
|
|
33
|
+
* <Popover>
|
|
34
|
+
* Content
|
|
35
|
+
* </Popover>
|
|
36
|
+
* </Popover.TriggerContext>
|
|
37
|
+
*/
|
|
38
|
+
Trigger: typeof PopoverTrigger;
|
|
39
|
+
};
|
|
3
40
|
/**
|
|
4
41
|
* Popover component, used to display content in a popover over an element.
|
|
5
42
|
*
|
|
@@ -11,25 +48,9 @@ import { PopoverTriggerContext } from './popover-trigger-context';
|
|
|
11
48
|
* </Popover>
|
|
12
49
|
* </Popover.TriggerContext>
|
|
13
50
|
*/
|
|
14
|
-
declare const
|
|
15
|
-
id?: string;
|
|
16
|
-
placement?: import("@floating-ui/dom").Placement;
|
|
17
|
-
open?: boolean;
|
|
18
|
-
variant?: "default" | "tinted";
|
|
19
|
-
'data-color'?: import("../../colors").Color | import("../../colors").SeverityColors;
|
|
20
|
-
onOpen?: () => void;
|
|
21
|
-
onClose?: () => void;
|
|
22
|
-
autoPlacement?: boolean;
|
|
23
|
-
asChild?: boolean;
|
|
24
|
-
} & React.RefAttributes<HTMLDivElement>> & {
|
|
25
|
-
TriggerContext: {
|
|
26
|
-
({ children, }: import("./popover-trigger-context").PopoverTriggerContextProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
displayName: string;
|
|
28
|
-
};
|
|
29
|
-
Trigger: React.ForwardRefExoticComponent<import("./popover-trigger").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
30
|
-
};
|
|
51
|
+
declare const PopoverComponent: Popover;
|
|
31
52
|
export type { PopoverProps } from './popover';
|
|
32
53
|
export type { PopoverTriggerProps } from './popover-trigger';
|
|
33
54
|
export type { PopoverTriggerContextProps } from './popover-trigger-context';
|
|
34
|
-
export { Popover, PopoverTriggerContext, PopoverTrigger };
|
|
55
|
+
export { PopoverComponent as Popover, PopoverTriggerContext, PopoverTrigger };
|
|
35
56
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/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,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,KAAK,OAAO,GAAG,OAAO,aAAa,GAAG;IACpC;;;;;;;;;;OAUG;IACH,cAAc,EAAE,OAAO,qBAAqB,CAAC;IAC7C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,EAAE,OAAO,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;GAUG;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,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -6,12 +6,12 @@ export type PopoverTriggerContextProps = {
|
|
|
6
6
|
* PopoverTriggerContext component, use to wrap a Popover.Trigger and Popover.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* <
|
|
10
|
-
* <
|
|
9
|
+
* <PopoverTriggerContext>
|
|
10
|
+
* <PopoverTrigger>Open Popover</PopoverTrigger>
|
|
11
11
|
* <Popover>
|
|
12
12
|
* Content
|
|
13
13
|
* </Popover>
|
|
14
|
-
* </
|
|
14
|
+
* </PopoverTriggerContext>
|
|
15
15
|
*/
|
|
16
16
|
export declare const PopoverTriggerContext: {
|
|
17
17
|
({ children, }: PopoverTriggerContextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,22 +23,22 @@ export type PopoverTriggerProps = ({
|
|
|
23
23
|
* PopoverTrigger component, used to trigger a popover.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
|
-
* <
|
|
27
|
-
* <
|
|
26
|
+
* <PopoverTriggerContext>
|
|
27
|
+
* <PopoverTrigger>Open Popover</PopoverTrigger>
|
|
28
28
|
* <Popover>
|
|
29
29
|
* Content
|
|
30
30
|
* </Popover>
|
|
31
|
-
* </
|
|
31
|
+
* </PopoverTriggerContext>
|
|
32
32
|
*
|
|
33
33
|
* @example inline
|
|
34
|
-
* <
|
|
34
|
+
* <PopoverTriggerContext>
|
|
35
35
|
* <Paragraph>
|
|
36
|
-
* We can use it <
|
|
36
|
+
* We can use it <PopoverTrigger inline={true}>inline</PopoverTrigger>.
|
|
37
37
|
* </Paragraph>
|
|
38
38
|
* <Popover>
|
|
39
39
|
* Content
|
|
40
40
|
* </Popover>
|
|
41
|
-
* </
|
|
41
|
+
* </PopoverTriggerContext>
|
|
42
42
|
*/
|
|
43
43
|
export declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
44
44
|
//# sourceMappingURL=popover-trigger.d.ts.map
|
|
@@ -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 { Placement } from '@floating-ui/dom';
|
|
3
3
|
import type { HTMLAttributes } from 'react';
|
|
4
4
|
import type { DefaultProps } from '../../types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAUnE,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;AAMlD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC,GAAG,CAAC;QAClB,UAAU,mBAAmB;YAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;IACD,UAAU,KAAK,CAAC;QAEd,UAAU,cAAc,CAAC,CAAC;YACxB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO;IA9DhB;;OAEG;SACE,MAAM;IACX;;;OAGG;gBACS,SAAS;IACrB;;;OAGG;WACI,OAAO;IACd;;;;OAIG;cACO,SAAS,GAAG,QAAQ;IAC9B;;OAEG;mBACY,KAAK,GAAG,cAAc;IACrC;;OAEG;aACM,MAAM,IAAI;IACnB;;OAEG;cACO,MAAM,IAAI;IACpB;;;OAGG;oBACa,OAAO;IACvB;;;OAGG;cACO,OAAO;wCAgIpB,CAAC"}
|
|
@@ -1,6 +1,38 @@
|
|
|
1
|
+
import { Search as SearchRoot } from './search';
|
|
1
2
|
import { SearchButton } from './search-button';
|
|
2
3
|
import { SearchClear } from './search-clear';
|
|
3
4
|
import { SearchInput } from './search-input';
|
|
5
|
+
type Search = typeof SearchRoot & {
|
|
6
|
+
/**
|
|
7
|
+
* Search.Clear component, used to display a clear button when the search input is not empty.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Search>
|
|
11
|
+
* <Search.Input aria-label='Søk' />
|
|
12
|
+
* <Search.Clear />
|
|
13
|
+
* </Search>
|
|
14
|
+
*/
|
|
15
|
+
Clear: typeof SearchClear;
|
|
16
|
+
/**
|
|
17
|
+
* Search.Button component, used to display a search button within a Search component.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <Search>
|
|
21
|
+
* <Search.Input aria-label='Søk' />
|
|
22
|
+
* <Search.Button>Søk</Search.Button>
|
|
23
|
+
* </Search>
|
|
24
|
+
*/
|
|
25
|
+
Button: typeof SearchButton;
|
|
26
|
+
/**
|
|
27
|
+
* Search.Input component, used to display a search input within the Search component.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <Search>
|
|
31
|
+
* <Search.Input aria-label='Søk' />
|
|
32
|
+
* </Search>
|
|
33
|
+
*/
|
|
34
|
+
Input: typeof SearchInput;
|
|
35
|
+
};
|
|
4
36
|
/**
|
|
5
37
|
* Search component, use to display different variations of a search input
|
|
6
38
|
*
|
|
@@ -17,23 +49,10 @@ import { SearchInput } from './search-input';
|
|
|
17
49
|
* <Search.Clear />
|
|
18
50
|
* </Search>
|
|
19
51
|
*/
|
|
20
|
-
declare const
|
|
21
|
-
Clear: React.ForwardRefExoticComponent<Omit<import("..").ButtonProps, "children" | "variant"> & {
|
|
22
|
-
'aria-label'?: string;
|
|
23
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
Button: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
|
|
25
|
-
variant?: "primary" | "secondary" | "tertiary";
|
|
26
|
-
'data-color'?: import("../../colors").Color | import("../../colors").SeverityDanger;
|
|
27
|
-
icon?: boolean;
|
|
28
|
-
loading?: boolean | React.ReactNode;
|
|
29
|
-
asChild?: boolean;
|
|
30
|
-
type?: React.ButtonHTMLAttributes<HTMLButtonElement>["type"];
|
|
31
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
32
|
-
Input: React.ForwardRefExoticComponent<import("../../types").DefaultProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "readOnly"> & React.RefAttributes<HTMLInputElement>>;
|
|
33
|
-
};
|
|
52
|
+
declare const SearchComponent: Search;
|
|
34
53
|
export type { SearchProps } from './search';
|
|
35
54
|
export type { SearchButtonProps } from './search-button';
|
|
36
55
|
export type { SearchClearProps } from './search-clear';
|
|
37
56
|
export type { SearchInputProps } from './search-input';
|
|
38
|
-
export { SearchClear, SearchButton, SearchInput, Search };
|
|
57
|
+
export { SearchClear, SearchButton, SearchInput, SearchComponent as Search };
|
|
39
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/search/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,KAAK,MAAM,GAAG,OAAO,UAAU,GAAG;IAChC;;;;;;;;OAQG;IACH,KAAK,EAAE,OAAO,WAAW,CAAC;IAC1B;;;;;;;;OAQG;IACH,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B;;;;;;;OAOG;IACH,KAAK,EAAE,OAAO,WAAW,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,eAAe,EAAE,MAIrB,CAAC;AAMH,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -18,13 +18,13 @@ export type SearchButtonProps = MergeRight<ButtonProps, {
|
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* <Search>
|
|
21
|
-
* <
|
|
22
|
-
* <
|
|
21
|
+
* <SearchInput aria-label='Søk' />
|
|
22
|
+
* <SearchButton>Søk</SearchButton>
|
|
23
23
|
* </Search>
|
|
24
24
|
*/
|
|
25
25
|
export declare const SearchButton: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
|
|
26
26
|
variant?: "primary" | "secondary" | "tertiary";
|
|
27
|
-
'data-color'?: import("
|
|
27
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
|
|
28
28
|
icon?: boolean;
|
|
29
29
|
loading?: boolean | ReactNode;
|
|
30
30
|
asChild?: boolean;
|
|
@@ -11,8 +11,8 @@ export type SearchClearProps = Omit<ButtonProps, 'variant' | 'children'> & {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* <Search>
|
|
14
|
-
* <
|
|
15
|
-
* <
|
|
14
|
+
* <SearchInput aria-label='Søk' />
|
|
15
|
+
* <SearchClear />
|
|
16
16
|
* </Search>
|
|
17
17
|
*/
|
|
18
18
|
export declare const SearchClear: React.ForwardRefExoticComponent<Omit<ButtonProps, "children" | "variant"> & {
|
|
@@ -5,7 +5,7 @@ export type SearchInputProps = DefaultProps & Omit<React.InputHTMLAttributes<HTM
|
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* <Search>
|
|
8
|
-
* <
|
|
8
|
+
* <SearchInput aria-label='Søk' />
|
|
9
9
|
* </Search>
|
|
10
10
|
*/
|
|
11
11
|
export declare const SearchInput: React.ForwardRefExoticComponent<DefaultProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "readOnly"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,30 @@
|
|
|
1
|
+
import { Select as SelectParent } from './select';
|
|
1
2
|
import { SelectOptgroup } from './select-optgroup';
|
|
2
3
|
import { SelectOption } from './select-option';
|
|
4
|
+
type Select = typeof SelectParent & {
|
|
5
|
+
/**
|
|
6
|
+
* Select.Option component, used to display a native option within a select.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <Select>
|
|
10
|
+
* <Select.Option value='1'>Option 1</Select.Option>
|
|
11
|
+
* <Select.Option value='2'>Option 2</Select.Option>
|
|
12
|
+
* </Select>
|
|
13
|
+
*/
|
|
14
|
+
Option: typeof SelectOption;
|
|
15
|
+
/**
|
|
16
|
+
* Select.Optgroup component, used to display a native optgroup within a select.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <Select>
|
|
20
|
+
* <Select.Optgroup label='Group 1'>
|
|
21
|
+
* <Select.Option value='1'>Option 1</Select.Option>
|
|
22
|
+
* <Select.Option value='2'>Option 2</Select.Option>
|
|
23
|
+
* </Select.Optgroup>
|
|
24
|
+
* </Select>
|
|
25
|
+
*/
|
|
26
|
+
Optgroup: typeof SelectOptgroup;
|
|
27
|
+
};
|
|
3
28
|
/**
|
|
4
29
|
* Select component, used to display a native select.
|
|
5
30
|
*
|
|
@@ -9,19 +34,9 @@ import { SelectOption } from './select-option';
|
|
|
9
34
|
* <Select.Option value='2'>Option 2</Select.Option>
|
|
10
35
|
* </Select>
|
|
11
36
|
*/
|
|
12
|
-
declare const
|
|
13
|
-
readOnly?: boolean;
|
|
14
|
-
width?: "full" | "auto";
|
|
15
|
-
} & React.RefAttributes<HTMLSelectElement>> & {
|
|
16
|
-
Option: React.ForwardRefExoticComponent<{
|
|
17
|
-
asChild?: boolean;
|
|
18
|
-
} & React.OptionHTMLAttributes<HTMLOptionElement> & React.RefAttributes<HTMLOptionElement>>;
|
|
19
|
-
Optgroup: React.ForwardRefExoticComponent<{
|
|
20
|
-
asChild?: boolean;
|
|
21
|
-
} & React.OptgroupHTMLAttributes<HTMLOptGroupElement> & React.RefAttributes<HTMLOptGroupElement>>;
|
|
22
|
-
};
|
|
37
|
+
declare const SelectComponent: Select;
|
|
23
38
|
export type { SelectProps } from './select';
|
|
24
39
|
export type { SelectOptgroupProps } from './select-optgroup';
|
|
25
40
|
export type { SelectOptionProps } from './select-option';
|
|
26
|
-
export { Select, SelectOption, SelectOptgroup };
|
|
41
|
+
export { SelectComponent as Select, SelectOption, SelectOptgroup };
|
|
27
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/select/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,KAAK,MAAM,GAAG,OAAO,YAAY,GAAG;IAClC;;;;;;;;OAQG;IACH,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,QAAQ,EAAE,OAAO,cAAc,CAAC;CACjC,CAAC;AAEF;;;;;;;;GAQG;AACH,QAAA,MAAM,eAAe,EAAE,MAGrB,CAAC;AAKH,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -11,10 +11,10 @@ export type SelectOptgroupProps = {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* <Select>
|
|
14
|
-
* <
|
|
15
|
-
* <
|
|
16
|
-
* <
|
|
17
|
-
* </
|
|
14
|
+
* <SelectOptgroup label='Group 1'>
|
|
15
|
+
* <SelectOption value='1'>Option 1</SelectOption>
|
|
16
|
+
* <SelectOption value='2'>Option 2</SelectOption>
|
|
17
|
+
* </SelectOptgroup>
|
|
18
18
|
* </Select>
|
|
19
19
|
*/
|
|
20
20
|
export declare const SelectOptgroup: React.ForwardRefExoticComponent<{
|
|
@@ -11,8 +11,8 @@ export type SelectOptionProps = {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* <Select>
|
|
14
|
-
* <
|
|
15
|
-
* <
|
|
14
|
+
* <SelectOption value='1'>Option 1</SelectOption>
|
|
15
|
+
* <SelectOption value='2'>Option 2</SelectOption>
|
|
16
16
|
* </Select>
|
|
17
17
|
*/
|
|
18
18
|
export declare const SelectOption: React.ForwardRefExoticComponent<{
|