@rockshin/tao-ui 0.0.59 → 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 +29 -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.css +1 -1
- package/dist/components/color-picker/color-picker.js +418 -981
- package/dist/components/context-menu/context-menu.css +4 -4
- package/dist/components/context-menu/context-menu.d.ts +3 -1
- package/dist/components/context-menu/context-menu.js +54 -135
- 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 +84 -209
- 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 +96 -105
- 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 +222 -255
- 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 -30
- package/dist/components/dropdown/dropdown.js +91 -271
- 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 +38 -48
- 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 -66
- 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 +4 -2
- package/dist/components/input-number/input-number.js +30 -137
- 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 +291 -75
- package/dist/components/menu/menu-render.d.ts +7 -0
- package/dist/components/menu/menu-render.js +156 -302
- package/dist/components/menu/menu.css +142 -140
- package/dist/components/modal/confirm-dialog.js +19 -24
- 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 +4 -3
- package/dist/components/pagination/pagination.js +138 -281
- 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 +189 -469
- 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-model.js +1 -1
- 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 -261
- 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 -406
- 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 +3 -1
- package/dist/components/table/table-filter.js +72 -133
- 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 +86 -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 +4 -3
- package/dist/components/tabs/tabs.js +157 -322
- 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 +91 -221
- 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.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +111 -263
- 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 +12 -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.d.ts +1 -0
- package/dist/number-input/use-number-input.js +47 -43
- 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 -364
- package/dist/theme/control.css +106 -122
- package/dist/theme/theme.css +4 -2
- 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,42 +1,16 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
2
|
import { cx } from "../../utils/semantic.js";
|
|
3
|
+
import "../../theme/theme.css";
|
|
4
4
|
import "../form-field/form.css";
|
|
5
|
-
function FormActions(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if ($[0] !== className || $[1] !== t1) {
|
|
11
|
-
t2 = cx(t1, className);
|
|
12
|
-
$[0] = className;
|
|
13
|
-
$[1] = t1;
|
|
14
|
-
$[2] = t2;
|
|
15
|
-
} else t2 = $[2];
|
|
16
|
-
const t3 = styles?.root;
|
|
17
|
-
let t4;
|
|
18
|
-
if ($[3] !== style || $[4] !== t3) {
|
|
19
|
-
t4 = {
|
|
20
|
-
...t3,
|
|
5
|
+
function FormActions({ children, className, style, classNames, styles }) {
|
|
6
|
+
return /*#__PURE__*/ jsx("div", {
|
|
7
|
+
className: cx(classNames?.root, className),
|
|
8
|
+
style: {
|
|
9
|
+
...styles?.root,
|
|
21
10
|
...style
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} else t4 = $[5];
|
|
27
|
-
let t5;
|
|
28
|
-
if ($[6] !== children || $[7] !== t2 || $[8] !== t4) {
|
|
29
|
-
t5 = /*#__PURE__*/ jsx("div", {
|
|
30
|
-
className: t2,
|
|
31
|
-
style: t4,
|
|
32
|
-
"data-tao-form-actions": "",
|
|
33
|
-
children: children
|
|
34
|
-
});
|
|
35
|
-
$[6] = children;
|
|
36
|
-
$[7] = t2;
|
|
37
|
-
$[8] = t4;
|
|
38
|
-
$[9] = t5;
|
|
39
|
-
} else t5 = $[9];
|
|
40
|
-
return t5;
|
|
11
|
+
},
|
|
12
|
+
"data-tao-form-actions": "",
|
|
13
|
+
children: children
|
|
14
|
+
});
|
|
41
15
|
}
|
|
42
16
|
export { FormActions };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
|
|
3
|
+
import '../../theme/theme.css';
|
|
3
4
|
import './form.css';
|
|
4
5
|
export type FormFieldLayout = 'vertical' | 'horizontal';
|
|
5
6
|
export interface FormFieldViewProps {
|
|
@@ -1,166 +1,68 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
2
|
import { Fragment, cloneElement, isValidElement, useId } from "react";
|
|
4
3
|
import { FieldLabelContext } from "../../utils/field-label.js";
|
|
5
4
|
import { cx } from "../../utils/semantic.js";
|
|
5
|
+
import "../../theme/theme.css";
|
|
6
6
|
import "./form.css";
|
|
7
7
|
const hasContent = (value)=>null != value && '' !== value && 'boolean' != typeof value;
|
|
8
|
-
function FormFieldView(
|
|
9
|
-
const $ = c(108);
|
|
10
|
-
const { formItem, reserveMessage, label, htmlFor, required, error, nestedErrors, invalid, warning, description, extra, layout: t1, controlProps, renderControl, children, className, style, classNames, styles } = t0;
|
|
11
|
-
const layout = void 0 === t1 ? "vertical" : t1;
|
|
8
|
+
function FormFieldView({ formItem, reserveMessage, label, htmlFor, required, error, nestedErrors, invalid, warning, description, extra, layout = 'vertical', controlProps, renderControl, children, className, style, classNames, styles }) {
|
|
12
9
|
const generatedId = useId();
|
|
13
10
|
const child = /*#__PURE__*/ isValidElement(children) && children.type !== Fragment ? children : null;
|
|
14
|
-
const childId =
|
|
11
|
+
const childId = 'string' == typeof child?.props.id ? child.props.id : void 0;
|
|
15
12
|
const controlId = htmlFor ?? childId ?? `${generatedId}-control`;
|
|
16
13
|
const labelId = `${generatedId}-label`;
|
|
17
14
|
const descriptionId = `${generatedId}-description`;
|
|
18
15
|
const errorId = `${generatedId}-error`;
|
|
19
16
|
const extraId = `${generatedId}-extra`;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"aria-labelledby": child.props["aria-labelledby"] ?? (hasLabel && !child.props["aria-label"] ? labelId : void 0),
|
|
70
|
-
"aria-describedby": describedBy || void 0,
|
|
71
|
-
"aria-errormessage": hasError && !warning ? errorId : child.props["aria-errormessage"],
|
|
72
|
-
"aria-invalid": invalid || hasError && !warning ? true : child.props["aria-invalid"],
|
|
73
|
-
"aria-required": required ? true : child.props["aria-required"]
|
|
74
|
-
}) : children;
|
|
75
|
-
$[12] = child;
|
|
76
|
-
$[13] = children;
|
|
77
|
-
$[14] = controlId;
|
|
78
|
-
$[15] = controlProps;
|
|
79
|
-
$[16] = describedBy;
|
|
80
|
-
$[17] = errorId;
|
|
81
|
-
$[18] = hasError;
|
|
82
|
-
$[19] = hasLabel;
|
|
83
|
-
$[20] = invalid;
|
|
84
|
-
$[21] = labelId;
|
|
85
|
-
$[22] = required;
|
|
86
|
-
$[23] = warning;
|
|
87
|
-
$[24] = t9;
|
|
88
|
-
} else t9 = $[24];
|
|
89
|
-
const control = t9;
|
|
90
|
-
let t10;
|
|
91
|
-
if ($[25] !== classNames?.description || $[26] !== styles?.description) {
|
|
92
|
-
t10 = (id, content)=>/*#__PURE__*/ jsx("p", {
|
|
93
|
-
className: classNames?.description,
|
|
94
|
-
style: styles?.description,
|
|
95
|
-
"data-tao-form-description": "",
|
|
96
|
-
id: id,
|
|
97
|
-
children: content
|
|
98
|
-
});
|
|
99
|
-
$[25] = classNames?.description;
|
|
100
|
-
$[26] = styles?.description;
|
|
101
|
-
$[27] = t10;
|
|
102
|
-
} else t10 = $[27];
|
|
103
|
-
const descriptionMessage = t10;
|
|
104
|
-
let t11;
|
|
105
|
-
if ($[28] !== classNames?.error || $[29] !== description || $[30] !== descriptionId || $[31] !== descriptionMessage || $[32] !== error || $[33] !== errorId || $[34] !== hasDescription || $[35] !== hasError || $[36] !== styles?.error || $[37] !== warning) {
|
|
106
|
-
t11 = hasError ? /*#__PURE__*/ jsx("p", {
|
|
107
|
-
className: classNames?.error,
|
|
108
|
-
style: styles?.error,
|
|
109
|
-
"data-tao-form-error": "",
|
|
110
|
-
"data-tao-status": warning ? "warning" : void 0,
|
|
111
|
-
id: errorId,
|
|
112
|
-
role: "alert",
|
|
113
|
-
children: error
|
|
114
|
-
}) : hasDescription ? descriptionMessage(descriptionId, description) : null;
|
|
115
|
-
$[28] = classNames?.error;
|
|
116
|
-
$[29] = description;
|
|
117
|
-
$[30] = descriptionId;
|
|
118
|
-
$[31] = descriptionMessage;
|
|
119
|
-
$[32] = error;
|
|
120
|
-
$[33] = errorId;
|
|
121
|
-
$[34] = hasDescription;
|
|
122
|
-
$[35] = hasError;
|
|
123
|
-
$[36] = styles?.error;
|
|
124
|
-
$[37] = warning;
|
|
125
|
-
$[38] = t11;
|
|
126
|
-
} else t11 = $[38];
|
|
127
|
-
const message = t11;
|
|
128
|
-
let t12;
|
|
129
|
-
let t13;
|
|
130
|
-
let t14;
|
|
131
|
-
let t15;
|
|
132
|
-
let t16;
|
|
133
|
-
let t17;
|
|
134
|
-
let t18;
|
|
135
|
-
let t19;
|
|
136
|
-
let t20;
|
|
137
|
-
let t21;
|
|
138
|
-
if ($[39] !== child || $[40] !== className || $[41] !== classNames?.error || $[42] !== classNames?.label || $[43] !== classNames?.root || $[44] !== control || $[45] !== controlId || $[46] !== descriptionMessage || $[47] !== extra || $[48] !== extraId || $[49] !== formItem || $[50] !== hasExtra || $[51] !== hasLabel || $[52] !== label || $[53] !== labelId || $[54] !== layout || $[55] !== message || $[56] !== nestedErrors || $[57] !== renderControl || $[58] !== required || $[59] !== reserveMessage || $[60] !== style || $[61] !== styles?.error || $[62] !== styles?.label || $[63] !== styles?.root) {
|
|
139
|
-
const childErrors = Object.entries(nestedErrors ?? {});
|
|
140
|
-
const hasMessage = formItem && (reserveMessage || null !== message || hasExtra || childErrors.length > 0);
|
|
141
|
-
const t22 = classNames?.root;
|
|
142
|
-
if ($[74] !== className || $[75] !== t22) {
|
|
143
|
-
t15 = cx(t22, className);
|
|
144
|
-
$[74] = className;
|
|
145
|
-
$[75] = t22;
|
|
146
|
-
$[76] = t15;
|
|
147
|
-
} else t15 = $[76];
|
|
148
|
-
const t23 = styles?.root;
|
|
149
|
-
if ($[77] !== style || $[78] !== t23) {
|
|
150
|
-
t16 = {
|
|
151
|
-
...t23,
|
|
152
|
-
...style
|
|
153
|
-
};
|
|
154
|
-
$[77] = style;
|
|
155
|
-
$[78] = t23;
|
|
156
|
-
$[79] = t16;
|
|
157
|
-
} else t16 = $[79];
|
|
158
|
-
t17 = "";
|
|
159
|
-
t18 = formItem ? "" : void 0;
|
|
160
|
-
t19 = hasMessage ? "" : void 0;
|
|
161
|
-
t20 = "horizontal" === layout ? "horizontal" : void 0;
|
|
162
|
-
if ($[80] !== classNames?.label || $[81] !== controlId || $[82] !== hasLabel || $[83] !== label || $[84] !== labelId || $[85] !== required || $[86] !== styles?.label) {
|
|
163
|
-
t21 = hasLabel && /*#__PURE__*/ jsxs("label", {
|
|
17
|
+
const hasLabel = hasContent(label);
|
|
18
|
+
const hasError = hasContent(error);
|
|
19
|
+
const hasDescription = hasContent(description);
|
|
20
|
+
const hasExtra = hasContent(extra);
|
|
21
|
+
const childDescribedBy = 'string' == typeof child?.props['aria-describedby'] ? child.props['aria-describedby'] : void 0;
|
|
22
|
+
const describedBy = [
|
|
23
|
+
childDescribedBy,
|
|
24
|
+
hasError ? errorId : hasDescription ? descriptionId : void 0,
|
|
25
|
+
hasExtra ? extraId : void 0
|
|
26
|
+
].filter(Boolean).join(' ');
|
|
27
|
+
const control = child ? /*#__PURE__*/ cloneElement(child, {
|
|
28
|
+
...controlProps,
|
|
29
|
+
id: controlId,
|
|
30
|
+
'aria-labelledby': child.props['aria-labelledby'] ?? (hasLabel && !child.props['aria-label'] ? labelId : void 0),
|
|
31
|
+
'aria-describedby': describedBy || void 0,
|
|
32
|
+
'aria-errormessage': hasError && !warning ? errorId : child.props['aria-errormessage'],
|
|
33
|
+
'aria-invalid': invalid || hasError && !warning ? true : child.props['aria-invalid'],
|
|
34
|
+
'aria-required': required ? true : child.props['aria-required']
|
|
35
|
+
}) : children;
|
|
36
|
+
const descriptionMessage = (id, content)=>/*#__PURE__*/ jsx("p", {
|
|
37
|
+
className: classNames?.description,
|
|
38
|
+
style: styles?.description,
|
|
39
|
+
"data-tao-form-description": "",
|
|
40
|
+
id: id,
|
|
41
|
+
children: content
|
|
42
|
+
});
|
|
43
|
+
const message = hasError ? /*#__PURE__*/ jsx("p", {
|
|
44
|
+
className: classNames?.error,
|
|
45
|
+
style: styles?.error,
|
|
46
|
+
"data-tao-form-error": "",
|
|
47
|
+
"data-tao-status": warning ? 'warning' : void 0,
|
|
48
|
+
id: errorId,
|
|
49
|
+
role: "alert",
|
|
50
|
+
children: error
|
|
51
|
+
}) : hasDescription ? descriptionMessage(descriptionId, description) : null;
|
|
52
|
+
const childErrors = Object.entries(nestedErrors ?? {});
|
|
53
|
+
const hasMessage = formItem && (reserveMessage || null !== message || hasExtra || childErrors.length > 0);
|
|
54
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
55
|
+
className: cx(classNames?.root, className),
|
|
56
|
+
style: {
|
|
57
|
+
...styles?.root,
|
|
58
|
+
...style
|
|
59
|
+
},
|
|
60
|
+
"data-tao-form-field": "",
|
|
61
|
+
"data-tao-form-item": formItem ? '' : void 0,
|
|
62
|
+
"data-tao-form-feedback": hasMessage ? '' : void 0,
|
|
63
|
+
"data-tao-layout": 'horizontal' === layout ? 'horizontal' : void 0,
|
|
64
|
+
children: [
|
|
65
|
+
hasLabel && /*#__PURE__*/ jsxs("label", {
|
|
164
66
|
id: labelId,
|
|
165
67
|
htmlFor: controlId,
|
|
166
68
|
className: classNames?.label,
|
|
@@ -174,143 +76,34 @@ function FormFieldView(t0) {
|
|
|
174
76
|
children: "*"
|
|
175
77
|
})
|
|
176
78
|
]
|
|
177
|
-
})
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
t14 = hasMessage ? /*#__PURE__*/ jsxs("div", {
|
|
207
|
-
"data-tao-form-message": "",
|
|
208
|
-
children: [
|
|
209
|
-
message,
|
|
210
|
-
childErrors.map((t26)=>{
|
|
211
|
-
const [id_0, errors] = t26;
|
|
212
|
-
return /*#__PURE__*/ jsx("div", {
|
|
213
|
-
id: id_0,
|
|
214
|
-
role: "alert",
|
|
215
|
-
className: classNames?.error,
|
|
216
|
-
style: styles?.error,
|
|
217
|
-
"data-tao-form-error": "",
|
|
218
|
-
children: errors.map(_temp)
|
|
219
|
-
}, id_0);
|
|
220
|
-
}),
|
|
221
|
-
hasExtra && descriptionMessage(extraId, extra)
|
|
222
|
-
]
|
|
223
|
-
}) : message;
|
|
224
|
-
$[39] = child;
|
|
225
|
-
$[40] = className;
|
|
226
|
-
$[41] = classNames?.error;
|
|
227
|
-
$[42] = classNames?.label;
|
|
228
|
-
$[43] = classNames?.root;
|
|
229
|
-
$[44] = control;
|
|
230
|
-
$[45] = controlId;
|
|
231
|
-
$[46] = descriptionMessage;
|
|
232
|
-
$[47] = extra;
|
|
233
|
-
$[48] = extraId;
|
|
234
|
-
$[49] = formItem;
|
|
235
|
-
$[50] = hasExtra;
|
|
236
|
-
$[51] = hasLabel;
|
|
237
|
-
$[52] = label;
|
|
238
|
-
$[53] = labelId;
|
|
239
|
-
$[54] = layout;
|
|
240
|
-
$[55] = message;
|
|
241
|
-
$[56] = nestedErrors;
|
|
242
|
-
$[57] = renderControl;
|
|
243
|
-
$[58] = required;
|
|
244
|
-
$[59] = reserveMessage;
|
|
245
|
-
$[60] = style;
|
|
246
|
-
$[61] = styles?.error;
|
|
247
|
-
$[62] = styles?.label;
|
|
248
|
-
$[63] = styles?.root;
|
|
249
|
-
$[64] = t12;
|
|
250
|
-
$[65] = t13;
|
|
251
|
-
$[66] = t14;
|
|
252
|
-
$[67] = t15;
|
|
253
|
-
$[68] = t16;
|
|
254
|
-
$[69] = t17;
|
|
255
|
-
$[70] = t18;
|
|
256
|
-
$[71] = t19;
|
|
257
|
-
$[72] = t20;
|
|
258
|
-
$[73] = t21;
|
|
259
|
-
} else {
|
|
260
|
-
t12 = $[64];
|
|
261
|
-
t13 = $[65];
|
|
262
|
-
t14 = $[66];
|
|
263
|
-
t15 = $[67];
|
|
264
|
-
t16 = $[68];
|
|
265
|
-
t17 = $[69];
|
|
266
|
-
t18 = $[70];
|
|
267
|
-
t19 = $[71];
|
|
268
|
-
t20 = $[72];
|
|
269
|
-
t21 = $[73];
|
|
270
|
-
}
|
|
271
|
-
let t22;
|
|
272
|
-
if ($[95] !== t12 || $[96] !== t13 || $[97] !== t14) {
|
|
273
|
-
t22 = /*#__PURE__*/ jsxs("div", {
|
|
274
|
-
"data-tao-form-control": t12,
|
|
275
|
-
children: [
|
|
276
|
-
t13,
|
|
277
|
-
t14
|
|
278
|
-
]
|
|
279
|
-
});
|
|
280
|
-
$[95] = t12;
|
|
281
|
-
$[96] = t13;
|
|
282
|
-
$[97] = t14;
|
|
283
|
-
$[98] = t22;
|
|
284
|
-
} else t22 = $[98];
|
|
285
|
-
let t23;
|
|
286
|
-
if ($[99] !== t15 || $[100] !== t16 || $[101] !== t17 || $[102] !== t18 || $[103] !== t19 || $[104] !== t20 || $[105] !== t21 || $[106] !== t22) {
|
|
287
|
-
t23 = /*#__PURE__*/ jsxs("div", {
|
|
288
|
-
className: t15,
|
|
289
|
-
style: t16,
|
|
290
|
-
"data-tao-form-field": t17,
|
|
291
|
-
"data-tao-form-item": t18,
|
|
292
|
-
"data-tao-form-feedback": t19,
|
|
293
|
-
"data-tao-layout": t20,
|
|
294
|
-
children: [
|
|
295
|
-
t21,
|
|
296
|
-
t22
|
|
297
|
-
]
|
|
298
|
-
});
|
|
299
|
-
$[99] = t15;
|
|
300
|
-
$[100] = t16;
|
|
301
|
-
$[101] = t17;
|
|
302
|
-
$[102] = t18;
|
|
303
|
-
$[103] = t19;
|
|
304
|
-
$[104] = t20;
|
|
305
|
-
$[105] = t21;
|
|
306
|
-
$[106] = t22;
|
|
307
|
-
$[107] = t23;
|
|
308
|
-
} else t23 = $[107];
|
|
309
|
-
return t23;
|
|
310
|
-
}
|
|
311
|
-
function _temp(error_0) {
|
|
312
|
-
return /*#__PURE__*/ jsx("div", {
|
|
313
|
-
children: error_0
|
|
314
|
-
}, error_0);
|
|
79
|
+
}),
|
|
80
|
+
/*#__PURE__*/ jsxs("div", {
|
|
81
|
+
"data-tao-form-control": "",
|
|
82
|
+
children: [
|
|
83
|
+
/*#__PURE__*/ jsx(FieldLabelContext.Provider, {
|
|
84
|
+
value: hasLabel ? label : void 0,
|
|
85
|
+
children: renderControl && child && /*#__PURE__*/ isValidElement(control) ? renderControl(control) : control
|
|
86
|
+
}),
|
|
87
|
+
hasMessage ? /*#__PURE__*/ jsxs("div", {
|
|
88
|
+
"data-tao-form-message": "",
|
|
89
|
+
children: [
|
|
90
|
+
message,
|
|
91
|
+
childErrors.map(([id, errors])=>/*#__PURE__*/ jsx("div", {
|
|
92
|
+
id: id,
|
|
93
|
+
role: "alert",
|
|
94
|
+
className: classNames?.error,
|
|
95
|
+
style: styles?.error,
|
|
96
|
+
"data-tao-form-error": "",
|
|
97
|
+
children: errors.map((error)=>/*#__PURE__*/ jsx("div", {
|
|
98
|
+
children: error
|
|
99
|
+
}, error))
|
|
100
|
+
}, id)),
|
|
101
|
+
hasExtra && descriptionMessage(extraId, extra)
|
|
102
|
+
]
|
|
103
|
+
}) : message
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
});
|
|
315
108
|
}
|
|
316
109
|
export { FormFieldView };
|
|
@@ -1,35 +1,17 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
2
|
import { FormFieldView } from "./form-field-view.js";
|
|
4
|
-
function FormField(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
classNames: classNames,
|
|
18
|
-
styles: styles,
|
|
19
|
-
children: children
|
|
20
|
-
});
|
|
21
|
-
$[0] = children;
|
|
22
|
-
$[1] = className;
|
|
23
|
-
$[2] = classNames;
|
|
24
|
-
$[3] = description;
|
|
25
|
-
$[4] = error;
|
|
26
|
-
$[5] = htmlFor;
|
|
27
|
-
$[6] = label;
|
|
28
|
-
$[7] = required;
|
|
29
|
-
$[8] = style;
|
|
30
|
-
$[9] = styles;
|
|
31
|
-
$[10] = t1;
|
|
32
|
-
} else t1 = $[10];
|
|
33
|
-
return t1;
|
|
3
|
+
function FormField({ label, htmlFor, required, error, description, children, className, style, classNames, styles }) {
|
|
4
|
+
return /*#__PURE__*/ jsx(FormFieldView, {
|
|
5
|
+
label: label,
|
|
6
|
+
htmlFor: htmlFor,
|
|
7
|
+
required: required,
|
|
8
|
+
error: error,
|
|
9
|
+
description: description,
|
|
10
|
+
className: className,
|
|
11
|
+
style: style,
|
|
12
|
+
classNames: classNames,
|
|
13
|
+
styles: styles,
|
|
14
|
+
children: children
|
|
15
|
+
});
|
|
34
16
|
}
|
|
35
17
|
export { FormField };
|
|
@@ -1,87 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
[data-tao-form-field] {
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
5
6
|
|
|
6
|
-
[data-tao-form-control] {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
7
|
+
[data-tao-form-control] {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
[data-tao-form-error][data-tao-status="warning"] {
|
|
13
|
-
|
|
14
|
-
}
|
|
13
|
+
[data-tao-form-error][data-tao-status="warning"] {
|
|
14
|
+
color: var(--tao-warning);
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
[data-tao-form-label] {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
17
|
+
[data-tao-form-label] {
|
|
18
|
+
font-size: var(--tao-form-field-label-font-size, var(--tao-font-size-sm));
|
|
19
|
+
font-weight: var(--tao-font-weight-medium);
|
|
20
|
+
color: var(--tao-form-field-label-color, var(--tao-color-text));
|
|
21
|
+
line-height: var(--tao-line-height);
|
|
22
|
+
margin-block-end: 6px;
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
[data-tao-required] {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
25
|
+
[data-tao-required] {
|
|
26
|
+
color: var(--tao-form-field-label-required-mark-color, var(--tao-error));
|
|
27
|
+
margin-inline-start: 2px;
|
|
28
|
+
}
|
|
28
29
|
|
|
29
|
-
[data-tao-form-description] {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
30
|
+
[data-tao-form-description] {
|
|
31
|
+
font-size: var(--tao-font-size-xs);
|
|
32
|
+
color: var(--tao-form-field-description-color, var(--tao-color-text-tertiary));
|
|
33
|
+
line-height: var(--tao-line-height-sm);
|
|
34
|
+
margin-block-start: 4px;
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
[data-tao-form-error] {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
37
|
+
[data-tao-form-error] {
|
|
38
|
+
font-size: var(--tao-form-field-error-font-size, var(--tao-font-size-xs));
|
|
39
|
+
color: var(--tao-form-field-error-color, var(--tao-error));
|
|
40
|
+
line-height: var(--tao-line-height-sm);
|
|
41
|
+
margin-block-start: 4px;
|
|
42
|
+
}
|
|
42
43
|
|
|
43
|
-
[data-tao-form-section] {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
44
|
+
[data-tao-form-section] {
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
display: flex;
|
|
47
|
+
}
|
|
47
48
|
|
|
48
|
-
[data-tao-form-section] + [data-tao-form-section] {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
49
|
+
[data-tao-form-section] + [data-tao-form-section] {
|
|
50
|
+
border-block-start: var(--tao-line-width) solid
|
|
51
|
+
var(--tao-color-border-secondary);
|
|
52
|
+
margin-block-start: var(--tao-padding-xl);
|
|
53
|
+
padding-block-start: var(--tao-padding-xl);
|
|
54
|
+
}
|
|
54
55
|
|
|
55
|
-
[data-tao-form-section-header] {
|
|
56
|
-
|
|
57
|
-
}
|
|
56
|
+
[data-tao-form-section-header] {
|
|
57
|
+
margin-block-end: var(--tao-padding);
|
|
58
|
+
}
|
|
58
59
|
|
|
59
|
-
[data-tao-form-section-title] {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
60
|
+
[data-tao-form-section-title] {
|
|
61
|
+
font-size: var(--tao-font-size-lg);
|
|
62
|
+
font-weight: var(--tao-font-weight-strong);
|
|
63
|
+
color: var(--tao-color-text);
|
|
64
|
+
line-height: 1.25;
|
|
65
|
+
}
|
|
65
66
|
|
|
66
|
-
[data-tao-form-section-description] {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
67
|
+
[data-tao-form-section-description] {
|
|
68
|
+
font-size: var(--tao-font-size-base);
|
|
69
|
+
color: var(--tao-color-text-secondary);
|
|
70
|
+
margin-block-start: 4px;
|
|
71
|
+
}
|
|
71
72
|
|
|
72
|
-
[data-tao-form-section-body] {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
73
|
+
[data-tao-form-section-body] {
|
|
74
|
+
gap: var(--tao-form-field-item-gap, var(--tao-padding-md));
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
display: flex;
|
|
77
|
+
}
|
|
77
78
|
|
|
78
|
-
[data-tao-form-actions] {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
[data-tao-form-actions] {
|
|
80
|
+
justify-content: flex-end;
|
|
81
|
+
gap: var(--tao-padding-sm);
|
|
82
|
+
border-block-start: var(--tao-line-width) solid
|
|
83
|
+
var(--tao-color-border-secondary);
|
|
84
|
+
margin-block-start: var(--tao-padding-xl);
|
|
85
|
+
padding-block-start: var(--tao-padding-lg);
|
|
86
|
+
display: flex;
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
89
|
|