Commit Graph

167 Commits

Author SHA1 Message Date
btea
105d79b0d9
refactor: extract isClient and isNumber isBoolean (#12504)
* refactor: extract isClient and isNumber isBoolean

* test: update test

* refactor: extract isClient to browser
2023-04-20 20:00:49 +08:00
Dave
8306138159
fix(hooks): [use-delayed-toggle] clear timer when call onClose (#12056)
* fix(hooks): [use-delayed-toggle] clear timer when call onClose

* test(hooks): [use-delayed-toggle] coverage 100%
2023-03-16 22:29:24 +08:00
Liu Bo
8b3250217e
fix(hooks): vm may be null (#12058) 2023-03-16 21:31:16 +08:00
btea
4390661bb9
fix(components): [loading] namespace config (#11956)
* fix(components): [loading] namespace config

* fix: use useGlobalComponentSettings
2023-03-10 14:55:17 +08:00
Dave
a99bc4fb49
fix(components): [popover | tooltip] keep autoClose prop (#11833)
* feat(hooks): [use-delayed-toggle] add autoClose option

* fix(components): [tooltip] keep autoClose prop
2023-03-10 14:48:12 +08:00
Xc
a67b52ccce
docs(components): [tooltip] (#11850)
* docs(components): [tooltip]
* Update popconfirm docs with new syntax.
* Remove tabindex and manual api

* docs(components): [tooltip]
* add Exposes

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]
2023-03-10 14:42:46 +08:00
Jeremy
3eda7fc603
fix(components): [overlay] namespace issue (#11881)
* Fix namespace issue on global components overlay.
* Closes #11877
2023-03-07 22:51:31 +08:00
Jeremy
c2710d97d0
fix(components): [global-config] (#11847)
* fix(components): [loading]

* Remove inappropriate way of using injection in directives.

* chore: rewrite implementation

* fix(components): [global-config]

* Fix global config injection in global components.

* chore: fix format

* chore: remove .only modifier

* chore: fix failing tests
2023-03-06 23:20:21 +08:00
Jeremy
4c27822ef0
fix(components): circular referencing issue (#11777)
* fix(components): circular referencing issue

* Move sizes related into hooks.
* Remove size definitions in forms only re-exports.

* chore: fix failing tests
2023-03-01 16:44:09 +08:00
Jeremy
a30ae9d103
refactor(project): removing packages/tokens (#11769)
* refactor(tokens): remove tokens

* Remove tokens/breadcrumb.

* refactor(tokens): remove tokens/button

* refactor(tokens): remove tokens/carousel

* refactor(tokens): removing tokens/checkbox

* refactor(tokens): removing tokens/collapse

* refactor(tokens): removing tokens/dialog

* refactor(tokens): removing tokens/pagination

* refactor(tokens): removing tokens/radio

* refactor(tokens): removing tokens/row

* refactor(tokens): removing tokens/scrollbar

* refactor(tokens): removing tokens/slider

* refactor(tokens): removing tokens/tabs

* refactor(tokens): removing tokens/upload

* refactor(tokens): removing tokens/popper

* refactor(tokens): removing tokens/tooltip

* refactor(tokens): removing tokens/tooltip-v2

* refactor(tokens): removing tokens/date-picker

* refactor(project): removing tokens/experimentals

* Remove tokens/experimentals
* Remove package/tokens
* Remove tokens related parts

* refactor(project): removing packages/tokens completely

* chore: update import statement
2023-03-01 13:59:21 +08:00
Jeremy
d58149f4bb
refactor(components): [config-provider] (#11749)
* refactor(components): [config-provider]

* Port useConfigProviders and tokens to components/.

* refactor(hooks): [global-config]

* Reimplement a few coupled hooks.
* Remove hooks/globa-config and tokens/&.
* Update import paths based on the changes.

* chore: fix a failing test case
2023-02-28 10:35:56 +08:00
Jeremy
11925c8231
refactor(tokens) - [form] (#11743)
* refactor(tokens): [form] - remove tokens/form

* Move content in tokens/form to components/form.
* Replace token imports in components/form.

* chore: remove form/tokens and replace imports

* refactor(components): [form/form-item]

* Move `useForm` related hooks to components/form
* Replace references to reduce circular dependencies.
2023-02-27 13:19:20 +08:00
acyza
1b634705c8
fix(components): [tooltip] display tooltip correctly (#11643)
* fix(components): [tooltip] display tooltip correctly

* Update packages/hooks/use-popper/index.ts

Co-authored-by: Jeremy <15975785+jw-foss@users.noreply.github.com>

---------

Co-authored-by: Jeremy <15975785+jw-foss@users.noreply.github.com>
2023-02-22 12:27:48 +00:00
Robert Wloch
1e3fdde6d8
fix(hooks): [use-lockscreen] prevent flaky unit tests (#11404) 2023-02-11 23:45:36 +08:00
Jeremy
e8bbdf974b
feat: integrate use popper (#11045)
* feat: integrate use popper

* Integrate popper with use popper hook.
* Reorganize code for better readabilities.

* fix: contentStyle typing

* fix: test failure

* fix: slider placement testing

* refactor: slider test case refactoring

* fix: virtual triggering

---------

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2023-01-31 11:58:52 +08:00
Jeremy
ec161eaef5
feat(hooks): [use-popper] (#10983)
* feat(hooks): [use-popper]

* Implement use-popper

* chore: code adjustment

* test: add test for use popper

* test: finish test for use popper

* fix: popper API

* chore: remove unused imports

* chore: refine code

* feat: export popper from hooks package

* chore: enhanced how to process default value

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-12-19 21:46:16 +08:00
qiang
b456125431
fix(components): [tooltip] SSR hydration error caused by random ID (#10541) 2022-11-21 14:10:52 +08:00
仿生狮子
15d75fa275
chore: remove duplicate code (#10223) 2022-10-25 11:01:30 +08:00
dopamine
a03cf125fd
fix(components): [carousel] improper active item (#8904)
* fix(components): [carousel] none of active item

closed #8891

* fix: ts error

* fix: guarantee items order when reusing carousel-item component

* style: code format

* fix: test fail

* chore: correct type

* fix: sorting failed in some cases

* better implementation

better implementation

* impove code accroding to review comment
2022-10-02 08:44:40 +08:00
zz
51a3c454ea
fix(hooks): [use-popper-container] fix namespace (#9655) 2022-09-06 14:51:05 +08:00
Xc
fda97e27dd
fix(hooks): [useLockscreen] close shake (#9610)
* fix(hooks): [useLockscreen] close shake

* fix(hooks): [useLockscreen] remove unused

* fix(hooks): [useLockscreen] unit test
2022-09-03 22:57:37 +08:00
zz
f0414c7822
perf(hooks): [use-namespace] simplify code (#9298) 2022-09-01 23:20:32 +08:00
zz
eea3e60385
fix(components): use namespace (#9299) 2022-08-13 14:43:00 +08:00
Xc
4cb16a4f7e
refactor(hooks): [use-lockscreen] change from padding to width (#9151)
* refactor(hooks): [use-lockscreen] change from padding to width
2022-08-12 13:14:58 +08:00
qiang
c28e1cfa42
fix(hooks): [use-namespace] exclude invalid CSS variables (#8905)
* fix(hooks): [use-namespace] exclude invalid CSS variables

* test(hooks): [use-namespace] add test
2022-07-28 22:01:22 +08:00
pupu
7a04a34b79
fix(hooks): [use-escape-keydown] fix memory leak (#8005) (#8060) 2022-07-27 14:09:23 +08:00
jarven
48d0edfe99
fix(hooks): [use-lockscreen] fix namespace (#8711) 2022-07-26 18:12:14 +08:00
Xc
ef22e5db62
feat(components): [tooltip] adjust controlled mode (#8762)
* feat(components): [tooltip] adjust controlled mode
2022-07-17 23:14:51 +08:00
zz
60fdcfe946
fix(hooks): [use-locale] fix type error (#8733) 2022-07-11 19:25:58 +09:00
zz
5399d7c882
fix(hooks): [use-attrs] fix type error (#8558)
* fix(hooks): [use-attrs] fix type error
2022-07-10 18:02:40 +08:00
zz
b50e21015c
fix(hooks): [use-floating] fix type error (#8727) 2022-07-09 18:15:53 +09:00
zz
58bbef942a
fix(hooks): [use-form-item] fix type error (#8726) 2022-07-09 17:49:07 +09:00
三咲智子
7097940f4a
refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
三咲智子
10cad1d072
refactor(components): [switch] deprecate value prop (#8335) 2022-06-18 13:48:02 +08:00
三咲智子
362c7f6b3c
refactor(utils): ep prop (#8018) 2022-06-01 08:00:27 +00:00
opengraphica
af732b124b
feat(components): [dropdown] a11y (#7946)
* feat(components): [dropdown] always use button trigger

* feat(components): [dropdown] a11y unit tests

* feat(components): [dropdown] pr comments
2022-05-30 11:51:25 +08:00
三咲智子
37e2bfaee4
fix(hooks): type error (#7941) 2022-05-30 09:26:14 +08:00
opengraphica
e1b88263e3
feat(components): [popper] focus trap and a11y (#7736)
* feat(components): [popper] fix focus traps

* feat(components): [popper] add focus trap tests

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-20 18:13:27 +08:00
btea
82030446c7
fix(hooks): use-form-item circular reference (#7793) 2022-05-20 15:27:21 +08:00
opengraphica
42ff59fc39
feat(components): [date-picker] work with modal focus trap; a11y controls and attributes (#7598)
* feat(components): [date-picker] a11y controls and attributes

* feat(components): [date-picker] keyboard controls for picker

* feat(components): [date-picker] unit test complete

* feat(components): [date-picker] remove immediate watch date
2022-05-10 21:51:17 +08:00
opengraphica
7173e402b7
feat(components): [form-item] auto attach labels to inputs (#7450)
* feat(components): [form-item] auto attach labels to inputs

* feat(components): [form-item] auto-attach up through select

* feat(components): [form-item] auto id complete for all inputs

* feat(components): [form-item] fix lint, remove unused usePopper hook

* feat(components): [form-item] PR comments
2022-05-05 22:04:32 +08:00
云游君
3d1b3d4a58
refactor(theme-chalk): scss css var namespace (#7344)
* refactor(theme-chalk): scss css var namespace

* fix(theme-chalk): compile getCssVar

* fix(theme-chalk): more --el namespace replace & getCssVarWithDefault

* fix(theme-chalk): use cssVarBlockName & cssVar rewrite button css vars

* fix(theme-chalk): replace empty svg fill color with ns

* chore: use cssVarName for --el-color-white

* chore: fix namespace reactive

* chore: use defaultNamespace
2022-04-26 17:19:09 +08:00
Serendipity96
9b23b1c9ec
feat(components): [input] add input formatter (#6876)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-23 22:48:21 +08:00
Delyan Haralanov
34f6f71042
test: enable clearMocks in vitest config (#7263) 2022-04-20 17:02:44 +08:00
三咲智子
1d13ebb05d
feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00
Delyan Haralanov
de0ee53cf0
test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
三咲智子
b2bfb6f159 fix: vitest 2022-04-12 01:38:15 +08:00
Yuyao Nie
14b9b9f542
fix(components): [popper-container] recreate container when unmounted (#7076) 2022-04-10 14:08:12 +08:00
JeremyWuuuuu
993971e872
feat(components): [virtual-table] grid table (#7081)
- Add grid table props definitions
- Implemented TableGrid component
- Update Virtual Grid for rich typing
2022-04-10 14:05:12 +08:00
bqy_fe
b863db272e
feat(components): [tabs] add tab-change event (#6978) 2022-04-03 14:09:52 +08:00