@c9up/nebula 0.2.4 → 0.2.6
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/README.md +4 -4
- package/dist/atoms/AspectRatio.d.ts +10 -4
- package/dist/atoms/AspectRatio.js +21 -6
- package/dist/atoms/NativeSelect.d.ts +16 -0
- package/dist/atoms/NativeSelect.js +4 -1
- package/dist/atoms/Progress.d.ts +9 -1
- package/dist/atoms/Progress.js +21 -5
- package/dist/atoms/Switch.d.ts +7 -1
- package/dist/atoms/Switch.js +7 -1
- package/dist/cli/diff.d.ts +46 -0
- package/dist/cli/diff.js +73 -2
- package/dist/console/DiffCommand.js +6 -11
- package/dist/molecules/Accordion.js +1 -2
- package/dist/molecules/Collapsible.js +1 -2
- package/dist/molecules/Resizable.d.ts +6 -0
- package/dist/molecules/Resizable.js +8 -2
- package/dist/organisms/Agenda.d.ts +200 -0
- package/dist/organisms/Agenda.js +762 -0
- package/dist/organisms/AlertDialog.js +4 -5
- package/dist/organisms/Chart.d.ts +103 -15
- package/dist/organisms/Chart.js +518 -99
- package/dist/organisms/Dialog.js +7 -7
- package/dist/organisms/Sidebar.d.ts +5 -7
- package/dist/organisms/Sidebar.js +23 -6
- package/dist/organisms/Sonner.js +11 -4
- package/dist/organisms/index.d.ts +2 -1
- package/dist/organisms/index.js +2 -1
- package/dist/primitives/floatingSurface.js +60 -36
- package/dist/primitives/menuParts.js +3 -3
- package/dist/primitives/portal.d.ts +15 -0
- package/dist/primitives/portal.js +18 -1
- package/nebula.css +1 -1
- package/package.json +1 -1
- package/registry.json +13 -0
- package/src/atoms/AspectRatio.ts +21 -6
- package/src/atoms/NativeSelect.ts +20 -1
- package/src/atoms/Progress.ts +21 -5
- package/src/atoms/Switch.ts +7 -1
- package/src/cli/diff.ts +123 -2
- package/src/console/DiffCommand.ts +12 -15
- package/src/molecules/Accordion.ts +1 -2
- package/src/molecules/Collapsible.ts +1 -3
- package/src/molecules/Resizable.ts +8 -2
- package/src/organisms/Agenda.ts +1061 -0
- package/src/organisms/AlertDialog.ts +3 -5
- package/src/organisms/Chart.ts +633 -125
- package/src/organisms/Dialog.ts +6 -7
- package/src/organisms/Sidebar.ts +28 -6
- package/src/organisms/Sonner.ts +11 -4
- package/src/organisms/index.ts +26 -0
- package/src/primitives/floatingSurface.ts +74 -40
- package/src/primitives/menuParts.ts +3 -3
- package/src/primitives/portal.ts +27 -1
|
@@ -33,7 +33,6 @@ import {
|
|
|
33
33
|
createContext,
|
|
34
34
|
html,
|
|
35
35
|
inject,
|
|
36
|
-
onUnmount,
|
|
37
36
|
provide,
|
|
38
37
|
type TemplateResult,
|
|
39
38
|
} from "@c9up/aurora";
|
|
@@ -46,7 +45,7 @@ import { fadeInOut, zoomInOut } from "../lib/motion.js";
|
|
|
46
45
|
import { type Reactive, read } from "../lib/props.js";
|
|
47
46
|
import { controllable } from "../primitives/controllable.js";
|
|
48
47
|
import { modalSurface } from "../primitives/modalSurface.js";
|
|
49
|
-
import {
|
|
48
|
+
import { portalOnMount } from "../primitives/portal.js";
|
|
50
49
|
import { dialogBackdropClasses } from "./Dialog.js";
|
|
51
50
|
|
|
52
51
|
const panelClasses =
|
|
@@ -226,11 +225,10 @@ export interface AlertDialogPortalProps {
|
|
|
226
225
|
* than standing in as a passthrough.
|
|
227
226
|
*/
|
|
228
227
|
export const AlertDialogPortal = component<AlertDialogPortalProps>((props) => {
|
|
229
|
-
|
|
228
|
+
portalOnMount(html`${slot(props.children)}`, {
|
|
230
229
|
container: props.container,
|
|
230
|
+
slot: "alert-dialog-portal",
|
|
231
231
|
});
|
|
232
|
-
mounted.host.setAttribute("data-slot", "alert-dialog-portal");
|
|
233
|
-
onUnmount(() => mounted.close());
|
|
234
232
|
return html``;
|
|
235
233
|
});
|
|
236
234
|
|