Commit Graph
5224 Commits
Author SHA1 Message Date
Bogdan Chadkin c62d132098 Add more options to text editor (#442)
Ref https://github.com/webstudio-is/webstudio-designer/issues/400

- added superscript
- added subscript
- added clear formatting, used same trick as with span
- refactored interop to cover more options with less code
- convert newlines to linebreaks instead of paragraphs when convert
instances to lexical tree
2022-11-11 23:13:04 +03:00
Oleg Isonen 1a623b7e9d simplify css preview logic 2022-11-11 20:40:12 +01:00
Oleg Isonen bd341cd74c simplify usePreviewCss 2022-11-11 20:30:34 +01:00
Oleg Isonen a30b7ad5be set values over css vars 2022-11-11 16:48:53 +01:00
Bogdan Chadkin 086ad2a573 Setup svgo-jsx for icons package (#443)
Ref https://github.com/svg/svgo-components/tree/main/packages/svgo-jsx

Icons can be generated from .svg sources to react components. svgo-jsx
allows to do it easily.

Template reproduce existing components. Took 3 icons from material icons
though they do not have viewBox so added removeDimensions svgo plugin to
add it before predefined size (16) is added.
2022-11-11 13:47:47 +03:00
Oleg Isonen 6269ad2422 wip 2022-11-11 10:24:40 +01:00
Oleg Isonen 27ade6adc7 remodeling 2022-11-11 00:49:31 +01:00
Oleg Isonen f3108b0f57 add one rule 2022-11-10 22:04:00 +01:00
Oleg Isonen 89d9c9aaf6 breakpoints 2022-11-10 21:39:45 +01:00
Roman Pominov 36509e644a Merge pull request #440 from webstudio-is/ii
Minor fixes
2022-11-10 23:03:20 +04:00
Oleg Isonen 9a8a3021bf initial css engine 2022-11-10 19:55:38 +01:00
Oleg Isonen db96cef22f Merge pull request #439 from webstudio-is/migrate-tokens
Migrate fontSize & lineHeight and borderRadius tokens
2022-11-10 16:52:01 +01:00
Oleg Isonen 57b8bc92c2 Merge branch 'main' into migrate-tokens 2022-11-10 16:39:27 +01:00
Oleg Isonen d000697cee fix $fontSize$fontSize 2022-11-10 16:18:17 +01:00
Roman Pominov 14df7a5b1b simplify icons storybook 2022-11-10 19:16:19 +04:00
Oleg Isonen af527e90f2 migrate border-radius 2022-11-10 16:15:21 +01:00
Roman Pominov e107260855 fix !i 2022-11-10 19:12:05 +04:00
Oleg Isonen 8982daa467 radii migration doesn't work, will do manually 2022-11-10 15:55:24 +01:00
Oleg Isonen 4da17d0b02 fix replacement of $radii 2022-11-10 15:54:03 +01:00
Oleg Isonen 2f493baa5c replace $radii 2022-11-10 15:51:17 +01:00
Roman Pominov ebeb78ad6c Fix a bug where outline does not update for inline elements (#438)
Fixes #433
2022-11-10 17:49:16 +03:00
Oleg Isonen 0f641654ca borderRadius migration 2022-11-10 15:49:01 +01:00
Oleg Isonen dfb7a5754a migrate legal line-heights 2022-11-10 15:40:02 +01:00
Oleg Isonen 7ee3a3565f fix migration script for lineHeight 2022-11-10 15:35:11 +01:00
Oleg Isonen 0328035c5e line-height migration script 2022-11-10 15:34:45 +01:00
Bogdan Chadkin 83aaba5f46 Allow span fragment in text editor (#426)
Ref https://github.com/webstudio-is/webstudio-designer/issues/400

- added span component to sdk
- added span support to text editor toolbar

Lexical has a great utility $patchStyleText which does exaactly what we
need, split selection into stylable element. Though there is a catch. It
requires to apply some styles. We do styling lazily and with clases so
it doesn't fit to trigger split. To workaroud it I instead patch with
css custom property which does not affect styling and considered a
trigger for lexical.

<img width="248" alt="image"
src="https://user-images.githubusercontent.com/5635476/201028529-0e5ec32e-a00a-43b0-899c-671f0edcad5b.png">
2022-11-10 17:15:47 +03:00
Oleg Isonen 76e02bd7fc keep 4th font size for now legacy 2022-11-10 15:13:30 +01:00
Oleg Isonen 9976367f33 move legacy font sizes as well 2022-11-10 15:12:41 +01:00
Oleg Isonen ede1ab58a5 also migrate legacy font sizes to the new convention $fontSize$x 2022-11-10 15:09:31 +01:00
Oleg Isonen e2b584d55d migrate font tokens 2022-11-10 15:07:31 +01:00
Oleg Isonen 006c9f32f9 Revert "migrate font-sizes"
This reverts commit 0627e3e679.
2022-11-10 15:06:06 +01:00
Oleg Isonen 3238b8fb2c fix migration script for $1 2022-11-10 15:05:58 +01:00
Oleg Isonen a8453c3d4f bring some legacy tokens back for the current, legacy parts of UI 2022-11-10 15:01:22 +01:00
Oleg Isonen 0627e3e679 migrate font-sizes 2022-11-10 14:54:53 +01:00
Oleg Isonen d836413ef4 more fontSize migration tweeks 2022-11-10 14:54:39 +01:00
Oleg Isonen 330177b45b prepare fontSizes migration 2022-11-10 14:49:24 +01:00
Oleg Isonen 31e4fad38a make migration script more generic 2022-11-10 14:36:18 +01:00
Oleg Isonen e91e2b3162 Merge pull request #437 from webstudio-is/tailwind-spacing
Fix up login card a little bit,
2022-11-10 13:58:29 +01:00
Oleg Isonen 81b444719a Merge branch 'main' into tailwind-spacing 2022-11-10 10:20:59 +01:00
Oleg Isonen 8663858915 fix up login card a little bit, its still a pretty much just thrown together 2022-11-10 10:20:13 +01:00
Oleg Isonen 25c9d56c5f Merge pull request #436 from webstudio-is/tailwind-spacing
Tailwind spacing
2022-11-10 09:09:03 +01:00
Bogdan Chadkin 6004259fb1 Save db state after docker compose down (#435)
With previous docker setup I have a problem when switched between
projects had to setup migrations again and loose current session.

Docker compose volumes solve this problem and preserve current db state.
Can be destroyed with `docker compose down -v`.
2022-11-10 10:23:56 +03:00
Oleg Isonen 24cf6c6fa6 migrate-spacing 2022-11-09 21:59:04 +01:00
Oleg Isonen 29f4c72c9e Merge branch 'main' into tailwind-spacing 2022-11-09 21:54:34 +01:00
Oleg Isonen 530979a3e8 migrate to $spacing token everything 2022-11-09 21:03:04 +01:00
Oleg Isonen edf24256dc base stitches config on a new spacing namespace 2022-11-09 20:42:41 +01:00
Roman Pominov b80165e6a4 Pages small improvements (#428)
- Fixes #424
- Fixes #405
- Removed the "pages" feature-flag — enabled it without a flag
2022-11-09 12:06:34 +03:00
Ivan Starkov 940f7a87b5 Merge pull request #378 from webstudio-is/sdk_image
[sdk] Image
2022-11-09 10:33:20 +04:00
istarkov fbf8babd62 Update stories, fix bug 2022-11-09 06:08:02 +00:00
istarkov 5d1452928d Image component 2022-11-09 06:07:48 +00:00