@govbr-ds/playground 5.2.1 → 5.2.2
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/dist/Playground.d.ts.map +1 -1
- package/dist/browser/index.js +23 -23
- package/dist/components/Workbench.d.ts.map +1 -1
- package/dist/core/index.d.ts +2 -3
- package/dist/core/index.d.ts.map +1 -1
- package/dist/react/index.js +25 -25
- package/dist/styles.css +3 -16
- package/docs/configuration.md +13 -13
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -761,10 +761,9 @@ body.wbc-shared-playground-active #content > section[aria-label='Playground do c
|
|
|
761
761
|
}
|
|
762
762
|
.govbr-playground__setting-row {
|
|
763
763
|
display: grid;
|
|
764
|
-
grid-template-columns:
|
|
765
|
-
align-items:
|
|
766
|
-
gap: 0.
|
|
767
|
-
font-weight: 600;
|
|
764
|
+
grid-template-columns: minmax(0, 1fr);
|
|
765
|
+
align-items: start;
|
|
766
|
+
gap: 0.25rem;
|
|
768
767
|
}
|
|
769
768
|
.govbr-playground__setting-row br-select {
|
|
770
769
|
width: 100%;
|
|
@@ -1027,9 +1026,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1027
1026
|
background: var(--gp-surface-muted);
|
|
1028
1027
|
border-radius: 0.25rem;
|
|
1029
1028
|
}
|
|
1030
|
-
.govbr-playground__mobile-panels {
|
|
1031
|
-
display: none;
|
|
1032
|
-
}
|
|
1033
1029
|
.govbr-playground__bench-main[data-has-code='false'] {
|
|
1034
1030
|
grid-template-rows: minmax(0, 1fr);
|
|
1035
1031
|
}
|
|
@@ -1155,10 +1151,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1155
1151
|
}
|
|
1156
1152
|
}
|
|
1157
1153
|
@container workbench (width < 700px) {
|
|
1158
|
-
.govbr-playground__mobile-panels {
|
|
1159
|
-
display: flex;
|
|
1160
|
-
flex-wrap: wrap;
|
|
1161
|
-
}
|
|
1162
1154
|
.govbr-playground__bench-main {
|
|
1163
1155
|
display: flex;
|
|
1164
1156
|
flex-direction: column;
|
|
@@ -1255,7 +1247,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1255
1247
|
}
|
|
1256
1248
|
}
|
|
1257
1249
|
@container workbench (width < 700px) {
|
|
1258
|
-
.govbr-playground__mobile-panels br-button,
|
|
1259
1250
|
.govbr-playground__preview-header br-button,
|
|
1260
1251
|
.govbr-playground__code-header br-button {
|
|
1261
1252
|
min-inline-size: 44px;
|
|
@@ -2006,7 +1997,6 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
2006
1997
|
|
|
2007
1998
|
/* Presentation changes visibility, preserving the live preview node. */
|
|
2008
1999
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__settings-line,
|
|
2009
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__mobile-panels,
|
|
2010
2000
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-properties,
|
|
2011
2001
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-code,
|
|
2012
2002
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-divider,
|
|
@@ -2065,9 +2055,6 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
2065
2055
|
[data-library='wbc'] br-tab::part(nav) {
|
|
2066
2056
|
flex: 0 0 auto;
|
|
2067
2057
|
}
|
|
2068
|
-
.govbr-playground__mobile-panels[hidden] {
|
|
2069
|
-
display: none !important;
|
|
2070
|
-
}
|
|
2071
2058
|
@media (pointer: coarse) {
|
|
2072
2059
|
}
|
|
2073
2060
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__resize {
|
package/docs/configuration.md
CHANGED
|
@@ -297,12 +297,12 @@ os grupos correspondentes de `config.ui.hidden`.
|
|
|
297
297
|
|
|
298
298
|
### Workspace e dimensões
|
|
299
299
|
|
|
300
|
-
`workspace` aceita `
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
300
|
+
`workspace` aceita `preset: 'visual' | 'code' | 'inspection'`, `split` (percentual
|
|
301
|
+
inicial do preview, 20–80) e `properties` (boolean para abrir inspetor; padrão
|
|
302
|
+
acompanha preset). No `examples.json`, configure por exemplo em cada entrada como
|
|
303
|
+
`ui.workspace`; o `ui.workspace` global serve como padrão. Não há seletor de
|
|
304
|
+
disposição: ela é sempre automática e usa a largura concedida pelo host, não
|
|
305
|
+
apenas a largura da janela; os limites atuais são 700/1100/1600 px.
|
|
306
306
|
|
|
307
307
|
O padrão de divisão é 60/40, respeitando configuração explícita e mínimos dos
|
|
308
308
|
painéis. Arraste a divisória para alterar largura lado a lado ou altura na
|
|
@@ -321,13 +321,13 @@ Cada grupo aceita `true` ou lista de IDs. Para inputs/selects/switches/botões,
|
|
|
321
321
|
`hidden.controls` aceita também o nome acessível exato, por exemplo `Framework`,
|
|
322
322
|
`Buscar propriedade`, `Tipo de mensagem` ou `Restaurar padrão de disabled`.
|
|
323
323
|
|
|
324
|
-
| Grupo | IDs
|
|
325
|
-
| ----------- |
|
|
326
|
-
| `actions` | `undo`, `redo`, `format`, `copy`, `share`, `reset`, `fullscreen`, `stackblitz`, `execute` (recarregar preview), IDs extras.
|
|
327
|
-
| `tabs` | `code`, `controls`, `console`, `events`, `html`, `javascript`, `css`, `frameworks`, `angular`, `react`, `vue`, IDs extras.
|
|
328
|
-
| `controls` | `example` (principal e filho), `category` (só filho), `settings`, `theme`, `contrast`, `locale`, `direction`, `motion`, `skeleton`, `viewport`, `resize`, `preview-title`, `dimensions`, `panels-resize`, `
|
|
329
|
-
| `viewports` | IDs das opções configuradas. `true` oculta o seletor.
|
|
330
|
-
| `inspector` | `tree`, `search`, `groups`, `props`, `slots`; ou `prop:<tag>:<atributo>` e `slot:<tag>:<nome>`. Slot sem nome usa `default`.
|
|
324
|
+
| Grupo | IDs |
|
|
325
|
+
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
326
|
+
| `actions` | `undo`, `redo`, `format`, `copy`, `share`, `reset`, `fullscreen`, `stackblitz`, `execute` (recarregar preview), IDs extras. |
|
|
327
|
+
| `tabs` | `code`, `controls`, `console`, `events`, `html`, `javascript`, `css`, `frameworks`, `angular`, `react`, `vue`, IDs extras. |
|
|
328
|
+
| `controls` | `example` (principal e filho), `category` (só filho), `settings`, `theme`, `contrast`, `locale`, `direction`, `motion`, `skeleton`, `viewport`, `resize`, `preview-title`, `dimensions`, `panels-resize`, `tools-toggle` (mantém ferramentas abertas sem cabeçalho retrátil). |
|
|
329
|
+
| `viewports` | IDs das opções configuradas. `true` oculta o seletor. |
|
|
330
|
+
| `inspector` | `tree`, `search`, `groups`, `props`, `slots`; ou `prop:<tag>:<atributo>` e `slot:<tag>:<nome>`. Slot sem nome usa `default`. |
|
|
331
331
|
|
|
332
332
|
```ts
|
|
333
333
|
ui: {
|