@vertexvis/ui-react 0.1.5-canary.8 → 1.0.0-canary.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.
@@ -0,0 +1,202 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
6
+ import { type InputChangeEventDetail, type Point, type RadioChangeEventDetail, type ResizeEventDetails, type Result, type SelectionChangedDetails, type SliderChangeEventDetails, type VertexBannerCustomEvent, type VertexCardCustomEvent, type VertexClickToEditTextfieldCustomEvent, type VertexColorCirclePickerCustomEvent, type VertexColorPickerCustomEvent, type VertexContextMenuCustomEvent, type VertexDialogCustomEvent, type VertexDraggablePopoverCustomEvent, type VertexDropdownMenuCustomEvent, type VertexExpandableCustomEvent, type VertexHelpTooltipCustomEvent, type VertexMenuCustomEvent, type VertexPopoverCustomEvent, type VertexRadioCustomEvent, type VertexRadioGroupCustomEvent, type VertexResizableCustomEvent, type VertexResultListCustomEvent, type VertexSearchBarCustomEvent, type VertexSelectCustomEvent, type VertexSliderCustomEvent, type VertexTabCustomEvent, type VertexTabsCustomEvent, type VertexTextfieldCustomEvent, type VertexToastCustomEvent, type VertexToggleCustomEvent } from "@vertexvis/ui";
7
+ import type { Components } from "@vertexvis/ui/dist/components";
8
+ import { VertexAutoResizeTextarea as VertexAutoResizeTextareaElement } from "@vertexvis/ui/dist/components/vertex-auto-resize-textarea.js";
9
+ import { VertexAvatarGroup as VertexAvatarGroupElement } from "@vertexvis/ui/dist/components/vertex-avatar-group.js";
10
+ import { VertexAvatar as VertexAvatarElement } from "@vertexvis/ui/dist/components/vertex-avatar.js";
11
+ import { VertexBadge as VertexBadgeElement } from "@vertexvis/ui/dist/components/vertex-badge.js";
12
+ import { VertexBanner as VertexBannerElement } from "@vertexvis/ui/dist/components/vertex-banner.js";
13
+ import { VertexButton as VertexButtonElement } from "@vertexvis/ui/dist/components/vertex-button.js";
14
+ import { VertexCardGroup as VertexCardGroupElement } from "@vertexvis/ui/dist/components/vertex-card-group.js";
15
+ import { VertexCard as VertexCardElement } from "@vertexvis/ui/dist/components/vertex-card.js";
16
+ import { VertexChip as VertexChipElement } from "@vertexvis/ui/dist/components/vertex-chip.js";
17
+ import { VertexClickToEditTextfield as VertexClickToEditTextfieldElement } from "@vertexvis/ui/dist/components/vertex-click-to-edit-textfield.js";
18
+ import { VertexCollapsible as VertexCollapsibleElement } from "@vertexvis/ui/dist/components/vertex-collapsible.js";
19
+ import { VertexColorCirclePicker as VertexColorCirclePickerElement } from "@vertexvis/ui/dist/components/vertex-color-circle-picker.js";
20
+ import { VertexColorPicker as VertexColorPickerElement } from "@vertexvis/ui/dist/components/vertex-color-picker.js";
21
+ import { VertexColorSwatch as VertexColorSwatchElement } from "@vertexvis/ui/dist/components/vertex-color-swatch.js";
22
+ import { VertexContextMenu as VertexContextMenuElement } from "@vertexvis/ui/dist/components/vertex-context-menu.js";
23
+ import { VertexDialog as VertexDialogElement } from "@vertexvis/ui/dist/components/vertex-dialog.js";
24
+ import { VertexDraggablePopover as VertexDraggablePopoverElement } from "@vertexvis/ui/dist/components/vertex-draggable-popover.js";
25
+ import { VertexDropdownMenu as VertexDropdownMenuElement } from "@vertexvis/ui/dist/components/vertex-dropdown-menu.js";
26
+ import { VertexExpandable as VertexExpandableElement } from "@vertexvis/ui/dist/components/vertex-expandable.js";
27
+ import { VertexHelpTooltip as VertexHelpTooltipElement } from "@vertexvis/ui/dist/components/vertex-help-tooltip.js";
28
+ import { VertexIconButton as VertexIconButtonElement } from "@vertexvis/ui/dist/components/vertex-icon-button.js";
29
+ import { VertexIcon as VertexIconElement } from "@vertexvis/ui/dist/components/vertex-icon.js";
30
+ import { VertexLogoLoading as VertexLogoLoadingElement } from "@vertexvis/ui/dist/components/vertex-logo-loading.js";
31
+ import { VertexMenuDivider as VertexMenuDividerElement } from "@vertexvis/ui/dist/components/vertex-menu-divider.js";
32
+ import { VertexMenuItem as VertexMenuItemElement } from "@vertexvis/ui/dist/components/vertex-menu-item.js";
33
+ import { VertexMenu as VertexMenuElement } from "@vertexvis/ui/dist/components/vertex-menu.js";
34
+ import { VertexPopover as VertexPopoverElement } from "@vertexvis/ui/dist/components/vertex-popover.js";
35
+ import { VertexRadioGroup as VertexRadioGroupElement } from "@vertexvis/ui/dist/components/vertex-radio-group.js";
36
+ import { VertexRadio as VertexRadioElement } from "@vertexvis/ui/dist/components/vertex-radio.js";
37
+ import { VertexResizable as VertexResizableElement } from "@vertexvis/ui/dist/components/vertex-resizable.js";
38
+ import { VertexResultList as VertexResultListElement } from "@vertexvis/ui/dist/components/vertex-result-list.js";
39
+ import { VertexSearchBar as VertexSearchBarElement } from "@vertexvis/ui/dist/components/vertex-search-bar.js";
40
+ import { VertexSelect as VertexSelectElement } from "@vertexvis/ui/dist/components/vertex-select.js";
41
+ import { VertexSlider as VertexSliderElement } from "@vertexvis/ui/dist/components/vertex-slider.js";
42
+ import { VertexSpinner as VertexSpinnerElement } from "@vertexvis/ui/dist/components/vertex-spinner.js";
43
+ import { VertexTab as VertexTabElement } from "@vertexvis/ui/dist/components/vertex-tab.js";
44
+ import { VertexTabs as VertexTabsElement } from "@vertexvis/ui/dist/components/vertex-tabs.js";
45
+ import { VertexTextfield as VertexTextfieldElement } from "@vertexvis/ui/dist/components/vertex-textfield.js";
46
+ import { VertexToast as VertexToastElement } from "@vertexvis/ui/dist/components/vertex-toast.js";
47
+ import { VertexToggle as VertexToggleElement } from "@vertexvis/ui/dist/components/vertex-toggle.js";
48
+ import { VertexTooltip as VertexTooltipElement } from "@vertexvis/ui/dist/components/vertex-tooltip.js";
49
+ export type VertexAutoResizeTextareaEvents = NonNullable<unknown>;
50
+ export declare const VertexAutoResizeTextarea: StencilReactComponent<VertexAutoResizeTextareaElement, VertexAutoResizeTextareaEvents, Components.VertexAutoResizeTextarea>;
51
+ export type VertexAvatarEvents = NonNullable<unknown>;
52
+ export declare const VertexAvatar: StencilReactComponent<VertexAvatarElement, VertexAvatarEvents, Components.VertexAvatar>;
53
+ export type VertexAvatarGroupEvents = NonNullable<unknown>;
54
+ export declare const VertexAvatarGroup: StencilReactComponent<VertexAvatarGroupElement, VertexAvatarGroupEvents, Components.VertexAvatarGroup>;
55
+ export type VertexBadgeEvents = NonNullable<unknown>;
56
+ export declare const VertexBadge: StencilReactComponent<VertexBadgeElement, VertexBadgeEvents, Components.VertexBadge>;
57
+ export type VertexBannerEvents = {
58
+ onClosed: EventName<VertexBannerCustomEvent<void>>;
59
+ };
60
+ export declare const VertexBanner: StencilReactComponent<VertexBannerElement, VertexBannerEvents, Components.VertexBanner>;
61
+ export type VertexButtonEvents = NonNullable<unknown>;
62
+ export declare const VertexButton: StencilReactComponent<VertexButtonElement, VertexButtonEvents, Components.VertexButton>;
63
+ export type VertexCardEvents = {
64
+ onContentClick: EventName<VertexCardCustomEvent<MouseEvent>>;
65
+ };
66
+ export declare const VertexCard: StencilReactComponent<VertexCardElement, VertexCardEvents, Components.VertexCard>;
67
+ export type VertexCardGroupEvents = NonNullable<unknown>;
68
+ export declare const VertexCardGroup: StencilReactComponent<VertexCardGroupElement, VertexCardGroupEvents, Components.VertexCardGroup>;
69
+ export type VertexChipEvents = NonNullable<unknown>;
70
+ export declare const VertexChip: StencilReactComponent<VertexChipElement, VertexChipEvents, Components.VertexChip>;
71
+ export type VertexClickToEditTextfieldEvents = {
72
+ onInputFocus: EventName<VertexClickToEditTextfieldCustomEvent<FocusEvent>>;
73
+ onInputBlur: EventName<VertexClickToEditTextfieldCustomEvent<FocusEvent>>;
74
+ onInputInput: EventName<VertexClickToEditTextfieldCustomEvent<InputChangeEventDetail>>;
75
+ onInputChange: EventName<VertexClickToEditTextfieldCustomEvent<InputChangeEventDetail>>;
76
+ onInputSubmit: EventName<VertexClickToEditTextfieldCustomEvent<InputChangeEventDetail>>;
77
+ };
78
+ export declare const VertexClickToEditTextfield: StencilReactComponent<VertexClickToEditTextfieldElement, VertexClickToEditTextfieldEvents, Components.VertexClickToEditTextfield>;
79
+ export type VertexCollapsibleEvents = NonNullable<unknown>;
80
+ export declare const VertexCollapsible: StencilReactComponent<VertexCollapsibleElement, VertexCollapsibleEvents, Components.VertexCollapsible>;
81
+ export type VertexColorCirclePickerEvents = {
82
+ onSelectionChanged: EventName<VertexColorCirclePickerCustomEvent<SelectionChangedDetails>>;
83
+ };
84
+ export declare const VertexColorCirclePicker: StencilReactComponent<VertexColorCirclePickerElement, VertexColorCirclePickerEvents, Components.VertexColorCirclePicker>;
85
+ export type VertexColorPickerEvents = {
86
+ onValueInput: EventName<VertexColorPickerCustomEvent<string>>;
87
+ onValueChanged: EventName<VertexColorPickerCustomEvent<string>>;
88
+ };
89
+ export declare const VertexColorPicker: StencilReactComponent<VertexColorPickerElement, VertexColorPickerEvents, Components.VertexColorPicker>;
90
+ export type VertexColorSwatchEvents = NonNullable<unknown>;
91
+ export declare const VertexColorSwatch: StencilReactComponent<VertexColorSwatchElement, VertexColorSwatchEvents, Components.VertexColorSwatch>;
92
+ export type VertexContextMenuEvents = {
93
+ onMenuOpened: EventName<VertexContextMenuCustomEvent<PointerEvent>>;
94
+ onMenuClosed: EventName<VertexContextMenuCustomEvent<any>>;
95
+ };
96
+ export declare const VertexContextMenu: StencilReactComponent<VertexContextMenuElement, VertexContextMenuEvents, Components.VertexContextMenu>;
97
+ export type VertexDialogEvents = {
98
+ onBackdropClick: EventName<VertexDialogCustomEvent<void>>;
99
+ onClosed: EventName<VertexDialogCustomEvent<void>>;
100
+ };
101
+ export declare const VertexDialog: StencilReactComponent<VertexDialogElement, VertexDialogEvents, Components.VertexDialog>;
102
+ export type VertexDraggablePopoverEvents = {
103
+ onPositionChanged: EventName<VertexDraggablePopoverCustomEvent<Point>>;
104
+ };
105
+ export declare const VertexDraggablePopover: StencilReactComponent<VertexDraggablePopoverElement, VertexDraggablePopoverEvents, Components.VertexDraggablePopover>;
106
+ export type VertexDropdownMenuEvents = {
107
+ onMenuOpened: EventName<VertexDropdownMenuCustomEvent<UIEvent>>;
108
+ onMenuClosed: EventName<VertexDropdownMenuCustomEvent<any>>;
109
+ };
110
+ export declare const VertexDropdownMenu: StencilReactComponent<VertexDropdownMenuElement, VertexDropdownMenuEvents, Components.VertexDropdownMenu>;
111
+ export type VertexExpandableEvents = {
112
+ onExpand: EventName<VertexExpandableCustomEvent<void>>;
113
+ onCollapse: EventName<VertexExpandableCustomEvent<void>>;
114
+ };
115
+ export declare const VertexExpandable: StencilReactComponent<VertexExpandableElement, VertexExpandableEvents, Components.VertexExpandable>;
116
+ export type VertexHelpTooltipEvents = {
117
+ onMenuOpened: EventName<VertexHelpTooltipCustomEvent<UIEvent>>;
118
+ onMenuClosed: EventName<VertexHelpTooltipCustomEvent<any>>;
119
+ };
120
+ export declare const VertexHelpTooltip: StencilReactComponent<VertexHelpTooltipElement, VertexHelpTooltipEvents, Components.VertexHelpTooltip>;
121
+ export type VertexIconEvents = NonNullable<unknown>;
122
+ export declare const VertexIcon: StencilReactComponent<VertexIconElement, VertexIconEvents, Components.VertexIcon>;
123
+ export type VertexIconButtonEvents = NonNullable<unknown>;
124
+ export declare const VertexIconButton: StencilReactComponent<VertexIconButtonElement, VertexIconButtonEvents, Components.VertexIconButton>;
125
+ export type VertexLogoLoadingEvents = NonNullable<unknown>;
126
+ export declare const VertexLogoLoading: StencilReactComponent<VertexLogoLoadingElement, VertexLogoLoadingEvents, Components.VertexLogoLoading>;
127
+ export type VertexMenuEvents = {
128
+ onMenuClosed: EventName<VertexMenuCustomEvent<any>>;
129
+ };
130
+ export declare const VertexMenu: StencilReactComponent<VertexMenuElement, VertexMenuEvents, Components.VertexMenu>;
131
+ export type VertexMenuDividerEvents = NonNullable<unknown>;
132
+ export declare const VertexMenuDivider: StencilReactComponent<VertexMenuDividerElement, VertexMenuDividerEvents, Components.VertexMenuDivider>;
133
+ export type VertexMenuItemEvents = NonNullable<unknown>;
134
+ export declare const VertexMenuItem: StencilReactComponent<VertexMenuItemElement, VertexMenuItemEvents, Components.VertexMenuItem>;
135
+ export type VertexPopoverEvents = {
136
+ onDismissed: EventName<VertexPopoverCustomEvent<void>>;
137
+ };
138
+ export declare const VertexPopover: StencilReactComponent<VertexPopoverElement, VertexPopoverEvents, Components.VertexPopover>;
139
+ export type VertexRadioEvents = {
140
+ onValueChanged: EventName<VertexRadioCustomEvent<RadioChangeEventDetail>>;
141
+ };
142
+ export declare const VertexRadio: StencilReactComponent<VertexRadioElement, VertexRadioEvents, Components.VertexRadio>;
143
+ export type VertexRadioGroupEvents = {
144
+ onValueChanged: EventName<VertexRadioGroupCustomEvent<string>>;
145
+ };
146
+ export declare const VertexRadioGroup: StencilReactComponent<VertexRadioGroupElement, VertexRadioGroupEvents, Components.VertexRadioGroup>;
147
+ export type VertexResizableEvents = {
148
+ onResizeStart: EventName<VertexResizableCustomEvent<ResizeEventDetails>>;
149
+ onResizeEnd: EventName<VertexResizableCustomEvent<ResizeEventDetails>>;
150
+ };
151
+ export declare const VertexResizable: StencilReactComponent<VertexResizableElement, VertexResizableEvents, Components.VertexResizable>;
152
+ export type VertexResultListEvents = {
153
+ onEnterPressed: EventName<VertexResultListCustomEvent<Result>>;
154
+ onResultClick: EventName<VertexResultListCustomEvent<Result>>;
155
+ };
156
+ export declare const VertexResultList: StencilReactComponent<VertexResultListElement, VertexResultListEvents, Components.VertexResultList>;
157
+ export type VertexSearchBarEvents = {
158
+ onSearchChanged: EventName<VertexSearchBarCustomEvent<string>>;
159
+ onInputChanged: EventName<VertexSearchBarCustomEvent<string>>;
160
+ onResultReplaced: EventName<VertexSearchBarCustomEvent<Result>>;
161
+ onInputFocus: EventName<VertexSearchBarCustomEvent<FocusEvent>>;
162
+ onInputBlur: EventName<VertexSearchBarCustomEvent<FocusEvent>>;
163
+ };
164
+ export declare const VertexSearchBar: StencilReactComponent<VertexSearchBarElement, VertexSearchBarEvents, Components.VertexSearchBar>;
165
+ export type VertexSelectEvents = {
166
+ onOptionChanged: EventName<VertexSelectCustomEvent<string>>;
167
+ };
168
+ export declare const VertexSelect: StencilReactComponent<VertexSelectElement, VertexSelectEvents, Components.VertexSelect>;
169
+ export type VertexSliderEvents = {
170
+ onValueChange: EventName<VertexSliderCustomEvent<SliderChangeEventDetails>>;
171
+ onValueInput: EventName<VertexSliderCustomEvent<SliderChangeEventDetails>>;
172
+ };
173
+ export declare const VertexSlider: StencilReactComponent<VertexSliderElement, VertexSliderEvents, Components.VertexSlider>;
174
+ export type VertexSpinnerEvents = NonNullable<unknown>;
175
+ export declare const VertexSpinner: StencilReactComponent<VertexSpinnerElement, VertexSpinnerEvents, Components.VertexSpinner>;
176
+ export type VertexTabEvents = {
177
+ onTabClick: EventName<VertexTabCustomEvent<string>>;
178
+ };
179
+ export declare const VertexTab: StencilReactComponent<VertexTabElement, VertexTabEvents, Components.VertexTab>;
180
+ export type VertexTabsEvents = {
181
+ onSelectedTabChanged: EventName<VertexTabsCustomEvent<string>>;
182
+ };
183
+ export declare const VertexTabs: StencilReactComponent<VertexTabsElement, VertexTabsEvents, Components.VertexTabs>;
184
+ export type VertexTextfieldEvents = {
185
+ onInputFocus: EventName<VertexTextfieldCustomEvent<FocusEvent>>;
186
+ onInputBlur: EventName<VertexTextfieldCustomEvent<FocusEvent>>;
187
+ onInputInput: EventName<VertexTextfieldCustomEvent<InputChangeEventDetail>>;
188
+ onInputChange: EventName<VertexTextfieldCustomEvent<InputChangeEventDetail>>;
189
+ onTextFieldKeyDown: EventName<VertexTextfieldCustomEvent<KeyboardEvent>>;
190
+ onInputAutofill: EventName<VertexTextfieldCustomEvent<InputChangeEventDetail>>;
191
+ };
192
+ export declare const VertexTextfield: StencilReactComponent<VertexTextfieldElement, VertexTextfieldEvents, Components.VertexTextfield>;
193
+ export type VertexToastEvents = {
194
+ onClosed: EventName<VertexToastCustomEvent<void>>;
195
+ };
196
+ export declare const VertexToast: StencilReactComponent<VertexToastElement, VertexToastEvents, Components.VertexToast>;
197
+ export type VertexToggleEvents = {
198
+ onValueChanged: EventName<VertexToggleCustomEvent<boolean>>;
199
+ };
200
+ export declare const VertexToggle: StencilReactComponent<VertexToggleElement, VertexToggleEvents, Components.VertexToggle>;
201
+ export type VertexTooltipEvents = NonNullable<unknown>;
202
+ export declare const VertexTooltip: StencilReactComponent<VertexTooltipElement, VertexTooltipEvents, Components.VertexTooltip>;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './generated/ui';
2
- export * from './loader';
1
+ export * from './generated/components';
2
+ export * from './loader';
package/dist/loader.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '@vertexvis/ui/loader';
1
+ export * from '@vertexvis/ui/loader';
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@vertexvis/ui-react",
3
- "version": "0.1.5-canary.8",
3
+ "version": "1.0.0-canary.0",
4
4
  "description": "React bindings for the Vertex component library.",
