Commit Graph
36 Commits
Author SHA1 Message Date
Roman Pominov 91e209e974 rename Spacing to Space (#745)
Renamed Spacing section to Space in code and in UI
2023-01-05 14:59:32 +03:00
Bogdan Chadkin 5fe9364cb1 Improve units in style panel (#735)
Ref https://github.com/webstudio-is/webstudio-designer/issues/366

- generate grouped units for non length values
- show unit select when initial unitless

So we get all 3 points from the issue

- all properties has only supported units
- hidden but supported units still can be entered
- unsupported values are validated

<img width="243" alt="Screenshot 2023-01-04 at 14 12 29"
src="https://user-images.githubusercontent.com/5635476/210546684-ca696096-f78c-445f-bbc3-04db7326239b.png">
<img width="224" alt="Screenshot 2023-01-04 at 14 14 54"
src="https://user-images.githubusercontent.com/5635476/210546689-396c7d42-e6f0-42a9-869c-7b231baa3d71.png">
2023-01-04 18:20:15 +03:00
Bogdan Chadkin 5a2b3b8eec Parse properties initial value (#726)
Ref https://github.com/webstudio-is/webstudio-designer/issues/366

Parsed initial values to get correct unit instead of px for some
properties. There is still edge case with unitless values I'm gonna fix
in another PR.

Also bumped mdn-data and removed overrides fixed on mdn side.
2023-01-03 19:57:16 +03:00
Oleg Isonen ce5cfeca0a Add object position property (#708)
## Description

Somehow we forgot to add object-position

## Steps for reproduction

1. select instance
2. go to sizes section in style panel

## Code Review

- [ ] hi @istarkov  I need you to do
  - conceptual review (architecture, feature-correctness)

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-12-27 13:21:45 +01:00
Oleg Isonen 7f62539435 start the smallest breakpoint at 0 and use the upper bound to set the canvas size 2022-12-15 18:09:04 +00:00
Andras Bacsai 27469787a0 fix eslint 2022-12-08 13:21:37 +01:00
Oleg Isonen 4fcbf1d108 Merge branch 'main' into 494-primitive-tokens 2022-11-27 18:41:41 +01:00
Oleg Isonen 52a4f9af6b added aspect ratio property to sizes 2022-11-27 13:46:53 +01:00
Oleg Isonen 1b8b692b73 remove todos, lint 2022-11-25 20:45:29 +01:00
Oleg Isonenandistarkov 4c8989784b Primitive tokens (#507)
https://github.com/webstudio-is/webstudio-designer/issues/494

This PR Renders this UI and, when adding tokens - renders CSS variables
on the canvas: It's behind a feature flag.

<img width="411" alt="Screenshot 2022-11-25 at 15 51 00"
src="https://user-images.githubusercontent.com/52824/204009859-81ed72c4-e758-4973-be49-c8c65e6b4661.png">


## Before requesting a review

- [ ] if the PR is WIP - use draft mode
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
- [ ] what kind of review is needed?
  - [ ] conceptual
  - [ ] detailed
  - [ ] with testing

## Test cases

- [ ] step by step interaction description and what is expected to
happen

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory

Co-authored-by: istarkov <istarkov@gmail.com>
2022-11-25 19:51:54 +01:00
istarkov 466ae357d8 Fix errors 2022-11-25 16:01:32 +00:00
Oleg Isonen 48f66a0dc2 use any temporarily 2022-11-25 14:13:35 +01:00
Oleg Isonen bda114b4e3 move tree utils again back to project
someone merged them back into app after they were moved to project
2022-11-18 14:01:19 +01:00
Oleg Isonen 33160e6632 move css-data to a package 2022-11-17 21:12:39 +01:00
Oleg Isonen 2a0e920725 working version 2022-11-13 20:05:06 +01:00
Oleg Isonen fe0d3669c4 wip showing only font weights that are available
needs to understand inherited font-family as well
2022-11-04 20:15:04 +01:00
Oleg Isonen 2fdb44b4b0 detect font family 2022-11-04 18:02:17 +01:00
Oleg Isonen 12c58f7647 Merge branch 'main' into 252-fonts-manager-and-fonts-selector 2022-10-17 17:04:38 +02:00
Oleg Isonen c54497b95f Merge branch 'main' into 252-fonts-manager-and-fonts-selector 2022-10-17 15:24:19 +02:00
Roman Pominov 005eedd37e fix merge 2022-10-17 16:41:08 +04:00
Roman Pominov 9549de9ef6 Merge branch 'main' into remove_schema 2022-10-17 16:36:25 +04:00
Roman Pominov 6343291d41 keep schema.ts separate 2022-10-17 16:24:43 +04:00
Roman Pominov 6d9c66e0a0 remove Shema suffix 2022-10-17 14:00:52 +04:00
Oleg Isonen e3a40b4b0e wip cssvalue input with select and combobox 2022-10-13 12:26:21 +02:00
Oleg Isonen e1e2f6e53a add fontFamily css value type, render fallback fonts for system and uploaded fonts 2022-09-25 13:24:15 +03:00
Andras Bacsai 6bd52dc72f fix: imports/exports 2022-09-13 13:49:32 +02:00
Sultan e4d7792096 unit and content menu for text control 2022-08-21 17:46:07 +03:00
Sultan 13d6700974 new text control taking shape 2022-08-21 12:08:56 +03:00
Sultan e277de6bd7 why do we have excessive renders? 2022-08-20 23:02:03 +03:00
Sultan f5eead57af Merge branch 'main' into feature-style-panel-layout 2022-08-19 18:56:28 +03:00
Oleg Isonen 4aa8a7d80e update formatting of generated sdk files 2022-08-19 14:56:21 +03:00
Sultan 5ac89c61af add category to StyleConfig
to be able to differentiate between similar named properties across different contexts i.e text vs layout column-gap
2022-07-31 12:41:27 +03:00
Sultan a730524763 tweaks, fixes, etc, change style-panel lib/ source folder to shared/ lib is in .gitignore 2022-07-31 00:28:01 +03:00
Sultan e49e4482e0 Merge branch 'main' into feature-style-panel-layout 2022-07-30 12:27:17 +03:00
Oleg Isonen c72148bff5 moving design system into a package, adding linters in packages where me missed to add them 2022-07-27 23:47:06 +02:00
Sara Vieira f6979e4500 rename sdk 2022-07-18 22:11:02 +02:00