@rockshin/tao-ui 0.0.60 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/component-manifest.json +1 -1
- package/dist/components/affix/affix.css +1 -1
- package/dist/components/affix/affix.d.ts +1 -0
- package/dist/components/affix/affix.js +18 -17
- package/dist/components/alert/alert.css +123 -119
- package/dist/components/alert/alert.js +78 -188
- package/dist/components/app/app-modals.js +49 -98
- package/dist/components/app/app-notices.d.ts +2 -2
- package/dist/components/app/app-notices.js +294 -243
- package/dist/components/app/app-types.d.ts +6 -3
- package/dist/components/app/app.css +185 -183
- package/dist/components/app/app.js +1 -1
- package/dist/components/auto-complete/auto-complete.css +30 -28
- package/dist/components/auto-complete/auto-complete.d.ts +3 -1
- package/dist/components/auto-complete/auto-complete.js +2 -1
- package/dist/components/badge/badge.js +42 -127
- package/dist/components/border-beam/border-beam.css +1 -1
- package/dist/components/border-beam/border-beam.d.ts +1 -0
- package/dist/components/border-beam/border-beam.js +1 -0
- package/dist/components/breadcrumb/breadcrumb.css +123 -120
- package/dist/components/breadcrumb/breadcrumb.js +160 -265
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +52 -151
- package/dist/components/calendar/calendar.js +28 -27
- package/dist/components/card/card-tabs.d.ts +56 -5
- package/dist/components/card/card-tabs.js +214 -468
- package/dist/components/card/card.d.ts +1 -2
- package/dist/components/card/card.js +64 -226
- package/dist/components/carousel/carousel.css +1 -1
- package/dist/components/carousel/carousel.d.ts +59 -4
- package/dist/components/carousel/carousel.js +299 -243
- package/dist/components/cascader/cascader.css +186 -184
- package/dist/components/cascader/cascader.d.ts +3 -1
- package/dist/components/cascader/cascader.js +28 -34
- package/dist/components/checkbox/checkbox.css +93 -90
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +171 -499
- package/dist/components/collapse/collapse-panels.js +145 -400
- package/dist/components/collapse/collapse.css +172 -170
- package/dist/components/collapse/collapse.d.ts +1 -1
- package/dist/components/collapse/collapse.js +62 -181
- package/dist/components/color-picker/color-picker.js +418 -982
- package/dist/components/context-menu/context-menu.css +4 -4
- package/dist/components/context-menu/context-menu.d.ts +1 -1
- package/dist/components/context-menu/context-menu.js +52 -138
- package/dist/components/date-picker/calendar/calendar-grid.js +41 -41
- package/dist/components/date-picker/calendar/calendar-header.js +171 -337
- package/dist/components/date-picker/calendar/month-grid.js +33 -103
- package/dist/components/date-picker/calendar/time-panel.js +81 -210
- package/dist/components/date-picker/calendar/year-grid.js +36 -105
- package/dist/components/date-picker/date-localization.js +1 -1
- package/dist/components/date-picker/date-picker.css +599 -642
- package/dist/components/date-picker/date-picker.d.ts +2 -1
- package/dist/components/date-picker/date-picker.js +93 -104
- package/dist/components/date-picker/presets.js +12 -37
- package/dist/components/date-picker/range-picker.d.ts +2 -1
- package/dist/components/date-picker/range-picker.js +217 -252
- package/dist/components/date-picker/types.d.ts +2 -1
- package/dist/components/descriptions/descriptions.css +1 -1
- package/dist/components/descriptions/descriptions.js +30 -39
- package/dist/components/drawer/drawer.css +202 -200
- package/dist/components/drawer/drawer.js +28 -34
- package/dist/components/dropdown/dropdown-core.d.ts +32 -0
- package/dist/components/dropdown/dropdown-core.js +156 -0
- package/dist/components/dropdown/dropdown.css +38 -36
- package/dist/components/dropdown/dropdown.d.ts +4 -31
- package/dist/components/dropdown/dropdown.js +90 -276
- package/dist/components/empty/empty.css +30 -28
- package/dist/components/empty/empty.js +81 -236
- package/dist/components/float-button/float-button.css +1 -1
- package/dist/components/float-button/float-button.js +36 -47
- package/dist/components/form/field-control.js +2 -3
- package/dist/components/form/form-item.js +67 -129
- package/dist/components/form/form.css +36 -34
- package/dist/components/form/form.d.ts +1 -1
- package/dist/components/form/form.js +29 -100
- package/dist/components/form/index.d.ts +1 -1
- package/dist/components/form/use-form.js +48 -67
- package/dist/components/form-actions/form-actions.d.ts +1 -0
- package/dist/components/form-actions/form-actions.js +10 -36
- package/dist/components/form-field/form-field-view.d.ts +1 -0
- package/dist/components/form-field/form-field-view.js +81 -288
- package/dist/components/form-field/form-field.js +13 -31
- package/dist/components/form-field/form.css +74 -72
- package/dist/components/form-section/form-section.d.ts +1 -0
- package/dist/components/form-section/form-section.js +38 -91
- package/dist/components/image/image-icons.js +16 -31
- package/dist/components/image/image.css +1 -1
- package/dist/components/image/image.js +298 -911
- package/dist/components/input/base-input.d.ts +3 -1
- package/dist/components/input/base-input.js +8 -7
- package/dist/components/input/input-shared.css +62 -60
- package/dist/components/input/input-shared.d.ts +1 -1
- package/dist/components/input/input-shared.js +56 -100
- package/dist/components/input/input.css +222 -220
- package/dist/components/input/otp.d.ts +2 -1
- package/dist/components/input/otp.js +143 -324
- package/dist/components/input/password.js +12 -67
- package/dist/components/input/search.js +13 -13
- package/dist/components/input-number/input-number.d.ts +2 -1
- package/dist/components/input-number/input-number.js +30 -152
- package/dist/components/list/list-pagination.css +107 -105
- package/dist/components/list/list-pagination.d.ts +56 -5
- package/dist/components/list/list-pagination.js +249 -316
- package/dist/components/list/list.css +179 -177
- package/dist/components/list/list.js +170 -604
- package/dist/components/listy/listy.css +55 -53
- package/dist/components/listy/listy.d.ts +43 -4
- package/dist/components/listy/listy.js +198 -216
- package/dist/components/masonry/masonry.css +1 -1
- package/dist/components/masonry/masonry.d.ts +1 -0
- package/dist/components/masonry/masonry.js +90 -244
- package/dist/components/mentions/mentions.css +153 -151
- package/dist/components/mentions/mentions.d.ts +53 -11
- package/dist/components/mentions/mentions.js +288 -73
- package/dist/components/menu/menu-render.d.ts +2 -1
- package/dist/components/menu/menu-render.js +149 -307
- package/dist/components/menu/menu.css +142 -140
- package/dist/components/modal/confirm-dialog.js +8 -18
- package/dist/components/modal/modal.css +165 -162
- package/dist/components/modal/modal.js +285 -731
- package/dist/components/modal/use-modal.js +25 -25
- package/dist/components/pagination/pagination.css +134 -131
- package/dist/components/pagination/pagination.d.ts +1 -1
- package/dist/components/pagination/pagination.js +137 -290
- package/dist/components/popconfirm/popconfirm.css +38 -36
- package/dist/components/popconfirm/popconfirm.js +105 -288
- package/dist/components/popover/popover.css +89 -87
- package/dist/components/popover/popover.js +168 -275
- package/dist/components/progress/progress.css +153 -151
- package/dist/components/progress/progress.js +34 -43
- package/dist/components/qr-code/qr-code.css +36 -34
- package/dist/components/qr-code/qr-code.js +83 -277
- package/dist/components/radio/radio.css +95 -92
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +114 -376
- package/dist/components/rate/rate.css +80 -78
- package/dist/components/rate/rate.d.ts +34 -6
- package/dist/components/rate/rate.js +160 -244
- package/dist/components/result/result.css +59 -57
- package/dist/components/result/result.d.ts +1 -0
- package/dist/components/result/result.js +118 -291
- package/dist/components/scroll-area/scroll-area.css +160 -148
- package/dist/components/scroll-area/scroll-area.js +284 -488
- package/dist/components/segmented/segmented.css +1 -1
- package/dist/components/segmented/segmented.js +59 -58
- package/dist/components/select/mobile-select.css +166 -164
- package/dist/components/select/mobile-select.js +48 -131
- package/dist/components/select/select-icons.js +59 -128
- package/dist/components/select/select-searchable-list.js +19 -19
- package/dist/components/select/select-tags.js +70 -156
- package/dist/components/select/select-types.d.ts +2 -1
- package/dist/components/select/select.css +509 -506
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/select/select.js +67 -65
- package/dist/components/select/use-select-selection.js +181 -269
- package/dist/components/skeleton/skeleton.css +105 -103
- package/dist/components/skeleton/skeleton.js +140 -399
- package/dist/components/slider/slider.css +160 -158
- package/dist/components/slider/slider.d.ts +45 -6
- package/dist/components/slider/slider.js +359 -74
- package/dist/components/sonner/index.d.ts +1 -1
- package/dist/components/sonner/sonner.css +190 -182
- package/dist/components/sonner/sonner.js +12 -11
- package/dist/components/spinner/spinner.css +80 -76
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/spinner/spinner.js +75 -219
- package/dist/components/splitter/splitter.css +157 -154
- package/dist/components/splitter/splitter.js +271 -448
- package/dist/components/statistic/statistic.css +1 -1
- package/dist/components/statistic/statistic.js +121 -413
- package/dist/components/status-icon/status-icon.js +14 -26
- package/dist/components/steps/steps-icons.js +63 -100
- package/dist/components/steps/steps.css +817 -807
- package/dist/components/steps/steps.d.ts +1 -1
- package/dist/components/steps/steps.js +38 -94
- package/dist/components/steps/use-display-steps.js +21 -54
- package/dist/components/switch/switch-touch.css +17 -15
- package/dist/components/switch/switch.css +192 -190
- package/dist/components/switch/switch.js +63 -196
- package/dist/components/table/table-filter.d.ts +1 -1
- package/dist/components/table/table-filter.js +68 -155
- package/dist/components/table/table-icons.js +77 -152
- package/dist/components/table/table-summary.js +30 -77
- package/dist/components/table/table-types.d.ts +2 -1
- package/dist/components/table/table.css +468 -465
- package/dist/components/table/table.js +85 -84
- package/dist/components/table/use-table-data.js +137 -248
- package/dist/components/tabs/tabs.css +123 -120
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.js +156 -331
- package/dist/components/tag/tag.css +231 -221
- package/dist/components/tag/tag.js +110 -248
- package/dist/components/textarea/textarea.css +2 -1
- package/dist/components/textarea/textarea.d.ts +3 -1
- package/dist/components/textarea/textarea.js +16 -15
- package/dist/components/time-picker/time-picker.d.ts +1 -0
- package/dist/components/time-picker/time-picker.js +88 -220
- package/dist/components/timeline/timeline.css +1 -1
- package/dist/components/timeline/timeline.js +17 -17
- package/dist/components/tooltip/tooltip.css +79 -77
- package/dist/components/tooltip/tooltip.js +105 -215
- package/dist/components/tour/tour.css +1 -1
- package/dist/components/tour/tour.d.ts +59 -6
- package/dist/components/tour/tour.js +343 -622
- package/dist/components/transfer/transfer-list.js +19 -19
- package/dist/components/transfer/transfer-parts.js +63 -139
- package/dist/components/transfer/transfer.css +192 -190
- package/dist/components/transfer/transfer.js +57 -56
- package/dist/components/tree/tree-check.js +25 -32
- package/dist/components/tree/tree-keyboard.js +1 -1
- package/dist/components/tree/tree.css +204 -200
- package/dist/components/tree/tree.js +139 -277
- package/dist/components/tree-select/select-engine.css +200 -197
- package/dist/components/tree-select/select-engine.js +11 -38
- package/dist/components/tree-select/tree-select.css +21 -19
- package/dist/components/tree-select/tree-select.d.ts +3 -1
- package/dist/components/tree-select/tree-select.js +11 -10
- package/dist/components/upload/upload.js +193 -308
- package/dist/components/watermark/watermark-context.js +8 -14
- package/dist/components/watermark/watermark.css +1 -1
- package/dist/components/watermark/watermark.js +209 -400
- package/dist/docs/components/stack.doc.js +1 -1
- package/dist/docs/components/table.doc.js +1 -1
- package/dist/entries/affix.d.ts +0 -2
- package/dist/entries/affix.js +0 -2
- package/dist/entries/alert.d.ts +0 -2
- package/dist/entries/alert.js +0 -2
- package/dist/entries/app.d.ts +0 -2
- package/dist/entries/app.js +0 -2
- package/dist/entries/auto-complete.d.ts +0 -2
- package/dist/entries/auto-complete.js +0 -2
- package/dist/entries/avatar.d.ts +0 -2
- package/dist/entries/avatar.js +0 -2
- package/dist/entries/badge.d.ts +0 -2
- package/dist/entries/badge.js +0 -2
- package/dist/entries/border-beam.d.ts +0 -2
- package/dist/entries/border-beam.js +0 -2
- package/dist/entries/breadcrumb.d.ts +0 -2
- package/dist/entries/breadcrumb.js +0 -2
- package/dist/entries/button.d.ts +0 -2
- package/dist/entries/button.js +0 -2
- package/dist/entries/calendar.d.ts +0 -2
- package/dist/entries/calendar.js +0 -2
- package/dist/entries/card.d.ts +0 -2
- package/dist/entries/card.js +0 -2
- package/dist/entries/carousel.d.ts +0 -2
- package/dist/entries/carousel.js +0 -2
- package/dist/entries/cascader.d.ts +0 -2
- package/dist/entries/cascader.js +0 -2
- package/dist/entries/checkbox.d.ts +0 -2
- package/dist/entries/checkbox.js +0 -2
- package/dist/entries/collapse.d.ts +0 -2
- package/dist/entries/collapse.js +0 -2
- package/dist/entries/color-picker.d.ts +0 -2
- package/dist/entries/color-picker.js +0 -2
- package/dist/entries/context-menu.d.ts +0 -2
- package/dist/entries/context-menu.js +0 -2
- package/dist/entries/date-picker.d.ts +0 -2
- package/dist/entries/date-picker.js +0 -2
- package/dist/entries/descriptions.d.ts +0 -2
- package/dist/entries/descriptions.js +0 -2
- package/dist/entries/divider.d.ts +0 -2
- package/dist/entries/divider.js +0 -2
- package/dist/entries/drawer.d.ts +0 -2
- package/dist/entries/drawer.js +0 -2
- package/dist/entries/dropdown.d.ts +0 -2
- package/dist/entries/dropdown.js +0 -2
- package/dist/entries/empty.d.ts +0 -2
- package/dist/entries/empty.js +0 -2
- package/dist/entries/float-button.d.ts +0 -2
- package/dist/entries/float-button.js +0 -2
- package/dist/entries/form-actions.d.ts +0 -2
- package/dist/entries/form-actions.js +0 -2
- package/dist/entries/form-field.d.ts +0 -2
- package/dist/entries/form-field.js +0 -2
- package/dist/entries/form-layout.d.ts +0 -2
- package/dist/entries/form-layout.js +0 -2
- package/dist/entries/form-section.d.ts +0 -2
- package/dist/entries/form-section.js +0 -2
- package/dist/entries/form.d.ts +1 -3
- package/dist/entries/form.js +0 -2
- package/dist/entries/image.d.ts +0 -2
- package/dist/entries/image.js +0 -2
- package/dist/entries/input-number.d.ts +0 -2
- package/dist/entries/input-number.js +0 -2
- package/dist/entries/input.d.ts +1 -3
- package/dist/entries/input.js +0 -2
- package/dist/entries/list.d.ts +0 -2
- package/dist/entries/list.js +0 -2
- package/dist/entries/listy.d.ts +0 -2
- package/dist/entries/listy.js +0 -2
- package/dist/entries/masonry.d.ts +0 -2
- package/dist/entries/masonry.js +0 -2
- package/dist/entries/mentions.d.ts +0 -2
- package/dist/entries/mentions.js +0 -2
- package/dist/entries/modal.d.ts +0 -2
- package/dist/entries/modal.js +0 -2
- package/dist/entries/number-input.d.ts +0 -2
- package/dist/entries/number-input.js +0 -2
- package/dist/entries/pagination.d.ts +0 -2
- package/dist/entries/pagination.js +0 -2
- package/dist/entries/popconfirm.d.ts +0 -2
- package/dist/entries/popconfirm.js +0 -2
- package/dist/entries/popover.d.ts +0 -2
- package/dist/entries/popover.js +0 -2
- package/dist/entries/progress.d.ts +0 -2
- package/dist/entries/progress.js +0 -2
- package/dist/entries/provider.d.ts +1 -3
- package/dist/entries/provider.js +1 -3
- package/dist/entries/qr-code.d.ts +0 -2
- package/dist/entries/qr-code.js +0 -2
- package/dist/entries/radio.d.ts +0 -2
- package/dist/entries/radio.js +0 -2
- package/dist/entries/range-picker.d.ts +0 -2
- package/dist/entries/range-picker.js +0 -2
- package/dist/entries/rate.d.ts +0 -2
- package/dist/entries/rate.js +0 -2
- package/dist/entries/result.d.ts +0 -2
- package/dist/entries/result.js +0 -2
- package/dist/entries/scroll-area.d.ts +0 -2
- package/dist/entries/scroll-area.js +0 -2
- package/dist/entries/segmented.d.ts +0 -2
- package/dist/entries/segmented.js +0 -2
- package/dist/entries/select.d.ts +0 -2
- package/dist/entries/select.js +0 -2
- package/dist/entries/skeleton.d.ts +0 -2
- package/dist/entries/skeleton.js +0 -2
- package/dist/entries/slider.d.ts +0 -2
- package/dist/entries/slider.js +0 -2
- package/dist/entries/sonner.d.ts +0 -2
- package/dist/entries/sonner.js +0 -2
- package/dist/entries/spinner.d.ts +0 -2
- package/dist/entries/spinner.js +0 -2
- package/dist/entries/splitter.d.ts +0 -2
- package/dist/entries/splitter.js +0 -2
- package/dist/entries/stack.d.ts +0 -2
- package/dist/entries/stack.js +0 -2
- package/dist/entries/statistic.d.ts +0 -2
- package/dist/entries/statistic.js +0 -2
- package/dist/entries/steps.d.ts +0 -2
- package/dist/entries/steps.js +0 -2
- package/dist/entries/switch.d.ts +0 -2
- package/dist/entries/switch.js +0 -2
- package/dist/entries/table.d.ts +0 -2
- package/dist/entries/table.js +0 -2
- package/dist/entries/tabs.d.ts +0 -2
- package/dist/entries/tabs.js +0 -2
- package/dist/entries/tag.d.ts +0 -2
- package/dist/entries/tag.js +0 -2
- package/dist/entries/textarea.d.ts +0 -2
- package/dist/entries/textarea.js +0 -2
- package/dist/entries/time-picker.d.ts +0 -2
- package/dist/entries/time-picker.js +0 -2
- package/dist/entries/timeline.d.ts +0 -2
- package/dist/entries/timeline.js +0 -2
- package/dist/entries/tooltip.d.ts +0 -2
- package/dist/entries/tooltip.js +0 -2
- package/dist/entries/tour.d.ts +0 -2
- package/dist/entries/tour.js +0 -2
- package/dist/entries/transfer.d.ts +0 -2
- package/dist/entries/transfer.js +0 -2
- package/dist/entries/tree-select.d.ts +0 -2
- package/dist/entries/tree-select.js +0 -2
- package/dist/entries/tree.d.ts +0 -2
- package/dist/entries/tree.js +0 -2
- package/dist/entries/upload.d.ts +0 -2
- package/dist/entries/upload.js +0 -2
- package/dist/entries/watermark.d.ts +0 -2
- package/dist/entries/watermark.js +0 -2
- package/dist/index.d.ts +5 -7
- package/dist/index.js +2 -4
- package/dist/layouts/form-layout/form-layout.d.ts +1 -0
- package/dist/layouts/form-layout/form-layout.js +10 -36
- package/dist/layouts/stack/layout.css +46 -44
- package/dist/layouts/stack/stack.d.ts +1 -0
- package/dist/layouts/stack/stack.js +16 -69
- package/dist/locales/ar-EG.js +25 -2
- package/dist/locales/create-locale.d.ts +1 -2
- package/dist/locales/create-locale.js +0 -28
- package/dist/locales/de-DE.js +25 -2
- package/dist/locales/en-US.js +24 -1
- package/dist/locales/es-ES.js +25 -2
- package/dist/locales/fr-FR.js +25 -2
- package/dist/locales/hi-IN.js +25 -2
- package/dist/locales/id-ID.js +25 -2
- package/dist/locales/index.d.ts +10 -10
- package/dist/locales/index.js +9 -9
- package/dist/locales/it-IT.js +25 -2
- package/dist/locales/ja-JP.js +25 -2
- package/dist/locales/ko-KR.js +25 -2
- package/dist/locales/pt-BR.js +25 -2
- package/dist/locales/ru-RU.js +25 -2
- package/dist/locales/th-TH.js +25 -2
- package/dist/locales/tr-TR.js +25 -2
- package/dist/locales/vi-VN.js +25 -2
- package/dist/locales/zh-CN.js +25 -2
- package/dist/locales/zh-TW.js +25 -2
- package/dist/number-input/number-input.js +24 -81
- package/dist/number-input/use-number-input.js +42 -42
- package/dist/provider/locale.d.ts +1 -1
- package/dist/provider/tao-context.d.ts +38 -0
- package/dist/provider/tao-context.js +92 -0
- package/dist/provider/tao-portal-scope.d.ts +14 -0
- package/dist/provider/tao-portal-scope.js +54 -0
- package/dist/provider/tao-provider.d.ts +5 -55
- package/dist/provider/tao-provider.js +94 -378
- package/dist/theme/control.css +106 -126
- package/dist/theme/theme.css +2 -0
- package/dist/utils/dialog-content.js +55 -210
- package/dist/utils/overlay.js +15 -30
- package/dist/utils/rc-compat.d.ts +13 -0
- package/dist/utils/rc-compat.js +48 -0
- package/dist/utils/refs.js +5 -19
- package/package.json +10 -16
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
2
|
import { QRCodeCanvas, QRCodeSVG } from "@rc-component/qrcode";
|
|
4
3
|
import { forwardRef, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
5
4
|
import { enUS } from "../../provider/locale.js";
|
|
@@ -9,292 +8,99 @@ import { Button } from "../button/button.js";
|
|
|
9
8
|
import { Spinner } from "../spinner/spinner.js";
|
|
10
9
|
import "./qr-code.css";
|
|
11
10
|
const qr_code_QRCode = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
12
|
-
const
|
|
13
|
-
let ariaDescribedBy;
|
|
14
|
-
let ariaLabel;
|
|
15
|
-
let ariaLabelledBy;
|
|
16
|
-
let boostLevel;
|
|
17
|
-
let className;
|
|
18
|
-
let classNames;
|
|
19
|
-
let color;
|
|
20
|
-
let icon;
|
|
21
|
-
let marginSize;
|
|
22
|
-
let onRefresh;
|
|
23
|
-
let prefixCls;
|
|
24
|
-
let rest;
|
|
25
|
-
let rootClassName;
|
|
26
|
-
let statusRender;
|
|
27
|
-
let style;
|
|
28
|
-
let styles;
|
|
29
|
-
let t0;
|
|
30
|
-
let t1;
|
|
31
|
-
let t2;
|
|
32
|
-
let t3;
|
|
33
|
-
let t4;
|
|
34
|
-
let t5;
|
|
35
|
-
let t6;
|
|
36
|
-
let title;
|
|
37
|
-
let value;
|
|
38
|
-
if ($[0] !== props) {
|
|
39
|
-
({ value, type: t0, size: t1, icon, iconSize: t2, bordered: t3, errorLevel: t4, status: t5, onRefresh, statusRender, color, bgColor: t6, marginSize, boostLevel, title, className, rootClassName, prefixCls, classNames, styles, style, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...rest } = props);
|
|
40
|
-
$[0] = props;
|
|
41
|
-
$[1] = ariaDescribedBy;
|
|
42
|
-
$[2] = ariaLabel;
|
|
43
|
-
$[3] = ariaLabelledBy;
|
|
44
|
-
$[4] = boostLevel;
|
|
45
|
-
$[5] = className;
|
|
46
|
-
$[6] = classNames;
|
|
47
|
-
$[7] = color;
|
|
48
|
-
$[8] = icon;
|
|
49
|
-
$[9] = marginSize;
|
|
50
|
-
$[10] = onRefresh;
|
|
51
|
-
$[11] = prefixCls;
|
|
52
|
-
$[12] = rest;
|
|
53
|
-
$[13] = rootClassName;
|
|
54
|
-
$[14] = statusRender;
|
|
55
|
-
$[15] = style;
|
|
56
|
-
$[16] = styles;
|
|
57
|
-
$[17] = t0;
|
|
58
|
-
$[18] = t1;
|
|
59
|
-
$[19] = t2;
|
|
60
|
-
$[20] = t3;
|
|
61
|
-
$[21] = t4;
|
|
62
|
-
$[22] = t5;
|
|
63
|
-
$[23] = t6;
|
|
64
|
-
$[24] = title;
|
|
65
|
-
$[25] = value;
|
|
66
|
-
} else {
|
|
67
|
-
ariaDescribedBy = $[1];
|
|
68
|
-
ariaLabel = $[2];
|
|
69
|
-
ariaLabelledBy = $[3];
|
|
70
|
-
boostLevel = $[4];
|
|
71
|
-
className = $[5];
|
|
72
|
-
classNames = $[6];
|
|
73
|
-
color = $[7];
|
|
74
|
-
icon = $[8];
|
|
75
|
-
marginSize = $[9];
|
|
76
|
-
onRefresh = $[10];
|
|
77
|
-
prefixCls = $[11];
|
|
78
|
-
rest = $[12];
|
|
79
|
-
rootClassName = $[13];
|
|
80
|
-
statusRender = $[14];
|
|
81
|
-
style = $[15];
|
|
82
|
-
styles = $[16];
|
|
83
|
-
t0 = $[17];
|
|
84
|
-
t1 = $[18];
|
|
85
|
-
t2 = $[19];
|
|
86
|
-
t3 = $[20];
|
|
87
|
-
t4 = $[21];
|
|
88
|
-
t5 = $[22];
|
|
89
|
-
t6 = $[23];
|
|
90
|
-
title = $[24];
|
|
91
|
-
value = $[25];
|
|
92
|
-
}
|
|
93
|
-
const type = void 0 === t0 ? "canvas" : t0;
|
|
94
|
-
const size = void 0 === t1 ? 160 : t1;
|
|
95
|
-
const iconSize = void 0 === t2 ? 40 : t2;
|
|
96
|
-
const bordered = void 0 === t3 ? true : t3;
|
|
97
|
-
const errorLevel = void 0 === t4 ? "M" : t4;
|
|
98
|
-
const status = void 0 === t5 ? "active" : t5;
|
|
99
|
-
const bgColor = void 0 === t6 ? "transparent" : t6;
|
|
11
|
+
const { value, type = 'canvas', size = 160, icon, iconSize = 40, bordered = true, errorLevel = 'M', status = 'active', onRefresh, statusRender, color, bgColor = 'transparent', marginSize, boostLevel, title, className, rootClassName, prefixCls, classNames, styles, style, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, ...rest } = props;
|
|
100
12
|
const config = useTaoInternalConfig();
|
|
101
13
|
const root = useRef(null);
|
|
102
|
-
const [themeColor, setThemeColor] = useState(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
type,
|
|
125
|
-
size,
|
|
126
|
-
bordered,
|
|
127
|
-
errorLevel,
|
|
128
|
-
status,
|
|
129
|
-
bgColor
|
|
130
|
-
};
|
|
131
|
-
names = "function" == typeof classNames ? classNames({
|
|
132
|
-
props: mergedProps
|
|
133
|
-
}) : classNames;
|
|
134
|
-
t9 = "function" == typeof styles ? styles({
|
|
135
|
-
props: mergedProps
|
|
136
|
-
}) : styles;
|
|
137
|
-
$[28] = bgColor;
|
|
138
|
-
$[29] = bordered;
|
|
139
|
-
$[30] = classNames;
|
|
140
|
-
$[31] = errorLevel;
|
|
141
|
-
$[32] = props;
|
|
142
|
-
$[33] = size;
|
|
143
|
-
$[34] = status;
|
|
144
|
-
$[35] = styles;
|
|
145
|
-
$[36] = type;
|
|
146
|
-
$[37] = names;
|
|
147
|
-
$[38] = t9;
|
|
148
|
-
} else {
|
|
149
|
-
names = $[37];
|
|
150
|
-
t9 = $[38];
|
|
151
|
-
}
|
|
152
|
-
const semanticStyles = t9;
|
|
14
|
+
const [themeColor, setThemeColor] = useState('#000000');
|
|
15
|
+
useImperativeHandle(ref, ()=>root.current ? {
|
|
16
|
+
nativeElement: root.current
|
|
17
|
+
} : null);
|
|
18
|
+
useLayoutEffect(()=>{
|
|
19
|
+
if (root.current) setThemeColor(getComputedStyle(root.current).color);
|
|
20
|
+
});
|
|
21
|
+
const mergedProps = {
|
|
22
|
+
...props,
|
|
23
|
+
type,
|
|
24
|
+
size,
|
|
25
|
+
bordered,
|
|
26
|
+
errorLevel,
|
|
27
|
+
status,
|
|
28
|
+
bgColor
|
|
29
|
+
};
|
|
30
|
+
const names = 'function' == typeof classNames ? classNames({
|
|
31
|
+
props: mergedProps
|
|
32
|
+
}) : classNames;
|
|
33
|
+
const semanticStyles = 'function' == typeof styles ? styles({
|
|
34
|
+
props: mergedProps
|
|
35
|
+
}) : styles;
|
|
153
36
|
const locale = config.locale.qrCode ?? enUS.qrCode;
|
|
154
37
|
if (!value) return null;
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
38
|
+
const qrProps = {
|
|
39
|
+
value,
|
|
40
|
+
size,
|
|
41
|
+
level: errorLevel,
|
|
42
|
+
fgColor: color ?? themeColor,
|
|
43
|
+
bgColor,
|
|
44
|
+
marginSize,
|
|
45
|
+
boostLevel,
|
|
46
|
+
title,
|
|
47
|
+
imageSettings: icon ? {
|
|
159
48
|
src: icon,
|
|
160
|
-
height:
|
|
161
|
-
width:
|
|
49
|
+
height: 'number' == typeof iconSize ? iconSize : iconSize.height,
|
|
50
|
+
width: 'number' == typeof iconSize ? iconSize : iconSize.width,
|
|
162
51
|
excavate: true,
|
|
163
|
-
crossOrigin:
|
|
164
|
-
} : void 0
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
marginSize,
|
|
179
|
-
boostLevel,
|
|
180
|
-
title,
|
|
181
|
-
imageSettings: t11,
|
|
182
|
-
role: "img",
|
|
183
|
-
"aria-label": t12,
|
|
184
|
-
"aria-labelledby": ariaLabelledBy,
|
|
185
|
-
"aria-describedby": ariaDescribedBy
|
|
186
|
-
};
|
|
187
|
-
$[42] = ariaDescribedBy;
|
|
188
|
-
$[43] = ariaLabelledBy;
|
|
189
|
-
$[44] = bgColor;
|
|
190
|
-
$[45] = boostLevel;
|
|
191
|
-
$[46] = errorLevel;
|
|
192
|
-
$[47] = marginSize;
|
|
193
|
-
$[48] = size;
|
|
194
|
-
$[49] = t10;
|
|
195
|
-
$[50] = t11;
|
|
196
|
-
$[51] = t12;
|
|
197
|
-
$[52] = title;
|
|
198
|
-
$[53] = value;
|
|
199
|
-
$[54] = t13;
|
|
200
|
-
} else t13 = $[54];
|
|
201
|
-
const qrProps = t13;
|
|
202
|
-
const t14 = names?.root;
|
|
203
|
-
let t15;
|
|
204
|
-
if ($[55] !== className || $[56] !== prefixCls || $[57] !== rootClassName || $[58] !== t14) {
|
|
205
|
-
t15 = cx(prefixCls, t14, rootClassName, className);
|
|
206
|
-
$[55] = className;
|
|
207
|
-
$[56] = prefixCls;
|
|
208
|
-
$[57] = rootClassName;
|
|
209
|
-
$[58] = t14;
|
|
210
|
-
$[59] = t15;
|
|
211
|
-
} else t15 = $[59];
|
|
212
|
-
const t16 = semanticStyles?.root;
|
|
213
|
-
let t17;
|
|
214
|
-
if ($[60] !== bgColor || $[61] !== size || $[62] !== style || $[63] !== t16) {
|
|
215
|
-
t17 = {
|
|
52
|
+
crossOrigin: 'anonymous'
|
|
53
|
+
} : void 0,
|
|
54
|
+
role: 'img',
|
|
55
|
+
'aria-label': ariaLabel ?? title ?? 'QR Code',
|
|
56
|
+
'aria-labelledby': ariaLabelledBy,
|
|
57
|
+
'aria-describedby': ariaDescribedBy
|
|
58
|
+
};
|
|
59
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
60
|
+
...rest,
|
|
61
|
+
ref: root,
|
|
62
|
+
"data-tao-qr-code": "",
|
|
63
|
+
"data-bordered": bordered,
|
|
64
|
+
"data-status": status,
|
|
65
|
+
className: cx(prefixCls, names?.root, rootClassName, className),
|
|
66
|
+
style: {
|
|
216
67
|
width: size,
|
|
217
68
|
height: size,
|
|
218
69
|
backgroundColor: bgColor,
|
|
219
|
-
...
|
|
70
|
+
...semanticStyles?.root,
|
|
220
71
|
...style
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"aria-label": config.locale.messages.loadingQrCode
|
|
252
|
-
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
253
|
-
children: [
|
|
254
|
-
/*#__PURE__*/ jsx("span", {
|
|
255
|
-
children: "expired" === status ? locale.expired : locale.scanned
|
|
256
|
-
}),
|
|
257
|
-
"expired" === status && onRefresh && /*#__PURE__*/ jsx(Button, {
|
|
258
|
-
variant: "bare",
|
|
259
|
-
onClick: onRefresh,
|
|
260
|
-
children: locale.refresh
|
|
261
|
-
})
|
|
262
|
-
]
|
|
72
|
+
},
|
|
73
|
+
children: [
|
|
74
|
+
'svg' === type ? /*#__PURE__*/ jsx(QRCodeSVG, {
|
|
75
|
+
...qrProps
|
|
76
|
+
}) : /*#__PURE__*/ jsx(QRCodeCanvas, {
|
|
77
|
+
...qrProps
|
|
78
|
+
}),
|
|
79
|
+
'active' !== status && /*#__PURE__*/ jsx("div", {
|
|
80
|
+
"data-tao-qr-cover": "",
|
|
81
|
+
role: "status",
|
|
82
|
+
className: names?.cover,
|
|
83
|
+
style: semanticStyles?.cover,
|
|
84
|
+
children: statusRender ? statusRender({
|
|
85
|
+
status,
|
|
86
|
+
locale,
|
|
87
|
+
onRefresh
|
|
88
|
+
}) : 'loading' === status ? /*#__PURE__*/ jsx(Spinner, {
|
|
89
|
+
"aria-label": config.locale.messages.loadingQrCode
|
|
90
|
+
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
91
|
+
children: [
|
|
92
|
+
/*#__PURE__*/ jsx("span", {
|
|
93
|
+
children: 'expired' === status ? locale.expired : locale.scanned
|
|
94
|
+
}),
|
|
95
|
+
'expired' === status && onRefresh && /*#__PURE__*/ jsx(Button, {
|
|
96
|
+
variant: "bare",
|
|
97
|
+
onClick: onRefresh,
|
|
98
|
+
children: locale.refresh
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
})
|
|
263
102
|
})
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
$[69] = locale;
|
|
267
|
-
$[70] = names?.cover;
|
|
268
|
-
$[71] = onRefresh;
|
|
269
|
-
$[72] = semanticStyles?.cover;
|
|
270
|
-
$[73] = status;
|
|
271
|
-
$[74] = statusRender;
|
|
272
|
-
$[75] = t19;
|
|
273
|
-
} else t19 = $[75];
|
|
274
|
-
let t20;
|
|
275
|
-
if ($[76] !== bordered || $[77] !== rest || $[78] !== status || $[79] !== t15 || $[80] !== t17 || $[81] !== t18 || $[82] !== t19) {
|
|
276
|
-
t20 = /*#__PURE__*/ jsxs("div", {
|
|
277
|
-
...rest,
|
|
278
|
-
ref: root,
|
|
279
|
-
"data-tao-qr-code": "",
|
|
280
|
-
"data-bordered": bordered,
|
|
281
|
-
"data-status": status,
|
|
282
|
-
className: t15,
|
|
283
|
-
style: t17,
|
|
284
|
-
children: [
|
|
285
|
-
t18,
|
|
286
|
-
t19
|
|
287
|
-
]
|
|
288
|
-
});
|
|
289
|
-
$[76] = bordered;
|
|
290
|
-
$[77] = rest;
|
|
291
|
-
$[78] = status;
|
|
292
|
-
$[79] = t15;
|
|
293
|
-
$[80] = t17;
|
|
294
|
-
$[81] = t18;
|
|
295
|
-
$[82] = t19;
|
|
296
|
-
$[83] = t20;
|
|
297
|
-
} else t20 = $[83];
|
|
298
|
-
return t20;
|
|
103
|
+
]
|
|
104
|
+
});
|
|
299
105
|
});
|
|
300
106
|
export { qr_code_QRCode as QRCode };
|
|
@@ -1,111 +1,114 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
[data-tao-radio-wrapper] {
|
|
3
|
+
--tao-radio-size: 16px;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: var(--tao-padding-xs);
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-family: var(--tao-font-family);
|
|
8
|
+
font-size: var(--tao-font-size-base);
|
|
9
|
+
color: var(--tao-color-text);
|
|
10
|
+
-webkit-user-select: none;
|
|
11
|
+
user-select: none;
|
|
12
|
+
line-height: var(--tao-line-height);
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
[data-tao-radio-wrapper][data-tao-size="small"] {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
[data-tao-radio-wrapper][data-tao-size="small"] {
|
|
17
|
+
--tao-radio-size: 14px;
|
|
18
|
+
font-size: var(--tao-font-size-sm);
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
[data-tao-radio-wrapper][data-tao-size="large"] {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
21
|
+
[data-tao-radio-wrapper][data-tao-size="large"] {
|
|
22
|
+
--tao-radio-size: 20px;
|
|
23
|
+
font-size: var(--tao-font-size-lg);
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
[data-tao-radio-wrapper][data-tao-disabled] {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
26
|
+
[data-tao-radio-wrapper][data-tao-disabled] {
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
opacity: var(--tao-opacity-loading);
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
[data-tao-radio-control] {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
31
|
+
[data-tao-radio-control] {
|
|
32
|
+
flex: none;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
position: relative;
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
[data-tao-radio-input] {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
37
|
+
[data-tao-radio-input] {
|
|
38
|
+
z-index: 1;
|
|
39
|
+
opacity: 0;
|
|
40
|
+
cursor: inherit;
|
|
41
|
+
margin: 0;
|
|
42
|
+
position: absolute;
|
|
43
|
+
inset: 0;
|
|
44
|
+
}
|
|
44
45
|
|
|
45
|
-
[data-tao-radio] {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
46
|
+
[data-tao-radio] {
|
|
47
|
+
width: var(--tao-radio-size);
|
|
48
|
+
height: var(--tao-radio-size);
|
|
49
|
+
border: var(--tao-line-width) solid var(--tao-color-border);
|
|
50
|
+
border-radius: var(--tao-radius-full);
|
|
51
|
+
background: var(--tao-color-bg-container);
|
|
52
|
+
transition: border-color var(--tao-motion-duration-fast) var(--tao-motion-ease-out),
|
|
53
|
+
box-shadow var(--tao-motion-duration-fast) var(--tao-motion-ease-out);
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
display: flex;
|
|
58
|
+
}
|
|
58
59
|
|
|
59
|
-
[data-tao-radio]:after {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
[data-tao-radio]:after {
|
|
61
|
+
content: "";
|
|
62
|
+
width: calc(var(--tao-radio-size) / 2);
|
|
63
|
+
height: calc(var(--tao-radio-size) / 2);
|
|
64
|
+
border-radius: var(--tao-radius-full);
|
|
65
|
+
transition: background-color var(--tao-motion-duration-fast)
|
|
66
|
+
var(--tao-motion-ease-out),
|
|
67
|
+
transform var(--tao-motion-duration-fast) var(--tao-motion-ease-out);
|
|
68
|
+
background: none;
|
|
69
|
+
transform: scale(0);
|
|
70
|
+
}
|
|
69
71
|
|
|
70
|
-
[data-tao-radio-wrapper]:not([data-tao-disabled]):hover [data-tao-radio] {
|
|
71
|
-
|
|
72
|
-
}
|
|
72
|
+
[data-tao-radio-wrapper]:not([data-tao-disabled]):hover [data-tao-radio] {
|
|
73
|
+
border-color: var(--tao-primary);
|
|
74
|
+
}
|
|
73
75
|
|
|
74
|
-
[data-tao-radio-input]:focus-visible + [data-tao-radio] {
|
|
75
|
-
|
|
76
|
-
}
|
|
76
|
+
[data-tao-radio-input]:focus-visible + [data-tao-radio] {
|
|
77
|
+
box-shadow: 0 0 0 2px var(--tao-control-outline);
|
|
78
|
+
}
|
|
77
79
|
|
|
78
|
-
[data-tao-radio-input]:checked + [data-tao-radio] {
|
|
79
|
-
|
|
80
|
-
}
|
|
80
|
+
[data-tao-radio-input]:checked + [data-tao-radio] {
|
|
81
|
+
border-color: var(--tao-primary);
|
|
82
|
+
}
|
|
81
83
|
|
|
82
|
-
[data-tao-radio-input]:checked + [data-tao-radio]:after {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
84
|
+
[data-tao-radio-input]:checked + [data-tao-radio]:after {
|
|
85
|
+
background: var(--tao-primary);
|
|
86
|
+
transform: scale(1);
|
|
87
|
+
}
|
|
86
88
|
|
|
87
|
-
[data-tao-radio-label] {
|
|
88
|
-
|
|
89
|
-
}
|
|
89
|
+
[data-tao-radio-label] {
|
|
90
|
+
color: inherit;
|
|
91
|
+
}
|
|
90
92
|
|
|
91
|
-
[data-tao-radio-group] {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
93
|
+
[data-tao-radio-group] {
|
|
94
|
+
gap: var(--tao-padding-xs) var(--tao-padding);
|
|
95
|
+
flex-wrap: wrap;
|
|
96
|
+
display: flex;
|
|
97
|
+
}
|
|
96
98
|
|
|
97
|
-
[data-tao-radio-group][data-tao-direction="vertical"] {
|
|
98
|
-
|
|
99
|
-
}
|
|
99
|
+
[data-tao-radio-group][data-tao-direction="vertical"] {
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
}
|
|
100
102
|
|
|
101
|
-
[data-tao-radio-group][data-tao-direction="horizontal"] {
|
|
102
|
-
|
|
103
|
-
}
|
|
103
|
+
[data-tao-radio-group][data-tao-direction="horizontal"] {
|
|
104
|
+
flex-direction: row;
|
|
105
|
+
}
|
|
104
106
|
|
|
105
|
-
@media (pointer: coarse) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
@media (pointer: coarse) {
|
|
108
|
+
[data-tao-radio-wrapper] {
|
|
109
|
+
min-width: 44px;
|
|
110
|
+
min-height: 44px;
|
|
111
|
+
}
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
114
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AriaAttributes, type ChangeEvent, type FocusEventHandler, type ReactNode, type Ref } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { TaoSize } from '../../provider/tao-provider.js';
|
|
3
3
|
import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
|
|
4
4
|
import './radio.css';
|
|
5
5
|
export type RadioSemanticPart = 'root' | 'indicator' | 'label';
|