三咲智子
ea812ae622
refactor(components): refactor button ( #5933 )
...
* refactor(components): refactor button
* refactor: rename
* test: apply jsx
* feat: expose
* test: fix
2022-02-12 18:37:16 +08:00
三咲智子
6503e55277
refactor(utils): migrate utils ( #5949 )
...
* refactor(utils-v2): migrate utils
* refactor(utils-v2): migrate utils
* refactor(utils-v2): migrate utils
* refactor(utils): remove
* refactor(utils): rename
* refactor(utils): move EVENT_CODE to constants
* refactor: remove generic
2022-02-11 11:03:15 +08:00
三咲智子
f3e9e53f3d
fix(hooks): namespace.is
default state ( #5941 )
2022-02-11 09:09:21 +08:00
三咲智子
c1e5d724d8
refactor(utils-v2): refactor utils ( #5699 )
2022-02-09 16:59:08 +08:00
jeremywu
dbb00ef4b6
fix(components): [el-popper] append to body compatability ( #5755 )
...
* fix(components): [el-popper] append to body compatability
- Add a new hook for deprecation warning
- Add deprecation warnings for previous used `append-to-body` API
- Add test for the API.
* Address PR comments
* Update documentations for deprecated
* Fix formatting issue
2022-02-04 14:59:58 +08:00
iamkun
9929c0fba4
feat: support custom namespace ( #5377 )
2022-01-15 18:12:48 +08:00
三咲智子
81e6c377ba
fix(hooks): provide root locale ( #5218 )
...
* fix: provide root locale
* refactor(locale): refactor locale
* fix: tests
* revert: play
2022-01-08 19:36:13 +08:00
三咲智子
4335b01d6c
refactor(utils)!: refactor global config ( #4793 )
...
* refactor(utils)!: remove global config
* refactor(utils): named export PopupManager
* fix tests
2021-12-30 19:31:35 +08:00
Herrington Darkholme
d03d8cc20a
fix(components): change size mini to small ( #4947 )
2021-12-26 15:08:39 +08:00
Herrington Darkholme
b431838d60
fix(core): fix unit testing warning ( #4948 )
2021-12-26 15:08:04 +08:00
云游君
4560adfdf8
refactor(style): adjust component size to large/default/small ( #4491 )
...
* refactor(style): adjust component size to large/default/small
* refactor(components): avatar size & use flex instead of block
* refactor(components): adjust check button size
* refactor(components): adjust tag size
* refactor(components): adjust size doc
* fix(components): datetime-picker demo style width
* refactor(components): color-picker size & block to flex
* refactor(components): adjust slider input size
* refactor(components): adjust radio input size for demo
* refactor(components): adjust select size & docs
* refactor(components): adjust form radio size & docs
* refactor(components): add windicss for docs
* refactor(components): adjust skeleton avatar size to css var
* refactor(components): simplify typography size demo
* refactor(components): adjust dropdown size & demo
* refactor(components): adjust descriptions size
* fix(components): datetime-picker showcase class pollute global button
* chore(ci): upgrade docs dependencies to fix ci
* fix(ci): add highlight because vitepress not export it
* fix(ci): disable line for no-console
* fix(ci): remove mini to fix test
* fix(style): code font size
* fix(style): button span flex style
* fix(style): button padding horizontal default 15px
* refactor(components): adjust tag padding size & demo
* refactor(components): adjust form line-height for input
* refactor(components): adjust dropdown menu size & button padding
* fix(style): picker separator block to flex center
* fix: dropdown button span items-center
* style: adjust input-with-icon & size demo & fix input vitepress load
* chore: upgrade dependencies
* chore: upgrade dependencies
* ci: fix website build
* ci: regenerate pnpm-lock.yaml
* ci: use dev pnpm-lock
* ci: update pnpm-lock.yaml
2021-12-12 17:54:21 +08:00
三咲智子
b153aaa7a5
fix(hooks): return key name if not defined ( #4664 )
2021-12-04 23:40:06 +08:00
三咲智子
bbd16a08e9
refactor(hooks): refactor hooks ( #4253 )
...
* refactor(hooks): remove use-css-var
* refactor(hooks): remove use-events
* refactor(hooks): remove use-migrating
* refactor(hooks): remove use-transition
* refactor(hooks): named export useAttrs
* refactor(hooks): named export useFocus
* refactor(hooks): refactor useFormItem
* refactor(hooks): refactor useGlobalConfig
* refactor(hooks): refactor useLocale
* refactor(hooks): refactor useLockscreen
* refactor(hooks): refactor useModal
* refactor(hooks): refactor useModelToggle
* refactor(hooks): refactor usePreventGlobal
* refactor(hooks): refactor useRestoreActive
* refactor(hooks): refactor useTeleport
* refactor(hooks): refactor useThrottleRender
* refactor(hooks): refactor useTimeout
* refactor(hooks): refactor useTransitionFallthrogh
2021-11-29 15:58:44 +08:00
C.Y.Kun
0832a55f89
refactor(components): refactor button ( #4499 )
2021-11-23 00:10:54 +08:00
云游君
e68b6c05d7
refactor(style): rename to text-color bg-color ( #4468 )
...
* refactor(style): rename -font to -text-color & -background to -bg-color
* refactor(style): rename bg-color text-color
* refactor(style): rename 'color' to 'text-color'
2021-11-22 11:19:44 +08:00
三咲智子
0636e1e240
style: add import and stricter lint ( #3440 )
...
* style: add import lint
* chore: apply eslint rules
* chore: add stricter lint
* chore: lint all files
* auto fix
* manually fix
* restore build-indices.ts
2021-09-17 15:27:31 +08:00
jeremywu
19bc41f965
feat(hooks): extracting size injection for form items ( #3383 )
...
* feat(hooks): extracting size injection for form items
- Extract common code for form items
- Apply extracted code for el-button
* - Address import order
* Update packages/hooks/use-form-item/index.ts
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
* - Fix type annotation for fallbacks
* - Use MaybeRef to mark type of local fallbacks
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2021-09-13 23:14:48 +08:00
三咲智子
55348b30b6
style: use prettier ( #3228 )
...
* style: use prettier
* style: just prettier format, no code changes
* style: eslint fix
object-shorthand, prefer-const
* style: fix no-void
* style: no-console
2021-09-04 19:29:28 +08:00
jeremywu
b0f4fc5f23
refactor: update package path and bundle folder ( #3016 )
2021-08-24 13:36:48 +08:00
jeremywu
c42f905c10
refactor: i18n implementation ( #2670 )
2021-07-26 00:24:30 +08:00
jeremywu
c8d65bf43d
feat(locale): locale-provider ( #2662 )
...
- Add a component for providing configs
- Add `use-locale` hooks into hooks for composable usage
- Add `use-locale` for `config-provider` to allow user to provide locale config via `react-like` API
- Add test cases against these new features
2021-07-25 15:26:00 +08:00
hangzou
65924dd40c
feat: new hook: useCssVar
for inject custom css vars ( #2547 )
...
* feat: new hook: `usecssvars` for inject custom css vars
* perf: optimize usecssvar logic
* test: test css var
2021-07-20 15:26:17 +08:00
jeremywu
425567ec3b
refactor(hooks): refactor transition ( #2556 )
...
* refactor(hooks): refactor transition
- Introduce new hook named useTransition
- Update transition.scss with css vars
* - Align variable name.
* - Update transitions to cssvars
* - Address PR comments
2021-07-18 20:08:58 +08:00
jeremywu
6b4c04fd0a
feat(hooks): add use-timeout hook ( #2439 )
...
* feat(hooks): add use-timeout hook
- Add use timeout hook for register timeout callbacks
- Add test cases against add-timeout
* resolve linter issue
2021-07-06 07:49:49 +08:00
JeremyWuuuuu
b66044db84
Finish unfinished test case
2021-07-05 08:50:36 +08:00
JeremyWuuuuu
5f8b25bc31
feat(hooks): add use-model-toggle hook
...
- Add use model hook to the hooks for toggleable model common logic
2021-07-05 08:50:36 +08:00
jeremywu
913aaafabb
feat(hooks): add use-teleport hook ( #2421 )
...
* feat(hooks) add use-teleport hook
- Add teleport hook for teleported components
- Add teleport hooks hepler methods
- Add coresponding testing cases
* - add use teleport to the exporting entry
2021-07-03 19:04:03 +08:00
jeremywu
184af0b56f
fix(hooks): fix use-lock-screen hook ( #1651 )
...
- Fix when unmounting `use-lock-screen` could cleanup the side effects
2021-03-16 21:40:45 +08:00
jeremywu
30f1947c47
fix(overlay): Fix overlay event triggering issue ( #1235 )
2021-01-14 17:01:37 +08:00
Simona
536c43a571
fix(input): non-emit events such as keyup not work ( #866 )
...
* fix(input): non-emit events such as keyup not work
fix #837
* fix: remove debug code
* test(input): add test case
2020-12-07 13:21:23 +08:00
bastarder
e4bb9daf4f
fix(select): Fix select.focus is undefined bug ( #862 )
...
* fix(select): Fix select.focus is undefined bug
* fix(select): Add hook test
Co-authored-by: bastarder <jie.qian@blockheaders.com>
2020-12-07 11:29:08 +08:00
Simona
a2ad745293
refactor: optimize useAttrs signature ( #864 )
2020-12-07 10:57:48 +08:00
Simona
e1add47603
feat(hooks): add useAttrs hook ( #317 )
...
* feat(hooks): add useAttrs hook
* feat(hooks): undo binding class and style automatically
* test: remove unused import statement
2020-09-19 20:44:07 +08:00
jeremywu
ef92b6c11c
### feat: add dialog ( #197 )
...
* Add overlay component; Dialog component almost done
* feat(dialog): add use-lockscreen
* feat(dialog): coding completed awaiting tests
* feat(dialog): finish writing test cases
* fix test failures
* Address PR comments
* fallback some changes
2020-09-09 21:18:08 +08:00