@ikonai/sdk-react-ui 1.5.0 → 1.7.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk-react-ui",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -158,6 +158,44 @@
158
158
  word-break: break-word;
159
159
  }
160
160
 
161
+ /* An installed PWA has no reload control the user can reach, so this button is the only way back
162
+ into the app — sized for a thumb rather than as a secondary affordance. */
163
+ .ikon-offline-action {
164
+ display: flex;
165
+ align-items: center;
166
+ justify-content: center;
167
+ min-width: 160px;
168
+ min-height: 44px;
169
+ margin-top: 12px;
170
+ padding: 0 20px;
171
+ background: var(--ikon-bg-solid);
172
+ border: 1px solid transparent;
173
+ border-radius: var(--ikon-radius-md);
174
+ font-family: inherit;
175
+ font-size: 15px;
176
+ font-weight: 500;
177
+ line-height: 1;
178
+ cursor: pointer;
179
+ transition: background-color 0.15s ease;
180
+ }
181
+
182
+ /* Crosswind's preflight resets `button { color: inherit }` unlayered, and an unlayered rule beats
183
+ a layered one whatever its specificity — so colouring the button itself loses the contrast and
184
+ paints the label in the chip's text colour on the solid fill. The span is not something the
185
+ reset targets, which keeps this a normal cascade an app can still override without !important. */
186
+ .ikon-offline-action-label {
187
+ color: var(--ikon-text-on-solid);
188
+ }
189
+
190
+ .ikon-offline-action:hover {
191
+ background: var(--ikon-bg-solid-hover);
192
+ }
193
+
194
+ .ikon-offline-action:focus-visible {
195
+ outline: 2px solid var(--ikon-focus-ring);
196
+ outline-offset: 2px;
197
+ }
198
+
161
199
  @keyframes ikon-fade-in {
162
200
  from { opacity: 0; }
163
201
  to { opacity: 1; }