@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,13 @@
|
|
|
1
1
|
import { type HeadingProps } from '../heading/heading';
|
|
2
2
|
export type DropdownHeadingProps = HeadingProps;
|
|
3
|
+
/**
|
|
4
|
+
* DropdownHeading component, used to display a heading in the Dropdown.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Dropdown>
|
|
8
|
+
* <DropdownHeading>Heading</DropdownHeading>
|
|
9
|
+
* </Dropdown>
|
|
10
|
+
*/
|
|
3
11
|
export declare const DropdownHeading: React.ForwardRefExoticComponent<{
|
|
4
12
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
13
|
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-heading.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,eAAe;;;;uFAK1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"dropdown-heading.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;uFAK1B,CAAC"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
export type DropdownItemProps = HTMLAttributes<HTMLLIElement>;
|
|
3
|
+
/**
|
|
4
|
+
* DropdownItem component, used to display an item in the Dropdown. Used within a DropdownList.
|
|
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 DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
4
16
|
//# sourceMappingURL=dropdown-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-item.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,yFAIxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"dropdown-item.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,yFAIxB,CAAC"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
export type DropdownListProps = HTMLAttributes<HTMLUListElement>;
|
|
3
|
+
/**
|
|
4
|
+
* DropdownList component, used to display a list of items in the Dropdown.
|
|
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 DropdownList: React.ForwardRefExoticComponent<DropdownListProps & React.RefAttributes<HTMLUListElement>>;
|
|
4
16
|
//# sourceMappingURL=dropdown-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-list.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEjE,eAAO,MAAM,YAAY,4FAIxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"dropdown-list.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,4FAIxB,CAAC"}
|
|
@@ -6,17 +6,17 @@ export type DropdownTriggerContextProps = {
|
|
|
6
6
|
* DropdownTriggerContext enables use of the `.Trigger` for the Dropdown component.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* <
|
|
10
|
-
* <
|
|
9
|
+
* <DropdownTriggerContext>
|
|
10
|
+
* <DropdownTrigger>Dropdown</DropdownTrigger>
|
|
11
11
|
* <Dropdown>
|
|
12
|
-
* <
|
|
13
|
-
* <
|
|
14
|
-
* <
|
|
15
|
-
* <
|
|
16
|
-
* </
|
|
17
|
-
* </
|
|
12
|
+
* <DropdownHeading>Heading</DropdownHeading>
|
|
13
|
+
* <DropdownList>
|
|
14
|
+
* <DropdownItem>
|
|
15
|
+
* <DropdownButton>Button</DropdownButton>
|
|
16
|
+
* </DropdownItem>
|
|
17
|
+
* </DropdownList>
|
|
18
18
|
* </Dropdown>
|
|
19
|
-
* </
|
|
19
|
+
* </DropdownTriggerContext>
|
|
20
20
|
*/
|
|
21
21
|
export declare const DropdownTriggerContext: {
|
|
22
22
|
({ children, }: DropdownTriggerContextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { type PopoverTriggerProps } from '../popover/popover-trigger';
|
|
2
2
|
export type DropdownTriggerProps = PopoverTriggerProps;
|
|
3
|
+
/**
|
|
4
|
+
* DropdownTrigger component, used within a Dropdown.TriggerContext to open a Dropdown.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Dropdown.TriggerContext>
|
|
8
|
+
* <Dropdown.Trigger>Dropdown</Dropdown.Trigger>
|
|
9
|
+
* <Dropdown>
|
|
10
|
+
* <Dropdown.Heading>Heading</Dropdown.Heading>
|
|
11
|
+
* <Dropdown.List>
|
|
12
|
+
* <Dropdown.Item>
|
|
13
|
+
* <Dropdown.Button>Button</Dropdown.Button>
|
|
14
|
+
* </Dropdown.Item>
|
|
15
|
+
* </Dropdown.List>
|
|
16
|
+
* </Dropdown>
|
|
17
|
+
* </Dropdown.TriggerContext>
|
|
18
|
+
*/
|
|
3
19
|
export declare const DropdownTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4
20
|
//# sourceMappingURL=dropdown-trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-trigger.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-trigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe,+FAK1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"dropdown-trigger.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-trigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,+FAK1B,CAAC"}
|
|
@@ -1,13 +1,98 @@
|
|
|
1
|
+
import { Dropdown as DropdownRoot } from './dropdown';
|
|
1
2
|
import { DropdownButton } from './dropdown-button';
|
|
2
3
|
import { DropdownHeading } from './dropdown-heading';
|
|
3
4
|
import { DropdownItem } from './dropdown-item';
|
|
4
5
|
import { DropdownList } from './dropdown-list';
|
|
5
6
|
import { DropdownTrigger } from './dropdown-trigger';
|
|
6
7
|
import { DropdownTriggerContext } from './dropdown-trigger-context';
|
|
8
|
+
type Dropdown = typeof DropdownRoot & {
|
|
9
|
+
/**
|
|
10
|
+
* Dropdown.TriggerContext enables use of the `.Trigger` for the Dropdown component.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <Dropdown.TriggerContext>
|
|
14
|
+
* <Dropdown.Trigger>Dropdown</Dropdown.Trigger>
|
|
15
|
+
* <Dropdown>
|
|
16
|
+
* <Dropdown.Heading>Heading</Dropdown.Heading>
|
|
17
|
+
* <Dropdown.List>
|
|
18
|
+
* <Dropdown.Item>
|
|
19
|
+
* <Dropdown.Button>Button</Dropdown.Button>
|
|
20
|
+
* </Dropdown.Item>
|
|
21
|
+
* </Dropdown.List>
|
|
22
|
+
* </Dropdown>
|
|
23
|
+
* </Dropdown.TriggerContext>
|
|
24
|
+
*/
|
|
25
|
+
TriggerContext: typeof DropdownTriggerContext;
|
|
26
|
+
/**
|
|
27
|
+
* Dropdown.Trigger component, used within a Dropdown.TriggerContext to open a Dropdown.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <Dropdown.TriggerContext>
|
|
31
|
+
* <Dropdown.Trigger>Dropdown</Dropdown.Trigger>
|
|
32
|
+
* <Dropdown>
|
|
33
|
+
* <Dropdown.Heading>Heading</Dropdown.Heading>
|
|
34
|
+
* <Dropdown.List>
|
|
35
|
+
* <Dropdown.Item>
|
|
36
|
+
* <Dropdown.Button>Button</Dropdown.Button>
|
|
37
|
+
* </Dropdown.Item>
|
|
38
|
+
* </Dropdown.List>
|
|
39
|
+
* </Dropdown>
|
|
40
|
+
* </Dropdown.TriggerContext>
|
|
41
|
+
*/
|
|
42
|
+
Trigger: typeof DropdownTrigger;
|
|
43
|
+
/**
|
|
44
|
+
* Dropdown.Heading component, used to display a heading in the Dropdown.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* <Dropdown>
|
|
48
|
+
* <Dropdown.Heading>Heading</Dropdown.Heading>
|
|
49
|
+
* </Dropdown>
|
|
50
|
+
*/
|
|
51
|
+
Heading: typeof DropdownHeading;
|
|
52
|
+
/**
|
|
53
|
+
* Dropdown.List component, used to display a list of items in the Dropdown.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* <Dropdown>
|
|
57
|
+
* <Dropdown.List>
|
|
58
|
+
* <Dropdown.Item>
|
|
59
|
+
* <Dropdown.Button>Button</Dropdown.Button>
|
|
60
|
+
* </Dropdown.Item>
|
|
61
|
+
* </Dropdown.List>
|
|
62
|
+
* </Dropdown>
|
|
63
|
+
*/
|
|
64
|
+
List: typeof DropdownList;
|
|
65
|
+
/**
|
|
66
|
+
* Dropdown.Item component, used to display an item in the Dropdown. Used within a Dropdown.List.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* <Dropdown>
|
|
70
|
+
* <Dropdown.List>
|
|
71
|
+
* <Dropdown.Item>
|
|
72
|
+
* <Dropdown.Button>Button</Dropdown.Button>
|
|
73
|
+
* </Dropdown.Item>
|
|
74
|
+
* </Dropdown.List>
|
|
75
|
+
* </Dropdown>
|
|
76
|
+
*/
|
|
77
|
+
Item: typeof DropdownItem;
|
|
78
|
+
/**
|
|
79
|
+
* Dropdown.Button component, used to display a button in the Dropdown.Item.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* <Dropdown>
|
|
83
|
+
* <Dropdown.List>
|
|
84
|
+
* <Dropdown.Item>
|
|
85
|
+
* <Dropdown.Button>Button</Dropdown.Button>
|
|
86
|
+
* </Dropdown.Item>
|
|
87
|
+
* </Dropdown.List>
|
|
88
|
+
* </Dropdown>
|
|
89
|
+
*/
|
|
90
|
+
Button: typeof DropdownButton;
|
|
91
|
+
};
|
|
7
92
|
/**
|
|
8
93
|
* Dropdown component, used to display a list of options.
|
|
9
94
|
*
|
|
10
|
-
* @example
|
|
95
|
+
* @example with TriggerContext
|
|
11
96
|
* <Dropdown.TriggerContext>
|
|
12
97
|
* <Dropdown.Trigger>Dropdown trigger</Dropdown.Trigger>
|
|
13
98
|
* <Dropdown placement='bottom-end'>
|
|
@@ -19,29 +104,24 @@ import { DropdownTriggerContext } from './dropdown-trigger-context';
|
|
|
19
104
|
* </Dropdown.List>
|
|
20
105
|
* </Dropdown>
|
|
21
106
|
* </Dropdown.TriggerContext>
|
|
107
|
+
*
|
|
108
|
+
* @example without TriggerContext
|
|
109
|
+
* <Button popovertarget="my-dropdown">Trigger</Button>
|
|
110
|
+
* <Dropdown id="my-dropdown">
|
|
111
|
+
* <Dropdown.Heading>Heading</Dropdown.Heading>
|
|
112
|
+
* <Dropdown.List>
|
|
113
|
+
* <Dropdown.Item>
|
|
114
|
+
* <Dropdown.Button>Item</Dropdown.Button>
|
|
115
|
+
* </Dropdown.Item>
|
|
116
|
+
* </Dropdown.List>
|
|
117
|
+
* </Dropdown>
|
|
22
118
|
*/
|
|
23
|
-
declare const
|
|
24
|
-
placement?: import("@floating-ui/dom").Placement;
|
|
25
|
-
} & React.RefAttributes<HTMLDivElement>> & {
|
|
26
|
-
TriggerContext: {
|
|
27
|
-
({ children, }: import("./dropdown-trigger-context").DropdownTriggerContextProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
displayName: string;
|
|
29
|
-
};
|
|
30
|
-
Heading: React.ForwardRefExoticComponent<{
|
|
31
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
32
|
-
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
33
|
-
asChild?: boolean;
|
|
34
|
-
} & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
35
|
-
List: React.ForwardRefExoticComponent<import("./dropdown-list").DropdownListProps & React.RefAttributes<HTMLUListElement>>;
|
|
36
|
-
Item: React.ForwardRefExoticComponent<import("./dropdown-item").DropdownItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
37
|
-
Button: React.ForwardRefExoticComponent<import("./dropdown-button").DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
-
Trigger: React.ForwardRefExoticComponent<import("..").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
39
|
-
};
|
|
119
|
+
declare const DropdownComponent: Dropdown;
|
|
40
120
|
export type { DropdownProps } from './dropdown';
|
|
41
121
|
export type { DropdownButtonProps } from './dropdown-button';
|
|
42
122
|
export type { DropdownHeadingProps } from './dropdown-heading';
|
|
43
123
|
export type { DropdownItemProps } from './dropdown-item';
|
|
44
124
|
export type { DropdownListProps } from './dropdown-list';
|
|
45
125
|
export type { DropdownTriggerContextProps } from './dropdown-trigger-context';
|
|
46
|
-
export { Dropdown, DropdownTriggerContext, DropdownList, DropdownHeading, DropdownItem, DropdownButton, DropdownTrigger, };
|
|
126
|
+
export { DropdownComponent as Dropdown, DropdownTriggerContext, DropdownList, DropdownHeading, DropdownItem, DropdownButton, DropdownTrigger, };
|
|
47
127
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,KAAK,QAAQ,GAAG,OAAO,YAAY,GAAG;IACpC;;;;;;;;;;;;;;;OAeG;IACH,cAAc,EAAE,OAAO,sBAAsB,CAAC;IAC9C;;;;;;;;;;;;;;;OAeG;IACH,OAAO,EAAE,OAAO,eAAe,CAAC;IAChC;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,eAAe,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B;;;;;;;;;;;OAWG;IACH,MAAM,EAAE,OAAO,cAAc,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,iBAAiB,EAAE,QAOvB,CAAC;AASH,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EACL,iBAAiB,IAAI,QAAQ,EAC7B,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { type HeadingProps } from '../heading/heading';
|
|
2
2
|
export type ErrorSummaryHeadingProps = HeadingProps;
|
|
3
|
+
/**
|
|
4
|
+
* ErrorSummary heading component, used to display a heading for the error summary.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <ErrorSummary>
|
|
8
|
+
* <ErrorSummaryHeading>Heading</ErrorSummaryHeading>
|
|
9
|
+
* </ErrorSummary>
|
|
10
|
+
*/
|
|
3
11
|
export declare const ErrorSummaryHeading: React.ForwardRefExoticComponent<{
|
|
4
12
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
13
|
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-summary-heading.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/error-summary-heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGhE,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAEpD,eAAO,MAAM,mBAAmB;;;;uFAc9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"error-summary-heading.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/error-summary-heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGhE,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAEpD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;;uFAc9B,CAAC"}
|
|
@@ -4,11 +4,11 @@ export type ErrorSummaryItemProps = ListItemProps;
|
|
|
4
4
|
* ErrorSummaryItem component, used to display an error link in the ErrorSummary.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
|
-
* <
|
|
8
|
-
* <
|
|
7
|
+
* <ErrorSummaryItem>
|
|
8
|
+
* <ErrorSummaryLink href="#">
|
|
9
9
|
* Link to error
|
|
10
|
-
* </
|
|
11
|
-
* </
|
|
10
|
+
* </ErrorSummaryLink>
|
|
11
|
+
* </ErrorSummaryItem>
|
|
12
12
|
*/
|
|
13
13
|
export declare const ErrorSummaryItem: React.ForwardRefExoticComponent<{
|
|
14
14
|
asChild?: boolean;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { type LinkProps } from '../link/link';
|
|
2
2
|
export type ErrorSummaryLinkProps = LinkProps;
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* ErrorSummary link component, used to link to a specific error. Used within an ErrorSummary.Item.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <ErrorSummary>
|
|
8
|
+
* <ErrorSummaryItem>
|
|
9
|
+
* <ErrorSummaryLink href='#'>Error 1</ErrorSummaryLink>
|
|
10
|
+
* </ErrorSummaryItem>
|
|
11
|
+
* </ErrorSummary>
|
|
5
12
|
*/
|
|
6
13
|
export declare const ErrorSummaryLink: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
|
|
7
14
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-summary-link.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/error-summary-link.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"error-summary-link.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/error-summary-link.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAE9C;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB;;;2CAK3B,CAAC"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import { type ListUnorderedProps } from '../list';
|
|
2
2
|
export type ErrorSummaryListProps = ListUnorderedProps;
|
|
3
|
+
/**
|
|
4
|
+
* ErrorSummary list component, used to display a list of errors.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <ErrorSummary>
|
|
8
|
+
* <ErrorSummary.List>
|
|
9
|
+
* <ErrorSummary.Item>
|
|
10
|
+
* <ErrorSummary.Link href='#'>Error 1</ErrorSummary.Link>
|
|
11
|
+
* </ErrorSummary.Item>
|
|
12
|
+
* <ErrorSummary.Item>
|
|
13
|
+
* <ErrorSummary.Link href='#'>Error 2</ErrorSummary.Link>
|
|
14
|
+
* </ErrorSummary.Item>
|
|
15
|
+
* </ErrorSummary.List>
|
|
16
|
+
* </ErrorSummary>
|
|
17
|
+
*/
|
|
3
18
|
export declare const ErrorSummaryList: React.ForwardRefExoticComponent<{
|
|
4
19
|
asChild?: boolean;
|
|
5
20
|
} & import("../../types").DefaultProps & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLOListElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-summary-list.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/error-summary-list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEvD,eAAO,MAAM,gBAAgB;;sIAK3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"error-summary-list.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/error-summary-list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;;sIAK3B,CAAC"}
|
|
@@ -1,7 +1,57 @@
|
|
|
1
|
+
import { ErrorSummary as ErrorSummaryParent } from './error-summary';
|
|
1
2
|
import { ErrorSummaryHeading } from './error-summary-heading';
|
|
2
3
|
import { ErrorSummaryItem } from './error-summary-item';
|
|
3
4
|
import { ErrorSummaryLink } from './error-summary-link';
|
|
4
5
|
import { ErrorSummaryList } from './error-summary-list';
|
|
6
|
+
type ErrorSummary = typeof ErrorSummaryParent & {
|
|
7
|
+
/**
|
|
8
|
+
* ErrorSummary heading component, used to display a heading for the error summary.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <ErrorSummary>
|
|
12
|
+
* <ErrorSummary.Heading>Heading</ErrorSummary.Heading>
|
|
13
|
+
* </ErrorSummary>
|
|
14
|
+
*/
|
|
15
|
+
Heading: typeof ErrorSummaryHeading;
|
|
16
|
+
/**
|
|
17
|
+
* ErrorSummary.Item component, used to display an error link in the ErrorSummary.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <ErrorSummary.Item>
|
|
21
|
+
* <ErrorSummary.Link href="#">
|
|
22
|
+
* Link to error
|
|
23
|
+
* </ErrorSummary.Link>
|
|
24
|
+
* </ErrorSummary.Item>
|
|
25
|
+
*/
|
|
26
|
+
Item: typeof ErrorSummaryItem;
|
|
27
|
+
/**
|
|
28
|
+
* ErrorSummary link component, used to link to a specific error. Used within an ErrorSummary.Item.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* <ErrorSummary>
|
|
32
|
+
* <ErrorSummary.Item>
|
|
33
|
+
* <ErrorSummary.Link href='#'>Error 1</ErrorSummary.Link>
|
|
34
|
+
* </ErrorSummary.Item>
|
|
35
|
+
* </ErrorSummary>
|
|
36
|
+
*/
|
|
37
|
+
Link: typeof ErrorSummaryLink;
|
|
38
|
+
/**
|
|
39
|
+
* ErrorSummary list component, used to display a list of errors.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* <ErrorSummary>
|
|
43
|
+
* <ErrorSummary.List>
|
|
44
|
+
* <ErrorSummary.Item>
|
|
45
|
+
* <ErrorSummary.Link href='#'>Error 1</ErrorSummary.Link>
|
|
46
|
+
* </ErrorSummary.Item>
|
|
47
|
+
* <ErrorSummary.Item>
|
|
48
|
+
* <ErrorSummary.Link href='#'>Error 2</ErrorSummary.Link>
|
|
49
|
+
* </ErrorSummary.Item>
|
|
50
|
+
* </ErrorSummary.List>
|
|
51
|
+
* </ErrorSummary>
|
|
52
|
+
*/
|
|
53
|
+
List: typeof ErrorSummaryList;
|
|
54
|
+
};
|
|
5
55
|
/**
|
|
6
56
|
* ErrorSummary component, used to display a list of errors.
|
|
7
57
|
*
|
|
@@ -18,29 +68,11 @@ import { ErrorSummaryList } from './error-summary-list';
|
|
|
18
68
|
* </ErrorSummary.List>
|
|
19
69
|
* </ErrorSummary>
|
|
20
70
|
*/
|
|
21
|
-
declare const
|
|
22
|
-
asChild?: React.ReactNode;
|
|
23
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement> & import("../../types").DefaultProps, "data-color"> & React.RefAttributes<HTMLDivElement>> & {
|
|
24
|
-
Heading: React.ForwardRefExoticComponent<{
|
|
25
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
26
|
-
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
27
|
-
asChild?: boolean;
|
|
28
|
-
} & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
29
|
-
Item: React.ForwardRefExoticComponent<{
|
|
30
|
-
asChild?: boolean;
|
|
31
|
-
} & React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
32
|
-
List: React.ForwardRefExoticComponent<{
|
|
33
|
-
asChild?: boolean;
|
|
34
|
-
} & import("../../types").DefaultProps & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLOListElement>>;
|
|
35
|
-
Link: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
|
|
36
|
-
children: React.ReactNode;
|
|
37
|
-
asChild?: boolean;
|
|
38
|
-
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
39
|
-
};
|
|
71
|
+
declare const ErrorSummaryComponent: ErrorSummary;
|
|
40
72
|
export type { ErrorSummaryProps } from './error-summary';
|
|
41
73
|
export type { ErrorSummaryHeadingProps } from './error-summary-heading';
|
|
42
74
|
export type { ErrorSummaryItemProps } from './error-summary-item';
|
|
43
75
|
export type { ErrorSummaryLinkProps } from './error-summary-link';
|
|
44
76
|
export type { ErrorSummaryListProps } from './error-summary-list';
|
|
45
|
-
export { ErrorSummary, ErrorSummaryItem, ErrorSummaryHeading, ErrorSummaryList, ErrorSummaryLink, };
|
|
77
|
+
export { ErrorSummaryComponent as ErrorSummary, ErrorSummaryItem, ErrorSummaryHeading, ErrorSummaryList, ErrorSummaryLink, };
|
|
46
78
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,KAAK,YAAY,GAAG,OAAO,kBAAkB,GAAG;IAC9C;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,mBAAmB,CAAC;IACpC;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAC9B;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAC9B;;;;;;;;;;;;;;OAcG;IACH,IAAI,EAAE,OAAO,gBAAgB,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,qBAAqB,EAAE,YAK3B,CAAC;AAOH,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,qBAAqB,IAAI,YAAY,EACrC,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,CAAC"}
|
|
@@ -52,7 +52,7 @@ export declare const FieldCounter: React.ForwardRefExoticComponent<{
|
|
|
52
52
|
**/
|
|
53
53
|
limit: number;
|
|
54
54
|
} & Omit<Omit<import("../../types").DefaultProps, "data-color"> & React.HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
|
|
55
|
-
'data-color'?: import("
|
|
55
|
+
'data-color'?: import("packages/cli/dist/src/types").SeverityColors;
|
|
56
56
|
asChild?: boolean;
|
|
57
57
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
58
58
|
//# sourceMappingURL=field-counter.d.ts.map
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
export type FieldDescriptionProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
/**
|
|
4
|
+
* Field description component, used to provide additional information below the input.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <FieldDescription>Additional information</FieldDescription>
|
|
8
|
+
*/
|
|
3
9
|
export declare const FieldDescription: React.ForwardRefExoticComponent<FieldDescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
10
|
//# sourceMappingURL=field-description.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-description.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnE,eAAO,MAAM,gBAAgB,8FAK3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"field-description.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,8FAK3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-observer.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-observer.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,YAAY,EAAE,WAAW,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"field-observer.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-observer.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,YAAY,EAAE,WAAW,GAAG,IAAI,4BAsF7D;AAGD,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,oBAA4B,CAAC;AACjE,eAAO,MAAM,OAAO,GAAI,MAAM,IAAI,6BAAqC,CAAC;AACxE,eAAO,MAAM,WAAW,GAAI,MAAM,OAAO,KAAG,IAAI,IAAI,gBAGd,CAAC"}
|
|
@@ -1,6 +1,49 @@
|
|
|
1
|
+
import { Field as FieldParent } from './field';
|
|
1
2
|
import { FieldAffix, FieldAffixes } from './field-affix';
|
|
2
3
|
import { FieldCounter } from './field-counter';
|
|
3
4
|
import { FieldDescription } from './field-description';
|
|
5
|
+
type Field = typeof FieldParent & {
|
|
6
|
+
/**
|
|
7
|
+
* Field description component, used to provide additional information below the input.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Field.Description>Additional information</Field.Description>
|
|
11
|
+
*/
|
|
12
|
+
Description: typeof FieldDescription;
|
|
13
|
+
/**
|
|
14
|
+
* Field affixes component, used to display affixes like currency or unit.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <Field.Affixes>
|
|
18
|
+
* <Field.Affix>NOK</Field.Affix>
|
|
19
|
+
* <Input />
|
|
20
|
+
* <Field.Affix>pr. mnd.</Field.Affix>
|
|
21
|
+
* </Field.Affixes>
|
|
22
|
+
*/
|
|
23
|
+
Affixes: typeof FieldAffixes;
|
|
24
|
+
/**
|
|
25
|
+
* Field Affix component, used to wrap a form field.
|
|
26
|
+
* Used within Field.Affixes.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <Field.Affixes>
|
|
30
|
+
* <Field.Affix>NOK</Field.Affix>
|
|
31
|
+
* <Input />
|
|
32
|
+
* <Field.Affix>pr. mnd.</Field.Affix>
|
|
33
|
+
* </Field.Affixes>
|
|
34
|
+
*/
|
|
35
|
+
Affix: typeof FieldAffix;
|
|
36
|
+
/**
|
|
37
|
+
* Field counter component, used to display a character counter for the field.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* <Field>
|
|
41
|
+
* <Input />
|
|
42
|
+
* <Field.Counter limit={100} under='%d tegn igjen' over='%d tegn for mye' />
|
|
43
|
+
* </Field>
|
|
44
|
+
*/
|
|
45
|
+
Counter: typeof FieldCounter;
|
|
46
|
+
};
|
|
4
47
|
/**
|
|
5
48
|
* Field component, used to wrap a form field.
|
|
6
49
|
*
|
|
@@ -12,25 +55,10 @@ import { FieldDescription } from './field-description';
|
|
|
12
55
|
* <ValidationMessage>Feilmelding</ValidationMessage>
|
|
13
56
|
* </Field>
|
|
14
57
|
*/
|
|
15
|
-
declare const
|
|
16
|
-
position?: "start" | "end";
|
|
17
|
-
asChild?: boolean;
|
|
18
|
-
} & React.HTMLAttributes<HTMLDivElement> & import("../../types").DefaultProps & React.RefAttributes<HTMLDivElement>> & {
|
|
19
|
-
Description: React.ForwardRefExoticComponent<import("./field-description").FieldDescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
Affixes: React.ForwardRefExoticComponent<import("./field-affix").FieldAffixesProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
Affix: React.ForwardRefExoticComponent<import("./field-affix").FieldAffixProps & React.RefAttributes<HTMLSpanElement>>;
|
|
22
|
-
Counter: React.ForwardRefExoticComponent<{
|
|
23
|
-
over?: string;
|
|
24
|
-
under?: string;
|
|
25
|
-
limit: number;
|
|
26
|
-
} & Omit<Omit<import("../../types").DefaultProps, "data-color"> & React.HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
|
|
27
|
-
'data-color'?: import("../../colors").SeverityColors;
|
|
28
|
-
asChild?: boolean;
|
|
29
|
-
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
30
|
-
};
|
|
58
|
+
declare const FieldComponent: Field;
|
|
31
59
|
export type { FieldProps } from './field';
|
|
32
60
|
export type { FieldAffixesProps, FieldAffixProps, } from './field-affix';
|
|
33
61
|
export type { FieldCounterProps } from './field-counter';
|
|
34
62
|
export type { FieldDescriptionProps } from './field-description';
|
|
35
|
-
export { Field, FieldDescription, FieldAffix, FieldAffixes, FieldCounter };
|
|
63
|
+
export { FieldComponent as Field, FieldDescription, FieldAffix, FieldAffixes, FieldCounter, };
|
|
36
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,KAAK,KAAK,GAAG,OAAO,WAAW,GAAG;IAChC;;;;;OAKG;IACH,WAAW,EAAE,OAAO,gBAAgB,CAAC;IACrC;;;;;;;;;OASG;IACH,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B;;;;;;;;;;OAUG;IACH,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB;;;;;;;;OAQG;IACH,OAAO,EAAE,OAAO,YAAY,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,cAAc,EAAE,KAKpB,CAAC;AAOH,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EACV,iBAAiB,EACjB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EACL,cAAc,IAAI,KAAK,EACvB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,YAAY,GACb,CAAC"}
|
|
@@ -4,9 +4,9 @@ export type FieldsetDescriptionProps = ParagraphProps;
|
|
|
4
4
|
* FieldsetDescription component, used to display a description for a fieldset.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
|
-
* <
|
|
7
|
+
* <FieldsetDescription>
|
|
8
8
|
* Gi en kort beskrivelse i begge feltene
|
|
9
|
-
* </
|
|
9
|
+
* </FieldsetDescription>
|
|
10
10
|
*/
|
|
11
11
|
export declare const FieldsetDescription: React.ForwardRefExoticComponent<{
|
|
12
12
|
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -5,7 +5,7 @@ export type FieldsetLegendProps = HTMLAttributes<HTMLLegendElement> & DefaultPro
|
|
|
5
5
|
* FieldsetLegend component, used to display a legend for a fieldset.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
|
-
* <
|
|
8
|
+
* <FieldsetLegend>Skriv inn dine svar</FieldsetLegend>
|
|
9
9
|
*/
|
|
10
10
|
export declare const FieldsetLegend: React.ForwardRefExoticComponent<HTMLAttributes<HTMLLegendElement> & DefaultProps & React.RefAttributes<HTMLLegendElement>>;
|
|
11
11
|
//# sourceMappingURL=fieldset-legend.d.ts.map
|