@nobak/design-system 1.0.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.
Files changed (304) hide show
  1. package/LICENSE +73 -0
  2. package/README.md +142 -0
  3. package/lib/assets/icons.js +67 -0
  4. package/lib/components/AccountOverview/AccountOverview.js +122 -0
  5. package/lib/components/AdminPanel.js +58 -0
  6. package/lib/components/AssetExchange/AssetExchange.js +189 -0
  7. package/lib/components/AuthenticationFlow.js +216 -0
  8. package/lib/components/ConversationInterface/ConversationInterface.js +232 -0
  9. package/lib/components/DevFooter.js +38 -0
  10. package/lib/components/DevMenu.js +35 -0
  11. package/lib/components/DevSidebar.js +28 -0
  12. package/lib/components/DigitalDisplay.js +83 -0
  13. package/lib/components/Footer.js +45 -0
  14. package/lib/components/HeroContainer.js +10 -0
  15. package/lib/components/IntentRecognition/IntentRecognition.js +174 -0
  16. package/lib/components/Logo.js +259 -0
  17. package/lib/components/MenuBar.js +56 -0
  18. package/lib/components/NetworkSettings.js +223 -0
  19. package/lib/components/RecoverySetup/RecoverySetup.js +354 -0
  20. package/lib/components/RisingSun.js +122 -0
  21. package/lib/components/Symbol.js +226 -0
  22. package/lib/components/TransactionComposer/TransactionComposer.js +258 -0
  23. package/lib/components/TransactionConfirmation.js +184 -0
  24. package/lib/components/WalletMenu.js +33 -0
  25. package/lib/components/console/code/CodeBlock.js +150 -0
  26. package/lib/components/console/code/index.js +9 -0
  27. package/lib/components/console/data/DataTable.js +245 -0
  28. package/lib/components/console/data/MetricCard.js +79 -0
  29. package/lib/components/console/data/index.js +11 -0
  30. package/lib/components/console/documentation/index.js +10 -0
  31. package/lib/components/console/forms/APIKeyGenerator.js +261 -0
  32. package/lib/components/console/forms/SearchBar.js +210 -0
  33. package/lib/components/console/forms/index.js +10 -0
  34. package/lib/components/console/index.js +29 -0
  35. package/lib/components/console/layout/ConsoleCard.js +82 -0
  36. package/lib/components/console/layout/ConsoleLayout.js +86 -0
  37. package/lib/components/console/layout/index.js +10 -0
  38. package/lib/components/console/monitoring/StatusIndicator.js +128 -0
  39. package/lib/components/console/monitoring/index.js +9 -0
  40. package/lib/components/console/navigation/DevFooter.js +38 -0
  41. package/lib/components/console/navigation/DevMenu.js +35 -0
  42. package/lib/components/console/navigation/DevSidebar.js +28 -0
  43. package/lib/components/console/navigation/index.js +11 -0
  44. package/lib/components/console/settings/index.js +10 -0
  45. package/lib/components/index.js +12 -0
  46. package/lib/design/ColorPicker.stories.js +9 -0
  47. package/lib/design/HSLTool-V1.js +345 -0
  48. package/lib/design/HSLTool-V2.js +475 -0
  49. package/lib/design/HSLTool-V3.js +543 -0
  50. package/lib/design/HSLTool-V4.js +1139 -0
  51. package/lib/design/HSLTool.js +374 -0
  52. package/lib/design/OKLCHColorPicker.stories.js +24 -0
  53. package/lib/design/OKLCHTool.js +1014 -0
  54. package/lib/index.js +4 -0
  55. package/lib/shared/components/Avatar/Avatar.js +18 -0
  56. package/lib/shared/components/Avatar/index.js +1 -0
  57. package/lib/shared/components/Badge/Badge.js +34 -0
  58. package/lib/shared/components/Badge/index.js +1 -0
  59. package/lib/shared/components/Breadcrumb/Breadcrumb.js +13 -0
  60. package/lib/shared/components/Breadcrumb/index.js +1 -0
  61. package/lib/shared/components/Button/Button.js +184 -0
  62. package/lib/shared/components/Button/index.js +1 -0
  63. package/lib/shared/components/Calendar/Calendar.js +155 -0
  64. package/lib/shared/components/Calendar/CalendarDay.js +251 -0
  65. package/lib/shared/components/Calendar/CalendarHeader.js +88 -0
  66. package/lib/shared/components/Calendar/CalendarMonth.js +106 -0
  67. package/lib/shared/components/Calendar/CalendarWeek.js +267 -0
  68. package/lib/shared/components/Calendar/constants.js +73 -0
  69. package/lib/shared/components/Calendar/index.js +3 -0
  70. package/lib/shared/components/Calendar/types.d.js +0 -0
  71. package/lib/shared/components/Cartel/Cartel.js +44 -0
  72. package/lib/shared/components/Cartel/index.js +1 -0
  73. package/lib/shared/components/Cell/Cell.js +105 -0
  74. package/lib/shared/components/Cell/index.js +1 -0
  75. package/lib/shared/components/Checkbox/Checkbox.js +27 -0
  76. package/lib/shared/components/Checkbox/index.js +1 -0
  77. package/lib/shared/components/Clock/Clock.js +6 -0
  78. package/lib/shared/components/Clock/index.js +1 -0
  79. package/lib/shared/components/ColorChecker/ColorChecker.js +89 -0
  80. package/lib/shared/components/ColorChecker/index.js +2 -0
  81. package/lib/shared/components/ColorChecker/utils.js +159 -0
  82. package/lib/shared/components/Command/Command.js +95 -0
  83. package/lib/shared/components/Command/index.js +1 -0
  84. package/lib/shared/components/Container/Container.js +18 -0
  85. package/lib/shared/components/Container/index.js +1 -0
  86. package/lib/shared/components/Cover/Cover.js +17 -0
  87. package/lib/shared/components/Cover/index.js +1 -0
  88. package/lib/shared/components/DatePicker/DatePicker.js +52 -0
  89. package/lib/shared/components/DatePicker/components/Calendar.js +125 -0
  90. package/lib/shared/components/DatePicker/components/CalendarDay.js +23 -0
  91. package/lib/shared/components/DatePicker/components/DateWrapper.js +15 -0
  92. package/lib/shared/components/DatePicker/components/index.js +2 -0
  93. package/lib/shared/components/DatePicker/index.js +1 -0
  94. package/lib/shared/components/DateTime/DateTime.js +51 -0
  95. package/lib/shared/components/DateTime/index.js +1 -0
  96. package/lib/shared/components/Debug/Debug.js +12 -0
  97. package/lib/shared/components/Debug/index.js +1 -0
  98. package/lib/shared/components/Disclosure/Disclosure.js +31 -0
  99. package/lib/shared/components/Disclosure/index.js +1 -0
  100. package/lib/shared/components/Dropdown/Dropdown.js +91 -0
  101. package/lib/shared/components/Dropdown/index.js +1 -0
  102. package/lib/shared/components/EmptyState/EmptyState.js +40 -0
  103. package/lib/shared/components/EmptyState/index.js +1 -0
  104. package/lib/shared/components/Form/Form.js +41 -0
  105. package/lib/shared/components/Form/components/DynamicForm.js +66 -0
  106. package/lib/shared/components/Form/components/StepperForm.js +266 -0
  107. package/lib/shared/components/Form/components/index.js +2 -0
  108. package/lib/shared/components/Form/context/Form.js +164 -0
  109. package/lib/shared/components/Form/context/index.js +1 -0
  110. package/lib/shared/components/Form/index.js +1 -0
  111. package/lib/shared/components/Form/types.d.js +1 -0
  112. package/lib/shared/components/Form/utils/index.js +31 -0
  113. package/lib/shared/components/GroupItems/GroupItems.js +17 -0
  114. package/lib/shared/components/GroupItems/index.js +1 -0
  115. package/lib/shared/components/Header/Header.js +26 -0
  116. package/lib/shared/components/Header/index.js +1 -0
  117. package/lib/shared/components/Heading/Heading.js +5 -0
  118. package/lib/shared/components/Heading/index.js +1 -0
  119. package/lib/shared/components/Icon/Icon.js +28 -0
  120. package/lib/shared/components/Icon/index.js +1 -0
  121. package/lib/shared/components/Identicons/Identicons.js +6 -0
  122. package/lib/shared/components/Identicons/index.d.js +0 -0
  123. package/lib/shared/components/Identicons/index.js +1 -0
  124. package/lib/shared/components/Image/Image.js +22 -0
  125. package/lib/shared/components/Image/index.js +1 -0
  126. package/lib/shared/components/Input/Input.js +201 -0
  127. package/lib/shared/components/Input/components/CheckBoxInput.js +81 -0
  128. package/lib/shared/components/Input/components/DateInput.js +89 -0
  129. package/lib/shared/components/Input/components/DefaultInput.js +102 -0
  130. package/lib/shared/components/Input/components/FileReaderInput.js +88 -0
  131. package/lib/shared/components/Input/components/NumberInput.js +141 -0
  132. package/lib/shared/components/Input/components/PickerInput.js +122 -0
  133. package/lib/shared/components/Input/components/RCInput.js +112 -0
  134. package/lib/shared/components/Input/components/Radiobox/RadioboxBasic.js +56 -0
  135. package/lib/shared/components/Input/components/Radiobox/RadioboxCard.js +27 -0
  136. package/lib/shared/components/Input/components/Radiobox/RadioboxFull.js +44 -0
  137. package/lib/shared/components/Input/components/Radiobox/index.js +3 -0
  138. package/lib/shared/components/Input/components/RadioboxInput.js +102 -0
  139. package/lib/shared/components/Input/components/SelectInput.js +70 -0
  140. package/lib/shared/components/Input/components/TextAreaInput.js +67 -0
  141. package/lib/shared/components/Input/components/TextInput.js +139 -0
  142. package/lib/shared/components/Input/components/TimeInput.js +37 -0
  143. package/lib/shared/components/Input/components/UploadFileInput.js +123 -0
  144. package/lib/shared/components/Input/components/index.js +13 -0
  145. package/lib/shared/components/Input/components/types.d.js +0 -0
  146. package/lib/shared/components/Input/index.js +1 -0
  147. package/lib/shared/components/Input/types.d.js +0 -0
  148. package/lib/shared/components/Layout/Layout.js +13 -0
  149. package/lib/shared/components/Layout/index.js +1 -0
  150. package/lib/shared/components/List/List.js +30 -0
  151. package/lib/shared/components/List/index.js +1 -0
  152. package/lib/shared/components/Loader/Loader.js +27 -0
  153. package/lib/shared/components/Loader/index.js +1 -0
  154. package/lib/shared/components/Modal/Modal.js +102 -0
  155. package/lib/shared/components/Modal/index.js +1 -0
  156. package/lib/shared/components/Notification/Notification.js +39 -0
  157. package/lib/shared/components/Notification/index.js +1 -0
  158. package/lib/shared/components/Person/Person.js +81 -0
  159. package/lib/shared/components/Person/index.js +1 -0
  160. package/lib/shared/components/Popover/Popover.js +39 -0
  161. package/lib/shared/components/Popover/index.js +1 -0
  162. package/lib/shared/components/QRCode/QRCode.js +329 -0
  163. package/lib/shared/components/QRCode/index.js +1 -0
  164. package/lib/shared/components/RadioGroup/RadioGroup.js +35 -0
  165. package/lib/shared/components/RadioGroup/components/DefaultGroup.js +71 -0
  166. package/lib/shared/components/RadioGroup/components/VerticalGroup.js +83 -0
  167. package/lib/shared/components/RadioGroup/components/index.js +2 -0
  168. package/lib/shared/components/RadioGroup/index.js +1 -0
  169. package/lib/shared/components/Search/Search.js +12 -0
  170. package/lib/shared/components/Search/index.js +1 -0
  171. package/lib/shared/components/Select/Select.js +90 -0
  172. package/lib/shared/components/Select/index.js +1 -0
  173. package/lib/shared/components/Sidebar/Sidebar.js +42 -0
  174. package/lib/shared/components/Sidebar/index.js +1 -0
  175. package/lib/shared/components/SlideOver/SlideOver.js +81 -0
  176. package/lib/shared/components/SlideOver/index.js +1 -0
  177. package/lib/shared/components/Slider/Slider.js +80 -0
  178. package/lib/shared/components/Slider/index.js +1 -0
  179. package/lib/shared/components/Stepper/Stepper.js +32 -0
  180. package/lib/shared/components/Stepper/index.js +1 -0
  181. package/lib/shared/components/Steps/Steps.js +53 -0
  182. package/lib/shared/components/Steps/index.js +1 -0
  183. package/lib/shared/components/Switch/Switch.js +26 -0
  184. package/lib/shared/components/Switch/index.js +1 -0
  185. package/lib/shared/components/Tab/Tab.js +59 -0
  186. package/lib/shared/components/Tab/index.js +1 -0
  187. package/lib/shared/components/Table/Table.js +47 -0
  188. package/lib/shared/components/Table/index.js +1 -0
  189. package/lib/shared/components/Text/Text.js +11 -0
  190. package/lib/shared/components/Text/index.js +1 -0
  191. package/lib/shared/components/TextList/TextList.js +15 -0
  192. package/lib/shared/components/TextList/index.js +1 -0
  193. package/lib/shared/components/TimePicker/TimePicker.js +161 -0
  194. package/lib/shared/components/TimePicker/index.js +1 -0
  195. package/lib/shared/components/Tooltip/Tooltip.js +13 -0
  196. package/lib/shared/components/Tooltip/index.js +1 -0
  197. package/lib/shared/components/Uploader/Uploader.js +63 -0
  198. package/lib/shared/components/Uploader/index.js +1 -0
  199. package/lib/shared/components/Video/Video.js +20 -0
  200. package/lib/shared/components/Video/index.js +1 -0
  201. package/lib/shared/components/index.d.js +0 -0
  202. package/lib/shared/components/index.js +50 -0
  203. package/lib/shared/elements/Color/ColorPallet.js +20 -0
  204. package/lib/shared/elements/Color/index.js +1 -0
  205. package/lib/shared/elements/Text.js +37 -0
  206. package/lib/shared/elements/index.js +1 -0
  207. package/lib/shared/helpers/FakeLink.js +8 -0
  208. package/lib/shared/helpers/constants.js +359 -0
  209. package/lib/shared/helpers/index.js +2 -0
  210. package/lib/shared/helpers/isEqual.js +56 -0
  211. package/lib/shared/index.d.js +0 -0
  212. package/lib/shared/index.js +1 -0
  213. package/lib/shared/stories/components/Avatar.stories.js +17 -0
  214. package/lib/shared/stories/components/Badge.stories.dev.js +37 -0
  215. package/lib/shared/stories/components/Button.stories.js +553 -0
  216. package/lib/shared/stories/components/Calendar.stories.js +62 -0
  217. package/lib/shared/stories/components/Cartel.stories.js +32 -0
  218. package/lib/shared/stories/components/Checkbox.stories.js +15 -0
  219. package/lib/shared/stories/components/ColorChecker.stories.dev.js +16 -0
  220. package/lib/shared/stories/components/DateTime.stories.js +27 -0
  221. package/lib/shared/stories/components/Disclosure.stories.js +30 -0
  222. package/lib/shared/stories/components/Dropdown.stories.js +39 -0
  223. package/lib/shared/stories/components/Form/Default.stories.js +201 -0
  224. package/lib/shared/stories/components/Form/DummyForm.stories.js +48 -0
  225. package/lib/shared/stories/components/Form/DynamicForm.stories.js +155 -0
  226. package/lib/shared/stories/components/Form/StepperForm.stories.js +138 -0
  227. package/lib/shared/stories/components/Form/ValidateForm.stories.js +70 -0
  228. package/lib/shared/stories/components/Form/Validation.stories.js +184 -0
  229. package/lib/shared/stories/components/GroupItems.stories.js +23 -0
  230. package/lib/shared/stories/components/Header.stories.js +29 -0
  231. package/lib/shared/stories/components/Heading.stories.js +27 -0
  232. package/lib/shared/stories/components/Icon.stories.js +22 -0
  233. package/lib/shared/stories/components/Image.stories.js +23 -0
  234. package/lib/shared/stories/components/Input/Checkbox.stories.js +45 -0
  235. package/lib/shared/stories/components/Input/DatePicker.stories.js +23 -0
  236. package/lib/shared/stories/components/Input/Defaut.stories.js +24 -0
  237. package/lib/shared/stories/components/Input/Number.stories.js +24 -0
  238. package/lib/shared/stories/components/Input/RCI.stories.js +59 -0
  239. package/lib/shared/stories/components/Input/Radiobox.stories.dev.js +28 -0
  240. package/lib/shared/stories/components/Input/Select.stories.dev.js +27 -0
  241. package/lib/shared/stories/components/Input/SelectMultiple.stories.dev.js +510 -0
  242. package/lib/shared/stories/components/Input/Textarea.stories.js +24 -0
  243. package/lib/shared/stories/components/List.stories.js +34 -0
  244. package/lib/shared/stories/components/Loader.stories.js +15 -0
  245. package/lib/shared/stories/components/Modal.stories.js +50 -0
  246. package/lib/shared/stories/components/Notification.stories.js +22 -0
  247. package/lib/shared/stories/components/Person.stories.js +41 -0
  248. package/lib/shared/stories/components/Picker.stories.js +15 -0
  249. package/lib/shared/stories/components/Popover.stories.js +36 -0
  250. package/lib/shared/stories/components/QRCode.stories.js +20 -0
  251. package/lib/shared/stories/components/RadioGroup.stories.js +56 -0
  252. package/lib/shared/stories/components/Select.stories.js +50 -0
  253. package/lib/shared/stories/components/Sidebar.stories.js +35 -0
  254. package/lib/shared/stories/components/Slider.stories.dev.js +48 -0
  255. package/lib/shared/stories/components/Stepper/Stepper.stories.js +38 -0
  256. package/lib/shared/stories/components/Steps.stories.js +15 -0
  257. package/lib/shared/stories/components/Switch.stories.js +15 -0
  258. package/lib/shared/stories/components/Tab.stories.js +15 -0
  259. package/lib/shared/stories/components/Table.stories.js +95 -0
  260. package/lib/shared/stories/components/TextList.stories.js +23 -0
  261. package/lib/shared/stories/components/Tooltip.stories.dev.js +40 -0
  262. package/lib/shared/stories/elements/Color.stories.js +269 -0
  263. package/lib/shared/stories/elements/Text.stories.js +45 -0
  264. package/lib/shared/types/index.js +1 -0
  265. package/lib/stories/Foundation/BrandIdentity.prod.stories.js +510 -0
  266. package/lib/stories/Foundation/Logo.stories.js +19 -0
  267. package/lib/stories/Foundation/RisingSun.stories.js +16 -0
  268. package/lib/stories/Foundation/Shadows.stories.js +601 -0
  269. package/lib/stories/Foundation/Symbol.stories.js +18 -0
  270. package/lib/stories/HeroContainer.stories.js +18 -0
  271. package/lib/styles/accessibilityTokens.js +72 -0
  272. package/lib/styles/borderWidth.js +10 -0
  273. package/lib/styles/colors.js +303 -0
  274. package/lib/styles/elevation.js +240 -0
  275. package/lib/styles/icons.js +218 -0
  276. package/lib/styles/index.js +29 -0
  277. package/lib/styles/motion.js +668 -0
  278. package/lib/styles/opacity.js +10 -0
  279. package/lib/styles/radius.js +11 -0
  280. package/lib/styles/sizing.js +35 -0
  281. package/lib/styles/space.js +24 -0
  282. package/lib/styles/theme/darkTheme.js +471 -0
  283. package/lib/styles/theme/index.js +44 -0
  284. package/lib/styles/theme/lightTheme.js +480 -0
  285. package/lib/styles/theme/themeTypes.js +1 -0
  286. package/lib/styles/theme/themeUtils.js +63 -0
  287. package/lib/styles/typography-advanced.js +510 -0
  288. package/lib/styles/typography.js +1419 -0
  289. package/lib/styles/zIndex.js +19 -0
  290. package/lib/tokens/borders.js +161 -0
  291. package/lib/tokens/colors.js +426 -0
  292. package/lib/tokens/components.js +499 -0
  293. package/lib/tokens/index.js +84 -0
  294. package/lib/tokens/lighting.js +384 -0
  295. package/lib/tokens/motion.js +284 -0
  296. package/lib/tokens/semantic.js +367 -0
  297. package/lib/tokens/shadows.js +114 -0
  298. package/lib/tokens/spacing.js +189 -0
  299. package/lib/tokens/typography.js +268 -0
  300. package/package.json +176 -0
  301. package/styles/generated-tokens.css +677 -0
  302. package/styles/index.css +2 -0
  303. package/styles/main.css +610 -0
  304. package/tailwind.config.js +64 -0
