@apple-pie/slice-native 0.1.4 → 0.1.7

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.
Files changed (178) hide show
  1. package/README.md +164 -97
  2. package/SliceNative.podspec +24 -0
  3. package/dist/cjs/components.js +19 -0
  4. package/dist/cjs/hooks.js +9 -0
  5. package/dist/cjs/index.js +27 -812
  6. package/dist/cjs/providers.js +9 -0
  7. package/dist/cjs/src/components/SliceBackgroundBlur/SliceBackgroundBlur.js +11 -0
  8. package/dist/cjs/src/components/SliceButton/SliceButton.js +146 -0
  9. package/dist/cjs/src/components/SliceIcon/SliceIcon.js +20 -0
  10. package/dist/cjs/src/components/SliceIcon/iconRegistry.js +668 -0
  11. package/dist/cjs/src/components/SliceIcon/icons.js +144 -0
  12. package/dist/cjs/src/components/SliceLiquidGlassView/SliceLiquidGlassView.js +12 -0
  13. package/dist/cjs/src/components/SliceText/SliceText.js +21 -0
  14. package/dist/cjs/src/components/SliceTextInput/SliceTextInput.js +117 -0
  15. package/dist/cjs/src/hooks/useCreateThemedStyles/useCreateThemedStyles.js +13 -0
  16. package/dist/cjs/src/hooks/useDeviceCapabilities/useDeviceCapabilities.js +19 -0
  17. package/dist/cjs/src/providers/SliceThemeProvider.js +37 -0
  18. package/dist/cjs/src/theme/colors/colors.js +253 -0
  19. package/dist/cjs/src/theme/corners/corners.js +14 -0
  20. package/dist/cjs/src/theme/elevations/elevations.js +17 -0
  21. package/dist/cjs/src/theme/motion/motion.js +15 -0
  22. package/dist/cjs/src/theme/motion.js +47 -0
  23. package/dist/cjs/src/theme/spacing/spacing.js +14 -0
  24. package/dist/cjs/src/theme/type/type.js +190 -0
  25. package/dist/cjs/src/utils/sizes/sizes.js +40 -0
  26. package/dist/cjs/src/utils/typography/typography.js +17 -0
  27. package/dist/cjs/theme.js +23 -538
  28. package/dist/cjs/utils.js +10 -0
  29. package/dist/esm/components.mjs +7 -0
  30. package/dist/esm/hooks.mjs +2 -0
  31. package/dist/esm/index.mjs +12 -813
  32. package/dist/esm/providers.mjs +1 -0
  33. package/dist/esm/src/components/SliceBackgroundBlur/SliceBackgroundBlur.mjs +9 -0
  34. package/dist/esm/src/components/SliceButton/SliceButton.mjs +144 -0
  35. package/dist/esm/src/components/SliceIcon/SliceIcon.mjs +18 -0
  36. package/dist/esm/src/components/SliceIcon/iconRegistry.mjs +666 -0
  37. package/dist/esm/src/components/SliceIcon/icons.mjs +142 -0
  38. package/dist/esm/src/components/SliceLiquidGlassView/SliceLiquidGlassView.mjs +10 -0
  39. package/dist/esm/src/components/SliceText/SliceText.mjs +19 -0
  40. package/dist/esm/src/components/SliceTextInput/SliceTextInput.mjs +115 -0
  41. package/dist/esm/src/hooks/useCreateThemedStyles/useCreateThemedStyles.mjs +11 -0
  42. package/dist/esm/src/hooks/useDeviceCapabilities/useDeviceCapabilities.mjs +17 -0
  43. package/dist/esm/src/providers/SliceThemeProvider.mjs +33 -0
  44. package/dist/esm/src/theme/colors/colors.mjs +249 -0
  45. package/dist/esm/src/theme/corners/corners.mjs +12 -0
  46. package/dist/esm/src/theme/elevations/elevations.mjs +15 -0
  47. package/dist/esm/src/theme/motion/motion.mjs +13 -0
  48. package/dist/esm/src/theme/motion.mjs +45 -0
  49. package/dist/esm/src/theme/spacing/spacing.mjs +12 -0
  50. package/dist/esm/src/theme/type/type.mjs +184 -0
  51. package/dist/esm/src/utils/sizes/sizes.mjs +37 -0
  52. package/dist/esm/src/utils/typography/typography.mjs +15 -0
  53. package/dist/esm/theme.mjs +7 -522
  54. package/dist/esm/utils.mjs +2 -0
  55. package/dist/react-native/native/src/components/SliceBackgroundBlur/SliceBackgroundBlur.js +6 -0
  56. package/dist/react-native/native/src/components/SliceBackgroundBlur/SliceBackgroundBlur.native.js +6 -0
  57. package/dist/react-native/native/src/components/SliceBackgroundBlur/_types.js +1 -0
  58. package/dist/react-native/native/src/components/SliceBackgroundBlur/index.js +1 -0
  59. package/dist/react-native/native/src/components/SliceButton/SliceButton.js +141 -0
  60. package/dist/react-native/native/src/components/SliceButton/_types.js +1 -0
  61. package/dist/react-native/native/src/components/SliceButton/index.js +1 -0
  62. package/dist/react-native/native/src/components/SliceIcon/SliceIcon.js +15 -0
  63. package/dist/react-native/native/src/components/SliceIcon/_types.js +1 -0
  64. package/dist/react-native/native/src/components/SliceIcon/iconRegistry.js +663 -0
  65. package/dist/react-native/native/src/components/SliceIcon/icons.js +140 -0
  66. package/dist/react-native/native/src/components/SliceIcon/index.js +2 -0
  67. package/dist/react-native/native/src/components/SliceLiquidGlassView/SliceLiquidGlassView.ios.js +6 -0
  68. package/dist/react-native/native/src/components/SliceLiquidGlassView/SliceLiquidGlassView.js +7 -0
  69. package/dist/react-native/native/src/components/SliceLiquidGlassView/_types.js +1 -0
  70. package/dist/react-native/native/src/components/SliceLiquidGlassView/index.js +1 -0
  71. package/dist/react-native/native/src/components/SliceText/SliceText.js +16 -0
  72. package/dist/react-native/native/src/components/SliceText/_types.js +1 -0
  73. package/dist/react-native/native/src/components/SliceText/index.js +1 -0
  74. package/dist/react-native/native/src/components/SliceTextInput/SliceTextInput.js +111 -0
  75. package/dist/react-native/native/src/components/SliceTextInput/_types.js +1 -0
  76. package/dist/react-native/native/src/components/SliceTextInput/index.js +1 -0
  77. package/dist/react-native/native/src/components/index.js +6 -0
  78. package/dist/react-native/native/src/hooks/index.js +2 -0
  79. package/dist/react-native/native/src/hooks/useCreateThemedStyles/index.js +1 -0
  80. package/dist/react-native/native/src/hooks/useCreateThemedStyles/useCreateThemedStyles.js +8 -0
  81. package/dist/react-native/native/src/hooks/useDeviceCapabilities/_types.js +1 -0
  82. package/dist/react-native/native/src/hooks/useDeviceCapabilities/index.js +1 -0
  83. package/dist/react-native/native/src/hooks/useDeviceCapabilities/useDeviceCapabilities.js +14 -0
  84. package/dist/react-native/native/src/hooks/useDeviceCapabilities/useDeviceCapabilities.native.js +23 -0
  85. package/dist/react-native/native/src/index.js +6 -0
  86. package/dist/react-native/native/src/providers/SliceThemeProvider.js +30 -0
  87. package/dist/react-native/native/src/providers/index.js +1 -0
  88. package/dist/react-native/native/src/specs/BackgroundBlurNativeComponent.ts +16 -0
  89. package/dist/react-native/native/src/specs/LiquidGlassNativeComponent.ts +18 -0
  90. package/dist/react-native/native/src/specs/NativeDeviceCapabilities.ts +13 -0
  91. package/dist/react-native/native/src/theme/index.js +69 -0
  92. package/dist/react-native/native/src/theme/motion.js +43 -0
  93. package/dist/react-native/native/src/types/index.js +1 -0
  94. package/dist/react-native/native/src/types/sharedTypes.js +1 -0
  95. package/dist/react-native/native/src/utils/index.js +2 -0
  96. package/dist/react-native/native/src/utils/sizes/index.js +1 -0
  97. package/dist/react-native/native/src/utils/sizes/sizes.js +35 -0
  98. package/dist/react-native/native/src/utils/typography/index.js +1 -0
  99. package/dist/react-native/native/src/utils/typography/typography.js +13 -0
  100. package/dist/react-native/src/theme/colors/colors.js +385 -0
  101. package/dist/react-native/src/theme/colors/types.js +1 -0
  102. package/dist/react-native/src/theme/corners/corners.js +10 -0
  103. package/dist/react-native/src/theme/corners/types.js +1 -0
  104. package/dist/react-native/src/theme/elevations/_types.js +1 -0
  105. package/dist/react-native/src/theme/elevations/elevations.js +13 -0
  106. package/dist/react-native/src/theme/motion/_types.js +1 -0
  107. package/dist/react-native/src/theme/motion/motion.js +11 -0
  108. package/dist/react-native/src/theme/spacing/_types.js +1 -0
  109. package/dist/react-native/src/theme/spacing/spacing.js +10 -0
  110. package/dist/react-native/src/theme/type/type.js +371 -0
  111. package/dist/react-native/src/theme/type/types.js +1 -0
  112. package/dist/types/native/src/components/SliceBackgroundBlur/SliceBackgroundBlur.d.ts +3 -0
  113. package/dist/types/native/src/components/SliceBackgroundBlur/SliceBackgroundBlur.native.d.ts +2 -0
  114. package/dist/types/native/src/components/SliceBackgroundBlur/_types.d.ts +24 -0
  115. package/dist/types/native/src/components/SliceBackgroundBlur/index.d.ts +2 -0
  116. package/dist/types/native/src/components/SliceButton/SliceButton.d.ts +5 -0
  117. package/dist/types/native/src/components/SliceButton/_types.d.ts +78 -0
  118. package/dist/types/native/src/components/SliceButton/index.d.ts +2 -0
  119. package/dist/types/native/src/components/SliceIcon/SliceIcon.d.ts +2 -0
  120. package/dist/types/native/{components/Icon → src/components/SliceIcon}/icons.d.ts +1 -0
  121. package/dist/types/native/src/components/SliceIcon/index.d.ts +3 -0
  122. package/dist/types/native/src/components/SliceLiquidGlassView/SliceLiquidGlassView.d.ts +3 -0
  123. package/dist/types/native/src/components/SliceLiquidGlassView/SliceLiquidGlassView.ios.d.ts +2 -0
  124. package/dist/types/native/src/components/SliceLiquidGlassView/_types.d.ts +17 -0
  125. package/dist/types/native/src/components/SliceLiquidGlassView/index.d.ts +2 -0
  126. package/dist/types/native/src/components/SliceText/SliceText.d.ts +5 -0
  127. package/dist/types/native/src/components/SliceText/_types.d.ts +17 -0
  128. package/dist/types/native/src/components/SliceText/index.d.ts +2 -0
  129. package/dist/types/native/src/components/SliceTextInput/SliceTextInput.d.ts +2 -0
  130. package/dist/types/native/src/components/SliceTextInput/_types.d.ts +58 -0
  131. package/dist/types/native/src/components/SliceTextInput/index.d.ts +2 -0
  132. package/dist/types/native/src/components/index.d.ts +12 -0
  133. package/dist/types/native/src/hooks/index.d.ts +3 -0
  134. package/dist/types/native/src/hooks/useCreateThemedStyles/index.d.ts +1 -0
  135. package/dist/types/native/src/hooks/useCreateThemedStyles/useCreateThemedStyles.d.ts +7 -0
  136. package/dist/types/native/src/hooks/useDeviceCapabilities/_types.d.ts +17 -0
  137. package/dist/types/native/src/hooks/useDeviceCapabilities/index.d.ts +2 -0
  138. package/dist/types/native/src/hooks/useDeviceCapabilities/useDeviceCapabilities.d.ts +3 -0
  139. package/dist/types/native/src/hooks/useDeviceCapabilities/useDeviceCapabilities.native.d.ts +7 -0
  140. package/dist/types/native/src/index.d.ts +12 -0
  141. package/dist/types/native/src/providers/SliceThemeProvider.d.ts +16 -0
  142. package/dist/types/native/src/providers/index.d.ts +2 -0
  143. package/dist/types/native/src/specs/BackgroundBlurNativeComponent.d.ts +9 -0
  144. package/dist/types/native/src/specs/LiquidGlassNativeComponent.d.ts +9 -0
  145. package/dist/types/native/src/specs/NativeDeviceCapabilities.d.ts +11 -0
  146. package/dist/types/native/{theme → src/theme}/index.d.ts +5 -5
  147. package/dist/types/native/src/types/index.d.ts +1 -0
  148. package/dist/types/native/src/types/sharedTypes.d.ts +14 -0
  149. package/dist/types/native/src/utils/index.d.ts +2 -0
  150. package/dist/types/native/src/utils/sizes/index.d.ts +1 -0
  151. package/dist/types/native/src/utils/sizes/sizes.d.ts +7 -0
  152. package/dist/types/native/src/utils/typography/index.d.ts +1 -0
  153. package/dist/types/native/src/utils/typography/typography.d.ts +7 -0
  154. package/package.json +57 -11
  155. package/platform/android/build.gradle +22 -0
  156. package/platform/android/src/main/AndroidManifest.xml +1 -0
  157. package/platform/android/src/main/java/com/slice/SliceBackgroundBlurManager.java +28 -0
  158. package/platform/android/src/main/java/com/slice/SliceBackgroundBlurView.java +98 -0
  159. package/platform/android/src/main/java/com/slice/SliceDeviceCapabilitiesModule.java +25 -0
  160. package/platform/android/src/main/java/com/slice/SlicePackage.java +25 -0
  161. package/platform/ios/BackgroundBlurSurface.swift +89 -0
  162. package/platform/ios/LiquidGlassSurface.swift +82 -0
  163. package/platform/ios/RCTBackgroundBlurView.h +3 -0
  164. package/platform/ios/RCTBackgroundBlurView.mm +42 -0
  165. package/platform/ios/RCTLiquidGlassView.h +8 -0
  166. package/platform/ios/RCTLiquidGlassView.mm +73 -0
  167. package/platform/ios/SliceDeviceCapabilities.h +4 -0
  168. package/platform/ios/SliceDeviceCapabilities.mm +35 -0
  169. package/react-native.config.js +1 -0
  170. package/src/specs/BackgroundBlurNativeComponent.ts +16 -0
  171. package/src/specs/LiquidGlassNativeComponent.ts +18 -0
  172. package/src/specs/NativeDeviceCapabilities.ts +13 -0
  173. package/dist/types/native/components/Icon/NativeIcon.d.ts +0 -2
  174. package/dist/types/native/components/Icon/index.d.ts +0 -3
  175. package/dist/types/native/index.d.ts +0 -4
  176. /package/dist/types/native/{components/Icon → src/components/SliceIcon}/_types.d.ts +0 -0
  177. /package/dist/types/native/{components/Icon → src/components/SliceIcon}/iconRegistry.d.ts +0 -0
  178. /package/dist/types/native/{theme → src/theme}/motion.d.ts +0 -0
