@wirecore/wirelayer-react 0.12.1 → 0.12.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/llms-full.txt +51 -11
- package/package.json +3 -3
package/llms-full.txt
CHANGED
|
@@ -6602,16 +6602,56 @@ element (that part of the page):
|
|
|
6602
6602
|
}
|
|
6603
6603
|
```
|
|
6604
6604
|
|
|
6605
|
-
| Variable | Default
|
|
6606
|
-
| ----------------------------------------------------- |
|
|
6607
|
-
| `--wc-control-h-sm` / `-md` / `-lg` | `2rem` / `2.5rem` / `3rem`
|
|
6608
|
-
| `--wc-control-radius-sm` / `-md` / `-lg` | `6px` / `8px` / `10px`
|
|
6609
|
-
| `--wc-control-text-sm` / `-md` / `-lg` | `13px` / `15px` / `16px`
|
|
6610
|
-
| `--wc-button-radius` | `8px`
|
|
6611
|
-
| `--wc-
|
|
6612
|
-
| `--wc-
|
|
6613
|
-
| `--
|
|
6614
|
-
| `--wc-
|
|
6605
|
+
| Variable | Default | Applies to |
|
|
6606
|
+
| ----------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
6607
|
+
| `--wc-control-h-sm` / `-md` / `-lg` | `2rem` / `2.5rem` / `3rem` | Height of the sizes sm, md, lg: Button, IconButton, Input, NativeSelect, Select, MultiSelect, Combobox, NumberInput, PasswordInput, the date and time fields, ColorPicker, TagsInput (minimum) |
|
|
6608
|
+
| `--wc-control-radius-sm` / `-md` / `-lg` | `6px` / `8px` / `10px` | Corners of the fields above and of Textarea, TreeSelect, CascadeSelect and the TimeGrid slots (not of buttons); `-lg` also the drop outline of OrderList and PickList |
|
|
6609
|
+
| `--wc-control-text-sm` / `-md` / `-lg` | `13px` / `15px` / `16px` | Text in the fields above and in Textarea |
|
|
6610
|
+
| `--wc-button-radius` | `8px` | Corners of Button and IconButton with `shape="rounded"` (`pill` and `square` stay) |
|
|
6611
|
+
| `--wc-avatar-radius` | by `size`: `8px` / `10px` / `12px` / `16px` / `24px` | Corners of Avatar with `shape="square"` – one value for all sizes |
|
|
6612
|
+
| `--wc-checkbox-radius` | `5px` (`4px` in lists) | Corners of Checkbox and SelectionCard (`type="checkbox"`), and of the check boxes in Listbox, MultiSelect and Tree |
|
|
6613
|
+
| `--wc-dialog-icon-radius` | `10px` | Icon box in the header of a Dialog |
|
|
6614
|
+
| `--wc-card-p` | `1.5rem` | Padding of Card |
|
|
6615
|
+
| `--wc-backdrop` | `rgb(0 0 0 / 0.6)` | Dimming behind Dialog, Drawer and ConfirmDialog |
|
|
6616
|
+
| `--radius-card` / `--radius-panel` / `--radius-popup` | `20px` / `28px` / `12px` | Corners of cards, panels and popups (menus, lists, popovers) |
|
|
6617
|
+
| `--radius-dialog` | `14px` | Corners of Dialog, ConfirmDialog, CommandPalette and the fullscreen view of Gallery and Image |
|
|
6618
|
+
| `--wc-dialog-w` | by `size` | Width of a DialogContent |
|
|
6615
6619
|
|
|
6616
6620
|
The rest – the padding of a dialog or of table cells, the size of a single variant – is set per part with `classes` or
|
|
6617
|
-
`RecipesProvider` (_Getting started › Welcome › Customizing_). The React Native components keep their fixed sizes
|
|
6621
|
+
`RecipesProvider` (_Getting started › Welcome › Customizing_). The React Native components keep their fixed sizes; of
|
|
6622
|
+
the variables above they read only the corners `--radius-*`, `--wc-control-radius-*` (Input, Textarea, Select,
|
|
6623
|
+
DurationInput, TagsInput and the TimeGrid slots, which take `-md` in every size there), `--wc-avatar-radius`,
|
|
6624
|
+
`--wc-checkbox-radius` and `--wc-dialog-icon-radius` (set in the app's `global.css`).
|
|
6625
|
+
|
|
6626
|
+
### Square corners
|
|
6627
|
+
|
|
6628
|
+
`--radius-*` are Tailwind theme variables (`rounded-card`, `rounded-dialog` …). A theme without rounded corners sets
|
|
6629
|
+
them and the `--wc-*` corners to 0 – this is every corner the components take from a variable:
|
|
6630
|
+
|
|
6631
|
+
```css
|
|
6632
|
+
@theme {
|
|
6633
|
+
--radius-card: 0;
|
|
6634
|
+
--radius-panel: 0;
|
|
6635
|
+
--radius-popup: 0;
|
|
6636
|
+
--radius-dialog: 0;
|
|
6637
|
+
}
|
|
6638
|
+
|
|
6639
|
+
:root {
|
|
6640
|
+
--wc-control-radius-sm: 0;
|
|
6641
|
+
--wc-control-radius-md: 0;
|
|
6642
|
+
--wc-control-radius-lg: 0;
|
|
6643
|
+
--wc-button-radius: 0;
|
|
6644
|
+
--wc-avatar-radius: 0;
|
|
6645
|
+
--wc-checkbox-radius: 0;
|
|
6646
|
+
--wc-dialog-icon-radius: 0;
|
|
6647
|
+
}
|
|
6648
|
+
```
|
|
6649
|
+
|
|
6650
|
+
Not part of it:
|
|
6651
|
+
|
|
6652
|
+
- Small parts use Tailwind's radius scale (`rounded-md`, `rounded-lg` …): menu and list items, tooltips, tabs, the icon
|
|
6653
|
+
box of Alert, Drawer with `offset`. They follow `--radius-xs` to `--radius-4xl`; set those in `@theme` as well for no
|
|
6654
|
+
rounded corner at all (your own `rounded-*` classes change with them).
|
|
6655
|
+
- Shapes stay round: everything with `rounded-full` (Button and IconButton with the default `shape="pill"` – use
|
|
6656
|
+
`shape="rounded"` or `"square"` –, Switch, Badge, Radio, Avatar with `shape="circle"`), the thin bars of Progress, the
|
|
6657
|
+
marks of Highlight and the diamond of a Gantt milestone.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecore/wirelayer-react",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "WireLayer components for React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"dependencies": {
|
|
167
167
|
"@ark-ui/react": "^5.39.3",
|
|
168
168
|
"@internationalized/date": "^3.12.4",
|
|
169
|
-
"@wirecore/wirelayer-recipes": "^0.
|
|
170
|
-
"@wirecore/wirelayer-tokens": "^0.
|
|
169
|
+
"@wirecore/wirelayer-recipes": "^0.11.0",
|
|
170
|
+
"@wirecore/wirelayer-tokens": "^0.7.0",
|
|
171
171
|
"lucide-react": "^1.59.0"
|
|
172
172
|
},
|
|
173
173
|
"devDependencies": {
|