@gtkx/react 1.0.0-rc.1 → 1.0.0-rc.3
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/adw/config.d.ts +2 -0
- package/dist/adw/config.d.ts.map +1 -0
- package/dist/adw/config.js +2 -0
- package/dist/adw/config.js.map +1 -0
- package/dist/{libraries/adw → adw}/dialog.d.ts +2 -2
- package/dist/adw/dialog.d.ts.map +1 -0
- package/dist/adw/dialog.js +25 -0
- package/dist/adw/dialog.js.map +1 -0
- package/dist/adw/element-behaviors.d.ts +2 -0
- package/dist/adw/element-behaviors.d.ts.map +1 -0
- package/dist/adw/element-behaviors.js +269 -0
- package/dist/adw/element-behaviors.js.map +1 -0
- package/dist/adw/element-config.d.ts +11 -0
- package/dist/adw/element-config.d.ts.map +1 -0
- package/dist/adw/element-config.js +127 -0
- package/dist/adw/element-config.js.map +1 -0
- package/dist/adw/index.d.ts +4 -0
- package/dist/adw/index.d.ts.map +1 -0
- package/dist/adw/index.js +3 -0
- package/dist/adw/index.js.map +1 -0
- package/dist/adw/prop-types.d.ts +29 -0
- package/dist/adw/prop-types.d.ts.map +1 -0
- package/dist/adw/prop-types.js +2 -0
- package/dist/adw/prop-types.js.map +1 -0
- package/dist/bootstrap.d.ts +2 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap.js +5 -0
- package/dist/bootstrap.js.map +1 -0
- package/dist/components/application.d.ts +2 -2
- package/dist/components/application.d.ts.map +1 -1
- package/dist/components/application.js +31 -18
- package/dist/components/application.js.map +1 -1
- package/dist/components/element.d.ts +6 -0
- package/dist/components/element.d.ts.map +1 -0
- package/dist/components/element.js +29 -0
- package/dist/components/element.js.map +1 -0
- package/dist/components/window.d.ts +2 -2
- package/dist/components/window.d.ts.map +1 -1
- package/dist/components/window.js +22 -12
- package/dist/components/window.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +3 -0
- package/dist/config.js.map +1 -0
- package/dist/element-behaviors.d.ts +2 -0
- package/dist/element-behaviors.d.ts.map +1 -0
- package/dist/element-behaviors.js +348 -0
- package/dist/element-behaviors.js.map +1 -0
- package/dist/element-config.d.ts +10 -0
- package/dist/element-config.d.ts.map +1 -0
- package/dist/element-config.js +149 -0
- package/dist/element-config.js.map +1 -0
- package/dist/hooks/use-application.d.ts +4 -3
- package/dist/hooks/use-application.d.ts.map +1 -1
- package/dist/hooks/use-application.js +5 -4
- package/dist/hooks/use-application.js.map +1 -1
- package/dist/hooks/use-bind-setting.d.ts +21 -4
- package/dist/hooks/use-bind-setting.d.ts.map +1 -1
- package/dist/hooks/use-bind-setting.js +27 -16
- package/dist/hooks/use-bind-setting.js.map +1 -1
- package/dist/hooks/use-merged-refs.d.ts +8 -0
- package/dist/hooks/use-merged-refs.d.ts.map +1 -0
- package/dist/hooks/use-merged-refs.js +48 -0
- package/dist/hooks/use-merged-refs.js.map +1 -0
- package/dist/hooks/use-object-value.d.ts +3 -2
- package/dist/hooks/use-object-value.d.ts.map +1 -1
- package/dist/hooks/use-object-value.js +18 -21
- package/dist/hooks/use-object-value.js.map +1 -1
- package/dist/hooks/use-parent-window.d.ts +3 -2
- package/dist/hooks/use-parent-window.d.ts.map +1 -1
- package/dist/hooks/use-parent-window.js +3 -2
- package/dist/hooks/use-parent-window.js.map +1 -1
- package/dist/hooks/use-property.d.ts +5 -5
- package/dist/hooks/use-property.d.ts.map +1 -1
- package/dist/hooks/use-property.js +4 -3
- package/dist/hooks/use-property.js.map +1 -1
- package/dist/hooks/use-setting.d.ts +5 -16
- package/dist/hooks/use-setting.d.ts.map +1 -1
- package/dist/hooks/use-setting.js +16 -11
- package/dist/hooks/use-setting.js.map +1 -1
- package/dist/hooks/use-signal.d.ts +14 -7
- package/dist/hooks/use-signal.d.ts.map +1 -1
- package/dist/hooks/use-signal.js +33 -18
- package/dist/hooks/use-signal.js.map +1 -1
- package/dist/index.d.ts +7 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +7 -7
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +6 -7
- package/dist/internal.js.map +1 -1
- package/dist/prop-types.d.ts +110 -0
- package/dist/prop-types.d.ts.map +1 -0
- package/dist/prop-types.js +2 -0
- package/dist/prop-types.js.map +1 -0
- package/dist/reconciler/apply-props.d.ts +10 -7
- package/dist/reconciler/apply-props.d.ts.map +1 -1
- package/dist/reconciler/apply-props.js +186 -82
- package/dist/reconciler/apply-props.js.map +1 -1
- package/dist/reconciler/behaviors.d.ts +59 -0
- package/dist/reconciler/behaviors.d.ts.map +1 -0
- package/dist/reconciler/behaviors.js +177 -0
- package/dist/reconciler/behaviors.js.map +1 -0
- package/dist/reconciler/child-routing.d.ts +5 -0
- package/dist/reconciler/child-routing.d.ts.map +1 -0
- package/dist/reconciler/child-routing.js +156 -0
- package/dist/reconciler/child-routing.js.map +1 -0
- package/dist/reconciler/host-config.d.ts +8 -12
- package/dist/reconciler/host-config.d.ts.map +1 -1
- package/dist/reconciler/host-config.js +171 -270
- package/dist/reconciler/host-config.js.map +1 -1
- package/dist/reconciler/instance.d.ts +4 -5
- package/dist/reconciler/instance.d.ts.map +1 -1
- package/dist/reconciler/instance.js +44 -22
- package/dist/reconciler/instance.js.map +1 -1
- package/dist/reconciler/metadata.d.ts +17 -0
- package/dist/reconciler/metadata.d.ts.map +1 -0
- package/dist/reconciler/metadata.js +82 -0
- package/dist/reconciler/metadata.js.map +1 -0
- package/dist/reconciler/node.d.ts +76 -0
- package/dist/reconciler/node.d.ts.map +1 -0
- package/dist/reconciler/node.js +53 -0
- package/dist/reconciler/node.js.map +1 -0
- package/dist/reconciler/placement.d.ts +5 -0
- package/dist/reconciler/placement.d.ts.map +1 -0
- package/dist/reconciler/placement.js +191 -0
- package/dist/reconciler/placement.js.map +1 -0
- package/dist/reconciler/registry.d.ts +107 -0
- package/dist/reconciler/registry.d.ts.map +1 -0
- package/dist/reconciler/registry.js +74 -0
- package/dist/reconciler/registry.js.map +1 -0
- package/dist/reconciler/root-element.d.ts +9 -12
- package/dist/reconciler/root-element.d.ts.map +1 -1
- package/dist/reconciler/root-element.js +6 -6
- package/dist/reconciler/root-element.js.map +1 -1
- package/dist/reconciler/root.d.ts +56 -0
- package/dist/reconciler/root.d.ts.map +1 -0
- package/dist/reconciler/root.js +106 -0
- package/dist/reconciler/root.js.map +1 -0
- package/dist/reconciler/signals.d.ts +9 -0
- package/dist/reconciler/signals.d.ts.map +1 -0
- package/dist/reconciler/signals.js +58 -0
- package/dist/reconciler/signals.js.map +1 -0
- package/dist/reconciler/text.d.ts +19 -0
- package/dist/reconciler/text.d.ts.map +1 -0
- package/dist/reconciler/text.js +281 -0
- package/dist/reconciler/text.js.map +1 -0
- package/dist/utils/accessible-metadata.d.ts +11 -4
- package/dist/utils/accessible-metadata.d.ts.map +1 -1
- package/dist/utils/accessible-metadata.js +20 -17
- package/dist/utils/accessible-metadata.js.map +1 -1
- package/dist/{reconciler/accessible.d.ts → utils/accessible-props.d.ts} +7 -6
- package/dist/utils/accessible-props.d.ts.map +1 -0
- package/dist/utils/accessible-props.js +181 -0
- package/dist/utils/accessible-props.js.map +1 -0
- package/dist/utils/ref-prop.d.ts +15 -0
- package/dist/utils/ref-prop.d.ts.map +1 -0
- package/dist/utils/ref-prop.js +18 -0
- package/dist/utils/ref-prop.js.map +1 -0
- package/dist/utils/settings.d.ts +17 -0
- package/dist/utils/settings.d.ts.map +1 -0
- package/dist/utils/settings.js +37 -0
- package/dist/utils/settings.js.map +1 -0
- package/dist/utils/variant.d.ts +57 -0
- package/dist/utils/variant.d.ts.map +1 -0
- package/dist/utils/variant.js +197 -0
- package/dist/utils/variant.js.map +1 -0
- package/env.d.ts +9 -0
- package/package.json +36 -11
- package/src/adw/config.ts +1 -0
- package/src/adw/dialog.tsx +35 -0
- package/src/adw/element-behaviors.ts +349 -0
- package/src/adw/element-config.ts +131 -0
- package/src/adw/index.ts +4 -0
- package/src/adw/prop-types.ts +42 -0
- package/src/bootstrap.ts +5 -0
- package/src/components/application.tsx +42 -23
- package/src/components/element.tsx +47 -0
- package/src/components/window.tsx +26 -14
- package/src/config.ts +10 -0
- package/src/element-behaviors.ts +424 -0
- package/src/element-config.ts +151 -0
- package/src/env.d.ts +1 -0
- package/src/hooks/use-application.ts +6 -4
- package/src/hooks/use-bind-setting.ts +47 -31
- package/src/hooks/use-merged-refs.ts +64 -0
- package/src/hooks/use-object-value.ts +27 -23
- package/src/hooks/use-parent-window.ts +4 -2
- package/src/hooks/use-property.ts +11 -10
- package/src/hooks/use-setting.ts +20 -33
- package/src/hooks/use-signal.ts +41 -48
- package/src/index.ts +7 -8
- package/src/internal.ts +8 -18
- package/src/prop-types.ts +142 -0
- package/src/reconciler/apply-props.ts +239 -85
- package/src/reconciler/behaviors.ts +330 -0
- package/src/reconciler/child-routing.ts +202 -0
- package/src/reconciler/host-config.ts +235 -367
- package/src/reconciler/instance.ts +76 -24
- package/src/reconciler/metadata.ts +119 -0
- package/src/reconciler/node.ts +161 -0
- package/src/reconciler/placement.ts +275 -0
- package/src/reconciler/registry.ts +175 -0
- package/src/reconciler/root-element.ts +9 -11
- package/src/reconciler/root.ts +172 -0
- package/src/reconciler/signals.ts +92 -0
- package/src/reconciler/text.ts +414 -0
- package/src/utils/accessible-metadata.ts +23 -18
- package/src/utils/accessible-props.ts +279 -0
- package/src/utils/ref-prop.ts +30 -0
- package/src/utils/settings.ts +69 -0
- package/src/utils/variant.ts +368 -0
- package/dist/hooks/use-merge-refs.d.ts +0 -3
- package/dist/hooks/use-merge-refs.d.ts.map +0 -1
- package/dist/hooks/use-merge-refs.js +0 -48
- package/dist/hooks/use-merge-refs.js.map +0 -1
- package/dist/hooks/use-object-attachment.d.ts +0 -10
- package/dist/hooks/use-object-attachment.d.ts.map +0 -1
- package/dist/hooks/use-object-attachment.js +0 -24
- package/dist/hooks/use-object-attachment.js.map +0 -1
- package/dist/libraries/adw/dialog.d.ts.map +0 -1
- package/dist/libraries/adw/dialog.js +0 -25
- package/dist/libraries/adw/dialog.js.map +0 -1
- package/dist/libraries/adw/index.d.ts +0 -2
- package/dist/libraries/adw/index.d.ts.map +0 -1
- package/dist/libraries/adw/index.js +0 -2
- package/dist/libraries/adw/index.js.map +0 -1
- package/dist/reconciler/accessible.d.ts.map +0 -1
- package/dist/reconciler/accessible.js +0 -143
- package/dist/reconciler/accessible.js.map +0 -1
- package/dist/reconciler/commit-flush.d.ts +0 -3
- package/dist/reconciler/commit-flush.d.ts.map +0 -1
- package/dist/reconciler/commit-flush.js +0 -13
- package/dist/reconciler/commit-flush.js.map +0 -1
- package/dist/reconciler/container-attach.d.ts +0 -10
- package/dist/reconciler/container-attach.d.ts.map +0 -1
- package/dist/reconciler/container-attach.js +0 -216
- package/dist/reconciler/container-attach.js.map +0 -1
- package/dist/reconciler/content-rebuild.d.ts +0 -3
- package/dist/reconciler/content-rebuild.d.ts.map +0 -1
- package/dist/reconciler/content-rebuild.js +0 -15
- package/dist/reconciler/content-rebuild.js.map +0 -1
- package/dist/reconciler/dispatch.d.ts +0 -6
- package/dist/reconciler/dispatch.d.ts.map +0 -1
- package/dist/reconciler/dispatch.js +0 -61
- package/dist/reconciler/dispatch.js.map +0 -1
- package/dist/reconciler/element-prop-appliers.d.ts +0 -5
- package/dist/reconciler/element-prop-appliers.d.ts.map +0 -1
- package/dist/reconciler/element-prop-appliers.js +0 -104
- package/dist/reconciler/element-prop-appliers.js.map +0 -1
- package/dist/reconciler/element-props.d.ts +0 -25
- package/dist/reconciler/element-props.d.ts.map +0 -1
- package/dist/reconciler/element-props.js +0 -157
- package/dist/reconciler/element-props.js.map +0 -1
- package/dist/reconciler/label-text-rebuild.d.ts +0 -3
- package/dist/reconciler/label-text-rebuild.d.ts.map +0 -1
- package/dist/reconciler/label-text-rebuild.js +0 -22
- package/dist/reconciler/label-text-rebuild.js.map +0 -1
- package/dist/reconciler/portal.d.ts +0 -11
- package/dist/reconciler/portal.d.ts.map +0 -1
- package/dist/reconciler/portal.js +0 -20
- package/dist/reconciler/portal.js.map +0 -1
- package/dist/reconciler/reconciler-error-handler.d.ts +0 -7
- package/dist/reconciler/reconciler-error-handler.d.ts.map +0 -1
- package/dist/reconciler/reconciler-error-handler.js +0 -24
- package/dist/reconciler/reconciler-error-handler.js.map +0 -1
- package/dist/reconciler/reconciler-root.d.ts +0 -19
- package/dist/reconciler/reconciler-root.d.ts.map +0 -1
- package/dist/reconciler/reconciler-root.js +0 -24
- package/dist/reconciler/reconciler-root.js.map +0 -1
- package/dist/reconciler/reconciler.d.ts +0 -3
- package/dist/reconciler/reconciler.d.ts.map +0 -1
- package/dist/reconciler/reconciler.js +0 -12
- package/dist/reconciler/reconciler.js.map +0 -1
- package/dist/reconciler/render.d.ts +0 -23
- package/dist/reconciler/render.d.ts.map +0 -1
- package/dist/reconciler/render.js +0 -46
- package/dist/reconciler/render.js.map +0 -1
- package/dist/reconciler/signal-store.d.ts +0 -22
- package/dist/reconciler/signal-store.d.ts.map +0 -1
- package/dist/reconciler/signal-store.js +0 -84
- package/dist/reconciler/signal-store.js.map +0 -1
- package/dist/reconciler/state.d.ts +0 -36
- package/dist/reconciler/state.d.ts.map +0 -1
- package/dist/reconciler/state.js +0 -38
- package/dist/reconciler/state.js.map +0 -1
- package/dist/reconciler/text-buffer-controller.d.ts +0 -17
- package/dist/reconciler/text-buffer-controller.d.ts.map +0 -1
- package/dist/reconciler/text-buffer-controller.js +0 -102
- package/dist/reconciler/text-buffer-controller.js.map +0 -1
- package/dist/reconciler/text-buffer-rebuild.d.ts +0 -3
- package/dist/reconciler/text-buffer-rebuild.d.ts.map +0 -1
- package/dist/reconciler/text-buffer-rebuild.js +0 -7
- package/dist/reconciler/text-buffer-rebuild.js.map +0 -1
- package/dist/reconciler/text-node.d.ts +0 -7
- package/dist/reconciler/text-node.d.ts.map +0 -1
- package/dist/reconciler/text-node.js +0 -8
- package/dist/reconciler/text-node.js.map +0 -1
- package/dist/reconciler/types.d.ts +0 -5
- package/dist/reconciler/types.d.ts.map +0 -1
- package/dist/reconciler/types.js +0 -2
- package/dist/reconciler/types.js.map +0 -1
- package/dist/reconciler/visibility.d.ts +0 -6
- package/dist/reconciler/visibility.d.ts.map +0 -1
- package/dist/reconciler/visibility.js +0 -57
- package/dist/reconciler/visibility.js.map +0 -1
- package/dist/reconciler/wrapper-apply.d.ts +0 -6
- package/dist/reconciler/wrapper-apply.d.ts.map +0 -1
- package/dist/reconciler/wrapper-apply.js +0 -287
- package/dist/reconciler/wrapper-apply.js.map +0 -1
- package/dist/reconciler/wrapper-content.d.ts +0 -8
- package/dist/reconciler/wrapper-content.d.ts.map +0 -1
- package/dist/reconciler/wrapper-content.js +0 -19
- package/dist/reconciler/wrapper-content.js.map +0 -1
- package/dist/reconciler/wrapper-node.d.ts +0 -8
- package/dist/reconciler/wrapper-node.d.ts.map +0 -1
- package/dist/reconciler/wrapper-node.js +0 -4
- package/dist/reconciler/wrapper-node.js.map +0 -1
- package/dist/reconciler/wrapper-protocol.d.ts +0 -13
- package/dist/reconciler/wrapper-protocol.d.ts.map +0 -1
- package/dist/reconciler/wrapper-protocol.js +0 -20
- package/dist/reconciler/wrapper-protocol.js.map +0 -1
- package/dist/utils/create-element-component.d.ts +0 -4
- package/dist/utils/create-element-component.d.ts.map +0 -1
- package/dist/utils/create-element-component.js +0 -54
- package/dist/utils/create-element-component.js.map +0 -1
- package/dist/utils/gtype.d.ts +0 -16
- package/dist/utils/gtype.d.ts.map +0 -1
- package/dist/utils/gtype.js +0 -127
- package/dist/utils/gtype.js.map +0 -1
- package/dist/utils/notify-name.d.ts +0 -5
- package/dist/utils/notify-name.d.ts.map +0 -1
- package/dist/utils/notify-name.js +0 -6
- package/dist/utils/notify-name.js.map +0 -1
- package/dist/utils/object-prop.d.ts +0 -8
- package/dist/utils/object-prop.d.ts.map +0 -1
- package/dist/utils/object-prop.js +0 -9
- package/dist/utils/object-prop.js.map +0 -1
- package/dist/utils/settings-accessor.d.ts +0 -8
- package/dist/utils/settings-accessor.d.ts.map +0 -1
- package/dist/utils/settings-accessor.js +0 -69
- package/dist/utils/settings-accessor.js.map +0 -1
- package/dist/utils/wrapper-node-jsx.d.ts +0 -32
- package/dist/utils/wrapper-node-jsx.d.ts.map +0 -1
- package/dist/utils/wrapper-node-jsx.js +0 -2
- package/dist/utils/wrapper-node-jsx.js.map +0 -1
- package/src/hooks/use-merge-refs.ts +0 -53
- package/src/hooks/use-object-attachment.ts +0 -35
- package/src/libraries/adw/dialog.tsx +0 -34
- package/src/libraries/adw/index.ts +0 -1
- package/src/reconciler/accessible.ts +0 -232
- package/src/reconciler/commit-flush.ts +0 -13
- package/src/reconciler/container-attach.ts +0 -219
- package/src/reconciler/content-rebuild.ts +0 -19
- package/src/reconciler/dispatch.ts +0 -58
- package/src/reconciler/element-prop-appliers.ts +0 -110
- package/src/reconciler/element-props.ts +0 -192
- package/src/reconciler/label-text-rebuild.ts +0 -26
- package/src/reconciler/portal.ts +0 -28
- package/src/reconciler/reconciler-error-handler.ts +0 -29
- package/src/reconciler/reconciler-root.ts +0 -57
- package/src/reconciler/reconciler.ts +0 -13
- package/src/reconciler/render.ts +0 -61
- package/src/reconciler/signal-store.ts +0 -103
- package/src/reconciler/state.ts +0 -72
- package/src/reconciler/text-buffer-controller.ts +0 -107
- package/src/reconciler/text-buffer-rebuild.ts +0 -12
- package/src/reconciler/text-node.ts +0 -13
- package/src/reconciler/types.ts +0 -6
- package/src/reconciler/visibility.ts +0 -52
- package/src/reconciler/wrapper-apply.ts +0 -308
- package/src/reconciler/wrapper-content.ts +0 -24
- package/src/reconciler/wrapper-node.ts +0 -8
- package/src/reconciler/wrapper-protocol.ts +0 -32
- package/src/utils/create-element-component.ts +0 -77
- package/src/utils/gtype.ts +0 -166
- package/src/utils/notify-name.ts +0 -10
- package/src/utils/object-prop.ts +0 -13
- package/src/utils/settings-accessor.ts +0 -89
- package/src/utils/wrapper-node-jsx.ts +0 -34
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/adw/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/adw/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { BUILTIN_ELEMENTS } from \"./element-config.js\";\n"]}
|
|
@@ -3,6 +3,6 @@ import { type ElementType, type ReactNode, type Ref } from "react";
|
|
|
3
3
|
type DialogComponentProps = {
|
|
4
4
|
ref?: Ref<Adw.Dialog | null> | undefined;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
export {};
|
|
6
|
+
declare const createDialogComponent: (Component: ElementType) => ((props: DialogComponentProps) => ReactNode);
|
|
7
|
+
export { createDialogComponent };
|
|
8
8
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/adw/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAA6B,MAAM,OAAO,CAAC;AAM9F,KAAK,oBAAoB,GAAG;IACxB,GAAG,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,QAAA,MAAM,qBAAqB,GAAI,WAAW,WAAW,KAAG,CAAC,CAAC,KAAK,EAAE,oBAAoB,KAAK,SAAS,CAqBlG,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useLayoutEffect, useState } from "react";
|
|
3
|
+
import { useMergedRef } from "../hooks/use-merged-refs.js";
|
|
4
|
+
import { useParentWindow } from "../hooks/use-parent-window.js";
|
|
5
|
+
import { rootElement } from "../reconciler/root-element.js";
|
|
6
|
+
import { createPortal } from "../reconciler/root.js";
|
|
7
|
+
const createDialogComponent = (Component) => {
|
|
8
|
+
return ({ ref, ...rest }) => {
|
|
9
|
+
const parent = useParentWindow();
|
|
10
|
+
const [dialog, setDialog] = useState(null);
|
|
11
|
+
useLayoutEffect(() => {
|
|
12
|
+
if (!dialog) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
dialog.present(parent);
|
|
16
|
+
return () => {
|
|
17
|
+
dialog.forceClose();
|
|
18
|
+
};
|
|
19
|
+
}, [dialog, parent]);
|
|
20
|
+
const mergedRef = useMergedRef(ref, setDialog);
|
|
21
|
+
return createPortal(_jsx(Component, { ref: mergedRef, ...rest }), rootElement);
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export { createDialogComponent };
|
|
25
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/adw/dialog.tsx"],"names":[],"mappings":";AACA,OAAO,EAA8C,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMrD,MAAM,qBAAqB,GAAG,CAAC,SAAsB,EAAgD,EAAE;IACnG,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,IAAI,EAAwB,EAAa,EAAE;QACzD,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;QACjC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAoB,IAAI,CAAC,CAAC;QAE9D,eAAe,CAAC,GAAG,EAAE;YACjB,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,OAAO;YACX,CAAC;YAED,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAEvB,OAAO,GAAG,EAAE;gBACR,MAAM,CAAC,UAAU,EAAE,CAAC;YACxB,CAAC,CAAC;QACN,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;QAErB,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QAE/C,OAAO,YAAY,CAAC,KAAC,SAAS,IAAC,GAAG,EAAE,SAAS,KAAM,IAAI,GAAI,EAAE,WAAW,CAAC,CAAC;IAC9E,CAAC,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC","sourcesContent":["import type * as Adw from \"@gtkx/gi/adw\";\nimport { type ElementType, type ReactNode, type Ref, useLayoutEffect, useState } from \"react\";\nimport { useMergedRef } from \"../hooks/use-merged-refs.js\";\nimport { useParentWindow } from \"../hooks/use-parent-window.js\";\nimport { rootElement } from \"../reconciler/root-element.js\";\nimport { createPortal } from \"../reconciler/root.js\";\n\ntype DialogComponentProps = {\n ref?: Ref<Adw.Dialog | null> | undefined;\n};\n\nconst createDialogComponent = (Component: ElementType): ((props: DialogComponentProps) => ReactNode) => {\n return ({ ref, ...rest }: DialogComponentProps): ReactNode => {\n const parent = useParentWindow();\n const [dialog, setDialog] = useState<Adw.Dialog | null>(null);\n\n useLayoutEffect(() => {\n if (!dialog) {\n return;\n }\n\n dialog.present(parent);\n\n return () => {\n dialog.forceClose();\n };\n }, [dialog, parent]);\n\n const mergedRef = useMergedRef(ref, setDialog);\n\n return createPortal(<Component ref={mergedRef} {...rest} />, rootElement);\n };\n};\n\nexport { createDialogComponent };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-behaviors.d.ts","sourceRoot":"","sources":["../../src/adw/element-behaviors.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import * as Adw from "@gtkx/gi/adw";
|
|
2
|
+
import { addRemoveSlot, adoptedChildrenSlot, boxSlot, childSetterSlot, contentSetterSlot, deferred, list, slot, } from "../reconciler/behaviors.js";
|
|
3
|
+
import { forTypes, registerElements } from "../reconciler/registry.js";
|
|
4
|
+
import { BUILTIN_ELEMENTS, CHILD_SETTER_TYPES, CONTENT_SETTER_TYPES } from "./element-config.js";
|
|
5
|
+
const childSetter = childSetterSlot();
|
|
6
|
+
const contentSetter = contentSetterSlot();
|
|
7
|
+
const breakpoints = slot("breakpoints", "AdwBreakpoint", {
|
|
8
|
+
attach: (host, breakpoint) => {
|
|
9
|
+
host.addBreakpoint(breakpoint);
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
const prefixSuffix = [
|
|
13
|
+
slot("prefix", "GtkWidget", {
|
|
14
|
+
attach: (row, child) => {
|
|
15
|
+
row.addPrefix(child);
|
|
16
|
+
},
|
|
17
|
+
detach: (row, child) => {
|
|
18
|
+
row.remove(child);
|
|
19
|
+
},
|
|
20
|
+
}),
|
|
21
|
+
slot("suffix", "GtkWidget", {
|
|
22
|
+
attach: (row, child) => {
|
|
23
|
+
row.addSuffix(child);
|
|
24
|
+
},
|
|
25
|
+
detach: (row, child) => {
|
|
26
|
+
row.remove(child);
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
];
|
|
30
|
+
const pageHostChildren = addRemoveSlot("children", "AdwPreferencesPage", (host, page) => {
|
|
31
|
+
host.add(page);
|
|
32
|
+
}, (host, page) => {
|
|
33
|
+
host.remove(page);
|
|
34
|
+
});
|
|
35
|
+
/** The runtime half of the built-in element configuration: the behaviors bound to each GObject type. */
|
|
36
|
+
const BUILTIN_BEHAVIORS = {
|
|
37
|
+
...forTypes(CHILD_SETTER_TYPES, {
|
|
38
|
+
behaviors: [childSetter],
|
|
39
|
+
}),
|
|
40
|
+
...forTypes(CONTENT_SETTER_TYPES, {
|
|
41
|
+
behaviors: [contentSetter],
|
|
42
|
+
}),
|
|
43
|
+
AdwDialog: {
|
|
44
|
+
behaviors: [childSetter, breakpoints],
|
|
45
|
+
},
|
|
46
|
+
AdwApplicationWindow: {
|
|
47
|
+
behaviors: [contentSetter, breakpoints],
|
|
48
|
+
},
|
|
49
|
+
AdwWindow: {
|
|
50
|
+
behaviors: [contentSetter, breakpoints],
|
|
51
|
+
},
|
|
52
|
+
AdwBreakpointBin: {
|
|
53
|
+
behaviors: [
|
|
54
|
+
childSetter,
|
|
55
|
+
addRemoveSlot("breakpoints", "AdwBreakpoint", (bin, breakpoint) => {
|
|
56
|
+
bin.addBreakpoint(breakpoint);
|
|
57
|
+
}, (bin, breakpoint) => {
|
|
58
|
+
bin.removeBreakpoint(breakpoint);
|
|
59
|
+
}),
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
AdwActionRow: {
|
|
63
|
+
behaviors: prefixSuffix,
|
|
64
|
+
},
|
|
65
|
+
AdwEntryRow: {
|
|
66
|
+
behaviors: prefixSuffix,
|
|
67
|
+
},
|
|
68
|
+
AdwExpanderRow: {
|
|
69
|
+
behaviors: [
|
|
70
|
+
...prefixSuffix,
|
|
71
|
+
addRemoveSlot("rows", "GtkWidget", (row, child) => {
|
|
72
|
+
row.addRow(child);
|
|
73
|
+
}, (row, child) => {
|
|
74
|
+
row.remove(child);
|
|
75
|
+
}),
|
|
76
|
+
addRemoveSlot("actions", "GtkWidget", (row, child) => {
|
|
77
|
+
row.addAction(child);
|
|
78
|
+
}, (row, child) => {
|
|
79
|
+
row.remove(child);
|
|
80
|
+
}),
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
AdwNavigationSplitView: {
|
|
84
|
+
behaviors: [contentSetterSlot("AdwNavigationPage")],
|
|
85
|
+
},
|
|
86
|
+
AdwLeaflet: {
|
|
87
|
+
behaviors: [boxSlot()],
|
|
88
|
+
},
|
|
89
|
+
AdwWrapBox: {
|
|
90
|
+
behaviors: [boxSlot()],
|
|
91
|
+
},
|
|
92
|
+
AdwCarousel: {
|
|
93
|
+
behaviors: [
|
|
94
|
+
slot("children", "GtkWidget", {
|
|
95
|
+
attach: (carousel, child, info) => {
|
|
96
|
+
carousel.insert(child, info.index);
|
|
97
|
+
},
|
|
98
|
+
detach: (carousel, child) => {
|
|
99
|
+
carousel.remove(child);
|
|
100
|
+
},
|
|
101
|
+
reorder: (carousel, child, info) => {
|
|
102
|
+
carousel.reorder(child, info.index);
|
|
103
|
+
},
|
|
104
|
+
}),
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
AdwPreferencesPage: {
|
|
108
|
+
behaviors: [
|
|
109
|
+
slot("children", "AdwPreferencesGroup", {
|
|
110
|
+
attach: (page, group, info) => {
|
|
111
|
+
page.insert(group, info.index);
|
|
112
|
+
},
|
|
113
|
+
detach: (page, group) => {
|
|
114
|
+
page.remove(group);
|
|
115
|
+
},
|
|
116
|
+
}),
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
AdwPreferencesDialog: {
|
|
120
|
+
behaviors: [pageHostChildren],
|
|
121
|
+
},
|
|
122
|
+
AdwPreferencesWindow: {
|
|
123
|
+
behaviors: [pageHostChildren],
|
|
124
|
+
},
|
|
125
|
+
AdwPreferencesGroup: {
|
|
126
|
+
behaviors: [
|
|
127
|
+
addRemoveSlot("children", "GtkWidget", (group, child) => {
|
|
128
|
+
group.add(child);
|
|
129
|
+
}, (group, child) => {
|
|
130
|
+
group.remove(child);
|
|
131
|
+
}),
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
AdwSqueezer: {
|
|
135
|
+
behaviors: [
|
|
136
|
+
addRemoveSlot("children", "GtkWidget", (squeezer, child) => {
|
|
137
|
+
squeezer.add(child);
|
|
138
|
+
}, (squeezer, child) => {
|
|
139
|
+
squeezer.remove(child);
|
|
140
|
+
}),
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
AdwTabView: {
|
|
144
|
+
behaviors: [
|
|
145
|
+
slot("children", "GtkWidget", {
|
|
146
|
+
attach: (view, child, info) => view.insert(child, info.index),
|
|
147
|
+
reorder: (view, _child, info) => {
|
|
148
|
+
if (info.adopted instanceof Adw.TabPage) {
|
|
149
|
+
view.reorderPage(info.adopted, info.index);
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
detach: (view, _child, info) => {
|
|
153
|
+
if (info.adopted instanceof Adw.TabPage) {
|
|
154
|
+
view.closePage(info.adopted);
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
resolve: (view, child) => view.getPage(child),
|
|
158
|
+
}),
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
AdwNavigationView: {
|
|
162
|
+
behaviors: [
|
|
163
|
+
addRemoveSlot("children", "AdwNavigationPage", (view, page) => {
|
|
164
|
+
view.add(page);
|
|
165
|
+
}, (view, page) => {
|
|
166
|
+
view.remove(page);
|
|
167
|
+
}),
|
|
168
|
+
],
|
|
169
|
+
},
|
|
170
|
+
AdwViewStack: {
|
|
171
|
+
behaviors: [
|
|
172
|
+
adoptedChildrenSlot("GtkWidget", (stack, child) => stack.add(child), (stack, child) => {
|
|
173
|
+
stack.remove(child);
|
|
174
|
+
}),
|
|
175
|
+
deferred("visibleChildName", (stack, name) => stack.getChildByName(name) !== null),
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
AdwToolbarView: {
|
|
179
|
+
behaviors: [
|
|
180
|
+
contentSetterSlot(),
|
|
181
|
+
slot("topBar", "GtkWidget", {
|
|
182
|
+
attach: (view, child) => {
|
|
183
|
+
view.addTopBar(child);
|
|
184
|
+
},
|
|
185
|
+
detach: (view, child) => {
|
|
186
|
+
view.remove(child);
|
|
187
|
+
},
|
|
188
|
+
}),
|
|
189
|
+
slot("bottomBar", "GtkWidget", {
|
|
190
|
+
attach: (view, child) => {
|
|
191
|
+
view.addBottomBar(child);
|
|
192
|
+
},
|
|
193
|
+
detach: (view, child) => {
|
|
194
|
+
view.remove(child);
|
|
195
|
+
},
|
|
196
|
+
}),
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
AdwHeaderBar: {
|
|
200
|
+
behaviors: [
|
|
201
|
+
slot("start", "GtkWidget", {
|
|
202
|
+
attach: (bar, child) => {
|
|
203
|
+
bar.packStart(child);
|
|
204
|
+
},
|
|
205
|
+
detach: (bar, child) => {
|
|
206
|
+
bar.remove(child);
|
|
207
|
+
},
|
|
208
|
+
}),
|
|
209
|
+
slot("end", "GtkWidget", {
|
|
210
|
+
attach: (bar, child) => {
|
|
211
|
+
bar.packEnd(child);
|
|
212
|
+
},
|
|
213
|
+
detach: (bar, child) => {
|
|
214
|
+
bar.remove(child);
|
|
215
|
+
},
|
|
216
|
+
}),
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
AdwShortcutsDialog: {
|
|
220
|
+
behaviors: [
|
|
221
|
+
slot("children", "AdwShortcutsSection", {
|
|
222
|
+
attach: (dialog, section) => {
|
|
223
|
+
dialog.add(section);
|
|
224
|
+
},
|
|
225
|
+
}),
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
AdwShortcutsSection: {
|
|
229
|
+
behaviors: [
|
|
230
|
+
slot("children", "AdwShortcutsItem", {
|
|
231
|
+
attach: (section, item) => {
|
|
232
|
+
section.add(item);
|
|
233
|
+
},
|
|
234
|
+
}),
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
AdwToggleGroup: {
|
|
238
|
+
behaviors: [
|
|
239
|
+
addRemoveSlot("children", "AdwToggle", (group, toggle) => {
|
|
240
|
+
group.add(toggle);
|
|
241
|
+
}, (group, toggle) => {
|
|
242
|
+
group.remove(toggle);
|
|
243
|
+
}),
|
|
244
|
+
deferred("activeName", (group, name) => group.getToggleByName(name) !== null),
|
|
245
|
+
deferred("active"),
|
|
246
|
+
],
|
|
247
|
+
},
|
|
248
|
+
AdwAlertDialog: {
|
|
249
|
+
behaviors: [
|
|
250
|
+
list("responses", {
|
|
251
|
+
add: (dialog, response) => {
|
|
252
|
+
dialog.addResponse(response.id, response.label);
|
|
253
|
+
if (response.appearance !== undefined) {
|
|
254
|
+
dialog.setResponseAppearance(response.id, response.appearance);
|
|
255
|
+
}
|
|
256
|
+
if (response.enabled !== undefined) {
|
|
257
|
+
dialog.setResponseEnabled(response.id, response.enabled);
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
remove: (dialog, response) => {
|
|
261
|
+
dialog.removeResponse(response.id);
|
|
262
|
+
},
|
|
263
|
+
}),
|
|
264
|
+
],
|
|
265
|
+
},
|
|
266
|
+
};
|
|
267
|
+
registerElements(BUILTIN_ELEMENTS);
|
|
268
|
+
registerElements(BUILTIN_BEHAVIORS);
|
|
269
|
+
//# sourceMappingURL=element-behaviors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-behaviors.js","sourceRoot":"","sources":["../../src/adw/element-behaviors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AAEpC,OAAO,EACH,aAAa,EACb,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,IAAI,EACJ,IAAI,GACP,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAsB,QAAQ,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAoBjG,MAAM,WAAW,GAAG,eAAe,EAAkB,CAAC;AACtD,MAAM,aAAa,GAAG,iBAAiB,EAAoB,CAAC;AAE5D,MAAM,WAAW,GAAG,IAAI,CAAiC,aAAa,EAAE,eAAe,EAAE;IACrF,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE;QACzB,IAAI,CAAC,aAAa,C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\nimport * as Adw from \"@gtkx/gi/adw\";\nimport type { AlertDialogResponse } from \"./prop-types.js\";\nimport {\n addRemoveSlot,\n adoptedChildrenSlot,\n boxSlot,\n childSetterSlot,\n contentSetterSlot,\n deferred,\n list,\n slot,\n} from \"../reconciler/behaviors.js\";\nimport { type ElementConfig, forTypes, registerElements } from \"../reconciler/registry.js\";\nimport { BUILTIN_ELEMENTS, CHILD_SETTER_TYPES, CONTENT_SETTER_TYPES } from \"./element-config.js\";\n\ntype AdwChildSetter =\n | Adw.Bin |\n Adw.BreakpointBin |\n Adw.Clamp |\n Adw.ClampScrollable |\n Adw.Dialog |\n Adw.NavigationPage |\n Adw.SplitButton |\n Adw.StatusPage |\n Adw.TabOverview |\n Adw.ToastOverlay |\n Adw.Toggle;\n\ntype AdwContentSetter = Adw.ApplicationWindow | Adw.BottomSheet | Adw.Flap | Adw.OverlaySplitView | Adw.Window;\ntype BreakpointHost = Adw.ApplicationWindow | Adw.Window | Adw.Dialog;\ntype PageHost = Adw.PreferencesDialog | Adw.PreferencesWindow;\ntype PrefixSuffixRow = Adw.ActionRow | Adw.EntryRow | Adw.ExpanderRow;\n\nconst childSetter = childSetterSlot<AdwChildSetter>();\nconst contentSetter = contentSetterSlot<AdwContentSetter>();\n\nconst breakpoints = slot<BreakpointHost, Adw.Breakpoint>(\"breakpoints\", \"AdwBreakpoint\", {\n attach: (host, breakpoint) => {\n host.addBreakpoint(breakpoint);\n },\n});\n\nconst prefixSuffix = [\n slot<PrefixSuffixRow, Gtk.Widget>(\"prefix\", \"GtkWidget\", {\n attach: (row, child) => {\n row.addPrefix(child);\n },\n detach: (row, child) => {\n row.remove(child);\n },\n }),\n slot<PrefixSuffixRow, Gtk.Widget>(\"suffix\", \"GtkWidget\", {\n attach: (row, child) => {\n row.addSuffix(child);\n },\n detach: (row, child) => {\n row.remove(child);\n },\n }),\n];\n\nconst pageHostChildren = addRemoveSlot<Adw.PreferencesPage, PageHost>(\n \"children\",\n \"AdwPreferencesPage\",\n (host, page) => {\n host.add(page);\n },\n (host, page) => {\n host.remove(page);\n },\n);\n\n/** The runtime half of the built-in element configuration: the behaviors bound to each GObject type. */\nconst BUILTIN_BEHAVIORS: Record<string, ElementConfig<never>> = {\n ...forTypes(CHILD_SETTER_TYPES, {\n behaviors: [childSetter],\n }),\n ...forTypes(CONTENT_SETTER_TYPES, {\n behaviors: [contentSetter],\n }),\n AdwDialog: {\n behaviors: [childSetter, breakpoints],\n },\n AdwApplicationWindow: {\n behaviors: [contentSetter, breakpoints],\n },\n AdwWindow: {\n behaviors: [contentSetter, breakpoints],\n },\n AdwBreakpointBin: {\n behaviors: [\n childSetter,\n addRemoveSlot<Adw.Breakpoint, Adw.BreakpointBin>(\n \"breakpoints\",\n \"AdwBreakpoint\",\n (bin, breakpoint) => {\n bin.addBreakpoint(breakpoint);\n },\n (bin, breakpoint) => {\n bin.removeBreakpoint(breakpoint);\n },\n ),\n ],\n },\n AdwActionRow: {\n behaviors: prefixSuffix,\n },\n AdwEntryRow: {\n behaviors: prefixSuffix,\n },\n AdwExpanderRow: {\n behaviors: [\n ...prefixSuffix,\n addRemoveSlot<Gtk.Widget, Adw.ExpanderRow>(\n \"rows\",\n \"GtkWidget\",\n (row, child) => {\n row.addRow(child);\n },\n (row, child) => {\n row.remove(child);\n },\n ),\n addRemoveSlot<Gtk.Widget, Adw.ExpanderRow>(\n \"actions\",\n \"GtkWidget\",\n (row, child) => {\n row.addAction(child);\n },\n (row, child) => {\n row.remove(child);\n },\n ),\n ],\n },\n AdwNavigationSplitView: {\n behaviors: [contentSetterSlot<Adw.NavigationSplitView, Adw.NavigationPage>(\"AdwNavigationPage\")],\n },\n AdwLeaflet: {\n behaviors: [boxSlot<Adw.Leaflet | Adw.WrapBox>()],\n },\n AdwWrapBox: {\n behaviors: [boxSlot<Adw.Leaflet | Adw.WrapBox>()],\n },\n AdwCarousel: {\n behaviors: [\n slot<Adw.Carousel, Gtk.Widget>(\"children\", \"GtkWidget\", {\n attach: (carousel, child, info) => {\n carousel.insert(child, info.index);\n },\n detach: (carousel, child) => {\n carousel.remove(child);\n },\n reorder: (carousel, child, info) => {\n carousel.reorder(child, info.index);\n },\n }),\n ],\n },\n AdwPreferencesPage: {\n behaviors: [\n slot<Adw.PreferencesPage, Adw.PreferencesGroup>(\"children\", \"AdwPreferencesGroup\", {\n attach: (page, group, info) => {\n page.insert(group, info.index);\n },\n detach: (page, group) => {\n page.remove(group);\n },\n }),\n ],\n },\n AdwPreferencesDialog: {\n behaviors: [pageHostChildren],\n },\n AdwPreferencesWindow: {\n behaviors: [pageHostChildren],\n },\n AdwPreferencesGroup: {\n behaviors: [\n addRemoveSlot<Gtk.Widget, Adw.PreferencesGroup>(\n \"children\",\n \"GtkWidget\",\n (group, child) => {\n group.add(child);\n },\n (group, child) => {\n group.remove(child);\n },\n ),\n ],\n },\n AdwSqueezer: {\n behaviors: [\n addRemoveSlot<Gtk.Widget, Adw.Squeezer>(\n \"children\",\n \"GtkWidget\",\n (squeezer, child) => {\n squeezer.add(child);\n },\n (squeezer, child) => {\n squeezer.remove(child);\n },\n ),\n ],\n },\n AdwTabView: {\n behaviors: [\n slot<Adw.TabView, Gtk.Widget>(\"children\", \"GtkWidget\", {\n attach: (view, child, info) => view.insert(child, info.index),\n reorder: (view, _child, info) => {\n if (info.adopted instanceof Adw.TabPage) {\n view.reorderPage(info.adopted, info.index);\n }\n },\n detach: (view, _child, info) => {\n if (info.adopted instanceof Adw.TabPage) {\n view.closePage(info.adopted);\n }\n },\n resolve: (view, child) => view.getPage(child),\n }),\n ],\n },\n AdwNavigationView: {\n behaviors: [\n addRemoveSlot<Adw.NavigationPage, Adw.NavigationView>(\n \"children\",\n \"AdwNavigationPage\",\n (view, page) => {\n view.add(page);\n },\n (view, page) => {\n view.remove(page);\n },\n ),\n ],\n },\n AdwViewStack: {\n behaviors: [\n adoptedChildrenSlot<Adw.ViewStack, Gtk.Widget>(\n \"GtkWidget\",\n (stack, child) => stack.add(child),\n (stack, child) => {\n stack.remove(child);\n },\n ),\n deferred<Adw.ViewStack, string>(\"visibleChildName\", (stack, name) => stack.getChildByName(name) !== null),\n ],\n },\n AdwToolbarView: {\n behaviors: [\n contentSetterSlot<Adw.ToolbarView>(),\n slot<Adw.ToolbarView, Gtk.Widget>(\"topBar\", \"GtkWidget\", {\n attach: (view, child) => {\n view.addTopBar(child);\n },\n detach: (view, child) => {\n view.remove(child);\n },\n }),\n slot<Adw.ToolbarView, Gtk.Widget>(\"bottomBar\", \"GtkWidget\", {\n attach: (view, child) => {\n view.addBottomBar(child);\n },\n detach: (view, child) => {\n view.remove(child);\n },\n }),\n ],\n },\n AdwHeaderBar: {\n behaviors: [\n slot<Adw.HeaderBar, Gtk.Widget>(\"start\", \"GtkWidget\", {\n attach: (bar, child) => {\n bar.packStart(child);\n },\n detach: (bar, child) => {\n bar.remove(child);\n },\n }),\n slot<Adw.HeaderBar, Gtk.Widget>(\"end\", \"GtkWidget\", {\n attach: (bar, child) => {\n bar.packEnd(child);\n },\n detach: (bar, child) => {\n bar.remove(child);\n },\n }),\n ],\n },\n AdwShortcutsDialog: {\n behaviors: [\n slot<Adw.ShortcutsDialog, Adw.ShortcutsSection>(\"children\", \"AdwShortcutsSection\", {\n attach: (dialog, section) => {\n dialog.add(section);\n },\n }),\n ],\n },\n AdwShortcutsSection: {\n behaviors: [\n slot<Adw.ShortcutsSection, Adw.ShortcutsItem>(\"children\", \"AdwShortcutsItem\", {\n attach: (section, item) => {\n section.add(item);\n },\n }),\n ],\n },\n AdwToggleGroup: {\n behaviors: [\n addRemoveSlot<Adw.Toggle, Adw.ToggleGroup>(\n \"children\",\n \"AdwToggle\",\n (group, toggle) => {\n group.add(toggle);\n },\n (group, toggle) => {\n group.remove(toggle);\n },\n ),\n deferred<Adw.ToggleGroup, string>(\"activeName\", (group, name) => group.getToggleByName(name) !== null),\n deferred(\"active\"),\n ],\n },\n AdwAlertDialog: {\n behaviors: [\n list<Adw.AlertDialog, AlertDialogResponse>(\"responses\", {\n add: (dialog, response) => {\n dialog.addResponse(response.id, response.label);\n\n if (response.appearance !== undefined) {\n dialog.setResponseAppearance(response.id, response.appearance);\n }\n\n if (response.enabled !== undefined) {\n dialog.setResponseEnabled(response.id, response.enabled);\n }\n },\n remove: (dialog, response) => {\n dialog.removeResponse(response.id);\n },\n }),\n ],\n },\n};\n\nregisterElements(BUILTIN_ELEMENTS);\nregisterElements(BUILTIN_BEHAVIORS);\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ElementConfig } from "../reconciler/registry.js";
|
|
2
|
+
declare const CHILD_SETTER_TYPES: string[];
|
|
3
|
+
declare const CONTENT_SETTER_TYPES: string[];
|
|
4
|
+
/**
|
|
5
|
+
* The static, runtime-free half of the built-in element configuration: which base props interface each
|
|
6
|
+
* generated element extends, which component wraps it, and whether its GObject is created lazily by its
|
|
7
|
+
* parent. Codegen imports this module, so it must never reach the GObject bindings.
|
|
8
|
+
*/
|
|
9
|
+
declare const BUILTIN_ELEMENTS: Record<string, ElementConfig>;
|
|
10
|
+
export { CHILD_SETTER_TYPES, CONTENT_SETTER_TYPES, BUILTIN_ELEMENTS };
|
|
11
|
+
//# sourceMappingURL=element-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-config.d.ts","sourceRoot":"","sources":["../../src/adw/element-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,2BAA2B,CAAC;AAEtG,QAAA,MAAM,kBAAkB,EAAE,MAAM,EAU/B,CAAC;AAEF,QAAA,MAAM,oBAAoB,EAAE,MAAM,EAAyD,CAAC;AAK5F;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAoGnD,CAAC;AAMF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { forTypes, internal } from "../reconciler/registry.js";
|
|
2
|
+
const CHILD_SETTER_TYPES = [
|
|
3
|
+
"AdwBin",
|
|
4
|
+
"AdwClamp",
|
|
5
|
+
"AdwClampScrollable",
|
|
6
|
+
"AdwNavigationPage",
|
|
7
|
+
"AdwSplitButton",
|
|
8
|
+
"AdwStatusPage",
|
|
9
|
+
"AdwTabOverview",
|
|
10
|
+
"AdwToastOverlay",
|
|
11
|
+
"AdwToggle",
|
|
12
|
+
];
|
|
13
|
+
const CONTENT_SETTER_TYPES = ["AdwBottomSheet", "AdwFlap", "AdwOverlaySplitView"];
|
|
14
|
+
const childrenProps = internal("ChildrenProps");
|
|
15
|
+
const breakpointsProps = adw("AdwBreakpointsProps");
|
|
16
|
+
const preferencesRowProps = adw("AdwPreferencesRowProps");
|
|
17
|
+
/**
|
|
18
|
+
* The static, runtime-free half of the built-in element configuration: which base props interface each
|
|
19
|
+
* generated element extends, which component wraps it, and whether its GObject is created lazily by its
|
|
20
|
+
* parent. Codegen imports this module, so it must never reach the GObject bindings.
|
|
21
|
+
*/
|
|
22
|
+
const BUILTIN_ELEMENTS = {
|
|
23
|
+
...forTypes(CHILD_SETTER_TYPES, {
|
|
24
|
+
props: childrenProps,
|
|
25
|
+
omitProps: ["child"],
|
|
26
|
+
}),
|
|
27
|
+
...forTypes(CONTENT_SETTER_TYPES, {
|
|
28
|
+
props: childrenProps,
|
|
29
|
+
omitProps: ["content"],
|
|
30
|
+
}),
|
|
31
|
+
AdwViewStackPage: {
|
|
32
|
+
lazy: true,
|
|
33
|
+
},
|
|
34
|
+
AdwTabPage: {
|
|
35
|
+
lazy: true,
|
|
36
|
+
},
|
|
37
|
+
AdwPreferencesRow: {
|
|
38
|
+
props: preferencesRowProps,
|
|
39
|
+
},
|
|
40
|
+
AdwDialog: {
|
|
41
|
+
props: breakpointsProps,
|
|
42
|
+
component: adw("createDialogComponent"),
|
|
43
|
+
omitProps: ["child"],
|
|
44
|
+
},
|
|
45
|
+
AdwApplicationWindow: {
|
|
46
|
+
props: breakpointsProps,
|
|
47
|
+
omitProps: ["content"],
|
|
48
|
+
},
|
|
49
|
+
AdwWindow: {
|
|
50
|
+
props: breakpointsProps,
|
|
51
|
+
omitProps: ["content"],
|
|
52
|
+
},
|
|
53
|
+
AdwBreakpointBin: {
|
|
54
|
+
props: breakpointsProps,
|
|
55
|
+
omitProps: ["child"],
|
|
56
|
+
},
|
|
57
|
+
AdwActionRow: {
|
|
58
|
+
props: preferencesRowProps,
|
|
59
|
+
},
|
|
60
|
+
AdwEntryRow: {
|
|
61
|
+
props: preferencesRowProps,
|
|
62
|
+
},
|
|
63
|
+
AdwExpanderRow: {
|
|
64
|
+
props: adw("AdwExpanderRowProps"),
|
|
65
|
+
},
|
|
66
|
+
AdwNavigationSplitView: {
|
|
67
|
+
props: childrenProps,
|
|
68
|
+
omitProps: ["content"],
|
|
69
|
+
},
|
|
70
|
+
AdwLeaflet: {
|
|
71
|
+
props: childrenProps,
|
|
72
|
+
},
|
|
73
|
+
AdwWrapBox: {
|
|
74
|
+
props: childrenProps,
|
|
75
|
+
},
|
|
76
|
+
AdwCarousel: {
|
|
77
|
+
props: childrenProps,
|
|
78
|
+
},
|
|
79
|
+
AdwPreferencesPage: {
|
|
80
|
+
props: childrenProps,
|
|
81
|
+
},
|
|
82
|
+
AdwPreferencesDialog: {
|
|
83
|
+
props: childrenProps,
|
|
84
|
+
},
|
|
85
|
+
AdwPreferencesWindow: {
|
|
86
|
+
props: childrenProps,
|
|
87
|
+
},
|
|
88
|
+
AdwPreferencesGroup: {
|
|
89
|
+
props: childrenProps,
|
|
90
|
+
},
|
|
91
|
+
AdwSqueezer: {
|
|
92
|
+
props: childrenProps,
|
|
93
|
+
},
|
|
94
|
+
AdwTabView: {
|
|
95
|
+
props: childrenProps,
|
|
96
|
+
},
|
|
97
|
+
AdwNavigationView: {
|
|
98
|
+
props: childrenProps,
|
|
99
|
+
},
|
|
100
|
+
AdwViewStack: {
|
|
101
|
+
props: childrenProps,
|
|
102
|
+
},
|
|
103
|
+
AdwToolbarView: {
|
|
104
|
+
props: adw("AdwToolbarViewProps"),
|
|
105
|
+
omitProps: ["content"],
|
|
106
|
+
},
|
|
107
|
+
AdwHeaderBar: {
|
|
108
|
+
props: internal("GtkHeaderBarProps"),
|
|
109
|
+
},
|
|
110
|
+
AdwShortcutsDialog: {
|
|
111
|
+
props: childrenProps,
|
|
112
|
+
},
|
|
113
|
+
AdwShortcutsSection: {
|
|
114
|
+
props: childrenProps,
|
|
115
|
+
},
|
|
116
|
+
AdwToggleGroup: {
|
|
117
|
+
props: childrenProps,
|
|
118
|
+
},
|
|
119
|
+
AdwAlertDialog: {
|
|
120
|
+
props: adw("AdwAlertDialogProps"),
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
function adw(name) {
|
|
124
|
+
return { module: "@gtkx/react/adw", export: name };
|
|
125
|
+
}
|
|
126
|
+
export { CHILD_SETTER_TYPES, CONTENT_SETTER_TYPES, BUILTIN_ELEMENTS };
|
|
127
|
+
//# sourceMappingURL=element-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-config.js","sourceRoot":"","sources":["../../src/adw/element-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAAE,QAAQ,EAAqB,MAAM,2BAA2B,CAAC;AAEtG,MAAM,kBAAkB,GAAa;IACjC,QAAQ;IACR,UAAU;IACV,oBAAoB;IACpB,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,WAAW;CACd,CAAC;AAEF,MAAM,oBAAoB,GAAa,CAAC,gBAAgB,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;AAC5F,MAAM,aAAa,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAChD,MAAM,gBAAgB,GAAG,GAAG,CAAC,qBAAqB,CAAC,CAAC;AACpD,MAAM,mBAAmB,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAE1D;;;;GAI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oB,EAAE;QAClB,KAAK,EAAE,aAAa;KACvB;IACD,oBAAoB,EAAE;QAClB,KAAK,EAAE,aAAa;KACvB;IACD,mBAAmB,EAAE;QACjB,KAAK,EAAE,aAAa;KACvB;IACD,WAAW,EAAE;QACT,KAAK,EAAE,aAAa;KACvB;IACD,UAAU,EAAE;QACR,KAAK,EAAE,aAAa;KACvB;IACD,iBAAiB,EAAE;QACf,KAAK,EAAE,aAAa;KACvB;IACD,YAAY,EAAE;QACV,KAAK,EAAE,aAAa;KACvB;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,GAAG,CAAC,qBAAqB,CAAC;QACjC,SAAS,EAAE,CAAC,SAAS,CAAC;KACzB;IACD,YAAY,EAAE;QACV,KAAK,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACvC;IACD,kBAAkB,EAAE;QAChB,KAAK,EAAE,aAAa;KACvB;IACD,mBAAmB,EAAE;QACjB,KAAK,EAAE,aAAa;KACvB;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,aAAa;KACvB;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,GAAG,CAAC,qBAAqB,CAAC;KACpC;CACJ,CAAC;AAEF,SAAS,GAAG,CAAC,IAAY;IACrB,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACvD,CAAC;AAED,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { type ElementConfig, forTypes, internal, type ModuleExport } from \"../reconciler/registry.js\";\n\nconst CHILD_SETTER_TYPES: string[] = [\n \"AdwBin\",\n \"AdwClamp\",\n \"AdwClampScrollable\",\n \"AdwNavigationPage\",\n \"AdwSplitButton\",\n \"AdwStatusPage\",\n \"AdwTabOverview\",\n \"AdwToastOverlay\",\n \"AdwToggle\",\n];\n\nconst CONTENT_SETTER_TYPES: string[] = [\"AdwBottomSheet\", \"AdwFlap\", \"AdwOverlaySplitView\"];\nconst childrenProps = internal(\"ChildrenProps\");\nconst breakpointsProps = adw(\"AdwBreakpointsProps\");\nconst preferencesRowProps = adw(\"AdwPreferencesRowProps\");\n\n/**\n * The static, runtime-free half of the built-in element configuration: which base props interface each\n * generated element extends, which component wraps it, and whether its GObject is created lazily by its\n * parent. Codegen imports this module, so it must never reach the GObject bindings.\n */\nconst BUILTIN_ELEMENTS: Record<string, ElementConfig> = {\n ...forTypes(CHILD_SETTER_TYPES, {\n props: childrenProps,\n omitProps: [\"child\"],\n }),\n ...forTypes(CONTENT_SETTER_TYPES, {\n props: childrenProps,\n omitProps: [\"content\"],\n }),\n AdwViewStackPage: {\n lazy: true,\n },\n AdwTabPage: {\n lazy: true,\n },\n AdwPreferencesRow: {\n props: preferencesRowProps,\n },\n AdwDialog: {\n props: breakpointsProps,\n component: adw(\"createDialogComponent\"),\n omitProps: [\"child\"],\n },\n AdwApplicationWindow: {\n props: breakpointsProps,\n omitProps: [\"content\"],\n },\n AdwWindow: {\n props: breakpointsProps,\n omitProps: [\"content\"],\n },\n AdwBreakpointBin: {\n props: breakpointsProps,\n omitProps: [\"child\"],\n },\n AdwActionRow: {\n props: preferencesRowProps,\n },\n AdwEntryRow: {\n props: preferencesRowProps,\n },\n AdwExpanderRow: {\n props: adw(\"AdwExpanderRowProps\"),\n },\n AdwNavigationSplitView: {\n props: childrenProps,\n omitProps: [\"content\"],\n },\n AdwLeaflet: {\n props: childrenProps,\n },\n AdwWrapBox: {\n props: childrenProps,\n },\n AdwCarousel: {\n props: childrenProps,\n },\n AdwPreferencesPage: {\n props: childrenProps,\n },\n AdwPreferencesDialog: {\n props: childrenProps,\n },\n AdwPreferencesWindow: {\n props: childrenProps,\n },\n AdwPreferencesGroup: {\n props: childrenProps,\n },\n AdwSqueezer: {\n props: childrenProps,\n },\n AdwTabView: {\n props: childrenProps,\n },\n AdwNavigationView: {\n props: childrenProps,\n },\n AdwViewStack: {\n props: childrenProps,\n },\n AdwToolbarView: {\n props: adw(\"AdwToolbarViewProps\"),\n omitProps: [\"content\"],\n },\n AdwHeaderBar: {\n props: internal(\"GtkHeaderBarProps\"),\n },\n AdwShortcutsDialog: {\n props: childrenProps,\n },\n AdwShortcutsSection: {\n props: childrenProps,\n },\n AdwToggleGroup: {\n props: childrenProps,\n },\n AdwAlertDialog: {\n props: adw(\"AdwAlertDialogProps\"),\n },\n};\n\nfunction adw(name: string): ModuleExport {\n return { module: \"@gtkx/react/adw\", export: name };\n}\n\nexport { CHILD_SETTER_TYPES, CONTENT_SETTER_TYPES, BUILTIN_ELEMENTS };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adw/index.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,mBAAmB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adw/index.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC","sourcesContent":["import \"./element-behaviors.js\";\n\nexport { createDialogComponent } from \"./dialog.js\";\nexport type * from \"./prop-types.js\";\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as Adw from "@gtkx/gi/adw";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { ChildrenProps } from "../prop-types.js";
|
|
4
|
+
type AlertDialogResponse = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
appearance?: Adw.ResponseAppearance;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type AdwAlertDialogProps = {
|
|
11
|
+
responses?: AlertDialogResponse[] | null | undefined;
|
|
12
|
+
} & ChildrenProps;
|
|
13
|
+
type AdwPreferencesRowProps = {
|
|
14
|
+
prefix?: ReactNode | null | undefined;
|
|
15
|
+
suffix?: ReactNode | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
type AdwExpanderRowProps = {
|
|
18
|
+
rows?: ReactNode | null | undefined;
|
|
19
|
+
actions?: ReactNode | null | undefined;
|
|
20
|
+
} & AdwPreferencesRowProps;
|
|
21
|
+
type AdwToolbarViewProps = {
|
|
22
|
+
topBar?: ReactNode | null | undefined;
|
|
23
|
+
bottomBar?: ReactNode | null | undefined;
|
|
24
|
+
} & ChildrenProps;
|
|
25
|
+
type AdwBreakpointsProps = {
|
|
26
|
+
breakpoints?: ReactNode | null | undefined;
|
|
27
|
+
} & ChildrenProps;
|
|
28
|
+
export { type AlertDialogResponse, type AdwAlertDialogProps, type AdwPreferencesRowProps, type AdwExpanderRowProps, type AdwToolbarViewProps, type AdwBreakpointsProps, };
|
|
29
|
+
//# sourceMappingURL=prop-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../src/adw/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,mBAAmB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC,kBAAkB,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACvB,SAAS,CAAC,EAAE,mBAAmB,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CACxD,GAAG,aAAa,CAAC;AAElB,KAAK,sBAAsB,GAAG;IAC1B,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACvB,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,GAAG,sBAAsB,CAAC;AAE3B,KAAK,mBAAmB,GAAG;IACvB,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C,GAAG,aAAa,CAAC;AAElB,KAAK,mBAAmB,GAAG;IACvB,WAAW,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C,GAAG,aAAa,CAAC;AAElB,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-types.js","sourceRoot":"","sources":["../../src/adw/prop-types.ts"],"names":[],"mappings":"AAkCA,OAAO,EAON,CAAC","sourcesContent":["import type * as Adw from \"@gtkx/gi/adw\";\nimport type { ReactNode } from \"react\";\nimport type { ChildrenProps } from \"../prop-types.js\";\n\ntype AlertDialogResponse = {\n id: string;\n label: string;\n appearance?: Adw.ResponseAppearance;\n enabled?: boolean;\n};\n\ntype AdwAlertDialogProps = {\n responses?: AlertDialogResponse[] | null | undefined;\n} & ChildrenProps;\n\ntype AdwPreferencesRowProps = {\n prefix?: ReactNode | null | undefined;\n suffix?: ReactNode | null | undefined;\n};\n\ntype AdwExpanderRowProps = {\n rows?: ReactNode | null | undefined;\n actions?: ReactNode | null | undefined;\n} & AdwPreferencesRowProps;\n\ntype AdwToolbarViewProps = {\n topBar?: ReactNode | null | undefined;\n bottomBar?: ReactNode | null | undefined;\n} & ChildrenProps;\n\ntype AdwBreakpointsProps = {\n breakpoints?: ReactNode | null | undefined;\n} & ChildrenProps;\n\nexport {\n type AlertDialogResponse,\n type AdwAlertDialogProps,\n type AdwPreferencesRowProps,\n type AdwExpanderRowProps,\n type AdwToolbarViewProps,\n type AdwBreakpointsProps,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,gBAAgB,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC","sourcesContent":["import { elements } from \"virtual:gtkx-config\";\nimport \"./element-behaviors.js\";\nimport { registerElements } from \"./reconciler/registry.js\";\n\nregisterElements(elements, { prepend: true });\n"]}
|
|
@@ -5,6 +5,6 @@ type ApplicationComponentProps = {
|
|
|
5
5
|
children?: ReactNode | undefined;
|
|
6
6
|
ref?: Ref<Gtk.Application | null> | undefined;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
export {};
|
|
8
|
+
declare const createApplicationComponent: (Component: ElementType) => ((props: ApplicationComponentProps) => ReactNode);
|
|
9
|
+
export { createApplicationComponent };
|
|
10
10
|
//# sourceMappingURL=application.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/components/application.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/components/application.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAA6B,MAAM,OAAO,CAAC;AAK9F,KAAK,yBAAyB,GAAG;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;CACjD,CAAC;AA+BF,QAAA,MAAM,0BAA0B,GAC5B,WAAW,WAAW,KACvB,CAAC,CAAC,KAAK,EAAE,yBAAyB,KAAK,SAAS,CAclD,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|