@@ -0,0 +1,72 @@
1
+ // src/styles/accessibilityTokens.ts
2
+
3
+ /**
4
+ * Defines foundational accessibility tokens that are generally not theme-dependent.
5
+ * These values provide baseline measurements and constants for building accessible components.
6
+ */
7
+ export var accessibility = {
8
+ /**
9
+ * Minimum touch target dimensions based on common platform guidelines (e.g., Apple HIG, Android Material Design).
10
+ * Values are typically in density-independent pixels (dp) or points.
11
+ */
12
+ touchTarget: {
13
+ minimum: {
14
+ width: 44,
15
+ height: 44
16
+ },
17
+ /** Recommended padding to add around a smaller visual element to meet minimum touch target size. */
18
+ paddingForSmallIcon: {
19
+ // Example: If an icon is 24x24, add 10 padding on each side ( (44-24)/2 = 10 )
20
+ // This is more of a guideline for component implementation.
21
+ }
22
+ },
23
+ /**
24
+ * Properties for focus indicators. Color should come from the theme (e.g., semantic.border.focus).
25
+ */
26
+ focusIndicator: {
27
+ outlineWidth: 2 // Common width for web focus outlines
28
+ // outlineStyle: 'solid', // Usually 'solid' or 'dotted'
29
+ },
30
+ /**
31
+ * Conceptual scaling factors for demonstrating large text adaptation.
32
+ * Actual large text support relies on OS settings and responsive typography.
33
+ */
34
+ fontScale: {
35
+ "default": 1,
36
+ large: 1.2,
37
+ // 20% larger
38
+ extraLarge: 1.5 // 50% larger
39
+ },
40
+ /**
41
+ * Common accessibility roles used in React Native.
42
+ * Providing them here can help maintain consistency if needed, though direct string usage is also common.
43
+ */
44
+ roles: {
45
+ button: 'button',
46
+ link: 'link',
47
+ header: 'header',
48
+ search: 'search',
49
+ image: 'image',
50
+ keyboardkey: 'keyboardkey',
51
+ text: 'text',
52
+ adjustable: 'adjustable',
53
+ summary: 'summary',
54
+ alert: 'alert',
55
+ checkbox: 'checkbox',
56
+ combobox: 'combobox',
57
+ menu: 'menu',
58
+ menubar: 'menubar',
59
+ menuitem: 'menuitem',
60
+ progressbar: 'progressbar',
61
+ radio: 'radio',
62
+ radiogroup: 'radiogroup',
63
+ scrollbar: 'scrollbar',
64
+ spinbutton: 'spinbutton',
65
+ "switch": 'switch',
66
+ tab: 'tab',
67
+ tablist: 'tablist',
68
+ timer: 'timer',
69
+ toolbar: 'toolbar',
70
+ none: 'none'
71
+ }
72
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Border width scale with semantic naming
3
+ */
4
+ export var borderWidth = {
5
+ none: 0,
6
+ thin: 1,
7
+ thick: 2,
8
+ thicker: 4,
9
+ thickest: 8
10
+ };
@@ -0,0 +1,303 @@
1
+ // src/design-tokens/colors.ts
2
+ // Fintech Color Design System with Semantic Token Architecture
3
+ // Following Adobe Spectrum patterns: Global → Semantic → Component
4
+
5
+ // ===========================
6
+ // LAYER 1: GLOBAL COLOR TOKENS
7
+ // Raw color values - the source of truth
8
+ // ===========================
9
+
10
+ export var globalColors = {
11
+ gray: {
12
+ 100: '#fafafa',
13
+ 200: '#f5f5f5',
14
+ 300: '#eeeeee',
15
+ 400: '#e0e0e0',
16
+ 500: '#bdbdbd',
17
+ 600: '#9e9e9e',
18
+ 700: '#757575',
19
+ 800: '#616161',
20
+ 900: '#424242',
21
+ 1000: '#373737',
22
+ 1100: '#2c2c2c',
23
+ 1200: '#212121',
24
+ 1300: '#1a1a1a',
25
+ 1400: '#141414',
26
+ 1500: '#0f0f0f',
27
+ 1600: '#0a0a0a',
28
+ 1700: '#060606',
29
+ 1800: '#030303'
30
+ },
31
+ neutral: {
32
+ 100: '#fafafa',
33
+ 200: '#f5f5f5',
34
+ 300: '#eeeeee',
35
+ 400: '#e0e0e0',
36
+ 500: '#bdbdbd',
37
+ 600: '#9e9e9e',
38
+ 700: '#757575',
39
+ 800: '#616161',
40
+ 900: '#424242',
41
+ 1000: '#373737',
42
+ 1100: '#2c2c2c',
43
+ 1200: '#212121',
44
+ 1300: '#1a1a1a',
45
+ 1400: '#141414',
46
+ 1500: '#0f0f0f',
47
+ 1600: '#0a0a0a',
48
+ 1700: '#060606',
49
+ 1800: '#030303'
50
+ },
51
+ blue: {
52
+ 100: '#e3f2fd',
53
+ 200: '#bbdefb',
54
+ 300: '#90caf9',
55
+ 400: '#64b5f6',
56
+ 500: '#42a5f5',
57
+ 600: '#2196f3',
58
+ 700: '#1e88e5',
59
+ 800: '#1976d2',
60
+ 900: '#1565c0',
61
+ 1000: '#1354a8',
62
+ 1100: '#11458f',
63
+ 1200: '#0f3777',
64
+ 1300: '#0d2a5f',
65
+ 1400: '#0b1e47',
66
+ 1500: '#09142f',
67
+ 1600: '#070b1f',
68
+ 1700: '#050712',
69
+ 1800: '#030408'
70
+ },
71
+ emerald: {
72
+ 100: '#ecfdf5',
73
+ 200: '#d1fae5',
74
+ 300: '#a7f3d0',
75
+ 400: '#6ee7b7',
76
+ 500: '#34d399',
77
+ 600: '#10b981',
78
+ 700: '#059669',
79
+ 800: '#047857',
80
+ 900: '#065f46',
81
+ 1000: '#064e3b',
82
+ 1100: '#053d30',
83
+ 1200: '#042c25',
84
+ 1300: '#031b1a',
85
+ 1400: '#021210',
86
+ 1500: '#010a08',
87
+ 1600: '#010605',
88
+ 1700: '#000403',
89
+ 1800: '#000201'
90
+ },
91
+ red: {
92
+ 100: '#ffebee',
93
+ 200: '#ffcdd2',
94
+ 300: '#ef9a9a',
95
+ 400: '#e57373',
96
+ 500: '#ef5350',
97
+ 600: '#f44336',
98
+ 700: '#e53935',
99
+ 800: '#d32f2f',
100
+ 900: '#c62828',
101
+ 1000: '#b71c1c',
102
+ 1100: '#a31818',
103
+ 1200: '#8f1414',
104
+ 1300: '#7c1111',
105
+ 1400: '#680d0d',
106
+ 1500: '#540a0a',
107
+ 1600: '#400707',
108
+ 1700: '#2c0505',
109
+ 1800: '#180202'
110
+ },
111
+ amber: {
112
+ 100: '#fff8e1',
113
+ 200: '#ffecb3',
114
+ 300: '#ffe082',
115
+ 400: '#ffd54f',
116
+ 500: '#ffca28',
117
+ 600: '#ffc107',
118
+ 700: '#ffb300',
119
+ 800: '#ffa000',
120
+ 900: '#ff8f00',
121
+ 1000: '#f57f00',
122
+ 1100: '#ef6c00',
123
+ 1200: '#e65100',
124
+ 1300: '#d84315',
125
+ 1400: '#ca3612',
126
+ 1500: '#bc2a0f',
127
+ 1600: '#ae1e0c',
128
+ 1700: '#a01209',
129
+ 1800: '#920606'
130
+ },
131
+ violet: {
132
+ 100: '#f3e5f5',
133
+ 200: '#e1bee7',
134
+ 300: '#ce93d8',
135
+ 400: '#ba68c8',
136
+ 500: '#ab47bc',
137
+ 600: '#9c27b0',
138
+ 700: '#8e24aa',
139
+ 800: '#7b1fa2',
140
+ 900: '#6a1b9a',
141
+ 1000: '#5d1787',
142
+ 1100: '#501374',
143
+ 1200: '#430f61',
144
+ 1300: '#360b4e',
145
+ 1400: '#29083b',
146
+ 1500: '#1c0528',
147
+ 1600: '#120318',
148
+ 1700: '#09020d',
149
+ 1800: '#040105'
150
+ },
151
+ orange: {
152
+ 100: '#fff3e0',
153
+ 200: '#ffe0b2',
154
+ 300: '#ffcc80',
155
+ 400: '#ffb74d',
156
+ 500: '#ffa726',
157
+ 600: '#ff9800',
158
+ 700: '#fb8c00',
159
+ 800: '#f57c00',
160
+ 900: '#ef6c00',
161
+ 1000: '#e65100',
162
+ 1100: '#d84315',
163
+ 1200: '#bf360c',
164
+ 1300: '#a52a02',
165
+ 1400: '#8c1b00',
166
+ 1500: '#731000',
167
+ 1600: '#5a0a00',
168
+ 1700: '#3e0500',
169
+ 1800: '#220200'
170
+ },
171
+ purple: {
172
+ 100: '#f3e5f5',
173
+ 200: '#e1bee7',
174
+ 300: '#ce93d8',
175
+ 400: '#ba68c8',
176
+ 500: '#ab47bc',
177
+ 600: '#9c27b0',
178
+ 700: '#8e24aa',
179
+ 800: '#7b1fa2',
180
+ 900: '#6a1b9a',
181
+ 1000: '#5d1787',
182
+ 1100: '#501374',
183
+ 1200: '#430f61',
184
+ 1300: '#360b4e',
185
+ 1400: '#29083b',
186
+ 1500: '#1c0528',
187
+ 1600: '#120318',
188
+ 1700: '#09020d',
189
+ 1800: '#040105'
190
+ },
191
+ rose: {
192
+ 100: '#ffe4e6',
193
+ 200: '#fecdd3',
194
+ 300: '#fda4af',
195
+ 400: '#fb7185',
196
+ 500: '#f43f5e',
197
+ 600: '#e11d48',
198
+ 700: '#be123c',
199
+ 800: '#9f1239',
200
+ 900: '#881337',
201
+ 1000: '#6b0f32',
202
+ 1100: '#550b2d',
203
+ 1200: '#3f0b29',
204
+ 1300: '#2b0a23',
205
+ 1400: '#1e081c',
206
+ 1500: '#140614',
207
+ 1600: '#0d040d',
208
+ 1700: '#080208',
209
+ 1800: '#040104'
210
+ },
211
+ cyan: {
212
+ 100: '#e0f7fa',
213
+ 200: '#b2ebf2',
214
+ 300: '#80deea',
215
+ 400: '#4dd0e1',
216
+ 500: '#26c6da',
217
+ 600: '#00bcd4',
218
+ 700: '#00acc1',
219
+ 800: '#0097a7',
220
+ 900: '#00838f',
221
+ 1000: '#006064',
222
+ 1100: '#004d40',
223
+ 1200: '#00352d',
224
+ 1300: '#00241e',
225
+ 1400: '#001a14',
226
+ 1500: '#00110d',
227
+ 1600: '#000a08',
228
+ 1700: '#000504',
229
+ 1800: '#000202'
230
+ },
231
+ indigo: {
232
+ 100: '#e8eaf6',
233
+ 200: '#c5cae9',
234
+ 300: '#9fa8da',
235
+ 400: '#7986cb',
236
+ 500: '#5c6bc0',
237
+ 600: '#3f51b5',
238
+ 700: '#3949ab',
239
+ 800: '#303f9f',
240
+ 900: '#283593',
241
+ 1000: '#1a237e',
242
+ 1100: '#0d0d7a',
243
+ 1200: '#0a0a5c',
244
+ 1300: '#07073e',
245
+ 1400: '#05052f',
246
+ 1500: '#030320',
247
+ 1600: '#020215',
248
+ 1700: '#01010b',
249
+ 1800: '#000106'
250
+ },
251
+ pink: {
252
+ 100: '#fce4ec',
253
+ 200: '#f8bbd0',
254
+ 300: '#f48fb1',
255
+ 400: '#f06292',
256
+ 500: '#ec407a',
257
+ 600: '#e91e63',
258
+ 700: '#d81b60',
259
+ 800: '#c2185b',
260
+ 900: '#ad1457',
261
+ 1000: '#880e4f',
262
+ 1100: '#6a1b7a',
263
+ 1200: '#4a148c',
264
+ 1300: '#38006b',
265
+ 1400: '#2a004f',
266
+ 1500: '#1c0033',
267
+ 1600: '#120022',
268
+ 1700: '#0a0011',
269
+ 1800: '#040008'
270
+ },
271
+ // Static colors
272
+ "static": {
273
+ transparent: 'transparent',
274
+ white: '#ffffff',
275
+ black: '#000000'
276
+ }
277
+ };
278
+
279
+ // ===========================
280
+ // TYPE DEFINITIONS
281
+ // ===========================
282
+
283
+ // Color scale from 100 to 1800
284
+
285
+ // Type for a complete color scale
286
+
287
+ // ===========================
288
+ // UTILITY TYPES
289
+ // ===========================
290
+
291
+ // Type for token paths
292
+
293
+ // Token path types
294
+
295
+ // ===========================
296
+ // EXPORTS
297
+ // ===========================
298
+
299
+ // Main colors export
300
+ export var colors = {
301
+ global: globalColors
302
+ };
303
+ export default colors;
@@ -0,0 +1,240 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ 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; } }
10
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
11
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
12
+ 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; }
13
+ /**
14
+ * Skia Shadows Configuration
15
+ *
16
+ * Centralized configuration for multi-layer Skia shadows.
17
+ * Lives alongside other design system tokens.
18
+ */
19
+
20
+ /**
21
+ * Single shadow layer configuration
22
+ */
23
+
24
+ /**
25
+ * Multi-layer shadow configuration for each elevation level
26
+ */
27
+ export var skiaShadows = {
28
+ // Inset: Pressed/recessed appearance
29
+ inset: [{
30
+ dx: 0,
31
+ dy: 0,
32
+ blur: 4,
33
+ spread: 0,
34
+ color: 'rgba(0, 0, 0, 0.15)',
35
+ inner: true
36
+ }],
37
+ // Small: Subtle elevation for gentle separation
38
+ small: [{
39
+ dx: 0,
40
+ dy: 1,
41
+ blur: 2,
42
+ spread: 0,
43
+ color: 'rgba(0, 0, 0, 0.04)'
44
+ }, {
45
+ dx: 0,
46
+ dy: 1,
47
+ blur: 1,
48
+ spread: 0,
49
+ color: 'rgba(0, 0, 0, 0.06)'
50
+ }],
51
+ // Standard: Default elevation for cards and containers
52
+ standard: [{
53
+ dx: 0,
54
+ dy: 1,
55
+ blur: 3,
56
+ spread: 0,
57
+ color: 'rgba(0, 0, 0, 0.12)'
58
+ }, {
59
+ dx: 0,
60
+ dy: 1,
61
+ blur: 2,
62
+ spread: 0,
63
+ color: 'rgba(0, 0, 0, 0.24)'
64
+ }],
65
+ // Medium: Elevated components like active cards and dropdowns
66
+ medium: [{
67
+ dx: 0,
68
+ dy: 3,
69
+ blur: 6,
70
+ spread: 0,
71
+ color: 'rgba(0, 0, 0, 0.15)'
72
+ }, {
73
+ dx: 0,
74
+ dy: 2,
75
+ blur: 4,
76
+ spread: 0,
77
+ color: 'rgba(0, 0, 0, 0.12)'
78
+ }, {
79
+ dx: 0,
80
+ dy: 1,
81
+ blur: 2,
82
+ spread: 0,
83
+ color: 'rgba(0, 0, 0, 0.08)'
84
+ }],
85
+ // Large: Prominent elements like floating action buttons
86
+ large: [{
87
+ dx: 0,
88
+ dy: 6,
89
+ blur: 12,
90
+ spread: 0,
91
+ color: 'rgba(0, 0, 0, 0.18)'
92
+ }, {
93
+ dx: 0,
94
+ dy: 4,
95
+ blur: 8,
96
+ spread: 0,
97
+ color: 'rgba(0, 0, 0, 0.12)'
98
+ }, {
99
+ dx: 0,
100
+ dy: 2,
101
+ blur: 4,
102
+ spread: 0,
103
+ color: 'rgba(0, 0, 0, 0.08)'
104
+ }],
105
+ // XLarge: Elements that float above most content
106
+ xLarge: [{
107
+ dx: 0,
108
+ dy: 10,
109
+ blur: 20,
110
+ spread: 0,
111
+ color: 'rgba(0, 0, 0, 0.22)'
112
+ }, {
113
+ dx: 0,
114
+ dy: 6,
115
+ blur: 12,
116
+ spread: 0,
117
+ color: 'rgba(0, 0, 0, 0.15)'
118
+ }, {
119
+ dx: 0,
120
+ dy: 3,
121
+ blur: 6,
122
+ spread: 0,
123
+ color: 'rgba(0, 0, 0, 0.10)'
124
+ }],
125
+ // Overlay: Modal overlays and critical notifications
126
+ overlay: [{
127
+ dx: 0,
128
+ dy: 16,
129
+ blur: 32,
130
+ spread: 0,
131
+ color: 'rgba(0, 0, 0, 0.24)'
132
+ }, {
133
+ dx: 0,
134
+ dy: 8,
135
+ blur: 16,
136
+ spread: 0,
137
+ color: 'rgba(0, 0, 0, 0.18)'
138
+ }, {
139
+ dx: 0,
140
+ dy: 4,
141
+ blur: 8,
142
+ spread: 0,
143
+ color: 'rgba(0, 0, 0, 0.12)'
144
+ }],
145
+ // XXLarge: Highest elevation for critical dialogs
146
+ xxLarge: [{
147
+ dx: 0,
148
+ dy: 24,
149
+ blur: 48,
150
+ spread: 0,
151
+ color: 'rgba(0, 0, 0, 0.28)'
152
+ }, {
153
+ dx: 0,
154
+ dy: 12,
155
+ blur: 24,
156
+ spread: 0,
157
+ color: 'rgba(0, 0, 0, 0.20)'
158
+ }, {
159
+ dx: 0,
160
+ dy: 6,
161
+ blur: 12,
162
+ spread: 0,
163
+ color: 'rgba(0, 0, 0, 0.14)'
164
+ }]
165
+ };
166
+
167
+ /**
168
+ * Type definitions
169
+ */
170
+
171
+ /**
172
+ * Utility function to get shadow configuration
173
+ */
174
+
175
+ export var getSkiaShadows = function getSkiaShadows(level) {
176
+ return _toConsumableArray(skiaShadows[level]); // Creates a shallow copy
177
+ };
178
+ /**
179
+ * Elevation metadata for documentation and z-index
180
+ */
181
+ export var elevationMeta = {
182
+ inset: {
183
+ name: 'Inset',
184
+ description: 'Elements that appear pressed into the surface',
185
+ usage: ['Pressed buttons', 'Active input fields', 'Inset panels'],
186
+ zIndex: -1
187
+ },
188
+ small: {
189
+ name: 'Small',
190
+ description: 'Subtle elevation for gentle separation',
191
+ usage: ['Subtle borders', 'Gentle hover states', 'Light separators'],
192
+ zIndex: 1
193
+ },
194
+ standard: {
195
+ name: 'Standard',
196
+ description: 'Default elevation for cards and containers',
197
+ usage: ['Cards', 'Panels', 'Content blocks', 'Default buttons'],
198
+ zIndex: 2
199
+ },
200
+ medium: {
201
+ name: 'Medium',
202
+ description: 'Elevated components like active cards and dropdowns',
203
+ usage: ['Active cards', 'Hover states', 'Selected items', 'Secondary buttons'],
204
+ zIndex: 3
205
+ },
206
+ large: {
207
+ name: 'Large',
208
+ description: 'Prominent elements like floating action buttons',
209
+ usage: ['Floating action buttons', 'Primary CTAs', 'Important alerts'],
210
+ zIndex: 4
211
+ },
212
+ xLarge: {
213
+ name: 'X-Large',
214
+ description: 'Elements that float above most content',
215
+ usage: ['Dropdowns', 'Tooltips', 'Popovers', 'Context menus'],
216
+ zIndex: 5
217
+ },
218
+ overlay: {
219
+ name: 'Overlay',
220
+ description: 'Modal overlays and critical notifications',
221
+ usage: ['Modal dialogs', 'Overlays', 'Notifications', 'Drawers'],
222
+ zIndex: 1000
223
+ },
224
+ xxLarge: {
225
+ name: 'XX-Large',
226
+ description: 'Highest elevation for critical dialogs',
227
+ usage: ['System alerts', 'Critical errors', 'Emergency dialogs'],
228
+ zIndex: 2000
229
+ }
230
+ };
231
+
232
+ /**
233
+ * Get elevation info with z-index
234
+ */
235
+ export var getElevationInfo = function getElevationInfo(level) {
236
+ return _objectSpread({
237
+ level: level,
238
+ shadows: getSkiaShadows(level)
239
+ }, elevationMeta[level]);
240
+ };