@wirecore/wirelayer-native 0.8.1 → 0.8.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.
Files changed (2) hide show
  1. package/llms-full.txt +51 -11
  2. package/package.json +3 -3
package/llms-full.txt CHANGED
@@ -4909,16 +4909,56 @@ element (that part of the page):
4909
4909
  }
4910
4910
  ```
4911
4911
 
4912
- | Variable | Default | Applies to |
4913
- | ----------------------------------------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4914
- | `--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) |
4915
- | `--wc-control-radius-sm` / `-md` / `-lg` | `6px` / `8px` / `10px` | Corners of the fields above and of Textarea (not of buttons) |
4916
- | `--wc-control-text-sm` / `-md` / `-lg` | `13px` / `15px` / `16px` | Text in the fields above and in Textarea |
4917
- | `--wc-button-radius` | `8px` | Corners of Button and IconButton with `shape="rounded"` (`pill` and `square` stay) |
4918
- | `--wc-card-p` | `1.5rem` | Padding of Card |
4919
- | `--wc-backdrop` | `rgb(0 0 0 / 0.6)` | Dimming behind Dialog, Drawer and ConfirmDialog |
4920
- | `--radius-card` / `--radius-panel` / `--radius-popup` | `20px` / `28px` / `12px` | Corners of cards, panels and popups (menus, lists, popovers) |
4921
- | `--wc-dialog-w` | by `size` | Width of a DialogContent |
4912
+ | Variable | Default | Applies to |
4913
+ | ----------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4914
+ | `--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) |
4915
+ | `--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 |
4916
+ | `--wc-control-text-sm` / `-md` / `-lg` | `13px` / `15px` / `16px` | Text in the fields above and in Textarea |
4917
+ | `--wc-button-radius` | `8px` | Corners of Button and IconButton with `shape="rounded"` (`pill` and `square` stay) |
4918
+ | `--wc-avatar-radius` | by `size`: `8px` / `10px` / `12px` / `16px` / `24px` | Corners of Avatar with `shape="square"` – one value for all sizes |
4919
+ | `--wc-checkbox-radius` | `5px` (`4px` in lists) | Corners of Checkbox and SelectionCard (`type="checkbox"`), and of the check boxes in Listbox, MultiSelect and Tree |
4920
+ | `--wc-dialog-icon-radius` | `10px` | Icon box in the header of a Dialog |
4921
+ | `--wc-card-p` | `1.5rem` | Padding of Card |
4922
+ | `--wc-backdrop` | `rgb(0 0 0 / 0.6)` | Dimming behind Dialog, Drawer and ConfirmDialog |
4923
+ | `--radius-card` / `--radius-panel` / `--radius-popup` | `20px` / `28px` / `12px` | Corners of cards, panels and popups (menus, lists, popovers) |
4924
+ | `--radius-dialog` | `14px` | Corners of Dialog, ConfirmDialog, CommandPalette and the fullscreen view of Gallery and Image |
4925
+ | `--wc-dialog-w` | by `size` | Width of a DialogContent |
4922
4926
 
4923
4927
  The rest – the padding of a dialog or of table cells, the size of a single variant – is set per part with `classes` or
4924
- `RecipesProvider` (_Getting started › Welcome › Customizing_). The React Native components keep their fixed sizes.
4928
+ `RecipesProvider` (_Getting started › Welcome › Customizing_). The React Native components keep their fixed sizes; of
4929
+ the variables above they read only the corners `--radius-*`, `--wc-control-radius-*` (Input, Textarea, Select,
4930
+ DurationInput, TagsInput and the TimeGrid slots, which take `-md` in every size there), `--wc-avatar-radius`,
4931
+ `--wc-checkbox-radius` and `--wc-dialog-icon-radius` (set in the app's `global.css`).
4932
+
4933
+ ### Square corners
4934
+
4935
+ `--radius-*` are Tailwind theme variables (`rounded-card`, `rounded-dialog` …). A theme without rounded corners sets
4936
+ them and the `--wc-*` corners to 0 – this is every corner the components take from a variable:
4937
+
4938
+ ```css
4939
+ @theme {
4940
+ --radius-card: 0;
4941
+ --radius-panel: 0;
4942
+ --radius-popup: 0;
4943
+ --radius-dialog: 0;
4944
+ }
4945
+
4946
+ :root {
4947
+ --wc-control-radius-sm: 0;
4948
+ --wc-control-radius-md: 0;
4949
+ --wc-control-radius-lg: 0;
4950
+ --wc-button-radius: 0;
4951
+ --wc-avatar-radius: 0;
4952
+ --wc-checkbox-radius: 0;
4953
+ --wc-dialog-icon-radius: 0;
4954
+ }
4955
+ ```
4956
+
4957
+ Not part of it:
4958
+
4959
+ - Small parts use Tailwind's radius scale (`rounded-md`, `rounded-lg` …): menu and list items, tooltips, tabs, the icon
4960
+ box of Alert, Drawer with `offset`. They follow `--radius-xs` to `--radius-4xl`; set those in `@theme` as well for no
4961
+ rounded corner at all (your own `rounded-*` classes change with them).
4962
+ - Shapes stay round: everything with `rounded-full` (Button and IconButton with the default `shape="pill"` – use
4963
+ `shape="rounded"` or `"square"` –, Switch, Badge, Radio, Avatar with `shape="circle"`), the thin bars of Progress, the
4964
+ 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-native",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "WireLayer components for React Native (Expo) with Uniwind",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -118,8 +118,8 @@
118
118
  "dependencies": {
119
119
  "@expo-google-fonts/jetbrains-mono": "^0.4.1",
120
120
  "@expo-google-fonts/schibsted-grotesk": "^0.4.2",
121
- "@wirecore/wirelayer-recipes": "^0.10.0",
122
- "@wirecore/wirelayer-tokens": "^0.6.0",
121
+ "@wirecore/wirelayer-recipes": "^0.11.0",
122
+ "@wirecore/wirelayer-tokens": "^0.7.0",
123
123
  "uqr": "^0.1.3"
124
124
  },
125
125
  "devDependencies": {