@sme.up/ketchup-react 10.0.0-alpha.2 → 10.1.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/index.d.ts CHANGED
@@ -1,68 +1,2 @@
1
- /// <reference types="react" />
2
- import type { JSX } from '@sme.up/ketchup';
3
- export declare const KupAccordion: import("react").ForwardRefExoticComponent<JSX.KupAccordion & Omit<import("react").HTMLAttributes<HTMLKupAccordionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupAccordionElement>>;
4
- export declare const KupAutocomplete: import("react").ForwardRefExoticComponent<JSX.KupAutocomplete & Omit<import("react").HTMLAttributes<HTMLKupAutocompleteElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupAutocompleteElement>>;
5
- export declare const KupBadge: import("react").ForwardRefExoticComponent<JSX.KupBadge & Omit<import("react").HTMLAttributes<HTMLKupBadgeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupBadgeElement>>;
6
- export declare const KupBox: import("react").ForwardRefExoticComponent<JSX.KupBox & Omit<import("react").HTMLAttributes<HTMLKupBoxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupBoxElement>>;
7
- export declare const KupButton: import("react").ForwardRefExoticComponent<JSX.KupButton & Omit<import("react").HTMLAttributes<HTMLKupButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupButtonElement>>;
8
- export declare const KupButtonList: import("react").ForwardRefExoticComponent<JSX.KupButtonList & Omit<import("react").HTMLAttributes<HTMLKupButtonListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupButtonListElement>>;
9
- export declare const KupCalendar: import("react").ForwardRefExoticComponent<JSX.KupCalendar & Omit<import("react").HTMLAttributes<HTMLKupCalendarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupCalendarElement>>;
10
- export declare const KupCard: import("react").ForwardRefExoticComponent<JSX.KupCard & Omit<import("react").HTMLAttributes<HTMLKupCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupCardElement>>;
11
- export declare const KupCardList: import("react").ForwardRefExoticComponent<JSX.KupCardList & Omit<import("react").HTMLAttributes<HTMLKupCardListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupCardListElement>>;
12
- export declare const KupCell: import("react").ForwardRefExoticComponent<JSX.KupCell & Omit<import("react").HTMLAttributes<HTMLKupCellElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupCellElement>>;
13
- export declare const KupChart: import("react").ForwardRefExoticComponent<JSX.KupChart & Omit<import("react").HTMLAttributes<HTMLKupChartElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupChartElement>>;
14
- export declare const KupCheckbox: import("react").ForwardRefExoticComponent<JSX.KupCheckbox & Omit<import("react").HTMLAttributes<HTMLKupCheckboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupCheckboxElement>>;
15
- export declare const KupChip: import("react").ForwardRefExoticComponent<JSX.KupChip & Omit<import("react").HTMLAttributes<HTMLKupChipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupChipElement>>;
16
- export declare const KupColorPicker: import("react").ForwardRefExoticComponent<JSX.KupColorPicker & Omit<import("react").HTMLAttributes<HTMLKupColorPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupColorPickerElement>>;
17
- export declare const KupCombobox: import("react").ForwardRefExoticComponent<JSX.KupCombobox & Omit<import("react").HTMLAttributes<HTMLKupComboboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupComboboxElement>>;
18
- export declare const KupCustomTaskListHeader: import("react").ForwardRefExoticComponent<JSX.KupCustomTaskListHeader & Omit<import("react").HTMLAttributes<HTMLKupCustomTaskListHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupCustomTaskListHeaderElement>>;
19
- export declare const KupCustomTaskListTable: import("react").ForwardRefExoticComponent<JSX.KupCustomTaskListTable & Omit<import("react").HTMLAttributes<HTMLKupCustomTaskListTableElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupCustomTaskListTableElement>>;
20
- export declare const KupDashboard: import("react").ForwardRefExoticComponent<JSX.KupDashboard & Omit<import("react").HTMLAttributes<HTMLKupDashboardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupDashboardElement>>;
21
- export declare const KupDataTable: import("react").ForwardRefExoticComponent<JSX.KupDataTable & Omit<import("react").HTMLAttributes<HTMLKupDataTableElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupDataTableElement>>;
22
- export declare const KupDatePicker: import("react").ForwardRefExoticComponent<JSX.KupDatePicker & Omit<import("react").HTMLAttributes<HTMLKupDatePickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupDatePickerElement>>;
23
- export declare const KupDialog: import("react").ForwardRefExoticComponent<JSX.KupDialog & Omit<import("react").HTMLAttributes<HTMLKupDialogElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupDialogElement>>;
24
- export declare const KupDrawer: import("react").ForwardRefExoticComponent<JSX.KupDrawer & Omit<import("react").HTMLAttributes<HTMLKupDrawerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupDrawerElement>>;
25
- export declare const KupDropdownButton: import("react").ForwardRefExoticComponent<JSX.KupDropdownButton & Omit<import("react").HTMLAttributes<HTMLKupDropdownButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupDropdownButtonElement>>;
26
- export declare const KupEchart: import("react").ForwardRefExoticComponent<JSX.KupEchart & Omit<import("react").HTMLAttributes<HTMLKupEchartElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupEchartElement>>;
27
- export declare const KupEditor: import("react").ForwardRefExoticComponent<JSX.KupEditor & Omit<import("react").HTMLAttributes<HTMLKupEditorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupEditorElement>>;
28
- export declare const KupFamilyTree: import("react").ForwardRefExoticComponent<JSX.KupFamilyTree & Omit<import("react").HTMLAttributes<HTMLKupFamilyTreeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupFamilyTreeElement>>;
29
- export declare const KupForm: import("react").ForwardRefExoticComponent<JSX.KupForm & Omit<import("react").HTMLAttributes<HTMLKupFormElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupFormElement>>;
30
- export declare const KupGantt: import("react").ForwardRefExoticComponent<JSX.KupGantt & Omit<import("react").HTMLAttributes<HTMLKupGanttElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupGanttElement>>;
31
- export declare const KupGanttCalendar: import("react").ForwardRefExoticComponent<JSX.KupGanttCalendar & Omit<import("react").HTMLAttributes<HTMLKupGanttCalendarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupGanttCalendarElement>>;
32
- export declare const KupGauge: import("react").ForwardRefExoticComponent<JSX.KupGauge & Omit<import("react").HTMLAttributes<HTMLKupGaugeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupGaugeElement>>;
33
- export declare const KupGrid: import("react").ForwardRefExoticComponent<JSX.KupGrid & Omit<import("react").HTMLAttributes<HTMLKupGridElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupGridElement>>;
34
- export declare const KupGridRenderer: import("react").ForwardRefExoticComponent<JSX.KupGridRenderer & Omit<import("react").HTMLAttributes<HTMLKupGridRendererElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupGridRendererElement>>;
35
- export declare const KupHorizontalScroll: import("react").ForwardRefExoticComponent<JSX.KupHorizontalScroll & Omit<import("react").HTMLAttributes<HTMLKupHorizontalScrollElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupHorizontalScrollElement>>;
36
- export declare const KupIframe: import("react").ForwardRefExoticComponent<JSX.KupIframe & Omit<import("react").HTMLAttributes<HTMLKupIframeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupIframeElement>>;
37
- export declare const KupImage: import("react").ForwardRefExoticComponent<JSX.KupImage & Omit<import("react").HTMLAttributes<HTMLKupImageElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupImageElement>>;
38
- export declare const KupImageList: import("react").ForwardRefExoticComponent<JSX.KupImageList & Omit<import("react").HTMLAttributes<HTMLKupImageListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupImageListElement>>;
39
- export declare const KupInputPanel: import("react").ForwardRefExoticComponent<JSX.KupInputPanel & Omit<import("react").HTMLAttributes<HTMLKupInputPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupInputPanelElement>>;
40
- export declare const KupLazy: import("react").ForwardRefExoticComponent<JSX.KupLazy & Omit<import("react").HTMLAttributes<HTMLKupLazyElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupLazyElement>>;
41
- export declare const KupList: import("react").ForwardRefExoticComponent<JSX.KupList & Omit<import("react").HTMLAttributes<HTMLKupListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupListElement>>;
42
- export declare const KupMagicBox: import("react").ForwardRefExoticComponent<JSX.KupMagicBox & Omit<import("react").HTMLAttributes<HTMLKupMagicBoxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupMagicBoxElement>>;
43
- export declare const KupNavBar: import("react").ForwardRefExoticComponent<JSX.KupNavBar & Omit<import("react").HTMLAttributes<HTMLKupNavBarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupNavBarElement>>;
44
- export declare const KupNumericPicker: import("react").ForwardRefExoticComponent<JSX.KupNumericPicker & Omit<import("react").HTMLAttributes<HTMLKupNumericPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupNumericPickerElement>>;
45
- export declare const KupPdf: import("react").ForwardRefExoticComponent<JSX.KupPdf & Omit<import("react").HTMLAttributes<HTMLKupPdfElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupPdfElement>>;
46
- export declare const KupPhotoFrame: import("react").ForwardRefExoticComponent<JSX.KupPhotoFrame & Omit<import("react").HTMLAttributes<HTMLKupPhotoFrameElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupPhotoFrameElement>>;
47
- export declare const KupPlanner: import("react").ForwardRefExoticComponent<JSX.KupPlanner & Omit<import("react").HTMLAttributes<HTMLKupPlannerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupPlannerElement>>;
48
- export declare const KupPlannerRenderer: import("react").ForwardRefExoticComponent<JSX.KupPlannerRenderer & Omit<import("react").HTMLAttributes<HTMLKupPlannerRendererElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupPlannerRendererElement>>;
49
- export declare const KupProbe: import("react").ForwardRefExoticComponent<JSX.KupProbe & Omit<import("react").HTMLAttributes<HTMLKupProbeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupProbeElement>>;
50
- export declare const KupProgressBar: import("react").ForwardRefExoticComponent<JSX.KupProgressBar & Omit<import("react").HTMLAttributes<HTMLKupProgressBarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupProgressBarElement>>;
51
- export declare const KupQlik: import("react").ForwardRefExoticComponent<JSX.KupQlik & Omit<import("react").HTMLAttributes<HTMLKupQlikElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupQlikElement>>;
52
- export declare const KupRadio: import("react").ForwardRefExoticComponent<JSX.KupRadio & Omit<import("react").HTMLAttributes<HTMLKupRadioElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupRadioElement>>;
53
- export declare const KupRating: import("react").ForwardRefExoticComponent<JSX.KupRating & Omit<import("react").HTMLAttributes<HTMLKupRatingElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupRatingElement>>;
54
- export declare const KupSnackbar: import("react").ForwardRefExoticComponent<JSX.KupSnackbar & Omit<import("react").HTMLAttributes<HTMLKupSnackbarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupSnackbarElement>>;
55
- export declare const KupSpinner: import("react").ForwardRefExoticComponent<JSX.KupSpinner & Omit<import("react").HTMLAttributes<HTMLKupSpinnerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupSpinnerElement>>;
56
- export declare const KupStandardTooltip: import("react").ForwardRefExoticComponent<JSX.KupStandardTooltip & Omit<import("react").HTMLAttributes<HTMLKupStandardTooltipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupStandardTooltipElement>>;
57
- export declare const KupSwitch: import("react").ForwardRefExoticComponent<JSX.KupSwitch & Omit<import("react").HTMLAttributes<HTMLKupSwitchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupSwitchElement>>;
58
- export declare const KupSwitcher: import("react").ForwardRefExoticComponent<JSX.KupSwitcher & Omit<import("react").HTMLAttributes<HTMLKupSwitcherElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupSwitcherElement>>;
59
- export declare const KupTabBar: import("react").ForwardRefExoticComponent<JSX.KupTabBar & Omit<import("react").HTMLAttributes<HTMLKupTabBarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTabBarElement>>;
60
- export declare const KupTaskGantt: import("react").ForwardRefExoticComponent<JSX.KupTaskGantt & Omit<import("react").HTMLAttributes<HTMLKupTaskGanttElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTaskGanttElement>>;
61
- export declare const KupTaskList: import("react").ForwardRefExoticComponent<JSX.KupTaskList & Omit<import("react").HTMLAttributes<HTMLKupTaskListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTaskListElement>>;
62
- export declare const KupTaskListHeader: import("react").ForwardRefExoticComponent<JSX.KupTaskListHeader & Omit<import("react").HTMLAttributes<HTMLKupTaskListHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTaskListHeaderElement>>;
63
- export declare const KupTaskListTable: import("react").ForwardRefExoticComponent<JSX.KupTaskListTable & Omit<import("react").HTMLAttributes<HTMLKupTaskListTableElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTaskListTableElement>>;
64
- export declare const KupTextField: import("react").ForwardRefExoticComponent<JSX.KupTextField & Omit<import("react").HTMLAttributes<HTMLKupTextFieldElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTextFieldElement>>;
65
- export declare const KupTimePicker: import("react").ForwardRefExoticComponent<JSX.KupTimePicker & Omit<import("react").HTMLAttributes<HTMLKupTimePickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTimePickerElement>>;
66
- export declare const KupTooltip: import("react").ForwardRefExoticComponent<JSX.KupTooltip & Omit<import("react").HTMLAttributes<HTMLKupTooltipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTooltipElement>>;
67
- export declare const KupTree: import("react").ForwardRefExoticComponent<JSX.KupTree & Omit<import("react").HTMLAttributes<HTMLKupTreeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupTreeElement>>;
68
- export declare const KupVerticalScroll: import("react").ForwardRefExoticComponent<JSX.KupVerticalScroll & Omit<import("react").HTMLAttributes<HTMLKupVerticalScrollElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLKupVerticalScrollElement>>;
1
+ export { setAssetPath } from '@sme.up/ketchup/dist/components/index';
2
+ export * from './components';
package/dist/index.js CHANGED
@@ -1,72 +1,2 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- /* auto-generated react proxies */
4
- import { createReactComponent } from './react-component-lib';
5
- import { defineCustomElements } from '@sme.up/ketchup/dist/loader';
6
- defineCustomElements();
7
- export const KupAccordion = /*@__PURE__*/ createReactComponent('kup-accordion');
8
- export const KupAutocomplete = /*@__PURE__*/ createReactComponent('kup-autocomplete');
9
- export const KupBadge = /*@__PURE__*/ createReactComponent('kup-badge');
10
- export const KupBox = /*@__PURE__*/ createReactComponent('kup-box');
11
- export const KupButton = /*@__PURE__*/ createReactComponent('kup-button');
12
- export const KupButtonList = /*@__PURE__*/ createReactComponent('kup-button-list');
13
- export const KupCalendar = /*@__PURE__*/ createReactComponent('kup-calendar');
14
- export const KupCard = /*@__PURE__*/ createReactComponent('kup-card');
15
- export const KupCardList = /*@__PURE__*/ createReactComponent('kup-card-list');
16
- export const KupCell = /*@__PURE__*/ createReactComponent('kup-cell');
17
- export const KupChart = /*@__PURE__*/ createReactComponent('kup-chart');
18
- export const KupCheckbox = /*@__PURE__*/ createReactComponent('kup-checkbox');
19
- export const KupChip = /*@__PURE__*/ createReactComponent('kup-chip');
20
- export const KupColorPicker = /*@__PURE__*/ createReactComponent('kup-color-picker');
21
- export const KupCombobox = /*@__PURE__*/ createReactComponent('kup-combobox');
22
- export const KupCustomTaskListHeader = /*@__PURE__*/ createReactComponent('kup-custom-task-list-header');
23
- export const KupCustomTaskListTable = /*@__PURE__*/ createReactComponent('kup-custom-task-list-table');
24
- export const KupDashboard = /*@__PURE__*/ createReactComponent('kup-dashboard');
25
- export const KupDataTable = /*@__PURE__*/ createReactComponent('kup-data-table');
26
- export const KupDatePicker = /*@__PURE__*/ createReactComponent('kup-date-picker');
27
- export const KupDialog = /*@__PURE__*/ createReactComponent('kup-dialog');
28
- export const KupDrawer = /*@__PURE__*/ createReactComponent('kup-drawer');
29
- export const KupDropdownButton = /*@__PURE__*/ createReactComponent('kup-dropdown-button');
30
- export const KupEchart = /*@__PURE__*/ createReactComponent('kup-echart');
31
- export const KupEditor = /*@__PURE__*/ createReactComponent('kup-editor');
32
- export const KupFamilyTree = /*@__PURE__*/ createReactComponent('kup-family-tree');
33
- export const KupForm = /*@__PURE__*/ createReactComponent('kup-form');
34
- export const KupGantt = /*@__PURE__*/ createReactComponent('kup-gantt');
35
- export const KupGanttCalendar = /*@__PURE__*/ createReactComponent('kup-gantt-calendar');
36
- export const KupGauge = /*@__PURE__*/ createReactComponent('kup-gauge');
37
- export const KupGrid = /*@__PURE__*/ createReactComponent('kup-grid');
38
- export const KupGridRenderer = /*@__PURE__*/ createReactComponent('kup-grid-renderer');
39
- export const KupHorizontalScroll = /*@__PURE__*/ createReactComponent('kup-horizontal-scroll');
40
- export const KupIframe = /*@__PURE__*/ createReactComponent('kup-iframe');
41
- export const KupImage = /*@__PURE__*/ createReactComponent('kup-image');
42
- export const KupImageList = /*@__PURE__*/ createReactComponent('kup-image-list');
43
- export const KupInputPanel = /*@__PURE__*/ createReactComponent('kup-input-panel');
44
- export const KupLazy = /*@__PURE__*/ createReactComponent('kup-lazy');
45
- export const KupList = /*@__PURE__*/ createReactComponent('kup-list');
46
- export const KupMagicBox = /*@__PURE__*/ createReactComponent('kup-magic-box');
47
- export const KupNavBar = /*@__PURE__*/ createReactComponent('kup-nav-bar');
48
- export const KupNumericPicker = /*@__PURE__*/ createReactComponent('kup-numeric-picker');
49
- export const KupPdf = /*@__PURE__*/ createReactComponent('kup-pdf');
50
- export const KupPhotoFrame = /*@__PURE__*/ createReactComponent('kup-photo-frame');
51
- export const KupPlanner = /*@__PURE__*/ createReactComponent('kup-planner');
52
- export const KupPlannerRenderer = /*@__PURE__*/ createReactComponent('kup-planner-renderer');
53
- export const KupProbe = /*@__PURE__*/ createReactComponent('kup-probe');
54
- export const KupProgressBar = /*@__PURE__*/ createReactComponent('kup-progress-bar');
55
- export const KupQlik = /*@__PURE__*/ createReactComponent('kup-qlik');
56
- export const KupRadio = /*@__PURE__*/ createReactComponent('kup-radio');
57
- export const KupRating = /*@__PURE__*/ createReactComponent('kup-rating');
58
- export const KupSnackbar = /*@__PURE__*/ createReactComponent('kup-snackbar');
59
- export const KupSpinner = /*@__PURE__*/ createReactComponent('kup-spinner');
60
- export const KupStandardTooltip = /*@__PURE__*/ createReactComponent('kup-standard-tooltip');
61
- export const KupSwitch = /*@__PURE__*/ createReactComponent('kup-switch');
62
- export const KupSwitcher = /*@__PURE__*/ createReactComponent('kup-switcher');
63
- export const KupTabBar = /*@__PURE__*/ createReactComponent('kup-tab-bar');
64
- export const KupTaskGantt = /*@__PURE__*/ createReactComponent('kup-task-gantt');
65
- export const KupTaskList = /*@__PURE__*/ createReactComponent('kup-task-list');
66
- export const KupTaskListHeader = /*@__PURE__*/ createReactComponent('kup-task-list-header');
67
- export const KupTaskListTable = /*@__PURE__*/ createReactComponent('kup-task-list-table');
68
- export const KupTextField = /*@__PURE__*/ createReactComponent('kup-text-field');
69
- export const KupTimePicker = /*@__PURE__*/ createReactComponent('kup-time-picker');
70
- export const KupTooltip = /*@__PURE__*/ createReactComponent('kup-tooltip');
71
- export const KupTree = /*@__PURE__*/ createReactComponent('kup-tree');
72
- export const KupVerticalScroll = /*@__PURE__*/ createReactComponent('kup-vertical-scroll');
1
+ export { setAssetPath } from '@sme.up/ketchup/dist/components/index';
2
+ export * from './components';
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup-react",
3
- "version": "10.0.0-alpha.2",
4
- "module": "dist/index.js",
5
- "typings": "dist/index.d.ts",
3
+ "version": "10.1.0",
4
+ "main": "dist/components.js",
5
+ "module": "dist/components.js",
6
+ "types": "dist/components.d.ts",
6
7
  "keywords": [
7
8
  "smeup",
8
- "KetchUP showcase",
9
+ "KetchUP React Components",
9
10
  "pwa",
10
11
  "custom elements",
11
12
  "components"
@@ -20,17 +21,15 @@
20
21
  "description": "Ketchup React Components library by smeup",
21
22
  "license": "Apache-2.0",
22
23
  "dependencies": {
23
- "@sme.up/ketchup": "^10.0.0-SNAPSHOT",
24
- "react": "^18.2.0",
25
- "react-dom": "^18.2.0"
24
+ "@sme.up/ketchup": "10.1.0",
25
+ "@stencil/react-output-target": "^0.7",
26
+ "react": "^18",
27
+ "react-dom": "^18"
26
28
  },
27
29
  "devDependencies": {
28
- "@types/geojson": "^7946.0.10",
29
- "@types/node": "^20.2.5",
30
- "@types/react": "^18.2.7",
31
- "@types/react-dom": "^18.2.4",
32
- "rimraf": "^5.0.1",
33
- "typescript": "5.0.4"
30
+ "@stencil/core": "^4",
31
+ "rimraf": "^6",
32
+ "typescript": "^5"
34
33
  },
35
34
  "installConfig": {
36
35
  "hoistingLimits": "workspaces"
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface HTMLStencilElement extends HTMLElement {
3
- componentOnReady(): Promise<this>;
4
- }
5
- interface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {
6
- forwardedRef: React.RefObject<ElementType>;
7
- ref?: React.Ref<any>;
8
- }
9
- export declare const createReactComponent: <PropType, ElementType extends HTMLStencilElement, ContextStateType = {}, ExpandedPropsTypes = {}>(tagName: string, ReactComponentContext?: React.Context<ContextStateType> | undefined, manipulatePropsFunction?: ((originalProps: StencilReactInternalProps<ElementType>, propsToPass: any) => ExpandedPropsTypes) | undefined, defineCustomElement?: () => void) => React.ForwardRefExoticComponent<React.PropsWithoutRef<import("./utils").StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
10
- export {};
@@ -1,68 +0,0 @@
1
- import React, { createElement } from 'react';
2
- import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';
3
- export const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
4
- if (defineCustomElement !== undefined) {
5
- defineCustomElement();
6
- }
7
- const displayName = dashToPascalCase(tagName);
8
- const ReactComponent = class extends React.Component {
9
- componentEl;
10
- setComponentElRef = (element) => {
11
- this.componentEl = element;
12
- };
13
- constructor(props) {
14
- super(props);
15
- }
16
- componentDidMount() {
17
- this.componentDidUpdate(this.props);
18
- }
19
- componentDidUpdate(prevProps) {
20
- attachProps(this.componentEl, this.props, prevProps);
21
- }
22
- render() {
23
- const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
24
- let propsToPass = Object.keys(cProps).reduce((acc, name) => {
25
- const value = cProps[name];
26
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
27
- const eventName = name.substring(2).toLowerCase();
28
- if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
29
- acc[name] = value;
30
- }
31
- }
32
- else {
33
- // we should only render strings, booleans, and numbers as attrs in html.
34
- // objects, functions, arrays etc get synced via properties on mount.
35
- const type = typeof value;
36
- if (type === 'string' || type === 'boolean' || type === 'number') {
37
- acc[camelToDashCase(name)] = value;
38
- }
39
- }
40
- return acc;
41
- }, {});
42
- if (manipulatePropsFunction) {
43
- propsToPass = manipulatePropsFunction(this.props, propsToPass);
44
- }
45
- const newProps = {
46
- ...propsToPass,
47
- ref: mergeRefs(forwardedRef, this.setComponentElRef),
48
- style,
49
- };
50
- /**
51
- * We use createElement here instead of
52
- * React.createElement to work around a
53
- * bug in Vite (https://github.com/vitejs/vite/issues/6104).
54
- * React.createElement causes all elements to be rendered
55
- * as <tagname> instead of the actual Web Component.
56
- */
57
- return createElement(tagName, newProps, children);
58
- }
59
- static get displayName() {
60
- return displayName;
61
- }
62
- };
63
- // If context was passed to createReactComponent then conditionally add it to the Component Class
64
- if (ReactComponentContext) {
65
- ReactComponent.contextType = ReactComponentContext;
66
- }
67
- return createForwardRef(ReactComponent, displayName);
68
- };
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { OverlayEventDetail } from './interfaces';
3
- import { StencilReactForwardedRef } from './utils';
4
- interface OverlayElement extends HTMLElement {
5
- present: () => Promise<void>;
6
- dismiss: (data?: any, role?: string | undefined) => Promise<boolean>;
7
- }
8
- export interface ReactOverlayProps {
9
- children?: React.ReactNode;
10
- isOpen: boolean;
11
- onDidDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
12
- onDidPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
13
- onWillDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
14
- onWillPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
15
- }
16
- export declare const createOverlayComponent: <OverlayComponent extends object, OverlayType extends OverlayElement>(tagName: string, controller: {
17
- create: (options: any) => Promise<OverlayType>;
18
- }, customElement?: any) => React.ForwardRefExoticComponent<React.PropsWithoutRef<OverlayComponent & ReactOverlayProps & {
19
- forwardedRef?: StencilReactForwardedRef<OverlayType> | undefined;
20
- }> & React.RefAttributes<OverlayType>>;
21
- export {};
@@ -1,97 +0,0 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom';
3
- import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
4
- export const createOverlayComponent = (tagName, controller, customElement) => {
5
- defineCustomElement(tagName, customElement);
6
- const displayName = dashToPascalCase(tagName);
7
- const didDismissEventName = `on${displayName}DidDismiss`;
8
- const didPresentEventName = `on${displayName}DidPresent`;
9
- const willDismissEventName = `on${displayName}WillDismiss`;
10
- const willPresentEventName = `on${displayName}WillPresent`;
11
- let isDismissing = false;
12
- class Overlay extends React.Component {
13
- overlay;
14
- el;
15
- constructor(props) {
16
- super(props);
17
- if (typeof document !== 'undefined') {
18
- this.el = document.createElement('div');
19
- }
20
- this.handleDismiss = this.handleDismiss.bind(this);
21
- }
22
- static get displayName() {
23
- return displayName;
24
- }
25
- componentDidMount() {
26
- if (this.props.isOpen) {
27
- this.present();
28
- }
29
- }
30
- componentWillUnmount() {
31
- if (this.overlay) {
32
- this.overlay.dismiss();
33
- }
34
- }
35
- handleDismiss(event) {
36
- if (this.props.onDidDismiss) {
37
- this.props.onDidDismiss(event);
38
- }
39
- setRef(this.props.forwardedRef, null);
40
- }
41
- shouldComponentUpdate(nextProps) {
42
- // Check if the overlay component is about to dismiss
43
- if (this.overlay && nextProps.isOpen !== this.props.isOpen && nextProps.isOpen === false) {
44
- isDismissing = true;
45
- }
46
- return true;
47
- }
48
- async componentDidUpdate(prevProps) {
49
- if (this.overlay) {
50
- attachProps(this.overlay, this.props, prevProps);
51
- }
52
- if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
53
- this.present(prevProps);
54
- }
55
- if (this.overlay && prevProps.isOpen !== this.props.isOpen && this.props.isOpen === false) {
56
- await this.overlay.dismiss();
57
- isDismissing = false;
58
- /**
59
- * Now that the overlay is dismissed
60
- * we need to render again so that any
61
- * inner components will be unmounted
62
- */
63
- this.forceUpdate();
64
- }
65
- }
66
- async present(prevProps) {
67
- const { children, isOpen, onDidDismiss, onDidPresent, onWillDismiss, onWillPresent, ...cProps } = this.props;
68
- const elementProps = {
69
- ...cProps,
70
- ref: this.props.forwardedRef,
71
- [didDismissEventName]: this.handleDismiss,
72
- [didPresentEventName]: (e) => this.props.onDidPresent && this.props.onDidPresent(e),
73
- [willDismissEventName]: (e) => this.props.onWillDismiss && this.props.onWillDismiss(e),
74
- [willPresentEventName]: (e) => this.props.onWillPresent && this.props.onWillPresent(e),
75
- };
76
- this.overlay = await controller.create({
77
- ...elementProps,
78
- component: this.el,
79
- componentProps: {},
80
- });
81
- setRef(this.props.forwardedRef, this.overlay);
82
- attachProps(this.overlay, elementProps, prevProps);
83
- await this.overlay.present();
84
- }
85
- render() {
86
- /**
87
- * Continue to render the component even when
88
- * overlay is dismissing otherwise component
89
- * will be hidden before animation is done.
90
- */
91
- return ReactDOM.createPortal(this.props.isOpen || isDismissing ? this.props.children : null, this.el);
92
- }
93
- }
94
- return React.forwardRef((props, ref) => {
95
- return React.createElement(Overlay, { ...props, forwardedRef: ref });
96
- });
97
- };
@@ -1,2 +0,0 @@
1
- export { createReactComponent } from './createComponent';
2
- export { createOverlayComponent } from './createOverlayComponent';
@@ -1,2 +0,0 @@
1
- export { createReactComponent } from './createComponent';
2
- export { createOverlayComponent } from './createOverlayComponent';
@@ -1,29 +0,0 @@
1
- export interface EventEmitter<T = any> {
2
- emit: (data?: T) => CustomEvent<T>;
3
- }
4
- export interface StyleReactProps {
5
- class?: string;
6
- className?: string;
7
- style?: {
8
- [key: string]: any;
9
- };
10
- }
11
- export interface OverlayEventDetail<T = any> {
12
- data?: T;
13
- role?: string;
14
- }
15
- export interface OverlayInterface {
16
- el: HTMLElement;
17
- animated: boolean;
18
- keyboardClose: boolean;
19
- overlayIndex: number;
20
- presented: boolean;
21
- enterAnimation?: any;
22
- leaveAnimation?: any;
23
- didPresent: EventEmitter<void>;
24
- willPresent: EventEmitter<void>;
25
- willDismiss: EventEmitter<OverlayEventDetail>;
26
- didDismiss: EventEmitter<OverlayEventDetail>;
27
- present(): Promise<void>;
28
- dismiss(data?: any, role?: string): Promise<boolean>;
29
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- export declare const attachProps: (node: HTMLElement, newProps: any, oldProps?: any) => void;
2
- export declare const getClassName: (classList: DOMTokenList, newProps: any, oldProps: any) => string;
3
- /**
4
- * Transforms a React event name to a browser event name.
5
- */
6
- export declare const transformReactEventName: (eventNameSuffix: string) => string;
7
- /**
8
- * Checks if an event is supported in the current execution environment.
9
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
10
- */
11
- export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
12
- export declare const syncEvent: (node: Element & {
13
- __events?: {
14
- [key: string]: ((e: Event) => any) | undefined;
15
- } | undefined;
16
- }, eventName: string, newEventHandler?: ((e: Event) => any) | undefined) => void;
@@ -1,107 +0,0 @@
1
- import { camelToDashCase } from './case';
2
- export const attachProps = (node, newProps, oldProps = {}) => {
3
- // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
4
- if (node instanceof Element) {
5
- // add any classes in className to the class list
6
- const className = getClassName(node.classList, newProps, oldProps);
7
- if (className !== '') {
8
- node.className = className;
9
- }
10
- Object.keys(newProps).forEach((name) => {
11
- if (name === 'children' ||
12
- name === 'style' ||
13
- name === 'ref' ||
14
- name === 'class' ||
15
- name === 'className' ||
16
- name === 'forwardedRef') {
17
- return;
18
- }
19
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
20
- const eventName = name.substring(2);
21
- const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
22
- if (!isCoveredByReact(eventNameLc)) {
23
- syncEvent(node, eventNameLc, newProps[name]);
24
- }
25
- }
26
- else {
27
- node[name] = newProps[name];
28
- const propType = typeof newProps[name];
29
- if (propType === 'string') {
30
- node.setAttribute(camelToDashCase(name), newProps[name]);
31
- }
32
- }
33
- });
34
- }
35
- };
36
- export const getClassName = (classList, newProps, oldProps) => {
37
- const newClassProp = newProps.className || newProps.class;
38
- const oldClassProp = oldProps.className || oldProps.class;
39
- // map the classes to Maps for performance
40
- const currentClasses = arrayToMap(classList);
41
- const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
42
- const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
43
- const finalClassNames = [];
44
- // loop through each of the current classes on the component
45
- // to see if it should be a part of the classNames added
46
- currentClasses.forEach((currentClass) => {
47
- if (incomingPropClasses.has(currentClass)) {
48
- // add it as its already included in classnames coming in from newProps
49
- finalClassNames.push(currentClass);
50
- incomingPropClasses.delete(currentClass);
51
- }
52
- else if (!oldPropClasses.has(currentClass)) {
53
- // add it as it has NOT been removed by user
54
- finalClassNames.push(currentClass);
55
- }
56
- });
57
- incomingPropClasses.forEach((s) => finalClassNames.push(s));
58
- return finalClassNames.join(' ');
59
- };
60
- /**
61
- * Transforms a React event name to a browser event name.
62
- */
63
- export const transformReactEventName = (eventNameSuffix) => {
64
- switch (eventNameSuffix) {
65
- case 'doubleclick':
66
- return 'dblclick';
67
- }
68
- return eventNameSuffix;
69
- };
70
- /**
71
- * Checks if an event is supported in the current execution environment.
72
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
73
- */
74
- export const isCoveredByReact = (eventNameSuffix) => {
75
- if (typeof document === 'undefined') {
76
- return true;
77
- }
78
- else {
79
- const eventName = 'on' + transformReactEventName(eventNameSuffix);
80
- let isSupported = eventName in document;
81
- if (!isSupported) {
82
- const element = document.createElement('div');
83
- element.setAttribute(eventName, 'return;');
84
- isSupported = typeof element[eventName] === 'function';
85
- }
86
- return isSupported;
87
- }
88
- };
89
- export const syncEvent = (node, eventName, newEventHandler) => {
90
- const eventStore = node.__events || (node.__events = {});
91
- const oldEventHandler = eventStore[eventName];
92
- // Remove old listener so they don't double up.
93
- if (oldEventHandler) {
94
- node.removeEventListener(eventName, oldEventHandler);
95
- }
96
- // Bind new listener.
97
- node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
98
- if (newEventHandler) {
99
- newEventHandler.call(this, e);
100
- }
101
- }));
102
- };
103
- const arrayToMap = (arr) => {
104
- const map = new Map();
105
- arr.forEach((s) => map.set(s, s));
106
- return map;
107
- };
@@ -1,2 +0,0 @@
1
- export declare const dashToPascalCase: (str: string) => string;
2
- export declare const camelToDashCase: (str: string) => string;
@@ -1,6 +0,0 @@
1
- export const dashToPascalCase = (str) => str
2
- .toLowerCase()
3
- .split('-')
4
- .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
5
- .join('');
6
- export const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
@@ -1,2 +0,0 @@
1
- export declare const isDevMode: () => boolean;
2
- export declare const deprecationWarning: (key: string, message: string) => void;
@@ -1,12 +0,0 @@
1
- export const isDevMode = () => {
2
- return process && process.env && process.env.NODE_ENV === 'development';
3
- };
4
- const warnings = {};
5
- export const deprecationWarning = (key, message) => {
6
- if (isDevMode()) {
7
- if (!warnings[key]) {
8
- console.warn(message);
9
- warnings[key] = true;
10
- }
11
- }
12
- };
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { StyleReactProps } from '../interfaces';
3
- export type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
4
- export type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
5
- export declare const setRef: (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => void;
6
- export declare const mergeRefs: (...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]) => React.RefCallback<any>;
7
- export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
8
- export declare const defineCustomElement: (tagName: string, customElement: any) => void;
9
- export * from './attachProps';
10
- export * from './case';