@tempots/beatui 0.87.2 → 0.87.4
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/{ar-DjMvIww5.js → ar-Dn7AkNO5.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-BIefTDoO.js → auth-divider-BZPM2Xd3.js} +101 -103
- package/dist/{auth-divider-V_Se6Qhe.cjs → auth-divider-Cj-xJxF_.cjs} +1 -1
- package/dist/beatui.css +23 -0
- package/dist/beatui.tailwind.css +23 -0
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +12 -12
- package/dist/{colors-BmLYKmoH.js → colors-CatA-RXf.js} +9 -9
- package/dist/{de-wChFYqM4.js → de-QYhBiWv7.js} +1 -1
- package/dist/deep-merge-BmxkFFi1.cjs +1 -0
- package/dist/{deep-merge-BRqRzEQs.js → deep-merge-D076XcC5.js} +152 -156
- package/dist/{duration-input-BDEb1Bb7.js → duration-input-6RN16H08.js} +5 -5
- package/dist/{duration-input-BtFL5Vjx.cjs → duration-input-CJU-yeKk.cjs} +1 -1
- package/dist/{editor-toolbar-group-CwCCGzEC.js → editor-toolbar-group-DRCbXeQP.js} +6 -3
- package/dist/{es-CmPF3IGl.js → es-Ba31pZAd.js} +1 -1
- package/dist/{fa-D696e75R.js → fa-DvLjl_Ha.js} +1 -1
- package/dist/{fr-B0jeX1Hx.js → fr-D64yBpAp.js} +1 -1
- package/dist/{he-SgAsIYJA.js → he-DHZGEQ7C.js} +1 -1
- package/dist/{hi-s9oiIihq.js → hi-CeAXVCvp.js} +1 -1
- package/dist/{index-CaWDj1Vg.cjs → index-BIGCKfNz.cjs} +10 -10
- package/dist/{index-DdqGL9Jk.js → index-BTITknMc.js} +701 -684
- package/dist/{index-qa82MK4Z.cjs → index-Bso_SkEn.cjs} +1 -1
- package/dist/{index-B0t-nt7i.js → index-DWDC-qRY.js} +4 -4
- package/dist/{index-D2_J_-XS.js → index-rHnH2IGb.js} +77 -77
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +1015 -1018
- package/dist/{index.esm-ChUrm4xR.js → index.esm-By0m3ki1.js} +3 -3
- package/dist/{input-container-DhUiLmXE.js → input-container-BTyCOubf.js} +1 -1
- package/dist/{it-Dc4IMciD.js → it-Im0KgKWL.js} +1 -1
- package/dist/{ja-D2t2g5xj.js → ja-lliCbC19.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +97 -103
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +15 -15
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +349 -351
- package/dist/{ko-BRylA5JZ.js → ko-B9W4RBBs.js} +1 -1
- package/dist/lexical/index.cjs.js +5 -12
- package/dist/lexical/index.es.js +54 -84
- package/dist/{menu-Ui4lUPHM.js → menu-CV85y3Xf.js} +1 -1
- package/dist/{modal-Dkje8L_l.js → modal-CD3DwAlD.js} +5 -5
- package/dist/{modal-Coenk8Fy.cjs → modal-jJMS0ZlW.cjs} +1 -1
- package/dist/monaco/index.es.js +1 -1
- package/dist/{nl-Dh7LUWAn.js → nl-ba5SyHsw.js} +1 -1
- package/dist/notice-9lpZ-VDn.cjs +1 -0
- package/dist/{notice-BmkckDsD.js → notice-Cc26kgiB.js} +26 -28
- package/dist/{oneof-branch-detection-Vov_e3kI.cjs → oneof-branch-detection-BsGhMslW.cjs} +6 -6
- package/dist/{oneof-branch-detection-BED_n2MT.js → oneof-branch-detection-DiAtgGQH.js} +1740 -1734
- package/dist/{pl-XEG-p1Q9.js → pl-DCiJAZWC.js} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYsDA2sZ.js → pt-Df5bAGWA.js} +1 -1
- package/dist/{ru-BTKBykp-.js → ru-Dg-c670Y.js} +1 -1
- package/dist/stack-4VUGISn6.cjs +1 -0
- package/dist/{stack-BJgsPJ9A.js → stack-Bm-UZosx.js} +145 -139
- package/dist/tailwind/preset.es.js +2 -2
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{text-input-BZmAB3_o.js → text-input-Cux5iiUC.js} +5 -5
- package/dist/{theme-BzpMLdvH.js → theme-kQZEeusG.js} +4 -4
- package/dist/{toolbar-Pdj-F80l.js → toolbar-DYmKrtic.js} +1 -1
- package/dist/{tr-Cp8ZCUic.js → tr-Dhpiq0u_.js} +1 -1
- package/dist/{translations-BGblCUBj.js → translations-BLlzvZgw.js} +30 -30
- package/dist/{translations-jUYta1_1.js → translations-COSDzhvR.js} +1 -1
- package/dist/types/auth-i18n/translations.d.ts +2 -2
- package/dist/types/beatui-i18n/translations.d.ts +2 -2
- package/dist/types/better-auth/components/authenticated.d.ts +2 -2
- package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
- package/dist/types/better-auth/i18n/translations.d.ts +2 -2
- package/dist/types/better-auth/provider.d.ts +2 -2
- package/dist/types/components/auth/auth-container.d.ts +1 -1
- package/dist/types/components/auth/auth-email-prop.d.ts +1 -1
- package/dist/types/components/beatui.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/content/native-pdf-preview.d.ts +1 -1
- package/dist/types/components/content/pdfjs-preview.d.ts +1 -1
- package/dist/types/components/data/icon.d.ts +1 -1
- package/dist/types/components/data/page-drop-zone.d.ts +1 -1
- package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +1 -1
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +1 -1
- package/dist/types/components/form/control/control.d.ts +2 -2
- package/dist/types/components/form/control/ensure-control.d.ts +1 -1
- package/dist/types/components/form/control/list-control.d.ts +1 -1
- package/dist/types/components/form/controller/color-controller.d.ts +4 -4
- package/dist/types/components/form/input/appearance-selector.d.ts +2 -2
- package/dist/types/components/form/input/base64-input.d.ts +1 -1
- package/dist/types/components/form/input/base64s-input.d.ts +1 -1
- package/dist/types/components/form/input/combobox-tags-input.d.ts +1 -1
- package/dist/types/components/form/input/email-input.d.ts +1 -1
- package/dist/types/components/form/input/file-input.d.ts +1 -1
- package/dist/types/components/form/input/files-input.d.ts +1 -1
- package/dist/types/components/form/input/input-options.d.ts +1 -1
- package/dist/types/components/form/input/list-input.d.ts +1 -1
- package/dist/types/components/form/input/nullable-base64-input.d.ts +1 -1
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +12 -12
- package/dist/types/components/form/input/password-input.d.ts +1 -1
- package/dist/types/components/form/input/plain-date-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-date-time-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-time-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-year-month-input.d.ts +12 -12
- package/dist/types/components/form/input/select-tags-input.d.ts +3 -3
- package/dist/types/components/form/use-form.d.ts +3 -3
- package/dist/types/components/i18n/locale-direction.d.ts +1 -1
- package/dist/types/components/i18n/locale-selector.d.ts +1 -1
- package/dist/types/components/i18n/locale.d.ts +1 -1
- package/dist/types/components/i18n/make-i18nprovider.d.ts +2 -2
- package/dist/types/components/layout/app-shell.d.ts +1 -1
- package/dist/types/components/lexical/code/language-selector.d.ts +1 -1
- package/dist/types/components/lexical/floating/block-handle.d.ts +1 -1
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +1 -1
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +1 -1
- package/dist/types/components/lexical/table/table-controls.d.ts +1 -1
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +1 -1
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +2 -2
- package/dist/types/components/media/pdf-page-viewer.d.ts +1 -1
- package/dist/types/components/misc/notification-provider.d.ts +2 -2
- package/dist/types/components/navigation/link/button-link.d.ts +1 -1
- package/dist/types/components/navigation/link/link.d.ts +1 -1
- package/dist/types/components/navigation/link/navigation-link.d.ts +1 -1
- package/dist/types/components/navigation/pagination.d.ts +1 -1
- package/dist/types/components/navigation/sidebar/sidebar.d.ts +2 -2
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +1 -1
- package/dist/types/components/prosemirror/link-control.d.ts +1 -1
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +1 -1
- package/dist/types/components/prosemirror/utils.d.ts +2 -2
- package/dist/types/components/theme/theme.d.ts +2 -2
- package/dist/types/i18n/translate.d.ts +1 -1
- package/dist/types/utils/delay-signal.d.ts +1 -1
- package/dist/types/utils/use-animated-toggle.d.ts +22 -22
- package/dist/{ur-DkIYJxsF.js → ur-Lr1p8f9y.js} +1 -1
- package/dist/{use-animated-toggle-89fKlXxy.js → use-animated-toggle-C7PTmnZi.js} +7 -7
- package/dist/{use-form-BSvvERhX.js → use-form-BfzX3bwL.js} +13 -13
- package/dist/{use-form-B_mCauP0.cjs → use-form-i97PToWB.cjs} +1 -1
- package/dist/{vi-DKw6PBja.js → vi-jozfaxSj.js} +1 -1
- package/dist/widget-customization-BZqPoojo.cjs +1 -0
- package/dist/{widget-customization-DFr3ycD7.js → widget-customization-fMNSVtuP.js} +29 -29
- package/dist/{zh-CaKHseXJ.js → zh-BBYKq49d.js} +1 -1
- package/package.json +35 -31
- package/dist/deep-merge-CvN7Xvd1.cjs +0 -1
- package/dist/notice-DMK7dx9a.cjs +0 -1
- package/dist/stack-DcZ_u50f.cjs +0 -1
- package/dist/widget-customization-BASfRpF7.cjs +0 -1
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export declare const NullablePlainYearMonthInput: (options: {
|
|
20
|
-
autocomplete?: import("@tempots/
|
|
21
|
-
autofocus?: import("@tempots/
|
|
22
|
-
class?: import("@tempots/
|
|
20
|
+
autocomplete?: import("@tempots/core").Value<string> | undefined;
|
|
21
|
+
autofocus?: import("@tempots/core").Value<boolean> | undefined;
|
|
22
|
+
class?: import("@tempots/core").Value<string> | undefined;
|
|
23
23
|
classes?: import("./input-options").InputClasses | undefined;
|
|
24
|
-
disabled?: import("@tempots/
|
|
25
|
-
hasError?: import("@tempots/
|
|
26
|
-
name?: import("@tempots/
|
|
27
|
-
placeholder?: import("@tempots/
|
|
28
|
-
id?: import("@tempots/
|
|
29
|
-
required?: import("@tempots/
|
|
30
|
-
tabIndex?: import("@tempots/
|
|
31
|
-
size?: import("@tempots/
|
|
32
|
-
value: import("@tempots/
|
|
24
|
+
disabled?: import("@tempots/core").Value<boolean> | undefined;
|
|
25
|
+
hasError?: import("@tempots/core").Value<boolean> | undefined;
|
|
26
|
+
name?: import("@tempots/core").Value<string> | undefined;
|
|
27
|
+
placeholder?: import("@tempots/core").Value<string> | undefined;
|
|
28
|
+
id?: import("@tempots/core").Value<string> | undefined;
|
|
29
|
+
required?: import("@tempots/core").Value<boolean> | undefined;
|
|
30
|
+
tabIndex?: import("@tempots/core").Value<number> | undefined;
|
|
31
|
+
size?: import("@tempots/core").Value<import("../../theme").ControlSize> | undefined;
|
|
32
|
+
value: import("@tempots/core").Value<import("@js-temporal/polyfill").Temporal.PlainYearMonth | null>;
|
|
33
33
|
before?: import("@tempots/dom").TNode;
|
|
34
34
|
after?: import("@tempots/dom").TNode;
|
|
35
35
|
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainYearMonth | null) => void) | undefined;
|
|
@@ -38,4 +38,4 @@ import { InputOptions } from './input-options';
|
|
|
38
38
|
* })
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
export declare const PasswordInput: (options: InputOptions<string>) => import("@tempots/dom").
|
|
41
|
+
export declare const PasswordInput: (options: InputOptions<string>) => import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export declare const PlainDateInput: (options: {
|
|
19
|
-
autocomplete?: import("@tempots/
|
|
20
|
-
autofocus?: import("@tempots/
|
|
21
|
-
class?: import("@tempots/
|
|
19
|
+
autocomplete?: import("@tempots/core").Value<string> | undefined;
|
|
20
|
+
autofocus?: import("@tempots/core").Value<boolean> | undefined;
|
|
21
|
+
class?: import("@tempots/core").Value<string> | undefined;
|
|
22
22
|
classes?: import("./input-options").InputClasses | undefined;
|
|
23
|
-
disabled?: import("@tempots/
|
|
24
|
-
hasError?: import("@tempots/
|
|
25
|
-
name?: import("@tempots/
|
|
26
|
-
placeholder?: import("@tempots/
|
|
27
|
-
id?: import("@tempots/
|
|
28
|
-
required?: import("@tempots/
|
|
29
|
-
tabIndex?: import("@tempots/
|
|
30
|
-
size?: import("@tempots/
|
|
31
|
-
value: import("@tempots/
|
|
23
|
+
disabled?: import("@tempots/core").Value<boolean> | undefined;
|
|
24
|
+
hasError?: import("@tempots/core").Value<boolean> | undefined;
|
|
25
|
+
name?: import("@tempots/core").Value<string> | undefined;
|
|
26
|
+
placeholder?: import("@tempots/core").Value<string> | undefined;
|
|
27
|
+
id?: import("@tempots/core").Value<string> | undefined;
|
|
28
|
+
required?: import("@tempots/core").Value<boolean> | undefined;
|
|
29
|
+
tabIndex?: import("@tempots/core").Value<number> | undefined;
|
|
30
|
+
size?: import("@tempots/core").Value<import("../../theme").ControlSize> | undefined;
|
|
31
|
+
value: import("@tempots/core").Value<import("@js-temporal/polyfill").Temporal.PlainDate>;
|
|
32
32
|
before?: import("@tempots/dom").TNode;
|
|
33
33
|
after?: import("@tempots/dom").TNode;
|
|
34
34
|
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainDate) => void) | undefined;
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export declare const PlainDateTimeInput: (options: {
|
|
19
|
-
autocomplete?: import("@tempots/
|
|
20
|
-
autofocus?: import("@tempots/
|
|
21
|
-
class?: import("@tempots/
|
|
19
|
+
autocomplete?: import("@tempots/core").Value<string> | undefined;
|
|
20
|
+
autofocus?: import("@tempots/core").Value<boolean> | undefined;
|
|
21
|
+
class?: import("@tempots/core").Value<string> | undefined;
|
|
22
22
|
classes?: import("./input-options").InputClasses | undefined;
|
|
23
|
-
disabled?: import("@tempots/
|
|
24
|
-
hasError?: import("@tempots/
|
|
25
|
-
name?: import("@tempots/
|
|
26
|
-
placeholder?: import("@tempots/
|
|
27
|
-
id?: import("@tempots/
|
|
28
|
-
required?: import("@tempots/
|
|
29
|
-
tabIndex?: import("@tempots/
|
|
30
|
-
size?: import("@tempots/
|
|
31
|
-
value: import("@tempots/
|
|
23
|
+
disabled?: import("@tempots/core").Value<boolean> | undefined;
|
|
24
|
+
hasError?: import("@tempots/core").Value<boolean> | undefined;
|
|
25
|
+
name?: import("@tempots/core").Value<string> | undefined;
|
|
26
|
+
placeholder?: import("@tempots/core").Value<string> | undefined;
|
|
27
|
+
id?: import("@tempots/core").Value<string> | undefined;
|
|
28
|
+
required?: import("@tempots/core").Value<boolean> | undefined;
|
|
29
|
+
tabIndex?: import("@tempots/core").Value<number> | undefined;
|
|
30
|
+
size?: import("@tempots/core").Value<import("../../theme").ControlSize> | undefined;
|
|
31
|
+
value: import("@tempots/core").Value<import("@js-temporal/polyfill").Temporal.PlainDateTime>;
|
|
32
32
|
before?: import("@tempots/dom").TNode;
|
|
33
33
|
after?: import("@tempots/dom").TNode;
|
|
34
34
|
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainDateTime) => void) | undefined;
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export declare const PlainTimeInput: (options: {
|
|
19
|
-
autocomplete?: import("@tempots/
|
|
20
|
-
autofocus?: import("@tempots/
|
|
21
|
-
class?: import("@tempots/
|
|
19
|
+
autocomplete?: import("@tempots/core").Value<string> | undefined;
|
|
20
|
+
autofocus?: import("@tempots/core").Value<boolean> | undefined;
|
|
21
|
+
class?: import("@tempots/core").Value<string> | undefined;
|
|
22
22
|
classes?: import("./input-options").InputClasses | undefined;
|
|
23
|
-
disabled?: import("@tempots/
|
|
24
|
-
hasError?: import("@tempots/
|
|
25
|
-
name?: import("@tempots/
|
|
26
|
-
placeholder?: import("@tempots/
|
|
27
|
-
id?: import("@tempots/
|
|
28
|
-
required?: import("@tempots/
|
|
29
|
-
tabIndex?: import("@tempots/
|
|
30
|
-
size?: import("@tempots/
|
|
31
|
-
value: import("@tempots/
|
|
23
|
+
disabled?: import("@tempots/core").Value<boolean> | undefined;
|
|
24
|
+
hasError?: import("@tempots/core").Value<boolean> | undefined;
|
|
25
|
+
name?: import("@tempots/core").Value<string> | undefined;
|
|
26
|
+
placeholder?: import("@tempots/core").Value<string> | undefined;
|
|
27
|
+
id?: import("@tempots/core").Value<string> | undefined;
|
|
28
|
+
required?: import("@tempots/core").Value<boolean> | undefined;
|
|
29
|
+
tabIndex?: import("@tempots/core").Value<number> | undefined;
|
|
30
|
+
size?: import("@tempots/core").Value<import("../../theme").ControlSize> | undefined;
|
|
31
|
+
value: import("@tempots/core").Value<import("@js-temporal/polyfill").Temporal.PlainTime>;
|
|
32
32
|
before?: import("@tempots/dom").TNode;
|
|
33
33
|
after?: import("@tempots/dom").TNode;
|
|
34
34
|
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainTime) => void) | undefined;
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export declare const PlainYearMonthInput: (options: {
|
|
19
|
-
autocomplete?: import("@tempots/
|
|
20
|
-
autofocus?: import("@tempots/
|
|
21
|
-
class?: import("@tempots/
|
|
19
|
+
autocomplete?: import("@tempots/core").Value<string> | undefined;
|
|
20
|
+
autofocus?: import("@tempots/core").Value<boolean> | undefined;
|
|
21
|
+
class?: import("@tempots/core").Value<string> | undefined;
|
|
22
22
|
classes?: import("./input-options").InputClasses | undefined;
|
|
23
|
-
disabled?: import("@tempots/
|
|
24
|
-
hasError?: import("@tempots/
|
|
25
|
-
name?: import("@tempots/
|
|
26
|
-
placeholder?: import("@tempots/
|
|
27
|
-
id?: import("@tempots/
|
|
28
|
-
required?: import("@tempots/
|
|
29
|
-
tabIndex?: import("@tempots/
|
|
30
|
-
size?: import("@tempots/
|
|
31
|
-
value: import("@tempots/
|
|
23
|
+
disabled?: import("@tempots/core").Value<boolean> | undefined;
|
|
24
|
+
hasError?: import("@tempots/core").Value<boolean> | undefined;
|
|
25
|
+
name?: import("@tempots/core").Value<string> | undefined;
|
|
26
|
+
placeholder?: import("@tempots/core").Value<string> | undefined;
|
|
27
|
+
id?: import("@tempots/core").Value<string> | undefined;
|
|
28
|
+
required?: import("@tempots/core").Value<boolean> | undefined;
|
|
29
|
+
tabIndex?: import("@tempots/core").Value<number> | undefined;
|
|
30
|
+
size?: import("@tempots/core").Value<import("../../theme").ControlSize> | undefined;
|
|
31
|
+
value: import("@tempots/core").Value<import("@js-temporal/polyfill").Temporal.PlainYearMonth>;
|
|
32
32
|
before?: import("@tempots/dom").TNode;
|
|
33
33
|
after?: import("@tempots/dom").TNode;
|
|
34
34
|
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainYearMonth) => void) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Value } from '@tempots/dom';
|
|
1
|
+
import { TNode, Value } from '@tempots/dom';
|
|
2
2
|
import { InputOptions } from './input-options';
|
|
3
3
|
import { DropdownOption } from './option';
|
|
4
4
|
import { BaseControllerOptions, ControllerOptions } from '../control';
|
|
@@ -44,7 +44,7 @@ export declare function Chips<T>(opts: {
|
|
|
44
44
|
equality: (a: T, b: T) => boolean;
|
|
45
45
|
disabled?: Value<boolean>;
|
|
46
46
|
onRemove: (v: T) => void;
|
|
47
|
-
}): import("@tempots/dom").
|
|
47
|
+
}): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
48
48
|
/**
|
|
49
49
|
* A multi-select tag input with a click-to-open dropdown menu.
|
|
50
50
|
*
|
|
@@ -78,7 +78,7 @@ export declare function SelectTagsInput<T>(options: SelectTagsOptions<T>): impor
|
|
|
78
78
|
* @param options - Base controller options for the select tags control.
|
|
79
79
|
* @returns A renderable form control component.
|
|
80
80
|
*/
|
|
81
|
-
export declare function BaseSelectTagsControl<T>(options: BaseControllerOptions<T[], SelectTagsOptions<T>>):
|
|
81
|
+
export declare function BaseSelectTagsControl<T>(options: BaseControllerOptions<T[], SelectTagsOptions<T>>): TNode;
|
|
82
82
|
/**
|
|
83
83
|
* A full form control wrapper for {@link SelectTagsInput} with label, error, and description support.
|
|
84
84
|
*
|
|
@@ -84,7 +84,7 @@ export declare function useController<T>({ initialValue, onChange, validate, equ
|
|
|
84
84
|
* @param value - The controller to connect
|
|
85
85
|
* @returns A Fragment with attribute bindings
|
|
86
86
|
*/
|
|
87
|
-
export declare function connectCommonAttributes<T>(value: Controller<T>): import("@tempots/
|
|
87
|
+
export declare function connectCommonAttributes<T>(value: Controller<T>): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
88
88
|
/**
|
|
89
89
|
* Connects a string controller to a text input element with value binding and event handlers.
|
|
90
90
|
* This is a lower-level utility; most users should use Control/BaseControl instead.
|
|
@@ -95,7 +95,7 @@ export declare function connectCommonAttributes<T>(value: Controller<T>): import
|
|
|
95
95
|
*/
|
|
96
96
|
export declare function connectStringInput(value: Controller<string>, { triggerOn, }?: {
|
|
97
97
|
triggerOn?: 'change' | 'input';
|
|
98
|
-
}): import("@tempots/
|
|
98
|
+
}): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
99
99
|
/**
|
|
100
100
|
* Connects a number controller to a number input element with value binding and event handlers.
|
|
101
101
|
* This is a lower-level utility; most users should use Control/BaseControl instead.
|
|
@@ -106,7 +106,7 @@ export declare function connectStringInput(value: Controller<string>, { triggerO
|
|
|
106
106
|
*/
|
|
107
107
|
export declare function connectNumberInput(value: Controller<number>, { triggerOn, }?: {
|
|
108
108
|
triggerOn?: 'change' | 'input';
|
|
109
|
-
}): import("@tempots/
|
|
109
|
+
}): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
110
110
|
/**
|
|
111
111
|
* Converts a Standard Schema v1 validation result into a ControllerValidation.
|
|
112
112
|
* Used internally to integrate Standard Schema validators (including Zod) with the form system.
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
* ))
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export declare const LocaleDirection: () => import("@tempots/dom").
|
|
24
|
+
export declare const LocaleDirection: () => import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -54,4 +54,4 @@ export type LocaleSelectorOptions = {
|
|
|
54
54
|
* })
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
export declare function LocaleSelector({ locales, onChange, updateLocale, }: LocaleSelectorOptions): import("@tempots/dom").
|
|
57
|
+
export declare function LocaleSelector({ locales, onChange, updateLocale, }: LocaleSelectorOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -15,7 +15,7 @@ import { Provider, Signal } from '@tempots/dom';
|
|
|
15
15
|
* @param config.providerName - Optional name for the provider mark, used for debugging
|
|
16
16
|
* @default config.providerName `'I18nProvider'`
|
|
17
17
|
*
|
|
18
|
-
* @returns A `Provider<Signal<M
|
|
18
|
+
* @returns A `Provider<Signal<M>>` that provides a reactive signal of the current messages
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```typescript
|
|
@@ -46,4 +46,4 @@ export declare function makeI18nProvider<M extends object>({ defaultLocale, defa
|
|
|
46
46
|
localeLoader: (locale: string) => Promise<M>;
|
|
47
47
|
/** Optional name for the provider mark, used for debugging. @default 'I18nProvider' */
|
|
48
48
|
providerName?: string;
|
|
49
|
-
}): Provider<Signal<M
|
|
49
|
+
}): Provider<Signal<M>>;
|
|
@@ -115,4 +115,4 @@ export interface AppShellOptions {
|
|
|
115
115
|
* })
|
|
116
116
|
* ```
|
|
117
117
|
*/
|
|
118
|
-
export declare function AppShell({ smallBreakpoint, mediumBreakpoint, ...options }: AppShellOptions): import("@tempots/dom").
|
|
118
|
+
export declare function AppShell({ smallBreakpoint, mediumBreakpoint, ...options }: AppShellOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -10,4 +10,4 @@ export interface LanguageSelectorOptions {
|
|
|
10
10
|
* Language selector that appears when a code block is selected.
|
|
11
11
|
* Allows changing the programming language for syntax highlighting.
|
|
12
12
|
*/
|
|
13
|
-
export declare function LanguageSelector({ editor, stateUpdate, readOnly, languages, }: LanguageSelectorOptions): import("@tempots/dom").
|
|
13
|
+
export declare function LanguageSelector({ editor, stateUpdate, readOnly, languages, }: LanguageSelectorOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -13,4 +13,4 @@ export interface BlockHandleOptions {
|
|
|
13
13
|
readOnly?: Signal<boolean>;
|
|
14
14
|
commands?: BlockCommand[];
|
|
15
15
|
}
|
|
16
|
-
export declare function BlockHandle({ editor, stateUpdate, readOnly, commands, }: BlockHandleOptions): import("@tempots/dom").
|
|
16
|
+
export declare function BlockHandle({ editor, stateUpdate, readOnly, commands, }: BlockHandleOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -9,4 +9,4 @@ export interface FloatingToolbarOptions {
|
|
|
9
9
|
readOnly?: Signal<boolean>;
|
|
10
10
|
size?: ControlSize;
|
|
11
11
|
}
|
|
12
|
-
export declare function FloatingToolbar({ editor, stateUpdate, groups, readOnly, size, }: FloatingToolbarOptions): import("@tempots/dom").
|
|
12
|
+
export declare function FloatingToolbar({ editor, stateUpdate, groups, readOnly, size, }: FloatingToolbarOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -17,4 +17,4 @@ export interface SlashCommandPaletteOptions {
|
|
|
17
17
|
* Default slash commands for the editor
|
|
18
18
|
*/
|
|
19
19
|
export declare const DEFAULT_SLASH_COMMANDS: SlashCommandDefinition[];
|
|
20
|
-
export declare function SlashCommandPalette({ commands, isVisible, filterText, position, onSelect, onDismiss, }: SlashCommandPaletteOptions): import("@tempots/dom").
|
|
20
|
+
export declare function SlashCommandPalette({ commands, isVisible, filterText, position, onSelect, onDismiss, }: SlashCommandPaletteOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -9,4 +9,4 @@ export interface TableControlsOptions {
|
|
|
9
9
|
* Table context menu that appears when a table cell is selected.
|
|
10
10
|
* Provides operations like insert/delete rows/columns.
|
|
11
11
|
*/
|
|
12
|
-
export declare function TableControls({ editor, stateUpdate, readOnly, }: TableControlsOptions): import("@tempots/dom").
|
|
12
|
+
export declare function TableControls({ editor, stateUpdate, readOnly, }: TableControlsOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -9,4 +9,4 @@ export interface LexicalToolbarOptions {
|
|
|
9
9
|
readOnly?: Signal<boolean>;
|
|
10
10
|
size?: Value<ControlSize>;
|
|
11
11
|
}
|
|
12
|
-
export declare function LexicalToolbar({ editor, stateUpdate, toolbar, readOnly, size, }: LexicalToolbarOptions): import("@tempots/dom").
|
|
12
|
+
export declare function LexicalToolbar({ editor, stateUpdate, toolbar, readOnly, size, }: LexicalToolbarOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -13,7 +13,7 @@ export declare function createToolbarHelpers(ed: Signal<LexicalEditor>, stateUpd
|
|
|
13
13
|
textFormatActive: (fmt: TextFormatType) => Signal<boolean>;
|
|
14
14
|
blockTypeActive: (type: string) => Signal<boolean>;
|
|
15
15
|
listTypeActive: (listType: string) => Signal<boolean>;
|
|
16
|
-
headingActive: (level: number) => import("@tempots/
|
|
16
|
+
headingActive: (level: number) => import("@tempots/core").Computed<boolean>;
|
|
17
17
|
linkActive: () => Signal<boolean>;
|
|
18
18
|
dispatch: <T>(command: LexicalCommand<T>, payload: T) => () => void;
|
|
19
19
|
toggleBlock: (type: string, create: () => ElementNode) => () => void;
|
|
@@ -29,4 +29,4 @@ export declare function createButtonFactory(readOnly: Signal<boolean>, size: Val
|
|
|
29
29
|
onClick: () => void;
|
|
30
30
|
label: Value<string>;
|
|
31
31
|
icon: string;
|
|
32
|
-
}) => import("@tempots/dom").
|
|
32
|
+
}) => import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -64,5 +64,5 @@ export interface PdfPageViewerOptions {
|
|
|
64
64
|
* @example
|
|
65
65
|
* PdfPageViewer({ source: pdfUrl, page: 1 }, attr.class('my-canvas'))
|
|
66
66
|
*/
|
|
67
|
-
export declare function PdfPageViewer({ source, page, fit, scale, rotation, quality, renderTextLayer, renderAnnotationLayer, onPageChange, onLoadComplete, }: PdfPageViewerOptions, ...children: TNode[]): import("@tempots/dom").
|
|
67
|
+
export declare function PdfPageViewer({ source, page, fit, scale, rotation, quality, renderTextLayer, renderAnnotationLayer, onPageChange, onLoadComplete, }: PdfPageViewerOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
68
68
|
export {};
|
|
@@ -159,7 +159,7 @@ export declare const NotificationService: NotificationServiceImpl;
|
|
|
159
159
|
* )
|
|
160
160
|
* ```
|
|
161
161
|
*/
|
|
162
|
-
export declare const NotificationProvider: Provider<NotificationProviderValue
|
|
162
|
+
export declare const NotificationProvider: Provider<NotificationProviderValue>;
|
|
163
163
|
/**
|
|
164
164
|
* Renders the notification viewport container that displays active notifications.
|
|
165
165
|
* Must be placed inside a tree that has a {@link NotificationProvider} ancestor.
|
|
@@ -184,5 +184,5 @@ export declare const NotificationProvider: Provider<NotificationProviderValue, N
|
|
|
184
184
|
* )
|
|
185
185
|
* ```
|
|
186
186
|
*/
|
|
187
|
-
export declare function NotificationViewport(): import("@tempots/dom").
|
|
187
|
+
export declare function NotificationViewport(): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
188
188
|
export {};
|
|
@@ -22,4 +22,4 @@ export interface ButtonLinkOptions {
|
|
|
22
22
|
fullWidth?: Value<boolean>;
|
|
23
23
|
loading?: Value<boolean>;
|
|
24
24
|
}
|
|
25
|
-
export declare function ButtonLink({ href, viewTransition, state, scroll, replace, target, rel, matchMode, disableWhenActive, variant, size, color, roundedness, disabled, }: ButtonLinkOptions, ...children: TNode[]): import("@tempots/dom").
|
|
25
|
+
export declare function ButtonLink({ href, viewTransition, state, scroll, replace, target, rel, matchMode, disableWhenActive, variant, size, color, roundedness, disabled, }: ButtonLinkOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -117,4 +117,4 @@ export declare function generateLinkStyles(color: ThemeColorName): string;
|
|
|
117
117
|
* )
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
|
-
export declare function Link({ href, variant, color, colorDisabled, disabled, viewTransition, state, scroll, replace, target, rel, }: LinkOptions, ...children: TNode[]): import("@tempots/dom").
|
|
120
|
+
export declare function Link({ href, variant, color, colorDisabled, disabled, viewTransition, state, scroll, replace, target, rel, }: LinkOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -19,5 +19,5 @@ export interface NavigationLinkOptions extends Omit<LinkOptions, 'disabled'> {
|
|
|
19
19
|
export declare function isUrlMatch(location: LocationData, targetHref: string, matchMode: UrlMatchMode): boolean;
|
|
20
20
|
type LocationMatcher = string | RegExp | ((location: LocationData) => boolean);
|
|
21
21
|
export declare function createLocationMatcher(href: Value<string>, matchMode: UrlMatchMode): Value<LocationMatcher>;
|
|
22
|
-
export declare function NavigationLink({ href, matchMode, disableWhenActive, ...linkOptions }: NavigationLinkOptions, ...children: TNode[]): import("@tempots/dom").
|
|
22
|
+
export declare function NavigationLink({ href, matchMode, disableWhenActive, ...linkOptions }: NavigationLinkOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
23
23
|
export {};
|
|
@@ -79,4 +79,4 @@ export declare function generatePaginationRange(current: number, total: number,
|
|
|
79
79
|
* })
|
|
80
80
|
* ```
|
|
81
81
|
*/
|
|
82
|
-
export declare function Pagination({ currentPage, totalPages, onPageChange, siblings, showPrevNext, showFirstLast, size, justify, responsive, }: PaginationOptions): import("@tempots/dom").
|
|
82
|
+
export declare function Pagination({ currentPage, totalPages, onPageChange, siblings, showPrevNext, showFirstLast, size, justify, responsive, }: PaginationOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -36,7 +36,7 @@ export type SidebarContextValue = {
|
|
|
36
36
|
* })
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
export declare const SidebarContext: Provider<SidebarContextValue
|
|
39
|
+
export declare const SidebarContext: Provider<SidebarContextValue>;
|
|
40
40
|
/**
|
|
41
41
|
* Sidebar navigation container that provides a vertical navigation panel with context
|
|
42
42
|
* for child components.
|
|
@@ -64,4 +64,4 @@ export declare const SidebarContext: Provider<SidebarContextValue, object>;
|
|
|
64
64
|
* )
|
|
65
65
|
* ```
|
|
66
66
|
*/
|
|
67
|
-
export declare function Sidebar({ backgroundMode }: SidebarOptions, ...children: TNode[]): import("@tempots/dom").
|
|
67
|
+
export declare function Sidebar({ backgroundMode }: SidebarOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -75,7 +75,7 @@ export interface ToolbarButtonOptions extends ButtonOptions {
|
|
|
75
75
|
* )
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
|
-
export declare function ToolbarButton(options: ButtonOptions, ...children: TNode[]): import("@tempots/dom").
|
|
78
|
+
export declare function ToolbarButton(options: ButtonOptions, ...children: TNode[]): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
79
79
|
/**
|
|
80
80
|
* Configuration options for the {@link ToolbarGroup} component.
|
|
81
81
|
*/
|
|
@@ -50,4 +50,4 @@ export interface LinkDialogButtonProps {
|
|
|
50
50
|
* })
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
export declare function LinkControl({ stateUpdate, view, isReadOnly, label, linkUrlPlaceholder, size, }: LinkDialogButtonProps): import("@tempots/
|
|
53
|
+
export declare function LinkControl({ stateUpdate, view, isReadOnly, label, linkUrlPlaceholder, size, }: LinkDialogButtonProps): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -55,4 +55,4 @@ export interface ProseMirrorToolbarOptions {
|
|
|
55
55
|
* })
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
export declare function ProseMirrorToolbar({ view, stateUpdate, features, readOnly, size, }: ProseMirrorToolbarOptions): import("@tempots/dom").
|
|
58
|
+
export declare function ProseMirrorToolbar({ view, stateUpdate, features, readOnly, size, }: ProseMirrorToolbarOptions): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -78,7 +78,7 @@ export declare function getMarkByType(state: EditorState, markType: MarkType): M
|
|
|
78
78
|
* })
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
|
-
export declare function makeActiveMarkSignal(state: Signal<number>, view: Signal<EditorView>, markType: string): import("@tempots/
|
|
81
|
+
export declare function makeActiveMarkSignal(state: Signal<number>, view: Signal<EditorView>, markType: string): import("@tempots/core").Computed<boolean>;
|
|
82
82
|
/**
|
|
83
83
|
* Checks whether a node of the given type is active at the current selection
|
|
84
84
|
* position.
|
|
@@ -121,4 +121,4 @@ export declare function isNodeActive(state: EditorState, nodeType: NodeType, att
|
|
|
121
121
|
* })
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
|
-
export declare function makeActiveNodeSignal(state: Signal<number>, view: Signal<EditorView>, nodeTypeName: string, attrs?: Record<string, unknown>): import("@tempots/
|
|
124
|
+
export declare function makeActiveNodeSignal(state: Signal<number>, view: Signal<EditorView>, nodeTypeName: string, attrs?: Record<string, unknown>): import("@tempots/core").Computed<boolean>;
|
|
@@ -27,7 +27,7 @@ export interface ThemeOptions {
|
|
|
27
27
|
* )
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
export declare const Theme: Provider<ThemeValue
|
|
30
|
+
export declare const Theme: Provider<ThemeValue>;
|
|
31
31
|
/**
|
|
32
32
|
* Reactive node that applies the current theme appearance as a CSS class
|
|
33
33
|
* (`'dark'` or `'light'`) on the `<html>` element via a Portal.
|
|
@@ -46,4 +46,4 @@ export declare const Theme: Provider<ThemeValue, ThemeOptions>;
|
|
|
46
46
|
* )
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
export declare const ThemeAppearance: () => import("@tempots/dom").
|
|
49
|
+
export declare const ThemeAppearance: () => import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
@@ -63,5 +63,5 @@ export declare function makeMessages<M extends object>({ locale, defaultLocale,
|
|
|
63
63
|
/** Clean up all resources and event listeners */
|
|
64
64
|
dispose: () => void;
|
|
65
65
|
/** Translation functions that return reactive signals */
|
|
66
|
-
t: import("@tempots/
|
|
66
|
+
t: import("@tempots/core").Prop<M>;
|
|
67
67
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Signal } from '@tempots/dom';
|
|
2
|
-
export declare function delaySignal<T>(signal: Signal<T>, delay?: number, predicate?: (v: T) => boolean): import("@tempots/
|
|
2
|
+
export declare function delaySignal<T>(signal: Signal<T>, delay?: number, predicate?: (v: T) => boolean): import("@tempots/core").Prop<T>;
|
|
@@ -11,13 +11,13 @@ export declare function useAnimatedToggle({ initialStatus, openedAfter, closedAf
|
|
|
11
11
|
close: () => void;
|
|
12
12
|
toggle: () => void;
|
|
13
13
|
setOpen: (v: boolean) => void;
|
|
14
|
-
display: import("@tempots/
|
|
15
|
-
isClosed: import("@tempots/
|
|
16
|
-
isStartOpening: import("@tempots/
|
|
17
|
-
isOpening: import("@tempots/
|
|
18
|
-
isOpened: import("@tempots/
|
|
19
|
-
isClosing: import("@tempots/
|
|
20
|
-
isStartClosing: import("@tempots/
|
|
14
|
+
display: import("@tempots/core").Computed<boolean>;
|
|
15
|
+
isClosed: import("@tempots/core").Computed<boolean>;
|
|
16
|
+
isStartOpening: import("@tempots/core").Computed<boolean>;
|
|
17
|
+
isOpening: import("@tempots/core").Computed<boolean>;
|
|
18
|
+
isOpened: import("@tempots/core").Computed<boolean>;
|
|
19
|
+
isClosing: import("@tempots/core").Computed<boolean>;
|
|
20
|
+
isStartClosing: import("@tempots/core").Computed<boolean>;
|
|
21
21
|
dispose: () => void;
|
|
22
22
|
listenOnClosed: (fn: () => void) => void;
|
|
23
23
|
};
|
|
@@ -33,13 +33,13 @@ export declare function useTimedToggle({ initialStatus, duration, openDuration,
|
|
|
33
33
|
close: () => void;
|
|
34
34
|
toggle: () => void;
|
|
35
35
|
setOpen: (v: boolean) => void;
|
|
36
|
-
display: import("@tempots/
|
|
37
|
-
isClosed: import("@tempots/
|
|
38
|
-
isStartOpening: import("@tempots/
|
|
39
|
-
isOpening: import("@tempots/
|
|
40
|
-
isOpened: import("@tempots/
|
|
41
|
-
isClosing: import("@tempots/
|
|
42
|
-
isStartClosing: import("@tempots/
|
|
36
|
+
display: import("@tempots/core").Computed<boolean>;
|
|
37
|
+
isClosed: import("@tempots/core").Computed<boolean>;
|
|
38
|
+
isStartOpening: import("@tempots/core").Computed<boolean>;
|
|
39
|
+
isOpening: import("@tempots/core").Computed<boolean>;
|
|
40
|
+
isOpened: import("@tempots/core").Computed<boolean>;
|
|
41
|
+
isClosing: import("@tempots/core").Computed<boolean>;
|
|
42
|
+
isStartClosing: import("@tempots/core").Computed<boolean>;
|
|
43
43
|
dispose: () => void;
|
|
44
44
|
listenOnClosed: (fn: () => void) => void;
|
|
45
45
|
};
|
|
@@ -53,13 +53,13 @@ export declare function useAnimatedElementToggle({ initialStatus, element, }?: A
|
|
|
53
53
|
close: () => void;
|
|
54
54
|
toggle: () => void;
|
|
55
55
|
setOpen: (v: boolean) => void;
|
|
56
|
-
display: import("@tempots/
|
|
57
|
-
isClosed: import("@tempots/
|
|
58
|
-
isStartOpening: import("@tempots/
|
|
59
|
-
isOpening: import("@tempots/
|
|
60
|
-
isOpened: import("@tempots/
|
|
61
|
-
isClosing: import("@tempots/
|
|
62
|
-
isStartClosing: import("@tempots/
|
|
56
|
+
display: import("@tempots/core").Computed<boolean>;
|
|
57
|
+
isClosed: import("@tempots/core").Computed<boolean>;
|
|
58
|
+
isStartOpening: import("@tempots/core").Computed<boolean>;
|
|
59
|
+
isOpening: import("@tempots/core").Computed<boolean>;
|
|
60
|
+
isOpened: import("@tempots/core").Computed<boolean>;
|
|
61
|
+
isClosing: import("@tempots/core").Computed<boolean>;
|
|
62
|
+
isStartClosing: import("@tempots/core").Computed<boolean>;
|
|
63
63
|
dispose: () => void;
|
|
64
64
|
listenOnClosed: (fn: () => void) => void;
|
|
65
65
|
setElement: (value: HTMLElement) => void;
|
|
@@ -81,7 +81,7 @@ export type AnimationConfig = {
|
|
|
81
81
|
export declare function AnimatedToggleClass({ animation, status, }: {
|
|
82
82
|
animation?: Value<AnimationConfig>;
|
|
83
83
|
status: Signal<ToggleStatus>;
|
|
84
|
-
}): import("@tempots/
|
|
84
|
+
}): import("@tempots/core").Renderable<import("@tempots/dom").DOMContext, typeof import("@tempots/dom").DOM_RENDERABLE_TYPE>;
|
|
85
85
|
export declare function AnimatedToggle({ initialStatus, animation, }: {
|
|
86
86
|
initialStatus?: ToggleStatus;
|
|
87
87
|
animation?: Value<AnimationConfig>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WithElement as v, Fragment as E, OnDispose as T, computedOf as g, attr as x, Value as m, prop as w } from "@tempots/dom";
|
|
2
2
|
import { g as f, I as A } from "./timer-Rd2sKnvH.js";
|
|
3
3
|
function b({
|
|
4
4
|
initialStatus: n = "closed",
|
|
5
5
|
openedAfter: t,
|
|
6
6
|
closedAfter: i
|
|
7
7
|
}) {
|
|
8
|
-
const e =
|
|
8
|
+
const e = w(n), o = () => {
|
|
9
9
|
e.set("start-opening");
|
|
10
10
|
}, l = () => {
|
|
11
11
|
e.set("start-closing");
|
|
@@ -142,9 +142,9 @@ function j({
|
|
|
142
142
|
const l = h(e, o), u = D(l).map((c) => `bc-animated-toggle--${c}`).join(" ");
|
|
143
143
|
return u ? `bc-animated-toggle ${u} bc-animated-toggle--${o}` : `bc-animated-toggle bc-animated-toggle--${o}`;
|
|
144
144
|
});
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
return E(
|
|
146
|
+
x.class(i),
|
|
147
|
+
v((e) => {
|
|
148
148
|
let o = [];
|
|
149
149
|
function l(c) {
|
|
150
150
|
for (const r of o)
|
|
@@ -174,12 +174,12 @@ function V({
|
|
|
174
174
|
initialStatus: n = "closed",
|
|
175
175
|
animation: t
|
|
176
176
|
}, i) {
|
|
177
|
-
return
|
|
177
|
+
return v((e) => {
|
|
178
178
|
const { setElement: o, dispose: l, ...a } = B({
|
|
179
179
|
initialStatus: n,
|
|
180
180
|
element: e
|
|
181
181
|
});
|
|
182
|
-
return o(e),
|
|
182
|
+
return o(e), E(
|
|
183
183
|
j({ status: a.status, animation: t }),
|
|
184
184
|
T(l),
|
|
185
185
|
i(a)
|