@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,499 @@
1
+ var _excluded = ["header", "footer"];
2
+ 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; }
3
+ 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; }
4
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
5
+ 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."); }
6
+ 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; } }
7
+ 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; }
8
+ 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; } }
9
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
10
+ /**
11
+ * Nobak Design System - Component Tokens
12
+ *
13
+ * Component-specific design tokens that define the visual style of each component.
14
+ * These tokens reference semantic tokens for consistency and theme-ability.
15
+ *
16
+ * Structure:
17
+ * - Each component has its own token namespace
18
+ * - Variants (primary, secondary, etc.) defined within each component
19
+ * - States (hover, active, disabled, focus) included for interactive elements
20
+ */
21
+
22
+ import { semantic } from "./semantic";
23
+ import { shadows } from "./shadows";
24
+
25
+ /**
26
+ * Button Component Tokens
27
+ */
28
+ export var button = {
29
+ // Primary variant (main brand actions)
30
+ primary: {
31
+ background: semantic.interactive.primary,
32
+ backgroundHover: semantic.interactive.primaryHover,
33
+ backgroundActive: semantic.interactive.primaryActive,
34
+ backgroundDisabled: semantic.interactive.primaryDisabled,
35
+ text: semantic.content.inverse,
36
+ textDisabled: semantic.content.disabled,
37
+ border: semantic.interactive.primary,
38
+ borderHover: semantic.interactive.primaryHover,
39
+ borderDisabled: semantic.border.disabled
40
+ },
41
+ // Secondary variant (alternative actions)
42
+ secondary: {
43
+ background: semantic.surface["default"],
44
+ backgroundHover: semantic.surface.hover,
45
+ backgroundActive: semantic.surface.pressed,
46
+ backgroundDisabled: semantic.surface.disabled,
47
+ text: semantic.content.primary,
48
+ textDisabled: semantic.content.disabled,
49
+ border: semantic.border["default"],
50
+ borderHover: semantic.border.strong,
51
+ borderDisabled: semantic.border.disabled
52
+ },
53
+ // Tertiary variant (minimal/ghost)
54
+ tertiary: {
55
+ background: semantic.interactive.tertiary,
56
+ backgroundHover: semantic.interactive.tertiaryHover,
57
+ backgroundActive: semantic.interactive.tertiaryActive,
58
+ backgroundDisabled: 'transparent',
59
+ text: semantic.content.primary,
60
+ textDisabled: semantic.content.disabled,
61
+ border: 'transparent'
62
+ },
63
+ // Danger variant (destructive actions)
64
+ danger: {
65
+ background: semantic.feedback.error,
66
+ backgroundHover: semantic.feedback.errorHover,
67
+ backgroundActive: semantic.feedback.error,
68
+ backgroundDisabled: semantic.feedback.errorSubtle,
69
+ text: semantic.content.inverse,
70
+ textDisabled: semantic.content.disabled,
71
+ border: semantic.feedback.error
72
+ },
73
+ // Success variant
74
+ success: {
75
+ background: semantic.feedback.success,
76
+ backgroundHover: semantic.feedback.successHover,
77
+ backgroundActive: semantic.feedback.success,
78
+ text: semantic.content.inverse,
79
+ border: semantic.feedback.success
80
+ }
81
+ };
82
+
83
+ /**
84
+ * Input Component Tokens
85
+ */
86
+ export var input = {
87
+ "default": {
88
+ background: semantic.surface["default"],
89
+ backgroundHover: semantic.surface["default"],
90
+ backgroundFocus: semantic.surface["default"],
91
+ backgroundDisabled: semantic.surface.disabled,
92
+ text: semantic.content.primary,
93
+ textPlaceholder: semantic.content.placeholder,
94
+ textDisabled: semantic.content.disabled,
95
+ border: semantic.border["default"],
96
+ borderHover: semantic.border.strong,
97
+ borderFocus: semantic.border.focus,
98
+ borderDisabled: semantic.border.disabled,
99
+ borderError: semantic.border.error
100
+ }
101
+ };
102
+
103
+ /**
104
+ * Table Component Tokens
105
+ */
106
+ export var table = {
107
+ // Table header
108
+ header: {
109
+ background: semantic.background.subtle,
110
+ backgroundHover: semantic.surface.hover,
111
+ text: semantic.content.primary,
112
+ border: semantic.border["default"]
113
+ },
114
+ // Table rows
115
+ row: {
116
+ background: semantic.surface["default"],
117
+ backgroundHover: semantic.surface.hover,
118
+ backgroundSelected: semantic.interactive.primarySubtle,
119
+ backgroundStriped: semantic.background.subtle,
120
+ text: semantic.content.primary,
121
+ textSecondary: semantic.content.secondary,
122
+ border: semantic.border.subtle
123
+ },
124
+ // Table cell
125
+ cell: {
126
+ background: 'transparent',
127
+ text: semantic.content.primary,
128
+ border: semantic.border.subtle
129
+ }
130
+ };
131
+
132
+ /**
133
+ * Card Component Tokens
134
+ */
135
+ export var card = {
136
+ "default": {
137
+ background: semantic.surface["default"],
138
+ backgroundHover: semantic.surface["default"],
139
+ text: semantic.content.primary,
140
+ border: semantic.border["default"],
141
+ shadow: shadows.card
142
+ },
143
+ elevated: {
144
+ background: semantic.background.elevated,
145
+ text: semantic.content.primary,
146
+ border: semantic.border.subtle,
147
+ shadow: shadows.elevated
148
+ }
149
+ };
150
+
151
+ /**
152
+ * Modal Component Tokens
153
+ */
154
+ export var modal = {
155
+ backdrop: semantic.overlay.backdrop,
156
+ background: semantic.background.elevated,
157
+ text: semantic.content.primary,
158
+ border: semantic.border.subtle,
159
+ shadow: shadows.modal,
160
+ header: {
161
+ background: semantic.surface["default"],
162
+ text: semantic.content.primary,
163
+ border: semantic.border["default"]
164
+ },
165
+ footer: {
166
+ background: semantic.surface.subtle,
167
+ border: semantic.border["default"]
168
+ }
169
+ };
170
+
171
+ /**
172
+ * Dropdown/Select Component Tokens
173
+ */
174
+ export var dropdown = {
175
+ trigger: {
176
+ background: semantic.surface["default"],
177
+ backgroundHover: semantic.surface.hover,
178
+ backgroundActive: semantic.surface.pressed,
179
+ backgroundDisabled: semantic.surface.disabled,
180
+ text: semantic.content.primary,
181
+ border: semantic.border["default"],
182
+ borderHover: semantic.border.strong,
183
+ borderFocus: semantic.border.focus
184
+ },
185
+ menu: {
186
+ background: semantic.background.elevated,
187
+ border: semantic.border["default"],
188
+ shadow: shadows.dropdown
189
+ },
190
+ item: {
191
+ background: 'transparent',
192
+ backgroundHover: semantic.surface.hover,
193
+ backgroundSelected: semantic.interactive.primarySubtle,
194
+ text: semantic.content.primary,
195
+ textSelected: semantic.interactive.primary
196
+ }
197
+ };
198
+
199
+ /**
200
+ * Checkbox Component Tokens
201
+ */
202
+ export var checkbox = {
203
+ "default": {
204
+ background: semantic.surface["default"],
205
+ backgroundChecked: semantic.interactive.primary,
206
+ backgroundDisabled: semantic.surface.disabled,
207
+ border: semantic.border["default"],
208
+ borderChecked: semantic.interactive.primary,
209
+ borderHover: semantic.border.strong,
210
+ borderFocus: semantic.border.focus,
211
+ checkmark: semantic.content.inverse
212
+ }
213
+ };
214
+
215
+ /**
216
+ * Radio Component Tokens
217
+ */
218
+ export var radio = {
219
+ "default": {
220
+ background: semantic.surface["default"],
221
+ backgroundSelected: semantic.interactive.primary,
222
+ backgroundDisabled: semantic.surface.disabled,
223
+ border: semantic.border["default"],
224
+ borderSelected: semantic.interactive.primary,
225
+ borderHover: semantic.border.strong,
226
+ borderFocus: semantic.border.focus,
227
+ dot: semantic.content.inverse
228
+ }
229
+ };
230
+
231
+ /**
232
+ * Badge Component Tokens
233
+ */
234
+ export var badge = {
235
+ "default": {
236
+ background: semantic.surface.subtle,
237
+ text: semantic.content.primary,
238
+ border: semantic.border.subtle
239
+ },
240
+ primary: {
241
+ background: semantic.interactive.primarySubtle,
242
+ text: semantic.interactive.primary,
243
+ border: semantic.interactive.primary
244
+ },
245
+ success: {
246
+ background: semantic.feedback.successSubtle,
247
+ text: semantic.feedback.success,
248
+ border: semantic.feedback.successBorder
249
+ },
250
+ warning: {
251
+ background: semantic.feedback.warningSubtle,
252
+ text: semantic.feedback.warning,
253
+ border: semantic.feedback.warningBorder
254
+ },
255
+ error: {
256
+ background: semantic.feedback.errorSubtle,
257
+ text: semantic.feedback.error,
258
+ border: semantic.feedback.errorBorder
259
+ },
260
+ info: {
261
+ background: semantic.feedback.infoSubtle,
262
+ text: semantic.feedback.info,
263
+ border: semantic.feedback.infoBorder
264
+ }
265
+ };
266
+
267
+ /**
268
+ * Toast/Notification Component Tokens
269
+ */
270
+ export var toast = {
271
+ "default": {
272
+ background: semantic.surface["default"],
273
+ text: semantic.content.primary,
274
+ border: semantic.border["default"],
275
+ shadow: shadows.elevated
276
+ },
277
+ success: {
278
+ background: semantic.feedback.successSubtle,
279
+ text: semantic.content.primary,
280
+ border: semantic.feedback.successBorder,
281
+ icon: semantic.feedback.success
282
+ },
283
+ warning: {
284
+ background: semantic.feedback.warningSubtle,
285
+ text: semantic.content.primary,
286
+ border: semantic.feedback.warningBorder,
287
+ icon: semantic.feedback.warning
288
+ },
289
+ error: {
290
+ background: semantic.feedback.errorSubtle,
291
+ text: semantic.content.primary,
292
+ border: semantic.feedback.errorBorder,
293
+ icon: semantic.feedback.error
294
+ },
295
+ info: {
296
+ background: semantic.feedback.infoSubtle,
297
+ text: semantic.content.primary,
298
+ border: semantic.feedback.infoBorder,
299
+ icon: semantic.feedback.info
300
+ }
301
+ };
302
+
303
+ /**
304
+ * Tooltip Component Tokens
305
+ */
306
+ export var tooltip = {
307
+ background: semantic.surface.inverse,
308
+ text: semantic.content.inverse,
309
+ border: semantic.border["default"],
310
+ shadow: shadows.tooltip
311
+ };
312
+
313
+ /**
314
+ * Link Component Tokens
315
+ */
316
+ export var link = {
317
+ "default": {
318
+ text: semantic.interactive.link,
319
+ textHover: semantic.interactive.linkHover,
320
+ textVisited: semantic.interactive.linkVisited,
321
+ textDisabled: semantic.content.disabled,
322
+ underline: semantic.interactive.link
323
+ }
324
+ };
325
+
326
+ /**
327
+ * Divider Component Tokens
328
+ */
329
+ export var divider = {
330
+ "default": {
331
+ color: semantic.border["default"]
332
+ },
333
+ subtle: {
334
+ color: semantic.border.subtle
335
+ },
336
+ strong: {
337
+ color: semantic.border.strong
338
+ }
339
+ };
340
+
341
+ /**
342
+ * Skeleton Loader Component Tokens
343
+ */
344
+ export var skeleton = {
345
+ background: semantic.special.skeleton,
346
+ shimmer: semantic.special.skeletonShimmer
347
+ };
348
+
349
+ /**
350
+ * Combined Component Tokens Export
351
+ */
352
+ export var componentTokens = {
353
+ button: button,
354
+ input: input,
355
+ table: table,
356
+ card: card,
357
+ modal: modal,
358
+ dropdown: dropdown,
359
+ checkbox: checkbox,
360
+ radio: radio,
361
+ badge: badge,
362
+ toast: toast,
363
+ tooltip: tooltip,
364
+ link: link,
365
+ divider: divider,
366
+ skeleton: skeleton
367
+ };
368
+
369
+ /**
370
+ * Type Exports
371
+ */
372
+
373
+ /**
374
+ * CSS Custom Properties Generator for Component Tokens
375
+ */
376
+ export var generateComponentCSSVariables = function generateComponentCSSVariables() {
377
+ var vars = {};
378
+
379
+ // Button tokens
380
+ Object.entries(button).forEach(function (_ref) {
381
+ var _ref2 = _slicedToArray(_ref, 2),
382
+ variant = _ref2[0],
383
+ tokens = _ref2[1];
384
+ Object.entries(tokens).forEach(function (_ref3) {
385
+ var _ref4 = _slicedToArray(_ref3, 2),
386
+ key = _ref4[0],
387
+ value = _ref4[1];
388
+ vars["--button-".concat(variant, "-").concat(key)] = value;
389
+ });
390
+ });
391
+
392
+ // Input tokens
393
+ Object.entries(input["default"]).forEach(function (_ref5) {
394
+ var _ref6 = _slicedToArray(_ref5, 2),
395
+ key = _ref6[0],
396
+ value = _ref6[1];
397
+ vars["--input-".concat(key)] = value;
398
+ });
399
+
400
+ // Table tokens
401
+ Object.entries(table).forEach(function (_ref7) {
402
+ var _ref8 = _slicedToArray(_ref7, 2),
403
+ section = _ref8[0],
404
+ tokens = _ref8[1];
405
+ Object.entries(tokens).forEach(function (_ref9) {
406
+ var _ref0 = _slicedToArray(_ref9, 2),
407
+ key = _ref0[0],
408
+ value = _ref0[1];
409
+ vars["--table-".concat(section, "-").concat(key)] = value;
410
+ });
411
+ });
412
+
413
+ // Card tokens
414
+ Object.entries(card).forEach(function (_ref1) {
415
+ var _ref10 = _slicedToArray(_ref1, 2),
416
+ variant = _ref10[0],
417
+ tokens = _ref10[1];
418
+ Object.entries(tokens).forEach(function (_ref11) {
419
+ var _ref12 = _slicedToArray(_ref11, 2),
420
+ key = _ref12[0],
421
+ value = _ref12[1];
422
+ vars["--card-".concat(variant, "-").concat(key)] = value;
423
+ });
424
+ });
425
+
426
+ // Modal tokens
427
+ var modalHeader = modal.header,
428
+ modalFooter = modal.footer,
429
+ modalBase = _objectWithoutProperties(modal, _excluded);
430
+ Object.entries(modalBase).forEach(function (_ref13) {
431
+ var _ref14 = _slicedToArray(_ref13, 2),
432
+ key = _ref14[0],
433
+ value = _ref14[1];
434
+ vars["--modal-".concat(key)] = value;
435
+ });
436
+ Object.entries(modalHeader).forEach(function (_ref15) {
437
+ var _ref16 = _slicedToArray(_ref15, 2),
438
+ key = _ref16[0],
439
+ value = _ref16[1];
440
+ vars["--modal-header-".concat(key)] = value;
441
+ });
442
+ Object.entries(modalFooter).forEach(function (_ref17) {
443
+ var _ref18 = _slicedToArray(_ref17, 2),
444
+ key = _ref18[0],
445
+ value = _ref18[1];
446
+ vars["--modal-footer-".concat(key)] = value;
447
+ });
448
+
449
+ // Badge tokens
450
+ Object.entries(badge).forEach(function (_ref19) {
451
+ var _ref20 = _slicedToArray(_ref19, 2),
452
+ variant = _ref20[0],
453
+ tokens = _ref20[1];
454
+ Object.entries(tokens).forEach(function (_ref21) {
455
+ var _ref22 = _slicedToArray(_ref21, 2),
456
+ key = _ref22[0],
457
+ value = _ref22[1];
458
+ vars["--badge-".concat(variant, "-").concat(key)] = value;
459
+ });
460
+ });
461
+
462
+ // Toast tokens
463
+ Object.entries(toast).forEach(function (_ref23) {
464
+ var _ref24 = _slicedToArray(_ref23, 2),
465
+ variant = _ref24[0],
466
+ tokens = _ref24[1];
467
+ Object.entries(tokens).forEach(function (_ref25) {
468
+ var _ref26 = _slicedToArray(_ref25, 2),
469
+ key = _ref26[0],
470
+ value = _ref26[1];
471
+ vars["--toast-".concat(variant, "-").concat(key)] = value;
472
+ });
473
+ });
474
+
475
+ // Tooltip tokens
476
+ Object.entries(tooltip).forEach(function (_ref27) {
477
+ var _ref28 = _slicedToArray(_ref27, 2),
478
+ key = _ref28[0],
479
+ value = _ref28[1];
480
+ vars["--tooltip-".concat(key)] = value;
481
+ });
482
+
483
+ // Link tokens
484
+ Object.entries(link["default"]).forEach(function (_ref29) {
485
+ var _ref30 = _slicedToArray(_ref29, 2),
486
+ key = _ref30[0],
487
+ value = _ref30[1];
488
+ vars["--link-".concat(key)] = value;
489
+ });
490
+
491
+ // Skeleton tokens
492
+ Object.entries(skeleton).forEach(function (_ref31) {
493
+ var _ref32 = _slicedToArray(_ref31, 2),
494
+ key = _ref32[0],
495
+ value = _ref32[1];
496
+ vars["--skeleton-".concat(key)] = value;
497
+ });
498
+ return vars;
499
+ };
@@ -0,0 +1,84 @@
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 _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
+ 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."); }
4
+ 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; } }
5
+ 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; }
6
+ 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; } }
7
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
8
+ 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; }
9
+ 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; }
10
+ 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; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
+ 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); }
13
+ /**
14
+ * Nobak Design System - Design Tokens
15
+ *
16
+ * Punk Rock Minimal Japanese Aesthetic
17
+ *
18
+ * Export all design tokens for use throughout the system
19
+ */
20
+
21
+ // Foundation tokens
22
+ export * from "./colors";
23
+ export * from "./typography";
24
+ export * from "./spacing";
25
+ export * from "./shadows";
26
+ export * from "./borders";
27
+ export * from "./motion";
28
+
29
+ // Semantic & Component tokens
30
+ export * from "./semantic";
31
+ export * from "./components";
32
+ export * from "./lighting";
33
+ import { colors, generateCSSVariables as generateColorVars, tailwindColors } from "./colors";
34
+ import { typography, generateTypographyVariables, tailwindTypography } from "./typography";
35
+ import { spacing, generateSpacingVariables, tailwindSpacing } from "./spacing";
36
+ import { shadows, generateShadowVariables, tailwindShadows } from "./shadows";
37
+ import { borders, generateBorderVariables, tailwindBorders } from "./borders";
38
+ import { motion, generateMotionVariables, tailwindMotion } from "./motion";
39
+ import { semantic, generateSemanticCSSVariables, tailwindSemantic } from "./semantic";
40
+ import { componentTokens, generateComponentCSSVariables } from "./components";
41
+ import { lighting, lightingContexts, generateLightingCSSVariables } from "./lighting";
42
+
43
+ // Combined tokens export
44
+ export var tokens = {
45
+ colors: colors,
46
+ typography: typography,
47
+ spacing: spacing,
48
+ shadows: shadows,
49
+ borders: borders,
50
+ motion: motion,
51
+ semantic: semantic,
52
+ components: componentTokens,
53
+ lighting: lighting,
54
+ lightingContexts: lightingContexts
55
+ };
56
+
57
+ // Generate all CSS custom properties
58
+ export var generateAllCSSVariables = function generateAllCSSVariables() {
59
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, generateColorVars()), generateTypographyVariables()), generateSpacingVariables()), generateShadowVariables()), generateBorderVariables()), generateMotionVariables()), generateSemanticCSSVariables()), generateComponentCSSVariables()), generateLightingCSSVariables());
60
+ };
61
+
62
+ // Tailwind config export
63
+ export var tailwindTokens = _objectSpread(_objectSpread(_objectSpread({
64
+ colors: _objectSpread(_objectSpread({}, tailwindColors), tailwindSemantic)
65
+ }, tailwindTypography), {}, {
66
+ spacing: tailwindSpacing,
67
+ boxShadow: tailwindShadows
68
+ }, tailwindBorders), tailwindMotion);
69
+
70
+ // CSS variables as a string (for injection)
71
+ export var cssVariablesString = function cssVariablesString() {
72
+ var vars = generateAllCSSVariables();
73
+ return Object.entries(vars).map(function (_ref) {
74
+ var _ref2 = _slicedToArray(_ref, 2),
75
+ key = _ref2[0],
76
+ value = _ref2[1];
77
+ return " ".concat(key, ": ").concat(value, ";");
78
+ }).join(': ');
79
+ };
80
+
81
+ // Generate CSS :root block
82
+ export var generateRootCSS = function generateRootCSS() {
83
+ return ":root {\n".concat(cssVariablesString(), "\n}");
84
+ };