@neasg/design-system 0.2.1 → 0.4.2

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.
Files changed (100) hide show
  1. package/README.md +37 -1
  2. package/dist/alert.d.ts +15 -0
  3. package/dist/alert.js +24 -0
  4. package/dist/avatar.d.ts +5 -2
  5. package/dist/avatar.js +8 -4
  6. package/dist/back-button.d.ts +6 -0
  7. package/dist/back-button.js +8 -0
  8. package/dist/badge.d.ts +4 -2
  9. package/dist/badge.js +13 -2
  10. package/dist/breadcrumb.js +2 -2
  11. package/dist/button.d.ts +2 -2
  12. package/dist/button.js +3 -4
  13. package/dist/calendar.d.ts +8 -0
  14. package/dist/calendar.js +80 -0
  15. package/dist/card.d.ts +17 -0
  16. package/dist/card.js +16 -0
  17. package/dist/checkbox.d.ts +13 -0
  18. package/dist/checkbox.js +29 -0
  19. package/dist/collapsible.d.ts +19 -0
  20. package/dist/collapsible.js +20 -0
  21. package/dist/command-search.js +4 -3
  22. package/dist/copy-button.d.ts +19 -0
  23. package/dist/copy-button.js +31 -0
  24. package/dist/date-input.d.ts +22 -0
  25. package/dist/date-input.js +61 -0
  26. package/dist/dialog-primitive.js +1 -1
  27. package/dist/draggable-tabs.js +1 -1
  28. package/dist/drawer.js +1 -1
  29. package/dist/editable-table.js +2 -2
  30. package/dist/empty-state.js +1 -1
  31. package/dist/field.d.ts +4 -1
  32. package/dist/field.js +3 -3
  33. package/dist/file-upload.d.ts +12 -0
  34. package/dist/file-upload.js +106 -0
  35. package/dist/index.d.ts +56 -4
  36. package/dist/index.js +30 -3
  37. package/dist/input-control.d.ts +1 -1
  38. package/dist/input-control.js +1 -1
  39. package/dist/input.js +2 -2
  40. package/dist/label-value-grid.d.ts +3 -1
  41. package/dist/label-value-grid.js +15 -2
  42. package/dist/label-value.d.ts +4 -1
  43. package/dist/label-value.js +5 -3
  44. package/dist/layout.d.ts +7 -1
  45. package/dist/layout.js +3 -3
  46. package/dist/lib/date-utils.d.ts +9 -0
  47. package/dist/lib/date-utils.js +34 -0
  48. package/dist/link.d.ts +9 -0
  49. package/dist/link.js +19 -0
  50. package/dist/multi-select.d.ts +31 -0
  51. package/dist/multi-select.js +78 -0
  52. package/dist/otp-input.js +1 -1
  53. package/dist/page-section.d.ts +14 -0
  54. package/dist/page-section.js +13 -0
  55. package/dist/pagination.js +3 -2
  56. package/dist/popover-menu.d.ts +35 -0
  57. package/dist/popover-menu.js +36 -0
  58. package/dist/popover-primitive.d.ts +7 -0
  59. package/dist/popover-primitive.js +11 -0
  60. package/dist/popover.d.ts +12 -0
  61. package/dist/popover.js +8 -0
  62. package/dist/progress.d.ts +10 -0
  63. package/dist/progress.js +17 -0
  64. package/dist/search-input.js +1 -1
  65. package/dist/section-nav.d.ts +22 -0
  66. package/dist/section-nav.js +25 -0
  67. package/dist/select-primitive.d.ts +3 -1
  68. package/dist/select-primitive.js +3 -2
  69. package/dist/select.d.ts +1 -0
  70. package/dist/select.js +3 -3
  71. package/dist/separator.d.ts +6 -0
  72. package/dist/separator.js +6 -0
  73. package/dist/skeleton.d.ts +4 -0
  74. package/dist/skeleton.js +6 -0
  75. package/dist/spinner.d.ts +22 -0
  76. package/dist/spinner.js +24 -0
  77. package/dist/styles.css +42 -0
  78. package/dist/switch.d.ts +12 -0
  79. package/dist/switch.js +16 -0
  80. package/dist/table.d.ts +7 -1
  81. package/dist/table.js +26 -12
  82. package/dist/tabs.d.ts +24 -1
  83. package/dist/tabs.js +61 -3
  84. package/dist/tailwind-preset.js +9 -0
  85. package/dist/textarea.js +1 -1
  86. package/dist/toaster.d.ts +13 -0
  87. package/dist/toaster.js +27 -0
  88. package/dist/typography.d.ts +2 -0
  89. package/dist/typography.js +9 -2
  90. package/dist/use-error-shake.d.ts +7 -0
  91. package/dist/use-error-shake.js +36 -0
  92. package/dist/use-file-upload.d.ts +34 -0
  93. package/dist/use-file-upload.js +133 -0
  94. package/dist/use-sticky-sentinel.d.ts +16 -0
  95. package/dist/use-sticky-sentinel.js +62 -0
  96. package/dist/use-table-sort.d.ts +28 -0
  97. package/dist/use-table-sort.js +53 -0
  98. package/dist/use-viewport-threshold.d.ts +12 -0
  99. package/dist/use-viewport-threshold.js +43 -0
  100. package/package.json +36 -6
