@selfhelp/shared 1.14.23 → 1.14.24
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/CHANGELOG.md +37 -0
- package/dist/{common-udJ0O8qC.d.mts → common-qaDIAYS3.d.mts} +5 -4
- package/dist/{common-udJ0O8qC.d.ts → common-qaDIAYS3.d.ts} +5 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +94 -170
- package/dist/index.mjs +94 -167
- package/dist/plugin-sdk/index.d.mts +2 -2
- package/dist/plugin-sdk/index.d.ts +2 -2
- package/dist/plugin-sdk/index.js +90 -91
- package/dist/plugin-sdk/index.mjs +90 -91
- package/dist/registry/index.d.mts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/registry/index.js +90 -90
- package/dist/registry/index.mjs +90 -90
- package/dist/{styles.registry-CZZwODJY.d.mts → styles.registry-4W0LzmZB.d.mts} +2 -189
- package/dist/{styles.registry-DQKcvIBZ.d.ts → styles.registry-D6xMm5VR.d.ts} +2 -189
- package/dist/theme/index.d.mts +27 -76
- package/dist/theme/index.d.ts +27 -76
- package/dist/theme/index.js +4 -80
- package/dist/theme/index.mjs +4 -77
- package/package.json +1 -1
- package/src/plugin-sdk/define.ts +0 -1
- package/src/registry/__tests__/platform.test.ts +0 -4
- package/src/registry/__tests__/registry.test.ts +0 -2
- package/src/registry/styles.registry.ts +90 -96
- package/src/theme/__tests__/mantineVariant.test.ts +2 -2
- package/src/theme/__tests__/semantic.test.ts +16 -53
- package/src/theme/mantineVariant.ts +3 -3
- package/src/theme/semantic.ts +24 -164
- package/src/theme/tokens.ts +2 -2
- package/src/types/mantine/common.ts +4 -3
- package/src/types/styles/base.ts +1 -1
- package/src/types/styles/composite.ts +0 -2
|
@@ -133,103 +133,103 @@ var PLUGIN_REGISTRY_CHANNELS = ["stable", "beta", "nightly", "test"];
|
|
|
133
133
|
// src/registry/styles.registry.ts
|
|
134
134
|
var BASE_STYLE_REGISTRY = {
|
|
135
135
|
// ===== auth =====
|
|
136
|
-
login: { description: "User login form", category: "auth",
|
|
137
|
-
register: { description: "User registration form", category: "auth",
|
|
138
|
-
validate: { description: "Email/account validation flow", category: "auth",
|
|
139
|
-
"reset-password": { description: "Reset password form", category: "auth",
|
|
140
|
-
"two-factor-auth": { description: "Two-factor auth code form", category: "auth",
|
|
141
|
-
profile: { description: "User profile management", category: "auth",
|
|
136
|
+
login: { description: "User login form", category: "auth", canHaveChildren: false },
|
|
137
|
+
register: { description: "User registration form", category: "auth", canHaveChildren: false },
|
|
138
|
+
validate: { description: "Email/account validation flow", category: "auth", canHaveChildren: true },
|
|
139
|
+
"reset-password": { description: "Reset password form", category: "auth", canHaveChildren: false },
|
|
140
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", canHaveChildren: false },
|
|
141
|
+
profile: { description: "User profile management", category: "auth", canHaveChildren: false },
|
|
142
142
|
// ===== layout =====
|
|
143
|
-
container: { description: "Mantine Container with responsive max-width", category: "layout",
|
|
144
|
-
box: { description: "Generic Mantine Box wrapper", category: "layout",
|
|
145
|
-
flex: { description: "Mantine Flex layout", category: "layout",
|
|
146
|
-
group: { description: "Mantine Group horizontal layout", category: "layout",
|
|
147
|
-
stack: { description: "Mantine Stack vertical layout", category: "layout",
|
|
148
|
-
"simple-grid": { description: "Mantine SimpleGrid", category: "layout",
|
|
149
|
-
grid: { description: "Mantine Grid", category: "layout",
|
|
150
|
-
"grid-column": { description: "Mantine Grid.Col", category: "layout",
|
|
151
|
-
space: { description: "Mantine Space spacer", category: "layout",
|
|
152
|
-
divider: { description: "Mantine Divider", category: "layout",
|
|
153
|
-
paper: { description: "Mantine Paper surface", category: "layout",
|
|
154
|
-
center: { description: "Mantine Center alignment", category: "layout",
|
|
155
|
-
"scroll-area": { description: "Mantine ScrollArea", category: "layout",
|
|
156
|
-
card: { description: "Mantine Card", category: "layout",
|
|
157
|
-
"card-segment": { description: "Mantine Card.Section", category: "layout",
|
|
158
|
-
"aspect-ratio": { description: "Mantine AspectRatio wrapper", category: "layout",
|
|
159
|
-
"background-image": { description: "Mantine BackgroundImage", category: "layout",
|
|
143
|
+
container: { description: "Mantine Container with responsive max-width", category: "layout", canHaveChildren: true },
|
|
144
|
+
box: { description: "Generic Mantine Box wrapper", category: "layout", canHaveChildren: true },
|
|
145
|
+
flex: { description: "Mantine Flex layout", category: "layout", canHaveChildren: true },
|
|
146
|
+
group: { description: "Mantine Group horizontal layout", category: "layout", canHaveChildren: true },
|
|
147
|
+
stack: { description: "Mantine Stack vertical layout", category: "layout", canHaveChildren: true },
|
|
148
|
+
"simple-grid": { description: "Mantine SimpleGrid", category: "layout", canHaveChildren: true },
|
|
149
|
+
grid: { description: "Mantine Grid", category: "layout", canHaveChildren: true },
|
|
150
|
+
"grid-column": { description: "Mantine Grid.Col", category: "layout", canHaveChildren: true },
|
|
151
|
+
space: { description: "Mantine Space spacer", category: "layout", canHaveChildren: false },
|
|
152
|
+
divider: { description: "Mantine Divider", category: "layout", canHaveChildren: false },
|
|
153
|
+
paper: { description: "Mantine Paper surface", category: "layout", canHaveChildren: true },
|
|
154
|
+
center: { description: "Mantine Center alignment", category: "layout", canHaveChildren: true },
|
|
155
|
+
"scroll-area": { description: "Mantine ScrollArea", category: "layout", canHaveChildren: true },
|
|
156
|
+
card: { description: "Mantine Card", category: "layout", canHaveChildren: true },
|
|
157
|
+
"card-segment": { description: "Mantine Card.Section", category: "layout", canHaveChildren: true },
|
|
158
|
+
"aspect-ratio": { description: "Mantine AspectRatio wrapper", category: "layout", canHaveChildren: true },
|
|
159
|
+
"background-image": { description: "Mantine BackgroundImage", category: "layout", canHaveChildren: true },
|
|
160
160
|
// ===== typography =====
|
|
161
|
-
title: { description: "Mantine Title", category: "typography",
|
|
162
|
-
text: { description: "Mantine Text", category: "typography",
|
|
163
|
-
code: { description: "Mantine Code (inline / block)", category: "typography",
|
|
164
|
-
highlight: { description: "Mantine Highlight", category: "typography",
|
|
165
|
-
blockquote: { description: "Mantine Blockquote", category: "typography",
|
|
166
|
-
"html-tag": { description: "Generic HTML tag wrapper (web), maps to View on RN", category: "typography",
|
|
167
|
-
kbd: { description: "Mantine Kbd", category: "typography",
|
|
168
|
-
typography: { description: "Mantine Typography wrapper", category: "typography",
|
|
169
|
-
fieldset: { description: "Mantine Fieldset", category: "typography",
|
|
170
|
-
spoiler: { description: "Mantine Spoiler reveal", category: "typography",
|
|
161
|
+
title: { description: "Mantine Title", category: "typography", canHaveChildren: false },
|
|
162
|
+
text: { description: "Mantine Text", category: "typography", canHaveChildren: false },
|
|
163
|
+
code: { description: "Mantine Code (inline / block)", category: "typography", canHaveChildren: false },
|
|
164
|
+
highlight: { description: "Mantine Highlight", category: "typography", canHaveChildren: false },
|
|
165
|
+
blockquote: { description: "Mantine Blockquote", category: "typography", canHaveChildren: false },
|
|
166
|
+
"html-tag": { description: "Generic HTML tag wrapper (web), maps to View on RN", category: "typography", canHaveChildren: true },
|
|
167
|
+
kbd: { description: "Mantine Kbd", category: "typography", canHaveChildren: false },
|
|
168
|
+
typography: { description: "Mantine Typography wrapper", category: "typography", canHaveChildren: true },
|
|
169
|
+
fieldset: { description: "Mantine Fieldset", category: "typography", canHaveChildren: true },
|
|
170
|
+
spoiler: { description: "Mantine Spoiler reveal", category: "typography", canHaveChildren: true },
|
|
171
171
|
// ===== media =====
|
|
172
|
-
image: { description: "Mantine Image / RN Image", category: "media",
|
|
173
|
-
video: { description: "HTML5 video / expo-video", category: "media",
|
|
174
|
-
audio: { description: "HTML5 audio / expo-audio", category: "media",
|
|
175
|
-
figure: { description: "Figure with caption", category: "media",
|
|
176
|
-
carousel: { description: "Embla on web, reanimated-carousel on RN", category: "media",
|
|
172
|
+
image: { description: "Mantine Image / RN Image", category: "media", canHaveChildren: false },
|
|
173
|
+
video: { description: "HTML5 video / expo-video", category: "media", canHaveChildren: false },
|
|
174
|
+
audio: { description: "HTML5 audio / expo-audio", category: "media", canHaveChildren: false },
|
|
175
|
+
figure: { description: "Figure with caption", category: "media", canHaveChildren: true },
|
|
176
|
+
carousel: { description: "Embla on web, reanimated-carousel on RN", category: "media", canHaveChildren: true },
|
|
177
177
|
// ===== interactive =====
|
|
178
|
-
button: { description: "Mantine Button / HeroUI Button", category: "interactive",
|
|
179
|
-
link: { description: "Anchor / Pressable navigation", category: "interactive",
|
|
180
|
-
"action-icon": { description: "Mantine ActionIcon", category: "interactive",
|
|
181
|
-
alert: { description: "Mantine Alert", category: "interactive",
|
|
182
|
-
badge: { description: "Mantine Badge", category: "interactive",
|
|
183
|
-
avatar: { description: "Mantine Avatar", category: "interactive",
|
|
184
|
-
chip: { description: "Mantine Chip", category: "interactive",
|
|
185
|
-
indicator: { description: "Mantine Indicator dot", category: "interactive",
|
|
186
|
-
"theme-icon": { description: "Mantine ThemeIcon", category: "interactive",
|
|
187
|
-
notification: { description: "Mantine Notification", category: "interactive",
|
|
178
|
+
button: { description: "Mantine Button / HeroUI Button", category: "interactive", canHaveChildren: false },
|
|
179
|
+
link: { description: "Anchor / Pressable navigation", category: "interactive", canHaveChildren: false },
|
|
180
|
+
"action-icon": { description: "Mantine ActionIcon", category: "interactive", canHaveChildren: false },
|
|
181
|
+
alert: { description: "Mantine Alert", category: "interactive", canHaveChildren: true },
|
|
182
|
+
badge: { description: "Mantine Badge", category: "interactive", canHaveChildren: false },
|
|
183
|
+
avatar: { description: "Mantine Avatar", category: "interactive", canHaveChildren: false },
|
|
184
|
+
chip: { description: "Mantine Chip", category: "interactive", canHaveChildren: false },
|
|
185
|
+
indicator: { description: "Mantine Indicator dot", category: "interactive", canHaveChildren: true },
|
|
186
|
+
"theme-icon": { description: "Mantine ThemeIcon", category: "interactive", canHaveChildren: false },
|
|
187
|
+
notification: { description: "Mantine Notification", category: "interactive", canHaveChildren: false },
|
|
188
188
|
// ===== forms =====
|
|
189
|
-
"form-log": { description: "Append-only form (one row per submit)", category: "forms",
|
|
190
|
-
"form-record": { description: "Per-user record form", category: "forms",
|
|
191
|
-
input: { description: "Plain HTML input", category: "forms",
|
|
192
|
-
"text-input": { description: "Mantine TextInput", category: "forms",
|
|
193
|
-
textarea: { description: "Mantine Textarea", category: "forms",
|
|
194
|
-
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms",
|
|
195
|
-
select: { description: "HTML select / Mantine Select", category: "forms",
|
|
196
|
-
radio: { description: "Mantine Radio / RadioGroup", category: "forms",
|
|
197
|
-
checkbox: { description: "Mantine Checkbox", category: "forms",
|
|
198
|
-
slider: { description: "Mantine Slider", category: "forms",
|
|
199
|
-
"range-slider": { description: "Mantine RangeSlider", category: "forms",
|
|
200
|
-
datepicker: { description: "Mantine DatePicker", category: "forms",
|
|
201
|
-
switch: { description: "Mantine Switch", category: "forms",
|
|
202
|
-
combobox: { description: "Mantine Combobox", category: "forms",
|
|
203
|
-
"color-input": { description: "Mantine ColorInput", category: "forms",
|
|
204
|
-
"color-picker": { description: "Mantine ColorPicker", category: "forms",
|
|
205
|
-
"file-input": { description: "Mantine FileInput / DocumentPicker on RN", category: "forms",
|
|
206
|
-
"number-input": { description: "Mantine NumberInput", category: "forms",
|
|
207
|
-
"segmented-control": { description: "Mantine SegmentedControl", category: "forms",
|
|
208
|
-
rating: { description: "Mantine Rating", category: "forms",
|
|
209
|
-
progress: { description: "Mantine Progress", category: "forms",
|
|
210
|
-
"progress-root": { description: "Mantine Progress.Root", category: "forms",
|
|
211
|
-
"progress-section": { description: "Mantine Progress.Section", category: "forms",
|
|
189
|
+
"form-log": { description: "Append-only form (one row per submit)", category: "forms", canHaveChildren: true },
|
|
190
|
+
"form-record": { description: "Per-user record form", category: "forms", canHaveChildren: true },
|
|
191
|
+
input: { description: "Plain HTML input", category: "forms", canHaveChildren: false },
|
|
192
|
+
"text-input": { description: "Mantine TextInput", category: "forms", canHaveChildren: false },
|
|
193
|
+
textarea: { description: "Mantine Textarea", category: "forms", canHaveChildren: false },
|
|
194
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", canHaveChildren: false },
|
|
195
|
+
select: { description: "HTML select / Mantine Select", category: "forms", canHaveChildren: false },
|
|
196
|
+
radio: { description: "Mantine Radio / RadioGroup", category: "forms", canHaveChildren: false },
|
|
197
|
+
checkbox: { description: "Mantine Checkbox", category: "forms", canHaveChildren: false },
|
|
198
|
+
slider: { description: "Mantine Slider", category: "forms", canHaveChildren: false },
|
|
199
|
+
"range-slider": { description: "Mantine RangeSlider", category: "forms", canHaveChildren: false },
|
|
200
|
+
datepicker: { description: "Mantine DatePicker", category: "forms", canHaveChildren: false },
|
|
201
|
+
switch: { description: "Mantine Switch", category: "forms", canHaveChildren: false },
|
|
202
|
+
combobox: { description: "Mantine Combobox", category: "forms", canHaveChildren: false },
|
|
203
|
+
"color-input": { description: "Mantine ColorInput", category: "forms", canHaveChildren: false },
|
|
204
|
+
"color-picker": { description: "Mantine ColorPicker", category: "forms", canHaveChildren: false },
|
|
205
|
+
"file-input": { description: "Mantine FileInput / DocumentPicker on RN", category: "forms", canHaveChildren: false },
|
|
206
|
+
"number-input": { description: "Mantine NumberInput", category: "forms", canHaveChildren: false },
|
|
207
|
+
"segmented-control": { description: "Mantine SegmentedControl", category: "forms", canHaveChildren: false },
|
|
208
|
+
rating: { description: "Mantine Rating", category: "forms", canHaveChildren: false },
|
|
209
|
+
progress: { description: "Mantine Progress", category: "forms", canHaveChildren: false },
|
|
210
|
+
"progress-root": { description: "Mantine Progress.Root", category: "forms", canHaveChildren: true },
|
|
211
|
+
"progress-section": { description: "Mantine Progress.Section", category: "forms", canHaveChildren: false },
|
|
212
212
|
// ===== composite =====
|
|
213
|
-
accordion: { description: "Mantine Accordion", category: "composite",
|
|
214
|
-
"accordion-item": { description: "Mantine Accordion.Item", category: "composite",
|
|
215
|
-
tabs: { description: "Mantine Tabs", category: "composite",
|
|
216
|
-
tab: { description: "Mantine Tabs.Tab + Tabs.Panel pair", category: "composite",
|
|
217
|
-
timeline: { description: "Mantine Timeline", category: "composite",
|
|
218
|
-
list: { description: "Mantine List", category: "composite",
|
|
219
|
-
"list-item": { description: "Mantine List.Item", category: "composite",
|
|
220
|
-
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite",
|
|
221
|
-
"entry-record": { description: "Single-record container", category: "composite",
|
|
222
|
-
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite",
|
|
223
|
-
loop: { description: "Loop / repeater over backend-provided rows", category: "composite",
|
|
224
|
-
"timeline-item": { description: "A single entry inside a timeline (child-only)", category: "composite",
|
|
213
|
+
accordion: { description: "Mantine Accordion", category: "composite", canHaveChildren: true },
|
|
214
|
+
"accordion-item": { description: "Mantine Accordion.Item", category: "composite", canHaveChildren: true },
|
|
215
|
+
tabs: { description: "Mantine Tabs", category: "composite", canHaveChildren: true },
|
|
216
|
+
tab: { description: "Mantine Tabs.Tab + Tabs.Panel pair", category: "composite", canHaveChildren: true },
|
|
217
|
+
timeline: { description: "Mantine Timeline", category: "composite", canHaveChildren: true },
|
|
218
|
+
list: { description: "Mantine List", category: "composite", canHaveChildren: true },
|
|
219
|
+
"list-item": { description: "Mantine List.Item", category: "composite", canHaveChildren: true },
|
|
220
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", canHaveChildren: true },
|
|
221
|
+
"entry-record": { description: "Single-record container", category: "composite", canHaveChildren: true },
|
|
222
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", canHaveChildren: false },
|
|
223
|
+
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", canHaveChildren: true },
|
|
224
|
+
"timeline-item": { description: "A single entry inside a timeline (child-only)", category: "composite", canHaveChildren: true },
|
|
225
225
|
// ===== system / data / reference (established backend catalog) =====
|
|
226
|
-
"no-access": { description: "Access-denied surface shown when the user lacks page access", category: "auth",
|
|
227
|
-
missing: { description: 'Generic "content missing" system surface', category: "auth",
|
|
228
|
-
"not-found": { description: "Page-not-found system surface", category: "auth",
|
|
229
|
-
version: { description: "Build/version diagnostic surface", category: "auth",
|
|
230
|
-
"ref-container": { description: "Renders content referenced from another section", category: "layout",
|
|
231
|
-
"data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout",
|
|
232
|
-
"show-user-input": { description: "Displays previously submitted user input as a list/card view", category: "forms",
|
|
226
|
+
"no-access": { description: "Access-denied surface shown when the user lacks page access", category: "auth", canHaveChildren: false },
|
|
227
|
+
missing: { description: 'Generic "content missing" system surface', category: "auth", canHaveChildren: false },
|
|
228
|
+
"not-found": { description: "Page-not-found system surface", category: "auth", canHaveChildren: false },
|
|
229
|
+
version: { description: "Build/version diagnostic surface", category: "auth", canHaveChildren: false },
|
|
230
|
+
"ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
|
|
231
|
+
"data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
|
|
232
|
+
"show-user-input": { description: "Displays previously submitted user input as a list/card view", category: "forms", canHaveChildren: false }
|
|
233
233
|
};
|
|
234
234
|
var PLUGIN_STYLE_REGISTRY = {};
|
|
235
235
|
var REGISTERED_PLUGIN_KEYS = /* @__PURE__ */ new Map();
|
|
@@ -302,7 +302,6 @@ function toRegistryRecord(styles) {
|
|
|
302
302
|
out[style.name] = {
|
|
303
303
|
description: style.description,
|
|
304
304
|
category: style.category,
|
|
305
|
-
frontendOnly: true,
|
|
306
305
|
canHaveChildren: style.canHaveChildren
|
|
307
306
|
};
|
|
308
307
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
3
|
-
import '../common-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-4W0LzmZB.mjs';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-4W0LzmZB.mjs';
|
|
3
|
+
import '../common-qaDIAYS3.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Open style-name type: a core `TStyleName` literal OR any plugin style
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-
|
|
2
|
-
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-
|
|
3
|
-
import '../common-
|
|
1
|
+
import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-D6xMm5VR.js';
|
|
2
|
+
export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-D6xMm5VR.js';
|
|
3
|
+
import '../common-qaDIAYS3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Open style-name type: a core `TStyleName` literal OR any plugin style
|
package/dist/registry/index.js
CHANGED
|
@@ -44,103 +44,103 @@ module.exports = __toCommonJS(registry_exports);
|
|
|
44
44
|
// src/registry/styles.registry.ts
|
|
45
45
|
var BASE_STYLE_REGISTRY = {
|
|
46
46
|
// ===== auth =====
|
|
47
|
-
login: { description: "User login form", category: "auth",
|
|
48
|
-
register: { description: "User registration form", category: "auth",
|
|
49
|
-
validate: { description: "Email/account validation flow", category: "auth",
|
|
50
|
-
"reset-password": { description: "Reset password form", category: "auth",
|
|
51
|
-
"two-factor-auth": { description: "Two-factor auth code form", category: "auth",
|
|
52
|
-
profile: { description: "User profile management", category: "auth",
|
|
47
|
+
login: { description: "User login form", category: "auth", canHaveChildren: false },
|
|
48
|
+
register: { description: "User registration form", category: "auth", canHaveChildren: false },
|
|
49
|
+
validate: { description: "Email/account validation flow", category: "auth", canHaveChildren: true },
|
|
50
|
+
"reset-password": { description: "Reset password form", category: "auth", canHaveChildren: false },
|
|
51
|
+
"two-factor-auth": { description: "Two-factor auth code form", category: "auth", canHaveChildren: false },
|
|
52
|
+
profile: { description: "User profile management", category: "auth", canHaveChildren: false },
|
|
53
53
|
// ===== layout =====
|
|
54
|
-
container: { description: "Mantine Container with responsive max-width", category: "layout",
|
|
55
|
-
box: { description: "Generic Mantine Box wrapper", category: "layout",
|
|
56
|
-
flex: { description: "Mantine Flex layout", category: "layout",
|
|
57
|
-
group: { description: "Mantine Group horizontal layout", category: "layout",
|
|
58
|
-
stack: { description: "Mantine Stack vertical layout", category: "layout",
|
|
59
|
-
"simple-grid": { description: "Mantine SimpleGrid", category: "layout",
|
|
60
|
-
grid: { description: "Mantine Grid", category: "layout",
|
|
61
|
-
"grid-column": { description: "Mantine Grid.Col", category: "layout",
|
|
62
|
-
space: { description: "Mantine Space spacer", category: "layout",
|
|
63
|
-
divider: { description: "Mantine Divider", category: "layout",
|
|
64
|
-
paper: { description: "Mantine Paper surface", category: "layout",
|
|
65
|
-
center: { description: "Mantine Center alignment", category: "layout",
|
|
66
|
-
"scroll-area": { description: "Mantine ScrollArea", category: "layout",
|
|
67
|
-
card: { description: "Mantine Card", category: "layout",
|
|
68
|
-
"card-segment": { description: "Mantine Card.Section", category: "layout",
|
|
69
|
-
"aspect-ratio": { description: "Mantine AspectRatio wrapper", category: "layout",
|
|
70
|
-
"background-image": { description: "Mantine BackgroundImage", category: "layout",
|
|
54
|
+
container: { description: "Mantine Container with responsive max-width", category: "layout", canHaveChildren: true },
|
|
55
|
+
box: { description: "Generic Mantine Box wrapper", category: "layout", canHaveChildren: true },
|
|
56
|
+
flex: { description: "Mantine Flex layout", category: "layout", canHaveChildren: true },
|
|
57
|
+
group: { description: "Mantine Group horizontal layout", category: "layout", canHaveChildren: true },
|
|
58
|
+
stack: { description: "Mantine Stack vertical layout", category: "layout", canHaveChildren: true },
|
|
59
|
+
"simple-grid": { description: "Mantine SimpleGrid", category: "layout", canHaveChildren: true },
|
|
60
|
+
grid: { description: "Mantine Grid", category: "layout", canHaveChildren: true },
|
|
61
|
+
"grid-column": { description: "Mantine Grid.Col", category: "layout", canHaveChildren: true },
|
|
62
|
+
space: { description: "Mantine Space spacer", category: "layout", canHaveChildren: false },
|
|
63
|
+
divider: { description: "Mantine Divider", category: "layout", canHaveChildren: false },
|
|
64
|
+
paper: { description: "Mantine Paper surface", category: "layout", canHaveChildren: true },
|
|
65
|
+
center: { description: "Mantine Center alignment", category: "layout", canHaveChildren: true },
|
|
66
|
+
"scroll-area": { description: "Mantine ScrollArea", category: "layout", canHaveChildren: true },
|
|
67
|
+
card: { description: "Mantine Card", category: "layout", canHaveChildren: true },
|
|
68
|
+
"card-segment": { description: "Mantine Card.Section", category: "layout", canHaveChildren: true },
|
|
69
|
+
"aspect-ratio": { description: "Mantine AspectRatio wrapper", category: "layout", canHaveChildren: true },
|
|
70
|
+
"background-image": { description: "Mantine BackgroundImage", category: "layout", canHaveChildren: true },
|
|
71
71
|
// ===== typography =====
|
|
72
|
-
title: { description: "Mantine Title", category: "typography",
|
|
73
|
-
text: { description: "Mantine Text", category: "typography",
|
|
74
|
-
code: { description: "Mantine Code (inline / block)", category: "typography",
|
|
75
|
-
highlight: { description: "Mantine Highlight", category: "typography",
|
|
76
|
-
blockquote: { description: "Mantine Blockquote", category: "typography",
|
|
77
|
-
"html-tag": { description: "Generic HTML tag wrapper (web), maps to View on RN", category: "typography",
|
|
78
|
-
kbd: { description: "Mantine Kbd", category: "typography",
|
|
79
|
-
typography: { description: "Mantine Typography wrapper", category: "typography",
|
|
80
|
-
fieldset: { description: "Mantine Fieldset", category: "typography",
|
|
81
|
-
spoiler: { description: "Mantine Spoiler reveal", category: "typography",
|
|
72
|
+
title: { description: "Mantine Title", category: "typography", canHaveChildren: false },
|
|
73
|
+
text: { description: "Mantine Text", category: "typography", canHaveChildren: false },
|
|
74
|
+
code: { description: "Mantine Code (inline / block)", category: "typography", canHaveChildren: false },
|
|
75
|
+
highlight: { description: "Mantine Highlight", category: "typography", canHaveChildren: false },
|
|
76
|
+
blockquote: { description: "Mantine Blockquote", category: "typography", canHaveChildren: false },
|
|
77
|
+
"html-tag": { description: "Generic HTML tag wrapper (web), maps to View on RN", category: "typography", canHaveChildren: true },
|
|
78
|
+
kbd: { description: "Mantine Kbd", category: "typography", canHaveChildren: false },
|
|
79
|
+
typography: { description: "Mantine Typography wrapper", category: "typography", canHaveChildren: true },
|
|
80
|
+
fieldset: { description: "Mantine Fieldset", category: "typography", canHaveChildren: true },
|
|
81
|
+
spoiler: { description: "Mantine Spoiler reveal", category: "typography", canHaveChildren: true },
|
|
82
82
|
// ===== media =====
|
|
83
|
-
image: { description: "Mantine Image / RN Image", category: "media",
|
|
84
|
-
video: { description: "HTML5 video / expo-video", category: "media",
|
|
85
|
-
audio: { description: "HTML5 audio / expo-audio", category: "media",
|
|
86
|
-
figure: { description: "Figure with caption", category: "media",
|
|
87
|
-
carousel: { description: "Embla on web, reanimated-carousel on RN", category: "media",
|
|
83
|
+
image: { description: "Mantine Image / RN Image", category: "media", canHaveChildren: false },
|
|
84
|
+
video: { description: "HTML5 video / expo-video", category: "media", canHaveChildren: false },
|
|
85
|
+
audio: { description: "HTML5 audio / expo-audio", category: "media", canHaveChildren: false },
|
|
86
|
+
figure: { description: "Figure with caption", category: "media", canHaveChildren: true },
|
|
87
|
+
carousel: { description: "Embla on web, reanimated-carousel on RN", category: "media", canHaveChildren: true },
|
|
88
88
|
// ===== interactive =====
|
|
89
|
-
button: { description: "Mantine Button / HeroUI Button", category: "interactive",
|
|
90
|
-
link: { description: "Anchor / Pressable navigation", category: "interactive",
|
|
91
|
-
"action-icon": { description: "Mantine ActionIcon", category: "interactive",
|
|
92
|
-
alert: { description: "Mantine Alert", category: "interactive",
|
|
93
|
-
badge: { description: "Mantine Badge", category: "interactive",
|
|
94
|
-
avatar: { description: "Mantine Avatar", category: "interactive",
|
|
95
|
-
chip: { description: "Mantine Chip", category: "interactive",
|
|
96
|
-
indicator: { description: "Mantine Indicator dot", category: "interactive",
|
|
97
|
-
"theme-icon": { description: "Mantine ThemeIcon", category: "interactive",
|
|
98
|
-
notification: { description: "Mantine Notification", category: "interactive",
|
|
89
|
+
button: { description: "Mantine Button / HeroUI Button", category: "interactive", canHaveChildren: false },
|
|
90
|
+
link: { description: "Anchor / Pressable navigation", category: "interactive", canHaveChildren: false },
|
|
91
|
+
"action-icon": { description: "Mantine ActionIcon", category: "interactive", canHaveChildren: false },
|
|
92
|
+
alert: { description: "Mantine Alert", category: "interactive", canHaveChildren: true },
|
|
93
|
+
badge: { description: "Mantine Badge", category: "interactive", canHaveChildren: false },
|
|
94
|
+
avatar: { description: "Mantine Avatar", category: "interactive", canHaveChildren: false },
|
|
95
|
+
chip: { description: "Mantine Chip", category: "interactive", canHaveChildren: false },
|
|
96
|
+
indicator: { description: "Mantine Indicator dot", category: "interactive", canHaveChildren: true },
|
|
97
|
+
"theme-icon": { description: "Mantine ThemeIcon", category: "interactive", canHaveChildren: false },
|
|
98
|
+
notification: { description: "Mantine Notification", category: "interactive", canHaveChildren: false },
|
|
99
99
|
// ===== forms =====
|
|
100
|
-
"form-log": { description: "Append-only form (one row per submit)", category: "forms",
|
|
101
|
-
"form-record": { description: "Per-user record form", category: "forms",
|
|
102
|
-
input: { description: "Plain HTML input", category: "forms",
|
|
103
|
-
"text-input": { description: "Mantine TextInput", category: "forms",
|
|
104
|
-
textarea: { description: "Mantine Textarea", category: "forms",
|
|
105
|
-
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms",
|
|
106
|
-
select: { description: "HTML select / Mantine Select", category: "forms",
|
|
107
|
-
radio: { description: "Mantine Radio / RadioGroup", category: "forms",
|
|
108
|
-
checkbox: { description: "Mantine Checkbox", category: "forms",
|
|
109
|
-
slider: { description: "Mantine Slider", category: "forms",
|
|
110
|
-
"range-slider": { description: "Mantine RangeSlider", category: "forms",
|
|
111
|
-
datepicker: { description: "Mantine DatePicker", category: "forms",
|
|
112
|
-
switch: { description: "Mantine Switch", category: "forms",
|
|
113
|
-
combobox: { description: "Mantine Combobox", category: "forms",
|
|
114
|
-
"color-input": { description: "Mantine ColorInput", category: "forms",
|
|
115
|
-
"color-picker": { description: "Mantine ColorPicker", category: "forms",
|
|
116
|
-
"file-input": { description: "Mantine FileInput / DocumentPicker on RN", category: "forms",
|
|
117
|
-
"number-input": { description: "Mantine NumberInput", category: "forms",
|
|
118
|
-
"segmented-control": { description: "Mantine SegmentedControl", category: "forms",
|
|
119
|
-
rating: { description: "Mantine Rating", category: "forms",
|
|
120
|
-
progress: { description: "Mantine Progress", category: "forms",
|
|
121
|
-
"progress-root": { description: "Mantine Progress.Root", category: "forms",
|
|
122
|
-
"progress-section": { description: "Mantine Progress.Section", category: "forms",
|
|
100
|
+
"form-log": { description: "Append-only form (one row per submit)", category: "forms", canHaveChildren: true },
|
|
101
|
+
"form-record": { description: "Per-user record form", category: "forms", canHaveChildren: true },
|
|
102
|
+
input: { description: "Plain HTML input", category: "forms", canHaveChildren: false },
|
|
103
|
+
"text-input": { description: "Mantine TextInput", category: "forms", canHaveChildren: false },
|
|
104
|
+
textarea: { description: "Mantine Textarea", category: "forms", canHaveChildren: false },
|
|
105
|
+
"rich-text-editor": { description: "Tiptap editor on web; native inline-format toolbar editor on mobile", category: "forms", canHaveChildren: false },
|
|
106
|
+
select: { description: "HTML select / Mantine Select", category: "forms", canHaveChildren: false },
|
|
107
|
+
radio: { description: "Mantine Radio / RadioGroup", category: "forms", canHaveChildren: false },
|
|
108
|
+
checkbox: { description: "Mantine Checkbox", category: "forms", canHaveChildren: false },
|
|
109
|
+
slider: { description: "Mantine Slider", category: "forms", canHaveChildren: false },
|
|
110
|
+
"range-slider": { description: "Mantine RangeSlider", category: "forms", canHaveChildren: false },
|
|
111
|
+
datepicker: { description: "Mantine DatePicker", category: "forms", canHaveChildren: false },
|
|
112
|
+
switch: { description: "Mantine Switch", category: "forms", canHaveChildren: false },
|
|
113
|
+
combobox: { description: "Mantine Combobox", category: "forms", canHaveChildren: false },
|
|
114
|
+
"color-input": { description: "Mantine ColorInput", category: "forms", canHaveChildren: false },
|
|
115
|
+
"color-picker": { description: "Mantine ColorPicker", category: "forms", canHaveChildren: false },
|
|
116
|
+
"file-input": { description: "Mantine FileInput / DocumentPicker on RN", category: "forms", canHaveChildren: false },
|
|
117
|
+
"number-input": { description: "Mantine NumberInput", category: "forms", canHaveChildren: false },
|
|
118
|
+
"segmented-control": { description: "Mantine SegmentedControl", category: "forms", canHaveChildren: false },
|
|
119
|
+
rating: { description: "Mantine Rating", category: "forms", canHaveChildren: false },
|
|
120
|
+
progress: { description: "Mantine Progress", category: "forms", canHaveChildren: false },
|
|
121
|
+
"progress-root": { description: "Mantine Progress.Root", category: "forms", canHaveChildren: true },
|
|
122
|
+
"progress-section": { description: "Mantine Progress.Section", category: "forms", canHaveChildren: false },
|
|
123
123
|
// ===== composite =====
|
|
124
|
-
accordion: { description: "Mantine Accordion", category: "composite",
|
|
125
|
-
"accordion-item": { description: "Mantine Accordion.Item", category: "composite",
|
|
126
|
-
tabs: { description: "Mantine Tabs", category: "composite",
|
|
127
|
-
tab: { description: "Mantine Tabs.Tab + Tabs.Panel pair", category: "composite",
|
|
128
|
-
timeline: { description: "Mantine Timeline", category: "composite",
|
|
129
|
-
list: { description: "Mantine List", category: "composite",
|
|
130
|
-
"list-item": { description: "Mantine List.Item", category: "composite",
|
|
131
|
-
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite",
|
|
132
|
-
"entry-record": { description: "Single-record container", category: "composite",
|
|
133
|
-
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite",
|
|
134
|
-
loop: { description: "Loop / repeater over backend-provided rows", category: "composite",
|
|
135
|
-
"timeline-item": { description: "A single entry inside a timeline (child-only)", category: "composite",
|
|
124
|
+
accordion: { description: "Mantine Accordion", category: "composite", canHaveChildren: true },
|
|
125
|
+
"accordion-item": { description: "Mantine Accordion.Item", category: "composite", canHaveChildren: true },
|
|
126
|
+
tabs: { description: "Mantine Tabs", category: "composite", canHaveChildren: true },
|
|
127
|
+
tab: { description: "Mantine Tabs.Tab + Tabs.Panel pair", category: "composite", canHaveChildren: true },
|
|
128
|
+
timeline: { description: "Mantine Timeline", category: "composite", canHaveChildren: true },
|
|
129
|
+
list: { description: "Mantine List", category: "composite", canHaveChildren: true },
|
|
130
|
+
"list-item": { description: "Mantine List.Item", category: "composite", canHaveChildren: true },
|
|
131
|
+
"entry-list": { description: "Data-driven list of entries (form-log table)", category: "composite", canHaveChildren: true },
|
|
132
|
+
"entry-record": { description: "Single-record container", category: "composite", canHaveChildren: true },
|
|
133
|
+
"entry-record-delete": { description: "Inline delete confirmation for an entry", category: "composite", canHaveChildren: false },
|
|
134
|
+
loop: { description: "Loop / repeater over backend-provided rows", category: "composite", canHaveChildren: true },
|
|
135
|
+
"timeline-item": { description: "A single entry inside a timeline (child-only)", category: "composite", canHaveChildren: true },
|
|
136
136
|
// ===== system / data / reference (established backend catalog) =====
|
|
137
|
-
"no-access": { description: "Access-denied surface shown when the user lacks page access", category: "auth",
|
|
138
|
-
missing: { description: 'Generic "content missing" system surface', category: "auth",
|
|
139
|
-
"not-found": { description: "Page-not-found system surface", category: "auth",
|
|
140
|
-
version: { description: "Build/version diagnostic surface", category: "auth",
|
|
141
|
-
"ref-container": { description: "Renders content referenced from another section", category: "layout",
|
|
142
|
-
"data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout",
|
|
143
|
-
"show-user-input": { description: "Displays previously submitted user input as a list/card view", category: "forms",
|
|
137
|
+
"no-access": { description: "Access-denied surface shown when the user lacks page access", category: "auth", canHaveChildren: false },
|
|
138
|
+
missing: { description: 'Generic "content missing" system surface', category: "auth", canHaveChildren: false },
|
|
139
|
+
"not-found": { description: "Page-not-found system surface", category: "auth", canHaveChildren: false },
|
|
140
|
+
version: { description: "Build/version diagnostic surface", category: "auth", canHaveChildren: false },
|
|
141
|
+
"ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
|
|
142
|
+
"data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
|
|
143
|
+
"show-user-input": { description: "Displays previously submitted user input as a list/card view", category: "forms", canHaveChildren: false }
|
|
144
144
|
};
|
|
145
145
|
var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
|
|
146
146
|
var PLUGIN_STYLE_REGISTRY = {};
|