@nectary/components 0.22.0 → 0.24.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/index.js +3 -6
- package/accordion-item/index.d.ts +1 -1
- package/accordion-item/index.js +4 -7
- package/alert/index.js +3 -5
- package/alert-button/index.js +3 -6
- package/alert-close/index.d.ts +1 -1
- package/alert-close/index.js +4 -7
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +4 -6
- package/avatar-badge/index.d.ts +1 -1
- package/avatar-badge/index.js +4 -6
- package/avatar-status/index.d.ts +1 -1
- package/avatar-status/index.js +4 -6
- package/button/index.js +3 -6
- package/card/index.js +3 -6
- package/card-button/index.js +3 -6
- package/card-container/index.js +3 -6
- package/card-link/index.d.ts +1 -1
- package/card-link/index.js +4 -7
- package/chat/index.js +3 -6
- package/chat-avatar/index.js +3 -6
- package/chat-block/index.js +3 -6
- package/chat-bubble/index.js +3 -6
- package/checkbox/index.js +3 -6
- package/dialog/index.d.ts +3 -4
- package/dialog/index.js +5 -8
- package/dropdown/index.js +4 -7
- package/dropdown-option/index.d.ts +2 -1
- package/dropdown-option/index.js +4 -6
- package/grid/index.js +3 -5
- package/grid-item/index.js +3 -5
- package/help-tooltip/index.d.ts +1 -1
- package/help-tooltip/index.js +4 -6
- package/icon-button/index.js +3 -6
- package/icons/access-time/index.d.ts +11 -0
- package/icons/access-time/index.js +4 -0
- package/icons/add-alert/index.js +4 -0
- package/icons/add-comment/index.d.ts +11 -0
- package/icons/add-comment/index.js +4 -0
- package/icons/alt-route/index.d.ts +11 -0
- package/icons/alt-route/index.js +4 -0
- package/icons/app-settings-alt/index.js +4 -0
- package/icons/apps/index.js +4 -0
- package/icons/arrow-back/index.js +4 -0
- package/icons/arrow-back-ios/index.js +4 -0
- package/icons/arrow-downward/index.js +4 -0
- package/icons/arrow-drop-down/index.js +4 -0
- package/icons/arrow-drop-down-circle/index.js +4 -0
- package/icons/arrow-drop-up/index.js +4 -0
- package/icons/arrow-forward/index.js +4 -0
- package/icons/arrow-forward-ios/index.js +4 -0
- package/icons/arrow-left/index.js +4 -0
- package/icons/arrow-right/index.js +4 -0
- package/icons/arrow-upward/index.js +4 -0
- package/icons/assignment/index.d.ts +11 -0
- package/icons/assignment/index.js +4 -0
- package/icons/attach-email/index.js +4 -0
- package/icons/attachment/index.js +4 -0
- package/icons/auto-delete/index.js +4 -0
- package/icons/campaign/index.js +4 -0
- package/icons/cancel/index.js +4 -0
- package/icons/chat/index.d.ts +11 -0
- package/icons/chat/index.js +4 -0
- package/icons/chat-bubble-outline/index.d.ts +11 -0
- package/icons/chat-bubble-outline/index.js +4 -0
- package/icons/check/index.js +4 -0
- package/icons/check-circle-outline/index.d.ts +11 -0
- package/icons/check-circle-outline/index.js +4 -0
- package/icons/chevron-left/index.js +4 -0
- package/icons/chevron-right/index.js +4 -0
- package/icons/close/index.js +4 -0
- package/icons/cloud/index.js +4 -0
- package/icons/cloud-circle/index.js +4 -0
- package/icons/cloud-done/index.js +4 -0
- package/icons/cloud-download/index.js +4 -0
- package/icons/cloud-off/index.js +4 -0
- package/icons/cloud-queue/index.js +4 -0
- package/icons/cloud-upload/index.js +4 -0
- package/icons/comment/index.d.ts +11 -0
- package/icons/comment/index.js +4 -0
- package/icons/create/index.d.ts +11 -0
- package/icons/create/index.js +4 -0
- package/{icon → icons}/create-icon-class.d.ts +1 -1
- package/{icon → icons}/create-icon-class.js +3 -5
- package/icons/create-new-folder/index.js +4 -0
- package/icons/done-all/index.d.ts +11 -0
- package/icons/done-all/index.js +4 -0
- package/icons/double-arrow/index.js +4 -0
- package/icons/download/index.js +4 -0
- package/icons/download-done/index.js +4 -0
- package/{icon → icons}/east/index.js +1 -1
- package/icons/error/index.js +4 -0
- package/icons/error-outline/index.js +4 -0
- package/icons/expand-less/index.js +4 -0
- package/icons/expand-more/index.js +4 -0
- package/icons/filter-list/index.js +4 -0
- package/icons/first-page/index.js +4 -0
- package/icons/folder/index.js +4 -0
- package/icons/folder-open/index.js +4 -0
- package/icons/folder-shared/index.js +4 -0
- package/icons/forum/index.d.ts +11 -0
- package/icons/forum/index.js +4 -0
- package/icons/fullscreen/index.js +4 -0
- package/icons/fullscreen-exit/index.js +4 -0
- package/icons/help-outline/index.js +4 -0
- package/icons/history/index.d.ts +11 -0
- package/icons/history/index.js +4 -0
- package/icons/home-work/index.js +4 -0
- package/icons/info-outline/index.d.ts +11 -0
- package/icons/info-outline/index.js +4 -0
- package/icons/insert-emoticon/index.d.ts +11 -0
- package/icons/insert-emoticon/index.js +4 -0
- package/icons/keyboard-arrow-down/index.js +4 -0
- package/icons/keyboard-arrow-left/index.js +4 -0
- package/icons/keyboard-arrow-right/index.js +4 -0
- package/icons/keyboard-arrow-up/index.js +4 -0
- package/icons/last-page/index.js +4 -0
- package/icons/legend-toggle/index.js +4 -0
- package/icons/local-offer/index.d.ts +11 -0
- package/icons/local-offer/index.js +4 -0
- package/icons/mark-chat-read/index.d.ts +11 -0
- package/icons/mark-chat-read/index.js +4 -0
- package/icons/mark-chat-unread/index.d.ts +11 -0
- package/icons/mark-chat-unread/index.js +4 -0
- package/icons/menu/index.js +4 -0
- package/icons/menu-open/index.js +4 -0
- package/icons/mic-none/index.d.ts +11 -0
- package/icons/mic-none/index.js +4 -0
- package/{icon → icons}/more-horiz/index.js +1 -1
- package/icons/more-time/index.d.ts +11 -0
- package/icons/more-time/index.js +4 -0
- package/{icon → icons}/more-vert/index.js +1 -1
- package/{icon → icons}/north/index.js +1 -1
- package/{icon → icons}/north-east/index.js +1 -1
- package/{icon → icons}/north-west/index.js +1 -1
- package/icons/notes/index.d.ts +11 -0
- package/icons/notes/index.js +4 -0
- package/icons/notification-important/index.js +4 -0
- package/icons/notifications-none/index.d.ts +11 -0
- package/icons/notifications-none/index.js +4 -0
- package/icons/open-in-new/index.js +4 -0
- package/icons/pause-circle-outline/index.d.ts +11 -0
- package/icons/pause-circle-outline/index.js +4 -0
- package/icons/payments/index.js +4 -0
- package/icons/play-circle-outline/index.d.ts +11 -0
- package/icons/play-circle-outline/index.js +4 -0
- package/icons/refresh/index.js +4 -0
- package/icons/reply/index.d.ts +11 -0
- package/icons/reply/index.js +4 -0
- package/icons/request-quote/index.js +4 -0
- package/icons/rule-folder/index.js +4 -0
- package/icons/search/index.js +4 -0
- package/icons/send/index.d.ts +11 -0
- package/icons/send/index.js +4 -0
- package/icons/settings/index.d.ts +11 -0
- package/icons/settings/index.js +4 -0
- package/icons/snippet-folder/index.js +4 -0
- package/{icon → icons}/south/index.js +1 -1
- package/{icon → icons}/south-east/index.js +1 -1
- package/{icon → icons}/south-west/index.js +1 -1
- package/icons/star/index.d.ts +11 -0
- package/icons/star/index.js +4 -0
- package/icons/star-outline/index.d.ts +11 -0
- package/icons/star-outline/index.js +4 -0
- package/icons/stop/index.d.ts +11 -0
- package/icons/stop/index.js +4 -0
- package/icons/subdirectory-arrow-left/index.js +4 -0
- package/icons/subdirectory-arrow-right/index.js +4 -0
- package/icons/swap-vert/index.d.ts +11 -0
- package/icons/swap-vert/index.js +4 -0
- package/icons/switch-left/index.d.ts +11 -0
- package/icons/switch-left/index.js +4 -0
- package/icons/switch-right/index.d.ts +11 -0
- package/icons/switch-right/index.js +4 -0
- package/icons/text-snippet/index.js +4 -0
- package/icons/topic/index.js +4 -0
- package/icons/types.js +1 -0
- package/icons/undo/index.d.ts +11 -0
- package/icons/undo/index.js +4 -0
- package/icons/unfold-less/index.js +4 -0
- package/icons/unfold-more/index.js +4 -0
- package/icons/update/index.d.ts +11 -0
- package/icons/update/index.js +4 -0
- package/icons/upload/index.js +4 -0
- package/icons/volume-off/index.d.ts +11 -0
- package/icons/volume-off/index.js +4 -0
- package/icons/volume-up/index.d.ts +11 -0
- package/icons/volume-up/index.js +4 -0
- package/icons/warning/index.js +4 -0
- package/icons/warning-amber/index.js +4 -0
- package/{icon → icons}/west/index.js +1 -1
- package/icons-branded/barchart-down/index.d.ts +11 -0
- package/{icon-branded → icons-branded}/barchart-down/index.js +2 -2
- package/icons-branded/barchart-up/index.d.ts +11 -0
- package/{icon-branded → icons-branded}/barchart-up/index.js +2 -2
- package/{icon-branded/contact → icons-branded/bell}/index.d.ts +2 -2
- package/icons-branded/bell/index.js +4 -0
- package/{icon-branded/multiple-channels → icons-branded/campaigns}/index.d.ts +2 -2
- package/{icon-branded → icons-branded}/campaigns/index.js +2 -2
- package/icons-branded/chatbot/index.d.ts +11 -0
- package/{icon-branded → icons-branded}/chatbot/index.js +2 -2
- package/icons-branded/contact/index.d.ts +11 -0
- package/{icon-branded → icons-branded}/contact/index.js +2 -2
- package/{icon-branded → icons-branded}/create-icon-class.d.ts +1 -1
- package/{icon-branded → icons-branded}/create-icon-class.js +4 -6
- package/{icon-branded/campaigns → icons-branded/home}/index.d.ts +2 -2
- package/{icon-branded → icons-branded}/home/index.js +2 -2
- package/icons-branded/multiple-channels/index.d.ts +11 -0
- package/{icon-branded → icons-branded}/multiple-channels/index.js +2 -2
- package/{icon-branded/chatbot → icons-branded/rocket}/index.d.ts +2 -2
- package/{icon-branded → icons-branded}/rocket/index.js +2 -2
- package/icons-branded/settings/index.d.ts +11 -0
- package/{icon-branded → icons-branded}/settings/index.js +2 -2
- package/{icon-branded/barchart-up → icons-branded/user}/index.d.ts +2 -2
- package/icons-branded/user/index.js +4 -0
- package/{icon-branded/barchart-down → icons-branded/users}/index.d.ts +2 -2
- package/{icon-branded → icons-branded}/users/index.js +2 -2
- package/icons-channel/apple-business-chat/index.d.ts +11 -0
- package/icons-channel/apple-business-chat/index.js +4 -0
- package/icons-channel/create-icon-class.d.ts +310 -0
- package/icons-channel/create-icon-class.js +51 -0
- package/icons-channel/facebook-messenger/index.d.ts +11 -0
- package/icons-channel/facebook-messenger/index.js +4 -0
- package/icons-channel/instagram/index.d.ts +11 -0
- package/icons-channel/instagram/index.js +4 -0
- package/icons-channel/line/index.d.ts +11 -0
- package/icons-channel/line/index.js +4 -0
- package/icons-channel/talk/index.d.ts +11 -0
- package/icons-channel/talk/index.js +4 -0
- package/icons-channel/telegram/index.d.ts +11 -0
- package/icons-channel/telegram/index.js +4 -0
- package/icons-channel/twitter/index.d.ts +11 -0
- package/icons-channel/twitter/index.js +4 -0
- package/icons-channel/types.d.ts +7 -0
- package/icons-channel/viber/index.d.ts +11 -0
- package/icons-channel/viber/index.js +4 -0
- package/icons-channel/wechat/index.d.ts +11 -0
- package/icons-channel/wechat/index.js +4 -0
- package/icons-channel/whatsapp/index.d.ts +11 -0
- package/icons-channel/whatsapp/index.js +4 -0
- package/illustration/create-illustration-class.d.ts +1 -1
- package/illustration/create-illustration-class.js +3 -5
- package/index.d.ts +140 -95
- package/index.js +140 -95
- package/input/index.js +3 -6
- package/link/index.d.ts +1 -1
- package/link/index.js +6 -27
- package/logo/create-logo-class.d.ts +1 -1
- package/logo/create-logo-class.js +3 -5
- package/package.json +1 -1
- package/pagination/index.d.ts +6 -3
- package/pagination/index.js +19 -8
- package/popover/index.js +3 -6
- package/radio/index.js +3 -6
- package/radio-option/index.js +3 -6
- package/search/index.d.ts +2 -2
- package/search/index.js +6 -9
- package/search-option/index.js +3 -5
- package/segment/index.js +3 -6
- package/segment-collapse/index.d.ts +2 -2
- package/segment-collapse/index.js +5 -7
- package/select/index.js +22 -8
- package/spinner/index.js +3 -5
- package/table/index.js +3 -5
- package/table-body/index.js +3 -5
- package/table-cell/index.js +3 -5
- package/table-head/index.js +3 -5
- package/table-head-cell/index.js +3 -5
- package/table-row/index.js +3 -5
- package/tabs/index.js +3 -6
- package/tabs-option/index.js +4 -7
- package/tag/index.d.ts +1 -1
- package/tag/index.js +4 -6
- package/tag-close/index.d.ts +1 -1
- package/tag-close/index.js +4 -7
- package/textarea/index.js +3 -6
- package/title/index.d.ts +1 -1
- package/title/index.js +4 -7
- package/toggle/index.js +3 -6
- package/tooltip/index.js +3 -5
- package/utils.d.ts +10 -3
- package/utils.js +22 -14
- package/icon/add-alert/index.js +0 -4
- package/icon/app-settings-alt/index.js +0 -4
- package/icon/apps/index.js +0 -4
- package/icon/arrow-back/index.js +0 -4
- package/icon/arrow-back-ios/index.js +0 -4
- package/icon/arrow-downward/index.js +0 -4
- package/icon/arrow-drop-down/index.js +0 -4
- package/icon/arrow-drop-down-circle/index.js +0 -4
- package/icon/arrow-drop-up/index.js +0 -4
- package/icon/arrow-forward/index.js +0 -4
- package/icon/arrow-forward-ios/index.js +0 -4
- package/icon/arrow-left/index.js +0 -4
- package/icon/arrow-right/index.js +0 -4
- package/icon/arrow-upward/index.js +0 -4
- package/icon/attach-email/index.js +0 -4
- package/icon/attachment/index.js +0 -4
- package/icon/auto-delete/index.js +0 -4
- package/icon/campaign/index.js +0 -4
- package/icon/cancel/index.js +0 -4
- package/icon/check/index.js +0 -4
- package/icon/chevron-left/index.js +0 -4
- package/icon/chevron-right/index.js +0 -4
- package/icon/close/index.js +0 -4
- package/icon/cloud/index.js +0 -4
- package/icon/cloud-circle/index.js +0 -4
- package/icon/cloud-done/index.js +0 -4
- package/icon/cloud-download/index.js +0 -4
- package/icon/cloud-off/index.js +0 -4
- package/icon/cloud-queue/index.js +0 -4
- package/icon/cloud-upload/index.js +0 -4
- package/icon/create-new-folder/index.js +0 -4
- package/icon/double-arrow/index.js +0 -4
- package/icon/download/index.js +0 -4
- package/icon/download-done/index.js +0 -4
- package/icon/error/index.js +0 -4
- package/icon/error-outline/index.js +0 -4
- package/icon/expand-less/index.js +0 -4
- package/icon/expand-more/index.js +0 -4
- package/icon/filter-list/index.js +0 -4
- package/icon/first-page/index.js +0 -4
- package/icon/folder/index.js +0 -4
- package/icon/folder-open/index.js +0 -4
- package/icon/folder-shared/index.js +0 -4
- package/icon/fullscreen/index.js +0 -4
- package/icon/fullscreen-exit/index.js +0 -4
- package/icon/help-outline/index.js +0 -4
- package/icon/home-work/index.js +0 -4
- package/icon/keyboard-arrow-down/index.js +0 -4
- package/icon/keyboard-arrow-left/index.js +0 -4
- package/icon/keyboard-arrow-right/index.js +0 -4
- package/icon/keyboard-arrow-up/index.js +0 -4
- package/icon/last-page/index.js +0 -4
- package/icon/legend-toggle/index.js +0 -4
- package/icon/menu/index.js +0 -4
- package/icon/menu-open/index.js +0 -4
- package/icon/notification-important/index.js +0 -4
- package/icon/open-in-new/index.js +0 -4
- package/icon/payments/index.js +0 -4
- package/icon/refresh/index.js +0 -4
- package/icon/request-quote/index.js +0 -4
- package/icon/rule-folder/index.js +0 -4
- package/icon/search/index.js +0 -4
- package/icon/snippet-folder/index.js +0 -4
- package/icon/subdirectory-arrow-left/index.js +0 -4
- package/icon/subdirectory-arrow-right/index.js +0 -4
- package/icon/switch-left/index.d.ts +0 -11
- package/icon/switch-left/index.js +0 -4
- package/icon/switch-right/index.d.ts +0 -11
- package/icon/switch-right/index.js +0 -4
- package/icon/text-snippet/index.js +0 -4
- package/icon/topic/index.js +0 -4
- package/icon/unfold-less/index.js +0 -4
- package/icon/unfold-more/index.js +0 -4
- package/icon/upload/index.js +0 -4
- package/icon/warning/index.js +0 -4
- package/icon/warning-amber/index.js +0 -4
- package/icon-branded/home/index.d.ts +0 -11
- package/icon-branded/rocket/index.d.ts +0 -11
- package/icon-branded/settings/index.d.ts +0 -11
- package/icon-branded/user/index.d.ts +0 -11
- package/icon-branded/user/index.js +0 -4
- package/icon-branded/users/index.d.ts +0 -11
- /package/{icon → icons}/add-alert/index.d.ts +0 -0
- /package/{icon → icons}/app-settings-alt/index.d.ts +0 -0
- /package/{icon → icons}/apps/index.d.ts +0 -0
- /package/{icon → icons}/arrow-back/index.d.ts +0 -0
- /package/{icon → icons}/arrow-back-ios/index.d.ts +0 -0
- /package/{icon → icons}/arrow-downward/index.d.ts +0 -0
- /package/{icon → icons}/arrow-drop-down/index.d.ts +0 -0
- /package/{icon → icons}/arrow-drop-down-circle/index.d.ts +0 -0
- /package/{icon → icons}/arrow-drop-up/index.d.ts +0 -0
- /package/{icon → icons}/arrow-forward/index.d.ts +0 -0
- /package/{icon → icons}/arrow-forward-ios/index.d.ts +0 -0
- /package/{icon → icons}/arrow-left/index.d.ts +0 -0
- /package/{icon → icons}/arrow-right/index.d.ts +0 -0
- /package/{icon → icons}/arrow-upward/index.d.ts +0 -0
- /package/{icon → icons}/attach-email/index.d.ts +0 -0
- /package/{icon → icons}/attachment/index.d.ts +0 -0
- /package/{icon → icons}/auto-delete/index.d.ts +0 -0
- /package/{icon → icons}/campaign/index.d.ts +0 -0
- /package/{icon → icons}/cancel/index.d.ts +0 -0
- /package/{icon → icons}/check/index.d.ts +0 -0
- /package/{icon → icons}/chevron-left/index.d.ts +0 -0
- /package/{icon → icons}/chevron-right/index.d.ts +0 -0
- /package/{icon → icons}/close/index.d.ts +0 -0
- /package/{icon → icons}/cloud/index.d.ts +0 -0
- /package/{icon → icons}/cloud-circle/index.d.ts +0 -0
- /package/{icon → icons}/cloud-done/index.d.ts +0 -0
- /package/{icon → icons}/cloud-download/index.d.ts +0 -0
- /package/{icon → icons}/cloud-off/index.d.ts +0 -0
- /package/{icon → icons}/cloud-queue/index.d.ts +0 -0
- /package/{icon → icons}/cloud-upload/index.d.ts +0 -0
- /package/{icon → icons}/create-new-folder/index.d.ts +0 -0
- /package/{icon → icons}/double-arrow/index.d.ts +0 -0
- /package/{icon → icons}/download/index.d.ts +0 -0
- /package/{icon → icons}/download-done/index.d.ts +0 -0
- /package/{icon → icons}/east/index.d.ts +0 -0
- /package/{icon → icons}/error/index.d.ts +0 -0
- /package/{icon → icons}/error-outline/index.d.ts +0 -0
- /package/{icon → icons}/expand-less/index.d.ts +0 -0
- /package/{icon → icons}/expand-more/index.d.ts +0 -0
- /package/{icon → icons}/filter-list/index.d.ts +0 -0
- /package/{icon → icons}/first-page/index.d.ts +0 -0
- /package/{icon → icons}/folder/index.d.ts +0 -0
- /package/{icon → icons}/folder-open/index.d.ts +0 -0
- /package/{icon → icons}/folder-shared/index.d.ts +0 -0
- /package/{icon → icons}/fullscreen/index.d.ts +0 -0
- /package/{icon → icons}/fullscreen-exit/index.d.ts +0 -0
- /package/{icon → icons}/help-outline/index.d.ts +0 -0
- /package/{icon → icons}/home-work/index.d.ts +0 -0
- /package/{icon → icons}/keyboard-arrow-down/index.d.ts +0 -0
- /package/{icon → icons}/keyboard-arrow-left/index.d.ts +0 -0
- /package/{icon → icons}/keyboard-arrow-right/index.d.ts +0 -0
- /package/{icon → icons}/keyboard-arrow-up/index.d.ts +0 -0
- /package/{icon → icons}/last-page/index.d.ts +0 -0
- /package/{icon → icons}/legend-toggle/index.d.ts +0 -0
- /package/{icon → icons}/menu/index.d.ts +0 -0
- /package/{icon → icons}/menu-open/index.d.ts +0 -0
- /package/{icon → icons}/more-horiz/index.d.ts +0 -0
- /package/{icon → icons}/more-vert/index.d.ts +0 -0
- /package/{icon → icons}/north/index.d.ts +0 -0
- /package/{icon → icons}/north-east/index.d.ts +0 -0
- /package/{icon → icons}/north-west/index.d.ts +0 -0
- /package/{icon → icons}/notification-important/index.d.ts +0 -0
- /package/{icon → icons}/open-in-new/index.d.ts +0 -0
- /package/{icon → icons}/payments/index.d.ts +0 -0
- /package/{icon → icons}/refresh/index.d.ts +0 -0
- /package/{icon → icons}/request-quote/index.d.ts +0 -0
- /package/{icon → icons}/rule-folder/index.d.ts +0 -0
- /package/{icon → icons}/search/index.d.ts +0 -0
- /package/{icon → icons}/snippet-folder/index.d.ts +0 -0
- /package/{icon → icons}/south/index.d.ts +0 -0
- /package/{icon → icons}/south-east/index.d.ts +0 -0
- /package/{icon → icons}/south-west/index.d.ts +0 -0
- /package/{icon → icons}/subdirectory-arrow-left/index.d.ts +0 -0
- /package/{icon → icons}/subdirectory-arrow-right/index.d.ts +0 -0
- /package/{icon → icons}/text-snippet/index.d.ts +0 -0
- /package/{icon → icons}/topic/index.d.ts +0 -0
- /package/{icon → icons}/types.d.ts +0 -0
- /package/{icon → icons}/unfold-less/index.d.ts +0 -0
- /package/{icon → icons}/unfold-more/index.d.ts +0 -0
- /package/{icon → icons}/upload/index.d.ts +0 -0
- /package/{icon → icons}/warning/index.d.ts +0 -0
- /package/{icon → icons}/warning-amber/index.d.ts +0 -0
- /package/{icon → icons}/west/index.d.ts +0 -0
- /package/{icon-branded → icons-branded}/types.d.ts +0 -0
- /package/{icon-branded → icons-branded}/types.js +0 -0
- /package/{icon → icons-channel}/types.js +0 -0
package/table-head/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { defineCustomElement } from '../utils';
|
|
1
|
+
import { defineCustomElement, NectaryElement } from '../utils';
|
|
2
2
|
const templateHTML = '<style>:host{display:table-header-group}</style><slot></slot>';
|
|
3
3
|
const template = document.createElement('template');
|
|
4
4
|
template.innerHTML = templateHTML;
|
|
5
|
-
defineCustomElement('sinch-table-head', class extends
|
|
5
|
+
defineCustomElement('sinch-table-head', class extends NectaryElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
|
-
const shadowRoot = this.attachShadow(
|
|
9
|
-
mode: 'closed'
|
|
10
|
-
});
|
|
8
|
+
const shadowRoot = this.attachShadow();
|
|
11
9
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
12
10
|
}
|
|
13
11
|
|
package/table-head-cell/index.js
CHANGED
|
@@ -7,12 +7,12 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
7
7
|
|
|
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
|
-
import { defineCustomElement, getAttribute, getBooleanAttribute, getLiteralAttribute, updateAttribute, updateBooleanAttribute, updateLiteralAttribute } from '../utils';
|
|
10
|
+
import { defineCustomElement, getAttribute, getBooleanAttribute, getLiteralAttribute, NectaryElement, updateAttribute, updateBooleanAttribute, updateLiteralAttribute } from '../utils';
|
|
11
11
|
const templateHTML = '<style>:host{display:table-cell;border-bottom:1px solid var(--sinch-color-stormy-200);height:48px;vertical-align:middle;padding:0 6px;--sinch-color-icon:var(--sinch-color-stormy-200)}:host(:first-child){padding-left:8px}:host(:last-child){padding-right:8px}#wrapper{position:relative;display:flex;align-items:center;gap:8px;width:100%;height:100%;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);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([align=center])>#wrapper{justify-content:center}:host([align=end])>#wrapper{justify-content:flex-end}:host(:is([text=""],:not([text])))>#wrapper{display:none}:host([fit]:not([fit=false])){width:1px}</style><slot name="checkbox"></slot><div id="wrapper"><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'];
|
|
15
|
-
defineCustomElement('sinch-table-head-cell', (_$text = new WeakMap(), class extends
|
|
15
|
+
defineCustomElement('sinch-table-head-cell', (_$text = new WeakMap(), class extends NectaryElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super();
|
|
18
18
|
|
|
@@ -21,9 +21,7 @@ defineCustomElement('sinch-table-head-cell', (_$text = new WeakMap(), class exte
|
|
|
21
21
|
value: void 0
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
const shadowRoot = this.attachShadow(
|
|
25
|
-
mode: 'closed'
|
|
26
|
-
});
|
|
24
|
+
const shadowRoot = this.attachShadow();
|
|
27
25
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
28
26
|
|
|
29
27
|
_classPrivateFieldSet(this, _$text, shadowRoot.querySelector('#text'));
|
package/table-row/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { defineCustomElement, getBooleanAttribute, updateBooleanAttribute } from '../utils';
|
|
1
|
+
import { defineCustomElement, getBooleanAttribute, NectaryElement, updateBooleanAttribute } from '../utils';
|
|
2
2
|
const templateHTML = '<style>:host{display:table-row}:host([sticky]) ::slotted(sinch-table-head-cell){position:sticky;top:0;z-index:1;background-color:var(--sinch-color-snow-100)}</style><slot></slot>';
|
|
3
3
|
const template = document.createElement('template');
|
|
4
4
|
template.innerHTML = templateHTML;
|
|
5
|
-
defineCustomElement('sinch-table-row', class extends
|
|
5
|
+
defineCustomElement('sinch-table-row', class extends NectaryElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
|
-
const shadowRoot = this.attachShadow(
|
|
9
|
-
mode: 'closed'
|
|
10
|
-
});
|
|
8
|
+
const shadowRoot = this.attachShadow();
|
|
11
9
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
12
10
|
}
|
|
13
11
|
|
package/tabs/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
12
12
|
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
|
13
13
|
|
|
14
14
|
import { isTabsOptionElement } from '../tabs-option';
|
|
15
|
-
import { defineCustomElement, getAttribute, updateAttribute } from '../utils';
|
|
15
|
+
import { defineCustomElement, getAttribute, NectaryElement, updateAttribute } from '../utils';
|
|
16
16
|
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{display:flex;flex-direction:row;height:60px;width:100%;box-sizing:border-box;overflow-x:auto}</style><div id="wrapper"><slot></slot></div>';
|
|
17
17
|
|
|
18
18
|
const findSelectedOption = elements => {
|
|
@@ -21,7 +21,7 @@ const findSelectedOption = elements => {
|
|
|
21
21
|
|
|
22
22
|
const template = document.createElement('template');
|
|
23
23
|
template.innerHTML = templateHTML;
|
|
24
|
-
defineCustomElement('sinch-tabs', (_$slot = new WeakMap(), _onOptionKeyDown = new WeakMap(), _onSlotChange = new WeakMap(), _onOptionChange = new WeakMap(), _onValueChange = new WeakSet(), _dispatchChangeEvent = new WeakSet(), _getFirstOption = new WeakSet(), _getLastOption = new WeakSet(), _getNextOption = new WeakSet(), _getPrevOption = new WeakSet(), _getEnabledRadioElements = new WeakSet(), class extends
|
|
24
|
+
defineCustomElement('sinch-tabs', (_$slot = new WeakMap(), _onOptionKeyDown = new WeakMap(), _onSlotChange = new WeakMap(), _onOptionChange = new WeakMap(), _onValueChange = new WeakSet(), _dispatchChangeEvent = new WeakSet(), _getFirstOption = new WeakSet(), _getLastOption = new WeakSet(), _getNextOption = new WeakSet(), _getPrevOption = new WeakSet(), _getEnabledRadioElements = new WeakSet(), class extends NectaryElement {
|
|
25
25
|
constructor() {
|
|
26
26
|
super();
|
|
27
27
|
|
|
@@ -99,10 +99,7 @@ defineCustomElement('sinch-tabs', (_$slot = new WeakMap(), _onOptionKeyDown = ne
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
const shadowRoot = this.attachShadow(
|
|
103
|
-
mode: 'closed',
|
|
104
|
-
delegatesFocus: true
|
|
105
|
-
});
|
|
102
|
+
const shadowRoot = this.attachShadow();
|
|
106
103
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
107
104
|
shadowRoot.addEventListener('keydown', _classPrivateFieldGet(this, _onOptionKeyDown));
|
|
108
105
|
shadowRoot.addEventListener('change', _classPrivateFieldGet(this, _onOptionChange));
|
package/tabs-option/index.js
CHANGED
|
@@ -6,14 +6,14 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
6
6
|
|
|
7
7
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
8
8
|
|
|
9
|
-
import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, updateAttribute, updateBooleanAttribute } from '../utils';
|
|
10
|
-
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}
|
|
9
|
+
import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute } from '../utils';
|
|
10
|
+
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;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);--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]) #wrapper{box-shadow:0 2px 0 0 var(--sinch-color-stormy-500)}input{all:initial;position:absolute;left:0;top:0;box-sizing:border-box;width:100%;height:100%;cursor:pointer}:host([disabled]:not([disabled=false])) #wrapper{color:var(--sinch-color-stormy-100);--sinch-color-icon:var(--sinch-color-stormy-100)}input:disabled{cursor:unset}</style><div id="wrapper"><slot name="icon"></slot><label for="input" id="content" aria-hidden="true"></label> <input id="input" type="radio" aria-hidden="true"/></div>';
|
|
11
11
|
export const isTabsOptionElement = element => {
|
|
12
12
|
return element instanceof Element && element.tagName === 'SINCH-TABS-OPTION';
|
|
13
13
|
};
|
|
14
14
|
const template = document.createElement('template');
|
|
15
15
|
template.innerHTML = templateHTML;
|
|
16
|
-
defineCustomElement('sinch-tabs-option', (_onInput = new WeakMap(), class extends
|
|
16
|
+
defineCustomElement('sinch-tabs-option', (_onInput = new WeakMap(), class extends NectaryElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
19
19
|
|
|
@@ -29,10 +29,7 @@ defineCustomElement('sinch-tabs-option', (_onInput = new WeakMap(), class extend
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
const shadowRoot = this.attachShadow(
|
|
33
|
-
mode: 'closed',
|
|
34
|
-
delegatesFocus: true
|
|
35
|
-
});
|
|
32
|
+
const shadowRoot = this.attachShadow();
|
|
36
33
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
37
34
|
this.$input = shadowRoot.querySelector('input');
|
|
38
35
|
this.$label = shadowRoot.querySelector('#content');
|
package/tag/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../
|
|
1
|
+
import '../icons/cancel';
|
|
2
2
|
import type { TSinchElementReact } from '../types';
|
|
3
3
|
declare const categoryValues: readonly ["candy", "bolt", "aqua", "grass", "berry", "orange", "night", "mud", "dirt"];
|
|
4
4
|
export declare type TSinchTagCategory = typeof categoryValues[number];
|
package/tag/index.js
CHANGED
|
@@ -7,13 +7,13 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
7
7
|
|
|
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
|
-
import '../
|
|
11
|
-
import { defineCustomElement, getBooleanAttribute, getAttribute, getLiteralAttribute, updateBooleanAttribute, updateAttribute, updateLiteralAttribute } from '../utils';
|
|
10
|
+
import '../icons/cancel';
|
|
11
|
+
import { defineCustomElement, getBooleanAttribute, getAttribute, getLiteralAttribute, updateBooleanAttribute, updateAttribute, updateLiteralAttribute, NectaryElement } from '../utils';
|
|
12
12
|
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}#wrapper{display:flex;flex-direction:row;align-items:center;gap:4px;position:relative;padding:2px 8px;border-radius:12px;font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-default);background-color:var(--sinch-color-snow-600);width:100%;height:24px;box-sizing:border-box;--sinch-color-icon:var(--sinch-color-stormy-400);--sinch-size-icon:16px}:host([category=candy])>#wrapper{background-color:var(--sinch-color-candy-200)}:host([category=bolt])>#wrapper{background-color:var(--sinch-color-bolt-200)}:host([category=aqua])>#wrapper{background-color:var(--sinch-color-aqua-200)}:host([category=grass])>#wrapper{background-color:var(--sinch-color-grass-200)}:host([category=berry])>#wrapper{background-color:var(--sinch-color-berry-200)}:host([category=orange])>#wrapper{background-color:var(--sinch-color-orange-200)}:host([category=night])>#wrapper{background-color:var(--sinch-color-night-200)}:host([category=mud])>#wrapper{background-color:var(--sinch-color-mud-200)}:host([category=dirt])>#wrapper{background-color:var(--sinch-color-dirt-200)}:host([inverted]:not([inverted=false]))>#wrapper{background-color:var(--sinch-color-stormy-500);color:var(--sinch-color-snow-100);--sinch-color-icon:var(--sinch-color-snow-100)}:host([small]:not([small=false])) #wrapper{height:20px;border-radius:10px;padding:0 8px;--sinch-size-icon:14px}#text{text-overflow:ellipsis;white-space:nowrap;overflow:auto;flex:1}</style><div id="wrapper"><slot name="icon"></slot><span id="text"></span><slot name="close"></slot></div>';
|
|
13
13
|
const categoryValues = ['candy', 'bolt', 'aqua', 'grass', 'berry', 'orange', 'night', 'mud', 'dirt'];
|
|
14
14
|
const template = document.createElement('template');
|
|
15
15
|
template.innerHTML = templateHTML;
|
|
16
|
-
defineCustomElement('sinch-tag', (_$text = new WeakMap(), class extends
|
|
16
|
+
defineCustomElement('sinch-tag', (_$text = new WeakMap(), class extends NectaryElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
19
19
|
|
|
@@ -22,9 +22,7 @@ defineCustomElement('sinch-tag', (_$text = new WeakMap(), class extends HTMLElem
|
|
|
22
22
|
value: void 0
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
const shadowRoot = this.attachShadow(
|
|
26
|
-
mode: 'closed'
|
|
27
|
-
});
|
|
25
|
+
const shadowRoot = this.attachShadow();
|
|
28
26
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
29
27
|
|
|
30
28
|
_classPrivateFieldSet(this, _$text, shadowRoot.querySelector('#text'));
|
package/tag-close/index.d.ts
CHANGED
package/tag-close/index.js
CHANGED
|
@@ -7,12 +7,12 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
7
7
|
|
|
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
|
-
import '../
|
|
11
|
-
import { defineCustomElement } from '../utils';
|
|
10
|
+
import '../icons/cancel';
|
|
11
|
+
import { defineCustomElement, NectaryElement } from '../utils';
|
|
12
12
|
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}#wrapper{position:relative;width:14px;height:14px}button{all:initial;position:absolute;display:flex;align-items:center;justify-content:center;width:24px;height:24px;box-sizing:border-box;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);cursor:pointer}button>*{pointer-events:none}</style><div id="wrapper"><button aria-label="dismiss tag"><sinch-icon-cancel></sinch-icon-cancel></button></div>';
|
|
13
13
|
const template = document.createElement('template');
|
|
14
14
|
template.innerHTML = templateHTML;
|
|
15
|
-
defineCustomElement('sinch-tag-close', (_$button = new WeakMap(), class extends
|
|
15
|
+
defineCustomElement('sinch-tag-close', (_$button = new WeakMap(), class extends NectaryElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super();
|
|
18
18
|
|
|
@@ -21,10 +21,7 @@ defineCustomElement('sinch-tag-close', (_$button = new WeakMap(), class extends
|
|
|
21
21
|
value: void 0
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
const shadowRoot = this.attachShadow(
|
|
25
|
-
mode: 'closed',
|
|
26
|
-
delegatesFocus: true
|
|
27
|
-
});
|
|
24
|
+
const shadowRoot = this.attachShadow();
|
|
28
25
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
29
26
|
|
|
30
27
|
_classPrivateFieldSet(this, _$button, shadowRoot.querySelector('button'));
|
package/textarea/index.js
CHANGED
|
@@ -7,11 +7,11 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
7
7
|
|
|
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
|
-
import { defineCustomElement, getAttribute, getBooleanAttribute, getIntegerAttribute, isAttrTrue, updateAttribute, updateBooleanAttribute } from '../utils';
|
|
10
|
+
import { defineCustomElement, getAttribute, getBooleanAttribute, getIntegerAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute } from '../utils';
|
|
11
11
|
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0;--sinch-color-icon:var(--sinch-color-stormy-500)}#wrapper{width:100%;box-sizing:border-box}#input{all:initial;border:1px solid var(--sinch-color-stormy-200);box-sizing:border-box;border-radius:4px;width:100%;margin:2px 0;padding:8px 12px;font:var(--sinch-font-body);color:var(--sinch-color-text-default);caret-color:var(--sinch-caret-color,auto);background-color:var(--sinch-color-snow-100);resize:none}#input::placeholder{font:var(--sinch-font-body);color:var(--sinch-color-text-muted)}#input:disabled{border-color:var(--sinch-color-snow-500);color:var(--sinch-color-stormy-100)}#input:disabled::placeholder{color:var(--sinch-color-snow-500)}#input:focus{border-color:var(--sinch-color-stormy-600)}:host([resizable]:not([resizable=false])) #input{resize:vertical}:host([invalidtext]:not([invalidtext=""])) #input:not(:disabled){border-color:var(--sinch-color-text-invalid)}#bottom,#top{display:flex;align-items:baseline}#top{height:24px}#bottom{height:20px}#additional,#invalid,#label,#optional{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#label{font:var(--sinch-font-title-s);color:var(--sinch-color-text-default)}#optional{flex:1;text-align:right;font:var(--sinch-font-small-text);color:var(--sinch-color-text-muted)}#additional{flex:1;text-align:right;font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-muted)}#invalid{font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-invalid)}::slotted(sinch-help-tooltip){align-self:center;margin:0 8px}:host([disabled]:not([disabled=false])) :is(#label,#additional,#optional,#invalid){color:var(--sinch-color-stormy-100)}:host([disabled]:not([disabled=false])){--sinch-color-icon:var(--sinch-color-stormy-100)}</style><div id="wrapper"><div id="top"><label id="label" for="input"></label><slot name="tooltip"></slot><span id="optional"></span></div><textarea id="input"></textarea><div id="bottom"><span id="invalid"></span> <span id="additional"></span></div></div>';
|
|
12
12
|
const template = document.createElement('template');
|
|
13
13
|
template.innerHTML = templateHTML;
|
|
14
|
-
defineCustomElement('sinch-textarea', (_$input = new WeakMap(), _$label = new WeakMap(), _$optionalText = new WeakMap(), _$additionalText = new WeakMap(), _$invalidText = new WeakMap(), _selectionStart = new WeakMap(), _selectionEnd = new WeakMap(), _isPendingDk = new WeakMap(), _onCompositionStart = new WeakMap(), _onInput = new WeakMap(), class extends
|
|
14
|
+
defineCustomElement('sinch-textarea', (_$input = new WeakMap(), _$label = new WeakMap(), _$optionalText = new WeakMap(), _$additionalText = new WeakMap(), _$invalidText = new WeakMap(), _selectionStart = new WeakMap(), _selectionEnd = new WeakMap(), _isPendingDk = new WeakMap(), _onCompositionStart = new WeakMap(), _onInput = new WeakMap(), class extends NectaryElement {
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
17
17
|
|
|
@@ -104,10 +104,7 @@ defineCustomElement('sinch-textarea', (_$input = new WeakMap(), _$label = new We
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
const shadowRoot = this.attachShadow(
|
|
108
|
-
mode: 'closed',
|
|
109
|
-
delegatesFocus: true
|
|
110
|
-
});
|
|
107
|
+
const shadowRoot = this.attachShadow();
|
|
111
108
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
112
109
|
|
|
113
110
|
_classPrivateFieldSet(this, _$input, shadowRoot.querySelector('#input'));
|
package/title/index.d.ts
CHANGED
package/title/index.js
CHANGED
|
@@ -7,8 +7,8 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
7
7
|
|
|
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
|
-
import '../
|
|
11
|
-
import { defineCustomElement, getAttribute, updateAttribute, updateLiteralAttribute, getLiteralAttribute } from '../utils';
|
|
10
|
+
import '../icons/cancel';
|
|
11
|
+
import { defineCustomElement, getAttribute, updateAttribute, updateLiteralAttribute, getLiteralAttribute, NectaryElement } from '../utils';
|
|
12
12
|
const templateHTML = '<style>:host{display:block}:host([type=xl])>*{font:var(--sinch-font-title-xl)}:host([type="l"])>*{font:var(--sinch-font-title-l)}:host([type="m"])>*{font:var(--sinch-font-title-m)}:host([type="s"])>*{font:var(--sinch-font-title-s)}:host([type=xs])>*{font:var(--sinch-font-title-xs)}</style><span id="text"></span>';
|
|
13
13
|
const typeValues = ['xl', 'l', 'm', 's', 'xs'];
|
|
14
14
|
const levelValues = ['1', '2', '3', '4', '5', '6'];
|
|
@@ -27,7 +27,7 @@ const assertType = value => {
|
|
|
27
27
|
|
|
28
28
|
const template = document.createElement('template');
|
|
29
29
|
template.innerHTML = templateHTML;
|
|
30
|
-
defineCustomElement('sinch-title', (_$text = new WeakMap(), class extends
|
|
30
|
+
defineCustomElement('sinch-title', (_$text = new WeakMap(), class extends NectaryElement {
|
|
31
31
|
constructor() {
|
|
32
32
|
super();
|
|
33
33
|
|
|
@@ -36,10 +36,7 @@ defineCustomElement('sinch-title', (_$text = new WeakMap(), class extends HTMLEl
|
|
|
36
36
|
value: void 0
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
const shadowRoot = this.attachShadow(
|
|
40
|
-
mode: 'closed',
|
|
41
|
-
delegatesFocus: true
|
|
42
|
-
});
|
|
39
|
+
const shadowRoot = this.attachShadow();
|
|
43
40
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
44
41
|
|
|
45
42
|
_classPrivateFieldSet(this, _$text, shadowRoot.querySelector('#text'));
|
package/toggle/index.js
CHANGED
|
@@ -7,11 +7,11 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
7
7
|
|
|
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
|
-
import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, updateAttribute, updateBooleanAttribute } from '../utils';
|
|
10
|
+
import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute } from '../utils';
|
|
11
11
|
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}#wrapper{display:flex;flex-direction:row;box-sizing:border-box;width:100%;height:32px;font:var(--sinch-font-body);color:var(--sinch-color-text-default);text-align:initial}:host([small]:not([small=false])) #wrapper{font:var(--sinch-font-small-text)}#checkbox{all:initial;display:block;position:absolute;left:0;top:0;width:40px;height:20px;cursor:pointer;pointer-events:initial}#checkbox:disabled{cursor:initial}#knob-container{position:relative;box-sizing:border-box;align-self:center;width:40px;height:20px;border-radius:10px;pointer-events:none;padding:2px;background-color:var(--sinch-color-stormy-100);overflow:hidden}:host([checked]:not([checked=false])) #knob-container{background-color:var(--sinch-color-tropical-500)}:host([small]:not([small=false])) #knob-container{width:32px;height:16px;border-radius:8px}#knob{position:relative;box-sizing:border-box;width:16px;height:16px;border-radius:50%;background-color:var(--sinch-color-snow-100);transform:translateX(0);transition:transform .1s ease-in-out}:host([checked]:not([checked=false])) #knob{transform:translateX(20px)}:host([small]:not([small=false])) #knob{width:12px;height:12px}:host([small]:not([small=false])[checked]:not([checked=false])) #knob{transform:translateX(16px)}#knob::after,#knob::before{color:var(--sinch-color-snow-100);text-transform:uppercase;font-size:8px;line-height:16px;display:none;position:absolute;top:0;padding:0 3px}#knob::before{content:"on";right:100%}#knob::after{content:"off";left:100%}:host([labeled]:not([labeled=false]):is(:not([small]),[small=false])) #knob::after,:host([labeled]:not([labeled=false]):is(:not([small]),[small=false])) #knob::before{display:block}@media (prefers-reduced-motion){#knob{transition:none}}#label{display:none;flex:1;align-self:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:8px}:host([text]:not([text=""])) #label{display:block}:host([disabled]:not([disabled=false])) #label{color:var(--sinch-color-stormy-200)}:host([disabled]:not([disabled=false])) #knob-container{background-color:var(--sinch-color-snow-700)}:host([checked]:not([checked=false])[disabled]:not([disabled=false])) #knob-container{background-color:var(--sinch-color-tropical-100)}</style><div id="wrapper"><div id="knob-container"><div id="knob"></div><input id="checkbox" type="checkbox"></div><label for="checkbox" id="label"></label></div>';
|
|
12
12
|
const template = document.createElement('template');
|
|
13
13
|
template.innerHTML = templateHTML;
|
|
14
|
-
defineCustomElement('sinch-toggle', (_$input = new WeakMap(), _$label = new WeakMap(), _onInput = new WeakMap(), class extends
|
|
14
|
+
defineCustomElement('sinch-toggle', (_$input = new WeakMap(), _$label = new WeakMap(), _onInput = new WeakMap(), class extends NectaryElement {
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
17
17
|
|
|
@@ -40,10 +40,7 @@ defineCustomElement('sinch-toggle', (_$input = new WeakMap(), _$label = new Weak
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
const shadowRoot = this.attachShadow(
|
|
44
|
-
mode: 'closed',
|
|
45
|
-
delegatesFocus: true
|
|
46
|
-
});
|
|
43
|
+
const shadowRoot = this.attachShadow();
|
|
47
44
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
48
45
|
|
|
49
46
|
_classPrivateFieldSet(this, _$input, shadowRoot.querySelector('input'));
|
package/tooltip/index.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { attrValueToPixels, defineCustomElement, getBooleanAttribute, getIntegerAttribute, getAttribute, getLiteralAttribute, updateBooleanAttribute, updateAttribute, updateLiteralAttribute, getRect } from '../utils';
|
|
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
|
const orientationValues = ['top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right'];
|
|
4
4
|
const template = document.createElement('template');
|
|
5
5
|
template.innerHTML = templateHTML;
|
|
6
|
-
defineCustomElement('sinch-tooltip', class extends
|
|
6
|
+
defineCustomElement('sinch-tooltip', class extends NectaryElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
9
|
-
const shadowRoot = this.attachShadow(
|
|
10
|
-
mode: 'closed'
|
|
11
|
-
});
|
|
9
|
+
const shadowRoot = this.attachShadow();
|
|
12
10
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
13
11
|
this.$tooltipText = shadowRoot.querySelector('#text');
|
|
14
12
|
}
|
package/utils.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import type { TRect } from './types';
|
|
2
|
-
export declare const getReactEventHandler: ($element: HTMLElement, handlerName: string) => ((arg?: any) => void) | null;
|
|
3
2
|
export declare const defineCustomElement: (name: string, constructor: CustomElementConstructor) => void;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
3
|
+
export declare const setNectaryRegistry: (registry: CustomElementRegistry) => void;
|
|
4
|
+
declare global {
|
|
5
|
+
interface ShadowRootInit {
|
|
6
|
+
customElements?: CustomElementRegistry;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class NectaryElement extends HTMLElement {
|
|
10
|
+
attachShadow(): ShadowRoot;
|
|
11
|
+
}
|
|
12
|
+
export declare const getReactEventHandler: ($element: HTMLElement, handlerName: string) => ((arg?: any) => void) | null;
|
|
6
13
|
export declare const updateBooleanAttribute: ($element: Element, attrName: string, attrValue: boolean | null | undefined) => void;
|
|
7
14
|
export declare const updateExplicitBooleanAttribute: ($element: Element, attrName: string, attrValue: boolean | null | undefined) => void;
|
|
8
15
|
export declare const isAttrTrue: (attrValue: string | null) => boolean;
|
package/utils.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
const nectaryDefinitions = new Map();
|
|
2
2
|
let nectaryRegistry = null;
|
|
3
|
-
export const getReactEventHandler = ($element, handlerName) => {
|
|
4
|
-
for (const key in $element) {
|
|
5
|
-
if (key.startsWith('__reactProps$')) {
|
|
6
|
-
return $element[key][handlerName];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return null;
|
|
11
|
-
};
|
|
12
3
|
export const defineCustomElement = (name, constructor) => {
|
|
13
4
|
if (nectaryRegistry !== null) {
|
|
14
5
|
if (nectaryRegistry.get(name) == null) {
|
|
@@ -19,12 +10,8 @@ export const defineCustomElement = (name, constructor) => {
|
|
|
19
10
|
}
|
|
20
11
|
|
|
21
12
|
nectaryDefinitions.set(name, constructor);
|
|
22
|
-
|
|
23
|
-
if (customElements.get(name) == null) {
|
|
24
|
-
customElements.define(name, constructor);
|
|
25
|
-
}
|
|
26
13
|
};
|
|
27
|
-
export const
|
|
14
|
+
export const setNectaryRegistry = registry => {
|
|
28
15
|
if (nectaryRegistry !== null) {
|
|
29
16
|
throw new Error('Nectary elements already registered');
|
|
30
17
|
}
|
|
@@ -36,6 +23,27 @@ export const defineNectaryElements = registry => {
|
|
|
36
23
|
nectaryRegistry.define(name, ctor);
|
|
37
24
|
}
|
|
38
25
|
}
|
|
26
|
+
|
|
27
|
+
nectaryDefinitions.clear();
|
|
28
|
+
};
|
|
29
|
+
export class NectaryElement extends HTMLElement {
|
|
30
|
+
attachShadow() {
|
|
31
|
+
return super.attachShadow({
|
|
32
|
+
mode: 'closed',
|
|
33
|
+
delegatesFocus: true,
|
|
34
|
+
customElements: nectaryRegistry
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
export const getReactEventHandler = ($element, handlerName) => {
|
|
40
|
+
for (const key in $element) {
|
|
41
|
+
if (key.startsWith('__reactProps$')) {
|
|
42
|
+
return $element[key][handlerName];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return null;
|
|
39
47
|
};
|
|
40
48
|
export const updateBooleanAttribute = ($element, attrName, attrValue) => {
|
|
41
49
|
if (attrValue === true) {
|
package/icon/add-alert/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99Zm7-6v-6c0-3.35-2.36-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-1.29 1.29c-.63.63-.19 1.71.7 1.71h15.17c.89 0 1.34-1.08.71-1.71L19 17Zm-4-3.99h-2v2c0 .55-.45 1-1 1s-1-.45-1-1v-2H9c-.55 0-1-.45-1-1V12c0-.55.45-1 1-1h2V9c0-.55.45-1 1-1s1 .45 1 1v2h2c.55 0 1 .45 1 1v.01c0 .55-.45 1-1 1Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-add-alert', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="m21.81 12.74-.82-.63v-.22l.8-.63c.16-.12.2-.34.1-.51l-.85-1.48a.395.395 0 0 0-.35-.2c-.05 0-.1.01-.15.03l-.95.38c-.08-.05-.11-.07-.19-.11l-.15-1.01a.408.408 0 0 0-.4-.36h-1.71c-.2 0-.37.15-.4.34l-.14 1.01c-.03.02-.07.03-.1.05l-.09.06-.95-.38a.401.401 0 0 0-.5.17l-.85 1.48c-.1.17-.06.39.1.51l.8.63v.23l-.8.63a.39.39 0 0 0-.1.51l.85 1.48c.07.13.21.2.35.2.05 0 .1-.01.15-.03l.95-.37c.08.05.12.07.2.11l.15 1.01c.03.2.2.34.4.34h1.71c.2 0 .37-.15.4-.34l.15-1.01c.03-.02.07-.03.1-.05l.09-.06.95.38a.401.401 0 0 0 .5-.17l.85-1.48a.39.39 0 0 0-.1-.51ZM18 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5ZM17 17h2v4c0 1.1-.9 2-2 2H7c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v4h-2V6H7v12h10v-1Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-app-settings-alt', createIconClass(templateHTML));
|
package/icon/apps/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M4 8h4V4H4v4Zm6 12h4v-4h-4v4Zm-6 0h4v-4H4v4Zm0-6h4v-4H4v4Zm6 0h4v-4h-4v4Zm6-10v4h4V4h-4Zm-6 4h4V4h-4v4Zm6 6h4v-4h-4v4Zm0 6h4v-4h-4v4Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-apps', createIconClass(templateHTML));
|
package/icon/arrow-back/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-back', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M16.62 2.99a1.25 1.25 0 0 0-1.77 0L6.54 11.3a.996.996 0 0 0 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-back-ios', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M11 5v11.17l-4.88-4.88c-.39-.39-1.03-.39-1.42 0a.996.996 0 0 0 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 1 0-1.41-1.41L13 16.17V5c0-.55-.45-1-1-1s-1 .45-1 1Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-downward', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="m8.71 11.71 2.59 2.59c.39.39 1.02.39 1.41 0l2.59-2.59c.63-.63.18-1.71-.71-1.71H9.41c-.89 0-1.33 1.08-.7 1.71Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-drop-down', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm-.35 12.65-2.79-2.79c-.32-.32-.1-.86.35-.86h5.59c.45 0 .67.54.35.85l-2.79 2.79c-.2.2-.52.2-.71.01Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-drop-down-circle', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M8.71 12.29 11.3 9.7a.996.996 0 0 1 1.41 0l2.59 2.59c.63.63.18 1.71-.71 1.71H9.41c-.89 0-1.33-1.08-.7-1.71Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-drop-up', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59a.996.996 0 0 0 0-1.41l-6.58-6.6a.996.996 0 1 0-1.41 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-forward', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98a1.25 1.25 0 0 0-1.77 0 1.25 1.25 0 0 0 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-forward-ios', createIconClass(templateHTML));
|
package/icon/arrow-left/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M12.29 8.71 9.7 11.3a.996.996 0 0 0 0 1.41l2.59 2.59c.63.63 1.71.18 1.71-.71V9.41c0-.89-1.08-1.33-1.71-.7Z" fill="#0A273D"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-left', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="m11.71 15.29 2.59-2.59a.996.996 0 0 0 0-1.41L11.71 8.7c-.63-.62-1.71-.18-1.71.71v5.17c0 .9 1.08 1.34 1.71.71Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-right', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0a.996.996 0 0 0 0-1.41l-6.59-6.59a.996.996 0 0 0-1.41 0l-6.6 6.58a.996.996 0 1 0 1.41 1.41L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-arrow-upward', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M21 10V4c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2L1 16c0 1.1.9 2 2 2h11v-5c0-1.66 1.34-3 3-3h4Zm-9.47.67c-.32.2-.74.2-1.06 0L3.4 6.25a.85.85 0 1 1 .9-1.44L11 9l6.7-4.19a.85.85 0 1 1 .9 1.44l-7.07 4.42Z" fill="#0A273D"/><path d="M22 14c-.55 0-1 .45-1 1v3c0 1.1-.9 2-2 2s-2-.9-2-2v-4.5c0-.28.22-.5.5-.5s.5.22.5.5V17c0 .55.45 1 1 1s1-.45 1-1v-3.5a2.5 2.5 0 0 0-5 0V18c0 2.21 1.79 4 4 4s4-1.79 4-4v-3c0-.55-.45-1-1-1Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-attach-email', createIconClass(templateHTML));
|
package/icon/attachment/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M17.75 16H7.17c-2.09 0-3.95-1.53-4.15-3.61A3.998 3.998 0 0 1 7 8h12.36c1.31 0 2.5.94 2.63 2.24A2.5 2.5 0 0 1 19.5 13H9c-.55 0-1-.45-1-1s.45-1 1-1h8.75c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H9.14c-1.31 0-2.5.94-2.63 2.24A2.5 2.5 0 0 0 9 14.5h10.33c2.09 0 3.95-1.53 4.15-3.61A3.993 3.993 0 0 0 19.5 6.5H7.23c-2.87 0-5.44 2.1-5.71 4.96A5.505 5.505 0 0 0 7 17.5h10.75c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-attachment', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M16 9c-.7 0-1.37.1-2 .29V7c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h5.68A6.999 6.999 0 0 0 23 16c0-3.87-3.13-7-7-7Zm0 12c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5ZM14 4c.55 0 1-.45 1-1s-.45-1-1-1h-2.5l-.71-.71c-.18-.18-.44-.29-.7-.29H5.91c-.26 0-.52.11-.7.29L4.5 2H2c-.55 0-1 .45-1 1s.45 1 1 1h12Z"/><path d="M15.75 12c-.41 0-.75.34-.75.75v3.68c0 .36.19.68.5.86l2.52 1.47c.33.19.75.09.96-.22a.72.72 0 0 0-.24-1.02L16.5 16.2v-3.45c0-.41-.34-.75-.75-.75Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-auto-delete', createIconClass(templateHTML));
|
package/icon/campaign/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M18 12c0 .55.45 1 1 1h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1Zm-1.41 4.82a.966.966 0 0 0 .2 1.37c.53.39 1.09.81 1.62 1.21.44.33 1.06.24 1.38-.2 0-.01.01-.01.01-.02a.978.978 0 0 0-.2-1.38c-.53-.4-1.09-.82-1.61-1.21a.993.993 0 0 0-1.39.21c0 .01-.01.02-.01.02Zm3.22-12.01c0-.01-.01-.01-.01-.02a.98.98 0 0 0-1.38-.2c-.53.4-1.1.82-1.62 1.22-.44.33-.52.95-.19 1.38 0 .01.01.01.01.02.33.44.94.53 1.38.2.53-.39 1.09-.82 1.62-1.22.43-.32.51-.94.19-1.38ZM8 9H4c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v3c0 .55.45 1 1 1s1-.45 1-1v-3h1l5 3V6L8 9Zm7.5 3c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-campaign', createIconClass(templateHTML));
|
package/icon/cancel/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2Zm4.3 14.3a.996.996 0 0 1-1.41 0L12 13.41 9.11 16.3a.996.996 0 1 1-1.41-1.41L10.59 12 7.7 9.11A.996.996 0 1 1 9.11 7.7L12 10.59l2.89-2.89a.996.996 0 1 1 1.41 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-cancel', createIconClass(templateHTML));
|
package/icon/check/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M9 16.17 5.53 12.7a.996.996 0 1 0-1.41 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71a.996.996 0 1 0-1.41-1.41L9 16.17Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-check', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M14.71 6.71a.996.996 0 0 0-1.41 0L8.71 11.3a.996.996 0 0 0 0 1.41l4.59 4.59a.996.996 0 1 0 1.41-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-chevron-left', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M9.29 6.71a.996.996 0 0 0 0 1.41L13.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-chevron-right', createIconClass(templateHTML));
|
package/icon/close/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12 5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-close', createIconClass(templateHTML));
|
package/icon/cloud/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-cloud', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3h.14c.44-1.73 1.99-3 3.86-3 2.21 0 4 1.79 4 4h.5a2.5 2.5 0 0 1 0 5Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-cloud-circle', createIconClass(templateHTML));
|
package/icon/cloud-done/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96Zm-8.64 6.25a.996.996 0 0 1-1.41 0L7.2 14.2a.996.996 0 1 1 1.41-1.41L10 14.18l4.48-4.48a.996.996 0 1 1 1.41 1.41l-5.18 5.18Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-cloud-done', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96ZM17 13l-4.65 4.65c-.2.2-.51.2-.71 0L7 13h3V9h4v4h3Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-cloud-download', createIconClass(templateHTML));
|
package/icon/cloud-off/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M24 15c0-2.64-2.05-4.78-4.65-4.96A7.49 7.49 0 0 0 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19a2.996 2.996 0 0 1 1.79 5.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81ZM3.71 4.56a.996.996 0 0 0 0 1.41l2.06 2.06h-.42a5.99 5.99 0 0 0-5.29 6.79C.46 17.84 3.19 20 6.22 20h11.51l1.29 1.29a.996.996 0 1 0 1.41-1.41L5.12 4.56a.996.996 0 0 0-1.41 0ZM6 18c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73l8 8H6Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-cloud-off', createIconClass(templateHTML));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { defineCustomElement } from '../../utils';
|
|
2
|
-
import { createIconClass } from '../create-icon-class';
|
|
3
|
-
const templateHTML = '<svg viewBox="0 0 24 24"><path d="M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96ZM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3Z"/></svg>';
|
|
4
|
-
defineCustomElement('sinch-icon-cloud-queue', createIconClass(templateHTML));
|