@lax-wp/design-system 0.1.8 → 0.2.1

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.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Format a boolean value to display text
3
+ */
4
+ export declare const formatBooleanValue: (value: any) => string;
5
+ /**
6
+ * Format a currency value
7
+ */
8
+ export declare const formatCurrency: (value: any, currencyCode?: string) => string;
9
+ /**
10
+ * Format a date value
11
+ */
12
+ export declare const formatDate: (date?: string, config?: {
13
+ format?: string;
14
+ timezone?: string;
15
+ relative?: boolean;
16
+ withTime?: boolean;
17
+ fallback?: string;
18
+ skipTimezone?: boolean;
19
+ onlyTime?: boolean;
20
+ }) => string;
21
+ /**
22
+ * Check if a value is a valid ISO date string
23
+ */
24
+ export declare const isISODateString: (value: string) => boolean;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generate a consistent hash color from a string
3
+ */
4
+ export declare const getHashColor: (str: string) => string;
5
+ /**
6
+ * Lighten a hex color by a percentage
7
+ */
8
+ export declare const getLighterColor: (hex: string, percent?: number) => string;
9
+ /**
10
+ * Darken a hex color by a percentage
11
+ */
12
+ export declare const getDarkerColor: (hex: string, percent?: number) => 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.1.8",
4
+ "version": "0.2.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -39,8 +39,10 @@
39
39
  "@storybook/addon-actions": "^9.0.8",
40
40
  "antd": "^5.27.0",
41
41
  "classnames": "^2.5.1",
42
+ "diff": "^8.0.2",
42
43
  "immer": "^10.1.1",
43
44
  "lodash.debounce": "^4.0.8",
45
+ "re-resizable": "^6.11.2",
44
46
  "react-full-screen": "^1.1.1",
45
47
  "react-icons": "^5.5.0",
46
48
  "react-popper-tooltip": "^4.4.2",