@novely/solid-renderer 0.9.1 → 0.9.3-next

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/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @novely/solid-renderer
2
2
 
3
- Рендерер для @novely/core на основе solid.js
3
+ Renderer for @novely/core powered by SolidJS
4
4
 
5
5
  ## Использование
6
6
 
7
- Убедитесь, что у вас установлен [solid.js](https://www.solidjs.com/) и настроена сборка.
7
+ Make sure you have [SolidJS](https://www.solidjs.com/) installed and your bundler setup dones.
8
8
 
9
9
  ```tsx
10
10
  // @see https://www.solidjs.com/docs/latest/api#render
@@ -68,27 +68,12 @@ render(
68
68
 
69
69
  ## CSS Variables API
70
70
 
71
- Возможность настройки пользовательского интерфейса через [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) реализуется через следующие переменные:
71
+ Not documented yet.
72
72
 
73
- | Name | Default Value |
74
- | ---------------------------------------- | --------------------------------------------------------------------------------------------------- |
75
- | `--novely-button-background-color` | `#ffe9f3` |
76
- | `--novely-button-border-color` | `#ffc7df` |
77
- | `--novely-button-color` | `#000000` |
78
- | `--novely-button-hover-background-color` | `#ffffff` |
79
- | `--novely-button-hover-border-color` | `#ffc6d8` |
80
- | `--novely-button-hover-color` | `#ffb7a2` |
81
- | `--novely-select-background-color` | `#ffe9f3` |
82
- | `--novely-select-border-color` | `#ffc7df` |
83
- | `--novely-select-color` | `#000000` |
84
- | `--novely-dialog-color` | `#ffffff` |
85
- | `--novely-dialog-border-color` | `#ffffff` |
86
- | `--novely-dialog-border-radius` | `14px` |
87
- | `--novely-dialog-box-shadow-color` | `#00000072` |
88
- | `--novely-dialog-background-image` | `radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%))` |
89
- | `--novely-dialog-background-color` | `#f092b4d8` |
90
- | `--novely-dialog-background-position` | `0 0, 50px 50px` |
91
- | `--novely-dialog-background-size` | `100px 100px` |
92
- | `--novely-settings-background-image` | none |
93
- | `--novely-main-menu-background-image` | none |
94
- | `--novely-saves-background-image` | none |
73
+ ## CSS Breakpoints
74
+
75
+ | Name | Description |
76
+ | -------------------------- | -------------------- |
77
+ | `(max-aspect-ratio: 0.8)` | Portrait |
78
+ | `(max-aspect-ratio: 0.26)` | Hyper-Wide Portrait |
79
+ | `(max-aspect-ratio: 0.10)` | Thermometer Portrait |
@@ -1,8 +1,10 @@
1
1
  import type { Accessor, FlowComponent } from 'solid-js';
2
- import type { Renderer, RendererInit, StorageData, Stored, BaseTranslationStrings } from '@novely/core';
2
+ import type { Renderer, RendererInit, StorageData, Stored, BaseTranslationStrings, CoreData } from '@novely/core';
3
3
  interface DataContext {
4
4
  storeData: Accessor<StorageData>;
5
5
  storeDataUpdate: (fn: (prev: StorageData) => StorageData) => void;
6
+ coreData: Accessor<CoreData>;
7
+ coreDataUpdate: (fn: (prev: CoreData) => CoreData) => void;
6
8
  options: RendererInit;
7
9
  renderer: Renderer;
8
10
  t: (key: BaseTranslationStrings | (string & Record<never, never>)) => string;
@@ -12,6 +14,7 @@ interface DataContext {
12
14
  }
13
15
  interface ProviderProps {
14
16
  storeData: Stored<StorageData>;
17
+ coreData: Stored<CoreData>;
15
18
  options: RendererInit;
16
19
  renderer: Renderer;
17
20
  }