@0001-labs/design-system-1 0.3.0-alpha.13 → 0.3.0-alpha.14
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/DS1/0-face/calendar.ts +194 -0
- package/DS1/0-face/carousel.ts +623 -0
- package/DS1/0-face/component-visibility.ts +13 -0
- package/DS1/0-face/copy-text.ts +96 -0
- package/DS1/0-face/device.ts +8 -58
- package/DS1/0-face/dialog-swipe.ts +249 -0
- package/DS1/0-face/dialogs.ts +208 -0
- package/DS1/0-face/drawer.ts +258 -0
- package/DS1/0-face/feedback-words.ts +36 -0
- package/DS1/0-face/feedback.ts +40 -0
- package/DS1/0-face/format.ts +700 -0
- package/DS1/0-face/generated/toast-assets.ts +18 -0
- package/DS1/0-face/grid-fit.ts +1 -1
- package/DS1/0-face/grid.ts +3 -2
- package/DS1/0-face/header.ts +78 -0
- package/DS1/0-face/i18n.ts +93 -18
- package/DS1/0-face/keys.ts +276 -0
- package/DS1/0-face/languages.ts +4 -4
- package/DS1/0-face/layout-inspector.ts +6 -6
- package/DS1/0-face/library-styles.ts +33 -0
- package/DS1/0-face/load-toaster.ts +7 -0
- package/DS1/0-face/preference-options.ts +29 -0
- package/DS1/0-face/preferences.ts +3 -11
- package/DS1/0-face/pricing.ts +98 -43
- package/DS1/0-face/scaling.ts +160 -4
- package/DS1/0-face/shared-words.ts +9 -4
- package/DS1/0-face/sidebar.ts +201 -0
- package/DS1/0-face/theme-bootstrap.js +184 -0
- package/DS1/0-face/theme.ts +89 -47
- package/DS1/0-face/toast-queue.ts +157 -0
- package/DS1/0-face/toaster.ts +384 -0
- package/DS1/0-face/tooltips.ts +157 -15
- package/DS1/0-face/translations/da.json +60 -1
- package/DS1/0-face/translations/de.json +60 -1
- package/DS1/0-face/translations/en.json +60 -1
- package/DS1/0-face/translations/es.json +60 -1
- package/DS1/0-face/translations/fi.json +60 -1
- package/DS1/0-face/translations/fr.json +60 -1
- package/DS1/0-face/translations/is.json +60 -1
- package/DS1/0-face/translations/it.json +60 -1
- package/DS1/0-face/translations/ja.json +60 -1
- package/DS1/0-face/translations/ko.json +60 -1
- package/DS1/0-face/translations/nb.json +60 -1
- package/DS1/0-face/translations/pt-BR.json +60 -1
- package/DS1/0-face/translations/pt.json +60 -1
- package/DS1/0-face/translations/sv.json +60 -1
- package/DS1/0-face/translations/zh.json +60 -1
- package/DS1/0-face/translations-format.ts +3 -4
- package/DS1/1-root/card.css +192 -0
- package/DS1/1-root/carousel.css +136 -0
- package/DS1/1-root/cjk.css +23 -0
- package/DS1/1-root/component-metrics.css +1 -0
- package/DS1/1-root/component-tokens.css +51 -8
- package/DS1/1-root/controls.css +887 -14
- package/DS1/1-root/dialog-placement.css +191 -0
- package/DS1/1-root/document.css +183 -0
- package/DS1/1-root/drawer.css +83 -0
- package/DS1/1-root/empty.css +83 -0
- package/DS1/1-root/figures.css +141 -0
- package/DS1/1-root/fonts/Iosevka-LICENSE.md +3 -1
- package/DS1/1-root/fonts/Iosevka-Regular.woff2 +0 -0
- package/DS1/1-root/fonts.css +69 -0
- package/DS1/1-root/footer.css +186 -0
- package/DS1/1-root/header.css +165 -0
- package/DS1/1-root/kbd.css +46 -0
- package/DS1/1-root/library-tokens.ts +91 -0
- package/DS1/1-root/measures.ts +53 -0
- package/DS1/1-root/notice.css +165 -0
- package/DS1/1-root/one.css +14 -84
- package/DS1/1-root/one.semantic.css +200 -148
- package/DS1/1-root/palette.css +58 -0
- package/DS1/1-root/palette.ts +19 -0
- package/DS1/1-root/progress.css +356 -0
- package/DS1/1-root/prose.css +202 -0
- package/DS1/1-root/row.css +297 -0
- package/DS1/1-root/table.css +111 -0
- package/DS1/1-root/text.css +70 -0
- package/DS1/2-core/button-split.ts +55 -0
- package/DS1/2-core/chart/chart.css +169 -0
- package/DS1/2-core/chart/grid-chart.ts +554 -0
- package/DS1/2-core/ds-avatar.ts +25 -6
- package/DS1/2-core/ds-badge.ts +10 -10
- package/DS1/2-core/ds-button.ts +111 -26
- package/DS1/2-core/ds-card.ts +135 -105
- package/DS1/2-core/ds-chart.ts +327 -0
- package/DS1/2-core/ds-composer.ts +8 -2
- package/DS1/2-core/ds-cycle.ts +97 -21
- package/DS1/2-core/ds-empty.ts +120 -0
- package/DS1/2-core/ds-icon.ts +11 -2
- package/DS1/2-core/ds-input.ts +165 -6
- package/DS1/2-core/ds-kbd.ts +78 -0
- package/DS1/2-core/ds-loading.ts +72 -0
- package/DS1/2-core/ds-notice.ts +180 -0
- package/DS1/2-core/ds-progress.ts +380 -0
- package/DS1/2-core/ds-spacing-handle.ts +22 -0
- package/DS1/2-core/ds-stat.ts +174 -0
- package/DS1/2-core/ds-switch.ts +1 -0
- package/DS1/2-core/ds-text.ts +15 -2
- package/DS1/2-core/ds-toast.ts +354 -0
- package/DS1/2-core/figures.ts +105 -0
- package/DS1/2-core/generated/ds-icon-map.ts +234 -128
- package/DS1/2-core/generated/icon-avatar.ts +2 -0
- package/DS1/2-core/generated/icons-extra.ts +118 -65
- package/DS1/2-core/generated/icons-immediate.ts +1 -1
- package/DS1/2-core/spacing-handle.ts +95 -0
- package/DS1/2-core/styles/ds-avatar.css +9 -8
- package/DS1/2-core/styles/ds-button-host.css +26 -3
- package/DS1/2-core/styles/ds-button-split.css +67 -0
- package/DS1/2-core/styles/ds-button.css +49 -15
- package/DS1/2-core/styles/ds-card.css +34 -0
- package/DS1/2-core/styles/ds-composer.css +13 -0
- package/DS1/2-core/styles/ds-cycle.css +69 -0
- package/DS1/2-core/styles/ds-empty.css +18 -0
- package/DS1/2-core/styles/ds-gap.css +1 -0
- package/DS1/2-core/styles/ds-icon.css +1 -0
- package/DS1/2-core/styles/ds-input.css +59 -6
- package/DS1/2-core/styles/ds-kbd.css +12 -0
- package/DS1/2-core/styles/ds-loading.css +13 -0
- package/DS1/2-core/styles/ds-notice.css +30 -0
- package/DS1/2-core/styles/ds-progress.css +25 -0
- package/DS1/2-core/styles/ds-select.css +2 -2
- package/DS1/2-core/styles/ds-spacing-handle.css +8 -0
- package/DS1/2-core/styles/ds-split.css +2 -62
- package/DS1/2-core/styles/ds-stat.css +34 -0
- package/DS1/2-core/styles/ds-switch.css +16 -1
- package/DS1/2-core/styles/ds-text.css +43 -12
- package/DS1/2-core/styles/ds-toast.css +182 -0
- package/DS1/2-core/styles/ds-tooltip.css +1 -0
- package/DS1/3-unit/calendar-base.ts +263 -0
- package/DS1/3-unit/ds-accordion.ts +9 -1
- package/DS1/3-unit/ds-avatar-group.ts +1 -0
- package/DS1/3-unit/ds-calendar-large.ts +349 -0
- package/DS1/3-unit/ds-calendar.ts +344 -0
- package/DS1/3-unit/ds-carousel.ts +368 -0
- package/DS1/3-unit/ds-date-picker.ts +540 -0
- package/DS1/3-unit/ds-form.ts +45 -37
- package/DS1/3-unit/ds-list.ts +48 -1
- package/DS1/3-unit/ds-matrix.ts +318 -0
- package/DS1/3-unit/ds-menu.ts +8 -4
- package/DS1/3-unit/ds-row.ts +84 -1
- package/DS1/3-unit/ds-sidebar.ts +280 -0
- package/DS1/3-unit/ds-table.ts +75 -34
- package/DS1/3-unit/styles/ds-accordion.css +1 -0
- package/DS1/3-unit/styles/ds-avatar-group.css +2 -4
- package/DS1/3-unit/styles/ds-calendar-large.css +165 -0
- package/DS1/3-unit/styles/ds-calendar.css +238 -0
- package/DS1/3-unit/styles/ds-carousel.css +30 -0
- package/DS1/3-unit/styles/ds-date-picker.css +124 -0
- package/DS1/3-unit/styles/ds-list.css +1 -0
- package/DS1/3-unit/styles/ds-matrix.css +203 -0
- package/DS1/3-unit/styles/ds-menu.css +31 -6
- package/DS1/3-unit/styles/ds-row.css +84 -2
- package/DS1/3-unit/styles/ds-sidebar.css +117 -0
- package/DS1/3-unit/styles/ds-table.css +3 -74
- package/DS1/4-page/ds-dialog.ts +40 -4
- package/DS1/4-page/ds-document.ts +240 -0
- package/DS1/4-page/ds-footer.ts +165 -0
- package/DS1/4-page/ds-grid.ts +39 -59
- package/DS1/4-page/ds-header.ts +171 -0
- package/DS1/4-page/ds-page.ts +184 -0
- package/DS1/4-page/email.ts +2 -3
- package/DS1/4-page/styles/ds-container.css +1 -0
- package/DS1/4-page/styles/ds-document.css +18 -0
- package/DS1/4-page/styles/ds-footer.css +29 -0
- package/DS1/4-page/styles/ds-grid.css +31 -85
- package/DS1/4-page/styles/ds-header.css +57 -0
- package/DS1/4-page/styles/ds-page.css +214 -0
- package/DS1/components.ts +7 -1
- package/DS1/index.ts +26 -6
- package/DS1/react/avatar.ts +4 -5
- package/DS1/react/button-split.ts +29 -0
- package/DS1/react/button.ts +32 -13
- package/DS1/react/carousel.ts +76 -0
- package/DS1/react/dialog.ts +36 -5
- package/DS1/react/document.ts +14 -0
- package/DS1/react/empty.ts +32 -0
- package/DS1/react/footer.ts +17 -0
- package/DS1/react/header.ts +15 -0
- package/DS1/react/input.ts +28 -17
- package/DS1/react/kbd.ts +21 -0
- package/DS1/react/loading.ts +18 -0
- package/DS1/react/notice.ts +59 -0
- package/DS1/react/page.ts +13 -0
- package/DS1/react/progress.ts +99 -0
- package/DS1/react/sidebar.ts +60 -0
- package/DS1/react/spacing-handle.ts +21 -0
- package/DS1/react/stat.ts +73 -0
- package/DS1/react/toast.ts +82 -0
- package/DS1/x-icon/Tabler-LICENSE.md +27 -0
- package/DS1/x-icon/airtable.svg +5 -0
- package/DS1/x-icon/attach.svg +3 -0
- package/DS1/x-icon/audio.svg +3 -0
- package/DS1/x-icon/bag-alt.svg +3 -0
- package/DS1/x-icon/bank.svg +3 -0
- package/DS1/x-icon/banknote.svg +3 -0
- package/DS1/x-icon/bolt.svg +3 -0
- package/DS1/x-icon/book-alt.svg +3 -0
- package/DS1/x-icon/book.svg +4 -0
- package/DS1/x-icon/box.svg +3 -0
- package/DS1/x-icon/briefcase.svg +3 -0
- package/DS1/x-icon/building.svg +4 -0
- package/DS1/x-icon/car.svg +3 -0
- package/DS1/x-icon/card.svg +3 -0
- package/DS1/x-icon/cart.svg +3 -0
- package/DS1/x-icon/{ezo-item-button-start.svg → chevron-left.svg} +1 -1
- package/DS1/x-icon/{ezo-android-screen-stats.svg → chevron-right.svg} +1 -1
- package/DS1/x-icon/cloud.svg +3 -0
- package/DS1/x-icon/coffee.svg +3 -0
- package/DS1/x-icon/coins.svg +3 -0
- package/DS1/x-icon/cursor.svg +3 -0
- package/DS1/x-icon/curve.svg +7 -0
- package/DS1/x-icon/dislike.svg +4 -0
- package/DS1/x-icon/dot-bank.svg +3 -0
- package/DS1/x-icon/dot-banknote.svg +3 -0
- package/DS1/x-icon/dot-banknotes.svg +3 -0
- package/DS1/x-icon/dot-card.svg +3 -0
- package/DS1/x-icon/dot-coin.svg +3 -0
- package/DS1/x-icon/dot-coins.svg +3 -0
- package/DS1/x-icon/dot-receipt.svg +3 -0
- package/DS1/x-icon/dot-safe.svg +3 -0
- package/DS1/x-icon/dot-transfer.svg +3 -0
- package/DS1/x-icon/dot-wallet.svg +3 -0
- package/DS1/x-icon/download.svg +4 -0
- package/DS1/x-icon/drive.svg +5 -0
- package/DS1/x-icon/drop.svg +3 -0
- package/DS1/x-icon/dropbox.svg +3 -0
- package/DS1/x-icon/dumbbell.svg +3 -0
- package/DS1/x-icon/eye-off.svg +3 -0
- package/DS1/x-icon/eye.svg +3 -0
- package/DS1/x-icon/facebook.svg +3 -0
- package/DS1/x-icon/figma.svg +5 -0
- package/DS1/x-icon/flame.svg +3 -0
- package/DS1/x-icon/flip.svg +5 -0
- package/DS1/x-icon/food.svg +3 -0
- package/DS1/x-icon/fuel.svg +3 -0
- package/DS1/x-icon/game.svg +3 -0
- package/DS1/x-icon/gift.svg +3 -0
- package/DS1/x-icon/github.svg +3 -0
- package/DS1/x-icon/heart.svg +3 -0
- package/DS1/x-icon/history.svg +3 -0
- package/DS1/x-icon/home-alt.svg +3 -0
- package/DS1/x-icon/income.svg +3 -0
- package/DS1/x-icon/info.svg +5 -0
- package/DS1/x-icon/instagram.svg +5 -0
- package/DS1/x-icon/jpbank.svg +3 -0
- package/DS1/x-icon/key.svg +4 -0
- package/DS1/x-icon/keyboard.svg +3 -0
- package/DS1/x-icon/like.svg +4 -0
- package/DS1/x-icon/linkedin.svg +7 -0
- package/DS1/x-icon/loom.svg +6 -0
- package/DS1/x-icon/map.svg +4 -0
- package/DS1/x-icon/medical.svg +3 -0
- package/DS1/x-icon/{ezo-android-screen-lists.svg → minus.svg} +1 -1
- package/DS1/x-icon/moon.svg +3 -0
- package/DS1/x-icon/move.svg +3 -0
- package/DS1/x-icon/music-alt.svg +3 -0
- package/DS1/x-icon/music.svg +5 -0
- package/DS1/x-icon/notion.svg +6 -0
- package/DS1/x-icon/offline.svg +3 -0
- package/DS1/x-icon/pause.svg +4 -0
- package/DS1/x-icon/paw.svg +3 -0
- package/DS1/x-icon/pdf.svg +3 -0
- package/DS1/x-icon/people.svg +5 -0
- package/DS1/x-icon/percent.svg +3 -0
- package/DS1/x-icon/phone.svg +3 -0
- package/DS1/x-icon/pill.svg +3 -0
- package/DS1/x-icon/plane.svg +3 -0
- package/DS1/x-icon/postal.svg +3 -0
- package/DS1/x-icon/present.svg +4 -0
- package/DS1/x-icon/reaction.svg +5 -0
- package/DS1/x-icon/receipt.svg +3 -0
- package/DS1/x-icon/refresh.svg +3 -0
- package/DS1/x-icon/refund.svg +3 -0
- package/DS1/x-icon/repeat.svg +3 -0
- package/DS1/x-icon/rotate.svg +4 -0
- package/DS1/x-icon/safe.svg +3 -0
- package/DS1/x-icon/school-alt.svg +3 -0
- package/DS1/x-icon/shield-alt.svg +3 -0
- package/DS1/x-icon/shield.svg +4 -0
- package/DS1/x-icon/shirt.svg +3 -0
- package/DS1/x-icon/shop.svg +3 -0
- package/DS1/x-icon/sign-in.svg +3 -0
- package/DS1/x-icon/sign-out.svg +3 -0
- package/DS1/x-icon/slack.svg +6 -0
- package/DS1/x-icon/sparkle.svg +3 -0
- package/DS1/x-icon/start.svg +4 -0
- package/DS1/x-icon/{ezo-item-button-reopen.svg → stop.svg} +1 -1
- package/DS1/x-icon/sun.svg +3 -0
- package/DS1/x-icon/system.svg +4 -0
- package/DS1/x-icon/tag.svg +3 -0
- package/DS1/x-icon/ticket.svg +3 -0
- package/DS1/x-icon/title-struck.svg +4 -0
- package/DS1/x-icon/train.svg +3 -0
- package/DS1/x-icon/transfer.svg +3 -0
- package/DS1/x-icon/tv.svg +3 -0
- package/DS1/x-icon/upload.svg +4 -0
- package/DS1/x-icon/video.svg +4 -0
- package/DS1/x-icon/vimeo.svg +3 -0
- package/DS1/x-icon/wallet.svg +3 -0
- package/DS1/x-icon/wifi.svg +3 -0
- package/DS1/x-icon/window.svg +4 -0
- package/DS1/x-icon/wrench.svg +3 -0
- package/DS1/x-icon/x-brand.svg +4 -0
- package/DS1/x-icon/youtube.svg +4 -0
- package/README.md +3 -3
- package/dist/0-face/calendar.d.ts +75 -0
- package/dist/0-face/calendar.d.ts.map +1 -0
- package/dist/0-face/calendar.js +149 -0
- package/dist/0-face/carousel.d.ts +174 -0
- package/dist/0-face/carousel.d.ts.map +1 -0
- package/dist/0-face/carousel.js +583 -0
- package/dist/0-face/component-visibility.d.ts +7 -0
- package/dist/0-face/component-visibility.d.ts.map +1 -0
- package/dist/0-face/component-visibility.js +10 -0
- package/dist/0-face/copy-text.d.ts +11 -0
- package/dist/0-face/copy-text.d.ts.map +1 -0
- package/dist/0-face/copy-text.js +97 -0
- package/dist/0-face/device.d.ts +3 -7
- package/dist/0-face/device.d.ts.map +1 -1
- package/dist/0-face/device.js +7 -41
- package/dist/0-face/dialog-swipe.d.ts +49 -0
- package/dist/0-face/dialog-swipe.d.ts.map +1 -0
- package/dist/0-face/dialog-swipe.js +239 -0
- package/dist/0-face/dialogs.d.ts +33 -0
- package/dist/0-face/dialogs.d.ts.map +1 -0
- package/dist/0-face/dialogs.js +173 -0
- package/dist/0-face/drawer.d.ts +64 -0
- package/dist/0-face/drawer.d.ts.map +1 -0
- package/dist/0-face/drawer.js +256 -0
- package/dist/0-face/feedback-words.d.ts +21 -0
- package/dist/0-face/feedback-words.d.ts.map +1 -0
- package/dist/0-face/feedback-words.js +30 -0
- package/dist/0-face/feedback.d.ts +41 -0
- package/dist/0-face/feedback.d.ts.map +1 -0
- package/dist/0-face/feedback.js +35 -0
- package/dist/0-face/format.d.ts +166 -0
- package/dist/0-face/format.d.ts.map +1 -0
- package/dist/0-face/format.js +445 -0
- package/dist/0-face/generated/toast-assets.d.ts +11 -0
- package/dist/0-face/generated/toast-assets.d.ts.map +1 -0
- package/dist/0-face/generated/toast-assets.js +14 -0
- package/dist/0-face/grid-fit.js +1 -1
- package/dist/0-face/grid.d.ts.map +1 -1
- package/dist/0-face/grid.js +2 -1
- package/dist/0-face/header.d.ts +38 -0
- package/dist/0-face/header.d.ts.map +1 -0
- package/dist/0-face/header.js +80 -0
- package/dist/0-face/i18n.d.ts +32 -2
- package/dist/0-face/i18n.d.ts.map +1 -1
- package/dist/0-face/i18n.js +65 -19
- package/dist/0-face/keys.d.ts +104 -0
- package/dist/0-face/keys.d.ts.map +1 -0
- package/dist/0-face/keys.js +253 -0
- package/dist/0-face/languages.d.ts +2 -2
- package/dist/0-face/languages.js +3 -3
- package/dist/0-face/layout-inspector.js +6 -6
- package/dist/0-face/library-styles.d.ts +7 -0
- package/dist/0-face/library-styles.d.ts.map +1 -0
- package/dist/0-face/library-styles.js +29 -0
- package/dist/0-face/load-toaster.d.ts +8 -0
- package/dist/0-face/load-toaster.d.ts.map +1 -0
- package/dist/0-face/load-toaster.js +7 -0
- package/dist/0-face/preference-options.d.ts +34 -0
- package/dist/0-face/preference-options.d.ts.map +1 -0
- package/dist/0-face/preference-options.js +1 -0
- package/dist/0-face/preferences.d.ts +3 -12
- package/dist/0-face/preferences.d.ts.map +1 -1
- package/dist/0-face/pricing.d.ts +19 -9
- package/dist/0-face/pricing.d.ts.map +1 -1
- package/dist/0-face/pricing.js +81 -40
- package/dist/0-face/scaling.d.ts +71 -1
- package/dist/0-face/scaling.d.ts.map +1 -1
- package/dist/0-face/scaling.js +108 -3
- package/dist/0-face/shared-words.d.ts +9 -4
- package/dist/0-face/shared-words.d.ts.map +1 -1
- package/dist/0-face/sidebar.d.ts +69 -0
- package/dist/0-face/sidebar.d.ts.map +1 -0
- package/dist/0-face/sidebar.js +191 -0
- package/dist/0-face/theme-bootstrap.d.ts +1 -0
- package/dist/0-face/theme-bootstrap.d.ts.map +1 -0
- package/dist/0-face/theme-bootstrap.js +214 -0
- package/dist/0-face/theme.d.ts +32 -0
- package/dist/0-face/theme.d.ts.map +1 -1
- package/dist/0-face/theme.js +69 -43
- package/dist/0-face/toast-queue.d.ts +110 -0
- package/dist/0-face/toast-queue.d.ts.map +1 -0
- package/dist/0-face/toast-queue.js +98 -0
- package/dist/0-face/toaster.d.ts +27 -0
- package/dist/0-face/toaster.d.ts.map +1 -0
- package/dist/0-face/toaster.js +373 -0
- package/dist/0-face/tooltips.d.ts +24 -1
- package/dist/0-face/tooltips.d.ts.map +1 -1
- package/dist/0-face/tooltips.js +155 -16
- package/dist/0-face/translations/da.json +60 -1
- package/dist/0-face/translations/de.json +60 -1
- package/dist/0-face/translations/en.json +60 -1
- package/dist/0-face/translations/es.json +60 -1
- package/dist/0-face/translations/fi.json +60 -1
- package/dist/0-face/translations/fr.json +60 -1
- package/dist/0-face/translations/is.json +60 -1
- package/dist/0-face/translations/it.json +60 -1
- package/dist/0-face/translations/ja.json +60 -1
- package/dist/0-face/translations/ko.json +60 -1
- package/dist/0-face/translations/nb.json +60 -1
- package/dist/0-face/translations/pt-BR.json +60 -1
- package/dist/0-face/translations/pt.json +60 -1
- package/dist/0-face/translations/sv.json +60 -1
- package/dist/0-face/translations/zh.json +60 -1
- package/dist/0-face/translations-format.d.ts.map +1 -1
- package/dist/0-face/translations-format.js +3 -4
- package/dist/0-face/tree.d.ts +69 -0
- package/dist/0-face/tree.d.ts.map +1 -0
- package/dist/0-face/tree.js +191 -0
- package/dist/1-root/library-tokens.d.ts +31 -0
- package/dist/1-root/library-tokens.d.ts.map +1 -0
- package/dist/1-root/library-tokens.js +84 -0
- package/dist/1-root/measures.d.ts +52 -0
- package/dist/1-root/measures.d.ts.map +1 -0
- package/dist/1-root/measures.js +49 -0
- package/dist/1-root/palette.d.ts +5 -0
- package/dist/1-root/palette.d.ts.map +1 -1
- package/dist/1-root/palette.js +18 -0
- package/dist/2-core/button-split.d.ts +21 -0
- package/dist/2-core/button-split.d.ts.map +1 -0
- package/dist/2-core/button-split.js +48 -0
- package/dist/2-core/chart/grid-chart.d.ts +113 -0
- package/dist/2-core/chart/grid-chart.d.ts.map +1 -0
- package/dist/2-core/chart/grid-chart.js +466 -0
- package/dist/2-core/ds-avatar.d.ts +20 -3
- package/dist/2-core/ds-avatar.d.ts.map +1 -1
- package/dist/2-core/ds-avatar.js +19 -5
- package/dist/2-core/ds-badge.js +10 -13
- package/dist/2-core/ds-banner.d.ts +23 -7
- package/dist/2-core/ds-banner.d.ts.map +1 -1
- package/dist/2-core/ds-banner.js +48 -12
- package/dist/2-core/ds-button.d.ts +76 -0
- package/dist/2-core/ds-button.d.ts.map +1 -1
- package/dist/2-core/ds-button.js +101 -26
- package/dist/2-core/ds-card.d.ts +76 -11
- package/dist/2-core/ds-card.d.ts.map +1 -1
- package/dist/2-core/ds-card.js +129 -105
- package/dist/2-core/ds-chart.d.ts +105 -0
- package/dist/2-core/ds-chart.d.ts.map +1 -0
- package/dist/2-core/ds-chart.js +390 -0
- package/dist/2-core/ds-composer.d.ts +7 -0
- package/dist/2-core/ds-composer.d.ts.map +1 -1
- package/dist/2-core/ds-composer.js +1 -1
- package/dist/2-core/ds-cycle.d.ts +36 -2
- package/dist/2-core/ds-cycle.d.ts.map +1 -1
- package/dist/2-core/ds-cycle.js +95 -18
- package/dist/2-core/ds-empty.d.ts +74 -0
- package/dist/2-core/ds-empty.d.ts.map +1 -0
- package/dist/2-core/ds-empty.js +96 -0
- package/dist/2-core/ds-icon.d.ts +6 -0
- package/dist/2-core/ds-icon.d.ts.map +1 -1
- package/dist/2-core/ds-icon.js +12 -2
- package/dist/2-core/ds-input.d.ts +39 -1
- package/dist/2-core/ds-input.d.ts.map +1 -1
- package/dist/2-core/ds-input.js +150 -6
- package/dist/2-core/ds-kbd.d.ts +48 -0
- package/dist/2-core/ds-kbd.d.ts.map +1 -0
- package/dist/2-core/ds-kbd.js +65 -0
- package/dist/2-core/ds-language.d.ts +8 -1
- package/dist/2-core/ds-language.d.ts.map +1 -1
- package/dist/2-core/ds-language.js +2 -2
- package/dist/2-core/ds-loading.d.ts +40 -0
- package/dist/2-core/ds-loading.d.ts.map +1 -0
- package/dist/2-core/ds-loading.js +63 -0
- package/dist/2-core/ds-meter.d.ts +103 -0
- package/dist/2-core/ds-meter.d.ts.map +1 -0
- package/dist/2-core/ds-meter.js +124 -0
- package/dist/2-core/ds-notice.d.ts +103 -0
- package/dist/2-core/ds-notice.d.ts.map +1 -0
- package/dist/2-core/ds-notice.js +152 -0
- package/dist/2-core/ds-pagedots.d.ts +64 -7
- package/dist/2-core/ds-pagedots.d.ts.map +1 -1
- package/dist/2-core/ds-pagedots.js +124 -18
- package/dist/2-core/ds-progress.d.ts +200 -0
- package/dist/2-core/ds-progress.d.ts.map +1 -0
- package/dist/2-core/ds-progress.js +319 -0
- package/dist/2-core/ds-spacing-handle.d.ts +25 -0
- package/dist/2-core/ds-spacing-handle.d.ts.map +1 -0
- package/dist/2-core/ds-spacing-handle.js +25 -0
- package/dist/2-core/ds-split.d.ts +4 -67
- package/dist/2-core/ds-split.d.ts.map +1 -1
- package/dist/2-core/ds-split.js +4 -98
- package/dist/2-core/ds-stat.d.ts +126 -0
- package/dist/2-core/ds-stat.d.ts.map +1 -0
- package/dist/2-core/ds-stat.js +137 -0
- package/dist/2-core/ds-steps.d.ts +72 -0
- package/dist/2-core/ds-steps.d.ts.map +1 -0
- package/dist/2-core/ds-steps.js +114 -0
- package/dist/2-core/ds-switch.d.ts +1 -0
- package/dist/2-core/ds-switch.d.ts.map +1 -1
- package/dist/2-core/ds-switch.js +1 -0
- package/dist/2-core/ds-text.d.ts +15 -2
- package/dist/2-core/ds-text.d.ts.map +1 -1
- package/dist/2-core/ds-text.js +13 -0
- package/dist/2-core/ds-textarea.d.ts.map +1 -1
- package/dist/2-core/ds-textarea.js +1 -0
- package/dist/2-core/ds-toast.d.ts +139 -0
- package/dist/2-core/ds-toast.d.ts.map +1 -0
- package/dist/2-core/ds-toast.js +329 -0
- package/dist/2-core/ds-toggle.d.ts +11 -0
- package/dist/2-core/ds-toggle.d.ts.map +1 -0
- package/dist/2-core/ds-toggle.js +10 -0
- package/dist/2-core/figures.d.ts +56 -0
- package/dist/2-core/figures.d.ts.map +1 -0
- package/dist/2-core/figures.js +70 -0
- package/dist/2-core/generated/ds-icon-map.d.ts +118 -65
- package/dist/2-core/generated/ds-icon-map.d.ts.map +1 -1
- package/dist/2-core/generated/ds-icon-map.js +234 -128
- package/dist/2-core/generated/icon-avatar.d.ts +2 -0
- package/dist/2-core/generated/icon-avatar.d.ts.map +1 -0
- package/dist/2-core/generated/icon-avatar.js +2 -0
- package/dist/2-core/generated/icons-extra.d.ts.map +1 -1
- package/dist/2-core/generated/icons-extra.js +118 -65
- package/dist/2-core/generated/icons-immediate.d.ts +1 -1
- package/dist/2-core/generated/icons-immediate.d.ts.map +1 -1
- package/dist/2-core/generated/icons-immediate.js +1 -1
- package/dist/2-core/spacing-handle.d.ts +28 -0
- package/dist/2-core/spacing-handle.d.ts.map +1 -0
- package/dist/2-core/spacing-handle.js +146 -0
- package/dist/3-unit/calendar-base.d.ts +149 -0
- package/dist/3-unit/calendar-base.d.ts.map +1 -0
- package/dist/3-unit/calendar-base.js +172 -0
- package/dist/3-unit/ds-accordion.d.ts +9 -0
- package/dist/3-unit/ds-accordion.d.ts.map +1 -1
- package/dist/3-unit/ds-accordion.js +7 -1
- package/dist/3-unit/ds-avatar-group.d.ts +1 -0
- package/dist/3-unit/ds-avatar-group.d.ts.map +1 -1
- package/dist/3-unit/ds-calendar-large.d.ts +138 -0
- package/dist/3-unit/ds-calendar-large.d.ts.map +1 -0
- package/dist/3-unit/ds-calendar-large.js +305 -0
- package/dist/3-unit/ds-calendar.d.ts +175 -0
- package/dist/3-unit/ds-calendar.d.ts.map +1 -0
- package/dist/3-unit/ds-calendar.js +303 -0
- package/dist/3-unit/ds-carousel.d.ts +182 -0
- package/dist/3-unit/ds-carousel.d.ts.map +1 -0
- package/dist/3-unit/ds-carousel.js +327 -0
- package/dist/3-unit/ds-date-picker.d.ts +203 -0
- package/dist/3-unit/ds-date-picker.d.ts.map +1 -0
- package/dist/3-unit/ds-date-picker.js +499 -0
- package/dist/3-unit/ds-form.d.ts.map +1 -1
- package/dist/3-unit/ds-form.js +38 -28
- package/dist/3-unit/ds-list.d.ts +12 -0
- package/dist/3-unit/ds-list.d.ts.map +1 -1
- package/dist/3-unit/ds-list.js +52 -1
- package/dist/3-unit/ds-matrix.d.ts +146 -0
- package/dist/3-unit/ds-matrix.d.ts.map +1 -0
- package/dist/3-unit/ds-matrix.js +248 -0
- package/dist/3-unit/ds-menu.d.ts +1 -1
- package/dist/3-unit/ds-menu.d.ts.map +1 -1
- package/dist/3-unit/ds-menu.js +7 -4
- package/dist/3-unit/ds-row.d.ts +66 -0
- package/dist/3-unit/ds-row.d.ts.map +1 -1
- package/dist/3-unit/ds-row.js +80 -1
- package/dist/3-unit/ds-sidebar.d.ts +108 -0
- package/dist/3-unit/ds-sidebar.d.ts.map +1 -0
- package/dist/3-unit/ds-sidebar.js +268 -0
- package/dist/3-unit/ds-table.d.ts +28 -10
- package/dist/3-unit/ds-table.d.ts.map +1 -1
- package/dist/3-unit/ds-table.js +53 -25
- package/dist/3-unit/ds-tree.d.ts +69 -0
- package/dist/3-unit/ds-tree.d.ts.map +1 -0
- package/dist/3-unit/ds-tree.js +136 -0
- package/dist/4-page/ds-dialog.d.ts +16 -1
- package/dist/4-page/ds-dialog.d.ts.map +1 -1
- package/dist/4-page/ds-dialog.js +39 -3
- package/dist/4-page/ds-document.d.ts +98 -0
- package/dist/4-page/ds-document.d.ts.map +1 -0
- package/dist/4-page/ds-document.js +213 -0
- package/dist/4-page/ds-footer.d.ts +100 -0
- package/dist/4-page/ds-footer.d.ts.map +1 -0
- package/dist/4-page/ds-footer.js +119 -0
- package/dist/4-page/ds-grid.d.ts +32 -12
- package/dist/4-page/ds-grid.d.ts.map +1 -1
- package/dist/4-page/ds-grid.js +30 -39
- package/dist/4-page/ds-header.d.ts +84 -0
- package/dist/4-page/ds-header.d.ts.map +1 -0
- package/dist/4-page/ds-header.js +143 -0
- package/dist/4-page/ds-layout.d.ts +1 -0
- package/dist/4-page/ds-layout.d.ts.map +1 -1
- package/dist/4-page/ds-layout.js +1 -1
- package/dist/4-page/ds-page.d.ts +110 -0
- package/dist/4-page/ds-page.d.ts.map +1 -0
- package/dist/4-page/ds-page.js +155 -0
- package/dist/4-page/email.d.ts +2 -3
- package/dist/4-page/email.d.ts.map +1 -1
- package/dist/4-page/email.js +2 -3
- package/dist/components.d.ts +4 -1
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +4 -1
- package/dist/design-system-1.bundle.js +11304 -4322
- package/dist/design-system-1.bundle.js.map +1 -1
- package/dist/design-system-1.bundle.min.js +8867 -4132
- package/dist/design-system-1.bundle.min.js.map +1 -1
- package/dist/design-system-1.css +1 -1
- package/dist/feedback.js +541 -0
- package/dist/feedback.js.map +1 -0
- package/dist/icons-extra-B4Iotc7s.js +298 -0
- package/dist/icons-extra-B4Iotc7s.js.map +1 -0
- package/dist/icons-extra-C4sCgoUj.js +185 -0
- package/dist/icons-extra-C4sCgoUj.js.map +1 -0
- package/dist/icons-extra-DSav6uTU.js +300 -0
- package/dist/icons-extra-DSav6uTU.js.map +1 -0
- package/dist/icons-extra-Dc_yVWIz.js +1024 -0
- package/dist/icons-extra-Dc_yVWIz.js.map +1 -0
- package/dist/icons-extra-cfzoudMf.js +1030 -0
- package/dist/icons-extra-cfzoudMf.js.map +1 -0
- package/dist/icons-extra-g_xpwZhZ.js +631 -0
- package/dist/icons-extra-g_xpwZhZ.js.map +1 -0
- package/dist/index.d.ts +23 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -6
- package/dist/react/avatar.d.ts +5 -9
- package/dist/react/avatar.d.ts.map +1 -1
- package/dist/react/avatar.js +2 -2
- package/dist/react/button-split.d.ts +19 -0
- package/dist/react/button-split.d.ts.map +1 -0
- package/dist/react/button-split.js +35 -0
- package/dist/react/button.d.ts +18 -7
- package/dist/react/button.d.ts.map +1 -1
- package/dist/react/button.js +13 -4
- package/dist/react/carousel.d.ts +63 -0
- package/dist/react/carousel.d.ts.map +1 -0
- package/dist/react/carousel.js +47 -0
- package/dist/react/choice.d.ts +1 -1
- package/dist/react/context-menu.d.ts +337 -337
- package/dist/react/dialog.d.ts +684 -678
- package/dist/react/dialog.d.ts.map +1 -1
- package/dist/react/dialog.js +29 -3
- package/dist/react/document.d.ts +11 -0
- package/dist/react/document.d.ts.map +1 -0
- package/dist/react/document.js +10 -0
- package/dist/react/empty.d.ts +34 -0
- package/dist/react/empty.d.ts.map +1 -0
- package/dist/react/empty.js +8 -0
- package/dist/react/file-picker.d.ts +1 -1
- package/dist/react/footer.d.ts +13 -0
- package/dist/react/footer.d.ts.map +1 -0
- package/dist/react/footer.js +12 -0
- package/dist/react/header.d.ts +12 -0
- package/dist/react/header.d.ts.map +1 -0
- package/dist/react/header.js +11 -0
- package/dist/react/input.d.ts +31 -9
- package/dist/react/input.d.ts.map +1 -1
- package/dist/react/input.js +94 -94
- package/dist/react/kbd.d.ts +26 -0
- package/dist/react/kbd.d.ts.map +1 -0
- package/dist/react/kbd.js +8 -0
- package/dist/react/loading.d.ts +14 -0
- package/dist/react/loading.d.ts.map +1 -0
- package/dist/react/loading.js +14 -0
- package/dist/react/meter.d.ts +64 -0
- package/dist/react/meter.d.ts.map +1 -0
- package/dist/react/meter.js +15 -0
- package/dist/react/notice.d.ts +45 -0
- package/dist/react/notice.d.ts.map +1 -0
- package/dist/react/notice.js +34 -0
- package/dist/react/page.d.ts +10 -0
- package/dist/react/page.d.ts.map +1 -0
- package/dist/react/page.js +9 -0
- package/dist/react/progress.d.ts +107 -0
- package/dist/react/progress.d.ts.map +1 -0
- package/dist/react/progress.js +47 -0
- package/dist/react/sidebar.d.ts +44 -0
- package/dist/react/sidebar.d.ts.map +1 -0
- package/dist/react/sidebar.js +41 -0
- package/dist/react/spacing-handle.d.ts +13 -0
- package/dist/react/spacing-handle.d.ts.map +1 -0
- package/dist/react/spacing-handle.js +18 -0
- package/dist/react/split.d.ts +6 -14
- package/dist/react/split.d.ts.map +1 -1
- package/dist/react/split.js +5 -31
- package/dist/react/stat.d.ts +78 -0
- package/dist/react/stat.d.ts.map +1 -0
- package/dist/react/stat.js +25 -0
- package/dist/react/steps.d.ts +36 -0
- package/dist/react/steps.d.ts.map +1 -0
- package/dist/react/steps.js +10 -0
- package/dist/react/toast.d.ts +37 -0
- package/dist/react/toast.d.ts.map +1 -0
- package/dist/react/toast.js +55 -0
- package/dist/react/tree.d.ts +31 -0
- package/dist/react/tree.d.ts.map +1 -0
- package/dist/react/tree.js +37 -0
- package/dist/shared-words-BfnT24Fe.js +1635 -0
- package/dist/shared-words-BfnT24Fe.js.map +1 -0
- package/dist/shared-words-CyZYc_De.js +1818 -0
- package/dist/shared-words-CyZYc_De.js.map +1 -0
- package/dist/shared-words-DAVSET4Z.js +1800 -0
- package/dist/shared-words-DAVSET4Z.js.map +1 -0
- package/dist/shared-words-UCvnkctb.js +1653 -0
- package/dist/shared-words-UCvnkctb.js.map +1 -0
- package/package.json +16 -5
- package/DS1/2-core/ds-banner.ts +0 -122
- package/DS1/2-core/ds-date.ts +0 -24
- package/DS1/2-core/ds-language.ts +0 -94
- package/DS1/2-core/ds-pagedots.ts +0 -52
- package/DS1/2-core/ds-split.ts +0 -122
- package/DS1/2-core/ds-textarea.ts +0 -136
- package/DS1/2-core/styles/ds-banner.css +0 -77
- package/DS1/2-core/styles/ds-date.css +0 -9
- package/DS1/2-core/styles/ds-language.css +0 -78
- package/DS1/2-core/styles/ds-pagedots.css +0 -31
- package/DS1/2-core/styles/ds-textarea.css +0 -27
- package/DS1/4-page/ds-layout.ts +0 -949
- package/DS1/4-page/styles/ds-layout.css +0 -246
- package/DS1/react/split.ts +0 -42
- package/DS1/x-icon/ezo-accordion-chevron.svg +0 -11
- package/DS1/x-icon/ezo-account-close.svg +0 -1
- package/DS1/x-icon/ezo-android-screen-archive.svg +0 -4
- package/DS1/x-icon/ezo-android-screen-calendar.svg +0 -6
- package/DS1/x-icon/ezo-android-screen-camera.svg +0 -5
- package/DS1/x-icon/ezo-android-screen-check.svg +0 -3
- package/DS1/x-icon/ezo-android-screen-compose.svg +0 -4
- package/DS1/x-icon/ezo-android-screen-globe.svg +0 -1
- package/DS1/x-icon/ezo-android-screen-shared.svg +0 -5
- package/DS1/x-icon/ezo-android-screen-store.svg +0 -4
- package/DS1/x-icon/ezo-android-screen-views.svg +0 -4
- package/DS1/x-icon/ezo-android-screen-work.svg +0 -3
- package/DS1/x-icon/ezo-arrow-cursor.svg +0 -8
- package/DS1/x-icon/ezo-block-accordion.svg +0 -1
- package/DS1/x-icon/ezo-block-divider.svg +0 -1
- package/DS1/x-icon/ezo-block-group.svg +0 -1
- package/DS1/x-icon/ezo-block-image.svg +0 -1
- package/DS1/x-icon/ezo-block-section.svg +0 -1
- package/DS1/x-icon/ezo-block-table.svg +0 -1
- package/DS1/x-icon/ezo-code.svg +0 -14
- package/DS1/x-icon/ezo-down.svg +0 -3
- package/DS1/x-icon/ezo-figma-premium-star.svg +0 -5
- package/DS1/x-icon/ezo-item-button-complete.svg +0 -4
- package/DS1/x-icon/ezo-item-button-header.svg +0 -3
- package/DS1/x-icon/ezo-item-button-open.svg +0 -3
- package/DS1/x-icon/ezo-item-button-star.svg +0 -3
- package/DS1/x-icon/ezo-item-button-unheader.svg +0 -7
- package/DS1/x-icon/ezo-item-button-unstar.svg +0 -5
- package/DS1/x-icon/ezo-item-star.svg +0 -5
- package/DS1/x-icon/ezo-left.svg +0 -3
- package/DS1/x-icon/ezo-logo.svg +0 -1
- package/DS1/x-icon/ezo-mic.svg +0 -8
- package/DS1/x-icon/ezo-move-column.svg +0 -14
- package/DS1/x-icon/ezo-move-row.svg +0 -18
- package/DS1/x-icon/ezo-navigation-check.svg +0 -1
- package/DS1/x-icon/ezo-note-back.svg +0 -5
- package/DS1/x-icon/ezo-note-menu-complete.svg +0 -11
- package/DS1/x-icon/ezo-note-menu-delete.svg +0 -4
- package/DS1/x-icon/ezo-note-menu-duplicate.svg +0 -8
- package/DS1/x-icon/ezo-note-menu-note.svg +0 -5
- package/DS1/x-icon/ezo-note-menu-page.svg +0 -3
- package/DS1/x-icon/ezo-note-menu-star.svg +0 -5
- package/DS1/x-icon/ezo-note-menu-start.svg +0 -6
- package/DS1/x-icon/ezo-note-menu-stop.svg +0 -6
- package/DS1/x-icon/ezo-note-more.svg +0 -7
- package/DS1/x-icon/ezo-note-star.svg +0 -5
- package/DS1/x-icon/ezo-pattern-call-to-action.svg +0 -1
- package/DS1/x-icon/ezo-play.svg +0 -5
- package/DS1/x-icon/ezo-premium-star.svg +0 -5
- package/DS1/x-icon/ezo-setting-1xdots.svg +0 -13
- package/DS1/x-icon/ezo-setting-1xgrid.svg +0 -10
- package/DS1/x-icon/ezo-setting-1xlines.svg +0 -7
- package/DS1/x-icon/ezo-setting-2xdots.svg +0 -8
- package/DS1/x-icon/ezo-setting-2xgrid.svg +0 -8
- package/DS1/x-icon/ezo-setting-2xlines.svg +0 -6
- package/DS1/x-icon/ezo-setting-blank.svg +0 -5
- package/DS1/x-icon/ezo-store-chevron.svg +0 -1
- package/DS1/x-icon/ezo-upgrade-close.svg +0 -5
- package/DS1/x-icon/product-sources.json +0 -2557
- /package/DS1/x-icon/{ezo-password-visibility-see.svg → password-see.svg} +0 -0
- /package/DS1/x-icon/{ezo-password-visibility-unsee.svg → password-unsee.svg} +0 -0
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
@import "./component-metrics.css";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Rows, as plain classes on native elements: the `ds-row` and `ds-sidebar`
|
|
5
|
+
* elements' look without the elements.
|
|
6
|
+
*
|
|
7
|
+
* A row is one square high, and what it holds stands on the lower sixteen of
|
|
8
|
+
* the square with the spare four above, as Ezo sets every row: a line of
|
|
9
|
+
* words on a 16px line box, a 16px icon and a 16px control all end on the
|
|
10
|
+
* row's bottom line, so the capitals (7px below the top line, baseline 3px
|
|
11
|
+
* above the next) are centred on an icon beside them. On an `<a href>` or a
|
|
12
|
+
* `<button>` the whole row is one press target, a row, a tile or a card: the pointer over it, the
|
|
13
|
+
* press and the focus ring cover the row, and its content keeps the row's
|
|
14
|
+
* layout. A row that also holds controls of its own (a quick action, a link
|
|
15
|
+
* in another cell) is any element, a `<li>`, a `<div>` or a `<tr>`, with one
|
|
16
|
+
* `ds-row__target` inside: that link or button takes the press anywhere on
|
|
17
|
+
* the row, and every other control inside stays separately pressable.
|
|
18
|
+
*
|
|
19
|
+
* ds-row a row one square high; a press target on <a> or <button>
|
|
20
|
+
* ds-row__target the row's press target, when the row holds other controls
|
|
21
|
+
* ds-row--auto as high as its content, at least one square
|
|
22
|
+
* ds-row--stacked the content stacked, each line one square (a tile, a card)
|
|
23
|
+
* ds-row--nav a navigation row: the sidebar's two-pixel corners
|
|
24
|
+
* aria-current="page" the destination being shown, filled and in the medium weight
|
|
25
|
+
* aria-disabled="true" or `disabled` on a button: dimmed, not pressable
|
|
26
|
+
*
|
|
27
|
+
* A sidebar of nested things (the `ds-sidebar tree` element without Lit) is a
|
|
28
|
+
* `role="tree"` list of `role="treeitem"` rows, flat, each with its
|
|
29
|
+
* `aria-level`, one square further in per level. `0-face/sidebar.ts`
|
|
30
|
+
* (`connectSidebar`) gives it the keyboard of the tree pattern.
|
|
31
|
+
*
|
|
32
|
+
* ds-sidebar the tree (`role="tree"`)
|
|
33
|
+
* ds-sidebar__item a row (`role="treeitem"`, `aria-level`, `aria-expanded` on a parent, `aria-selected`)
|
|
34
|
+
* ds-sidebar__disclosure the arrow on its own square, turned down when the row is open; empty on a leaf
|
|
35
|
+
* ds-sidebar__label the words, cut short with an ellipsis
|
|
36
|
+
* ds-sidebar__meta small muted words at the row's end
|
|
37
|
+
*
|
|
38
|
+
* An icon (`.ds-icon`) in a tree row takes a square of its own. Tokens:
|
|
39
|
+
* `--ds-row-padding` (the words' distance from the row's edges, 4px),
|
|
40
|
+
* `--ds-row-fill-hover`, `--ds-row-fill-press`, `--ds-row-fill-current` and
|
|
41
|
+
* `--ds-row-current-weight` (component-tokens.css, shared with the
|
|
42
|
+
* element), `--ds-sidebar-disclosure` (the arrow's drawing, the library's
|
|
43
|
+
* `right` icon) and `--ds-sidebar-indent` (a row's depth in squares, read
|
|
44
|
+
* from `aria-level` up to twelve levels).
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
:where(.ds-row):not(tr) {
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: row;
|
|
51
|
+
align-items: flex-end;
|
|
52
|
+
gap: calc(4px * var(--ds-sf));
|
|
53
|
+
min-width: 0;
|
|
54
|
+
height: var(--ds-row-height);
|
|
55
|
+
margin: 0;
|
|
56
|
+
line-height: var(--ds-type-lineheight-default);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where(.ds-row--auto):not(tr) {
|
|
60
|
+
height: auto;
|
|
61
|
+
min-height: var(--ds-row-height);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where(.ds-row--stacked):not(tr) {
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
align-items: flex-start;
|
|
67
|
+
justify-content: flex-start;
|
|
68
|
+
gap: 0;
|
|
69
|
+
height: auto;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* The press target: the row itself, or the one target inside it. */
|
|
73
|
+
a.ds-row,
|
|
74
|
+
button.ds-row,
|
|
75
|
+
.ds-row__target {
|
|
76
|
+
appearance: none;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
margin: 0;
|
|
79
|
+
border: 0;
|
|
80
|
+
background: none;
|
|
81
|
+
color: inherit;
|
|
82
|
+
font: inherit;
|
|
83
|
+
letter-spacing: inherit;
|
|
84
|
+
text-align: start;
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
text-transform: none;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
outline: none;
|
|
89
|
+
-webkit-tap-highlight-color: transparent;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
a.ds-row,
|
|
93
|
+
button.ds-row {
|
|
94
|
+
position: relative;
|
|
95
|
+
width: 100%;
|
|
96
|
+
padding: 0 var(--ds-row-padding, calc(4px * var(--ds-sf)));
|
|
97
|
+
border-radius: var(--ds-row-radius, 0);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ds-row__target {
|
|
101
|
+
padding: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Each line of a tile one square, over the inherited font of a native link or button:
|
|
105
|
+
a tile's lines wrap, so they stay on whole squares rather than the sixteen. */
|
|
106
|
+
.ds-row.ds-row--stacked {
|
|
107
|
+
line-height: var(--ds-row-height);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* A row with a target inside: the target's layers cover the row. */
|
|
111
|
+
.ds-row:has(.ds-row__target) {
|
|
112
|
+
position: relative;
|
|
113
|
+
isolation: isolate;
|
|
114
|
+
}
|
|
115
|
+
:where(.ds-row:has(.ds-row__target)):not(tr) {
|
|
116
|
+
padding-inline: var(--ds-row-padding, calc(4px * var(--ds-sf)));
|
|
117
|
+
}
|
|
118
|
+
.ds-row__target::before,
|
|
119
|
+
.ds-row__target::after {
|
|
120
|
+
content: "";
|
|
121
|
+
position: absolute;
|
|
122
|
+
inset: 0;
|
|
123
|
+
border-radius: var(--ds-row-radius, 0);
|
|
124
|
+
}
|
|
125
|
+
.ds-row__target::before { z-index: 1; }
|
|
126
|
+
.ds-row__target::after { z-index: -1; }
|
|
127
|
+
.ds-row:has(.ds-row__target) :where(a[href], button, input, select, textarea, label, summary, [tabindex]):not(.ds-row__target) {
|
|
128
|
+
position: relative;
|
|
129
|
+
z-index: 2;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* The pointer, the press, the current destination and the focus ring. */
|
|
133
|
+
a.ds-row[href]:hover,
|
|
134
|
+
button.ds-row:hover:not(:disabled),
|
|
135
|
+
.ds-row__target:is(a[href], button:not(:disabled)):hover::after {
|
|
136
|
+
background: var(--ds-row-fill-hover, var(--ds-fill));
|
|
137
|
+
}
|
|
138
|
+
a.ds-row[href]:active,
|
|
139
|
+
button.ds-row:active:not(:disabled),
|
|
140
|
+
.ds-row__target:is(a[href], button:not(:disabled)):active::after {
|
|
141
|
+
background: var(--ds-row-fill-press, var(--ds-fill-hover));
|
|
142
|
+
}
|
|
143
|
+
.ds-row:is(a, button)[aria-current]:not([aria-current="false"]),
|
|
144
|
+
.ds-row__target[aria-current]:not([aria-current="false"])::after {
|
|
145
|
+
background: var(--ds-row-fill-current, var(--ds-fill-hover));
|
|
146
|
+
}
|
|
147
|
+
.ds-row:is(a, button)[aria-current]:not([aria-current="false"]),
|
|
148
|
+
.ds-row:has(.ds-row__target[aria-current]:not([aria-current="false"])) {
|
|
149
|
+
--ds-type-weight-default: var(--ds-row-current-weight, 500);
|
|
150
|
+
font-weight: var(--ds-row-current-weight, 500);
|
|
151
|
+
}
|
|
152
|
+
a.ds-row:focus-visible,
|
|
153
|
+
button.ds-row:focus-visible,
|
|
154
|
+
.ds-row__target:focus-visible::after {
|
|
155
|
+
outline: 2px solid var(--ds-focus-ring);
|
|
156
|
+
outline-offset: -2px;
|
|
157
|
+
}
|
|
158
|
+
a.ds-row:not([href]),
|
|
159
|
+
a.ds-row[aria-disabled="true"],
|
|
160
|
+
button.ds-row:disabled,
|
|
161
|
+
button.ds-row[aria-disabled="true"],
|
|
162
|
+
.ds-row:has(.ds-row__target:is(:disabled, [aria-disabled="true"], a:not([href]))) {
|
|
163
|
+
cursor: default;
|
|
164
|
+
opacity: 0.5;
|
|
165
|
+
}
|
|
166
|
+
.ds-row__target:is(:disabled, [aria-disabled="true"], a:not([href])) {
|
|
167
|
+
cursor: default;
|
|
168
|
+
}
|
|
169
|
+
a.ds-row[aria-disabled="true"]:hover,
|
|
170
|
+
button.ds-row[aria-disabled="true"]:hover {
|
|
171
|
+
background: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ds-row--nav {
|
|
175
|
+
--ds-row-radius: calc(2px * var(--ds-sf));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* A sidebar of nested things: the tree. */
|
|
179
|
+
|
|
180
|
+
.ds-sidebar {
|
|
181
|
+
box-sizing: border-box;
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
min-width: 0;
|
|
185
|
+
margin: 0;
|
|
186
|
+
padding: 0;
|
|
187
|
+
list-style: none;
|
|
188
|
+
color: var(--ds-text-color);
|
|
189
|
+
font-family: var(--ds-typeface-regular);
|
|
190
|
+
font-feature-settings: var(--ds-font-features);
|
|
191
|
+
font-size: var(--ds-type-size-default);
|
|
192
|
+
font-weight: var(--ds-type-weight-default);
|
|
193
|
+
line-height: var(--ds-type-lineheight-default);
|
|
194
|
+
letter-spacing: var(--ds-type-letterspacing-default);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ds-sidebar__item {
|
|
198
|
+
box-sizing: border-box;
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: flex-end;
|
|
201
|
+
height: var(--ds-row-height);
|
|
202
|
+
min-width: 0;
|
|
203
|
+
margin: 0;
|
|
204
|
+
padding-block: 0;
|
|
205
|
+
padding-inline: calc(var(--ds-sidebar-indent, 0) * var(--ds-unit)) var(--ds-row-padding, calc(4px * var(--ds-sf)));
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
user-select: none;
|
|
209
|
+
outline: none;
|
|
210
|
+
-webkit-tap-highlight-color: transparent;
|
|
211
|
+
}
|
|
212
|
+
.ds-sidebar__item[hidden] { display: none; }
|
|
213
|
+
.ds-sidebar__item[aria-level="2"] { --ds-sidebar-indent: 1; }
|
|
214
|
+
.ds-sidebar__item[aria-level="3"] { --ds-sidebar-indent: 2; }
|
|
215
|
+
.ds-sidebar__item[aria-level="4"] { --ds-sidebar-indent: 3; }
|
|
216
|
+
.ds-sidebar__item[aria-level="5"] { --ds-sidebar-indent: 4; }
|
|
217
|
+
.ds-sidebar__item[aria-level="6"] { --ds-sidebar-indent: 5; }
|
|
218
|
+
.ds-sidebar__item[aria-level="7"] { --ds-sidebar-indent: 6; }
|
|
219
|
+
.ds-sidebar__item[aria-level="8"] { --ds-sidebar-indent: 7; }
|
|
220
|
+
.ds-sidebar__item[aria-level="9"] { --ds-sidebar-indent: 8; }
|
|
221
|
+
.ds-sidebar__item[aria-level="10"] { --ds-sidebar-indent: 9; }
|
|
222
|
+
.ds-sidebar__item[aria-level="11"] { --ds-sidebar-indent: 10; }
|
|
223
|
+
.ds-sidebar__item[aria-level="12"] { --ds-sidebar-indent: 11; }
|
|
224
|
+
.ds-sidebar__item:hover:not([aria-disabled="true"]) { background: var(--ds-row-fill-hover, var(--ds-fill)); }
|
|
225
|
+
.ds-sidebar__item:active:not([aria-disabled="true"]) { background: var(--ds-row-fill-press, var(--ds-fill-hover)); }
|
|
226
|
+
.ds-sidebar__item[aria-selected="true"] {
|
|
227
|
+
--ds-type-weight-default: var(--ds-row-current-weight, 500);
|
|
228
|
+
background: var(--ds-row-fill-current, var(--ds-fill-hover));
|
|
229
|
+
font-weight: var(--ds-row-current-weight, 500);
|
|
230
|
+
}
|
|
231
|
+
.ds-sidebar__item:focus-visible {
|
|
232
|
+
outline: 2px solid var(--ds-focus-ring);
|
|
233
|
+
outline-offset: -2px;
|
|
234
|
+
}
|
|
235
|
+
.ds-sidebar__item[aria-disabled="true"] {
|
|
236
|
+
cursor: default;
|
|
237
|
+
opacity: 0.5;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* The arrow and an icon each stand on a whole square, drawn on the row's sixteen (two
|
|
241
|
+
pixels below the square's middle); a leaf keeps the arrow's square empty. */
|
|
242
|
+
.ds-sidebar__disclosure,
|
|
243
|
+
.ds-sidebar__item > .ds-icon {
|
|
244
|
+
flex: 0 0 var(--ds-unit);
|
|
245
|
+
width: var(--ds-unit);
|
|
246
|
+
height: var(--ds-unit);
|
|
247
|
+
-webkit-mask-size: var(--ds-icon-box, calc(14px * var(--ds-sf)));
|
|
248
|
+
mask-size: var(--ds-icon-box, calc(14px * var(--ds-sf)));
|
|
249
|
+
-webkit-mask-position: center calc(50% + 2px * var(--ds-sf));
|
|
250
|
+
mask-position: center calc(50% + 2px * var(--ds-sf));
|
|
251
|
+
}
|
|
252
|
+
.ds-sidebar__disclosure {
|
|
253
|
+
--ds-icon-box: calc(14px * var(--ds-sf));
|
|
254
|
+
display: inline-block;
|
|
255
|
+
color: var(--ds-text-color-muted);
|
|
256
|
+
background-color: currentColor;
|
|
257
|
+
-webkit-mask: var(--ds-sidebar-disclosure, url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 16 16'%3E%3Cpath d='M13.1566 8.60594H0V9.61651L13.1562 9.61791L10.249 12.5251L10.9558 13.219L15.0636 9.11123L10.9524 5L10.245 5.70734L13.1566 8.60594Z'/%3E%3C/svg%3E")) center calc(50% + 2px * var(--ds-sf)) / var(--ds-icon-box) no-repeat;
|
|
258
|
+
mask: var(--ds-sidebar-disclosure, url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 16 16'%3E%3Cpath d='M13.1566 8.60594H0V9.61651L13.1562 9.61791L10.249 12.5251L10.9558 13.219L15.0636 9.11123L10.9524 5L10.245 5.70734L13.1566 8.60594Z'/%3E%3C/svg%3E")) center calc(50% + 2px * var(--ds-sf)) / var(--ds-icon-box) no-repeat;
|
|
259
|
+
transform: rotate(0deg);
|
|
260
|
+
transition: transform 120ms ease-out;
|
|
261
|
+
}
|
|
262
|
+
.ds-sidebar__item:not([aria-expanded]) > .ds-sidebar__disclosure {
|
|
263
|
+
visibility: hidden;
|
|
264
|
+
}
|
|
265
|
+
.ds-sidebar__item[aria-expanded="true"] > .ds-sidebar__disclosure {
|
|
266
|
+
transform: rotate(90deg);
|
|
267
|
+
}
|
|
268
|
+
.ds-sidebar__label {
|
|
269
|
+
flex: 1 1 auto;
|
|
270
|
+
min-width: 0;
|
|
271
|
+
padding-inline-start: calc(4px * var(--ds-sf));
|
|
272
|
+
overflow: hidden;
|
|
273
|
+
text-overflow: ellipsis;
|
|
274
|
+
}
|
|
275
|
+
.ds-sidebar__meta {
|
|
276
|
+
flex: none;
|
|
277
|
+
padding-inline-start: calc(4px * var(--ds-sf));
|
|
278
|
+
color: var(--ds-text-color-muted);
|
|
279
|
+
font-size: var(--ds-type-size-small);
|
|
280
|
+
font-variant-numeric: tabular-nums;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
@media (prefers-reduced-motion: reduce) {
|
|
284
|
+
.ds-sidebar__disclosure { transition: none; }
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
@media (forced-colors: active) {
|
|
288
|
+
.ds-row:is(a, button)[aria-current]:not([aria-current="false"]),
|
|
289
|
+
.ds-row__target[aria-current]:not([aria-current="false"])::after,
|
|
290
|
+
.ds-sidebar__item[aria-selected="true"] {
|
|
291
|
+
outline: 1px solid Highlight;
|
|
292
|
+
outline-offset: -1px;
|
|
293
|
+
}
|
|
294
|
+
.ds-sidebar__disclosure {
|
|
295
|
+
background-color: CanvasText;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A table: words straight on the paper, one square a row. No box and no
|
|
3
|
+
* column lines: each row stands on a hairline at its foot, its words set on
|
|
4
|
+
* that line like a caption: the sixteen of words against the 1px line, three
|
|
5
|
+
* spare above, a 20px pitch, as Ezo sets every row.
|
|
6
|
+
* Column headers keep the text's weight in the title grey; the first column
|
|
7
|
+
* of a body row is a row header in the text colour. Nothing is filled with
|
|
8
|
+
* the accent except a cell someone has selected.
|
|
9
|
+
*
|
|
10
|
+
* `.ds-table` dresses a native <table>; `<ds-table>` draws the same table
|
|
11
|
+
* from data. Put a wide table in `.ds-table-scroll` to scroll it sideways,
|
|
12
|
+
* and give the table `data-sticky` to keep its first column in place.
|
|
13
|
+
*
|
|
14
|
+
* <th data-numeric>, <td data-numeric> numbers, set to the column's end
|
|
15
|
+
* <tfoot> totals, under a line of their own
|
|
16
|
+
* <th colspan="2"> a column group, in a header row
|
|
17
|
+
* <th scope="rowgroup"> a row group, a heading row in grey
|
|
18
|
+
* <td aria-selected="true"> a selected cell
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
.ds-table {
|
|
22
|
+
--ds-table-row: var(--ds-row-height, calc(20px * var(--ds-sf, 1)));
|
|
23
|
+
--ds-table-gap: calc(var(--ds-table-row) / 2);
|
|
24
|
+
--ds-table-rule: var(--ds-border-color, light-dark(#d8d8d8, #3d3d3d));
|
|
25
|
+
--ds-table-paper: var(--ds-background, Canvas);
|
|
26
|
+
width: 100%;
|
|
27
|
+
border-collapse: collapse;
|
|
28
|
+
border-spacing: 0;
|
|
29
|
+
color: var(--ds-text-color, inherit);
|
|
30
|
+
font-family: var(--ds-typeface-regular, inherit);
|
|
31
|
+
font-feature-settings: var(--ds-font-features, normal);
|
|
32
|
+
font-size: var(--ds-type-size-default, 14px);
|
|
33
|
+
letter-spacing: var(--ds-type-letterspacing-default, normal);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ds-table :is(th, td) {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
height: var(--ds-table-row);
|
|
39
|
+
padding: 0 var(--ds-table-gap) 0 0;
|
|
40
|
+
border: 0;
|
|
41
|
+
border-bottom: 1px solid var(--ds-table-rule);
|
|
42
|
+
background: transparent;
|
|
43
|
+
line-height: var(--ds-type-lineheight-default);
|
|
44
|
+
text-align: start;
|
|
45
|
+
vertical-align: bottom;
|
|
46
|
+
font-weight: inherit;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ds-table :is(th, td):last-child {
|
|
51
|
+
padding-inline-end: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ds-table thead th,
|
|
55
|
+
.ds-table th[scope="rowgroup"] {
|
|
56
|
+
color: var(--ds-title-color, light-dark(#797979, #9a9a9a));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ds-table tbody th:not([scope="rowgroup"]) {
|
|
60
|
+
color: inherit;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ds-table [data-numeric] {
|
|
64
|
+
text-align: end;
|
|
65
|
+
font-variant-numeric: tabular-nums;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Totals: the rule above them is the last body row's; theirs closes the table. */
|
|
69
|
+
.ds-table tfoot :is(th, td) {
|
|
70
|
+
color: inherit;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ds-table [aria-selected="true"] {
|
|
74
|
+
background: var(--ds-accent-color, Highlight);
|
|
75
|
+
color: var(--ds-button-text-color-on-accent, inherit);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ds-table :is(th, td):has(> :is(a, button):only-child) {
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ds-table caption {
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
height: var(--ds-table-row);
|
|
85
|
+
padding-top: calc(var(--ds-table-row) - var(--ds-type-lineheight-default));
|
|
86
|
+
line-height: var(--ds-type-lineheight-default);
|
|
87
|
+
text-align: start;
|
|
88
|
+
color: var(--ds-title-color, light-dark(#797979, #9a9a9a));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ds-table-scroll {
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
overflow-x: auto;
|
|
94
|
+
overscroll-behavior-x: contain;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ds-table-scroll > .ds-table {
|
|
98
|
+
width: max-content;
|
|
99
|
+
min-width: 100%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ds-table[data-sticky] :is(th, td):first-child {
|
|
103
|
+
position: sticky;
|
|
104
|
+
inset-inline-start: 0;
|
|
105
|
+
z-index: 1;
|
|
106
|
+
background: var(--ds-table-paper);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ds-table[data-sticky] [aria-selected="true"]:first-child {
|
|
110
|
+
background: var(--ds-accent-color, Highlight);
|
|
111
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@import "./component-metrics.css";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Text on the grid, as plain classes on native text.
|
|
5
|
+
*
|
|
6
|
+
* Interface copy on a page without Lit: a label, a message, a title. Each line
|
|
7
|
+
* is one square (`--ds-unit`), so a paragraph of any length stands on whole
|
|
8
|
+
* squares, and a display title takes two. The `ds-text` element draws the same
|
|
9
|
+
* words when they come from a translation key.
|
|
10
|
+
*
|
|
11
|
+
* one.css and controls.css both import this file, so a page that loads either
|
|
12
|
+
* of them, or both, has one definition of these classes.
|
|
13
|
+
*
|
|
14
|
+
* ds-text 14 on a one-square line, the text colour
|
|
15
|
+
* ds-text--small 10
|
|
16
|
+
* ds-text--heading 13, medium
|
|
17
|
+
* ds-text--display 20 on two squares, medium
|
|
18
|
+
* ds-text--strong medium
|
|
19
|
+
* ds-text--muted, --title, --danger tones
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
.ds-text {
|
|
23
|
+
margin: 0;
|
|
24
|
+
color: var(--ds-text-color);
|
|
25
|
+
font-family: var(--ds-typeface-regular);
|
|
26
|
+
font-feature-settings: var(--ds-font-features);
|
|
27
|
+
font-size: var(--ds-type-size-default);
|
|
28
|
+
font-weight: var(--ds-type-weight-default);
|
|
29
|
+
line-height: var(--ds-unit);
|
|
30
|
+
letter-spacing: var(--ds-type-letterspacing-default);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ds-text--small {
|
|
34
|
+
font-size: var(--ds-type-size-small);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ds-text--heading {
|
|
38
|
+
font-family: var(--ds-typeface-medium);
|
|
39
|
+
font-size: var(--ds-type-size-heading);
|
|
40
|
+
font-weight: var(--ds-type-weight-bold);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ds-text--display {
|
|
44
|
+
font-family: var(--ds-typeface-medium);
|
|
45
|
+
font-size: var(--ds-type-size-display);
|
|
46
|
+
font-weight: var(--ds-type-weight-bold);
|
|
47
|
+
line-height: calc(2 * var(--ds-unit));
|
|
48
|
+
letter-spacing: calc(var(--ds-display-text-tracking, -0.4px) * var(--ds-sf, 1));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ds-text--strong {
|
|
52
|
+
font-family: var(--ds-typeface-medium);
|
|
53
|
+
font-weight: var(--ds-type-weight-bold);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ds-text--muted {
|
|
57
|
+
color: var(--ds-text-color-muted);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ds-text--title {
|
|
61
|
+
color: var(--ds-title-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ds-text--danger {
|
|
65
|
+
color: var(--ds-danger-color);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ds-text--warning {
|
|
69
|
+
color: var(--ds-warning-color);
|
|
70
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
import { getText } from "../0-face/i18n";
|
|
3
|
+
import "./ds-icon";
|
|
4
|
+
import "./ds-text";
|
|
5
|
+
export interface SplitSegment<T extends string = string> {
|
|
6
|
+
value: T;
|
|
7
|
+
label: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface SplitButtonState extends HTMLElement {
|
|
13
|
+
options: string; segments: ReadonlyArray<SplitSegment> | undefined;
|
|
14
|
+
value: string; disabled: boolean; splitDisabled: boolean;
|
|
15
|
+
actions: boolean; literal: boolean; renderRoot: HTMLElement | DocumentFragment;
|
|
16
|
+
}
|
|
17
|
+
function choices(host: SplitButtonState): ReadonlyArray<SplitSegment> {
|
|
18
|
+
return host.segments ?? host.options.split(",").map(part => part.trim()).filter(Boolean).map(part => {
|
|
19
|
+
const colon = part.indexOf(":");
|
|
20
|
+
if (colon < 0) return { value: part.toLowerCase(), label: part };
|
|
21
|
+
const value = part.slice(0, colon).trim();
|
|
22
|
+
const label = part.slice(colon + 1).trim();
|
|
23
|
+
if (!label.startsWith("@")) return { value, label };
|
|
24
|
+
const end = label.indexOf(":");
|
|
25
|
+
return { value, icon: label.slice(1, end < 0 ? undefined : end).trim(), label: end < 0 ? value : label.slice(end + 1).trim() };
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function press(host: SplitButtonState, segment: SplitSegment) {
|
|
29
|
+
if (host.splitDisabled || segment.disabled) return;
|
|
30
|
+
if (host.actions) {
|
|
31
|
+
host.dispatchEvent(new CustomEvent("press", { detail: { value: segment.value }, bubbles: true, composed: true }));
|
|
32
|
+
} else if (segment.value !== host.value) {
|
|
33
|
+
const accepted = host.dispatchEvent(new CustomEvent("change", {
|
|
34
|
+
detail: { value: segment.value }, bubbles: true, composed: true, cancelable: true,
|
|
35
|
+
}));
|
|
36
|
+
if (accepted) host.value = segment.value;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export function focusSplit(host: SplitButtonState, options?: FocusOptions) {
|
|
40
|
+
const buttons = [...host.renderRoot.querySelectorAll<HTMLButtonElement>("button:not(:disabled)")];
|
|
41
|
+
(buttons.find(button => button.getAttribute("aria-pressed") === "true") ?? buttons[0])?.focus(options);
|
|
42
|
+
}
|
|
43
|
+
export function renderSplit(host: SplitButtonState) {
|
|
44
|
+
return html`${choices(host).map(segment => html`<button
|
|
45
|
+
type="button" part="segment" value=${segment.value}
|
|
46
|
+
aria-pressed=${host.actions ? nothing : String(segment.value === host.value)}
|
|
47
|
+
aria-label=${segment.icon ? (host.literal ? segment.label : getText(segment.label)) : nothing}
|
|
48
|
+
?data-icon=${!!segment.icon}
|
|
49
|
+
?data-short=${segment.label.length === 1}
|
|
50
|
+
?disabled=${host.splitDisabled || segment.disabled}
|
|
51
|
+
@click=${() => press(host, segment)}
|
|
52
|
+
>${segment.icon
|
|
53
|
+
? html`<ds-icon type=${segment.icon} aria-hidden="true"></ds-icon>`
|
|
54
|
+
: html`<ds-text .text=${segment.label} .literal=${host.literal}></ds-text>`}</button>`)}`;
|
|
55
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
:host { --ds-chart-ink: var(--text-color, #1e1e1e); --ds-chart-muted: var(--base-darker-grey, #797979); --ds-chart-faint: var(--slate-light, #e6e6e6); --ds-chart-up: var(--apple-green, #99ff73); --ds-chart-down: var(--tuned-red, #ff5f5f); --ds-chart-live: var(--ds-chart-up); --ds-chart-line: var(--ds-chart-faint); --ds-chart-fill: var(--ds-chart-faint); --ds-chart-small: calc(var(--ds-chart-unit, 20px) / 2); font-family: var(--ds-chart-font, var(--typeface-regular, sans-serif)); }
|
|
2
|
+
:host([hidden]) { display: none !important; }
|
|
3
|
+
* { box-sizing: border-box; }
|
|
4
|
+
:host([data-chart-kind="line"]) {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: block;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host([data-chart-kind="line"]) canvas {
|
|
11
|
+
display: block;
|
|
12
|
+
touch-action: pan-y;
|
|
13
|
+
cursor: crosshair;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.live-dot {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
width: 5px;
|
|
21
|
+
height: 5px;
|
|
22
|
+
background: var(--ds-chart-live);
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
animation: blink 1s steps(2, jump-none) infinite;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
:host([data-chart-kind="spark"]) {
|
|
29
|
+
display: block;
|
|
30
|
+
height: var(--ds-chart-unit);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([data-chart-kind="spark"]) canvas {
|
|
34
|
+
display: block;
|
|
35
|
+
border-top-color: var(--ds-chart-faint);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([data-chart-kind="spark"]) canvas.up {
|
|
39
|
+
color: var(--ds-chart-up);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([data-chart-kind="spark"]) canvas.down {
|
|
43
|
+
color: var(--ds-chart-down);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
:host([data-chart-kind="ratio"]) {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 1px;
|
|
51
|
+
height: var(--ds-chart-unit);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ratio-buy,
|
|
55
|
+
.ratio-sell {
|
|
56
|
+
height: calc(var(--ds-chart-unit) / 2);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ratio-buy {
|
|
60
|
+
background: var(--ds-chart-up);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ratio-sell {
|
|
64
|
+
background: var(--ds-chart-down);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:host([data-chart-kind="range"]) {
|
|
69
|
+
position: relative;
|
|
70
|
+
display: block;
|
|
71
|
+
height: var(--ds-chart-unit);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.range-track {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: calc(var(--ds-chart-unit) / 2);
|
|
77
|
+
left: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
height: 1px;
|
|
80
|
+
background: var(--ds-chart-line);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.range-fill {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: calc(var(--ds-chart-unit) / 4);
|
|
86
|
+
left: 0;
|
|
87
|
+
height: calc(var(--ds-chart-unit) / 2);
|
|
88
|
+
background: var(--ds-chart-fill);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.range-tick {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 0;
|
|
94
|
+
left: 0;
|
|
95
|
+
width: 1px;
|
|
96
|
+
height: var(--ds-chart-unit);
|
|
97
|
+
background: var(--ds-chart-muted);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.range-dot {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: calc(var(--ds-chart-unit) / 2 - 2px);
|
|
103
|
+
left: 0;
|
|
104
|
+
width: 5px;
|
|
105
|
+
height: 5px;
|
|
106
|
+
background: var(--ds-chart-ink);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:host([data-chart-kind="bars"]) {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.bars {
|
|
114
|
+
display: flex;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.bar-cell {
|
|
118
|
+
display: grid;
|
|
119
|
+
grid-template-rows: auto var(--ds-chart-unit) var(--ds-chart-unit);
|
|
120
|
+
align-items: center;
|
|
121
|
+
width: calc(var(--span) * var(--ds-chart-unit));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.bar-area {
|
|
125
|
+
position: relative;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: flex-end;
|
|
128
|
+
box-shadow: inset 0 -1px 0 var(--ds-chart-line);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.bar-fill {
|
|
132
|
+
width: calc(var(--span) * var(--ds-chart-unit) - 1px);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.bar-fill.up {
|
|
136
|
+
background: var(--ds-chart-up);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.bar-fill.down {
|
|
140
|
+
background: var(--ds-chart-down);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.bar-fill.ink {
|
|
144
|
+
background: var(--ds-chart-faint);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.bar-compare {
|
|
148
|
+
position: absolute;
|
|
149
|
+
left: 0;
|
|
150
|
+
bottom: 0;
|
|
151
|
+
z-index: 1;
|
|
152
|
+
width: calc(var(--span) * var(--ds-chart-unit) - 1px);
|
|
153
|
+
box-shadow: inset 0 0 0 1px var(--ds-chart-ink);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.bar-caption,
|
|
157
|
+
.bar-label {
|
|
158
|
+
font-size: var(--ds-chart-small);
|
|
159
|
+
white-space: nowrap;
|
|
160
|
+
overflow: hidden;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.bar-label {
|
|
164
|
+
color: var(--ds-chart-muted);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
@keyframes blink { from { opacity: 1; } to { opacity: .25; } }
|
|
169
|
+
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
|