@xplor-education/core-stencil-components 2.0.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/LICENSE +21 -0
- package/components/index.d.ts +33 -0
- package/components/index.js +2324 -0
- package/components/index.js.map +1 -0
- package/components/p-B1W2qj2l.js +50 -0
- package/components/p-B1W2qj2l.js.map +1 -0
- package/components/p-BK_ATKuB.js +37 -0
- package/components/p-BK_ATKuB.js.map +1 -0
- package/components/p-CBSi5kQB.js +56 -0
- package/components/p-CBSi5kQB.js.map +1 -0
- package/components/p-CTD6SyTD.js +181 -0
- package/components/p-CTD6SyTD.js.map +1 -0
- package/components/p-Ddr35stE.js +117 -0
- package/components/p-Ddr35stE.js.map +1 -0
- package/components/p-x30CgLRv.js +184 -0
- package/components/p-x30CgLRv.js.map +1 -0
- package/components/xplor-alert-dialog.d.ts +11 -0
- package/components/xplor-alert-dialog.js +85 -0
- package/components/xplor-alert-dialog.js.map +1 -0
- package/components/xplor-alert-message.d.ts +11 -0
- package/components/xplor-alert-message.js +48 -0
- package/components/xplor-alert-message.js.map +1 -0
- package/components/xplor-assistant.d.ts +11 -0
- package/components/xplor-assistant.js +763 -0
- package/components/xplor-assistant.js.map +1 -0
- package/components/xplor-autocomplete.d.ts +11 -0
- package/components/xplor-autocomplete.js +268 -0
- package/components/xplor-autocomplete.js.map +1 -0
- package/components/xplor-avatar-and-name.d.ts +11 -0
- package/components/xplor-avatar-and-name.js +48 -0
- package/components/xplor-avatar-and-name.js.map +1 -0
- package/components/xplor-avatar.d.ts +11 -0
- package/components/xplor-avatar.js +9 -0
- package/components/xplor-avatar.js.map +1 -0
- package/components/xplor-badge-active.d.ts +11 -0
- package/components/xplor-badge-active.js +35 -0
- package/components/xplor-badge-active.js.map +1 -0
- package/components/xplor-badge-archived.d.ts +11 -0
- package/components/xplor-badge-archived.js +35 -0
- package/components/xplor-badge-archived.js.map +1 -0
- package/components/xplor-badge-deleted.d.ts +11 -0
- package/components/xplor-badge-deleted.js +35 -0
- package/components/xplor-badge-deleted.js.map +1 -0
- package/components/xplor-badge-expired.d.ts +11 -0
- package/components/xplor-badge-expired.js +35 -0
- package/components/xplor-badge-expired.js.map +1 -0
- package/components/xplor-badge-inactive.d.ts +11 -0
- package/components/xplor-badge-inactive.js +35 -0
- package/components/xplor-badge-inactive.js.map +1 -0
- package/components/xplor-badge-recalled.d.ts +11 -0
- package/components/xplor-badge-recalled.js +35 -0
- package/components/xplor-badge-recalled.js.map +1 -0
- package/components/xplor-badge-session-booking.d.ts +11 -0
- package/components/xplor-badge-session-booking.js +60 -0
- package/components/xplor-badge-session-booking.js.map +1 -0
- package/components/xplor-badge-upcoming.d.ts +11 -0
- package/components/xplor-badge-upcoming.js +35 -0
- package/components/xplor-badge-upcoming.js.map +1 -0
- package/components/xplor-badge-waitlist.d.ts +11 -0
- package/components/xplor-badge-waitlist.js +35 -0
- package/components/xplor-badge-waitlist.js.map +1 -0
- package/components/xplor-badge.d.ts +11 -0
- package/components/xplor-badge.js +151 -0
- package/components/xplor-badge.js.map +1 -0
- package/components/xplor-btn-back-to-parent.d.ts +11 -0
- package/components/xplor-btn-back-to-parent.js +72 -0
- package/components/xplor-btn-back-to-parent.js.map +1 -0
- package/components/xplor-btn-back.d.ts +11 -0
- package/components/xplor-btn-back.js +76 -0
- package/components/xplor-btn-back.js.map +1 -0
- package/components/xplor-btn-icon.d.ts +11 -0
- package/components/xplor-btn-icon.js +77 -0
- package/components/xplor-btn-icon.js.map +1 -0
- package/components/xplor-btn-menu.d.ts +11 -0
- package/components/xplor-btn-menu.js +105 -0
- package/components/xplor-btn-menu.js.map +1 -0
- package/components/xplor-btn-toggle-group.d.ts +11 -0
- package/components/xplor-btn-toggle-group.js +46 -0
- package/components/xplor-btn-toggle-group.js.map +1 -0
- package/components/xplor-btn-toggle-secondary.d.ts +11 -0
- package/components/xplor-btn-toggle-secondary.js +64 -0
- package/components/xplor-btn-toggle-secondary.js.map +1 -0
- package/components/xplor-btn-toggle.d.ts +11 -0
- package/components/xplor-btn-toggle.js +69 -0
- package/components/xplor-btn-toggle.js.map +1 -0
- package/components/xplor-btn-tooltip.d.ts +11 -0
- package/components/xplor-btn-tooltip.js +58 -0
- package/components/xplor-btn-tooltip.js.map +1 -0
- package/components/xplor-button.d.ts +11 -0
- package/components/xplor-button.js +9 -0
- package/components/xplor-button.js.map +1 -0
- package/components/xplor-chat-widget.d.ts +11 -0
- package/components/xplor-chat-widget.js +104 -0
- package/components/xplor-chat-widget.js.map +1 -0
- package/components/xplor-checkbox.d.ts +11 -0
- package/components/xplor-checkbox.js +124 -0
- package/components/xplor-checkbox.js.map +1 -0
- package/components/xplor-combobox.d.ts +11 -0
- package/components/xplor-combobox.js +278 -0
- package/components/xplor-combobox.js.map +1 -0
- package/components/xplor-datatable.d.ts +11 -0
- package/components/xplor-datatable.js +243 -0
- package/components/xplor-datatable.js.map +1 -0
- package/components/xplor-date-picker.d.ts +11 -0
- package/components/xplor-date-picker.js +268 -0
- package/components/xplor-date-picker.js.map +1 -0
- package/components/xplor-drag-and-drop-input.d.ts +11 -0
- package/components/xplor-drag-and-drop-input.js +137 -0
- package/components/xplor-drag-and-drop-input.js.map +1 -0
- package/components/xplor-dropdown.d.ts +11 -0
- package/components/xplor-dropdown.js +9 -0
- package/components/xplor-dropdown.js.map +1 -0
- package/components/xplor-expansion-panel.d.ts +11 -0
- package/components/xplor-expansion-panel.js +74 -0
- package/components/xplor-expansion-panel.js.map +1 -0
- package/components/xplor-expansion-panels.d.ts +11 -0
- package/components/xplor-expansion-panels.js +70 -0
- package/components/xplor-expansion-panels.js.map +1 -0
- package/components/xplor-file-upload.d.ts +11 -0
- package/components/xplor-file-upload.js +183 -0
- package/components/xplor-file-upload.js.map +1 -0
- package/components/xplor-inline-checkbox.d.ts +11 -0
- package/components/xplor-inline-checkbox.js +75 -0
- package/components/xplor-inline-checkbox.js.map +1 -0
- package/components/xplor-inline-date-picker.d.ts +11 -0
- package/components/xplor-inline-date-picker.js +9 -0
- package/components/xplor-inline-date-picker.js.map +1 -0
- package/components/xplor-inline-switch.d.ts +11 -0
- package/components/xplor-inline-switch.js +68 -0
- package/components/xplor-inline-switch.js.map +1 -0
- package/components/xplor-input-file.d.ts +11 -0
- package/components/xplor-input-file.js +121 -0
- package/components/xplor-input-file.js.map +1 -0
- package/components/xplor-input-search.d.ts +11 -0
- package/components/xplor-input-search.js +89 -0
- package/components/xplor-input-search.js.map +1 -0
- package/components/xplor-input-select.d.ts +11 -0
- package/components/xplor-input-select.js +168 -0
- package/components/xplor-input-select.js.map +1 -0
- package/components/xplor-input-send.d.ts +11 -0
- package/components/xplor-input-send.js +87 -0
- package/components/xplor-input-send.js.map +1 -0
- package/components/xplor-input-text-area.d.ts +11 -0
- package/components/xplor-input-text-area.js +131 -0
- package/components/xplor-input-text-area.js.map +1 -0
- package/components/xplor-input-text-secondary.d.ts +11 -0
- package/components/xplor-input-text-secondary.js +94 -0
- package/components/xplor-input-text-secondary.js.map +1 -0
- package/components/xplor-input-text.d.ts +11 -0
- package/components/xplor-input-text.js +129 -0
- package/components/xplor-input-text.js.map +1 -0
- package/components/xplor-input-title.d.ts +11 -0
- package/components/xplor-input-title.js +68 -0
- package/components/xplor-input-title.js.map +1 -0
- package/components/xplor-links.d.ts +11 -0
- package/components/xplor-links.js +38 -0
- package/components/xplor-links.js.map +1 -0
- package/components/xplor-modal-persistent.d.ts +11 -0
- package/components/xplor-modal-persistent.js +65 -0
- package/components/xplor-modal-persistent.js.map +1 -0
- package/components/xplor-modal.d.ts +11 -0
- package/components/xplor-modal.js +9 -0
- package/components/xplor-modal.js.map +1 -0
- package/components/xplor-nav-tabs.d.ts +11 -0
- package/components/xplor-nav-tabs.js +58 -0
- package/components/xplor-nav-tabs.js.map +1 -0
- package/components/xplor-section-card.d.ts +11 -0
- package/components/xplor-section-card.js +46 -0
- package/components/xplor-section-card.js.map +1 -0
- package/components/xplor-section-heading.d.ts +11 -0
- package/components/xplor-section-heading.js +43 -0
- package/components/xplor-section-heading.js.map +1 -0
- package/components/xplor-table.d.ts +11 -0
- package/components/xplor-table.js +275 -0
- package/components/xplor-table.js.map +1 -0
- package/components/xplor-text-bubble.d.ts +11 -0
- package/components/xplor-text-bubble.js +42 -0
- package/components/xplor-text-bubble.js.map +1 -0
- package/components/xplor-text-field.d.ts +11 -0
- package/components/xplor-text-field.js +190 -0
- package/components/xplor-text-field.js.map +1 -0
- package/components/xplor-time-picker.d.ts +11 -0
- package/components/xplor-time-picker.js +348 -0
- package/components/xplor-time-picker.js.map +1 -0
- package/components/xplor-tooltip.d.ts +11 -0
- package/components/xplor-tooltip.js +9 -0
- package/components/xplor-tooltip.js.map +1 -0
- package/dist/cjs/index-Bc5o_4vY.js +2594 -0
- package/dist/cjs/index-Bc5o_4vY.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/xplor-alert-dialog_57.cjs.entry.js +4750 -0
- package/dist/cjs/xplor-alert-dialog_57.cjs.entry.js.map +1 -0
- package/dist/cjs/xplor-component-library.cjs.js +27 -0
- package/dist/cjs/xplor-component-library.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +69 -0
- package/dist/collection/components/element-interface.js +2 -0
- package/dist/collection/components/element-interface.js.map +1 -0
- package/dist/collection/components/helpers.js +129 -0
- package/dist/collection/components/helpers.js.map +1 -0
- package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.css +348 -0
- package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.js +163 -0
- package/dist/collection/components/xplor-alert-dialog/xplor-alert-dialog.js.map +1 -0
- package/dist/collection/components/xplor-alert-message/xplor-alert-message.css +352 -0
- package/dist/collection/components/xplor-alert-message/xplor-alert-message.js +110 -0
- package/dist/collection/components/xplor-alert-message/xplor-alert-message.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/AssistantInput.js +39 -0
- package/dist/collection/components/xplor-assistant/internal/AssistantInput.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/AssistantMessage.js +35 -0
- package/dist/collection/components/xplor-assistant/internal/AssistantMessage.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/QuickReplies.js +13 -0
- package/dist/collection/components/xplor-assistant/internal/QuickReplies.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/TypingIndicator.js +9 -0
- package/dist/collection/components/xplor-assistant/internal/TypingIndicator.js.map +1 -0
- package/dist/collection/components/xplor-assistant/internal/types.js +2 -0
- package/dist/collection/components/xplor-assistant/internal/types.js.map +1 -0
- package/dist/collection/components/xplor-assistant/utils/api.js +138 -0
- package/dist/collection/components/xplor-assistant/utils/api.js.map +1 -0
- package/dist/collection/components/xplor-assistant/utils/icons.js +53 -0
- package/dist/collection/components/xplor-assistant/utils/icons.js.map +1 -0
- package/dist/collection/components/xplor-assistant/utils/speech.js +230 -0
- package/dist/collection/components/xplor-assistant/utils/speech.js.map +1 -0
- package/dist/collection/components/xplor-assistant/xplor-assistant.css +1384 -0
- package/dist/collection/components/xplor-assistant/xplor-assistant.js +675 -0
- package/dist/collection/components/xplor-assistant/xplor-assistant.js.map +1 -0
- package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.css +458 -0
- package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.js +613 -0
- package/dist/collection/components/xplor-autocomplete/xplor-autocomplete.js.map +1 -0
- package/dist/collection/components/xplor-avatar/avatar.stories.js +175 -0
- package/dist/collection/components/xplor-avatar/avatar.stories.js.map +1 -0
- package/dist/collection/components/xplor-avatar/xplor-avatar.css +271 -0
- package/dist/collection/components/xplor-avatar/xplor-avatar.js +186 -0
- package/dist/collection/components/xplor-avatar/xplor-avatar.js.map +1 -0
- package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.css +284 -0
- package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.js +122 -0
- package/dist/collection/components/xplor-avatar-and-name/xplor-avatar-and-name.js.map +1 -0
- package/dist/collection/components/xplor-badge/xplor-badge.css +1100 -0
- package/dist/collection/components/xplor-badge/xplor-badge.js +273 -0
- package/dist/collection/components/xplor-badge/xplor-badge.js.map +1 -0
- package/dist/collection/components/xplor-badge-active/xplor-badge-active.css +280 -0
- package/dist/collection/components/xplor-badge-active/xplor-badge-active.js +19 -0
- package/dist/collection/components/xplor-badge-active/xplor-badge-active.js.map +1 -0
- package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.css +280 -0
- package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.js +19 -0
- package/dist/collection/components/xplor-badge-archived/xplor-badge-archived.js.map +1 -0
- package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.css +280 -0
- package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.js +19 -0
- package/dist/collection/components/xplor-badge-deleted/xplor-badge-deleted.js.map +1 -0
- package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.css +280 -0
- package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.js +19 -0
- package/dist/collection/components/xplor-badge-expired/xplor-badge-expired.js.map +1 -0
- package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.css +280 -0
- package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.js +19 -0
- package/dist/collection/components/xplor-badge-inactive/xplor-badge-inactive.js.map +1 -0
- package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.css +280 -0
- package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.js +19 -0
- package/dist/collection/components/xplor-badge-recalled/xplor-badge-recalled.js.map +1 -0
- package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.css +300 -0
- package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.js +93 -0
- package/dist/collection/components/xplor-badge-session-booking/xplor-badge-session-booking.js.map +1 -0
- package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.css +280 -0
- package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.js +19 -0
- package/dist/collection/components/xplor-badge-upcoming/xplor-badge-upcoming.js.map +1 -0
- package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.css +280 -0
- package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.js +19 -0
- package/dist/collection/components/xplor-badge-waitlist/xplor-badge-waitlist.js.map +1 -0
- package/dist/collection/components/xplor-btn-back/xplor-btn-back.css +306 -0
- package/dist/collection/components/xplor-btn-back/xplor-btn-back.js +182 -0
- package/dist/collection/components/xplor-btn-back/xplor-btn-back.js.map +1 -0
- package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.css +306 -0
- package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.js +173 -0
- package/dist/collection/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.js.map +1 -0
- package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.css +370 -0
- package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.js +183 -0
- package/dist/collection/components/xplor-btn-icon/xplor-btn-icon.js.map +1 -0
- package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.css +327 -0
- package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.js +238 -0
- package/dist/collection/components/xplor-btn-menu/xplor-btn-menu.js.map +1 -0
- package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.css +312 -0
- package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.js +151 -0
- package/dist/collection/components/xplor-btn-toggle/xplor-btn-toggle.js.map +1 -0
- package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.css +278 -0
- package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.js +73 -0
- package/dist/collection/components/xplor-btn-toggle-group/xplor-btn-toggle-group.js.map +1 -0
- package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.css +314 -0
- package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.js +127 -0
- package/dist/collection/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.js.map +1 -0
- package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.css +271 -0
- package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.js +164 -0
- package/dist/collection/components/xplor-btn-tooltip/xplor-btn-tooltip.js.map +1 -0
- package/dist/collection/components/xplor-button/xplor-button.css +1253 -0
- package/dist/collection/components/xplor-button/xplor-button.js +212 -0
- package/dist/collection/components/xplor-button/xplor-button.js.map +1 -0
- package/dist/collection/components/xplor-button/xplor-buttons.stories.js +49 -0
- package/dist/collection/components/xplor-button/xplor-buttons.stories.js.map +1 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.css +276 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.js +139 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat-widget.js.map +1 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat.stories.js +31 -0
- package/dist/collection/components/xplor-chat-widget/xplor-chat.stories.js.map +1 -0
- package/dist/collection/components/xplor-checkbox/xplor-checkbox.css +453 -0
- package/dist/collection/components/xplor-checkbox/xplor-checkbox.js +230 -0
- package/dist/collection/components/xplor-checkbox/xplor-checkbox.js.map +1 -0
- package/dist/collection/components/xplor-combobox/xplor-combobox.css +473 -0
- package/dist/collection/components/xplor-combobox/xplor-combobox.js +553 -0
- package/dist/collection/components/xplor-combobox/xplor-combobox.js.map +1 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.css +580 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.js +536 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.js.map +1 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.stories.js +137 -0
- package/dist/collection/components/xplor-datatable/xplor-datatable.stories.js.map +1 -0
- package/dist/collection/components/xplor-date-picker/xplor-date-picker.css +415 -0
- package/dist/collection/components/xplor-date-picker/xplor-date-picker.js +694 -0
- package/dist/collection/components/xplor-date-picker/xplor-date-picker.js.map +1 -0
- package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.css +1149 -0
- package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.js +256 -0
- package/dist/collection/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.js.map +1 -0
- package/dist/collection/components/xplor-dropdown/xplor-dropdown.css +286 -0
- package/dist/collection/components/xplor-dropdown/xplor-dropdown.js +83 -0
- package/dist/collection/components/xplor-dropdown/xplor-dropdown.js.map +1 -0
- package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.css +334 -0
- package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.js +122 -0
- package/dist/collection/components/xplor-expansion-panel/xplor-expansion-panel.js.map +1 -0
- package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.css +277 -0
- package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.js +129 -0
- package/dist/collection/components/xplor-expansion-panels/xplor-expansion-panels.js.map +1 -0
- package/dist/collection/components/xplor-file-upload/xplor-file-upload.css +433 -0
- package/dist/collection/components/xplor-file-upload/xplor-file-upload.js +347 -0
- package/dist/collection/components/xplor-file-upload/xplor-file-upload.js.map +1 -0
- package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.css +300 -0
- package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.js +194 -0
- package/dist/collection/components/xplor-inline-checkbox/xplor-inline-checkbox.js.map +1 -0
- package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.css +410 -0
- package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.js +325 -0
- package/dist/collection/components/xplor-inline-date-picker/xplor-inline-date-picker.js.map +1 -0
- package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.css +343 -0
- package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.js +168 -0
- package/dist/collection/components/xplor-inline-switch/xplor-inline-switch.js.map +1 -0
- package/dist/collection/components/xplor-input-file/xplor-input-file.css +392 -0
- package/dist/collection/components/xplor-input-file/xplor-input-file.js +340 -0
- package/dist/collection/components/xplor-input-file/xplor-input-file.js.map +1 -0
- package/dist/collection/components/xplor-input-search/xplor-input-search.css +371 -0
- package/dist/collection/components/xplor-input-search/xplor-input-search.js +213 -0
- package/dist/collection/components/xplor-input-search/xplor-input-search.js.map +1 -0
- package/dist/collection/components/xplor-input-select/xplor-input-select.css +397 -0
- package/dist/collection/components/xplor-input-select/xplor-input-select.js +430 -0
- package/dist/collection/components/xplor-input-select/xplor-input-select.js.map +1 -0
- package/dist/collection/components/xplor-input-send/xplor-input-send.css +312 -0
- package/dist/collection/components/xplor-input-send/xplor-input-send.js +218 -0
- package/dist/collection/components/xplor-input-send/xplor-input-send.js.map +1 -0
- package/dist/collection/components/xplor-input-text/xplor-input-text.css +334 -0
- package/dist/collection/components/xplor-input-text/xplor-input-text.js +419 -0
- package/dist/collection/components/xplor-input-text/xplor-input-text.js.map +1 -0
- package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.css +359 -0
- package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.js +416 -0
- package/dist/collection/components/xplor-input-text-area/xplor-input-text-area.js.map +1 -0
- package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.css +339 -0
- package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.js +384 -0
- package/dist/collection/components/xplor-input-text-secondary/xplor-input-text-secondary.js.map +1 -0
- package/dist/collection/components/xplor-input-title/xplor-input-title.css +304 -0
- package/dist/collection/components/xplor-input-title/xplor-input-title.js +164 -0
- package/dist/collection/components/xplor-input-title/xplor-input-title.js.map +1 -0
- package/dist/collection/components/xplor-links/xplor-links.css +9 -0
- package/dist/collection/components/xplor-links/xplor-links.js +42 -0
- package/dist/collection/components/xplor-links/xplor-links.js.map +1 -0
- package/dist/collection/components/xplor-links/xplor-links.stories.js +18 -0
- package/dist/collection/components/xplor-links/xplor-links.stories.js.map +1 -0
- package/dist/collection/components/xplor-modal/xplor-modal.css +385 -0
- package/dist/collection/components/xplor-modal/xplor-modal.js +279 -0
- package/dist/collection/components/xplor-modal/xplor-modal.js.map +1 -0
- package/dist/collection/components/xplor-modal-persistent/xplor-modal-persistent.js +152 -0
- package/dist/collection/components/xplor-modal-persistent/xplor-modal-persistent.js.map +1 -0
- package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.css +333 -0
- package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.js +144 -0
- package/dist/collection/components/xplor-nav-tabs/xplor-nav-tabs.js.map +1 -0
- package/dist/collection/components/xplor-section-card/xplor-section-card.css +1076 -0
- package/dist/collection/components/xplor-section-card/xplor-section-card.js +92 -0
- package/dist/collection/components/xplor-section-card/xplor-section-card.js.map +1 -0
- package/dist/collection/components/xplor-section-heading/xplor-section-heading.css +285 -0
- package/dist/collection/components/xplor-section-heading/xplor-section-heading.js +69 -0
- package/dist/collection/components/xplor-section-heading/xplor-section-heading.js.map +1 -0
- package/dist/collection/components/xplor-table/xplor-table.js +695 -0
- package/dist/collection/components/xplor-table/xplor-table.js.map +1 -0
- package/dist/collection/components/xplor-table/xplor-table.stories.js +159 -0
- package/dist/collection/components/xplor-table/xplor-table.stories.js.map +1 -0
- package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.css +285 -0
- package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.js +50 -0
- package/dist/collection/components/xplor-text-bubble/xplor-text-bubble.js.map +1 -0
- package/dist/collection/components/xplor-text-field/xplor-text-field.css +1280 -0
- package/dist/collection/components/xplor-text-field/xplor-text-field.js +591 -0
- package/dist/collection/components/xplor-text-field/xplor-text-field.js.map +1 -0
- package/dist/collection/components/xplor-time-picker/xplor-time-picker.css +448 -0
- package/dist/collection/components/xplor-time-picker/xplor-time-picker.js +647 -0
- package/dist/collection/components/xplor-time-picker/xplor-time-picker.js.map +1 -0
- package/dist/collection/components/xplor-tooltip/xplor-tooltip.css +336 -0
- package/dist/collection/components/xplor-tooltip/xplor-tooltip.js +311 -0
- package/dist/collection/components/xplor-tooltip/xplor-tooltip.js.map +1 -0
- package/dist/collection/globals/globals.js +32 -0
- package/dist/collection/globals/globals.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/stories/Button.js +17 -0
- package/dist/collection/stories/Button.js.map +1 -0
- package/dist/collection/stories/Button.stories.js +50 -0
- package/dist/collection/stories/Button.stories.js.map +1 -0
- package/dist/collection/stories/Header.js +41 -0
- package/dist/collection/stories/Header.js.map +1 -0
- package/dist/collection/stories/Header.stories.js +28 -0
- package/dist/collection/stories/Header.stories.js.map +1 -0
- package/dist/collection/stories/Page.js +85 -0
- package/dist/collection/stories/Page.js.map +1 -0
- package/dist/collection/stories/Page.stories.js +25 -0
- package/dist/collection/stories/Page.stories.js.map +1 -0
- package/dist/collection/stories/assets/accessibility.svg +1 -0
- package/dist/collection/stories/assets/discord.svg +1 -0
- package/dist/collection/stories/assets/github.svg +1 -0
- package/dist/collection/stories/assets/tutorials.svg +1 -0
- package/dist/collection/stories/assets/youtube.svg +1 -0
- package/dist/collection/utils/helpers.js +25 -0
- package/dist/collection/utils/helpers.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +2324 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-4l9DAhAo.js +182 -0
- package/dist/components/p-4l9DAhAo.js.map +1 -0
- package/dist/components/p-BHdeGt6k.js +51 -0
- package/dist/components/p-BHdeGt6k.js.map +1 -0
- package/dist/components/p-BIFlTsO8.js +185 -0
- package/dist/components/p-BIFlTsO8.js.map +1 -0
- package/dist/components/p-CJGP2_5k.js +38 -0
- package/dist/components/p-CJGP2_5k.js.map +1 -0
- package/dist/components/p-DIv_A5Gj.js +57 -0
- package/dist/components/p-DIv_A5Gj.js.map +1 -0
- package/dist/components/p-DKh6y3GY.js +118 -0
- package/dist/components/p-DKh6y3GY.js.map +1 -0
- package/dist/components/xplor-alert-dialog.d.ts +11 -0
- package/dist/components/xplor-alert-dialog.js +86 -0
- package/dist/components/xplor-alert-dialog.js.map +1 -0
- package/dist/components/xplor-alert-message.d.ts +11 -0
- package/dist/components/xplor-alert-message.js +49 -0
- package/dist/components/xplor-alert-message.js.map +1 -0
- package/dist/components/xplor-assistant.d.ts +11 -0
- package/dist/components/xplor-assistant.js +764 -0
- package/dist/components/xplor-assistant.js.map +1 -0
- package/dist/components/xplor-autocomplete.d.ts +11 -0
- package/dist/components/xplor-autocomplete.js +269 -0
- package/dist/components/xplor-autocomplete.js.map +1 -0
- package/dist/components/xplor-avatar-and-name.d.ts +11 -0
- package/dist/components/xplor-avatar-and-name.js +49 -0
- package/dist/components/xplor-avatar-and-name.js.map +1 -0
- package/dist/components/xplor-avatar.d.ts +11 -0
- package/dist/components/xplor-avatar.js +9 -0
- package/dist/components/xplor-avatar.js.map +1 -0
- package/dist/components/xplor-badge-active.d.ts +11 -0
- package/dist/components/xplor-badge-active.js +36 -0
- package/dist/components/xplor-badge-active.js.map +1 -0
- package/dist/components/xplor-badge-archived.d.ts +11 -0
- package/dist/components/xplor-badge-archived.js +36 -0
- package/dist/components/xplor-badge-archived.js.map +1 -0
- package/dist/components/xplor-badge-deleted.d.ts +11 -0
- package/dist/components/xplor-badge-deleted.js +36 -0
- package/dist/components/xplor-badge-deleted.js.map +1 -0
- package/dist/components/xplor-badge-expired.d.ts +11 -0
- package/dist/components/xplor-badge-expired.js +36 -0
- package/dist/components/xplor-badge-expired.js.map +1 -0
- package/dist/components/xplor-badge-inactive.d.ts +11 -0
- package/dist/components/xplor-badge-inactive.js +36 -0
- package/dist/components/xplor-badge-inactive.js.map +1 -0
- package/dist/components/xplor-badge-recalled.d.ts +11 -0
- package/dist/components/xplor-badge-recalled.js +36 -0
- package/dist/components/xplor-badge-recalled.js.map +1 -0
- package/dist/components/xplor-badge-session-booking.d.ts +11 -0
- package/dist/components/xplor-badge-session-booking.js +61 -0
- package/dist/components/xplor-badge-session-booking.js.map +1 -0
- package/dist/components/xplor-badge-upcoming.d.ts +11 -0
- package/dist/components/xplor-badge-upcoming.js +36 -0
- package/dist/components/xplor-badge-upcoming.js.map +1 -0
- package/dist/components/xplor-badge-waitlist.d.ts +11 -0
- package/dist/components/xplor-badge-waitlist.js +36 -0
- package/dist/components/xplor-badge-waitlist.js.map +1 -0
- package/dist/components/xplor-badge.d.ts +11 -0
- package/dist/components/xplor-badge.js +152 -0
- package/dist/components/xplor-badge.js.map +1 -0
- package/dist/components/xplor-btn-back-to-parent.d.ts +11 -0
- package/dist/components/xplor-btn-back-to-parent.js +73 -0
- package/dist/components/xplor-btn-back-to-parent.js.map +1 -0
- package/dist/components/xplor-btn-back.d.ts +11 -0
- package/dist/components/xplor-btn-back.js +77 -0
- package/dist/components/xplor-btn-back.js.map +1 -0
- package/dist/components/xplor-btn-icon.d.ts +11 -0
- package/dist/components/xplor-btn-icon.js +78 -0
- package/dist/components/xplor-btn-icon.js.map +1 -0
- package/dist/components/xplor-btn-menu.d.ts +11 -0
- package/dist/components/xplor-btn-menu.js +106 -0
- package/dist/components/xplor-btn-menu.js.map +1 -0
- package/dist/components/xplor-btn-toggle-group.d.ts +11 -0
- package/dist/components/xplor-btn-toggle-group.js +47 -0
- package/dist/components/xplor-btn-toggle-group.js.map +1 -0
- package/dist/components/xplor-btn-toggle-secondary.d.ts +11 -0
- package/dist/components/xplor-btn-toggle-secondary.js +65 -0
- package/dist/components/xplor-btn-toggle-secondary.js.map +1 -0
- package/dist/components/xplor-btn-toggle.d.ts +11 -0
- package/dist/components/xplor-btn-toggle.js +70 -0
- package/dist/components/xplor-btn-toggle.js.map +1 -0
- package/dist/components/xplor-btn-tooltip.d.ts +11 -0
- package/dist/components/xplor-btn-tooltip.js +59 -0
- package/dist/components/xplor-btn-tooltip.js.map +1 -0
- package/dist/components/xplor-button.d.ts +11 -0
- package/dist/components/xplor-button.js +9 -0
- package/dist/components/xplor-button.js.map +1 -0
- package/dist/components/xplor-chat-widget.d.ts +11 -0
- package/dist/components/xplor-chat-widget.js +105 -0
- package/dist/components/xplor-chat-widget.js.map +1 -0
- package/dist/components/xplor-checkbox.d.ts +11 -0
- package/dist/components/xplor-checkbox.js +125 -0
- package/dist/components/xplor-checkbox.js.map +1 -0
- package/dist/components/xplor-combobox.d.ts +11 -0
- package/dist/components/xplor-combobox.js +279 -0
- package/dist/components/xplor-combobox.js.map +1 -0
- package/dist/components/xplor-datatable.d.ts +11 -0
- package/dist/components/xplor-datatable.js +244 -0
- package/dist/components/xplor-datatable.js.map +1 -0
- package/dist/components/xplor-date-picker.d.ts +11 -0
- package/dist/components/xplor-date-picker.js +269 -0
- package/dist/components/xplor-date-picker.js.map +1 -0
- package/dist/components/xplor-drag-and-drop-input.d.ts +11 -0
- package/dist/components/xplor-drag-and-drop-input.js +138 -0
- package/dist/components/xplor-drag-and-drop-input.js.map +1 -0
- package/dist/components/xplor-dropdown.d.ts +11 -0
- package/dist/components/xplor-dropdown.js +9 -0
- package/dist/components/xplor-dropdown.js.map +1 -0
- package/dist/components/xplor-expansion-panel.d.ts +11 -0
- package/dist/components/xplor-expansion-panel.js +75 -0
- package/dist/components/xplor-expansion-panel.js.map +1 -0
- package/dist/components/xplor-expansion-panels.d.ts +11 -0
- package/dist/components/xplor-expansion-panels.js +71 -0
- package/dist/components/xplor-expansion-panels.js.map +1 -0
- package/dist/components/xplor-file-upload.d.ts +11 -0
- package/dist/components/xplor-file-upload.js +184 -0
- package/dist/components/xplor-file-upload.js.map +1 -0
- package/dist/components/xplor-inline-checkbox.d.ts +11 -0
- package/dist/components/xplor-inline-checkbox.js +76 -0
- package/dist/components/xplor-inline-checkbox.js.map +1 -0
- package/dist/components/xplor-inline-date-picker.d.ts +11 -0
- package/dist/components/xplor-inline-date-picker.js +9 -0
- package/dist/components/xplor-inline-date-picker.js.map +1 -0
- package/dist/components/xplor-inline-switch.d.ts +11 -0
- package/dist/components/xplor-inline-switch.js +69 -0
- package/dist/components/xplor-inline-switch.js.map +1 -0
- package/dist/components/xplor-input-file.d.ts +11 -0
- package/dist/components/xplor-input-file.js +122 -0
- package/dist/components/xplor-input-file.js.map +1 -0
- package/dist/components/xplor-input-search.d.ts +11 -0
- package/dist/components/xplor-input-search.js +90 -0
- package/dist/components/xplor-input-search.js.map +1 -0
- package/dist/components/xplor-input-select.d.ts +11 -0
- package/dist/components/xplor-input-select.js +169 -0
- package/dist/components/xplor-input-select.js.map +1 -0
- package/dist/components/xplor-input-send.d.ts +11 -0
- package/dist/components/xplor-input-send.js +88 -0
- package/dist/components/xplor-input-send.js.map +1 -0
- package/dist/components/xplor-input-text-area.d.ts +11 -0
- package/dist/components/xplor-input-text-area.js +132 -0
- package/dist/components/xplor-input-text-area.js.map +1 -0
- package/dist/components/xplor-input-text-secondary.d.ts +11 -0
- package/dist/components/xplor-input-text-secondary.js +95 -0
- package/dist/components/xplor-input-text-secondary.js.map +1 -0
- package/dist/components/xplor-input-text.d.ts +11 -0
- package/dist/components/xplor-input-text.js +130 -0
- package/dist/components/xplor-input-text.js.map +1 -0
- package/dist/components/xplor-input-title.d.ts +11 -0
- package/dist/components/xplor-input-title.js +69 -0
- package/dist/components/xplor-input-title.js.map +1 -0
- package/dist/components/xplor-links.d.ts +11 -0
- package/dist/components/xplor-links.js +39 -0
- package/dist/components/xplor-links.js.map +1 -0
- package/dist/components/xplor-modal-persistent.d.ts +11 -0
- package/dist/components/xplor-modal-persistent.js +66 -0
- package/dist/components/xplor-modal-persistent.js.map +1 -0
- package/dist/components/xplor-modal.d.ts +11 -0
- package/dist/components/xplor-modal.js +9 -0
- package/dist/components/xplor-modal.js.map +1 -0
- package/dist/components/xplor-nav-tabs.d.ts +11 -0
- package/dist/components/xplor-nav-tabs.js +59 -0
- package/dist/components/xplor-nav-tabs.js.map +1 -0
- package/dist/components/xplor-section-card.d.ts +11 -0
- package/dist/components/xplor-section-card.js +47 -0
- package/dist/components/xplor-section-card.js.map +1 -0
- package/dist/components/xplor-section-heading.d.ts +11 -0
- package/dist/components/xplor-section-heading.js +44 -0
- package/dist/components/xplor-section-heading.js.map +1 -0
- package/dist/components/xplor-table.d.ts +11 -0
- package/dist/components/xplor-table.js +276 -0
- package/dist/components/xplor-table.js.map +1 -0
- package/dist/components/xplor-text-bubble.d.ts +11 -0
- package/dist/components/xplor-text-bubble.js +43 -0
- package/dist/components/xplor-text-bubble.js.map +1 -0
- package/dist/components/xplor-text-field.d.ts +11 -0
- package/dist/components/xplor-text-field.js +191 -0
- package/dist/components/xplor-text-field.js.map +1 -0
- package/dist/components/xplor-time-picker.d.ts +11 -0
- package/dist/components/xplor-time-picker.js +349 -0
- package/dist/components/xplor-time-picker.js.map +1 -0
- package/dist/components/xplor-tooltip.d.ts +11 -0
- package/dist/components/xplor-tooltip.js +9 -0
- package/dist/components/xplor-tooltip.js.map +1 -0
- package/dist/esm/index-Zkk2NJif.js +2566 -0
- package/dist/esm/index-Zkk2NJif.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/xplor-alert-dialog_57.entry.js +4692 -0
- package/dist/esm/xplor-alert-dialog_57.entry.js.map +1 -0
- package/dist/esm/xplor-component-library.js +23 -0
- package/dist/esm/xplor-component-library.js.map +1 -0
- package/dist/hydrate/index.d.ts +273 -0
- package/dist/hydrate/index.js +25064 -0
- package/dist/hydrate/index.mjs +25056 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/element-interface.d.ts +19 -0
- package/dist/types/components/helpers.d.ts +47 -0
- package/dist/types/components/xplor-alert-dialog/xplor-alert-dialog.d.ts +29 -0
- package/dist/types/components/xplor-alert-message/xplor-alert-message.d.ts +9 -0
- package/dist/types/components/xplor-assistant/internal/AssistantInput.d.ts +17 -0
- package/dist/types/components/xplor-assistant/internal/AssistantMessage.d.ts +6 -0
- package/dist/types/components/xplor-assistant/internal/QuickReplies.d.ts +6 -0
- package/dist/types/components/xplor-assistant/internal/TypingIndicator.d.ts +5 -0
- package/dist/types/components/xplor-assistant/internal/types.d.ts +106 -0
- package/dist/types/components/xplor-assistant/utils/api.d.ts +48 -0
- package/dist/types/components/xplor-assistant/utils/icons.d.ts +24 -0
- package/dist/types/components/xplor-assistant/utils/speech.d.ts +86 -0
- package/dist/types/components/xplor-assistant/xplor-assistant.d.ts +52 -0
- package/dist/types/components/xplor-autocomplete/xplor-autocomplete.d.ts +92 -0
- package/dist/types/components/xplor-avatar/avatar.stories.d.ts +75 -0
- package/dist/types/components/xplor-avatar/xplor-avatar.d.ts +21 -0
- package/dist/types/components/xplor-avatar-and-name/xplor-avatar-and-name.d.ts +8 -0
- package/dist/types/components/xplor-badge/xplor-badge.d.ts +52 -0
- package/dist/types/components/xplor-badge-active/xplor-badge-active.d.ts +3 -0
- package/dist/types/components/xplor-badge-archived/xplor-badge-archived.d.ts +3 -0
- package/dist/types/components/xplor-badge-deleted/xplor-badge-deleted.d.ts +3 -0
- package/dist/types/components/xplor-badge-expired/xplor-badge-expired.d.ts +3 -0
- package/dist/types/components/xplor-badge-inactive/xplor-badge-inactive.d.ts +3 -0
- package/dist/types/components/xplor-badge-recalled/xplor-badge-recalled.d.ts +3 -0
- package/dist/types/components/xplor-badge-session-booking/xplor-badge-session-booking.d.ts +20 -0
- package/dist/types/components/xplor-badge-upcoming/xplor-badge-upcoming.d.ts +3 -0
- package/dist/types/components/xplor-badge-waitlist/xplor-badge-waitlist.d.ts +3 -0
- package/dist/types/components/xplor-btn-back/xplor-btn-back.d.ts +29 -0
- package/dist/types/components/xplor-btn-back-to-parent/xplor-btn-back-to-parent.d.ts +29 -0
- package/dist/types/components/xplor-btn-icon/xplor-btn-icon.d.ts +29 -0
- package/dist/types/components/xplor-btn-menu/xplor-btn-menu.d.ts +49 -0
- package/dist/types/components/xplor-btn-toggle/xplor-btn-toggle.d.ts +25 -0
- package/dist/types/components/xplor-btn-toggle-group/xplor-btn-toggle-group.d.ts +11 -0
- package/dist/types/components/xplor-btn-toggle-secondary/xplor-btn-toggle-secondary.d.ts +21 -0
- package/dist/types/components/xplor-btn-tooltip/xplor-btn-tooltip.d.ts +10 -0
- package/dist/types/components/xplor-button/xplor-button.d.ts +19 -0
- package/dist/types/components/xplor-button/xplor-buttons.stories.d.ts +32 -0
- package/dist/types/components/xplor-chat-widget/xplor-chat-widget.d.ts +13 -0
- package/dist/types/components/xplor-chat-widget/xplor-chat.stories.d.ts +32 -0
- package/dist/types/components/xplor-checkbox/xplor-checkbox.d.ts +25 -0
- package/dist/types/components/xplor-combobox/xplor-combobox.d.ts +77 -0
- package/dist/types/components/xplor-datatable/xplor-datatable.d.ts +103 -0
- package/dist/types/components/xplor-datatable/xplor-datatable.stories.d.ts +18 -0
- package/dist/types/components/xplor-date-picker/xplor-date-picker.d.ts +53 -0
- package/dist/types/components/xplor-drag-and-drop-input/xplor-drag-and-drop-input.d.ts +42 -0
- package/dist/types/components/xplor-dropdown/xplor-dropdown.d.ts +6 -0
- package/dist/types/components/xplor-expansion-panel/xplor-expansion-panel.d.ts +18 -0
- package/dist/types/components/xplor-expansion-panels/xplor-expansion-panels.d.ts +12 -0
- package/dist/types/components/xplor-file-upload/xplor-file-upload.d.ts +51 -0
- package/dist/types/components/xplor-inline-checkbox/xplor-inline-checkbox.d.ts +33 -0
- package/dist/types/components/xplor-inline-date-picker/xplor-inline-date-picker.d.ts +57 -0
- package/dist/types/components/xplor-inline-switch/xplor-inline-switch.d.ts +29 -0
- package/dist/types/components/xplor-input-file/xplor-input-file.d.ts +60 -0
- package/dist/types/components/xplor-input-search/xplor-input-search.d.ts +36 -0
- package/dist/types/components/xplor-input-select/xplor-input-select.d.ts +76 -0
- package/dist/types/components/xplor-input-send/xplor-input-send.d.ts +18 -0
- package/dist/types/components/xplor-input-text/xplor-input-text.d.ts +73 -0
- package/dist/types/components/xplor-input-text-area/xplor-input-text-area.d.ts +72 -0
- package/dist/types/components/xplor-input-text-secondary/xplor-input-text-secondary.d.ts +25 -0
- package/dist/types/components/xplor-input-title/xplor-input-title.d.ts +30 -0
- package/dist/types/components/xplor-links/xplor-links.d.ts +4 -0
- package/dist/types/components/xplor-links/xplor-links.stories.d.ts +12 -0
- package/dist/types/components/xplor-modal/xplor-modal.d.ts +45 -0
- package/dist/types/components/xplor-modal-persistent/xplor-modal-persistent.d.ts +28 -0
- package/dist/types/components/xplor-nav-tabs/xplor-nav-tabs.d.ts +15 -0
- package/dist/types/components/xplor-section-card/xplor-section-card.d.ts +6 -0
- package/dist/types/components/xplor-section-heading/xplor-section-heading.d.ts +5 -0
- package/dist/types/components/xplor-table/xplor-table.d.ts +65 -0
- package/dist/types/components/xplor-table/xplor-table.stories.d.ts +77 -0
- package/dist/types/components/xplor-text-bubble/xplor-text-bubble.d.ts +4 -0
- package/dist/types/components/xplor-text-field/xplor-text-field.d.ts +111 -0
- package/dist/types/components/xplor-time-picker/xplor-time-picker.d.ts +55 -0
- package/dist/types/components/xplor-tooltip/xplor-tooltip.d.ts +28 -0
- package/dist/types/components.d.ts +4360 -0
- package/dist/types/globals/globals.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interfaces.d.ts +104 -0
- package/dist/types/stencil-public-runtime.d.ts +1702 -0
- package/dist/types/stories/Button.d.ts +15 -0
- package/dist/types/stories/Header.d.ts +10 -0
- package/dist/types/stories/Page.d.ts +2 -0
- package/dist/types/stories/Page.stories.d.ts +11 -0
- package/dist/types/utils/helpers.d.ts +3 -0
- package/dist/xplor-component-library/index.esm.js +2 -0
- package/dist/xplor-component-library/index.esm.js.map +1 -0
- package/dist/xplor-component-library/loader.esm.js.map +1 -0
- package/dist/xplor-component-library/p-25fa8553.entry.js +2 -0
- package/dist/xplor-component-library/p-25fa8553.entry.js.map +1 -0
- package/dist/xplor-component-library/p-Zkk2NJif.js +3 -0
- package/dist/xplor-component-library/p-Zkk2NJif.js.map +1 -0
- package/dist/xplor-component-library/xplor-component-library.css +1 -0
- package/dist/xplor-component-library/xplor-component-library.esm.js +2 -0
- package/dist/xplor-component-library/xplor-component-library.esm.js.map +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +124 -0
- package/readme.md +315 -0
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class XplorTextField {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* The current value of the text field
|
|
6
|
+
*/
|
|
7
|
+
this.value = '';
|
|
8
|
+
/**
|
|
9
|
+
* The label text for the input
|
|
10
|
+
*/
|
|
11
|
+
this.label = '';
|
|
12
|
+
/**
|
|
13
|
+
* Placeholder text when input is empty
|
|
14
|
+
*/
|
|
15
|
+
this.placeholder = '';
|
|
16
|
+
/**
|
|
17
|
+
* Input type (text, email, password, number, etc.)
|
|
18
|
+
*/
|
|
19
|
+
this.type = 'text';
|
|
20
|
+
/**
|
|
21
|
+
* Color variant (primary, secondary, success, error, warning, info)
|
|
22
|
+
*/
|
|
23
|
+
this.color = 'secondary';
|
|
24
|
+
/**
|
|
25
|
+
* Visual variant style
|
|
26
|
+
*/
|
|
27
|
+
this.variant = 'outlined';
|
|
28
|
+
/**
|
|
29
|
+
* Background color
|
|
30
|
+
*/
|
|
31
|
+
this.bgColor = 'white';
|
|
32
|
+
/**
|
|
33
|
+
* Error messages to display
|
|
34
|
+
*/
|
|
35
|
+
this.errorMessages = [];
|
|
36
|
+
/**
|
|
37
|
+
* When to show details: true (always), false (never), 'auto' (only when error)
|
|
38
|
+
*/
|
|
39
|
+
this.hideDetails = 'auto';
|
|
40
|
+
/**
|
|
41
|
+
* Whether the field is disabled
|
|
42
|
+
*/
|
|
43
|
+
this.disabled = false;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the field is readonly
|
|
46
|
+
*/
|
|
47
|
+
this.readonly = false;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the field is required
|
|
50
|
+
*/
|
|
51
|
+
this.required = false;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the field has been modified (dirty state)
|
|
54
|
+
*/
|
|
55
|
+
this.isDirty = false;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the field should be clearable
|
|
58
|
+
*/
|
|
59
|
+
this.clearable = false;
|
|
60
|
+
/**
|
|
61
|
+
* Custom CSS classes to apply
|
|
62
|
+
*/
|
|
63
|
+
this.customClass = '';
|
|
64
|
+
/**
|
|
65
|
+
* Internal focused state
|
|
66
|
+
*/
|
|
67
|
+
this.isFocused = false;
|
|
68
|
+
/**
|
|
69
|
+
* Internal hasValue state
|
|
70
|
+
*/
|
|
71
|
+
this.hasValue = false;
|
|
72
|
+
this.handleInput = (e) => {
|
|
73
|
+
const target = e.target;
|
|
74
|
+
this.value = target.value;
|
|
75
|
+
this.valueChange.emit(target.value);
|
|
76
|
+
};
|
|
77
|
+
this.handleFocus = (e) => {
|
|
78
|
+
this.isFocused = true;
|
|
79
|
+
this.inputFocus.emit(e);
|
|
80
|
+
};
|
|
81
|
+
this.handleBlur = (e) => {
|
|
82
|
+
this.isFocused = false;
|
|
83
|
+
this.inputBlur.emit(e);
|
|
84
|
+
};
|
|
85
|
+
this.handleClear = (e) => {
|
|
86
|
+
e.stopPropagation();
|
|
87
|
+
this.value = '';
|
|
88
|
+
this.valueChange.emit('');
|
|
89
|
+
this.clearClick.emit();
|
|
90
|
+
if (this.inputElement) {
|
|
91
|
+
this.inputElement.focus();
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
handleValueChange(newValue) {
|
|
96
|
+
this.hasValue = !!newValue;
|
|
97
|
+
}
|
|
98
|
+
componentWillLoad() {
|
|
99
|
+
this.hasValue = !!this.value;
|
|
100
|
+
}
|
|
101
|
+
get hasError() {
|
|
102
|
+
return this.errorMessages && this.errorMessages.length > 0;
|
|
103
|
+
}
|
|
104
|
+
get showDetails() {
|
|
105
|
+
if (typeof this.hideDetails === 'boolean') {
|
|
106
|
+
return !this.hideDetails;
|
|
107
|
+
}
|
|
108
|
+
// hideDetails === 'auto'
|
|
109
|
+
return this.hasError;
|
|
110
|
+
}
|
|
111
|
+
get computedClasses() {
|
|
112
|
+
return {
|
|
113
|
+
'xplor-text-field': true,
|
|
114
|
+
[`xplor-text-field--${this.variant}`]: true,
|
|
115
|
+
[`xplor-text-field--${this.color}`]: true,
|
|
116
|
+
'xplor-text-field--focused': this.isFocused,
|
|
117
|
+
'xplor-text-field--error': this.hasError,
|
|
118
|
+
'xplor-text-field--disabled': this.disabled,
|
|
119
|
+
'xplor-text-field--readonly': this.readonly,
|
|
120
|
+
'xplor-text-field--dirty': this.isDirty,
|
|
121
|
+
'xplor-text-field--has-value': this.hasValue || this.isFocused,
|
|
122
|
+
[this.customClass]: !!this.customClass,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
render() {
|
|
126
|
+
const labelFloating = this.isFocused || this.hasValue;
|
|
127
|
+
return (h(Host, { key: 'e5addac91e0cd95aae82078fca048c9cf3d63899' }, h("div", { key: '5af015996b692ba7a9da193d85aa982a3c314e5f', class: this.computedClasses }, h("div", { key: 'ce8f119584d984368ed267c6343d36d5023a7cc4', class: "xplor-text-field__wrapper", style: { backgroundColor: this.bgColor } }, h("div", { key: '65da1d866155e01344fafb88deb23b7c3e781e47', class: "xplor-text-field__input-wrapper" }, this.label && (h("label", { key: '2b21d90a9e9621262e87669ac64b588d712015de', class: {
|
|
128
|
+
'xplor-text-field__label': true,
|
|
129
|
+
'xplor-text-field__label--floating': labelFloating,
|
|
130
|
+
} }, h("slot", { key: 'eca54b3a90bce7b2437bb8f6034a72d38e95145a', name: "label" }, this.label), this.required && h("span", { key: 'dc29dc197c8ec0613602b199ddacb2901301b496', class: "xplor-text-field__required" }, "*"))), h("input", { key: 'ff58f03b2fd6ccd30e901e70116ddf13e392ec6c', ref: (el) => (this.inputElement = el), class: "xplor-text-field__input", type: this.type, value: this.value, placeholder: this.isFocused ? this.placeholder : '', disabled: this.disabled, readonly: this.readonly, required: this.required, maxlength: this.maxlength, min: this.min, max: this.max, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-invalid": this.hasError ? 'true' : 'false', "aria-describedby": this.hasError ? 'error-messages' : undefined }), h("div", { key: '01c6224679cf4709b51015943bb163d5e6cc929a', class: "xplor-text-field__append-inner" }, this.clearable && this.hasValue && !this.disabled && !this.readonly && (h("button", { key: 'e212288acbed1693c8a31c9fb01de80ed5d7509c', type: "button", class: "xplor-text-field__clear-btn", onClick: this.handleClear, "aria-label": "Clear" }, h("svg", { key: '8c457ed9da2b09b0457c12db18e7a4924251dfca', width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { key: '947f8e2599d17fb4fc763b864b1ab2fec0ca2ab2', d: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" })))), h("slot", { key: '53062cd78fbbbadf85aa722e23c78f477145a34e', name: "append-inner" })), h("fieldset", { key: 'accd6fc547d7112f5806a82dc6826bbd386d9596', class: "xplor-text-field__outline" }, h("legend", { key: 'ef077a25a838e77901a747c65296529b694f6559', class: { 'xplor-text-field__outline-legend': true, 'xplor-text-field__outline-legend--floating': labelFloating } }, labelFloating && this.label ? h("span", null, this.label, this.required && '*') : h("span", null, "\u200B")))), h("div", { key: '7374765a73e8e4cc21ad265290a35ed07a1fc2de', class: "xplor-text-field__append" }, h("slot", { key: '3cfeb58881b2103a516cfe38f6bedd0583c18aed', name: "append" }))), this.showDetails && (h("div", { key: '81677f56be4a7e77a415b5b21ea67448bed1c9ee', class: "xplor-text-field__details" }, this.hasError && (h("div", { key: '20539967a3acbc1f2165df9cbe85f9bad7fd577c', id: "error-messages", class: "xplor-text-field__error-messages" }, this.errorMessages.map((error) => (h("div", { class: "xplor-text-field__error" }, error))))))))));
|
|
131
|
+
}
|
|
132
|
+
static get is() { return "xplor-text-field"; }
|
|
133
|
+
static get encapsulation() { return "scoped"; }
|
|
134
|
+
static get originalStyleUrls() {
|
|
135
|
+
return {
|
|
136
|
+
"$": ["xplor-text-field.scss"]
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
static get styleUrls() {
|
|
140
|
+
return {
|
|
141
|
+
"$": ["xplor-text-field.css"]
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
static get properties() {
|
|
145
|
+
return {
|
|
146
|
+
"value": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"attribute": "value",
|
|
149
|
+
"mutable": true,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "The current value of the text field"
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"reflect": false,
|
|
164
|
+
"defaultValue": "''"
|
|
165
|
+
},
|
|
166
|
+
"label": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"attribute": "label",
|
|
169
|
+
"mutable": false,
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "string",
|
|
172
|
+
"resolved": "string",
|
|
173
|
+
"references": {}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": "The label text for the input"
|
|
180
|
+
},
|
|
181
|
+
"getter": false,
|
|
182
|
+
"setter": false,
|
|
183
|
+
"reflect": false,
|
|
184
|
+
"defaultValue": "''"
|
|
185
|
+
},
|
|
186
|
+
"placeholder": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"attribute": "placeholder",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Placeholder text when input is empty"
|
|
200
|
+
},
|
|
201
|
+
"getter": false,
|
|
202
|
+
"setter": false,
|
|
203
|
+
"reflect": false,
|
|
204
|
+
"defaultValue": "''"
|
|
205
|
+
},
|
|
206
|
+
"type": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"attribute": "type",
|
|
209
|
+
"mutable": false,
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search'",
|
|
212
|
+
"resolved": "\"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"url\"",
|
|
213
|
+
"references": {}
|
|
214
|
+
},
|
|
215
|
+
"required": false,
|
|
216
|
+
"optional": false,
|
|
217
|
+
"docs": {
|
|
218
|
+
"tags": [],
|
|
219
|
+
"text": "Input type (text, email, password, number, etc.)"
|
|
220
|
+
},
|
|
221
|
+
"getter": false,
|
|
222
|
+
"setter": false,
|
|
223
|
+
"reflect": false,
|
|
224
|
+
"defaultValue": "'text'"
|
|
225
|
+
},
|
|
226
|
+
"color": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"attribute": "color",
|
|
229
|
+
"mutable": false,
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info'",
|
|
232
|
+
"resolved": "\"error\" | \"info\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
|
|
233
|
+
"references": {}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": false,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": "Color variant (primary, secondary, success, error, warning, info)"
|
|
240
|
+
},
|
|
241
|
+
"getter": false,
|
|
242
|
+
"setter": false,
|
|
243
|
+
"reflect": false,
|
|
244
|
+
"defaultValue": "'secondary'"
|
|
245
|
+
},
|
|
246
|
+
"variant": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"attribute": "variant",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "'outlined' | 'filled' | 'underlined'",
|
|
252
|
+
"resolved": "\"filled\" | \"outlined\" | \"underlined\"",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": "Visual variant style"
|
|
260
|
+
},
|
|
261
|
+
"getter": false,
|
|
262
|
+
"setter": false,
|
|
263
|
+
"reflect": false,
|
|
264
|
+
"defaultValue": "'outlined'"
|
|
265
|
+
},
|
|
266
|
+
"bgColor": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"attribute": "bg-color",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "string",
|
|
272
|
+
"resolved": "string",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": false,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "Background color"
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"defaultValue": "'white'"
|
|
285
|
+
},
|
|
286
|
+
"errorMessages": {
|
|
287
|
+
"type": "unknown",
|
|
288
|
+
"attribute": "error-messages",
|
|
289
|
+
"mutable": false,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "string[]",
|
|
292
|
+
"resolved": "string[]",
|
|
293
|
+
"references": {}
|
|
294
|
+
},
|
|
295
|
+
"required": false,
|
|
296
|
+
"optional": false,
|
|
297
|
+
"docs": {
|
|
298
|
+
"tags": [],
|
|
299
|
+
"text": "Error messages to display"
|
|
300
|
+
},
|
|
301
|
+
"getter": false,
|
|
302
|
+
"setter": false,
|
|
303
|
+
"defaultValue": "[]"
|
|
304
|
+
},
|
|
305
|
+
"hideDetails": {
|
|
306
|
+
"type": "any",
|
|
307
|
+
"attribute": "hide-details",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "boolean | 'auto'",
|
|
311
|
+
"resolved": "\"auto\" | boolean",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": false,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "When to show details: true (always), false (never), 'auto' (only when error)"
|
|
319
|
+
},
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
322
|
+
"reflect": false,
|
|
323
|
+
"defaultValue": "'auto'"
|
|
324
|
+
},
|
|
325
|
+
"disabled": {
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"attribute": "disabled",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "boolean",
|
|
331
|
+
"resolved": "boolean",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": "Whether the field is disabled"
|
|
339
|
+
},
|
|
340
|
+
"getter": false,
|
|
341
|
+
"setter": false,
|
|
342
|
+
"reflect": false,
|
|
343
|
+
"defaultValue": "false"
|
|
344
|
+
},
|
|
345
|
+
"readonly": {
|
|
346
|
+
"type": "boolean",
|
|
347
|
+
"attribute": "readonly",
|
|
348
|
+
"mutable": false,
|
|
349
|
+
"complexType": {
|
|
350
|
+
"original": "boolean",
|
|
351
|
+
"resolved": "boolean",
|
|
352
|
+
"references": {}
|
|
353
|
+
},
|
|
354
|
+
"required": false,
|
|
355
|
+
"optional": false,
|
|
356
|
+
"docs": {
|
|
357
|
+
"tags": [],
|
|
358
|
+
"text": "Whether the field is readonly"
|
|
359
|
+
},
|
|
360
|
+
"getter": false,
|
|
361
|
+
"setter": false,
|
|
362
|
+
"reflect": false,
|
|
363
|
+
"defaultValue": "false"
|
|
364
|
+
},
|
|
365
|
+
"required": {
|
|
366
|
+
"type": "boolean",
|
|
367
|
+
"attribute": "required",
|
|
368
|
+
"mutable": false,
|
|
369
|
+
"complexType": {
|
|
370
|
+
"original": "boolean",
|
|
371
|
+
"resolved": "boolean",
|
|
372
|
+
"references": {}
|
|
373
|
+
},
|
|
374
|
+
"required": false,
|
|
375
|
+
"optional": false,
|
|
376
|
+
"docs": {
|
|
377
|
+
"tags": [],
|
|
378
|
+
"text": "Whether the field is required"
|
|
379
|
+
},
|
|
380
|
+
"getter": false,
|
|
381
|
+
"setter": false,
|
|
382
|
+
"reflect": false,
|
|
383
|
+
"defaultValue": "false"
|
|
384
|
+
},
|
|
385
|
+
"isDirty": {
|
|
386
|
+
"type": "boolean",
|
|
387
|
+
"attribute": "is-dirty",
|
|
388
|
+
"mutable": false,
|
|
389
|
+
"complexType": {
|
|
390
|
+
"original": "boolean",
|
|
391
|
+
"resolved": "boolean",
|
|
392
|
+
"references": {}
|
|
393
|
+
},
|
|
394
|
+
"required": false,
|
|
395
|
+
"optional": false,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": "Whether the field has been modified (dirty state)"
|
|
399
|
+
},
|
|
400
|
+
"getter": false,
|
|
401
|
+
"setter": false,
|
|
402
|
+
"reflect": false,
|
|
403
|
+
"defaultValue": "false"
|
|
404
|
+
},
|
|
405
|
+
"clearable": {
|
|
406
|
+
"type": "boolean",
|
|
407
|
+
"attribute": "clearable",
|
|
408
|
+
"mutable": false,
|
|
409
|
+
"complexType": {
|
|
410
|
+
"original": "boolean",
|
|
411
|
+
"resolved": "boolean",
|
|
412
|
+
"references": {}
|
|
413
|
+
},
|
|
414
|
+
"required": false,
|
|
415
|
+
"optional": false,
|
|
416
|
+
"docs": {
|
|
417
|
+
"tags": [],
|
|
418
|
+
"text": "Whether the field should be clearable"
|
|
419
|
+
},
|
|
420
|
+
"getter": false,
|
|
421
|
+
"setter": false,
|
|
422
|
+
"reflect": false,
|
|
423
|
+
"defaultValue": "false"
|
|
424
|
+
},
|
|
425
|
+
"customClass": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"attribute": "custom-class",
|
|
428
|
+
"mutable": false,
|
|
429
|
+
"complexType": {
|
|
430
|
+
"original": "string",
|
|
431
|
+
"resolved": "string",
|
|
432
|
+
"references": {}
|
|
433
|
+
},
|
|
434
|
+
"required": false,
|
|
435
|
+
"optional": false,
|
|
436
|
+
"docs": {
|
|
437
|
+
"tags": [],
|
|
438
|
+
"text": "Custom CSS classes to apply"
|
|
439
|
+
},
|
|
440
|
+
"getter": false,
|
|
441
|
+
"setter": false,
|
|
442
|
+
"reflect": false,
|
|
443
|
+
"defaultValue": "''"
|
|
444
|
+
},
|
|
445
|
+
"maxlength": {
|
|
446
|
+
"type": "number",
|
|
447
|
+
"attribute": "maxlength",
|
|
448
|
+
"mutable": false,
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "number",
|
|
451
|
+
"resolved": "number",
|
|
452
|
+
"references": {}
|
|
453
|
+
},
|
|
454
|
+
"required": false,
|
|
455
|
+
"optional": false,
|
|
456
|
+
"docs": {
|
|
457
|
+
"tags": [],
|
|
458
|
+
"text": "Maximum length of input"
|
|
459
|
+
},
|
|
460
|
+
"getter": false,
|
|
461
|
+
"setter": false,
|
|
462
|
+
"reflect": false
|
|
463
|
+
},
|
|
464
|
+
"min": {
|
|
465
|
+
"type": "number",
|
|
466
|
+
"attribute": "min",
|
|
467
|
+
"mutable": false,
|
|
468
|
+
"complexType": {
|
|
469
|
+
"original": "number",
|
|
470
|
+
"resolved": "number",
|
|
471
|
+
"references": {}
|
|
472
|
+
},
|
|
473
|
+
"required": false,
|
|
474
|
+
"optional": false,
|
|
475
|
+
"docs": {
|
|
476
|
+
"tags": [],
|
|
477
|
+
"text": "Minimum value (for number type)"
|
|
478
|
+
},
|
|
479
|
+
"getter": false,
|
|
480
|
+
"setter": false,
|
|
481
|
+
"reflect": false
|
|
482
|
+
},
|
|
483
|
+
"max": {
|
|
484
|
+
"type": "number",
|
|
485
|
+
"attribute": "max",
|
|
486
|
+
"mutable": false,
|
|
487
|
+
"complexType": {
|
|
488
|
+
"original": "number",
|
|
489
|
+
"resolved": "number",
|
|
490
|
+
"references": {}
|
|
491
|
+
},
|
|
492
|
+
"required": false,
|
|
493
|
+
"optional": false,
|
|
494
|
+
"docs": {
|
|
495
|
+
"tags": [],
|
|
496
|
+
"text": "Maximum value (for number type)"
|
|
497
|
+
},
|
|
498
|
+
"getter": false,
|
|
499
|
+
"setter": false,
|
|
500
|
+
"reflect": false
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
static get states() {
|
|
505
|
+
return {
|
|
506
|
+
"isFocused": {},
|
|
507
|
+
"hasValue": {}
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
static get events() {
|
|
511
|
+
return [{
|
|
512
|
+
"method": "valueChange",
|
|
513
|
+
"name": "valueChange",
|
|
514
|
+
"bubbles": true,
|
|
515
|
+
"cancelable": true,
|
|
516
|
+
"composed": true,
|
|
517
|
+
"docs": {
|
|
518
|
+
"tags": [],
|
|
519
|
+
"text": "Emitted when value changes"
|
|
520
|
+
},
|
|
521
|
+
"complexType": {
|
|
522
|
+
"original": "string",
|
|
523
|
+
"resolved": "string",
|
|
524
|
+
"references": {}
|
|
525
|
+
}
|
|
526
|
+
}, {
|
|
527
|
+
"method": "inputBlur",
|
|
528
|
+
"name": "inputBlur",
|
|
529
|
+
"bubbles": true,
|
|
530
|
+
"cancelable": true,
|
|
531
|
+
"composed": true,
|
|
532
|
+
"docs": {
|
|
533
|
+
"tags": [],
|
|
534
|
+
"text": "Emitted when input loses focus"
|
|
535
|
+
},
|
|
536
|
+
"complexType": {
|
|
537
|
+
"original": "FocusEvent",
|
|
538
|
+
"resolved": "FocusEvent",
|
|
539
|
+
"references": {
|
|
540
|
+
"FocusEvent": {
|
|
541
|
+
"location": "global",
|
|
542
|
+
"id": "global::FocusEvent"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}, {
|
|
547
|
+
"method": "inputFocus",
|
|
548
|
+
"name": "inputFocus",
|
|
549
|
+
"bubbles": true,
|
|
550
|
+
"cancelable": true,
|
|
551
|
+
"composed": true,
|
|
552
|
+
"docs": {
|
|
553
|
+
"tags": [],
|
|
554
|
+
"text": "Emitted when input gains focus"
|
|
555
|
+
},
|
|
556
|
+
"complexType": {
|
|
557
|
+
"original": "FocusEvent",
|
|
558
|
+
"resolved": "FocusEvent",
|
|
559
|
+
"references": {
|
|
560
|
+
"FocusEvent": {
|
|
561
|
+
"location": "global",
|
|
562
|
+
"id": "global::FocusEvent"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}, {
|
|
567
|
+
"method": "clearClick",
|
|
568
|
+
"name": "clearClick",
|
|
569
|
+
"bubbles": true,
|
|
570
|
+
"cancelable": true,
|
|
571
|
+
"composed": true,
|
|
572
|
+
"docs": {
|
|
573
|
+
"tags": [],
|
|
574
|
+
"text": "Emitted when clear button is clicked"
|
|
575
|
+
},
|
|
576
|
+
"complexType": {
|
|
577
|
+
"original": "void",
|
|
578
|
+
"resolved": "void",
|
|
579
|
+
"references": {}
|
|
580
|
+
}
|
|
581
|
+
}];
|
|
582
|
+
}
|
|
583
|
+
static get elementRef() { return "el"; }
|
|
584
|
+
static get watchers() {
|
|
585
|
+
return [{
|
|
586
|
+
"propName": "value",
|
|
587
|
+
"methodName": "handleValueChange"
|
|
588
|
+
}];
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
//# sourceMappingURL=xplor-text-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xplor-text-field.js","sourceRoot":"","sources":["../../../src/components/xplor-text-field/xplor-text-field.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, h, Prop, State, Event, EventEmitter, Watch, Element } from '@stencil/core';\n\n@Component({\n tag: 'xplor-text-field',\n styleUrl: 'xplor-text-field.scss',\n scoped: true,\n})\nexport class XplorTextField {\n @Element() el: HTMLElement;\n\n /**\n * The current value of the text field\n */\n @Prop({ mutable: true }) value: string = '';\n\n /**\n * The label text for the input\n */\n @Prop() label: string = '';\n\n /**\n * Placeholder text when input is empty\n */\n @Prop() placeholder: string = '';\n\n /**\n * Input type (text, email, password, number, etc.)\n */\n @Prop() type: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' = 'text';\n\n /**\n * Color variant (primary, secondary, success, error, warning, info)\n */\n @Prop() color: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' = 'secondary';\n\n /**\n * Visual variant style\n */\n @Prop() variant: 'outlined' | 'filled' | 'underlined' = 'outlined';\n\n /**\n * Background color\n */\n @Prop() bgColor: string = 'white';\n\n /**\n * Error messages to display\n */\n @Prop() errorMessages: string[] = [];\n\n /**\n * When to show details: true (always), false (never), 'auto' (only when error)\n */\n @Prop() hideDetails: boolean | 'auto' = 'auto';\n\n /**\n * Whether the field is disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Whether the field is readonly\n */\n @Prop() readonly: boolean = false;\n\n /**\n * Whether the field is required\n */\n @Prop() required: boolean = false;\n\n /**\n * Whether the field has been modified (dirty state)\n */\n @Prop() isDirty: boolean = false;\n\n /**\n * Whether the field should be clearable\n */\n @Prop() clearable: boolean = false;\n\n /**\n * Custom CSS classes to apply\n */\n @Prop() customClass: string = '';\n\n /**\n * Maximum length of input\n */\n @Prop() maxlength: number;\n\n /**\n * Minimum value (for number type)\n */\n @Prop() min: number;\n\n /**\n * Maximum value (for number type)\n */\n @Prop() max: number;\n\n /**\n * Internal focused state\n */\n @State() isFocused: boolean = false;\n\n /**\n * Internal hasValue state\n */\n @State() hasValue: boolean = false;\n\n /**\n * Emitted when value changes\n */\n @Event() valueChange: EventEmitter<string>;\n\n /**\n * Emitted when input loses focus\n */\n @Event() inputBlur: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when input gains focus\n */\n @Event() inputFocus: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when clear button is clicked\n */\n @Event() clearClick: EventEmitter<void>;\n\n private inputElement?: HTMLInputElement;\n\n @Watch('value')\n handleValueChange(newValue: string) {\n this.hasValue = !!newValue;\n }\n\n componentWillLoad() {\n this.hasValue = !!this.value;\n }\n\n private handleInput = (e: Event) => {\n const target = e.target as HTMLInputElement;\n this.value = target.value;\n this.valueChange.emit(target.value);\n };\n\n private handleFocus = (e: FocusEvent) => {\n this.isFocused = true;\n this.inputFocus.emit(e);\n };\n\n private handleBlur = (e: FocusEvent) => {\n this.isFocused = false;\n this.inputBlur.emit(e);\n };\n\n private handleClear = (e: MouseEvent) => {\n e.stopPropagation();\n this.value = '';\n this.valueChange.emit('');\n this.clearClick.emit();\n if (this.inputElement) {\n this.inputElement.focus();\n }\n };\n\n private get hasError(): boolean {\n return this.errorMessages && this.errorMessages.length > 0;\n }\n\n private get showDetails(): boolean {\n if (typeof this.hideDetails === 'boolean') {\n return !this.hideDetails;\n }\n // hideDetails === 'auto'\n return this.hasError;\n }\n\n private get computedClasses(): { [key: string]: boolean } {\n return {\n 'xplor-text-field': true,\n [`xplor-text-field--${this.variant}`]: true,\n [`xplor-text-field--${this.color}`]: true,\n 'xplor-text-field--focused': this.isFocused,\n 'xplor-text-field--error': this.hasError,\n 'xplor-text-field--disabled': this.disabled,\n 'xplor-text-field--readonly': this.readonly,\n 'xplor-text-field--dirty': this.isDirty,\n 'xplor-text-field--has-value': this.hasValue || this.isFocused,\n [this.customClass]: !!this.customClass,\n };\n }\n\n render() {\n const labelFloating = this.isFocused || this.hasValue;\n\n return (\n <Host>\n <div class={this.computedClasses}>\n <div class=\"xplor-text-field__wrapper\" style={{ backgroundColor: this.bgColor }}>\n <div class=\"xplor-text-field__input-wrapper\">\n {/* Label */}\n {this.label && (\n <label\n class={{\n 'xplor-text-field__label': true,\n 'xplor-text-field__label--floating': labelFloating,\n }}\n >\n <slot name=\"label\">{this.label}</slot>\n {this.required && <span class=\"xplor-text-field__required\">*</span>}\n </label>\n )}\n\n {/* Input */}\n <input\n ref={(el) => (this.inputElement = el)}\n class=\"xplor-text-field__input\"\n type={this.type}\n value={this.value}\n placeholder={this.isFocused ? this.placeholder : ''}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n maxlength={this.maxlength}\n min={this.min}\n max={this.max}\n onInput={this.handleInput}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n aria-invalid={this.hasError ? 'true' : 'false'}\n aria-describedby={this.hasError ? 'error-messages' : undefined}\n />\n\n {/* Append Inner Slot */}\n <div class=\"xplor-text-field__append-inner\">\n {this.clearable && this.hasValue && !this.disabled && !this.readonly && (\n <button\n type=\"button\"\n class=\"xplor-text-field__clear-btn\"\n onClick={this.handleClear}\n aria-label=\"Clear\"\n >\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\" />\n </svg>\n </button>\n )}\n <slot name=\"append-inner\" />\n </div>\n\n {/* Field Outline */}\n <fieldset class=\"xplor-text-field__outline\">\n <legend class={{ 'xplor-text-field__outline-legend': true, 'xplor-text-field__outline-legend--floating': labelFloating }}>\n {labelFloating && this.label ? <span>{this.label}{this.required && '*'}</span> : <span></span>}\n </legend>\n </fieldset>\n </div>\n\n {/* Append Slot (outside input wrapper) */}\n <div class=\"xplor-text-field__append\">\n <slot name=\"append\" />\n </div>\n </div>\n\n {/* Details (error messages) */}\n {this.showDetails && (\n <div class=\"xplor-text-field__details\">\n {this.hasError && (\n <div id=\"error-messages\" class=\"xplor-text-field__error-messages\">\n {this.errorMessages.map((error) => (\n <div class=\"xplor-text-field__error\">{error}</div>\n ))}\n </div>\n )}\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|