5
5
  "license": "MIT",
6
- "author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
6
+ "author": "Vertex Developers <support@vertex3d.com> (https://developer.vertex3d.com)",
7
7
  "homepage": "https://github.com/Vertexvis/vertex-web-ui#readme",
8
8
  "repository": {
9
9
  "type": "git",
@@ -12,8 +12,18 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/Vertexvis/vertex-web-ui/issues"
14
14
  },
15
- "main": "./dist/bundle.cjs.js",
16
- "module": "./dist/bundle.esm.js",
15
+ "type": "module",
16
+ "main": "./dist/bundle.cjs",
17
+ "module": "./dist/bundle.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/bundle.js",
23
+ "require": "./dist/bundle.cjs",
24
+ "default": "./dist/bundle.js"
25
+ }
26
+ },
17
27
  "typings": "./dist/index.d.ts",
18
28
  "files": [
19
29
  "dist/"
@@ -33,21 +43,24 @@
33
43
  "generate:docs": "../../scripts/generate_docs.sh"
34
44
  },
35
45
  "devDependencies": {
36
- "@types/react": "^18.3.2",
37
- "@types/react-dom": "^18.3.0",
38
- "@vertexvis/eslint-config-vertexvis-typescript": "^0.5.1",
39
- "@vertexwebui/build": "^0.1.5-canary.8",
46
+ "@types/react": "19.2.14",
47
+ "@types/react-dom": "19.2.3",
48
+ "@vertexvis/eslint-config-vertexvis-typescript": "^0.5.2",
49
+ "@vertexwebui/build": "^1.0.0-canary.0",
40
50
  "eslint": "8.49.0",
41
- "react": "^18.2.0",
42
- "react-dom": "^18.2.0",
43
- "rollup": "^2.80.0"
51
+ "react": "^19.2.5",
52
+ "react-dom": "^19.2.5",
53
+ "rollup": "2.80.0",
54
+ "tslib": "2.6.2"
44
55
  },
