@clepit/core 0.9.0-beta.771 → 0.9.0-beta.801
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/switch/index.d.ts +8 -15
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1032,7 +1032,7 @@ export type EditorConfig = {
|
|
|
1032
1032
|
};
|
|
1033
1033
|
export declare const BLOCK_TOOLBAR_OPERATIONS: readonly ["convert", "moveUp", "moveDown", "delete"];
|
|
1034
1034
|
export type BlockToolbarOperation = (typeof BLOCK_TOOLBAR_OPERATIONS)[number];
|
|
1035
|
-
export declare const BLOCK_MENU_LABELS: readonly ["addBlock", "blockActions", "searchBlocks", "searchOperations", "searchConvertOptions", "searchLanguages", "searchThemes", "sectionBasic", "sectionMedia", "noBlockTypesFound", "noOperationsFound", "noConvertOptionsFound", "deleteLastBlock", "alignLeft", "alignCenter", "alignRight", "codeLanguage", "codeTheme", "headingH1", "headingH2", "headingH3", "headingH4", "headingH5", "headingH6", "listUnordered", "listOrdered", "variantInfo", "variantWarning", "variantError", "variantSuccess", "variantPlain", "delimiterLine", "delimiterStars", "embedShowLive", "embedShowCard", "embedShowLink", "embedCopyLink", "embedShowChip", "alertTextHint", "checklistItemHint", "codeHint", "collapsibleTitleHint", "glanceLabelHint", "glanceValueHint", "headerHint", "listItemHint", "mediaCaptionHint", "openApiSourceHint", "quoteAuthorHint", "quoteBodyHint", "tableCaptionHint", "tableCellHint", "tableHeaderHint", "tableInsertAbove", "tableInsertBelow", "tableInsertLeft", "tableInsertRight", "tableMoveLeft", "tableMoveRight", "tableRowActions", "tableColumnActions", "diagramTitleHint", "formulaTitleHint", "imageDropTitle", "imageDropAction", "imageDropFormats", "imageUploading", "imageUploadFailed", "imageInvalidType"];
|
|
1035
|
+
export declare const BLOCK_MENU_LABELS: readonly ["addBlock", "blockActions", "searchBlocks", "searchOperations", "searchConvertOptions", "searchLanguages", "searchThemes", "sectionBasic", "sectionMedia", "noBlockTypesFound", "noOperationsFound", "noConvertOptionsFound", "deleteLastBlock", "alignLeft", "alignCenter", "alignRight", "codeLanguage", "codeTheme", "headingH1", "headingH2", "headingH3", "headingH4", "headingH5", "headingH6", "listUnordered", "listOrdered", "variantInfo", "variantWarning", "variantError", "variantSuccess", "variantPlain", "delimiterLine", "delimiterStars", "embedShowLive", "embedShowCard", "embedShowLink", "embedCopyLink", "embedShowChip", "alertTextHint", "checklistItemHint", "codeHint", "collapsibleTitleHint", "glanceLabelHint", "glanceValueHint", "headerHint", "listItemHint", "mediaCaptionHint", "openApiSourceHint", "quoteAuthorHint", "quoteBodyHint", "tableCaptionHint", "tableCellHint", "tableHeaderHint", "tableInsertAbove", "tableInsertBelow", "tableInsertLeft", "tableInsertRight", "tableMoveLeft", "tableMoveRight", "tableRowActions", "tableColumnActions", "tableAllowDownload", "codeAllowCopy", "switchOn", "switchOff", "diagramTitleHint", "formulaTitleHint", "imageDropTitle", "imageDropAction", "imageDropFormats", "imageUploading", "imageUploadFailed", "imageInvalidType"];
|
|
1036
1036
|
export type BlockMenuLabel = (typeof BLOCK_MENU_LABELS)[number];
|
|
1037
1037
|
export declare const CONTROL_LABELS: readonly ["editView", "previewView", "jsonView", "copyJson", "downloadJson", "clearEditor", "viewSwitcher"];
|
|
1038
1038
|
export type ControlLabel = (typeof CONTROL_LABELS)[number];
|
|
@@ -5,26 +5,19 @@ export interface SwitchConfig {
|
|
|
5
5
|
classNames?: EditorClassNames['switch'];
|
|
6
6
|
styles?: EditorStyles['switch'];
|
|
7
7
|
label?: string;
|
|
8
|
+
onLabel?: string;
|
|
9
|
+
offLabel?: string;
|
|
8
10
|
id?: string;
|
|
9
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* The platform's two-state control: a segmented pair that names both states
|
|
14
|
+
* (On and Off), never a track and knob. The native checkbox stays the control
|
|
15
|
+
* with `role='switch'`, laid transparently over both faces; the faces are
|
|
16
|
+
* `aria-hidden` because the input already announces its state.
|
|
17
|
+
*/
|
|
10
18
|
export declare class Switch {
|
|
11
|
-
/**
|
|
12
|
-
* Create a switch component
|
|
13
|
-
* @param config - Switch configuration
|
|
14
|
-
* @returns HTMLDivElement containing the switch
|
|
15
|
-
*/
|
|
16
19
|
static create(config?: SwitchConfig): HTMLElement;
|
|
17
|
-
/**
|
|
18
|
-
* Get the current state of the switch
|
|
19
|
-
* @param element - The switch element
|
|
20
|
-
* @returns boolean indicating if the switch is checked
|
|
21
|
-
*/
|
|
22
20
|
static getState(element: HTMLElement): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Set the state of a switch
|
|
25
|
-
* @param element - The switch element
|
|
26
|
-
* @param checked - Whether the switch should be checked
|
|
27
|
-
*/
|
|
28
21
|
static setState(element: HTMLElement, checked: boolean): void;
|
|
29
22
|
}
|
|
30
23
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED