@powerhousedao/design-system 6.0.2-staging.8 → 6.1.0-dev.0
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/{button-DIE3LLBZ.d.ts → button-49Walvwn.d.ts} +1 -1
- package/dist/{button-DIE3LLBZ.d.ts.map → button-49Walvwn.d.ts.map} +1 -1
- package/dist/{character-counter-BZ-4xC7Q.d.ts → character-counter-BcuG4STA.d.ts} +1 -1
- package/dist/{character-counter-BZ-4xC7Q.d.ts.map → character-counter-BcuG4STA.d.ts.map} +1 -1
- package/dist/{checkbox-base-Bh08IVG2.d.ts → checkbox-base-8xXJvAbj.d.ts} +1 -1
- package/dist/{checkbox-base-Bh08IVG2.d.ts.map → checkbox-base-8xXJvAbj.d.ts.map} +1 -1
- package/dist/{checkbox-BgS8z46p.d.ts → checkbox-dqrYEK5V.d.ts} +3 -3
- package/dist/{checkbox-BgS8z46p.d.ts.map → checkbox-dqrYEK5V.d.ts.map} +1 -1
- package/dist/{command-COqe4AfR.d.ts → command-BtOLY735.d.ts} +14 -14
- package/dist/{command-COqe4AfR.d.ts.map → command-BtOLY735.d.ts.map} +1 -1
- package/dist/connect/components/toast/toast.js +1 -1
- package/dist/connect/index.d.ts +345 -41
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +884 -345
- package/dist/connect/index.js.map +1 -1
- package/dist/{content-ZWaCzypo.d.ts → content-OpXUtrTe.d.ts} +2 -2
- package/dist/{content-ZWaCzypo.d.ts.map → content-OpXUtrTe.d.ts.map} +1 -1
- package/dist/{enum-field-7NPFL29j.d.ts → enum-field-BEyFQh8A.d.ts} +4 -4
- package/dist/{enum-field-7NPFL29j.d.ts.map → enum-field-BEyFQh8A.d.ts.map} +1 -1
- package/dist/{form-6Lmx7pU_.d.ts → form-B9JNvrH6.d.ts} +1 -1
- package/dist/{form-6Lmx7pU_.d.ts.map → form-B9JNvrH6.d.ts.map} +1 -1
- package/dist/{form-description-Bsurk7mm.d.ts → form-description-BpST5Ww-.d.ts} +1 -1
- package/dist/{form-description-Bsurk7mm.d.ts.map → form-description-BpST5Ww-.d.ts.map} +1 -1
- package/dist/{form-group-B092xF-f.d.ts → form-group-BauWlFkQ.d.ts} +1 -1
- package/dist/form-group-BauWlFkQ.d.ts.map +1 -0
- package/dist/{form-label-CURXUfpb.d.ts → form-label-Cz_gcj-B.d.ts} +1 -1
- package/dist/{form-label-CURXUfpb.d.ts.map → form-label-Cz_gcj-B.d.ts.map} +1 -1
- package/dist/{form-message-BeAVBzjc.d.ts → form-message-BPqNM4gG.d.ts} +1 -1
- package/dist/{form-message-BeAVBzjc.d.ts.map → form-message-BPqNM4gG.d.ts.map} +1 -1
- package/dist/{form-server-error-message-CbKMtocn.d.ts → form-server-error-message-CzMQQ8ru.d.ts} +1 -1
- package/dist/{form-server-error-message-CbKMtocn.d.ts.map → form-server-error-message-CzMQQ8ru.d.ts.map} +1 -1
- package/dist/{id-autocomplete-input-container-DefHskQg.d.ts → id-autocomplete-input-container-NIuWfCB_.d.ts} +2 -2
- package/dist/{id-autocomplete-input-container-DefHskQg.d.ts.map → id-autocomplete-input-container-NIuWfCB_.d.ts.map} +1 -1
- package/dist/{id-autocomplete-DGTfhFRw.d.ts → id-autocomplete-jkaREmPP.d.ts} +2 -2
- package/dist/{id-autocomplete-DGTfhFRw.d.ts.map → id-autocomplete-jkaREmPP.d.ts.map} +1 -1
- package/dist/{id-autocomplete-list-C5uiH5nJ.d.ts → id-autocomplete-list-Bi2IXdXg.d.ts} +2 -2
- package/dist/{id-autocomplete-list-C5uiH5nJ.d.ts.map → id-autocomplete-list-Bi2IXdXg.d.ts.map} +1 -1
- package/dist/{id-autocomplete-list-option-CyF3v8IB.d.ts → id-autocomplete-list-option-CA9HIqEh.d.ts} +2 -2
- package/dist/{id-autocomplete-list-option-CyF3v8IB.d.ts.map → id-autocomplete-list-option-CA9HIqEh.d.ts.map} +1 -1
- package/dist/{index-DoFR9kRM.d.ts → index-DtPJq-vz.d.ts} +1 -1
- package/dist/{index-DoFR9kRM.d.ts.map → index-DtPJq-vz.d.ts.map} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{input-BMf1G8BP.d.ts → input-D11GgWGm.d.ts} +1 -1
- package/dist/{input-BMf1G8BP.d.ts.map → input-D11GgWGm.d.ts.map} +1 -1
- package/dist/{json-viewer-DD7b-PP2.d.ts → json-viewer-vWp8vOvz.d.ts} +1 -1
- package/dist/{json-viewer-DD7b-PP2.d.ts.map → json-viewer-vWp8vOvz.d.ts.map} +1 -1
- package/dist/{message-list-DDi6OrSM.d.ts → message-list-aysvo-xf.d.ts} +2 -2
- package/dist/{message-list-DDi6OrSM.d.ts.map → message-list-aysvo-xf.d.ts.map} +1 -1
- package/dist/{popover-BXlVJZZW.d.ts → popover-glLRVxPS.d.ts} +1 -1
- package/dist/{popover-BXlVJZZW.d.ts.map → popover-glLRVxPS.d.ts.map} +1 -1
- package/dist/{radio-YzIhzpRk.d.ts → radio-DZ4xl9oz.d.ts} +1 -1
- package/dist/{radio-YzIhzpRk.d.ts.map → radio-DZ4xl9oz.d.ts.map} +1 -1
- package/dist/{radio-group-D2NSfihe.d.ts → radio-group-DjJbcDzB.d.ts} +1 -1
- package/dist/{radio-group-D2NSfihe.d.ts.map → radio-group-DjJbcDzB.d.ts.map} +1 -1
- package/dist/{radio-group-field-xAiLWNsq.d.ts → radio-group-field-C8MQjHb7.d.ts} +3 -3
- package/dist/{radio-group-field-xAiLWNsq.d.ts.map → radio-group-field-C8MQjHb7.d.ts.map} +1 -1
- package/dist/{search-autocomplete-CfSjqceY.d.ts → search-autocomplete-OeZbE-VN.d.ts} +2 -2
- package/dist/{search-autocomplete-CfSjqceY.d.ts.map → search-autocomplete-OeZbE-VN.d.ts.map} +1 -1
- package/dist/{select-field-U8KSDxbg.d.ts → select-field-BClhLm83.d.ts} +2 -2
- package/dist/{select-field-U8KSDxbg.d.ts.map → select-field-BClhLm83.d.ts.map} +1 -1
- package/dist/{selected-content-iwV6vmSI.d.ts → selected-content-q33DjCYy.d.ts} +2 -2
- package/dist/{selected-content-iwV6vmSI.d.ts.map → selected-content-q33DjCYy.d.ts.map} +1 -1
- package/dist/{splitted-input-diff-DSME-KaQ.d.ts → splitted-input-diff-Ch6IKdEa.d.ts} +2 -2
- package/dist/{splitted-input-diff-DSME-KaQ.d.ts.map → splitted-input-diff-Ch6IKdEa.d.ts.map} +1 -1
- package/dist/{src-DTHkTkyy.js → src-BgCjYazJ.js} +6 -6
- package/dist/{src-DTHkTkyy.js.map → src-BgCjYazJ.js.map} +1 -1
- package/dist/style.css +309 -200
- package/dist/{text-field-Cxpz1D2u.d.ts → text-field-Cx-EfZP6.d.ts} +3 -3
- package/dist/{text-field-Cxpz1D2u.d.ts.map → text-field-Cx-EfZP6.d.ts.map} +1 -1
- package/dist/{text-input-t0uGOMAO.d.ts → text-input-DUddj4-C.d.ts} +3 -3
- package/dist/{text-input-t0uGOMAO.d.ts.map → text-input-DUddj4-C.d.ts.map} +1 -1
- package/dist/{text-input-diff-bO84di00.d.ts → text-input-diff-4i2zuulO.d.ts} +2 -2
- package/dist/{text-input-diff-bO84di00.d.ts.map → text-input-diff-4i2zuulO.d.ts.map} +1 -1
- package/dist/{tooltip-Db1dLIxg.d.ts → tooltip-Cf5jSzdt.d.ts} +1 -1
- package/dist/{tooltip-Db1dLIxg.d.ts.map → tooltip-Cf5jSzdt.d.ts.map} +1 -1
- package/dist/{types-BDeBOEOj.d.ts → types-9JRQnd7a.d.ts} +1 -1
- package/dist/{types-BDeBOEOj.d.ts.map → types-9JRQnd7a.d.ts.map} +1 -1
- package/dist/{types-BzoMu6VB.d.ts → types-BfmDXMrz.d.ts} +1 -1
- package/dist/{types-BzoMu6VB.d.ts.map → types-BfmDXMrz.d.ts.map} +1 -1
- package/dist/{types-BLss8ZBX.d.ts → types-tThrTH_c.d.ts} +1 -1
- package/dist/{types-BLss8ZBX.d.ts.map → types-tThrTH_c.d.ts.map} +1 -1
- package/dist/ui/components/button/button.d.ts +1 -1
- package/dist/ui/components/button/button.js +4 -4
- package/dist/ui/components/button/button.js.map +1 -1
- package/dist/ui/components/character-counter/character-counter.d.ts +1 -1
- package/dist/ui/components/character-counter/character-counter.js +3 -3
- package/dist/ui/components/character-counter/character-counter.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox-base.d.ts +1 -1
- package/dist/ui/components/checkbox/checkbox-base.js +2 -2
- package/dist/ui/components/checkbox/checkbox-base.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox.d.ts +1 -1
- package/dist/ui/components/checkbox/checkbox.js +1 -1
- package/dist/ui/components/command/command.d.ts +1 -1
- package/dist/ui/components/command/command.js +7 -7
- package/dist/ui/components/command/command.js.map +1 -1
- package/dist/ui/components/enum-field/enum-field.d.ts +1 -1
- package/dist/ui/components/enum-field/types.d.ts +1 -1
- package/dist/ui/components/form/form.d.ts +1 -1
- package/dist/ui/components/form-description/form-description.d.ts +1 -1
- package/dist/ui/components/form-description/form-description.js +2 -2
- package/dist/ui/components/form-description/form-description.js.map +1 -1
- package/dist/ui/components/form-group/form-group.d.ts +1 -1
- package/dist/ui/components/form-label/form-label.d.ts +1 -1
- package/dist/ui/components/form-label/form-label.js +3 -3
- package/dist/ui/components/form-label/form-label.js.map +1 -1
- package/dist/ui/components/form-message/form-message.d.ts +1 -1
- package/dist/ui/components/form-message/form-message.js +1 -1
- package/dist/ui/components/form-message/form-server-error-message.d.ts +1 -1
- package/dist/ui/components/form-message/message-list.d.ts +1 -1
- package/dist/ui/components/form-message/message-list.js +2 -2
- package/dist/ui/components/form-message/message-list.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js +9 -9
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.d.ts +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.js +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.d.ts +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete.js.map +1 -1
- package/dist/ui/components/id-autocomplete/types.d.ts +1 -1
- package/dist/ui/components/id-autocomplete/use-id-autocomplete.d.ts +1 -1
- package/dist/ui/components/index.d.ts +36 -36
- package/dist/ui/components/input/input.d.ts +1 -1
- package/dist/ui/components/input/input.js +1 -1
- package/dist/ui/components/input/input.js.map +1 -1
- package/dist/ui/components/input/splitted-input-diff.d.ts +1 -1
- package/dist/ui/components/input/splitted-input-diff.js +2 -2
- package/dist/ui/components/input/splitted-input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/input-diff.js +2 -2
- package/dist/ui/components/input/subcomponent/input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.d.ts +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.js +1 -1
- package/dist/ui/components/json-viewer/json-viewer.d.ts +1 -1
- package/dist/ui/components/popover/popover.d.ts +1 -1
- package/dist/ui/components/popover/popover.js +3 -3
- package/dist/ui/components/popover/popover.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio-group-field.d.ts +1 -1
- package/dist/ui/components/radio-group-field/radio-group-field.js +1 -1
- package/dist/ui/components/radio-group-field/radio-group.d.ts +1 -1
- package/dist/ui/components/radio-group-field/radio.d.ts +1 -1
- package/dist/ui/components/radio-group-field/radio.js +2 -2
- package/dist/ui/components/radio-group-field/radio.js.map +1 -1
- package/dist/ui/components/search-autocomplete/index.d.ts +3 -3
- package/dist/ui/components/search-autocomplete/search-autocomplete.d.ts +1 -1
- package/dist/ui/components/search-autocomplete/search-autocomplete.js +1 -1
- package/dist/ui/components/search-autocomplete/types.d.ts +1 -1
- package/dist/ui/components/search-autocomplete/use-search-autocomplete.d.ts +1 -1
- package/dist/ui/components/select-field/content.d.ts +1 -1
- package/dist/ui/components/select-field/content.js +3 -3
- package/dist/ui/components/select-field/content.js.map +1 -1
- package/dist/ui/components/select-field/select-field.d.ts +1 -1
- package/dist/ui/components/select-field/select-field.js +2 -2
- package/dist/ui/components/select-field/select-field.js.map +1 -1
- package/dist/ui/components/select-field/selected-content.d.ts +1 -1
- package/dist/ui/components/select-field/selected-content.js +4 -4
- package/dist/ui/components/select-field/selected-content.js.map +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.d.ts +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.js +4 -4
- package/dist/ui/components/select-field/subcomponents/CommandItemList.js.map +1 -1
- package/dist/ui/components/select-field/use-select-field.d.ts +1 -1
- package/dist/ui/components/text-field/text-field.d.ts +1 -1
- package/dist/ui/components/text-input/text-input-diff.d.ts +1 -1
- package/dist/ui/components/text-input/text-input.d.ts +1 -1
- package/dist/ui/components/text-input/text-input.js +1 -1
- package/dist/ui/components/text-input/types.d.ts +1 -1
- package/dist/ui/components/tooltip/tooltip.d.ts +1 -1
- package/dist/ui/components/tooltip/tooltip.js +2 -2
- package/dist/ui/components/tooltip/tooltip.js.map +1 -1
- package/dist/ui/components/types.d.ts +1 -1
- package/dist/ui/components/value-transformer/value-transformer.d.ts +1 -1
- package/dist/ui/components/with-field-validation/with-field-validation.d.ts +1 -1
- package/dist/ui/components/with-field-validation/with-field-validation.js +5 -10
- package/dist/ui/components/with-field-validation/with-field-validation.js.map +1 -1
- package/dist/ui/index.d.ts +38 -38
- package/dist/ui/lib/date-picker.d.ts +1 -1
- package/dist/ui/lib/shared-value-transformers.d.ts +1 -1
- package/dist/ui/lib/types.d.ts +1 -1
- package/dist/ui/types.d.ts +2 -2
- package/dist/{use-id-autocomplete-BRzpIF4U.d.ts → use-id-autocomplete-BPHVmVE8.d.ts} +2 -2
- package/dist/{use-id-autocomplete-BRzpIF4U.d.ts.map → use-id-autocomplete-BPHVmVE8.d.ts.map} +1 -1
- package/dist/{use-search-autocomplete-ZLxfAC6X.d.ts → use-search-autocomplete-Xf7shCtk.d.ts} +2 -2
- package/dist/{use-search-autocomplete-ZLxfAC6X.d.ts.map → use-search-autocomplete-Xf7shCtk.d.ts.map} +1 -1
- package/dist/{value-transformer-MGhQTCdM.d.ts → value-transformer-DCiU65Qa.d.ts} +2 -2
- package/dist/{value-transformer-MGhQTCdM.d.ts.map → value-transformer-DCiU65Qa.d.ts.map} +1 -1
- package/dist/{with-field-validation-DWMigXJz.d.ts → with-field-validation-vt0l1Sp7.d.ts} +2 -2
- package/dist/{with-field-validation-DWMigXJz.d.ts.map → with-field-validation-vt0l1Sp7.d.ts.map} +1 -1
- package/package.json +11 -5
- package/theme.css +2 -2
- package/dist/document-timeline-BTTeXWMa.js +0 -288
- package/dist/document-timeline-BTTeXWMa.js.map +0 -1
- package/dist/form-group-B092xF-f.d.ts.map +0 -1
- /package/dist/{index-BN8Gwmlj.d.ts → index-CWsYGvaO.d.ts} +0 -0
- /package/dist/{index-Dw5cCt-A.d.ts → index-uQcTfU6c.d.ts} +0 -0
|
@@ -12,4 +12,4 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
12
12
|
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ButtonProps as n, buttonVariants as r, Button as t };
|
|
15
|
-
//# sourceMappingURL=button-
|
|
15
|
+
//# sourceMappingURL=button-49Walvwn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-
|
|
1
|
+
{"version":3,"file":"button-49Walvwn.d.ts","names":[],"sources":["../src/ui/components/button/button.tsx"],"mappings":";;;;;cAMM,cAAA,GAAc,KAAA;;IAqBnB,+BAAA,CAAA,SAAA;AAAA,UAEgB,WAAA,SAEb,KAAA,CAAM,oBAAA,CAAqB,iBAAA,GAC3B,YAAA,QAAoB,cAAA;EACtB,OAAA;AAAA;AAAA,cAGI,MAAA,EAAM,KAAA,CAAA,yBAAA,CAAA,WAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA"}
|
|
@@ -6,4 +6,4 @@ interface CharacterCounterProps {
|
|
|
6
6
|
declare const CharacterCounter: React.FC<CharacterCounterProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CharacterCounterProps as n, CharacterCounter as t };
|
|
9
|
-
//# sourceMappingURL=character-counter-
|
|
9
|
+
//# sourceMappingURL=character-counter-BcuG4STA.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"character-counter-
|
|
1
|
+
{"version":3,"file":"character-counter-BcuG4STA.d.ts","names":[],"sources":["../src/ui/components/character-counter/character-counter.tsx"],"mappings":";UAAiB,qBAAA;EACf,SAAA;EACA,KAAA;AAAA;AAAA,cAeW,gBAAA,EAAkB,KAAA,CAAM,EAAA,CAAG,qBAAA"}
|
|
@@ -8,4 +8,4 @@ declare const CheckboxBase: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimi
|
|
|
8
8
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CheckboxValue as n, CheckboxBase as t };
|
|
11
|
-
//# sourceMappingURL=checkbox-base-
|
|
11
|
+
//# sourceMappingURL=checkbox-base-8xXJvAbj.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-base-
|
|
1
|
+
{"version":3,"file":"checkbox-base-8xXJvAbj.d.ts","names":[],"sources":["../src/ui/components/checkbox/checkbox-base.tsx"],"mappings":";;;;KAIK,aAAA;AAAA,cAQC,YAAA,EAAY,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,aAAA,GAAA,OAAA,CAAA,aAAA,CAAA,iBAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as InputBaseProps } from "./index-
|
|
2
|
-
import { n as CheckboxValue } from "./checkbox-base-
|
|
1
|
+
import { p as InputBaseProps } from "./index-DtPJq-vz.js";
|
|
2
|
+
import { n as CheckboxValue } from "./checkbox-base-8xXJvAbj.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/components/checkbox/checkbox.d.ts
|
|
@@ -10,4 +10,4 @@ interface CheckboxProps extends CheckboxBaseProps, InputBaseProps<CheckboxValue>
|
|
|
10
10
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { CheckboxProps as n, Checkbox as t };
|
|
13
|
-
//# sourceMappingURL=checkbox-
|
|
13
|
+
//# sourceMappingURL=checkbox-dqrYEK5V.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-
|
|
1
|
+
{"version":3,"file":"checkbox-dqrYEK5V.d.ts","names":[],"sources":["../src/ui/components/checkbox/checkbox.tsx"],"mappings":";;;;;KAQK,iBAAA,GAAoB,IAAA,CACvB,KAAA,CAAM,oBAAA,CAAqB,iBAAA,SACrB,cAAA,CAAe,aAAA;AAAA,UAGN,aAAA,SACP,iBAAA,EAAmB,cAAA,CAAe,aAAA;EAC1C,QAAA,KAAa,OAAA,EAAS,aAAA,eAA4B,OAAA;AAAA;AAAA,cAG9C,QAAA,EAAQ,KAAA,CAAA,yBAAA,CAAA,aAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA"}
|
|
@@ -3,11 +3,11 @@ import React from "react";
|
|
|
3
3
|
//#region src/ui/components/command/command.d.ts
|
|
4
4
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
6
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
7
7
|
ref?: React.Ref<HTMLDivElement>;
|
|
8
8
|
} & {
|
|
9
9
|
asChild?: boolean;
|
|
10
|
-
},
|
|
10
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & {
|
|
11
11
|
label?: string;
|
|
12
12
|
shouldFilter?: boolean;
|
|
13
13
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -22,7 +22,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
22
22
|
ref?: React.Ref<HTMLInputElement>;
|
|
23
23
|
} & {
|
|
24
24
|
asChild?: boolean;
|
|
25
|
-
}, "
|
|
25
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "onChange" | "type"> & {
|
|
26
26
|
value?: string;
|
|
27
27
|
onValueChange?: (search: string) => void;
|
|
28
28
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
@@ -30,48 +30,48 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
30
30
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
31
31
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
32
32
|
children?: React.ReactNode;
|
|
33
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
33
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
34
34
|
ref?: React.Ref<HTMLDivElement>;
|
|
35
35
|
} & {
|
|
36
36
|
asChild?: boolean;
|
|
37
|
-
},
|
|
37
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & {
|
|
38
38
|
label?: string;
|
|
39
39
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
40
|
declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
|
|
41
41
|
children?: React.ReactNode;
|
|
42
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
42
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
43
43
|
ref?: React.Ref<HTMLDivElement>;
|
|
44
44
|
} & {
|
|
45
45
|
asChild?: boolean;
|
|
46
|
-
},
|
|
46
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & {
|
|
47
47
|
progress?: number;
|
|
48
48
|
label?: string;
|
|
49
49
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
50
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
51
51
|
children?: React.ReactNode;
|
|
52
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
52
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
53
53
|
ref?: React.Ref<HTMLDivElement>;
|
|
54
54
|
} & {
|
|
55
55
|
asChild?: boolean;
|
|
56
|
-
},
|
|
56
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
57
57
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
58
58
|
children?: React.ReactNode;
|
|
59
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
59
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
60
60
|
ref?: React.Ref<HTMLDivElement>;
|
|
61
61
|
} & {
|
|
62
62
|
asChild?: boolean;
|
|
63
|
-
},
|
|
63
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild">, "value" | "heading"> & {
|
|
64
64
|
heading?: React.ReactNode;
|
|
65
65
|
value?: string;
|
|
66
66
|
forceMount?: boolean;
|
|
67
67
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
68
68
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
69
69
|
children?: React.ReactNode;
|
|
70
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
70
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
71
71
|
ref?: React.Ref<HTMLDivElement>;
|
|
72
72
|
} & {
|
|
73
73
|
asChild?: boolean;
|
|
74
|
-
},
|
|
74
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild">, "value" | "disabled" | "onSelect"> & {
|
|
75
75
|
disabled?: boolean;
|
|
76
76
|
onSelect?: (value: string) => void;
|
|
77
77
|
value?: string;
|
|
@@ -80,4 +80,4 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
80
80
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
81
81
|
//#endregion
|
|
82
82
|
export { CommandItem as a, CommandInput as i, CommandEmpty as n, CommandList as o, CommandGroup as r, CommandLoading as s, Command as t };
|
|
83
|
-
//# sourceMappingURL=command-
|
|
83
|
+
//# sourceMappingURL=command-BtOLY735.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-
|
|
1
|
+
{"version":3,"file":"command-BtOLY735.d.ts","names":[],"sources":["../src/ui/components/command/command.tsx"],"mappings":";;;cAIM,OAAA,EAAO,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;cAeP,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,KAAA,CAAA,iBAAA,CAAA,KAAA,CAAA,mBAAA,CAAA,gBAAA,GAAA,gBAAA,iBAAA,KAAA,CAAA,mBAAA,CAAA,gBAAA;;;;;;;;;;cA2CZ,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;cAqBX,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;cAMd,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;cAMZ,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;;cAgBZ,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as Icon } from "../../../src-
|
|
1
|
+
import { h as Icon } from "../../../src-BgCjYazJ.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ToastContainer as ToastContainer$1, toast as toast$1 } from "react-toastify";
|
|
4
4
|
//#region src/connect/components/toast/toast.tsx
|
package/dist/connect/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Size, I as SidebarFooter, L as SidebarHeader, Q as Icon, S as SelectOption, T as DivProps, Z as Modal, _t as INITIAL_SYNC, bt as SYNCING, ft as SyncStatus$1, gt as ERROR, ht as CONFLICT, mt as AppOptions, nt as IconName, vt as MISSING, xt as syncStatuses, yt as SUCCESS } from "../index-
|
|
1
|
+
import { D as Size, I as SidebarFooter, L as SidebarHeader, Q as Icon, S as SelectOption, T as DivProps, Z as Modal, _t as INITIAL_SYNC, bt as SYNCING, ft as SyncStatus$1, gt as ERROR, ht as CONFLICT, mt as AppOptions, nt as IconName, vt as MISSING, xt as syncStatuses, yt as SUCCESS } from "../index-DtPJq-vz.js";
|
|
2
2
|
import * as react from "react";
|
|
3
3
|
import React$1, { CSSProperties, ComponentProps, ComponentPropsWithRef, ComponentPropsWithoutRef, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -10,6 +10,7 @@ import Select from "react-select";
|
|
|
10
10
|
import { Operation, PHDocument } from "@powerhousedao/shared/document-model";
|
|
11
11
|
import { JsonViewProps } from "@uiw/react-json-view";
|
|
12
12
|
import { DocumentDriveDocument, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
|
|
13
|
+
import { ArrayElement, Simplify } from "type-fest";
|
|
13
14
|
import { RegistryPackage, RegistryPackageList } from "@powerhousedao/shared/registry";
|
|
14
15
|
|
|
15
16
|
//#region src/connect/components/account-popover/account-popover.d.ts
|
|
@@ -215,69 +216,372 @@ interface DocumentTimelineProps {
|
|
|
215
216
|
}
|
|
216
217
|
declare const DocumentTimeline: (props: DocumentTimelineProps) => react_jsx_runtime0.JSX.Element;
|
|
217
218
|
//#endregion
|
|
218
|
-
//#region src/connect/components/document-toolbar/
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
//#region src/connect/components/document-toolbar/containers.d.ts
|
|
220
|
+
/**
|
|
221
|
+
* Default outer container for `DocumentToolbar`.
|
|
222
|
+
*
|
|
223
|
+
* This component provides the toolbar's base layout and visual styling while
|
|
224
|
+
* still accepting standard `div` props. Pass a custom container to
|
|
225
|
+
* `DocumentToolbar` when you need to replace this wrapper.
|
|
226
|
+
*/
|
|
227
|
+
declare function ToolbarContainer(props: ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
228
|
+
/**
|
|
229
|
+
* Default container for a group of toolbar controls.
|
|
230
|
+
*
|
|
231
|
+
* `DocumentToolbar` renders one controls container per toolbar slot. This
|
|
232
|
+
* component provides the default horizontal layout for the controls in that
|
|
233
|
+
* slot while still accepting standard `div` props.
|
|
234
|
+
*/
|
|
235
|
+
declare function ToolbarControlsContainer(props: ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/connect/components/document-toolbar/constants.d.ts
|
|
238
|
+
/**
|
|
239
|
+
* Ordered list of all built-in document toolbar control names.
|
|
240
|
+
*
|
|
241
|
+
* The order is derived from `defaultControlSlots`.
|
|
242
|
+
*/
|
|
243
|
+
declare const documentToolbarControls: readonly ["undo", "redo", "download", "name", "history", "switchboard", "close"];
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/connect/components/document-toolbar/types.d.ts
|
|
246
|
+
/**
|
|
247
|
+
* Names of the built-in toolbar controls supported by `DocumentToolbar`.
|
|
248
|
+
*
|
|
249
|
+
* These controls are included in the toolbar by default, and can be selectively
|
|
250
|
+
* enabled, disabled, or replaced with custom implementations.
|
|
251
|
+
*
|
|
252
|
+
* Each built-in control component is also exported from this package, so it can
|
|
253
|
+
* be reused as the basis for a custom control.
|
|
254
|
+
*/
|
|
255
|
+
type DocumentToolbarControlName = ArrayElement<typeof documentToolbarControls>;
|
|
256
|
+
/**
|
|
257
|
+
* Click handler used by toolbar button components.
|
|
258
|
+
*
|
|
259
|
+
* The toolbar passes the document it is operating on when one is available.
|
|
260
|
+
*/
|
|
261
|
+
type ToolbarButtonClickHandler = (document?: PHDocument) => void;
|
|
262
|
+
/**
|
|
263
|
+
* Props shared by toolbar button components.
|
|
264
|
+
*
|
|
265
|
+
* These are useful when building custom controls that should behave like the built-in toolbar buttons.
|
|
266
|
+
*/
|
|
267
|
+
type ToolbarButtonProps = {
|
|
268
|
+
/**
|
|
269
|
+
* The document the toolbar is operating on, when available.
|
|
270
|
+
*/
|
|
271
|
+
document?: PHDocument | undefined;
|
|
272
|
+
/**
|
|
273
|
+
* Button contents.
|
|
274
|
+
*/
|
|
275
|
+
children?: ReactNode;
|
|
221
276
|
/**
|
|
222
|
-
* Additional CSS class names to apply to the
|
|
277
|
+
* Additional CSS class names to apply to the button.
|
|
223
278
|
*/
|
|
224
279
|
className?: string;
|
|
225
280
|
/**
|
|
226
|
-
*
|
|
227
|
-
*
|
|
281
|
+
* Called when the button is clicked.
|
|
282
|
+
*
|
|
283
|
+
* The current document is passed to the handler when available.
|
|
284
|
+
*/
|
|
285
|
+
onClick?: ToolbarButtonClickHandler;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
|
|
289
|
+
* A map of built-in toolbar control names to replacement control components.
|
|
290
|
+
* Provide this when you want to override one or more built-in
|
|
291
|
+
* controls while keeping the rest of the default toolbar layout.
|
|
292
|
+
*/
|
|
293
|
+
type ToolbarControlComponents = Partial<Record<DocumentToolbarControlName, ToolbarControlComponent>>;
|
|
294
|
+
/**
|
|
295
|
+
* Component signature for toolbar controls.
|
|
296
|
+
*
|
|
297
|
+
* Control components receive the document that the toolbar is
|
|
298
|
+
* currently operating on, when available.
|
|
299
|
+
*/
|
|
300
|
+
type ToolbarControlComponent = (props: {
|
|
301
|
+
document?: PHDocument;
|
|
302
|
+
}) => React.JSX.Element | null;
|
|
303
|
+
/**
|
|
304
|
+
* Component signature for toolbar container elements.
|
|
305
|
+
*
|
|
306
|
+
* Custom containers receive the children for the container and any props that
|
|
307
|
+
* `DocumentToolbar` passes to that container, such as `className`.
|
|
308
|
+
*/
|
|
309
|
+
type ContainerComponent = (props: ComponentProps<"div">) => React.JSX.Element;
|
|
310
|
+
/**
|
|
311
|
+
* Position for custom controls within a toolbar slot.
|
|
312
|
+
*
|
|
313
|
+
* - `"start"` renders before the built-in controls in the slot.
|
|
314
|
+
* - `"end"` renders after the built-in controls in the slot.
|
|
315
|
+
*/
|
|
316
|
+
type ControlPosition = "start" | "end";
|
|
317
|
+
/**
|
|
318
|
+
* Toolbar layout slot.
|
|
319
|
+
*
|
|
320
|
+
* The toolbar separates controls into up to three control groups.
|
|
321
|
+
*/
|
|
322
|
+
type ControlSlot = "first" | "second" | "third";
|
|
323
|
+
/**
|
|
324
|
+
* Custom controls to render in the toolbar.
|
|
325
|
+
*
|
|
326
|
+
* Controls are assigned to one of the toolbar slots. Each slot can receive a
|
|
327
|
+
* single custom control or a list of custom controls.
|
|
328
|
+
*/
|
|
329
|
+
type CustomToolbarControls = Partial<Record<ControlSlot, CustomToolbarControl | CustomToolbarControlList>>;
|
|
330
|
+
/**
|
|
331
|
+
* A custom toolbar control.
|
|
332
|
+
*/
|
|
333
|
+
type CustomToolbarControl = {
|
|
334
|
+
/**
|
|
335
|
+
* Component to render as the custom control.
|
|
228
336
|
*/
|
|
229
|
-
|
|
337
|
+
component: ToolbarControlComponent;
|
|
230
338
|
/**
|
|
231
|
-
*
|
|
232
|
-
*
|
|
339
|
+
* Where to render the control relative to the built-in controls in the same slot.
|
|
340
|
+
*
|
|
341
|
+
* Defaults to `"start"`.
|
|
233
342
|
*/
|
|
234
|
-
|
|
343
|
+
position?: ControlPosition;
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* A custom toolbar control rendered as part of a list.
|
|
347
|
+
*
|
|
348
|
+
* The `key` is passed to React when rendering multiple custom controls.
|
|
349
|
+
*/
|
|
350
|
+
type CustomToolbarComponentListItem = Simplify<CustomToolbarControl & {
|
|
351
|
+
key: React.Key;
|
|
352
|
+
}>;
|
|
353
|
+
/**
|
|
354
|
+
* A list of custom toolbar controls for a single toolbar slot.
|
|
355
|
+
*/
|
|
356
|
+
type CustomToolbarControlList = CustomToolbarComponentListItem[];
|
|
357
|
+
type ToolbarClassNameProp = {
|
|
358
|
+
/**
|
|
359
|
+
* Additional CSS class names to apply to the outer toolbar container.
|
|
360
|
+
*/
|
|
361
|
+
toolbarClassName?: string;
|
|
362
|
+
};
|
|
363
|
+
type ControlsContainerClassNameProp = {
|
|
235
364
|
/**
|
|
236
|
-
*
|
|
237
|
-
* If not provided, will use the default behavior of opening the document in switchboard.
|
|
238
|
-
* The button will only be shown for documents in remote drives.
|
|
365
|
+
* Additional CSS class names to each controls container.
|
|
239
366
|
*/
|
|
240
|
-
|
|
367
|
+
controlsContainerClassName?: string;
|
|
368
|
+
};
|
|
369
|
+
type EnableControlsProp = {
|
|
241
370
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
371
|
+
* Built-in controls to enable.
|
|
372
|
+
*
|
|
373
|
+
* When omitted, all built-in controls are enabled unless listed in
|
|
374
|
+
* `disabledControls`.
|
|
244
375
|
*/
|
|
245
|
-
|
|
376
|
+
enabledControls?: DocumentToolbarControlName[];
|
|
377
|
+
};
|
|
378
|
+
type DisableControlsProp = {
|
|
246
379
|
/**
|
|
247
|
-
*
|
|
248
|
-
*
|
|
380
|
+
* Built-in controls to disable.
|
|
381
|
+
*
|
|
382
|
+
* When omitted, no built-in controls are disabled.
|
|
249
383
|
*/
|
|
250
|
-
|
|
384
|
+
disabledControls?: DocumentToolbarControlName[];
|
|
385
|
+
};
|
|
386
|
+
type DocumentProp = {
|
|
251
387
|
/**
|
|
252
|
-
*
|
|
253
|
-
*
|
|
388
|
+
* Document for the toolbar to operate on.
|
|
389
|
+
*
|
|
390
|
+
* When omitted, the toolbar uses the currently selected document when one is
|
|
391
|
+
* available.
|
|
254
392
|
*/
|
|
255
|
-
|
|
393
|
+
document?: PHDocument;
|
|
256
394
|
};
|
|
257
|
-
type
|
|
395
|
+
type ToolbarContainerProp = {
|
|
258
396
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
397
|
+
* Custom component to use for the outer toolbar container.
|
|
398
|
+
*
|
|
399
|
+
* The component should accept normal `div` props.
|
|
261
400
|
*/
|
|
262
|
-
|
|
401
|
+
toolbarContainer?: ContainerComponent;
|
|
402
|
+
};
|
|
403
|
+
type ControlsContainerProp = {
|
|
263
404
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
405
|
+
* Custom component to use for each controls container.
|
|
406
|
+
*
|
|
407
|
+
* The component should accept normal `div` props.
|
|
266
408
|
*/
|
|
267
|
-
|
|
268
|
-
}
|
|
409
|
+
controlsContainer?: ContainerComponent;
|
|
410
|
+
};
|
|
411
|
+
type CustomControlsProp = {
|
|
269
412
|
/**
|
|
270
|
-
*
|
|
271
|
-
*
|
|
413
|
+
* Custom controls to add to the toolbar.
|
|
414
|
+
*
|
|
415
|
+
* Use this when you want to add controls before or after the built-in controls
|
|
416
|
+
* within a specific toolbar slot.
|
|
272
417
|
*/
|
|
273
|
-
|
|
418
|
+
customControls?: CustomToolbarControls;
|
|
419
|
+
};
|
|
420
|
+
type ChildrenProp = {
|
|
274
421
|
/**
|
|
275
|
-
*
|
|
276
|
-
*
|
|
422
|
+
* Custom toolbar contents.
|
|
423
|
+
*
|
|
424
|
+
* When provided, these children replace the entire default set of controls.
|
|
425
|
+
* Use this for complete control over the toolbar contents and layout.
|
|
277
426
|
*/
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
|
|
427
|
+
children: ReactNode;
|
|
428
|
+
};
|
|
429
|
+
type ComponentOverridesProp = {
|
|
430
|
+
/**
|
|
431
|
+
* Replacement components for individual built-in controls.
|
|
432
|
+
*
|
|
433
|
+
* Use this when you want to keep the default toolbar structure but change how
|
|
434
|
+
* one or more built-in controls render.
|
|
435
|
+
*/
|
|
436
|
+
componentOverrides?: ToolbarControlComponents;
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* Props shared by all `DocumentToolbar` rendering modes.
|
|
440
|
+
*
|
|
441
|
+
* These props apply whether the toolbar renders its built-in controls or uses
|
|
442
|
+
* `children` to replace the toolbar contents completely.
|
|
443
|
+
*/
|
|
444
|
+
type DocumentToolbarSharedProps = DocumentProp & ToolbarContainerProp & ToolbarClassNameProp;
|
|
445
|
+
/**
|
|
446
|
+
* Props for rendering a toolbar with fully custom contents.
|
|
447
|
+
*
|
|
448
|
+
* When `children` is provided, the toolbar renders only those children inside
|
|
449
|
+
* the toolbar container. Built-in controls, custom controls, enabled controls,
|
|
450
|
+
* disabled controls, and component overrides are not used.
|
|
451
|
+
*/
|
|
452
|
+
type DocumentToolbarWithChildrenProps = Simplify<DocumentToolbarSharedProps & ChildrenProp>;
|
|
453
|
+
/**
|
|
454
|
+
* Props for rendering the default toolbar with optional customization.
|
|
455
|
+
*
|
|
456
|
+
* Use these props to enable or disable built-in controls, override individual
|
|
457
|
+
* built-in control components, add custom controls to toolbar slots, or replace
|
|
458
|
+
* the toolbar/container components.
|
|
459
|
+
*/
|
|
460
|
+
type DocumentToolbarWithCustomControlsProps = Simplify<DocumentToolbarSharedProps & EnableControlsProp & DisableControlsProp & ControlsContainerClassNameProp & ControlsContainerProp & ComponentOverridesProp & CustomControlsProp>;
|
|
461
|
+
/**
|
|
462
|
+
* Props for `DocumentToolbar`.
|
|
463
|
+
*
|
|
464
|
+
* There are two modes:
|
|
465
|
+
*
|
|
466
|
+
* 1. Provide `children` to replace the toolbar contents completely.
|
|
467
|
+
* 2. Omit `children` to use the built-in toolbar with optional customization.
|
|
468
|
+
*/
|
|
469
|
+
type DocumentToolbarProps = DocumentToolbarWithChildrenProps | DocumentToolbarWithCustomControlsProps;
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region src/connect/components/document-toolbar/document-toolbar.d.ts
|
|
472
|
+
/**
|
|
473
|
+
* Renders a document toolbar.
|
|
474
|
+
*
|
|
475
|
+
* By default, the toolbar renders the built-in document controls grouped into
|
|
476
|
+
* toolbar slots. The controls operate on the provided `document`, or on the
|
|
477
|
+
* currently selected document when no document is provided.
|
|
478
|
+
*
|
|
479
|
+
* Use `enabledControls` and `disabledControls` to control which built-in
|
|
480
|
+
* controls are shown. Use `componentOverrides` to replace individual built-in
|
|
481
|
+
* controls while keeping the default toolbar layout. Use `customControls` to
|
|
482
|
+
* insert additional controls before or after the built-in controls in a slot.
|
|
483
|
+
*
|
|
484
|
+
* To take over the toolbar contents completely, pass `children`.
|
|
485
|
+
*/
|
|
486
|
+
declare function DocumentToolbar(props: DocumentToolbarProps): react_jsx_runtime0.JSX.Element;
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region src/connect/components/document-toolbar/toolbar-button.d.ts
|
|
489
|
+
/**
|
|
490
|
+
* Base button component used by the built-in toolbar controls.
|
|
491
|
+
*
|
|
492
|
+
* This component provides the default toolbar button styling and disabled-state
|
|
493
|
+
* behavior while accepting standard `button` props.
|
|
494
|
+
*/
|
|
495
|
+
declare function ToolbarButton(props: ComponentProps<"button">): react_jsx_runtime0.JSX.Element;
|
|
496
|
+
/**
|
|
497
|
+
* Toolbar control for undoing the latest document revision.
|
|
498
|
+
*
|
|
499
|
+
* The button is disabled when there are no revisions available to undo.
|
|
500
|
+
* Provide `children` to replace the default icon, or `onClick` to override the
|
|
501
|
+
* default undo behavior.
|
|
502
|
+
*/
|
|
503
|
+
declare function ToolbarUndoButton(props: ToolbarButtonProps): react_jsx_runtime0.JSX.Element;
|
|
504
|
+
/**
|
|
505
|
+
* Toolbar control for redoing the latest undone document revision.
|
|
506
|
+
*
|
|
507
|
+
* The button is disabled when there are no revisions available to redo.
|
|
508
|
+
* Provide `children` to replace the default icon, or `onClick` to override the
|
|
509
|
+
* default redo behavior.
|
|
510
|
+
*/
|
|
511
|
+
declare function ToolbarRedoButton(props: ToolbarButtonProps): react_jsx_runtime0.JSX.Element;
|
|
512
|
+
/**
|
|
513
|
+
* Toolbar control for downloading the current document.
|
|
514
|
+
*
|
|
515
|
+
* Provide `children` to replace the default label, or `onClick` to override the
|
|
516
|
+
* default download behavior.
|
|
517
|
+
*/
|
|
518
|
+
declare function ToolbarDownloadButton(props: ToolbarButtonProps): react_jsx_runtime0.JSX.Element;
|
|
519
|
+
/**
|
|
520
|
+
* Toolbar control for opening the current document in Switchboard.
|
|
521
|
+
*
|
|
522
|
+
* Provide `children` to replace the default icon, or `onClick` to override the
|
|
523
|
+
* default behavior.
|
|
524
|
+
*/
|
|
525
|
+
declare function ToolbarSwitchboardButton(props: ToolbarButtonProps): react_jsx_runtime0.JSX.Element;
|
|
526
|
+
/**
|
|
527
|
+
* Toolbar control for showing the current document's revision history.
|
|
528
|
+
*
|
|
529
|
+
* Provide `children` to replace the default icon, or `onClick` to override the
|
|
530
|
+
* default revision-history behavior.
|
|
531
|
+
*/
|
|
532
|
+
declare function ToolbarHistoryButton(props: ToolbarButtonProps): react_jsx_runtime0.JSX.Element;
|
|
533
|
+
/**
|
|
534
|
+
* Toolbar control for closing the current document view.
|
|
535
|
+
*
|
|
536
|
+
* By default, this selects the current document's parent folder. Provide
|
|
537
|
+
* `children` to replace the default icon, or `onClick` to override the default
|
|
538
|
+
* close behavior.
|
|
539
|
+
*/
|
|
540
|
+
declare function ToolbarCloseButton(props: ToolbarButtonProps): react_jsx_runtime0.JSX.Element;
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region src/connect/components/document-toolbar/toolbar-input.d.ts
|
|
543
|
+
/**
|
|
544
|
+
* Text input styled for use inside a toolbar.
|
|
545
|
+
*
|
|
546
|
+
* This wraps `NodeInput` with toolbar-specific text styling. Use it for inline
|
|
547
|
+
* toolbar editing flows where the user can submit a value or cancel editing.
|
|
548
|
+
*/
|
|
549
|
+
declare function ToolbarInput(props: {
|
|
550
|
+
/**
|
|
551
|
+
* Initial value to show in the input.
|
|
552
|
+
*/
|
|
553
|
+
defaultValue?: string;
|
|
554
|
+
/**
|
|
555
|
+
* Additional CSS class names to apply to the input.
|
|
556
|
+
*/
|
|
557
|
+
className?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Accessible label for the input.
|
|
560
|
+
*/
|
|
561
|
+
"aria-label"?: string;
|
|
562
|
+
/**
|
|
563
|
+
* Called when the user submits the input value.
|
|
564
|
+
*/
|
|
565
|
+
onSubmit: (value: string) => void;
|
|
566
|
+
/**
|
|
567
|
+
* Called when the user cancels editing.
|
|
568
|
+
*/
|
|
569
|
+
onCancel: () => void;
|
|
570
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
571
|
+
//#endregion
|
|
572
|
+
//#region src/connect/components/document-toolbar/toolbar-name.d.ts
|
|
573
|
+
/**
|
|
574
|
+
* Toolbar control for displaying and renaming the current document.
|
|
575
|
+
*
|
|
576
|
+
* By default, the component renders the document name as a clickable heading.
|
|
577
|
+
* When clicked, it switches to an inline input. Submitting the input renames
|
|
578
|
+
* both the node and the corresponding drive node entry.
|
|
579
|
+
*/
|
|
580
|
+
declare function ToolbarName(props: {
|
|
581
|
+
document?: PHDocument | undefined;
|
|
582
|
+
inputClassName?: string;
|
|
583
|
+
titleClassName?: string;
|
|
584
|
+
}): react_jsx_runtime0.JSX.Element | null;
|
|
281
585
|
//#endregion
|
|
282
586
|
//#region src/connect/components/drop-zone/drop-zone-wrapper.d.ts
|
|
283
587
|
declare function DropZoneWrapper({
|
|
@@ -1262,5 +1566,5 @@ declare const sortFilesByStatus: (files: FileStatus[]) => FileStatus[];
|
|
|
1262
1566
|
*/
|
|
1263
1567
|
declare const removeSuccessFiles: (files: FileStatus[]) => FileStatus[];
|
|
1264
1568
|
//#endregion
|
|
1265
|
-
export { About, AccountPopover, AccountPopoverProps, AddDriveModal, AddDriveModalProps, AddLocalDriveForm, AddLocalDriveModal, AddPublicDriveFormProps, AddRemoteDriveForm, AddRemoteDriveInput, AddRemoteDriveModal, AnimatedLoader, AppOptions, Breadcrumb, BreadcrumbProps, Breadcrumbs, CONFLICT, ChannelInspector, ChannelInspectorProps, ClearStorageSettingsRow, ClearStorageSettingsRowProps, type ColumnInfo, Combobox, ConfirmationModalProps, ConnectConfirmationModal, ConnectDeleteDriveModal, ConnectDeleteDriveModalProps, ConnectDeleteItemModal, ConnectDeleteItemModalProps, ConnectDropdownMenu, ConnectDropdownMenuItem, ConnectDropdownMenuProps, ConnectReplaceDuplicateModal, ConnectReplaceDuplicateModalProps, ConnectSearchBar, ConnectSearchBarProps, ConnectSelect, ConnectSelectItem, ConnectSelectProps, ConnectSidebar, ConnectSidebarFooter, ConnectSidebarFooterProps, ConnectSidebarHeader, ConnectSidebarHeaderProps, ConnectSidebarProps, ConnectTooltip, ConnectTooltipProvider, ConnectUpgradeDriveModal, ConnectUpgradeDriveModalProps, ConnectionStateBadge, ConnectionStateBadgeProps, ConnectionStateSummary, CookieBanner, CookieBannerProps, CookieInput, CreateDocumentModal, CreateDocumentModalProps, DBExplorer, DBExplorerProps, DangerZone, DbClient, DebugInspector, DebugInspectorProps, DefaultEditor, DefaultEditorLoader, DefaultEditorSelect, DependencyVersions, Disclosure, Divider, DocumentStateViewer, DocumentTimeline, DocumentTimelineProps, DocumentToolbar,
|
|
1569
|
+
export { About, AccountPopover, AccountPopoverProps, AddDriveModal, AddDriveModalProps, AddLocalDriveForm, AddLocalDriveModal, AddPublicDriveFormProps, AddRemoteDriveForm, AddRemoteDriveInput, AddRemoteDriveModal, AnimatedLoader, AppOptions, Breadcrumb, BreadcrumbProps, Breadcrumbs, CONFLICT, ChannelInspector, ChannelInspectorProps, ClearStorageSettingsRow, ClearStorageSettingsRowProps, type ColumnInfo, Combobox, ConfirmationModalProps, ConnectConfirmationModal, ConnectDeleteDriveModal, ConnectDeleteDriveModalProps, ConnectDeleteItemModal, ConnectDeleteItemModalProps, ConnectDropdownMenu, ConnectDropdownMenuItem, ConnectDropdownMenuProps, ConnectReplaceDuplicateModal, ConnectReplaceDuplicateModalProps, ConnectSearchBar, ConnectSearchBarProps, ConnectSelect, ConnectSelectItem, ConnectSelectProps, ConnectSidebar, ConnectSidebarFooter, ConnectSidebarFooterProps, ConnectSidebarHeader, ConnectSidebarHeaderProps, ConnectSidebarProps, ConnectTooltip, ConnectTooltipProvider, ConnectUpgradeDriveModal, ConnectUpgradeDriveModalProps, ConnectionStateBadge, ConnectionStateBadgeProps, ConnectionStateSummary, type ContainerComponent, type ControlPosition, type ControlSlot, CookieBanner, CookieBannerProps, CookieInput, CreateDocumentModal, CreateDocumentModalProps, type CustomToolbarControl, type CustomToolbarControlList, type CustomToolbarControls, DBExplorer, DBExplorerProps, DangerZone, DbClient, DebugInspector, DebugInspectorProps, DefaultEditor, DefaultEditorLoader, DefaultEditorSelect, DependencyVersions, Disclosure, Divider, DocumentStateViewer, DocumentTimeline, DocumentTimelineProps, DocumentToolbar, type DocumentToolbarControlName, type DocumentToolbarProps, type DocumentToolbarWithChildrenProps, type DocumentToolbarWithCustomControlsProps, DriveSettingsModal, DriveSettingsModalProps, DropZone, DropZoneProps, DropZoneWrapper, ENSAvatar, ERROR, EditorActionButtons, EditorActionButtonsProps, EditorUndoRedoButtons, EditorUndoRedoButtonsProps, FileItem, FileStatus, type FilterClause, type FilterGroup, type FilterOperator, FolderItem, Footer, FooterLink, FormInput, FormattedJsonViewer, GetTableRowsOptions, HomeBackgroundImage, HomeScreen, HomeScreenAddDriveItem, HomeScreenItem, INITIAL_SYNC, InspectorModal, InspectorModalProps, IntegrityInspector, IntegrityInspectorProps, LoadingScreen, LoadingScreenProps, MISSING, NodeInput, ObjectInspectorModal, ObjectInspectorModalProps, PackageInstallModal, PackageInstallModalProps, PackageManager, PackageManagerInput, PackageManagerInputProps, PackageManagerList, PackageManagerListItem, PendingPackageInstallation, PgVersionControl, ProcessorInfo, ProcessorsInspector, ProcessorsInspectorProps, QueueInspector, QueueInspectorProps, QueueState, ReadRequiredModal, ReadRequiredModalProps, RegistryOption, RegistryStatus, RemotesInspector, RemotesInspectorProps, RevisionHistory, SUCCESS, SYNCING, SettingsModal, SettingsModalOld, SettingsModalOldProps, SettingsRow, SettingsRowProps, SettingsTab, SidebarAddDriveItem, SidebarItem, SidebarLogin, SidebarLoginProps, SidebarUser, SidebarUserProps, type SortOptions, SyncStatusIcon, SyncStatusIconProps, TabContent, TabContentProps, type TableInfo, TablePage, Tabs, TimelineBarItem, TimelineDividerItem, TimelineItem, Toggle, ToolbarButton, type ToolbarButtonClickHandler, type ToolbarButtonProps, ToolbarCloseButton, ToolbarContainer, type ToolbarControlComponent, type ToolbarControlComponents, ToolbarControlsContainer, ToolbarDownloadButton, ToolbarHistoryButton, ToolbarInput, ToolbarName, ToolbarRedoButton, ToolbarSwitchboardButton, ToolbarUndoButton, UploadFileItem, UploadFileItemProps, UploadFileItemStatus, UploadFileList, UploadFileListContainer, UploadFileListContainerProps, UploadFileListProps, debugNodeOptions, debugNodeOptionsMap, defaultDriveOptions, defaultNodeOptions, fileNodeDropdownOptions, folderNodeDropdownOptions, formatEthAddress, getFolderStatus, locationInfoByLocation, nodeOptions, normalNodeOptions, removeSuccessFiles, sharingTypeOptions, sortFilesByStatus, syncStatuses, useEns, verifyPackageJsonFields };
|
|
1266
1570
|
//# sourceMappingURL=index.d.ts.map
|