45
56
  "peerDependencies": {
46
- "react": ">=16.3.0 <19.0.0",
47
- "react-dom": ">=16.3.0 <19.0.0"
57
+ "react": ">=17.0.0 <20.0.0",
58
+ "react-dom": ">=17.0.0 <20.0.0",
59
+ "tslib": ">=2.4.0"
48
60
  },
49
61
  "dependencies": {
50
- "@vertexvis/ui": "^0.1.5-canary.8"
62
+ "@stencil/react-output-target": "1.5.2",
63
+ "@vertexvis/ui": "^1.0.0-canary.0"
51
64
  },
52
- "gitHead": "a2a6fcbae83628b4950dd2ee76a2e6eb5db7bb02"
65
+ "gitHead": "6d2c038b8f0057908c429d102455b1ee37c598e7"
53
66
  }
@@ -1,319 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var React = require('react');
7
- require('react-dom');
8
- var loader = require('@vertexvis/ui/loader');
9
-
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
-
12
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
-
14
- var dashToPascalCase = function (str) {
15
- return str
16
- .toLowerCase()
17
- .split('-')
18
- .map(function (segment) { return segment.charAt(0).toUpperCase() + segment.slice(1); })
19
- .join('');
20
- };
21
- var camelToDashCase = function (str) { return str.replace(/([A-Z])/g, function (m) { return "-".concat(m[0].toLowerCase()); }); };
22
-
23
- var attachProps = function (node, newProps, oldProps) {
24
- if (oldProps === void 0) { oldProps = {}; }
25
- // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
26
- if (node instanceof Element) {
27
- // add any classes in className to the class list
28
- var className = getClassName(node.classList, newProps, oldProps);
29
- if (className !== '') {
30
- node.className = className;
31
- }
32
- Object.keys(newProps).forEach(function (name) {
33
- if (name === 'children' ||
34
- name === 'style' ||
35
- name === 'ref' ||
36
- name === 'class' ||
37
- name === 'className' ||
38
- name === 'forwardedRef') {
39
- return;
40
- }
41
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
42
- var eventName = name.substring(2);
43
- var eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
44
- if (!isCoveredByReact(eventNameLc)) {
45
- syncEvent(node, eventNameLc, newProps[name]);
46
- }
47
- }
48
- else {
49
- node[name] = newProps[name];
50
- var propType = typeof newProps[name];
51
- if (propType === 'string') {
52
- node.setAttribute(camelToDashCase(name), newProps[name]);
53
- }
54
- }
55
- });
56
- }
57
- };
58
- var getClassName = function (classList, newProps, oldProps) {
59
- var newClassProp = newProps.className || newProps.class;
60
- var oldClassProp = oldProps.className || oldProps.class;
61
- // map the classes to Maps for performance
62
- var currentClasses = arrayToMap(classList);
63
- var incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
64
- var oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
65
- var finalClassNames = [];
66
- // loop through each of the current classes on the component
67
- // to see if it should be a part of the classNames added
68
- currentClasses.forEach(function (currentClass) {
69
- if (incomingPropClasses.has(currentClass)) {
70
- // add it as its already included in classnames coming in from newProps
71
- finalClassNames.push(currentClass);
72
- incomingPropClasses.delete(currentClass);
73
- }
74
- else if (!oldPropClasses.has(currentClass)) {
75
- // add it as it has NOT been removed by user
76
- finalClassNames.push(currentClass);
77
- }
78
- });
79
- incomingPropClasses.forEach(function (s) { return finalClassNames.push(s); });
80
- return finalClassNames.join(' ');
81
- };
82
- /**
83
- * Transforms a React event name to a browser event name.
84
- */
85
- var transformReactEventName = function (eventNameSuffix) {
86
- switch (eventNameSuffix) {
87
- case 'doubleclick':
88
- return 'dblclick';
89
- }
90
- return eventNameSuffix;
91
- };
92
- /**
93
- * Checks if an event is supported in the current execution environment.
94
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
95
- */
96
- var isCoveredByReact = function (eventNameSuffix) {
97
- if (typeof document === 'undefined') {
98
- return true;
99
- }
100
- else {
101
- var eventName = 'on' + transformReactEventName(eventNameSuffix);
102
- var isSupported = eventName in document;
103
- if (!isSupported) {
104
- var element = document.createElement('div');
105
- element.setAttribute(eventName, 'return;');
106
- isSupported = typeof element[eventName] === 'function';
107
- }
108
- return isSupported;
109
- }
110
- };
111
- var syncEvent = function (node, eventName, newEventHandler) {
112
- var eventStore = node.__events || (node.__events = {});
113
- var oldEventHandler = eventStore[eventName];
114
- // Remove old listener so they don't double up.
115
- if (oldEventHandler) {
116
- node.removeEventListener(eventName, oldEventHandler);
117
- }
118
- // Bind new listener.
119
- node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
120
- if (newEventHandler) {
121
- newEventHandler.call(this, e);
122
- }
123
- }));
124
- };
125
- var arrayToMap = function (arr) {
126
- var map = new Map();
127
- arr.forEach(function (s) { return map.set(s, s); });
128
- return map;
129
- };
130
-
131
- var setRef = function (ref, value) {
132
- if (typeof ref === 'function') {
133
- ref(value);
134
- }
135
- else if (ref != null) {
136
- // Cast as a MutableRef so we can assign current
137
- ref.current = value;
138
- }
139
- };
140
- var mergeRefs = function () {
141
- var refs = [];
142
- for (var _i = 0; _i < arguments.length; _i++) {
143
- refs[_i] = arguments[_i];
144
- }
145
- return function (value) {
146
- refs.forEach(function (ref) {
147
- setRef(ref, value);
148
- });
149
- };
150
- };
151
- var createForwardRef = function (ReactComponent, displayName) {
152
- var forwardRef = function (props, ref) {
153
- return React__default["default"].createElement(ReactComponent, tslib.__assign({}, props, { forwardedRef: ref }));
154
- };
155
- forwardRef.displayName = displayName;
156
- return React__default["default"].forwardRef(forwardRef);
157
- };
158
-
159
- var createReactComponent = function (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) {
160
- if (defineCustomElement !== undefined) {
161
- defineCustomElement();
162
- }
163
- var displayName = dashToPascalCase(tagName);
164
- var ReactComponent = /** @class */ (function (_super) {
165
- tslib.__extends(class_1, _super);
166
- function class_1(props) {
167
- var _this = _super.call(this, props) || this;
168
- _this.setComponentElRef = function (element) {
169
- _this.componentEl = element;
170
- };
171
- return _this;
172
- }
173
- class_1.prototype.componentDidMount = function () {
174
- this.componentDidUpdate(this.props);
175
- };
176
- class_1.prototype.componentDidUpdate = function (prevProps) {
177
- attachProps(this.componentEl, this.props, prevProps);
178
- };
179
- class_1.prototype.render = function () {
180
- var _a = this.props, children = _a.children, forwardedRef = _a.forwardedRef, style = _a.style; _a.className; _a.ref; var cProps = tslib.__rest(_a, ["children", "forwardedRef", "style", "className", "ref"]);
181
- var propsToPass = Object.keys(cProps).reduce(function (acc, name) {
182
- var value = cProps[name];
183
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
184
- var eventName = name.substring(2).toLowerCase();
185
- if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
186
- acc[name] = value;
187
- }
188
- }
189
- else {
190
- // we should only render strings, booleans, and numbers as attrs in html.
191
- // objects, functions, arrays etc get synced via properties on mount.
192
- var type = typeof value;
193
- if (type === 'string' || type === 'boolean' || type === 'number') {
194
- acc[camelToDashCase(name)] = value;
195
- }
196
- }
197
- return acc;
198
- }, {});
199
- if (manipulatePropsFunction) {
200
- propsToPass = manipulatePropsFunction(this.props, propsToPass);
201
- }
202
- var newProps = tslib.__assign(tslib.__assign({}, propsToPass), { ref: mergeRefs(forwardedRef, this.setComponentElRef), style: style });
203
- /**
204
- * We use createElement here instead of
205
- * React.createElement to work around a
206
- * bug in Vite (https://github.com/vitejs/vite/issues/6104).
207
- * React.createElement causes all elements to be rendered
208
- * as <tagname> instead of the actual Web Component.
209
- */
210
- return React.createElement(tagName, newProps, children);
211
- };
212
- Object.defineProperty(class_1, "displayName", {
213
- get: function () {
214
- return displayName;
215
- },
216
- enumerable: false,
217
- configurable: true
218
- });
219
- return class_1;
220
- }(React__default["default"].Component));
221
- // If context was passed to createReactComponent then conditionally add it to the Component Class
222
- if (ReactComponentContext) {
223
- ReactComponent.contextType = ReactComponentContext;
224
- }
225
- return createForwardRef(ReactComponent, displayName);
226
- };
227
-
228
- /* eslint-disable */
229
- loader.defineCustomElements();
230
- var VertexAutoResizeTextarea = /*@__PURE__*/ createReactComponent('vertex-auto-resize-textarea');
231
- var VertexAvatar = /*@__PURE__*/ createReactComponent('vertex-avatar');
232
- var VertexAvatarGroup = /*@__PURE__*/ createReactComponent('vertex-avatar-group');
233
- var VertexBadge = /*@__PURE__*/ createReactComponent('vertex-badge');
234
- var VertexBanner = /*@__PURE__*/ createReactComponent('vertex-banner');
235
- var VertexButton = /*@__PURE__*/ createReactComponent('vertex-button');
236
- var VertexCard = /*@__PURE__*/ createReactComponent('vertex-card');
237
- var VertexCardGroup = /*@__PURE__*/ createReactComponent('vertex-card-group');
238
- var VertexChip = /*@__PURE__*/ createReactComponent('vertex-chip');
239
- var VertexClickToEditTextfield = /*@__PURE__*/ createReactComponent('vertex-click-to-edit-textfield');
240
- var VertexCollapsible = /*@__PURE__*/ createReactComponent('vertex-collapsible');
241
- var VertexColorCirclePicker = /*@__PURE__*/ createReactComponent('vertex-color-circle-picker');
242
- var VertexColorPicker = /*@__PURE__*/ createReactComponent('vertex-color-picker');
243
- var VertexColorSwatch = /*@__PURE__*/ createReactComponent('vertex-color-swatch');
244
- var VertexContextMenu = /*@__PURE__*/ createReactComponent('vertex-context-menu');
245
- var VertexDialog = /*@__PURE__*/ createReactComponent('vertex-dialog');
246
- var VertexDraggablePopover = /*@__PURE__*/ createReactComponent('vertex-draggable-popover');
247
- var VertexDropdownMenu = /*@__PURE__*/ createReactComponent('vertex-dropdown-menu');
248
- var VertexExpandable = /*@__PURE__*/ createReactComponent('vertex-expandable');
249
- var VertexHelpTooltip = /*@__PURE__*/ createReactComponent('vertex-help-tooltip');
250
- var VertexIcon = /*@__PURE__*/ createReactComponent('vertex-icon');
251
- var VertexIconButton = /*@__PURE__*/ createReactComponent('vertex-icon-button');
252
- var VertexLogoLoading = /*@__PURE__*/ createReactComponent('vertex-logo-loading');
253
- var VertexMenu = /*@__PURE__*/ createReactComponent('vertex-menu');
254
- var VertexMenuDivider = /*@__PURE__*/ createReactComponent('vertex-menu-divider');
255
- var VertexMenuItem = /*@__PURE__*/ createReactComponent('vertex-menu-item');
256
- var VertexPopover = /*@__PURE__*/ createReactComponent('vertex-popover');
257
- var VertexRadio = /*@__PURE__*/ createReactComponent('vertex-radio');
258
- var VertexRadioGroup = /*@__PURE__*/ createReactComponent('vertex-radio-group');
259
- var VertexResizable = /*@__PURE__*/ createReactComponent('vertex-resizable');
260
- var VertexResultList = /*@__PURE__*/ createReactComponent('vertex-result-list');
261
- var VertexSearchBar = /*@__PURE__*/ createReactComponent('vertex-search-bar');
262
- var VertexSelect = /*@__PURE__*/ createReactComponent('vertex-select');
263
- var VertexSlider = /*@__PURE__*/ createReactComponent('vertex-slider');
264
- var VertexSpinner = /*@__PURE__*/ createReactComponent('vertex-spinner');
265
- var VertexTab = /*@__PURE__*/ createReactComponent('vertex-tab');
266
- var VertexTabs = /*@__PURE__*/ createReactComponent('vertex-tabs');
267
- var VertexTextfield = /*@__PURE__*/ createReactComponent('vertex-textfield');
268
- var VertexToast = /*@__PURE__*/ createReactComponent('vertex-toast');
269
- var VertexToggle = /*@__PURE__*/ createReactComponent('vertex-toggle');
270
- var VertexTooltip = /*@__PURE__*/ createReactComponent('vertex-tooltip');
271
-
272
- exports.VertexAutoResizeTextarea = VertexAutoResizeTextarea;
273
- exports.VertexAvatar = VertexAvatar;
274
- exports.VertexAvatarGroup = VertexAvatarGroup;
275
- exports.VertexBadge = VertexBadge;
276
- exports.VertexBanner = VertexBanner;
277
- exports.VertexButton = VertexButton;
278
- exports.VertexCard = VertexCard;
279
- exports.VertexCardGroup = VertexCardGroup;
280
- exports.VertexChip = VertexChip;
281
- exports.VertexClickToEditTextfield = VertexClickToEditTextfield;
282
- exports.VertexCollapsible = VertexCollapsible;
283
- exports.VertexColorCirclePicker = VertexColorCirclePicker;
284
- exports.VertexColorPicker = VertexColorPicker;
285
- exports.VertexColorSwatch = VertexColorSwatch;
286
- exports.VertexContextMenu = VertexContextMenu;
287
- exports.VertexDialog = VertexDialog;
288
- exports.VertexDraggablePopover = VertexDraggablePopover;
289
- exports.VertexDropdownMenu = VertexDropdownMenu;
290
- exports.VertexExpandable = VertexExpandable;
291
- exports.VertexHelpTooltip = VertexHelpTooltip;
292
- exports.VertexIcon = VertexIcon;
293
- exports.VertexIconButton = VertexIconButton;
294
- exports.VertexLogoLoading = VertexLogoLoading;
295
- exports.VertexMenu = VertexMenu;
296
- exports.VertexMenuDivider = VertexMenuDivider;
297
- exports.VertexMenuItem = VertexMenuItem;
298
- exports.VertexPopover = VertexPopover;
299
- exports.VertexRadio = VertexRadio;
300
- exports.VertexRadioGroup = VertexRadioGroup;
301
- exports.VertexResizable = VertexResizable;
302
- exports.VertexResultList = VertexResultList;
303
- exports.VertexSearchBar = VertexSearchBar;
304
- exports.VertexSelect = VertexSelect;
305
- exports.VertexSlider = VertexSlider;
306
- exports.VertexSpinner = VertexSpinner;
307
- exports.VertexTab = VertexTab;
308
- exports.VertexTabs = VertexTabs;
309
- exports.VertexTextfield = VertexTextfield;
310
- exports.VertexToast = VertexToast;
311
- exports.VertexToggle = VertexToggle;
312
- exports.VertexTooltip = VertexTooltip;
313
- Object.keys(loader).forEach(function (k) {
314
- if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
315
- enumerable: true,
316
- get: function () { return loader[k]; }
317
- });
318
- });
319
- //# sourceMappingURL=bundle.cjs.js.map