kritzel-react 0.1.6 → 0.1.8

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.
@@ -1,10 +1,36 @@
1
1
  'use client';
2
2
  import { createComponent } from '@stencil/react-output-target/runtime';
3
3
  import React from 'react';
4
+ import { KritzelBackToContent as KritzelBackToContentElement, defineCustomElement as defineKritzelBackToContent } from "../../../../kritzel-stencil/dist/components/kritzel-back-to-content.js";
5
+ import { KritzelDialog as KritzelDialogElement, defineCustomElement as defineKritzelDialog } from "../../../../kritzel-stencil/dist/components/kritzel-dialog.js";
4
6
  import { KritzelEditor as KritzelEditorElement, defineCustomElement as defineKritzelEditor } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
5
7
  import { KritzelLineEndings as KritzelLineEndingsElement, defineCustomElement as defineKritzelLineEndings } from "../../../../kritzel-stencil/dist/components/kritzel-line-endings.js";
8
+ import { KritzelMasterDetail as KritzelMasterDetailElement, defineCustomElement as defineKritzelMasterDetail } from "../../../../kritzel-stencil/dist/components/kritzel-master-detail.js";
9
+ import { KritzelMoreMenu as KritzelMoreMenuElement, defineCustomElement as defineKritzelMoreMenu } from "../../../../kritzel-stencil/dist/components/kritzel-more-menu.js";
10
+ import { KritzelNumericInput as KritzelNumericInputElement, defineCustomElement as defineKritzelNumericInput } from "../../../../kritzel-stencil/dist/components/kritzel-numeric-input.js";
6
11
  import { KritzelOpacitySlider as KritzelOpacitySliderElement, defineCustomElement as defineKritzelOpacitySlider } from "../../../../kritzel-stencil/dist/components/kritzel-opacity-slider.js";
12
+ import { KritzelSettings as KritzelSettingsElement, defineCustomElement as defineKritzelSettings } from "../../../../kritzel-stencil/dist/components/kritzel-settings.js";
7
13
  import { KritzelShapeFill as KritzelShapeFillElement, defineCustomElement as defineKritzelShapeFill } from "../../../../kritzel-stencil/dist/components/kritzel-shape-fill.js";
