@scripso-homepad/ui 0.4.26 → 0.4.28
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/{chunk-N73KHOZ4.js → chunk-AOBKWDGW.js} +17 -3
- package/dist/chunk-AOBKWDGW.js.map +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +2 -2
- package/dist/web/index.cjs +14 -7
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +3 -1
- package/dist/web/index.d.ts +3 -1
- package/dist/web/index.js +15 -8
- package/dist/web/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/theme/tokens.ts +16 -0
- package/src/web/components/ConfirmModal.tsx +5 -2
- package/src/web/components/Modal.tsx +11 -5
- package/dist/chunk-N73KHOZ4.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -519,6 +519,21 @@ declare const buttonTypography: {
|
|
|
519
519
|
readonly letterSpacing: 0;
|
|
520
520
|
};
|
|
521
521
|
};
|
|
522
|
+
/** Announcement status badges shown to residents and admins. API `NEW` is labelled Urgent. */
|
|
523
|
+
declare const announcementStatusBadge: {
|
|
524
|
+
readonly urgent: {
|
|
525
|
+
readonly color: "#AE0011";
|
|
526
|
+
readonly background: "#F7DCDF";
|
|
527
|
+
};
|
|
528
|
+
readonly important: {
|
|
529
|
+
readonly color: "#0F52C7";
|
|
530
|
+
readonly background: "#E6EFFF";
|
|
531
|
+
};
|
|
532
|
+
readonly information: {
|
|
533
|
+
readonly color: "#279D54";
|
|
534
|
+
readonly background: "#279D541A";
|
|
535
|
+
};
|
|
536
|
+
};
|
|
522
537
|
declare const shadows: {
|
|
523
538
|
readonly card: {
|
|
524
539
|
readonly shadowColor: "#082640";
|
|
@@ -542,4 +557,4 @@ declare const shadows: {
|
|
|
542
557
|
};
|
|
543
558
|
};
|
|
544
559
|
|
|
545
|
-
export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarIcon, type CalendarLabels, type CalendarLocale, CalendarLocaleProvider, type CalendarLocaleProviderProps, type CalendarProps, type CalendarRangeProps, type CalendarSingleProps, type CalendarTranslationKey$1 as CalendarTranslationKey, type CalendarTranslations, type Country, CountryCodeSelector, type CountryCodeSelectorProps, CountryFlag, type CountryFlagProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, type EmeraldGreenStep, Input, type InputProps, Label, type LabelProps, LockIcon, type MultipleSelectProps, type NavyStep, PhoneInput, type PhoneInputProps, type RubyRedStep, Select, type SelectOption, type SelectProps, type SingleSelectProps, type StormGrayStep, brand, buttonTypography, calendarTranslations, colors, countries, countryCodeToFlagEmoji, defaultCountry, emeraldGreen, findCountry, fontSize, fontWeight, fonts, formatLocalizedCalendarMonthYear, getCalendarMonthLabels, getCalendarTranslations, getCountryFlagImageUri, labelTypography, navy, radii, resolveCalendarLocale, resolveWeekdayLabels, rubyRed, shadows, spacing, stormGray, typographyScale, useCalendarLocale };
|
|
560
|
+
export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarIcon, type CalendarLabels, type CalendarLocale, CalendarLocaleProvider, type CalendarLocaleProviderProps, type CalendarProps, type CalendarRangeProps, type CalendarSingleProps, type CalendarTranslationKey$1 as CalendarTranslationKey, type CalendarTranslations, type Country, CountryCodeSelector, type CountryCodeSelectorProps, CountryFlag, type CountryFlagProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, type EmeraldGreenStep, Input, type InputProps, Label, type LabelProps, LockIcon, type MultipleSelectProps, type NavyStep, PhoneInput, type PhoneInputProps, type RubyRedStep, Select, type SelectOption, type SelectProps, type SingleSelectProps, type StormGrayStep, announcementStatusBadge, brand, buttonTypography, calendarTranslations, colors, countries, countryCodeToFlagEmoji, defaultCountry, emeraldGreen, findCountry, fontSize, fontWeight, fonts, formatLocalizedCalendarMonthYear, getCalendarMonthLabels, getCalendarTranslations, getCountryFlagImageUri, labelTypography, navy, radii, resolveCalendarLocale, resolveWeekdayLabels, rubyRed, shadows, spacing, stormGray, typographyScale, useCalendarLocale };
|
package/dist/index.d.ts
CHANGED
|
@@ -519,6 +519,21 @@ declare const buttonTypography: {
|
|
|
519
519
|
readonly letterSpacing: 0;
|
|
520
520
|
};
|
|
521
521
|
};
|
|
522
|
+
/** Announcement status badges shown to residents and admins. API `NEW` is labelled Urgent. */
|
|
523
|
+
declare const announcementStatusBadge: {
|
|
524
|
+
readonly urgent: {
|
|
525
|
+
readonly color: "#AE0011";
|
|
526
|
+
readonly background: "#F7DCDF";
|
|
527
|
+
};
|
|
528
|
+
readonly important: {
|
|
529
|
+
readonly color: "#0F52C7";
|
|
530
|
+
readonly background: "#E6EFFF";
|
|
531
|
+
};
|
|
532
|
+
readonly information: {
|
|
533
|
+
readonly color: "#279D54";
|
|
534
|
+
readonly background: "#279D541A";
|
|
535
|
+
};
|
|
536
|
+
};
|
|
522
537
|
declare const shadows: {
|
|
523
538
|
readonly card: {
|
|
524
539
|
readonly shadowColor: "#082640";
|
|
@@ -542,4 +557,4 @@ declare const shadows: {
|
|
|
542
557
|
};
|
|
543
558
|
};
|
|
544
559
|
|
|
545
|
-
export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarIcon, type CalendarLabels, type CalendarLocale, CalendarLocaleProvider, type CalendarLocaleProviderProps, type CalendarProps, type CalendarRangeProps, type CalendarSingleProps, type CalendarTranslationKey$1 as CalendarTranslationKey, type CalendarTranslations, type Country, CountryCodeSelector, type CountryCodeSelectorProps, CountryFlag, type CountryFlagProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, type EmeraldGreenStep, Input, type InputProps, Label, type LabelProps, LockIcon, type MultipleSelectProps, type NavyStep, PhoneInput, type PhoneInputProps, type RubyRedStep, Select, type SelectOption, type SelectProps, type SingleSelectProps, type StormGrayStep, brand, buttonTypography, calendarTranslations, colors, countries, countryCodeToFlagEmoji, defaultCountry, emeraldGreen, findCountry, fontSize, fontWeight, fonts, formatLocalizedCalendarMonthYear, getCalendarMonthLabels, getCalendarTranslations, getCountryFlagImageUri, labelTypography, navy, radii, resolveCalendarLocale, resolveWeekdayLabels, rubyRed, shadows, spacing, stormGray, typographyScale, useCalendarLocale };
|
|
560
|
+
export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarIcon, type CalendarLabels, type CalendarLocale, CalendarLocaleProvider, type CalendarLocaleProviderProps, type CalendarProps, type CalendarRangeProps, type CalendarSingleProps, type CalendarTranslationKey$1 as CalendarTranslationKey, type CalendarTranslations, type Country, CountryCodeSelector, type CountryCodeSelectorProps, CountryFlag, type CountryFlagProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DateRange, type EmeraldGreenStep, Input, type InputProps, Label, type LabelProps, LockIcon, type MultipleSelectProps, type NavyStep, PhoneInput, type PhoneInputProps, type RubyRedStep, Select, type SelectOption, type SelectProps, type SingleSelectProps, type StormGrayStep, announcementStatusBadge, brand, buttonTypography, calendarTranslations, colors, countries, countryCodeToFlagEmoji, defaultCountry, emeraldGreen, findCountry, fontSize, fontWeight, fonts, formatLocalizedCalendarMonthYear, getCalendarMonthLabels, getCalendarTranslations, getCountryFlagImageUri, labelTypography, navy, radii, resolveCalendarLocale, resolveWeekdayLabels, rubyRed, shadows, spacing, stormGray, typographyScale, useCalendarLocale };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { spacing, colors, fontWeight, fontSize, fonts, radii, INPUT_HEIGHT, INPUT_OUTLINE_WIDTH, INPUT_ICON_GAP, useApplyWebClassName, resolveInputVisualState, Label, getInputFieldStyles, inputFieldMetrics } from './chunk-
|
|
2
|
-
export { Button, Input, Label, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray, typographyScale } from './chunk-
|
|
1
|
+
import { spacing, colors, fontWeight, fontSize, fonts, radii, INPUT_HEIGHT, INPUT_OUTLINE_WIDTH, INPUT_ICON_GAP, useApplyWebClassName, resolveInputVisualState, Label, getInputFieldStyles, inputFieldMetrics } from './chunk-AOBKWDGW.js';
|
|
2
|
+
export { Button, Input, Label, announcementStatusBadge, brand, buttonTypography, colors, emeraldGreen, fontSize, fontWeight, fonts, labelTypography, navy, radii, rubyRed, shadows, spacing, stormGray, typographyScale } from './chunk-AOBKWDGW.js';
|
|
3
3
|
import { createContext, useRef, useState, useMemo, useEffect, useLayoutEffect, useContext, isValidElement, cloneElement } from 'react';
|
|
4
4
|
import { Platform, StyleSheet, Animated, Easing, View, Pressable, Text, Modal, ScrollView, Image, TextInput, Dimensions } from 'react-native';
|
|
5
5
|
import Svg2, { Path } from 'react-native-svg';
|
package/dist/web/index.cjs
CHANGED
|
@@ -31129,6 +31129,8 @@ function Modal({
|
|
|
31129
31129
|
subtitle,
|
|
31130
31130
|
icon,
|
|
31131
31131
|
iconContainerClassName,
|
|
31132
|
+
titleClassName,
|
|
31133
|
+
subtitleClassName,
|
|
31132
31134
|
children,
|
|
31133
31135
|
cancelText,
|
|
31134
31136
|
confirmText,
|
|
@@ -31165,9 +31167,8 @@ function Modal({
|
|
|
31165
31167
|
return null;
|
|
31166
31168
|
}
|
|
31167
31169
|
const sharedButtonClassName = cn(
|
|
31168
|
-
"btn h-13 w-full justify-center!",
|
|
31169
|
-
|
|
31170
|
-
footerLayout !== "split" && buttonClassName
|
|
31170
|
+
"btn h-13 w-full! min-w-0! justify-center!",
|
|
31171
|
+
buttonClassName
|
|
31171
31172
|
);
|
|
31172
31173
|
const modal = /* @__PURE__ */ jsxRuntime.jsx(
|
|
31173
31174
|
"div",
|
|
@@ -31210,7 +31211,7 @@ function Modal({
|
|
|
31210
31211
|
"h2",
|
|
31211
31212
|
{
|
|
31212
31213
|
id: "homepad-modal-title",
|
|
31213
|
-
className: "typography-title-sm tracking-normal text-black",
|
|
31214
|
+
className: cn("typography-title-sm tracking-normal text-black", titleClassName),
|
|
31214
31215
|
children: title
|
|
31215
31216
|
}
|
|
31216
31217
|
),
|
|
@@ -31218,7 +31219,10 @@ function Modal({
|
|
|
31218
31219
|
"p",
|
|
31219
31220
|
{
|
|
31220
31221
|
id: "homepad-modal-subtitle",
|
|
31221
|
-
className:
|
|
31222
|
+
className: cn(
|
|
31223
|
+
"typography-caption tracking-normal text-storm-gray-400",
|
|
31224
|
+
subtitleClassName
|
|
31225
|
+
),
|
|
31222
31226
|
children: subtitle
|
|
31223
31227
|
}
|
|
31224
31228
|
) : null
|
|
@@ -31713,7 +31717,10 @@ function ConfirmModal({
|
|
|
31713
31717
|
if (!open) {
|
|
31714
31718
|
return null;
|
|
31715
31719
|
}
|
|
31716
|
-
const sharedButtonClassName = cn(
|
|
31720
|
+
const sharedButtonClassName = cn(
|
|
31721
|
+
"btn h-10! w-full! min-w-0! justify-center!",
|
|
31722
|
+
buttonClassName
|
|
31723
|
+
);
|
|
31717
31724
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31718
31725
|
"div",
|
|
31719
31726
|
{
|
|
@@ -31754,7 +31761,7 @@ function ConfirmModal({
|
|
|
31754
31761
|
}
|
|
31755
31762
|
)
|
|
31756
31763
|
] }),
|
|
31757
|
-
/* @__PURE__ */ jsxRuntime.jsxs("footer", { className: "
|
|
31764
|
+
/* @__PURE__ */ jsxRuntime.jsxs("footer", { className: "grid w-full grid-cols-2 gap-4", children: [
|
|
31758
31765
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31759
31766
|
Button,
|
|
31760
31767
|
{
|