@microbit/ui 0.1.0-alpha.16 → 0.1.0-alpha.18

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.
@@ -1,54 +0,0 @@
1
- /**
2
- * (c) 2026, Micro:bit Educational Foundation and contributors
3
- *
4
- * SPDX-License-Identifier: MIT
5
- */
6
- import { defineSlotRecipe } from "@pandacss/dev";
7
-
8
- /**
9
- * Field slot recipe — Chakra's FormControl parts (FormLabel/FormHelperText/
10
- * FormErrorMessage, light mode). Consumed by the shared-ui TextField, which
11
- * maps the slots onto react-aria-components' TextField/Label/Text/FieldError;
12
- * the input itself is styled by the `input` recipe (Input.recipe.ts).
13
- *
14
- * Registered in the base preset (base-preset.ts). No variants, so it
15
- * needs no `staticCss` entry.
16
- */
17
- export const field = defineSlotRecipe({
18
- className: "field",
19
- slots: ["root", "label", "requiredIndicator", "helperText", "errorMessage"],
20
- base: {
21
- root: {
22
- display: "flex",
23
- flexDirection: "column",
24
- alignItems: "stretch",
25
- width: "100%",
26
- },
27
- label: {
28
- display: "block",
29
- fontSize: "md",
30
- fontWeight: "medium",
31
- marginEnd: "3",
32
- mb: "2",
33
- "&[data-disabled]": { opacity: 0.4 },
34
- },
35
- requiredIndicator: {
36
- marginStart: "1",
37
- color: "danger.500",
38
- },
39
- helperText: {
40
- mt: "2",
41
- fontSize: "sm",
42
- lineHeight: "normal",
43
- color: "gray.600",
44
- },
45
- errorMessage: {
46
- display: "flex",
47
- alignItems: "center",
48
- mt: "2",
49
- fontSize: "sm",
50
- lineHeight: "normal",
51
- color: "danger.500",
52
- },
53
- },
54
- });