@@ -1,525 +1,10 @@
1
- const coreColors$1 = {
2
- 'brand-grey-50': '#f4f7fa',
3
- 'brand-grey-100': '#e5ecf3',
4
- 'brand-grey-200': '#d5e0ea',
5
- 'brand-grey-300': '#98acbf',
6
- 'brand-grey-400': '#7f96a9',
7
- 'brand-grey-500': '#657d91',
8
- 'brand-grey-600': '#4c6273',
9
- 'brand-grey-700': '#405261',
10
- 'brand-grey-800': '#37434e',
11
- 'brand-grey-900': '#2d353d',
12
- 'brand-grey-950': '#1f262d',
13
- 'brand-sea-50': '#e8f1ff',
14
- 'brand-sea-100': '#c7defe',
15
- 'brand-sea-200': '#a5c9ff',
16
- 'brand-sea-300': '#7ab3ff',
17
- 'brand-sea-400': '#4084ff',
18
- 'brand-sea-500': '#2f45ff',
19
- 'brand-sea-600': '#2d2fff',
20
- 'brand-sea-700': '#0000ff',
21
- 'brand-sea-800': '#0609cd',
22
- 'brand-sea-900': '#001699',
23
- 'brand-sea-950': '#0a0b5c',
24
- 'brand-sky-50': '#eafffe',
25
- 'brand-sky-100': '#cdfffb',
26
- 'brand-sky-200': '#a3f8ff',
27
- 'brand-sky-300': '#6af5ff',
28
- 'brand-sky-400': '#00edff',
29
- 'brand-sky-500': '#00c8e0',
30
- 'brand-sky-600': '#00a6c0',
31
- 'brand-sky-700': '#03839b',
32
- 'brand-sky-800': '#0d697d',
33
- 'brand-sky-900': '#105669',
34
- 'brand-sky-950': '#033949',
35
- 'brand-land-50': '#f4ffe5',
36
- 'brand-land-100': '#e0ffb7',
37
- 'brand-land-200': '#caff95',
38
- 'brand-land-300': '#b7fe59',
39
- 'brand-land-400': '#9cf820',
40
- 'brand-land-500': '#71e618',
41
- 'brand-land-600': '#56c900',
42
- 'brand-land-700': '#2d8c00',
43
- 'brand-land-800': '#31690b',
44
- 'brand-land-900': '#2a580f',
45
- 'brand-land-950': '#123201',
46
- 'brand-orange-50': '#fff8ec',
47
- 'brand-orange-100': '#ffebd7',
48
- 'brand-orange-200': '#ffe3c6',
49
- 'brand-orange-300': '#ffc182',
50
- 'brand-orange-400': '#ff972e',
51
- 'brand-orange-500': '#ff800a',
52
- 'brand-orange-600': '#ff6700',
53
- 'brand-orange-700': '#ff3700',
54
- 'brand-orange-800': '#a02b0b',
55
- 'brand-orange-900': '#80250b',
56
- 'brand-orange-950': '#461604',
57
- 'brand-yellow-50': '#ffffea',
58
- 'brand-yellow-100': '#fffdca',
59
- 'brand-yellow-200': '#fff2a0',
60
- 'brand-yellow-300': '#ffeb72',
61
- 'brand-yellow-400': '#ffd333',
62
- 'brand-yellow-500': '#ffc200',
63
- 'brand-yellow-600': '#ffad00',
64
- 'brand-yellow-700': '#c68601',
65
- 'brand-yellow-800': '#8f6307',
66
- 'brand-yellow-900': '#5f430a',
67
- 'brand-yellow-950': '#442e00',
68
- 'brand-purple-50': '#faf0ff',
69
- 'brand-purple-100': '#f4ddff',
70
- 'brand-purple-200': '#e5cdff',
71
- 'brand-purple-300': '#ccafff',
72
- 'brand-purple-400': '#b891ff',
73
- 'brand-purple-500': '#7d48ff',
74
- 'brand-purple-600': '#6a14ff',
75
- 'brand-purple-700': '#5600f1',
76
- 'brand-purple-800': '#4d01d6',
77
- 'brand-purple-900': '#4003af',
78
- 'brand-purple-950': '#1e007c',
79
- 'brand-magenta-50': '#fef1fc',
80
- 'brand-magenta-100': '#ffdcef',
81
- 'brand-magenta-200': '#ffcae6',
82
- 'brand-magenta-300': '#ff90cb',
83
- 'brand-magenta-400': '#ff61ca',
84
- 'brand-magenta-500': '#ff3ac2',
85
- 'brand-magenta-600': '#f012aa',
86
- 'brand-magenta-700': '#df059b',
87
- 'brand-magenta-800': '#9b0069',
88
- 'brand-magenta-900': '#790a55',
89
- 'brand-magenta-950': '#58003a',
90
- 'brand-white-0': '#ffffff',
91
- 'product-red-400': '#ff474a',
92
- 'product-red-500': '#df0529',
93
- 'core-drop-shadow-light': '#0339491a',
94
- 'core-drop-shadow-dark': '#0000007a',
95
- 'core-surface-coverup-translucent-light': '#1f262d52',
96
- 'core-surface-coverup-translucent-dark': '#0000007a',
97
- 'core-surface-overlay-translucent-light': '#ffffffcc',
98
- 'core-surface-overlay-translucent-dark': '#1f262dcc',
99
- 'surface-primary-tint-light': '#fcfcfc',
100
- 'surface-primary-tint-dark': '#191e24',
101
- 'scroll-bar-light': '#e3e8ef',
102
- 'scroll-bar-dark': 'rgba(255, 255, 255, 0.1)',
103
- 'scroll-bar-hover-light': '#cdd5df',
104
- 'scroll-bar-hover-dark': 'rgba(255, 255, 255, 0.15)',
105
- 'surface-shadow-soft-light': '0px 4px 24px #0339491a',
106
- 'surface-shadow-soft-dark': '0px 4px 24px #0000007a',
107
- 'surface-shadow-strong-light': '0px 4px 64px #0339491a',
108
- 'surface-shadow-strong-dark': '0px 4px 64px #0000007a',
109
- };
110
- const light = {
111
- 'array-land': coreColors$1['brand-land-100'],
112
- 'array-land-label': coreColors$1['brand-land-600'],
113
- 'array-magenta': coreColors$1['brand-magenta-100'],
114
- 'array-magenta-label': coreColors$1['brand-magenta-600'],
115
- 'array-orange': coreColors$1['brand-orange-100'],
116
- 'array-orange-label': coreColors$1['brand-orange-600'],
117
- 'array-purple': coreColors$1['brand-purple-100'],
118
- 'array-purple-label': coreColors$1['brand-purple-600'],
119
- 'array-sea': coreColors$1['brand-sea-100'],
120
- 'array-sea-label': coreColors$1['brand-sea-600'],
121
- 'array-sky': coreColors$1['brand-sky-100'],
122
- 'array-sky-label': coreColors$1['brand-sky-600'],
123
- 'array-yellow': coreColors$1['brand-yellow-100'],
124
- 'array-yellow-label': coreColors$1['brand-yellow-600'],
125
- 'core-badge-primary': coreColors$1['brand-sea-500'],
126
- 'core-badge-secondary': coreColors$1['brand-grey-100'],
127
- 'core-button-disabled': coreColors$1['brand-grey-50'],
128
- 'core-button-primary': coreColors$1['brand-sea-500'],
129
- 'core-drop-shadow': coreColors$1['core-drop-shadow-light'],
130
- 'core-gp-logo-primary': coreColors$1['brand-sea-700'],
131
- 'core-gp-logo-secondary': coreColors$1['brand-grey-950'],
132
- 'core-icon-dark': coreColors$1['brand-grey-950'],
133
- 'core-icon-disabled': coreColors$1['brand-grey-300'],
134
- 'core-icon-error': coreColors$1['product-red-500'],
135
- 'core-icon-light': coreColors$1['brand-white-0'],
136
- 'core-icon-primary': coreColors$1['brand-grey-950'],
137
- 'core-icon-secondary': coreColors$1['brand-grey-700'],
138
- 'core-icon-tertiary': coreColors$1['brand-sea-500'],
139
- 'core-outline-secondary': coreColors$1['brand-grey-100'],
140
- 'core-outline-primary': coreColors$1['brand-grey-100'],
141
- 'core-outline-special': coreColors$1['brand-sea-100'],
142
- 'core-outline-tertiary': coreColors$1['brand-sea-500'],
143
- 'core-surface-coverup-translucent': coreColors$1['core-surface-coverup-translucent-light'],
144
- 'core-surface-overlay-translucent': coreColors$1['core-surface-overlay-translucent-light'],
145
- 'core-surface-primary': coreColors$1['brand-white-0'],
146
- 'core-surface-primary-tint': coreColors$1['surface-primary-tint-light'],
147
- 'core-surface-secondary': coreColors$1['brand-grey-50'],
148
- 'core-surface-special': coreColors$1['brand-sea-50'],
149
- 'core-text-dark': coreColors$1['brand-grey-950'],
150
- 'core-text-disabled': coreColors$1['brand-grey-300'],
151
- 'core-text-error': coreColors$1['product-red-500'],
152
- 'core-text-light': coreColors$1['brand-white-0'],
153
- 'core-text-primary': coreColors$1['brand-grey-950'],
154
- 'core-text-secondary': coreColors$1['brand-grey-700'],
155
- 'core-text-tertiary': coreColors$1['brand-grey-600'],
156
- 'core-text-special': coreColors$1['brand-sea-500'],
157
- 'core-text-accent': coreColors$1['brand-sky-500'],
158
- 'core-link-primary': coreColors$1['brand-sea-500'],
159
- 'eor-tag-employee': coreColors$1['brand-sky-700'],
160
- 'eor-tag-overdue': coreColors$1['product-red-500'],
161
- 'eor-tag-paid': coreColors$1['brand-land-700'],
162
- 'eor-tag-pending': coreColors$1['brand-orange-500'],
163
- 'eor-tag-professional': coreColors$1['brand-sea-500'],
164
- 'feedback-attention': coreColors$1['brand-yellow-500'],
165
- 'feedback-informative': coreColors$1['brand-sky-700'],
166
- 'feedback-positive': coreColors$1['brand-land-700'],
167
- 'feedback-urgency': coreColors$1['brand-orange-500'],
168
- 'feedback-warning': coreColors$1['product-red-500'],
169
- 'gia-tag-risk-high': coreColors$1['product-red-500'],
170
- 'gia-tag-risk-low': coreColors$1['brand-sky-700'],
171
- 'gia-tag-risk-moderate': coreColors$1['brand-orange-500'],
172
- 'gia-text-excerpt-highlight': coreColors$1['brand-orange-100'],
173
- 'gia-text-selection': coreColors$1['brand-sea-100'],
174
- 'scroll-bar': coreColors$1['scroll-bar-light'],
175
- 'scroll-bar-hover': coreColors$1['scroll-bar-hover-light'],
176
- 'surface-shadow-soft': coreColors$1['surface-shadow-soft-light'],
177
- 'surface-shadow-strong': coreColors$1['surface-shadow-strong-light'],
178
- };
179
- const dark = {
180
- 'array-land': coreColors$1['brand-land-100'],
181
- 'array-land-label': coreColors$1['brand-land-600'],
182
- 'array-magenta': coreColors$1['brand-magenta-100'],
183
- 'array-magenta-label': coreColors$1['brand-magenta-600'],
184
- 'array-orange': coreColors$1['brand-orange-100'],
185
- 'array-orange-label': coreColors$1['brand-orange-600'],
186
- 'array-purple': coreColors$1['brand-purple-100'],
187
- 'array-purple-label': coreColors$1['brand-purple-600'],
188
- 'array-sea': coreColors$1['brand-sea-100'],
189
- 'array-sea-label': coreColors$1['brand-sea-600'],
190
- 'array-sky': coreColors$1['brand-sky-100'],
191
- 'array-sky-label': coreColors$1['brand-sky-600'],
192
- 'array-yellow': coreColors$1['brand-yellow-100'],
193
- 'array-yellow-label': coreColors$1['brand-yellow-600'],
194
- 'core-badge-primary': coreColors$1['brand-sea-500'],
195
- 'core-badge-secondary': coreColors$1['brand-grey-700'],
196
- 'core-button-disabled': coreColors$1['brand-grey-900'],
197
- 'core-button-primary': coreColors$1['brand-sea-500'],
198
- 'core-drop-shadow': coreColors$1['core-drop-shadow-dark'],
199
- 'core-gp-logo-primary': coreColors$1['brand-sea-500'],
200
- 'core-gp-logo-secondary': coreColors$1['brand-white-0'],
201
- 'core-icon-dark': coreColors$1['brand-grey-950'],
202
- 'core-icon-disabled': coreColors$1['brand-grey-500'],
203
- 'core-icon-error': coreColors$1['product-red-400'],
204
- 'core-icon-light': coreColors$1['brand-white-0'],
205
- 'core-icon-primary': coreColors$1['brand-white-0'],
206
- 'core-icon-secondary': coreColors$1['brand-grey-200'],
207
- 'core-icon-tertiary': coreColors$1['brand-sky-300'],
208
- 'core-outline-secondary': coreColors$1['brand-grey-900'],
209
- 'core-outline-primary': coreColors$1['brand-grey-700'],
210
- 'core-outline-special': coreColors$1['brand-sky-900'],
211
- 'core-outline-tertiary': coreColors$1['brand-sky-300'],
212
- 'core-surface-coverup-translucent': coreColors$1['core-surface-coverup-translucent-dark'],
213
- 'core-surface-overlay-translucent': coreColors$1['core-surface-overlay-translucent-dark'],
214
- 'core-surface-primary': coreColors$1['brand-grey-950'],
215
- 'core-surface-primary-tint': coreColors$1['surface-primary-tint-dark'],
216
- 'core-surface-secondary': coreColors$1['brand-grey-900'],
217
- 'core-surface-special': coreColors$1['brand-sky-950'],
218
- 'core-text-dark': coreColors$1['brand-grey-950'],
219
- 'core-text-disabled': coreColors$1['brand-grey-500'],
220
- 'core-text-error': coreColors$1['product-red-400'],
221
- 'core-text-light': coreColors$1['brand-white-0'],
222
- 'core-text-primary': coreColors$1['brand-white-0'],
223
- 'core-text-secondary': coreColors$1['brand-grey-200'],
224
- 'core-text-tertiary': coreColors$1['brand-grey-400'],
225
- 'core-text-special': coreColors$1['brand-sky-300'],
226
- 'core-text-accent': coreColors$1['brand-sky-300'],
227
- 'core-link-primary': coreColors$1['brand-sky-300'],
228
- 'eor-tag-employee': coreColors$1['brand-sky-700'],
229
- 'eor-tag-overdue': coreColors$1['product-red-400'],
230
- 'eor-tag-paid': coreColors$1['brand-land-700'],
231
- 'eor-tag-pending': coreColors$1['brand-orange-500'],
232
- 'eor-tag-professional': coreColors$1['brand-sea-500'],
233
- 'feedback-attention': coreColors$1['brand-yellow-400'],
234
- 'feedback-informative': coreColors$1['brand-sky-600'],
235
- 'feedback-positive': coreColors$1['brand-land-700'],
236
- 'feedback-urgency': coreColors$1['brand-orange-500'],
237
- 'feedback-warning': coreColors$1['product-red-400'],
238
- 'gia-tag-risk-high': coreColors$1['product-red-400'],
239
- 'gia-tag-risk-low': coreColors$1['brand-sky-600'],
240
- 'gia-tag-risk-moderate': coreColors$1['brand-orange-500'],
241
- 'gia-text-excerpt-highlight': coreColors$1['brand-orange-100'],
242
- 'gia-text-selection': coreColors$1['brand-sea-900'],
243
- 'scroll-bar': coreColors$1['scroll-bar-dark'],
244
- 'scroll-bar-hover': coreColors$1['scroll-bar-hover-dark'],
245
- 'surface-shadow-soft': coreColors$1['surface-shadow-soft-dark'],
246
- 'surface-shadow-strong': coreColors$1['surface-shadow-strong-dark'],
247
- };
248
-
249
- const corners = {
250
- 'corner-none': 0,
251
- 'corner-xs': 4,
252
- 'corner-s': 6,
253
- 'corner-m': 8,
254
- 'corner-l': 12,
255
- 'corner-xl': 16,
256
- 'corner-xxl': 32,
257
- 'corner-round': 1000,
258
- };
259
-
260
- /**
261
- * Elevation levels for UI component types
262
- */
263
- const elevations = {
264
- 'elevation-below-surface': -100, // items hidden from view
265
- 'elevation-surface': 0, // default
266
- 'elevation-float': 100, // toolbars, fab buttons, etc.
267
- 'elevation-describe': 200, // tooltips, info, etc.
268
- 'elevation-status': 300, // status bars, toasts, etc.
269
- 'elevation-notify': 400, // alerts, and other critical status, etc.
270
- 'elevation-overlay': 500, // overlay covers, etc.
271
- 'elevation-confirm': 600, // conformation dialogs, etc. requiring action to dismiss
272
- };
273
-
274
- /**
275
- * Motion for Slice UI
276
- */
277
- const motion$1 = {
278
- 'motion-magnet': 'cubic-bezier(0.352, 0.003, 0.993, -0.052)',
279
- 'motion-water': 'cubic-bezier(0.36, 0, 0.64, 1)',
280
- 'motion-spring': 'linear(0, 0.001 0.3%, 0.008 0.7%, 0.034 1.5%, 0.076 2.3%, 0.138 3.2%, 0.275 4.8%, 0.713 9.4%, 0.836 10.9%, 0.933 12.3%, 1.011 13.7%, 1.074 15.2%, 1.096 15.9%, 1.116 16.7%, 1.132 17.5%, 1.142 18.3%, 1.148 19.1%, 1.15 20%, 1.148 21%, 1.142 22%, 1.133 22.9%, 1.12 24%, 1.048 29.1%, 1.015 31.8%, 1.002 33.3%, 0.991 34.9%, 0.983 36.5%, 0.979 38.1%, 0.977 39.9%, 0.979 42%, 0.997 51.7%, 1.003 57.7%, 1 77%, 1)',
281
- 'motion-magnet-duration': '0.5s',
282
- 'motion-water-duration': '0.25s',
283
- 'motion-spring-duration': '1s',
284
- };
285
-
286
- const spacing = {
287
- xxs: 2,
288
- xs: 4,
289
- s: 8,
290
- m: 16,
291
- l: 24,
292
- xl: 32,
293
- xxl: 64,
294
- h: 128,
295
- };
296
-
297
- // base family
298
- const fontFamily = `var(--slice-font-family, "Funnel Sans")`;
299
- // base weights
300
- const fontWeights = {
301
- regular: 360,
302
- medium: 420,
303
- bold: 500,
304
- extra: 560,
305
- };
306
- // base sizes
307
- const fontSizes = {
308
- xs: '0.75rem',
309
- s: '0.875rem',
310
- m: '0.9375rem',
311
- l: '1rem',
312
- xl: '1.0625rem',
313
- h1: '4.25rem',
314
- h2: '3.5rem',
315
- h3: '2.75rem',
316
- h4: '2rem',
317
- h5: '1.5rem',
318
- h6: '1.0625rem',
319
- };
320
- // base line heights
321
- const lineHeights = {
322
- xs: '116.67%',
323
- m: '133.33%',
324
- l: '140%',
325
- xl: '142.86%',
326
- xxl: '162.5%',
327
- };
328
- // base letter spacing
329
- const letterSpacings = {
330
- xs: '0.00625em',
331
- s: '0.009375em',
332
- m: '0.0125em',
333
- l: '0.015625em',
334
- };
335
- // ** new styles aligned to lyra */
336
- const type$1 = {
337
- 'body-xs-regular': `
338
- font-family: ${fontFamily};
339
- font-weight: ${fontWeights.regular};
340
- font-size: ${fontSizes.xs};
341
- line-height: ${lineHeights.m};
342
- text-decoration: none;
343
- letter-spacing: ${letterSpacings.m}`,
344
- 'body-xs-medium': `
345
- font-family: ${fontFamily};
346
- font-weight: ${fontWeights.medium};
347
- font-size: ${fontSizes.xs};
348
- line-height: ${lineHeights.m};
349
- text-decoration: none;
350
- letter-spacing: ${letterSpacings.m}`,
351
- 'body-xs-bold': `
352
- font-family: ${fontFamily};
353
- font-weight: ${fontWeights.bold};
354
- font-size: ${fontSizes.xs};
355
- line-height: ${lineHeights.m};
356
- text-decoration: none;
357
- letter-spacing: ${letterSpacings.l}`,
358
- 'body-s-regular': `
359
- font-family: ${fontFamily};
360
- font-weight: ${fontWeights.regular};
361
- font-size: ${fontSizes.s};
362
- line-height: ${lineHeights.xl};
363
- text-decoration: none;
364
- letter-spacing: ${letterSpacings.s}`,
365
- 'body-s-medium': `
366
- font-family: ${fontFamily};
367
- font-weight: ${fontWeights.medium};
368
- font-size: ${fontSizes.s};
369
- line-height: ${lineHeights.xl};
370
- text-decoration: none;
371
- letter-spacing: ${letterSpacings.s}`,
372
- 'body-s-bold': `
373
- font-family: ${fontFamily};
374
- font-weight: ${fontWeights.bold};
375
- font-size: ${fontSizes.s};
376
- line-height: ${lineHeights.xl};
377
- text-decoration: none;
378
- letter-spacing: ${letterSpacings.m}`,
379
- 'body-m-regular': `
380
- font-family: ${fontFamily};
381
- font-weight: ${fontWeights.regular};
382
- font-size: ${fontSizes.m};
383
- line-height: ${lineHeights.l};
384
- text-decoration: none;
385
- letter-spacing: ${letterSpacings.s}`,
386
- 'body-m-medium': `
387
- font-family: ${fontFamily};
388
- font-weight: ${fontWeights.medium};
389
- font-size: ${fontSizes.m};
390
- line-height: ${lineHeights.l};
391
- text-decoration: none;
392
- letter-spacing: ${letterSpacings.s}`,
393
- 'body-m-bold': `
394
- font-family: ${fontFamily};
395
- font-weight: ${fontWeights.bold};
396
- font-size: ${fontSizes.m};
397
- line-height: ${lineHeights.l};
398
- text-decoration: none;
399
- letter-spacing: ${letterSpacings.m}`,
400
- 'body-l-regular': `
401
- font-family: ${fontFamily};
402
- font-weight: ${fontWeights.regular};
403
- font-size: ${fontSizes.l};
404
- line-height: ${lineHeights.xxl};
405
- text-decoration: none;
406
- letter-spacing: ${letterSpacings.xs}`,
407
- 'body-l-medium': `
408
- font-family: ${fontFamily};
409
- font-weight: ${fontWeights.medium};
410
- font-size: ${fontSizes.l};
411
- line-height: ${lineHeights.xxl};
412
- text-decoration: none;
413
- letter-spacing: ${letterSpacings.xs}`,
414
- 'body-l-bold': `
415
- font-family: ${fontFamily};
416
- font-weight: ${fontWeights.bold};
417
- font-size: ${fontSizes.l};
418
- line-height: ${lineHeights.xxl};
419
- text-decoration: none;
420
- letter-spacing: ${letterSpacings.s}`,
421
- 'body-xl-regular': `
422
- font-family: ${fontFamily};
423
- font-weight: ${fontWeights.regular};
424
- font-size: ${fontSizes.xl};
425
- line-height: ${lineHeights.xxl};
426
- text-decoration: none;
427
- letter-spacing: ${letterSpacings.xs}`,
428
- 'body-xl-medium': `
429
- font-family: ${fontFamily};
430
- font-weight: ${fontWeights.medium};
431
- font-size: ${fontSizes.xl};
432
- line-height: ${lineHeights.xxl};
433
- text-decoration: none;
434
- letter-spacing: ${letterSpacings.xs}`,
435
- 'body-xl-bold': `
436
- font-family: ${fontFamily};
437
- font-weight: ${fontWeights.bold};
438
- font-size: ${fontSizes.xl};
439
- line-height: ${lineHeights.xxl};
440
- text-decoration: none;
441
- letter-spacing: ${letterSpacings.s}`,
442
- h1: `
443
- font-family: ${fontFamily};
444
- font-weight: ${fontWeights.extra};
445
- font-size: ${fontSizes.h1};
446
- line-height: ${lineHeights.xs};
447
- letter-spacing: ${letterSpacings.m}`,
448
- h2: `
449
- font-family: ${fontFamily};
450
- font-weight: ${fontWeights.extra};
451
- font-size: ${fontSizes.h2};
452
- line-height: ${lineHeights.xs};
453
- letter-spacing: ${letterSpacings.m}`,
454
- h3: `
455
- font-family: ${fontFamily};
456
- font-weight: ${fontWeights.extra};
457
- font-size: ${fontSizes.h3};
458
- line-height: ${lineHeights.xs};
459
- letter-spacing: ${letterSpacings.m}`,
460
- h4: `
461
- font-family: ${fontFamily};
462
- font-weight: ${fontWeights.extra};
463
- font-size: ${fontSizes.h4};
464
- line-height: ${lineHeights.xs};
465
- letter-spacing: ${letterSpacings.m}`,
466
- h5: `
467
- font-family: ${fontFamily};
468
- font-weight: ${fontWeights.extra};
469
- font-size: ${fontSizes.h5};
470
- line-height: ${lineHeights.xs};
471
- letter-spacing: ${letterSpacings.m}`,
472
- h6: `
473
- font-family: ${fontFamily};
474
- font-weight: ${fontWeights.extra};
475
- font-size: ${fontSizes.h6};
476
- line-height: ${lineHeights.xs};
477
- letter-spacing: ${letterSpacings.m}`,
478
- };
479
-
480
- /** Convert Slice's explicit CSS curves without importing the React Native runtime. */
481
- function easing(css) {
482
- if (css.startsWith('cubic-bezier(')) {
483
- const [x1, y1, x2, y2] = css.slice(13, -1).split(',').map(Number);
484
- const sample = (t, a, b) => 3 * (1 - t) ** 2 * t * a + 3 * (1 - t) * t ** 2 * b + t ** 3;
485
- return (progress) => {
486
- if (progress <= 0)
487
- return 0;
488
- if (progress >= 1)
489
- return 1;
490
- let low = 0;
491
- let high = 1;
492
- for (let i = 0; i < 30; i++) {
493
- const middle = (low + high) / 2;
494
- if (sample(middle, x1, x2) < progress)
495
- low = middle;
496
- else
497
- high = middle;
498
- }
499
- return sample((low + high) / 2, y1, y2);
500
- };
501
- }
502
- if (!css.startsWith('linear('))
503
- throw new Error(`Unsupported Slice easing: ${css}`);
504
- const points = css
505
- .slice(7, -1)
506
- .split(',')
507
- .map((entry, index, entries) => {
508
- const [value, percent] = entry.trim().split(/\s+/).map(Number.parseFloat);
509
- return { value, position: percent === undefined ? index / (entries.length - 1) : percent / 100 };
510
- });
511
- return (progress) => {
512
- if (progress <= 0)
513
- return points[0].value;
514
- for (let i = 1; i < points.length; i++) {
515
- const left = points[i - 1];
516
- const right = points[i];
517
- if (progress <= right.position)
518
- return (left.value + ((right.value - left.value) * (progress - left.position)) / (right.position - left.position));
519
- }
520
- return points[points.length - 1].value;
521
- };
522
- }
1
+ import { coreColors as coreColors$1, dark, light } from './src/theme/colors/colors.mjs';
2
+ import { corners } from './src/theme/corners/corners.mjs';
3
+ import { elevations } from './src/theme/elevations/elevations.mjs';
4
+ import { motion as motion$1 } from './src/theme/motion/motion.mjs';
5
+ import { spacing } from './src/theme/spacing/spacing.mjs';
6
+ import { type as type$1 } from './src/theme/type/type.mjs';
7
+ import { easing } from './src/theme/motion.mjs';
523
8
 
