@rific/auto-paper 0.12.3 → 0.13.0

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/src/index.ts CHANGED
@@ -15,6 +15,8 @@ export { ColorPicker, defaultColors } from './components/ColorPicker'
15
15
  export type { DialogProps, ReanimatedModule } from './components/Dialog'
16
16
  export { Dialog } from './components/Dialog'
17
17
  export { FAB } from './components/FAB'
18
+ export type { FadingScrollViewProps, MaskedViewModule } from './components/FadingScrollView'
19
+ export { FadingScrollView, SCROLL_FADE_HEIGHT } from './components/FadingScrollView'
18
20
  export { HarmonyPicker } from './components/HarmonyPicker'
19
21
  export type { IconButtonProps } from './components/IconButton'
20
22
  export { IconButton } from './components/IconButton'
@@ -29,7 +31,7 @@ export { usePaperDefaults } from './PaperDefaultsContext'
29
31
  export type { ThemeState } from './redux/themeSlice'
30
32
  export { createThemeReducer, selectThemeAppearance, selectThemeBlur, selectThemeColor, selectThemeHarmony, themeActions, themeReducer } from './redux/themeSlice'
31
33
  export type { ProviderProps } from './ThemeProvider'
32
- export { Provider, useBlurModule, useNavBarContext, useReanimatedModule } from './ThemeProvider'
34
+ export { Provider, useBlurModule, useMaskedViewModule, useNavBarContext, useReanimatedModule } from './ThemeProvider'
33
35
  export type { ThemeSettings, ThemeSettingsContextType } from './ThemeSettingsContext'
34
36
  export { defaultThemeSettings, ThemeSettingsContext } from './ThemeSettingsContext'
35
37
  export type { AutoPaperTheme, SemanticColorRoles, ThemeAppearance } from './useComputedTheme'
@@ -29,7 +29,7 @@ export type ThemeAppearance = 'system' | 'light' | 'dark'
29
29
  // HelperText, Badge) read theme.colors.error/onError directly, so a consumer that wants a
30
30
  // getColorRoles-derived "high severity" color without changing what those components render needs
31
31
  // its own name. #B00020 already clears WCAG AA for both onDanger-vs-danger (6.16:1) and
32
- // dangerContainer/onDangerContainer (12–17:1 across modes), verified the same way as warning's
32
+ // dangerContainer/onDangerContainer (12-17:1 across modes), verified the same way as warning's
33
33
  // base above.
34
34
  export const SEMANTIC_BASE_COLORS = {
35
35
  success: '#2E7D32',
@@ -1,7 +1,7 @@
1
1
  import { getHex } from './getHex'
2
2
  import { getRgb } from './getRgb'
3
3
 
4
- // Returns the color with lightness clamped to the given target (0–1), preserving hue and saturation.
4
+ // Returns the color with lightness clamped to the given target (0-1), preserving hue and saturation.
5
5
  export const getTonalColor = (color: string, lightness: number): string => {
6
6
  const rgb = getRgb(color)
7
7
  if (!rgb) return color
@@ -1,8 +1,8 @@
1
1
  import type { TriadicPalette } from './getTriadicPalette'
2
2
 
3
- // ThemeSettings.color is `string | TriadicPalette` — a plain seed hex normally, or an explicit
3
+ // ThemeSettings.color is `string | TriadicPalette` - a plain seed hex normally, or an explicit
4
4
  // triad when a consumer bypassed harmony math entirely (see the README's own "Explicit triad"
5
- // section). Anything that needs a single representative color from it — a picker's own `value`,
6
- // a card's accent — narrows via this: `.primary` is that triad's own seed, so it's the
5
+ // section). Anything that needs a single representative color from it - a picker's own `value`,
6
+ // a card's accent - narrows via this: `.primary` is that triad's own seed, so it's the
7
7
  // representative color on the rare path where this branch is actually hit.
8
8
  export const resolveSeedColor = (color: string | TriadicPalette): string => (typeof color === 'string' ? color : color.primary)