@innspel/react-native 0.11.0 → 0.11.1
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/dist/index.cjs +34 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +34 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -101,7 +101,7 @@ interface ScreenshotAdapterOptions {
|
|
|
101
101
|
declare function createScreenshotAdapter(captureRef: CaptureRefFn, options?: ScreenshotAdapterOptions): ScreenshotAdapter;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* tokens.ts — GENERERT fra theme/theme.ts (avtrykk
|
|
104
|
+
* tokens.ts — GENERERT fra theme/theme.ts (avtrykk 8d9d03227be9).
|
|
105
105
|
* Rediger aldri denne filen. Endre temaet i kilden og kjør
|
|
106
106
|
* `node scripts/generate-tokens.ts`, som CI verifiserer med `--check`.
|
|
107
107
|
*
|
|
@@ -109,7 +109,7 @@ declare function createScreenshotAdapter(captureRef: CaptureRefFn, options?: Scr
|
|
|
109
109
|
* Widgeten lever inne i vertsappen og skal arve dens flate (DD-21); dette er
|
|
110
110
|
* bunnen, ikke fasiten.
|
|
111
111
|
*
|
|
112
|
-
*
|
|
112
|
+
* 83 kontrastpar er målt mot WCAG AA i begge paletter, og generatoren
|
|
113
113
|
* nekter å skrive hvis ett faller under kravet. Farge bærer aldri mening alene
|
|
114
114
|
* — hver status har ikon og tekstetikett (DD-08).
|
|
115
115
|
*
|
|
@@ -133,6 +133,7 @@ declare const t: {
|
|
|
133
133
|
readonly onActionPrimary: "#04252A";
|
|
134
134
|
readonly actionSecondaryBorder: "#7C8894";
|
|
135
135
|
readonly actionSecondaryText: "#F2F4F6";
|
|
136
|
+
readonly actionText: "#5AD3E2";
|
|
136
137
|
readonly brand: "#5AD3E2";
|
|
137
138
|
readonly onBrand: "#04252A";
|
|
138
139
|
readonly brandFill: "#0E7C8C";
|
|
@@ -224,6 +225,7 @@ declare const light: {
|
|
|
224
225
|
readonly onActionPrimary: "#FFFFFF";
|
|
225
226
|
readonly actionSecondaryBorder: "#6F7883";
|
|
226
227
|
readonly actionSecondaryText: "#14181D";
|
|
228
|
+
readonly actionText: "#0A6673";
|
|
227
229
|
readonly brand: "#0A6673";
|
|
228
230
|
readonly onBrand: "#FFFFFF";
|
|
229
231
|
readonly brandFill: "#0A6673";
|
package/dist/index.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ interface ScreenshotAdapterOptions {
|
|
|
101
101
|
declare function createScreenshotAdapter(captureRef: CaptureRefFn, options?: ScreenshotAdapterOptions): ScreenshotAdapter;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* tokens.ts — GENERERT fra theme/theme.ts (avtrykk
|
|
104
|
+
* tokens.ts — GENERERT fra theme/theme.ts (avtrykk 8d9d03227be9).
|
|
105
105
|
* Rediger aldri denne filen. Endre temaet i kilden og kjør
|
|
106
106
|
* `node scripts/generate-tokens.ts`, som CI verifiserer med `--check`.
|
|
107
107
|
*
|
|
@@ -109,7 +109,7 @@ declare function createScreenshotAdapter(captureRef: CaptureRefFn, options?: Scr
|
|
|
109
109
|
* Widgeten lever inne i vertsappen og skal arve dens flate (DD-21); dette er
|
|
110
110
|
* bunnen, ikke fasiten.
|
|
111
111
|
*
|
|
112
|
-
*
|
|
112
|
+
* 83 kontrastpar er målt mot WCAG AA i begge paletter, og generatoren
|
|
113
113
|
* nekter å skrive hvis ett faller under kravet. Farge bærer aldri mening alene
|
|
114
114
|
* — hver status har ikon og tekstetikett (DD-08).
|
|
115
115
|
*
|
|
@@ -133,6 +133,7 @@ declare const t: {
|
|
|
133
133
|
readonly onActionPrimary: "#04252A";
|
|
134
134
|
readonly actionSecondaryBorder: "#7C8894";
|
|
135
135
|
readonly actionSecondaryText: "#F2F4F6";
|
|
136
|
+
readonly actionText: "#5AD3E2";
|
|
136
137
|
readonly brand: "#5AD3E2";
|
|
137
138
|
readonly onBrand: "#04252A";
|
|
138
139
|
readonly brandFill: "#0E7C8C";
|
|
@@ -224,6 +225,7 @@ declare const light: {
|
|
|
224
225
|
readonly onActionPrimary: "#FFFFFF";
|
|
225
226
|
readonly actionSecondaryBorder: "#6F7883";
|
|
226
227
|
readonly actionSecondaryText: "#14181D";
|
|
228
|
+
readonly actionText: "#0A6673";
|
|
227
229
|
readonly brand: "#0A6673";
|
|
228
230
|
readonly onBrand: "#FFFFFF";
|
|
229
231
|
readonly brandFill: "#0A6673";
|
package/dist/index.js
CHANGED
|
@@ -74,6 +74,7 @@ var t = {
|
|
|
74
74
|
onActionPrimary: "#04252A",
|
|
75
75
|
actionSecondaryBorder: "#7C8894",
|
|
76
76
|
actionSecondaryText: "#F2F4F6",
|
|
77
|
+
actionText: "#5AD3E2",
|
|
77
78
|
brand: "#5AD3E2",
|
|
78
79
|
onBrand: "#04252A",
|
|
79
80
|
brandFill: "#0E7C8C",
|
|
@@ -161,6 +162,7 @@ var light = {
|
|
|
161
162
|
onActionPrimary: "#FFFFFF",
|
|
162
163
|
actionSecondaryBorder: "#6F7883",
|
|
163
164
|
actionSecondaryText: "#14181D",
|
|
165
|
+
actionText: "#0A6673",
|
|
164
166
|
brand: "#0A6673",
|
|
165
167
|
onBrand: "#FFFFFF",
|
|
166
168
|
brandFill: "#0A6673",
|
|
@@ -644,24 +646,34 @@ function H({
|
|
|
644
646
|
testID
|
|
645
647
|
}) {
|
|
646
648
|
const tema = useTema();
|
|
647
|
-
return
|
|
648
|
-
/*
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
649
|
+
return (
|
|
650
|
+
/*
|
|
651
|
+
* `ark-tittel` er ETT fast punkt i arket, likt i hvert steg (#304): iOS-flytene lukker
|
|
652
|
+
* tastaturet med et trykk på tomt område fordi Maestros `hideKeyboard` ikke finnes der,
|
|
653
|
+
* og det var settets eneste koordinatavhengige linje. Bare skjermens EGEN overskrift
|
|
654
|
+
* (`nivaa` 2) får den — en overskrift inne i et kort eller en dialog er `nivaa` 3, og to
|
|
655
|
+
* like testID-er på skjermen gjør flyten tvetydig. Den valgfrie `testID` står fortsatt
|
|
656
|
+
* på teksten, så ingen eksisterende flyt eller test flytter seg.
|
|
657
|
+
*/
|
|
658
|
+
/* @__PURE__ */ jsxs(View, { testID: nivaa === 2 ? "ark-tittel" : void 0, style: { gap: tema.space.xs }, children: [
|
|
659
|
+
/* @__PURE__ */ jsx2(
|
|
660
|
+
Text,
|
|
661
|
+
{
|
|
662
|
+
testID,
|
|
663
|
+
accessibilityRole: "header",
|
|
664
|
+
style: {
|
|
665
|
+
color: tema.color.textPrimary,
|
|
666
|
+
fontSize: nivaa === 2 ? tema.font.h2 : tema.font.h3,
|
|
667
|
+
lineHeight: nivaa === 2 ? tema.lineHeight.h2 : tema.lineHeight.h3,
|
|
668
|
+
fontWeight: tema.weight.bold
|
|
669
|
+
},
|
|
670
|
+
children
|
|
671
|
+
}
|
|
672
|
+
),
|
|
673
|
+
sub ? /* @__PURE__ */ jsx2(Sek, { children: sub }) : null,
|
|
674
|
+
meta ? /* @__PURE__ */ jsx2(Meta, { children: meta }) : null
|
|
675
|
+
] })
|
|
676
|
+
);
|
|
665
677
|
}
|
|
666
678
|
function Brodtekst({ children, testID }) {
|
|
667
679
|
const tema = useTema();
|
|
@@ -728,7 +740,7 @@ function Tekstknapp({
|
|
|
728
740
|
accessibilityLabel
|
|
729
741
|
}) {
|
|
730
742
|
const tema = useTema();
|
|
731
|
-
const farge = disabled ? tema.color.textDisabled : noytral ? tema.color.textPrimary : tema.color.
|
|
743
|
+
const farge = disabled ? tema.color.textDisabled : noytral ? tema.color.textPrimary : tema.color.actionText;
|
|
732
744
|
return /* @__PURE__ */ jsxs(
|
|
733
745
|
Pressable,
|
|
734
746
|
{
|
|
@@ -1461,7 +1473,7 @@ function Felt({
|
|
|
1461
1473
|
}
|
|
1462
1474
|
),
|
|
1463
1475
|
/* @__PURE__ */ jsx3(Text2, { style: { flex: 1, color: tema.color.textSecondary, fontSize: tema.font.body, lineHeight: tema.lineHeight.body }, children: apen ? tekst.kontekstLinjeApen : tekst.kontekstLinjeLukket }),
|
|
1464
|
-
/* @__PURE__ */ jsx3(Text2, { style: { color: tema.color.
|
|
1476
|
+
/* @__PURE__ */ jsx3(Text2, { style: { color: tema.color.actionText, fontSize: tema.font.body, fontWeight: tema.weight.semibold }, children: apen ? tekst.kontekstSkjul : tekst.kontekstVis })
|
|
1465
1477
|
]
|
|
1466
1478
|
}
|
|
1467
1479
|
),
|
|
@@ -3230,8 +3242,8 @@ function Aksept({
|
|
|
3230
3242
|
onPress: () => void Linking.openURL(String(program.termsUrl)),
|
|
3231
3243
|
style: { minHeight: tema.touch, flexDirection: "row", alignItems: "center", gap: tema.space.sm },
|
|
3232
3244
|
children: [
|
|
3233
|
-
/* @__PURE__ */ jsx13(Ikon, { navn: "open-outline", storrelse: "minste", farge: tema.color.
|
|
3234
|
-
/* @__PURE__ */ jsx13(Text9, { style: { color: tema.color.
|
|
3245
|
+
/* @__PURE__ */ jsx13(Ikon, { navn: "open-outline", storrelse: "minste", farge: tema.color.actionText }),
|
|
3246
|
+
/* @__PURE__ */ jsx13(Text9, { style: { color: tema.color.actionText, fontSize: tema.font.body, fontWeight: tema.weight.semibold }, children: tekst.akseptVilkar })
|
|
3235
3247
|
]
|
|
3236
3248
|
}
|
|
3237
3249
|
) : null,
|