@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.cjs
CHANGED
|
@@ -115,6 +115,7 @@ var t = {
|
|
|
115
115
|
onActionPrimary: "#04252A",
|
|
116
116
|
actionSecondaryBorder: "#7C8894",
|
|
117
117
|
actionSecondaryText: "#F2F4F6",
|
|
118
|
+
actionText: "#5AD3E2",
|
|
118
119
|
brand: "#5AD3E2",
|
|
119
120
|
onBrand: "#04252A",
|
|
120
121
|
brandFill: "#0E7C8C",
|
|
@@ -202,6 +203,7 @@ var light = {
|
|
|
202
203
|
onActionPrimary: "#FFFFFF",
|
|
203
204
|
actionSecondaryBorder: "#6F7883",
|
|
204
205
|
actionSecondaryText: "#14181D",
|
|
206
|
+
actionText: "#0A6673",
|
|
205
207
|
brand: "#0A6673",
|
|
206
208
|
onBrand: "#FFFFFF",
|
|
207
209
|
brandFill: "#0A6673",
|
|
@@ -682,24 +684,34 @@ function H({
|
|
|
682
684
|
testID
|
|
683
685
|
}) {
|
|
684
686
|
const tema = useTema();
|
|
685
|
-
return
|
|
686
|
-
/*
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
687
|
+
return (
|
|
688
|
+
/*
|
|
689
|
+
* `ark-tittel` er ETT fast punkt i arket, likt i hvert steg (#304): iOS-flytene lukker
|
|
690
|
+
* tastaturet med et trykk på tomt område fordi Maestros `hideKeyboard` ikke finnes der,
|
|
691
|
+
* og det var settets eneste koordinatavhengige linje. Bare skjermens EGEN overskrift
|
|
692
|
+
* (`nivaa` 2) får den — en overskrift inne i et kort eller en dialog er `nivaa` 3, og to
|
|
693
|
+
* like testID-er på skjermen gjør flyten tvetydig. Den valgfrie `testID` står fortsatt
|
|
694
|
+
* på teksten, så ingen eksisterende flyt eller test flytter seg.
|
|
695
|
+
*/
|
|
696
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_native2.View, { testID: nivaa === 2 ? "ark-tittel" : void 0, style: { gap: tema.space.xs }, children: [
|
|
697
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
698
|
+
import_react_native2.Text,
|
|
699
|
+
{
|
|
700
|
+
testID,
|
|
701
|
+
accessibilityRole: "header",
|
|
702
|
+
style: {
|
|
703
|
+
color: tema.color.textPrimary,
|
|
704
|
+
fontSize: nivaa === 2 ? tema.font.h2 : tema.font.h3,
|
|
705
|
+
lineHeight: nivaa === 2 ? tema.lineHeight.h2 : tema.lineHeight.h3,
|
|
706
|
+
fontWeight: tema.weight.bold
|
|
707
|
+
},
|
|
708
|
+
children
|
|
709
|
+
}
|
|
710
|
+
),
|
|
711
|
+
sub ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Sek, { children: sub }) : null,
|
|
712
|
+
meta ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Meta, { children: meta }) : null
|
|
713
|
+
] })
|
|
714
|
+
);
|
|
703
715
|
}
|
|
704
716
|
function Brodtekst({ children, testID }) {
|
|
705
717
|
const tema = useTema();
|
|
@@ -766,7 +778,7 @@ function Tekstknapp({
|
|
|
766
778
|
accessibilityLabel
|
|
767
779
|
}) {
|
|
768
780
|
const tema = useTema();
|
|
769
|
-
const farge = disabled ? tema.color.textDisabled : noytral ? tema.color.textPrimary : tema.color.
|
|
781
|
+
const farge = disabled ? tema.color.textDisabled : noytral ? tema.color.textPrimary : tema.color.actionText;
|
|
770
782
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
771
783
|
import_react_native2.Pressable,
|
|
772
784
|
{
|
|
@@ -1499,7 +1511,7 @@ function Felt({
|
|
|
1499
1511
|
}
|
|
1500
1512
|
),
|
|
1501
1513
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_native3.Text, { style: { flex: 1, color: tema.color.textSecondary, fontSize: tema.font.body, lineHeight: tema.lineHeight.body }, children: apen ? tekst.kontekstLinjeApen : tekst.kontekstLinjeLukket }),
|
|
1502
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_native3.Text, { style: { color: tema.color.
|
|
1514
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_native3.Text, { style: { color: tema.color.actionText, fontSize: tema.font.body, fontWeight: tema.weight.semibold }, children: apen ? tekst.kontekstSkjul : tekst.kontekstVis })
|
|
1503
1515
|
]
|
|
1504
1516
|
}
|
|
1505
1517
|
),
|
|
@@ -3266,8 +3278,8 @@ function Aksept({
|
|
|
3266
3278
|
onPress: () => void import_react_native13.Linking.openURL(String(program.termsUrl)),
|
|
3267
3279
|
style: { minHeight: tema.touch, flexDirection: "row", alignItems: "center", gap: tema.space.sm },
|
|
3268
3280
|
children: [
|
|
3269
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Ikon, { navn: "open-outline", storrelse: "minste", farge: tema.color.
|
|
3270
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_native13.Text, { style: { color: tema.color.
|
|
3281
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Ikon, { navn: "open-outline", storrelse: "minste", farge: tema.color.actionText }),
|
|
3282
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_native13.Text, { style: { color: tema.color.actionText, fontSize: tema.font.body, fontWeight: tema.weight.semibold }, children: tekst.akseptVilkar })
|
|
3271
3283
|
]
|
|
3272
3284
|
}
|
|
3273
3285
|
) : null,
|