@teranga-ds/components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/cjs/index-BrBjyHdB.js +2038 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/teranga-ds.cjs.js +24 -0
- package/dist/cjs/tg-activity-feed.cjs.entry.js +29 -0
- package/dist/cjs/tg-activity-stream.cjs.entry.js +30 -0
- package/dist/cjs/tg-ai-feedback.cjs.entry.js +29 -0
- package/dist/cjs/tg-ai-insight-card.cjs.entry.js +20 -0
- package/dist/cjs/tg-alert.cjs.entry.js +42 -0
- package/dist/cjs/tg-audio-player.cjs.entry.js +46 -0
- package/dist/cjs/tg-autocomplete.cjs.entry.js +54 -0
- package/dist/cjs/tg-avatar.cjs.entry.js +39 -0
- package/dist/cjs/tg-badge.cjs.entry.js +31 -0
- package/dist/cjs/tg-bottom-nav.cjs.entry.js +30 -0
- package/dist/cjs/tg-bottom-sheet.cjs.entry.js +21 -0
- package/dist/cjs/tg-breadcrumb.cjs.entry.js +53 -0
- package/dist/cjs/tg-button.cjs.entry.js +45 -0
- package/dist/cjs/tg-calendar-view.cjs.entry.js +53 -0
- package/dist/cjs/tg-card.cjs.entry.js +31 -0
- package/dist/cjs/tg-chat-message.cjs.entry.js +19 -0
- package/dist/cjs/tg-chat.cjs.entry.js +59 -0
- package/dist/cjs/tg-checkbox.cjs.entry.js +31 -0
- package/dist/cjs/tg-combobox.cjs.entry.js +68 -0
- package/dist/cjs/tg-command-palette.cjs.entry.js +66 -0
- package/dist/cjs/tg-confidence-badge.cjs.entry.js +27 -0
- package/dist/cjs/tg-confirm-dialog.cjs.entry.js +27 -0
- package/dist/cjs/tg-context-menu.cjs.entry.js +35 -0
- package/dist/cjs/tg-data-table.cjs.entry.js +90 -0
- package/dist/cjs/tg-date-picker.cjs.entry.js +56 -0
- package/dist/cjs/tg-empty-state.cjs.entry.js +19 -0
- package/dist/cjs/tg-expandable-row.cjs.entry.js +19 -0
- package/dist/cjs/tg-fab.cjs.entry.js +22 -0
- package/dist/cjs/tg-file-upload.cjs.entry.js +86 -0
- package/dist/cjs/tg-global-loader.cjs.entry.js +24 -0
- package/dist/cjs/tg-heatmap.cjs.entry.js +65 -0
- package/dist/cjs/tg-image-gallery.cjs.entry.js +32 -0
- package/dist/cjs/tg-input.cjs.entry.js +51 -0
- package/dist/cjs/tg-kanban-board.cjs.entry.js +30 -0
- package/dist/cjs/tg-kpi-card.cjs.entry.js +20 -0
- package/dist/cjs/tg-live-badge.cjs.entry.js +20 -0
- package/dist/cjs/tg-login-form.cjs.entry.js +23 -0
- package/dist/cjs/tg-mega-menu.cjs.entry.js +34 -0
- package/dist/cjs/tg-modal.cjs.entry.js +43 -0
- package/dist/cjs/tg-model-selector.cjs.entry.js +34 -0
- package/dist/cjs/tg-multi-select.cjs.entry.js +67 -0
- package/dist/cjs/tg-navbar.cjs.entry.js +43 -0
- package/dist/cjs/tg-otp-input.cjs.entry.js +60 -0
- package/dist/cjs/tg-pagination.cjs.entry.js +53 -0
- package/dist/cjs/tg-presence-indicator.cjs.entry.js +33 -0
- package/dist/cjs/tg-progress.cjs.entry.js +53 -0
- package/dist/cjs/tg-prompt-input.cjs.entry.js +34 -0
- package/dist/cjs/tg-pull-to-refresh.cjs.entry.js +37 -0
- package/dist/cjs/tg-quick-switcher.cjs.entry.js +35 -0
- package/dist/cjs/tg-radio.cjs.entry.js +29 -0
- package/dist/cjs/tg-retry-ui.cjs.entry.js +22 -0
- package/dist/cjs/tg-rich-editor.cjs.entry.js +24 -0
- package/dist/cjs/tg-role-badge.cjs.entry.js +19 -0
- package/dist/cjs/tg-select.cjs.entry.js +69 -0
- package/dist/cjs/tg-session-expired.cjs.entry.js +24 -0
- package/dist/cjs/tg-sidebar.cjs.entry.js +35 -0
- package/dist/cjs/tg-skeleton.cjs.entry.js +30 -0
- package/dist/cjs/tg-slider.cjs.entry.js +26 -0
- package/dist/cjs/tg-source-citation.cjs.entry.js +29 -0
- package/dist/cjs/tg-spinner.cjs.entry.js +27 -0
- package/dist/cjs/tg-stat-widget.cjs.entry.js +19 -0
- package/dist/cjs/tg-status-badge.cjs.entry.js +21 -0
- package/dist/cjs/tg-stepper-input.cjs.entry.js +39 -0
- package/dist/cjs/tg-stepper.cjs.entry.js +31 -0
- package/dist/cjs/tg-streaming-response.cjs.entry.js +19 -0
- package/dist/cjs/tg-switch.cjs.entry.js +31 -0
- package/dist/cjs/tg-table.cjs.entry.js +113 -0
- package/dist/cjs/tg-tabs.cjs.entry.js +47 -0
- package/dist/cjs/tg-tag.cjs.entry.js +28 -0
- package/dist/cjs/tg-textarea.cjs.entry.js +45 -0
- package/dist/cjs/tg-time-picker.cjs.entry.js +37 -0
- package/dist/cjs/tg-timeline.cjs.entry.js +30 -0
- package/dist/cjs/tg-toast.cjs.entry.js +53 -0
- package/dist/cjs/tg-token-usage.cjs.entry.js +23 -0
- package/dist/cjs/tg-tooltip.cjs.entry.js +32 -0
- package/dist/cjs/tg-tree-view.cjs.entry.js +53 -0
- package/dist/cjs/tg-undo-snackbar.cjs.entry.js +30 -0
- package/dist/cjs/tg-video-player.cjs.entry.js +19 -0
- package/dist/cjs/tg-wizard-nav.cjs.entry.js +30 -0
- package/dist/collection/collection-manifest.json +91 -0
- package/dist/collection/components/tg-activity-feed/tg-activity-feed.css +10 -0
- package/dist/collection/components/tg-activity-feed/tg-activity-feed.js +81 -0
- package/dist/collection/components/tg-activity-stream/tg-activity-stream.css +11 -0
- package/dist/collection/components/tg-activity-stream/tg-activity-stream.js +83 -0
- package/dist/collection/components/tg-ai-feedback/tg-ai-feedback.css +12 -0
- package/dist/collection/components/tg-ai-feedback/tg-ai-feedback.js +80 -0
- package/dist/collection/components/tg-ai-insight-card/tg-ai-insight-card.css +10 -0
- package/dist/collection/components/tg-ai-insight-card/tg-ai-insight-card.js +144 -0
- package/dist/collection/components/tg-alert/tg-alert.css +122 -0
- package/dist/collection/components/tg-alert/tg-alert.js +142 -0
- package/dist/collection/components/tg-audio-player/tg-audio-player.css +11 -0
- package/dist/collection/components/tg-audio-player/tg-audio-player.js +118 -0
- package/dist/collection/components/tg-autocomplete/tg-autocomplete.css +15 -0
- package/dist/collection/components/tg-autocomplete/tg-autocomplete.js +285 -0
- package/dist/collection/components/tg-avatar/tg-avatar.css +72 -0
- package/dist/collection/components/tg-avatar/tg-avatar.js +195 -0
- package/dist/collection/components/tg-badge/tg-badge.css +153 -0
- package/dist/collection/components/tg-badge/tg-badge.js +128 -0
- package/dist/collection/components/tg-bottom-nav/tg-bottom-nav.css +7 -0
- package/dist/collection/components/tg-bottom-nav/tg-bottom-nav.js +99 -0
- package/dist/collection/components/tg-bottom-sheet/tg-bottom-sheet.css +8 -0
- package/dist/collection/components/tg-bottom-sheet/tg-bottom-sheet.js +84 -0
- package/dist/collection/components/tg-breadcrumb/tg-breadcrumb.css +82 -0
- package/dist/collection/components/tg-breadcrumb/tg-breadcrumb.js +111 -0
- package/dist/collection/components/tg-button/tg-button.css +245 -0
- package/dist/collection/components/tg-button/tg-button.js +239 -0
- package/dist/collection/components/tg-calendar-view/tg-calendar-view.css +19 -0
- package/dist/collection/components/tg-calendar-view/tg-calendar-view.js +108 -0
- package/dist/collection/components/tg-card/tg-card.css +117 -0
- package/dist/collection/components/tg-card/tg-card.js +134 -0
- package/dist/collection/components/tg-chat/tg-chat.css +207 -0
- package/dist/collection/components/tg-chat/tg-chat.js +194 -0
- package/dist/collection/components/tg-chat-message/tg-chat-message.css +15 -0
- package/dist/collection/components/tg-chat-message/tg-chat-message.js +104 -0
- package/dist/collection/components/tg-checkbox/tg-checkbox.css +94 -0
- package/dist/collection/components/tg-checkbox/tg-checkbox.js +210 -0
- package/dist/collection/components/tg-combobox/tg-combobox.css +22 -0
- package/dist/collection/components/tg-combobox/tg-combobox.js +290 -0
- package/dist/collection/components/tg-command-palette/tg-command-palette.css +16 -0
- package/dist/collection/components/tg-command-palette/tg-command-palette.js +152 -0
- package/dist/collection/components/tg-confidence-badge/tg-confidence-badge.css +12 -0
- package/dist/collection/components/tg-confidence-badge/tg-confidence-badge.js +93 -0
- package/dist/collection/components/tg-confirm-dialog/tg-confirm-dialog.css +19 -0
- package/dist/collection/components/tg-confirm-dialog/tg-confirm-dialog.js +204 -0
- package/dist/collection/components/tg-context-menu/tg-context-menu.css +12 -0
- package/dist/collection/components/tg-context-menu/tg-context-menu.js +107 -0
- package/dist/collection/components/tg-data-table/tg-data-table.css +19 -0
- package/dist/collection/components/tg-data-table/tg-data-table.js +287 -0
- package/dist/collection/components/tg-date-picker/tg-date-picker.css +28 -0
- package/dist/collection/components/tg-date-picker/tg-date-picker.js +251 -0
- package/dist/collection/components/tg-empty-state/tg-empty-state.css +7 -0
- package/dist/collection/components/tg-empty-state/tg-empty-state.js +123 -0
- package/dist/collection/components/tg-expandable-row/tg-expandable-row.css +13 -0
- package/dist/collection/components/tg-expandable-row/tg-expandable-row.js +89 -0
- package/dist/collection/components/tg-fab/tg-fab.css +16 -0
- package/dist/collection/components/tg-fab/tg-fab.js +164 -0
- package/dist/collection/components/tg-file-upload/tg-file-upload.css +172 -0
- package/dist/collection/components/tg-file-upload/tg-file-upload.js +240 -0
- package/dist/collection/components/tg-global-loader/tg-global-loader.css +8 -0
- package/dist/collection/components/tg-global-loader/tg-global-loader.js +90 -0
- package/dist/collection/components/tg-heatmap/tg-heatmap.css +9 -0
- package/dist/collection/components/tg-heatmap/tg-heatmap.js +191 -0
- package/dist/collection/components/tg-image-gallery/tg-image-gallery.css +13 -0
- package/dist/collection/components/tg-image-gallery/tg-image-gallery.js +90 -0
- package/dist/collection/components/tg-input/tg-input.css +164 -0
- package/dist/collection/components/tg-input/tg-input.js +355 -0
- package/dist/collection/components/tg-kanban-board/tg-kanban-board.css +14 -0
- package/dist/collection/components/tg-kanban-board/tg-kanban-board.js +80 -0
- package/dist/collection/components/tg-kpi-card/tg-kpi-card.css +17 -0
- package/dist/collection/components/tg-kpi-card/tg-kpi-card.js +163 -0
- package/dist/collection/components/tg-live-badge/tg-live-badge.css +11 -0
- package/dist/collection/components/tg-live-badge/tg-live-badge.js +87 -0
- package/dist/collection/components/tg-login-form/tg-login-form.css +16 -0
- package/dist/collection/components/tg-login-form/tg-login-form.js +150 -0
- package/dist/collection/components/tg-mega-menu/tg-mega-menu.css +19 -0
- package/dist/collection/components/tg-mega-menu/tg-mega-menu.js +82 -0
- package/dist/collection/components/tg-modal/tg-modal.css +132 -0
- package/dist/collection/components/tg-modal/tg-modal.js +180 -0
- package/dist/collection/components/tg-model-selector/tg-model-selector.css +15 -0
- package/dist/collection/components/tg-model-selector/tg-model-selector.js +117 -0
- package/dist/collection/components/tg-multi-select/tg-multi-select.css +22 -0
- package/dist/collection/components/tg-multi-select/tg-multi-select.js +251 -0
- package/dist/collection/components/tg-navbar/tg-navbar.css +144 -0
- package/dist/collection/components/tg-navbar/tg-navbar.js +159 -0
- package/dist/collection/components/tg-otp-input/tg-otp-input.css +10 -0
- package/dist/collection/components/tg-otp-input/tg-otp-input.js +221 -0
- package/dist/collection/components/tg-pagination/tg-pagination.css +73 -0
- package/dist/collection/components/tg-pagination/tg-pagination.js +137 -0
- package/dist/collection/components/tg-presence-indicator/tg-presence-indicator.css +10 -0
- package/dist/collection/components/tg-presence-indicator/tg-presence-indicator.js +80 -0
- package/dist/collection/components/tg-progress/tg-progress.css +142 -0
- package/dist/collection/components/tg-progress/tg-progress.js +299 -0
- package/dist/collection/components/tg-prompt-input/tg-prompt-input.css +11 -0
- package/dist/collection/components/tg-prompt-input/tg-prompt-input.js +142 -0
- package/dist/collection/components/tg-pull-to-refresh/tg-pull-to-refresh.css +7 -0
- package/dist/collection/components/tg-pull-to-refresh/tg-pull-to-refresh.js +127 -0
- package/dist/collection/components/tg-quick-switcher/tg-quick-switcher.css +12 -0
- package/dist/collection/components/tg-quick-switcher/tg-quick-switcher.js +120 -0
- package/dist/collection/components/tg-radio/tg-radio.css +83 -0
- package/dist/collection/components/tg-radio/tg-radio.js +169 -0
- package/dist/collection/components/tg-retry-ui/tg-retry-ui.css +10 -0
- package/dist/collection/components/tg-retry-ui/tg-retry-ui.js +145 -0
- package/dist/collection/components/tg-rich-editor/tg-rich-editor.css +10 -0
- package/dist/collection/components/tg-rich-editor/tg-rich-editor.js +151 -0
- package/dist/collection/components/tg-role-badge/tg-role-badge.css +7 -0
- package/dist/collection/components/tg-role-badge/tg-role-badge.js +85 -0
- package/dist/collection/components/tg-select/tg-select.css +144 -0
- package/dist/collection/components/tg-select/tg-select.js +329 -0
- package/dist/collection/components/tg-session-expired/tg-session-expired.css +8 -0
- package/dist/collection/components/tg-session-expired/tg-session-expired.js +128 -0
- package/dist/collection/components/tg-sidebar/tg-sidebar.css +188 -0
- package/dist/collection/components/tg-sidebar/tg-sidebar.js +112 -0
- package/dist/collection/components/tg-skeleton/tg-skeleton.css +58 -0
- package/dist/collection/components/tg-skeleton/tg-skeleton.js +135 -0
- package/dist/collection/components/tg-slider/tg-slider.css +10 -0
- package/dist/collection/components/tg-slider/tg-slider.js +208 -0
- package/dist/collection/components/tg-source-citation/tg-source-citation.css +12 -0
- package/dist/collection/components/tg-source-citation/tg-source-citation.js +56 -0
- package/dist/collection/components/tg-spinner/tg-spinner.css +50 -0
- package/dist/collection/components/tg-spinner/tg-spinner.js +101 -0
- package/dist/collection/components/tg-stat-widget/tg-stat-widget.css +12 -0
- package/dist/collection/components/tg-stat-widget/tg-stat-widget.js +142 -0
- package/dist/collection/components/tg-status-badge/tg-status-badge.css +24 -0
- package/dist/collection/components/tg-status-badge/tg-status-badge.js +108 -0
- package/dist/collection/components/tg-stepper/tg-stepper.css +17 -0
- package/dist/collection/components/tg-stepper/tg-stepper.js +104 -0
- package/dist/collection/components/tg-stepper-input/tg-stepper-input.css +15 -0
- package/dist/collection/components/tg-stepper-input/tg-stepper-input.js +200 -0
- package/dist/collection/components/tg-streaming-response/tg-streaming-response.css +12 -0
- package/dist/collection/components/tg-streaming-response/tg-streaming-response.js +104 -0
- package/dist/collection/components/tg-switch/tg-switch.css +89 -0
- package/dist/collection/components/tg-switch/tg-switch.js +172 -0
- package/dist/collection/components/tg-table/tg-table.css +117 -0
- package/dist/collection/components/tg-table/tg-table.js +289 -0
- package/dist/collection/components/tg-tabs/tg-tabs.css +114 -0
- package/dist/collection/components/tg-tabs/tg-tabs.js +141 -0
- package/dist/collection/components/tg-tag/tg-tag.css +76 -0
- package/dist/collection/components/tg-tag/tg-tag.js +152 -0
- package/dist/collection/components/tg-textarea/tg-textarea.css +105 -0
- package/dist/collection/components/tg-textarea/tg-textarea.js +357 -0
- package/dist/collection/components/tg-time-picker/tg-time-picker.css +15 -0
- package/dist/collection/components/tg-time-picker/tg-time-picker.js +213 -0
- package/dist/collection/components/tg-timeline/tg-timeline.css +14 -0
- package/dist/collection/components/tg-timeline/tg-timeline.js +83 -0
- package/dist/collection/components/tg-toast/tg-toast.css +112 -0
- package/dist/collection/components/tg-toast/tg-toast.js +181 -0
- package/dist/collection/components/tg-token-usage/tg-token-usage.css +14 -0
- package/dist/collection/components/tg-token-usage/tg-token-usage.js +129 -0
- package/dist/collection/components/tg-tooltip/tg-tooltip.css +93 -0
- package/dist/collection/components/tg-tooltip/tg-tooltip.js +104 -0
- package/dist/collection/components/tg-tree-view/tg-tree-view.css +10 -0
- package/dist/collection/components/tg-tree-view/tg-tree-view.js +112 -0
- package/dist/collection/components/tg-undo-snackbar/tg-undo-snackbar.css +8 -0
- package/dist/collection/components/tg-undo-snackbar/tg-undo-snackbar.js +148 -0
- package/dist/collection/components/tg-video-player/tg-video-player.css +6 -0
- package/dist/collection/components/tg-video-player/tg-video-player.js +104 -0
- package/dist/collection/components/tg-wizard-nav/tg-wizard-nav.css +14 -0
- package/dist/collection/components/tg-wizard-nav/tg-wizard-nav.js +202 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/teranga-tokens.css +189 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-BWkBF3Ng.js +1 -0
- package/dist/components/p-DcG1qXzH.js +1 -0
- package/dist/components/tg-activity-feed.d.ts +11 -0
- package/dist/components/tg-activity-feed.js +1 -0
- package/dist/components/tg-activity-stream.d.ts +11 -0
- package/dist/components/tg-activity-stream.js +1 -0
- package/dist/components/tg-ai-feedback.d.ts +11 -0
- package/dist/components/tg-ai-feedback.js +1 -0
- package/dist/components/tg-ai-insight-card.d.ts +11 -0
- package/dist/components/tg-ai-insight-card.js +1 -0
- package/dist/components/tg-alert.d.ts +11 -0
- package/dist/components/tg-alert.js +1 -0
- package/dist/components/tg-audio-player.d.ts +11 -0
- package/dist/components/tg-audio-player.js +1 -0
- package/dist/components/tg-autocomplete.d.ts +11 -0
- package/dist/components/tg-autocomplete.js +1 -0
- package/dist/components/tg-avatar.d.ts +11 -0
- package/dist/components/tg-avatar.js +1 -0
- package/dist/components/tg-badge.d.ts +11 -0
- package/dist/components/tg-badge.js +1 -0
- package/dist/components/tg-bottom-nav.d.ts +11 -0
- package/dist/components/tg-bottom-nav.js +1 -0
- package/dist/components/tg-bottom-sheet.d.ts +11 -0
- package/dist/components/tg-bottom-sheet.js +1 -0
- package/dist/components/tg-breadcrumb.d.ts +11 -0
- package/dist/components/tg-breadcrumb.js +1 -0
- package/dist/components/tg-button.d.ts +11 -0
- package/dist/components/tg-button.js +1 -0
- package/dist/components/tg-calendar-view.d.ts +11 -0
- package/dist/components/tg-calendar-view.js +1 -0
- package/dist/components/tg-card.d.ts +11 -0
- package/dist/components/tg-card.js +1 -0
- package/dist/components/tg-chat-message.d.ts +11 -0
- package/dist/components/tg-chat-message.js +1 -0
- package/dist/components/tg-chat.d.ts +11 -0
- package/dist/components/tg-chat.js +1 -0
- package/dist/components/tg-checkbox.d.ts +11 -0
- package/dist/components/tg-checkbox.js +1 -0
- package/dist/components/tg-combobox.d.ts +11 -0
- package/dist/components/tg-combobox.js +1 -0
- package/dist/components/tg-command-palette.d.ts +11 -0
- package/dist/components/tg-command-palette.js +1 -0
- package/dist/components/tg-confidence-badge.d.ts +11 -0
- package/dist/components/tg-confidence-badge.js +1 -0
- package/dist/components/tg-confirm-dialog.d.ts +11 -0
- package/dist/components/tg-confirm-dialog.js +1 -0
- package/dist/components/tg-context-menu.d.ts +11 -0
- package/dist/components/tg-context-menu.js +1 -0
- package/dist/components/tg-data-table.d.ts +11 -0
- package/dist/components/tg-data-table.js +1 -0
- package/dist/components/tg-date-picker.d.ts +11 -0
- package/dist/components/tg-date-picker.js +1 -0
- package/dist/components/tg-empty-state.d.ts +11 -0
- package/dist/components/tg-empty-state.js +1 -0
- package/dist/components/tg-expandable-row.d.ts +11 -0
- package/dist/components/tg-expandable-row.js +1 -0
- package/dist/components/tg-fab.d.ts +11 -0
- package/dist/components/tg-fab.js +1 -0
- package/dist/components/tg-file-upload.d.ts +11 -0
- package/dist/components/tg-file-upload.js +1 -0
- package/dist/components/tg-global-loader.d.ts +11 -0
- package/dist/components/tg-global-loader.js +1 -0
- package/dist/components/tg-heatmap.d.ts +11 -0
- package/dist/components/tg-heatmap.js +1 -0
- package/dist/components/tg-image-gallery.d.ts +11 -0
- package/dist/components/tg-image-gallery.js +1 -0
- package/dist/components/tg-input.d.ts +11 -0
- package/dist/components/tg-input.js +1 -0
- package/dist/components/tg-kanban-board.d.ts +11 -0
- package/dist/components/tg-kanban-board.js +1 -0
- package/dist/components/tg-kpi-card.d.ts +11 -0
- package/dist/components/tg-kpi-card.js +1 -0
- package/dist/components/tg-live-badge.d.ts +11 -0
- package/dist/components/tg-live-badge.js +1 -0
- package/dist/components/tg-login-form.d.ts +11 -0
- package/dist/components/tg-login-form.js +1 -0
- package/dist/components/tg-mega-menu.d.ts +11 -0
- package/dist/components/tg-mega-menu.js +1 -0
- package/dist/components/tg-modal.d.ts +11 -0
- package/dist/components/tg-modal.js +1 -0
- package/dist/components/tg-model-selector.d.ts +11 -0
- package/dist/components/tg-model-selector.js +1 -0
- package/dist/components/tg-multi-select.d.ts +11 -0
- package/dist/components/tg-multi-select.js +1 -0
- package/dist/components/tg-navbar.d.ts +11 -0
- package/dist/components/tg-navbar.js +1 -0
- package/dist/components/tg-otp-input.d.ts +11 -0
- package/dist/components/tg-otp-input.js +1 -0
- package/dist/components/tg-pagination.d.ts +11 -0
- package/dist/components/tg-pagination.js +1 -0
- package/dist/components/tg-presence-indicator.d.ts +11 -0
- package/dist/components/tg-presence-indicator.js +1 -0
- package/dist/components/tg-progress.d.ts +11 -0
- package/dist/components/tg-progress.js +1 -0
- package/dist/components/tg-prompt-input.d.ts +11 -0
- package/dist/components/tg-prompt-input.js +1 -0
- package/dist/components/tg-pull-to-refresh.d.ts +11 -0
- package/dist/components/tg-pull-to-refresh.js +1 -0
- package/dist/components/tg-quick-switcher.d.ts +11 -0
- package/dist/components/tg-quick-switcher.js +1 -0
- package/dist/components/tg-radio.d.ts +11 -0
- package/dist/components/tg-radio.js +1 -0
- package/dist/components/tg-retry-ui.d.ts +11 -0
- package/dist/components/tg-retry-ui.js +1 -0
- package/dist/components/tg-rich-editor.d.ts +11 -0
- package/dist/components/tg-rich-editor.js +1 -0
- package/dist/components/tg-role-badge.d.ts +11 -0
- package/dist/components/tg-role-badge.js +1 -0
- package/dist/components/tg-select.d.ts +11 -0
- package/dist/components/tg-select.js +1 -0
- package/dist/components/tg-session-expired.d.ts +11 -0
- package/dist/components/tg-session-expired.js +1 -0
- package/dist/components/tg-sidebar.d.ts +11 -0
- package/dist/components/tg-sidebar.js +1 -0
- package/dist/components/tg-skeleton.d.ts +11 -0
- package/dist/components/tg-skeleton.js +1 -0
- package/dist/components/tg-slider.d.ts +11 -0
- package/dist/components/tg-slider.js +1 -0
- package/dist/components/tg-source-citation.d.ts +11 -0
- package/dist/components/tg-source-citation.js +1 -0
- package/dist/components/tg-spinner.d.ts +11 -0
- package/dist/components/tg-spinner.js +1 -0
- package/dist/components/tg-stat-widget.d.ts +11 -0
- package/dist/components/tg-stat-widget.js +1 -0
- package/dist/components/tg-status-badge.d.ts +11 -0
- package/dist/components/tg-status-badge.js +1 -0
- package/dist/components/tg-stepper-input.d.ts +11 -0
- package/dist/components/tg-stepper-input.js +1 -0
- package/dist/components/tg-stepper.d.ts +11 -0
- package/dist/components/tg-stepper.js +1 -0
- package/dist/components/tg-streaming-response.d.ts +11 -0
- package/dist/components/tg-streaming-response.js +1 -0
- package/dist/components/tg-switch.d.ts +11 -0
- package/dist/components/tg-switch.js +1 -0
- package/dist/components/tg-table.d.ts +11 -0
- package/dist/components/tg-table.js +1 -0
- package/dist/components/tg-tabs.d.ts +11 -0
- package/dist/components/tg-tabs.js +1 -0
- package/dist/components/tg-tag.d.ts +11 -0
- package/dist/components/tg-tag.js +1 -0
- package/dist/components/tg-textarea.d.ts +11 -0
- package/dist/components/tg-textarea.js +1 -0
- package/dist/components/tg-time-picker.d.ts +11 -0
- package/dist/components/tg-time-picker.js +1 -0
- package/dist/components/tg-timeline.d.ts +11 -0
- package/dist/components/tg-timeline.js +1 -0
- package/dist/components/tg-toast.d.ts +11 -0
- package/dist/components/tg-toast.js +1 -0
- package/dist/components/tg-token-usage.d.ts +11 -0
- package/dist/components/tg-token-usage.js +1 -0
- package/dist/components/tg-tooltip.d.ts +11 -0
- package/dist/components/tg-tooltip.js +1 -0
- package/dist/components/tg-tree-view.d.ts +11 -0
- package/dist/components/tg-tree-view.js +1 -0
- package/dist/components/tg-undo-snackbar.d.ts +11 -0
- package/dist/components/tg-undo-snackbar.js +1 -0
- package/dist/components/tg-video-player.d.ts +11 -0
- package/dist/components/tg-video-player.js +1 -0
- package/dist/components/tg-wizard-nav.d.ts +11 -0
- package/dist/components/tg-wizard-nav.js +1 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +14240 -0
- package/dist/esm/index-CXqO9vvj.js +2010 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/teranga-ds.js +20 -0
- package/dist/esm/tg-activity-feed.entry.js +27 -0
- package/dist/esm/tg-activity-stream.entry.js +28 -0
- package/dist/esm/tg-ai-feedback.entry.js +27 -0
- package/dist/esm/tg-ai-insight-card.entry.js +18 -0
- package/dist/esm/tg-alert.entry.js +40 -0
- package/dist/esm/tg-audio-player.entry.js +44 -0
- package/dist/esm/tg-autocomplete.entry.js +52 -0
- package/dist/esm/tg-avatar.entry.js +37 -0
- package/dist/esm/tg-badge.entry.js +29 -0
- package/dist/esm/tg-bottom-nav.entry.js +28 -0
- package/dist/esm/tg-bottom-sheet.entry.js +19 -0
- package/dist/esm/tg-breadcrumb.entry.js +51 -0
- package/dist/esm/tg-button.entry.js +43 -0
- package/dist/esm/tg-calendar-view.entry.js +51 -0
- package/dist/esm/tg-card.entry.js +29 -0
- package/dist/esm/tg-chat-message.entry.js +17 -0
- package/dist/esm/tg-chat.entry.js +57 -0
- package/dist/esm/tg-checkbox.entry.js +29 -0
- package/dist/esm/tg-combobox.entry.js +66 -0
- package/dist/esm/tg-command-palette.entry.js +64 -0
- package/dist/esm/tg-confidence-badge.entry.js +25 -0
- package/dist/esm/tg-confirm-dialog.entry.js +25 -0
- package/dist/esm/tg-context-menu.entry.js +33 -0
- package/dist/esm/tg-data-table.entry.js +88 -0
- package/dist/esm/tg-date-picker.entry.js +54 -0
- package/dist/esm/tg-empty-state.entry.js +17 -0
- package/dist/esm/tg-expandable-row.entry.js +17 -0
- package/dist/esm/tg-fab.entry.js +20 -0
- package/dist/esm/tg-file-upload.entry.js +84 -0
- package/dist/esm/tg-global-loader.entry.js +22 -0
- package/dist/esm/tg-heatmap.entry.js +63 -0
- package/dist/esm/tg-image-gallery.entry.js +30 -0
- package/dist/esm/tg-input.entry.js +49 -0
- package/dist/esm/tg-kanban-board.entry.js +28 -0
- package/dist/esm/tg-kpi-card.entry.js +18 -0
- package/dist/esm/tg-live-badge.entry.js +18 -0
- package/dist/esm/tg-login-form.entry.js +21 -0
- package/dist/esm/tg-mega-menu.entry.js +32 -0
- package/dist/esm/tg-modal.entry.js +41 -0
- package/dist/esm/tg-model-selector.entry.js +32 -0
- package/dist/esm/tg-multi-select.entry.js +65 -0
- package/dist/esm/tg-navbar.entry.js +41 -0
- package/dist/esm/tg-otp-input.entry.js +58 -0
- package/dist/esm/tg-pagination.entry.js +51 -0
- package/dist/esm/tg-presence-indicator.entry.js +31 -0
- package/dist/esm/tg-progress.entry.js +51 -0
- package/dist/esm/tg-prompt-input.entry.js +32 -0
- package/dist/esm/tg-pull-to-refresh.entry.js +35 -0
- package/dist/esm/tg-quick-switcher.entry.js +33 -0
- package/dist/esm/tg-radio.entry.js +27 -0
- package/dist/esm/tg-retry-ui.entry.js +20 -0
- package/dist/esm/tg-rich-editor.entry.js +22 -0
- package/dist/esm/tg-role-badge.entry.js +17 -0
- package/dist/esm/tg-select.entry.js +67 -0
- package/dist/esm/tg-session-expired.entry.js +22 -0
- package/dist/esm/tg-sidebar.entry.js +33 -0
- package/dist/esm/tg-skeleton.entry.js +28 -0
- package/dist/esm/tg-slider.entry.js +24 -0
- package/dist/esm/tg-source-citation.entry.js +27 -0
- package/dist/esm/tg-spinner.entry.js +25 -0
- package/dist/esm/tg-stat-widget.entry.js +17 -0
- package/dist/esm/tg-status-badge.entry.js +19 -0
- package/dist/esm/tg-stepper-input.entry.js +37 -0
- package/dist/esm/tg-stepper.entry.js +29 -0
- package/dist/esm/tg-streaming-response.entry.js +17 -0
- package/dist/esm/tg-switch.entry.js +29 -0
- package/dist/esm/tg-table.entry.js +111 -0
- package/dist/esm/tg-tabs.entry.js +45 -0
- package/dist/esm/tg-tag.entry.js +26 -0
- package/dist/esm/tg-textarea.entry.js +43 -0
- package/dist/esm/tg-time-picker.entry.js +35 -0
- package/dist/esm/tg-timeline.entry.js +28 -0
- package/dist/esm/tg-toast.entry.js +51 -0
- package/dist/esm/tg-token-usage.entry.js +21 -0
- package/dist/esm/tg-tooltip.entry.js +30 -0
- package/dist/esm/tg-tree-view.entry.js +51 -0
- package/dist/esm/tg-undo-snackbar.entry.js +28 -0
- package/dist/esm/tg-video-player.entry.js +17 -0
- package/dist/esm/tg-wizard-nav.entry.js +28 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/teranga-ds/index.esm.js +0 -0
- package/dist/teranga-ds/p-003a47ca.entry.js +1 -0
- package/dist/teranga-ds/p-017ddeb1.entry.js +1 -0
- package/dist/teranga-ds/p-02c5a12d.entry.js +1 -0
- package/dist/teranga-ds/p-0a42664a.entry.js +1 -0
- package/dist/teranga-ds/p-0b076dde.entry.js +1 -0
- package/dist/teranga-ds/p-0c4d9863.entry.js +1 -0
- package/dist/teranga-ds/p-0e8e624c.entry.js +1 -0
- package/dist/teranga-ds/p-188921a5.entry.js +1 -0
- package/dist/teranga-ds/p-1925d476.entry.js +1 -0
- package/dist/teranga-ds/p-19a4e248.entry.js +1 -0
- package/dist/teranga-ds/p-223af07c.entry.js +1 -0
- package/dist/teranga-ds/p-229331e3.entry.js +1 -0
- package/dist/teranga-ds/p-229a048d.entry.js +1 -0
- package/dist/teranga-ds/p-2537b595.entry.js +1 -0
- package/dist/teranga-ds/p-256c5686.entry.js +1 -0
- package/dist/teranga-ds/p-25af1fe1.entry.js +1 -0
- package/dist/teranga-ds/p-293e42b5.entry.js +1 -0
- package/dist/teranga-ds/p-29ce1cb3.entry.js +1 -0
- package/dist/teranga-ds/p-2bcf5c49.entry.js +1 -0
- package/dist/teranga-ds/p-2e8eb1cd.entry.js +1 -0
- package/dist/teranga-ds/p-321ec5a3.entry.js +1 -0
- package/dist/teranga-ds/p-34c8b3db.entry.js +1 -0
- package/dist/teranga-ds/p-3722c1c8.entry.js +1 -0
- package/dist/teranga-ds/p-386e978e.entry.js +1 -0
- package/dist/teranga-ds/p-45825e6c.entry.js +1 -0
- package/dist/teranga-ds/p-45d69cd2.entry.js +1 -0
- package/dist/teranga-ds/p-4ca63079.entry.js +1 -0
- package/dist/teranga-ds/p-4cdefae6.entry.js +1 -0
- package/dist/teranga-ds/p-4d3e0645.entry.js +1 -0
- package/dist/teranga-ds/p-5179d2e1.entry.js +1 -0
- package/dist/teranga-ds/p-5888f1d1.entry.js +1 -0
- package/dist/teranga-ds/p-58fd7fc1.entry.js +1 -0
- package/dist/teranga-ds/p-5b34ae37.entry.js +1 -0
- package/dist/teranga-ds/p-5cb3cab5.entry.js +1 -0
- package/dist/teranga-ds/p-5f64253e.entry.js +1 -0
- package/dist/teranga-ds/p-61bab799.entry.js +1 -0
- package/dist/teranga-ds/p-63285c1c.entry.js +1 -0
- package/dist/teranga-ds/p-6b40af59.entry.js +1 -0
- package/dist/teranga-ds/p-6c275cd2.entry.js +1 -0
- package/dist/teranga-ds/p-700908a2.entry.js +1 -0
- package/dist/teranga-ds/p-71257d05.entry.js +1 -0
- package/dist/teranga-ds/p-727543e6.entry.js +1 -0
- package/dist/teranga-ds/p-73082aef.entry.js +1 -0
- package/dist/teranga-ds/p-7acaa999.entry.js +1 -0
- package/dist/teranga-ds/p-81041fa8.entry.js +1 -0
- package/dist/teranga-ds/p-816417c6.entry.js +1 -0
- package/dist/teranga-ds/p-82057162.entry.js +1 -0
- package/dist/teranga-ds/p-84506153.entry.js +1 -0
- package/dist/teranga-ds/p-9259b7ad.entry.js +1 -0
- package/dist/teranga-ds/p-968f33cd.entry.js +1 -0
- package/dist/teranga-ds/p-9a86750e.entry.js +1 -0
- package/dist/teranga-ds/p-9b661306.entry.js +1 -0
- package/dist/teranga-ds/p-9ddbbe0b.entry.js +1 -0
- package/dist/teranga-ds/p-9f6a460b.entry.js +1 -0
- package/dist/teranga-ds/p-CXqO9vvj.js +2 -0
- package/dist/teranga-ds/p-a02dc9c0.entry.js +1 -0
- package/dist/teranga-ds/p-a25e8482.entry.js +1 -0
- package/dist/teranga-ds/p-a7ed37b2.entry.js +1 -0
- package/dist/teranga-ds/p-b4b5570e.entry.js +1 -0
- package/dist/teranga-ds/p-b762afff.entry.js +1 -0
- package/dist/teranga-ds/p-ba67b6cb.entry.js +1 -0
- package/dist/teranga-ds/p-bd667d1b.entry.js +1 -0
- package/dist/teranga-ds/p-bd7eefaa.entry.js +1 -0
- package/dist/teranga-ds/p-cd11c0ce.entry.js +1 -0
- package/dist/teranga-ds/p-d783708a.entry.js +1 -0
- package/dist/teranga-ds/p-dab038ae.entry.js +1 -0
- package/dist/teranga-ds/p-dda9a7c3.entry.js +1 -0
- package/dist/teranga-ds/p-deb81958.entry.js +1 -0
- package/dist/teranga-ds/p-dfaff259.entry.js +1 -0
- package/dist/teranga-ds/p-e0c5a144.entry.js +1 -0
- package/dist/teranga-ds/p-e26d2a8d.entry.js +1 -0
- package/dist/teranga-ds/p-e58a4ab8.entry.js +1 -0
- package/dist/teranga-ds/p-e8736bde.entry.js +1 -0
- package/dist/teranga-ds/p-eca93015.entry.js +1 -0
- package/dist/teranga-ds/p-ed2a5ec6.entry.js +1 -0
- package/dist/teranga-ds/p-ed48b855.entry.js +1 -0
- package/dist/teranga-ds/p-ee8c0470.entry.js +1 -0
- package/dist/teranga-ds/p-efff537c.entry.js +1 -0
- package/dist/teranga-ds/p-f5d99e53.entry.js +1 -0
- package/dist/teranga-ds/p-f790b8f4.entry.js +1 -0
- package/dist/teranga-ds/teranga-ds.css +1 -0
- package/dist/teranga-ds/teranga-ds.esm.js +1 -0
- package/dist/teranga-ds/teranga-tokens.css +189 -0
- package/dist/types/components/tg-activity-feed/tg-activity-feed.d.ts +13 -0
- package/dist/types/components/tg-activity-stream/tg-activity-stream.d.ts +14 -0
- package/dist/types/components/tg-ai-feedback/tg-ai-feedback.d.ts +14 -0
- package/dist/types/components/tg-ai-insight-card/tg-ai-insight-card.d.ts +9 -0
- package/dist/types/components/tg-alert/tg-alert.d.ts +28 -0
- package/dist/types/components/tg-audio-player/tg-audio-player.d.ts +15 -0
- package/dist/types/components/tg-autocomplete/tg-autocomplete.d.ts +21 -0
- package/dist/types/components/tg-avatar/tg-avatar.d.ts +27 -0
- package/dist/types/components/tg-badge/tg-badge.d.ts +21 -0
- package/dist/types/components/tg-bottom-nav/tg-bottom-nav.d.ts +14 -0
- package/dist/types/components/tg-bottom-sheet/tg-bottom-sheet.d.ts +7 -0
- package/dist/types/components/tg-breadcrumb/tg-breadcrumb.d.ts +12 -0
- package/dist/types/components/tg-button/tg-button.d.ts +35 -0
- package/dist/types/components/tg-calendar-view/tg-calendar-view.d.ts +18 -0
- package/dist/types/components/tg-card/tg-card.d.ts +27 -0
- package/dist/types/components/tg-chat/tg-chat.d.ts +24 -0
- package/dist/types/components/tg-chat-message/tg-chat-message.d.ts +7 -0
- package/dist/types/components/tg-checkbox/tg-checkbox.d.ts +14 -0
- package/dist/types/components/tg-combobox/tg-combobox.d.ts +30 -0
- package/dist/types/components/tg-command-palette/tg-command-palette.d.ts +20 -0
- package/dist/types/components/tg-confidence-badge/tg-confidence-badge.d.ts +7 -0
- package/dist/types/components/tg-confirm-dialog/tg-confirm-dialog.d.ts +13 -0
- package/dist/types/components/tg-context-menu/tg-context-menu.d.ts +21 -0
- package/dist/types/components/tg-data-table/tg-data-table.d.ts +34 -0
- package/dist/types/components/tg-date-picker/tg-date-picker.d.ts +22 -0
- package/dist/types/components/tg-empty-state/tg-empty-state.d.ts +8 -0
- package/dist/types/components/tg-expandable-row/tg-expandable-row.d.ts +7 -0
- package/dist/types/components/tg-fab/tg-fab.d.ts +11 -0
- package/dist/types/components/tg-file-upload/tg-file-upload.d.ts +28 -0
- package/dist/types/components/tg-global-loader/tg-global-loader.d.ts +6 -0
- package/dist/types/components/tg-heatmap/tg-heatmap.d.ts +14 -0
- package/dist/types/components/tg-image-gallery/tg-image-gallery.d.ts +12 -0
- package/dist/types/components/tg-input/tg-input.d.ts +48 -0
- package/dist/types/components/tg-kanban-board/tg-kanban-board.d.ts +23 -0
- package/dist/types/components/tg-kpi-card/tg-kpi-card.d.ts +10 -0
- package/dist/types/components/tg-live-badge/tg-live-badge.d.ts +6 -0
- package/dist/types/components/tg-login-form/tg-login-form.d.ts +16 -0
- package/dist/types/components/tg-mega-menu/tg-mega-menu.d.ts +21 -0
- package/dist/types/components/tg-modal/tg-modal.d.ts +14 -0
- package/dist/types/components/tg-model-selector/tg-model-selector.d.ts +18 -0
- package/dist/types/components/tg-multi-select/tg-multi-select.d.ts +25 -0
- package/dist/types/components/tg-navbar/tg-navbar.d.ts +16 -0
- package/dist/types/components/tg-otp-input/tg-otp-input.d.ts +18 -0
- package/dist/types/components/tg-pagination/tg-pagination.d.ts +10 -0
- package/dist/types/components/tg-presence-indicator/tg-presence-indicator.d.ts +10 -0
- package/dist/types/components/tg-progress/tg-progress.d.ts +18 -0
- package/dist/types/components/tg-prompt-input/tg-prompt-input.d.ts +12 -0
- package/dist/types/components/tg-pull-to-refresh/tg-pull-to-refresh.d.ts +15 -0
- package/dist/types/components/tg-quick-switcher/tg-quick-switcher.d.ts +18 -0
- package/dist/types/components/tg-radio/tg-radio.d.ts +12 -0
- package/dist/types/components/tg-retry-ui/tg-retry-ui.d.ts +10 -0
- package/dist/types/components/tg-rich-editor/tg-rich-editor.d.ts +13 -0
- package/dist/types/components/tg-role-badge/tg-role-badge.d.ts +6 -0
- package/dist/types/components/tg-select/tg-select.d.ts +27 -0
- package/dist/types/components/tg-session-expired/tg-session-expired.d.ts +9 -0
- package/dist/types/components/tg-sidebar/tg-sidebar.d.ts +20 -0
- package/dist/types/components/tg-skeleton/tg-skeleton.d.ts +8 -0
- package/dist/types/components/tg-slider/tg-slider.d.ts +15 -0
- package/dist/types/components/tg-source-citation/tg-source-citation.d.ts +10 -0
- package/dist/types/components/tg-spinner/tg-spinner.d.ts +16 -0
- package/dist/types/components/tg-stat-widget/tg-stat-widget.d.ts +9 -0
- package/dist/types/components/tg-status-badge/tg-status-badge.d.ts +7 -0
- package/dist/types/components/tg-stepper/tg-stepper.d.ts +11 -0
- package/dist/types/components/tg-stepper-input/tg-stepper-input.d.ts +15 -0
- package/dist/types/components/tg-streaming-response/tg-streaming-response.d.ts +7 -0
- package/dist/types/components/tg-switch/tg-switch.d.ts +12 -0
- package/dist/types/components/tg-table/tg-table.d.ts +30 -0
- package/dist/types/components/tg-tabs/tg-tabs.d.ts +18 -0
- package/dist/types/components/tg-tag/tg-tag.d.ts +10 -0
- package/dist/types/components/tg-textarea/tg-textarea.d.ts +23 -0
- package/dist/types/components/tg-time-picker/tg-time-picker.d.ts +16 -0
- package/dist/types/components/tg-timeline/tg-timeline.d.ts +13 -0
- package/dist/types/components/tg-toast/tg-toast.d.ts +17 -0
- package/dist/types/components/tg-token-usage/tg-token-usage.d.ts +10 -0
- package/dist/types/components/tg-tooltip/tg-tooltip.d.ts +10 -0
- package/dist/types/components/tg-tree-view/tg-tree-view.d.ts +17 -0
- package/dist/types/components/tg-undo-snackbar/tg-undo-snackbar.d.ts +11 -0
- package/dist/types/components/tg-video-player/tg-video-player.d.ts +7 -0
- package/dist/types/components/tg-wizard-nav/tg-wizard-nav.d.ts +15 -0
- package/dist/types/components.d.ts +5028 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -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 +74 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class TgVideoPlayer {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.src = '';
|
|
5
|
+
this.aspectRatio = '16/9';
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { key: '6f0dbc06a4893ff242d6fd4ed6552d4a40b6a12b' }, h("div", { key: '907de69e60c7bcf4e160098b8ab5e3618274b201', class: "tg-vp" }, this.heading && h("div", { key: 'f2209ad8ecf963eea39b108f77080d5e305b5f8c', class: "tg-vp__header" }, h("span", { key: '8156016564902a363fc2e36b3a9a36b38c32ca86', class: "tg-vp__title" }, this.heading)), h("div", { key: '0bb6a8ee43cd5df6ff8437b29b9bfb98cbd815d8', class: "tg-vp__container", style: { aspectRatio: this.aspectRatio } }, h("video", Object.assign({ key: '9e4882704f2ee94fa07eedc885f62de695fe29cd', class: "tg-vp__video", controls: true }, (this.poster ? { poster: this.poster } : {}), { preload: "metadata" }), h("source", { key: '4f239ccf6d3fb836671ac1c761b2cb6acc947bca', src: this.src }))))));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "tg-video-player"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["tg-video-player.css"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["tg-video-player.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get properties() {
|
|
23
|
+
return {
|
|
24
|
+
"src": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"mutable": false,
|
|
27
|
+
"complexType": {
|
|
28
|
+
"original": "string",
|
|
29
|
+
"resolved": "string",
|
|
30
|
+
"references": {}
|
|
31
|
+
},
|
|
32
|
+
"required": false,
|
|
33
|
+
"optional": false,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"getter": false,
|
|
39
|
+
"setter": false,
|
|
40
|
+
"reflect": false,
|
|
41
|
+
"attribute": "src",
|
|
42
|
+
"defaultValue": "''"
|
|
43
|
+
},
|
|
44
|
+
"poster": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "string",
|
|
49
|
+
"resolved": "string | undefined",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"optional": true,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [],
|
|
56
|
+
"text": ""
|
|
57
|
+
},
|
|
58
|
+
"getter": false,
|
|
59
|
+
"setter": false,
|
|
60
|
+
"reflect": false,
|
|
61
|
+
"attribute": "poster"
|
|
62
|
+
},
|
|
63
|
+
"heading": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "string",
|
|
68
|
+
"resolved": "string | undefined",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": true,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": ""
|
|
76
|
+
},
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"attribute": "heading"
|
|
81
|
+
},
|
|
82
|
+
"aspectRatio": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "'16/9' | '4/3' | '1/1'",
|
|
87
|
+
"resolved": "\"1/1\" | \"16/9\" | \"4/3\"",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": ""
|
|
95
|
+
},
|
|
96
|
+
"getter": false,
|
|
97
|
+
"setter": false,
|
|
98
|
+
"reflect": false,
|
|
99
|
+
"attribute": "aspect-ratio",
|
|
100
|
+
"defaultValue": "'16/9'"
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
:host { display: block; }
|
|
2
|
+
.tg-wiz { font-family: var(--tg-font-family-sans); }
|
|
3
|
+
.tg-wiz__progress { height: 4px; background: var(--tg-color-surface-sunken); border-radius: var(--tg-radius-full); margin-bottom: var(--tg-spacing-3); overflow: hidden; }
|
|
4
|
+
.tg-wiz__bar { height: 100%; background: var(--tg-color-primary); border-radius: var(--tg-radius-full); transition: width var(--tg-duration-normal) var(--tg-ease-out); }
|
|
5
|
+
.tg-wiz__actions { display: flex; align-items: center; justify-content: space-between; }
|
|
6
|
+
.tg-wiz__btn { display: inline-flex; align-items: center; gap: var(--tg-spacing-1); padding: var(--tg-spacing-2) var(--tg-spacing-4); border-radius: var(--tg-radius-lg); font-size: var(--tg-font-size-sm); font-weight: var(--tg-font-weight-medium); cursor: pointer; transition: all var(--tg-duration-fast); border: 1px solid transparent; }
|
|
7
|
+
.tg-wiz__btn--back { background: none; color: var(--tg-color-text-secondary); border-color: var(--tg-color-border); }
|
|
8
|
+
.tg-wiz__btn--back:hover:not(:disabled) { background: var(--tg-color-surface-sunken); }
|
|
9
|
+
.tg-wiz__btn--back:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
10
|
+
.tg-wiz__btn--next { background: var(--tg-color-primary); color: var(--tg-color-primary-on); }
|
|
11
|
+
.tg-wiz__btn--next:hover { filter: brightness(1.1); }
|
|
12
|
+
.tg-wiz__btn--finish { background: var(--tg-color-success); color: white; }
|
|
13
|
+
.tg-wiz__btn--finish:hover { filter: brightness(1.1); }
|
|
14
|
+
.tg-wiz__step { font-size: var(--tg-font-size-xs); color: var(--tg-color-text-secondary); }
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class TgWizardNav {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.currentStep = 0;
|
|
5
|
+
this.totalSteps = 1;
|
|
6
|
+
this.backLabel = 'Pr\u00e9c\u00e9dent';
|
|
7
|
+
this.nextLabel = 'Suivant';
|
|
8
|
+
this.finishLabel = 'Terminer';
|
|
9
|
+
this.showProgress = true;
|
|
10
|
+
}
|
|
11
|
+
get isLast() { return this.currentStep >= this.totalSteps - 1; }
|
|
12
|
+
get progress() { return ((this.currentStep + 1) / this.totalSteps) * 100; }
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { key: 'edb5f78e83c1dab9e34200063b803b7842cce693' }, h("div", { key: '030c10b44b1e92ee8e45d41851fd7853f9175ff8', class: "tg-wiz" }, this.showProgress && (h("div", { key: '0315eddfb2be048a582b3e16499c725978c1742a', class: "tg-wiz__progress" }, h("div", { key: 'e8949eed4cd964dcab17835a37689dd3d63bb846', class: "tg-wiz__bar", style: { width: this.progress + '%' } }))), h("div", { key: '10eec94b68f18850d33c4e5642f57f1b5360875f', class: "tg-wiz__actions" }, h("button", { key: '31323728f528247c336b8a9bc066c9690179e586', class: "tg-wiz__btn tg-wiz__btn--back", type: "button", disabled: this.currentStep === 0, onClick: () => this.tgBack.emit() }, "\\u2039 ", this.backLabel), h("span", { key: 'e397620856c90eaa0ebe614be777a7c37621e171', class: "tg-wiz__step" }, "\\u00c9tape ", this.currentStep + 1, " / ", this.totalSteps), this.isLast
|
|
15
|
+
? h("button", { class: "tg-wiz__btn tg-wiz__btn--finish", type: "button", onClick: () => this.tgFinish.emit() }, this.finishLabel)
|
|
16
|
+
: h("button", { class: "tg-wiz__btn tg-wiz__btn--next", type: "button", onClick: () => this.tgNext.emit() }, this.nextLabel, " \\u203a")))));
|
|
17
|
+
}
|
|
18
|
+
static get is() { return "tg-wizard-nav"; }
|
|
19
|
+
static get encapsulation() { return "shadow"; }
|
|
20
|
+
static get originalStyleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["tg-wizard-nav.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get styleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["tg-wizard-nav.css"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get properties() {
|
|
31
|
+
return {
|
|
32
|
+
"currentStep": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"mutable": false,
|
|
35
|
+
"complexType": {
|
|
36
|
+
"original": "number",
|
|
37
|
+
"resolved": "number",
|
|
38
|
+
"references": {}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": ""
|
|
45
|
+
},
|
|
46
|
+
"getter": false,
|
|
47
|
+
"setter": false,
|
|
48
|
+
"reflect": false,
|
|
49
|
+
"attribute": "current-step",
|
|
50
|
+
"defaultValue": "0"
|
|
51
|
+
},
|
|
52
|
+
"totalSteps": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "number",
|
|
57
|
+
"resolved": "number",
|
|
58
|
+
"references": {}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": ""
|
|
65
|
+
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
68
|
+
"reflect": false,
|
|
69
|
+
"attribute": "total-steps",
|
|
70
|
+
"defaultValue": "1"
|
|
71
|
+
},
|
|
72
|
+
"backLabel": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "string",
|
|
77
|
+
"resolved": "string",
|
|
78
|
+
"references": {}
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"optional": false,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": ""
|
|
85
|
+
},
|
|
86
|
+
"getter": false,
|
|
87
|
+
"setter": false,
|
|
88
|
+
"reflect": false,
|
|
89
|
+
"attribute": "back-label",
|
|
90
|
+
"defaultValue": "'Pr\\u00e9c\\u00e9dent'"
|
|
91
|
+
},
|
|
92
|
+
"nextLabel": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "string",
|
|
97
|
+
"resolved": "string",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": ""
|
|
105
|
+
},
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false,
|
|
108
|
+
"reflect": false,
|
|
109
|
+
"attribute": "next-label",
|
|
110
|
+
"defaultValue": "'Suivant'"
|
|
111
|
+
},
|
|
112
|
+
"finishLabel": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "string",
|
|
117
|
+
"resolved": "string",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
},
|
|
126
|
+
"getter": false,
|
|
127
|
+
"setter": false,
|
|
128
|
+
"reflect": false,
|
|
129
|
+
"attribute": "finish-label",
|
|
130
|
+
"defaultValue": "'Terminer'"
|
|
131
|
+
},
|
|
132
|
+
"showProgress": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"mutable": false,
|
|
135
|
+
"complexType": {
|
|
136
|
+
"original": "boolean",
|
|
137
|
+
"resolved": "boolean",
|
|
138
|
+
"references": {}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": false,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": ""
|
|
145
|
+
},
|
|
146
|
+
"getter": false,
|
|
147
|
+
"setter": false,
|
|
148
|
+
"reflect": false,
|
|
149
|
+
"attribute": "show-progress",
|
|
150
|
+
"defaultValue": "true"
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
static get events() {
|
|
155
|
+
return [{
|
|
156
|
+
"method": "tgBack",
|
|
157
|
+
"name": "tgBack",
|
|
158
|
+
"bubbles": true,
|
|
159
|
+
"cancelable": true,
|
|
160
|
+
"composed": true,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [],
|
|
163
|
+
"text": ""
|
|
164
|
+
},
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "void",
|
|
167
|
+
"resolved": "void",
|
|
168
|
+
"references": {}
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
"method": "tgNext",
|
|
172
|
+
"name": "tgNext",
|
|
173
|
+
"bubbles": true,
|
|
174
|
+
"cancelable": true,
|
|
175
|
+
"composed": true,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": ""
|
|
179
|
+
},
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "void",
|
|
182
|
+
"resolved": "void",
|
|
183
|
+
"references": {}
|
|
184
|
+
}
|
|
185
|
+
}, {
|
|
186
|
+
"method": "tgFinish",
|
|
187
|
+
"name": "tgFinish",
|
|
188
|
+
"bubbles": true,
|
|
189
|
+
"cancelable": true,
|
|
190
|
+
"composed": true,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": ""
|
|
194
|
+
},
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "void",
|
|
197
|
+
"resolved": "void",
|
|
198
|
+
"references": {}
|
|
199
|
+
}
|
|
200
|
+
}];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--tgColorGreen50: #e6f4ec;
|
|
7
|
+
--tgColorGreen100: #b3ddc5;
|
|
8
|
+
--tgColorGreen200: #80c69e;
|
|
9
|
+
--tgColorGreen300: #4daf77;
|
|
10
|
+
--tgColorGreen400: #26a05a;
|
|
11
|
+
--tgColorGreen500: #00853f; /** Senegalese flag green — primary brand color */
|
|
12
|
+
--tgColorGreen600: #007838;
|
|
13
|
+
--tgColorGreen700: #006530;
|
|
14
|
+
--tgColorGreen800: #005228;
|
|
15
|
+
--tgColorGreen900: #003d1e;
|
|
16
|
+
--tgColorGold50: #fffde6;
|
|
17
|
+
--tgColorGold100: #fff8b3;
|
|
18
|
+
--tgColorGold200: #fff180;
|
|
19
|
+
--tgColorGold300: #ffea4d;
|
|
20
|
+
--tgColorGold400: #ffe51f;
|
|
21
|
+
--tgColorGold500: #fdef42; /** Senegalese flag gold/yellow */
|
|
22
|
+
--tgColorGold600: #e8d800;
|
|
23
|
+
--tgColorGold700: #c9bb00;
|
|
24
|
+
--tgColorGold800: #a89d00;
|
|
25
|
+
--tgColorGold900: #7a7200;
|
|
26
|
+
--tgColorRed50: #fce8e9;
|
|
27
|
+
--tgColorRed100: #f5b8bb;
|
|
28
|
+
--tgColorRed200: #ee888d;
|
|
29
|
+
--tgColorRed300: #e7585f;
|
|
30
|
+
--tgColorRed400: #e33039;
|
|
31
|
+
--tgColorRed500: #e31b23; /** Senegalese flag red — danger/error color */
|
|
32
|
+
--tgColorRed600: #cc181f;
|
|
33
|
+
--tgColorRed700: #b0141b;
|
|
34
|
+
--tgColorRed800: #941116;
|
|
35
|
+
--tgColorRed900: #6e0d11;
|
|
36
|
+
--tgColorNeutral0: #ffffff;
|
|
37
|
+
--tgColorNeutral50: #f8f8f6;
|
|
38
|
+
--tgColorNeutral100: #f0f0ec;
|
|
39
|
+
--tgColorNeutral200: #e0e0d8;
|
|
40
|
+
--tgColorNeutral300: #c8c8be;
|
|
41
|
+
--tgColorNeutral400: #a8a89a;
|
|
42
|
+
--tgColorNeutral500: #888878;
|
|
43
|
+
--tgColorNeutral600: #686858;
|
|
44
|
+
--tgColorNeutral700: #4a4a3c;
|
|
45
|
+
--tgColorNeutral800: #302e24;
|
|
46
|
+
--tgColorNeutral900: #1a1812;
|
|
47
|
+
--tgColorNeutral1000: #000000;
|
|
48
|
+
--tgColorSemanticSuccessDefault: #1a7f37;
|
|
49
|
+
--tgColorSemanticSuccessSubtle: #dafbe1;
|
|
50
|
+
--tgColorSemanticWarningDefault: #bf8700;
|
|
51
|
+
--tgColorSemanticWarningSubtle: #fff8c5;
|
|
52
|
+
--tgColorSemanticInfoDefault: #0969da;
|
|
53
|
+
--tgColorSemanticInfoSubtle: #ddf4ff;
|
|
54
|
+
--tgMotionDurationInstant: 50ms; /** Instant micro-feedback */
|
|
55
|
+
--tgMotionDurationFast: 100ms; /** Button press, toggle */
|
|
56
|
+
--tgMotionDurationNormal: 200ms; /** Default transitions */
|
|
57
|
+
--tgMotionDurationSlow: 300ms; /** Modals, drawers */
|
|
58
|
+
--tgMotionDurationSlower: 500ms; /** Page transitions */
|
|
59
|
+
--tgMotionEasingDefault: cubic-bezier(0.4, 0, 0.2, 1); /** General purpose */
|
|
60
|
+
--tgMotionEasingIn: cubic-bezier(0.4, 0, 1, 1); /** Entering viewport */
|
|
61
|
+
--tgMotionEasingOut: cubic-bezier(0, 0, 0.2, 1); /** Leaving viewport */
|
|
62
|
+
--tgMotionEasingBounce: cubic-bezier(0.34, 1.56, 0.64, 1); /** Playful overshoot */
|
|
63
|
+
--tgMotionEasingSpring: cubic-bezier(0.175, 0.885, 0.32, 1.275); /** Elastic snap */
|
|
64
|
+
--tgBorderRadiusNone: 0;
|
|
65
|
+
--tgBorderRadiusSm: 0.125rem; /** 2px */
|
|
66
|
+
--tgBorderRadiusMd: 0.375rem; /** 6px */
|
|
67
|
+
--tgBorderRadiusLg: 0.5rem; /** 8px */
|
|
68
|
+
--tgBorderRadiusXl: 0.75rem; /** 12px */
|
|
69
|
+
--tgBorderRadius2xl: 1rem; /** 16px */
|
|
70
|
+
--tgBorderRadius3xl: 1.5rem; /** 24px */
|
|
71
|
+
--tgBorderRadiusFull: 9999px;
|
|
72
|
+
--tgBorderWidth0: 0;
|
|
73
|
+
--tgBorderWidth1: 1px;
|
|
74
|
+
--tgBorderWidth2: 2px;
|
|
75
|
+
--tgBorderWidth4: 4px;
|
|
76
|
+
--tgShadowXs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
77
|
+
--tgShadowSm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
78
|
+
--tgShadowMd: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
79
|
+
--tgShadowLg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
80
|
+
--tgShadowXl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
81
|
+
--tgShadow2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
82
|
+
--tgShadowNone: 0 0 #0000;
|
|
83
|
+
--tgZIndexHide: -1;
|
|
84
|
+
--tgZIndexAuto: auto;
|
|
85
|
+
--tgZIndexBase: 0;
|
|
86
|
+
--tgZIndexDocked: 10;
|
|
87
|
+
--tgZIndexDropdown: 1000;
|
|
88
|
+
--tgZIndexSticky: 1100;
|
|
89
|
+
--tgZIndexOverlay: 1200;
|
|
90
|
+
--tgZIndexModal: 1300;
|
|
91
|
+
--tgZIndexPopover: 1400;
|
|
92
|
+
--tgZIndexToast: 1500;
|
|
93
|
+
--tgZIndexTooltip: 1600;
|
|
94
|
+
--tgSpacing0: 0;
|
|
95
|
+
--tgSpacing1: 0.25rem; /** 4px */
|
|
96
|
+
--tgSpacing2: 0.5rem; /** 8px */
|
|
97
|
+
--tgSpacing3: 0.75rem; /** 12px */
|
|
98
|
+
--tgSpacing4: 1rem; /** 16px */
|
|
99
|
+
--tgSpacing5: 1.25rem; /** 20px */
|
|
100
|
+
--tgSpacing6: 1.5rem; /** 24px */
|
|
101
|
+
--tgSpacing7: 1.75rem; /** 28px */
|
|
102
|
+
--tgSpacing8: 2rem; /** 32px */
|
|
103
|
+
--tgSpacing9: 2.25rem; /** 36px */
|
|
104
|
+
--tgSpacing10: 2.5rem; /** 40px */
|
|
105
|
+
--tgSpacing12: 3rem; /** 48px */
|
|
106
|
+
--tgSpacing14: 3.5rem; /** 56px */
|
|
107
|
+
--tgSpacing16: 4rem; /** 64px */
|
|
108
|
+
--tgSpacing20: 5rem; /** 80px */
|
|
109
|
+
--tgSpacing24: 6rem; /** 96px */
|
|
110
|
+
--tgSpacing28: 7rem; /** 112px */
|
|
111
|
+
--tgSpacing32: 8rem; /** 128px */
|
|
112
|
+
--tgSpacing36: 9rem; /** 144px */
|
|
113
|
+
--tgSpacing40: 10rem; /** 160px */
|
|
114
|
+
--tgSpacing48: 12rem; /** 192px */
|
|
115
|
+
--tgSpacing56: 14rem; /** 224px */
|
|
116
|
+
--tgSpacing64: 16rem; /** 256px */
|
|
117
|
+
--tgSpacingPx: 1px;
|
|
118
|
+
--tgSpacing05: 0.125rem; /** 2px */
|
|
119
|
+
--tgSpacing15: 0.375rem; /** 6px */
|
|
120
|
+
--tgSpacing25: 0.625rem; /** 10px */
|
|
121
|
+
--tgSpacing35: 0.875rem; /** 14px */
|
|
122
|
+
--tgBreakpointSm: 640px;
|
|
123
|
+
--tgBreakpointMd: 768px;
|
|
124
|
+
--tgBreakpointLg: 1024px;
|
|
125
|
+
--tgBreakpointXl: 1280px;
|
|
126
|
+
--tgBreakpoint2xl: 1536px;
|
|
127
|
+
--tgFontFamilySans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
|
|
128
|
+
--tgFontFamilySerif: 'Georgia', 'Times New Roman', serif;
|
|
129
|
+
--tgFontFamilyMono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
|
|
130
|
+
--tgFontSize2xs: 0.625rem; /** 10px */
|
|
131
|
+
--tgFontSizeXs: 0.75rem; /** 12px */
|
|
132
|
+
--tgFontSizeSm: 0.875rem; /** 14px */
|
|
133
|
+
--tgFontSizeMd: 1rem; /** 16px — base */
|
|
134
|
+
--tgFontSizeLg: 1.125rem; /** 18px */
|
|
135
|
+
--tgFontSizeXl: 1.25rem; /** 20px */
|
|
136
|
+
--tgFontSize2xl: 1.5rem; /** 24px */
|
|
137
|
+
--tgFontSize3xl: 1.875rem; /** 30px */
|
|
138
|
+
--tgFontSize4xl: 2.25rem; /** 36px */
|
|
139
|
+
--tgFontSize5xl: 3rem; /** 48px */
|
|
140
|
+
--tgFontSize6xl: 3.75rem; /** 60px */
|
|
141
|
+
--tgFontWeightRegular: 400;
|
|
142
|
+
--tgFontWeightMedium: 500;
|
|
143
|
+
--tgFontWeightSemibold: 600;
|
|
144
|
+
--tgFontWeightBold: 700;
|
|
145
|
+
--tgFontWeightExtrabold: 800;
|
|
146
|
+
--tgFontLineHeightTight: 1.25;
|
|
147
|
+
--tgFontLineHeightSnug: 1.375;
|
|
148
|
+
--tgFontLineHeightNormal: 1.5;
|
|
149
|
+
--tgFontLineHeightRelaxed: 1.625;
|
|
150
|
+
--tgFontLineHeightLoose: 2;
|
|
151
|
+
--tgFontLetterSpacingTighter: -0.05em;
|
|
152
|
+
--tgFontLetterSpacingTight: -0.025em;
|
|
153
|
+
--tgFontLetterSpacingNormal: 0em;
|
|
154
|
+
--tgFontLetterSpacingWide: 0.025em;
|
|
155
|
+
--tgFontLetterSpacingWider: 0.05em;
|
|
156
|
+
--tgFontLetterSpacingWidest: 0.1em;
|
|
157
|
+
--tgColorSemanticPrimaryDefault: var(--tgColorGreen500);
|
|
158
|
+
--tgColorSemanticPrimaryHover: var(--tgColorGreen600);
|
|
159
|
+
--tgColorSemanticPrimaryActive: var(--tgColorGreen700);
|
|
160
|
+
--tgColorSemanticPrimarySubtle: var(--tgColorGreen50);
|
|
161
|
+
--tgColorSemanticPrimaryMuted: var(--tgColorGreen100);
|
|
162
|
+
--tgColorSemanticPrimaryOn: var(--tgColorNeutral0); /** Text/icon color on primary background */
|
|
163
|
+
--tgColorSemanticSecondaryDefault: var(--tgColorGold500);
|
|
164
|
+
--tgColorSemanticSecondaryHover: var(--tgColorGold600);
|
|
165
|
+
--tgColorSemanticSecondaryActive: var(--tgColorGold700);
|
|
166
|
+
--tgColorSemanticSecondarySubtle: var(--tgColorGold50);
|
|
167
|
+
--tgColorSemanticSecondaryMuted: var(--tgColorGold100);
|
|
168
|
+
--tgColorSemanticSecondaryOn: var(--tgColorNeutral900);
|
|
169
|
+
--tgColorSemanticDangerDefault: var(--tgColorRed500);
|
|
170
|
+
--tgColorSemanticDangerHover: var(--tgColorRed600);
|
|
171
|
+
--tgColorSemanticDangerActive: var(--tgColorRed700);
|
|
172
|
+
--tgColorSemanticDangerSubtle: var(--tgColorRed50);
|
|
173
|
+
--tgColorSemanticDangerMuted: var(--tgColorRed100);
|
|
174
|
+
--tgColorSemanticDangerOn: var(--tgColorNeutral0);
|
|
175
|
+
--tgColorSemanticSuccessOn: var(--tgColorNeutral0);
|
|
176
|
+
--tgColorSemanticWarningOn: var(--tgColorNeutral900);
|
|
177
|
+
--tgColorSemanticInfoOn: var(--tgColorNeutral0);
|
|
178
|
+
--tgColorSemanticSurfacePage: var(--tgColorNeutral0);
|
|
179
|
+
--tgColorSemanticSurfaceRaised: var(--tgColorNeutral0);
|
|
180
|
+
--tgColorSemanticSurfaceOverlay: var(--tgColorNeutral0);
|
|
181
|
+
--tgColorSemanticSurfaceSunken: var(--tgColorNeutral50);
|
|
182
|
+
--tgColorSemanticTextPrimary: var(--tgColorNeutral900);
|
|
183
|
+
--tgColorSemanticTextSecondary: var(--tgColorNeutral600);
|
|
184
|
+
--tgColorSemanticTextDisabled: var(--tgColorNeutral400);
|
|
185
|
+
--tgColorSemanticTextInverse: var(--tgColorNeutral0);
|
|
186
|
+
--tgColorSemanticBorderDefault: var(--tgColorNeutral200);
|
|
187
|
+
--tgColorSemanticBorderStrong: var(--tgColorNeutral400);
|
|
188
|
+
--tgColorSemanticBorderFocus: var(--tgColorGreen500);
|
|
189
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
3
|
+
* if the path needs to be customized.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getAssetPath: (path: string) => string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Used to manually set the base path where assets can be found.
|
|
9
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
10
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
11
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
12
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
13
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
14
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
15
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
16
|
+
*/
|
|
17
|
+
export declare const setAssetPath: (path: string) => void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
21
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
22
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
23
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
24
|
+
* will result in the same behavior.
|
|
25
|
+
*/
|
|
26
|
+
export declare const setNonce: (nonce: string) => void
|
|
27
|
+
|
|
28
|
+
export interface SetPlatformOptions {
|
|
29
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
30
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
31
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
34
|
+
|
|
35
|
+
export * from '../types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=":root{--tg-color-green-50:#e8f5ed;--tg-color-green-100:#b8e2c8;--tg-color-green-200:#88cfa3;--tg-color-green-300:#58bc7e;--tg-color-green-400:#2eaa60;--tg-color-green-500:#00853F;--tg-color-green-600:#007538;--tg-color-green-700:#006230;--tg-color-green-800:#004f27;--tg-color-green-900:#003a1c;--tg-color-gold-50:#fff9e0;--tg-color-gold-100:#ffefad;--tg-color-gold-200:#ffe57a;--tg-color-gold-300:#ffdb47;--tg-color-gold-400:#ffd31f;--tg-color-gold-500:#FDEF42;--tg-color-gold-600:#e8c800;--tg-color-gold-700:#c9a900;--tg-color-gold-800:#a88d00;--tg-color-gold-900:#7a6600;--tg-color-red-50:#fde8e9;--tg-color-red-100:#f9bcbe;--tg-color-red-200:#f49093;--tg-color-red-300:#ef6468;--tg-color-red-400:#eb3e43;--tg-color-red-500:#E31B23;--tg-color-red-600:#cc181f;--tg-color-red-700:#b0141b;--tg-color-red-800:#941116;--tg-color-red-900:#6e0d11;--tg-color-terracotta-50:#fdf0eb;--tg-color-terracotta-100:#f8d4c4;--tg-color-terracotta-200:#f2b89d;--tg-color-terracotta-300:#ec9c76;--tg-color-terracotta-400:#e68550;--tg-color-terracotta-500:#C2703A;--tg-color-terracotta-600:#A8602F;--tg-color-terracotta-700:#8E4F24;--tg-color-terracotta-800:#733F1A;--tg-color-terracotta-900:#4D2A11;--tg-color-baobab-50:#f5f0ea;--tg-color-baobab-100:#e2d5c4;--tg-color-baobab-200:#cfba9e;--tg-color-baobab-300:#bc9f78;--tg-color-baobab-400:#a98a5c;--tg-color-baobab-500:#8B7044;--tg-color-baobab-600:#76603A;--tg-color-baobab-700:#614F30;--tg-color-baobab-800:#4C3E26;--tg-color-baobab-900:#362C1B;--tg-color-neutral-0:#ffffff;--tg-color-neutral-50:#faf8f5;--tg-color-neutral-100:#f3f0ea;--tg-color-neutral-200:#e6e0d6;--tg-color-neutral-300:#d1c9bb;--tg-color-neutral-400:#b3a998;--tg-color-neutral-500:#928674;--tg-color-neutral-600:#6e6354;--tg-color-neutral-700:#4f4639;--tg-color-neutral-800:#342e24;--tg-color-neutral-900:#1e1a14;--tg-color-neutral-1000:#000000;--tg-color-primary:var(--tg-color-green-500);--tg-color-primary-hover:var(--tg-color-green-600);--tg-color-primary-active:var(--tg-color-green-700);--tg-color-primary-subtle:var(--tg-color-green-50);--tg-color-primary-muted:var(--tg-color-green-100);--tg-color-primary-on:var(--tg-color-neutral-0);--tg-color-secondary:var(--tg-color-gold-600);--tg-color-secondary-hover:var(--tg-color-gold-700);--tg-color-secondary-active:var(--tg-color-gold-800);--tg-color-secondary-subtle:var(--tg-color-gold-50);--tg-color-secondary-muted:var(--tg-color-gold-100);--tg-color-secondary-on:var(--tg-color-neutral-900);--tg-color-danger:var(--tg-color-red-500);--tg-color-danger-hover:var(--tg-color-red-600);--tg-color-danger-active:var(--tg-color-red-700);--tg-color-danger-subtle:var(--tg-color-red-50);--tg-color-danger-muted:var(--tg-color-red-100);--tg-color-danger-on:var(--tg-color-neutral-0);--tg-color-accent:var(--tg-color-terracotta-500);--tg-color-accent-hover:var(--tg-color-terracotta-600);--tg-color-accent-active:var(--tg-color-terracotta-700);--tg-color-accent-subtle:var(--tg-color-terracotta-50);--tg-color-accent-muted:var(--tg-color-terracotta-100);--tg-color-accent-on:var(--tg-color-neutral-0);--tg-color-success:#1a7f37;--tg-color-success-subtle:#dafbe1;--tg-color-success-on:var(--tg-color-neutral-0);--tg-color-warning:#bf8700;--tg-color-warning-subtle:#fff8c5;--tg-color-warning-on:var(--tg-color-neutral-900);--tg-color-info:#0969da;--tg-color-info-subtle:#ddf4ff;--tg-color-info-on:var(--tg-color-neutral-0);--tg-color-surface-page:var(--tg-color-neutral-0);--tg-color-surface-raised:var(--tg-color-neutral-0);--tg-color-surface-sunken:var(--tg-color-neutral-50);--tg-color-surface-overlay:var(--tg-color-neutral-0);--tg-color-text-primary:var(--tg-color-neutral-900);--tg-color-text-secondary:var(--tg-color-neutral-600);--tg-color-text-disabled:var(--tg-color-neutral-400);--tg-color-text-inverse:var(--tg-color-neutral-0);--tg-color-border:var(--tg-color-neutral-200);--tg-color-border-strong:var(--tg-color-neutral-400);--tg-color-border-focus:var(--tg-color-green-500);--tg-font-family-sans:'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;--tg-font-family-display:'DM Serif Display', 'Georgia', serif;--tg-font-family-serif:'Lora', 'Georgia', 'Times New Roman', serif;--tg-font-family-mono:'JetBrains Mono', 'Fira Code', 'Consolas', monospace;--tg-font-size-2xs:0.625rem;--tg-font-size-xs:0.75rem;--tg-font-size-sm:0.875rem;--tg-font-size-md:1rem;--tg-font-size-lg:1.125rem;--tg-font-size-xl:1.25rem;--tg-font-size-2xl:1.5rem;--tg-font-size-3xl:1.875rem;--tg-font-size-4xl:2.25rem;--tg-font-size-5xl:3rem;--tg-font-size-6xl:3.75rem;--tg-font-weight-regular:400;--tg-font-weight-medium:500;--tg-font-weight-semibold:600;--tg-font-weight-bold:700;--tg-font-weight-extrabold:800;--tg-line-height-tight:1.25;--tg-line-height-snug:1.375;--tg-line-height-normal:1.5;--tg-line-height-relaxed:1.625;--tg-line-height-loose:2;--tg-spacing-0:0;--tg-spacing-px:1px;--tg-spacing-0-5:0.125rem;--tg-spacing-1:0.25rem;--tg-spacing-1-5:0.375rem;--tg-spacing-2:0.5rem;--tg-spacing-2-5:0.625rem;--tg-spacing-3:0.75rem;--tg-spacing-3-5:0.875rem;--tg-spacing-4:1rem;--tg-spacing-5:1.25rem;--tg-spacing-6:1.5rem;--tg-spacing-8:2rem;--tg-spacing-10:2.5rem;--tg-spacing-12:3rem;--tg-spacing-16:4rem;--tg-spacing-20:5rem;--tg-spacing-24:6rem;--tg-radius-none:0;--tg-radius-sm:0.25rem;--tg-radius-md:0.5rem;--tg-radius-lg:0.625rem;--tg-radius-xl:0.875rem;--tg-radius-2xl:1.125rem;--tg-radius-3xl:1.5rem;--tg-radius-full:9999px;--tg-shadow-xs:0 1px 2px 0 rgba(30, 26, 20, 0.06);--tg-shadow-sm:0 1px 3px 0 rgba(30, 26, 20, 0.08), 0 1px 2px -1px rgba(30, 26, 20, 0.06);--tg-shadow-md:0 4px 6px -1px rgba(30, 26, 20, 0.08), 0 2px 4px -2px rgba(30, 26, 20, 0.06);--tg-shadow-lg:0 10px 15px -3px rgba(30, 26, 20, 0.1), 0 4px 6px -4px rgba(30, 26, 20, 0.08);--tg-shadow-xl:0 20px 25px -5px rgba(30, 26, 20, 0.12), 0 8px 10px -6px rgba(30, 26, 20, 0.08);--tg-shadow-primary:0 4px 14px -3px rgba(0, 133, 63, 0.35);--tg-shadow-secondary:0 4px 14px -3px rgba(200, 170, 0, 0.3);--tg-shadow-danger:0 4px 14px -3px rgba(227, 27, 35, 0.3);--tg-shadow-accent:0 4px 14px -3px rgba(194, 112, 58, 0.3);--tg-gradient-flag:linear-gradient(135deg, var(--tg-color-green-500), var(--tg-color-gold-600), var(--tg-color-red-500));--tg-gradient-sahel:linear-gradient(135deg, #C2703A, #e8c800, #a88d00);--tg-gradient-savanna:linear-gradient(180deg, var(--tg-color-gold-50), var(--tg-color-terracotta-50));--tg-gradient-baobab:linear-gradient(135deg, var(--tg-color-baobab-500), var(--tg-color-green-700));--tg-gradient-sunset:linear-gradient(135deg, var(--tg-color-red-400), var(--tg-color-gold-500), var(--tg-color-terracotta-400));--tg-gradient-ocean:linear-gradient(135deg, #0a6e5c, #0969da);--tg-duration-fast:100ms;--tg-duration-normal:200ms;--tg-duration-slow:300ms;--tg-duration-slower:500ms;--tg-ease-default:cubic-bezier(0.4, 0, 0.2, 1);--tg-ease-in:cubic-bezier(0.4, 0, 1, 1);--tg-ease-out:cubic-bezier(0, 0, 0.2, 1);--tg-ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);--tg-ease-spring:cubic-bezier(0.175, 0.885, 0.32, 1.275);--tg-focus-ring:0 0 0 3px rgba(0, 133, 63, 0.35);--tg-focus-ring-danger:0 0 0 3px rgba(227, 27, 35, 0.25);--tg-focus-ring-info:0 0 0 3px rgba(9, 105, 218, 0.25);--tg-focus-ring-accent:0 0 0 3px rgba(194, 112, 58, 0.3);--tg-transition-colors:color, background-color, border-color, fill, stroke;--tg-transition-all:color, background-color, border-color, box-shadow, transform, opacity;--tg-tracking-tighter:-0.02em;--tg-tracking-tight:-0.01em;--tg-tracking-normal:0;--tg-tracking-wide:0.02em;--tg-tracking-wider:0.05em;--tg-tracking-widest:0.1em}[data-theme=\"dark\"],:root.tg-dark{--tg-color-surface-page:#12100c;--tg-color-surface-raised:#1c1914;--tg-color-surface-sunken:#0a0907;--tg-color-surface-overlay:#241f18;--tg-color-text-primary:#f3f0ea;--tg-color-text-secondary:#a89a86;--tg-color-text-disabled:#5c5347;--tg-color-text-inverse:#12100c;--tg-color-border:#342e24;--tg-color-border-strong:#6e6354;--tg-color-border-focus:#2eaa60;--tg-color-primary:#2eaa60;--tg-color-primary-hover:#3fbf70;--tg-color-primary-active:#238a4c;--tg-color-primary-subtle:#0d1f14;--tg-color-primary-muted:#14291c;--tg-color-primary-on:#ffffff;--tg-color-secondary:#e8c800;--tg-color-secondary-hover:#ffd31f;--tg-color-secondary-active:#c9a900;--tg-color-secondary-subtle:#1b1500;--tg-color-secondary-muted:#2c2100;--tg-color-secondary-on:#12100c;--tg-color-danger:#f85149;--tg-color-danger-hover:#da3633;--tg-color-danger-active:#b62324;--tg-color-danger-subtle:#1f0c0c;--tg-color-danger-muted:#310c0c;--tg-color-danger-on:#ffffff;--tg-color-accent:#e68550;--tg-color-accent-hover:#ec9c76;--tg-color-accent-active:#C2703A;--tg-color-accent-subtle:#1f150d;--tg-color-accent-muted:#2e1e13;--tg-color-accent-on:#ffffff;--tg-color-success:#3fb950;--tg-color-success-subtle:#0d1f0d;--tg-color-success-on:#ffffff;--tg-color-warning:#d29922;--tg-color-warning-subtle:#1b1500;--tg-color-warning-on:#12100c;--tg-color-info:#58a6ff;--tg-color-info-subtle:#0d1f3d;--tg-color-info-on:#12100c;--tg-shadow-xs:0 1px 2px 0 rgba(0, 0, 0, 0.3);--tg-shadow-sm:0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);--tg-shadow-md:0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);--tg-shadow-lg:0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);--tg-shadow-xl:0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);--tg-focus-ring:0 0 0 3px rgba(46, 170, 96, 0.4)}*,*::before,*::after{box-sizing:border-box}";function o(t,o,r){const e="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==e;){const e=Object.getOwnPropertyDescriptor(t,o);if(e&&(!r||e.get))return e;t=Object.getPrototypeOf(t)}}var r,e=(t,r)=>{var e;Object.entries(null!=(e=r.o.t)?e:{}).map((([e,[l]])=>{if(31&l||32&l){const l=t[e],n=o(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(t,e,{get(){return n.get.call(this)},set(t){n.set.call(this,t)},configurable:!0,enumerable:!0}),r.l.has(e)?t[e]=r.l.get(e):void 0!==l&&(t[e]=l)}}))},l=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,o)=>o in t,c=(t,o)=>(0,console.error)(t,o),a=new Map,g="http://www.w3.org/1999/xlink",s="undefined"!=typeof window?window:{},i=s.HTMLElement||class{},f={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,o,r,e)=>t.addEventListener(o,r,e),rel:(t,o,r,e)=>t.removeEventListener(o,r,e),ce:(t,o)=>new CustomEvent(t,o)},u=(()=>{try{return!!s.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),d=!!u&&(()=>!!s.document&&Object.getOwnPropertyDescriptor(s.document.adoptedStyleSheets,"length").writable)(),p=!1,b=[],m=[],v=(t,o)=>r=>{t.push(r),p||(p=!0,o&&4&f.i?y(x):f.raf(x))},h=t=>{for(let o=0;o<t.length;o++)try{t[o](performance.now())}catch(t){c(t)}t.length=0},x=()=>{h(b),h(m),(p=b.length>0)&&f.raf(x)},y=t=>Promise.resolve(void 0).then(t),w=v(m,!0),$=t=>{const o=new URL(t,f.u);return o.origin!==s.location.origin?o.href:o.pathname},j=t=>f.u=t;function k(){var o;const e=this.attachShadow({mode:"open"});if(void 0===r&&(r=null!=(o=function(t){if(!u)return;const o=new CSSStyleSheet;return o.replaceSync(t),o}(t))?o:null),r)d?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r];else if(!u){const o=document.createElement("style");o.innerHTML=t,e.prepend(o)}}var O,S=new WeakMap,z=t=>"sc-"+t.p,C=t=>"object"==(t=typeof t)||"function"===t,E=(t,o,...r)=>{let e=null,l=null,n=!1,c=!1;const a=[],g=o=>{for(let r=0;r<o.length;r++)e=o[r],Array.isArray(e)?g(e):null!=e&&"boolean"!=typeof e&&((n="function"!=typeof t&&!C(e))&&(e+=""),n&&c?a[a.length-1].m+=e:a.push(n?A(null,e):e),c=n)};if(g(r),o){o.key&&(l=o.key);{const t=o.className||o.class;t&&(o.class="object"!=typeof t?t:Object.keys(t).filter((o=>t[o])).join(" "))}}if("function"==typeof t)return t(null===o?{}:o,a,F);const s=A(t,null);return s.v=o,a.length>0&&(s.h=a),s.$=l,s},A=(t,o)=>({i:0,j:t,m:null!=o?o:null,k:null,h:null,v:null,$:null}),M={},F={forEach:(t,o)=>t.map(D).forEach(o),map:(t,o)=>t.map(D).map(o).map(L)},D=t=>({vattrs:t.v,vchildren:t.h,vkey:t.$,vname:t.O,vtag:t.j,vtext:t.m}),L=t=>{if("function"==typeof t.vtag){const o={...t.vattrs};return t.vkey&&(o.key=t.vkey),t.vname&&(o.name=t.vname),E(t.vtag,o,...t.vchildren||[])}const o=A(t.vtag,t.vtext);return o.v=t.vattrs,o.h=t.vchildren,o.$=t.vkey,o.O=t.vname,o},N=(t,o)=>null==t||C(t)?t:4&o?"false"!==t&&(""===t||!!t):2&o?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&o?t+"":t,P=(t,o)=>{const r=t;return{emit:t=>R(r,o,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},R=(t,o,r)=>{const e=f.ce(o,r);return t.dispatchEvent(e),e},_=(t,o,r,e,c,a)=>{if(r===e)return;let i=n(t,o),u=o.toLowerCase();if("class"===o){const o=t.classList,l=U(r);let n=U(e);o.remove(...l.filter((t=>t&&!n.includes(t)))),o.add(...n.filter((t=>t&&!l.includes(t))))}else if("style"===o){for(const o in r)e&&null!=e[o]||(o.includes("-")?t.style.removeProperty(o):t.style[o]="");for(const o in e)r&&e[o]===r[o]||(o.includes("-")?t.style.setProperty(o,e[o]):t.style[o]=e[o])}else if("key"===o);else if("ref"===o)e&&ot(e,t);else if(t.__lookupSetter__(o)||"o"!==o[0]||"n"!==o[1]){if("a"===o[0]&&o.startsWith("attr:")){const r=o.slice(5);let n;{const o=l(t);if(o&&o.o&&o.o.t){const t=o.o.t[r];t&&t[1]&&(n=t[1])}}return n||(n=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==e||!1===e?!1===e&&""!==t.getAttribute(n)||t.removeAttribute(n):t.setAttribute(n,!0===e?"":e))}if("p"===o[0]&&o.startsWith("prop:")){const r=o.slice(5);try{t[r]=e}catch(t){}return}{const l=C(e);if((i||l&&null!==e)&&!c)try{if(t.tagName.includes("-"))t[o]!==e&&(t[o]=e);else{const l=null==e?"":e;"list"===o?i=!1:null!=r&&t[o]===l||("function"==typeof t.__lookupSetter__(o)?t[o]=l:t.setAttribute(o,l))}}catch(t){}let n=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(o=u,n=!0),null==e||!1===e?!1===e&&""!==t.getAttribute(o)||(n?t.removeAttributeNS(g,o):t.removeAttribute(o)):(!i||4&a||c)&&!l&&1===t.nodeType&&(e=!0===e?"":e,n?t.setAttributeNS(g,o,e):t.setAttribute(o,e))}}else if(o="-"===o[2]?o.slice(3):n(s,u)?u.slice(2):u[2]+o.slice(3),r||e){const l=o.endsWith(B);o=o.replace(W,""),r&&f.rel(t,o,r,l),e&&f.ael(t,o,e,l)}},H=/\s/,U=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(H):[]),B="Capture",W=RegExp(B+"$"),T=(t,o,r)=>{const e=11===o.k.nodeType&&o.k.host?o.k.host:o.k,l=t&&t.v||{},n=o.v||{};for(const t of V(Object.keys(l)))t in n||_(e,t,l[t],void 0,r,o.i);for(const t of V(Object.keys(n)))_(e,t,l[t],n[t],r,o.i)};function V(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var q=!1,G=!1,J=[],I=[],Y=(t,o,r)=>{const e=o.h[r];let l,n,c=0;if(null!=e.m)l=e.k=s.document.createTextNode(e.m);else{if(G||(G="svg"===e.j),!s.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=e.k=s.document.createElementNS(G?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",e.j),G&&"foreignObject"===e.j&&(G=!1),T(null,e,G),e.h){const o="template"===e.j?l.content:l;for(c=0;c<e.h.length;++c)n=Y(t,e,c),n&&o.appendChild(n)}"svg"===e.j?G=!1:"foreignObject"===l.tagName&&(G=!0)}return l["s-hn"]=O,l},Z=(t,o,r,e,l,n)=>{let c,a=t;for(a.shadowRoot&&a.tagName===O&&(a=a.shadowRoot),"template"===r.j&&(a=a.content);l<=n;++l)e[l]&&(c=Y(null,r,l),c&&(e[l].k=c,rt(a,c,o)))},K=(t,o,r)=>{for(let e=o;e<=r;++e){const o=t[e];if(o){const t=o.k;tt(o),t&&t.remove()}}},Q=(t,o,r=!1)=>t.j===o.j&&(r?(r&&!t.$&&o.$&&(t.$=o.$),!0):t.$===o.$),X=(t,o,r=!1)=>{const e=o.k=t.k,l=t.h,n=o.h,c=o.j,a=o.m;null==a?(G="svg"===c||"foreignObject"!==c&&G,"slot"!==c||q||t.O!==o.O&&(o.k["s-sn"]=o.O||"",(t=>{f.i|=1;const o=t.closest(O.toLowerCase());if(null!=o){const r=Array.from(o.__childNodes||o.childNodes).find((t=>t["s-cr"])),e=Array.from(t.__childNodes||t.childNodes);for(const t of r?e.reverse():e)null!=t["s-sh"]&&(rt(o,t,null!=r?r:null),t["s-sh"]=void 0)}f.i&=-2})(o.k.parentElement)),T(t,o,G),null!==l&&null!==n?((t,o,r,e,l=!1)=>{let n,c,a=0,g=0,s=0,i=0,f=o.length-1,u=o[0],d=o[f],p=e.length-1,b=e[0],m=e[p];const v="template"===r.j?t.content:t;for(;a<=f&&g<=p;)if(null==u)u=o[++a];else if(null==d)d=o[--f];else if(null==b)b=e[++g];else if(null==m)m=e[--p];else if(Q(u,b,l))X(u,b,l),u=o[++a],b=e[++g];else if(Q(d,m,l))X(d,m,l),d=o[--f],m=e[--p];else if(Q(u,m,l))X(u,m,l),rt(v,u.k,d.k.nextSibling),u=o[++a],m=e[--p];else if(Q(d,b,l))X(d,b,l),rt(v,d.k,u.k),d=o[--f],b=e[++g];else{for(s=-1,i=a;i<=f;++i)if(o[i]&&null!==o[i].$&&o[i].$===b.$){s=i;break}s>=0?(c=o[s],c.j!==b.j?n=Y(o&&o[g],r,s):(X(c,b,l),o[s]=void 0,n=c.k),b=e[++g]):(n=Y(o&&o[g],r,g),b=e[++g]),n&&rt(u.k.parentNode,n,u.k)}a>f?Z(t,null==e[p+1]?null:e[p+1].k,r,e,g,p):g>p&&K(o,a,f)})(e,l,o,n,r):null!==n?(null!==t.m&&(e.textContent=""),Z(e,null,o,n,0,n.length-1)):!r&&null!==l&&K(l,0,l.length-1),G&&"svg"===c&&(G=!1)):t.m!==a&&(e.data=a)},tt=t=>{t.v&&t.v.ref&&J.push((()=>t.v.ref(null))),t.h&&t.h.map(tt)},ot=(t,o)=>{I.push((()=>t(o)))},rt=(t,o,r)=>t.__insertBefore?t.__insertBefore(o,r):null==t?void 0:t.insertBefore(o,r),et=(t,o,r=!1)=>{const e=t.$hostElement$,l=t.o,n=t.S||A(null,null),c=(t=>t&&t.j===M)(o)?o:E(null,null,o);if(O=e.tagName,l.C&&(c.v=c.v||{},l.C.forEach((([t,o])=>{c.v[o]=e[t]}))),r&&c.v)for(const t of Object.keys(c.v))e.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(c.v[t]=e[t]);c.j=null,c.i|=4,t.S=c,c.k=n.k=e.shadowRoot||e,q=!(!(1&l.i)||128&l.i),X(n,c,r),J.forEach((t=>t())),J.length=0,I.forEach((t=>t())),I.length=0},lt=(t,o)=>{if(o&&!t.A&&o["s-p"]){const r=o["s-p"].push(new Promise((e=>t.A=()=>{o["s-p"].splice(r-1,1),e()})))}},nt=(t,o)=>{if(t.i|=16,4&t.i)return void(t.i|=512);lt(t,t.M);const r=()=>ct(t,o);if(!o)return w(r);queueMicrotask((()=>{r()}))},ct=(t,o)=>{const r=t.$hostElement$,e=r;if(!e)throw Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=dt(e,o?"componentWillLoad":"componentWillUpdate",void 0,r),l=at(l,(()=>dt(e,"componentWillRender",void 0,r))),at(l,(()=>st(t,e,o)))},at=(t,o)=>gt(t)?t.then(o).catch((t=>{console.error(t),o()})):o(),gt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,st=async(t,o,r)=>{var e;const l=t.$hostElement$,n=l["s-rc"];r&&(t=>{const o=t.o,r=t.$hostElement$,e=o.i,l=((t,o)=>{var r,e,l;const n=z(o),c=a.get(n);if(!s.document)return n;if(t=11===t.nodeType?t:s.document,c)if("string"==typeof c){let l,a=S.get(t=t.head||t);if(a||S.set(t,a=new Set),!a.has(n)){l=s.document.createElement("style"),l.textContent=c;const g=null!=(r=f.F)?r:function(){var t,o,r;return null!=(r=null==(o=null==(t=s.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:o.getAttribute("content"))?r:void 0}();if(null!=g&&l.setAttribute("nonce",g),!(1&o.i))if("HEAD"===t.nodeName){const o=t.querySelectorAll("link[rel=preconnect]"),r=o.length>0?o[o.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==r?void 0:r.parentNode)===t?r:null)}else if("host"in t)if(u){const o=new(null!=(e=t.defaultView)?e:t.ownerDocument.defaultView).CSSStyleSheet;o.replaceSync(c),d?t.adoptedStyleSheets.unshift(o):t.adoptedStyleSheets=[o,...t.adoptedStyleSheets]}else{const o=t.querySelector("style");o?o.textContent=c+o.textContent:t.prepend(l)}else t.append(l);1&o.i&&t.insertBefore(l,null),4&o.i&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),a&&a.add(n)}}else{let o=S.get(t);if(o||S.set(t,o=new Set),!o.has(n)){const r=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let e;if(c.constructor===r.CSSStyleSheet)e=c;else{e=new r.CSSStyleSheet;for(let t=0;t<c.cssRules.length;t++)e.insertRule(c.cssRules[t].cssText,t)}d?t.adoptedStyleSheets.push(e):t.adoptedStyleSheets=[...t.adoptedStyleSheets,e],o.add(n)}}return n})(r.shadowRoot?r.shadowRoot:r.getRootNode(),o);10&e&&(r["s-sc"]=l,r.classList.add(l+"-h"))})(t);it(t,o,l,r),n&&(n.map((t=>t())),l["s-rc"]=void 0);{const o=null!=(e=l["s-p"])?e:[],r=()=>ft(t);0===o.length?r():(Promise.all(o).then(r).catch(r),t.i|=4,o.length=0)}},it=(t,o,r,e)=>{try{o=o.render(),t.i&=-17,t.i|=2,et(t,o,e)}catch(o){c(o,t.$hostElement$)}return null},ft=t=>{const o=t.$hostElement$,r=o,e=t.M;dt(r,"componentDidRender",void 0,o),64&t.i?dt(r,"componentDidUpdate",void 0,o):(t.i|=64,pt(o),dt(r,"componentDidLoad",void 0,o),t.D(o),e||ut()),t.A&&(t.A(),t.A=void 0),512&t.i&&y((()=>nt(t,!1))),t.i&=-517},ut=()=>{y((()=>R(s,"appload",{detail:{namespace:"teranga-ds"}})))},dt=(t,o,r,e)=>{if(t&&t[o])try{return t[o](r)}catch(t){c(t,e)}},pt=t=>t.classList.add("hydrated"),bt=(t,o,r,e)=>{const n=l(t);if(!n)return;const c=t,a=n.l.get(o),g=n.i,s=c;if((r=N(r,e.t[o][0]))!==a&&(!Number.isNaN(a)||!Number.isNaN(r))&&(n.l.set(o,r),2&g)){if(s.componentShouldUpdate&&!1===s.componentShouldUpdate(r,a,o)&&!(16&g))return;16&g||nt(n,!1)}},mt=(t,r)=>{var e,n;const c=t.prototype;if(r.t){const a=Object.entries(null!=(e=r.t)?e:{});a.map((([t,[e]])=>{if(31&e||32&e){const{get:n,set:a}=o(c,t)||{};n&&(r.t[t][0]|=2048),a&&(r.t[t][0]|=4096),Object.defineProperty(c,t,{get(){return n?n.apply(this):((t,o)=>l(this).l.get(o))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(c,t,{set(o){const n=l(this);if(n){if(a)return void 0===(32&e?this[t]:n.$hostElement$[t])&&n.l.get(t)&&(o=n.l.get(t)),a.call(this,N(o,e)),void bt(this,t,o=32&e?this[t]:n.$hostElement$[t],r);bt(this,t,o,r)}}})}}));{const o=new Map;c.attributeChangedCallback=function(t,e,n){f.jmp((()=>{var g;const s=o.get(t),i=l(this);if(this.hasOwnProperty(s),c.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==n)return;if(null==s){const o=null==i?void 0:i.i;if(i&&o&&!(8&o)&&n!==e){const l=this,c=null==(g=r.L)?void 0:g[t];null==c||c.forEach((r=>{const[[c,a]]=Object.entries(r);null!=l[c]&&(128&o||1&a)&&l[c].call(l,n,e,t)}))}return}const f=a.find((([t])=>t===s));f&&4&f[1][0]&&(n=null!==n&&"false"!==n);const u=Object.getOwnPropertyDescriptor(c,s);n==this[s]||u.get&&!u.set||(this[s]=n)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(n=r.L)?n:{}),...a.filter((([t,o])=>31&o[0])).map((([t,e])=>{var l;const n=e[1]||t;return o.set(n,t),512&e[0]&&(null==(l=r.C)||l.push([t,n])),n}))]))}}return t},vt=(t,o)=>{const r={i:o[0],p:o[1]};try{r.t=o[2],r.N=o[3],r.C=[];const n=t.prototype.connectedCallback,g=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,o)=>{const r={i:0,$hostElement$:t,o,l:new Map,P:new Map};r.R=new Promise((t=>r.D=t)),t["s-p"]=[],t["s-rc"]=[];const l=r;t.__stencil__getHostRef=()=>l,512&o.i&&e(t,r)})(this,r)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=l(this);if(!t)return;ht(this,t,r.N),this.__hasHostListenerAttached=!0}(t=>{if(!(1&f.i)){const o=l(t);if(!o)return;const r=o.o,e=()=>{};if(1&o.i)ht(t,o,r.N),(null==o?void 0:o._)||(null==o?void 0:o.R)&&o.R.then((()=>{}));else{o.i|=1;{let r=t;for(;r=r.parentNode||r.host;)if(r["s-p"]){lt(o,o.M=r);break}}r.t&&Object.entries(r.t).map((([o,[r]])=>{if(31&r&&Object.prototype.hasOwnProperty.call(t,o)){const r=t[o];delete t[o],t[o]=r}})),(async(t,o,r)=>{let e;try{if(!(32&o.i)&&(o.i|=32,e=t.constructor,customElements.whenDefined(t.localName).then((()=>o.i|=128)),e&&e.style)){let t;"string"==typeof e.style&&(t=e.style);const o=z(r);if(!a.has(o)){const e=()=>{};((t,o,r)=>{let e=a.get(t);u&&r?(e=e||new CSSStyleSheet,"string"==typeof e?e=o:e.replaceSync(o)):e=o,a.set(t,e)})(o,t,!!(1&r.i)),e()}}const l=o.M,n=()=>nt(o,!0);l&&l["s-rc"]?l["s-rc"].push(n):n()}catch(r){c(r,t),o.A&&(o.A(),o.A=void 0),o.D&&o.D(t)}})(t,o,r)}e()}})(this),n&&n.call(this)},disconnectedCallback(){(async t=>{if(!(1&f.i)){const o=l(t);(null==o?void 0:o.H)&&(o.H.map((t=>t())),o.H=void 0)}S.has(t)&&S.delete(t),t.shadowRoot&&S.has(t.shadowRoot)&&S.delete(t.shadowRoot)})(this),g&&g.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else k.call(this,r)}}),Object.defineProperty(t,"is",{value:r.p,configurable:!0}),mt(t,r)}catch(o){return c(o),t}},ht=(t,o,r)=>{r&&s.document&&r.map((([r,e,l])=>{const n=yt(s.document,t,r),c=xt(o,l),a=wt(r);f.ael(n,e,c,a),(o.H=o.H||[]).push((()=>f.rel(n,e,c,a)))}))},xt=(t,o)=>r=>{try{t.$hostElement$[o](r)}catch(o){c(o,t.$hostElement$)}},yt=(t,o,r)=>4&r?t:8&r?s:o,wt=t=>({passive:!!(1&t),capture:!!(2&t)}),$t=t=>f.F=t,jt=t=>Object.assign(f,t);function kt(t,o){et({o:{i:0,p:o.tagName},$hostElement$:o},t)}function Ot(t){return t}export{i as H,M as a,P as c,$ as getAssetPath,E as h,vt as p,kt as render,j as setAssetPath,$t as setNonce,jt as setPlatformOptions,Ot as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,h as e,a as o,t as n}from"./index.js";const c=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.score=0,this.showBar=!0}get level(){return this.score>=.8?"high":this.score>=.5?"medium":"low"}render(){const t=Math.round(100*this.score);return e(o,{key:"aecf1b4b43cf40be94ae02979e80ddd296b489e3"},e("div",{key:"5593278db1c44b8b42bdacf28648a313c045ebc8",class:"tg-conf tg-conf--"+this.level},e("span",{key:"01334ff751a99cdb839e0551ef97e121603b3fa6",class:"tg-conf__pct"},t,"%"),this.label&&e("span",{key:"93b067ed5c3a8a88a62a599cc7a8e71c461f2b0a",class:"tg-conf__label"},this.label),this.showBar&&e("div",{key:"9c3cbf7f8afed63cd3fae1643a0fdf20e78025ea",class:"tg-conf__bar"},e("div",{key:"e582e1f3e220ba4e4ad0590b2efe886ab3451bd0",class:"tg-conf__fill",style:{width:t+"%"}}))))}static get style(){return":host{display:inline-flex}.tg-conf{display:inline-flex;align-items:center;gap:var(--tg-spacing-2);padding:var(--tg-spacing-1) var(--tg-spacing-2-5);border-radius:var(--tg-radius-full);font-family:var(--tg-font-family-sans)}.tg-conf--high{background:var(--tg-color-success-subtle);color:var(--tg-color-success)}.tg-conf--medium{background:var(--tg-color-warning-subtle);color:var(--tg-color-warning)}.tg-conf--low{background:var(--tg-color-danger-subtle);color:var(--tg-color-danger)}.tg-conf__pct{font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-bold);font-family:var(--tg-font-family-mono)}.tg-conf__label{font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-medium)}.tg-conf__bar{width:3rem;height:4px;background:rgba(0,0,0,0.1);border-radius:var(--tg-radius-full);overflow:hidden}.tg-conf__fill{height:100%;border-radius:var(--tg-radius-full);transition:width var(--tg-duration-normal)}.tg-conf--high .tg-conf__fill{background:var(--tg-color-success)}.tg-conf--medium .tg-conf__fill{background:var(--tg-color-warning)}.tg-conf--low .tg-conf__fill{background:var(--tg-color-danger)}"}},[1,"tg-confidence-badge",{score:[2],label:[1],showBar:[4,"show-bar"]}]);function r(){"undefined"!=typeof customElements&&["tg-confidence-badge"].forEach((t=>{"tg-confidence-badge"===t&&(customElements.get(n(t))||customElements.define(n(t),c))}))}r();export{c as T,r as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,h as e,a as r,t as g}from"./index.js";const l=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.label="EN DIRECT",this.active=!0,this.variant="default"}render(){return e(r,{key:"b067884844e5f89173d4d073e41f5d2d1502b399"},e("span",{key:"b93f121f7496d2d7dabecec78346877500308922",class:{"tg-lb":!0,"tg-lb--active":this.active,["tg-lb--"+this.variant]:!0}},e("span",{key:"ebfbafc6b00754d56991f537216862478b3dc4b1",class:"tg-lb__dot"}),e("span",{key:"4bf6bb7e6c0296a90fb214c46715d6977e9790a3",class:"tg-lb__label"},this.label)))}static get style(){return":host{display:inline-flex}.tg-lb{display:inline-flex;align-items:center;gap:var(--tg-spacing-1-5);padding:var(--tg-spacing-1) var(--tg-spacing-2-5);border-radius:var(--tg-radius-full);font-family:var(--tg-font-family-sans);font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-bold);text-transform:uppercase;letter-spacing:var(--tg-tracking-wide)}.tg-lb--default{background:var(--tg-color-danger-subtle);color:var(--tg-color-danger)}.tg-lb--recording{background:var(--tg-color-danger);color:white}.tg-lb--streaming{background:var(--tg-color-primary-subtle);color:var(--tg-color-primary)}.tg-lb__dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.tg-lb--active .tg-lb__dot{animation:tg-lb-pulse 1.5s ease-in-out infinite}.tg-lb--default .tg-lb__dot{background:var(--tg-color-danger)}.tg-lb--recording .tg-lb__dot{background:white}.tg-lb--streaming .tg-lb__dot{background:var(--tg-color-primary)}@keyframes tg-lb-pulse{0%,100%{opacity:1}50%{opacity:0.3}}"}},[1,"tg-live-badge",{label:[1],active:[4],variant:[1]}]);function s(){"undefined"!=typeof customElements&&["tg-live-badge"].forEach((t=>{"tg-live-badge"===t&&(customElements.get(g(t))||customElements.define(g(t),l))}))}s();export{l as T,s as d}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgActivityFeed extends Components.TgActivityFeed, HTMLElement {}
|
|
4
|
+
export const TgActivityFeed: {
|
|
5
|
+
prototype: TgActivityFeed;
|
|
6
|
+
new (): TgActivityFeed;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,t as e,H as a,h as s,a as r}from"./index.js";const i=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.items=[]}get parsed(){const t="string"==typeof this.items?(()=>{try{return JSON.parse(this.items)}catch(t){return[]}})():this.items;return this.maxItems?t.slice(0,this.maxItems):t}render(){return s(r,{key:"3a8314e8702a2c8ecf11419d0efb2f10d3d8442b"},s("div",{key:"99a5bbc264703c68cb92167f7920261c6c9646c7",class:"tg-af"},this.parsed.map((t=>s("div",{class:"tg-af__item"},s("div",{class:"tg-af__avatar"},t.avatar||t.user.charAt(0).toUpperCase()),s("div",{class:"tg-af__body"},s("p",{class:"tg-af__text"},s("strong",null,t.user)," ",t.action," ",t.target&&s("span",{class:"tg-af__target"},t.target)),s("span",{class:"tg-af__time"},t.time))))),0===this.parsed.length&&s("p",{key:"7f0bfc6058c3c2143a03cc0ced46ad2e521750e4",class:"tg-af__empty"},"Aucune activit\\u00e9 r\\u00e9cente")))}static get style(){return":host{display:block}.tg-af{font-family:var(--tg-font-family-sans)}.tg-af__item{display:flex;gap:var(--tg-spacing-3);padding:var(--tg-spacing-3) 0;border-bottom:1px solid var(--tg-color-border)}.tg-af__item:last-child{border-bottom:none}.tg-af__avatar{width:2rem;height:2rem;border-radius:50%;background:var(--tg-color-primary-subtle);color:var(--tg-color-primary);display:flex;align-items:center;justify-content:center;font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-semibold);flex-shrink:0}.tg-af__body{flex:1}.tg-af__text{margin:0;font-size:var(--tg-font-size-sm);color:var(--tg-color-text-primary);line-height:var(--tg-line-height-relaxed)}.tg-af__target{color:var(--tg-color-primary);font-weight:var(--tg-font-weight-medium)}.tg-af__time{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary)}.tg-af__empty{text-align:center;padding:var(--tg-spacing-6);color:var(--tg-color-text-disabled);font-size:var(--tg-font-size-sm)}"}},[1,"tg-activity-feed",{items:[1],maxItems:[2,"max-items"]}]);function o(){"undefined"!=typeof customElements&&["tg-activity-feed"].forEach((t=>{"tg-activity-feed"===t&&(customElements.get(e(t))||customElements.define(e(t),i))}))}o();const c=i,g=o;export{c as TgActivityFeed,g as defineCustomElement}
|