bonsaif-ui 0.1.147 → 0.1.149
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/CHANGELOG.md +5 -0
- package/dist/bonsaif-ui.js +3477 -3436
- package/dist/bonsaif-ui.umd.cjs +27 -21
- package/dist/components/ui/CalendarPicker.d.ts +3 -1
- package/dist/components/ui/CalendarPicker.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/rich-code-block-html.d.ts +6 -0
- package/dist/lib/rich-code-block-html.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,11 @@ interface CalendarPickerProps {
|
|
|
2
2
|
value: string;
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
minDate?: string;
|
|
5
|
+
/** When true, Saturday and Sunday cannot be selected. */
|
|
6
|
+
disableWeekends?: boolean;
|
|
5
7
|
displayMode?: "inline" | "popover";
|
|
6
8
|
className?: string;
|
|
7
9
|
}
|
|
8
|
-
export default function CalendarPicker({ value, onChange, minDate, displayMode, className, }: CalendarPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function CalendarPicker({ value, onChange, minDate, disableWeekends, displayMode, className, }: CalendarPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export {};
|
|
10
12
|
//# sourceMappingURL=CalendarPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/CalendarPicker.tsx"],"names":[],"mappings":"AAUA,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"CalendarPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ui/CalendarPicker.tsx"],"names":[],"mappings":"AAUA,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,eAAuB,EACvB,WAAsB,EACtB,SAAc,GACf,EAAE,mBAAmB,2CAkSrB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export * from './lib/phoneCountryCodes';
|
|
|
10
10
|
export * from './lib/validation';
|
|
11
11
|
export * from './lib/validationVisibility';
|
|
12
12
|
export { copyTextToClipboard } from './lib/copy-to-clipboard';
|
|
13
|
-
export { copyRichCodeBlockFromButton, makeRichCodeBlockHtml, markRichCodeCopyButtonCopied, richCodeCopyButtonHtml, } from './lib/rich-code-block-html';
|
|
13
|
+
export { copyRichCodeBlockFromButton, makeRichCodeBlockHtml, markRichCodeCopyButtonCopied, richCodeBlockPlainText, richCodeCopyButtonHtml, } from './lib/rich-code-block-html';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,E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AAM,4BAA4B,CAAC;AACpC,OAAO,cAAc,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare function richCodeCopyButtonHtml(): string;
|
|
2
|
+
/**
|
|
3
|
+
* Plain text from a code block DOM node.
|
|
4
|
+
* contentEditable often stores line breaks as `<br>` / block tags; `textContent`
|
|
5
|
+
* drops those, so paste loses newlines — convert them explicitly.
|
|
6
|
+
*/
|
|
7
|
+
export declare function richCodeBlockPlainText(root: Element): string;
|
|
2
8
|
export declare function copyRichCodeBlockFromButton(button: HTMLButtonElement): Promise<void>;
|
|
3
9
|
export declare function markRichCodeCopyButtonCopied(button: HTMLButtonElement, resetMs?: number): void;
|
|
4
10
|
export declare function makeRichCodeBlockHtml(codeText: string, escapeHtml: (value: string) => string, trailingParagraph?: boolean): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-code-block-html.d.ts","sourceRoot":"","sources":["../../src/lib/rich-code-block-html.ts"],"names":[],"mappings":"AASA,wBAAgB,sBAAsB,WAErC;AAED,wBAAsB,2BAA2B,CAAC,MAAM,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"rich-code-block-html.d.ts","sourceRoot":"","sources":["../../src/lib/rich-code-block-html.ts"],"names":[],"mappings":"AASA,wBAAgB,sBAAsB,WAErC;AAgBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CA0B5D;AAED,wBAAsB,2BAA2B,CAAC,MAAM,EAAE,iBAAiB,iBAU1E;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,iBAAiB,EACzB,OAAO,SAAO,QAUf;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACrC,iBAAiB,UAAO,UAOzB"}
|