524
9
  const { 'surface-shadow-soft-light': _sl, 'surface-shadow-soft-dark': _sd, 'surface-shadow-strong-light': _hl, 'surface-shadow-strong-dark': _hd, ...palette } = coreColors$1;
525
10
  const coreColors = palette;
@@ -0,0 +1,2 @@
1
+ export { lineHeightTextStyle } from './src/utils/typography/typography.mjs';
2
+ export { borderRadiusToNumber, sizeToNumber } from './src/utils/sizes/sizes.mjs';
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StyleSheet, View } from 'react-native';
3
+ /** Web/other-platform fallback. Metro selects the native implementation on iOS/Android. */
4
+ export function SliceBackgroundBlur({ style, fallbackColor = 'rgba(128, 128, 128, 0.18)', }) {
5
+ return _jsx(View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, style, { backgroundColor: fallbackColor }] });
6
+ }
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StyleSheet } from 'react-native';
3
+ import NativeBackgroundBlur from '../../specs/BackgroundBlurNativeComponent';
4
+ export function SliceBackgroundBlur({ fadeStop = 0, blurIntensity = 12, direction = 'down', fallbackColor = 'rgba(128, 128, 128, 0.18)', style, }) {
5
+ return (_jsx(NativeBackgroundBlur, { pointerEvents: "none", fadeStop: Number.isFinite(fadeStop) ? Math.max(0, Math.min(1, fadeStop)) : 0, blurIntensity: Number.isFinite(blurIntensity) ? Math.max(0, Math.min(100, blurIntensity)) : 12, direction: direction, fallbackColor: fallbackColor, style: [StyleSheet.absoluteFill, style] }));
6
+ }
@@ -0,0 +1 @@
1
+ export { SliceBackgroundBlur } from './SliceBackgroundBlur';