@@ -0,0 +1,133 @@
1
+ "use client";
2
+ import { useCallback, useRef, useState } from "react";
3
+ export function useFileUpload(options = {}) {
4
+ const [uploadProgress, setUploadProgress] = useState(new Map());
5
+ const [isUploading, setIsUploading] = useState(false);
6
+ const xhrRefs = useRef([]);
7
+ const updateProgress = useCallback((fileName, updates) => {
8
+ setUploadProgress((prev) => {
9
+ var _a;
10
+ const newMap = new Map(prev);
11
+ const current = (_a = newMap.get(fileName)) !== null && _a !== void 0 ? _a : {
12
+ name: fileName,
13
+ progress: 0,
14
+ status: "pending",
15
+ };
16
+ newMap.set(fileName, { ...current, ...updates });
17
+ return newMap;
18
+ });
19
+ }, []);
20
+ const uploadSingleFile = useCallback((file, folder) => {
21
+ var _a;
22
+ const endpoint = (_a = options.endpoint) !== null && _a !== void 0 ? _a : "/api/upload";
23
+ const extraFields = options.extraFields;
24
+ return new Promise((resolve) => {
25
+ const xhr = new XMLHttpRequest();
26
+ xhrRefs.current.push(xhr);
27
+ xhr.upload.onprogress = (event) => {
28
+ if (event.lengthComputable) {
29
+ const progress = Math.round((event.loaded / event.total) * 100);
30
+ updateProgress(file.name, { progress, status: "uploading" });
31
+ }
32
+ };
33
+ xhr.onload = () => {
34
+ var _a;
35
+ if (xhr.status >= 200 && xhr.status < 300) {
36
+ try {
37
+ const response = JSON.parse(xhr.responseText);
38
+ const uploadedFile = (_a = response.files) === null || _a === void 0 ? void 0 : _a[0];
39
+ const result = {
40
+ name: file.name,
41
+ progress: 100,
42
+ status: "complete",
43
+ result: uploadedFile,
44
+ };
45
+ updateProgress(file.name, result);
46
+ resolve(result);
47
+ }
48
+ catch {
49
+ const result = {
50
+ name: file.name,
51
+ progress: 0,
52
+ status: "error",
53
+ error: "Failed to parse response",
54
+ };
55
+ updateProgress(file.name, result);
56
+ resolve(result);
57
+ }
58
+ }
59
+ else {
60
+ const result = {
61
+ name: file.name,
62
+ progress: 0,
63
+ status: "error",
64
+ error: `Upload failed: ${xhr.statusText}`,
65
+ };
66
+ updateProgress(file.name, result);
67
+ resolve(result);
68
+ }
69
+ };
70
+ xhr.onerror = () => {
71
+ const result = {
72
+ name: file.name,
73
+ progress: 0,
74
+ status: "error",
75
+ error: "Network error",
76
+ };
77
+ updateProgress(file.name, result);
78
+ resolve(result);
79
+ };
80
+ xhr.onabort = () => {
81
+ const result = {
82
+ name: file.name,
83
+ progress: 0,
84
+ status: "error",
85
+ error: "Upload cancelled",
86
+ };
87
+ updateProgress(file.name, result);
88
+ resolve(result);
89
+ };
90
+ const formData = new FormData();
91
+ formData.append("files", file);
92
+ formData.append("folder", folder);
93
+ if (extraFields) {
94
+ for (const [key, value] of Object.entries(extraFields)) {
95
+ formData.append(key, value);
96
+ }
97
+ }
98
+ updateProgress(file.name, { status: "pending", progress: 0 });
99
+ xhr.open("POST", endpoint);
100
+ xhr.send(formData);
101
+ });
102
+ }, [options.endpoint, options.extraFields, updateProgress]);
103
+ const uploadFiles = useCallback(async (files, folder) => {
104
+ var _a, _b, _c;
105
+ const uploadFolder = (_a = folder !== null && folder !== void 0 ? folder : options.folder) !== null && _a !== void 0 ? _a : "attachments";
106
+ setIsUploading(true);
107
+ xhrRefs.current = [];
108
+ const results = await Promise.all(files.map((file) => uploadSingleFile(file, uploadFolder)));
109
+ setIsUploading(false);
110
+ (_b = options.onComplete) === null || _b === void 0 ? void 0 : _b.call(options, results);
111
+ const errors = results.filter((r) => r.status === "error");
112
+ if (errors.length > 0) {
113
+ (_c = options.onError) === null || _c === void 0 ? void 0 : _c.call(options, new Error(`${errors.length} file(s) failed to upload`));
114
+ }
115
+ return results;
116
+ }, [options, uploadSingleFile]);
117
+ const reset = useCallback(() => {
118
+ setUploadProgress(new Map());
119
+ setIsUploading(false);
120
+ }, []);
121
+ const cancel = useCallback(() => {
122
+ xhrRefs.current.forEach((xhr) => xhr.abort());
123
+ xhrRefs.current = [];
124
+ setIsUploading(false);
125
+ }, []);
126
+ return {
127
+ uploadProgress,
128
+ isUploading,
129
+ uploadFiles,
130
+ reset,
131
+ cancel,
132
+ };
133
+ }
@@ -0,0 +1,16 @@
1
+ import { type RefObject } from "react";
2
+ export interface UseStickySentinelOptions {
3
+ root?: Element | Document | null;
4
+ rootMargin?: string;
5
+ threshold?: number;
6
+ debounceMs?: number;
7
+ initialSticky?: boolean;
8
+ disabled?: boolean;
9
+ resetOnUnmount?: boolean;
10
+ onStickyChange?: (isSticky: boolean) => void;
11
+ }
12
+ export interface UseStickySentinelReturn<TElement extends Element> {
13
+ isSticky: boolean;
14
+ sentinelRef: RefObject<TElement>;
15
+ }
16
+ export declare function useStickySentinel<TElement extends Element = HTMLDivElement>({ root, rootMargin, threshold, debounceMs, initialSticky, disabled, resetOnUnmount, onStickyChange, }?: UseStickySentinelOptions): UseStickySentinelReturn<TElement>;
@@ -0,0 +1,62 @@
1
+ "use client";
2
+ import { useEffect, useRef, useState } from "react";
3
+ export function useStickySentinel({ root = null, rootMargin = "0px", threshold = 0, debounceMs = 0, initialSticky = false, disabled = false, resetOnUnmount = false, onStickyChange, } = {}) {
4
+ const [isSticky, setIsSticky] = useState(initialSticky);
5
+ const sentinelRef = useRef(null);
6
+ const timeoutRef = useRef(null);
7
+ const lastValueRef = useRef(null);
8
+ const onStickyChangeRef = useRef(onStickyChange);
9
+ useEffect(() => {
10
+ onStickyChangeRef.current = onStickyChange;
11
+ }, [onStickyChange]);
12
+ useEffect(() => {
13
+ if (disabled || typeof IntersectionObserver === "undefined")
14
+ return;
15
+ const sentinel = sentinelRef.current;
16
+ if (!sentinel)
17
+ return;
18
+ const clearPendingUpdate = () => {
19
+ if (timeoutRef.current !== null) {
20
+ window.clearTimeout(timeoutRef.current);
21
+ timeoutRef.current = null;
22
+ }
23
+ };
24
+ const commitStickyState = (nextSticky) => {
25
+ var _a;
26
+ lastValueRef.current = nextSticky;
27
+ setIsSticky(nextSticky);
28
+ (_a = onStickyChangeRef.current) === null || _a === void 0 ? void 0 : _a.call(onStickyChangeRef, nextSticky);
29
+ };
30
+ const scheduleStickyState = (nextSticky) => {
31
+ if (nextSticky === lastValueRef.current)
32
+ return;
33
+ clearPendingUpdate();
34
+ if (debounceMs > 0) {
35
+ timeoutRef.current = window.setTimeout(() => {
36
+ timeoutRef.current = null;
37
+ commitStickyState(nextSticky);
38
+ }, debounceMs);
39
+ return;
40
+ }
41
+ commitStickyState(nextSticky);
42
+ };
43
+ const observer = new IntersectionObserver(([entry]) => scheduleStickyState(!entry.isIntersecting), {
44
+ root,
45
+ rootMargin,
46
+ threshold,
47
+ });
48
+ observer.observe(sentinel);
49
+ return () => {
50
+ var _a;
51
+ clearPendingUpdate();
52
+ observer.disconnect();
53
+ if (resetOnUnmount) {
54
+ (_a = onStickyChangeRef.current) === null || _a === void 0 ? void 0 : _a.call(onStickyChangeRef, false);
55
+ }
56
+ };
57
+ }, [debounceMs, disabled, resetOnUnmount, root, rootMargin, threshold]);
58
+ return {
59
+ isSticky,
60
+ sentinelRef,
61
+ };
62
+ }
@@ -0,0 +1,28 @@
1
+ import type { TableSortDirection, TableSortingProps } from "./table";
2
+ export interface UseTableSortOptions<Field extends string = string> {
3
+ /** Initial sort field. */
4
+ defaultField?: Field | null;
5
+ /** Initial sort direction. */
6
+ defaultDirection?: TableSortDirection;
7
+ /**
8
+ * Toggle cycle when clicking the same column again.
9
+ * - "asc-desc" (default): asc → desc → asc
10
+ * - "asc-desc-none": asc → desc → unsorted → asc
11
+ */
12
+ cycle?: "asc-desc" | "asc-desc-none";
13
+ /** Called whenever sort changes — use for server-side query params. */
14
+ onChange?: (field: Field | null, direction: TableSortDirection) => void;
15
+ }
16
+ export interface UseTableSortReturn<Field extends string = string> {
17
+ field: Field | null;
18
+ direction: TableSortDirection;
19
+ /** Pass directly to `<Table sorting={...} />`. */
20
+ sorting: TableSortingProps;
21
+ /** Imperatively set sort (e.g. restore from URL). */
22
+ setSort: (field: Field | null, direction?: TableSortDirection) => void;
23
+ /** Reset to the default field/direction. */
24
+ reset: () => void;
25
+ /** Client-side helper: returns a sorted copy of rows using the given accessor. */
26
+ sortRows: <Row>(rows: Row[], accessor: (row: Row, field: Field) => unknown) => Row[];
27
+ }
28
+ export declare function useTableSort<Field extends string = string>({ defaultField, defaultDirection, cycle, onChange, }?: UseTableSortOptions<Field>): UseTableSortReturn<Field>;
@@ -0,0 +1,53 @@
1
+ import * as React from "react";
2
+ export function useTableSort({ defaultField = null, defaultDirection = "asc", cycle = "asc-desc", onChange, } = {}) {
3
+ const [field, setField] = React.useState(defaultField);
4
+ const [direction, setDirection] = React.useState(defaultDirection);
5
+ const emit = React.useCallback((nextField, nextDirection) => {
6
+ setField(nextField);
7
+ setDirection(nextDirection);
8
+ onChange === null || onChange === void 0 ? void 0 : onChange(nextField, nextDirection);
9
+ }, [onChange]);
10
+ const onSort = React.useCallback((nextField) => {
11
+ const typed = nextField;
12
+ if (field !== typed) {
13
+ emit(typed, "asc");
14
+ return;
15
+ }
16
+ if (direction === "asc") {
17
+ emit(typed, "desc");
18
+ return;
19
+ }
20
+ if (cycle === "asc-desc-none") {
21
+ emit(null, "asc");
22
+ return;
23
+ }
24
+ emit(typed, "asc");
25
+ }, [field, direction, cycle, emit]);
26
+ const setSort = React.useCallback((nextField, nextDirection = "asc") => {
27
+ emit(nextField, nextDirection);
28
+ }, [emit]);
29
+ const reset = React.useCallback(() => {
30
+ emit(defaultField, defaultDirection);
31
+ }, [emit, defaultField, defaultDirection]);
32
+ const sortRows = React.useCallback((rows, accessor) => {
33
+ if (!field)
34
+ return rows;
35
+ const multiplier = direction === "asc" ? 1 : -1;
36
+ return [...rows].sort((a, b) => {
37
+ const av = accessor(a, field);
38
+ const bv = accessor(b, field);
39
+ if (av == null && bv == null)
40
+ return 0;
41
+ if (av == null)
42
+ return 1;
43
+ if (bv == null)
44
+ return -1;
45
+ if (typeof av === "number" && typeof bv === "number") {
46
+ return (av - bv) * multiplier;
47
+ }
48
+ return String(av).localeCompare(String(bv)) * multiplier;
49
+ });
50
+ }, [field, direction]);
51
+ const sorting = React.useMemo(() => ({ field, direction, onSort }), [field, direction, onSort]);
52
+ return { field, direction, sorting, setSort, reset, sortRows };
53
+ }
@@ -0,0 +1,12 @@
1
+ import { type RefObject } from "react";
2
+ export interface UseViewportThresholdOptions {
3
+ collapseAt: number;
4
+ expandAt?: number;
5
+ initialPastThreshold?: boolean;
6
+ disabled?: boolean;
7
+ }
8
+ export interface UseViewportThresholdReturn<TElement extends Element> {
9
+ isPastThreshold: boolean;
10
+ sentinelRef: RefObject<TElement>;
11
+ }
12
+ export declare function useViewportThreshold<TElement extends Element = HTMLDivElement>({ collapseAt, expandAt, initialPastThreshold, disabled, }: UseViewportThresholdOptions): UseViewportThresholdReturn<TElement>;
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ import { useEffect, useRef, useState } from "react";
3
+ export function useViewportThreshold({ collapseAt, expandAt = collapseAt, initialPastThreshold = false, disabled = false, }) {
4
+ const [isPastThreshold, setIsPastThreshold] = useState(initialPastThreshold);
5
+ const sentinelRef = useRef(null);
6
+ useEffect(() => {
7
+ if (disabled)
8
+ return;
9
+ const sentinel = sentinelRef.current;
10
+ if (!sentinel)
11
+ return;
12
+ let frameId = null;
13
+ const updateThresholdState = () => {
14
+ frameId = null;
15
+ const sentinelTop = sentinel.getBoundingClientRect().top;
16
+ setIsPastThreshold((prev) => {
17
+ if (prev) {
18
+ return sentinelTop <= expandAt;
19
+ }
20
+ return sentinelTop <= collapseAt;
21
+ });
22
+ };
23
+ const requestUpdate = () => {
24
+ if (frameId !== null)
25
+ return;
26
+ frameId = window.requestAnimationFrame(updateThresholdState);
27
+ };
28
+ requestUpdate();
29
+ window.addEventListener("scroll", requestUpdate, { passive: true });
30
+ window.addEventListener("resize", requestUpdate);
31
+ return () => {
32
+ if (frameId !== null) {
33
+ window.cancelAnimationFrame(frameId);
34
+ }
35
+ window.removeEventListener("scroll", requestUpdate);
36
+ window.removeEventListener("resize", requestUpdate);
37
+ };
38
+ }, [collapseAt, disabled, expandAt]);
39
+ return {
40
+ isPastThreshold,
41
+ sentinelRef,
42
+ };
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neasg/design-system",
3
- "version": "0.2.1",
3
+ "version": "0.4.2",
4
4
  "description": "NEA shared design system primitives, theme tokens, and Storybook docs.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -35,27 +35,33 @@
35
35
  "@dnd-kit/utilities": "^3.2.2",
36
36
  "@govtechsg/sgds-web-component": "^3.8.1",
37
37
  "@radix-ui/react-avatar": "^1.1.11",
38
+ "@radix-ui/react-collapsible": "^1.1.12",
38
39
  "@radix-ui/react-dialog": "^1.1.15",
40
+ "@radix-ui/react-popover": "^1.1.15",
39
41
  "@radix-ui/react-select": "^2.2.6",
40
42
  "@radix-ui/react-slot": "^1.2.4",
43
+ "@radix-ui/react-switch": "^1.2.6",
41
44
  "@radix-ui/react-tabs": "^1.1.13",
42
45
  "@radix-ui/react-tooltip": "^1.2.8",
43
46
  "class-variance-authority": "^0.7.0",
44
47
  "clsx": "^2.1.1",
45
48
  "cmdk": "^1.1.1",
49
+ "date-fns": "^4.1.0",
46
50
  "input-otp": "^1.4.2",
47
51
  "libphonenumber-js": "^1.12.41",
48
52
  "lucide-react": "^0.555.0",
49
53
  "motion": "^12.33.0",
54
+ "react-day-picker": "^9.14.0",
55
+ "sonner": "^2.0.7",
50
56
  "tailwind-merge": "^2.3.0",
51
57
  "tailwindcss-animate": "^1.0.7"
52
58
  },
