@ikonai/sdk-react-ui-radix 0.0.10 → 0.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk-react-ui-radix",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
package/radix-core.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { UiComponentRendererProps, UiElementProps } from '../../sdk-react-ui/src/index.ts';
1
+ import { UiComponentRendererProps, UiElementNode, UiElementProps } from '../../sdk-react-ui/src/index.ts';
2
2
  export declare function toStringValue(value: unknown): string | undefined;
3
3
  export declare function toBooleanValue(value: unknown): boolean | undefined;
4
4
  export declare function toNumberValue(value: unknown): number | undefined;
@@ -7,3 +7,10 @@ export declare function combineClassNames(...candidates: (string | readonly stri
7
7
  export declare function pickPrimitiveProps(props: UiElementProps | undefined, exclude?: Set<string>): Record<string, unknown>;
8
8
  export declare function createVoidDispatcher(actionId: string | undefined, dispatch: UiComponentRendererProps['context']['dispatchAction']): (() => void) | undefined;
9
9
  export declare function createStringDispatcher(actionId: string | undefined, dispatch: UiComponentRendererProps['context']['dispatchAction']): ((value: string) => void) | undefined;
10
+ export declare function createNullableBooleanDispatcher(actionId: string | undefined, dispatch: UiComponentRendererProps['context']['dispatchAction']): ((value: boolean | null | undefined) => void) | undefined;
11
+ export declare function toStyleIdList(value: unknown): readonly string[] | undefined;
12
+ export interface SlotChildCollection {
13
+ readonly defaultChildren: readonly UiElementNode[];
14
+ readonly slotChildren: ReadonlyMap<string, readonly UiElementNode[]>;
15
+ }
16
+ export declare function collectSlotChildren(node: UiElementNode): SlotChildCollection;