@korzun/design 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -0
- package/README.md +73 -2
- package/dist/component/card/index.d.ts +15 -0
- package/dist/component/card/index.d.ts.map +1 -0
- package/dist/component/card/index.js +34 -0
- package/dist/component/card/index.js.map +1 -0
- package/dist/component/card/style.d.ts +5 -0
- package/dist/component/card/style.d.ts.map +1 -0
- package/dist/component/card/style.js +69 -0
- package/dist/component/card/style.js.map +1 -0
- package/dist/component/card-divider/index.d.ts +10 -0
- package/dist/component/card-divider/index.d.ts.map +1 -0
- package/dist/component/card-divider/index.js +23 -0
- package/dist/component/card-divider/index.js.map +1 -0
- package/dist/component/card-divider/style.d.ts +5 -0
- package/dist/component/card-divider/style.d.ts.map +1 -0
- package/dist/component/card-divider/style.js +48 -0
- package/dist/component/card-divider/style.js.map +1 -0
- package/dist/component/card-row/index.d.ts +6 -0
- package/dist/component/card-row/index.d.ts.map +1 -0
- package/dist/component/card-row/index.js +16 -0
- package/dist/component/card-row/index.js.map +1 -0
- package/dist/component/card-row/style.d.ts +5 -0
- package/dist/component/card-row/style.d.ts.map +1 -0
- package/dist/component/card-row/style.js +13 -0
- package/dist/component/card-row/style.js.map +1 -0
- package/dist/component/collapsible-section/index.d.ts +11 -0
- package/dist/component/collapsible-section/index.d.ts.map +1 -0
- package/dist/component/collapsible-section/index.js +20 -0
- package/dist/component/collapsible-section/index.js.map +1 -0
- package/dist/component/collapsible-section/style.d.ts +5 -0
- package/dist/component/collapsible-section/style.d.ts.map +1 -0
- package/dist/component/collapsible-section/style.js +36 -0
- package/dist/component/collapsible-section/style.js.map +1 -0
- package/dist/component/empty-state/index.d.ts +22 -0
- package/dist/component/empty-state/index.d.ts.map +1 -0
- package/dist/component/empty-state/index.js +19 -0
- package/dist/component/empty-state/index.js.map +1 -0
- package/dist/component/empty-state/style.d.ts +5 -0
- package/dist/component/empty-state/style.d.ts.map +1 -0
- package/dist/component/empty-state/style.js +30 -0
- package/dist/component/empty-state/style.js.map +1 -0
- package/dist/component/index.d.ts +16 -0
- package/dist/component/index.d.ts.map +1 -0
- package/dist/component/index.js +15 -0
- package/dist/component/index.js.map +1 -0
- package/dist/component/meta-line/index.d.ts +21 -0
- package/dist/component/meta-line/index.d.ts.map +1 -0
- package/dist/component/meta-line/index.js +24 -0
- package/dist/component/meta-line/index.js.map +1 -0
- package/dist/component/meta-line/style.d.ts +5 -0
- package/dist/component/meta-line/style.d.ts.map +1 -0
- package/dist/component/meta-line/style.js +35 -0
- package/dist/component/meta-line/style.js.map +1 -0
- package/dist/component/metadata/index.d.ts +6 -0
- package/dist/component/metadata/index.d.ts.map +1 -0
- package/dist/component/metadata/index.js +7 -0
- package/dist/component/metadata/index.js.map +1 -0
- package/dist/component/metadata/style.d.ts +5 -0
- package/dist/component/metadata/style.d.ts.map +1 -0
- package/dist/component/metadata/style.js +20 -0
- package/dist/component/metadata/style.js.map +1 -0
- package/dist/component/metadata-list/index.d.ts +10 -0
- package/dist/component/metadata-list/index.d.ts.map +1 -0
- package/dist/component/metadata-list/index.js +9 -0
- package/dist/component/metadata-list/index.js.map +1 -0
- package/dist/component/metadata-list/style.d.ts +5 -0
- package/dist/component/metadata-list/style.d.ts.map +1 -0
- package/dist/component/metadata-list/style.js +10 -0
- package/dist/component/metadata-list/style.js.map +1 -0
- package/dist/component/nav-desktop/index.d.ts +6 -0
- package/dist/component/nav-desktop/index.d.ts.map +1 -0
- package/dist/component/nav-desktop/index.js +11 -0
- package/dist/component/nav-desktop/index.js.map +1 -0
- package/dist/component/nav-desktop/style.d.ts +5 -0
- package/dist/component/nav-desktop/style.d.ts.map +1 -0
- package/dist/component/nav-desktop/style.js +94 -0
- package/dist/component/nav-desktop/style.js.map +1 -0
- package/dist/component/nav-mobile/index.d.ts +25 -0
- package/dist/component/nav-mobile/index.d.ts.map +1 -0
- package/dist/component/nav-mobile/index.js +153 -0
- package/dist/component/nav-mobile/index.js.map +1 -0
- package/dist/component/nav-mobile/style.d.ts +5 -0
- package/dist/component/nav-mobile/style.d.ts.map +1 -0
- package/dist/component/nav-mobile/style.js +347 -0
- package/dist/component/nav-mobile/style.js.map +1 -0
- package/dist/component/nav-types.d.ts +12 -0
- package/dist/component/nav-types.d.ts.map +1 -0
- package/dist/component/nav-types.js +2 -0
- package/dist/component/nav-types.js.map +1 -0
- package/dist/component/page/index.d.ts +33 -0
- package/dist/component/page/index.d.ts.map +1 -0
- package/dist/component/page/index.js +20 -0
- package/dist/component/page/index.js.map +1 -0
- package/dist/component/page/style.d.ts +10 -0
- package/dist/component/page/style.d.ts.map +1 -0
- package/dist/component/page/style.js +132 -0
- package/dist/component/page/style.js.map +1 -0
- package/dist/component/progress-indicator/index.d.ts +17 -0
- package/dist/component/progress-indicator/index.d.ts.map +1 -0
- package/dist/component/progress-indicator/index.js +19 -0
- package/dist/component/progress-indicator/index.js.map +1 -0
- package/dist/component/progress-indicator/style.d.ts +5 -0
- package/dist/component/progress-indicator/style.d.ts.map +1 -0
- package/dist/component/progress-indicator/style.js +24 -0
- package/dist/component/progress-indicator/style.js.map +1 -0
- package/dist/component/tag/index.d.ts +9 -0
- package/dist/component/tag/index.d.ts.map +1 -0
- package/dist/component/tag/index.js +15 -0
- package/dist/component/tag/index.js.map +1 -0
- package/dist/component/tag/style.d.ts +5 -0
- package/dist/component/tag/style.d.ts.map +1 -0
- package/dist/component/tag/style.js +28 -0
- package/dist/component/tag/style.js.map +1 -0
- package/dist/component/theme-setting/index.d.ts +2 -0
- package/dist/component/theme-setting/index.d.ts.map +1 -0
- package/dist/component/theme-setting/index.js +14 -0
- package/dist/component/theme-setting/index.js.map +1 -0
- package/dist/component/top-fade/index.d.ts +2 -0
- package/dist/component/top-fade/index.d.ts.map +1 -0
- package/dist/component/top-fade/index.js +9 -0
- package/dist/component/top-fade/index.js.map +1 -0
- package/dist/component/top-fade/style.d.ts +5 -0
- package/dist/component/top-fade/style.d.ts.map +1 -0
- package/dist/component/top-fade/style.js +57 -0
- package/dist/component/top-fade/style.js.map +1 -0
- package/dist/control/action-menu-list/index.d.ts +44 -0
- package/dist/control/action-menu-list/index.d.ts.map +1 -0
- package/dist/control/action-menu-list/index.js +9 -0
- package/dist/control/action-menu-list/index.js.map +1 -0
- package/dist/control/action-menu-list/style.d.ts +5 -0
- package/dist/control/action-menu-list/style.d.ts.map +1 -0
- package/dist/control/action-menu-list/style.js +51 -0
- package/dist/control/action-menu-list/style.js.map +1 -0
- package/dist/control/action-menu-list/use-dismiss.d.ts +3 -0
- package/dist/control/action-menu-list/use-dismiss.d.ts.map +1 -0
- package/dist/control/action-menu-list/use-dismiss.js +25 -0
- package/dist/control/action-menu-list/use-dismiss.js.map +1 -0
- package/dist/control/back-button/index.d.ts +6 -0
- package/dist/control/back-button/index.d.ts.map +1 -0
- package/dist/control/back-button/index.js +20 -0
- package/dist/control/back-button/index.js.map +1 -0
- package/dist/control/back-button/style.d.ts +5 -0
- package/dist/control/back-button/style.d.ts.map +1 -0
- package/dist/control/back-button/style.js +26 -0
- package/dist/control/back-button/style.js.map +1 -0
- package/dist/control/button/index.d.ts +36 -0
- package/dist/control/button/index.d.ts.map +1 -0
- package/dist/control/button/index.js +39 -0
- package/dist/control/button/index.js.map +1 -0
- package/dist/control/button/style.d.ts +24 -0
- package/dist/control/button/style.d.ts.map +1 -0
- package/dist/control/button/style.js +370 -0
- package/dist/control/button/style.js.map +1 -0
- package/dist/control/chips-input/index.d.ts +17 -0
- package/dist/control/chips-input/index.d.ts.map +1 -0
- package/dist/control/chips-input/index.js +77 -0
- package/dist/control/chips-input/index.js.map +1 -0
- package/dist/control/chips-input/style.d.ts +10 -0
- package/dist/control/chips-input/style.d.ts.map +1 -0
- package/dist/control/chips-input/style.js +152 -0
- package/dist/control/chips-input/style.js.map +1 -0
- package/dist/control/confirm-modal/index.d.ts +17 -0
- package/dist/control/confirm-modal/index.d.ts.map +1 -0
- package/dist/control/confirm-modal/index.js +22 -0
- package/dist/control/confirm-modal/index.js.map +1 -0
- package/dist/control/confirm-modal/style.d.ts +5 -0
- package/dist/control/confirm-modal/style.d.ts.map +1 -0
- package/dist/control/confirm-modal/style.js +33 -0
- package/dist/control/confirm-modal/style.js.map +1 -0
- package/dist/control/date-time-input/index.d.ts +21 -0
- package/dist/control/date-time-input/index.d.ts.map +1 -0
- package/dist/control/date-time-input/index.js +35 -0
- package/dist/control/date-time-input/index.js.map +1 -0
- package/dist/control/date-time-input/iso-date.d.ts +25 -0
- package/dist/control/date-time-input/iso-date.d.ts.map +1 -0
- package/dist/control/date-time-input/iso-date.js +51 -0
- package/dist/control/date-time-input/iso-date.js.map +1 -0
- package/dist/control/date-time-input/style.d.ts +5 -0
- package/dist/control/date-time-input/style.d.ts.map +1 -0
- package/dist/control/date-time-input/style.js +72 -0
- package/dist/control/date-time-input/style.js.map +1 -0
- package/dist/control/field-list/index.d.ts +26 -0
- package/dist/control/field-list/index.d.ts.map +1 -0
- package/dist/control/field-list/index.js +11 -0
- package/dist/control/field-list/index.js.map +1 -0
- package/dist/control/field-list/style.d.ts +5 -0
- package/dist/control/field-list/style.d.ts.map +1 -0
- package/dist/control/field-list/style.js +43 -0
- package/dist/control/field-list/style.js.map +1 -0
- package/dist/control/index.d.ts +23 -0
- package/dist/control/index.d.ts.map +1 -0
- package/dist/control/index.js +18 -0
- package/dist/control/index.js.map +1 -0
- package/dist/control/number-input/index.d.ts +12 -0
- package/dist/control/number-input/index.d.ts.map +1 -0
- package/dist/control/number-input/index.js +34 -0
- package/dist/control/number-input/index.js.map +1 -0
- package/dist/control/number-input/style.d.ts +5 -0
- package/dist/control/number-input/style.d.ts.map +1 -0
- package/dist/control/number-input/style.js +50 -0
- package/dist/control/number-input/style.js.map +1 -0
- package/dist/control/page-actions-bar/index.d.ts +11 -0
- package/dist/control/page-actions-bar/index.d.ts.map +1 -0
- package/dist/control/page-actions-bar/index.js +26 -0
- package/dist/control/page-actions-bar/index.js.map +1 -0
- package/dist/control/page-actions-bar/style.d.ts +5 -0
- package/dist/control/page-actions-bar/style.d.ts.map +1 -0
- package/dist/control/page-actions-bar/style.js +63 -0
- package/dist/control/page-actions-bar/style.js.map +1 -0
- package/dist/control/page-actions-menu/index.d.ts +7 -0
- package/dist/control/page-actions-menu/index.d.ts.map +1 -0
- package/dist/control/page-actions-menu/index.js +19 -0
- package/dist/control/page-actions-menu/index.js.map +1 -0
- package/dist/control/page-actions-menu/style.d.ts +5 -0
- package/dist/control/page-actions-menu/style.d.ts.map +1 -0
- package/dist/control/page-actions-menu/style.js +33 -0
- package/dist/control/page-actions-menu/style.js.map +1 -0
- package/dist/control/page-footer-actions/index.d.ts +17 -0
- package/dist/control/page-footer-actions/index.d.ts.map +1 -0
- package/dist/control/page-footer-actions/index.js +14 -0
- package/dist/control/page-footer-actions/index.js.map +1 -0
- package/dist/control/page-footer-actions/style.d.ts +5 -0
- package/dist/control/page-footer-actions/style.d.ts.map +1 -0
- package/dist/control/page-footer-actions/style.js +12 -0
- package/dist/control/page-footer-actions/style.js.map +1 -0
- package/dist/control/popover/index.d.ts +27 -0
- package/dist/control/popover/index.d.ts.map +1 -0
- package/dist/control/popover/index.js +58 -0
- package/dist/control/popover/index.js.map +1 -0
- package/dist/control/popover/style.d.ts +5 -0
- package/dist/control/popover/style.d.ts.map +1 -0
- package/dist/control/popover/style.js +8 -0
- package/dist/control/popover/style.js.map +1 -0
- package/dist/control/segmented-control/index.d.ts +55 -0
- package/dist/control/segmented-control/index.d.ts.map +1 -0
- package/dist/control/segmented-control/index.js +107 -0
- package/dist/control/segmented-control/index.js.map +1 -0
- package/dist/control/segmented-control/style.d.ts +5 -0
- package/dist/control/segmented-control/style.d.ts.map +1 -0
- package/dist/control/segmented-control/style.js +149 -0
- package/dist/control/segmented-control/style.js.map +1 -0
- package/dist/control/select/index.d.ts +37 -0
- package/dist/control/select/index.d.ts.map +1 -0
- package/dist/control/select/index.js +138 -0
- package/dist/control/select/index.js.map +1 -0
- package/dist/control/select/style.d.ts +5 -0
- package/dist/control/select/style.d.ts.map +1 -0
- package/dist/control/select/style.js +192 -0
- package/dist/control/select/style.js.map +1 -0
- package/dist/control/switch/index.d.ts +39 -0
- package/dist/control/switch/index.d.ts.map +1 -0
- package/dist/control/switch/index.js +94 -0
- package/dist/control/switch/index.js.map +1 -0
- package/dist/control/switch/style.d.ts +36 -0
- package/dist/control/switch/style.d.ts.map +1 -0
- package/dist/control/switch/style.js +159 -0
- package/dist/control/switch/style.js.map +1 -0
- package/dist/control/text-area/index.d.ts +15 -0
- package/dist/control/text-area/index.d.ts.map +1 -0
- package/dist/control/text-area/index.js +44 -0
- package/dist/control/text-area/index.js.map +1 -0
- package/dist/control/text-area/style.d.ts +5 -0
- package/dist/control/text-area/style.d.ts.map +1 -0
- package/dist/control/text-area/style.js +85 -0
- package/dist/control/text-area/style.js.map +1 -0
- package/dist/control/text-input/index.d.ts +25 -0
- package/dist/control/text-input/index.d.ts.map +1 -0
- package/dist/control/text-input/index.js +43 -0
- package/dist/control/text-input/index.js.map +1 -0
- package/dist/control/text-input/style.d.ts +5 -0
- package/dist/control/text-input/style.d.ts.map +1 -0
- package/dist/control/text-input/style.js +80 -0
- package/dist/control/text-input/style.js.map +1 -0
- package/dist/control/use-modal-dialog/index.d.ts +24 -0
- package/dist/control/use-modal-dialog/index.d.ts.map +1 -0
- package/dist/control/use-modal-dialog/index.js +73 -0
- package/dist/control/use-modal-dialog/index.js.map +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/is-standalone.d.ts +2 -0
- package/dist/hooks/is-standalone.d.ts.map +1 -0
- package/dist/hooks/is-standalone.js +10 -0
- package/dist/hooks/is-standalone.js.map +1 -0
- package/dist/hooks/use-minimize-on-scroll.d.ts +48 -0
- package/dist/hooks/use-minimize-on-scroll.d.ts.map +1 -0
- package/dist/hooks/use-minimize-on-scroll.js +123 -0
- package/dist/hooks/use-minimize-on-scroll.js.map +1 -0
- package/dist/hooks/use-pull-to-refresh.d.ts +37 -0
- package/dist/hooks/use-pull-to-refresh.d.ts.map +1 -0
- package/dist/hooks/use-pull-to-refresh.js +116 -0
- package/dist/hooks/use-pull-to-refresh.js.map +1 -0
- package/dist/icon/adjustments-horizontal.d.ts +3 -0
- package/dist/icon/adjustments-horizontal.d.ts.map +1 -0
- package/dist/icon/adjustments-horizontal.js +11 -0
- package/dist/icon/adjustments-horizontal.js.map +1 -0
- package/dist/icon/alert-octagon.d.ts +3 -0
- package/dist/icon/alert-octagon.d.ts.map +1 -0
- package/dist/icon/alert-octagon.js +8 -0
- package/dist/icon/alert-octagon.js.map +1 -0
- package/dist/icon/book.d.ts +3 -0
- package/dist/icon/book.d.ts.map +1 -0
- package/dist/icon/book.js +11 -0
- package/dist/icon/book.js.map +1 -0
- package/dist/icon/books.d.ts +3 -0
- package/dist/icon/books.d.ts.map +1 -0
- package/dist/icon/books.js +11 -0
- package/dist/icon/books.js.map +1 -0
- package/dist/icon/check.d.ts +3 -0
- package/dist/icon/check.d.ts.map +1 -0
- package/dist/icon/check.js +8 -0
- package/dist/icon/check.js.map +1 -0
- package/dist/icon/chevron-circle.d.ts +3 -0
- package/dist/icon/chevron-circle.d.ts.map +1 -0
- package/dist/icon/chevron-circle.js +11 -0
- package/dist/icon/chevron-circle.js.map +1 -0
- package/dist/icon/chevron.d.ts +3 -0
- package/dist/icon/chevron.d.ts.map +1 -0
- package/dist/icon/chevron.js +11 -0
- package/dist/icon/chevron.js.map +1 -0
- package/dist/icon/circle-x.d.ts +3 -0
- package/dist/icon/circle-x.d.ts.map +1 -0
- package/dist/icon/circle-x.js +8 -0
- package/dist/icon/circle-x.js.map +1 -0
- package/dist/icon/clock.d.ts +3 -0
- package/dist/icon/clock.d.ts.map +1 -0
- package/dist/icon/clock.js +11 -0
- package/dist/icon/clock.js.map +1 -0
- package/dist/icon/device.d.ts +3 -0
- package/dist/icon/device.d.ts.map +1 -0
- package/dist/icon/device.js +11 -0
- package/dist/icon/device.js.map +1 -0
- package/dist/icon/emoji.d.ts +20 -0
- package/dist/icon/emoji.d.ts.map +1 -0
- package/dist/icon/emoji.js +21 -0
- package/dist/icon/emoji.js.map +1 -0
- package/dist/icon/hand-love-you.d.ts +3 -0
- package/dist/icon/hand-love-you.d.ts.map +1 -0
- package/dist/icon/hand-love-you.js +5 -0
- package/dist/icon/hand-love-you.js.map +1 -0
- package/dist/icon/hand-ok.d.ts +3 -0
- package/dist/icon/hand-ok.d.ts.map +1 -0
- package/dist/icon/hand-ok.js +5 -0
- package/dist/icon/hand-ok.js.map +1 -0
- package/dist/icon/hand-peace.d.ts +3 -0
- package/dist/icon/hand-peace.d.ts.map +1 -0
- package/dist/icon/hand-peace.js +5 -0
- package/dist/icon/hand-peace.js.map +1 -0
- package/dist/icon/hands-clap.d.ts +3 -0
- package/dist/icon/hands-clap.d.ts.map +1 -0
- package/dist/icon/hands-clap.js +5 -0
- package/dist/icon/hands-clap.js.map +1 -0
- package/dist/icon/home.d.ts +3 -0
- package/dist/icon/home.d.ts.map +1 -0
- package/dist/icon/home.js +11 -0
- package/dist/icon/home.js.map +1 -0
- package/dist/icon/index.d.ts +31 -0
- package/dist/icon/index.d.ts.map +1 -0
- package/dist/icon/index.js +30 -0
- package/dist/icon/index.js.map +1 -0
- package/dist/icon/info-circle.d.ts +3 -0
- package/dist/icon/info-circle.d.ts.map +1 -0
- package/dist/icon/info-circle.js +8 -0
- package/dist/icon/info-circle.js.map +1 -0
- package/dist/icon/key.d.ts +3 -0
- package/dist/icon/key.d.ts.map +1 -0
- package/dist/icon/key.js +8 -0
- package/dist/icon/key.js.map +1 -0
- package/dist/icon/list-check.d.ts +3 -0
- package/dist/icon/list-check.d.ts.map +1 -0
- package/dist/icon/list-check.js +11 -0
- package/dist/icon/list-check.js.map +1 -0
- package/dist/icon/more.d.ts +3 -0
- package/dist/icon/more.d.ts.map +1 -0
- package/dist/icon/more.js +11 -0
- package/dist/icon/more.js.map +1 -0
- package/dist/icon/props.d.ts +26 -0
- package/dist/icon/props.d.ts.map +1 -0
- package/dist/icon/props.js +16 -0
- package/dist/icon/props.js.map +1 -0
- package/dist/icon/row-remove.d.ts +3 -0
- package/dist/icon/row-remove.d.ts.map +1 -0
- package/dist/icon/row-remove.js +11 -0
- package/dist/icon/row-remove.js.map +1 -0
- package/dist/icon/search.d.ts +3 -0
- package/dist/icon/search.d.ts.map +1 -0
- package/dist/icon/search.js +11 -0
- package/dist/icon/search.js.map +1 -0
- package/dist/icon/settings.d.ts +3 -0
- package/dist/icon/settings.d.ts.map +1 -0
- package/dist/icon/settings.js +11 -0
- package/dist/icon/settings.js.map +1 -0
- package/dist/icon/spinner.d.ts +3 -0
- package/dist/icon/spinner.d.ts.map +1 -0
- package/dist/icon/spinner.js +10 -0
- package/dist/icon/spinner.js.map +1 -0
- package/dist/icon/thumb-down.d.ts +3 -0
- package/dist/icon/thumb-down.d.ts.map +1 -0
- package/dist/icon/thumb-down.js +5 -0
- package/dist/icon/thumb-down.js.map +1 -0
- package/dist/icon/upload.d.ts +3 -0
- package/dist/icon/upload.d.ts.map +1 -0
- package/dist/icon/upload.js +11 -0
- package/dist/icon/upload.js.map +1 -0
- package/dist/icon/user.d.ts +3 -0
- package/dist/icon/user.d.ts.map +1 -0
- package/dist/icon/user.js +11 -0
- package/dist/icon/user.js.map +1 -0
- package/dist/icon/users.d.ts +3 -0
- package/dist/icon/users.d.ts.map +1 -0
- package/dist/icon/users.js +11 -0
- package/dist/icon/users.js.map +1 -0
- package/dist/icon/x.d.ts +3 -0
- package/dist/icon/x.d.ts.map +1 -0
- package/dist/icon/x.js +11 -0
- package/dist/icon/x.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/theme/context.d.ts +11 -0
- package/dist/theme/context.d.ts.map +1 -0
- package/dist/theme/context.js +7 -0
- package/dist/theme/context.js.map +1 -0
- package/dist/theme/global-styles.d.ts +3 -0
- package/dist/theme/global-styles.d.ts.map +1 -0
- package/dist/theme/global-styles.js +67 -0
- package/dist/theme/global-styles.js.map +1 -0
- package/dist/theme/index.d.ts +11 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +7 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/provider.d.ts +7 -0
- package/dist/theme/provider.d.ts.map +1 -0
- package/dist/theme/provider.js +49 -0
- package/dist/theme/provider.js.map +1 -0
- package/dist/theme/theme.d.ts +262 -0
- package/dist/theme/theme.d.ts.map +1 -0
- package/dist/theme/theme.js +481 -0
- package/dist/theme/theme.js.map +1 -0
- package/dist/theme/use-theme-setting.d.ts +4 -0
- package/dist/theme/use-theme-setting.d.ts.map +1 -0
- package/dist/theme/use-theme-setting.js +7 -0
- package/dist/theme/use-theme-setting.js.map +1 -0
- package/dist/theme/use-theme.d.ts +3 -0
- package/dist/theme/use-theme.d.ts.map +1 -0
- package/dist/theme/use-theme.js +5 -0
- package/dist/theme/use-theme.js.map +1 -0
- package/dist/toast/context.d.ts +5 -0
- package/dist/toast/context.d.ts.map +1 -0
- package/dist/toast/context.js +5 -0
- package/dist/toast/context.js.map +1 -0
- package/dist/toast/hook/index.d.ts +2 -0
- package/dist/toast/hook/index.d.ts.map +1 -0
- package/dist/toast/hook/index.js +2 -0
- package/dist/toast/hook/index.js.map +1 -0
- package/dist/toast/hook/use-toast.d.ts +2 -0
- package/dist/toast/hook/use-toast.d.ts.map +1 -0
- package/dist/toast/hook/use-toast.js +7 -0
- package/dist/toast/hook/use-toast.js.map +1 -0
- package/dist/toast/index.d.ts +3 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/toast/index.js +3 -0
- package/dist/toast/index.js.map +1 -0
- package/dist/toast/provider.d.ts +8 -0
- package/dist/toast/provider.d.ts.map +1 -0
- package/dist/toast/provider.js +57 -0
- package/dist/toast/provider.js.map +1 -0
- package/dist/toast/reducer.d.ts +21 -0
- package/dist/toast/reducer.d.ts.map +1 -0
- package/dist/toast/reducer.js +24 -0
- package/dist/toast/reducer.js.map +1 -0
- package/dist/toast/style.d.ts +5 -0
- package/dist/toast/style.d.ts.map +1 -0
- package/dist/toast/style.js +63 -0
- package/dist/toast/style.js.map +1 -0
- package/dist/toast/toast.d.ts +12 -0
- package/dist/toast/toast.d.ts.map +1 -0
- package/dist/toast/toast.js +17 -0
- package/dist/toast/toast.js.map +1 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +38 -0
- package/dist/utils.js.map +1 -0
- package/package.json +93 -4
- package/src/component/card/index.tsx +123 -0
- package/src/component/card/style.ts +69 -0
- package/src/component/card-divider/index.tsx +74 -0
- package/src/component/card-divider/style.ts +48 -0
- package/src/component/card-row/index.tsx +32 -0
- package/src/component/card-row/style.ts +13 -0
- package/src/component/collapsible-section/index.tsx +58 -0
- package/src/component/collapsible-section/style.ts +36 -0
- package/src/component/empty-state/index.tsx +35 -0
- package/src/component/empty-state/style.ts +30 -0
- package/src/component/index.ts +15 -0
- package/src/component/meta-line/index.tsx +42 -0
- package/src/component/meta-line/style.ts +36 -0
- package/src/component/metadata/index.tsx +15 -0
- package/src/component/metadata/style.ts +20 -0
- package/src/component/metadata-list/index.tsx +15 -0
- package/src/component/metadata-list/style.ts +10 -0
- package/src/component/nav-desktop/index.tsx +43 -0
- package/src/component/nav-desktop/style.ts +94 -0
- package/src/component/nav-mobile/index.tsx +358 -0
- package/src/component/nav-mobile/style.ts +354 -0
- package/src/component/nav-types.ts +13 -0
- package/src/component/page/index.tsx +87 -0
- package/src/component/page/style.ts +133 -0
- package/src/component/progress-indicator/index.tsx +58 -0
- package/src/component/progress-indicator/style.ts +24 -0
- package/src/component/tag/index.tsx +38 -0
- package/src/component/tag/style.ts +28 -0
- package/src/component/theme-setting/index.tsx +24 -0
- package/src/component/top-fade/index.tsx +8 -0
- package/src/component/top-fade/style.ts +58 -0
- package/src/control/action-menu-list/index.tsx +75 -0
- package/src/control/action-menu-list/style.ts +51 -0
- package/src/control/action-menu-list/use-dismiss.ts +29 -0
- package/src/control/back-button/index.tsx +44 -0
- package/src/control/back-button/style.ts +26 -0
- package/src/control/button/index.tsx +148 -0
- package/src/control/button/style.ts +389 -0
- package/src/control/chips-input/index.tsx +168 -0
- package/src/control/chips-input/style.ts +158 -0
- package/src/control/confirm-modal/index.tsx +79 -0
- package/src/control/confirm-modal/style.ts +33 -0
- package/src/control/date-time-input/index.tsx +95 -0
- package/src/control/date-time-input/iso-date.ts +61 -0
- package/src/control/date-time-input/style.ts +72 -0
- package/src/control/field-list/index.tsx +78 -0
- package/src/control/field-list/style.ts +43 -0
- package/src/control/index.ts +23 -0
- package/src/control/number-input/index.tsx +75 -0
- package/src/control/number-input/style.ts +50 -0
- package/src/control/page-actions-bar/index.tsx +68 -0
- package/src/control/page-actions-bar/style.ts +63 -0
- package/src/control/page-actions-menu/index.tsx +49 -0
- package/src/control/page-actions-menu/style.ts +33 -0
- package/src/control/page-footer-actions/index.tsx +50 -0
- package/src/control/page-footer-actions/style.ts +12 -0
- package/src/control/popover/index.tsx +102 -0
- package/src/control/popover/style.ts +8 -0
- package/src/control/segmented-control/index.tsx +193 -0
- package/src/control/segmented-control/style.ts +150 -0
- package/src/control/select/index.tsx +326 -0
- package/src/control/select/style.ts +192 -0
- package/src/control/switch/index.tsx +189 -0
- package/src/control/switch/style.ts +172 -0
- package/src/control/text-area/index.tsx +106 -0
- package/src/control/text-area/style.ts +85 -0
- package/src/control/text-input/index.tsx +124 -0
- package/src/control/text-input/style.ts +80 -0
- package/src/control/use-modal-dialog/index.ts +75 -0
- package/src/hooks/index.ts +5 -0
- package/src/hooks/is-standalone.ts +11 -0
- package/src/hooks/use-minimize-on-scroll.ts +137 -0
- package/src/hooks/use-pull-to-refresh.ts +133 -0
- package/src/icon/adjustments-horizontal.tsx +48 -0
- package/src/icon/alert-octagon.tsx +31 -0
- package/src/icon/book.tsx +42 -0
- package/src/icon/books.tsx +46 -0
- package/src/icon/check.tsx +31 -0
- package/src/icon/chevron-circle.tsx +40 -0
- package/src/icon/chevron.tsx +39 -0
- package/src/icon/circle-x.tsx +30 -0
- package/src/icon/clock.tsx +41 -0
- package/src/icon/device.tsx +41 -0
- package/src/icon/emoji.tsx +70 -0
- package/src/icon/hand-love-you.tsx +5 -0
- package/src/icon/hand-ok.tsx +5 -0
- package/src/icon/hand-peace.tsx +7 -0
- package/src/icon/hands-clap.tsx +5 -0
- package/src/icon/home.tsx +42 -0
- package/src/icon/index.ts +31 -0
- package/src/icon/info-circle.tsx +30 -0
- package/src/icon/key.tsx +38 -0
- package/src/icon/list-check.tsx +44 -0
- package/src/icon/more.tsx +41 -0
- package/src/icon/props.ts +29 -0
- package/src/icon/row-remove.tsx +41 -0
- package/src/icon/search.tsx +41 -0
- package/src/icon/settings.tsx +41 -0
- package/src/icon/spinner.tsx +36 -0
- package/src/icon/thumb-down.tsx +5 -0
- package/src/icon/upload.tsx +42 -0
- package/src/icon/user.tsx +41 -0
- package/src/icon/users.tsx +43 -0
- package/src/icon/x.tsx +41 -0
- package/src/index.ts +12 -0
- package/src/theme/context.ts +19 -0
- package/src/theme/global-styles.ts +71 -0
- package/src/theme/index.ts +11 -0
- package/src/theme/provider.tsx +74 -0
- package/src/theme/theme.ts +672 -0
- package/src/theme/use-theme-setting.ts +10 -0
- package/src/theme/use-theme.tsx +7 -0
- package/src/toast/context.ts +9 -0
- package/src/toast/hook/index.ts +1 -0
- package/src/toast/hook/use-toast.ts +8 -0
- package/src/toast/index.ts +2 -0
- package/src/toast/provider.tsx +90 -0
- package/src/toast/reducer.ts +41 -0
- package/src/toast/style.ts +63 -0
- package/src/toast/toast.tsx +51 -0
- package/src/utils.ts +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/icon/props.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAQF,eAAO,MAAM,sBAAsB;;;;;CAGlC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAKlC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const defaultIconProps = {
|
|
2
|
+
className: '',
|
|
3
|
+
height: 24,
|
|
4
|
+
width: 24,
|
|
5
|
+
};
|
|
6
|
+
export const defaultFilledIconProps = {
|
|
7
|
+
...defaultIconProps,
|
|
8
|
+
fill: 'currentColor',
|
|
9
|
+
};
|
|
10
|
+
export const defaultStrokeIconProps = {
|
|
11
|
+
...defaultIconProps,
|
|
12
|
+
fill: 'none',
|
|
13
|
+
stroke: 'currentColor',
|
|
14
|
+
strokeWidth: 2,
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../src/icon/props.ts"],"names":[],"mappings":"AAYA,MAAM,gBAAgB,GAAG;IACvB,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,GAAG,gBAAgB;IACnB,IAAI,EAAE,cAAc;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,GAAG,gBAAgB;IACnB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,cAAc;IACtB,WAAW,EAAE,CAAC;CACf,CAAC","sourcesContent":["export type IconProps = {\n 'aria-hidden'?: boolean | 'true' | 'false';\n 'aria-label'?: string;\n className?: string;\n fill?: string;\n height?: number;\n role?: string;\n stroke?: string;\n strokeWidth?: number;\n width?: number;\n};\n\nconst defaultIconProps = {\n className: '',\n height: 24,\n width: 24,\n};\n\nexport const defaultFilledIconProps = {\n ...defaultIconProps,\n fill: 'currentColor',\n};\n\nexport const defaultStrokeIconProps = {\n ...defaultIconProps,\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: 2,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-remove.d.ts","sourceRoot":"","sources":["../../src/icon/row-remove.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,aAAa,UAAW,SAAS,gCAqC7C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { defaultStrokeIconProps } from './props.js';
|
|
3
|
+
// https://tabler.io/icons?icon=row-remove
|
|
4
|
+
export const RowRemoveIcon = (props) => {
|
|
5
|
+
const { 'aria-hidden': ariaHidden, 'aria-label': ariaLabel, className, fill, height, role, stroke, strokeWidth, width, } = {
|
|
6
|
+
...defaultStrokeIconProps,
|
|
7
|
+
...props,
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("svg", { "aria-hidden": ariaHidden, "aria-label": ariaLabel, className: className, fill: fill, height: height, role: role, stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, viewBox: "0 0 24 24", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1" }), _jsx("path", { d: "M10 16l4 4" }), _jsx("path", { d: "M10 20l4 -4" })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=row-remove.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-remove.js","sourceRoot":"","sources":["../../src/icon/row-remove.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE/D,0CAA0C;AAC1C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAgB,EAAE,EAAE;IAChD,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,GACN,GAAG;QACF,GAAG,sBAAsB;QACzB,GAAG,KAAK;KACT,CAAC;IACF,OAAO,CACL,8BACe,UAAU,gBACX,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,4BAA4B,aAElC,eAAM,MAAM,EAAC,MAAM,EAAC,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACpD,eAAM,CAAC,EAAC,+EAA+E,GAAG,EAC1F,eAAM,CAAC,EAAC,YAAY,GAAG,EACvB,eAAM,CAAC,EAAC,aAAa,GAAG,IACpB,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconProps, defaultStrokeIconProps } from './props.js';\n\n// https://tabler.io/icons?icon=row-remove\nexport const RowRemoveIcon = (props: IconProps) => {\n const {\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n className,\n fill,\n height,\n role,\n stroke,\n strokeWidth,\n width,\n } = {\n ...defaultStrokeIconProps,\n ...props,\n };\n return (\n <svg\n aria-hidden={ariaHidden}\n aria-label={ariaLabel}\n className={className}\n fill={fill}\n height={height}\n role={role}\n stroke={stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 24 24\"\n width={width}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1\" />\n <path d=\"M10 16l4 4\" />\n <path d=\"M10 20l4 -4\" />\n </svg>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/icon/search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,UAAU,UAAW,SAAS,gCAqC1C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { defaultStrokeIconProps } from './props.js';
|
|
3
|
+
// https://tabler.io/icons?icon=search
|
|
4
|
+
export const SearchIcon = (props) => {
|
|
5
|
+
const { 'aria-hidden': ariaHidden, 'aria-label': ariaLabel, className, fill, height, role, stroke, strokeWidth, width, } = {
|
|
6
|
+
...defaultStrokeIconProps,
|
|
7
|
+
...props,
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("svg", { "aria-hidden": ariaHidden, "aria-label": ariaLabel, className: className, fill: fill, height: height, role: role, stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, viewBox: "0 0 24 24", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }), _jsx("path", { d: "M21 21l-6 -6" })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../src/icon/search.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE/D,sCAAsC;AACtC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAgB,EAAE,EAAE;IAC7C,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,GACN,GAAG;QACF,GAAG,sBAAsB;QACzB,GAAG,KAAK;KACT,CAAC;IAEF,OAAO,CACL,8BACe,UAAU,gBACX,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,4BAA4B,aAElC,eAAM,MAAM,EAAC,MAAM,EAAC,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACpD,eAAM,CAAC,EAAC,sCAAsC,GAAG,EACjD,eAAM,CAAC,EAAC,cAAc,GAAG,IACrB,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconProps, defaultStrokeIconProps } from './props.js';\n\n// https://tabler.io/icons?icon=search\nexport const SearchIcon = (props: IconProps) => {\n const {\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n className,\n fill,\n height,\n role,\n stroke,\n strokeWidth,\n width,\n } = {\n ...defaultStrokeIconProps,\n ...props,\n };\n\n return (\n <svg\n aria-hidden={ariaHidden}\n aria-label={ariaLabel}\n className={className}\n fill={fill}\n height={height}\n role={role}\n stroke={stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 24 24\"\n width={width}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\" />\n <path d=\"M21 21l-6 -6\" />\n </svg>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/icon/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,YAAY,UAAW,SAAS,gCAqC5C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { defaultStrokeIconProps } from './props.js';
|
|
3
|
+
// https://tabler.io/icons?icon=settings
|
|
4
|
+
export const SettingsIcon = (props) => {
|
|
5
|
+
const { 'aria-hidden': ariaHidden, 'aria-label': ariaLabel, className, fill, height, role, stroke, strokeWidth, width, } = {
|
|
6
|
+
...defaultStrokeIconProps,
|
|
7
|
+
...props,
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("svg", { "aria-hidden": ariaHidden, "aria-label": ariaLabel, className: className, fill: fill, height: height, role: role, stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, viewBox: "0 0 24 24", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065" }), _jsx("path", { d: "M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/icon/settings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE/D,wCAAwC;AACxC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAgB,EAAE,EAAE;IAC/C,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,GACN,GAAG;QACF,GAAG,sBAAsB;QACzB,GAAG,KAAK;KACT,CAAC;IAEF,OAAO,CACL,8BACe,UAAU,gBACX,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,4BAA4B,aAElC,eAAM,MAAM,EAAC,MAAM,EAAC,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACpD,eAAM,CAAC,EAAC,4gBAA4gB,GAAG,EACvhB,eAAM,CAAC,EAAC,oCAAoC,GAAG,IAC3C,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconProps, defaultStrokeIconProps } from './props.js';\n\n// https://tabler.io/icons?icon=settings\nexport const SettingsIcon = (props: IconProps) => {\n const {\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n className,\n fill,\n height,\n role,\n stroke,\n strokeWidth,\n width,\n } = {\n ...defaultStrokeIconProps,\n ...props,\n };\n\n return (\n <svg\n aria-hidden={ariaHidden}\n aria-label={ariaLabel}\n className={className}\n fill={fill}\n height={height}\n role={role}\n stroke={stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 24 24\"\n width={width}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065\" />\n <path d=\"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0\" />\n </svg>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/icon/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,WAAW,UAAW,SAAS,gCAiC3C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { defaultStrokeIconProps } from './props.js';
|
|
3
|
+
export const SpinnerIcon = (props) => {
|
|
4
|
+
const { 'aria-hidden': ariaHidden, 'aria-label': ariaLabel, className, height, role, stroke, strokeWidth, width, } = {
|
|
5
|
+
...defaultStrokeIconProps,
|
|
6
|
+
...props,
|
|
7
|
+
};
|
|
8
|
+
return (_jsx("svg", { "aria-hidden": ariaHidden, "aria-label": ariaLabel, className: className, fill: "none", height: height, role: role, stroke: stroke, strokeLinecap: "round", strokeWidth: strokeWidth, viewBox: "0 0 24 24", width: width, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M12,1 C18,1 23,6 23,12" }) }));
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/icon/spinner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE/D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAgB,EAAE,EAAE;IAC9C,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,MAAM,EACN,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,GACN,GAAG;QACF,GAAG,sBAAsB;QACzB,GAAG,KAAK;KACT,CAAC;IAEF,OAAO,CACL,6BACe,UAAU,gBACX,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAC,OAAO,EACrB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,4BAA4B,YAElC,eAAM,CAAC,EAAC,wBAAwB,GAAG,GAC/B,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconProps, defaultStrokeIconProps } from './props.js';\n\nexport const SpinnerIcon = (props: IconProps) => {\n const {\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n className,\n height,\n role,\n stroke,\n strokeWidth,\n width,\n } = {\n ...defaultStrokeIconProps,\n ...props,\n };\n\n return (\n <svg\n aria-hidden={ariaHidden}\n aria-label={ariaLabel}\n className={className}\n fill=\"none\"\n height={height}\n role={role}\n stroke={stroke}\n strokeLinecap=\"round\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 24 24\"\n width={width}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M12,1 C18,1 23,6 23,12\" />\n </svg>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumb-down.d.ts","sourceRoot":"","sources":["../../src/icon/thumb-down.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,eAAO,MAAM,aAAa,UAAW,SAAS,gCAAiD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { EmojiIcon } from './emoji.js';
|
|
3
|
+
// Thumbs down 👎 (U+1F44E) as a currentColor silhouette; rating 1, Bad.
|
|
4
|
+
export const ThumbDownIcon = (props) => _jsx(EmojiIcon, { glyph: '\u{1F44E}', ...props });
|
|
5
|
+
//# sourceMappingURL=thumb-down.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumb-down.js","sourceRoot":"","sources":["../../src/icon/thumb-down.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,wEAAwE;AACxE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAC,SAAS,IAAC,KAAK,EAAE,WAAW,KAAM,KAAK,GAAI,CAAC","sourcesContent":["import { EmojiIcon } from './emoji.js';\nimport { IconProps } from './props.js';\n\n// Thumbs down 👎 (U+1F44E) as a currentColor silhouette; rating 1, Bad.\nexport const ThumbDownIcon = (props: IconProps) => <EmojiIcon glyph={'\\u{1F44E}'} {...props} />;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../src/icon/upload.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,UAAU,UAAW,SAAS,gCAsC1C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { defaultStrokeIconProps } from './props.js';
|
|
3
|
+
// https://tabler.io/icons/icon/upload
|
|
4
|
+
export const UploadIcon = (props) => {
|
|
5
|
+
const { 'aria-hidden': ariaHidden, 'aria-label': ariaLabel, className, fill, height, role, stroke, strokeWidth, width, } = {
|
|
6
|
+
...defaultStrokeIconProps,
|
|
7
|
+
...props,
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("svg", { "aria-hidden": ariaHidden, "aria-label": ariaLabel, className: className, fill: fill, height: height, role: role, stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, viewBox: "0 0 24 24", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" }), _jsx("path", { d: "M7 9l5 -5l5 5" }), _jsx("path", { d: "M12 4l0 12" })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../src/icon/upload.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE/D,sCAAsC;AACtC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAgB,EAAE,EAAE;IAC7C,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,GACN,GAAG;QACF,GAAG,sBAAsB;QACzB,GAAG,KAAK;KACT,CAAC;IAEF,OAAO,CACL,8BACe,UAAU,gBACX,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,4BAA4B,aAElC,eAAM,MAAM,EAAC,MAAM,EAAC,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACpD,eAAM,CAAC,EAAC,4CAA4C,GAAG,EACvD,eAAM,CAAC,EAAC,eAAe,GAAG,EAC1B,eAAM,CAAC,EAAC,YAAY,GAAG,IACnB,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconProps, defaultStrokeIconProps } from './props.js';\n\n// https://tabler.io/icons/icon/upload\nexport const UploadIcon = (props: IconProps) => {\n const {\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n className,\n fill,\n height,\n role,\n stroke,\n strokeWidth,\n width,\n } = {\n ...defaultStrokeIconProps,\n ...props,\n };\n\n return (\n <svg\n aria-hidden={ariaHidden}\n aria-label={ariaLabel}\n className={className}\n fill={fill}\n height={height}\n role={role}\n stroke={stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 24 24\"\n width={width}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2\" />\n <path d=\"M7 9l5 -5l5 5\" />\n <path d=\"M12 4l0 12\" />\n </svg>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/icon/user.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,QAAQ,UAAW,SAAS,gCAqCxC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { defaultStrokeIconProps } from './props.js';
|
|
3
|
+
// https://tabler.io/icons?icon=user
|
|
4
|
+
export const UserIcon = (props) => {
|
|
5
|
+
const { 'aria-hidden': ariaHidden, 'aria-label': ariaLabel, className, fill, height, role, stroke, strokeWidth, width, } = {
|
|
6
|
+
...defaultStrokeIconProps,
|
|
7
|
+
...props,
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("svg", { "aria-hidden": ariaHidden, "aria-label": ariaLabel, className: className, fill: fill, height: height, role: role, stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, viewBox: "0 0 24 24", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0" }), _jsx("path", { d: "M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/icon/user.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE/D,oCAAoC;AACpC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAgB,EAAE,EAAE;IAC3C,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,GACN,GAAG;QACF,GAAG,sBAAsB;QACzB,GAAG,KAAK;KACT,CAAC;IAEF,OAAO,CACL,8BACe,UAAU,gBACX,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,4BAA4B,aAElC,eAAM,MAAM,EAAC,MAAM,EAAC,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACpD,eAAM,CAAC,EAAC,mCAAmC,GAAG,EAC9C,eAAM,CAAC,EAAC,2CAA2C,GAAG,IAClD,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconProps, defaultStrokeIconProps } from './props.js';\n\n// https://tabler.io/icons?icon=user\nexport const UserIcon = (props: IconProps) => {\n const {\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n className,\n fill,\n height,\n role,\n stroke,\n strokeWidth,\n width,\n } = {\n ...defaultStrokeIconProps,\n ...props,\n };\n\n return (\n <svg\n aria-hidden={ariaHidden}\n aria-label={ariaLabel}\n className={className}\n fill={fill}\n height={height}\n role={role}\n stroke={stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 24 24\"\n width={width}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0\" />\n <path d=\"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2\" />\n </svg>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/icon/users.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,SAAS,UAAW,SAAS,gCAuCzC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { defaultStrokeIconProps } from './props.js';
|
|
3
|
+
// https://tabler.io/icons?icon=users
|
|
4
|
+
export const UsersIcon = (props) => {
|
|
5
|
+
const { 'aria-hidden': ariaHidden, 'aria-label': ariaLabel, className, fill, height, role, stroke, strokeWidth, width, } = {
|
|
6
|
+
...defaultStrokeIconProps,
|
|
7
|
+
...props,
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("svg", { "aria-hidden": ariaHidden, "aria-label": ariaLabel, className: className, fill: fill, height: height, role: role, stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, viewBox: "0 0 24 24", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" }), _jsx("path", { d: "M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" }), _jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" }), _jsx("path", { d: "M21 21v-2a4 4 0 0 0 -3 -3.85" })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/icon/users.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE/D,qCAAqC;AACrC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAgB,EAAE,EAAE;IAC5C,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,GACN,GAAG;QACF,GAAG,sBAAsB;QACzB,GAAG,KAAK;KACT,CAAC;IAEF,OAAO,CACL,8BACe,UAAU,gBACX,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,4BAA4B,aAElC,eAAM,MAAM,EAAC,MAAM,EAAC,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACpD,eAAM,CAAC,EAAC,mCAAmC,GAAG,EAC9C,eAAM,CAAC,EAAC,2CAA2C,GAAG,EACtD,eAAM,CAAC,EAAC,2BAA2B,GAAG,EACtC,eAAM,CAAC,EAAC,8BAA8B,GAAG,IACrC,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconProps, defaultStrokeIconProps } from './props.js';\n\n// https://tabler.io/icons?icon=users\nexport const UsersIcon = (props: IconProps) => {\n const {\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n className,\n fill,\n height,\n role,\n stroke,\n strokeWidth,\n width,\n } = {\n ...defaultStrokeIconProps,\n ...props,\n };\n\n return (\n <svg\n aria-hidden={ariaHidden}\n aria-label={ariaLabel}\n className={className}\n fill={fill}\n height={height}\n role={role}\n stroke={stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 24 24\"\n width={width}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0\" />\n <path d=\"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2\" />\n <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />\n <path d=\"M21 21v-2a4 4 0 0 0 -3 -3.85\" />\n </svg>\n );\n};\n"]}
|
package/dist/icon/x.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x.d.ts","sourceRoot":"","sources":["../../src/icon/x.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,KAAK,UAAW,SAAS,gCAqCrC,CAAC"}
|
package/dist/icon/x.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { defaultStrokeIconProps } from './props.js';
|
|
3
|
+
// https://tabler.io/icons?icon=x
|
|
4
|
+
export const XIcon = (props) => {
|
|
5
|
+
const { 'aria-hidden': ariaHidden, 'aria-label': ariaLabel, className, fill, height, role, stroke, strokeWidth, width, } = {
|
|
6
|
+
...defaultStrokeIconProps,
|
|
7
|
+
...props,
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("svg", { "aria-hidden": ariaHidden, "aria-label": ariaLabel, className: className, fill: fill, height: height, role: role, stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, viewBox: "0 0 24 24", width: width, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), _jsx("path", { d: "M18 6l-12 12" }), _jsx("path", { d: "M6 6l12 12" })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=x.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x.js","sourceRoot":"","sources":["../../src/icon/x.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE/D,iCAAiC;AACjC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAgB,EAAE,EAAE;IACxC,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,GACN,GAAG;QACF,GAAG,sBAAsB;QACzB,GAAG,KAAK;KACT,CAAC;IAEF,OAAO,CACL,8BACe,UAAU,gBACX,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,4BAA4B,aAElC,eAAM,MAAM,EAAC,MAAM,EAAC,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACpD,eAAM,CAAC,EAAC,cAAc,GAAG,EACzB,eAAM,CAAC,EAAC,YAAY,GAAG,IACnB,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconProps, defaultStrokeIconProps } from './props.js';\n\n// https://tabler.io/icons?icon=x\nexport const XIcon = (props: IconProps) => {\n const {\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n className,\n fill,\n height,\n role,\n stroke,\n strokeWidth,\n width,\n } = {\n ...defaultStrokeIconProps,\n ...props,\n };\n\n return (\n <svg\n aria-hidden={ariaHidden}\n aria-label={ariaLabel}\n className={className}\n fill={fill}\n height={height}\n role={role}\n stroke={stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={strokeWidth}\n viewBox=\"0 0 24 24\"\n width={width}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M18 6l-12 12\" />\n <path d=\"M6 6l12 12\" />\n </svg>\n );\n};\n"]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { applyTransparency } from './utils.js';
|
|
2
|
+
export * from './theme/index.js';
|
|
3
|
+
export * from './icon/index.js';
|
|
4
|
+
export * from './toast/index.js';
|
|
5
|
+
export * from './control/index.js';
|
|
6
|
+
export * from './hooks/index.js';
|
|
7
|
+
export * from './component/index.js';
|
|
8
|
+
export { ThemeSetting } from './component/index.js';
|
|
9
|
+
export type { ThemeSetting as ThemeSettingValue } from './theme/index.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AAIrC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,YAAY,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { applyTransparency } from './utils.js';
|
|
2
|
+
export * from './theme/index.js';
|
|
3
|
+
export * from './icon/index.js';
|
|
4
|
+
export * from './toast/index.js';
|
|
5
|
+
export * from './control/index.js';
|
|
6
|
+
export * from './hooks/index.js';
|
|
7
|
+
export * from './component/index.js';
|
|
8
|
+
// `./theme` exports the `ThemeSetting` type and `./component` the `ThemeSetting`
|
|
9
|
+
// component. Explicit exports resolve the star-export clash: the component keeps
|
|
10
|
+
// the name, the type is available as `ThemeSettingValue`.
|
|
11
|
+
export { ThemeSetting } from './component/index.js';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,iFAAiF;AACjF,iFAAiF;AACjF,0DAA0D;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export { applyTransparency } from './utils.js';\nexport * from './theme/index.js';\nexport * from './icon/index.js';\nexport * from './toast/index.js';\nexport * from './control/index.js';\nexport * from './hooks/index.js';\nexport * from './component/index.js';\n// `./theme` exports the `ThemeSetting` type and `./component` the `ThemeSetting`\n// component. Explicit exports resolve the star-export clash: the component keeps\n// the name, the type is available as `ThemeSettingValue`.\nexport { ThemeSetting } from './component/index.js';\nexport type { ThemeSetting as ThemeSettingValue } from './theme/index.js';\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ThemeMode } from './theme.js';
|
|
2
|
+
export type ThemeSetting = 'light' | 'dark' | 'auto';
|
|
3
|
+
export type ThemeModeContext = {
|
|
4
|
+
/** The user's choice. */
|
|
5
|
+
setting: ThemeSetting;
|
|
6
|
+
setSetting: (setting: ThemeSetting) => void;
|
|
7
|
+
/** The concrete mode after resolving 'auto' against the OS. */
|
|
8
|
+
resolvedMode: ThemeMode;
|
|
9
|
+
};
|
|
10
|
+
export declare const Context: import("react").Context<ThemeModeContext>;
|
|
11
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/theme/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,yBAAyB;IACzB,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,+DAA+D;IAC/D,YAAY,EAAE,SAAS,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,OAAO,2CAIlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/theme/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AActC,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAmB;IACrD,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,GAAG,EAAE,CAAC,SAAS;IAC3B,YAAY,EAAE,OAAO;CACtB,CAAC,CAAC","sourcesContent":["import { createContext } from 'react';\n\nimport type { ThemeMode } from './theme.js';\n\nexport type ThemeSetting = 'light' | 'dark' | 'auto';\n\nexport type ThemeModeContext = {\n /** The user's choice. */\n setting: ThemeSetting;\n setSetting: (setting: ThemeSetting) => void;\n /** The concrete mode after resolving 'auto' against the OS. */\n resolvedMode: ThemeMode;\n};\n\nexport const Context = createContext<ThemeModeContext>({\n setting: 'auto',\n setSetting: () => undefined,\n resolvedMode: 'light',\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-styles.d.ts","sourceRoot":"","sources":["../../src/theme/global-styles.ts"],"names":[],"mappings":"AA+DA,wBAAgB,oBAAoB,SAEnC;AAED,wBAAgB,YAAY,SAG3B"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createUseStyles } from 'react-jss';
|
|
2
|
+
const useGlobalStyles = createUseStyles((theme) => ({
|
|
3
|
+
'@global': {
|
|
4
|
+
html: {
|
|
5
|
+
backgroundColor: theme.color.bg.page,
|
|
6
|
+
},
|
|
7
|
+
body: {
|
|
8
|
+
fontFamily: theme.fontFamily.body,
|
|
9
|
+
backgroundColor: theme.color.bg.page,
|
|
10
|
+
color: theme.color.text.primary,
|
|
11
|
+
colorScheme: theme.colorScheme,
|
|
12
|
+
minHeight: '100dvh',
|
|
13
|
+
fallbacks: {
|
|
14
|
+
minHeight: '100vh',
|
|
15
|
+
},
|
|
16
|
+
'-webkit-text-size-adjust': '100%',
|
|
17
|
+
'-webkit-font-smoothing': 'antialiased',
|
|
18
|
+
'-moz-osx-font-smoothing': 'grayscale',
|
|
19
|
+
},
|
|
20
|
+
'body:has(dialog[open])': {
|
|
21
|
+
overflow: 'hidden',
|
|
22
|
+
},
|
|
23
|
+
'a, button': {
|
|
24
|
+
'-webkit-tap-highlight-color': 'transparent',
|
|
25
|
+
},
|
|
26
|
+
// iOS Safari auto-zooms when a form control with a font-size below 16px is
|
|
27
|
+
// focused. Enforce a 16px floor on mobile so focusing an input never zooms.
|
|
28
|
+
// Controls that set their own class-level font-size out-specify this rule and
|
|
29
|
+
// handle the mobile breakpoint themselves (see select, search-bar, etc.).
|
|
30
|
+
[theme.breakpoint.mobile]: {
|
|
31
|
+
'input, textarea, select': {
|
|
32
|
+
fontSize: '16px',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
'@keyframes theme-rotation': {
|
|
36
|
+
'0%': { transform: 'rotate(0deg)' },
|
|
37
|
+
'100%': { transform: 'rotate(360deg)' },
|
|
38
|
+
},
|
|
39
|
+
'@keyframes theme-slide-in': {
|
|
40
|
+
from: { opacity: 0, transform: 'translateY(0.4rem)' },
|
|
41
|
+
to: { opacity: 1, transform: 'translateY(0)' },
|
|
42
|
+
},
|
|
43
|
+
'@keyframes theme-slide-out': {
|
|
44
|
+
from: { opacity: 1, transform: 'translateY(0)' },
|
|
45
|
+
to: { opacity: 0, transform: 'translateY(0.4rem)' },
|
|
46
|
+
},
|
|
47
|
+
// Mobile toasts rest just above the bottom nav and sit behind it (lower
|
|
48
|
+
// z-index), so a full-height rise makes them appear to slide out from
|
|
49
|
+
// underneath the nav and settle above it; exiting reverses back under it.
|
|
50
|
+
'@keyframes theme-slide-in-up': {
|
|
51
|
+
from: { opacity: 0, transform: 'translateY(100%)' },
|
|
52
|
+
to: { opacity: 1, transform: 'translateY(0)' },
|
|
53
|
+
},
|
|
54
|
+
'@keyframes theme-slide-out-down': {
|
|
55
|
+
from: { opacity: 1, transform: 'translateY(0)' },
|
|
56
|
+
to: { opacity: 0, transform: 'translateY(100%)' },
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
}));
|
|
60
|
+
export function useThemeGlobalStyles() {
|
|
61
|
+
useGlobalStyles();
|
|
62
|
+
}
|
|
63
|
+
export function GlobalStyles() {
|
|
64
|
+
useThemeGlobalStyles();
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=global-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-styles.js","sourceRoot":"","sources":["../../src/theme/global-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,MAAM,eAAe,GAAG,eAAe,CAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACzD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI;SACrC;QACD,IAAI,EAAE;YACJ,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,IAAI;YACjC,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI;YACpC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO;YAC/B,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE;gBACT,SAAS,EAAE,OAAO;aACnB;YACD,0BAA0B,EAAE,MAAM;YAClC,wBAAwB,EAAE,aAAa;YACvC,yBAAyB,EAAE,WAAW;SACvC;QACD,wBAAwB,EAAE;YACxB,QAAQ,EAAE,QAAQ;SACnB;QACD,WAAW,EAAE;YACX,6BAA6B,EAAE,aAAa;SAC7C;QACD,2EAA2E;QAC3E,4EAA4E;QAC5E,8EAA8E;QAC9E,0EAA0E;QAC1E,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YACzB,yBAAyB,EAAE;gBACzB,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,2BAA2B,EAAE;YAC3B,IAAI,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE;YACnC,MAAM,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE;SACxC;QACD,2BAA2B,EAAE;YAC3B,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE;YACrD,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE;SAC/C;QACD,4BAA4B,EAAE;YAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE;YAChD,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE;SACpD;QACD,wEAAwE;QACxE,sEAAsE;QACtE,0EAA0E;QAC1E,8BAA8B,EAAE;YAC9B,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE;YACnD,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE;SAC/C;QACD,iCAAiC,EAAE;YACjC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE;YAChD,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE;SAClD;KACF;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,UAAU,oBAAoB;IAClC,eAAe,EAAE,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,oBAAoB,EAAE,CAAC;IACvB,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import { createUseStyles } from 'react-jss';\n\nimport type { Theme } from './theme.js';\n\nconst useGlobalStyles = createUseStyles((theme: Theme) => ({\n '@global': {\n html: {\n backgroundColor: theme.color.bg.page,\n },\n body: {\n fontFamily: theme.fontFamily.body,\n backgroundColor: theme.color.bg.page,\n color: theme.color.text.primary,\n colorScheme: theme.colorScheme,\n minHeight: '100dvh',\n fallbacks: {\n minHeight: '100vh',\n },\n '-webkit-text-size-adjust': '100%',\n '-webkit-font-smoothing': 'antialiased',\n '-moz-osx-font-smoothing': 'grayscale',\n },\n 'body:has(dialog[open])': {\n overflow: 'hidden',\n },\n 'a, button': {\n '-webkit-tap-highlight-color': 'transparent',\n },\n // iOS Safari auto-zooms when a form control with a font-size below 16px is\n // focused. Enforce a 16px floor on mobile so focusing an input never zooms.\n // Controls that set their own class-level font-size out-specify this rule and\n // handle the mobile breakpoint themselves (see select, search-bar, etc.).\n [theme.breakpoint.mobile]: {\n 'input, textarea, select': {\n fontSize: '16px',\n },\n },\n '@keyframes theme-rotation': {\n '0%': { transform: 'rotate(0deg)' },\n '100%': { transform: 'rotate(360deg)' },\n },\n '@keyframes theme-slide-in': {\n from: { opacity: 0, transform: 'translateY(0.4rem)' },\n to: { opacity: 1, transform: 'translateY(0)' },\n },\n '@keyframes theme-slide-out': {\n from: { opacity: 1, transform: 'translateY(0)' },\n to: { opacity: 0, transform: 'translateY(0.4rem)' },\n },\n // Mobile toasts rest just above the bottom nav and sit behind it (lower\n // z-index), so a full-height rise makes them appear to slide out from\n // underneath the nav and settle above it; exiting reverses back under it.\n '@keyframes theme-slide-in-up': {\n from: { opacity: 0, transform: 'translateY(100%)' },\n to: { opacity: 1, transform: 'translateY(0)' },\n },\n '@keyframes theme-slide-out-down': {\n from: { opacity: 1, transform: 'translateY(0)' },\n to: { opacity: 0, transform: 'translateY(100%)' },\n },\n },\n}));\n\nexport function useThemeGlobalStyles() {\n useGlobalStyles();\n}\n\nexport function GlobalStyles() {\n useThemeGlobalStyles();\n return null;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { createUseStyles } from 'react-jss';
|
|
2
|
+
export { ThemeProvider } from './provider.js';
|
|
3
|
+
export { useTheme } from './use-theme.js';
|
|
4
|
+
export { GlobalStyles, useThemeGlobalStyles } from './global-styles.js';
|
|
5
|
+
export type { Theme } from './theme.js';
|
|
6
|
+
export { useThemeSetting } from './use-theme-setting.js';
|
|
7
|
+
export type { ThemeSetting } from './context.js';
|
|
8
|
+
export type { ThemeMode } from './theme.js';
|
|
9
|
+
export { lightTheme, darkTheme } from './theme.js';
|
|
10
|
+
export type { ThemeProviderProps } from './provider.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACxE,YAAY,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createUseStyles } from 'react-jss';
|
|
2
|
+
export { ThemeProvider } from './provider.js';
|
|
3
|
+
export { useTheme } from './use-theme.js';
|
|
4
|
+
export { GlobalStyles, useThemeGlobalStyles } from './global-styles.js';
|
|
5
|
+
export { useThemeSetting } from './use-theme-setting.js';
|
|
6
|
+
export { lightTheme, darkTheme } from './theme.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { createUseStyles } from 'react-jss';\n\nexport { ThemeProvider } from './provider.js';\nexport { useTheme } from './use-theme.js';\nexport { GlobalStyles, useThemeGlobalStyles } from './global-styles.js';\nexport type { Theme } from './theme.js';\nexport { useThemeSetting } from './use-theme-setting.js';\nexport type { ThemeSetting } from './context.js';\nexport type { ThemeMode } from './theme.js';\nexport { lightTheme, darkTheme } from './theme.js';\nexport type { ThemeProviderProps } from './provider.js';\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export type ThemeProviderProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
identity?: string | null;
|
|
5
|
+
};
|
|
6
|
+
export declare const ThemeProvider: ({ children, identity }: ThemeProviderProps) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/theme/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6C,MAAM,OAAO,CAAC;AAwBlF,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AACnF,eAAO,MAAM,aAAa,2BAAmC,kBAAkB,gCAgD9E,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { ThemeProvider as JssThemeProvider } from 'react-jss';
|
|
4
|
+
import { Context } from './context.js';
|
|
5
|
+
import { GlobalStyles } from './global-styles.js';
|
|
6
|
+
import { darkTheme, lightTheme } from './theme.js';
|
|
7
|
+
const STORAGE_PREFIX = 'theme-setting:';
|
|
8
|
+
const DARK_QUERY = '(prefers-color-scheme: dark)';
|
|
9
|
+
// The appearance choice belongs to the user the consumer identifies via the
|
|
10
|
+
// `identity` prop, not the device: it is stored under a per-identity key so
|
|
11
|
+
// switching to `null` (signed out) drops back to 'auto' (the sign-in screen
|
|
12
|
+
// never inherits a previous user's dark choice) and switching back restores
|
|
13
|
+
// that user's own choice. A `null` identity has no key, so nothing is stored.
|
|
14
|
+
const storageKey = (identity) => identity === null ? null : `${STORAGE_PREFIX}${identity}`;
|
|
15
|
+
const readSetting = (identity) => {
|
|
16
|
+
const key = storageKey(identity);
|
|
17
|
+
const stored = key === null ? null : localStorage.getItem(key);
|
|
18
|
+
return stored === 'light' || stored === 'dark' || stored === 'auto' ? stored : 'auto';
|
|
19
|
+
};
|
|
20
|
+
export const ThemeProvider = ({ children, identity = null }) => {
|
|
21
|
+
const [scope, setScope] = useState(identity);
|
|
22
|
+
const [setting, setSettingState] = useState(() => readSetting(identity));
|
|
23
|
+
const [systemDark, setSystemDark] = useState(() => window.matchMedia(DARK_QUERY).matches);
|
|
24
|
+
// Re-scope whenever the consumer's identity changes: on sign-in restore that
|
|
25
|
+
// user's saved choice; on sign-out (identity becomes null) the setting falls
|
|
26
|
+
// back to 'auto'. Done during render rather than in an effect so no frame is
|
|
27
|
+
// ever painted with the previous identity's setting.
|
|
28
|
+
if (scope !== identity) {
|
|
29
|
+
setScope(identity);
|
|
30
|
+
setSettingState(readSetting(identity));
|
|
31
|
+
}
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
const mql = window.matchMedia(DARK_QUERY);
|
|
34
|
+
const onChange = (event) => setSystemDark(event.matches);
|
|
35
|
+
mql.addEventListener('change', onChange);
|
|
36
|
+
return () => mql.removeEventListener('change', onChange);
|
|
37
|
+
}, []);
|
|
38
|
+
const setSetting = useCallback((next) => {
|
|
39
|
+
const key = storageKey(identity);
|
|
40
|
+
if (key !== null)
|
|
41
|
+
localStorage.setItem(key, next);
|
|
42
|
+
setSettingState(next);
|
|
43
|
+
}, [identity]);
|
|
44
|
+
const resolvedMode = setting === 'auto' ? (systemDark ? 'dark' : 'light') : setting;
|
|
45
|
+
const theme = resolvedMode === 'dark' ? darkTheme : lightTheme;
|
|
46
|
+
const value = useMemo(() => ({ setting, setSetting, resolvedMode }), [setting, setSetting, resolvedMode]);
|
|
47
|
+
return (_jsx(Context.Provider, { value: value, children: _jsxs(JssThemeProvider, { theme: theme, children: [_jsx(GlobalStyles, {}), children] }) }));
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/theme/provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAqB,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAkB,MAAM,YAAY,CAAC;AAEnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;AACxC,MAAM,UAAU,GAAG,8BAA8B,CAAC;AAElD,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAC5E,8EAA8E;AAC9E,MAAM,UAAU,GAAG,CAAC,QAAuB,EAAiB,EAAE,CAC5D,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,cAAc,GAAG,QAAQ,EAAE,CAAC;AAE5D,MAAM,WAAW,GAAG,CAAC,QAAuB,EAAgB,EAAE;IAC5D,MAAM,GAAG,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,MAAM,GAAG,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/D,OAAO,MAAM,KAAK,OAAO,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;AACxF,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,EAAsB,EAAE,EAAE;IACjF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAe,GAAG,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvF,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAC1C,GAAG,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,OAAO,CAC5C,CAAC;IAEF,6EAA6E;IAC7E,6EAA6E;IAC7E,6EAA6E;IAC7E,qDAAqD;IACrD,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvB,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnB,eAAe,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAC1C,MAAM,QAAQ,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9E,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACzC,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC3D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,IAAkB,EAAE,EAAE;QACrB,MAAM,GAAG,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;QACjC,IAAI,GAAG,KAAK,IAAI;YAAE,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAClD,eAAe,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,YAAY,GAAc,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAC/F,MAAM,KAAK,GAAG,YAAY,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;IAE/D,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,EAC7C,CAAC,OAAO,EAAE,UAAU,EAAE,YAAY,CAAC,CACpC,CAAC;IAEF,OAAO,CACL,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAC5B,MAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK,aAC5B,KAAC,YAAY,KAAG,EACf,QAAQ,IACQ,GACF,CACpB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { type ReactNode, useCallback, useEffect, useMemo, useState } from 'react';\nimport { ThemeProvider as JssThemeProvider } from 'react-jss';\n\nimport { Context, type ThemeSetting } from './context.js';\nimport { GlobalStyles } from './global-styles.js';\nimport { darkTheme, lightTheme, type ThemeMode } from './theme.js';\n\nconst STORAGE_PREFIX = 'theme-setting:';\nconst DARK_QUERY = '(prefers-color-scheme: dark)';\n\n// The appearance choice belongs to the user the consumer identifies via the\n// `identity` prop, not the device: it is stored under a per-identity key so\n// switching to `null` (signed out) drops back to 'auto' (the sign-in screen\n// never inherits a previous user's dark choice) and switching back restores\n// that user's own choice. A `null` identity has no key, so nothing is stored.\nconst storageKey = (identity: string | null): string | null =>\n identity === null ? null : `${STORAGE_PREFIX}${identity}`;\n\nconst readSetting = (identity: string | null): ThemeSetting => {\n const key = storageKey(identity);\n const stored = key === null ? null : localStorage.getItem(key);\n return stored === 'light' || stored === 'dark' || stored === 'auto' ? stored : 'auto';\n};\n\nexport type ThemeProviderProps = { children: ReactNode; identity?: string | null };\nexport const ThemeProvider = ({ children, identity = null }: ThemeProviderProps) => {\n const [scope, setScope] = useState(identity);\n const [setting, setSettingState] = useState<ThemeSetting>(() => readSetting(identity));\n const [systemDark, setSystemDark] = useState<boolean>(\n () => window.matchMedia(DARK_QUERY).matches\n );\n\n // Re-scope whenever the consumer's identity changes: on sign-in restore that\n // user's saved choice; on sign-out (identity becomes null) the setting falls\n // back to 'auto'. Done during render rather than in an effect so no frame is\n // ever painted with the previous identity's setting.\n if (scope !== identity) {\n setScope(identity);\n setSettingState(readSetting(identity));\n }\n\n useEffect(() => {\n const mql = window.matchMedia(DARK_QUERY);\n const onChange = (event: MediaQueryListEvent) => setSystemDark(event.matches);\n mql.addEventListener('change', onChange);\n return () => mql.removeEventListener('change', onChange);\n }, []);\n\n const setSetting = useCallback(\n (next: ThemeSetting) => {\n const key = storageKey(identity);\n if (key !== null) localStorage.setItem(key, next);\n setSettingState(next);\n },\n [identity]\n );\n\n const resolvedMode: ThemeMode = setting === 'auto' ? (systemDark ? 'dark' : 'light') : setting;\n const theme = resolvedMode === 'dark' ? darkTheme : lightTheme;\n\n const value = useMemo(\n () => ({ setting, setSetting, resolvedMode }),\n [setting, setSetting, resolvedMode]\n );\n\n return (\n <Context.Provider value={value}>\n <JssThemeProvider theme={theme}>\n <GlobalStyles />\n {children}\n </JssThemeProvider>\n </Context.Provider>\n );\n};\n"]}
|