@coze-arch/cli 0.0.10-alpha.11b7ea → 0.0.10-alpha.954690
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/lib/__templates__/expo/AGENTS.md +3 -3
- package/lib/__templates__/expo/README.md +3 -3
- package/lib/__templates__/expo/client/components/Provider.tsx +1 -4
- package/lib/__templates__/expo/client/components/Screen.tsx +1 -4
- package/lib/__templates__/expo/client/eslint.config.mjs +0 -2
- package/lib/__templates__/expo/client/global.css +0 -1
- package/lib/__templates__/expo/client/package.json +1 -4
- package/lib/__templates__/expo/package.json +1 -1
- package/lib/__templates__/expo/pnpm-lock.yaml +0 -68
- package/lib/__templates__/nextjs/AGENTS.md +6 -2
- package/lib/__templates__/nextjs/eslint.config.mjs +9 -0
- package/lib/__templates__/taro/project.config.json +1 -1
- package/lib/cli.js +4 -15
- package/package.json +1 -1
- package/lib/__templates__/expo/client/heroui/components/accordion/accordion.animation.ts +0 -178
- package/lib/__templates__/expo/client/heroui/components/accordion/accordion.constants.ts +0 -62
- package/lib/__templates__/expo/client/heroui/components/accordion/accordion.md +0 -437
- package/lib/__templates__/expo/client/heroui/components/accordion/accordion.styles.ts +0 -95
- package/lib/__templates__/expo/client/heroui/components/accordion/accordion.tsx +0 -340
- package/lib/__templates__/expo/client/heroui/components/accordion/accordion.types.ts +0 -267
- package/lib/__templates__/expo/client/heroui/components/accordion/index.ts +0 -17
- package/lib/__templates__/expo/client/heroui/components/alert/alert.constants.ts +0 -13
- package/lib/__templates__/expo/client/heroui/components/alert/alert.hooks.ts +0 -28
- package/lib/__templates__/expo/client/heroui/components/alert/alert.md +0 -263
- package/lib/__templates__/expo/client/heroui/components/alert/alert.styles.ts +0 -65
- package/lib/__templates__/expo/client/heroui/components/alert/alert.tsx +0 -181
- package/lib/__templates__/expo/client/heroui/components/alert/alert.types.ts +0 -99
- package/lib/__templates__/expo/client/heroui/components/alert/alert.utils.tsx +0 -25
- package/lib/__templates__/expo/client/heroui/components/alert/default-icon.tsx +0 -28
- package/lib/__templates__/expo/client/heroui/components/alert/index.ts +0 -15
- package/lib/__templates__/expo/client/heroui/components/alert/success-icon.tsx +0 -28
- package/lib/__templates__/expo/client/heroui/components/alert/warning-icon.tsx +0 -28
- package/lib/__templates__/expo/client/heroui/components/avatar/avatar.animation.ts +0 -123
- package/lib/__templates__/expo/client/heroui/components/avatar/avatar.constants.ts +0 -19
- package/lib/__templates__/expo/client/heroui/components/avatar/avatar.context.ts +0 -11
- package/lib/__templates__/expo/client/heroui/components/avatar/avatar.md +0 -386
- package/lib/__templates__/expo/client/heroui/components/avatar/avatar.styles.ts +0 -145
- package/lib/__templates__/expo/client/heroui/components/avatar/avatar.tsx +0 -307
- package/lib/__templates__/expo/client/heroui/components/avatar/avatar.types.ts +0 -239
- package/lib/__templates__/expo/client/heroui/components/avatar/index.ts +0 -13
- package/lib/__templates__/expo/client/heroui/components/avatar/person-icon.tsx +0 -23
- package/lib/__templates__/expo/client/heroui/components/bottom-sheet/bottom-sheet.animation.ts +0 -42
- package/lib/__templates__/expo/client/heroui/components/bottom-sheet/bottom-sheet.constants.ts +0 -13
- package/lib/__templates__/expo/client/heroui/components/bottom-sheet/bottom-sheet.md +0 -349
- package/lib/__templates__/expo/client/heroui/components/bottom-sheet/bottom-sheet.styles.ts +0 -66
- package/lib/__templates__/expo/client/heroui/components/bottom-sheet/bottom-sheet.tsx +0 -351
- package/lib/__templates__/expo/client/heroui/components/bottom-sheet/bottom-sheet.types.ts +0 -150
- package/lib/__templates__/expo/client/heroui/components/bottom-sheet/index.ts +0 -16
- package/lib/__templates__/expo/client/heroui/components/button/button.constants.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/button/button.md +0 -381
- package/lib/__templates__/expo/client/heroui/components/button/button.styles.ts +0 -89
- package/lib/__templates__/expo/client/heroui/components/button/button.tsx +0 -284
- package/lib/__templates__/expo/client/heroui/components/button/button.types.ts +0 -175
- package/lib/__templates__/expo/client/heroui/components/button/button.utils.ts +0 -34
- package/lib/__templates__/expo/client/heroui/components/button/index.ts +0 -9
- package/lib/__templates__/expo/client/heroui/components/card/card.constants.ts +0 -11
- package/lib/__templates__/expo/client/heroui/components/card/card.md +0 -186
- package/lib/__templates__/expo/client/heroui/components/card/card.styles.ts +0 -35
- package/lib/__templates__/expo/client/heroui/components/card/card.tsx +0 -153
- package/lib/__templates__/expo/client/heroui/components/card/card.types.ts +0 -77
- package/lib/__templates__/expo/client/heroui/components/card/index.ts +0 -10
- package/lib/__templates__/expo/client/heroui/components/checkbox/checkbox.animation.ts +0 -202
- package/lib/__templates__/expo/client/heroui/components/checkbox/checkbox.constants.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/checkbox/checkbox.md +0 -311
- package/lib/__templates__/expo/client/heroui/components/checkbox/checkbox.styles.ts +0 -105
- package/lib/__templates__/expo/client/heroui/components/checkbox/checkbox.tsx +0 -251
- package/lib/__templates__/expo/client/heroui/components/checkbox/checkbox.types.ts +0 -216
- package/lib/__templates__/expo/client/heroui/components/checkbox/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/chip/chip.animation.ts +0 -18
- package/lib/__templates__/expo/client/heroui/components/chip/chip.constants.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/chip/chip.md +0 -190
- package/lib/__templates__/expo/client/heroui/components/chip/chip.styles.ts +0 -234
- package/lib/__templates__/expo/client/heroui/components/chip/chip.tsx +0 -125
- package/lib/__templates__/expo/client/heroui/components/chip/chip.types.ts +0 -69
- package/lib/__templates__/expo/client/heroui/components/chip/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/close-button/close-button.constants.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/close-button/close-button.md +0 -109
- package/lib/__templates__/expo/client/heroui/components/close-button/close-button.styles.ts +0 -13
- package/lib/__templates__/expo/client/heroui/components/close-button/close-button.tsx +0 -57
- package/lib/__templates__/expo/client/heroui/components/close-button/close-button.types.ts +0 -30
- package/lib/__templates__/expo/client/heroui/components/close-button/index.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/control-field/control-field.animation.ts +0 -18
- package/lib/__templates__/expo/client/heroui/components/control-field/control-field.constants.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/control-field/control-field.context.ts +0 -14
- package/lib/__templates__/expo/client/heroui/components/control-field/control-field.md +0 -241
- package/lib/__templates__/expo/client/heroui/components/control-field/control-field.styles.ts +0 -15
- package/lib/__templates__/expo/client/heroui/components/control-field/control-field.tsx +0 -245
- package/lib/__templates__/expo/client/heroui/components/control-field/control-field.types.ts +0 -67
- package/lib/__templates__/expo/client/heroui/components/control-field/index.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/description/description.animation.ts +0 -53
- package/lib/__templates__/expo/client/heroui/components/description/description.constants.ts +0 -30
- package/lib/__templates__/expo/client/heroui/components/description/description.md +0 -129
- package/lib/__templates__/expo/client/heroui/components/description/description.styles.ts +0 -25
- package/lib/__templates__/expo/client/heroui/components/description/description.tsx +0 -81
- package/lib/__templates__/expo/client/heroui/components/description/description.types.ts +0 -77
- package/lib/__templates__/expo/client/heroui/components/description/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/dialog/dialog.animation.ts +0 -9
- package/lib/__templates__/expo/client/heroui/components/dialog/dialog.constants.ts +0 -13
- package/lib/__templates__/expo/client/heroui/components/dialog/dialog.md +0 -288
- package/lib/__templates__/expo/client/heroui/components/dialog/dialog.styles.ts +0 -77
- package/lib/__templates__/expo/client/heroui/components/dialog/dialog.tsx +0 -379
- package/lib/__templates__/expo/client/heroui/components/dialog/dialog.types.ts +0 -199
- package/lib/__templates__/expo/client/heroui/components/dialog/index.ts +0 -12
- package/lib/__templates__/expo/client/heroui/components/field-error/field-error.animation.ts +0 -50
- package/lib/__templates__/expo/client/heroui/components/field-error/field-error.constants.ts +0 -31
- package/lib/__templates__/expo/client/heroui/components/field-error/field-error.md +0 -204
- package/lib/__templates__/expo/client/heroui/components/field-error/field-error.styles.ts +0 -23
- package/lib/__templates__/expo/client/heroui/components/field-error/field-error.tsx +0 -91
- package/lib/__templates__/expo/client/heroui/components/field-error/field-error.types.ts +0 -79
- package/lib/__templates__/expo/client/heroui/components/field-error/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/input/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/input/input.constants.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/input/input.md +0 -193
- package/lib/__templates__/expo/client/heroui/components/input/input.styles.ts +0 -51
- package/lib/__templates__/expo/client/heroui/components/input/input.tsx +0 -96
- package/lib/__templates__/expo/client/heroui/components/input/input.types.ts +0 -44
- package/lib/__templates__/expo/client/heroui/components/input-group/index.ts +0 -9
- package/lib/__templates__/expo/client/heroui/components/input-group/input-group.animation.ts +0 -14
- package/lib/__templates__/expo/client/heroui/components/input-group/input-group.constants.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/input-group/input-group.md +0 -197
- package/lib/__templates__/expo/client/heroui/components/input-group/input-group.styles.ts +0 -31
- package/lib/__templates__/expo/client/heroui/components/input-group/input-group.tsx +0 -239
- package/lib/__templates__/expo/client/heroui/components/input-group/input-group.types.ts +0 -98
- package/lib/__templates__/expo/client/heroui/components/input-otp/index.ts +0 -9
- package/lib/__templates__/expo/client/heroui/components/input-otp/input-otp.animation.ts +0 -199
- package/lib/__templates__/expo/client/heroui/components/input-otp/input-otp.constants.ts +0 -12
- package/lib/__templates__/expo/client/heroui/components/input-otp/input-otp.md +0 -376
- package/lib/__templates__/expo/client/heroui/components/input-otp/input-otp.styles.ts +0 -68
- package/lib/__templates__/expo/client/heroui/components/input-otp/input-otp.tsx +0 -414
- package/lib/__templates__/expo/client/heroui/components/input-otp/input-otp.types.ts +0 -275
- package/lib/__templates__/expo/client/heroui/components/label/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/label/label.animation.ts +0 -18
- package/lib/__templates__/expo/client/heroui/components/label/label.constants.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/label/label.md +0 -187
- package/lib/__templates__/expo/client/heroui/components/label/label.styles.ts +0 -44
- package/lib/__templates__/expo/client/heroui/components/label/label.tsx +0 -172
- package/lib/__templates__/expo/client/heroui/components/label/label.types.ts +0 -86
- package/lib/__templates__/expo/client/heroui/components/list-group/index.ts +0 -17
- package/lib/__templates__/expo/client/heroui/components/list-group/list-group.constants.ts +0 -17
- package/lib/__templates__/expo/client/heroui/components/list-group/list-group.md +0 -387
- package/lib/__templates__/expo/client/heroui/components/list-group/list-group.styles.ts +0 -40
- package/lib/__templates__/expo/client/heroui/components/list-group/list-group.tsx +0 -206
- package/lib/__templates__/expo/client/heroui/components/list-group/list-group.types.ts +0 -132
- package/lib/__templates__/expo/client/heroui/components/menu/index.ts +0 -38
- package/lib/__templates__/expo/client/heroui/components/menu/menu.animation.ts +0 -121
- package/lib/__templates__/expo/client/heroui/components/menu/menu.constants.ts +0 -37
- package/lib/__templates__/expo/client/heroui/components/menu/menu.md +0 -620
- package/lib/__templates__/expo/client/heroui/components/menu/menu.styles.ts +0 -107
- package/lib/__templates__/expo/client/heroui/components/menu/menu.tsx +0 -664
- package/lib/__templates__/expo/client/heroui/components/menu/menu.types.ts +0 -394
- package/lib/__templates__/expo/client/heroui/components/popover/arrow-svg.tsx +0 -180
- package/lib/__templates__/expo/client/heroui/components/popover/index.ts +0 -18
- package/lib/__templates__/expo/client/heroui/components/popover/popover.animation.ts +0 -9
- package/lib/__templates__/expo/client/heroui/components/popover/popover.constants.ts +0 -34
- package/lib/__templates__/expo/client/heroui/components/popover/popover.md +0 -508
- package/lib/__templates__/expo/client/heroui/components/popover/popover.styles.ts +0 -98
- package/lib/__templates__/expo/client/heroui/components/popover/popover.tsx +0 -624
- package/lib/__templates__/expo/client/heroui/components/popover/popover.types.ts +0 -290
- package/lib/__templates__/expo/client/heroui/components/pressable-feedback/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/pressable-feedback/pressable-feedback.animation.ts +0 -450
- package/lib/__templates__/expo/client/heroui/components/pressable-feedback/pressable-feedback.constants.ts +0 -12
- package/lib/__templates__/expo/client/heroui/components/pressable-feedback/pressable-feedback.md +0 -328
- package/lib/__templates__/expo/client/heroui/components/pressable-feedback/pressable-feedback.styles.ts +0 -84
- package/lib/__templates__/expo/client/heroui/components/pressable-feedback/pressable-feedback.tsx +0 -330
- package/lib/__templates__/expo/client/heroui/components/pressable-feedback/pressable-feedback.types.ts +0 -386
- package/lib/__templates__/expo/client/heroui/components/radio/index.ts +0 -9
- package/lib/__templates__/expo/client/heroui/components/radio/radio.animation.ts +0 -92
- package/lib/__templates__/expo/client/heroui/components/radio/radio.constants.ts +0 -11
- package/lib/__templates__/expo/client/heroui/components/radio/radio.md +0 -339
- package/lib/__templates__/expo/client/heroui/components/radio/radio.styles.ts +0 -80
- package/lib/__templates__/expo/client/heroui/components/radio/radio.tsx +0 -217
- package/lib/__templates__/expo/client/heroui/components/radio/radio.types.ts +0 -106
- package/lib/__templates__/expo/client/heroui/components/radio-group/index.ts +0 -9
- package/lib/__templates__/expo/client/heroui/components/radio-group/radio-group.animation.ts +0 -20
- package/lib/__templates__/expo/client/heroui/components/radio-group/radio-group.constants.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/radio-group/radio-group.context.ts +0 -14
- package/lib/__templates__/expo/client/heroui/components/radio-group/radio-group.md +0 -273
- package/lib/__templates__/expo/client/heroui/components/radio-group/radio-group.styles.ts +0 -15
- package/lib/__templates__/expo/client/heroui/components/radio-group/radio-group.tsx +0 -220
- package/lib/__templates__/expo/client/heroui/components/radio-group/radio-group.types.ts +0 -64
- package/lib/__templates__/expo/client/heroui/components/scroll-shadow/index.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/scroll-shadow/scroll-shadow.animation.ts +0 -132
- package/lib/__templates__/expo/client/heroui/components/scroll-shadow/scroll-shadow.constants.ts +0 -21
- package/lib/__templates__/expo/client/heroui/components/scroll-shadow/scroll-shadow.md +0 -206
- package/lib/__templates__/expo/client/heroui/components/scroll-shadow/scroll-shadow.styles.ts +0 -52
- package/lib/__templates__/expo/client/heroui/components/scroll-shadow/scroll-shadow.tsx +0 -262
- package/lib/__templates__/expo/client/heroui/components/scroll-shadow/scroll-shadow.types.ts +0 -121
- package/lib/__templates__/expo/client/heroui/components/search-field/index.ts +0 -17
- package/lib/__templates__/expo/client/heroui/components/search-field/search-field.animation.ts +0 -18
- package/lib/__templates__/expo/client/heroui/components/search-field/search-field.constants.ts +0 -10
- package/lib/__templates__/expo/client/heroui/components/search-field/search-field.md +0 -231
- package/lib/__templates__/expo/client/heroui/components/search-field/search-field.styles.ts +0 -35
- package/lib/__templates__/expo/client/heroui/components/search-field/search-field.tsx +0 -253
- package/lib/__templates__/expo/client/heroui/components/search-field/search-field.types.ts +0 -160
- package/lib/__templates__/expo/client/heroui/components/search-field/search-icon.tsx +0 -37
- package/lib/__templates__/expo/client/heroui/components/select/index.ts +0 -28
- package/lib/__templates__/expo/client/heroui/components/select/select.animation.ts +0 -92
- package/lib/__templates__/expo/client/heroui/components/select/select.constants.ts +0 -53
- package/lib/__templates__/expo/client/heroui/components/select/select.md +0 -796
- package/lib/__templates__/expo/client/heroui/components/select/select.styles.ts +0 -149
- package/lib/__templates__/expo/client/heroui/components/select/select.tsx +0 -828
- package/lib/__templates__/expo/client/heroui/components/select/select.types.ts +0 -438
- package/lib/__templates__/expo/client/heroui/components/separator/index.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/separator/separator.constants.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/separator/separator.md +0 -106
- package/lib/__templates__/expo/client/heroui/components/separator/separator.styles.ts +0 -50
- package/lib/__templates__/expo/client/heroui/components/separator/separator.tsx +0 -62
- package/lib/__templates__/expo/client/heroui/components/separator/separator.types.ts +0 -40
- package/lib/__templates__/expo/client/heroui/components/skeleton/index.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/skeleton/linear-gradient.tsx +0 -45
- package/lib/__templates__/expo/client/heroui/components/skeleton/skeleton.animation.ts +0 -351
- package/lib/__templates__/expo/client/heroui/components/skeleton/skeleton.constants.ts +0 -39
- package/lib/__templates__/expo/client/heroui/components/skeleton/skeleton.md +0 -208
- package/lib/__templates__/expo/client/heroui/components/skeleton/skeleton.styles.ts +0 -49
- package/lib/__templates__/expo/client/heroui/components/skeleton/skeleton.tsx +0 -183
- package/lib/__templates__/expo/client/heroui/components/skeleton/skeleton.types.ts +0 -191
- package/lib/__templates__/expo/client/heroui/components/skeleton-group/index.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/skeleton-group/skeleton-group.constants.ts +0 -7
- package/lib/__templates__/expo/client/heroui/components/skeleton-group/skeleton-group.md +0 -247
- package/lib/__templates__/expo/client/heroui/components/skeleton-group/skeleton-group.styles.ts +0 -10
- package/lib/__templates__/expo/client/heroui/components/skeleton-group/skeleton-group.tsx +0 -94
- package/lib/__templates__/expo/client/heroui/components/skeleton-group/skeleton-group.types.ts +0 -28
- package/lib/__templates__/expo/client/heroui/components/slider/index.ts +0 -23
- package/lib/__templates__/expo/client/heroui/components/slider/slider.animation.ts +0 -87
- package/lib/__templates__/expo/client/heroui/components/slider/slider.constants.ts +0 -24
- package/lib/__templates__/expo/client/heroui/components/slider/slider.md +0 -348
- package/lib/__templates__/expo/client/heroui/components/slider/slider.styles.ts +0 -85
- package/lib/__templates__/expo/client/heroui/components/slider/slider.tsx +0 -413
- package/lib/__templates__/expo/client/heroui/components/slider/slider.types.ts +0 -120
- package/lib/__templates__/expo/client/heroui/components/spinner/index.ts +0 -10
- package/lib/__templates__/expo/client/heroui/components/spinner/spinner-icon.tsx +0 -49
- package/lib/__templates__/expo/client/heroui/components/spinner/spinner.animation.ts +0 -150
- package/lib/__templates__/expo/client/heroui/components/spinner/spinner.constants.ts +0 -36
- package/lib/__templates__/expo/client/heroui/components/spinner/spinner.md +0 -199
- package/lib/__templates__/expo/client/heroui/components/spinner/spinner.styles.ts +0 -44
- package/lib/__templates__/expo/client/heroui/components/spinner/spinner.tsx +0 -198
- package/lib/__templates__/expo/client/heroui/components/spinner/spinner.types.ts +0 -158
- package/lib/__templates__/expo/client/heroui/components/surface/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/surface/surface.animation.ts +0 -18
- package/lib/__templates__/expo/client/heroui/components/surface/surface.constants.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/surface/surface.md +0 -136
- package/lib/__templates__/expo/client/heroui/components/surface/surface.styles.ts +0 -28
- package/lib/__templates__/expo/client/heroui/components/surface/surface.tsx +0 -66
- package/lib/__templates__/expo/client/heroui/components/surface/surface.types.ts +0 -46
- package/lib/__templates__/expo/client/heroui/components/switch/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/switch/switch.animation.ts +0 -243
- package/lib/__templates__/expo/client/heroui/components/switch/switch.constants.ts +0 -26
- package/lib/__templates__/expo/client/heroui/components/switch/switch.md +0 -334
- package/lib/__templates__/expo/client/heroui/components/switch/switch.styles.ts +0 -83
- package/lib/__templates__/expo/client/heroui/components/switch/switch.tsx +0 -280
- package/lib/__templates__/expo/client/heroui/components/switch/switch.types.ts +0 -208
- package/lib/__templates__/expo/client/heroui/components/tabs/index.ts +0 -8
- package/lib/__templates__/expo/client/heroui/components/tabs/tabs.animation.ts +0 -246
- package/lib/__templates__/expo/client/heroui/components/tabs/tabs.constants.ts +0 -17
- package/lib/__templates__/expo/client/heroui/components/tabs/tabs.context.ts +0 -28
- package/lib/__templates__/expo/client/heroui/components/tabs/tabs.md +0 -565
- package/lib/__templates__/expo/client/heroui/components/tabs/tabs.styles.ts +0 -168
- package/lib/__templates__/expo/client/heroui/components/tabs/tabs.tsx +0 -445
- package/lib/__templates__/expo/client/heroui/components/tabs/tabs.types.ts +0 -341
- package/lib/__templates__/expo/client/heroui/components/tag-group/index.ts +0 -15
- package/lib/__templates__/expo/client/heroui/components/tag-group/tag-group.animation.ts +0 -17
- package/lib/__templates__/expo/client/heroui/components/tag-group/tag-group.constants.ts +0 -10
- package/lib/__templates__/expo/client/heroui/components/tag-group/tag-group.md +0 -404
- package/lib/__templates__/expo/client/heroui/components/tag-group/tag-group.styles.ts +0 -74
- package/lib/__templates__/expo/client/heroui/components/tag-group/tag-group.tsx +0 -325
- package/lib/__templates__/expo/client/heroui/components/tag-group/tag-group.types.ts +0 -125
- package/lib/__templates__/expo/client/heroui/components/text-area/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/text-area/text-area.constants.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/text-area/text-area.md +0 -133
- package/lib/__templates__/expo/client/heroui/components/text-area/text-area.styles.ts +0 -10
- package/lib/__templates__/expo/client/heroui/components/text-area/text-area.tsx +0 -44
- package/lib/__templates__/expo/client/heroui/components/text-area/text-area.types.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/text-field/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/components/text-field/text-field.animation.ts +0 -20
- package/lib/__templates__/expo/client/heroui/components/text-field/text-field.constants.ts +0 -6
- package/lib/__templates__/expo/client/heroui/components/text-field/text-field.md +0 -256
- package/lib/__templates__/expo/client/heroui/components/text-field/text-field.styles.ts +0 -10
- package/lib/__templates__/expo/client/heroui/components/text-field/text-field.tsx +0 -82
- package/lib/__templates__/expo/client/heroui/components/text-field/text-field.types.ts +0 -56
- package/lib/__templates__/expo/client/heroui/components/toast/index.ts +0 -4
- package/lib/__templates__/expo/client/heroui/components/toast/toast.animation.ts +0 -381
- package/lib/__templates__/expo/client/heroui/components/toast/toast.constants.ts +0 -10
- package/lib/__templates__/expo/client/heroui/components/toast/toast.hooks.ts +0 -73
- package/lib/__templates__/expo/client/heroui/components/toast/toast.md +0 -420
- package/lib/__templates__/expo/client/heroui/components/toast/toast.styles.ts +0 -89
- package/lib/__templates__/expo/client/heroui/components/toast/toast.tsx +0 -472
- package/lib/__templates__/expo/client/heroui/components/toast/toast.types.ts +0 -320
- package/lib/__templates__/expo/client/heroui/docs.md +0 -47
- package/lib/__templates__/expo/client/heroui/helpers/external/hooks/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/helpers/external/hooks/use-is-on-surface.ts +0 -8
- package/lib/__templates__/expo/client/heroui/helpers/external/hooks/use-theme-color.ts +0 -137
- package/lib/__templates__/expo/client/heroui/helpers/external/utils/cn.ts +0 -12
- package/lib/__templates__/expo/client/heroui/helpers/external/utils/color-kit/index.ts +0 -2395
- package/lib/__templates__/expo/client/heroui/helpers/external/utils/color-kit/types.ts +0 -212
- package/lib/__templates__/expo/client/heroui/helpers/external/utils/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/animated-check-icon.tsx +0 -78
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/bottom-sheet-content-container.tsx +0 -97
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/bottom-sheet-content.tsx +0 -158
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/check-icon.tsx +0 -28
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/chevron-down-icon.tsx +0 -28
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/chevron-right-icon.tsx +0 -29
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/close-icon.tsx +0 -29
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/full-window-overlay.tsx +0 -48
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/hero-text.tsx +0 -71
- package/lib/__templates__/expo/client/heroui/helpers/internal/components/index.ts +0 -9
- package/lib/__templates__/expo/client/heroui/helpers/internal/contexts/animation-settings-context.ts +0 -19
- package/lib/__templates__/expo/client/heroui/helpers/internal/contexts/bottom-sheet-is-dragging-context.ts +0 -11
- package/lib/__templates__/expo/client/heroui/helpers/internal/contexts/form-field-context.ts +0 -36
- package/lib/__templates__/expo/client/heroui/helpers/internal/contexts/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/index.ts +0 -14
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-augmented-ref.ts +0 -32
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-bottom-sheet-aware-handlers.ts +0 -94
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-bottom-sheet-gesture-handlers.ts +0 -52
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-combined-animation-disabled-state.ts +0 -49
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-controllable-state.ts +0 -124
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-dev-info.ts +0 -38
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-keyboard-status.ts +0 -22
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-popup-bottom-sheet-content-animation.ts +0 -67
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-popup-dialog-content-animation.ts +0 -296
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-popup-overlay-animation.ts +0 -91
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-popup-popover-content-animation.ts +0 -199
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-popup-root-animation.ts +0 -26
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-relative-position.ts +0 -353
- package/lib/__templates__/expo/client/heroui/helpers/internal/hooks/use-resolved-style-property.ts +0 -118
- package/lib/__templates__/expo/client/heroui/helpers/internal/types/animation.ts +0 -131
- package/lib/__templates__/expo/client/heroui/helpers/internal/types/bottom-sheet.ts +0 -99
- package/lib/__templates__/expo/client/heroui/helpers/internal/types/index.ts +0 -5
- package/lib/__templates__/expo/client/heroui/helpers/internal/types/misc.ts +0 -10
- package/lib/__templates__/expo/client/heroui/helpers/internal/types/primitives.ts +0 -146
- package/lib/__templates__/expo/client/heroui/helpers/internal/types/theme.ts +0 -18
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/animation.ts +0 -266
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/children-to-string.ts +0 -117
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/combine-styles.ts +0 -17
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/create-context.ts +0 -60
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/ease-gradient/create-interpolation.ts +0 -35
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/ease-gradient/index.ts +0 -97
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/get-element-by-display-name.ts +0 -15
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/get-element-with-default.ts +0 -17
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/has-prop.ts +0 -18
- package/lib/__templates__/expo/client/heroui/helpers/internal/utils/index.ts +0 -8
- package/lib/__templates__/expo/client/heroui/index.tsx +0 -51
- package/lib/__templates__/expo/client/heroui/primitives/README.md +0 -27
- package/lib/__templates__/expo/client/heroui/primitives/accordion/accordion.tsx +0 -270
- package/lib/__templates__/expo/client/heroui/primitives/accordion/accordion.types.ts +0 -117
- package/lib/__templates__/expo/client/heroui/primitives/accordion/accordion.utils.ts +0 -12
- package/lib/__templates__/expo/client/heroui/primitives/accordion/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/activity-indicator/activity-indicator.tsx +0 -50
- package/lib/__templates__/expo/client/heroui/primitives/activity-indicator/activity-indicator.types.ts +0 -24
- package/lib/__templates__/expo/client/heroui/primitives/activity-indicator/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/alert/alert.tsx +0 -124
- package/lib/__templates__/expo/client/heroui/primitives/alert/alert.types.ts +0 -87
- package/lib/__templates__/expo/client/heroui/primitives/alert/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/avatar/avatar.tsx +0 -171
- package/lib/__templates__/expo/client/heroui/primitives/avatar/avatar.types.ts +0 -62
- package/lib/__templates__/expo/client/heroui/primitives/avatar/avatar.utils.ts +0 -102
- package/lib/__templates__/expo/client/heroui/primitives/avatar/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/bottom-sheet/bottom-sheet.tsx +0 -235
- package/lib/__templates__/expo/client/heroui/primitives/bottom-sheet/bottom-sheet.types.ts +0 -127
- package/lib/__templates__/expo/client/heroui/primitives/bottom-sheet/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/checkbox/checkbox.tsx +0 -119
- package/lib/__templates__/expo/client/heroui/primitives/checkbox/checkbox.types.ts +0 -37
- package/lib/__templates__/expo/client/heroui/primitives/checkbox/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/dialog/dialog.tsx +0 -274
- package/lib/__templates__/expo/client/heroui/primitives/dialog/dialog.types.ts +0 -129
- package/lib/__templates__/expo/client/heroui/primitives/dialog/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/input-otp/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/primitives/input-otp/input-otp.tsx +0 -431
- package/lib/__templates__/expo/client/heroui/primitives/input-otp/input-otp.types.ts +0 -169
- package/lib/__templates__/expo/client/heroui/primitives/input-otp/input-otp.utils.ts +0 -31
- package/lib/__templates__/expo/client/heroui/primitives/label/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/label/label.tsx +0 -24
- package/lib/__templates__/expo/client/heroui/primitives/label/label.types.ts +0 -39
- package/lib/__templates__/expo/client/heroui/primitives/menu/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/menu/menu.tsx +0 -765
- package/lib/__templates__/expo/client/heroui/primitives/menu/menu.types.ts +0 -401
- package/lib/__templates__/expo/client/heroui/primitives/popover/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/popover/popover.tsx +0 -382
- package/lib/__templates__/expo/client/heroui/primitives/popover/popover.types.ts +0 -201
- package/lib/__templates__/expo/client/heroui/primitives/portal/index.ts +0 -1
- package/lib/__templates__/expo/client/heroui/primitives/portal/portal.tsx +0 -126
- package/lib/__templates__/expo/client/heroui/primitives/radio/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/radio/radio.tsx +0 -133
- package/lib/__templates__/expo/client/heroui/primitives/radio/radio.types.ts +0 -47
- package/lib/__templates__/expo/client/heroui/primitives/radio-group/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/radio-group/radio-group.tsx +0 -114
- package/lib/__templates__/expo/client/heroui/primitives/radio-group/radio-group.types.ts +0 -65
- package/lib/__templates__/expo/client/heroui/primitives/select/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/select/select.tsx +0 -705
- package/lib/__templates__/expo/client/heroui/primitives/select/select.types.ts +0 -409
- package/lib/__templates__/expo/client/heroui/primitives/select/select.utils.ts +0 -35
- package/lib/__templates__/expo/client/heroui/primitives/slider/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/primitives/slider/slider.tsx +0 -464
- package/lib/__templates__/expo/client/heroui/primitives/slider/slider.types.ts +0 -208
- package/lib/__templates__/expo/client/heroui/primitives/slider/slider.utils.ts +0 -93
- package/lib/__templates__/expo/client/heroui/primitives/slot/index.ts +0 -1
- package/lib/__templates__/expo/client/heroui/primitives/slot/slot.tsx +0 -122
- package/lib/__templates__/expo/client/heroui/primitives/slot/types.ts +0 -19
- package/lib/__templates__/expo/client/heroui/primitives/slot/utils.ts +0 -96
- package/lib/__templates__/expo/client/heroui/primitives/switch/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/switch/switch.tsx +0 -61
- package/lib/__templates__/expo/client/heroui/primitives/switch/switch.types.ts +0 -55
- package/lib/__templates__/expo/client/heroui/primitives/tabs/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/tabs/tabs.tsx +0 -202
- package/lib/__templates__/expo/client/heroui/primitives/tabs/tabs.types.ts +0 -77
- package/lib/__templates__/expo/client/heroui/primitives/tag-group/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/tag-group/tag-group.tsx +0 -324
- package/lib/__templates__/expo/client/heroui/primitives/tag-group/tag-group.types.ts +0 -119
- package/lib/__templates__/expo/client/heroui/primitives/toast/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/primitives/toast/toast.tsx +0 -138
- package/lib/__templates__/expo/client/heroui/primitives/toast/toast.types.ts +0 -86
- package/lib/__templates__/expo/client/heroui/providers/animation-settings/index.ts +0 -8
- package/lib/__templates__/expo/client/heroui/providers/animation-settings/provider.tsx +0 -47
- package/lib/__templates__/expo/client/heroui/providers/animation-settings/types.ts +0 -27
- package/lib/__templates__/expo/client/heroui/providers/hero-ui-native/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/providers/hero-ui-native/provider.tsx +0 -67
- package/lib/__templates__/expo/client/heroui/providers/hero-ui-native/types.ts +0 -114
- package/lib/__templates__/expo/client/heroui/providers/hero-ui-native-raw/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/providers/hero-ui-native-raw/provider.tsx +0 -50
- package/lib/__templates__/expo/client/heroui/providers/hero-ui-native-raw/types.ts +0 -39
- package/lib/__templates__/expo/client/heroui/providers/text-component/index.ts +0 -2
- package/lib/__templates__/expo/client/heroui/providers/text-component/provider.tsx +0 -9
- package/lib/__templates__/expo/client/heroui/providers/text-component/types.ts +0 -52
- package/lib/__templates__/expo/client/heroui/providers/toast/index.ts +0 -3
- package/lib/__templates__/expo/client/heroui/providers/toast/insets-container.tsx +0 -87
- package/lib/__templates__/expo/client/heroui/providers/toast/provider.tsx +0 -431
- package/lib/__templates__/expo/client/heroui/providers/toast/reducer.ts +0 -34
- package/lib/__templates__/expo/client/heroui/providers/toast/toast-config.context.ts +0 -27
- package/lib/__templates__/expo/client/heroui/providers/toast/toast-item-renderer.tsx +0 -45
- package/lib/__templates__/expo/client/heroui/providers/toast/types.ts +0 -373
- package/lib/__templates__/expo/client/heroui/styles/index.css +0 -3
- package/lib/__templates__/expo/client/heroui/styles/theme.css +0 -112
- package/lib/__templates__/expo/client/heroui/styles/utilities.css +0 -8
- package/lib/__templates__/expo/client/heroui/styles/variables.css +0 -146
|
@@ -54,13 +54,13 @@ Uniwind 官方文档:https://docs.uniwind.dev/llms.txt
|
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
56
|
# 对 client 和 server 目录同时进行校验
|
|
57
|
-
|
|
57
|
+
npm run lint
|
|
58
58
|
|
|
59
59
|
# 对 client 目录进行校验
|
|
60
|
-
|
|
60
|
+
npm run lint:client
|
|
61
61
|
|
|
62
62
|
# 对 server 目录进行校验
|
|
63
|
-
|
|
63
|
+
npm run lint:server
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
## 如何修改主题模式(跟随系统、固定暗色、固定亮色)
|
|
@@ -54,13 +54,13 @@ Uniwind 官方文档:https://docs.uniwind.dev/llms.txt
|
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
56
|
# 对 client 和 server 目录同时进行校验
|
|
57
|
-
|
|
57
|
+
npm run lint
|
|
58
58
|
|
|
59
59
|
# 对 client 目录进行校验
|
|
60
|
-
|
|
60
|
+
npm run lint:client
|
|
61
61
|
|
|
62
62
|
# 对 server 目录进行校验
|
|
63
|
-
|
|
63
|
+
npm run lint:server
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
## 如何修改主题模式(跟随系统、固定暗色、固定亮色)
|
|
@@ -2,15 +2,12 @@ import { AuthProvider } from '@/contexts/AuthContext';
|
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
4
4
|
import { WebOnlyColorSchemeUpdater } from './ColorSchemeUpdater';
|
|
5
|
-
import { HeroUINativeProvider } from '@/heroui';
|
|
6
5
|
|
|
7
6
|
function Provider({ children }: { children: ReactNode }) {
|
|
8
7
|
return <WebOnlyColorSchemeUpdater>
|
|
9
8
|
<AuthProvider>
|
|
10
9
|
<GestureHandlerRootView style={{ flex: 1 }}>
|
|
11
|
-
|
|
12
|
-
{children}
|
|
13
|
-
</HeroUINativeProvider>
|
|
10
|
+
{children}
|
|
14
11
|
</GestureHandlerRootView>
|
|
15
12
|
</AuthProvider>
|
|
16
13
|
</WebOnlyColorSchemeUpdater>
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
SectionList,
|
|
12
12
|
Modal,
|
|
13
13
|
} from 'react-native';
|
|
14
|
-
import { withUniwind } from 'uniwind';
|
|
15
14
|
import { useSafeAreaInsets, Edge } from 'react-native-safe-area-context';
|
|
16
15
|
import { StatusBar } from 'expo-status-bar';
|
|
17
16
|
// 引入 KeyboardAware 系列组件
|
|
@@ -141,7 +140,7 @@ const KeyboardAwareScrollable = ({
|
|
|
141
140
|
});
|
|
142
141
|
};
|
|
143
142
|
|
|
144
|
-
const
|
|
143
|
+
export const Screen = ({
|
|
145
144
|
children,
|
|
146
145
|
backgroundColor = 'var(--background)',
|
|
147
146
|
statusBarStyle = 'dark',
|
|
@@ -313,5 +312,3 @@ const styles = StyleSheet.create({
|
|
|
313
312
|
backgroundColor: 'transparent',
|
|
314
313
|
},
|
|
315
314
|
});
|
|
316
|
-
|
|
317
|
-
export const Screen = withUniwind(RawScreen);
|
|
@@ -84,8 +84,6 @@ export default [
|
|
|
84
84
|
'no-prototype-builtins': 'off',
|
|
85
85
|
'react/react-in-jsx-scope': 'off',
|
|
86
86
|
'react/jsx-uses-react': 'off',
|
|
87
|
-
'react/display-name': 'off',
|
|
88
|
-
'react/prop-types': 'off',
|
|
89
87
|
'fontawesome6/valid-name': 'error',
|
|
90
88
|
'reanimated/ban-mix-use': 'error',
|
|
91
89
|
'forbidEmoji/no-emoji': 'error',
|
|
@@ -62,10 +62,7 @@
|
|
|
62
62
|
"react-native-web": "~0.21.0",
|
|
63
63
|
"react-native-webview": "13.15.0",
|
|
64
64
|
"react-native-worklets": "0.5.1",
|
|
65
|
-
"zod": "^4.2.1"
|
|
66
|
-
"@gorhom/bottom-sheet": "^5.2.8",
|
|
67
|
-
"tailwind-merge": "^3.4.0",
|
|
68
|
-
"tailwind-variants": "^3.2.2"
|
|
65
|
+
"zod": "^4.2.1"
|
|
69
66
|
},
|
|
70
67
|
"devDependencies": {
|
|
71
68
|
"@babel/core": "^7.25.2",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"preinstall": "npx only-allow pnpm",
|
|
10
10
|
"lint:client": "npm run lint --prefix ./client",
|
|
11
11
|
"lint:server": "npm run lint --prefix ./server",
|
|
12
|
-
"lint
|
|
12
|
+
"lint": "npm run lint --prefix ./client; npm run lint --prefix ./server"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {},
|
|
15
15
|
"devDependencies": {},
|
|
@@ -24,9 +24,6 @@ importers:
|
|
|
24
24
|
'@expo/vector-icons':
|
|
25
25
|
specifier: ^15.0.3
|
|
26
26
|
version: 15.0.3(expo-font@14.0.11(expo@54.0.33(patch_hash=oibatoworxrl4npxv627d5aa3e)(@babel/core@7.28.6)(@expo/metro-runtime@6.1.2)(expo-router@6.0.23)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
27
|
-
'@gorhom/bottom-sheet':
|
|
28
|
-
specifier: ^5.2.8
|
|
29
|
-
version: 5.2.8(@types/react@19.1.17)(react-native-gesture-handler@2.28.0(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native-reanimated@4.1.6(@babel/core@7.28.6)(react-native-worklets@0.5.1(@babel/core@7.28.6)(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
30
27
|
'@react-native-async-storage/async-storage':
|
|
31
28
|
specifier: 2.2.0
|
|
32
29
|
version: 2.2.0(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))
|
|
@@ -162,12 +159,6 @@ importers:
|
|
|
162
159
|
react-native-worklets:
|
|
163
160
|
specifier: 0.5.1
|
|
164
161
|
version: 0.5.1(@babel/core@7.28.6)(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
165
|
-
tailwind-merge:
|
|
166
|
-
specifier: ^3.4.0
|
|
167
|
-
version: 3.5.0
|
|
168
|
-
tailwind-variants:
|
|
169
|
-
specifier: ^3.2.2
|
|
170
|
-
version: 3.2.2(tailwind-merge@3.5.0)(tailwindcss@4.2.2)
|
|
171
162
|
zod:
|
|
172
163
|
specifier: ^4.2.1
|
|
173
164
|
version: 4.3.6
|
|
@@ -1174,27 +1165,6 @@ packages:
|
|
|
1174
1165
|
resolution: {integrity: sha512-ReZxZ8pdnoI3tP/dNnJdnmAk7uLT4FjsKDGW7YeDdvdOMz2XCQSmSCM9IWlrXuWtMF9zeSB6WJtEhCQ41gQOfw==}
|
|
1175
1166
|
hasBin: true
|
|
1176
1167
|
|
|
1177
|
-
'@gorhom/bottom-sheet@5.2.8':
|
|
1178
|
-
resolution: {integrity: sha512-+N27SMpbBxXZQ/IA2nlEV6RGxL/qSFHKfdFKcygvW+HqPG5jVNb1OqehLQsGfBP+Up42i0gW5ppI+DhpB7UCzA==}
|
|
1179
|
-
peerDependencies:
|
|
1180
|
-
'@types/react': '*'
|
|
1181
|
-
'@types/react-native': '*'
|
|
1182
|
-
react: '*'
|
|
1183
|
-
react-native: '*'
|
|
1184
|
-
react-native-gesture-handler: '>=2.16.1'
|
|
1185
|
-
react-native-reanimated: '>=3.16.0 || >=4.0.0-'
|
|
1186
|
-
peerDependenciesMeta:
|
|
1187
|
-
'@types/react':
|
|
1188
|
-
optional: true
|
|
1189
|
-
'@types/react-native':
|
|
1190
|
-
optional: true
|
|
1191
|
-
|
|
1192
|
-
'@gorhom/portal@1.0.14':
|
|
1193
|
-
resolution: {integrity: sha512-MXyL4xvCjmgaORr/rtryDNFy3kU4qUbKlwtQqqsygd0xX3mhKjOLn6mQK8wfu0RkoE0pBE0nAasRoHua+/QZ7A==}
|
|
1194
|
-
peerDependencies:
|
|
1195
|
-
react: '*'
|
|
1196
|
-
react-native: '*'
|
|
1197
|
-
|
|
1198
1168
|
'@humanfs/core@0.19.1':
|
|
1199
1169
|
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
|
|
1200
1170
|
engines: {node: '>=18.18.0'}
|
|
@@ -5793,19 +5763,6 @@ packages:
|
|
|
5793
5763
|
symbol-tree@3.2.4:
|
|
5794
5764
|
resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
|
|
5795
5765
|
|
|
5796
|
-
tailwind-merge@3.5.0:
|
|
5797
|
-
resolution: {integrity: sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A==}
|
|
5798
|
-
|
|
5799
|
-
tailwind-variants@3.2.2:
|
|
5800
|
-
resolution: {integrity: sha512-Mi4kHeMTLvKlM98XPnK+7HoBPmf4gygdFmqQPaDivc3DpYS6aIY6KiG/PgThrGvii5YZJqRsPz0aPyhoFzmZgg==}
|
|
5801
|
-
engines: {node: '>=16.x', pnpm: '>=7.x'}
|
|
5802
|
-
peerDependencies:
|
|
5803
|
-
tailwind-merge: '>=3.0.0'
|
|
5804
|
-
tailwindcss: '*'
|
|
5805
|
-
peerDependenciesMeta:
|
|
5806
|
-
tailwind-merge:
|
|
5807
|
-
optional: true
|
|
5808
|
-
|
|
5809
5766
|
tailwindcss@4.2.1:
|
|
5810
5767
|
resolution: {integrity: sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw==}
|
|
5811
5768
|
|
|
@@ -7351,23 +7308,6 @@ snapshots:
|
|
|
7351
7308
|
find-up: 5.0.0
|
|
7352
7309
|
js-yaml: 4.1.1
|
|
7353
7310
|
|
|
7354
|
-
'@gorhom/bottom-sheet@5.2.8(@types/react@19.1.17)(react-native-gesture-handler@2.28.0(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native-reanimated@4.1.6(@babel/core@7.28.6)(react-native-worklets@0.5.1(@babel/core@7.28.6)(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)':
|
|
7355
|
-
dependencies:
|
|
7356
|
-
'@gorhom/portal': 1.0.14(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
7357
|
-
invariant: 2.2.4
|
|
7358
|
-
react: 19.1.0
|
|
7359
|
-
react-native: 0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0)
|
|
7360
|
-
react-native-gesture-handler: 2.28.0(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
7361
|
-
react-native-reanimated: 4.1.6(@babel/core@7.28.6)(react-native-worklets@0.5.1(@babel/core@7.28.6)(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
7362
|
-
optionalDependencies:
|
|
7363
|
-
'@types/react': 19.1.17
|
|
7364
|
-
|
|
7365
|
-
'@gorhom/portal@1.0.14(react-native@0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)':
|
|
7366
|
-
dependencies:
|
|
7367
|
-
nanoid: 3.3.11
|
|
7368
|
-
react: 19.1.0
|
|
7369
|
-
react-native: 0.81.5(@babel/core@7.28.6)(@types/react@19.1.17)(react@19.1.0)
|
|
7370
|
-
|
|
7371
7311
|
'@humanfs/core@0.19.1': {}
|
|
7372
7312
|
|
|
7373
7313
|
'@humanfs/node@0.16.7':
|
|
@@ -12707,14 +12647,6 @@ snapshots:
|
|
|
12707
12647
|
|
|
12708
12648
|
symbol-tree@3.2.4: {}
|
|
12709
12649
|
|
|
12710
|
-
tailwind-merge@3.5.0: {}
|
|
12711
|
-
|
|
12712
|
-
tailwind-variants@3.2.2(tailwind-merge@3.5.0)(tailwindcss@4.2.2):
|
|
12713
|
-
dependencies:
|
|
12714
|
-
tailwindcss: 4.2.2
|
|
12715
|
-
optionalDependencies:
|
|
12716
|
-
tailwind-merge: 3.5.0
|
|
12717
|
-
|
|
12718
12650
|
tailwindcss@4.2.1: {}
|
|
12719
12651
|
|
|
12720
12652
|
tailwindcss@4.2.2: {}
|
|
@@ -42,9 +42,13 @@
|
|
|
42
42
|
|
|
43
43
|
## 开发规范
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
- **Hydration 错误预防**:严禁在 JSX 渲染逻辑中直接使用 typeof window、Date.now()、Math.random() 等动态数据。必须使用 'use client' 并配合 useEffect + useState 确保动态内容仅在客户端挂载后渲染;同时严禁非法 HTML 嵌套(如 <p> 嵌套 <div>)。
|
|
45
|
+
### Hydration 问题防范
|
|
47
46
|
|
|
47
|
+
1. 严禁在 JSX 渲染逻辑中直接使用 typeof window、Date.now()、Math.random() 等动态数据。**必须使用 'use client' 并配合 useEffect + useState 确保动态内容仅在客户端挂载后渲染**;同时严禁非法 HTML 嵌套(如 <p> 嵌套 <div>)。
|
|
48
|
+
2. **禁止使用 head 标签**,优先使用 metadata,详见文档:https://nextjs.org/docs/app/api-reference/functions/generate-metadata
|
|
49
|
+
1. 三方 CSS、字体等资源在 `globals.css` 中顶部通过 `@import` 引入
|
|
50
|
+
2. preload, preconnect, dns-prefetch 通过 ReactDOM 的 preload、preconnect、dns-prefetch 方法引入
|
|
51
|
+
3. json-ld 可阅读 https://nextjs.org/docs/app/guides/json-ld
|
|
48
52
|
|
|
49
53
|
## UI 设计与组件规范 (UI & Styling Standards)
|
|
50
54
|
|
|
@@ -2,12 +2,21 @@ import nextTs from 'eslint-config-next/typescript';
|
|
|
2
2
|
import nextVitals from 'eslint-config-next/core-web-vitals';
|
|
3
3
|
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
4
4
|
|
|
5
|
+
const syntaxRules = [
|
|
6
|
+
{
|
|
7
|
+
selector: 'JSXOpeningElement[name.name="head"]',
|
|
8
|
+
message:
|
|
9
|
+
'禁止使用 head 标签,优先使用 metadata。三方 CSS、字体等资源可以在 globals.css 中顶部通过 @import 引入或者使用 next/font;preload, preconnect, dns-prefetch 通过 ReactDOM 的 preload、preconnect、dns-prefetch 方法引入;json-ld 可阅读 https://nextjs.org/docs/app/guides/json-ld',
|
|
10
|
+
},
|
|
11
|
+
];
|
|
12
|
+
|
|
5
13
|
const eslintConfig = defineConfig([
|
|
6
14
|
...nextVitals,
|
|
7
15
|
...nextTs,
|
|
8
16
|
{
|
|
9
17
|
rules: {
|
|
10
18
|
'react-hooks/set-state-in-effect': 'off',
|
|
19
|
+
'no-restricted-syntax': ['error', ...syntaxRules],
|
|
11
20
|
},
|
|
12
21
|
},
|
|
13
22
|
// Override default ignores of eslint-config-next.
|
package/lib/cli.js
CHANGED
|
@@ -2106,7 +2106,7 @@ const EventBuilder = {
|
|
|
2106
2106
|
};
|
|
2107
2107
|
|
|
2108
2108
|
var name = "@coze-arch/cli";
|
|
2109
|
-
var version = "0.0.10-alpha.
|
|
2109
|
+
var version = "0.0.10-alpha.954690";
|
|
2110
2110
|
var description = "coze coding devtools cli";
|
|
2111
2111
|
var license = "MIT";
|
|
2112
2112
|
var author = "fanwenjie.fe@bytedance.com";
|
|
@@ -4697,7 +4697,6 @@ function createStringifyContext(doc, options) {
|
|
|
4697
4697
|
nullStr: 'null',
|
|
4698
4698
|
simpleKeys: false,
|
|
4699
4699
|
singleQuote: null,
|
|
4700
|
-
trailingComma: false,
|
|
4701
4700
|
trueStr: 'true',
|
|
4702
4701
|
verifyAliasOrder: true
|
|
4703
4702
|
}, doc.schema.toStringOptions, options);
|
|
@@ -5204,22 +5203,12 @@ function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
|
5204
5203
|
if (comment)
|
|
5205
5204
|
reqNewline = true;
|
|
5206
5205
|
let str = stringify(item, itemCtx, () => (comment = null));
|
|
5207
|
-
|
|
5208
|
-
if (i < items.length - 1) {
|
|
5206
|
+
if (i < items.length - 1)
|
|
5209
5207
|
str += ',';
|
|
5210
|
-
}
|
|
5211
|
-
else if (ctx.options.trailingComma) {
|
|
5212
|
-
if (ctx.options.lineWidth > 0) {
|
|
5213
|
-
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) +
|
|
5214
|
-
(str.length + 2) >
|
|
5215
|
-
ctx.options.lineWidth);
|
|
5216
|
-
}
|
|
5217
|
-
if (reqNewline) {
|
|
5218
|
-
str += ',';
|
|
5219
|
-
}
|
|
5220
|
-
}
|
|
5221
5208
|
if (comment)
|
|
5222
5209
|
str += lineComment(str, itemIndent, commentString(comment));
|
|
5210
|
+
if (!reqNewline && (lines.length > linesAtValue || str.includes('\n')))
|
|
5211
|
+
reqNewline = true;
|
|
5223
5212
|
lines.push(str);
|
|
5224
5213
|
linesAtValue = lines.length;
|
|
5225
5214
|
}
|
package/package.json
CHANGED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interpolate,
|
|
4
|
-
useAnimatedStyle,
|
|
5
|
-
useSharedValue,
|
|
6
|
-
withSpring,
|
|
7
|
-
} from 'react-native-reanimated';
|
|
8
|
-
import { useAnimationSettings } from '../../helpers/internal/contexts';
|
|
9
|
-
import { useCombinedAnimationDisabledState } from '../../helpers/internal/hooks';
|
|
10
|
-
import {
|
|
11
|
-
createContext,
|
|
12
|
-
getAnimationState,
|
|
13
|
-
getAnimationValueMergedConfig,
|
|
14
|
-
getAnimationValueProperty,
|
|
15
|
-
getIsAnimationDisabledValue,
|
|
16
|
-
getRootAnimationState,
|
|
17
|
-
} from '../../helpers/internal/utils';
|
|
18
|
-
import {
|
|
19
|
-
ACCORDION_LAYOUT_TRANSITION,
|
|
20
|
-
DEFAULT_CONTENT_ENTERING,
|
|
21
|
-
DEFAULT_CONTENT_EXITING,
|
|
22
|
-
INDICATOR_SPRING_CONFIG,
|
|
23
|
-
} from './accordion.constants';
|
|
24
|
-
import type {
|
|
25
|
-
AccordionAnimationContextValue,
|
|
26
|
-
AccordionContentAnimation,
|
|
27
|
-
AccordionIndicatorAnimation,
|
|
28
|
-
AccordionRootAnimation,
|
|
29
|
-
} from './accordion.types';
|
|
30
|
-
|
|
31
|
-
const [AccordionAnimationProvider, useAccordionAnimation] =
|
|
32
|
-
createContext<AccordionAnimationContextValue>({
|
|
33
|
-
name: 'AccordionAnimationContext',
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export { AccordionAnimationProvider, useAccordionAnimation };
|
|
37
|
-
|
|
38
|
-
// --------------------------------------------------
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Animation hook for Accordion root component
|
|
42
|
-
* Handles layout transition configuration and provides context for child components
|
|
43
|
-
*/
|
|
44
|
-
export function useAccordionRootAnimation(options: {
|
|
45
|
-
animation: AccordionRootAnimation | undefined;
|
|
46
|
-
}) {
|
|
47
|
-
const { animation } = options;
|
|
48
|
-
|
|
49
|
-
const isAllAnimationsDisabled = useCombinedAnimationDisabledState(animation);
|
|
50
|
-
|
|
51
|
-
const { animationConfig, isAnimationDisabled } =
|
|
52
|
-
getRootAnimationState(animation);
|
|
53
|
-
|
|
54
|
-
const isAnimationDisabledValue = getIsAnimationDisabledValue({
|
|
55
|
-
isAnimationDisabled,
|
|
56
|
-
isAllAnimationsDisabled,
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
// Layout transition animation
|
|
60
|
-
const layoutTransitionValue = getAnimationValueProperty({
|
|
61
|
-
animationValue: animationConfig?.layout,
|
|
62
|
-
property: 'value',
|
|
63
|
-
defaultValue: ACCORDION_LAYOUT_TRANSITION,
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
return {
|
|
67
|
-
layoutTransition: isAnimationDisabledValue
|
|
68
|
-
? undefined
|
|
69
|
-
: layoutTransitionValue,
|
|
70
|
-
isAllAnimationsDisabled,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// --------------------------------------------------
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Animation hook for Accordion Indicator component
|
|
78
|
-
* Handles rotation animation for the chevron icon
|
|
79
|
-
*/
|
|
80
|
-
export function useAccordionIndicatorAnimation(options: {
|
|
81
|
-
animation: AccordionIndicatorAnimation | undefined;
|
|
82
|
-
isExpanded: boolean;
|
|
83
|
-
}) {
|
|
84
|
-
const { animation, isExpanded } = options;
|
|
85
|
-
|
|
86
|
-
// Read from global animation context (always available in compound parts)
|
|
87
|
-
const { isAllAnimationsDisabled } = useAnimationSettings();
|
|
88
|
-
|
|
89
|
-
const { animationConfig, isAnimationDisabled } = getAnimationState(animation);
|
|
90
|
-
|
|
91
|
-
const isAnimationDisabledValue = getIsAnimationDisabledValue({
|
|
92
|
-
isAnimationDisabled,
|
|
93
|
-
isAllAnimationsDisabled,
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
// Rotation animation values
|
|
97
|
-
const rotationValue = getAnimationValueProperty({
|
|
98
|
-
animationValue: animationConfig?.rotation,
|
|
99
|
-
property: 'value',
|
|
100
|
-
defaultValue: [0, -180] as [number, number],
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
const rotationSpringConfig = getAnimationValueMergedConfig({
|
|
104
|
-
animationValue: animationConfig?.rotation,
|
|
105
|
-
property: 'springConfig',
|
|
106
|
-
defaultValue: INDICATOR_SPRING_CONFIG,
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
const rotation = useSharedValue(0);
|
|
110
|
-
|
|
111
|
-
useEffect(() => {
|
|
112
|
-
if (isAnimationDisabledValue) {
|
|
113
|
-
rotation.set(isExpanded ? 1 : 0);
|
|
114
|
-
} else {
|
|
115
|
-
rotation.set(withSpring(isExpanded ? 1 : 0, rotationSpringConfig));
|
|
116
|
-
}
|
|
117
|
-
}, [isExpanded, isAnimationDisabledValue, rotation, rotationSpringConfig]);
|
|
118
|
-
|
|
119
|
-
const rContainerStyle = useAnimatedStyle(() => {
|
|
120
|
-
return {
|
|
121
|
-
transform: [
|
|
122
|
-
{
|
|
123
|
-
rotate:
|
|
124
|
-
interpolate(
|
|
125
|
-
rotation.get(),
|
|
126
|
-
[0, 1],
|
|
127
|
-
[rotationValue[0], rotationValue[1]]
|
|
128
|
-
) + 'deg',
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
};
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
return {
|
|
135
|
-
rContainerStyle,
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// --------------------------------------------------
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Animation hook for Accordion Content component
|
|
143
|
-
* Handles entering and exiting animations
|
|
144
|
-
*/
|
|
145
|
-
export function useAccordionContentAnimation(options: {
|
|
146
|
-
animation: AccordionContentAnimation | undefined;
|
|
147
|
-
}) {
|
|
148
|
-
const { animation } = options;
|
|
149
|
-
|
|
150
|
-
// Read from global animation context (always available in compound parts)
|
|
151
|
-
const { isAllAnimationsDisabled } = useAnimationSettings();
|
|
152
|
-
|
|
153
|
-
const { animationConfig, isAnimationDisabled } = getAnimationState(animation);
|
|
154
|
-
|
|
155
|
-
const isAnimationDisabledValue = getIsAnimationDisabledValue({
|
|
156
|
-
isAnimationDisabled,
|
|
157
|
-
isAllAnimationsDisabled,
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
// Entering animation
|
|
161
|
-
const enteringValue = getAnimationValueProperty({
|
|
162
|
-
animationValue: animationConfig?.entering,
|
|
163
|
-
property: 'value',
|
|
164
|
-
defaultValue: DEFAULT_CONTENT_ENTERING,
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
// Exiting animation
|
|
168
|
-
const exitingValue = getAnimationValueProperty({
|
|
169
|
-
animationValue: animationConfig?.exiting,
|
|
170
|
-
property: 'value',
|
|
171
|
-
defaultValue: DEFAULT_CONTENT_EXITING,
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
return {
|
|
175
|
-
entering: isAnimationDisabledValue ? undefined : enteringValue,
|
|
176
|
-
exiting: isAnimationDisabledValue ? undefined : exitingValue,
|
|
177
|
-
};
|
|
178
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Easing,
|
|
3
|
-
FadeIn,
|
|
4
|
-
FadeOut,
|
|
5
|
-
LinearTransition,
|
|
6
|
-
} from 'react-native-reanimated';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Display names for Accordion components
|
|
10
|
-
*/
|
|
11
|
-
export const DISPLAY_NAME = {
|
|
12
|
-
ROOT: 'HeroUINative.Accordion.Root',
|
|
13
|
-
ITEM: 'HeroUINative.Accordion.Item',
|
|
14
|
-
TRIGGER: 'HeroUINative.Accordion.Trigger',
|
|
15
|
-
INDICATOR: 'HeroUINative.Accordion.Indicator',
|
|
16
|
-
CONTENT: 'HeroUINative.Accordion.Content',
|
|
17
|
-
CHEVRON_DOWN_ICON: 'HeroUINative.Accordion.ChevronDownIcon',
|
|
18
|
-
} as const;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Default layout transition for accordion animations
|
|
22
|
-
*/
|
|
23
|
-
export const ACCORDION_LAYOUT_TRANSITION = LinearTransition.springify()
|
|
24
|
-
.damping(140)
|
|
25
|
-
.stiffness(1600)
|
|
26
|
-
.mass(4);
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Default icon size for the indicator
|
|
30
|
-
*/
|
|
31
|
-
export const DEFAULT_ICON_SIZE = 16;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Rotation values for indicator animation
|
|
35
|
-
*/
|
|
36
|
-
export const INDICATOR_ROTATION = {
|
|
37
|
-
COLLAPSED: '0deg',
|
|
38
|
-
EXPANDED: '180deg',
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Spring configuration for indicator animation
|
|
43
|
-
*/
|
|
44
|
-
export const INDICATOR_SPRING_CONFIG = {
|
|
45
|
-
damping: 140,
|
|
46
|
-
stiffness: 1000,
|
|
47
|
-
mass: 4,
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Default entering animation for accordion content
|
|
52
|
-
*/
|
|
53
|
-
export const DEFAULT_CONTENT_ENTERING = FadeIn.duration(200).easing(
|
|
54
|
-
Easing.out(Easing.ease)
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Default exiting animation for accordion content
|
|
59
|
-
*/
|
|
60
|
-
export const DEFAULT_CONTENT_EXITING = FadeOut.duration(200).easing(
|
|
61
|
-
Easing.in(Easing.ease)
|
|
62
|
-
);
|