@nectary/components 0.27.0 → 0.28.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/accordion-item/index.d.ts +1 -24
- package/accordion-item/index.js +1 -1
- package/accordion-item/types.d.ts +23 -0
- package/accordion-item/types.js +1 -0
- package/accordion-item/utils.d.ts +1 -0
- package/accordion-item/utils.js +1 -0
- package/action-menu/index.d.ts +29 -0
- package/action-menu/index.js +274 -0
- package/action-menu-option/index.d.ts +11 -0
- package/action-menu-option/index.js +95 -0
- package/action-menu-option/types.d.ts +17 -0
- package/action-menu-option/types.js +1 -0
- package/button/index.js +1 -1
- package/chat-block/index.d.ts +1 -1
- package/chat-bubble/index.d.ts +1 -15
- package/chat-bubble/index.js +1 -2
- package/chat-bubble/types.d.ts +13 -0
- package/chat-bubble/types.js +1 -0
- package/chat-bubble/utils.d.ts +1 -0
- package/chat-bubble/utils.js +2 -1
- package/dropdown/index.d.ts +2 -27
- package/dropdown/index.js +2 -1
- package/dropdown/types.d.ts +25 -0
- package/dropdown/types.js +1 -0
- package/dropdown-checkbox-option/index.d.ts +1 -14
- package/dropdown-checkbox-option/types.d.ts +14 -0
- package/dropdown-checkbox-option/types.js +1 -0
- package/dropdown-radio-option/index.d.ts +1 -14
- package/dropdown-radio-option/types.d.ts +14 -0
- package/dropdown-radio-option/types.js +1 -0
- package/dropdown-text-option/index.d.ts +1 -15
- package/dropdown-text-option/types.d.ts +15 -0
- package/dropdown-text-option/types.js +1 -0
- package/grid/index.d.ts +0 -1
- package/grid/index.js +0 -1
- package/grid-item/index.d.ts +3 -15
- package/grid-item/types.d.ts +13 -0
- package/grid-item/types.js +1 -0
- package/help-tooltip/index.d.ts +1 -1
- package/icons/access-alarm/index.d.ts +11 -0
- package/icons/access-alarm/index.js +4 -0
- package/icons/access-alarms/index.d.ts +11 -0
- package/icons/access-alarms/index.js +4 -0
- package/icons/ad-units/index.d.ts +11 -0
- package/icons/ad-units/index.js +4 -0
- package/icons/add-alarm/index.d.ts +11 -0
- package/icons/add-alarm/index.js +4 -0
- package/icons/add-ic-call/index.d.ts +11 -0
- package/icons/add-ic-call/index.js +4 -0
- package/icons/add-to-home-screen/index.d.ts +11 -0
- package/icons/add-to-home-screen/index.js +4 -0
- package/icons/admin-panel-settings/index.js +1 -1
- package/icons/airplanemode-active/index.d.ts +11 -0
- package/icons/airplanemode-active/index.js +4 -0
- package/icons/airplanemode-inactive/index.d.ts +11 -0
- package/icons/airplanemode-inactive/index.js +4 -0
- package/icons/alternate-email/index.d.ts +11 -0
- package/icons/alternate-email/index.js +4 -0
- package/icons/app-blocking/index.js +1 -1
- package/icons/arrow-left/index.js +1 -1
- package/icons/attach-email/index.js +1 -1
- package/icons/attribution/index.js +1 -1
- package/icons/backup-table/index.js +1 -1
- package/icons/battery-alert/index.d.ts +11 -0
- package/icons/battery-alert/index.js +4 -0
- package/icons/battery-charging-full/index.d.ts +11 -0
- package/icons/battery-charging-full/index.js +4 -0
- package/icons/battery-full/index.d.ts +11 -0
- package/icons/battery-full/index.js +4 -0
- package/icons/battery-std/index.d.ts +11 -0
- package/icons/battery-std/index.js +4 -0
- package/icons/battery-unknown/index.d.ts +11 -0
- package/icons/battery-unknown/index.js +4 -0
- package/icons/biotech/index.js +1 -1
- package/icons/bluetooth/index.d.ts +11 -0
- package/icons/bluetooth/index.js +4 -0
- package/icons/bluetooth-connected/index.d.ts +11 -0
- package/icons/bluetooth-connected/index.js +4 -0
- package/icons/bluetooth-disabled/index.d.ts +11 -0
- package/icons/bluetooth-disabled/index.js +4 -0
- package/icons/bluetooth-searching/index.d.ts +11 -0
- package/icons/bluetooth-searching/index.js +4 -0
- package/icons/brightness-auto/index.d.ts +11 -0
- package/icons/brightness-auto/index.js +4 -0
- package/icons/brightness-high/index.d.ts +11 -0
- package/icons/brightness-high/index.js +4 -0
- package/icons/brightness-low/index.d.ts +11 -0
- package/icons/brightness-low/index.js +4 -0
- package/icons/brightness-medium/index.d.ts +11 -0
- package/icons/brightness-medium/index.js +4 -0
- package/icons/business/index.d.ts +11 -0
- package/icons/business/index.js +4 -0
- package/icons/call/index.d.ts +11 -0
- package/icons/call/index.js +4 -0
- package/icons/call-end/index.d.ts +11 -0
- package/icons/call-end/index.js +4 -0
- package/icons/call-made/index.d.ts +11 -0
- package/icons/call-made/index.js +4 -0
- package/icons/call-merge/index.d.ts +11 -0
- package/icons/call-merge/index.js +4 -0
- package/icons/call-missed/index.d.ts +11 -0
- package/icons/call-missed/index.js +4 -0
- package/icons/call-missed-outgoing/index.d.ts +11 -0
- package/icons/call-missed-outgoing/index.js +4 -0
- package/icons/call-received/index.d.ts +11 -0
- package/icons/call-received/index.js +4 -0
- package/icons/call-split/index.d.ts +11 -0
- package/icons/call-split/index.js +4 -0
- package/icons/cancel-presentation/index.d.ts +11 -0
- package/icons/cancel-presentation/index.js +4 -0
- package/icons/chat-bubble/index.d.ts +11 -0
- package/icons/chat-bubble/index.js +4 -0
- package/icons/clear-all/index.d.ts +11 -0
- package/icons/clear-all/index.js +4 -0
- package/icons/contact-mail/index.d.ts +11 -0
- package/icons/contact-mail/index.js +4 -0
- package/icons/contact-phone/index.d.ts +11 -0
- package/icons/contact-phone/index.js +4 -0
- package/icons/contacts/index.d.ts +11 -0
- package/icons/contacts/index.js +4 -0
- package/icons/data-usage/index.d.ts +11 -0
- package/icons/data-usage/index.js +4 -0
- package/icons/desktop-access-disabled/index.d.ts +11 -0
- package/icons/desktop-access-disabled/index.js +4 -0
- package/icons/developer-mode/index.d.ts +11 -0
- package/icons/developer-mode/index.js +4 -0
- package/icons/devices/index.d.ts +11 -0
- package/icons/devices/index.js +4 -0
- package/icons/dialer-sip/index.d.ts +11 -0
- package/icons/dialer-sip/index.js +4 -0
- package/icons/dialpad/index.d.ts +11 -0
- package/icons/dialpad/index.js +4 -0
- package/icons/domain-disabled/index.d.ts +11 -0
- package/icons/domain-disabled/index.js +4 -0
- package/icons/domain-verification/index.d.ts +11 -0
- package/icons/domain-verification/index.js +4 -0
- package/icons/double-arrow/index.js +1 -1
- package/icons/duo/index.d.ts +11 -0
- package/icons/duo/index.js +4 -0
- package/icons/dvr/index.d.ts +11 -0
- package/icons/dvr/index.js +4 -0
- package/icons/dynamic-feed/index.js +1 -1
- package/icons/email/index.d.ts +11 -0
- package/icons/email/index.js +4 -0
- package/icons/forward-to-inbox/index.d.ts +11 -0
- package/icons/forward-to-inbox/index.js +4 -0
- package/icons/gps-fixed/index.d.ts +11 -0
- package/icons/gps-fixed/index.js +4 -0
- package/icons/gps-not-fixed/index.d.ts +11 -0
- package/icons/gps-not-fixed/index.js +4 -0
- package/icons/gps-off/index.d.ts +11 -0
- package/icons/gps-off/index.js +4 -0
- package/icons/graphic-eq/index.d.ts +11 -0
- package/icons/graphic-eq/index.js +4 -0
- package/icons/home-work/index.js +1 -1
- package/icons/hourglass-bottom/index.d.ts +11 -0
- package/icons/hourglass-bottom/index.js +4 -0
- package/icons/hourglass-top/index.d.ts +11 -0
- package/icons/hourglass-top/index.js +4 -0
- package/icons/import-contacts/index.d.ts +11 -0
- package/icons/import-contacts/index.js +4 -0
- package/icons/import-export/index.d.ts +11 -0
- package/icons/import-export/index.js +4 -0
- package/icons/insights/index.js +1 -1
- package/icons/invert-colors-off/index.d.ts +11 -0
- package/icons/invert-colors-off/index.js +4 -0
- package/icons/list-alt/index.d.ts +11 -0
- package/icons/list-alt/index.js +4 -0
- package/icons/live-help/index.d.ts +11 -0
- package/icons/live-help/index.js +4 -0
- package/icons/location-disabled/index.d.ts +11 -0
- package/icons/location-disabled/index.js +4 -0
- package/icons/location-off/index.d.ts +11 -0
- package/icons/location-off/index.js +4 -0
- package/icons/location-on/index.d.ts +11 -0
- package/icons/location-on/index.js +4 -0
- package/icons/location-searching/index.d.ts +11 -0
- package/icons/location-searching/index.js +4 -0
- package/icons/logout/index.js +1 -1
- package/icons/mail-outline/index.d.ts +11 -0
- package/icons/mail-outline/index.js +4 -0
- package/icons/mark-email-read/index.d.ts +11 -0
- package/icons/mark-email-read/index.js +4 -0
- package/icons/mark-email-unread/index.d.ts +11 -0
- package/icons/mark-email-unread/index.js +4 -0
- package/icons/message/index.d.ts +11 -0
- package/icons/message/index.js +4 -0
- package/icons/mobile-friendly/index.d.ts +11 -0
- package/icons/mobile-friendly/index.js +4 -0
- package/icons/mobile-off/index.d.ts +11 -0
- package/icons/mobile-off/index.js +4 -0
- package/icons/mobile-screen-share/index.d.ts +11 -0
- package/icons/mobile-screen-share/index.js +4 -0
- package/icons/more-time/index.js +1 -1
- package/icons/nat/index.d.ts +11 -0
- package/icons/nat/index.js +4 -0
- package/icons/nfc/index.d.ts +11 -0
- package/icons/nfc/index.js +4 -0
- package/icons/no-sim/index.d.ts +11 -0
- package/icons/no-sim/index.js +4 -0
- package/icons/pause-presentation/index.d.ts +11 -0
- package/icons/pause-presentation/index.js +4 -0
- package/icons/person-add-disabled/index.d.ts +11 -0
- package/icons/person-add-disabled/index.js +4 -0
- package/icons/person-search/index.d.ts +11 -0
- package/icons/person-search/index.js +4 -0
- package/icons/phone/index.d.ts +11 -0
- package/icons/phone/index.js +4 -0
- package/icons/phone-disabled/index.d.ts +11 -0
- package/icons/phone-disabled/index.js +4 -0
- package/icons/phone-enabled/index.d.ts +11 -0
- package/icons/phone-enabled/index.js +4 -0
- package/icons/phonelink-erase/index.d.ts +11 -0
- package/icons/phonelink-erase/index.js +4 -0
- package/icons/phonelink-lock/index.d.ts +11 -0
- package/icons/phonelink-lock/index.js +4 -0
- package/icons/phonelink-ring/index.d.ts +11 -0
- package/icons/phonelink-ring/index.js +4 -0
- package/icons/phonelink-setup/index.d.ts +11 -0
- package/icons/phonelink-setup/index.js +4 -0
- package/icons/plagiarism/index.js +1 -1
- package/icons/policy/index.js +1 -1
- package/icons/portable-wifi-off/index.d.ts +11 -0
- package/icons/portable-wifi-off/index.js +4 -0
- package/icons/post-add/index.js +1 -1
- package/icons/present-to-all/index.d.ts +11 -0
- package/icons/present-to-all/index.js +4 -0
- package/icons/print-disabled/index.d.ts +11 -0
- package/icons/print-disabled/index.js +4 -0
- package/icons/qr-code/index.d.ts +11 -0
- package/icons/qr-code/index.js +4 -0
- package/icons/qr-code-scanner/index.d.ts +11 -0
- package/icons/qr-code-scanner/index.js +4 -0
- package/icons/quickreply/index.js +1 -1
- package/icons/read-more/index.d.ts +11 -0
- package/icons/read-more/index.js +4 -0
- package/icons/report-outline/index.js +1 -1
- package/icons/ring-volume/index.d.ts +11 -0
- package/icons/ring-volume/index.js +4 -0
- package/icons/rss-feed/index.d.ts +11 -0
- package/icons/rss-feed/index.js +4 -0
- package/icons/screen-lock-landscape/index.d.ts +11 -0
- package/icons/screen-lock-landscape/index.js +4 -0
- package/icons/screen-lock-portrait/index.d.ts +11 -0
- package/icons/screen-lock-portrait/index.js +4 -0
- package/icons/screen-lock-rotation/index.d.ts +11 -0
- package/icons/screen-lock-rotation/index.js +4 -0
- package/icons/screen-rotation/index.d.ts +11 -0
- package/icons/screen-rotation/index.js +4 -0
- package/icons/screen-share/index.d.ts +11 -0
- package/icons/screen-share/index.js +4 -0
- package/icons/sd-storage/index.d.ts +11 -0
- package/icons/sd-storage/index.js +4 -0
- package/icons/search-off/index.js +1 -1
- package/icons/sentiment-satisfied-alt/index.d.ts +11 -0
- package/icons/sentiment-satisfied-alt/index.js +4 -0
- package/icons/settings-system-daydream/index.d.ts +11 -0
- package/icons/settings-system-daydream/index.js +4 -0
- package/icons/signal-cellular-4-bar/index.d.ts +11 -0
- package/icons/signal-cellular-4-bar/index.js +4 -0
- package/icons/signal-cellular-alt/index.d.ts +11 -0
- package/icons/signal-cellular-alt/index.js +4 -0
- package/icons/signal-cellular-connected-no-internet-4-bar/index.d.ts +11 -0
- package/icons/signal-cellular-connected-no-internet-4-bar/index.js +4 -0
- package/icons/signal-cellular-no-sim/index.d.ts +11 -0
- package/icons/signal-cellular-no-sim/index.js +4 -0
- package/icons/signal-cellular-null/index.d.ts +11 -0
- package/icons/signal-cellular-null/index.js +4 -0
- package/icons/signal-cellular-off/index.d.ts +11 -0
- package/icons/signal-cellular-off/index.js +4 -0
- package/icons/signal-wifi-4-bar/index.d.ts +11 -0
- package/icons/signal-wifi-4-bar/index.js +4 -0
- package/icons/signal-wifi-4-bar-lock/index.d.ts +11 -0
- package/icons/signal-wifi-4-bar-lock/index.js +4 -0
- package/icons/signal-wifi-off/index.d.ts +11 -0
- package/icons/signal-wifi-off/index.js +4 -0
- package/icons/speaker-phone/index.d.ts +11 -0
- package/icons/speaker-phone/index.js +4 -0
- package/icons/stay-current-landscape/index.d.ts +11 -0
- package/icons/stay-current-landscape/index.js +4 -0
- package/icons/stay-current-portrait/index.d.ts +11 -0
- package/icons/stay-current-portrait/index.js +4 -0
- package/icons/stay-primary-landscape/index.d.ts +11 -0
- package/icons/stay-primary-landscape/index.js +4 -0
- package/icons/stay-primary-portrait/index.d.ts +11 -0
- package/icons/stay-primary-portrait/index.js +4 -0
- package/icons/stop-screen-share/index.d.ts +11 -0
- package/icons/stop-screen-share/index.js +4 -0
- package/icons/storage/index.d.ts +11 -0
- package/icons/storage/index.js +4 -0
- package/icons/swap-calls/index.d.ts +11 -0
- package/icons/swap-calls/index.js +4 -0
- package/icons/switch-left/index.js +1 -1
- package/icons/switch-right/index.js +1 -1
- package/icons/textsms/index.d.ts +11 -0
- package/icons/textsms/index.js +4 -0
- package/icons/thermostat/index.d.ts +11 -0
- package/icons/thermostat/index.js +4 -0
- package/icons/unsubscribe/index.d.ts +11 -0
- package/icons/unsubscribe/index.js +4 -0
- package/icons/usb/index.d.ts +11 -0
- package/icons/usb/index.js +4 -0
- package/icons/voicemail/index.d.ts +11 -0
- package/icons/voicemail/index.js +4 -0
- package/icons/vpn-key/index.d.ts +11 -0
- package/icons/vpn-key/index.js +4 -0
- package/icons/wallpaper/index.d.ts +11 -0
- package/icons/wallpaper/index.js +4 -0
- package/icons/widgets/index.d.ts +11 -0
- package/icons/widgets/index.js +4 -0
- package/icons/wifi-calling/index.d.ts +11 -0
- package/icons/wifi-calling/index.js +4 -0
- package/icons/wifi-lock/index.d.ts +11 -0
- package/icons/wifi-lock/index.js +4 -0
- package/icons/wifi-tethering/index.d.ts +11 -0
- package/icons/wifi-tethering/index.js +4 -0
- package/package.json +1 -3
- package/popover/index.d.ts +1 -2
- package/popover/index.js +5 -1
- package/popover/utils.d.ts +1 -0
- package/popover/utils.js +1 -0
- package/radio-option/index.d.ts +1 -19
- package/radio-option/index.js +0 -3
- package/radio-option/types.d.ts +18 -0
- package/radio-option/types.js +1 -0
- package/search-option/index.d.ts +1 -10
- package/search-option/index.js +4 -10
- package/search-option/types.d.ts +9 -0
- package/search-option/types.js +1 -0
- package/select-option/index.d.ts +1 -3
- package/select-option/types.d.ts +3 -0
- package/select-option/types.js +1 -0
- package/table/index.js +1 -1
- package/table-cell/index.js +1 -1
- package/table-head-cell/index.js +1 -1
- package/tabs-option/index.d.ts +1 -19
- package/tabs-option/index.js +0 -3
- package/tabs-option/types.d.ts +18 -0
- package/tabs-option/types.js +1 -0
- package/tooltip/index.d.ts +1 -17
- package/tooltip/index.js +1 -1
- package/tooltip/types.d.ts +16 -0
- package/tooltip/types.js +1 -0
- package/tooltip/utils.d.ts +1 -0
- package/tooltip/utils.js +1 -0
- package/index.d.ts +0 -649
- package/index.js +0 -649
package/radio-option/index.js
CHANGED
|
@@ -9,9 +9,6 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
9
9
|
|
|
10
10
|
import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute } from '../utils';
|
|
11
11
|
const templateHTML = '<style>:host{--sinch-color-radio-outer-circle:var(--sinch-color-transparent);--sinch-color-radio-background:var(--sinch-color-snow-100);--sinch-color-radio-border:var(--sinch-color-stormy-300);--sinch-color-radio-outer-circle-checked:var(--sinch-color-transparent);--sinch-color-radio-border-checked:var(--sinch-color-tropical-500);--sinch-color-radio-outer-circle-hover:var(--sinch-color-snow-500);--sinch-color-radio-border-hover:var(--sinch-color-stormy-300);--sinch-color-radio-outer-circle-hover-checked:var(--sinch-color-tropical-100);--sinch-color-radio-border-hover-checked:var(--sinch-color-tropical-500);--sinch-color-radio-outer-circle-focus:var(--sinch-color-snow-800);--sinch-color-radio-border-focus:var(--sinch-color-stormy-300);--sinch-color-radio-outer-circle-focus-checked:var(--sinch-color-tropical-200);--sinch-color-radio-border-focus-checked:var(--sinch-color-tropical-500);--sinch-color-radio-outer-circle-active:var(--sinch-color-stormy-100);--sinch-color-radio-border-active:var(--sinch-color-stormy-300);--sinch-color-radio-outer-circle-active-checked:var(--sinch-color-tropical-300);--sinch-color-radio-border-active-checked:var(--sinch-color-tropical-500);--sinch-color-radio-outer-circle-disabled:var(--sinch-color-transparent);--sinch-color-radio-border-disabled:var(--sinch-color-stormy-100);--sinch-color-radio-outer-circle-disabled-checked:var(--sinch-color-transparent);--sinch-color-radio-border-disabled-checked:var(--sinch-color-stormy-100);display:block;outline:0}#wrapper{display:flex;height:32px;box-sizing:border-box;width:100%}#input{all:initial;display:block;width:32px;height:32px;cursor:pointer}#input:disabled{cursor:initial}#icon-container{position:relative;width:32px;height:32px}#input::before{content:"";position:absolute;top:0;left:0;width:32px;height:32px;border-radius:50%;pointer-events:none;background-color:var(--sinch-color-radio-outer-circle);transition:background-color .1s linear}#input::after{content:"";position:absolute;top:6px;left:6px;width:20px;height:20px;border-radius:50%;pointer-events:none;background-color:var(--sinch-color-radio-background);box-shadow:0 0 0 2px var(--sinch-color-radio-border) inset;transition:background-color .1s linear}#icon-knob{position:absolute;left:11px;top:11px;width:10px;height:10px;border-radius:50%;transition:opacity .1s linear;opacity:0;background-color:var(--sinch-color-radio-border);pointer-events:none}@media (prefers-reduced-motion){#icon-knob,#input::after,#input::before{transition:none}}#label{align-self:center;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:8px;font:var(--sinch-font-body);color:var(--sinch-color-text-default)}:host([disabled]:not([disabled=false])) #label{color:var(--sinch-color-stormy-200)}#input:checked::before{background-color:var(--sinch-color-radio-outer-circle-checked)}#input:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-checked) inset}#input:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-checked)}#input:focus::before{background-color:var(--sinch-color-radio-outer-circle-focus)}#input:focus::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-focus) inset}#input:focus~#icon-knob{background-color:var(--sinch-color-radio-border-focus)}#input:hover::before{background-color:var(--sinch-color-radio-outer-circle-hover)}#input:hover::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-hover) inset}#input:hover~#icon-knob{background-color:var(--sinch-color-radio-border-hover)}#input:active::before{background-color:var(--sinch-color-radio-outer-circle-active)}#input:active::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-active) inset}#input:active~#icon-knob{background-color:var(--sinch-color-radio-border-active)}#input:disabled::before{background-color:var(--sinch-color-radio-outer-circle-disabled)}#input:disabled::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-disabled) inset}#input:disabled~#icon-knob{background-color:var(--sinch-color-radio-border-disabled)}#input:focus:checked::before{background-color:var(--sinch-color-radio-outer-circle-focus-checked)}#input:focus:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-focus-checked) inset}#input:focus:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-focus-checked)}#input:hover:checked::before{background-color:var(--sinch-color-radio-outer-circle-hover-checked)}#input:hover:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-hover-checked) inset}#input:hover:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-hover-checked)}#input:active:checked::before{background-color:var(--sinch-color-radio-outer-circle-active-checked)}#input:active:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-active-checked) inset}#input:active:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-active-checked)}#input:disabled:checked::before{background-color:var(--sinch-color-radio-outer-circle-disabled-checked)}#input:disabled:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-disabled-checked) inset}#input:disabled:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-disabled-checked)}</style><div id="wrapper"><div id="icon-container"><input id="input" type="radio"/><div id="icon-knob"></div></div><label for="input" id="label"></label></div>';
|
|
12
|
-
export const isRadioOptionElement = element => {
|
|
13
|
-
return element instanceof Element && element.tagName === 'SINCH-RADIO-OPTION';
|
|
14
|
-
};
|
|
15
12
|
const template = document.createElement('template');
|
|
16
13
|
template.innerHTML = templateHTML;
|
|
17
14
|
defineCustomElement('sinch-radio-option', (_$input = new WeakMap(), _$label = new WeakMap(), _onInput = new WeakMap(), class extends NectaryElement {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TSinchElementReact } from '../types';
|
|
2
|
+
import type { FocusEvent } from 'react';
|
|
3
|
+
export declare type TSinchRadioOptionElement = HTMLElement & {
|
|
4
|
+
value: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
text: string;
|
|
8
|
+
focus(): void;
|
|
9
|
+
blur(): void;
|
|
10
|
+
};
|
|
11
|
+
export declare type TSinchRadioOptionReact = TSinchElementReact<TSinchRadioOptionElement> & {
|
|
12
|
+
value: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
text: string;
|
|
15
|
+
'aria-label': string;
|
|
16
|
+
onFocus?: (e: FocusEvent<TSinchRadioOptionElement>) => void;
|
|
17
|
+
onBlur?: (e: FocusEvent<TSinchRadioOptionElement>) => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/search-option/index.d.ts
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const isSinchSearchOptionElement: (element: EventTarget | Element | null) => element is TSinchSearchOptionElement;
|
|
3
|
-
export declare type TSinchSearchOptionElement = HTMLElement & {
|
|
4
|
-
text: string;
|
|
5
|
-
selected: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare type TSinchSearchOptionReact = TSinchElementReact<TSinchSearchOptionElement> & {
|
|
8
|
-
text: string;
|
|
9
|
-
'aria-label': string;
|
|
10
|
-
};
|
|
1
|
+
import type { TSinchSearchOptionElement, TSinchSearchOptionReact } from './types';
|
|
11
2
|
declare global {
|
|
12
3
|
namespace JSX {
|
|
13
4
|
interface IntrinsicElements {
|
package/search-option/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _classPrivateFieldGet from '@babel/runtime/helpers/classPrivateFieldGet';
|
|
2
2
|
import _classPrivateFieldSet from '@babel/runtime/helpers/classPrivateFieldSet';
|
|
3
3
|
|
|
4
|
+
var _$content;
|
|
5
|
+
|
|
4
6
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
5
7
|
|
|
6
8
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
@@ -9,10 +11,7 @@ import { defineCustomElement, getAttribute, getBooleanAttribute, NectaryElement,
|
|
|
9
11
|
const templateHTML = '<style>:host{display:block}#wrapper{display:block;box-sizing:border-box;line-height:40px;padding:0 12px;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(:hover)>#wrapper,:host([data-selected])>#wrapper{background-color:var(--sinch-color-snow-500)}</style><div id="wrapper"></div>';
|
|
10
12
|
const template = document.createElement('template');
|
|
11
13
|
template.innerHTML = templateHTML;
|
|
12
|
-
|
|
13
|
-
var _$content = new WeakMap();
|
|
14
|
-
|
|
15
|
-
class SinchSearchOption extends NectaryElement {
|
|
14
|
+
defineCustomElement('sinch-search-option', (_$content = new WeakMap(), class extends NectaryElement {
|
|
16
15
|
constructor() {
|
|
17
16
|
super();
|
|
18
17
|
|
|
@@ -66,9 +65,4 @@ class SinchSearchOption extends NectaryElement {
|
|
|
66
65
|
return getBooleanAttribute(this, 'data-selected');
|
|
67
66
|
}
|
|
68
67
|
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
defineCustomElement('sinch-search-option', SinchSearchOption);
|
|
72
|
-
export const isSinchSearchOptionElement = element => {
|
|
73
|
-
return element instanceof SinchSearchOption;
|
|
74
|
-
};
|
|
68
|
+
}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TSinchElementReact } from '../types';
|
|
2
|
+
export declare type TSinchSearchOptionElement = HTMLElement & {
|
|
3
|
+
text: string;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare type TSinchSearchOptionReact = TSinchElementReact<TSinchSearchOptionElement> & {
|
|
7
|
+
text: string;
|
|
8
|
+
'aria-label': string;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/select-option/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare type TSinchSelectOptionElement = TSinchDropdownTextOptionElement;
|
|
3
|
-
export declare type TSinchSelectOptionReact = TSinchDropdownTextOptionReact;
|
|
1
|
+
import type { TSinchSelectOptionElement, TSinchSelectOptionReact } from './types';
|
|
4
2
|
declare global {
|
|
5
3
|
namespace JSX {
|
|
6
4
|
interface IntrinsicElements {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TSinchDropdownTextOptionElement, TSinchDropdownTextOptionReact } from '../dropdown-text-option/types';
|
|
2
|
+
export declare type TSinchSelectOptionElement = TSinchDropdownTextOptionElement;
|
|
3
|
+
export declare type TSinchSelectOptionReact = TSinchDropdownTextOptionReact;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/table/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineCustomElement, NectaryElement } from '../utils';
|
|
2
|
-
const templateHTML = '<style>:host{display:table;font:var(--sinch-font-body);color:var(--sinch-color-text-default)}</style><slot></slot>';
|
|
2
|
+
const templateHTML = '<style>:host{display:table;font:var(--sinch-font-body);color:var(--sinch-color-text-default);--sinch-color-icon:var(--sinch-color-text-default)}</style><slot></slot>';
|
|
3
3
|
const template = document.createElement('template');
|
|
4
4
|
template.innerHTML = templateHTML;
|
|
5
5
|
defineCustomElement('sinch-table', class extends NectaryElement {
|
package/table-cell/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineCustomElement, getLiteralAttribute, NectaryElement, updateLiteralAttribute } from '../utils';
|
|
2
|
-
const templateHTML = '<style>:host{display:table-cell;vertical-align:top;border-bottom:1px solid var(--sinch-color-snow-600)}#wrapper{display:flex;flex-direction:column;justify-content:center;min-height:48px;box-sizing:border-box;padding:8px
|
|
2
|
+
const templateHTML = '<style>:host{display:table-cell;vertical-align:top;border-bottom:1px solid var(--sinch-color-snow-600)}#wrapper{display:flex;flex-direction:column;justify-content:center;min-height:48px;box-sizing:border-box;padding:8px}:host([align=end]) #wrapper{text-align:end;align-items:flex-end}:host([align=center]) #wrapper{text-align:center;align-items:center}</style><div id="wrapper"><slot></slot></div>';
|
|
3
3
|
const template = document.createElement('template');
|
|
4
4
|
template.innerHTML = templateHTML;
|
|
5
5
|
const alignValues = ['start', 'center', 'end'];
|
package/table-head-cell/index.js
CHANGED
|
@@ -8,7 +8,7 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
8
8
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
9
9
|
|
|
10
10
|
import { defineCustomElement, getAttribute, getBooleanAttribute, getLiteralAttribute, NectaryElement, updateAttribute, updateBooleanAttribute, updateLiteralAttribute } from '../utils';
|
|
11
|
-
const templateHTML = '<style>:host{display:table-cell;border-bottom:1px solid var(--sinch-color-stormy-200);
|
|
11
|
+
const templateHTML = '<style>:host{display:table-cell;border-bottom:1px solid var(--sinch-color-stormy-200);vertical-align:middle;--sinch-color-icon:var(--sinch-color-stormy-200)}#wrapper{position:relative;display:flex;align-items:center;gap:8px;width:100%;height:100%;padding:8px;box-sizing:border-box;font:var(--sinch-font-title-s);color:var(--sinch-color-stormy-300);--sinch-icon-button-color:var(--sinch-color-stormy-100)}#text{flex-shrink:1;min-width:0;font:var(--sinch-font-title-s);color:var(--sinch-color-stormy-200)}:host([align=center])>#wrapper{justify-content:center}:host([align=end])>#wrapper{justify-content:flex-end}:host(:is([text=""],:not([text]))) #text{display:none}:host([fit]:not([fit=false])){width:1px}</style><div id="wrapper"><slot name="checkbox"></slot><slot name="left"></slot><span id="text"></span><slot name="tooltip"></slot><slot name="right"></slot></div>';
|
|
12
12
|
const template = document.createElement('template');
|
|
13
13
|
template.innerHTML = templateHTML;
|
|
14
14
|
const alignValues = ['start', 'center', 'end'];
|
package/tabs-option/index.d.ts
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { FocusEvent } from 'react';
|
|
3
|
-
export declare const isTabsOptionElement: (element: EventTarget | Element | null) => element is TSinchTabsOptionElement;
|
|
4
|
-
export declare type TSinchTabsOptionElement = HTMLElement & {
|
|
5
|
-
value: string;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
checked: boolean;
|
|
8
|
-
text: string;
|
|
9
|
-
focus(): void;
|
|
10
|
-
blur(): void;
|
|
11
|
-
};
|
|
12
|
-
export declare type TSinchTabsOptionReact = TSinchElementReact<TSinchTabsOptionElement> & {
|
|
13
|
-
value: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
text: string;
|
|
16
|
-
'aria-label': string;
|
|
17
|
-
onFocus?: (e: FocusEvent<TSinchTabsOptionElement>) => void;
|
|
18
|
-
onBlur?: (e: FocusEvent<TSinchTabsOptionElement>) => void;
|
|
19
|
-
};
|
|
1
|
+
import type { TSinchTabsOptionElement, TSinchTabsOptionReact } from './types';
|
|
20
2
|
declare global {
|
|
21
3
|
namespace JSX {
|
|
22
4
|
interface IntrinsicElements {
|
package/tabs-option/index.js
CHANGED
|
@@ -8,9 +8,6 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
8
8
|
|
|
9
9
|
import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute } from '../utils';
|
|
10
10
|
const templateHTML = '<style>:host{display:block;outline:0}:host()>*{pointer-events:none}#wrapper{display:flex;flex-direction:row;align-items:center;gap:12px;position:relative;width:100%;height:42px;padding:8px 20px;box-sizing:border-box;box-shadow:0 1px 0 0 var(--sinch-color-stormy-100);color:var(--sinch-color-stormy-500);background-color:var(--sinch-color-snow-100);--sinch-color-icon:var(--sinch-color-stormy-500);--sinch-size-icon:16px}#content{font:var(--sinch-font-title-s);flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([checked]:not([checked=false])) #wrapper{box-shadow:0 2px 0 0 var(--sinch-color-stormy-500)}#button{all:initial;position:absolute;left:0;top:0;box-sizing:border-box;width:100%;height:100%;cursor:pointer}#button:disabled{cursor:unset}:host([disabled]:not([disabled=false])) #wrapper{color:var(--sinch-color-stormy-100);--sinch-color-icon:var(--sinch-color-stormy-100)}</style><div id="wrapper"><slot name="icon"></slot><label for="input" id="content"></label> <button id="button" type="radio"/></div>';
|
|
11
|
-
export const isTabsOptionElement = element => {
|
|
12
|
-
return element instanceof Element && element.tagName === 'SINCH-TABS-OPTION';
|
|
13
|
-
};
|
|
14
11
|
const template = document.createElement('template');
|
|
15
12
|
template.innerHTML = templateHTML;
|
|
16
13
|
defineCustomElement('sinch-tabs-option', (_onClick = new WeakMap(), class extends NectaryElement {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TSinchElementReact } from '../types';
|
|
2
|
+
import type { FocusEvent } from 'react';
|
|
3
|
+
export declare type TSinchTabsOptionElement = HTMLElement & {
|
|
4
|
+
value: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
checked: boolean;
|
|
7
|
+
text: string;
|
|
8
|
+
focus(): void;
|
|
9
|
+
blur(): void;
|
|
10
|
+
};
|
|
11
|
+
export declare type TSinchTabsOptionReact = TSinchElementReact<TSinchTabsOptionElement> & {
|
|
12
|
+
value: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
text: string;
|
|
15
|
+
'aria-label': string;
|
|
16
|
+
onFocus?: (e: FocusEvent<TSinchTabsOptionElement>) => void;
|
|
17
|
+
onBlur?: (e: FocusEvent<TSinchTabsOptionElement>) => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/tooltip/index.d.ts
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const orientationValues: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"];
|
|
3
|
-
export declare type TSinchTooltipOrientation = typeof orientationValues[number];
|
|
4
|
-
export declare type TSinchTooltipElement = HTMLElement & {
|
|
5
|
-
text: string;
|
|
6
|
-
width: number | null;
|
|
7
|
-
inverted: boolean;
|
|
8
|
-
orientation: TSinchTooltipOrientation;
|
|
9
|
-
readonly tooltipRect: TRect;
|
|
10
|
-
};
|
|
11
|
-
export declare type TSinchTooltipReact = TSinchElementReact<TSinchTooltipElement> & {
|
|
12
|
-
text: string;
|
|
13
|
-
width?: number;
|
|
14
|
-
inverted?: boolean;
|
|
15
|
-
orientation?: TSinchTooltipOrientation;
|
|
16
|
-
};
|
|
1
|
+
import type { TSinchTooltipElement, TSinchTooltipReact } from './types';
|
|
17
2
|
declare global {
|
|
18
3
|
namespace JSX {
|
|
19
4
|
interface IntrinsicElements {
|
|
@@ -24,4 +9,3 @@ declare global {
|
|
|
24
9
|
'sinch-tooltip': TSinchTooltipElement;
|
|
25
10
|
}
|
|
26
11
|
}
|
|
27
|
-
export {};
|
package/tooltip/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { attrValueToPixels, defineCustomElement, getBooleanAttribute, getIntegerAttribute, getAttribute, getLiteralAttribute, updateBooleanAttribute, updateAttribute, updateLiteralAttribute, getRect, NectaryElement } from '../utils';
|
|
2
2
|
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle}#wrapper{position:relative;display:block}#tooltip{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity .2s linear .2s}@media (prefers-reduced-motion){#tooltip{transition:none}}:host(:hover) #tooltip{opacity:1}#text{position:absolute;padding:2px 6px;font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-default);background-color:var(--sinch-color-snow-600);width:max-content;border-radius:2px;top:-8px;left:50%;transform:translateX(-50%) translateY(-100%)}#arrow{position:absolute;top:-8px;left:50%;transform:translateX(-50%);fill:var(--sinch-color-snow-600)}:host([orientation=top-left]) #text{transform:translateX(-80%) translateY(-100%)}:host([orientation=top-right]) #text{transform:translateX(-20%) translateY(-100%)}:host([orientation=bottom-right]) #text{top:calc(100% + 8px);transform:translateX(-20%)}:host([orientation=bottom-left]) #text{top:calc(100% + 8px);transform:translateX(-80%)}:host([orientation=bottom]) #text{top:calc(100% + 8px);transform:translateX(-50%)}:host([orientation^=bottom]) #arrow{top:calc(100% + 4px);transform:translateX(-50%) rotate(180deg)}:host([orientation=left]) #text{left:unset;right:calc(100% + 8px);top:50%;transform:translateY(-50%)}:host([orientation=left]) #arrow{left:-11px;top:50%;transform:translateY(-50%) rotate(270deg)}:host([orientation=right]) #text{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}:host([orientation=right]) #arrow{top:50%;left:calc(100% + 2px);transform:translateY(-50%) rotate(90deg)}:host([inverted]:not([inverted=false])) #text{color:var(--sinch-color-text-inverted);background-color:var(--sinch-color-stormy-500)}:host([inverted]:not([inverted=false])) #arrow{fill:var(--sinch-color-stormy-500)}::slotted(*){display:block}</style><div id="wrapper"><slot></slot><div id="tooltip"><div id="text"></div><svg id="arrow" width="9" height="4" aria-hidden="true"><path d="m4.5 4 4-4h-8l4 4Z"/></svg></div></div>';
|
|
3
|
-
|
|
3
|
+
import { orientationValues } from './utils';
|
|
4
4
|
const template = document.createElement('template');
|
|
5
5
|
template.innerHTML = templateHTML;
|
|
6
6
|
defineCustomElement('sinch-tooltip', class extends NectaryElement {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TRect, TSinchElementReact } from '../types';
|
|
2
|
+
import type { orientationValues } from './utils';
|
|
3
|
+
export declare type TSinchTooltipOrientation = typeof orientationValues[number];
|
|
4
|
+
export declare type TSinchTooltipElement = HTMLElement & {
|
|
5
|
+
text: string;
|
|
6
|
+
width: number | null;
|
|
7
|
+
inverted: boolean;
|
|
8
|
+
orientation: TSinchTooltipOrientation;
|
|
9
|
+
readonly tooltipRect: TRect;
|
|
10
|
+
};
|
|
11
|
+
export declare type TSinchTooltipReact = TSinchElementReact<TSinchTooltipElement> & {
|
|
12
|
+
text: string;
|
|
13
|
+
width?: number;
|
|
14
|
+
inverted?: boolean;
|
|
15
|
+
orientation?: TSinchTooltipOrientation;
|
|
16
|
+
};
|
package/tooltip/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const orientationValues: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"];
|
package/tooltip/utils.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const orientationValues = ['top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right'];
|