@reillymc/react-native-components 0.11.11 → 0.12.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/README.md +97 -15
- package/lib/actions/action/Action.js +1 -0
- package/lib/actions/action/Action.theme.js +1 -0
- package/lib/actions/action/ActionBase.js +1 -0
- package/lib/actions/action/ActionBase.theme.js +1 -0
- package/lib/actions/action/IconAction.js +1 -0
- package/lib/actions/action/IconAction.theme.js +1 -0
- package/lib/actions/action/IconActionBase.js +1 -0
- package/lib/actions/action/IconActionBase.theme.js +1 -0
- package/lib/actions/action/PressableBase.js +1 -0
- package/lib/actions/action/StateTint.js +1 -0
- package/lib/actions/action/index.js +1 -0
- package/lib/actions/button/Button.js +1 -0
- package/lib/actions/button/Button.theme.js +1 -0
- package/lib/actions/button/ButtonBase.js +1 -0
- package/lib/actions/button/ButtonBase.theme.js +1 -0
- package/lib/actions/button/IconButton.js +1 -0
- package/lib/actions/button/IconButton.theme.js +1 -0
- package/lib/actions/button/IconButtonBase.js +1 -0
- package/lib/actions/button/IconButtonBase.theme.js +1 -0
- package/lib/actions/index.js +1 -0
- package/lib/actions/surface/InteractionSurface.js +1 -0
- package/lib/actions/surface/StateLayer.js +1 -0
- package/lib/actions/surface/StateLayer.theme.js +1 -0
- package/lib/actions/surface/index.js +1 -0
- package/lib/actions/swipeAction/SwipeAction.js +1 -0
- package/lib/actions/swipeAction/SwipeAction.theme.js +1 -0
- package/lib/actions/swipeAction/index.js +1 -0
- package/lib/display/avatar/Avatar.js +1 -0
- package/lib/display/avatar/Avatar.theme.js +1 -0
- package/lib/display/badge/Badge.js +1 -0
- package/lib/display/badge/Badge.theme.js +1 -0
- package/lib/display/badge/index.js +1 -0
- package/lib/display/contentRow/ContentRow.js +1 -0
- package/lib/display/contentRow/ContentRow.theme.js +1 -0
- package/lib/display/contentRow/index.js +1 -0
- package/lib/display/index.js +1 -0
- package/lib/display/listItem/ListItem.js +1 -0
- package/lib/display/listItem/ListItem.theme.js +1 -0
- package/lib/display/listItem/index.js +1 -0
- package/lib/display/rating/Rating.js +1 -0
- package/lib/display/rating/Rating.theme.js +1 -0
- package/lib/display/rating/index.js +1 -0
- package/lib/display/tag/Tag.js +1 -0
- package/lib/display/tag/Tag.theme.js +1 -0
- package/lib/display/tag/TagIcon.js +1 -0
- package/lib/display/tag/TagIcon.theme.js +1 -0
- package/lib/feedback/index.js +1 -0
- package/lib/feedback/toast/Toast.js +1 -0
- package/lib/feedback/toast/Toast.theme.js +1 -0
- package/lib/forms/field/Field.js +1 -0
- package/lib/forms/field/Field.theme.js +1 -0
- package/lib/forms/field/FieldAction.js +1 -0
- package/lib/forms/field/FieldContext.js +1 -0
- package/lib/forms/field/FieldIcon.js +1 -0
- package/lib/forms/field/FieldNumberInput.js +1 -0
- package/lib/forms/field/FieldRow.js +1 -0
- package/lib/forms/field/FieldSurface.js +1 -0
- package/lib/forms/field/FieldSurfaceContext.js +1 -0
- package/lib/forms/field/FieldSurfacePressLayer.js +1 -0
- package/lib/forms/field/FieldTextInput.js +1 -0
- package/lib/forms/field/a11y.js +1 -0
- package/lib/forms/field/index.js +1 -0
- package/lib/forms/field/useFieldControlFocus.js +1 -0
- package/lib/forms/field/useFieldControlRegistry.js +1 -0
- package/lib/forms/formContainer/FormContainer.js +1 -0
- package/lib/forms/formContainer/FormContainer.theme.js +1 -0
- package/lib/forms/formContainer/index.js +1 -0
- package/lib/forms/formRow/FormRow.js +1 -0
- package/lib/forms/formRow/FormRow.theme.js +1 -0
- package/lib/forms/formRow/index.js +1 -0
- package/lib/forms/index.js +1 -0
- package/lib/forms/input/TextInput.js +1 -0
- package/lib/forms/input/comboboxInput/ComboboxBlurGuard.js +1 -0
- package/lib/forms/input/comboboxInput/ComboboxBlurGuard.web.js +1 -0
- package/lib/forms/input/comboboxInput/ComboboxInput.js +1 -0
- package/lib/forms/input/comboboxInput/ComboboxInput.theme.js +1 -0
- package/lib/forms/input/comboboxInput/ComboboxInputBase.js +1 -0
- package/lib/forms/input/comboboxInput/helpers.js +1 -0
- package/lib/forms/input/comboboxInput/index.js +1 -0
- package/lib/forms/input/comboboxInput/useComboboxController.js +1 -0
- package/lib/forms/input/counterInput/CounterControl.js +1 -0
- package/lib/forms/input/counterInput/CounterInput.js +1 -0
- package/lib/forms/input/counterInput/index.js +1 -0
- package/lib/forms/input/index.js +1 -0
- package/lib/forms/input/numberInput/NumberInput.js +1 -0
- package/lib/forms/input/numberInput/helpers.js +1 -0
- package/lib/forms/input/numberInput/index.js +1 -0
- package/lib/forms/input/ratingInput/AnimatedStar.js +1 -0
- package/lib/forms/input/ratingInput/RatingControl.js +1 -0
- package/lib/forms/input/ratingInput/RatingInput.js +1 -0
- package/lib/forms/input/ratingInput/RatingInput.theme.js +1 -0
- package/lib/forms/input/ratingInput/helpers.js +1 -0
- package/lib/forms/input/ratingInput/index.js +1 -0
- package/lib/forms/input/selectionInput/SelectionControl.js +1 -0
- package/lib/forms/input/selectionInput/SelectionInput.js +1 -0
- package/lib/forms/input/selectionInput/SelectionInput.theme.js +1 -0
- package/lib/forms/input/selectionInput/index.js +1 -0
- package/lib/forms/input/shared/useSegmentedInputNavigation.js +1 -0
- package/lib/forms/input/timeInput/TimeInput.js +1 -0
- package/lib/forms/input/timeInput/helpers.js +1 -0
- package/lib/forms/input/timeInput/index.js +1 -0
- package/lib/forms/input/toggleInput/ToggleControl.js +1 -0
- package/lib/forms/input/toggleInput/ToggleInput.js +1 -0
- package/lib/forms/input/toggleInput/ToggleInput.theme.js +1 -0
- package/lib/forms/input/toggleInput/index.js +1 -0
- package/lib/icons/Icon.js +1 -0
- package/lib/icons/Icon.theme.js +1 -0
- package/lib/icons/IconBase.js +1 -0
- package/lib/icons/IconBase.theme.js +1 -0
- package/lib/icons/index.js +1 -1
- package/lib/icons/ui/Check.js +1 -0
- package/lib/icons/ui/CircleFilled.js +1 -0
- package/lib/icons/ui/index.js +1 -1
- package/lib/internal/defineComponentStyles.js +1 -0
- package/lib/internal/index.js +1 -0
- package/lib/internal/useComponent.js +1 -0
- package/lib/internal/useFocusVisible.js +1 -0
- package/lib/internal/useForwardedRef.js +1 -0
- package/lib/layout/collapsiblePanel/CollapsiblePanel.js +1 -0
- package/lib/layout/collapsiblePanel/index.js +1 -0
- package/lib/layout/index.js +1 -0
- package/lib/layout/swipeable/SwipeableContainer.js +1 -0
- package/lib/layout/swipeable/index.js +1 -0
- package/lib/overlays/anchoredContainer/AnchoredContainer.ios.js +1 -0
- package/lib/overlays/anchoredContainer/AnchoredContainer.js +1 -0
- package/lib/overlays/anchoredContainer/AnchoredContainer.theme.js +1 -0
- package/lib/overlays/anchoredContainer/AnchoredContainer.web.js +1 -0
- package/lib/overlays/anchoredContainer/InlineMount.js +1 -0
- package/lib/overlays/anchoredContainer/OverlayMount.js +1 -0
- package/lib/overlays/anchoredContainer/helpers.js +1 -0
- package/lib/overlays/anchoredContainer/useAnchoredContainerPosition.js +1 -0
- package/lib/overlays/index.js +1 -0
- package/lib/overlays/menu/Menu.js +1 -0
- package/lib/overlays/menu/Menu.theme.js +1 -0
- package/lib/overlays/menu/MenuItem.js +1 -0
- package/lib/overlays/menu/MenuItem.theme.js +1 -0
- package/lib/theme/ThemeContext.js +1 -0
- package/lib/theme/ThemeProvider.js +1 -0
- package/lib/theme/colors.js +1 -0
- package/lib/theme/createAppTheme.js +1 -0
- package/lib/theme/icons.js +1 -0
- package/lib/theme/index.js +1 -1
- package/lib/theme/mergeTheme.js +1 -0
- package/lib/theme/palette.js +1 -0
- package/lib/theme/resolveTheme.js +1 -0
- package/lib/theme/resolveThemeGraph.js +1 -0
- package/lib/theme/systems.js +1 -0
- package/lib/theme/theme.js +1 -1
- package/lib/theme/themeDefinitions.js +1 -0
- package/lib/theme/useSystems.js +1 -0
- package/lib/theme/useTheme.js +1 -0
- package/lib/types/actions/action/Action.d.ts +18 -0
- package/lib/types/actions/action/Action.d.ts.map +1 -0
- package/lib/types/actions/action/Action.theme.d.ts +3 -0
- package/lib/types/actions/action/Action.theme.d.ts.map +1 -0
- package/lib/types/actions/action/ActionBase.d.ts +19 -0
- package/lib/types/actions/action/ActionBase.d.ts.map +1 -0
- package/lib/types/actions/action/ActionBase.theme.d.ts +3 -0
- package/lib/types/actions/action/ActionBase.theme.d.ts.map +1 -0
- package/lib/types/actions/action/IconAction.d.ts +15 -0
- package/lib/types/actions/action/IconAction.d.ts.map +1 -0
- package/lib/types/actions/action/IconAction.theme.d.ts +3 -0
- package/lib/types/actions/action/IconAction.theme.d.ts.map +1 -0
- package/lib/types/actions/action/IconActionBase.d.ts +16 -0
- package/lib/types/actions/action/IconActionBase.d.ts.map +1 -0
- package/lib/types/actions/action/IconActionBase.theme.d.ts +3 -0
- package/lib/types/actions/action/IconActionBase.theme.d.ts.map +1 -0
- package/lib/types/actions/action/PressableBase.d.ts +12 -0
- package/lib/types/actions/action/PressableBase.d.ts.map +1 -0
- package/lib/types/actions/action/StateTint.d.ts +9 -0
- package/lib/types/actions/action/StateTint.d.ts.map +1 -0
- package/lib/types/actions/action/index.d.ts +7 -0
- package/lib/types/actions/action/index.d.ts.map +1 -0
- package/lib/types/actions/button/Button.d.ts +30 -0
- package/lib/types/actions/button/Button.d.ts.map +1 -0
- package/lib/types/actions/button/Button.theme.d.ts +3 -0
- package/lib/types/actions/button/Button.theme.d.ts.map +1 -0
- package/lib/types/actions/button/ButtonBase.d.ts +20 -0
- package/lib/types/actions/button/ButtonBase.d.ts.map +1 -0
- package/lib/types/actions/button/ButtonBase.theme.d.ts +3 -0
- package/lib/types/actions/button/ButtonBase.theme.d.ts.map +1 -0
- package/lib/types/actions/button/IconButton.d.ts +20 -0
- package/lib/types/actions/button/IconButton.d.ts.map +1 -0
- package/lib/types/actions/button/IconButton.theme.d.ts +3 -0
- package/lib/types/actions/button/IconButton.theme.d.ts.map +1 -0
- package/lib/types/actions/button/IconButtonBase.d.ts +22 -0
- package/lib/types/actions/button/IconButtonBase.d.ts.map +1 -0
- package/lib/types/actions/button/IconButtonBase.theme.d.ts +3 -0
- package/lib/types/actions/button/IconButtonBase.theme.d.ts.map +1 -0
- package/lib/types/actions/button/index.d.ts +5 -0
- package/lib/types/actions/button/index.d.ts.map +1 -0
- package/lib/types/actions/index.d.ts +6 -0
- package/lib/types/actions/index.d.ts.map +1 -0
- package/lib/types/actions/surface/InteractionSurface.d.ts +7 -0
- package/lib/types/actions/surface/InteractionSurface.d.ts.map +1 -0
- package/lib/types/actions/surface/StateLayer.d.ts +13 -0
- package/lib/types/actions/surface/StateLayer.d.ts.map +1 -0
- package/lib/types/actions/surface/StateLayer.theme.d.ts +3 -0
- package/lib/types/actions/surface/StateLayer.theme.d.ts.map +1 -0
- package/lib/types/actions/surface/index.d.ts +3 -0
- package/lib/types/actions/surface/index.d.ts.map +1 -0
- package/lib/types/actions/swipeAction/SwipeAction.d.ts +9 -0
- package/lib/types/actions/swipeAction/SwipeAction.d.ts.map +1 -0
- package/lib/types/actions/swipeAction/SwipeAction.theme.d.ts +3 -0
- package/lib/types/actions/swipeAction/SwipeAction.theme.d.ts.map +1 -0
- package/lib/types/actions/swipeAction/index.d.ts +2 -0
- package/lib/types/actions/swipeAction/index.d.ts.map +1 -0
- package/lib/types/display/avatar/Avatar.d.ts +40 -0
- package/lib/types/display/avatar/Avatar.d.ts.map +1 -0
- package/lib/types/display/avatar/Avatar.theme.d.ts +3 -0
- package/lib/types/display/avatar/Avatar.theme.d.ts.map +1 -0
- package/lib/types/display/avatar/index.d.ts.map +1 -0
- package/lib/types/display/badge/Badge.d.ts +20 -0
- package/lib/types/display/badge/Badge.d.ts.map +1 -0
- package/lib/types/display/badge/Badge.theme.d.ts +3 -0
- package/lib/types/display/badge/Badge.theme.d.ts.map +1 -0
- package/lib/types/display/badge/index.d.ts +2 -0
- package/lib/types/display/badge/index.d.ts.map +1 -0
- package/lib/types/display/contentRow/ContentRow.d.ts +14 -0
- package/lib/types/display/contentRow/ContentRow.d.ts.map +1 -0
- package/lib/types/display/contentRow/ContentRow.theme.d.ts +3 -0
- package/lib/types/display/contentRow/ContentRow.theme.d.ts.map +1 -0
- package/lib/types/display/contentRow/index.d.ts +2 -0
- package/lib/types/display/contentRow/index.d.ts.map +1 -0
- package/lib/types/display/index.d.ts +7 -0
- package/lib/types/display/index.d.ts.map +1 -0
- package/lib/types/display/listItem/ListItem.d.ts +42 -0
- package/lib/types/display/listItem/ListItem.d.ts.map +1 -0
- package/lib/types/display/listItem/ListItem.theme.d.ts +3 -0
- package/lib/types/display/listItem/ListItem.theme.d.ts.map +1 -0
- package/lib/types/display/listItem/index.d.ts +2 -0
- package/lib/types/display/listItem/index.d.ts.map +1 -0
- package/lib/types/display/rating/Rating.d.ts +36 -0
- package/lib/types/display/rating/Rating.d.ts.map +1 -0
- package/lib/types/display/rating/Rating.theme.d.ts +3 -0
- package/lib/types/display/rating/Rating.theme.d.ts.map +1 -0
- package/lib/types/display/rating/index.d.ts +3 -0
- package/lib/types/display/rating/index.d.ts.map +1 -0
- package/lib/types/display/rating/ratingUtils.d.ts.map +1 -0
- package/lib/types/display/tag/Tag.d.ts +24 -0
- package/lib/types/display/tag/Tag.d.ts.map +1 -0
- package/lib/types/display/tag/Tag.theme.d.ts +3 -0
- package/lib/types/display/tag/Tag.theme.d.ts.map +1 -0
- package/lib/types/display/tag/TagIcon.d.ts +13 -0
- package/lib/types/display/tag/TagIcon.d.ts.map +1 -0
- package/lib/types/display/tag/TagIcon.theme.d.ts +3 -0
- package/lib/types/display/tag/TagIcon.theme.d.ts.map +1 -0
- package/lib/types/display/tag/index.d.ts.map +1 -0
- package/lib/types/feedback/index.d.ts +2 -0
- package/lib/types/feedback/index.d.ts.map +1 -0
- package/lib/types/feedback/toast/Toast.d.ts +22 -0
- package/lib/types/feedback/toast/Toast.d.ts.map +1 -0
- package/lib/types/feedback/toast/Toast.theme.d.ts +3 -0
- package/lib/types/feedback/toast/Toast.theme.d.ts.map +1 -0
- package/lib/types/feedback/toast/index.d.ts.map +1 -0
- package/lib/types/forms/field/Field.d.ts +38 -0
- package/lib/types/forms/field/Field.d.ts.map +1 -0
- package/lib/types/forms/field/Field.theme.d.ts +40 -0
- package/lib/types/forms/field/Field.theme.d.ts.map +1 -0
- package/lib/types/forms/field/FieldAction.d.ts +13 -0
- package/lib/types/forms/field/FieldAction.d.ts.map +1 -0
- package/lib/types/forms/field/FieldContext.d.ts +33 -0
- package/lib/types/forms/field/FieldContext.d.ts.map +1 -0
- package/lib/types/forms/field/FieldIcon.d.ts +12 -0
- package/lib/types/forms/field/FieldIcon.d.ts.map +1 -0
- package/lib/types/forms/field/FieldNumberInput.d.ts +14 -0
- package/lib/types/forms/field/FieldNumberInput.d.ts.map +1 -0
- package/lib/types/forms/field/FieldRow.d.ts +16 -0
- package/lib/types/forms/field/FieldRow.d.ts.map +1 -0
- package/lib/types/forms/field/FieldSurface.d.ts +16 -0
- package/lib/types/forms/field/FieldSurface.d.ts.map +1 -0
- package/lib/types/forms/field/FieldSurfaceContext.d.ts +17 -0
- package/lib/types/forms/field/FieldSurfaceContext.d.ts.map +1 -0
- package/lib/types/forms/field/FieldSurfacePressLayer.d.ts +11 -0
- package/lib/types/forms/field/FieldSurfacePressLayer.d.ts.map +1 -0
- package/lib/types/forms/field/FieldTextInput.d.ts +24 -0
- package/lib/types/forms/field/FieldTextInput.d.ts.map +1 -0
- package/lib/types/forms/field/a11y.d.ts +41 -0
- package/lib/types/forms/field/a11y.d.ts.map +1 -0
- package/lib/types/forms/field/index.d.ts +19 -0
- package/lib/types/forms/field/index.d.ts.map +1 -0
- package/lib/types/forms/field/useFieldControlFocus.d.ts +29 -0
- package/lib/types/forms/field/useFieldControlFocus.d.ts.map +1 -0
- package/lib/types/forms/field/useFieldControlRegistry.d.ts +10 -0
- package/lib/types/forms/field/useFieldControlRegistry.d.ts.map +1 -0
- package/lib/types/forms/formContainer/FormContainer.d.ts +13 -0
- package/lib/types/forms/formContainer/FormContainer.d.ts.map +1 -0
- package/lib/types/forms/formContainer/FormContainer.theme.d.ts +3 -0
- package/lib/types/forms/formContainer/FormContainer.theme.d.ts.map +1 -0
- package/lib/types/forms/formContainer/index.d.ts +2 -0
- package/lib/types/forms/formContainer/index.d.ts.map +1 -0
- package/lib/types/forms/formRow/FormRow.d.ts +13 -0
- package/lib/types/forms/formRow/FormRow.d.ts.map +1 -0
- package/lib/types/forms/formRow/FormRow.theme.d.ts +3 -0
- package/lib/types/forms/formRow/FormRow.theme.d.ts.map +1 -0
- package/lib/types/forms/formRow/index.d.ts +2 -0
- package/lib/types/forms/formRow/index.d.ts.map +1 -0
- package/lib/types/forms/index.d.ts +9 -0
- package/lib/types/forms/index.d.ts.map +1 -0
- package/lib/types/forms/input/TextInput.d.ts +8 -0
- package/lib/types/forms/input/TextInput.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/ComboboxBlurGuard.d.ts +8 -0
- package/lib/types/forms/input/comboboxInput/ComboboxBlurGuard.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/ComboboxBlurGuard.web.d.ts +9 -0
- package/lib/types/forms/input/comboboxInput/ComboboxBlurGuard.web.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInput.d.ts +8 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInput.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInput.theme.d.ts +3 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInputBase.d.ts +73 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInputBase.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/helpers.d.ts +13 -0
- package/lib/types/forms/input/comboboxInput/helpers.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/index.d.ts +4 -0
- package/lib/types/forms/input/comboboxInput/index.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/useComboboxController.d.ts +43 -0
- package/lib/types/forms/input/comboboxInput/useComboboxController.d.ts.map +1 -0
- package/lib/types/forms/input/counterInput/CounterControl.d.ts +17 -0
- package/lib/types/forms/input/counterInput/CounterControl.d.ts.map +1 -0
- package/lib/types/forms/input/counterInput/CounterInput.d.ts +19 -0
- package/lib/types/forms/input/counterInput/CounterInput.d.ts.map +1 -0
- package/lib/types/forms/input/counterInput/index.d.ts +3 -0
- package/lib/types/forms/input/counterInput/index.d.ts.map +1 -0
- package/lib/types/forms/input/index.d.ts +18 -0
- package/lib/types/forms/input/index.d.ts.map +1 -0
- package/lib/types/forms/input/numberInput/NumberInput.d.ts +47 -0
- package/lib/types/forms/input/numberInput/NumberInput.d.ts.map +1 -0
- package/lib/types/forms/input/numberInput/helpers.d.ts +16 -0
- package/lib/types/forms/input/numberInput/helpers.d.ts.map +1 -0
- package/lib/types/forms/input/numberInput/index.d.ts +3 -0
- package/lib/types/forms/input/numberInput/index.d.ts.map +1 -0
- package/lib/types/forms/input/ratingInput/AnimatedStar.d.ts +14 -0
- package/lib/types/forms/input/ratingInput/AnimatedStar.d.ts.map +1 -0
- package/lib/types/forms/input/ratingInput/RatingControl.d.ts +13 -0
- package/lib/types/forms/input/ratingInput/RatingControl.d.ts.map +1 -0
- package/lib/types/forms/input/ratingInput/RatingInput.d.ts +13 -0
- package/lib/types/forms/input/ratingInput/RatingInput.d.ts.map +1 -0
- package/lib/types/forms/input/ratingInput/RatingInput.theme.d.ts +10 -0
- package/lib/types/forms/input/ratingInput/RatingInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/ratingInput/helpers.d.ts +9 -0
- package/lib/types/forms/input/ratingInput/helpers.d.ts.map +1 -0
- package/lib/types/forms/input/ratingInput/index.d.ts +4 -0
- package/lib/types/forms/input/ratingInput/index.d.ts.map +1 -0
- package/lib/types/forms/input/selectionInput/SelectionControl.d.ts +14 -0
- package/lib/types/forms/input/selectionInput/SelectionControl.d.ts.map +1 -0
- package/lib/types/forms/input/selectionInput/SelectionInput.d.ts +30 -0
- package/lib/types/forms/input/selectionInput/SelectionInput.d.ts.map +1 -0
- package/lib/types/forms/input/selectionInput/SelectionInput.theme.d.ts +8 -0
- package/lib/types/forms/input/selectionInput/SelectionInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/selectionInput/index.d.ts +4 -0
- package/lib/types/forms/input/selectionInput/index.d.ts.map +1 -0
- package/lib/types/forms/input/shared/useSegmentedInputNavigation.d.ts +48 -0
- package/lib/types/forms/input/shared/useSegmentedInputNavigation.d.ts.map +1 -0
- package/lib/types/forms/input/timeInput/TimeInput.d.ts +31 -0
- package/lib/types/forms/input/timeInput/TimeInput.d.ts.map +1 -0
- package/lib/types/forms/input/timeInput/helpers.d.ts +14 -0
- package/lib/types/forms/input/timeInput/helpers.d.ts.map +1 -0
- package/lib/types/forms/input/timeInput/index.d.ts +3 -0
- package/lib/types/forms/input/timeInput/index.d.ts.map +1 -0
- package/lib/types/forms/input/toggleInput/ToggleControl.d.ts +13 -0
- package/lib/types/forms/input/toggleInput/ToggleControl.d.ts.map +1 -0
- package/lib/types/forms/input/toggleInput/ToggleInput.d.ts +19 -0
- package/lib/types/forms/input/toggleInput/ToggleInput.d.ts.map +1 -0
- package/lib/types/forms/input/toggleInput/ToggleInput.theme.d.ts +20 -0
- package/lib/types/forms/input/toggleInput/ToggleInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/toggleInput/index.d.ts +4 -0
- package/lib/types/forms/input/toggleInput/index.d.ts.map +1 -0
- package/lib/types/forms/input/valueItem.d.ts.map +1 -0
- package/lib/types/icons/Icon.d.ts +15 -0
- package/lib/types/icons/Icon.d.ts.map +1 -0
- package/lib/types/icons/Icon.theme.d.ts +3 -0
- package/lib/types/icons/Icon.theme.d.ts.map +1 -0
- package/lib/types/icons/IconBase.d.ts +14 -0
- package/lib/types/icons/IconBase.d.ts.map +1 -0
- package/lib/types/icons/IconBase.theme.d.ts +3 -0
- package/lib/types/icons/IconBase.theme.d.ts.map +1 -0
- package/lib/types/icons/IconComponentProps.d.ts +6 -0
- package/lib/types/icons/IconComponentProps.d.ts.map +1 -0
- package/lib/types/icons/index.d.ts +3 -3
- package/lib/types/icons/index.d.ts.map +1 -1
- package/lib/types/icons/ui/Check.d.ts +4 -0
- package/lib/types/icons/ui/Check.d.ts.map +1 -0
- package/lib/types/icons/ui/CircleFilled.d.ts +4 -0
- package/lib/types/icons/ui/CircleFilled.d.ts.map +1 -0
- package/lib/types/icons/ui/index.d.ts +1 -1
- package/lib/types/icons/ui/index.d.ts.map +1 -1
- package/lib/types/internal/defineComponentStyles.d.ts +7 -0
- package/lib/types/internal/defineComponentStyles.d.ts.map +1 -0
- package/lib/types/internal/index.d.ts +5 -0
- package/lib/types/internal/index.d.ts.map +1 -0
- package/lib/types/internal/useComponent.d.ts +26 -0
- package/lib/types/internal/useComponent.d.ts.map +1 -0
- package/lib/types/internal/useFocusVisible.d.ts +30 -0
- package/lib/types/internal/useFocusVisible.d.ts.map +1 -0
- package/lib/types/internal/useForwardedRef.d.ts +3 -0
- package/lib/types/internal/useForwardedRef.d.ts.map +1 -0
- package/lib/types/layout/collapsiblePanel/CollapsiblePanel.d.ts +10 -0
- package/lib/types/layout/collapsiblePanel/CollapsiblePanel.d.ts.map +1 -0
- package/lib/types/layout/collapsiblePanel/index.d.ts +2 -0
- package/lib/types/layout/collapsiblePanel/index.d.ts.map +1 -0
- package/lib/types/layout/index.d.ts +3 -0
- package/lib/types/layout/index.d.ts.map +1 -0
- package/lib/types/layout/swipeable/SwipeableContainer.d.ts +13 -0
- package/lib/types/layout/swipeable/SwipeableContainer.d.ts.map +1 -0
- package/lib/types/layout/swipeable/index.d.ts +2 -0
- package/lib/types/layout/swipeable/index.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/AnchoredContainer.d.ts +50 -0
- package/lib/types/overlays/anchoredContainer/AnchoredContainer.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/AnchoredContainer.ios.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/AnchoredContainer.theme.d.ts +3 -0
- package/lib/types/overlays/anchoredContainer/AnchoredContainer.theme.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/AnchoredContainer.web.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/InlineMount.d.ts +9 -0
- package/lib/types/overlays/anchoredContainer/InlineMount.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/OverlayMount.d.ts +11 -0
- package/lib/types/overlays/anchoredContainer/OverlayMount.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/helpers.d.ts +3 -0
- package/lib/types/overlays/anchoredContainer/helpers.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/index.d.ts +3 -0
- package/lib/types/overlays/anchoredContainer/index.d.ts.map +1 -0
- package/lib/types/overlays/anchoredContainer/useAnchoredContainerPosition.d.ts +29 -0
- package/lib/types/overlays/anchoredContainer/useAnchoredContainerPosition.d.ts.map +1 -0
- package/lib/types/overlays/index.d.ts +3 -0
- package/lib/types/overlays/index.d.ts.map +1 -0
- package/lib/types/overlays/menu/Menu.d.ts +27 -0
- package/lib/types/overlays/menu/Menu.d.ts.map +1 -0
- package/lib/types/overlays/menu/Menu.theme.d.ts +3 -0
- package/lib/types/overlays/menu/Menu.theme.d.ts.map +1 -0
- package/lib/types/overlays/menu/MenuItem.d.ts +17 -0
- package/lib/types/overlays/menu/MenuItem.d.ts.map +1 -0
- package/lib/types/overlays/menu/MenuItem.theme.d.ts +3 -0
- package/lib/types/overlays/menu/MenuItem.theme.d.ts.map +1 -0
- package/lib/types/overlays/menu/index.d.ts.map +1 -0
- package/lib/types/theme/ThemeContext.d.ts +12 -0
- package/lib/types/theme/ThemeContext.d.ts.map +1 -0
- package/lib/types/theme/ThemeProvider.d.ts +26 -0
- package/lib/types/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/types/theme/colors.d.ts +28 -0
- package/lib/types/theme/colors.d.ts.map +1 -0
- package/lib/types/theme/createAppTheme.d.ts +30 -0
- package/lib/types/theme/createAppTheme.d.ts.map +1 -0
- package/lib/types/theme/icons.d.ts +129 -0
- package/lib/types/theme/icons.d.ts.map +1 -0
- package/lib/types/theme/index.d.ts +8 -1
- package/lib/types/theme/index.d.ts.map +1 -1
- package/lib/types/theme/mergeTheme.d.ts +12 -0
- package/lib/types/theme/mergeTheme.d.ts.map +1 -0
- package/lib/types/theme/palette.d.ts +57 -0
- package/lib/types/theme/palette.d.ts.map +1 -0
- package/lib/types/theme/resolveTheme.d.ts +13 -0
- package/lib/types/theme/resolveTheme.d.ts.map +1 -0
- package/lib/types/theme/resolveThemeGraph.d.ts +24 -0
- package/lib/types/theme/resolveThemeGraph.d.ts.map +1 -0
- package/lib/types/theme/systems.d.ts +61 -0
- package/lib/types/theme/systems.d.ts.map +1 -0
- package/lib/types/theme/theme.d.ts +68 -78
- package/lib/types/theme/theme.d.ts.map +1 -1
- package/lib/types/theme/themeDefinitions.d.ts +6 -0
- package/lib/types/theme/themeDefinitions.d.ts.map +1 -0
- package/lib/types/theme/useSystems.d.ts +24 -0
- package/lib/types/theme/useSystems.d.ts.map +1 -0
- package/lib/types/theme/useTheme.d.ts +8 -0
- package/lib/types/theme/useTheme.d.ts.map +1 -0
- package/lib/types/typography/index.d.ts +3 -0
- package/lib/types/typography/index.d.ts.map +1 -0
- package/lib/types/typography/text/HighlightedText.d.ts +16 -0
- package/lib/types/typography/text/HighlightedText.d.ts.map +1 -0
- package/lib/types/typography/text/HighlightedText.theme.d.ts +3 -0
- package/lib/types/typography/text/HighlightedText.theme.d.ts.map +1 -0
- package/lib/types/typography/text/Text.d.ts +21 -0
- package/lib/types/typography/text/Text.d.ts.map +1 -0
- package/lib/types/typography/text/Text.theme.d.ts +3 -0
- package/lib/types/typography/text/Text.theme.d.ts.map +1 -0
- package/lib/types/typography/text/index.d.ts +3 -0
- package/lib/types/typography/text/index.d.ts.map +1 -0
- package/lib/typography/index.js +1 -0
- package/lib/typography/text/HighlightedText.js +1 -0
- package/lib/typography/text/HighlightedText.theme.js +1 -0
- package/lib/typography/text/Text.js +1 -0
- package/lib/typography/text/Text.theme.js +1 -0
- package/lib/typography/text/index.js +1 -0
- package/package.json +30 -23
- package/lib/common/index.js +0 -1
- package/lib/common/typography.js +0 -1
- package/lib/components/action/Action.js +0 -1
- package/lib/components/action/Action.styles.js +0 -1
- package/lib/components/action/ActionBase.js +0 -1
- package/lib/components/action/IconAction.js +0 -1
- package/lib/components/action/IconAction.styles.js +0 -1
- package/lib/components/action/IconActionBase.js +0 -1
- package/lib/components/action/IconActionBase.styles.js +0 -1
- package/lib/components/action/index.js +0 -1
- package/lib/components/alert/AlertIndicator.js +0 -1
- package/lib/components/alert/AlertIndicator.styles.js +0 -1
- package/lib/components/alert/index.js +0 -1
- package/lib/components/avatar/Avatar.js +0 -1
- package/lib/components/avatar/Avatar.styles.js +0 -1
- package/lib/components/button/Button.js +0 -1
- package/lib/components/button/Button.styles.js +0 -1
- package/lib/components/button/ButtonBase.js +0 -1
- package/lib/components/button/ButtonBase.styles.js +0 -1
- package/lib/components/button/IconButton.js +0 -1
- package/lib/components/button/IconButton.styles.js +0 -1
- package/lib/components/button/IconButtonBase.js +0 -1
- package/lib/components/button/IconButtonBase.styles.js +0 -1
- package/lib/components/container/FormContainer.js +0 -1
- package/lib/components/container/FormRow.js +0 -1
- package/lib/components/container/Panel.js +0 -1
- package/lib/components/container/anchoredContainer/AnchoredContainer.ios.js +0 -1
- package/lib/components/container/anchoredContainer/AnchoredContainer.js +0 -1
- package/lib/components/container/anchoredContainer/AnchoredContainer.styles.js +0 -1
- package/lib/components/container/anchoredContainer/AnchoredContainer.web.js +0 -1
- package/lib/components/container/anchoredContainer/InlineMount.js +0 -1
- package/lib/components/container/anchoredContainer/OverlayMount.js +0 -1
- package/lib/components/container/anchoredContainer/helpers.js +0 -1
- package/lib/components/container/anchoredContainer/useAnchoredContainerPosition.js +0 -1
- package/lib/components/container/index.js +0 -1
- package/lib/components/icon/Icon.js +0 -1
- package/lib/components/icon/Icon.styles.js +0 -1
- package/lib/components/icon/IconBase.js +0 -1
- package/lib/components/icon/IconBase.styles.js +0 -1
- package/lib/components/icon/InteractiveIcon.js +0 -1
- package/lib/components/icon/InteractiveIcon.styles.js +0 -1
- package/lib/components/icon/index.js +0 -1
- package/lib/components/index.js +0 -1
- package/lib/components/input/CounterInput.js +0 -1
- package/lib/components/input/InputAction.js +0 -1
- package/lib/components/input/InputAction.styles.js +0 -1
- package/lib/components/input/InputBase.js +0 -1
- package/lib/components/input/InputBase.styles.js +0 -1
- package/lib/components/input/InputRowContainer.js +0 -1
- package/lib/components/input/InputScaffold.js +0 -1
- package/lib/components/input/InputScaffold.styles.js +0 -1
- package/lib/components/input/NumberInput.js +0 -1
- package/lib/components/input/NumberInputBase.js +0 -1
- package/lib/components/input/RatingInput.js +0 -1
- package/lib/components/input/SelectionInput.js +0 -1
- package/lib/components/input/SelectionInput.styles.js +0 -1
- package/lib/components/input/TextInput.js +0 -1
- package/lib/components/input/TimeInput.js +0 -1
- package/lib/components/input/ToggleInput.js +0 -1
- package/lib/components/input/ToggleInput.styles.js +0 -1
- package/lib/components/input/dropdownInput/DropdownBlurGuard.js +0 -1
- package/lib/components/input/dropdownInput/DropdownBlurGuard.web.js +0 -1
- package/lib/components/input/dropdownInput/DropdownInput.js +0 -1
- package/lib/components/input/dropdownInput/DropdownInput.styles.js +0 -1
- package/lib/components/input/dropdownInput/DropdownInputBase.js +0 -1
- package/lib/components/input/dropdownInput/helpers.js +0 -1
- package/lib/components/input/dropdownInput/index.js +0 -1
- package/lib/components/input/dropdownInput/useDropdownController.js +0 -1
- package/lib/components/input/index.js +0 -1
- package/lib/components/listItem/ListItem.js +0 -1
- package/lib/components/listItem/ListItem.styles.js +0 -1
- package/lib/components/listItem/ListItemAlert.js +0 -1
- package/lib/components/listItem/ListItemAvatar.js +0 -1
- package/lib/components/listItem/ListItemFooter.js +0 -1
- package/lib/components/listItem/ListItemRow.js +0 -1
- package/lib/components/listItem/index.js +0 -1
- package/lib/components/menu/Menu.js +0 -1
- package/lib/components/menu/Menu.styles.js +0 -1
- package/lib/components/menu/MenuItem.js +0 -1
- package/lib/components/menu/MenuItem.styles.js +0 -1
- package/lib/components/rating/Rating.js +0 -1
- package/lib/components/rating/Rating.styles.js +0 -1
- package/lib/components/rating/index.js +0 -1
- package/lib/components/swipe/SwipeAction.js +0 -1
- package/lib/components/swipe/SwipeAction.styles.js +0 -1
- package/lib/components/swipe/SwipeableContainer.js +0 -1
- package/lib/components/swipe/index.js +0 -1
- package/lib/components/tag/Tag.js +0 -1
- package/lib/components/tag/Tag.styles.js +0 -1
- package/lib/components/tag/TagIcon.js +0 -1
- package/lib/components/text/HighlightedText.js +0 -1
- package/lib/components/text/HighlightedText.styles.js +0 -1
- package/lib/components/text/InteractiveText.js +0 -1
- package/lib/components/text/InteractiveText.styles.js +0 -1
- package/lib/components/text/Text.js +0 -1
- package/lib/components/text/Text.styles.js +0 -1
- package/lib/components/text/index.js +0 -1
- package/lib/components/toast/Toast.js +0 -1
- package/lib/components/toast/Toast.styles.js +0 -1
- package/lib/hooks/index.js +0 -1
- package/lib/hooks/useControlledState.js +0 -1
- package/lib/hooks/useForwardedRef.js +0 -1
- package/lib/hooks/usePersistentKeyboardHeight.js +0 -1
- package/lib/hooks/useTheme.js +0 -1
- package/lib/hooks/useThemedStyles.js +0 -1
- package/lib/icons/componentIcons.js +0 -1
- package/lib/providers/ThemeContext.js +0 -1
- package/lib/providers/ThemeProvider.js +0 -1
- package/lib/providers/index.js +0 -1
- package/lib/style/createThemedStyles.js +0 -1
- package/lib/style/index.js +0 -1
- package/lib/style/styleFactory.js +0 -1
- package/lib/style/styles.js +0 -1
- package/lib/types/common/index.d.ts +0 -3
- package/lib/types/common/index.d.ts.map +0 -1
- package/lib/types/common/typography.d.ts +0 -6
- package/lib/types/common/typography.d.ts.map +0 -1
- package/lib/types/common/valueItem.d.ts.map +0 -1
- package/lib/types/components/action/Action.d.ts +0 -11
- package/lib/types/components/action/Action.d.ts.map +0 -1
- package/lib/types/components/action/Action.styles.d.ts +0 -10
- package/lib/types/components/action/Action.styles.d.ts.map +0 -1
- package/lib/types/components/action/ActionBase.d.ts +0 -9
- package/lib/types/components/action/ActionBase.d.ts.map +0 -1
- package/lib/types/components/action/IconAction.d.ts +0 -10
- package/lib/types/components/action/IconAction.d.ts.map +0 -1
- package/lib/types/components/action/IconAction.styles.d.ts +0 -18
- package/lib/types/components/action/IconAction.styles.d.ts.map +0 -1
- package/lib/types/components/action/IconActionBase.d.ts +0 -11
- package/lib/types/components/action/IconActionBase.d.ts.map +0 -1
- package/lib/types/components/action/IconActionBase.styles.d.ts +0 -14
- package/lib/types/components/action/IconActionBase.styles.d.ts.map +0 -1
- package/lib/types/components/action/index.d.ts +0 -5
- package/lib/types/components/action/index.d.ts.map +0 -1
- package/lib/types/components/alert/AlertIndicator.d.ts +0 -10
- package/lib/types/components/alert/AlertIndicator.d.ts.map +0 -1
- package/lib/types/components/alert/AlertIndicator.styles.d.ts +0 -11
- package/lib/types/components/alert/AlertIndicator.styles.d.ts.map +0 -1
- package/lib/types/components/alert/index.d.ts +0 -2
- package/lib/types/components/alert/index.d.ts.map +0 -1
- package/lib/types/components/avatar/Avatar.d.ts +0 -19
- package/lib/types/components/avatar/Avatar.d.ts.map +0 -1
- package/lib/types/components/avatar/Avatar.styles.d.ts +0 -22
- package/lib/types/components/avatar/Avatar.styles.d.ts.map +0 -1
- package/lib/types/components/avatar/index.d.ts.map +0 -1
- package/lib/types/components/button/Button.d.ts +0 -12
- package/lib/types/components/button/Button.d.ts.map +0 -1
- package/lib/types/components/button/Button.styles.d.ts +0 -15
- package/lib/types/components/button/Button.styles.d.ts.map +0 -1
- package/lib/types/components/button/ButtonBase.d.ts +0 -10
- package/lib/types/components/button/ButtonBase.d.ts.map +0 -1
- package/lib/types/components/button/ButtonBase.styles.d.ts +0 -15
- package/lib/types/components/button/ButtonBase.styles.d.ts.map +0 -1
- package/lib/types/components/button/IconButton.d.ts +0 -11
- package/lib/types/components/button/IconButton.d.ts.map +0 -1
- package/lib/types/components/button/IconButton.styles.d.ts +0 -15
- package/lib/types/components/button/IconButton.styles.d.ts.map +0 -1
- package/lib/types/components/button/IconButtonBase.d.ts +0 -10
- package/lib/types/components/button/IconButtonBase.d.ts.map +0 -1
- package/lib/types/components/button/IconButtonBase.styles.d.ts +0 -15
- package/lib/types/components/button/IconButtonBase.styles.d.ts.map +0 -1
- package/lib/types/components/button/index.d.ts +0 -5
- package/lib/types/components/button/index.d.ts.map +0 -1
- package/lib/types/components/container/FormContainer.d.ts +0 -12
- package/lib/types/components/container/FormContainer.d.ts.map +0 -1
- package/lib/types/components/container/FormRow.d.ts +0 -12
- package/lib/types/components/container/FormRow.d.ts.map +0 -1
- package/lib/types/components/container/Panel.d.ts +0 -10
- package/lib/types/components/container/Panel.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.d.ts +0 -45
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.ios.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.styles.d.ts +0 -6
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.styles.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.web.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/InlineMount.d.ts +0 -8
- package/lib/types/components/container/anchoredContainer/InlineMount.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/OverlayMount.d.ts +0 -10
- package/lib/types/components/container/anchoredContainer/OverlayMount.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/helpers.d.ts +0 -5
- package/lib/types/components/container/anchoredContainer/helpers.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/index.d.ts +0 -3
- package/lib/types/components/container/anchoredContainer/index.d.ts.map +0 -1
- package/lib/types/components/container/anchoredContainer/useAnchoredContainerPosition.d.ts +0 -29
- package/lib/types/components/container/anchoredContainer/useAnchoredContainerPosition.d.ts.map +0 -1
- package/lib/types/components/container/index.d.ts +0 -6
- package/lib/types/components/container/index.d.ts.map +0 -1
- package/lib/types/components/icon/Icon.d.ts +0 -10
- package/lib/types/components/icon/Icon.d.ts.map +0 -1
- package/lib/types/components/icon/Icon.styles.d.ts +0 -9
- package/lib/types/components/icon/Icon.styles.d.ts.map +0 -1
- package/lib/types/components/icon/IconBase.d.ts +0 -8
- package/lib/types/components/icon/IconBase.d.ts.map +0 -1
- package/lib/types/components/icon/IconBase.styles.d.ts +0 -8
- package/lib/types/components/icon/IconBase.styles.d.ts.map +0 -1
- package/lib/types/components/icon/IconComponentProps.d.ts +0 -6
- package/lib/types/components/icon/IconComponentProps.d.ts.map +0 -1
- package/lib/types/components/icon/InteractiveIcon.d.ts +0 -10
- package/lib/types/components/icon/InteractiveIcon.d.ts.map +0 -1
- package/lib/types/components/icon/InteractiveIcon.styles.d.ts +0 -11
- package/lib/types/components/icon/InteractiveIcon.styles.d.ts.map +0 -1
- package/lib/types/components/icon/index.d.ts +0 -5
- package/lib/types/components/icon/index.d.ts.map +0 -1
- package/lib/types/components/index.d.ts +0 -22
- package/lib/types/components/index.d.ts.map +0 -1
- package/lib/types/components/input/CounterInput.d.ts +0 -13
- package/lib/types/components/input/CounterInput.d.ts.map +0 -1
- package/lib/types/components/input/InputAction.d.ts +0 -7
- package/lib/types/components/input/InputAction.d.ts.map +0 -1
- package/lib/types/components/input/InputAction.styles.d.ts +0 -7
- package/lib/types/components/input/InputAction.styles.d.ts.map +0 -1
- package/lib/types/components/input/InputBase.d.ts +0 -13
- package/lib/types/components/input/InputBase.d.ts.map +0 -1
- package/lib/types/components/input/InputBase.styles.d.ts +0 -20
- package/lib/types/components/input/InputBase.styles.d.ts.map +0 -1
- package/lib/types/components/input/InputRowContainer.d.ts +0 -13
- package/lib/types/components/input/InputRowContainer.d.ts.map +0 -1
- package/lib/types/components/input/InputScaffold.d.ts +0 -26
- package/lib/types/components/input/InputScaffold.d.ts.map +0 -1
- package/lib/types/components/input/InputScaffold.styles.d.ts +0 -13
- package/lib/types/components/input/InputScaffold.styles.d.ts.map +0 -1
- package/lib/types/components/input/NumberInput.d.ts +0 -39
- package/lib/types/components/input/NumberInput.d.ts.map +0 -1
- package/lib/types/components/input/NumberInputBase.d.ts +0 -19
- package/lib/types/components/input/NumberInputBase.d.ts.map +0 -1
- package/lib/types/components/input/RatingInput.d.ts +0 -14
- package/lib/types/components/input/RatingInput.d.ts.map +0 -1
- package/lib/types/components/input/SelectionInput.d.ts +0 -30
- package/lib/types/components/input/SelectionInput.d.ts.map +0 -1
- package/lib/types/components/input/SelectionInput.styles.d.ts +0 -15
- package/lib/types/components/input/SelectionInput.styles.d.ts.map +0 -1
- package/lib/types/components/input/TextInput.d.ts +0 -7
- package/lib/types/components/input/TextInput.d.ts.map +0 -1
- package/lib/types/components/input/TimeInput.d.ts +0 -20
- package/lib/types/components/input/TimeInput.d.ts.map +0 -1
- package/lib/types/components/input/ToggleInput.d.ts +0 -15
- package/lib/types/components/input/ToggleInput.d.ts.map +0 -1
- package/lib/types/components/input/ToggleInput.styles.d.ts +0 -20
- package/lib/types/components/input/ToggleInput.styles.d.ts.map +0 -1
- package/lib/types/components/input/dropdownInput/DropdownBlurGuard.d.ts +0 -8
- package/lib/types/components/input/dropdownInput/DropdownBlurGuard.d.ts.map +0 -1
- package/lib/types/components/input/dropdownInput/DropdownBlurGuard.web.d.ts +0 -9
- package/lib/types/components/input/dropdownInput/DropdownBlurGuard.web.d.ts.map +0 -1
- package/lib/types/components/input/dropdownInput/DropdownInput.d.ts +0 -5
- package/lib/types/components/input/dropdownInput/DropdownInput.d.ts.map +0 -1
- package/lib/types/components/input/dropdownInput/DropdownInput.styles.d.ts +0 -6
- package/lib/types/components/input/dropdownInput/DropdownInput.styles.d.ts.map +0 -1
- package/lib/types/components/input/dropdownInput/DropdownInputBase.d.ts +0 -72
- package/lib/types/components/input/dropdownInput/DropdownInputBase.d.ts.map +0 -1
- package/lib/types/components/input/dropdownInput/helpers.d.ts +0 -13
- package/lib/types/components/input/dropdownInput/helpers.d.ts.map +0 -1
- package/lib/types/components/input/dropdownInput/index.d.ts +0 -4
- package/lib/types/components/input/dropdownInput/index.d.ts.map +0 -1
- package/lib/types/components/input/dropdownInput/useDropdownController.d.ts +0 -43
- package/lib/types/components/input/dropdownInput/useDropdownController.d.ts.map +0 -1
- package/lib/types/components/input/index.d.ts +0 -24
- package/lib/types/components/input/index.d.ts.map +0 -1
- package/lib/types/components/listItem/ListItem.d.ts +0 -34
- package/lib/types/components/listItem/ListItem.d.ts.map +0 -1
- package/lib/types/components/listItem/ListItem.styles.d.ts +0 -10
- package/lib/types/components/listItem/ListItem.styles.d.ts.map +0 -1
- package/lib/types/components/listItem/ListItemAlert.d.ts +0 -6
- package/lib/types/components/listItem/ListItemAlert.d.ts.map +0 -1
- package/lib/types/components/listItem/ListItemAvatar.d.ts +0 -6
- package/lib/types/components/listItem/ListItemAvatar.d.ts.map +0 -1
- package/lib/types/components/listItem/ListItemFooter.d.ts +0 -6
- package/lib/types/components/listItem/ListItemFooter.d.ts.map +0 -1
- package/lib/types/components/listItem/ListItemRow.d.ts +0 -6
- package/lib/types/components/listItem/ListItemRow.d.ts.map +0 -1
- package/lib/types/components/listItem/index.d.ts +0 -6
- package/lib/types/components/listItem/index.d.ts.map +0 -1
- package/lib/types/components/menu/Menu.d.ts +0 -20
- package/lib/types/components/menu/Menu.d.ts.map +0 -1
- package/lib/types/components/menu/Menu.styles.d.ts +0 -12
- package/lib/types/components/menu/Menu.styles.d.ts.map +0 -1
- package/lib/types/components/menu/MenuItem.d.ts +0 -10
- package/lib/types/components/menu/MenuItem.d.ts.map +0 -1
- package/lib/types/components/menu/MenuItem.styles.d.ts +0 -8
- package/lib/types/components/menu/MenuItem.styles.d.ts.map +0 -1
- package/lib/types/components/menu/index.d.ts.map +0 -1
- package/lib/types/components/rating/Rating.d.ts +0 -30
- package/lib/types/components/rating/Rating.d.ts.map +0 -1
- package/lib/types/components/rating/Rating.styles.d.ts +0 -12
- package/lib/types/components/rating/Rating.styles.d.ts.map +0 -1
- package/lib/types/components/rating/index.d.ts +0 -3
- package/lib/types/components/rating/index.d.ts.map +0 -1
- package/lib/types/components/rating/ratingUtils.d.ts.map +0 -1
- package/lib/types/components/swipe/SwipeAction.d.ts +0 -6
- package/lib/types/components/swipe/SwipeAction.d.ts.map +0 -1
- package/lib/types/components/swipe/SwipeAction.styles.d.ts +0 -6
- package/lib/types/components/swipe/SwipeAction.styles.d.ts.map +0 -1
- package/lib/types/components/swipe/SwipeableContainer.d.ts +0 -13
- package/lib/types/components/swipe/SwipeableContainer.d.ts.map +0 -1
- package/lib/types/components/swipe/index.d.ts +0 -3
- package/lib/types/components/swipe/index.d.ts.map +0 -1
- package/lib/types/components/tag/Tag.d.ts +0 -14
- package/lib/types/components/tag/Tag.d.ts.map +0 -1
- package/lib/types/components/tag/Tag.styles.d.ts +0 -8
- package/lib/types/components/tag/Tag.styles.d.ts.map +0 -1
- package/lib/types/components/tag/TagIcon.d.ts +0 -3
- package/lib/types/components/tag/TagIcon.d.ts.map +0 -1
- package/lib/types/components/tag/index.d.ts.map +0 -1
- package/lib/types/components/text/HighlightedText.d.ts +0 -12
- package/lib/types/components/text/HighlightedText.d.ts.map +0 -1
- package/lib/types/components/text/HighlightedText.styles.d.ts +0 -8
- package/lib/types/components/text/HighlightedText.styles.d.ts.map +0 -1
- package/lib/types/components/text/InteractiveText.d.ts +0 -13
- package/lib/types/components/text/InteractiveText.d.ts.map +0 -1
- package/lib/types/components/text/InteractiveText.styles.d.ts +0 -10
- package/lib/types/components/text/InteractiveText.styles.d.ts.map +0 -1
- package/lib/types/components/text/Text.d.ts +0 -9
- package/lib/types/components/text/Text.d.ts.map +0 -1
- package/lib/types/components/text/Text.styles.d.ts +0 -15
- package/lib/types/components/text/Text.styles.d.ts.map +0 -1
- package/lib/types/components/text/index.d.ts +0 -4
- package/lib/types/components/text/index.d.ts.map +0 -1
- package/lib/types/components/toast/Toast.d.ts +0 -9
- package/lib/types/components/toast/Toast.d.ts.map +0 -1
- package/lib/types/components/toast/Toast.styles.d.ts +0 -11
- package/lib/types/components/toast/Toast.styles.d.ts.map +0 -1
- package/lib/types/components/toast/index.d.ts.map +0 -1
- package/lib/types/hooks/index.d.ts +0 -6
- package/lib/types/hooks/index.d.ts.map +0 -1
- package/lib/types/hooks/useControlledState.d.ts +0 -8
- package/lib/types/hooks/useControlledState.d.ts.map +0 -1
- package/lib/types/hooks/useForwardedRef.d.ts +0 -3
- package/lib/types/hooks/useForwardedRef.d.ts.map +0 -1
- package/lib/types/hooks/usePersistentKeyboardHeight.d.ts +0 -4
- package/lib/types/hooks/usePersistentKeyboardHeight.d.ts.map +0 -1
- package/lib/types/hooks/useTheme.d.ts +0 -7
- package/lib/types/hooks/useTheme.d.ts.map +0 -1
- package/lib/types/hooks/useThemedStyles.d.ts +0 -53
- package/lib/types/hooks/useThemedStyles.d.ts.map +0 -1
- package/lib/types/icons/componentIcons.d.ts +0 -125
- package/lib/types/icons/componentIcons.d.ts.map +0 -1
- package/lib/types/providers/ThemeContext.d.ts +0 -10
- package/lib/types/providers/ThemeContext.d.ts.map +0 -1
- package/lib/types/providers/ThemeProvider.d.ts +0 -20
- package/lib/types/providers/ThemeProvider.d.ts.map +0 -1
- package/lib/types/providers/index.d.ts +0 -3
- package/lib/types/providers/index.d.ts.map +0 -1
- package/lib/types/style/createThemedStyles.d.ts +0 -5
- package/lib/types/style/createThemedStyles.d.ts.map +0 -1
- package/lib/types/style/index.d.ts +0 -4
- package/lib/types/style/index.d.ts.map +0 -1
- package/lib/types/style/styleFactory.d.ts +0 -3
- package/lib/types/style/styleFactory.d.ts.map +0 -1
- package/lib/types/style/styles.d.ts +0 -51
- package/lib/types/style/styles.d.ts.map +0 -1
- /package/lib/{components → actions}/button/index.js +0 -0
- /package/lib/{components → display}/avatar/index.js +0 -0
- /package/lib/{components → display}/rating/ratingUtils.js +0 -0
- /package/lib/{components → display}/tag/index.js +0 -0
- /package/lib/{components → feedback}/toast/index.js +0 -0
- /package/lib/{common → forms/input}/valueItem.js +0 -0
- /package/lib/{components/icon → icons}/IconComponentProps.js +0 -0
- /package/lib/{components/container → overlays}/anchoredContainer/index.js +0 -0
- /package/lib/{components → overlays}/menu/index.js +0 -0
- /package/lib/types/{components → display}/avatar/index.d.ts +0 -0
- /package/lib/types/{components → display}/rating/ratingUtils.d.ts +0 -0
- /package/lib/types/{components → display}/tag/index.d.ts +0 -0
- /package/lib/types/{components → feedback}/toast/index.d.ts +0 -0
- /package/lib/types/{common → forms/input}/valueItem.d.ts +0 -0
- /package/lib/types/{components/container → overlays}/anchoredContainer/AnchoredContainer.ios.d.ts +0 -0
- /package/lib/types/{components/container → overlays}/anchoredContainer/AnchoredContainer.web.d.ts +0 -0
- /package/lib/types/{components → overlays}/menu/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/palette.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAoB,MAAM,UAAU,CAAC;AAG9D,MAAM,MAAM,OAAO,GAAG;IAClB,IAAI,EAAE;QACF,MAAM,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,IAAI,EAAE;YACF,kBAAkB;YAClB,IAAI,EAAE,MAAM,CAAC;YACb,kBAAkB;YAClB,KAAK,EAAE,MAAM,CAAC;YACd,kBAAkB;YAClB,OAAO,EAAE,MAAM,CAAC;YAChB,kBAAkB;YAClB,KAAK,EAAE,MAAM,CAAC;YACd,kBAAkB;YAClB,MAAM,EAAE,MAAM,CAAC;YACf,kBAAkB;YAClB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL,CAAC;IACF,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE;QACL,kBAAkB;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,kBAAkB;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,iBAAiB;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,iBAAiB;QACjB,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACJ,MAAM,EAAE;YACJ,iBAAiB;YACjB,KAAK,EAAE,MAAM,CAAC;YACd,iBAAiB;YACjB,OAAO,EAAE,MAAM,CAAC;YAChB,kBAAkB;YAClB,KAAK,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,KAAK,EAAE;YACH,iBAAiB;YACjB,KAAK,EAAE,MAAM,CAAC;YACd,iBAAiB;YACjB,OAAO,EAAE,MAAM,CAAC;YAChB,wCAAwC;YACxC,IAAI,EAAE,MAAM,CAAC;SAChB,CAAC;KACL,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,cAAc,EAAE,OA4C5B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,gBAAgB,KAAG,OACpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Palette } from "./palette";
|
|
2
|
+
import type { Theme, ThemeOverrides } from "./theme";
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the component theme graph. Dependencies are resolved on demand
|
|
5
|
+
* during the pass and cached, then every theme node is materialized before
|
|
6
|
+
* returning. Provider overrides are merged before a node is cached so
|
|
7
|
+
* dependents observe overridden base values.
|
|
8
|
+
*
|
|
9
|
+
* The dependency reader exposes non-enumerable getters. Theme factories must
|
|
10
|
+
* access dependencies as properties rather than spreading or enumerating it.
|
|
11
|
+
*/
|
|
12
|
+
export declare const resolveTheme: (palette?: Palette, overrides?: ThemeOverrides) => Theme;
|
|
13
|
+
//# sourceMappingURL=resolveTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/resolveTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAarD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GACrB,UAAS,OAAwB,EACjC,YAAY,cAAc,KAC3B,KAMG,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
|
+
import type { Palette } from "./palette";
|
|
3
|
+
type ThemeFactoryContext<ThemeShape, K extends keyof ThemeShape, FactoryContext extends object = object> = {
|
|
4
|
+
palette: Palette;
|
|
5
|
+
theme: Readonly<Omit<ThemeShape, K>>;
|
|
6
|
+
} & FactoryContext;
|
|
7
|
+
export type ThemeFactoryFor<ThemeShape, K extends keyof ThemeShape, FactoryContext extends object = object> = (context: ThemeFactoryContext<ThemeShape, K, FactoryContext>) => ThemeShape[K];
|
|
8
|
+
export type ThemeDefinitionsFor<ThemeShape, FactoryContext extends object = object> = {
|
|
9
|
+
[K in keyof ThemeShape]: ThemeFactoryFor<ThemeShape, K, FactoryContext>;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Resolves a theme dependency graph. Dependencies are resolved on demand
|
|
13
|
+
* during the pass and cached, then every theme node is materialized before
|
|
14
|
+
* returning.
|
|
15
|
+
*/
|
|
16
|
+
export declare const resolveThemeGraph: <ThemeShape extends object, FactoryContext extends object = object>({ definitions, palette, overrides, context, validateOverrides, }: {
|
|
17
|
+
definitions: ThemeDefinitionsFor<ThemeShape, FactoryContext>;
|
|
18
|
+
palette: Palette;
|
|
19
|
+
overrides?: DeepPartial<ThemeShape>;
|
|
20
|
+
context?: FactoryContext;
|
|
21
|
+
validateOverrides?: (overrides?: DeepPartial<ThemeShape>) => void;
|
|
22
|
+
}) => ThemeShape;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=resolveThemeGraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveThemeGraph.d.ts","sourceRoot":"","sources":["../../../src/theme/resolveThemeGraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,KAAK,mBAAmB,CACpB,UAAU,EACV,CAAC,SAAS,MAAM,UAAU,EAC1B,cAAc,SAAS,MAAM,GAAG,MAAM,IACtC;IACA,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;CACxC,GAAG,cAAc,CAAC;AAEnB,MAAM,MAAM,eAAe,CACvB,UAAU,EACV,CAAC,SAAS,MAAM,UAAU,EAC1B,cAAc,SAAS,MAAM,GAAG,MAAM,IACtC,CACA,OAAO,EAAE,mBAAmB,CAAC,UAAU,EAAE,CAAC,EAAE,cAAc,CAAC,KAC1D,UAAU,CAAC,CAAC,CAAC,CAAC;AAEnB,MAAM,MAAM,mBAAmB,CAC3B,UAAU,EACV,cAAc,SAAS,MAAM,GAAG,MAAM,IACtC;KACC,CAAC,IAAI,MAAM,UAAU,GAAG,eAAe,CAAC,UAAU,EAAE,CAAC,EAAE,cAAc,CAAC;CAC1E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC1B,UAAU,SAAS,MAAM,EACzB,cAAc,SAAS,MAAM,GAAG,MAAM,EACxC,kEAMC;IACC,WAAW,EAAE,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAC7D,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IACpC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,iBAAiB,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;CACrE,KAAG,UA0DH,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ColorValue } from "react-native";
|
|
2
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
|
+
import type { Palette } from "./palette";
|
|
4
|
+
export type FocusRingTheme = {
|
|
5
|
+
color: string;
|
|
6
|
+
/** @default 1 */
|
|
7
|
+
width: number;
|
|
8
|
+
/** @default 1 */
|
|
9
|
+
offset: number;
|
|
10
|
+
};
|
|
11
|
+
export type StateValues = {
|
|
12
|
+
/** @default 0.08 */
|
|
13
|
+
hoverOpacity: number;
|
|
14
|
+
/** @default 0.2 */
|
|
15
|
+
pressedOpacity: number;
|
|
16
|
+
/** @default 50 */
|
|
17
|
+
pressDuration: number;
|
|
18
|
+
/** @default 100 */
|
|
19
|
+
hoverDuration: number;
|
|
20
|
+
};
|
|
21
|
+
export type ShadowValues = {
|
|
22
|
+
color: ColorValue;
|
|
23
|
+
/** @default 0.08 */
|
|
24
|
+
opacity: number;
|
|
25
|
+
/** @default 16 */
|
|
26
|
+
radius: number;
|
|
27
|
+
offset: {
|
|
28
|
+
/** @default 0 */
|
|
29
|
+
width: number;
|
|
30
|
+
/** @default 2 */
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
/** @default 8 */
|
|
34
|
+
elevation: number;
|
|
35
|
+
};
|
|
36
|
+
export type Systems = {
|
|
37
|
+
interaction: {
|
|
38
|
+
focusRing: FocusRingTheme;
|
|
39
|
+
disabled: {
|
|
40
|
+
/** @default 0.5 */
|
|
41
|
+
opacity: number;
|
|
42
|
+
};
|
|
43
|
+
state: StateValues;
|
|
44
|
+
};
|
|
45
|
+
shadow: ShadowValues;
|
|
46
|
+
accessibility: {
|
|
47
|
+
/** @default 1.2 */
|
|
48
|
+
maxFontSizeMultiplier: number;
|
|
49
|
+
};
|
|
50
|
+
touch: {
|
|
51
|
+
hitSlop: {
|
|
52
|
+
/** @default 16 */
|
|
53
|
+
default: number;
|
|
54
|
+
/** @default 20 */
|
|
55
|
+
large: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export type SystemsOverrides = DeepPartial<Systems>;
|
|
60
|
+
export declare const createSystems: (palette: Palette, overrides?: SystemsOverrides) => Systems;
|
|
61
|
+
//# sourceMappingURL=systems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systems.d.ts","sourceRoot":"","sources":["../../../src/theme/systems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACtB,oBAAoB;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB;IACnB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE,UAAU,CAAC;IAClB,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QACJ,iBAAiB;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,iBAAiB;QACjB,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IAClB,WAAW,EAAE;QACT,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE;YACN,mBAAmB;YACnB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,KAAK,EAAE,WAAW,CAAC;KACtB,CAAC;IACF,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,EAAE;QACX,mBAAmB;QACnB,qBAAqB,EAAE,MAAM,CAAC;KACjC,CAAC;IACF,KAAK,EAAE;QACH,OAAO,EAAE;YACL,kBAAkB;YAClB,OAAO,EAAE,MAAM,CAAC;YAChB,kBAAkB;YAClB,KAAK,EAAE,MAAM,CAAC;SACjB,CAAC;KACL,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAgEpD,eAAO,MAAM,aAAa,GACtB,SAAS,OAAO,EAChB,YAAY,gBAAgB,KAC7B,OAA+D,CAAC"}
|
|
@@ -1,81 +1,71 @@
|
|
|
1
1
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
|
-
|
|
2
|
+
import type { ActionTheme } from "../actions/action/Action";
|
|
3
|
+
import type { ActionBaseTheme } from "../actions/action/ActionBase";
|
|
4
|
+
import type { IconActionTheme } from "../actions/action/IconAction";
|
|
5
|
+
import type { IconActionBaseTheme } from "../actions/action/IconActionBase";
|
|
6
|
+
import type { ButtonTheme } from "../actions/button/Button";
|
|
7
|
+
import type { ButtonBaseTheme } from "../actions/button/ButtonBase";
|
|
8
|
+
import type { IconButtonTheme } from "../actions/button/IconButton";
|
|
9
|
+
import type { IconButtonBaseTheme } from "../actions/button/IconButtonBase";
|
|
10
|
+
import type { StateLayerTheme } from "../actions/surface/StateLayer";
|
|
11
|
+
import type { SwipeActionTheme } from "../actions/swipeAction/SwipeAction";
|
|
12
|
+
import type { AvatarTheme } from "../display/avatar/Avatar";
|
|
13
|
+
import type { BadgeTheme } from "../display/badge/Badge";
|
|
14
|
+
import type { ContentRowTheme } from "../display/contentRow/ContentRow";
|
|
15
|
+
import type { ListItemTheme } from "../display/listItem/ListItem";
|
|
16
|
+
import type { RatingTheme } from "../display/rating/Rating";
|
|
17
|
+
import type { TagTheme } from "../display/tag/Tag";
|
|
18
|
+
import type { TagIconTheme } from "../display/tag/TagIcon";
|
|
19
|
+
import type { ToastTheme } from "../feedback/toast/Toast";
|
|
20
|
+
import type { FieldTheme } from "../forms/field";
|
|
21
|
+
import type { FormContainerTheme } from "../forms/formContainer/FormContainer";
|
|
22
|
+
import type { FormRowTheme } from "../forms/formRow/FormRow";
|
|
23
|
+
import type { ComboboxInputTheme } from "../forms/input/comboboxInput/ComboboxInput";
|
|
24
|
+
import type { RatingInputTheme } from "../forms/input/ratingInput";
|
|
25
|
+
import type { SelectionInputTheme } from "../forms/input/selectionInput";
|
|
26
|
+
import type { ToggleInputTheme } from "../forms/input/toggleInput";
|
|
27
|
+
import type { IconTheme } from "../icons/Icon";
|
|
28
|
+
import type { IconBaseTheme } from "../icons/IconBase";
|
|
29
|
+
import type { AnchoredContainerTheme } from "../overlays/anchoredContainer/AnchoredContainer";
|
|
30
|
+
import type { MenuTheme } from "../overlays/menu/Menu";
|
|
31
|
+
import type { MenuItemTheme } from "../overlays/menu/MenuItem";
|
|
32
|
+
import type { HighlightedTextTheme } from "../typography/text/HighlightedText";
|
|
33
|
+
import type { TextTheme } from "../typography/text/Text";
|
|
34
|
+
import type { ThemeFactoryFor } from "./resolveThemeGraph";
|
|
35
|
+
export interface Theme {
|
|
36
|
+
text: TextTheme;
|
|
37
|
+
highlightedText: HighlightedTextTheme;
|
|
38
|
+
iconBase: IconBaseTheme;
|
|
39
|
+
icon: IconTheme;
|
|
40
|
+
action: ActionTheme;
|
|
41
|
+
actionBase: ActionBaseTheme;
|
|
42
|
+
iconActionBase: IconActionBaseTheme;
|
|
43
|
+
iconAction: IconActionTheme;
|
|
44
|
+
buttonBase: ButtonBaseTheme;
|
|
45
|
+
button: ButtonTheme;
|
|
46
|
+
iconButtonBase: IconButtonBaseTheme;
|
|
47
|
+
iconButton: IconButtonTheme;
|
|
48
|
+
stateLayer: StateLayerTheme;
|
|
49
|
+
field: FieldTheme;
|
|
50
|
+
selectionInput: SelectionInputTheme;
|
|
51
|
+
toggleInput: ToggleInputTheme;
|
|
52
|
+
comboboxInput: ComboboxInputTheme;
|
|
53
|
+
rating: RatingTheme;
|
|
54
|
+
ratingInput: RatingInputTheme;
|
|
55
|
+
badge: BadgeTheme;
|
|
56
|
+
tag: TagTheme;
|
|
57
|
+
tagIcon: TagIconTheme;
|
|
58
|
+
contentRow: ContentRowTheme;
|
|
59
|
+
listItem: ListItemTheme;
|
|
60
|
+
menu: MenuTheme;
|
|
61
|
+
menuItem: MenuItemTheme;
|
|
62
|
+
avatar: AvatarTheme;
|
|
63
|
+
toast: ToastTheme;
|
|
64
|
+
swipeAction: SwipeActionTheme;
|
|
65
|
+
anchoredContainer: AnchoredContainerTheme;
|
|
66
|
+
formContainer: FormContainerTheme;
|
|
67
|
+
formRow: FormRowTheme;
|
|
68
|
+
}
|
|
3
69
|
export type ThemeOverrides = DeepPartial<Theme>;
|
|
4
|
-
export
|
|
5
|
-
font: {
|
|
6
|
-
family: {
|
|
7
|
-
sans: string;
|
|
8
|
-
mono: string;
|
|
9
|
-
};
|
|
10
|
-
size: {
|
|
11
|
-
tiny: number;
|
|
12
|
-
small: number;
|
|
13
|
-
regular: number;
|
|
14
|
-
large: number;
|
|
15
|
-
xLarge: number;
|
|
16
|
-
xxLarge: number;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
color: {
|
|
20
|
-
primary: string;
|
|
21
|
-
primaryDark: string;
|
|
22
|
-
primaryLight: string;
|
|
23
|
-
secondary: string;
|
|
24
|
-
secondaryHighlight: string;
|
|
25
|
-
secondaryDisabled: string;
|
|
26
|
-
tertiary: string;
|
|
27
|
-
destructive: string;
|
|
28
|
-
destructiveHighlight: string;
|
|
29
|
-
light: string;
|
|
30
|
-
white: string;
|
|
31
|
-
black: string;
|
|
32
|
-
red: string;
|
|
33
|
-
orange: string;
|
|
34
|
-
green: string;
|
|
35
|
-
blue: string;
|
|
36
|
-
purple: string;
|
|
37
|
-
textPrimary: string;
|
|
38
|
-
textSecondary: string;
|
|
39
|
-
textHighlight: string;
|
|
40
|
-
textInverted: string;
|
|
41
|
-
textDisabled: string;
|
|
42
|
-
textOnPrimary: string;
|
|
43
|
-
textOnSecondary: string;
|
|
44
|
-
textOnDestructive: string;
|
|
45
|
-
background: string;
|
|
46
|
-
backgroundHighlight: string;
|
|
47
|
-
foreground: string;
|
|
48
|
-
foregroundHighlight: string;
|
|
49
|
-
backgroundOverlay: string;
|
|
50
|
-
shadow: string;
|
|
51
|
-
border: string;
|
|
52
|
-
inputBackground: string;
|
|
53
|
-
inputBackgroundDisabled: string;
|
|
54
|
-
inputText: string;
|
|
55
|
-
pressOverlay: string;
|
|
56
|
-
alert: string;
|
|
57
|
-
error: string;
|
|
58
|
-
success: string;
|
|
59
|
-
warning: string;
|
|
60
|
-
};
|
|
61
|
-
spacing: {
|
|
62
|
-
large: number;
|
|
63
|
-
medium: number;
|
|
64
|
-
small: number;
|
|
65
|
-
tiny: number;
|
|
66
|
-
};
|
|
67
|
-
border: {
|
|
68
|
-
radius: {
|
|
69
|
-
tight: number;
|
|
70
|
-
regular: number;
|
|
71
|
-
loose: number;
|
|
72
|
-
};
|
|
73
|
-
width: {
|
|
74
|
-
thick: number;
|
|
75
|
-
regular: number;
|
|
76
|
-
thin: number;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export declare const MergeTheme: (overrides?: ThemeOverrides) => Theme;
|
|
70
|
+
export type ThemeFactory<K extends keyof Theme> = ThemeFactoryFor<Theme, K>;
|
|
81
71
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,WAAW,KAAK;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,eAAe,EAAE,oBAAoB,CAAC;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,cAAc,EAAE,mBAAmB,CAAC;IACpC,UAAU,EAAE,eAAe,CAAC;IAC5B,UAAU,EAAE,eAAe,CAAC;IAC5B,MAAM,EAAE,WAAW,CAAC;IACpB,cAAc,EAAE,mBAAmB,CAAC;IACpC,UAAU,EAAE,eAAe,CAAC;IAC5B,UAAU,EAAE,eAAe,CAAC;IAC5B,KAAK,EAAE,UAAU,CAAC;IAClB,cAAc,EAAE,mBAAmB,CAAC;IACpC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,aAAa,EAAE,kBAAkB,CAAC;IAClC,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAE,UAAU,CAAC;IAClB,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,aAAa,EAAE,kBAAkB,CAAC;IAClC,OAAO,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,KAAK,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themeDefinitions.d.ts","sourceRoot":"","sources":["../../../src/theme/themeDefinitions.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG;KAC1B,CAAC,IAAI,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAiCzB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ViewStyle } from "react-native";
|
|
2
|
+
import type { StateValues, Systems } from "./systems";
|
|
3
|
+
type FocusRingStyle = {
|
|
4
|
+
outlineColor: string;
|
|
5
|
+
outlineStyle: "solid";
|
|
6
|
+
outlineWidth: number;
|
|
7
|
+
outlineOffset?: number;
|
|
8
|
+
position?: "relative";
|
|
9
|
+
zIndex?: number;
|
|
10
|
+
};
|
|
11
|
+
type DisabledStyle = {
|
|
12
|
+
opacity: number;
|
|
13
|
+
};
|
|
14
|
+
export type UseSystemsResult = {
|
|
15
|
+
getFocusRingStyle: (visible: boolean) => FocusRingStyle;
|
|
16
|
+
getDisabledStyle: (disabled: boolean) => DisabledStyle | undefined;
|
|
17
|
+
shadowStyle: ViewStyle;
|
|
18
|
+
state: StateValues;
|
|
19
|
+
maxFontSizeMultiplier: number;
|
|
20
|
+
hitSlop: Systems["touch"]["hitSlop"];
|
|
21
|
+
};
|
|
22
|
+
export declare const useSystems: () => UseSystemsResult;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useSystems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSystems.d.ts","sourceRoot":"","sources":["../../../src/theme/useSystems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAGR,WAAW,EACX,OAAO,EACV,MAAM,WAAW,CAAC;AAGnB,KAAK,cAAc,GAAG;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,aAAa,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AA+CF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,iBAAiB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,CAAC;IACxD,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,aAAa,GAAG,SAAS,CAAC;IACnE,WAAW,EAAE,SAAS,CAAC;IACvB,KAAK,EAAE,WAAW,CAAC;IACnB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,gBAmB7B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Palette } from "./palette";
|
|
2
|
+
import { type ThemeContextValue } from "./ThemeContext";
|
|
3
|
+
export declare const useThemeContext: () => ThemeContextValue;
|
|
4
|
+
/**
|
|
5
|
+
* Reads base design tokens.
|
|
6
|
+
*/
|
|
7
|
+
export declare const usePalette: () => Palette;
|
|
8
|
+
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/useTheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,eAAO,MAAM,eAAe,QAAO,iBAAsC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,UAAU,QAAO,OAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typography/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FunctionComponent } from "react";
|
|
2
|
+
import { type ColorValue, type TextStyle } from "react-native";
|
|
3
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
|
+
import { type TextProps, type TextVariant } from "./Text";
|
|
5
|
+
export interface HighlightedTextTheme {
|
|
6
|
+
color: ColorValue;
|
|
7
|
+
highlightedWeight: Record<TextVariant, TextStyle["fontWeight"]>;
|
|
8
|
+
}
|
|
9
|
+
export interface HighlightedTextProps extends Pick<TextProps, "variant"> {
|
|
10
|
+
text?: string;
|
|
11
|
+
textStyles?: TextProps["style"];
|
|
12
|
+
theme?: DeepPartial<HighlightedTextTheme>;
|
|
13
|
+
highlight?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const HighlightedText: FunctionComponent<HighlightedTextProps>;
|
|
16
|
+
//# sourceMappingURL=HighlightedText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightedText.d.ts","sourceRoot":"","sources":["../../../../src/typography/text/HighlightedText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,UAAU,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAsChE,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,UAAU,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;CACnE;AACD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,CAmCnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightedText.theme.d.ts","sourceRoot":"","sources":["../../../../src/typography/text/HighlightedText.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,2BAA2B,EAAE,YAAY,CAAC,iBAAiB,CAYtE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
import { type ColorValue, type TextProps as RnTextProps, type TextStyle } from "react-native";
|
|
3
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
|
+
export type TextVariant = "display" | "title" | "heading" | "label" | "body" | "caption";
|
|
5
|
+
export interface TextTheme {
|
|
6
|
+
color: ColorValue;
|
|
7
|
+
font: {
|
|
8
|
+
[Variant in TextVariant]: {
|
|
9
|
+
family: string;
|
|
10
|
+
weight: TextStyle["fontWeight"];
|
|
11
|
+
size: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface TextProps extends RnTextProps {
|
|
16
|
+
variant?: TextVariant;
|
|
17
|
+
theme?: DeepPartial<TextTheme>;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare const Text: FC<TextProps>;
|
|
21
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/typography/text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,SAAS,IAAI,WAAW,EAC7B,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,MAAM,WAAW,GACjB,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,GACP,MAAM,GACN,SAAS,CAAC;AAEhB,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE;SACD,OAAO,IAAI,WAAW,GAAG;YACtB,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;YAChC,IAAI,EAAE,MAAM,CAAC;SAChB;KACJ,CAAC;CACL;AAED,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC1C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAuB9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.theme.d.ts","sourceRoot":"","sources":["../../../../src/typography/text/Text.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,MAAM,CAoChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/typography/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{HighlightedText,Text}from"./text";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/typography/text/HighlightedText.tsx";var _excluded=["text","highlight","textStyles","theme","variant"];function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{StyleSheet}from"react-native";import{useComponent}from"../../internal";import{Text}from"./Text";import{createElement as _createElement}from"react";import{jsx as _jsx}from"react/jsx-runtime";var escapeForRegex=value=>value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var splitHighlight=(text,highlight)=>{if(!highlight)return[{text,highlighted:false,offset:0}];var lowerHighlight=highlight.toLowerCase();var pattern=new RegExp(`(${escapeForRegex(highlight)})`,"gi");var parts=[];var offset=0;for(var part of text.split(pattern)){if(part==="")continue;parts.push({text:part,highlighted:part.toLowerCase()===lowerHighlight,offset});offset+=part.length;}return parts;};export var HighlightedText=t0=>{var $=_c(22);var props;var t1;var t2;var t3;var textStyles;var themeOverrides;if($[0]!==t0){t1=t0.text;t2=t0.highlight;textStyles=t0.textStyles;themeOverrides=t0.theme;t3=t0.variant;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=props;$[2]=t1;$[3]=t2;$[4]=t3;$[5]=textStyles;$[6]=themeOverrides;}else{props=$[1];t1=$[2];t2=$[3];t3=$[4];textStyles=$[5];themeOverrides=$[6];}var text=t1===undefined?"":t1;var highlight=t2===undefined?"":t2;var variant=t3===undefined?"body":t3;var t4;if($[7]!==themeOverrides){t4={themeOverrides};$[7]=themeOverrides;$[8]=t4;}else{t4=$[8];}var _useComponent=useComponent("highlightedText",t4),theme=_useComponent.theme;var t5;if($[9]!==highlight||$[10]!==props||$[11]!==text||$[12]!==textStyles||$[13]!==theme||$[14]!==variant){var parts=splitHighlight(text,highlight);var t6;if($[16]!==textStyles){t6=[styles.textWrapper,textStyles];$[16]=textStyles;$[17]=t6;}else{t6=$[17];}var t7;if($[18]!==props||$[19]!==theme||$[20]!==variant){t7=part=>_createElement(Text,{...props,variant:variant,key:part.offset,theme:{color:theme.color,font:{[variant]:{weight:part.highlighted?theme.highlightedWeight[variant]:undefined}}},__self:this,__source:{fileName:_jsxFileName,lineNumber:70,columnNumber:17}},part.text);$[18]=props;$[19]=theme;$[20]=variant;$[21]=t7;}else{t7=$[21];}t5=_jsx(Text,{style:t6,children:parts.map(t7)});$[9]=highlight;$[10]=props;$[11]=text;$[12]=textStyles;$[13]=theme;$[14]=variant;$[15]=t5;}else{t5=$[15];}return t5;};var styles=StyleSheet.create({textWrapper:{display:"flex",flexDirection:"row"}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var defaultHighlightedTextTheme=({palette:{color}})=>({color:color.foreground,highlightedWeight:{body:"800",caption:"800",display:"800",heading:"800",label:"800",title:"800"}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/typography/text/Text.tsx";var _excluded=["variant","style","theme","children"];function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{Text as RnText}from"react-native";import{defineStyles,useComponent}from"../../internal";import{useSystems}from"../../theme/useSystems";import{jsx as _jsx}from"react/jsx-runtime";export var Text=t0=>{var $=_c(19);var children;var props;var style;var t1;var themeOverrides;if($[0]!==t0){t1=t0.variant;style=t0.style;themeOverrides=t0.theme;children=t0.children;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=children;$[2]=props;$[3]=style;$[4]=t1;$[5]=themeOverrides;}else{children=$[1];props=$[2];style=$[3];t1=$[4];themeOverrides=$[5];}var variant=t1===undefined?"body":t1;var _useSystems=useSystems(),maxFontSizeMultiplier=_useSystems.maxFontSizeMultiplier;var t2;if($[6]!==variant){t2={variant};$[6]=variant;$[7]=t2;}else{t2=$[7];}var t3;if($[8]!==t2||$[9]!==themeOverrides){t3={themeOverrides,props:t2,createStyles};$[8]=t2;$[9]=themeOverrides;$[10]=t3;}else{t3=$[10];}var _useComponent=useComponent("text",t3),styles=_useComponent.styles;var t4;if($[11]!==style||$[12]!==styles.text){t4=[styles.text,style];$[11]=style;$[12]=styles.text;$[13]=t4;}else{t4=$[13];}var t5;if($[14]!==children||$[15]!==maxFontSizeMultiplier||$[16]!==props||$[17]!==t4){t5=_jsx(RnText,{maxFontSizeMultiplier:maxFontSizeMultiplier,...props,style:t4,children:children});$[14]=children;$[15]=maxFontSizeMultiplier;$[16]=props;$[17]=t4;$[18]=t5;}else{t5=$[18];}return t5;};var createStyles=defineStyles((theme,props)=>({text:{fontFamily:theme.font[props.variant].family,fontWeight:theme.font[props.variant].weight,fontSize:theme.font[props.variant].size,color:theme.color}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var defaultTextTheme=({palette:{color,font}})=>({color:color.foreground,font:{caption:{family:font.family.sans,weight:"200",size:font.size.small},body:{family:font.family.sans,weight:"400",size:font.size.regular},label:{family:font.family.sans,weight:"500",size:font.size.large},heading:{family:font.family.sans,weight:"600",size:font.size.large},title:{family:font.family.sans,weight:"800",size:font.size.xLarge},display:{family:font.family.sans,weight:"800",size:font.size.xxLarge}}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{HighlightedText}from"./HighlightedText";export{Text}from"./Text";
|
package/package.json
CHANGED
|
@@ -1,38 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reillymc/react-native-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "A collection of React Native components and resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
8
|
-
"./
|
|
9
|
-
"types": "./lib/types/
|
|
10
|
-
"default": "./lib/
|
|
8
|
+
"./actions": {
|
|
9
|
+
"types": "./lib/types/actions/index.d.ts",
|
|
10
|
+
"default": "./lib/actions/index.js"
|
|
11
11
|
},
|
|
12
|
-
"./
|
|
13
|
-
"types": "./lib/types/
|
|
14
|
-
"default": "./lib/
|
|
12
|
+
"./display": {
|
|
13
|
+
"types": "./lib/types/display/index.d.ts",
|
|
14
|
+
"default": "./lib/display/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./feedback": {
|
|
17
|
+
"types": "./lib/types/feedback/index.d.ts",
|
|
18
|
+
"default": "./lib/feedback/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./forms": {
|
|
21
|
+
"types": "./lib/types/forms/index.d.ts",
|
|
22
|
+
"default": "./lib/forms/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./layout": {
|
|
25
|
+
"types": "./lib/types/layout/index.d.ts",
|
|
26
|
+
"default": "./lib/layout/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./overlays": {
|
|
29
|
+
"types": "./lib/types/overlays/index.d.ts",
|
|
30
|
+
"default": "./lib/overlays/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./typography": {
|
|
33
|
+
"types": "./lib/types/typography/index.d.ts",
|
|
34
|
+
"default": "./lib/typography/index.js"
|
|
15
35
|
},
|
|
16
36
|
"./icons": {
|
|
17
37
|
"types": "./lib/types/icons/index.d.ts",
|
|
18
38
|
"default": "./lib/icons/index.js"
|
|
19
39
|
},
|
|
20
|
-
"./providers": {
|
|
21
|
-
"types": "./lib/types/providers/index.d.ts",
|
|
22
|
-
"default": "./lib/providers/index.js"
|
|
23
|
-
},
|
|
24
40
|
"./theme": {
|
|
25
41
|
"types": "./lib/types/theme/index.d.ts",
|
|
26
42
|
"default": "./lib/theme/index.js"
|
|
27
43
|
},
|
|
28
|
-
"./style": {
|
|
29
|
-
"types": "./lib/types/style/index.d.ts",
|
|
30
|
-
"default": "./lib/style/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./common": {
|
|
33
|
-
"types": "./lib/types/common/index.d.ts",
|
|
34
|
-
"default": "./lib/common/index.js"
|
|
35
|
-
},
|
|
36
44
|
"./package.json": "./package.json"
|
|
37
45
|
},
|
|
38
46
|
"files": [
|
|
@@ -42,6 +50,7 @@
|
|
|
42
50
|
"scripts": {
|
|
43
51
|
"clean": "rm -rf ./lib",
|
|
44
52
|
"build": "npm run clean && tsc -p ./tsconfig.build.json && babel --config-file ./babel.config.build.cjs --extensions .ts,.tsx ./src -d ./lib",
|
|
53
|
+
"knip": "knip",
|
|
45
54
|
"lint": "biome check --error-on-warnings",
|
|
46
55
|
"lint:fix": "biome check --fix",
|
|
47
56
|
"prepare": "npm run build",
|
|
@@ -70,18 +79,15 @@
|
|
|
70
79
|
"registry": "https://registry.npmjs.org/"
|
|
71
80
|
},
|
|
72
81
|
"dependencies": {
|
|
73
|
-
"@reillymc/es-utils": "^0.0.7"
|
|
74
|
-
"lodash.merge": "^4.6.2"
|
|
82
|
+
"@reillymc/es-utils": "^0.0.7"
|
|
75
83
|
},
|
|
76
84
|
"devDependencies": {
|
|
77
85
|
"@babel/cli": "^7.28.3",
|
|
78
86
|
"@babel/core": "^7.29.0",
|
|
79
|
-
"@babel/preset-typescript": "^7.27.1",
|
|
80
87
|
"@biomejs/biome": "2.4.9",
|
|
81
88
|
"@expo/metro-runtime": "~56.0.15",
|
|
82
89
|
"@react-native-vector-icons/octicons": "^21.1.2",
|
|
83
90
|
"@react-native/babel-preset": "0.85.3",
|
|
84
|
-
"@types/lodash.merge": "^4.6.9",
|
|
85
91
|
"@types/react": "~19.2.0",
|
|
86
92
|
"@types/react-dom": "~19.2.0",
|
|
87
93
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
@@ -95,6 +101,7 @@
|
|
|
95
101
|
"expo-router": "~56.2.11",
|
|
96
102
|
"expo-splash-screen": "~56.0.10",
|
|
97
103
|
"expo-status-bar": "~56.0.4",
|
|
104
|
+
"knip": "^6.44.1",
|
|
98
105
|
"react-dom": "19.2.3",
|
|
99
106
|
"react-native-web": "^0.21.2",
|
|
100
107
|
"react-native-worklets": "0.8.3",
|
package/lib/common/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{MAX_FONT_SIZE_MULTIPLIER}from"./typography";
|
package/lib/common/typography.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var MAX_FONT_SIZE_MULTIPLIER=1.2;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/action/Action.tsx";import{c as _c}from"react/compiler-runtime";import{useStyles}from"../../hooks";import{InteractiveText}from"../text";import{ActionBase}from"./ActionBase";import{jsx as _jsx}from"react/jsx-runtime";export var Action=t0=>{var $=_c(12);var label=t0.label,t1=t0.variant,disabledProp=t0.disabled,style=t0.style,containerStyle=t0.containerStyle,onPress=t0.onPress;var variant=t1===undefined?"secondary":t1;var disabled=disabledProp||!onPress;var t2;if($[0]!==style){t2={action:style};$[0]=style;$[1]=t2;}else{t2=$[1];}var _useStyles=useStyles(t2),action=_useStyles.action;var t3;if($[2]!==action.label.color||$[3]!==disabled||$[4]!==label||$[5]!==variant){t3=pressableState=>_jsx(InteractiveText,{...pressableState,disabled:disabled,style:{color:action.label.color[variant]},children:label});$[2]=action.label.color;$[3]=disabled;$[4]=label;$[5]=variant;$[6]=t3;}else{t3=$[6];}var t4;if($[7]!==containerStyle||$[8]!==disabled||$[9]!==onPress||$[10]!==t3){t4=_jsx(ActionBase,{disabled:disabled,onPress:onPress,containerStyle:containerStyle,children:t3});$[7]=containerStyle;$[8]=disabled;$[9]=onPress;$[10]=t3;$[11]=t4;}else{t4=$[11];}return t4;};Action.displayName="Action";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var defaultActionStyles=({color})=>({label:{color:{primary:{enabled:color.primary,pressed:color.primaryLight,disabled:color.primaryLight},secondary:{enabled:color.secondary,pressed:color.secondaryHighlight,disabled:color.secondaryHighlight},destructive:{enabled:color.destructive,pressed:color.destructiveHighlight,disabled:color.destructiveHighlight}}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/action/ActionBase.tsx";import{c as _c}from"react/compiler-runtime";import{Pressable}from"react-native";import{jsx as _jsx}from"react/jsx-runtime";export var ActionBase=t0=>{var $=_c(6);var disabledProp=t0.disabled,containerStyle=t0.containerStyle,t1=t0.hitSlop,children=t0.children,onPress=t0.onPress;var hitSlop=t1===undefined?16:t1;var t2=disabledProp||!onPress;var t3;if($[0]!==children||$[1]!==containerStyle||$[2]!==hitSlop||$[3]!==onPress||$[4]!==t2){t3=_jsx(Pressable,{hitSlop:hitSlop,disabled:t2,onPress:onPress,style:containerStyle,children:children});$[0]=children;$[1]=containerStyle;$[2]=hitSlop;$[3]=onPress;$[4]=t2;$[5]=t3;}else{t3=$[5];}return t3;};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/action/IconAction.tsx";var _excluded=["variant","style"];function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{useStyles}from"../../hooks";import{IconActionBase}from"./IconActionBase";import{jsx as _jsx}from"react/jsx-runtime";export var IconAction=t0=>{var $=_c(16);var props;var style;var t1;if($[0]!==t0){t1=t0.variant;style=t0.style;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=props;$[2]=style;$[3]=t1;}else{props=$[1];style=$[2];t1=$[3];}var variant=t1===undefined?"secondary":t1;var t2;if($[4]!==style){t2={iconAction:style};$[4]=style;$[5]=t2;}else{t2=$[5];}var _useStyles=useStyles(t2),iconAction=_useStyles.iconAction;var t3=iconAction.icon.color[variant];var t4;if($[6]!==t3){t4={color:t3};$[6]=t3;$[7]=t4;}else{t4=$[7];}var t5=iconAction.text.color[variant];var t6;if($[8]!==t5){t6={color:t5};$[8]=t5;$[9]=t6;}else{t6=$[9];}var t7;if($[10]!==t4||$[11]!==t6){t7={icon:t4,text:t6};$[10]=t4;$[11]=t6;$[12]=t7;}else{t7=$[12];}var t8;if($[13]!==props||$[14]!==t7){t8=_jsx(IconActionBase,{...props,style:t7});$[13]=props;$[14]=t7;$[15]=t8;}else{t8=$[15];}return t8;};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defaultActionStyles}from"./Action.styles";export var defaultIconActionStyles=theme=>{var action=defaultActionStyles(theme);return{icon:action.label,text:action.label};};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/action/IconActionBase.tsx";var _excluded=["label","iconPosition","disabled","containerStyle","style","onPress"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import{useThemedStyles}from"../../hooks";import{InteractiveIcon}from"../icon";import{InteractiveText}from"../text";import{ActionBase}from"./ActionBase";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var IconActionBase=t0=>{var $=_c(27);var containerStyle;var disabledProp;var iconProps;var label;var onPress;var styleOverrides;var t1;if($[0]!==t0){label=t0.label;t1=t0.iconPosition;disabledProp=t0.disabled;containerStyle=t0.containerStyle;styleOverrides=t0.style;onPress=t0.onPress;iconProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=containerStyle;$[2]=disabledProp;$[3]=iconProps;$[4]=label;$[5]=onPress;$[6]=styleOverrides;$[7]=t1;}else{containerStyle=$[1];disabledProp=$[2];iconProps=$[3];label=$[4];onPress=$[5];styleOverrides=$[6];t1=$[7];}var iconPosition=t1===undefined?"start":t1;var disabled=disabledProp||!onPress;var t2;if($[8]!==styleOverrides){t2={iconActionBase:styleOverrides};$[8]=styleOverrides;$[9]=t2;}else{t2=$[9];}var t3;if($[10]!==iconPosition){t3={iconPosition};$[10]=iconPosition;$[11]=t3;}else{t3=$[11];}var t4;if($[12]!==t2||$[13]!==t3){t4={styles:t2,props:t3};$[12]=t2;$[13]=t3;$[14]=t4;}else{t4=$[14];}var _useThemedStyles=useThemedStyles("iconActionBase",createStyles,t4),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t5=_useThemedStyles2[1];var style=t5.style;var t6;if($[15]!==disabled||$[16]!==iconProps||$[17]!==label||$[18]!==style.icon||$[19]!==style.text||$[20]!==styles.container){t6=pressableState=>_jsxs(View,{style:styles.container,children:[_jsx(InteractiveIcon,{disabled:disabled,style:style.icon,...iconProps,...pressableState}),!!label&&_jsx(InteractiveText,{disabled:disabled,style:style.text,...pressableState,children:label})]});$[15]=disabled;$[16]=iconProps;$[17]=label;$[18]=style.icon;$[19]=style.text;$[20]=styles.container;$[21]=t6;}else{t6=$[21];}var t7;if($[22]!==containerStyle||$[23]!==disabled||$[24]!==onPress||$[25]!==t6){t7=_jsx(ActionBase,{disabled:disabled,containerStyle:containerStyle,onPress:onPress,children:t6});$[22]=containerStyle;$[23]=disabled;$[24]=onPress;$[25]=t6;$[26]=t7;}else{t7=$[26];}return t7;};var createStyles=({styles:{iconActionBase}},{iconPosition="start"})=>StyleSheet.create({container:{display:"flex",flexDirection:iconPosition==="start"?"row":"row-reverse",alignItems:"center",gap:iconActionBase.gap}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defaultInteractiveTextStyles}from"../text/InteractiveText.styles";export var defaultIconActionBaseStyles=theme=>{var interactiveText=defaultInteractiveTextStyles(theme);return{gap:theme.spacing.small,icon:interactiveText,text:interactiveText};};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{Action}from"./Action";export{ActionBase}from"./ActionBase";export{IconAction}from"./IconAction";export{IconActionBase}from"./IconActionBase";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/alert/AlertIndicator.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"../text";import{jsx as _jsx}from"react/jsx-runtime";export var AlertIndicator=t0=>{var $=_c(11);var t1=t0.label,t2=t0.variant,style=t0.style;var label=t1===undefined?"":t1;var variant=t2===undefined?"primary":t2;var t3;if($[0]!==variant){t3={props:{variant}};$[0]=variant;$[1]=t3;}else{t3=$[1];}var _useThemedStyles=useThemedStyles("alertIndicator",createStyles,t3),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t4;if($[2]!==style||$[3]!==styles.container){t4=[styles.container,style];$[2]=style;$[3]=styles.container;$[4]=t4;}else{t4=$[4];}var t5;if($[5]!==label||$[6]!==styles.text){t5=_jsx(Text,{numberOfLines:1,style:styles.text,children:label});$[5]=label;$[6]=styles.text;$[7]=t5;}else{t5=$[7];}var t6;if($[8]!==t4||$[9]!==t5){t6=_jsx(View,{style:t4,children:t5});$[8]=t4;$[9]=t5;$[10]=t6;}else{t6=$[10];}return t6;};AlertIndicator.displayName="AlertIndicator";var createStyles=({styles:{alertIndicator}},{variant="primary"})=>{var styles=StyleSheet.create({container:{display:"flex",alignItems:"center",justifyContent:"center",height:alertIndicator.size,width:alertIndicator.size,borderRadius:alertIndicator.borderRadius,backgroundColor:alertIndicator.backgroundColor[variant]},text:{color:alertIndicator.color[variant],fontWeight:"600"}});return styles;};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var defaultAlertIndicatorStyles=({color})=>({size:28,borderRadius:14,backgroundColor:{primary:color.primary,secondary:color.secondary},color:{primary:color.textOnPrimary,secondary:color.textOnSecondary}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{AlertIndicator}from"./AlertIndicator";
|