@poppy-ui/vue 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, getCurrentInstance, inject, h, withDirectives } from 'vue';
1
+ import { defineContainer, defineStencilSSRComponent } from '@stencil/vue-output-target/runtime';
2
2
  import { defineCustomElement } from '@poppy-ui/core/components/pop-accordion.js';
3
3
  import { defineCustomElement as defineCustomElement$1 } from '@poppy-ui/core/components/pop-accordion-group.js';
4
4
  import { defineCustomElement as defineCustomElement$2 } from '@poppy-ui/core/components/pop-avatar.js';
@@ -37,221 +37,68 @@ import { defineCustomElement as defineCustomElement$y } from '@poppy-ui/core/com
37
37
  import { defineCustomElement as defineCustomElement$z } from '@poppy-ui/core/components/pop-tooltip.js';
38
38
  import { initialize } from '@poppy-ui/core/components';
39
39
 
40
- // @ts-nocheck
41
- // It's easier and safer for Volar to disable typechecking and let the return type inference do its job.
42
- const UPDATE_VALUE_EVENT = 'update:modelValue';
43
- const MODEL_VALUE = 'modelValue';
44
- const ROUTER_LINK_VALUE = 'routerLink';
45
- const NAV_MANAGER = 'navManager';
46
- const ROUTER_PROP_PREFIX = 'router';
47
- const ARIA_PROP_PREFIX = 'aria';
48
- /**
49
- * Starting in Vue 3.1.0, all properties are
50
- * added as keys to the props object, even if
51
- * they are not being used. In order to correctly
52
- * account for both value props and v-model props,
53
- * we need to check if the key exists for Vue <3.1.0
54
- * and then check if it is not undefined for Vue >= 3.1.0.
55
- * See https://github.com/vuejs/vue-next/issues/3889
56
- */
57
- const EMPTY_PROP = Symbol();
58
- const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
59
- const getComponentClasses = (classes) => {
60
- return (classes === null || classes === void 0 ? void 0 : classes.split(' ')) || [];
61
- };
62
- const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
63
- var _a;
64
- return [...Array.from(((_a = ref.value) === null || _a === void 0 ? void 0 : _a.classList) || []), ...defaultClasses].filter((c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i);
65
- };
66
- /**
67
- * Create a callback to define a Vue component wrapper around a Web Component.
68
- *
69
- * @prop name - The component tag name (i.e. `ion-button`)
70
- * @prop componentProps - An array of properties on the
71
- * component. These usually match up with the @Prop definitions
72
- * in each component's TSX file.
73
- * @prop customElement - An option custom element instance to pass
74
- * to customElements.define. Only set if `includeImportCustomElements: true` in your config.
75
- * @prop modelProp - The prop that v-model binds to (i.e. value)
76
- * @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
77
- */
78
- const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent) => {
79
- /**
80
- * Create a Vue component wrapper around a Web Component.
81
- * Note: The `props` here are not all properties on a component.
82
- * They refer to whatever properties are set on an instance of a component.
83
- */
84
- if (defineCustomElement !== undefined) {
85
- defineCustomElement();
86
- }
87
- const Container = defineComponent((props, { attrs, slots, emit }) => {
88
- var _a;
89
- let modelPropValue = props[modelProp];
90
- const containerRef = ref();
91
- const classes = new Set(getComponentClasses(attrs.class));
92
- /**
93
- * This directive is responsible for updating any reactive
94
- * reference associated with v-model on the component.
95
- * This code must be run inside of the "created" callback.
96
- * Since the following listener callbacks as well as any potential
97
- * event callback defined in the developer's app are set on
98
- * the same element, we need to make sure the following callbacks
99
- * are set first so they fire first. If the developer's callback fires first
100
- * then the reactive reference will not have been updated yet.
101
- */
102
- const vModelDirective = {
103
- created: (el) => {
104
- const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
105
- eventsNames.forEach((eventName) => {
106
- el.addEventListener(eventName.toLowerCase(), (e) => {
107
- /**
108
- * Only update the v-model binding if the event's target is the element we are
109
- * listening on. For example, Component A could emit ionChange, but it could also
110
- * have a descendant Component B that also emits ionChange. We only want to update
111
- * the v-model for Component A when ionChange originates from that element and not
112
- * when ionChange bubbles up from Component B.
113
- */
114
- if (e.target.tagName === el.tagName) {
115
- modelPropValue = (e === null || e === void 0 ? void 0 : e.target)[modelProp];
116
- emit(UPDATE_VALUE_EVENT, modelPropValue);
117
- }
118
- });
119
- });
120
- },
121
- };
122
- const currentInstance = getCurrentInstance();
123
- const hasRouter = (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.appContext) === null || _a === void 0 ? void 0 : _a.provides[NAV_MANAGER];
124
- const navManager = hasRouter ? inject(NAV_MANAGER) : undefined;
125
- const handleRouterLink = (ev) => {
126
- const { routerLink } = props;
127
- if (routerLink === EMPTY_PROP)
128
- return;
129
- if (navManager !== undefined) {
130
- /**
131
- * This prevents the browser from
132
- * performing a page reload when pressing
133
- * an Ionic component with routerLink.
134
- * The page reload interferes with routing
135
- * and causes ion-back-button to disappear
136
- * since the local history is wiped on reload.
137
- */
138
- ev.preventDefault();
139
- let navigationPayload = { event: ev };
140
- for (const key in props) {
141
- const value = props[key];
142
- if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
143
- navigationPayload[key] = value;
144
- }
145
- }
146
- navManager.navigate(navigationPayload);
147
- }
148
- else {
149
- console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
150
- }
151
- };
152
- return () => {
153
- modelPropValue = props[modelProp];
154
- getComponentClasses(attrs.class).forEach((value) => {
155
- classes.add(value);
156
- });
157
- const oldClick = props.onClick;
158
- const handleClick = (ev) => {
159
- if (oldClick !== undefined) {
160
- oldClick(ev);
161
- }
162
- if (!ev.defaultPrevented) {
163
- handleRouterLink(ev);
164
- }
165
- };
166
- let propsToAdd = {
167
- ref: containerRef,
168
- class: getElementClasses(containerRef, classes),
169
- onClick: handleClick,
170
- };
171
- /**
172
- * We can use Object.entries here
173
- * to avoid the hasOwnProperty check,
174
- * but that would require 2 iterations
175
- * where as this only requires 1.
176
- */
177
- for (const key in props) {
178
- const value = props[key];
179
- if ((props.hasOwnProperty(key) && value !== EMPTY_PROP) || key.startsWith(ARIA_PROP_PREFIX)) {
180
- propsToAdd[key] = value;
181
- }
182
- }
183
- if (modelProp) {
184
- /**
185
- * If form value property was set using v-model
186
- * then we should use that value.
187
- * Otherwise, check to see if form value property
188
- * was set as a static value (i.e. no v-model).
189
- */
190
- if (props[MODEL_VALUE] !== EMPTY_PROP) {
191
- propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: props[MODEL_VALUE] });
192
- }
193
- else if (modelPropValue !== EMPTY_PROP) {
194
- propsToAdd = Object.assign(Object.assign({}, propsToAdd), { [modelProp]: modelPropValue });
195
- }
196
- }
197
- // If router link is defined, add href to props
198
- // in order to properly render an anchor tag inside
199
- // of components that should become activatable and
200
- // focusable with router link.
201
- if (props[ROUTER_LINK_VALUE] !== EMPTY_PROP) {
202
- propsToAdd = Object.assign(Object.assign({}, propsToAdd), { href: props[ROUTER_LINK_VALUE] });
203
- }
204
- /**
205
- * vModelDirective is only needed on components that support v-model.
206
- * As a result, we conditionally call withDirectives with v-model components.
207
- */
208
- const node = h(name, propsToAdd, slots.default && slots.default());
209
- return modelProp === undefined ? node : withDirectives(node, [[vModelDirective]]);
210
- };
211
- });
212
- if (typeof Container !== 'function') {
213
- Container.name = name;
214
- Container.props = {
215
- [ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP,
216
- };
217
- componentProps.forEach((componentProp) => {
218
- Container.props[componentProp] = DEFAULT_EMPTY_PROP;
219
- });
220
- if (modelProp) {
221
- Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
222
- Container.emits = [UPDATE_VALUE_EVENT];
223
- }
224
- }
225
- return Container;
226
- };
227
-
228
40
  /* eslint-disable */
