@scripso-homepad/ui 0.4.12 → 0.4.14
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/README.md +2 -1
- package/dist/{chunk-YSDLHEJ7.js → chunk-ANDWP4YU.js} +27 -10
- package/dist/chunk-ANDWP4YU.js.map +1 -0
- package/dist/index.cjs +79 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -5
- package/dist/index.d.ts +40 -5
- package/dist/index.js +56 -52
- package/dist/index.js.map +1 -1
- package/dist/web/index.cjs +68 -47
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.css +2 -2
- package/dist/web/index.css.map +1 -1
- package/dist/web/index.d.cts +9 -2
- package/dist/web/index.d.ts +9 -2
- package/dist/web/index.js +50 -40
- package/dist/web/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CountryCodeSelector.tsx +2 -1
- package/src/components/DatePicker.tsx +2 -2
- package/src/components/Input.tsx +8 -1
- package/src/components/PhoneInput.tsx +37 -34
- package/src/components/Select.tsx +2 -2
- package/src/index.ts +1 -0
- package/src/theme/calendar.ts +6 -6
- package/src/theme/tokens.ts +21 -7
- package/src/web/components/Drawer.stories.tsx +1 -1
- package/src/web/components/TableActionsMenu.tsx +25 -6
- package/src/web/components/sonner-toast.css +2 -2
- package/src/web/components/table/TablePrimitives.tsx +5 -1
- package/src/web/icons/TableMenuActivateIcon.tsx +2 -2
- package/src/web/icons/TableMenuEditIcon.tsx +2 -2
- package/src/web/icons/TableMenuSuspendIcon.tsx +2 -9
- package/src/web/layout/AppHeader.tsx +15 -11
- package/src/web/mutation-toast.ts +14 -2
- package/dist/chunk-YSDLHEJ7.js.map +0 -1
package/README.md
CHANGED
|
@@ -203,6 +203,7 @@ Extends React Native `TextInput` props.
|
|
|
203
203
|
| `hint` | `string` | — | Helper text below the field |
|
|
204
204
|
| `className` | `string` | — | Wrapper CSS classes (web) |
|
|
205
205
|
| `labelClassName` | `string` | — | Label CSS classes (web) |
|
|
206
|
+
| `labelStyles` | `StyleProp<TextStyle>` | — | Label styles (overrides default 12/16/500) |
|
|
206
207
|
| `inputClassName` | `string` | — | Input CSS classes (web) |
|
|
207
208
|
| `errorClassName` | `string` | — | Error message CSS classes (web) |
|
|
208
209
|
| `hintClassName` | `string` | — | Hint message CSS classes (web) |
|
|
@@ -220,7 +221,7 @@ Same props as `Input`, plus:
|
|
|
220
221
|
| `countryCode` | `string` | Selected country code (e.g. `"AM"`) |
|
|
221
222
|
| `onCountryCodeChange` | `(code: string) => void` | Country selection handler |
|
|
222
223
|
|
|
223
|
-
Error and hint messages render under the phone
|
|
224
|
+
Error and hint messages render under the full phone row (aligned with the country selector), matching the field label.
|
|
224
225
|
|
|
225
226
|
### `CountryCodeSelector`
|
|
226
227
|
|
|
@@ -217,6 +217,14 @@ var fontSize = {
|
|
|
217
217
|
xl: 24,
|
|
218
218
|
xxl: 32
|
|
219
219
|
};
|
|
220
|
+
var typographyScale = {
|
|
221
|
+
12: { fontSize: 12, lineHeight: 16 },
|
|
222
|
+
14: { fontSize: 14, lineHeight: 19 },
|
|
223
|
+
18: { fontSize: 18, lineHeight: 24 },
|
|
224
|
+
20: { fontSize: 20, lineHeight: 27 },
|
|
225
|
+
24: { fontSize: 24, lineHeight: 25 },
|
|
226
|
+
32: { fontSize: 32, lineHeight: 34 }
|
|
227
|
+
};
|
|
220
228
|
var fontWeight = {
|
|
221
229
|
regular: "400",
|
|
222
230
|
medium: "500",
|
|
@@ -228,24 +236,24 @@ var fonts = {
|
|
|
228
236
|
};
|
|
229
237
|
var labelTypography = {
|
|
230
238
|
fontFamily: fonts.sans,
|
|
231
|
-
fontSize: fontSize
|
|
239
|
+
fontSize: typographyScale[12].fontSize,
|
|
232
240
|
fontWeight: fontWeight.medium,
|
|
233
|
-
lineHeight:
|
|
241
|
+
lineHeight: typographyScale[12].lineHeight,
|
|
234
242
|
letterSpacing: 0
|
|
235
243
|
};
|
|
236
244
|
var buttonTypography = {
|
|
237
245
|
lg: {
|
|
238
246
|
fontFamily: fonts.sans,
|
|
239
|
-
fontSize: 14,
|
|
247
|
+
fontSize: typographyScale[14].fontSize,
|
|
240
248
|
fontWeight: fontWeight.semibold,
|
|
241
|
-
lineHeight:
|
|
249
|
+
lineHeight: typographyScale[14].lineHeight,
|
|
242
250
|
letterSpacing: 0
|
|
243
251
|
},
|
|
244
252
|
sm: {
|
|
245
253
|
fontFamily: fonts.sans,
|
|
246
|
-
fontSize: 12,
|
|
254
|
+
fontSize: typographyScale[12].fontSize,
|
|
247
255
|
fontWeight: fontWeight.semibold,
|
|
248
|
-
lineHeight:
|
|
256
|
+
lineHeight: typographyScale[12].lineHeight,
|
|
249
257
|
letterSpacing: 0
|
|
250
258
|
}
|
|
251
259
|
};
|
|
@@ -723,6 +731,7 @@ function Input({
|
|
|
723
731
|
fieldClassName,
|
|
724
732
|
fieldStyle,
|
|
725
733
|
labelClassName,
|
|
734
|
+
labelStyles,
|
|
726
735
|
inputClassName,
|
|
727
736
|
errorClassName,
|
|
728
737
|
hintClassName,
|
|
@@ -784,7 +793,15 @@ function Input({
|
|
|
784
793
|
}
|
|
785
794
|
) : rightIcon ? renderInputIcon(rightIcon, iconColor) : null;
|
|
786
795
|
return /* @__PURE__ */ jsxs(View, { ref: wrapperRef, style: [styles3.wrapper, containerStyle], children: [
|
|
787
|
-
label ? /* @__PURE__ */ jsx(
|
|
796
|
+
label ? /* @__PURE__ */ jsx(
|
|
797
|
+
Label,
|
|
798
|
+
{
|
|
799
|
+
disabled: isDisabled,
|
|
800
|
+
className: labelClassName,
|
|
801
|
+
style: labelStyles,
|
|
802
|
+
children: label
|
|
803
|
+
}
|
|
804
|
+
) : null,
|
|
788
805
|
/* @__PURE__ */ jsx(View, { style: fieldStyles.outline, children: /* @__PURE__ */ jsxs(
|
|
789
806
|
View,
|
|
790
807
|
{
|
|
@@ -847,6 +864,6 @@ var styles3 = StyleSheet.create({
|
|
|
847
864
|
}
|
|
848
865
|
});
|
|
849
866
|
|
|
850
|
-
export { Button, INPUT_ICON_GAP, Input, Label, __commonJS, __require, __toESM, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, getInputFieldStyles, inputFieldMetrics, labelTypography, navy, radii, resolveInputVisualState, rubyRed, shadows, spacing, stormGray, useApplyWebClassName };
|
|
851
|
-
//# sourceMappingURL=chunk-
|
|
852
|
-
//# sourceMappingURL=chunk-
|
|
867
|
+
export { Button, INPUT_ICON_GAP, Input, Label, __commonJS, __require, __toESM, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, getInputFieldStyles, inputFieldMetrics, labelTypography, navy, radii, resolveInputVisualState, rubyRed, shadows, spacing, stormGray, typographyScale, useApplyWebClassName };
|
|
868
|
+
//# sourceMappingURL=chunk-ANDWP4YU.js.map
|
|
869
|
+
//# sourceMappingURL=chunk-ANDWP4YU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/tokens.ts","../src/icons/arrowUpRightPath.ts","../src/icons/ArrowUpRightIcon.tsx","../src/utils/useApplyWebClassName.ts","../src/components/Button.tsx","../src/components/Label.tsx","../src/icons/eyeIconPaths.ts","../src/icons/EyeIcon.tsx","../src/icons/EyeOffIcon.tsx","../src/theme/input.ts","../src/components/Input.tsx"],"names":["Platform","jsx","useRef","jsxs","Text","styles","StyleSheet","Svg","Path","View"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAM,SAAA,GAAY;AAAA,EACvB,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO,SAAA;AAAA,EACP,GAAA,EAAK,SAAA;AAAA,EACL,KAAA,EAAO,SAAA;AAAA,EACP,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EACL,GAAA,EAAK,SAAA;AAAA,EAC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C,OAAAA,CAAO,KAAA,GAAQA,OAAAA,CAAO,IAAA,EACxD,yBACH,CAAA,GACE;AAAA,GAAA,EACN,CAAA;AAEJ;AAEA,IAAMA,OAAAA,GAASC,WAAW,MAAA,CAAO;AAAA,EAC/B,OAAA,EAAS;AAAA,IACP,KAAA,EAAO,MAAA;AAAA,IACP,KAAK,OAAA,CAAQ;AAAA,GACf;AAAA,EACA,QAAA,EAAU;AAAA,IACR,KAAA,EAAO,eAAA;AAAA,IACP,MAAA,EAAQ,eAAA;AAAA,IACR,UAAA,EAAY,QAAA;AAAA,IACZ,cAAA,EAAgB,QAAA;AAAA,IAChB,UAAA,EAAY;AAAA,GACd;AAAA,EACA,aAAA,EAAe;AAAA,IACb,KAAA,EAAO,eAAA;AAAA,IACP,MAAA,EAAQ,eAAA;AAAA,IACR,UAAA,EAAY,QAAA;AAAA,IACZ,cAAA,EAAgB;AAAA,GAClB;AAAA,EACA,KAAA,EAAO;AAAA,IACL,QAAA,EAAU,EAAA;AAAA,IACV,UAAA,EAAY,EAAA;AAAA,IACZ,OAAO,MAAA,CAAO;AAAA,GAChB;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,QAAA,EAAU,EAAA;AAAA,IACV,UAAA,EAAY,EAAA;AAAA,IACZ,OAAO,MAAA,CAAO;AAAA;AAElB,CAAC,CAAA","file":"chunk-ANDWP4YU.js","sourcesContent":["/**\n * HomePad design tokens — aligned with the Figma design system\n * (navy / storm gray / slate-blue palette from HomePad brand).\n */\n\n/** Storm Gray scale — Figma steps 0 → 8.5 */\nexport const stormGray = {\n \"0\": \"#fbfcfc\",\n \"0.5\": \"#eceef0\",\n \"1\": \"#dadde0\",\n \"1.5\": \"#c7cdd1\",\n \"2\": \"#b5bcc1\",\n \"3\": \"#8f9aa3\",\n \"4\": \"#6a7984\",\n \"5\": \"#455765\",\n \"6\": \"#374651\",\n \"7\": \"#29343d\",\n \"8\": \"#1c2328\",\n \"8.5\": \"#151a1e\",\n} as const;\n\nexport type StormGrayStep = keyof typeof stormGray;\n\n/** Navy scale — Figma steps 0 → 8.5 */\nexport const navy = {\n \"0\": \"#f6fafe\",\n \"0.5\": \"#dee5eb\",\n \"1\": \"#c6d0d8\",\n \"1.5\": \"#afbac5\",\n \"2\": \"#97a5b2\",\n \"3\": \"#677b8c\",\n \"4\": \"#385066\",\n \"5\": \"#082640\",\n \"6\": \"#061e33\",\n \"7\": \"#051726\",\n \"8\": \"#030f1a\",\n \"8.5\": \"#020b13\",\n} as const;\n\nexport type NavyStep = keyof typeof navy;\n\n/** Ruby Red scale — Figma steps 0 → 8.5 */\nexport const rubyRed = {\n \"0\": \"#fff5f6\",\n \"0.5\": \"#f7dddf\",\n \"1\": \"#efc4c8\",\n \"1.5\": \"#e7acb1\",\n \"2\": \"#df939a\",\n \"3\": \"#ce626d\",\n \"4\": \"#be313f\",\n \"5\": \"#ae0011\",\n \"6\": \"#8b000e\",\n \"7\": \"#68000a\",\n \"8\": \"#460007\",\n \"8.5\": \"#340005\",\n} as const;\n\nexport type RubyRedStep = keyof typeof rubyRed;\n\n/** Emerald Green scale — Figma steps 0 → 8.5 */\nexport const emeraldGreen = {\n \"0\": \"#f0fbf5\",\n \"0.5\": \"#dcf2e5\",\n \"1\": \"#c8e8d5\",\n \"1.5\": \"#b4dfc5\",\n \"2\": \"#a0d5b5\",\n \"3\": \"#77c394\",\n \"4\": \"#4fb074\",\n \"5\": \"#279d54\",\n \"6\": \"#1f7e43\",\n \"7\": \"#175e32\",\n \"8\": \"#103f22\",\n \"8.5\": \"#0c2f19\",\n} as const;\n\nexport type EmeraldGreenStep = keyof typeof emeraldGreen;\n\n/** Figma brand palette — primary swatch per color family */\nexport const brand = {\n slateBlue: \"#182e3c\",\n stormGray: stormGray[\"5\"],\n navy: navy[\"5\"],\n rubyRed: rubyRed[\"5\"],\n emeraldGreen: emeraldGreen[\"5\"],\n} as const;\n\nexport const colors = {\n // Brand colors\n slateBlue: brand.slateBlue,\n\n // Emerald Green — Figma scale + brand swatch\n emeraldGreen0: emeraldGreen[\"0\"],\n emeraldGreen50: emeraldGreen[\"0.5\"],\n emeraldGreen100: emeraldGreen[\"1\"],\n emeraldGreen150: emeraldGreen[\"1.5\"],\n emeraldGreen200: emeraldGreen[\"2\"],\n emeraldGreen300: emeraldGreen[\"3\"],\n emeraldGreen400: emeraldGreen[\"4\"],\n emeraldGreen500: emeraldGreen[\"5\"],\n emeraldGreen600: emeraldGreen[\"6\"],\n emeraldGreen700: emeraldGreen[\"7\"],\n emeraldGreen800: emeraldGreen[\"8\"],\n emeraldGreen850: emeraldGreen[\"8.5\"],\n\n /** Primary brand emerald green — Figma Emerald Green 5 */\n emeraldGreen: brand.emeraldGreen,\n\n // Ruby Red — Figma scale + brand swatch\n rubyRed0: rubyRed[\"0\"],\n rubyRed50: rubyRed[\"0.5\"],\n rubyRed100: rubyRed[\"1\"],\n rubyRed150: rubyRed[\"1.5\"],\n rubyRed200: rubyRed[\"2\"],\n rubyRed300: rubyRed[\"3\"],\n rubyRed400: rubyRed[\"4\"],\n rubyRed500: rubyRed[\"5\"],\n rubyRed600: rubyRed[\"6\"],\n rubyRed700: rubyRed[\"7\"],\n rubyRed800: rubyRed[\"8\"],\n rubyRed850: rubyRed[\"8.5\"],\n\n /** Primary brand ruby red — Figma Ruby Red 5 */\n rubyRed: brand.rubyRed,\n\n // Navy — Figma scale + brand swatch\n navy0: navy[\"0\"],\n navy50: navy[\"0.5\"],\n navy100: navy[\"1\"],\n navy150: navy[\"1.5\"],\n navy200: navy[\"2\"],\n navy300: navy[\"3\"],\n navy400: navy[\"4\"],\n navy500: navy[\"5\"],\n navy600: navy[\"6\"],\n navy700: navy[\"7\"],\n navy800: navy[\"8\"],\n navy850: navy[\"8.5\"],\n\n /** Primary brand navy — Figma Navy 5 */\n navy: brand.navy,\n\n // Storm Gray — Figma scale + brand swatch\n stormGray0: stormGray[\"0\"],\n stormGray50: stormGray[\"0.5\"],\n stormGray100: stormGray[\"1\"],\n stormGray150: stormGray[\"1.5\"],\n stormGray200: stormGray[\"2\"],\n stormGray300: stormGray[\"3\"],\n stormGray400: stormGray[\"4\"],\n stormGray500: stormGray[\"5\"],\n /** Figma brand swatch \"Storm Gray\" — same as `stormGray500` */\n stormGrayBrand: brand.stormGray,\n stormGray600: stormGray[\"6\"],\n stormGray700: stormGray[\"7\"],\n stormGray800: stormGray[\"8\"],\n stormGray850: stormGray[\"8.5\"],\n\n /** @deprecated Use `stormGray0` */\n storm0: stormGray[\"0\"],\n /** @deprecated Use `stormGray50` */\n storm50: stormGray[\"0.5\"],\n /** @deprecated Use `stormGray200` */\n storm200: stormGray[\"2\"],\n /** @deprecated Use `stormGray300` */\n storm300: stormGray[\"3\"],\n /** @deprecated Use `stormGray500` */\n storm500: stormGray[\"5\"],\n /** @deprecated Use `stormGray700` */\n storm700: stormGray[\"7\"],\n /** @deprecated Use `stormGray850` */\n storm900: stormGray[\"8.5\"],\n\n countrySelectorSelectedBg: `${stormGray[\"0.5\"]}99`,\n\n white: \"#ffffff\",\n error: \"#dc2626\",\n errorDark: \"#b3261e\",\n errorLight: \"#fee2e2\",\n /** @deprecated Use `rubyRed` */\n inputError: brand.rubyRed,\n inputOutlineFocus: navy[\"0.5\"],\n inputOutlineError: rubyRed[\"0.5\"],\n warning: \"#92400e\",\n warningBg: \"#fef3c7\",\n success: \"#28a745\",\n successMuted: \"#9fd4a8\",\n /** @deprecated Use `emeraldGreen` */\n green: brand.emeraldGreen,\n transparent: \"transparent\",\n} as const;\n\nexport const radii = {\n sm: 8,\n md: 12,\n lg: 16,\n xl: 20,\n full: 9999,\n} as const;\n\nexport const spacing = {\n xs: 4,\n sm: 8,\n md: 12,\n lg: 16,\n xl: 24,\n xxl: 32,\n} as const;\n\nexport const fontSize = {\n xs: 11,\n sm: 12,\n md: 14,\n base: 16,\n lg: 18,\n xl: 24,\n xxl: 32,\n} as const;\n\n/**\n * Canonical Homepad type scale (matches `.typography-*` in `src/web/styles/typography.css`).\n * font-size / line-height pairs:\n * 12/16 · 14/19 · 18/24 · 20/27 · 24/25 · 32/34\n */\nexport const typographyScale = {\n 12: { fontSize: 12, lineHeight: 16 },\n 14: { fontSize: 14, lineHeight: 19 },\n 18: { fontSize: 18, lineHeight: 24 },\n 20: { fontSize: 20, lineHeight: 27 },\n 24: { fontSize: 24, lineHeight: 25 },\n 32: { fontSize: 32, lineHeight: 34 },\n} as const;\n\nexport const fontWeight = {\n regular: \"400\" as const,\n medium: \"500\" as const,\n semibold: \"600\" as const,\n bold: \"700\" as const,\n};\n\nexport const fonts = {\n sans: \"Noto Sans Armenian\",\n} as const;\n\n/** Input label typography — Medium, typography-12 scale. */\nexport const labelTypography = {\n fontFamily: fonts.sans,\n fontSize: typographyScale[12].fontSize,\n fontWeight: fontWeight.medium,\n lineHeight: typographyScale[12].lineHeight,\n letterSpacing: 0,\n} as const;\n\n/** Button label typography — SemiBold. */\nexport const buttonTypography = {\n lg: {\n fontFamily: fonts.sans,\n fontSize: typographyScale[14].fontSize,\n fontWeight: fontWeight.semibold,\n lineHeight: typographyScale[14].lineHeight,\n letterSpacing: 0,\n },\n sm: {\n fontFamily: fonts.sans,\n fontSize: typographyScale[12].fontSize,\n fontWeight: fontWeight.semibold,\n lineHeight: typographyScale[12].lineHeight,\n letterSpacing: 0,\n },\n} as const;\n\nexport const shadows = {\n card: {\n shadowColor: colors.navy,\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 0.05,\n shadowRadius: 20,\n elevation: 2,\n },\n cardLg: {\n shadowColor: colors.navy,\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 0.1,\n shadowRadius: 20,\n elevation: 4,\n },\n} as const;\n","export const ARROW_UP_RIGHT_PATH =\n \"M14.1667 14.1668V5.8335H5.83333M14.1667 5.8335L5.83333 14.1668\";\n","import Svg, { Path } from \"react-native-svg\";\nimport { ARROW_UP_RIGHT_PATH } from \"./arrowUpRightPath\";\n\nexport { ARROW_UP_RIGHT_PATH } from \"./arrowUpRightPath\";\n\ninterface ArrowUpRightIconProps {\n size?: number;\n color?: string;\n strokeWidth?: number;\n}\n\n/** Native — react-native-svg (peer dependency). */\nexport function ArrowUpRightIcon({\n size = 20,\n color = \"#082640\",\n strokeWidth = 2,\n}: ArrowUpRightIconProps) {\n return (\n <Svg width={size} height={size} viewBox=\"0 0 20 20\" fill=\"none\">\n <Path\n d={ARROW_UP_RIGHT_PATH}\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n );\n}\n","import { useLayoutEffect } from \"react\";\nimport { Platform } from \"react-native\";\n\ninterface ClassListElement {\n classList: {\n add: (...classes: string[]) => void;\n remove: (...classes: string[]) => void;\n };\n}\n\nfunction hasClassList(node: unknown): node is ClassListElement {\n return (\n typeof node === \"object\" &&\n node !== null &&\n \"classList\" in node &&\n typeof (node as ClassListElement).classList?.add === \"function\"\n );\n}\n\nfunction resolveWebElement(ref: React.RefObject<unknown>): ClassListElement | null {\n const node = ref.current;\n if (!node) return null;\n\n if (hasClassList(node)) return node;\n\n const host = node as {\n _touchableNode?: unknown;\n getScrollableNode?: () => unknown;\n };\n\n if (hasClassList(host._touchableNode)) return host._touchableNode;\n\n if (typeof host.getScrollableNode === \"function\") {\n const scrollNode = host.getScrollableNode();\n if (hasClassList(scrollNode)) return scrollNode;\n }\n\n return null;\n}\n\n/**\n * Applies CSS class names to the underlying DOM node on web.\n * Keeps TouchableOpacity/Text as the render path so default RN styles stay intact.\n */\nexport function useApplyWebClassName(\n ref: React.RefObject<unknown>,\n className?: string,\n enabled = true,\n): void {\n useLayoutEffect(() => {\n if (!enabled || Platform.OS !== \"web\" || !className?.trim()) return;\n\n const element = resolveWebElement(ref);\n if (!element) return;\n\n const classes = className.trim().split(/\\s+/);\n element.classList.add(...classes);\n\n return () => {\n element.classList.remove(...classes);\n };\n }, [ref, className, enabled]);\n}\n","import { useRef, type ComponentRef, type ReactNode } from \"react\";\nimport {\n Platform,\n StyleSheet,\n Text,\n TouchableOpacity,\n View,\n type GestureResponderEvent,\n type StyleProp,\n type TextStyle,\n type ViewStyle,\n} from \"react-native\";\nimport { ArrowUpRightIcon } from \"../icons/ArrowUpRightIcon\";\nimport { colors, buttonTypography } from \"../theme/tokens\";\nimport { useApplyWebClassName } from \"../utils/useApplyWebClassName\";\n\nexport type ButtonVariant = \"white\" | \"primary\" | \"green\" | \"gray\";\nexport type ButtonSize = \"lg\" | \"sm\";\n\nexport interface ButtonProps {\n title?: string;\n children?: ReactNode;\n onPress: (event: GestureResponderEvent) => void;\n disabled?: boolean;\n variant?: ButtonVariant;\n size?: ButtonSize;\n showIcon?: boolean;\n /** Custom icon inside the badge. Defaults to `ArrowUpRightIcon` when `showIcon` is true. */\n icon?: ReactNode;\n style?: StyleProp<ViewStyle>;\n textStyle?: StyleProp<TextStyle>;\n className?: string;\n textClassName?: string;\n}\n\ntype VariantStyleSet = {\n backgroundColor: string;\n textColor: string;\n iconBadgeBackgroundColor: string;\n iconColor: string;\n};\n\nconst variantConfig: Record<ButtonVariant, VariantStyleSet> = {\n white: {\n backgroundColor: colors.white,\n textColor: colors.slateBlue,\n iconBadgeBackgroundColor: colors.stormGray150,\n iconColor: colors.navy,\n },\n primary: {\n backgroundColor: colors.navy,\n textColor: colors.stormGray0,\n iconBadgeBackgroundColor: colors.white,\n iconColor: colors.navy,\n },\n green: {\n backgroundColor: colors.green,\n textColor: colors.stormGray0,\n iconBadgeBackgroundColor: colors.white,\n iconColor: colors.green,\n },\n gray: {\n backgroundColor: colors.stormGray50,\n textColor: colors.slateBlue,\n iconBadgeBackgroundColor: colors.stormGray150,\n iconColor: colors.navy,\n },\n};\n\nconst sizeConfig = {\n lg: {\n borderRadius: 16,\n paddingTop: 8,\n paddingRight: 8,\n paddingBottom: 8,\n paddingLeft: 24,\n paddingHorizontalCentered: 24,\n text: buttonTypography.lg,\n iconContainerSize: 36,\n iconContainerRadius: 12,\n iconContainerPadding: 8,\n iconSize: 20,\n },\n sm: {\n borderRadius: 12,\n paddingTop: 8,\n paddingRight: 8,\n paddingBottom: 8,\n paddingLeft: 16,\n paddingHorizontalCentered: 16,\n text: buttonTypography.sm,\n iconContainerSize: 32,\n iconContainerRadius: 8,\n iconContainerPadding: 8,\n iconSize: 16,\n },\n} as const;\n\nexport function Button({\n title,\n children,\n onPress,\n disabled = false,\n variant = \"primary\",\n size = \"lg\",\n showIcon = false,\n icon,\n style,\n textStyle,\n className,\n textClassName,\n}: ButtonProps) {\n const containerRef = useRef<ComponentRef<typeof TouchableOpacity>>(null);\n const textRef = useRef<ComponentRef<typeof Text>>(null);\n const preset = variantConfig[variant];\n const metrics = sizeConfig[size];\n\n const label = typeof children !== \"undefined\" ? children : title;\n const hasCustomChildren = typeof children !== \"undefined\";\n const customIcon =\n icon != null && typeof icon !== \"boolean\" ? icon : undefined;\n const hasIcon = showIcon || icon === true || customIcon != null;\n const resolvedContainerClassName = [\n Platform.OS === \"web\" ? \"max-md:px-4!\" : \"\",\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n useApplyWebClassName(containerRef, resolvedContainerClassName || undefined);\n useApplyWebClassName(textRef, textClassName);\n\n const iconNode =\n customIcon ?? (\n <ArrowUpRightIcon size={metrics.iconSize} color={preset.iconColor} />\n );\n\n const containerStyle = [\n styles.base,\n {\n borderRadius: metrics.borderRadius,\n backgroundColor: preset.backgroundColor,\n paddingTop: metrics.paddingTop,\n paddingBottom: metrics.paddingBottom,\n paddingLeft: hasIcon ? metrics.paddingLeft : metrics.paddingHorizontalCentered,\n paddingRight: hasIcon ? metrics.paddingRight : metrics.paddingHorizontalCentered,\n },\n hasIcon ? styles.withIcon : styles.centered,\n disabled && styles.disabled,\n style,\n ];\n\n const labelStyle = [\n styles.label,\n metrics.text,\n { color: preset.textColor },\n Platform.OS === \"android\" ? styles.labelAndroid : null,\n !hasIcon && styles.labelCentered,\n hasIcon && styles.labelWithIcon,\n textStyle,\n ];\n\n return (\n <TouchableOpacity\n ref={containerRef}\n style={containerStyle}\n onPress={onPress}\n disabled={disabled}\n activeOpacity={0.7}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled }}\n >\n {hasCustomChildren ? (\n children\n ) : (\n <Text ref={textRef} style={labelStyle}>\n {label}\n </Text>\n )}\n\n {hasIcon ? (\n <View\n style={[\n styles.iconContainer,\n {\n width: metrics.iconContainerSize,\n height: metrics.iconContainerSize,\n borderRadius: metrics.iconContainerRadius,\n padding: metrics.iconContainerPadding,\n backgroundColor: preset.iconBadgeBackgroundColor,\n },\n ]}\n >\n {iconNode}\n </View>\n ) : null}\n </TouchableOpacity>\n );\n}\n\nconst styles = StyleSheet.create({\n base: {\n flexDirection: \"row\",\n alignItems: \"center\",\n borderWidth: 0,\n },\n centered: {\n justifyContent: \"center\",\n },\n withIcon: {\n justifyContent: \"space-between\",\n },\n disabled: {\n opacity: 0.6,\n },\n label: {},\n labelAndroid: {\n includeFontPadding: false,\n },\n labelCentered: {\n textAlign: \"center\",\n },\n labelWithIcon: {\n flex: 1,\n flexShrink: 1,\n marginRight: 8,\n },\n iconContainer: {\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0,\n },\n});\n","import { useRef, type ComponentRef, type ReactNode } from \"react\";\nimport {\n StyleSheet,\n Text,\n type StyleProp,\n type TextProps,\n type TextStyle,\n} from \"react-native\";\nimport { colors, labelTypography } from \"../theme/tokens\";\nimport { useApplyWebClassName } from \"../utils/useApplyWebClassName\";\n\nexport interface LabelProps extends TextProps {\n children: ReactNode;\n /** Render as a required field indicator. */\n required?: boolean;\n disabled?: boolean;\n style?: StyleProp<TextStyle>;\n className?: string;\n}\n\nexport function Label({\n children,\n required = false,\n disabled = false,\n style,\n className,\n ...props\n}: LabelProps) {\n const ref = useRef<ComponentRef<typeof Text>>(null);\n useApplyWebClassName(ref, className);\n\n return (\n <Text\n ref={ref}\n style={[styles.label, disabled && styles.labelDisabled, style]}\n accessibilityRole=\"text\"\n {...props}\n >\n {children}\n {required ? <Text style={styles.required}> *</Text> : null}\n </Text>\n );\n}\n\nconst styles = StyleSheet.create({\n label: {\n ...labelTypography,\n color: colors.slateBlue,\n },\n labelDisabled: {\n color: colors.stormGray400,\n },\n required: {\n color: colors.inputError,\n },\n});\n","export const EYE_OPEN_OUTLINE_PATH =\n \"M1.71835 10.2898C1.6489 10.1027 1.6489 9.89691 1.71835 9.70981C2.39476 8.06969 3.54294 6.66735 5.01732 5.68056C6.4917 4.69378 8.22588 4.16699 10 4.16699C11.7741 4.16699 13.5083 4.69378 14.9827 5.68056C16.4571 6.66735 17.6053 8.06969 18.2817 9.70981C18.3511 9.89691 18.3511 10.1027 18.2817 10.2898C17.6053 11.9299 16.4571 13.3323 14.9827 14.3191C13.5083 15.3058 11.7741 15.8326 10 15.8326C8.22588 15.8326 6.4917 15.3058 5.01732 14.3191C3.54294 13.3323 2.39476 11.9299 1.71835 10.2898Z\";\n\nexport const EYE_OPEN_PUPIL_PATH =\n \"M10 12.4998C11.3807 12.4998 12.5 11.3805 12.5 9.99981C12.5 8.6191 11.3807 7.49981 10 7.49981C8.6193 7.49981 7.50001 8.6191 7.50001 9.99981C7.50001 11.3805 8.6193 12.4998 10 12.4998Z\";\n\nexport const EYE_OFF_PATH =\n \"M10.733 5.076C13.0624 4.7984 15.4186 5.29082 17.4419 6.47805C19.4651 7.66528 21.0442 9.48208 21.938 11.651C22.0213 11.8755 22.0213 12.1225 21.938 12.347C21.5705 13.238 21.0848 14.0755 20.494 14.837M14.084 14.158C13.5182 14.7045 12.7604 15.0069 11.9738 15C11.1872 14.9932 10.4348 14.6777 9.87854 14.1215C9.32232 13.5652 9.00681 12.8128 8.99998 12.0262C8.99314 11.2396 9.29553 10.4818 9.842 9.916M17.479 17.499C16.1525 18.2848 14.6725 18.776 13.1394 18.9394C11.6063 19.1028 10.056 18.9345 8.59363 18.4459C7.13131 17.9573 5.79119 17.1599 4.66421 16.1077C3.53723 15.0556 2.64975 13.7734 2.062 12.348C1.97866 12.1235 1.97866 11.8765 2.062 11.652C2.94863 9.50186 4.50867 7.69725 6.508 6.509M2 2L22 22\";\n","import Svg, { Path } from \"react-native-svg\";\nimport { EYE_OPEN_OUTLINE_PATH, EYE_OPEN_PUPIL_PATH } from \"./eyeIconPaths\";\n\nexport { EYE_OPEN_OUTLINE_PATH, EYE_OPEN_PUPIL_PATH } from \"./eyeIconPaths\";\n\ninterface EyeIconProps {\n size?: number;\n color?: string;\n strokeWidth?: number;\n}\n\n/** Native — open eye (password hidden). */\nexport function EyeIcon({\n size = 20,\n color = \"#c7cdd1\",\n strokeWidth = 2,\n}: EyeIconProps) {\n return (\n <Svg width={size} height={size} viewBox=\"0 0 20 20\" fill=\"none\">\n <Path\n d={EYE_OPEN_OUTLINE_PATH}\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <Path\n d={EYE_OPEN_PUPIL_PATH}\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n );\n}\n","import Svg, { Path } from \"react-native-svg\";\nimport { EYE_OFF_PATH } from \"./eyeIconPaths\";\n\nexport { EYE_OFF_PATH } from \"./eyeIconPaths\";\n\ninterface EyeOffIconProps {\n size?: number;\n color?: string;\n strokeWidth?: number;\n}\n\n/** Native — slashed eye (password visible). */\nexport function EyeOffIcon({\n size = 20,\n color = \"#c7cdd1\",\n strokeWidth = 2,\n}: EyeOffIconProps) {\n return (\n <Svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n <Path\n d={EYE_OFF_PATH}\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n );\n}\n","import { Platform, StyleSheet, type TextStyle, type ViewStyle } from \"react-native\";\nimport { colors, fonts, fontSize, fontWeight, radii } from \"./tokens\";\n\nexport const INPUT_HEIGHT = 52;\nexport const INPUT_ICON_SIZE = 20;\nexport const INPUT_ICON_GAP = 10;\nexport const INPUT_OUTLINE_WIDTH = 2;\nexport const INPUT_TEXT_LINE_HEIGHT = 19;\nexport const INPUT_WEB_VERTICAL_PADDING = 14;\n\nexport type InputVisualState =\n | \"default\"\n | \"focused\"\n | \"error\"\n | \"disabled\";\n\nexport interface InputStateFlags {\n focused?: boolean;\n error?: boolean;\n disabled?: boolean;\n}\n\nexport function resolveInputVisualState({\n focused = false,\n error = false,\n disabled = false,\n}: InputStateFlags): InputVisualState {\n if (disabled) return \"disabled\";\n if (error) return \"error\";\n if (focused) return \"focused\";\n return \"default\";\n}\n\ninterface FieldStyleSet {\n container: ViewStyle;\n outline: ViewStyle;\n text: TextStyle;\n placeholder: string;\n icon: string;\n}\n\nfunction createOutlineStyle(ringColor: string): ViewStyle {\n return {\n borderRadius: radii.lg + INPUT_OUTLINE_WIDTH,\n borderWidth: INPUT_OUTLINE_WIDTH,\n borderColor: ringColor,\n padding: 0,\n backgroundColor: colors.transparent,\n width: \"100%\",\n alignSelf: \"stretch\",\n ...(Platform.OS !== \"web\" ? { overflow: \"hidden\" as const } : null),\n };\n}\n\nconst defaultOutline: ViewStyle = {\n borderRadius: radii.lg + INPUT_OUTLINE_WIDTH,\n borderWidth: INPUT_OUTLINE_WIDTH,\n borderColor: colors.transparent,\n padding: 0,\n backgroundColor: colors.transparent,\n width: \"100%\",\n alignSelf: \"stretch\",\n ...(Platform.OS !== \"web\" ? { overflow: \"hidden\" as const } : null),\n};\n\nexport function getInputFieldStyles(state: InputVisualState): FieldStyleSet {\n const containerBase: ViewStyle = {\n borderRadius: radii.lg,\n ...(Platform.OS !== \"web\" ? { overflow: \"hidden\" as const } : null),\n };\n\n switch (state) {\n case \"disabled\":\n return {\n outline: defaultOutline,\n container: {\n ...containerBase,\n borderWidth: 1,\n borderColor: colors.stormGray50,\n backgroundColor: colors.stormGray50,\n },\n text: { color: colors.stormGray300 },\n placeholder: colors.stormGray300,\n icon: colors.stormGray150,\n };\n case \"error\":\n return {\n outline: createOutlineStyle(colors.inputOutlineError),\n container: {\n ...containerBase,\n borderWidth: 1,\n borderColor: colors.inputError,\n backgroundColor: colors.white,\n },\n text: { color: colors.inputError },\n placeholder: colors.stormGray200,\n icon: colors.inputError,\n };\n case \"focused\":\n return {\n outline: createOutlineStyle(colors.inputOutlineFocus),\n container: {\n ...containerBase,\n borderWidth: 1,\n borderColor: colors.navy,\n backgroundColor: colors.white,\n },\n text: { color: colors.slateBlue },\n placeholder: colors.stormGray200,\n icon: colors.navy,\n };\n default:\n return {\n outline: defaultOutline,\n container: {\n ...containerBase,\n borderWidth: 1,\n borderColor: colors.stormGray50,\n backgroundColor: colors.white,\n },\n text: { color: colors.slateBlue },\n placeholder: colors.stormGray200,\n icon: colors.stormGray150,\n };\n }\n}\n\nexport const inputFieldMetrics = StyleSheet.create({\n container: {\n flexDirection: \"row\",\n alignItems: \"center\",\n height: INPUT_HEIGHT,\n borderRadius: radii.lg,\n padding: 16,\n gap: INPUT_ICON_GAP,\n ...(Platform.OS === \"web\"\n ? ({\n boxSizing: \"border-box\",\n paddingVertical: INPUT_WEB_VERTICAL_PADDING,\n paddingHorizontal: 16,\n } as ViewStyle)\n : null),\n },\n input: {\n flex: 1,\n minWidth: 0,\n fontFamily: fonts.sans,\n fontSize: fontSize.md,\n fontWeight: fontWeight.medium,\n lineHeight: INPUT_TEXT_LINE_HEIGHT,\n paddingVertical: 0,\n paddingHorizontal: 0,\n margin: 0,\n borderWidth: 0,\n backgroundColor: colors.transparent,\n ...(Platform.OS === \"android\"\n ? { includeFontPadding: false }\n : null),\n ...(Platform.OS === \"web\"\n ? ({\n alignSelf: \"center\",\n outlineStyle: \"none\",\n } as TextStyle)\n : {\n alignSelf: \"stretch\",\n }),\n },\n});\n","import {\n cloneElement,\n isValidElement,\n useRef,\n useState,\n type ComponentRef,\n type ReactNode,\n} from \"react\";\nimport {\n Pressable,\n StyleSheet,\n Text,\n TextInput,\n View,\n type NativeSyntheticEvent,\n type StyleProp,\n type TextInputFocusEventData,\n type TextInputProps,\n type TextStyle,\n type ViewStyle,\n} from \"react-native\";\nimport { EyeIcon } from \"../icons/EyeIcon\";\nimport { EyeOffIcon } from \"../icons/EyeOffIcon\";\nimport {\n getInputFieldStyles,\n inputFieldMetrics,\n INPUT_ICON_SIZE,\n resolveInputVisualState,\n} from \"../theme/input\";\nimport { colors, spacing } from \"../theme/tokens\";\nimport { useApplyWebClassName } from \"../utils/useApplyWebClassName\";\nimport { Label } from \"./Label\";\n\ntype InputIconProps = {\n size?: number;\n color?: string;\n};\n\nfunction renderInputIcon(icon: ReactNode, color: string) {\n if (!icon) return null;\n\n if (isValidElement<InputIconProps>(icon)) {\n return cloneElement(icon, {\n size: icon.props.size ?? INPUT_ICON_SIZE,\n color: icon.props.color ?? color,\n });\n }\n\n return icon;\n}\n\nexport interface InputProps extends TextInputProps {\n /** Optional field label rendered above the input. */\n label?: string;\n leftIcon?: ReactNode;\n rightIcon?: ReactNode;\n /** Validation or helper error message. Shown instead of `hint` when set. */\n error?: string;\n /** Applies error field styling without showing a message (use with a form-level error). */\n invalid?: boolean;\n /** Helper text shown below the input when there is no error. */\n hint?: string;\n containerStyle?: StyleProp<ViewStyle>;\n style?: StyleProp<TextStyle>;\n className?: string;\n /** CSS classes for the bordered field container (web). */\n fieldClassName?: string;\n /** Styles merged into the bordered field container. */\n fieldStyle?: StyleProp<ViewStyle>;\n labelClassName?: string;\n /** Styles merged into the field label. */\n labelStyles?: StyleProp<TextStyle>;\n inputClassName?: string;\n errorClassName?: string;\n hintClassName?: string;\n /** When `secureTextEntry` is set, show a toggleable eye icon. Pass `false` to disable. */\n showPasswordToggle?: boolean;\n}\n\nexport function Input({\n label,\n leftIcon,\n rightIcon,\n error,\n invalid,\n hint,\n containerStyle,\n style,\n className,\n fieldClassName,\n fieldStyle,\n labelClassName,\n labelStyles,\n inputClassName,\n errorClassName,\n hintClassName,\n editable = true,\n secureTextEntry,\n showPasswordToggle,\n onFocus,\n onBlur,\n ...props\n}: InputProps) {\n const wrapperRef = useRef<ComponentRef<typeof View>>(null);\n const fieldRef = useRef<ComponentRef<typeof View>>(null);\n const inputRef = useRef<ComponentRef<typeof TextInput>>(null);\n const helperRef = useRef<ComponentRef<typeof Text>>(null);\n const [focused, setFocused] = useState(false);\n const [passwordVisible, setPasswordVisible] = useState(false);\n\n useApplyWebClassName(wrapperRef, className);\n useApplyWebClassName(fieldRef, fieldClassName);\n useApplyWebClassName(inputRef, inputClassName);\n useApplyWebClassName(helperRef, error ? errorClassName : hintClassName);\n\n const isDisabled = editable === false;\n const hasError = Boolean(error) || Boolean(invalid);\n const passwordToggleEnabled =\n secureTextEntry === true && showPasswordToggle !== false && rightIcon == null;\n const effectiveSecureTextEntry = passwordToggleEnabled\n ? !passwordVisible\n : secureTextEntry;\n const visualState = resolveInputVisualState({\n focused,\n error: hasError,\n disabled: isDisabled,\n });\n const fieldStyles = getInputFieldStyles(visualState);\n const iconColor = fieldStyles.icon;\n\n function handleFocus(event: NativeSyntheticEvent<TextInputFocusEventData>) {\n setFocused(true);\n onFocus?.(event);\n }\n\n function handleBlur(event: NativeSyntheticEvent<TextInputFocusEventData>) {\n setFocused(false);\n onBlur?.(event);\n }\n\n const helperMessage = error ?? hint;\n\n function togglePasswordVisibility() {\n if (!isDisabled) {\n setPasswordVisible((visible) => !visible);\n }\n }\n\n const trailingIcon = passwordToggleEnabled ? (\n <Pressable\n onPress={togglePasswordVisibility}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n accessibilityLabel={passwordVisible ? \"Hide password\" : \"Show password\"}\n hitSlop={8}\n style={styles.iconPressable}\n >\n {renderInputIcon(\n passwordVisible ? <EyeOffIcon /> : <EyeIcon />,\n iconColor,\n )}\n </Pressable>\n ) : rightIcon ? (\n renderInputIcon(rightIcon, iconColor)\n ) : null;\n\n return (\n <View ref={wrapperRef} style={[styles.wrapper, containerStyle]}>\n {label ? (\n <Label\n disabled={isDisabled}\n className={labelClassName}\n style={labelStyles}\n >\n {label}\n </Label>\n ) : null}\n <View style={fieldStyles.outline}>\n <View\n ref={fieldRef}\n style={[inputFieldMetrics.container, fieldStyles.container, fieldStyle]}\n >\n {leftIcon ? (\n <View style={styles.iconSlot}>{renderInputIcon(leftIcon, iconColor)}</View>\n ) : null}\n <TextInput\n ref={inputRef}\n style={[\n inputFieldMetrics.input,\n fieldStyles.text,\n style,\n ]}\n placeholderTextColor={fieldStyles.placeholder}\n editable={editable}\n secureTextEntry={effectiveSecureTextEntry}\n onFocus={handleFocus}\n onBlur={handleBlur}\n accessibilityState={{ disabled: isDisabled }}\n {...props}\n />\n {trailingIcon ? (\n <View style={styles.iconSlot}>{trailingIcon}</View>\n ) : null}\n </View>\n </View>\n {helperMessage ? (\n <Text ref={helperRef} style={error ? styles.error : styles.hint}>\n {helperMessage}\n </Text>\n ) : null}\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n wrapper: {\n width: \"100%\",\n gap: spacing.sm,\n },\n iconSlot: {\n width: INPUT_ICON_SIZE,\n height: INPUT_ICON_SIZE,\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0,\n },\n iconPressable: {\n width: INPUT_ICON_SIZE,\n height: INPUT_ICON_SIZE,\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n error: {\n fontSize: 12,\n lineHeight: 16,\n color: colors.inputError,\n },\n hint: {\n fontSize: 12,\n lineHeight: 16,\n color: colors.stormGray300,\n },\n});\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -212,6 +212,14 @@ var fontSize = {
|
|
|
212
212
|
xl: 24,
|
|
213
213
|
xxl: 32
|
|
214
214
|
};
|
|
215
|
+
var typographyScale = {
|
|
216
|
+
12: { fontSize: 12, lineHeight: 16 },
|
|
217
|
+
14: { fontSize: 14, lineHeight: 19 },
|
|
218
|
+
18: { fontSize: 18, lineHeight: 24 },
|
|
219
|
+
20: { fontSize: 20, lineHeight: 27 },
|
|
220
|
+
24: { fontSize: 24, lineHeight: 25 },
|
|
221
|
+
32: { fontSize: 32, lineHeight: 34 }
|
|
222
|
+
};
|
|
215
223
|
var fontWeight = {
|
|
216
224
|
regular: "400",
|
|
217
225
|
medium: "500",
|
|
@@ -223,24 +231,24 @@ var fonts = {
|
|
|
223
231
|
};
|
|
224
232
|
var labelTypography = {
|
|
225
233
|
fontFamily: fonts.sans,
|
|
226
|
-
fontSize: fontSize
|
|
234
|
+
fontSize: typographyScale[12].fontSize,
|
|
227
235
|
fontWeight: fontWeight.medium,
|
|
228
|
-
lineHeight:
|
|
236
|
+
lineHeight: typographyScale[12].lineHeight,
|
|
229
237
|
letterSpacing: 0
|
|
230
238
|
};
|
|
231
239
|
var buttonTypography = {
|
|
232
240
|
lg: {
|
|
233
241
|
fontFamily: fonts.sans,
|
|
234
|
-
fontSize: 14,
|
|
242
|
+
fontSize: typographyScale[14].fontSize,
|
|
235
243
|
fontWeight: fontWeight.semibold,
|
|
236
|
-
lineHeight:
|
|
244
|
+
lineHeight: typographyScale[14].lineHeight,
|
|
237
245
|
letterSpacing: 0
|
|
238
246
|
},
|
|
239
247
|
sm: {
|
|
240
248
|
fontFamily: fonts.sans,
|
|
241
|
-
fontSize: 12,
|
|
249
|
+
fontSize: typographyScale[12].fontSize,
|
|
242
250
|
fontWeight: fontWeight.semibold,
|
|
243
|
-
lineHeight:
|
|
251
|
+
lineHeight: typographyScale[12].lineHeight,
|
|
244
252
|
letterSpacing: 0
|
|
245
253
|
}
|
|
246
254
|
};
|
|
@@ -699,6 +707,7 @@ function Input({
|
|
|
699
707
|
fieldClassName,
|
|
700
708
|
fieldStyle,
|
|
701
709
|
labelClassName,
|
|
710
|
+
labelStyles,
|
|
702
711
|
inputClassName,
|
|
703
712
|
errorClassName,
|
|
704
713
|
hintClassName,
|
|
@@ -760,7 +769,15 @@ function Input({
|
|
|
760
769
|
}
|
|
761
770
|
) : rightIcon ? renderInputIcon(rightIcon, iconColor) : null;
|
|
762
771
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: wrapperRef, style: [styles3.wrapper, containerStyle], children: [
|
|
763
|
-
label ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
772
|
+
label ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
773
|
+
Label,
|
|
774
|
+
{
|
|
775
|
+
disabled: isDisabled,
|
|
776
|
+
className: labelClassName,
|
|
777
|
+
style: labelStyles,
|
|
778
|
+
children: label
|
|
779
|
+
}
|
|
780
|
+
) : null,
|
|
764
781
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: fieldStyles.outline, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
765
782
|
reactNative.View,
|
|
766
783
|
{
|
|
@@ -1575,12 +1592,12 @@ var styles4 = reactNative.StyleSheet.create({
|
|
|
1575
1592
|
},
|
|
1576
1593
|
error: {
|
|
1577
1594
|
fontSize: 12,
|
|
1578
|
-
lineHeight:
|
|
1595
|
+
lineHeight: 16,
|
|
1579
1596
|
color: colors.inputError
|
|
1580
1597
|
},
|
|
1581
1598
|
hint: {
|
|
1582
1599
|
fontSize: 12,
|
|
1583
|
-
lineHeight:
|
|
1600
|
+
lineHeight: 16,
|
|
1584
1601
|
color: colors.stormGray300
|
|
1585
1602
|
}
|
|
1586
1603
|
});
|
|
@@ -1850,11 +1867,12 @@ var styles5 = reactNative.StyleSheet.create({
|
|
|
1850
1867
|
},
|
|
1851
1868
|
flag: {
|
|
1852
1869
|
fontSize: 18,
|
|
1853
|
-
lineHeight:
|
|
1870
|
+
lineHeight: 24
|
|
1854
1871
|
},
|
|
1855
1872
|
dialCode: {
|
|
1856
1873
|
fontSize: fontSize.md,
|
|
1857
|
-
fontWeight: fontWeight.medium
|
|
1874
|
+
fontWeight: fontWeight.medium,
|
|
1875
|
+
lineHeight: 19
|
|
1858
1876
|
},
|
|
1859
1877
|
overlay: {
|
|
1860
1878
|
flex: 1,
|
|
@@ -1910,6 +1928,7 @@ function PhoneInput({
|
|
|
1910
1928
|
style,
|
|
1911
1929
|
className,
|
|
1912
1930
|
labelClassName,
|
|
1931
|
+
labelStyles,
|
|
1913
1932
|
inputClassName,
|
|
1914
1933
|
errorClassName,
|
|
1915
1934
|
hintClassName,
|
|
@@ -1942,7 +1961,15 @@ function PhoneInput({
|
|
|
1942
1961
|
}
|
|
1943
1962
|
const helperMessage = error ?? hint;
|
|
1944
1963
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: wrapperRef, style: [styles6.wrapper, containerStyle], children: [
|
|
1945
|
-
label ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1964
|
+
label ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1965
|
+
Label,
|
|
1966
|
+
{
|
|
1967
|
+
disabled: isDisabled,
|
|
1968
|
+
className: labelClassName,
|
|
1969
|
+
style: labelStyles,
|
|
1970
|
+
children: label
|
|
1971
|
+
}
|
|
1972
|
+
) : null,
|
|
1946
1973
|
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.row, children: [
|
|
1947
1974
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1948
1975
|
CountryCodeSelector,
|
|
@@ -1953,38 +1980,36 @@ function PhoneInput({
|
|
|
1953
1980
|
style: styles6.countrySelector
|
|
1954
1981
|
}
|
|
1955
1982
|
),
|
|
1956
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
] })
|
|
1987
|
-
] })
|
|
1983
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [phoneFieldStyles.outline, styles6.phoneOutline], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1984
|
+
reactNative.View,
|
|
1985
|
+
{
|
|
1986
|
+
style: [
|
|
1987
|
+
inputFieldMetrics.container,
|
|
1988
|
+
phoneFieldStyles.container,
|
|
1989
|
+
styles6.phoneField
|
|
1990
|
+
],
|
|
1991
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1992
|
+
reactNative.TextInput,
|
|
1993
|
+
{
|
|
1994
|
+
ref: inputRef,
|
|
1995
|
+
style: [
|
|
1996
|
+
inputFieldMetrics.input,
|
|
1997
|
+
phoneFieldStyles.text,
|
|
1998
|
+
style
|
|
1999
|
+
],
|
|
2000
|
+
keyboardType: "phone-pad",
|
|
2001
|
+
placeholderTextColor: error ? colors.inputError : phoneFieldStyles.placeholder,
|
|
2002
|
+
editable,
|
|
2003
|
+
onFocus: handleFocus,
|
|
2004
|
+
onBlur: handleBlur,
|
|
2005
|
+
accessibilityState: { disabled: isDisabled },
|
|
2006
|
+
...props
|
|
2007
|
+
}
|
|
2008
|
+
)
|
|
2009
|
+
}
|
|
2010
|
+
) })
|
|
2011
|
+
] }),
|
|
2012
|
+
helperMessage ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { ref: helperRef, style: error ? styles6.error : styles6.hint, children: helperMessage }) : null
|
|
1988
2013
|
] });
|
|
1989
2014
|
}
|
|
1990
2015
|
var styles6 = reactNative.StyleSheet.create({
|
|
@@ -2001,12 +2026,8 @@ var styles6 = reactNative.StyleSheet.create({
|
|
|
2001
2026
|
flexShrink: 0,
|
|
2002
2027
|
alignSelf: "flex-start"
|
|
2003
2028
|
},
|
|
2004
|
-
phoneColumn: {
|
|
2005
|
-
flex: 1,
|
|
2006
|
-
gap: spacing.sm
|
|
2007
|
-
},
|
|
2008
2029
|
phoneOutline: {
|
|
2009
|
-
|
|
2030
|
+
flex: 1
|
|
2010
2031
|
},
|
|
2011
2032
|
phoneField: {
|
|
2012
2033
|
flex: 1
|
|
@@ -2095,7 +2116,7 @@ var calendarLabelTypography = {
|
|
|
2095
2116
|
fontFamily: fonts.sans,
|
|
2096
2117
|
fontSize: fontSize.sm,
|
|
2097
2118
|
fontWeight: fontWeight.medium,
|
|
2098
|
-
lineHeight:
|
|
2119
|
+
lineHeight: 16,
|
|
2099
2120
|
letterSpacing: 0,
|
|
2100
2121
|
color: colors.slateBlue
|
|
2101
2122
|
};
|
|
@@ -2103,7 +2124,7 @@ var calendarFieldTypography = {
|
|
|
2103
2124
|
fontFamily: fonts.sans,
|
|
2104
2125
|
fontSize: fontSize.md,
|
|
2105
2126
|
fontWeight: fontWeight.regular,
|
|
2106
|
-
lineHeight:
|
|
2127
|
+
lineHeight: 19,
|
|
2107
2128
|
letterSpacing: 0,
|
|
2108
2129
|
textAlign: "left"
|
|
2109
2130
|
};
|
|
@@ -2141,7 +2162,7 @@ var calendarDropdownMetrics = reactNative.StyleSheet.create({
|
|
|
2141
2162
|
fontFamily: fonts.sans,
|
|
2142
2163
|
fontSize: fontSize.md,
|
|
2143
2164
|
fontWeight: fontWeight.bold,
|
|
2144
|
-
lineHeight:
|
|
2165
|
+
lineHeight: 19,
|
|
2145
2166
|
letterSpacing: 0,
|
|
2146
2167
|
color: colors.stormGray850
|
|
2147
2168
|
},
|
|
@@ -2182,7 +2203,7 @@ var calendarDropdownMetrics = reactNative.StyleSheet.create({
|
|
|
2182
2203
|
fontFamily: fonts.sans,
|
|
2183
2204
|
fontSize: fontSize.sm,
|
|
2184
2205
|
fontWeight: fontWeight.regular,
|
|
2185
|
-
lineHeight:
|
|
2206
|
+
lineHeight: 16,
|
|
2186
2207
|
letterSpacing: 0,
|
|
2187
2208
|
textAlign: "center",
|
|
2188
2209
|
color: colors.stormGray300,
|
|
@@ -2224,7 +2245,7 @@ var calendarDropdownMetrics = reactNative.StyleSheet.create({
|
|
|
2224
2245
|
fontFamily: fonts.sans,
|
|
2225
2246
|
fontSize: fontSize.md,
|
|
2226
2247
|
fontWeight: fontWeight.regular,
|
|
2227
|
-
lineHeight:
|
|
2248
|
+
lineHeight: 19,
|
|
2228
2249
|
letterSpacing: 0,
|
|
2229
2250
|
textAlign: "center",
|
|
2230
2251
|
color: colors.navy,
|
|
@@ -2295,7 +2316,7 @@ var calendarDropdownMetrics = reactNative.StyleSheet.create({
|
|
|
2295
2316
|
fontFamily: fonts.sans,
|
|
2296
2317
|
fontSize: fontSize.md,
|
|
2297
2318
|
fontWeight: fontWeight.regular,
|
|
2298
|
-
lineHeight:
|
|
2319
|
+
lineHeight: 19,
|
|
2299
2320
|
letterSpacing: 0,
|
|
2300
2321
|
textAlign: "center",
|
|
2301
2322
|
color: colors.navy,
|
|
@@ -3326,12 +3347,12 @@ var styles7 = reactNative.StyleSheet.create({
|
|
|
3326
3347
|
},
|
|
3327
3348
|
error: {
|
|
3328
3349
|
fontSize: 12,
|
|
3329
|
-
lineHeight:
|
|
3350
|
+
lineHeight: 16,
|
|
3330
3351
|
color: colors.inputError
|
|
3331
3352
|
},
|
|
3332
3353
|
hint: {
|
|
3333
3354
|
fontSize: 12,
|
|
3334
|
-
lineHeight:
|
|
3355
|
+
lineHeight: 16,
|
|
3335
3356
|
color: colors.stormGray300
|
|
3336
3357
|
}
|
|
3337
3358
|
});
|
|
@@ -3389,6 +3410,7 @@ exports.rubyRed = rubyRed;
|
|
|
3389
3410
|
exports.shadows = shadows;
|
|
3390
3411
|
exports.spacing = spacing;
|
|
3391
3412
|
exports.stormGray = stormGray;
|
|
3413
|
+
exports.typographyScale = typographyScale;
|
|
3392
3414
|
exports.useCalendarLocale = useCalendarLocale;
|
|
3393
3415
|
//# sourceMappingURL=index.cjs.map
|
|
3394
3416
|
//# sourceMappingURL=index.cjs.map
|