zignal-stencil-library 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/autocomplete-select_18.cjs.entry.js +41433 -0
- package/dist/cjs/autocomplete-select_18.cjs.entry.js.map +1 -0
- package/dist/cjs/index-C4CtrJXU.js +2199 -0
- package/dist/cjs/index-C4CtrJXU.js.map +1 -0
- package/dist/cjs/index-tRPYdc8n.js +1927 -0
- package/dist/cjs/index-tRPYdc8n.js.map +1 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/zignal-stencil-library.cjs.js +28 -0
- package/dist/cjs/zignal-stencil-library.cjs.js.map +1 -0
- package/dist/collection/api/index.js +132 -0
- package/dist/collection/api/index.js.map +1 -0
- package/dist/collection/collection-manifest.json +29 -0
- package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -0
- package/dist/collection/components/autocomplete-select/autocomplete-select.js +230 -0
- package/dist/collection/components/autocomplete-select/autocomplete-select.js.map +1 -0
- package/dist/collection/components/channel-box/channel-box.css +1 -0
- package/dist/collection/components/channel-box/channel-box.js +93 -0
- package/dist/collection/components/channel-box/channel-box.js.map +1 -0
- package/dist/collection/components/chat-app/chat-app.css +1 -0
- package/dist/collection/components/chat-app/chat-app.js +227 -0
- package/dist/collection/components/chat-app/chat-app.js.map +1 -0
- package/dist/collection/components/chat-header/chat-header.css +1 -0
- package/dist/collection/components/chat-header/chat-header.js +45 -0
- package/dist/collection/components/chat-header/chat-header.js.map +1 -0
- package/dist/collection/components/chat-input/chat-input.css +1 -0
- package/dist/collection/components/chat-input/chat-input.js +118 -0
- package/dist/collection/components/chat-input/chat-input.js.map +1 -0
- package/dist/collection/components/dialog-editor/dialog-editor.css +1 -0
- package/dist/collection/components/dialog-editor/dialog-editor.js +176 -0
- package/dist/collection/components/dialog-editor/dialog-editor.js.map +1 -0
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -0
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.js +96 -0
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.js.map +1 -0
- package/dist/collection/components/dialog-search/dialog-search.css +1 -0
- package/dist/collection/components/dialog-search/dialog-search.js +105 -0
- package/dist/collection/components/dialog-search/dialog-search.js.map +1 -0
- package/dist/collection/components/internal-component/chat-item.js +28 -0
- package/dist/collection/components/internal-component/chat-item.js.map +1 -0
- package/dist/collection/components/internal-component/icon.js +9 -0
- package/dist/collection/components/internal-component/icon.js.map +1 -0
- package/dist/collection/components/internal-component/tag-or-status-item.js +9 -0
- package/dist/collection/components/internal-component/tag-or-status-item.js.map +1 -0
- package/dist/collection/components/internal-component/z-button.js +24 -0
- package/dist/collection/components/internal-component/z-button.js.map +1 -0
- package/dist/collection/components/internal-component/z-icon-button.js +23 -0
- package/dist/collection/components/internal-component/z-icon-button.js.map +1 -0
- package/dist/collection/components/internal-component/z-input-area.js +8 -0
- package/dist/collection/components/internal-component/z-input-area.js.map +1 -0
- package/dist/collection/components/internal-component/z-input.js +8 -0
- package/dist/collection/components/internal-component/z-input.js.map +1 -0
- package/dist/collection/components/internal-component/z-select-input.js +9 -0
- package/dist/collection/components/internal-component/z-select-input.js.map +1 -0
- package/dist/collection/components/menu-list/menu-list.css +1 -0
- package/dist/collection/components/menu-list/menu-list.js +168 -0
- package/dist/collection/components/menu-list/menu-list.js.map +1 -0
- package/dist/collection/components/message-box/message-box.css +1 -0
- package/dist/collection/components/message-box/message-box.js +179 -0
- package/dist/collection/components/message-box/message-box.js.map +1 -0
- package/dist/collection/components/message-content/message-content.css +1 -0
- package/dist/collection/components/message-content/message-content.js +98 -0
- package/dist/collection/components/message-content/message-content.js.map +1 -0
- package/dist/collection/components/message-item/message-item.css +1 -0
- package/dist/collection/components/message-item/message-item.js +115 -0
- package/dist/collection/components/message-item/message-item.js.map +1 -0
- package/dist/collection/components/profile-history/profile-history.css +1 -0
- package/dist/collection/components/profile-history/profile-history.js +18 -0
- package/dist/collection/components/profile-history/profile-history.js.map +1 -0
- package/dist/collection/components/profile-info/profile-info.css +1 -0
- package/dist/collection/components/profile-info/profile-info.js +255 -0
- package/dist/collection/components/profile-info/profile-info.js.map +1 -0
- package/dist/collection/components/profile-media/profile-media.css +1 -0
- package/dist/collection/components/profile-media/profile-media.js +18 -0
- package/dist/collection/components/profile-media/profile-media.js.map +1 -0
- package/dist/collection/components/profile-tabs/profile-tabs.css +1 -0
- package/dist/collection/components/profile-tabs/profile-tabs.js +43 -0
- package/dist/collection/components/profile-tabs/profile-tabs.js.map +1 -0
- package/dist/collection/components/search-box/search-box.css +1 -0
- package/dist/collection/components/search-box/search-box.js +71 -0
- package/dist/collection/components/search-box/search-box.js.map +1 -0
- package/dist/collection/components/tag-popper/tag-popper.css +1 -0
- package/dist/collection/components/tag-popper/tag-popper.js +124 -0
- package/dist/collection/components/tag-popper/tag-popper.js.map +1 -0
- package/dist/collection/global/i18n.js +13 -0
- package/dist/collection/global/i18n.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/postcss/property-to-variable.js +54 -0
- package/dist/collection/store/store.js +25 -0
- package/dist/collection/store/store.js.map +1 -0
- package/dist/collection/utils/axios.js +11 -0
- package/dist/collection/utils/axios.js.map +1 -0
- package/dist/collection/utils/constant.js +5 -0
- package/dist/collection/utils/constant.js.map +1 -0
- package/dist/collection/utils/dayjs.js +175 -0
- package/dist/collection/utils/dayjs.js.map +1 -0
- package/dist/collection/utils/socket.js +59 -0
- package/dist/collection/utils/socket.js.map +1 -0
- package/dist/collection/utils/utils.js +8 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/autocomplete-select.d.ts +11 -0
- package/dist/components/autocomplete-select.js +9 -0
- package/dist/components/autocomplete-select.js.map +1 -0
- package/dist/components/channel-box.d.ts +11 -0
- package/dist/components/channel-box.js +9 -0
- package/dist/components/channel-box.js.map +1 -0
- package/dist/components/chat-app.d.ts +11 -0
- package/dist/components/chat-app.js +226 -0
- package/dist/components/chat-app.js.map +1 -0
- package/dist/components/chat-header.d.ts +11 -0
- package/dist/components/chat-header.js +9 -0
- package/dist/components/chat-header.js.map +1 -0
- package/dist/components/chat-input.d.ts +11 -0
- package/dist/components/chat-input.js +9 -0
- package/dist/components/chat-input.js.map +1 -0
- package/dist/components/dialog-editor.d.ts +11 -0
- package/dist/components/dialog-editor.js +9 -0
- package/dist/components/dialog-editor.js.map +1 -0
- package/dist/components/dialog-preview-media.d.ts +11 -0
- package/dist/components/dialog-preview-media.js +9 -0
- package/dist/components/dialog-preview-media.js.map +1 -0
- package/dist/components/dialog-search.d.ts +11 -0
- package/dist/components/dialog-search.js +9 -0
- package/dist/components/dialog-search.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +2199 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/menu-list.d.ts +11 -0
- package/dist/components/menu-list.js +9 -0
- package/dist/components/menu-list.js.map +1 -0
- package/dist/components/message-box.d.ts +11 -0
- package/dist/components/message-box.js +9 -0
- package/dist/components/message-box.js.map +1 -0
- package/dist/components/message-content.d.ts +11 -0
- package/dist/components/message-content.js +9 -0
- package/dist/components/message-content.js.map +1 -0
- package/dist/components/message-item.d.ts +11 -0
- package/dist/components/message-item.js +9 -0
- package/dist/components/message-item.js.map +1 -0
- package/dist/components/p-6xqe-pLQ.js +1509 -0
- package/dist/components/p-6xqe-pLQ.js.map +1 -0
- package/dist/components/p-B8jcXcXq.js +10 -0
- package/dist/components/p-B8jcXcXq.js.map +1 -0
- package/dist/components/p-BAxNTWPI.js +32 -0
- package/dist/components/p-BAxNTWPI.js.map +1 -0
- package/dist/components/p-BZ4TvILZ.js +24 -0
- package/dist/components/p-BZ4TvILZ.js.map +1 -0
- package/dist/components/p-BZ_KFdA7.js +99 -0
- package/dist/components/p-BZ_KFdA7.js.map +1 -0
- package/dist/components/p-BaEi6GXz.js +27448 -0
- package/dist/components/p-BaEi6GXz.js.map +1 -0
- package/dist/components/p-BcC6bTqM.js +104 -0
- package/dist/components/p-BcC6bTqM.js.map +1 -0
- package/dist/components/p-Beycm8NN.js +3027 -0
- package/dist/components/p-Beycm8NN.js.map +1 -0
- package/dist/components/p-Bf89k6bd.js +3932 -0
- package/dist/components/p-Bf89k6bd.js.map +1 -0
- package/dist/components/p-BtkLsQfZ.js +17 -0
- package/dist/components/p-BtkLsQfZ.js.map +1 -0
- package/dist/components/p-C9EokLnL.js +102 -0
- package/dist/components/p-C9EokLnL.js.map +1 -0
- package/dist/components/p-CHaS9akB.js +33 -0
- package/dist/components/p-CHaS9akB.js.map +1 -0
- package/dist/components/p-CQZRPVaY.js +1715 -0
- package/dist/components/p-CQZRPVaY.js.map +1 -0
- package/dist/components/p-CS8eN-II.js +60 -0
- package/dist/components/p-CS8eN-II.js.map +1 -0
- package/dist/components/p-CUmphmPD.js +48 -0
- package/dist/components/p-CUmphmPD.js.map +1 -0
- package/dist/components/p-ChdOg2lI.js +90 -0
- package/dist/components/p-ChdOg2lI.js.map +1 -0
- package/dist/components/p-CkqA8kPB.js +210 -0
- package/dist/components/p-CkqA8kPB.js.map +1 -0
- package/dist/components/p-CmWIRJ5t.js +91 -0
- package/dist/components/p-CmWIRJ5t.js.map +1 -0
- package/dist/components/p-CzESq-LE.js +88 -0
- package/dist/components/p-CzESq-LE.js.map +1 -0
- package/dist/components/p-DD3M-jE2.js +87 -0
- package/dist/components/p-DD3M-jE2.js.map +1 -0
- package/dist/components/p-DFjLV5Vy.js +71 -0
- package/dist/components/p-DFjLV5Vy.js.map +1 -0
- package/dist/components/p-DYI8iHdE.js +279 -0
- package/dist/components/p-DYI8iHdE.js.map +1 -0
- package/dist/components/p-DfRY75vS.js +16 -0
- package/dist/components/p-DfRY75vS.js.map +1 -0
- package/dist/components/p-DspEZ2pG.js +85 -0
- package/dist/components/p-DspEZ2pG.js.map +1 -0
- package/dist/components/p-LCZ_Vyoy.js +4084 -0
- package/dist/components/p-LCZ_Vyoy.js.map +1 -0
- package/dist/components/p-N-wb2wDd.js +236 -0
- package/dist/components/p-N-wb2wDd.js.map +1 -0
- package/dist/components/p-Urxy5c9-.js +154 -0
- package/dist/components/p-Urxy5c9-.js.map +1 -0
- package/dist/components/p-nz95LAGz.js +33 -0
- package/dist/components/p-nz95LAGz.js.map +1 -0
- package/dist/components/profile-history.d.ts +11 -0
- package/dist/components/profile-history.js +9 -0
- package/dist/components/profile-history.js.map +1 -0
- package/dist/components/profile-info.d.ts +11 -0
- package/dist/components/profile-info.js +9 -0
- package/dist/components/profile-info.js.map +1 -0
- package/dist/components/profile-media.d.ts +11 -0
- package/dist/components/profile-media.js +9 -0
- package/dist/components/profile-media.js.map +1 -0
- package/dist/components/profile-tabs.d.ts +11 -0
- package/dist/components/profile-tabs.js +9 -0
- package/dist/components/profile-tabs.js.map +1 -0
- package/dist/components/search-box.d.ts +11 -0
- package/dist/components/search-box.js +9 -0
- package/dist/components/search-box.js.map +1 -0
- package/dist/components/tag-popper.d.ts +11 -0
- package/dist/components/tag-popper.js +9 -0
- package/dist/components/tag-popper.js.map +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/autocomplete-select.channel-box.chat-app.chat-header.chat-input.dialog-editor.dialog-preview-media.dialog-search.menu-list.message-box.message-content.message-item.profile-history.profile-info.profile-media.profile-tabs.search-box.tag-popper.entry.js.map +1 -0
- package/dist/esm/autocomplete-select_18.entry.js +41414 -0
- package/dist/esm/autocomplete-select_18.entry.js.map +1 -0
- package/dist/esm/index-C0ey1F02.js +1917 -0
- package/dist/esm/index-C0ey1F02.js.map +1 -0
- package/dist/esm/index-DasOEma2.js +2197 -0
- package/dist/esm/index-DasOEma2.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +14 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/zignal-stencil-library.js +24 -0
- package/dist/esm/zignal-stencil-library.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/api/index.d.ts +12 -0
- package/dist/types/api/index.type.d.ts +98 -0
- package/dist/types/components/autocomplete-select/autocomplete-select.d.ts +19 -0
- package/dist/types/components/channel-box/channel-box.d.ts +11 -0
- package/dist/types/components/chat-app/chat-app.d.ts +25 -0
- package/dist/types/components/chat-header/chat-header.d.ts +3 -0
- package/dist/types/components/chat-input/chat-input.d.ts +9 -0
- package/dist/types/components/dialog-editor/dialog-editor.d.ts +16 -0
- package/dist/types/components/dialog-preview-media/dialog-preview-media.d.ts +8 -0
- package/dist/types/components/dialog-search/dialog-search.d.ts +18 -0
- package/dist/types/components/internal-component/chat-item.d.ts +6 -0
- package/dist/types/components/internal-component/icon.d.ts +7 -0
- package/dist/types/components/internal-component/tag-or-status-item.d.ts +7 -0
- package/dist/types/components/internal-component/z-button.d.ts +15 -0
- package/dist/types/components/internal-component/z-icon-button.d.ts +13 -0
- package/dist/types/components/internal-component/z-input-area.d.ts +13 -0
- package/dist/types/components/internal-component/z-input.d.ts +13 -0
- package/dist/types/components/internal-component/z-select-input.d.ts +13 -0
- package/dist/types/components/menu-list/menu-list.d.ts +17 -0
- package/dist/types/components/message-box/message-box.d.ts +19 -0
- package/dist/types/components/message-content/message-content.d.ts +8 -0
- package/dist/types/components/message-item/message-item.d.ts +9 -0
- package/dist/types/components/profile-history/profile-history.d.ts +3 -0
- package/dist/types/components/profile-info/profile-info.d.ts +29 -0
- package/dist/types/components/profile-media/profile-media.d.ts +3 -0
- package/dist/types/components/profile-tabs/profile-tabs.d.ts +8 -0
- package/dist/types/components/search-box/search-box.d.ts +10 -0
- package/dist/types/components/tag-popper/tag-popper.d.ts +13 -0
- package/dist/types/components.d.ts +498 -0
- package/dist/types/global/i18n.d.ts +2 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1709 -0
- package/dist/types/store/store.d.ts +16 -0
- package/dist/types/store/store.type.d.ts +132 -0
- package/dist/types/utils/axios.d.ts +1 -0
- package/dist/types/utils/constant.d.ts +1 -0
- package/dist/types/utils/dayjs.d.ts +31 -0
- package/dist/types/utils/socket.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/zignal-stencil-library/index.esm.js +2 -0
- package/dist/zignal-stencil-library/index.esm.js.map +1 -0
- package/dist/zignal-stencil-library/loader.esm.js.map +1 -0
- package/dist/zignal-stencil-library/p-C0ey1F02.js +3 -0
- package/dist/zignal-stencil-library/p-C0ey1F02.js.map +1 -0
- package/dist/zignal-stencil-library/p-DQuL1Twl.js +2 -0
- package/dist/zignal-stencil-library/p-DQuL1Twl.js.map +1 -0
- package/dist/zignal-stencil-library/p-DasOEma2.js +2 -0
- package/dist/zignal-stencil-library/p-DasOEma2.js.map +1 -0
- package/dist/zignal-stencil-library/p-ee2ebe92.entry.js +9777 -0
- package/dist/zignal-stencil-library/p-ee2ebe92.entry.js.map +1 -0
- package/dist/zignal-stencil-library/zignal-stencil-library.css +1 -0
- package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +2 -0
- package/dist/zignal-stencil-library/zignal-stencil-library.esm.js.map +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +73 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { configStore } from "../../store/store";
|
|
3
|
+
import { ZIconButton } from "../internal-component/z-icon-button";
|
|
4
|
+
export class DialogPreviewMedia {
|
|
5
|
+
dialogType = 'image';
|
|
6
|
+
url = '';
|
|
7
|
+
close;
|
|
8
|
+
handleClose = () => {
|
|
9
|
+
this.close.emit();
|
|
10
|
+
};
|
|
11
|
+
render() {
|
|
12
|
+
const theme = configStore.get('theme');
|
|
13
|
+
return (h(Host, { key: '6abf43ba5d6978c28a0181107edd8d668b07a2a0' }, h("slot", { key: '62257c359b63b50f810541cc3feb080ab89494e0' }, h("div", { key: 'cc7dde220a877e4ad326e661ac947806864518c7', class: `p-6 pt-8 z-background-${theme} rounded-lg shadow-lg w-xl xs:w-xs max-h-[80vh] relative overflow-auto` }, h("div", { key: '0ed159530329d429028e83f5cf0e5d13d7e40a15', class: "absolute top-0.5 right-0.5" }, h(ZIconButton, { key: '3e913c0c65d18971b46615fccc39b89d73988e58', iconName: "X", variant: 'none', onClick: () => this.handleClose() })), h("div", { key: '8bd8ea25c81f0c56098ba7183a0a05ab61a8a121', class: "w-lg m-auto flex items-center justify-center" }, h("div", { key: 'c7675f3afc85055563cc371337b0c8874ea116f0' }, this.dialogType === 'image' &&
|
|
14
|
+
h("img", { key: 'b622af85a4bb11a2d4fe21ef855f914e19a570c1', src: this.url, alt: "preview-message-image", class: "object-contain" }), this.dialogType === 'video' &&
|
|
15
|
+
h("video", { key: '34bc95c14afaea50f92ceb1b8d4fbd782e1c9398', controls: true, autoplay: true, muted: true, playsinline: true, src: this.url, id: "preview-message-video", class: "object-contain" })))))));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "dialog-preview-media"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["dialog-preview-media.css"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["dialog-preview-media.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"dialogType": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"attribute": "dialog-type",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "MessageAttachmentType",
|
|
36
|
+
"resolved": "\"audio\" | \"file\" | \"image\" | \"video\"",
|
|
37
|
+
"references": {
|
|
38
|
+
"MessageAttachmentType": {
|
|
39
|
+
"location": "global",
|
|
40
|
+
"id": "global::MessageAttachmentType"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": true,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"getter": false,
|
|
51
|
+
"setter": false,
|
|
52
|
+
"reflect": false,
|
|
53
|
+
"defaultValue": "'image'"
|
|
54
|
+
},
|
|
55
|
+
"url": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"attribute": "url",
|
|
58
|
+
"mutable": false,
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "string",
|
|
61
|
+
"resolved": "string",
|
|
62
|
+
"references": {}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": false,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"getter": false,
|
|
71
|
+
"setter": false,
|
|
72
|
+
"reflect": false,
|
|
73
|
+
"defaultValue": "''"
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static get events() {
|
|
78
|
+
return [{
|
|
79
|
+
"method": "close",
|
|
80
|
+
"name": "close",
|
|
81
|
+
"bubbles": true,
|
|
82
|
+
"cancelable": true,
|
|
83
|
+
"composed": true,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": ""
|
|
87
|
+
},
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "void",
|
|
90
|
+
"resolved": "void",
|
|
91
|
+
"references": {}
|
|
92
|
+
}
|
|
93
|
+
}];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=dialog-preview-media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-preview-media.js","sourceRoot":"","sources":["../../../src/components/dialog-preview-media/dialog-preview-media.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAMlE,MAAM,OAAO,kBAAkB;IACrB,UAAU,GAA2B,OAAO,CAAC;IAC7C,GAAG,GAAW,EAAE,CAAC;IAEhB,KAAK,CAAqB;IAEnC,WAAW,GAAG,GAAG,EAAE;QACjB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC,CAAC;IAEF,MAAM;QACJ,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAEvC,OAAO,CACL,EAAC,IAAI;YACH;gBACE,4DAAK,KAAK,EAAE,yBAAyB,KAAK,wEAAwE;oBAChH,4DAAK,KAAK,EAAC,4BAA4B;wBACrC,EAAC,WAAW,qDAAC,QAAQ,EAAC,GAAG,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,GAAI,CAC1E;oBAEN,4DAAK,KAAK,EAAC,8CAA8C;wBACvD;4BACG,IAAI,CAAC,UAAU,KAAK,OAAO;gCAC1B,4DACE,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAC,uBAAuB,EAC3B,KAAK,EAAC,gBAAgB,GACtB;4BAGH,IAAI,CAAC,UAAU,KAAK,OAAO;gCAC1B,8DACE,QAAQ,QACR,QAAQ,QACR,KAAK,QACL,WAAW,QACX,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,EAAE,EAAC,uBAAuB,EAC1B,KAAK,EAAC,gBAAgB,GACtB,CAEA,CACF,CACF,CACD,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Event, EventEmitter } from '@stencil/core';\nimport { configStore } from '../../store/store';\nimport { ZIconButton } from '../internal-component/z-icon-button';\n\n@Component({\n tag: 'dialog-preview-media',\n styleUrl: 'dialog-preview-media.css',\n})\nexport class DialogPreviewMedia {\n @Prop() dialogType?: MessageAttachmentType = 'image';\n @Prop() url: string = '';\n\n @Event() close: EventEmitter<void>;\n\n handleClose = () => {\n this.close.emit();\n };\n\n render() {\n const theme = configStore.get('theme');\n\n return (\n <Host>\n <slot>\n <div class={`p-6 pt-8 z-background-${theme} rounded-lg shadow-lg w-xl xs:w-xs max-h-[80vh] relative overflow-auto`}>\n <div class=\"absolute top-0.5 right-0.5\">\n <ZIconButton iconName=\"X\" variant='none' onClick={() => this.handleClose()} />\n </div>\n\n <div class=\"w-lg m-auto flex items-center justify-center\">\n <div>\n {this.dialogType === 'image' &&\n <img\n src={this.url}\n alt=\"preview-message-image\"\n class=\"object-contain\"\n />\n }\n\n {this.dialogType === 'video' &&\n <video\n controls\n autoplay\n muted\n playsinline\n src={this.url}\n id=\"preview-message-video\"\n class=\"object-contain\"\n />\n }\n </div>\n </div>\n </div>\n </slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base{*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-drop-shadow-alpha:100%;--tw-space-y-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-space-y-reverse:0;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--container-lg:32rem;--color-yellow-300:oklch(90.5% .182 98.111);--radius-md:.375rem;--color-red-500:oklch(63.7% .237 25.331);--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-100:oklch(94.8% .028 342.258);--color-gray-600:oklch(44.6% .03 256.802);--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--font-weight-medium:500;--font-weight-semibold:600;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xl:36rem;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-bold:700;--radius-lg:.5rem;--default-font-family:"Kanit",var(--default-font);--default-mono-font-family:var(--font-mono);--default-font:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-primary-dark:#b50f30;--color-secondary-dark:#fff;--color-background-dark:#23292d}}@layer base{::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-meridiem-field{padding-block:0;padding-bottom:0;padding-top:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-color:oklch(55.1% .027 264.364);border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);border-color:oklch(54.6% .245 262.881);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;color:oklch(54.6% .245 262.881);print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-color:oklch(55.1% .027 264.364);border-width:1px;display:inline-block;flex-shrink:0;height:1rem;padding:0;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.top-1{top:calc(var(--spacing)*1)}.right-1{right:calc(var(--spacing)*1)}.z-\[99\]{z-index:99}.flex{display:flex}.w-full{width:100%}.min-w-\[280px\]{min-width:280px}.flex-1{flex:1}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.text-\[10px\]{font-size:10px}.text-\[gray\]{color:gray}.opacity-10{opacity:.1}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.scroll-container::-webkit-scrollbar{background:0 0;height:8px;width:8px}.scroll-container:active::-webkit-scrollbar,.scroll-container:hover::-webkit-scrollbar{background:#0000001a}.scroll-container:active::-webkit-scrollbar-thumb,.scroll-container:hover::-webkit-scrollbar-thumb{background:#0006;border-radius:4px}.z-text-light{color:var(--color-black)}.z-text-dark{color:var(--color-white)}.z-text-primary-light{color:var(--color-primary)}.z-text-primary-dark{color:var(--color-primary-dark)}.z-text-gray-light{color:var(--color-gray-500)}.z-text-gray-dark{color:var(--color-gray-300)}.z-border-light{border-color:var(--color-black)}.z-border-dark{border-color:var(--color-white)}.z-border-primary-light{border-color:var(--color-primary)}.z-border-primary-dark{border-color:var(--color-primary-dark)}.z-border-divider-light{border-color:var(--color-gray-400)}.z-border-divider-dark{border-color:var(--color-gray-300)}.z-search-input-background-light{background-color:var(--color-gray-200)}.z-search-input-background-dark{background-color:var(--color-gray-500)}.z-chat-input-background-light{background-color:var(--color-white)}.z-chat-input-background-dark{background-color:var(--color-gray-700)}.z-placeholder-light::placeholder{color:var(--color-gray-500)}.z-placeholder-dark::placeholder{color:var(--color-gray-200)}.z-background-light{background-color:var(--color-background)}.z-background-dark{background-color:var(--color-background-dark)}.z-paper-light{background-color:var(--color-gray-100)}.z-paper-dark{background-color:var(--color-gray-700)}.z-width-100{width:100%}.z-width-75{width:75%}.z-width-50{width:50%}.z-width-25{width:25%}.z-width-0{width:0}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{.my-auto{margin-block:auto}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.h-4{height:calc(var(--spacing)*4)}.h-\[60px\]{height:60px}.w-4{width:calc(var(--spacing)*4)}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:calc(var(--spacing)*1)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*1*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*1*var(--tw-space-x-reverse))}.rounded-full{border-radius:3.40282e+38px}.object-cover{object-fit:cover}.px-2{padding-inline:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-blue-500{color:var(--color-blue-500)}.text-green-500{color:var(--color-green-500)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-auto{margin-bottom:auto}.ml-2{margin-left:calc(var(--spacing)*2)}.border-none{--tw-border-style:none;border-style:none}.bg-pink-100{background-color:var(--color-pink-100)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-black{color:var(--color-black)}.text-gray-500{color:var(--color-gray-500)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-primary{--tw-ring-color:var(--color-primary)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.max-h-\[80vh\]{max-height:80vh}.w-xl{width:var(--container-xl)}.gap-2{gap:calc(var(--spacing)*2)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.rounded-lg{border-radius:var(--radius-lg)}.p-6{padding:calc(var(--spacing)*6)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.top-0\.5{top:calc(var(--spacing)*.5)}.right-0\.5{right:calc(var(--spacing)*.5)}.m-auto{margin:auto}.w-lg{width:var(--container-lg)}.justify-center{justify-content:center}.object-contain{object-fit:contain}.pt-8{padding-top:calc(var(--spacing)*8)}.mx-auto{margin-inline:auto}.mb-10{margin-bottom:calc(var(--spacing)*10)}.grid{display:grid}.h-18{height:calc(var(--spacing)*18)}.w-18{width:calc(var(--spacing)*18)}.place-content-center{place-content:center}.p-4{padding:calc(var(--spacing)*4)}.text-center{text-align:center}.text-gray-400{color:var(--color-gray-400)}.text-primary{color:var(--color-primary)}.right-0{right:calc(var(--spacing)*0)}.bottom-\[40px\]{bottom:40px}.left-0{left:calc(var(--spacing)*0)}.z-50{z-index:50}.mt-2{margin-top:calc(var(--spacing)*2)}.w-32{width:calc(var(--spacing)*32)}.cursor-pointer{cursor:pointer}.rounded-md{border-radius:var(--radius-md)}.fixed{position:fixed}.inset-0{inset:calc(var(--spacing)*0)}.size-42{height:calc(var(--spacing)*42);width:calc(var(--spacing)*42)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-br-\[0\]{border-bottom-right-radius:0}.rounded-bl-\[0\]{border-bottom-left-radius:0}.bg-black\/40{background-color:#0006}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-gray-200{background-color:var(--color-gray-200)}.bg-primary{background-color:var(--color-primary)}.p-2{padding:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-5{padding-bottom:calc(var(--spacing)*5)}.text-white{color:var(--color-white)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.right-full{right:100%}.-bottom-2{bottom:calc(var(--spacing)*-2)}.left-full{left:100%}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-\[-0\.75rem\]{margin-bottom:-.75rem}.h-6{height:calc(var(--spacing)*6)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.bg-yellow-300{background-color:var(--color-yellow-300)}.text-left{text-align:left}.text-right{text-align:right}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.mr-1{margin-right:calc(var(--spacing)*1)}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.min-h-20{min-height:calc(var(--spacing)*20)}.grid-flow-row-dense{grid-auto-flow:dense}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-baseline-last{align-items:last baseline}.gap-y-1{row-gap:calc(var(--spacing)*1)}.border-b-\[0\.5px\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.pt-0{padding-top:calc(var(--spacing)*0)}.whitespace-pre-line{white-space:pre-line}.capitalize{text-transform:capitalize}.top-1\/2{top:50%}.right-1\.25{right:calc(var(--spacing)*1.25)}.max-w-xl{max-width:var(--container-xl)}.-translate-y-1\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.mt-auto{margin-top:auto}.hidden{display:none}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{} /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{:where(.space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*8*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*8*var(--tw-space-x-reverse))}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-transparent{border-color:#0000}.py-4{padding-block:calc(var(--spacing)*4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.w-52{width:calc(var(--spacing)*52)}.top-0{top:calc(var(--spacing)*0)}.col-span-4{grid-column:span 4/span 4}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-1{margin-block:calc(var(--spacing)*1)}.mr-0{margin-right:calc(var(--spacing)*0)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.h-0{height:calc(var(--spacing)*0)}.h-5{height:calc(var(--spacing)*5)}.w-0{width:calc(var(--spacing)*0)}.w-5{width:calc(var(--spacing)*5)}.cursor-not-allowed{cursor:not-allowed}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.items-start{align-items:flex-start}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.border{border-style:var(--tw-border-style);border-width:1px}.border-t-\[14px\]{border-top-style:var(--tw-border-style);border-top-width:14px}.border-l-\[14px\]{border-left-style:var(--tw-border-style);border-left-width:14px}.border-primary{border-color:var(--color-primary)}.border-t-red-500{border-top-color:var(--color-red-500)}.border-l-transparent{border-left-color:#0000}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.text-nowrap{text-wrap:nowrap}.text-gray-600{color:var(--color-gray-600)}.text-red-500{color:var(--color-red-500)}.opacity-50{opacity:.5}.transition{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.focus\:border-primary:focus{border-color:var(--color-primary)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;:host{display:block}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}}@media (hover:hover){.hover\:opacity-100:hover{opacity:1}.hover\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}@media screen and (min-width:0){.z-max-height{height:calc(100vh - 56px)}}@media screen and (min-width:600px){.z-max-height{height:calc(100vh - 64px)}}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { ZSelectInput } from "../internal-component/z-select-input";
|
|
3
|
+
import { ZButton } from "../internal-component/z-button";
|
|
4
|
+
import { ZInput } from "../internal-component/z-input";
|
|
5
|
+
import { configStore } from "../../store/store";
|
|
6
|
+
export class DialogSearch {
|
|
7
|
+
dialogType = 'create';
|
|
8
|
+
data = {
|
|
9
|
+
name: '',
|
|
10
|
+
channel: '',
|
|
11
|
+
keyword: '',
|
|
12
|
+
status: '',
|
|
13
|
+
tag: '',
|
|
14
|
+
pinned: '',
|
|
15
|
+
latestReply: '',
|
|
16
|
+
};
|
|
17
|
+
cancel;
|
|
18
|
+
handleCancel = () => {
|
|
19
|
+
this.data = {
|
|
20
|
+
name: '',
|
|
21
|
+
channel: '',
|
|
22
|
+
keyword: '',
|
|
23
|
+
status: '',
|
|
24
|
+
tag: '',
|
|
25
|
+
pinned: '',
|
|
26
|
+
latestReply: '',
|
|
27
|
+
};
|
|
28
|
+
this.cancel.emit();
|
|
29
|
+
};
|
|
30
|
+
handleChange = (field, value) => {
|
|
31
|
+
this.data = { ...this.data, [field]: value };
|
|
32
|
+
};
|
|
33
|
+
handleSubmit = () => {
|
|
34
|
+
console.log('Submitted search:', this.data);
|
|
35
|
+
};
|
|
36
|
+
render() {
|
|
37
|
+
const theme = configStore.get('theme');
|
|
38
|
+
const isCreateDialog = this.dialogType === 'create';
|
|
39
|
+
const selectOptions = [
|
|
40
|
+
{ label: 'Option 1', value: '1' },
|
|
41
|
+
{ label: 'Option 2', value: '2' },
|
|
42
|
+
];
|
|
43
|
+
return (h(Host, { key: '327f35aa734095904254dea7896a0eea1c4f5394' }, h("slot", { key: '3894daf12e7eb31bff037dc3609ee5c1fe824df5' }, h("div", { key: '6389782aeddcc50247e2cf54ad803ba003854baf', class: `p-6 z-background-${theme} rounded-lg shadow-lg w-xl xs:w-xs max-h-[80vh] overflow-auto` }, h("h2", { key: '56c05e519987595d0efe66ed4e1686a990da6d22', class: `text-lg font-bold mb-6 z-text-${theme}` }, isCreateDialog ? 'สร้างตัวกรองข้อมูลแบบกำหนดเอง' : 'ค้นหาขั้นสูง'), h("div", { key: '49950d0b3ce4918c5e8d46cf2e285bae37311239', class: "space-y-2" }, isCreateDialog &&
|
|
44
|
+
h(ZInput, { key: 'a2b8cb657e328c0a204be76516267fa2538dcde4', label: '\u0E0A\u0E37\u0E48\u0E2D\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25', placeholder: '\u0E0A\u0E37\u0E48\u0E2D\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25', value: this.data.name, onChange: (val) => this.handleChange('name', val) }), h(ZSelectInput, { key: 'a72dda1b021615884ee4147f011a3b03bc96c08e', label: "\u0E0A\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07", placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E0A\u0E48\u0E2D\u0E07\u0E17\u0E32\u0E07", value: this.data.channel, options: selectOptions, onChange: (val) => this.handleChange('channel', val) }), h(ZInput, { key: '4fdfbdf9135c4e9b87fb5d7cfa3adfd0fb260cd1', label: '\u0E04\u0E49\u0E19\u0E2B\u0E32 (\u0E0A\u0E37\u0E48\u0E2D \u0E2D\u0E35\u0E40\u0E21\u0E25 \u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21)', placeholder: '\u0E04\u0E49\u0E19\u0E2B\u0E32 (\u0E0A\u0E37\u0E48\u0E2D \u0E2D\u0E35\u0E40\u0E21\u0E25 \u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21)', value: this.data.keyword, onChange: (val) => this.handleChange('keyword', val) }), h(ZSelectInput, { key: 'bee7bf12d95fdac1839e026fa8c02a99ebf78bd8', label: "\u0E2A\u0E16\u0E32\u0E19\u0E30", placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E16\u0E32\u0E19\u0E30", value: this.data.status, options: selectOptions, onChange: (val) => this.handleChange('status', val) }), h(ZSelectInput, { key: '9b28409338d6344520c6095a538ff65ac3d62528', label: "\u0E1B\u0E49\u0E32\u0E22\u0E01\u0E33\u0E01\u0E31\u0E1A", placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E1B\u0E49\u0E32\u0E22\u0E01\u0E33\u0E01\u0E31\u0E1A", value: this.data.tag, options: selectOptions, onChange: (val) => this.handleChange('tag', val) }), h(ZSelectInput, { key: 'ffeeaad6e7d3bc42f81b22af57efed6fb812cff0', label: "\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14", placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01", value: this.data.pinned, options: selectOptions, onChange: (val) => this.handleChange('pinned', val) }), h(ZSelectInput, { key: '1ae028f3e838d13fd71ff20dfd92c2f2760327da', label: "\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14", placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01", value: this.data.latestReply, options: selectOptions, onChange: (val) => this.handleChange('latestReply', val) })), h("div", { key: '6c0231539e44b1ef46c348f15c76f3447daab986', class: "flex justify-between items-center mt-6 gap-2" }, h(ZButton, { key: 'ed7d581e1e28a9b8a35ba8e20b7895cf02da038c', label: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01", variant: 'outlined', fullWidth: true, onClick: this.handleCancel }), h(ZButton, { key: '7221d295cd9f2da7e3d50f28ccf01da5ec766b84', label: isCreateDialog ? "บันทึก" : "ค้นหา", fullWidth: true, onClick: this.handleSubmit }))))));
|
|
45
|
+
}
|
|
46
|
+
static get is() { return "dialog-search"; }
|
|
47
|
+
static get originalStyleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["dialog-search.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get styleUrls() {
|
|
53
|
+
return {
|
|
54
|
+
"$": ["dialog-search.css"]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static get properties() {
|
|
58
|
+
return {
|
|
59
|
+
"dialogType": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"attribute": "dialog-type",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "'create' | 'search'",
|
|
65
|
+
"resolved": "\"create\" | \"search\"",
|
|
66
|
+
"references": {}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": false,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": ""
|
|
73
|
+
},
|
|
74
|
+
"getter": false,
|
|
75
|
+
"setter": false,
|
|
76
|
+
"reflect": false,
|
|
77
|
+
"defaultValue": "'create'"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static get states() {
|
|
82
|
+
return {
|
|
83
|
+
"data": {}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
static get events() {
|
|
87
|
+
return [{
|
|
88
|
+
"method": "cancel",
|
|
89
|
+
"name": "cancel",
|
|
90
|
+
"bubbles": true,
|
|
91
|
+
"cancelable": true,
|
|
92
|
+
"composed": true,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": ""
|
|
96
|
+
},
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "void",
|
|
99
|
+
"resolved": "void",
|
|
100
|
+
"references": {}
|
|
101
|
+
}
|
|
102
|
+
}];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=dialog-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-search.js","sourceRoot":"","sources":["../../../src/components/dialog-search/dialog-search.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, EventEmitter, Event, Host, State, h, Prop } from '@stencil/core';\nimport { ZSelectInput } from '../internal-component/z-select-input';\nimport { ZButton } from '../internal-component/z-button';\nimport { ZInput } from '../internal-component/z-input';\nimport { configStore } from '../../store/store';\n\n@Component({\n tag: 'dialog-search',\n styleUrl: 'dialog-search.css',\n})\nexport class DialogSearch {\n @Prop() dialogType: 'create' | 'search' = 'create';\n\n @State() data = {\n name: '',\n channel: '',\n keyword: '',\n status: '',\n tag: '',\n pinned: '',\n latestReply: '',\n };\n\n @Event() cancel: EventEmitter<void>;\n\n handleCancel = () => {\n this.data = {\n name: '',\n channel: '',\n keyword: '',\n status: '',\n tag: '',\n pinned: '',\n latestReply: '',\n }\n this.cancel.emit();\n };\n\n handleChange = (field: keyof typeof this.data, value: string) => {\n this.data = { ...this.data, [field]: value };\n };\n\n handleSubmit = () => {\n console.log('Submitted search:', this.data);\n };\n\n render() {\n const theme = configStore.get('theme');\n const isCreateDialog = this.dialogType === 'create';\n const selectOptions = [\n { label: 'Option 1', value: '1' },\n { label: 'Option 2', value: '2' },\n ];\n\n return (\n <Host>\n <slot>\n <div class={`p-6 z-background-${theme} rounded-lg shadow-lg w-xl xs:w-xs max-h-[80vh] overflow-auto`}>\n <h2 class={`text-lg font-bold mb-6 z-text-${theme}`}>\n {isCreateDialog ? 'สร้างตัวกรองข้อมูลแบบกำหนดเอง' : 'ค้นหาขั้นสูง'}\n </h2>\n\n <div class=\"space-y-2\">\n {isCreateDialog &&\n <ZInput\n label='ชื่อตัวกรองข้อมูล'\n placeholder='ชื่อตัวกรองข้อมูล'\n value={this.data.name}\n onChange={(val) => this.handleChange('name', val)}\n />\n }\n\n <ZSelectInput\n label=\"ช่องทาง\"\n placeholder=\"เลือกช่องทาง\"\n value={this.data.channel}\n options={selectOptions}\n onChange={(val) => this.handleChange('channel', val)}\n />\n\n <ZInput\n label='ค้นหา (ชื่อ อีเมล เบอร์โทร ข้อความ)'\n placeholder='ค้นหา (ชื่อ อีเมล เบอร์โทร ข้อความ)'\n value={this.data.keyword}\n onChange={(val) => this.handleChange('keyword', val)}\n />\n\n <ZSelectInput\n label=\"สถานะ\"\n placeholder=\"เลือกสถานะ\"\n value={this.data.status}\n options={selectOptions}\n onChange={(val) => this.handleChange('status', val)}\n />\n\n <ZSelectInput\n label=\"ป้ายกำกับ\"\n placeholder=\"เลือกป้ายกำกับ\"\n value={this.data.tag}\n options={selectOptions}\n onChange={(val) => this.handleChange('tag', val)}\n />\n\n <ZSelectInput\n label=\"ปักหมุด\"\n placeholder=\"เลือก\"\n value={this.data.pinned}\n options={selectOptions}\n onChange={(val) => this.handleChange('pinned', val)}\n />\n\n <ZSelectInput\n label=\"ตอบกลับล่าสุด\"\n placeholder=\"เลือก\"\n value={this.data.latestReply}\n options={selectOptions}\n onChange={(val) => this.handleChange('latestReply', val)}\n />\n </div>\n\n <div class=\"flex justify-between items-center mt-6 gap-2\">\n <ZButton label=\"ยกเลิก\" variant='outlined' fullWidth onClick={this.handleCancel} />\n <ZButton label={isCreateDialog ? \"บันทึก\" : \"ค้นหา\"} fullWidth onClick={this.handleSubmit} />\n </div>\n </div>\n </slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import { configStore, selectedChatStore } from "../../store/store";
|
|
4
|
+
import { leaveRoom } from "../../utils/socket";
|
|
5
|
+
import { TagOrStatusItem } from "./tag-or-status-item";
|
|
6
|
+
export const ChatItem = ({ item }) => {
|
|
7
|
+
const { id, connection, channel, user, tags, unread_count, last_message, last_message_at, type } = item;
|
|
8
|
+
const platformColor = channel === 'line' ? 'text-green-500' : 'text-blue-500';
|
|
9
|
+
const theme = configStore.get('theme');
|
|
10
|
+
const isSelected = selectedChatStore.get('selectedChat')?.id === id;
|
|
11
|
+
const getLastMessage = () => {
|
|
12
|
+
if (['{image}', '{video}'].includes(last_message)) {
|
|
13
|
+
return (type === 'user' ? user.nickname : 'คุณ') + ' ส่ง' + (last_message === '{image}' ? 'รูปภาพ' : 'วิดีโอ');
|
|
14
|
+
}
|
|
15
|
+
return last_message;
|
|
16
|
+
};
|
|
17
|
+
const handleSelectChatClick = () => {
|
|
18
|
+
const selectedChat = selectedChatStore.get('selectedChat');
|
|
19
|
+
if (selectedChat && selectedChat.id !== item.id) {
|
|
20
|
+
leaveRoom(selectedChat.id);
|
|
21
|
+
}
|
|
22
|
+
selectedChatStore.set('selectedChat', item);
|
|
23
|
+
};
|
|
24
|
+
return (h("div", { class: `relative ${isSelected ? 'bg-pink-100' : `z-background-${theme}`} px-4 py-3 my-1 mx-2 flex items-start space-x-4 shadow-sm cursor-pointer rounded-xl`, onClick: () => handleSelectChatClick() }, h("div", { class: "grid grid-flow-row-dense grid-cols-7 grid-rows-1 min-h-20 w-full" }, h("div", { class: "col-span-2 my-auto mr-1" }, h("img", { src: user.picture_url, alt: "avatar", class: "size-16 rounded-full object-cover" })), h("div", { class: "col-span-4" }, h("div", { class: "flex items-center space-x-1" }, h("img", { src: `https://zwizai-platform.s3.ap-southeast-1.amazonaws.com/zignal-package/${channel}.png`, alt: "agent avatar", class: "size-4 rounded-full" }), h("span", { class: `text-sm ${platformColor}` }, connection.name)), h("div", { class: `font-semibold text-base ${isSelected ? 'text-black' : `z-text-${theme}`}` }, user.name), h("div", { class: "text-sm text-gray-600" }, getLastMessage()), h("div", { class: "flex flex-row gap-1 items-center flex-wrap" }, tags.slice(0, 2).map((tag) => h(TagOrStatusItem, { item: tag })), tags.length > 2 &&
|
|
25
|
+
h("div", { class: "inline-block" }, h("tag-popper", { tags: tags })))), h("div", { class: "col-span-1 text-right flex flex-col justify-between" }, h("div", { class: "text-xs text-gray-500" }, dayjs(last_message_at).isValid() ? dayjs(last_message_at).format('HH:mm') : ''), unread_count > 0 &&
|
|
26
|
+
h("div", null, h("span", { class: "text-xs bg-primary text-white px-2 py-0.5 rounded-full" }, unread_count > 1000 ? '999+' : unread_count)), h("div", { class: "mt-auto ml-auto" }, h("img", { src: `https://zwizai-platform.s3.ap-southeast-1.amazonaws.com/zignal-package/nong-z.png`, alt: "agent avatar", class: "size-5 rounded-full" }))))));
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chat-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-item.js","sourceRoot":"","sources":["../../../src/components/internal-component/chat-item.tsx"],"names":[],"mappings":"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","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport dayjs from 'dayjs';\nimport { configStore, selectedChatStore } from '../../store/store';\nimport { leaveRoom } from '../../utils/socket';\nimport { TagOrStatusItem } from './tag-or-status-item';\n\ninterface ChatItemProps {\n item: ChatItem;\n}\n\nexport const ChatItem: FunctionalComponent<ChatItemProps> = ({ item }) => {\n const { id, connection, channel, user, tags, unread_count, last_message, last_message_at, type } = item;\n const platformColor = channel === 'line' ? 'text-green-500' : 'text-blue-500';\n const theme = configStore.get('theme');\n const isSelected = selectedChatStore.get('selectedChat')?.id === id;\n\n const getLastMessage = () => {\n if (['{image}', '{video}'].includes(last_message)) {\n return (type === 'user' ? user.nickname : 'คุณ') + ' ส่ง' + (last_message === '{image}' ? 'รูปภาพ' : 'วิดีโอ');\n }\n\n return last_message;\n }\n\n const handleSelectChatClick = () => {\n const selectedChat = selectedChatStore.get('selectedChat');\n if (selectedChat && selectedChat.id !== item.id) {\n leaveRoom(selectedChat.id);\n }\n\n selectedChatStore.set('selectedChat', item);\n }\n\n return (\n <div\n class={`relative ${isSelected ? 'bg-pink-100' : `z-background-${theme}`} px-4 py-3 my-1 mx-2 flex items-start space-x-4 shadow-sm cursor-pointer rounded-xl`}\n onClick={() => handleSelectChatClick()}\n >\n {/* {isPinned && (\n <div class=\"absolute top-0 right-0 w-0 h-0 mr-0 border-t-[14px] border-l-[14px] border-t-red-500 border-l-transparent\" />\n )} */}\n\n <div class=\"grid grid-flow-row-dense grid-cols-7 grid-rows-1 min-h-20 w-full\">\n <div class=\"col-span-2 my-auto mr-1\">\n <img\n src={user.picture_url}\n alt=\"avatar\"\n class=\"size-16 rounded-full object-cover\"\n />\n </div>\n <div class=\"col-span-4\">\n <div class=\"flex items-center space-x-1\">\n <img\n src={`https://zwizai-platform.s3.ap-southeast-1.amazonaws.com/zignal-package/${channel}.png`}\n alt=\"agent avatar\"\n class=\"size-4 rounded-full\"\n />\n <span class={`text-sm ${platformColor}`}>\n {connection.name}\n </span>\n </div>\n <div class={`font-semibold text-base ${isSelected ? 'text-black' : `z-text-${theme}`}`}>\n {user.name}\n </div>\n <div class=\"text-sm text-gray-600\">\n {getLastMessage()}\n </div>\n <div class=\"flex flex-row gap-1 items-center flex-wrap\">\n {tags.slice(0, 2).map((tag) => <TagOrStatusItem item={tag} />)}\n {tags.length > 2 &&\n <div class=\"inline-block\">\n <tag-popper tags={tags} />\n </div>\n }\n </div>\n </div>\n <div class=\"col-span-1 text-right flex flex-col justify-between\">\n <div class=\"text-xs text-gray-500\">\n {dayjs(last_message_at).isValid() ? dayjs(last_message_at).format('HH:mm') : ''}\n </div>\n {unread_count > 0 &&\n <div>\n <span class=\"text-xs bg-primary text-white px-2 py-0.5 rounded-full\">\n {unread_count > 1000 ? '999+' : unread_count}\n </span>\n </div>\n }\n <div class=\"mt-auto ml-auto\">\n <img\n src={`https://zwizai-platform.s3.ap-southeast-1.amazonaws.com/zignal-package/nong-z.png`}\n alt=\"agent avatar\"\n class=\"size-5 rounded-full\"\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { icons } from "lucide";
|
|
3
|
+
export const Icon = ({ name, addClass }) => {
|
|
4
|
+
const icon = icons[name];
|
|
5
|
+
if (!icon)
|
|
6
|
+
return null;
|
|
7
|
+
return (h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: addClass ? addClass : 'w-5 h-5' }, icon.map(([tag, attrs]) => h(tag, { ...attrs }))));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/components/internal-component/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAO/B,MAAM,CAAC,MAAM,IAAI,GAAmC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzE,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAEzB,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,OAAO,CACL,WACE,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,kBACR,GAAG,oBACD,OAAO,qBACN,OAAO,EACvB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,IAErC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAC7C,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { h, FunctionalComponent } from '@stencil/core';\nimport { icons } from 'lucide';\n\ninterface IconProps {\n name: string\n addClass?: string\n}\n\nexport const Icon: FunctionalComponent<IconProps> = ({ name, addClass }) => {\n const icon = icons[name];\n\n if (!icon) return null;\n\n return (\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class={addClass ? addClass : 'w-5 h-5'}\n >\n {icon.map(([tag, attrs]) => h(tag, { ...attrs }))}\n </svg>\n );\n};"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { configStore } from "../../store/store";
|
|
3
|
+
import { ZIconButton } from "./z-icon-button";
|
|
4
|
+
export const TagOrStatusItem = ({ item, onDelete }) => {
|
|
5
|
+
const { name, color } = item;
|
|
6
|
+
const theme = configStore.get('theme');
|
|
7
|
+
return (h("span", { class: `inline-flex items-center text-nowrap gap-2 text-xs px-3 py-1.5 rounded-full z-text-${theme}`, style: { backgroundColor: color } }, name, " ", onDelete && h(ZIconButton, { variant: 'none', iconName: 'X', onClick: onDelete, noPadding: true, noPaddingY: true, addClassIcon: 'size-3' })));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=tag-or-status-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-or-status-item.js","sourceRoot":"","sources":["../../../src/components/internal-component/tag-or-status-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAO9C,MAAM,CAAC,MAAM,eAAe,GAA8C,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/F,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAC7B,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAEvC,OAAO,CACL,YAAM,KAAK,EAAE,sFAAsF,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE;QAC1I,IAAI;;QAAG,QAAQ,IAAI,EAAC,WAAW,IAAC,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,QAAC,UAAU,QAAC,YAAY,EAAC,QAAQ,GAAG,CACxH,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { h, FunctionalComponent } from '@stencil/core';\nimport { configStore } from '../../store/store';\nimport { ZIconButton } from './z-icon-button';\n\ninterface TagOrStatusItemProps {\n item: TagOrStatusItem\n onDelete?: () => void\n}\n\nexport const TagOrStatusItem: FunctionalComponent<TagOrStatusItemProps> = ({ item, onDelete }) => {\n const { name, color } = item;\n const theme = configStore.get('theme');\n\n return (\n <span class={`inline-flex items-center text-nowrap gap-2 text-xs px-3 py-1.5 rounded-full z-text-${theme}`} style={{ backgroundColor: color }}>\n {name} {onDelete && <ZIconButton variant='none' iconName='X' onClick={onDelete} noPadding noPaddingY addClassIcon='size-3' />}\n </span>\n );\n};"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const ZButton = ({ id, variant = 'primary', disabled = false, onClick, fullWidth, label, startIcon, endIcon, size = 'medium', ref }) => {
|
|
3
|
+
let styleSize = 'px-3 py-2 text-sm';
|
|
4
|
+
if (size === 'small') {
|
|
5
|
+
styleSize = 'px-2 py-1 text-xs';
|
|
6
|
+
}
|
|
7
|
+
if (size === 'large') {
|
|
8
|
+
styleSize = 'px-4 py-3 text-lg';
|
|
9
|
+
}
|
|
10
|
+
const base = `inline-flex items-center justify-center ${styleSize} rounded-full font-medium focus:outline-none transition cursor-pointer ${fullWidth ? 'w-full' : ''}`;
|
|
11
|
+
const primary = 'bg-primary text-white hover:brightness-110';
|
|
12
|
+
const outlined = 'border border-primary text-primary hover:brightness-110';
|
|
13
|
+
const text = 'text-primary hover:brightness-110';
|
|
14
|
+
const disabledStyle = 'opacity-50 cursor-not-allowed';
|
|
15
|
+
const classList = [
|
|
16
|
+
base,
|
|
17
|
+
variant === 'primary'
|
|
18
|
+
? primary
|
|
19
|
+
: (variant === 'outlined' ? outlined : text),
|
|
20
|
+
disabled ? disabledStyle : '',
|
|
21
|
+
].join(' ');
|
|
22
|
+
return (h("button", { id: id, ref: ref, class: classList, disabled: disabled, onClick: (e) => !disabled && onClick?.(e) }, startIcon, h("span", { class: "mx-2" }, label), endIcon));
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=z-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z-button.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAO,MAAM,eAAe,CAAC;AAe5D,MAAM,CAAC,MAAM,OAAO,GAAsC,CAAC,EACzD,EAAE,EACF,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,KAAK,EAChB,OAAO,EACP,SAAS,EACT,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,GAAG,QAAQ,EACf,GAAG,EACJ,EAAE,EAAE;IACH,IAAI,SAAS,GAAG,mBAAmB,CAAC;IACpC,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QACrB,SAAS,GAAG,mBAAmB,CAAC;IAClC,CAAC;IACD,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QACrB,SAAS,GAAG,mBAAmB,CAAC;IAClC,CAAC;IAED,MAAM,IAAI,GAAG,2CAA2C,SAAS,0EAA0E,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACvK,MAAM,OAAO,GAAG,4CAA4C,CAAC;IAC7D,MAAM,QAAQ,GAAG,yDAAyD,CAAC;IAC3E,MAAM,IAAI,GAAG,mCAAmC,CAAC;IACjD,MAAM,aAAa,GAAG,+BAA+B,CAAC;IAEtD,MAAM,SAAS,GAAG;QAChB,IAAI;QACJ,OAAO,KAAK,SAAS;YACnB,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;QAC9C,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE;KAC9B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEZ,OAAO,CACL,cACE,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC;QAExC,SAAS;QACV,YAAM,KAAK,EAAC,MAAM,IAAE,KAAK,CAAQ;QAChC,OAAO,CACD,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h, JSX } from '@stencil/core';\n\ninterface ZButtonProps {\n id?: string;\n variant?: 'primary' | 'outlined' | 'text';\n disabled?: boolean;\n onClick?: (e: MouseEvent) => void;\n fullWidth?: boolean;\n label?: JSX.Element;\n startIcon?: JSX.Element;\n endIcon?: JSX.Element;\n size?: 'small' | 'medium' | 'large';\n ref?: (elm?: HTMLButtonElement) => void;\n}\n\nexport const ZButton: FunctionalComponent<ZButtonProps> = ({\n id,\n variant = 'primary',\n disabled = false,\n onClick,\n fullWidth,\n label,\n startIcon,\n endIcon,\n size = 'medium',\n ref\n}) => {\n let styleSize = 'px-3 py-2 text-sm';\n if (size === 'small') {\n styleSize = 'px-2 py-1 text-xs';\n }\n if (size === 'large') {\n styleSize = 'px-4 py-3 text-lg';\n }\n\n const base = `inline-flex items-center justify-center ${styleSize} rounded-full font-medium focus:outline-none transition cursor-pointer ${fullWidth ? 'w-full' : ''}`;\n const primary = 'bg-primary text-white hover:brightness-110';\n const outlined = 'border border-primary text-primary hover:brightness-110';\n const text = 'text-primary hover:brightness-110';\n const disabledStyle = 'opacity-50 cursor-not-allowed';\n\n const classList = [\n base,\n variant === 'primary'\n ? primary\n : (variant === 'outlined' ? outlined : text),\n disabled ? disabledStyle : '',\n ].join(' ');\n\n return (\n <button\n id={id}\n ref={ref}\n class={classList}\n disabled={disabled}\n onClick={(e) => !disabled && onClick?.(e)}\n >\n {startIcon}\n <span class=\"mx-2\">{label}</span>\n {endIcon}\n </button>\n );\n};\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { Icon } from "./icon";
|
|
3
|
+
import { configStore } from "../../store/store";
|
|
4
|
+
export const ZIconButton = ({ variant = 'primary', disabled = false, onClick, iconName, noPadding, noPaddingY, addClassIcon, ref }) => {
|
|
5
|
+
const theme = configStore.get('theme');
|
|
6
|
+
const base = `inline-flex items-center justify-center px-${noPadding ? 0 : 2} py-${noPaddingY ? 0 : 2} rounded-full text-sm font-medium focus:outline-none transition cursor-pointer`;
|
|
7
|
+
const primary = 'bg-primary text-white hover:brightness-110';
|
|
8
|
+
const outlined = 'border border-primary text-primary hover:brightness-110';
|
|
9
|
+
const text = 'text-primary hover:brightness-110';
|
|
10
|
+
const none = `hover:brightness-110 z-text-${theme}`;
|
|
11
|
+
const disabledStyle = 'opacity-50 cursor-not-allowed';
|
|
12
|
+
const classList = [
|
|
13
|
+
base,
|
|
14
|
+
variant === 'primary'
|
|
15
|
+
? primary
|
|
16
|
+
: (variant === 'outlined'
|
|
17
|
+
? outlined
|
|
18
|
+
: (variant === 'text' ? text : none)),
|
|
19
|
+
disabled ? disabledStyle : '',
|
|
20
|
+
].join(' ');
|
|
21
|
+
return (h("button", { ref: ref, class: classList, disabled: disabled, onClick: (e) => !disabled && onClick?.(e) }, h(Icon, { name: iconName, addClass: addClassIcon })));
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=z-icon-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z-icon-button.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,MAAM,CAAC,MAAM,WAAW,GAA0C,CAAC,EACjE,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,KAAK,EAChB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,EACZ,GAAG,EACJ,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,MAAM,IAAI,GAAG,8CAA8C,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gFAAgF,CAAC;IACtL,MAAM,OAAO,GAAG,4CAA4C,CAAC;IAC7D,MAAM,QAAQ,GAAG,yDAAyD,CAAC;IAC3E,MAAM,IAAI,GAAG,mCAAmC,CAAC;IACjD,MAAM,IAAI,GAAG,+BAA+B,KAAK,EAAE,CAAC;IACpD,MAAM,aAAa,GAAG,+BAA+B,CAAC;IAEtD,MAAM,SAAS,GAAG;QAChB,IAAI;QACJ,OAAO,KAAK,SAAS;YACnB,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,CAAC,OAAO,KAAK,UAAU;gBACvB,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACzC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE;KAC9B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEZ,OAAO,CACL,cACE,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC;QAEzC,EAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,GAAI,CACzC,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { Icon } from './icon';\nimport { configStore } from '../../store/store';\n\ninterface ZIconButtonProps {\n variant?: 'primary' | 'outlined' | 'text' | 'none';\n disabled?: boolean;\n onClick?: (e: MouseEvent) => void;\n iconName?: string;\n noPadding?: boolean\n noPaddingY?: boolean\n addClassIcon?: string\n ref?: (elm?: HTMLButtonElement) => void\n}\n\nexport const ZIconButton: FunctionalComponent<ZIconButtonProps> = ({\n variant = 'primary',\n disabled = false,\n onClick,\n iconName,\n noPadding,\n noPaddingY,\n addClassIcon,\n ref\n}) => {\n const theme = configStore.get('theme');\n const base = `inline-flex items-center justify-center px-${noPadding ? 0 : 2} py-${noPaddingY ? 0 : 2} rounded-full text-sm font-medium focus:outline-none transition cursor-pointer`;\n const primary = 'bg-primary text-white hover:brightness-110';\n const outlined = 'border border-primary text-primary hover:brightness-110';\n const text = 'text-primary hover:brightness-110';\n const none = `hover:brightness-110 z-text-${theme}`;\n const disabledStyle = 'opacity-50 cursor-not-allowed';\n\n const classList = [\n base,\n variant === 'primary'\n ? primary\n : (variant === 'outlined'\n ? outlined\n : (variant === 'text' ? text : none)),\n disabled ? disabledStyle : '',\n ].join(' ');\n\n return (\n <button\n ref={ref}\n class={classList}\n disabled={disabled}\n onClick={(e) => !disabled && onClick?.(e)}\n >\n <Icon name={iconName} addClass={addClassIcon} />\n </button>\n );\n};\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { configStore } from "../../store/store";
|
|
3
|
+
export const ZInputArea = ({ id, label, placeholder = '', value = '', onChange, autoFocus, rows = 3, error }) => {
|
|
4
|
+
const theme = configStore.get('theme');
|
|
5
|
+
return (h("div", { class: "mb-4" }, h("label", { class: `block text-sm font-medium mb-1 z-text-${theme}` }, label), h("textarea", { id: id, placeholder: placeholder, class: `w-full border z-border-${theme} text-sm px-4 py-2 rounded-lg ring-primary focus:outline-none focus:border-primary z-paper-${theme} z-text-${theme}`, value: value, onInput: (e) => onChange?.(e.target.value), autoFocus: autoFocus, rows: rows }), error &&
|
|
6
|
+
h("p", { class: "text-red-500 text-xs mt-1" }, error)));
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=z-input-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z-input-area.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-input-area.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,MAAM,CAAC,MAAM,UAAU,GAAyC,CAAC,EAC/D,EAAE,EACF,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,CAAC,EACR,KAAK,EACN,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM;QACf,aAAO,KAAK,EAAE,yCAAyC,KAAK,EAAE,IAAG,KAAK,CAAS;QAC/E,gBACE,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,0BAA0B,KAAK,8FAA8F,KAAK,WAAW,KAAK,EAAE,EAC3J,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC/C,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,GACV;QACD,KAAK;YACJ,SAAG,KAAK,EAAC,2BAA2B,IACjC,KAAK,CACJ,CAEF,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { configStore } from '../../store/store';\n\ninterface ZInputAreaProps {\n id?: string;\n label: string;\n placeholder?: string;\n value?: string;\n onChange?: (value: string) => void;\n autoFocus?: boolean;\n rows?: number;\n error?: string;\n}\n\nexport const ZInputArea: FunctionalComponent<ZInputAreaProps> = ({\n id,\n label,\n placeholder = '',\n value = '',\n onChange,\n autoFocus,\n rows = 3,\n error\n}) => {\n const theme = configStore.get('theme');\n return (\n <div class=\"mb-4\">\n <label class={`block text-sm font-medium mb-1 z-text-${theme}`}>{label}</label>\n <textarea\n id={id}\n placeholder={placeholder}\n class={`w-full border z-border-${theme} text-sm px-4 py-2 rounded-lg ring-primary focus:outline-none focus:border-primary z-paper-${theme} z-text-${theme}`}\n value={value}\n onInput={(e: any) => onChange?.(e.target.value)}\n autoFocus={autoFocus}\n rows={rows}\n />\n {error &&\n <p class=\"text-red-500 text-xs mt-1\">\n {error}\n </p>\n }\n </div>\n );\n};\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { configStore } from "../../store/store";
|
|
3
|
+
export const ZInput = ({ id, label, placeholder = '', value = '', onChange, autoFocus, type = 'text', error }) => {
|
|
4
|
+
const theme = configStore.get('theme');
|
|
5
|
+
return (h("div", { class: "mb-4" }, h("label", { class: `block text-sm font-medium mb-1 z-text-${theme}` }, label), h("input", { id: id, type: type, placeholder: placeholder, class: `w-full border z-border-${theme} text-sm px-4 py-2 rounded-full ring-primary focus:outline-none focus:border-primary z-paper-${theme} z-text-${theme}`, value: value, onInput: (e) => onChange?.(e.target.value), autoFocus: autoFocus }), error &&
|
|
6
|
+
h("p", { class: "text-red-500 text-xs mt-1" }, error)));
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=z-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z-input.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,MAAM,CAAC,MAAM,MAAM,GAAqC,CAAC,EACvD,EAAE,EACF,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,MAAM,EACb,KAAK,EACN,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM;QACf,aAAO,KAAK,EAAE,yCAAyC,KAAK,EAAE,IAAG,KAAK,CAAS;QAC/E,aACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,0BAA0B,KAAK,gGAAgG,KAAK,WAAW,KAAK,EAAE,EAC7J,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC/C,SAAS,EAAE,SAAS,GACpB;QACD,KAAK;YACJ,SAAG,KAAK,EAAC,2BAA2B,IACjC,KAAK,CACJ,CAEF,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { configStore } from '../../store/store';\n\ninterface ZInputProps {\n id?: string;\n label: string;\n placeholder?: string;\n value?: string;\n onChange?: (value: string) => void;\n autoFocus?: boolean;\n type?: string;\n error?: string;\n}\n\nexport const ZInput: FunctionalComponent<ZInputProps> = ({\n id,\n label,\n placeholder = '',\n value = '',\n onChange,\n autoFocus,\n type = 'text',\n error\n}) => {\n const theme = configStore.get('theme');\n return (\n <div class=\"mb-4\">\n <label class={`block text-sm font-medium mb-1 z-text-${theme}`}>{label}</label>\n <input\n id={id}\n type={type}\n placeholder={placeholder}\n class={`w-full border z-border-${theme} text-sm px-4 py-2 rounded-full ring-primary focus:outline-none focus:border-primary z-paper-${theme} z-text-${theme}`}\n value={value}\n onInput={(e: any) => onChange?.(e.target.value)}\n autoFocus={autoFocus}\n />\n {error &&\n <p class=\"text-red-500 text-xs mt-1\">\n {error}\n </p>\n }\n </div>\n );\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { configStore } from "../../store/store";
|
|
3
|
+
export const ZSelectInput = ({ label, placeholder = '', options, onChange, }) => {
|
|
4
|
+
const theme = configStore.get('theme');
|
|
5
|
+
return (h("div", { class: "mb-4" }, h("label", { class: `block text-sm font-medium mb-1 z-text-${theme}` }, label), h("select", { class: `w-full border z-border-${theme} text-sm px-4 py-2 rounded-full ring-primary focus:outline-none focus:border-primary z-paper-${theme} z-text-${theme}`,
|
|
6
|
+
// value={value}
|
|
7
|
+
onInput: (e) => onChange?.(e.target.value) }, h("option", { value: "", disabled: true, hidden: true }, placeholder), options.map(opt => (h("option", { value: opt.value }, opt.label))))));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=z-select-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z-select-input.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-select-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD,MAAM,CAAC,MAAM,YAAY,GAA2C,CAAC,EACnE,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,OAAO,EACP,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM;QACf,aAAO,KAAK,EAAE,yCAAyC,KAAK,EAAE,IAAG,KAAK,CAAS;QAC/E,cACE,KAAK,EAAE,0BAA0B,KAAK,gGAAgG,KAAK,WAAW,KAAK,EAAE;YAC7J,gBAAgB;YAChB,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;YAE/C,cAAQ,KAAK,EAAC,EAAE,EAAC,QAAQ,QAAC,MAAM,UAC7B,WAAW,CACL;YACR,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAClB,cAAQ,KAAK,EAAE,GAAG,CAAC,KAAK,IAAG,GAAG,CAAC,KAAK,CAAU,CAC/C,CAAC,CACK,CACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { configStore } from '../../store/store';\n\ninterface ZSelectInputProps {\n label: string;\n placeholder?: string;\n value?: string;\n options: { label: string; value: string }[];\n onChange?: (value: string) => void;\n}\n\nexport const ZSelectInput: FunctionalComponent<ZSelectInputProps> = ({\n label,\n placeholder = '',\n options,\n onChange,\n}) => {\n const theme = configStore.get('theme');\n return (\n <div class=\"mb-4\">\n <label class={`block text-sm font-medium mb-1 z-text-${theme}`}>{label}</label>\n <select\n class={`w-full border z-border-${theme} text-sm px-4 py-2 rounded-full ring-primary focus:outline-none focus:border-primary z-paper-${theme} z-text-${theme}`}\n // value={value}\n onInput={(e: any) => onChange?.(e.target.value)}\n >\n <option value=\"\" disabled hidden>\n {placeholder}\n </option>\n {options.map(opt => (\n <option value={opt.value}>{opt.label}</option>\n ))}\n </select>\n </div>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base{*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-drop-shadow-alpha:100%;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:host,:root{--container-lg:32rem;--font-weight-bold:700;--container-xl:36rem;--color-red-500:oklch(63.7% .237 25.331);--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-100:oklch(94.8% .028 342.258);--color-gray-600:oklch(44.6% .03 256.802);--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--font-weight-semibold:600;--radius-lg:.5rem;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-yellow-300:oklch(90.5% .182 98.111);--text-xs:.75rem;--text-xs--line-height:1.33333;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:1.42857;--radius-md:.375rem;--default-font-family:"Kanit",var(--default-font);--default-mono-font-family:var(--font-mono);--default-font:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-primary-dark:#b50f30;--color-secondary-dark:#fff;--color-background-dark:#23292d}}@layer base{::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-meridiem-field{padding-block:0;padding-bottom:0;padding-top:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-color:oklch(55.1% .027 264.364);border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);border-color:oklch(54.6% .245 262.881);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;color:oklch(54.6% .245 262.881);print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-color:oklch(55.1% .027 264.364);border-width:1px;display:inline-block;flex-shrink:0;height:1rem;padding:0;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.top-1{top:calc(var(--spacing)*1)}.right-1{right:calc(var(--spacing)*1)}.z-\[99\]{z-index:99}.flex{display:flex}.w-full{width:100%}.min-w-\[280px\]{min-width:280px}.flex-1{flex:1}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.text-\[10px\]{font-size:10px}.text-\[gray\]{color:gray}.opacity-10{opacity:.1}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.scroll-container::-webkit-scrollbar{background:0 0;height:8px;width:8px}.scroll-container:active::-webkit-scrollbar,.scroll-container:hover::-webkit-scrollbar{background:#0000001a}.scroll-container:active::-webkit-scrollbar-thumb,.scroll-container:hover::-webkit-scrollbar-thumb{background:#0006;border-radius:4px}.z-text-light{color:var(--color-black)}.z-text-dark{color:var(--color-white)}.z-text-primary-light{color:var(--color-primary)}.z-text-primary-dark{color:var(--color-primary-dark)}.z-text-gray-light{color:var(--color-gray-500)}.z-text-gray-dark{color:var(--color-gray-300)}.z-border-light{border-color:var(--color-black)}.z-border-dark{border-color:var(--color-white)}.z-border-primary-light{border-color:var(--color-primary)}.z-border-primary-dark{border-color:var(--color-primary-dark)}.z-border-divider-light{border-color:var(--color-gray-400)}.z-border-divider-dark{border-color:var(--color-gray-300)}.z-search-input-background-light{background-color:var(--color-gray-200)}.z-search-input-background-dark{background-color:var(--color-gray-500)}.z-chat-input-background-light{background-color:var(--color-white)}.z-chat-input-background-dark{background-color:var(--color-gray-700)}.z-placeholder-light::placeholder{color:var(--color-gray-500)}.z-placeholder-dark::placeholder{color:var(--color-gray-200)}.z-background-light{background-color:var(--color-background)}.z-background-dark{background-color:var(--color-background-dark)}.z-paper-light{background-color:var(--color-gray-100)}.z-paper-dark{background-color:var(--color-gray-700)}.z-width-100{width:100%}.z-width-75{width:75%}.z-width-50{width:50%}.z-width-25{width:25%}.z-width-0{width:0}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{.my-auto{margin-block:auto}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.h-4{height:calc(var(--spacing)*4)}.h-\[60px\]{height:60px}.w-4{width:calc(var(--spacing)*4)}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:calc(var(--spacing)*1)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*1*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*1*var(--tw-space-x-reverse))}.rounded-full{border-radius:3.40282e+38px}.object-cover{object-fit:cover}.px-2{padding-inline:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-blue-500{color:var(--color-blue-500)}.text-green-500{color:var(--color-green-500)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-auto{margin-bottom:auto}.ml-2{margin-left:calc(var(--spacing)*2)}.border-none{--tw-border-style:none;border-style:none}.bg-pink-100{background-color:var(--color-pink-100)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-black{color:var(--color-black)}.text-gray-500{color:var(--color-gray-500)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-primary{--tw-ring-color:var(--color-primary)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.max-h-\[80vh\]{max-height:80vh}.w-xl{width:var(--container-xl)}.gap-2{gap:calc(var(--spacing)*2)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.rounded-lg{border-radius:var(--radius-lg)}.p-6{padding:calc(var(--spacing)*6)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.top-0\.5{top:calc(var(--spacing)*.5)}.right-0\.5{right:calc(var(--spacing)*.5)}.m-auto{margin:auto}.w-lg{width:var(--container-lg)}.justify-center{justify-content:center}.object-contain{object-fit:contain}.pt-8{padding-top:calc(var(--spacing)*8)}.mx-auto{margin-inline:auto}.mb-10{margin-bottom:calc(var(--spacing)*10)}.grid{display:grid}.h-18{height:calc(var(--spacing)*18)}.w-18{width:calc(var(--spacing)*18)}.place-content-center{place-content:center}.p-4{padding:calc(var(--spacing)*4)}.text-center{text-align:center}.text-gray-400{color:var(--color-gray-400)}.text-primary{color:var(--color-primary)}.right-0{right:calc(var(--spacing)*0)}.bottom-\[40px\]{bottom:40px}.left-0{left:calc(var(--spacing)*0)}.z-50{z-index:50}.mt-2{margin-top:calc(var(--spacing)*2)}.w-32{width:calc(var(--spacing)*32)}.cursor-pointer{cursor:pointer}.rounded-md{border-radius:var(--radius-md)}.fixed{position:fixed}.inset-0{inset:calc(var(--spacing)*0)}.size-42{height:calc(var(--spacing)*42);width:calc(var(--spacing)*42)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-br-\[0\]{border-bottom-right-radius:0}.rounded-bl-\[0\]{border-bottom-left-radius:0}.bg-black\/40{background-color:#0006}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-gray-200{background-color:var(--color-gray-200)}.bg-primary{background-color:var(--color-primary)}.p-2{padding:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-5{padding-bottom:calc(var(--spacing)*5)}.text-white{color:var(--color-white)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.right-full{right:100%}.-bottom-2{bottom:calc(var(--spacing)*-2)}.left-full{left:100%}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-\[-0\.75rem\]{margin-bottom:-.75rem}.h-6{height:calc(var(--spacing)*6)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.bg-yellow-300{background-color:var(--color-yellow-300)}.text-left{text-align:left}.text-right{text-align:right}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.mr-1{margin-right:calc(var(--spacing)*1)}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.min-h-20{min-height:calc(var(--spacing)*20)}.grid-flow-row-dense{grid-auto-flow:dense}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-baseline-last{align-items:last baseline}.gap-y-1{row-gap:calc(var(--spacing)*1)}.border-b-\[0\.5px\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.pt-0{padding-top:calc(var(--spacing)*0)}.whitespace-pre-line{white-space:pre-line}.capitalize{text-transform:capitalize}.top-1\/2{top:50%}.right-1\.25{right:calc(var(--spacing)*1.25)}.max-w-xl{max-width:var(--container-xl)}.-translate-y-1\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.mt-auto{margin-top:auto}.hidden{display:none}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{} /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities; /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{}@layer components,utilities;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{:where(.space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*8*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*8*var(--tw-space-x-reverse))}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-transparent{border-color:#0000}.py-4{padding-block:calc(var(--spacing)*4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.w-52{width:calc(var(--spacing)*52)}.top-0{top:calc(var(--spacing)*0)}.col-span-4{grid-column:span 4/span 4}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-1{margin-block:calc(var(--spacing)*1)}.mr-0{margin-right:calc(var(--spacing)*0)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.h-0{height:calc(var(--spacing)*0)}.h-5{height:calc(var(--spacing)*5)}.w-0{width:calc(var(--spacing)*0)}.w-5{width:calc(var(--spacing)*5)}.cursor-not-allowed{cursor:not-allowed}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.items-start{align-items:flex-start}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@layer utilities{:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.border{border-style:var(--tw-border-style);border-width:1px}.border-t-\[14px\]{border-top-style:var(--tw-border-style);border-top-width:14px}.border-l-\[14px\]{border-left-style:var(--tw-border-style);border-left-width:14px}.border-primary{border-color:var(--color-primary)}.border-t-red-500{border-top-color:var(--color-red-500)}.border-l-transparent{border-left-color:#0000}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.text-nowrap{text-wrap:nowrap}.text-gray-600{color:var(--color-gray-600)}.text-red-500{color:var(--color-red-500)}.opacity-50{opacity:.5}.transition{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.focus\:border-primary:focus{border-color:var(--color-primary)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;:host{display:block}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}}@media (hover:hover){.hover\:opacity-100:hover{opacity:1}.hover\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}@media screen and (min-width:0){.z-max-height{height:calc(100vh - 56px)}}@media screen and (min-width:600px){.z-max-height{height:calc(100vh - 64px)}}
|