@simpli-route/apollo-ds 0.2.1 → 0.2.3
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/components/Badge/Badge.d.ts +7 -1
- package/dist/components/Badge/Badge.test.d.ts +1 -0
- package/dist/components/FilterTypeChip/FilterTypeChip.test.d.ts +1 -0
- package/dist/components/SearchField/utils.d.ts +5 -5
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +1802 -1765
- package/dist/stories/Autocomplete.stories.d.ts +8 -0
- package/dist/stories/InvisibleSelect.stories.d.ts +8 -0
- package/dist/stories/SearchField.stories.d.ts +11 -0
- package/dist/stories/SelectInput.stories.d.ts +8 -0
- package/dist/utils/accentInsensitive.d.ts +28 -0
- package/dist/utils/accentInsensitive.test.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { BadgeProps } from './types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Badge component for displaying selected values with delete functionality
|
|
4
|
+
* Badge component for displaying selected values with delete functionality.
|
|
5
|
+
*
|
|
6
|
+
* The delete affordance is rendered as a `<span role="button">` rather than a
|
|
7
|
+
* native `<button>` so the Badge can be safely nested inside another button
|
|
8
|
+
* (e.g. the trigger of a multi-select). Keyboard and pointer interactions are
|
|
9
|
+
* preserved (Enter / Space activate; click `stopPropagation` keeps the outer
|
|
10
|
+
* button from toggling when the Badge's delete is clicked).
|
|
5
11
|
*
|
|
6
12
|
* ### Usage
|
|
7
13
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,12 +10,12 @@ export declare function getSearchFieldDefaultProps<T extends {
|
|
|
10
10
|
label: string;
|
|
11
11
|
}>(props: SearchFieldProps<T>): SearchFieldProps<T>;
|
|
12
12
|
/**
|
|
13
|
-
* Split text into parts with highlight information
|
|
13
|
+
* Split text into parts with highlight information.
|
|
14
|
+
*
|
|
15
|
+
* Accent- and case-insensitive: matching "accion" highlights "Acción". Delegates to the
|
|
16
|
+
* shared `getHighlightedParts` util so filtering and highlighting stay consistent.
|
|
14
17
|
* @param text - The text to split
|
|
15
18
|
* @param highlight - The text to highlight
|
|
16
19
|
* @returns Array of parts with highlight flag
|
|
17
20
|
*/
|
|
18
|
-
export declare function getHighlightedParts(text: string, highlight: string):
|
|
19
|
-
text: string;
|
|
20
|
-
highlight: boolean;
|
|
21
|
-
}[];
|
|
21
|
+
export declare function getHighlightedParts(text: string, highlight: string): import('../../utils').HighlightedPart[];
|