@kirana-ui/solid 0.1.0 → 0.1.1
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/dom/autocomplete.js +2 -0
- package/dom/autosize.js +19 -0
- package/dom/calendar.js +141 -0
- package/dom/carousel.js +83 -0
- package/dom/checkbox.js +2 -1
- package/dom/combobox.js +281 -0
- package/dom/command.js +129 -0
- package/dom/context-menu.js +2 -0
- package/dom/date-field.js +86 -0
- package/dom/date-picker.js +103 -0
- package/dom/dialog.js +28 -0
- package/dom/drawer.js +2 -0
- package/dom/hover-popup.js +17 -2
- package/dom/index.js +26 -1
- package/dom/input.js +26 -0
- package/dom/label.js +18 -0
- package/dom/listbox.js +114 -0
- package/dom/menu.js +261 -0
- package/dom/menubar-context.js +3 -0
- package/dom/menubar.js +33 -0
- package/dom/message-scroller.js +56 -0
- package/dom/navigation-menu.js +150 -0
- package/dom/number-field.js +82 -0
- package/dom/otp.js +95 -0
- package/dom/pagination.js +74 -0
- package/dom/popover.js +2 -0
- package/dom/qr-code.js +48 -0
- package/dom/radio-group.js +2 -1
- package/dom/resizable.js +65 -0
- package/dom/runtime.js +36 -2
- package/dom/scroll-area.js +99 -0
- package/dom/select.js +69 -5
- package/dom/slider.js +1 -1
- package/dom/switch.js +2 -1
- package/dom/toast.js +113 -0
- package/dom/toggle-group.js +37 -0
- package/dom/toggle.js +11 -3
- package/dom/toolbar-context.js +5 -0
- package/dom/toolbar.js +71 -0
- package/llms.txt +1838 -0
- package/package.json +220 -2
- package/server/autocomplete.js +2 -0
- package/server/autosize.js +19 -0
- package/server/calendar.js +140 -0
- package/server/carousel.js +83 -0
- package/server/checkbox.js +2 -1
- package/server/combobox.js +281 -0
- package/server/command.js +129 -0
- package/server/context-menu.js +2 -0
- package/server/date-field.js +86 -0
- package/server/date-picker.js +103 -0
- package/server/dialog.js +28 -0
- package/server/drawer.js +2 -0
- package/server/hover-popup.js +17 -2
- package/server/index.js +26 -1
- package/server/input.js +26 -0
- package/server/label.js +18 -0
- package/server/listbox.js +114 -0
- package/server/menu.js +261 -0
- package/server/menubar-context.js +3 -0
- package/server/menubar.js +33 -0
- package/server/message-scroller.js +56 -0
- package/server/navigation-menu.js +144 -0
- package/server/number-field.js +81 -0
- package/server/otp.js +94 -0
- package/server/pagination.js +74 -0
- package/server/popover.js +2 -0
- package/server/qr-code.js +48 -0
- package/server/radio-group.js +2 -1
- package/server/resizable.js +65 -0
- package/server/runtime.js +35 -1
- package/server/scroll-area.js +99 -0
- package/server/select.js +69 -5
- package/server/slider.js +1 -1
- package/server/switch.js +2 -1
- package/server/toast.js +113 -0
- package/server/toggle-group.js +37 -0
- package/server/toggle.js +11 -3
- package/server/toolbar-context.js +5 -0
- package/server/toolbar.js +71 -0
- package/src/autocomplete.jsx +2 -0
- package/src/autosize.jsx +8 -0
- package/src/calendar.jsx +104 -0
- package/src/carousel.jsx +51 -0
- package/src/checkbox.jsx +2 -0
- package/src/combobox.jsx +179 -0
- package/src/command.jsx +81 -0
- package/src/context-menu.js +2 -0
- package/src/date-field.jsx +67 -0
- package/src/date-picker.jsx +72 -0
- package/src/dialog.jsx +20 -0
- package/src/drawer.js +2 -0
- package/src/hover-popup.jsx +10 -2
- package/src/index.js +26 -1
- package/src/input.jsx +17 -0
- package/src/label.jsx +9 -0
- package/src/listbox.jsx +81 -0
- package/src/menu.jsx +164 -0
- package/src/menubar-context.js +3 -0
- package/src/menubar.jsx +21 -0
- package/src/message-scroller.jsx +27 -0
- package/src/navigation-menu.jsx +95 -0
- package/src/number-field.jsx +75 -0
- package/src/otp.jsx +73 -0
- package/src/pagination.jsx +60 -0
- package/src/popover.jsx +2 -0
- package/src/qr-code.jsx +25 -0
- package/src/radio-group.jsx +2 -0
- package/src/resizable.jsx +46 -0
- package/src/runtime.jsx +33 -2
- package/src/scroll-area.jsx +53 -0
- package/src/select.jsx +49 -5
- package/src/slider.jsx +2 -0
- package/src/switch.jsx +2 -0
- package/src/toast.jsx +58 -0
- package/src/toggle-group.jsx +32 -0
- package/src/toggle.jsx +8 -2
- package/src/toolbar-context.js +5 -0
- package/src/toolbar.jsx +43 -0
- package/types/autocomplete.d.ts +1 -0
- package/types/autosize.d.ts +8 -0
- package/types/calendar.d.ts +40 -0
- package/types/carousel.d.ts +26 -0
- package/types/checkbox.d.ts +1 -0
- package/types/combobox.d.ts +106 -0
- package/types/command.d.ts +45 -0
- package/types/context-menu.d.ts +1 -0
- package/types/date-field.d.ts +23 -0
- package/types/date-picker.d.ts +49 -0
- package/types/dialog.d.ts +21 -0
- package/types/drawer.d.ts +1 -0
- package/types/hover-card.d.ts +4 -1
- package/types/hover-popup.d.ts +4 -1
- package/types/index.d.ts +27 -1
- package/types/input.d.ts +12 -0
- package/types/label.d.ts +4 -0
- package/types/listbox.d.ts +38 -0
- package/types/menu.d.ts +91 -0
- package/types/menubar-context.d.ts +3 -0
- package/types/menubar.d.ts +10 -0
- package/types/message-scroller.d.ts +16 -0
- package/types/navigation-menu.d.ts +44 -0
- package/types/number-field.d.ts +15 -0
- package/types/otp.d.ts +32 -0
- package/types/pagination.d.ts +23 -0
- package/types/popover.d.ts +4 -1
- package/types/qr-code.d.ts +14 -0
- package/types/radio-group.d.ts +1 -0
- package/types/resizable.d.ts +24 -0
- package/types/runtime.d.ts +18 -0
- package/types/scroll-area.d.ts +20 -0
- package/types/select.d.ts +25 -1
- package/types/switch.d.ts +1 -0
- package/types/toast.d.ts +33 -0
- package/types/toggle-group.d.ts +14 -0
- package/types/toggle.d.ts +2 -0
- package/types/toolbar-context.d.ts +6 -0
- package/types/toolbar.d.ts +23 -0
- package/types/tooltip.d.ts +4 -1
package/types/toast.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ToastProps, ToastRecord, Toaster } from "@kirana-ui/core/toast";
|
|
2
|
+
import type { Accessor, JSX } from "solid-js";
|
|
3
|
+
import type { PartComponentProps } from "./runtime.tsx";
|
|
4
|
+
/** Where a toaster's toasts are drawn. Always in the page: put it once, near the root. */
|
|
5
|
+
declare function Viewport(props: PartComponentProps & {
|
|
6
|
+
toaster: Toaster;
|
|
7
|
+
label?: string;
|
|
8
|
+
hotkey?: string;
|
|
9
|
+
swipeDirection?: ToastProps["swipeDirection"];
|
|
10
|
+
id?: string;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Draws its child once for each toast, the newest first. The child is given the toast as an
|
|
14
|
+
* accessor: one that changes is the same toast, drawn again where it stands.
|
|
15
|
+
*/
|
|
16
|
+
declare function List(props: {
|
|
17
|
+
children: (toast: Accessor<ToastRecord>) => JSX.Element;
|
|
18
|
+
}): JSX.Element;
|
|
19
|
+
declare function Root(props: PartComponentProps & {
|
|
20
|
+
toast: ToastRecord;
|
|
21
|
+
}): JSX.Element;
|
|
22
|
+
export declare const Toast: {
|
|
23
|
+
Viewport: typeof Viewport;
|
|
24
|
+
List: typeof List;
|
|
25
|
+
Root: typeof Root;
|
|
26
|
+
Content: (props: PartComponentProps) => JSX.Element;
|
|
27
|
+
Title: (props: PartComponentProps) => JSX.Element;
|
|
28
|
+
Description: (props: PartComponentProps) => JSX.Element;
|
|
29
|
+
Close: (props: PartComponentProps) => JSX.Element;
|
|
30
|
+
Action: (props: PartComponentProps) => JSX.Element;
|
|
31
|
+
};
|
|
32
|
+
export { createToaster } from "@kirana-ui/core/toast";
|
|
33
|
+
export type { ToastOptions, ToastRecord, Toaster } from "@kirana-ui/core/toast";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ChangeDetails, Orientation } from "@kirana-ui/core";
|
|
2
|
+
import type { JSX } from "solid-js";
|
|
3
|
+
import type { PartComponentProps } from "./runtime.tsx";
|
|
4
|
+
export type ToggleGroupProps = PartComponentProps & {
|
|
5
|
+
value?: readonly unknown[];
|
|
6
|
+
defaultValue?: readonly unknown[];
|
|
7
|
+
onValueChange?: (value: unknown[], details: ChangeDetails) => void;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
orientation?: Orientation;
|
|
11
|
+
loop?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** Toggles that are one control. Each `<Toggle value>` inside it is one of its toggles. */
|
|
14
|
+
export declare function ToggleGroup(props: ToggleGroupProps): JSX.Element;
|
package/types/toggle.d.ts
CHANGED
|
@@ -6,5 +6,7 @@ export type ToggleProps = PartComponentProps & {
|
|
|
6
6
|
defaultPressed?: boolean;
|
|
7
7
|
onPressedChange?: (pressed: boolean, details: ChangeDetails) => void;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
/** In a toggle group: what the group's value holds while this one is pressed. */
|
|
10
|
+
value?: unknown;
|
|
9
11
|
};
|
|
10
12
|
export declare function Toggle(props: ToggleProps): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ToggleGroup } from "@kirana-ui/core/toggle-group";
|
|
2
|
+
import type { Toolbar } from "@kirana-ui/core/toolbar";
|
|
3
|
+
/** The toolbar a control is an item of, if it is in one. */
|
|
4
|
+
export declare const ToolbarContext: import("solid-js").Context<Toolbar | null>;
|
|
5
|
+
/** The group a toggle is one of the toggles of, if it is in one. */
|
|
6
|
+
export declare const ToggleGroupContext: import("solid-js").Context<ToggleGroup<unknown> | null>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Orientation } from "@kirana-ui/core";
|
|
2
|
+
import type { JSX } from "solid-js";
|
|
3
|
+
import type { PartComponentProps } from "./runtime.tsx";
|
|
4
|
+
declare function Root(props: PartComponentProps & {
|
|
5
|
+
orientation?: Orientation;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
export declare const Toolbar: {
|
|
10
|
+
Root: typeof Root;
|
|
11
|
+
Button: (props: PartComponentProps & {
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}) => JSX.Element;
|
|
14
|
+
Link: (props: PartComponentProps) => JSX.Element;
|
|
15
|
+
Input: (props: PartComponentProps & {
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}) => JSX.Element;
|
|
18
|
+
Group: (props: PartComponentProps & {
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}) => JSX.Element;
|
|
21
|
+
Separator: (props: PartComponentProps) => JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
package/types/tooltip.d.ts
CHANGED
|
@@ -4,7 +4,10 @@ export declare const Tooltip: {
|
|
|
4
4
|
children?: import("solid-js").JSX.Element;
|
|
5
5
|
}) => import("solid-js").JSX.Element;
|
|
6
6
|
Positioner: (props: import("./popover.tsx").PositionerProps) => import("solid-js").JSX.Element;
|
|
7
|
-
Trigger: (props: import("./runtime.tsx").PartComponentProps
|
|
7
|
+
Trigger: (props: import("./runtime.tsx").PartComponentProps & {
|
|
8
|
+
delay?: number;
|
|
9
|
+
closeDelay?: number;
|
|
10
|
+
}) => import("solid-js").JSX.Element;
|
|
8
11
|
Popup: (props: import("./runtime.tsx").PartComponentProps) => import("solid-js").JSX.Element;
|
|
9
12
|
Arrow: (props: import("./runtime.tsx").PartComponentProps) => import("solid-js").JSX.Element;
|
|
10
13
|
};
|