229
41
  /* tslint:disable */
230
42
  /* auto-generated vue proxies */
231
- const PopAccordion = /*@__PURE__*/ defineContainer('pop-accordion', defineCustomElement, [
43
+ const PopAccordion = globalThis.window ? defineContainer('pop-accordion', defineCustomElement, [
232
44
  'readonly',
233
45
  'disabled',
234
46
  'name',
235
47
  'open'
236
- ]);
237
- const PopAccordionGroup = /*@__PURE__*/ defineContainer('pop-accordion-group', defineCustomElement$1, [
48
+ ]) : defineStencilSSRComponent({
49
+ tagName: 'pop-accordion',
50
+ hydrateModule: import('@poppy-ui/core/hydrate'),
51
+ props: {
52
+ 'readonly': [Boolean, "readonly"],
53
+ 'disabled': [Boolean, "disabled"],
54
+ 'name': [String, "name"],
55
+ 'open': [Boolean, "open"]
56
+ }
57
+ });
58
+ const PopAccordionGroup = globalThis.window ? defineContainer('pop-accordion-group', defineCustomElement$1, [
238
59
  'readonly',
239
60
  'disabled',
240
61
  'multiple',
241
62
  'active',
242
63
  'popChange',
243
64
  'popActiveChange'
244
- ], 'active', 'pop-change');
245
- const PopAvatar = /*@__PURE__*/ defineContainer('pop-avatar', defineCustomElement$2, [
65
+ ], 'active', 'pop-change') : defineStencilSSRComponent({
66
+ tagName: 'pop-accordion-group',
67
+ hydrateModule: import('@poppy-ui/core/hydrate'),
68
+ props: {
69
+ 'readonly': [Boolean, "readonly"],
70
+ 'disabled': [Boolean, "disabled"],
71
+ 'multiple': [Boolean, "multiple"],
72
+ 'active': [String, "active"],
73
+ 'onPopChange': [Function],
74
+ 'onPopActiveChange': [Function]
75
+ }
76
+ });
77
+ const PopAvatar = globalThis.window ? defineContainer('pop-avatar', defineCustomElement$2, [
246
78
  'placeholder'
247
- ]);
248
- const PopBadge = /*@__PURE__*/ defineContainer('pop-badge', defineCustomElement$3, [
79
+ ]) : defineStencilSSRComponent({
80
+ tagName: 'pop-avatar',
81
+ hydrateModule: import('@poppy-ui/core/hydrate'),
82
+ props: {
83
+ 'placeholder': [Boolean, "placeholder"]
84
+ }
85
+ });
86
+ const PopBadge = globalThis.window ? defineContainer('pop-badge', defineCustomElement$3, [
249
87
  'color',
250
88
  'size',
251
89
  'outlined',
252
90
  'as'
253
- ]);
254
- const PopButton = /*@__PURE__*/ defineContainer('pop-button', defineCustomElement$4, [
91
+ ]) : defineStencilSSRComponent({
92
+ tagName: 'pop-badge',
93
+ hydrateModule: import('@poppy-ui/core/hydrate'),
94
+ props: {
95
+ 'color': [String, "color"],
96
+ 'size': [String, "size"],
97
+ 'outlined': [Boolean, "outlined"],
98
+ 'as': [String, "as"]
99
+ }
100
+ });
101
+ const PopButton = globalThis.window ? defineContainer('pop-button', defineCustomElement$4, [
255
102
  'type',
256
103
  'form',
257
104
  'disabled',
@@ -263,14 +110,48 @@ const PopButton = /*@__PURE__*/ defineContainer('pop-button', defineCustomElemen
263
110
  'active',
264
111
  'popFocus',
265
112
  'popBlur'
266
- ]);
267
- const PopCard = /*@__PURE__*/ defineContainer('pop-card', defineCustomElement$5, [
113
+ ]) : defineStencilSSRComponent({
114
+ tagName: 'pop-button',
115
+ hydrateModule: import('@poppy-ui/core/hydrate'),
116
+ props: {
117
+ 'type': [String, "type"],
118
+ 'form': [String, "form"],
119
+ 'disabled': [Boolean, "disabled"],
120
+ 'color': [String, "color"],
121
+ 'size': [String, "size"],
122
+ 'outlined': [Boolean, "outlined"],
123
+ 'shape': [String, "shape"],
124
+ 'expand': [String, "expand"],
125
+ 'active': [Boolean, "active"],
126
+ 'onPopFocus': [Function],
127
+ 'onPopBlur': [Function]
128
+ }
129
+ });
130
+ const PopCard = globalThis.window ? defineContainer('pop-card', defineCustomElement$5, [
268
131
  'compact'
269
- ]);
270
- const PopCardActions = /*@__PURE__*/ defineContainer('pop-card-actions', defineCustomElement$6);
271
- const PopCardBody = /*@__PURE__*/ defineContainer('pop-card-body', defineCustomElement$7);
272
- const PopCardTitle = /*@__PURE__*/ defineContainer('pop-card-title', defineCustomElement$8);
273
- const PopCheckbox = /*@__PURE__*/ defineContainer('pop-checkbox', defineCustomElement$9, [
132
+ ]) : defineStencilSSRComponent({
133
+ tagName: 'pop-card',
134
+ hydrateModule: import('@poppy-ui/core/hydrate'),
135
+ props: {
136
+ 'compact': [Boolean, "compact"]
137
+ }
138
+ });
139
+ const PopCardActions = globalThis.window ? defineContainer('pop-card-actions', defineCustomElement$6) : defineStencilSSRComponent({
140
+ tagName: 'pop-card-actions',
141
+ hydrateModule: import('@poppy-ui/core/hydrate'),
142
+ props: {}
143
+ });
144
+ const PopCardBody = globalThis.window ? defineContainer('pop-card-body', defineCustomElement$7) : defineStencilSSRComponent({
145
+ tagName: 'pop-card-body',
146
+ hydrateModule: import('@poppy-ui/core/hydrate'),
147
+ props: {}
148
+ });
149
+ const PopCardTitle = globalThis.window ? defineContainer('pop-card-title', defineCustomElement$8) : defineStencilSSRComponent({
150
+ tagName: 'pop-card-title',
151
+ hydrateModule: import('@poppy-ui/core/hydrate'),
152
+ props: {}
153
+ });
154
+ const PopCheckbox = globalThis.window ? defineContainer('pop-checkbox', defineCustomElement$9, [
274
155
  'name',
275
156
  'value',
276
157
  'required',
@@ -284,21 +165,58 @@ const PopCheckbox = /*@__PURE__*/ defineContainer('pop-checkbox', defineCustomEl
284
165
  'popChange',
285
166
  'popFocus',
286
167
  'popBlur'
287
- ], 'checked', 'pop-change');
288
- const PopDivider = /*@__PURE__*/ defineContainer('pop-divider', defineCustomElement$a, [
168
+ ], 'checked', 'pop-change') : defineStencilSSRComponent({
169
+ tagName: 'pop-checkbox',
170
+ hydrateModule: import('@poppy-ui/core/hydrate'),
171
+ props: {
172
+ 'name': [String, "name"],
173
+ 'value': [String, "value"],
174
+ 'required': [Boolean, "required"],
175
+ 'readonly': [Boolean, "readonly"],
176
+ 'checked': [Boolean, "checked"],
177
+ 'indeterminate': [Boolean, "indeterminate"],
178
+ 'disabled': [Boolean, "disabled"],
179
+ 'color': [String, "color"],
180
+ 'size': [String, "size"],
181
+ 'placement': [String, "placement"],
182
+ 'onPopChange': [Function],
183
+ 'onPopFocus': [Function],
184
+ 'onPopBlur': [Function]
185
+ }
186
+ });
187
+ const PopDivider = globalThis.window ? defineContainer('pop-divider', defineCustomElement$a, [
289
188
  'orientation',
290
189
  'placement',
291
190
  'color'
292
- ]);
293
- const PopDrawer = /*@__PURE__*/ defineContainer('pop-drawer', defineCustomElement$b, [
191
+ ]) : defineStencilSSRComponent({
192
+ tagName: 'pop-divider',
193
+ hydrateModule: import('@poppy-ui/core/hydrate'),
194
+ props: {
195
+ 'orientation': [String, "orientation"],
196
+ 'placement': [String, "placement"],
197
+ 'color': [String, "color"]
198
+ }
199
+ });
200
+ const PopDrawer = globalThis.window ? defineContainer('pop-drawer', defineCustomElement$b, [
294
201
  'trigger',
295
202
  'triggerAction',
296
203
  'side',
297
204
  'open',
298
205
  'popDidPresent',
299
206
  'popDidDismiss'
300
- ]);
301
- const PopDropdown = /*@__PURE__*/ defineContainer('pop-dropdown', defineCustomElement$c, [
207
+ ]) : defineStencilSSRComponent({
208
+ tagName: 'pop-drawer',
209
+ hydrateModule: import('@poppy-ui/core/hydrate'),
210
+ props: {
211
+ 'trigger': [String, "trigger"],
212
+ 'triggerAction': [String, "trigger-action"],
213
+ 'side': [String, "side"],
214
+ 'open': [Boolean, "open"],
215
+ 'onPopDidPresent': [Function],
216
+ 'onPopDidDismiss': [Function]
217
+ }
218
+ });
219
+ const PopDropdown = globalThis.window ? defineContainer('pop-dropdown', defineCustomElement$c, [
302
220
  'side',
303
221
  'align',
304
222
  'open',
@@ -307,19 +225,49 @@ const PopDropdown = /*@__PURE__*/ defineContainer('pop-dropdown', defineCustomEl
307
225
  'showBackdrop',
308
226
  'didPresent',
309
227
  'didDismiss'
310
- ]);
311
- const PopImg = /*@__PURE__*/ defineContainer('pop-img', defineCustomElement$d, [
228
+ ]) : defineStencilSSRComponent({
229
+ tagName: 'pop-dropdown',
230
+ hydrateModule: import('@poppy-ui/core/hydrate'),
231
+ props: {
232
+ 'side': [String, "side"],
233
+ 'align': [String, "align"],
234
+ 'open': [Boolean, "open"],
235
+ 'triggerAction': [String, "trigger-action"],
236
+ 'debounce': [Number, "debounce"],
237
+ 'showBackdrop': [Boolean, "show-backdrop"],
238
+ 'onDidPresent': [Function],
239
+ 'onDidDismiss': [Function]
240
+ }
241
+ });
242
+ const PopImg = globalThis.window ? defineContainer('pop-img', defineCustomElement$d, [
312
243
  'src',
313
244
  'alt',
314
245
  'popWillLoad',
315
246
  'popDidLoad',
316
247
  'popError'
317
- ]);
318
- const PopIndicator = /*@__PURE__*/ defineContainer('pop-indicator', defineCustomElement$e, [
248
+ ]) : defineStencilSSRComponent({
249
+ tagName: 'pop-img',
250
+ hydrateModule: import('@poppy-ui/core/hydrate'),
251
+ props: {
252
+ 'src': [String, "src"],
253
+ 'alt': [String, "alt"],
254
+ 'onPopWillLoad': [Function],
255
+ 'onPopDidLoad': [Function],
256
+ 'onPopError': [Function]
257
+ }
258
+ });
259
+ const PopIndicator = globalThis.window ? defineContainer('pop-indicator', defineCustomElement$e, [
319
260
  'side',
320
261
  'position'
321
- ]);
322
- const PopInput = /*@__PURE__*/ defineContainer('pop-input', defineCustomElement$f, [
262
+ ]) : defineStencilSSRComponent({
263
+ tagName: 'pop-indicator',
264
+ hydrateModule: import('@poppy-ui/core/hydrate'),
265
+ props: {
266
+ 'side': [String, "side"],
267
+ 'position': [String, "position"]
268
+ }
269
+ });
270
+ const PopInput = globalThis.window ? defineContainer('pop-input', defineCustomElement$f, [
323
271
  'name',
324
272
  'type',
325
273
  'placeholder',
@@ -352,8 +300,42 @@ const PopInput = /*@__PURE__*/ defineContainer('pop-input', defineCustomElement$
352
300
  'popInput',
353
301
  'popFocus',
354
302
  'popBlur'
355
- ], 'value', 'pop-input');
356
- const PopInputFile = /*@__PURE__*/ defineContainer('pop-input-file', defineCustomElement$g, [
303
+ ], 'value', 'pop-input') : defineStencilSSRComponent({
304
+ tagName: 'pop-input',
305
+ hydrateModule: import('@poppy-ui/core/hydrate'),
306
+ props: {
307
+ 'name': [String, "name"],
308
+ 'type': [String, "type"],
309
+ 'placeholder': [String, "placeholder"],
310
+ 'min': [Number, "min"],
311
+ 'step': [String, "step"],
312
+ 'minLength': [Number, "min-length"],
313
+ 'maxLength': [Number, "max-length"],
314
+ 'multiple': [Boolean, "multiple"],
315
+ 'pattern': [String, "pattern"],
316
+ 'required': [Boolean, "required"],
317
+ 'readonly': [Boolean, "readonly"],
318
+ 'disabled': [Boolean, "disabled"],
319
+ 'autoFocus': [Boolean, "auto-focus"],
320
+ 'keyboard': [String, "keyboard"],
321
+ 'enterkeyhint': [String, "enterkeyhint"],
322
+ 'spellcheck': [Boolean, "spellcheck"],
323
+ 'autoComplete': [String, "auto-complete"],
324
+ 'autoCapitalize': [String, "auto-capitalize"],
325
+ 'bordered': [Boolean, "bordered"],
326
+ 'color': [String, "color"],
327
+ 'size': [String, "size"],
328
+ 'helperText': [String, "helper-text"],
329
+ 'errorText': [String, "error-text"],
330
+ 'counter': [Boolean, "counter"],
331
+ 'debounce': [Number, "debounce"],
332
+ 'onPopChange': [Function],
333
+ 'onPopInput': [Function],
334
+ 'onPopFocus': [Function],
335
+ 'onPopBlur': [Function]
336
+ }
337
+ });
338
+ const PopInputFile = globalThis.window ? defineContainer('pop-input-file', defineCustomElement$g, [
357
339
  'name',
358
340
  'value',
359
341
  'multiple',
@@ -369,28 +351,85 @@ const PopInputFile = /*@__PURE__*/ defineContainer('pop-input-file', defineCusto
369
351
  'popChange',
370
352
  'popFocus',
371
353
  'popBlur'
372
- ]);
373
- const PopItem = /*@__PURE__*/ defineContainer('pop-item', defineCustomElement$h, [
354
+ ]) : defineStencilSSRComponent({
355
+ tagName: 'pop-input-file',
356
+ hydrateModule: import('@poppy-ui/core/hydrate'),
357
+ props: {
358
+ 'name': [String, "name"],
359
+ 'multiple': [Boolean, "multiple"],
360
+ 'required': [Boolean, "required"],
361
+ 'readonly': [Boolean, "readonly"],
362
+ 'disabled': [Boolean, "disabled"],
363
+ 'autoFocus': [Boolean, "auto-focus"],
364
+ 'bordered': [Boolean, "bordered"],
365
+ 'color': [String, "color"],
366
+ 'size': [String, "size"],
367
+ 'helperText': [String, "helper-text"],
368
+ 'errorText': [String, "error-text"],
369
+ 'onPopChange': [Function],
370
+ 'onPopFocus': [Function],
371
+ 'onPopBlur': [Function]
372
+ }
373
+ });
374
+ const PopItem = globalThis.window ? defineContainer('pop-item', defineCustomElement$h, [
374
375
  'disabled'
375
- ]);
376
- const PopJoin = /*@__PURE__*/ defineContainer('pop-join', defineCustomElement$i, [
376
+ ]) : defineStencilSSRComponent({
377
+ tagName: 'pop-item',
378
+ hydrateModule: import('@poppy-ui/core/hydrate'),
379
+ props: {
380
+ 'disabled': [Boolean, "disabled"]
381
+ }
382
+ });
383
+ const PopJoin = globalThis.window ? defineContainer('pop-join', defineCustomElement$i, [
377
384
  'orientation'
378
- ]);
379
- const PopKbd = /*@__PURE__*/ defineContainer('pop-kbd', defineCustomElement$j, [
385
+ ]) : defineStencilSSRComponent({
386
+ tagName: 'pop-join',
387
+ hydrateModule: import('@poppy-ui/core/hydrate'),
388
+ props: {
389
+ 'orientation': [String, "orientation"]
390
+ }
391
+ });
392
+ const PopKbd = globalThis.window ? defineContainer('pop-kbd', defineCustomElement$j, [
380
393
  'size'
381
- ]);
382
- const PopList = /*@__PURE__*/ defineContainer('pop-list', defineCustomElement$k, [
394
+ ]) : defineStencilSSRComponent({
395
+ tagName: 'pop-kbd',
396
+ hydrateModule: import('@poppy-ui/core/hydrate'),
397
+ props: {
398
+ 'size': [String, "size"]
399
+ }
400
+ });
401
+ const PopList = globalThis.window ? defineContainer('pop-list', defineCustomElement$k, [
383
402
  'size',
384
403
  'orientation'
385
- ]);
386
- const PopLoading = /*@__PURE__*/ defineContainer('pop-loading', defineCustomElement$l, [
404
+ ]) : defineStencilSSRComponent({
405
+ tagName: 'pop-list',
406
+ hydrateModule: import('@poppy-ui/core/hydrate'),
407
+ props: {
408
+ 'size': [String, "size"],
409
+ 'orientation': [String, "orientation"]
410
+ }
411
+ });
412
+ const PopLoading = globalThis.window ? defineContainer('pop-loading', defineCustomElement$l, [
387
413
  'type',
388
414
  'size'
389
- ]);
390
- const PopMask = /*@__PURE__*/ defineContainer('pop-mask', defineCustomElement$m, [
415
+ ]) : defineStencilSSRComponent({
416
+ tagName: 'pop-loading',
417
+ hydrateModule: import('@poppy-ui/core/hydrate'),
418
+ props: {
419
+ 'type': [String, "type"],
420
+ 'size': [String, "size"]
421
+ }
422
+ });
423
+ const PopMask = globalThis.window ? defineContainer('pop-mask', defineCustomElement$m, [
391
424
  'type'
392
- ]);
393
- const PopModal = /*@__PURE__*/ defineContainer('pop-modal', defineCustomElement$n, [
425
+ ]) : defineStencilSSRComponent({
426
+ tagName: 'pop-mask',
427
+ hydrateModule: import('@poppy-ui/core/hydrate'),
428
+ props: {
429
+ 'type': [String, "type"]
430
+ }
431
+ });
432
+ const PopModal = globalThis.window ? defineContainer('pop-modal', defineCustomElement$n, [
394
433
  'trigger',
395
434
  'component',
396
435
  'componentProps',
@@ -399,9 +438,25 @@ const PopModal = /*@__PURE__*/ defineContainer('pop-modal', defineCustomElement$
399
438
  'open',
400
439
  'didPresent',
401
440
  'didDismiss'
402
- ]);
403
- const PopNavbar = /*@__PURE__*/ defineContainer('pop-navbar', defineCustomElement$o);
404
- const PopPopover = /*@__PURE__*/ defineContainer('pop-popover', defineCustomElement$p, [
441
+ ]) : defineStencilSSRComponent({
442
+ tagName: 'pop-modal',
443
+ hydrateModule: import('@poppy-ui/core/hydrate'),
444
+ props: {
445
+ 'trigger': [String, "trigger"],
446
+ 'component': [String, "component"],
447
+ 'showBackdrop': [Boolean, "show-backdrop"],
448
+ 'backdropDismiss': [Boolean, "backdrop-dismiss"],
449
+ 'open': [Boolean, "open"],
450
+ 'onDidPresent': [Function],
451
+ 'onDidDismiss': [Function]
452
+ }
453
+ });
454
+ const PopNavbar = globalThis.window ? defineContainer('pop-navbar', defineCustomElement$o) : defineStencilSSRComponent({
455
+ tagName: 'pop-navbar',
456
+ hydrateModule: import('@poppy-ui/core/hydrate'),
457
+ props: {}
458
+ });
459
+ const PopPopover = globalThis.window ? defineContainer('pop-popover', defineCustomElement$p, [
405
460
  'open',
406
461
  'animated',
407
462
  'showBackdrop',
@@ -415,13 +470,36 @@ const PopPopover = /*@__PURE__*/ defineContainer('pop-popover', defineCustomElem
415
470
  'didPresent',
416
471
  'willDismiss',
417
472
  'didDismiss'
418
- ]);
419
- const PopProgress = /*@__PURE__*/ defineContainer('pop-progress', defineCustomElement$q, [
473
+ ]) : defineStencilSSRComponent({
474
+ tagName: 'pop-popover',
475
+ hydrateModule: import('@poppy-ui/core/hydrate'),
476
+ props: {
477
+ 'open': [Boolean, "open"],
478
+ 'showBackdrop': [Boolean, "show-backdrop"],
479
+ 'backdropDismiss': [Boolean, "backdrop-dismiss"],
480
+ 'trigger': [String, "trigger"],
481
+ 'triggerAction': [String, "trigger-action"],
482
+ 'component': [String, "component"],
483
+ 'onWillPresent': [Function],
484
+ 'onDidPresent': [Function],
485
+ 'onWillDismiss': [Function],
486
+ 'onDidDismiss': [Function]
487
+ }
488
+ });
489
+ const PopProgress = globalThis.window ? defineContainer('pop-progress', defineCustomElement$q, [
420
490
  'value',
421
491
  'max',
422
492
  'color'
423
- ]);
424
- const PopRadio = /*@__PURE__*/ defineContainer('pop-radio', defineCustomElement$r, [
493
+ ]) : defineStencilSSRComponent({
494
+ tagName: 'pop-progress',
495
+ hydrateModule: import('@poppy-ui/core/hydrate'),
496
+ props: {
497
+ 'value': [Number, "value"],
498
+ 'max': [Number, "max"],
499
+ 'color': [String, "color"]
500
+ }
501
+ });
502
+ const PopRadio = globalThis.window ? defineContainer('pop-radio', defineCustomElement$r, [
425
503
  'name',
426
504
  'value',
427
505
  'checked',
@@ -432,8 +510,22 @@ const PopRadio = /*@__PURE__*/ defineContainer('pop-radio', defineCustomElement$
432
510
  'size',
433
511
  'popFocus',
434
512
  'popBlur'
435
- ], 'value', 'pop-change');
436
- const PopRadioGroup = /*@__PURE__*/ defineContainer('pop-radio-group', defineCustomElement$s, [
513
+ ], 'value', 'pop-change') : defineStencilSSRComponent({
514
+ tagName: 'pop-radio',
515
+ hydrateModule: import('@poppy-ui/core/hydrate'),
516
+ props: {
517
+ 'name': [String, "name"],
518
+ 'checked': [Boolean, "checked"],
519
+ 'required': [Boolean, "required"],
520
+ 'disabled': [Boolean, "disabled"],
521
+ 'autoFocus': [Boolean, "auto-focus"],
522
+ 'color': [String, "color"],
523
+ 'size': [String, "size"],
524
+ 'onPopFocus': [Function],
525
+ 'onPopBlur': [Function]
526
+ }
527
+ });
528
+ const PopRadioGroup = globalThis.window ? defineContainer('pop-radio-group', defineCustomElement$s, [
437
529
  'name',
438
530
  'value',
439
531
  'required',
@@ -444,8 +536,22 @@ const PopRadioGroup = /*@__PURE__*/ defineContainer('pop-radio-group', defineCus
444
536
  'size',
445
537
  'popChange',
446
538
  'popValueChange'
447
- ], 'value', 'pop-change');
448
- const PopRange = /*@__PURE__*/ defineContainer('pop-range', defineCustomElement$t, [
539
+ ], 'value', 'pop-change') : defineStencilSSRComponent({
540
+ tagName: 'pop-radio-group',
541
+ hydrateModule: import('@poppy-ui/core/hydrate'),
542
+ props: {
543
+ 'name': [String, "name"],
544
+ 'required': [Boolean, "required"],
545
+ 'disabled': [Boolean, "disabled"],
546
+ 'allowEmpty': [Boolean, "allow-empty"],
547
+ 'compare': [String, "compare"],
548
+ 'color': [String, "color"],
549
+ 'size': [String, "size"],
550
+ 'onPopChange': [Function],
551
+ 'onPopValueChange': [Function]
552
+ }
553
+ });
554
+ const PopRange = globalThis.window ? defineContainer('pop-range', defineCustomElement$t, [
449
555
  'name',
450
556
  'value',
451
557
  'min',
@@ -460,8 +566,27 @@ const PopRange = /*@__PURE__*/ defineContainer('pop-range', defineCustomElement$
460
566
  'popChange',
461
567
  'popFocus',
462
568
  'popBlur'
463
- ], 'value', 'pop-change');
464
- const PopSelect = /*@__PURE__*/ defineContainer('pop-select', defineCustomElement$u, [
569
+ ], 'value', 'pop-change') : defineStencilSSRComponent({
570
+ tagName: 'pop-range',
571
+ hydrateModule: import('@poppy-ui/core/hydrate'),
572
+ props: {
573
+ 'name': [String, "name"],
574
+ 'value': [Number, "value"],
575
+ 'min': [Number, "min"],
576
+ 'max': [Number, "max"],
577
+ 'step': [Number, "step"],
578
+ 'required': [Boolean, "required"],
579
+ 'disabled': [Boolean, "disabled"],
580
+ 'autoFocus': [Boolean, "auto-focus"],
581
+ 'color': [String, "color"],
582
+ 'size': [String, "size"],
583
+ 'debounce': [Number, "debounce"],
584
+ 'onPopChange': [Function],
585
+ 'onPopFocus': [Function],
586
+ 'onPopBlur': [Function]
587
+ }
588
+ });
589
+ const PopSelect = globalThis.window ? defineContainer('pop-select', defineCustomElement$u, [
465
590
  'name',
466
591
  'placeholder',
467
592
  'value',
@@ -483,19 +608,60 @@ const PopSelect = /*@__PURE__*/ defineContainer('pop-select', defineCustomElemen
483
608
  'popChange',
484
609
  'popFocus',
485
610
  'popBlur'
486
- ], 'value', 'pop-change');
487
- const PopSelectOption = /*@__PURE__*/ defineContainer('pop-select-option', defineCustomElement$v, [
611
+ ], 'value', 'pop-change') : defineStencilSSRComponent({
612
+ tagName: 'pop-select',
613
+ hydrateModule: import('@poppy-ui/core/hydrate'),
614
+ props: {
615
+ 'name': [String, "name"],
616
+ 'placeholder': [String, "placeholder"],
617
+ 'multiple': [Boolean, "multiple"],
618
+ 'min': [Number, "min"],
619
+ 'max': [Number, "max"],
620
+ 'required': [Boolean, "required"],
621
+ 'disabled': [Boolean, "disabled"],
622
+ 'autoFocus': [Boolean, "auto-focus"],
623
+ 'bordered': [Boolean, "bordered"],
624
+ 'color': [String, "color"],
625
+ 'size': [String, "size"],
626
+ 'selectedText': [String, "selected-text"],
627
+ 'helperText': [String, "helper-text"],
628
+ 'notEnoughErrorText': [String, "not-enough-error-text"],
629
+ 'tooManyErrorText': [String, "too-many-error-text"],
630
+ 'compare': [String, "compare"],
631
+ 'onPopDismiss': [Function],
632
+ 'onPopChange': [Function],
633
+ 'onPopFocus': [Function],
634
+ 'onPopBlur': [Function]
635
+ }
636
+ });
637
+ const PopSelectOption = globalThis.window ? defineContainer('pop-select-option', defineCustomElement$v, [
488
638
  'value',
489
639
  'disabled',
490
640
  'color',
491
641
  'size'
492
- ]);
493
- const PopSwap = /*@__PURE__*/ defineContainer('pop-swap', defineCustomElement$w, [
642
+ ]) : defineStencilSSRComponent({
643
+ tagName: 'pop-select-option',
644
+ hydrateModule: import('@poppy-ui/core/hydrate'),
645
+ props: {
646
+ 'disabled': [Boolean, "disabled"],
647
+ 'color': [String, "color"],
648
+ 'size': [String, "size"]
649
+ }
650
+ });
651
+ const PopSwap = globalThis.window ? defineContainer('pop-swap', defineCustomElement$w, [
494
652
  'type',
495
653
  'active',
496
654
  'popSwap'
497
- ], 'active', 'pop-change');
498
- const PopTextarea = /*@__PURE__*/ defineContainer('pop-textarea', defineCustomElement$x, [
655
+ ], 'active', 'pop-change') : defineStencilSSRComponent({
656
+ tagName: 'pop-swap',
657
+ hydrateModule: import('@poppy-ui/core/hydrate'),
658
+ props: {
659
+ 'type': [String, "type"],
660
+ 'active': [Boolean, "active"],
661
+ 'onPopSwap': [Function]
662
+ }
663
+ });
664
+ const PopTextarea = globalThis.window ? defineContainer('pop-textarea', defineCustomElement$x, [
499
665
  'name',
500
666
  'placeholder',
501
667
  'value',
@@ -524,8 +690,40 @@ const PopTextarea = /*@__PURE__*/ defineContainer('pop-textarea', defineCustomEl
524
690
  'popInput',
525
691
  'popFocus',
526
692
  'popBlur'
527
- ], 'value', 'pop-input');
528
- const PopToggle = /*@__PURE__*/ defineContainer('pop-toggle', defineCustomElement$y, [
693
+ ], 'value', 'pop-input') : defineStencilSSRComponent({
694
+ tagName: 'pop-textarea',
695
+ hydrateModule: import('@poppy-ui/core/hydrate'),
696
+ props: {
697
+ 'name': [String, "name"],
698
+ 'placeholder': [String, "placeholder"],
699
+ 'value': [String, "value"],
700
+ 'minLength': [Number, "min-length"],
701
+ 'maxLength': [Number, "max-length"],
702
+ 'cols': [Number, "cols"],
703
+ 'rows': [Number, "rows"],
704
+ 'required': [Boolean, "required"],
705
+ 'readonly': [Boolean, "readonly"],
706
+ 'disabled': [Boolean, "disabled"],
707
+ 'autoFocus': [Boolean, "auto-focus"],
708
+ 'keyboard': [String, "keyboard"],
709
+ 'enterkeyhint': [String, "enterkeyhint"],
710
+ 'spellcheck': [Boolean, "spellcheck"],
711
+ 'autoCapitalize': [String, "auto-capitalize"],
712
+ 'wrap': [String, "wrap"],
713
+ 'bordered': [Boolean, "bordered"],
714
+ 'color': [String, "color"],
715
+ 'size': [String, "size"],
716
+ 'helperText': [String, "helper-text"],
717
+ 'errorText': [String, "error-text"],
718
+ 'counter': [Boolean, "counter"],
719
+ 'debounce': [Number, "debounce"],
720
+ 'onPopChange': [Function],
721
+ 'onPopInput': [Function],
722
+ 'onPopFocus': [Function],
723
+ 'onPopBlur': [Function]
724
+ }
725
+ });
726
+ const PopToggle = globalThis.window ? defineContainer('pop-toggle', defineCustomElement$y, [
529
727
  'name',
530
728
  'value',
531
729
  'required',
@@ -538,13 +736,39 @@ const PopToggle = /*@__PURE__*/ defineContainer('pop-toggle', defineCustomElemen
538
736
  'popChange',
539
737
  'popFocus',
540
738
  'popBlur'
541
- ], 'checked', 'pop-change');
542
- const PopTooltip = /*@__PURE__*/ defineContainer('pop-tooltip', defineCustomElement$z, [
739
+ ], 'checked', 'pop-change') : defineStencilSSRComponent({
740
+ tagName: 'pop-toggle',
741
+ hydrateModule: import('@poppy-ui/core/hydrate'),
742
+ props: {
743
+ 'name': [String, "name"],
744
+ 'value': [String, "value"],
745
+ 'required': [Boolean, "required"],
746
+ 'readonly': [Boolean, "readonly"],
747
+ 'checked': [Boolean, "checked"],
748
+ 'indeterminate': [Boolean, "indeterminate"],
749
+ 'disabled': [Boolean, "disabled"],
750
+ 'color': [String, "color"],
751
+ 'size': [String, "size"],
752
+ 'onPopChange': [Function],
753
+ 'onPopFocus': [Function],
754
+ 'onPopBlur': [Function]
755
+ }
756
+ });
757
+ const PopTooltip = globalThis.window ? defineContainer('pop-tooltip', defineCustomElement$z, [
543
758
  'value',
544
759
  'color',
545
760
  'position',
546
761
  'open'
547
- ]);
762
+ ]) : defineStencilSSRComponent({
763
+ tagName: 'pop-tooltip',
764
+ hydrateModule: import('@poppy-ui/core/hydrate'),
765
+ props: {
766
+ 'value': [String, "value"],
767
+ 'color': [String, "color"],
768
+ 'position': [String, "position"],
769
+ 'open': [Boolean, "open"]
770
+ }
771
+ });
548
772
 
549
773
  const toKebabCase = (eventName) => {
550
774
  return eventName.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();