asma-ui-core 3.88.1 → 3.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +61 -0
- package/dist/asma-ui-core.css +1 -1
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +6 -6
- package/dist/components/utils/popover/PopoverAnatomy.js +46 -0
- package/dist/components/utils/popover/StyledPopoverV2.js +140 -0
- package/dist/index.js +180 -178
- package/dist/src/components/utils/popover/PopoverAnatomy.d.ts +36 -0
- package/dist/src/components/utils/popover/StyledPopoverV2.d.ts +76 -0
- package/dist/src/components/utils/popover/index.d.ts +1 -0
- package/dist/src/components/utils/popover/story/PopoverCases.d.ts +1 -0
- package/dist/src/components/utils/popover/story/PopoverGallery.d.ts +1 -0
- package/dist/src/components/utils/popover/story/popoverStoryFixtures.d.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Sample data lifted from the Figma "Popover" frames so the stories read like the design. */
|
|
2
|
+
export declare const KARTLEGGING: string[];
|
|
3
|
+
export declare const EGENRAPPORTERING: string[];
|
|
4
|
+
export interface FilterState {
|
|
5
|
+
kartlegging: string[];
|
|
6
|
+
egenrapportering: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const EMPTY_FILTER: FilterState;
|
|
9
|
+
export declare const noop: () => void;
|
|
10
|
+
/** How many results the mock list reports for a given number of active criteria. */
|
|
11
|
+
export declare const matchCountFor: (activeCount: number) => number;
|
|
12
|
+
export declare const countActive: (filter: FilterState) => number;
|
|
13
|
+
export declare const toggleInList: (list: string[], option: string) => string[];
|
|
14
|
+
/** The Figma "Chips select" group — a heading plus a wrapping row of checkbox/radio chips. */
|
|
15
|
+
export declare const ChipGroup: ({ heading, options, isSelected, onToggle, type, }: {
|
|
16
|
+
heading: string;
|
|
17
|
+
options: string[];
|
|
18
|
+
isSelected: (option: string) => boolean;
|
|
19
|
+
onToggle: (option: string) => void;
|
|
20
|
+
type: "checkbox" | "radio";
|
|
21
|
+
}) => JSX.Element;
|