react-kui 3.0.0 → 3.1.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/AI.en-US.md +86 -1
- package/AI.md +68 -4
- package/ai/behaviors.json +114 -14
- package/ai/cli.mjs +180 -17
- package/ai/descriptions.json +446 -0
- package/ai/kui-components.json +4591 -3846
- package/ai/mcp.mjs +2 -189
- package/ai/query.mjs +195 -0
- package/ai/skills/react-kui/SKILL.md +41 -9
- package/ai/skills/react-kui/references/mcp.md +11 -1
- package/ai/skills/react-kui/references/react-to-vue.md +110 -0
- package/ai/skills/react-kui/references/vue-to-react.md +86 -0
- package/ai/validate.mjs +18 -0
- package/es/_virtual/_rolldown/runtime.js +1 -1
- package/es/affix/index.js +1 -1
- package/es/alert/index.js +29 -15
- package/es/anchor/anchor-context.js +1 -1
- package/es/anchor/anchor-link.js +1 -1
- package/es/anchor/anchor.js +1 -1
- package/es/auto-complete/index.js +378 -437
- package/es/avatar/avatar-group-context.js +1 -1
- package/es/avatar/avatar-group.js +1 -1
- package/es/avatar/avatar.js +2 -2
- package/es/back-top/index.js +3 -3
- package/es/badge/index.js +6 -2
- package/es/base/teleport.js +19 -30
- package/es/base/transition-props.js +1 -1
- package/es/base/transition.js +3 -3
- package/es/breadcrumb/breadcrumb-context.js +1 -1
- package/es/breadcrumb/breadcrumb-item.js +1 -1
- package/es/breadcrumb/breadcrumb.js +1 -1
- package/es/button/button-group-context.js +1 -1
- package/es/button/button-group.js +1 -1
- package/es/button/button.js +2 -2
- package/es/calendar/index.js +1 -1
- package/es/card/index.js +1 -1
- package/es/carousel/carousel-context.js +1 -1
- package/es/carousel/carousel-item.js +1 -1
- package/es/carousel/carousel.js +522 -274
- package/es/carousel/drag.js +169 -0
- package/es/cascader/index.js +104 -170
- package/es/check-card/check-card-group.js +1 -1
- package/es/check-card/check-card.js +143 -143
- package/es/check-card/context.js +1 -1
- package/es/checkbox/checkbox-group-context.js +1 -1
- package/es/checkbox/checkbox-group.js +1 -1
- package/es/checkbox/checkbox.js +131 -112
- package/es/checkbox/index.js +1 -1
- package/es/collapse/collapse-panel.js +2 -2
- package/es/collapse/collapse.js +96 -103
- package/es/color-picker/alpha.js +81 -63
- package/es/color-picker/hue.js +69 -51
- package/es/color-picker/index.js +79 -128
- package/es/color-picker/mode.js +1 -1
- package/es/color-picker/paint.js +85 -67
- package/es/color-picker/presets.js +1 -1
- package/es/components.js +4 -2
- package/es/config/config-context.js +1 -1
- package/es/config/context.js +1 -1
- package/es/config/index.js +1 -1
- package/es/config/size-context.js +1 -1
- package/es/config/use-config-appearance.js +1 -1
- package/es/const/var.js +1 -1
- package/es/date-picker/index.js +591 -678
- package/es/descriptions/descriptions-item.js +1 -1
- package/es/descriptions/descriptions.js +2 -2
- package/es/divider/index.js +1 -1
- package/es/drawer/index.js +193 -190
- package/es/dropdown/dropdown-button.js +1 -1
- package/es/dropdown/dropdown-context.js +1 -1
- package/es/dropdown/dropdown.js +173 -331
- package/es/dropdown/trigger.js +1 -1
- package/es/empty/index.js +1 -1
- package/es/feature-card/index.js +1 -1
- package/es/feedback-panel/index.js +1 -1
- package/es/flame-wrap/index.js +1 -1
- package/es/flame-wrap/types.js +1 -1
- package/es/flex/index.js +1 -1
- package/es/form/field-context.js +1 -1
- package/es/form/form-context.js +1 -1
- package/es/form/form-item.js +2 -2
- package/es/form/form.js +1 -1
- package/es/form/utils.js +1 -1
- package/es/grid/grid-item.js +1 -1
- package/es/grid/grid.js +1 -1
- package/es/grid/useBreakpoint.js +1 -1
- package/es/icon/index.js +1 -1
- package/es/image/group.js +1 -1
- package/es/image/image-group-context.js +1 -1
- package/es/image/image.js +1 -1
- package/es/image/instance.js +1 -1
- package/es/image/preview.js +2 -2
- package/es/image/utils.js +1 -1
- package/es/index.js +3 -2
- package/es/input/index.js +1 -1
- package/es/input/input-base.js +202 -0
- package/es/input/input-box.js +1 -1
- package/es/input/input-group.js +2 -2
- package/es/input/input.js +19 -188
- package/es/input/textarea.js +1 -1
- package/es/input-number/index.js +4 -4
- package/es/input-otp/index.js +2 -1
- package/es/input-tag/index.js +13 -43
- package/es/kanban/index.js +1 -1
- package/es/layout/index.js +1 -1
- package/es/layout/layout-context.js +1 -1
- package/es/list-panel/index.js +1 -1
- package/es/loading/index.js +1 -1
- package/es/loading/loading-bar.js +1 -1
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- package/es/mentions/index.js +341 -387
- package/es/menu/menu-context.js +1 -1
- package/es/menu/menu-divider.js +1 -1
- package/es/menu/menu-group.js +1 -1
- package/es/menu/menu-item.js +3 -3
- package/es/menu/menu-keyboard.js +1 -1
- package/es/menu/menu.js +215 -220
- package/es/menu/recursive-menu.js +1 -1
- package/es/menu/sub-menu.js +3 -3
- package/es/message/index.js +1 -1
- package/es/modal/api.js +1 -1
- package/es/modal/modal.js +247 -244
- package/es/modal/toast.js +1 -1
- package/es/node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js +1 -1
- package/es/notice/container.js +1 -1
- package/es/notice/content.js +1 -1
- package/es/notice/index.js +1 -1
- package/es/notice/instance.js +1 -1
- package/es/page/index.js +101 -78
- package/es/page/responsive.js +96 -0
- package/es/page-header/index.js +1 -1
- package/es/popconfirm/index.js +89 -241
- package/es/poptip/index.js +83 -243
- package/es/popup/index.js +429 -0
- package/es/popup/layers.js +33 -0
- package/es/progress/index.js +1 -1
- package/es/qrcode/index.js +1 -1
- package/es/radio/radio-button.js +53 -53
- package/es/radio/radio-group-context.js +1 -1
- package/es/radio/radio-group.js +1 -1
- package/es/radio/radio.js +110 -91
- package/es/rate/index.js +58 -57
- package/es/rate/star.js +1 -1
- package/es/result/index.js +1 -1
- package/es/ripple/index.js +1 -1
- package/es/ripple/types.js +1 -1
- package/es/row-col/col.js +1 -1
- package/es/row-col/row.js +1 -1
- package/es/segmented/index.js +1 -1
- package/es/select/option.js +69 -61
- package/es/select/select.js +78 -213
- package/es/skeleton/skeleton-avatar.js +1 -1
- package/es/skeleton/skeleton-button.js +1 -1
- package/es/skeleton/skeleton-image.js +1 -1
- package/es/skeleton/skeleton-text.js +1 -1
- package/es/skeleton/skeleton.js +1 -1
- package/es/skeleton/use-skeleton-loading.js +1 -1
- package/es/slider/index.js +89 -55
- package/es/slider/thumb.js +2 -1
- package/es/space/index.js +2 -2
- package/es/spin/index.js +1 -1
- package/es/splitter/splitter-panel.js +1 -1
- package/es/splitter/splitter.js +1 -1
- package/es/stat-card/countup.js +8 -4
- package/es/stat-card/rollup.js +122 -0
- package/es/stat-card/stat-card.js +1 -1
- package/es/stat-card/stat-number.js +1 -1
- package/es/stat-card/utils/countup.js +2 -2
- package/es/stat-card/utils/odometer.js +104 -107
- package/es/steps/index.js +1 -1
- package/es/switch/index.js +7 -6
- package/es/table/column-setting.js +1 -1
- package/es/table/index.js +33 -29
- package/es/table/utils.js +1 -1
- package/es/tabs/tab-panel.js +1 -1
- package/es/tabs/tabs.js +15 -6
- package/es/tag/index.js +9 -5
- package/es/time-line/timeline-item.js +1 -1
- package/es/time-line/timeline.js +1 -1
- package/es/tooltip/index.js +127 -248
- package/es/tour/index.js +198 -193
- package/es/transfer/index.js +245 -246
- package/es/tree/index.js +72 -67
- package/es/tree/utils.js +1 -1
- package/es/tree-select/index.js +562 -655
- package/es/typography/index.js +1 -1
- package/es/upload/file-list.js +3 -1
- package/es/upload/index.js +8 -8
- package/es/upload/picture-sort.js +1 -1
- package/es/upload/selector.js +121 -116
- package/es/utils/checked.js +1 -1
- package/es/utils/color.js +1 -1
- package/es/utils/number.js +1 -1
- package/es/utils/placement.js +1 -1
- package/es/utils/popup.js +42 -0
- package/es/utils/react-node.js +1 -1
- package/es/utils/selection-tags.js +55 -0
- package/es/utils/share.js +1 -1
- package/es/utils/theme.js +1 -1
- package/es/utils/transition.js +1 -1
- package/es/utils/use-value.js +1 -1
- package/es/virtual-list/index.js +1 -1
- package/es/virtual-list/range.js +1 -1
- package/es/watermark/index.js +1 -1
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +1 -1
- package/lib/locale/el.cjs +1 -1
- package/lib/locale/en.cjs +1 -1
- package/lib/locale/fr.cjs +1 -1
- package/lib/locale/it.cjs +1 -1
- package/lib/locale/ja.cjs +1 -1
- package/lib/locale/ko.cjs +1 -1
- package/lib/locale/ru.cjs +1 -1
- package/lib/locale/th.cjs +1 -1
- package/lib/locale/uk.cjs +1 -1
- package/lib/locale/vi.cjs +1 -1
- package/lib/locale/zh-CN.cjs +1 -1
- package/lib/locale/zh-TW.cjs +1 -1
- package/package.json +35 -29
- package/style/base.css +1 -1
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/theme.css +2 -2
- package/types/affix/index.d.cts +1 -1
- package/types/affix/index.d.ts +1 -1
- package/types/alert/index.d.cts +2 -1
- package/types/alert/index.d.ts +2 -1
- package/types/anchor/anchor-link.d.cts +1 -1
- package/types/anchor/anchor-link.d.ts +1 -1
- package/types/anchor/anchor.d.cts +1 -1
- package/types/anchor/anchor.d.ts +1 -1
- package/types/auto-complete/index.d.cts +1 -2
- package/types/auto-complete/index.d.ts +1 -2
- package/types/avatar/avatar-group.d.cts +1 -1
- package/types/avatar/avatar-group.d.ts +1 -1
- package/types/avatar/avatar.d.cts +1 -1
- package/types/avatar/avatar.d.ts +1 -1
- package/types/back-top/index.d.cts +1 -1
- package/types/back-top/index.d.ts +1 -1
- package/types/badge/index.d.cts +1 -1
- package/types/badge/index.d.ts +1 -1
- package/types/base/transition.d.cts +1 -0
- package/types/base/transition.d.ts +1 -0
- package/types/breadcrumb/breadcrumb-item.d.cts +1 -1
- package/types/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/types/breadcrumb/breadcrumb.d.cts +1 -1
- package/types/breadcrumb/breadcrumb.d.ts +1 -1
- package/types/button/button-group.d.cts +1 -1
- package/types/button/button-group.d.ts +1 -1
- package/types/button/button.d.cts +1 -1
- package/types/button/button.d.ts +1 -1
- package/types/calendar/index.d.cts +1 -1
- package/types/calendar/index.d.ts +1 -1
- package/types/card/index.d.cts +2 -2
- package/types/card/index.d.ts +2 -2
- package/types/carousel/carousel-item.d.cts +1 -1
- package/types/carousel/carousel-item.d.ts +1 -1
- package/types/carousel/carousel.d.cts +2 -1
- package/types/carousel/carousel.d.ts +2 -1
- package/types/carousel/drag.d.cts +19 -0
- package/types/carousel/drag.d.ts +19 -0
- package/types/cascader/index.d.cts +1 -1
- package/types/cascader/index.d.ts +1 -1
- package/types/cascader/types.d.cts +1 -2
- package/types/cascader/types.d.ts +1 -2
- package/types/check-card/types.d.cts +2 -3
- package/types/check-card/types.d.ts +2 -3
- package/types/checkbox/checkbox-group.d.cts +1 -1
- package/types/checkbox/checkbox-group.d.ts +1 -1
- package/types/checkbox/checkbox.d.cts +1 -2
- package/types/checkbox/checkbox.d.ts +1 -2
- package/types/checkbox/index.d.cts +1 -1
- package/types/checkbox/index.d.ts +1 -1
- package/types/collapse/collapse-panel.d.cts +1 -1
- package/types/collapse/collapse-panel.d.ts +1 -1
- package/types/collapse/collapse.d.cts +1 -2
- package/types/collapse/collapse.d.ts +1 -2
- package/types/color-picker/alpha.d.cts +2 -1
- package/types/color-picker/alpha.d.ts +2 -1
- package/types/color-picker/hue.d.cts +2 -1
- package/types/color-picker/hue.d.ts +2 -1
- package/types/color-picker/index.d.cts +3 -4
- package/types/color-picker/index.d.ts +3 -4
- package/types/color-picker/paint.d.cts +2 -1
- package/types/color-picker/paint.d.ts +2 -1
- package/types/components.d.cts +17 -13
- package/types/components.d.ts +17 -13
- package/types/date-picker/index.d.cts +3 -4
- package/types/date-picker/index.d.ts +3 -4
- package/types/descriptions/descriptions.d.cts +1 -1
- package/types/descriptions/descriptions.d.ts +1 -1
- package/types/divider/index.d.cts +1 -1
- package/types/divider/index.d.ts +1 -1
- package/types/drawer/index.d.cts +0 -1
- package/types/drawer/index.d.ts +0 -1
- package/types/dropdown/dropdown-button.d.cts +1 -1
- package/types/dropdown/dropdown-button.d.ts +1 -1
- package/types/dropdown/dropdown.d.cts +1 -2
- package/types/dropdown/dropdown.d.ts +1 -2
- package/types/empty/index.d.cts +1 -1
- package/types/empty/index.d.ts +1 -1
- package/types/feature-card/index.d.cts +1 -1
- package/types/feature-card/index.d.ts +1 -1
- package/types/feedback-panel/index.d.cts +1 -1
- package/types/feedback-panel/index.d.ts +1 -1
- package/types/flex/index.d.cts +1 -1
- package/types/flex/index.d.ts +1 -1
- package/types/form/form.d.cts +1 -1
- package/types/form/form.d.ts +1 -1
- package/types/grid/grid-item.d.cts +1 -1
- package/types/grid/grid-item.d.ts +1 -1
- package/types/grid/grid.d.cts +1 -1
- package/types/grid/grid.d.ts +1 -1
- package/types/icon/index.d.cts +1 -1
- package/types/icon/index.d.ts +1 -1
- package/types/image/group.d.cts +1 -1
- package/types/image/group.d.ts +1 -1
- package/types/image/image.d.cts +1 -1
- package/types/image/image.d.ts +1 -1
- package/types/input/index.d.cts +1 -1
- package/types/input/index.d.ts +1 -1
- package/types/input/input-base.d.cts +31 -0
- package/types/input/input-base.d.ts +31 -0
- package/types/input/input-box.d.cts +1 -1
- package/types/input/input-box.d.ts +1 -1
- package/types/input/input-group.d.cts +1 -1
- package/types/input/input-group.d.ts +1 -1
- package/types/input/input.d.cts +2 -25
- package/types/input/input.d.ts +2 -25
- package/types/input/textarea.d.cts +1 -1
- package/types/input/textarea.d.ts +1 -1
- package/types/input-number/index.d.cts +1 -1
- package/types/input-number/index.d.ts +1 -1
- package/types/input-otp/index.d.cts +1 -1
- package/types/input-otp/index.d.ts +1 -1
- package/types/input-tag/index.d.cts +1 -1
- package/types/input-tag/index.d.ts +1 -1
- package/types/kanban/index.d.cts +1 -1
- package/types/kanban/index.d.ts +1 -1
- package/types/layout/index.d.cts +2 -2
- package/types/layout/index.d.ts +2 -2
- package/types/list-panel/index.d.cts +1 -1
- package/types/list-panel/index.d.ts +1 -1
- package/types/mentions/index.d.cts +1 -1
- package/types/mentions/index.d.ts +1 -1
- package/types/menu/menu.d.cts +1 -2
- package/types/menu/menu.d.ts +1 -2
- package/types/modal/modal.d.cts +1 -2
- package/types/modal/modal.d.ts +1 -2
- package/types/page/index.d.cts +2 -1
- package/types/page/index.d.ts +2 -1
- package/types/page/responsive.d.cts +1 -0
- package/types/page/responsive.d.ts +1 -0
- package/types/page-header/index.d.cts +1 -1
- package/types/page-header/index.d.ts +1 -1
- package/types/popconfirm/index.d.cts +1 -2
- package/types/popconfirm/index.d.ts +1 -2
- package/types/poptip/index.d.cts +1 -2
- package/types/poptip/index.d.ts +1 -2
- package/types/popup/index.d.cts +48 -0
- package/types/popup/index.d.ts +48 -0
- package/types/popup/layers.d.cts +9 -0
- package/types/popup/layers.d.ts +9 -0
- package/types/popup/types.d.cts +15 -0
- package/types/popup/types.d.ts +15 -0
- package/types/progress/index.d.cts +1 -1
- package/types/progress/index.d.ts +1 -1
- package/types/qrcode/index.d.cts +1 -1
- package/types/qrcode/index.d.ts +1 -1
- package/types/radio/index.d.cts +1 -0
- package/types/radio/index.d.ts +1 -0
- package/types/radio/radio-button.d.cts +1 -2
- package/types/radio/radio-button.d.ts +1 -2
- package/types/radio/radio-group.d.cts +1 -1
- package/types/radio/radio-group.d.ts +1 -1
- package/types/radio/radio.d.cts +1 -2
- package/types/radio/radio.d.ts +1 -2
- package/types/rate/index.d.cts +1 -1
- package/types/rate/index.d.ts +1 -1
- package/types/result/index.d.cts +1 -1
- package/types/result/index.d.ts +1 -1
- package/types/row-col/col.d.cts +1 -1
- package/types/row-col/col.d.ts +1 -1
- package/types/row-col/row.d.cts +1 -1
- package/types/row-col/row.d.ts +1 -1
- package/types/segmented/index.d.cts +1 -1
- package/types/segmented/index.d.ts +1 -1
- package/types/select/index.d.cts +2 -2
- package/types/select/index.d.ts +2 -2
- package/types/select/option.d.cts +1 -1
- package/types/select/option.d.ts +1 -1
- package/types/select/select.d.cts +1 -2
- package/types/select/select.d.ts +1 -2
- package/types/skeleton/skeleton-avatar.d.cts +1 -1
- package/types/skeleton/skeleton-avatar.d.ts +1 -1
- package/types/skeleton/skeleton-button.d.cts +1 -1
- package/types/skeleton/skeleton-button.d.ts +1 -1
- package/types/skeleton/skeleton-image.d.cts +1 -1
- package/types/skeleton/skeleton-image.d.ts +1 -1
- package/types/skeleton/skeleton-text.d.cts +1 -1
- package/types/skeleton/skeleton-text.d.ts +1 -1
- package/types/skeleton/skeleton.d.cts +1 -1
- package/types/skeleton/skeleton.d.ts +1 -1
- package/types/slider/index.d.cts +1 -1
- package/types/slider/index.d.ts +1 -1
- package/types/space/index.d.cts +1 -1
- package/types/space/index.d.ts +1 -1
- package/types/spin/index.d.cts +1 -1
- package/types/spin/index.d.ts +1 -1
- package/types/splitter/splitter-panel.d.cts +1 -1
- package/types/splitter/splitter-panel.d.ts +1 -1
- package/types/splitter/splitter.d.cts +1 -1
- package/types/splitter/splitter.d.ts +1 -1
- package/types/stat-card/countup.d.cts +1 -1
- package/types/stat-card/countup.d.ts +1 -1
- package/types/stat-card/rollup.d.cts +3 -2
- package/types/stat-card/rollup.d.ts +3 -2
- package/types/stat-card/stat-card.d.cts +1 -1
- package/types/stat-card/stat-card.d.ts +1 -1
- package/types/stat-card/stat-number.d.cts +1 -1
- package/types/stat-card/stat-number.d.ts +1 -1
- package/types/stat-card/utils/countup.d.cts +1 -1
- package/types/stat-card/utils/countup.d.ts +1 -1
- package/types/stat-card/utils/odometer.d.cts +7 -4
- package/types/stat-card/utils/odometer.d.ts +7 -4
- package/types/steps/index.d.cts +1 -1
- package/types/steps/index.d.ts +1 -1
- package/types/switch/index.d.cts +1 -2
- package/types/switch/index.d.ts +1 -2
- package/types/table/index.d.cts +1 -1
- package/types/table/index.d.ts +1 -1
- package/types/table/types.d.cts +2 -4
- package/types/table/types.d.ts +2 -4
- package/types/tabs/index.d.cts +1 -0
- package/types/tabs/index.d.ts +1 -0
- package/types/tabs/tab-panel.d.cts +1 -1
- package/types/tabs/tab-panel.d.ts +1 -1
- package/types/tabs/tabs.d.cts +1 -1
- package/types/tabs/tabs.d.ts +1 -1
- package/types/tag/index.d.cts +2 -1
- package/types/tag/index.d.ts +2 -1
- package/types/time-line/timeline-item.d.cts +1 -1
- package/types/time-line/timeline-item.d.ts +1 -1
- package/types/time-line/timeline.d.cts +1 -1
- package/types/time-line/timeline.d.ts +1 -1
- package/types/tooltip/index.d.cts +2 -2
- package/types/tooltip/index.d.ts +2 -2
- package/types/tour/index.d.cts +0 -2
- package/types/tour/index.d.ts +0 -2
- package/types/transfer/index.d.cts +2 -3
- package/types/transfer/index.d.ts +2 -3
- package/types/tree/index.d.cts +2 -4
- package/types/tree/index.d.ts +2 -4
- package/types/tree-select/index.d.cts +2 -3
- package/types/tree-select/index.d.ts +2 -3
- package/types/typography/index.d.cts +1 -1
- package/types/typography/index.d.ts +1 -1
- package/types/upload/index.d.cts +1 -2
- package/types/upload/index.d.ts +1 -2
- package/types/upload/selector.d.cts +1 -1
- package/types/upload/selector.d.ts +1 -1
- package/types/utils/popup.d.cts +11 -0
- package/types/utils/popup.d.ts +11 -0
- package/types/utils/selection-tags.d.cts +19 -0
- package/types/utils/selection-tags.d.ts +19 -0
- package/types/virtual-list/index.d.cts +1 -1
- package/types/virtual-list/index.d.ts +1 -1
- package/types/watermark/index.d.cts +1 -1
- package/types/watermark/index.d.ts +1 -1
package/es/radio/radio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.1.1
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
@@ -7,15 +7,16 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { useConfigAppearance } from "../config/use-config-appearance.js";
|
|
10
|
+
import { useValue } from "../utils/use-value.js";
|
|
10
11
|
import { createFormFieldComponent } from "../form/field-context.js";
|
|
11
12
|
import { RadioGroupContext } from "./radio-group-context.js";
|
|
12
13
|
import { c } from "react/compiler-runtime";
|
|
13
14
|
import clsx from "clsx";
|
|
14
|
-
import React, { useContext
|
|
15
|
+
import React, { useContext } from "react";
|
|
15
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
17
|
//#region components/radio/radio.tsx
|
|
17
18
|
var Radio = React.forwardRef((t0, ref) => {
|
|
18
|
-
const $ = c(
|
|
19
|
+
const $ = c(66);
|
|
19
20
|
let ariaDescribedby;
|
|
20
21
|
let ariaInvalid;
|
|
21
22
|
let ariaLabelledby;
|
|
@@ -25,16 +26,16 @@ var Radio = React.forwardRef((t0, ref) => {
|
|
|
25
26
|
let id;
|
|
26
27
|
let label;
|
|
27
28
|
let onChange;
|
|
29
|
+
let onClick;
|
|
28
30
|
let rest;
|
|
29
31
|
let sizeProp;
|
|
30
32
|
let t1;
|
|
31
33
|
let t2;
|
|
32
34
|
let t3;
|
|
33
|
-
let t4;
|
|
34
35
|
let themeProp;
|
|
35
36
|
let value;
|
|
36
37
|
if ($[0] !== t0) {
|
|
37
|
-
({checked,
|
|
38
|
+
({checked, value, label, theme: themeProp, size: sizeProp, onChange, children, className: t1, id, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, disabled: t2, readOnly: t3, onClick, ...rest} = t0);
|
|
38
39
|
$[0] = t0;
|
|
39
40
|
$[1] = ariaDescribedby;
|
|
40
41
|
$[2] = ariaInvalid;
|
|
@@ -45,12 +46,12 @@ var Radio = React.forwardRef((t0, ref) => {
|
|
|
45
46
|
$[7] = id;
|
|
46
47
|
$[8] = label;
|
|
47
48
|
$[9] = onChange;
|
|
48
|
-
$[10] =
|
|
49
|
-
$[11] =
|
|
50
|
-
$[12] =
|
|
51
|
-
$[13] =
|
|
52
|
-
$[14] =
|
|
53
|
-
$[15] =
|
|
49
|
+
$[10] = onClick;
|
|
50
|
+
$[11] = rest;
|
|
51
|
+
$[12] = sizeProp;
|
|
52
|
+
$[13] = t1;
|
|
53
|
+
$[14] = t2;
|
|
54
|
+
$[15] = t3;
|
|
54
55
|
$[16] = themeProp;
|
|
55
56
|
$[17] = value;
|
|
56
57
|
} else {
|
|
@@ -63,35 +64,34 @@ var Radio = React.forwardRef((t0, ref) => {
|
|
|
63
64
|
id = $[7];
|
|
64
65
|
label = $[8];
|
|
65
66
|
onChange = $[9];
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
onClick = $[10];
|
|
68
|
+
rest = $[11];
|
|
69
|
+
sizeProp = $[12];
|
|
70
|
+
t1 = $[13];
|
|
71
|
+
t2 = $[14];
|
|
72
|
+
t3 = $[15];
|
|
72
73
|
themeProp = $[16];
|
|
73
74
|
value = $[17];
|
|
74
75
|
}
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
const readOnly = t4 === void 0 ? false : t4;
|
|
76
|
+
const className = t1 === void 0 ? "" : t1;
|
|
77
|
+
const disabled = t2 === void 0 ? false : t2;
|
|
78
|
+
const readOnly = t3 === void 0 ? false : t3;
|
|
79
79
|
const inheritedAppearance = useConfigAppearance();
|
|
80
80
|
const theme = themeProp ?? inheritedAppearance.theme ?? "fill";
|
|
81
81
|
const size = sizeProp ?? inheritedAppearance.size;
|
|
82
82
|
const group = useContext(RadioGroupContext);
|
|
83
83
|
const isGroup = !!group;
|
|
84
84
|
const groupChecked = isGroup ? group.value === value : false;
|
|
85
|
-
const [localChecked, setLocalChecked] =
|
|
86
|
-
const isChecked = isGroup ? groupChecked :
|
|
85
|
+
const [localChecked, setLocalChecked] = useValue(checked, _temp);
|
|
86
|
+
const isChecked = isGroup ? groupChecked : localChecked;
|
|
87
87
|
const currentDisabled = disabled || isGroup && group.disabled;
|
|
88
88
|
const currentReadOnly = readOnly || Boolean(isGroup && group.readOnly);
|
|
89
89
|
const currentTheme = themeProp ?? group?.theme ?? theme;
|
|
90
90
|
const currentSize = sizeProp ?? group?.size ?? size;
|
|
91
|
-
let
|
|
92
|
-
if ($[18] !==
|
|
93
|
-
|
|
94
|
-
if (!isGroup
|
|
91
|
+
let t4;
|
|
92
|
+
if ($[18] !== group || $[19] !== isGroup || $[20] !== label || $[21] !== onChange || $[22] !== setLocalChecked || $[23] !== value) {
|
|
93
|
+
t4 = (newChecked) => {
|
|
94
|
+
if (!isGroup) setLocalChecked(newChecked);
|
|
95
95
|
const labelVal = label ?? String(value ?? "");
|
|
96
96
|
const eventObj = {
|
|
97
97
|
checked: newChecked,
|
|
@@ -101,18 +101,18 @@ var Radio = React.forwardRef((t0, ref) => {
|
|
|
101
101
|
onChange?.(eventObj);
|
|
102
102
|
group?.onChange?.(eventObj);
|
|
103
103
|
};
|
|
104
|
-
$[18] =
|
|
105
|
-
$[19] =
|
|
106
|
-
$[20] =
|
|
107
|
-
$[21] =
|
|
108
|
-
$[22] =
|
|
104
|
+
$[18] = group;
|
|
105
|
+
$[19] = isGroup;
|
|
106
|
+
$[20] = label;
|
|
107
|
+
$[21] = onChange;
|
|
108
|
+
$[22] = setLocalChecked;
|
|
109
109
|
$[23] = value;
|
|
110
|
-
$[24] =
|
|
111
|
-
} else
|
|
112
|
-
const emitValue =
|
|
113
|
-
let
|
|
110
|
+
$[24] = t4;
|
|
111
|
+
} else t4 = $[24];
|
|
112
|
+
const emitValue = t4;
|
|
113
|
+
let t5;
|
|
114
114
|
if ($[25] !== currentDisabled || $[26] !== currentReadOnly || $[27] !== emitValue || $[28] !== isChecked) {
|
|
115
|
-
|
|
115
|
+
t5 = (e) => {
|
|
116
116
|
if (currentDisabled || currentReadOnly || isChecked) return;
|
|
117
117
|
emitValue(e.target.checked);
|
|
118
118
|
};
|
|
@@ -120,47 +120,61 @@ var Radio = React.forwardRef((t0, ref) => {
|
|
|
120
120
|
$[26] = currentReadOnly;
|
|
121
121
|
$[27] = emitValue;
|
|
122
122
|
$[28] = isChecked;
|
|
123
|
-
$[29] =
|
|
124
|
-
} else
|
|
125
|
-
const handleInputChange =
|
|
126
|
-
const
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
let
|
|
130
|
-
if ($[30] !== className || $[31] !== currentDisabled || $[32] !== currentReadOnly || $[33] !== isChecked || $[34] !==
|
|
131
|
-
|
|
132
|
-
"k-radio-fill":
|
|
123
|
+
$[29] = t5;
|
|
124
|
+
} else t5 = $[29];
|
|
125
|
+
const handleInputChange = t5;
|
|
126
|
+
const t6 = currentTheme === "fill";
|
|
127
|
+
const t7 = currentSize === "large";
|
|
128
|
+
const t8 = currentSize === "small";
|
|
129
|
+
let t9;
|
|
130
|
+
if ($[30] !== className || $[31] !== currentDisabled || $[32] !== currentReadOnly || $[33] !== isChecked || $[34] !== t6 || $[35] !== t7 || $[36] !== t8) {
|
|
131
|
+
t9 = clsx("k-radio", {
|
|
132
|
+
"k-radio-fill": t6,
|
|
133
133
|
"k-radio-disabled": currentDisabled,
|
|
134
134
|
"k-radio-readonly": currentReadOnly,
|
|
135
135
|
"k-radio-checked": isChecked,
|
|
136
|
-
"k-radio-lg":
|
|
137
|
-
"k-radio-sm":
|
|
136
|
+
"k-radio-lg": t7,
|
|
137
|
+
"k-radio-sm": t8
|
|
138
138
|
}, className);
|
|
139
139
|
$[30] = className;
|
|
140
140
|
$[31] = currentDisabled;
|
|
141
141
|
$[32] = currentReadOnly;
|
|
142
142
|
$[33] = isChecked;
|
|
143
|
-
$[34] =
|
|
144
|
-
$[35] =
|
|
145
|
-
$[36] =
|
|
146
|
-
$[37] =
|
|
147
|
-
} else
|
|
148
|
-
const classes =
|
|
143
|
+
$[34] = t6;
|
|
144
|
+
$[35] = t7;
|
|
145
|
+
$[36] = t8;
|
|
146
|
+
$[37] = t9;
|
|
147
|
+
} else t9 = $[37];
|
|
148
|
+
const classes = t9;
|
|
149
149
|
const labelNode = label ?? children;
|
|
150
|
-
const
|
|
150
|
+
const t10 = currentReadOnly || void 0;
|
|
151
|
+
let t11;
|
|
152
|
+
if ($[38] !== currentDisabled || $[39] !== onClick) {
|
|
153
|
+
t11 = (event) => {
|
|
154
|
+
if (currentDisabled) {
|
|
155
|
+
event.preventDefault();
|
|
156
|
+
event.stopPropagation();
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
onClick?.(event);
|
|
160
|
+
};
|
|
161
|
+
$[38] = currentDisabled;
|
|
162
|
+
$[39] = onClick;
|
|
163
|
+
$[40] = t11;
|
|
164
|
+
} else t11 = $[40];
|
|
151
165
|
const t12 = group?.name;
|
|
152
166
|
const t13 = currentReadOnly || void 0;
|
|
153
167
|
let t14;
|
|
154
|
-
if ($[
|
|
155
|
-
t14 = (
|
|
156
|
-
if (currentReadOnly)
|
|
168
|
+
if ($[41] !== currentReadOnly) {
|
|
169
|
+
t14 = (event_0) => {
|
|
170
|
+
if (currentReadOnly) event_0.preventDefault();
|
|
157
171
|
};
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
-
} else t14 = $[
|
|
172
|
+
$[41] = currentReadOnly;
|
|
173
|
+
$[42] = t14;
|
|
174
|
+
} else t14 = $[42];
|
|
161
175
|
const t15 = !!isChecked;
|
|
162
176
|
let t16;
|
|
163
|
-
if ($[
|
|
177
|
+
if ($[43] !== ariaDescribedby || $[44] !== ariaInvalid || $[45] !== ariaLabelledby || $[46] !== ariaRequired || $[47] !== currentDisabled || $[48] !== currentReadOnly || $[49] !== handleInputChange || $[50] !== id || $[51] !== t12 || $[52] !== t13 || $[53] !== t14 || $[54] !== t15) {
|
|
164
178
|
t16 = /* @__PURE__ */ jsx("span", {
|
|
165
179
|
className: "k-radio-symbol",
|
|
166
180
|
children: /* @__PURE__ */ jsx("input", {
|
|
@@ -180,46 +194,48 @@ var Radio = React.forwardRef((t0, ref) => {
|
|
|
180
194
|
checked: t15
|
|
181
195
|
})
|
|
182
196
|
});
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
} else t16 = $[
|
|
197
|
+
$[43] = ariaDescribedby;
|
|
198
|
+
$[44] = ariaInvalid;
|
|
199
|
+
$[45] = ariaLabelledby;
|
|
200
|
+
$[46] = ariaRequired;
|
|
201
|
+
$[47] = currentDisabled;
|
|
202
|
+
$[48] = currentReadOnly;
|
|
203
|
+
$[49] = handleInputChange;
|
|
204
|
+
$[50] = id;
|
|
205
|
+
$[51] = t12;
|
|
206
|
+
$[52] = t13;
|
|
207
|
+
$[53] = t14;
|
|
208
|
+
$[54] = t15;
|
|
209
|
+
$[55] = t16;
|
|
210
|
+
} else t16 = $[55];
|
|
197
211
|
let t17;
|
|
198
|
-
if ($[
|
|
212
|
+
if ($[56] !== labelNode) {
|
|
199
213
|
t17 = labelNode ? /* @__PURE__ */ jsx("span", {
|
|
200
214
|
className: "k-radio-label",
|
|
201
215
|
children: labelNode
|
|
202
216
|
}) : null;
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
} else t17 = $[
|
|
217
|
+
$[56] = labelNode;
|
|
218
|
+
$[57] = t17;
|
|
219
|
+
} else t17 = $[57];
|
|
206
220
|
let t18;
|
|
207
|
-
if ($[
|
|
221
|
+
if ($[58] !== classes || $[59] !== ref || $[60] !== rest || $[61] !== t10 || $[62] !== t11 || $[63] !== t16 || $[64] !== t17) {
|
|
208
222
|
t18 = /* @__PURE__ */ jsxs("label", {
|
|
209
223
|
ref,
|
|
210
224
|
className: classes,
|
|
211
|
-
"aria-readonly":
|
|
225
|
+
"aria-readonly": t10,
|
|
212
226
|
...rest,
|
|
227
|
+
onClick: t11,
|
|
213
228
|
children: [t16, t17]
|
|
214
229
|
});
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
|
|
230
|
+
$[58] = classes;
|
|
231
|
+
$[59] = ref;
|
|
232
|
+
$[60] = rest;
|
|
233
|
+
$[61] = t10;
|
|
234
|
+
$[62] = t11;
|
|
235
|
+
$[63] = t16;
|
|
236
|
+
$[64] = t17;
|
|
237
|
+
$[65] = t18;
|
|
238
|
+
} else t18 = $[65];
|
|
223
239
|
return t18;
|
|
224
240
|
});
|
|
225
241
|
Radio.displayName = "Radio";
|
|
@@ -228,5 +244,8 @@ var radio_default = createFormFieldComponent(Radio, {
|
|
|
228
244
|
getFieldValue: (value) => value === true || value === 1 || value === "1",
|
|
229
245
|
getChangeValue: (event) => event.checked
|
|
230
246
|
});
|
|
247
|
+
function _temp(next) {
|
|
248
|
+
return next ?? false;
|
|
249
|
+
}
|
|
231
250
|
//#endregion
|
|
232
251
|
export { radio_default as default };
|
package/es/rate/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.1.1
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
@@ -15,7 +15,7 @@ import { useState } from "react";
|
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
//#region components/rate/index.tsx
|
|
17
17
|
var Rate = (t0) => {
|
|
18
|
-
const $ = c(
|
|
18
|
+
const $ = c(63);
|
|
19
19
|
let character;
|
|
20
20
|
let color;
|
|
21
21
|
let icon;
|
|
@@ -96,9 +96,9 @@ var Rate = (t0) => {
|
|
|
96
96
|
const [cleared, setCleared] = useState(false);
|
|
97
97
|
const currentValue = innerValue;
|
|
98
98
|
let t12;
|
|
99
|
-
if ($[21] !== allowClear || $[22] !== allowHalf || $[23] !== cleared || $[24] !== currentValue || $[25] !==
|
|
99
|
+
if ($[21] !== allowClear || $[22] !== allowHalf || $[23] !== cleared || $[24] !== currentValue || $[25] !== disabled || $[26] !== onChange || $[27] !== readOnly || $[28] !== setInnerValue) {
|
|
100
100
|
t12 = (t, index, percent) => {
|
|
101
|
-
if (readOnly) return;
|
|
101
|
+
if (disabled || readOnly) return;
|
|
102
102
|
if (t === "M") {
|
|
103
103
|
if (cleared) return;
|
|
104
104
|
if (allowHalf) setTempValue(index - (percent < .5 ? .5 : 0));
|
|
@@ -119,41 +119,42 @@ var Rate = (t0) => {
|
|
|
119
119
|
$[22] = allowHalf;
|
|
120
120
|
$[23] = cleared;
|
|
121
121
|
$[24] = currentValue;
|
|
122
|
-
$[25] =
|
|
123
|
-
$[26] =
|
|
124
|
-
$[27] =
|
|
125
|
-
$[28] =
|
|
126
|
-
|
|
122
|
+
$[25] = disabled;
|
|
123
|
+
$[26] = onChange;
|
|
124
|
+
$[27] = readOnly;
|
|
125
|
+
$[28] = setInnerValue;
|
|
126
|
+
$[29] = t12;
|
|
127
|
+
} else t12 = $[29];
|
|
127
128
|
const update = t12;
|
|
128
129
|
let t13;
|
|
129
|
-
if ($[
|
|
130
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
130
131
|
t13 = () => {
|
|
131
132
|
setTempValue(null);
|
|
132
133
|
setCleared(false);
|
|
133
134
|
};
|
|
134
|
-
$[
|
|
135
|
-
} else t13 = $[
|
|
135
|
+
$[30] = t13;
|
|
136
|
+
} else t13 = $[30];
|
|
136
137
|
const mouseLeave = t13;
|
|
137
|
-
const tpValue = tempValue !== null ? tempValue : currentValue;
|
|
138
|
+
const tpValue = !disabled && !readOnly && tempValue !== null ? tempValue : currentValue;
|
|
138
139
|
let actualCount = count;
|
|
139
140
|
if (isNaN(Number(count)) || count <= 0) actualCount = 5;
|
|
140
141
|
if (actualCount > 15) actualCount = 15;
|
|
141
142
|
let numSize;
|
|
142
143
|
if (typeof size === "string") {
|
|
143
144
|
let t14;
|
|
144
|
-
if ($[
|
|
145
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
145
146
|
t14 = {
|
|
146
147
|
small: 20,
|
|
147
148
|
medium: 24,
|
|
148
149
|
large: 32,
|
|
149
150
|
default: 24
|
|
150
151
|
};
|
|
151
|
-
$[
|
|
152
|
-
} else t14 = $[
|
|
152
|
+
$[31] = t14;
|
|
153
|
+
} else t14 = $[31];
|
|
153
154
|
numSize = t14[size] ?? 24;
|
|
154
155
|
} else numSize = size;
|
|
155
156
|
let stars;
|
|
156
|
-
if ($[
|
|
157
|
+
if ($[32] !== actualCount || $[33] !== allowHalf || $[34] !== character || $[35] !== disabled || $[36] !== icon || $[37] !== numSize || $[38] !== readOnly || $[39] !== strokeWidth || $[40] !== symbolReverseFill || $[41] !== tooltips || $[42] !== tpValue || $[43] !== update) {
|
|
157
158
|
stars = [];
|
|
158
159
|
for (let i = 1; i <= actualCount; i++) {
|
|
159
160
|
const mod = i - tpValue;
|
|
@@ -174,59 +175,59 @@ var Rate = (t0) => {
|
|
|
174
175
|
onUpdate: update
|
|
175
176
|
}, i));
|
|
176
177
|
}
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
} else stars = $[
|
|
178
|
+
$[32] = actualCount;
|
|
179
|
+
$[33] = allowHalf;
|
|
180
|
+
$[34] = character;
|
|
181
|
+
$[35] = disabled;
|
|
182
|
+
$[36] = icon;
|
|
183
|
+
$[37] = numSize;
|
|
184
|
+
$[38] = readOnly;
|
|
185
|
+
$[39] = strokeWidth;
|
|
186
|
+
$[40] = symbolReverseFill;
|
|
187
|
+
$[41] = tooltips;
|
|
188
|
+
$[42] = tpValue;
|
|
189
|
+
$[43] = update;
|
|
190
|
+
$[44] = stars;
|
|
191
|
+
} else stars = $[44];
|
|
191
192
|
const t14 = numSize ? `${numSize}px` : void 0;
|
|
192
193
|
const t15 = color || void 0;
|
|
193
194
|
let t16;
|
|
194
|
-
if ($[
|
|
195
|
+
if ($[45] !== style || $[46] !== t14 || $[47] !== t15) {
|
|
195
196
|
t16 = {
|
|
196
197
|
fontSize: t14,
|
|
197
198
|
color: t15,
|
|
198
199
|
...style
|
|
199
200
|
};
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
} else t16 = $[
|
|
201
|
+
$[45] = style;
|
|
202
|
+
$[46] = t14;
|
|
203
|
+
$[47] = t15;
|
|
204
|
+
$[48] = t16;
|
|
205
|
+
} else t16 = $[48];
|
|
205
206
|
const containerStyle = t16;
|
|
206
207
|
let t17;
|
|
207
|
-
if ($[
|
|
208
|
+
if ($[49] !== className || $[50] !== disabled || $[51] !== readOnly) {
|
|
208
209
|
t17 = clsx("k-rate", {
|
|
209
210
|
"k-rate-disabled": disabled,
|
|
210
211
|
"k-rate-readonly": readOnly
|
|
211
212
|
}, className);
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
} else t17 = $[
|
|
213
|
+
$[49] = className;
|
|
214
|
+
$[50] = disabled;
|
|
215
|
+
$[51] = readOnly;
|
|
216
|
+
$[52] = t17;
|
|
217
|
+
} else t17 = $[52];
|
|
217
218
|
const t18 = readOnly || void 0;
|
|
218
219
|
let t19;
|
|
219
|
-
if ($[
|
|
220
|
+
if ($[53] !== currentValue || $[54] !== showScore) {
|
|
220
221
|
t19 = showScore ? /* @__PURE__ */ jsx("span", {
|
|
221
222
|
className: "k-rate-score",
|
|
222
223
|
children: currentValue
|
|
223
224
|
}) : null;
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
} else t19 = $[
|
|
225
|
+
$[53] = currentValue;
|
|
226
|
+
$[54] = showScore;
|
|
227
|
+
$[55] = t19;
|
|
228
|
+
} else t19 = $[55];
|
|
228
229
|
let t20;
|
|
229
|
-
if ($[
|
|
230
|
+
if ($[56] !== containerStyle || $[57] !== rest || $[58] !== stars || $[59] !== t17 || $[60] !== t18 || $[61] !== t19) {
|
|
230
231
|
t20 = /* @__PURE__ */ jsxs("div", {
|
|
231
232
|
className: t17,
|
|
232
233
|
"aria-readonly": t18,
|
|
@@ -235,14 +236,14 @@ var Rate = (t0) => {
|
|
|
235
236
|
...rest,
|
|
236
237
|
children: [stars, t19]
|
|
237
238
|
});
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
} else t20 = $[
|
|
239
|
+
$[56] = containerStyle;
|
|
240
|
+
$[57] = rest;
|
|
241
|
+
$[58] = stars;
|
|
242
|
+
$[59] = t17;
|
|
243
|
+
$[60] = t18;
|
|
244
|
+
$[61] = t19;
|
|
245
|
+
$[62] = t20;
|
|
246
|
+
} else t20 = $[62];
|
|
246
247
|
return t20;
|
|
247
248
|
};
|
|
248
249
|
var rate_default = createFormFieldComponent(Rate, { inherit: ["size", "disabled"] });
|
package/es/rate/star.js
CHANGED
package/es/result/index.js
CHANGED
package/es/ripple/index.js
CHANGED
package/es/ripple/types.js
CHANGED
package/es/row-col/col.js
CHANGED
package/es/row-col/row.js
CHANGED
package/es/segmented/index.js
CHANGED