@lax-wp/design-system 0.3.4 → 0.3.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/components/forms/search-bar/SearchBar.d.ts +29 -0
- package/dist/components/icons/CloseRounded.d.ts +9 -0
- package/dist/components/navigation-2/Children.d.ts +3 -0
- package/dist/components/navigation-2/DropableWrapper.d.ts +6 -0
- package/dist/components/navigation-2/MoreButton.d.ts +14 -0
- package/dist/components/navigation-2/SortableTab.d.ts +9 -0
- package/dist/components/navigation-2/TabDragOverlay.d.ts +13 -0
- package/dist/components/navigation-2/TabSwitch.d.ts +15 -0
- package/dist/components/navigation-2/Tabs.d.ts +75 -0
- package/dist/components/navigation-2/Tooltip.d.ts +13 -0
- package/dist/components/navigation-2/index.d.ts +5 -0
- package/dist/components/navigation-2/types.d.ts +65 -0
- package/dist/design-system.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +17034 -14662
- package/dist/index.umd.js +95 -95
- package/dist/utils/utilities.d.ts +18 -7
- package/package.json +2 -1
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import { type JsonValue } from '../types';
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
2
|
+
* Parses a JSON string and returns the parsed JSON object
|
|
3
|
+
* @param json - The JSON string to parse
|
|
4
|
+
* @returns The parsed JSON object or null if the JSON is invalid
|
|
4
5
|
*/
|
|
5
|
-
export declare const parseJson: (
|
|
6
|
+
export declare const parseJson: (json: string) => any;
|
|
6
7
|
/**
|
|
7
|
-
|
|
8
|
+
* Generates a random hexadecimal string of specified length
|
|
9
|
+
* @param length - The length of the hex string to generate
|
|
10
|
+
* @returns A random hex string
|
|
11
|
+
*/
|
|
12
|
+
export declare const randomHexString: (length: number) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Escape special regex characters in a string
|
|
15
|
+
* @param string - The string to escape
|
|
16
|
+
* @returns The escaped string
|
|
8
17
|
*/
|
|
9
|
-
export declare const
|
|
18
|
+
export declare const escapeRegExp: (string: string) => string;
|
|
10
19
|
/**
|
|
11
|
-
*
|
|
20
|
+
* Filters top level paths from a list of paths
|
|
21
|
+
* @param paths - The list of paths to filter
|
|
22
|
+
* @returns The filtered list of top level paths
|
|
12
23
|
*/
|
|
13
|
-
export declare const
|
|
24
|
+
export declare const filterTopLevelPaths: (paths: string[]) => string[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lax-wp/design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"immer": "^10.1.1",
|
|
48
48
|
"lodash.debounce": "^4.0.8",
|
|
49
49
|
"re-resizable": "^6.11.2",
|
|
50
|
+
"react-debounce-input": "^3.3.0",
|
|
50
51
|
"react-full-screen": "^1.1.1",
|
|
51
52
|
"react-icons": "^5.5.0",
|
|
52
53
|
"react-popper-tooltip": "^4.4.2",
|