53
59
  "devDependencies": {
54
60
  "@fontsource/inter": "^5.2.8",
55
- "@storybook/addon-docs": "10.2.19",
56
- "@storybook/addon-themes": "10.2.19",
57
- "@storybook/react": "10.2.19",
58
- "@storybook/react-vite": "10.2.19",
61
+ "@storybook/addon-docs": "10.3.5",
62
+ "@storybook/addon-mcp": "^0.5.0",
63
+ "@storybook/addon-themes": "10.3.5",
64
+ "@storybook/react-vite": "10.3.5",
59
65
  "@testing-library/jest-dom": "^6.9.1",
60
66
  "@types/node": "^20.10.5",
61
67
  "@types/react": "^18.2.45",
@@ -66,7 +72,7 @@
66
72
  "postcss": "^8.4.31",
67
73
  "react": "^18.2.0",
68
74
  "react-dom": "^18.2.0",
69
- "storybook": "10.2.19",
75
+ "storybook": "10.3.5",
70
76
  "tailwindcss": "^3.4.1",
71
77
  "typescript": "^5.3.3",
72
78
  "vitest": "^4.1.0"
@@ -88,6 +94,10 @@
88
94
  "types": "./dist/badge.d.ts",
89
95
  "import": "./dist/badge.js"
90
96
  },
97
+ "./back-button": {
98
+ "types": "./dist/back-button.d.ts",
99
+ "import": "./dist/back-button.js"
100
+ },
91
101
  "./button": {
92
102
  "types": "./dist/button.d.ts",
93
103
  "import": "./dist/button.js"
@@ -168,6 +178,14 @@
168
178
  "types": "./dist/page-header.d.ts",
169
179
  "import": "./dist/page-header.js"
170
180
  },
181
+ "./page-section": {
182
+ "types": "./dist/page-section.d.ts",
183
+ "import": "./dist/page-section.js"
184
+ },
185
+ "./popover": {
186
+ "types": "./dist/popover.d.ts",
187
+ "import": "./dist/popover.js"
188
+ },
171
189
  "./pagination": {
172
190
  "types": "./dist/pagination.d.ts",
173
191
  "import": "./dist/pagination.js"
@@ -176,6 +194,10 @@
176
194
  "types": "./dist/search-input.d.ts",
177
195
  "import": "./dist/search-input.js"
178
196
  },
197
+ "./section-nav": {
198
+ "types": "./dist/section-nav.d.ts",
199
+ "import": "./dist/section-nav.js"
200
+ },
179
201
  "./styles.css": "./dist/styles.css",
180
202
  "./table": {
181
203
  "types": "./dist/table.d.ts",
@@ -209,6 +231,14 @@
209
231
  "types": "./dist/tooltip.d.ts",
210
232
  "import": "./dist/tooltip.js"
211
233
  },
234
+ "./separator": {
235
+ "types": "./dist/separator.d.ts",
236
+ "import": "./dist/separator.js"
237
+ },
238
+ "./collapsible-section": {
239
+ "types": "./dist/collapsible-section.d.ts",
240
+ "import": "./dist/collapsible-section.js"
241
+ },
212
242
  "./lib/utils": {
213
243
  "types": "./dist/lib/utils.d.ts",
214
244
  "import": "./dist/lib/utils.js"