@lansforsakringar/core-components-react
Advanced tools
Comparing version
@@ -6,2 +6,3 @@ 'use client'; | ||
import { LfdsDialogSidePanel as LfdsDialogSidePanelElement, defineCustomElement as defineLfdsDialogSidePanel } from "@lansforsakringar/core-components/dist/components/lfds-dialog-side-panel.js"; | ||
import { LfdsFormInputCheckboxCard as LfdsFormInputCheckboxCardElement, defineCustomElement as defineLfdsFormInputCheckboxCard } from "@lansforsakringar/core-components/dist/components/lfds-form-input-checkbox-card.js"; | ||
import { LfdsFormInputCheckbox as LfdsFormInputCheckboxElement, defineCustomElement as defineLfdsFormInputCheckbox } from "@lansforsakringar/core-components/dist/components/lfds-form-input-checkbox.js"; | ||
@@ -69,2 +70,16 @@ import { LfdsFormInput as LfdsFormInputElement, defineCustomElement as defineLfdsFormInput } from "@lansforsakringar/core-components/dist/components/lfds-form-input.js"; | ||
}); | ||
export const LfdsFormInputCheckboxCard = createComponent({ | ||
tagName: 'lfds-form-input-checkbox-card', | ||
elementClass: LfdsFormInputCheckboxCardElement, | ||
react: React, | ||
events: { | ||
onLfChange: 'lfChange', | ||
onLfClick: 'lfClick', | ||
onLfBlur: 'lfBlur', | ||
onLfFocus: 'lfFocus', | ||
onLfFocusout: 'lfFocusout', | ||
onLfInput: 'lfInput' | ||
}, | ||
defineCustomElement: defineLfdsFormInputCheckboxCard | ||
}); | ||
export const LfdsIcon = createComponent({ | ||
@@ -71,0 +86,0 @@ tagName: 'lfds-icon', |
@@ -9,3 +9,3 @@ 'use client'; | ||
react: React, | ||
events: {}, | ||
events: { onLfClick: 'lfClick' }, | ||
defineCustomElement: defineLfdsButton | ||
@@ -12,0 +12,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
import { type Event, type LfdsFormInputCheckboxCustomEvent, type LfdsFormInputCustomEvent } from "@lansforsakringar/core-components"; | ||
import { type Event, type LfdsFormInputCheckboxCardCustomEvent, type LfdsFormInputCheckboxCustomEvent, type LfdsFormInputCustomEvent } from "@lansforsakringar/core-components"; | ||
import { LfdsButton as LfdsButtonElement } from "@lansforsakringar/core-components/dist/components/lfds-button.js"; | ||
@@ -6,2 +6,3 @@ import { LfdsCard as LfdsCardElement } from "@lansforsakringar/core-components/dist/components/lfds-card.js"; | ||
import { LfdsDialogSidePanel as LfdsDialogSidePanelElement } from "@lansforsakringar/core-components/dist/components/lfds-dialog-side-panel.js"; | ||
import { LfdsFormInputCheckboxCard as LfdsFormInputCheckboxCardElement } from "@lansforsakringar/core-components/dist/components/lfds-form-input-checkbox-card.js"; | ||
import { LfdsFormInputCheckbox as LfdsFormInputCheckboxElement } from "@lansforsakringar/core-components/dist/components/lfds-form-input-checkbox.js"; | ||
@@ -40,2 +41,11 @@ import { LfdsFormInput as LfdsFormInputElement } from "@lansforsakringar/core-components/dist/components/lfds-form-input.js"; | ||
export declare const LfdsFormInputCheckbox: StencilReactComponent<LfdsFormInputCheckboxElement, LfdsFormInputCheckboxEvents>; | ||
type LfdsFormInputCheckboxCardEvents = { | ||
onLfChange: EventName<LfdsFormInputCheckboxCardCustomEvent<Event>>; | ||
onLfClick: EventName<LfdsFormInputCheckboxCardCustomEvent<MouseEvent>>; | ||
onLfBlur: EventName<LfdsFormInputCheckboxCardCustomEvent<FocusEvent>>; | ||
onLfFocus: EventName<LfdsFormInputCheckboxCardCustomEvent<FocusEvent>>; | ||
onLfFocusout: EventName<LfdsFormInputCheckboxCardCustomEvent<FocusEvent>>; | ||
onLfInput: EventName<LfdsFormInputCheckboxCardCustomEvent<InputEvent>>; | ||
}; | ||
export declare const LfdsFormInputCheckboxCard: StencilReactComponent<LfdsFormInputCheckboxCardElement, LfdsFormInputCheckboxCardEvents>; | ||
type LfdsIconEvents = NonNullable<unknown>; | ||
@@ -42,0 +52,0 @@ export declare const LfdsIcon: StencilReactComponent<LfdsIconElement, LfdsIconEvents>; |
@@ -0,5 +1,8 @@ | ||
import { type LfdsButtonCustomEvent } from "@lansforsakringar/core-components"; | ||
import { LfdsButton as LfdsButtonElement } from "@lansforsakringar/core-components/dist/components/lfds-button.js"; | ||
import type { StencilReactComponent } from '@stencil/react-output-target/runtime'; | ||
type LfdsButtonEvents = NonNullable<unknown>; | ||
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime'; | ||
type LfdsButtonEvents = { | ||
onLfClick: EventName<LfdsButtonCustomEvent<MouseEvent>>; | ||
}; | ||
declare const LfdsButton: StencilReactComponent<LfdsButtonElement, LfdsButtonEvents>; | ||
export default LfdsButton; |
{ | ||
"name": "@lansforsakringar/core-components-react", | ||
"version": "1.0.1", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -21,3 +21,4 @@ "type": "module", | ||
"build": "npm run tsc && postcss -o dist/index.css src/index.css", | ||
"tsc": "tsc -p . --outDir ./dist" | ||
"tsc": "tsc -p . --outDir ./dist", | ||
"lint": "eslint ." | ||
}, | ||
@@ -34,3 +35,3 @@ "license": "UNLICENSED", | ||
"dependencies": { | ||
"@lansforsakringar/core-components": "^0.0.2" | ||
"@lansforsakringar/core-components": "^0.1.1" | ||
}, | ||
@@ -37,0 +38,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
120670
40.38%66
100%866
64.33%0
-100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed