@@ -60,10 +60,10 @@ export namespace Components {
6060 */
6161 "showLineNumbers" : boolean ;
6262 /**
63- * Theme for syntax highlighting. Options: 'light' or 'dark' .
64- * @default 'light '
63+ * Theme for syntax highlighting. Options: 'light', 'dark', or 'system'. System will use the user's system preference .
64+ * @default 'system '
6565 */
66- "theme" : 'light' | 'dark' ;
66+ "theme" : 'light' | 'dark' | 'system' ;
6767 /**
6868 * Initial view mode for the JSON data. Can be 'tree' or 'code'.
6969 * @default 'tree'
@@ -95,12 +95,22 @@ export namespace Components {
9595 * Optional ID for the actions container for ARIA references
9696 */
9797 "actionsId" ?: string ;
98+ /**
99+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
100+ * @default 'system'
101+ */
102+ "darkMode" : 'light' | 'dark' | 'system' ;
98103 }
99104 /**
100105 * Component for creating collapsible/expandable content sections
101106 * with resize capability and cross-browser compatibility
102107 */
103108 interface PidCollapsible {
109+ /**
110+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
111+ * @default 'system'
112+ */
113+ "darkMode" : 'light' | 'dark' | 'system' ;
104114 /**
105115 * Whether to emphasize the component with border and shadow
106116 * @default false
@@ -129,6 +139,10 @@ export namespace Components {
129139 * @default false
130140 */
131141 "open" : boolean ;
142+ /**
143+ * Public method to recalculate content dimensions Can be called externally, for example when pagination changes Optimized for better performance
144+ */
145+ "recalculateContentDimensions" : ( ) => Promise < any > ;
132146 /**
133147 * Whether to show the footer section
134148 * @default false
@@ -148,6 +162,12 @@ export namespace Components {
148162 * @default 0
149163 */
150164 "currentLevelOfSubcomponents" : number ;
165+ /**
166+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
167+ * @type {string }
168+ * @default 'system'
169+ */
170+ "darkMode" : 'light' | 'dark' | 'system' ;
151171 /**
152172 * Determines the default time to live (TTL) for entries in the IndexedDB. Defaults to 24 hours. Units are in milliseconds. (optional)
153173 * @type {number }
@@ -215,6 +235,11 @@ export namespace Components {
215235 * @default 0
216236 */
217237 "currentPage" : number ;
238+ /**
239+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
240+ * @default 'system'
241+ */
242+ "darkMode" : 'light' | 'dark' | 'system' ;
218243 /**
219244 * Whether to hide subcomponents
220245 * @default false
@@ -252,16 +277,16 @@ export namespace Components {
252277 "settings" : string ;
253278 }
254279 interface PidPagination {
255- /**
256- * Enable adaptive pagination mode
257- * @default false
258- */
259- "adaptivePagination" : boolean ;
260280 /**
261281 * Current page (0-based index)
262282 * @default 0
263283 */
264284 "currentPage" : number ;
285+ /**
286+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
287+ * @default 'system'
288+ */
289+ "darkMode" : 'light' | 'dark' | 'system' ;
265290 /**
266291 * Number of items per page
267292 * @default 10
@@ -359,6 +384,7 @@ declare global {
359384 } ;
360385 interface HTMLPidCollapsibleElementEventMap {
361386 "collapsibleToggle" : boolean ;
387+ "contentHeightChange" : { maxHeight : number } ;
362388 }
363389 /**
364390 * Component for creating collapsible/expandable content sections
@@ -493,10 +519,10 @@ declare namespace LocalJSX {
493519 */
494520 "showLineNumbers" ?: boolean ;
495521 /**
496- * Theme for syntax highlighting. Options: 'light' or 'dark' .
497- * @default 'light '
522+ * Theme for syntax highlighting. Options: 'light', 'dark', or 'system'. System will use the user's system preference .
523+ * @default 'system '
498524 */
499- "theme" ?: 'light' | 'dark' ;
525+ "theme" ?: 'light' | 'dark' | 'system' ;
500526 /**
501527 * Initial view mode for the JSON data. Can be 'tree' or 'code'.
502528 * @default 'tree'
@@ -528,12 +554,22 @@ declare namespace LocalJSX {
528554 * Optional ID for the actions container for ARIA references
529555 */
530556 "actionsId" ?: string ;
557+ /**
558+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
559+ * @default 'system'
560+ */
561+ "darkMode" ?: 'light' | 'dark' | 'system' ;
531562 }
532563 /**
533564 * Component for creating collapsible/expandable content sections
534565 * with resize capability and cross-browser compatibility
535566 */
536567 interface PidCollapsible {
568+ /**
569+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
570+ * @default 'system'
571+ */
572+ "darkMode" ?: 'light' | 'dark' | 'system' ;
537573 /**
538574 * Whether to emphasize the component with border and shadow
539575 * @default false
@@ -561,6 +597,10 @@ declare namespace LocalJSX {
561597 * Event emitted when the collapsible is toggled
562598 */
563599 "onCollapsibleToggle" ?: ( event : PidCollapsibleCustomEvent < boolean > ) => void ;
600+ /**
601+ * Event emitted when content dimensions need to be recalculated Useful for pagination to ensure proper height
602+ */
603+ "onContentHeightChange" ?: ( event : PidCollapsibleCustomEvent < { maxHeight : number } > ) => void ;
564604 /**
565605 * Whether the collapsible is open by default
566606 * @default false
@@ -585,6 +625,12 @@ declare namespace LocalJSX {
585625 * @default 0
586626 */
587627 "currentLevelOfSubcomponents" ?: number ;
628+ /**
629+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
630+ * @type {string }
631+ * @default 'system'
632+ */
633+ "darkMode" ?: 'light' | 'dark' | 'system' ;
588634 /**
589635 * Determines the default time to live (TTL) for entries in the IndexedDB. Defaults to 24 hours. Units are in milliseconds. (optional)
590636 * @type {number }
@@ -652,6 +698,11 @@ declare namespace LocalJSX {
652698 * @default 0
653699 */
654700 "currentPage" ?: number ;
701+ /**
702+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
703+ * @default 'system'
704+ */
705+ "darkMode" ?: 'light' | 'dark' | 'system' ;
655706 /**
656707 * Whether to hide subcomponents
657708 * @default false
@@ -697,16 +748,16 @@ declare namespace LocalJSX {
697748 "settings" ?: string ;
698749 }
699750 interface PidPagination {
700- /**
701- * Enable adaptive pagination mode
702- * @default false
703- */
704- "adaptivePagination" ?: boolean ;
705751 /**
706752 * Current page (0-based index)
707753 * @default 0
708754 */
709755 "currentPage" ?: number ;
756+ /**
757+ * The dark mode setting for the component Options: "light", "dark", "system" Default: "system"
758+ * @default 'system'
759+ */
760+ "darkMode" ?: 'light' | 'dark' | 'system' ;
710761 /**
711762 * Number of items per page
712763 * @default 10
0 commit comments