14
+ import { KritzelSlideToggle as KritzelSlideToggleElement, defineCustomElement as defineKritzelSlideToggle } from "../../../../kritzel-stencil/dist/components/kritzel-slide-toggle.js";
15
+ export const KritzelBackToContent = /*@__PURE__*/ createComponent({
16
+ tagName: 'kritzel-back-to-content',
17
+ elementClass: KritzelBackToContentElement,
18
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
19
+ react: React,
20
+ events: { onBackToContent: 'backToContent' },
21
+ defineCustomElement: defineKritzelBackToContent
22
+ });
23
+ export const KritzelDialog = /*@__PURE__*/ createComponent({
24
+ tagName: 'kritzel-dialog',
25
+ elementClass: KritzelDialogElement,
26
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
27
+ react: React,
28
+ events: {
29
+ onDialogOpen: 'dialogOpen',
30
+ onDialogClose: 'dialogClose'
31
+ },
32
+ defineCustomElement: defineKritzelDialog
33
+ });
8
34
  export const KritzelEditor = /*@__PURE__*/ createComponent({
9
35
  tagName: 'kritzel-editor',
10
36
  elementClass: KritzelEditorElement,
@@ -25,6 +51,30 @@ export const KritzelLineEndings = /*@__PURE__*/ createComponent({
25
51
  events: { onValueChange: 'valueChange' },
26
52
  defineCustomElement: defineKritzelLineEndings
27
53
  });
54
+ export const KritzelMasterDetail = /*@__PURE__*/ createComponent({
55
+ tagName: 'kritzel-master-detail',
56
+ elementClass: KritzelMasterDetailElement,
57
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
58
+ react: React,
59
+ events: { onItemSelect: 'itemSelect' },
60
+ defineCustomElement: defineKritzelMasterDetail
61
+ });
62
+ export const KritzelMoreMenu = /*@__PURE__*/ createComponent({
63
+ tagName: 'kritzel-more-menu',
64
+ elementClass: KritzelMoreMenuElement,
65
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
66
+ react: React,
67
+ events: { onItemSelect: 'itemSelect' },
68
+ defineCustomElement: defineKritzelMoreMenu
69
+ });
70
+ export const KritzelNumericInput = /*@__PURE__*/ createComponent({
71
+ tagName: 'kritzel-numeric-input',
72
+ elementClass: KritzelNumericInputElement,
73
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
74
+ react: React,
75
+ events: { onValueChange: 'valueChange' },
76
+ defineCustomElement: defineKritzelNumericInput
77
+ });
28
78
  export const KritzelOpacitySlider = /*@__PURE__*/ createComponent({
29
79
  tagName: 'kritzel-opacity-slider',
30
80
  elementClass: KritzelOpacitySliderElement,
@@ -33,6 +83,14 @@ export const KritzelOpacitySlider = /*@__PURE__*/ createComponent({
33
83
  events: { onValueChange: 'valueChange' },
34
84
  defineCustomElement: defineKritzelOpacitySlider
35
85
  });
86
+ export const KritzelSettings = /*@__PURE__*/ createComponent({
87
+ tagName: 'kritzel-settings',
88
+ elementClass: KritzelSettingsElement,
89
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
90
+ react: React,
91
+ events: { onSettingsChange: 'settingsChange' },
92
+ defineCustomElement: defineKritzelSettings
93
+ });
36
94
  export const KritzelShapeFill = /*@__PURE__*/ createComponent({
37
95
  tagName: 'kritzel-shape-fill',
38
96
  elementClass: KritzelShapeFillElement,
@@ -41,3 +99,11 @@ export const KritzelShapeFill = /*@__PURE__*/ createComponent({
41
99
  events: { onValueChange: 'valueChange' },
42
100
  defineCustomElement: defineKritzelShapeFill
43
101
  });
102
+ export const KritzelSlideToggle = /*@__PURE__*/ createComponent({
103
+ tagName: 'kritzel-slide-toggle',
104
+ elementClass: KritzelSlideToggleElement,
105
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
106
+ react: React,
107
+ events: { onCheckedChange: 'checkedChange' },
108
+ defineCustomElement: defineKritzelSlideToggle
109
+ });
@@ -3,11 +3,27 @@
3
3
  * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
4
  */
5
5
  import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
6
- import { type KritzelBaseObject, type KritzelEditorCustomEvent, type KritzelLineEndingsCustomEvent, type KritzelShapeFillCustomEvent, type KritzelUndoState, type LineArrowConfig, type ShapeFillType } from "../../../../kritzel-stencil";
6
+ import { type IKritzelDialogCloseEvent, type IKritzelMasterDetailSelectEvent, type IKritzelMenuItem, type KritzelBackToContentCustomEvent, type KritzelBaseObject, type KritzelDialogCustomEvent, type KritzelEditorCustomEvent, type KritzelLineEndingsCustomEvent, type KritzelMasterDetailCustomEvent, type KritzelMoreMenuCustomEvent, type KritzelNumericInputCustomEvent, type KritzelOpacitySliderCustomEvent, type KritzelSettingsConfig, type KritzelSettingsCustomEvent, type KritzelShapeFillCustomEvent, type KritzelSlideToggleCustomEvent, type KritzelUndoState, type LineArrowConfig, type ShapeFillType } from "../../../../kritzel-stencil";
7
+ import { KritzelBackToContent as KritzelBackToContentElement } from "../../../../kritzel-stencil/dist/components/kritzel-back-to-content.js";
8
+ import { KritzelDialog as KritzelDialogElement } from "../../../../kritzel-stencil/dist/components/kritzel-dialog.js";
7
9
  import { KritzelEditor as KritzelEditorElement } from "../../../../kritzel-stencil/dist/components/kritzel-editor.js";
8
10
  import { KritzelLineEndings as KritzelLineEndingsElement } from "../../../../kritzel-stencil/dist/components/kritzel-line-endings.js";
11
+ import { KritzelMasterDetail as KritzelMasterDetailElement } from "../../../../kritzel-stencil/dist/components/kritzel-master-detail.js";
12
+ import { KritzelMoreMenu as KritzelMoreMenuElement } from "../../../../kritzel-stencil/dist/components/kritzel-more-menu.js";
13
+ import { KritzelNumericInput as KritzelNumericInputElement } from "../../../../kritzel-stencil/dist/components/kritzel-numeric-input.js";
9
14
  import { KritzelOpacitySlider as KritzelOpacitySliderElement } from "../../../../kritzel-stencil/dist/components/kritzel-opacity-slider.js";
15
+ import { KritzelSettings as KritzelSettingsElement } from "../../../../kritzel-stencil/dist/components/kritzel-settings.js";
10
16
  import { KritzelShapeFill as KritzelShapeFillElement } from "../../../../kritzel-stencil/dist/components/kritzel-shape-fill.js";
17
+ import { KritzelSlideToggle as KritzelSlideToggleElement } from "../../../../kritzel-stencil/dist/components/kritzel-slide-toggle.js";
18
+ export type KritzelBackToContentEvents = {
19
+ onBackToContent: EventName<KritzelBackToContentCustomEvent<void>>;
20
+ };
21
+ export declare const KritzelBackToContent: StencilReactComponent<KritzelBackToContentElement, KritzelBackToContentEvents>;
22
+ export type KritzelDialogEvents = {
23
+ onDialogOpen: EventName<KritzelDialogCustomEvent<void>>;
24
+ onDialogClose: EventName<KritzelDialogCustomEvent<IKritzelDialogCloseEvent>>;
25
+ };
26
+ export declare const KritzelDialog: StencilReactComponent<KritzelDialogElement, KritzelDialogEvents>;
11
27
  export type KritzelEditorEvents = {
12
28
  onIsReady: EventName<KritzelEditorCustomEvent<HTMLElement>>;
13
29
  onObjectsChange: EventName<KritzelEditorCustomEvent<KritzelBaseObject[]>>;
@@ -18,11 +34,34 @@ export type KritzelLineEndingsEvents = {
18
34
  onValueChange: EventName<KritzelLineEndingsCustomEvent<LineArrowConfig>>;
19
35
  };
20
36
  export declare const KritzelLineEndings: StencilReactComponent<KritzelLineEndingsElement, KritzelLineEndingsEvents>;
37
+ export type KritzelMasterDetailEvents = {
38
+ onItemSelect: EventName<KritzelMasterDetailCustomEvent<IKritzelMasterDetailSelectEvent>>;
39
+ };
40
+ export declare const KritzelMasterDetail: StencilReactComponent<KritzelMasterDetailElement, KritzelMasterDetailEvents>;
41
+ export type KritzelMoreMenuEvents = {
42
+ onItemSelect: EventName<KritzelMoreMenuCustomEvent<{
43
+ item: IKritzelMenuItem;
44
+ parent: IKritzelMenuItem;
45
+ }>>;
46
+ };
47
+ export declare const KritzelMoreMenu: StencilReactComponent<KritzelMoreMenuElement, KritzelMoreMenuEvents>;
48
+ export type KritzelNumericInputEvents = {
49
+ onValueChange: EventName<KritzelNumericInputCustomEvent<number>>;
50
+ };
51
+ export declare const KritzelNumericInput: StencilReactComponent<KritzelNumericInputElement, KritzelNumericInputEvents>;
21
52
  export type KritzelOpacitySliderEvents = {
22
- onValueChange: EventName<CustomEvent<number>>;
53
+ onValueChange: EventName<KritzelOpacitySliderCustomEvent<number>>;
23
54
  };
24
55
  export declare const KritzelOpacitySlider: StencilReactComponent<KritzelOpacitySliderElement, KritzelOpacitySliderEvents>;
56
+ export type KritzelSettingsEvents = {
57
+ onSettingsChange: EventName<KritzelSettingsCustomEvent<KritzelSettingsConfig>>;
58
+ };
59
+ export declare const KritzelSettings: StencilReactComponent<KritzelSettingsElement, KritzelSettingsEvents>;
25
60
  export type KritzelShapeFillEvents = {
26
61
  onValueChange: EventName<KritzelShapeFillCustomEvent<ShapeFillType>>;
27
62
  };
28
63
  export declare const KritzelShapeFill: StencilReactComponent<KritzelShapeFillElement, KritzelShapeFillEvents>;
64
+ export type KritzelSlideToggleEvents = {
65
+ onCheckedChange: EventName<KritzelSlideToggleCustomEvent<boolean>>;
66
+ };
67
+ export declare const KritzelSlideToggle: StencilReactComponent<KritzelSlideToggleElement, KritzelSlideToggleEvents>;
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "kritzel-react",
3
- "version": "0.1.6",
4
- "homepage": "https://gitlab.com/kasual1/kritzel#readme",
5
- "license": "ISC",
6
- "main": "dist/index.js",
7
- "module": "dist/index.js",
8
- "types": "dist/types/index.d.ts",
9
- "directories": {
10
- "lib": "lib",
11
- "test": "__tests__"
12
- },
13
- "files": [
14
- "dist"
15
- ],
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "dependencies": {
20
- "@stencil/react-output-target": "^1.2.0"
21
- },
22
- "peerDependencies": {
23
- "kritzel-stencil": "^0.1.6"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+ssh://git@gitlab.com/kasual1/kritzel.git"
28
- },
29
- "scripts": {
30
- "test": "node ./__tests__/react-library.test.js",
31
- "build": "npm run tsc",
32
- "tsc": "tsc -p . --outDir ./dist",
33
- "clean": "rimraf dist node_modules",
34
- "bump": "npm version patch",
35
- "release": "npm publish"
36
- },
37
- "devDependencies": {
38
- "@types/react": "^19.2.7",
39
- "react": "^19.2.3",
40
- "react-dom": "^19.2.3",
41
- "typescript": "^5.9.3"
42
- }
43
- }
1
+ {
2
+ "name": "kritzel-react",
3
+ "version": "0.1.8",
4
+ "homepage": "https://gitlab.com/kasual1/kritzel#readme",
5
+ "license": "ISC",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/types/index.d.ts",
9
+ "directories": {
10
+ "lib": "lib",
11
+ "test": "__tests__"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "dependencies": {
20
+ "@stencil/react-output-target": "^1.2.0"
21
+ },
22
+ "peerDependencies": {
23
+ "kritzel-stencil": "^0.1.8"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+ssh://git@gitlab.com/kasual1/kritzel.git"
28
+ },
29
+ "scripts": {
30
+ "test": "node ./__tests__/react-library.test.js",
31
+ "build": "npm run tsc",
32
+ "tsc": "tsc -p . --outDir ./dist",
33
+ "clean": "rimraf dist node_modules",
34
+ "bump": "npm version patch",
35
+ "release": "npm publish"
36
+ },
37
+ "devDependencies": {
38
+ "@types/react": "^19.2.7",
39
+ "react": "^19.2.3",
40
+ "react-dom": "^19.2.3",
41
+ "typescript": "^5.9.3"
42
+ }
43
+ }