@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.
- package/LICENSE +73 -0
- package/README.md +142 -0
- package/lib/assets/icons.js +67 -0
- package/lib/components/AccountOverview/AccountOverview.js +122 -0
- package/lib/components/AdminPanel.js +58 -0
- package/lib/components/AssetExchange/AssetExchange.js +189 -0
- package/lib/components/AuthenticationFlow.js +216 -0
- package/lib/components/ConversationInterface/ConversationInterface.js +232 -0
- package/lib/components/DevFooter.js +38 -0
- package/lib/components/DevMenu.js +35 -0
- package/lib/components/DevSidebar.js +28 -0
- package/lib/components/DigitalDisplay.js +83 -0
- package/lib/components/Footer.js +45 -0
- package/lib/components/HeroContainer.js +10 -0
- package/lib/components/IntentRecognition/IntentRecognition.js +174 -0
- package/lib/components/Logo.js +259 -0
- package/lib/components/MenuBar.js +56 -0
- package/lib/components/NetworkSettings.js +223 -0
- package/lib/components/RecoverySetup/RecoverySetup.js +354 -0
- package/lib/components/RisingSun.js +122 -0
- package/lib/components/Symbol.js +226 -0
- package/lib/components/TransactionComposer/TransactionComposer.js +258 -0
- package/lib/components/TransactionConfirmation.js +184 -0
- package/lib/components/WalletMenu.js +33 -0
- package/lib/components/console/code/CodeBlock.js +150 -0
- package/lib/components/console/code/index.js +9 -0
- package/lib/components/console/data/DataTable.js +245 -0
- package/lib/components/console/data/MetricCard.js +79 -0
- package/lib/components/console/data/index.js +11 -0
- package/lib/components/console/documentation/index.js +10 -0
- package/lib/components/console/forms/APIKeyGenerator.js +261 -0
- package/lib/components/console/forms/SearchBar.js +210 -0
- package/lib/components/console/forms/index.js +10 -0
- package/lib/components/console/index.js +29 -0
- package/lib/components/console/layout/ConsoleCard.js +82 -0
- package/lib/components/console/layout/ConsoleLayout.js +86 -0
- package/lib/components/console/layout/index.js +10 -0
- package/lib/components/console/monitoring/StatusIndicator.js +128 -0
- package/lib/components/console/monitoring/index.js +9 -0
- package/lib/components/console/navigation/DevFooter.js +38 -0
- package/lib/components/console/navigation/DevMenu.js +35 -0
- package/lib/components/console/navigation/DevSidebar.js +28 -0
- package/lib/components/console/navigation/index.js +11 -0
- package/lib/components/console/settings/index.js +10 -0
- package/lib/components/index.js +12 -0
- package/lib/design/ColorPicker.stories.js +9 -0
- package/lib/design/HSLTool-V1.js +345 -0
- package/lib/design/HSLTool-V2.js +475 -0
- package/lib/design/HSLTool-V3.js +543 -0
- package/lib/design/HSLTool-V4.js +1139 -0
- package/lib/design/HSLTool.js +374 -0
- package/lib/design/OKLCHColorPicker.stories.js +24 -0
- package/lib/design/OKLCHTool.js +1014 -0
- package/lib/index.js +4 -0
- package/lib/shared/components/Avatar/Avatar.js +18 -0
- package/lib/shared/components/Avatar/index.js +1 -0
- package/lib/shared/components/Badge/Badge.js +34 -0
- package/lib/shared/components/Badge/index.js +1 -0
- package/lib/shared/components/Breadcrumb/Breadcrumb.js +13 -0
- package/lib/shared/components/Breadcrumb/index.js +1 -0
- package/lib/shared/components/Button/Button.js +184 -0
- package/lib/shared/components/Button/index.js +1 -0
- package/lib/shared/components/Calendar/Calendar.js +155 -0
- package/lib/shared/components/Calendar/CalendarDay.js +251 -0
- package/lib/shared/components/Calendar/CalendarHeader.js +88 -0
- package/lib/shared/components/Calendar/CalendarMonth.js +106 -0
- package/lib/shared/components/Calendar/CalendarWeek.js +267 -0
- package/lib/shared/components/Calendar/constants.js +73 -0
- package/lib/shared/components/Calendar/index.js +3 -0
- package/lib/shared/components/Calendar/types.d.js +0 -0
- package/lib/shared/components/Cartel/Cartel.js +44 -0
- package/lib/shared/components/Cartel/index.js +1 -0
- package/lib/shared/components/Cell/Cell.js +105 -0
- package/lib/shared/components/Cell/index.js +1 -0
- package/lib/shared/components/Checkbox/Checkbox.js +27 -0
- package/lib/shared/components/Checkbox/index.js +1 -0
- package/lib/shared/components/Clock/Clock.js +6 -0
- package/lib/shared/components/Clock/index.js +1 -0
- package/lib/shared/components/ColorChecker/ColorChecker.js +89 -0
- package/lib/shared/components/ColorChecker/index.js +2 -0
- package/lib/shared/components/ColorChecker/utils.js +159 -0
- package/lib/shared/components/Command/Command.js +95 -0
- package/lib/shared/components/Command/index.js +1 -0
- package/lib/shared/components/Container/Container.js +18 -0
- package/lib/shared/components/Container/index.js +1 -0
- package/lib/shared/components/Cover/Cover.js +17 -0
- package/lib/shared/components/Cover/index.js +1 -0
- package/lib/shared/components/DatePicker/DatePicker.js +52 -0
- package/lib/shared/components/DatePicker/components/Calendar.js +125 -0
- package/lib/shared/components/DatePicker/components/CalendarDay.js +23 -0
- package/lib/shared/components/DatePicker/components/DateWrapper.js +15 -0
- package/lib/shared/components/DatePicker/components/index.js +2 -0
- package/lib/shared/components/DatePicker/index.js +1 -0
- package/lib/shared/components/DateTime/DateTime.js +51 -0
- package/lib/shared/components/DateTime/index.js +1 -0
- package/lib/shared/components/Debug/Debug.js +12 -0
- package/lib/shared/components/Debug/index.js +1 -0
- package/lib/shared/components/Disclosure/Disclosure.js +31 -0
- package/lib/shared/components/Disclosure/index.js +1 -0
- package/lib/shared/components/Dropdown/Dropdown.js +91 -0
- package/lib/shared/components/Dropdown/index.js +1 -0
- package/lib/shared/components/EmptyState/EmptyState.js +40 -0
- package/lib/shared/components/EmptyState/index.js +1 -0
- package/lib/shared/components/Form/Form.js +41 -0
- package/lib/shared/components/Form/components/DynamicForm.js +66 -0
- package/lib/shared/components/Form/components/StepperForm.js +266 -0
- package/lib/shared/components/Form/components/index.js +2 -0
- package/lib/shared/components/Form/context/Form.js +164 -0
- package/lib/shared/components/Form/context/index.js +1 -0
- package/lib/shared/components/Form/index.js +1 -0
- package/lib/shared/components/Form/types.d.js +1 -0
- package/lib/shared/components/Form/utils/index.js +31 -0
- package/lib/shared/components/GroupItems/GroupItems.js +17 -0
- package/lib/shared/components/GroupItems/index.js +1 -0
- package/lib/shared/components/Header/Header.js +26 -0
- package/lib/shared/components/Header/index.js +1 -0
- package/lib/shared/components/Heading/Heading.js +5 -0
- package/lib/shared/components/Heading/index.js +1 -0
- package/lib/shared/components/Icon/Icon.js +28 -0
- package/lib/shared/components/Icon/index.js +1 -0
- package/lib/shared/components/Identicons/Identicons.js +6 -0
- package/lib/shared/components/Identicons/index.d.js +0 -0
- package/lib/shared/components/Identicons/index.js +1 -0
- package/lib/shared/components/Image/Image.js +22 -0
- package/lib/shared/components/Image/index.js +1 -0
- package/lib/shared/components/Input/Input.js +201 -0
- package/lib/shared/components/Input/components/CheckBoxInput.js +81 -0
- package/lib/shared/components/Input/components/DateInput.js +89 -0
- package/lib/shared/components/Input/components/DefaultInput.js +102 -0
- package/lib/shared/components/Input/components/FileReaderInput.js +88 -0
- package/lib/shared/components/Input/components/NumberInput.js +141 -0
- package/lib/shared/components/Input/components/PickerInput.js +122 -0
- package/lib/shared/components/Input/components/RCInput.js +112 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxBasic.js +56 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxCard.js +27 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxFull.js +44 -0
- package/lib/shared/components/Input/components/Radiobox/index.js +3 -0
- package/lib/shared/components/Input/components/RadioboxInput.js +102 -0
- package/lib/shared/components/Input/components/SelectInput.js +70 -0
- package/lib/shared/components/Input/components/TextAreaInput.js +67 -0
- package/lib/shared/components/Input/components/TextInput.js +139 -0
- package/lib/shared/components/Input/components/TimeInput.js +37 -0
- package/lib/shared/components/Input/components/UploadFileInput.js +123 -0
- package/lib/shared/components/Input/components/index.js +13 -0
- package/lib/shared/components/Input/components/types.d.js +0 -0
- package/lib/shared/components/Input/index.js +1 -0
- package/lib/shared/components/Input/types.d.js +0 -0
- package/lib/shared/components/Layout/Layout.js +13 -0
- package/lib/shared/components/Layout/index.js +1 -0
- package/lib/shared/components/List/List.js +30 -0
- package/lib/shared/components/List/index.js +1 -0
- package/lib/shared/components/Loader/Loader.js +27 -0
- package/lib/shared/components/Loader/index.js +1 -0
- package/lib/shared/components/Modal/Modal.js +102 -0
- package/lib/shared/components/Modal/index.js +1 -0
- package/lib/shared/components/Notification/Notification.js +39 -0
- package/lib/shared/components/Notification/index.js +1 -0
- package/lib/shared/components/Person/Person.js +81 -0
- package/lib/shared/components/Person/index.js +1 -0
- package/lib/shared/components/Popover/Popover.js +39 -0
- package/lib/shared/components/Popover/index.js +1 -0
- package/lib/shared/components/QRCode/QRCode.js +329 -0
- package/lib/shared/components/QRCode/index.js +1 -0
- package/lib/shared/components/RadioGroup/RadioGroup.js +35 -0
- package/lib/shared/components/RadioGroup/components/DefaultGroup.js +71 -0
- package/lib/shared/components/RadioGroup/components/VerticalGroup.js +83 -0
- package/lib/shared/components/RadioGroup/components/index.js +2 -0
- package/lib/shared/components/RadioGroup/index.js +1 -0
- package/lib/shared/components/Search/Search.js +12 -0
- package/lib/shared/components/Search/index.js +1 -0
- package/lib/shared/components/Select/Select.js +90 -0
- package/lib/shared/components/Select/index.js +1 -0
- package/lib/shared/components/Sidebar/Sidebar.js +42 -0
- package/lib/shared/components/Sidebar/index.js +1 -0
- package/lib/shared/components/SlideOver/SlideOver.js +81 -0
- package/lib/shared/components/SlideOver/index.js +1 -0
- package/lib/shared/components/Slider/Slider.js +80 -0
- package/lib/shared/components/Slider/index.js +1 -0
- package/lib/shared/components/Stepper/Stepper.js +32 -0
- package/lib/shared/components/Stepper/index.js +1 -0
- package/lib/shared/components/Steps/Steps.js +53 -0
- package/lib/shared/components/Steps/index.js +1 -0
- package/lib/shared/components/Switch/Switch.js +26 -0
- package/lib/shared/components/Switch/index.js +1 -0
- package/lib/shared/components/Tab/Tab.js +59 -0
- package/lib/shared/components/Tab/index.js +1 -0
- package/lib/shared/components/Table/Table.js +47 -0
- package/lib/shared/components/Table/index.js +1 -0
- package/lib/shared/components/Text/Text.js +11 -0
- package/lib/shared/components/Text/index.js +1 -0
- package/lib/shared/components/TextList/TextList.js +15 -0
- package/lib/shared/components/TextList/index.js +1 -0
- package/lib/shared/components/TimePicker/TimePicker.js +161 -0
- package/lib/shared/components/TimePicker/index.js +1 -0
- package/lib/shared/components/Tooltip/Tooltip.js +13 -0
- package/lib/shared/components/Tooltip/index.js +1 -0
- package/lib/shared/components/Uploader/Uploader.js +63 -0
- package/lib/shared/components/Uploader/index.js +1 -0
- package/lib/shared/components/Video/Video.js +20 -0
- package/lib/shared/components/Video/index.js +1 -0
- package/lib/shared/components/index.d.js +0 -0
- package/lib/shared/components/index.js +50 -0
- package/lib/shared/elements/Color/ColorPallet.js +20 -0
- package/lib/shared/elements/Color/index.js +1 -0
- package/lib/shared/elements/Text.js +37 -0
- package/lib/shared/elements/index.js +1 -0
- package/lib/shared/helpers/FakeLink.js +8 -0
- package/lib/shared/helpers/constants.js +359 -0
- package/lib/shared/helpers/index.js +2 -0
- package/lib/shared/helpers/isEqual.js +56 -0
- package/lib/shared/index.d.js +0 -0
- package/lib/shared/index.js +1 -0
- package/lib/shared/stories/components/Avatar.stories.js +17 -0
- package/lib/shared/stories/components/Badge.stories.dev.js +37 -0
- package/lib/shared/stories/components/Button.stories.js +553 -0
- package/lib/shared/stories/components/Calendar.stories.js +62 -0
- package/lib/shared/stories/components/Cartel.stories.js +32 -0
- package/lib/shared/stories/components/Checkbox.stories.js +15 -0
- package/lib/shared/stories/components/ColorChecker.stories.dev.js +16 -0
- package/lib/shared/stories/components/DateTime.stories.js +27 -0
- package/lib/shared/stories/components/Disclosure.stories.js +30 -0
- package/lib/shared/stories/components/Dropdown.stories.js +39 -0
- package/lib/shared/stories/components/Form/Default.stories.js +201 -0
- package/lib/shared/stories/components/Form/DummyForm.stories.js +48 -0
- package/lib/shared/stories/components/Form/DynamicForm.stories.js +155 -0
- package/lib/shared/stories/components/Form/StepperForm.stories.js +138 -0
- package/lib/shared/stories/components/Form/ValidateForm.stories.js +70 -0
- package/lib/shared/stories/components/Form/Validation.stories.js +184 -0
- package/lib/shared/stories/components/GroupItems.stories.js +23 -0
- package/lib/shared/stories/components/Header.stories.js +29 -0
- package/lib/shared/stories/components/Heading.stories.js +27 -0
- package/lib/shared/stories/components/Icon.stories.js +22 -0
- package/lib/shared/stories/components/Image.stories.js +23 -0
- package/lib/shared/stories/components/Input/Checkbox.stories.js +45 -0
- package/lib/shared/stories/components/Input/DatePicker.stories.js +23 -0
- package/lib/shared/stories/components/Input/Defaut.stories.js +24 -0
- package/lib/shared/stories/components/Input/Number.stories.js +24 -0
- package/lib/shared/stories/components/Input/RCI.stories.js +59 -0
- package/lib/shared/stories/components/Input/Radiobox.stories.dev.js +28 -0
- package/lib/shared/stories/components/Input/Select.stories.dev.js +27 -0
- package/lib/shared/stories/components/Input/SelectMultiple.stories.dev.js +510 -0
- package/lib/shared/stories/components/Input/Textarea.stories.js +24 -0
- package/lib/shared/stories/components/List.stories.js +34 -0
- package/lib/shared/stories/components/Loader.stories.js +15 -0
- package/lib/shared/stories/components/Modal.stories.js +50 -0
- package/lib/shared/stories/components/Notification.stories.js +22 -0
- package/lib/shared/stories/components/Person.stories.js +41 -0
- package/lib/shared/stories/components/Picker.stories.js +15 -0
- package/lib/shared/stories/components/Popover.stories.js +36 -0
- package/lib/shared/stories/components/QRCode.stories.js +20 -0
- package/lib/shared/stories/components/RadioGroup.stories.js +56 -0
- package/lib/shared/stories/components/Select.stories.js +50 -0
- package/lib/shared/stories/components/Sidebar.stories.js +35 -0
- package/lib/shared/stories/components/Slider.stories.dev.js +48 -0
- package/lib/shared/stories/components/Stepper/Stepper.stories.js +38 -0
- package/lib/shared/stories/components/Steps.stories.js +15 -0
- package/lib/shared/stories/components/Switch.stories.js +15 -0
- package/lib/shared/stories/components/Tab.stories.js +15 -0
- package/lib/shared/stories/components/Table.stories.js +95 -0
- package/lib/shared/stories/components/TextList.stories.js +23 -0
- package/lib/shared/stories/components/Tooltip.stories.dev.js +40 -0
- package/lib/shared/stories/elements/Color.stories.js +269 -0
- package/lib/shared/stories/elements/Text.stories.js +45 -0
- package/lib/shared/types/index.js +1 -0
- package/lib/stories/Foundation/BrandIdentity.prod.stories.js +510 -0
- package/lib/stories/Foundation/Logo.stories.js +19 -0
- package/lib/stories/Foundation/RisingSun.stories.js +16 -0
- package/lib/stories/Foundation/Shadows.stories.js +601 -0
- package/lib/stories/Foundation/Symbol.stories.js +18 -0
- package/lib/stories/HeroContainer.stories.js +18 -0
- package/lib/styles/accessibilityTokens.js +72 -0
- package/lib/styles/borderWidth.js +10 -0
- package/lib/styles/colors.js +303 -0
- package/lib/styles/elevation.js +240 -0
- package/lib/styles/icons.js +218 -0
- package/lib/styles/index.js +29 -0
- package/lib/styles/motion.js +668 -0
- package/lib/styles/opacity.js +10 -0
- package/lib/styles/radius.js +11 -0
- package/lib/styles/sizing.js +35 -0
- package/lib/styles/space.js +24 -0
- package/lib/styles/theme/darkTheme.js +471 -0
- package/lib/styles/theme/index.js +44 -0
- package/lib/styles/theme/lightTheme.js +480 -0
- package/lib/styles/theme/themeTypes.js +1 -0
- package/lib/styles/theme/themeUtils.js +63 -0
- package/lib/styles/typography-advanced.js +510 -0
- package/lib/styles/typography.js +1419 -0
- package/lib/styles/zIndex.js +19 -0
- package/lib/tokens/borders.js +161 -0
- package/lib/tokens/colors.js +426 -0
- package/lib/tokens/components.js +499 -0
- package/lib/tokens/index.js +84 -0
- package/lib/tokens/lighting.js +384 -0
- package/lib/tokens/motion.js +284 -0
- package/lib/tokens/semantic.js +367 -0
- package/lib/tokens/shadows.js +114 -0
- package/lib/tokens/spacing.js +189 -0
- package/lib/tokens/typography.js +268 -0
- package/package.json +176 -0
- package/styles/generated-tokens.css +677 -0
- package/styles/index.css +2 -0
- package/styles/main.css +610 -0
- package/tailwind.config.js +64 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
3
|
+
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; } }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
/**
|
|
8
|
+
* Nobak Design System - Typography Tokens
|
|
9
|
+
*
|
|
10
|
+
* Punk Rock Minimal Japanese Aesthetic
|
|
11
|
+
* - Arboria: Geometric, clean, modern
|
|
12
|
+
* - IBM Plex Mono: Code, data, punk aesthetic
|
|
13
|
+
*
|
|
14
|
+
* Scale: 1.250 (Major Third) - Musical harmony
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export var typography = {
|
|
18
|
+
// Font Families
|
|
19
|
+
fonts: {
|
|
20
|
+
primary: '"Arboria", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
21
|
+
mono: '"IBM Plex Mono": "SF Mono", Monaco, "Cascadia Code": "Roboto Mono", Consolas, "Courier New", monospace',
|
|
22
|
+
display: '"Arboria", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
|
|
23
|
+
},
|
|
24
|
+
// Font Sizes (Modular Scale: 1.250 - Major Third)
|
|
25
|
+
sizes: {
|
|
26
|
+
// Display
|
|
27
|
+
display: {
|
|
28
|
+
fontSize: '72px',
|
|
29
|
+
lineHeight: '1.1',
|
|
30
|
+
letterSpacing: '-0.02em',
|
|
31
|
+
fontWeight: 700
|
|
32
|
+
},
|
|
33
|
+
// Headings
|
|
34
|
+
h1: {
|
|
35
|
+
fontSize: '60px',
|
|
36
|
+
lineHeight: '1.2',
|
|
37
|
+
letterSpacing: '-0.02em',
|
|
38
|
+
fontWeight: 700
|
|
39
|
+
},
|
|
40
|
+
h2: {
|
|
41
|
+
fontSize: '48px',
|
|
42
|
+
lineHeight: '1.25',
|
|
43
|
+
letterSpacing: '-0.01em',
|
|
44
|
+
fontWeight: 600
|
|
45
|
+
},
|
|
46
|
+
h3: {
|
|
47
|
+
fontSize: '38px',
|
|
48
|
+
lineHeight: '1.3',
|
|
49
|
+
letterSpacing: '-0.01em',
|
|
50
|
+
fontWeight: 600
|
|
51
|
+
},
|
|
52
|
+
h4: {
|
|
53
|
+
fontSize: '30px',
|
|
54
|
+
lineHeight: '1.4',
|
|
55
|
+
letterSpacing: '0',
|
|
56
|
+
fontWeight: 500
|
|
57
|
+
},
|
|
58
|
+
h5: {
|
|
59
|
+
fontSize: '24px',
|
|
60
|
+
lineHeight: '1.5',
|
|
61
|
+
letterSpacing: '0',
|
|
62
|
+
fontWeight: 500
|
|
63
|
+
},
|
|
64
|
+
h6: {
|
|
65
|
+
fontSize: '20px',
|
|
66
|
+
lineHeight: '1.5',
|
|
67
|
+
letterSpacing: '0',
|
|
68
|
+
fontWeight: 500
|
|
69
|
+
},
|
|
70
|
+
// Body
|
|
71
|
+
body: {
|
|
72
|
+
fontSize: '16px',
|
|
73
|
+
lineHeight: '1.6',
|
|
74
|
+
letterSpacing: '0',
|
|
75
|
+
fontWeight: 400
|
|
76
|
+
},
|
|
77
|
+
bodyLarge: {
|
|
78
|
+
fontSize: '18px',
|
|
79
|
+
lineHeight: '1.6',
|
|
80
|
+
letterSpacing: '0',
|
|
81
|
+
fontWeight: 400
|
|
82
|
+
},
|
|
83
|
+
bodySmall: {
|
|
84
|
+
fontSize: '14px',
|
|
85
|
+
lineHeight: '1.5',
|
|
86
|
+
letterSpacing: '0',
|
|
87
|
+
fontWeight: 400
|
|
88
|
+
},
|
|
89
|
+
// UI
|
|
90
|
+
small: {
|
|
91
|
+
fontSize: '13px',
|
|
92
|
+
lineHeight: '1.5',
|
|
93
|
+
letterSpacing: '0',
|
|
94
|
+
fontWeight: 400
|
|
95
|
+
},
|
|
96
|
+
micro: {
|
|
97
|
+
fontSize: '10px',
|
|
98
|
+
lineHeight: '1.4',
|
|
99
|
+
letterSpacing: '0.02em',
|
|
100
|
+
fontWeight: 500,
|
|
101
|
+
textTransform: 'uppercase'
|
|
102
|
+
},
|
|
103
|
+
// Code
|
|
104
|
+
code: {
|
|
105
|
+
fontSize: '14px',
|
|
106
|
+
lineHeight: '1.6',
|
|
107
|
+
letterSpacing: '0',
|
|
108
|
+
fontWeight: 400
|
|
109
|
+
},
|
|
110
|
+
codeSmall: {
|
|
111
|
+
fontSize: '12px',
|
|
112
|
+
lineHeight: '1.5',
|
|
113
|
+
letterSpacing: '0',
|
|
114
|
+
fontWeight: 400
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
// Font Weights
|
|
118
|
+
weights: {
|
|
119
|
+
regular: 400,
|
|
120
|
+
medium: 500,
|
|
121
|
+
semibold: 600,
|
|
122
|
+
bold: 700,
|
|
123
|
+
black: 900
|
|
124
|
+
},
|
|
125
|
+
// Line Heights
|
|
126
|
+
lineHeights: {
|
|
127
|
+
tight: 1.1,
|
|
128
|
+
snug: 1.25,
|
|
129
|
+
normal: 1.5,
|
|
130
|
+
relaxed: 1.6,
|
|
131
|
+
loose: 1.75
|
|
132
|
+
},
|
|
133
|
+
// Letter Spacing
|
|
134
|
+
letterSpacing: {
|
|
135
|
+
tighter: '-0.02em',
|
|
136
|
+
tight: '-0.01em',
|
|
137
|
+
normal: '0',
|
|
138
|
+
wide: '0.01em',
|
|
139
|
+
wider: '0.02em',
|
|
140
|
+
widest: '0.05em'
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// Type exports
|
|
145
|
+
|
|
146
|
+
// CSS Custom Properties Generator
|
|
147
|
+
export var generateTypographyVariables = function generateTypographyVariables() {
|
|
148
|
+
var vars = {};
|
|
149
|
+
|
|
150
|
+
// Font families
|
|
151
|
+
Object.entries(typography.fonts).forEach(function (_ref) {
|
|
152
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
153
|
+
key = _ref2[0],
|
|
154
|
+
value = _ref2[1];
|
|
155
|
+
vars["--font-".concat(key)] = value;
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
// Font weights
|
|
159
|
+
Object.entries(typography.weights).forEach(function (_ref3) {
|
|
160
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
161
|
+
key = _ref4[0],
|
|
162
|
+
value = _ref4[1];
|
|
163
|
+
vars["--font-weight-".concat(key)] = String(value);
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
// Line heights
|
|
167
|
+
Object.entries(typography.lineHeights).forEach(function (_ref5) {
|
|
168
|
+
var _ref6 = _slicedToArray(_ref5, 2),
|
|
169
|
+
key = _ref6[0],
|
|
170
|
+
value = _ref6[1];
|
|
171
|
+
vars["--line-height-".concat(key)] = String(value);
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
// Letter spacing
|
|
175
|
+
Object.entries(typography.letterSpacing).forEach(function (_ref7) {
|
|
176
|
+
var _ref8 = _slicedToArray(_ref7, 2),
|
|
177
|
+
key = _ref8[0],
|
|
178
|
+
value = _ref8[1];
|
|
179
|
+
vars["--letter-spacing-".concat(key)] = value;
|
|
180
|
+
});
|
|
181
|
+
return vars;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
// Tailwind Config Export
|
|
185
|
+
export var tailwindTypography = {
|
|
186
|
+
fontFamily: {
|
|
187
|
+
sans: typography.fonts.primary.split(',').map(function (f) {
|
|
188
|
+
return f.trim().replace(/"/g, '');
|
|
189
|
+
}),
|
|
190
|
+
mono: typography.fonts.mono.split(',').map(function (f) {
|
|
191
|
+
return f.trim().replace(/"/g, '');
|
|
192
|
+
}),
|
|
193
|
+
display: typography.fonts.display.split(',').map(function (f) {
|
|
194
|
+
return f.trim().replace(/"/g, '');
|
|
195
|
+
})
|
|
196
|
+
},
|
|
197
|
+
fontSize: {
|
|
198
|
+
display: ['72px', {
|
|
199
|
+
lineHeight: '1.1',
|
|
200
|
+
letterSpacing: '-0.02em'
|
|
201
|
+
}],
|
|
202
|
+
h1: ['60px', {
|
|
203
|
+
lineHeight: '1.2',
|
|
204
|
+
letterSpacing: '-0.02em'
|
|
205
|
+
}],
|
|
206
|
+
h2: ['48px', {
|
|
207
|
+
lineHeight: '1.25',
|
|
208
|
+
letterSpacing: '-0.01em'
|
|
209
|
+
}],
|
|
210
|
+
h3: ['38px', {
|
|
211
|
+
lineHeight: '1.3',
|
|
212
|
+
letterSpacing: '-0.01em'
|
|
213
|
+
}],
|
|
214
|
+
h4: ['30px', {
|
|
215
|
+
lineHeight: '1.4'
|
|
216
|
+
}],
|
|
217
|
+
h5: ['24px', {
|
|
218
|
+
lineHeight: '1.5'
|
|
219
|
+
}],
|
|
220
|
+
h6: ['20px', {
|
|
221
|
+
lineHeight: '1.5'
|
|
222
|
+
}],
|
|
223
|
+
'body-lg': ['18px', {
|
|
224
|
+
lineHeight: '1.6'
|
|
225
|
+
}],
|
|
226
|
+
body: ['16px', {
|
|
227
|
+
lineHeight: '1.6'
|
|
228
|
+
}],
|
|
229
|
+
'body-sm': ['14px', {
|
|
230
|
+
lineHeight: '1.5'
|
|
231
|
+
}],
|
|
232
|
+
small: ['13px', {
|
|
233
|
+
lineHeight: '1.5'
|
|
234
|
+
}],
|
|
235
|
+
micro: ['10px', {
|
|
236
|
+
lineHeight: '1.4',
|
|
237
|
+
letterSpacing: '0.02em'
|
|
238
|
+
}],
|
|
239
|
+
code: ['14px', {
|
|
240
|
+
lineHeight: '1.6'
|
|
241
|
+
}],
|
|
242
|
+
'code-sm': ['12px', {
|
|
243
|
+
lineHeight: '1.5'
|
|
244
|
+
}]
|
|
245
|
+
},
|
|
246
|
+
fontWeight: {
|
|
247
|
+
regular: 400,
|
|
248
|
+
medium: 500,
|
|
249
|
+
semibold: 600,
|
|
250
|
+
bold: 700,
|
|
251
|
+
black: 900
|
|
252
|
+
},
|
|
253
|
+
lineHeight: {
|
|
254
|
+
tight: '1.1',
|
|
255
|
+
snug: '1.25',
|
|
256
|
+
normal: '1.5',
|
|
257
|
+
relaxed: '1.6',
|
|
258
|
+
loose: '1.75'
|
|
259
|
+
},
|
|
260
|
+
letterSpacing: {
|
|
261
|
+
tighter: '-0.02em',
|
|
262
|
+
tight: '-0.01em',
|
|
263
|
+
normal: '0',
|
|
264
|
+
wide: '0.01em',
|
|
265
|
+
wider: '0.02em',
|
|
266
|
+
widest: '0.05em'
|
|
267
|
+
}
|
|
268
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nobak/design-system",
|
|
3
|
+
"description": "World-class design system for Nobak - Like Braun, like IBM, but for blockchain technology",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib",
|
|
10
|
+
"styles",
|
|
11
|
+
"tailwind.config.js",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/nobak-net/nobak-design-system"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"author": "Julian Clatro <hola@julianclatro.com> (https://hacksur.com)",
|
|
23
|
+
"contributors": [
|
|
24
|
+
"Julian Clatro <hola@julianclatro.com> (https://hacksur.com)"
|
|
25
|
+
],
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"clean": "rm -rf lib dist storybook-static",
|
|
29
|
+
"generate:tokens": "node scripts/generate-theme-css.cjs",
|
|
30
|
+
"build:components": "babel src --out-dir lib --extensions '.ts,.tsx'",
|
|
31
|
+
"build:styles": "cross-env NODE_ENV=production postcss styles/main.css -o styles/index.css",
|
|
32
|
+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationMap",
|
|
33
|
+
"build": "npm run clean && npm run generate:tokens && npm run build:styles && npm run build:components",
|
|
34
|
+
"build:storybook": "cross-env NODE_ENV=production storybook build",
|
|
35
|
+
"build-storybook": "npm run build:storybook",
|
|
36
|
+
"production": "npm run generate:tokens && npm run build && npm run build:storybook",
|
|
37
|
+
"dev": "npm run generate:tokens && concurrently 'npm:watch-*'",
|
|
38
|
+
"storybook": "storybook dev -p 6006",
|
|
39
|
+
"watch-tailwind": "postcss styles/main.css -o styles/index.css --watch",
|
|
40
|
+
"watch-build": "babel src --watch --out-dir lib --extensions '.ts,.tsx'",
|
|
41
|
+
"watch-storybook": "storybook dev --ci -h 0.0.0.0 -p 6006",
|
|
42
|
+
"watch-server": "node server.js",
|
|
43
|
+
"lint": "npm run lint:js && npm run lint:md",
|
|
44
|
+
"lint:js": "xo",
|
|
45
|
+
"lint:md": "remark . -qfo",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"pretest": "npm run lint",
|
|
48
|
+
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
|
49
|
+
"deploy:storybook:staging": "./scripts/deploy-storybook.sh staging",
|
|
50
|
+
"deploy:storybook:production": "./scripts/deploy-storybook.sh production",
|
|
51
|
+
"deploy:storybook": "./scripts/deploy-storybook.sh production",
|
|
52
|
+
"publish:patch": "./scripts/publish-npm.sh patch",
|
|
53
|
+
"publish:minor": "./scripts/publish-npm.sh minor",
|
|
54
|
+
"publish:major": "./scripts/publish-npm.sh major",
|
|
55
|
+
"new-component": "node ./scripts/new-component.cjs",
|
|
56
|
+
"pull-request": "node ./scripts/pull-request.cjs",
|
|
57
|
+
"publish-local": "node ./scripts/publish-local.cjs",
|
|
58
|
+
"webpack": "webpack --mode production",
|
|
59
|
+
"tailwind:dev": "cross-env NODE_ENV=development postcss styles/main.css -o styles/index.css",
|
|
60
|
+
"audit:react-imports": "node scripts/audit-react-imports.cjs",
|
|
61
|
+
"audit:react-imports:verbose": "VERBOSE=true node scripts/audit-react-imports.cjs",
|
|
62
|
+
"audit:react-imports:json": "node scripts/audit-react-imports.cjs --json",
|
|
63
|
+
"fix:react-imports": "node scripts/audit-react-imports.cjs --fix",
|
|
64
|
+
"fix:duplicate-react-imports": "node scripts/fix-duplicate-react-imports.cjs",
|
|
65
|
+
"promote-story": "node scripts/promote-story.cjs",
|
|
66
|
+
"setup:console": "./scripts/setup-console-structure.sh",
|
|
67
|
+
"link:console": "./scripts/link-to-console.sh",
|
|
68
|
+
"verdaccio:setup": "./scripts/setup-verdaccio.sh",
|
|
69
|
+
"verdaccio:stop": "pkill -f verdaccio || true",
|
|
70
|
+
"verdaccio:logs": "tail -f /tmp/verdaccio.log"
|
|
71
|
+
},
|
|
72
|
+
"keywords": [
|
|
73
|
+
"nobak",
|
|
74
|
+
"design-system",
|
|
75
|
+
"react",
|
|
76
|
+
"components",
|
|
77
|
+
"ui",
|
|
78
|
+
"tailwindcss",
|
|
79
|
+
"typescript",
|
|
80
|
+
"blockchain",
|
|
81
|
+
"stellar",
|
|
82
|
+
"web3",
|
|
83
|
+
"braun",
|
|
84
|
+
"ibm",
|
|
85
|
+
"design"
|
|
86
|
+
],
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@emotion/is-prop-valid": "latest",
|
|
89
|
+
"@h6s/calendar": "latest",
|
|
90
|
+
"@headlessui/react": "^2.2.0",
|
|
91
|
+
"ahooks": "^3.8.1",
|
|
92
|
+
"clsx": "^1.2.1",
|
|
93
|
+
"date-fns": "latest",
|
|
94
|
+
"dayzed": "^3.2.3",
|
|
95
|
+
"framer-motion": "^6.5.1",
|
|
96
|
+
"lucide-react": "^0.552.0",
|
|
97
|
+
"luxon": "^3.4.4",
|
|
98
|
+
"qrcode-generator": "1.4.1",
|
|
99
|
+
"rci": "0.1.0",
|
|
100
|
+
"use-is-focused": "0.0.1"
|
|
101
|
+
},
|
|
102
|
+
"devDependencies": {
|
|
103
|
+
"@babel/cli": "^7.23.4",
|
|
104
|
+
"@babel/core": "latest",
|
|
105
|
+
"@babel/preset-env": "^7.23.8",
|
|
106
|
+
"@babel/preset-react": "latest",
|
|
107
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
108
|
+
"@babel/register": "^7.28.3",
|
|
109
|
+
"@chromatic-com/storybook": "^4.1.2",
|
|
110
|
+
"@commitlint/cli": "latest",
|
|
111
|
+
"@commitlint/config-conventional": "latest",
|
|
112
|
+
"@storybook/addon-docs": "^10.0.4",
|
|
113
|
+
"@storybook/addon-links": "^10.0.4",
|
|
114
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
115
|
+
"@storybook/react-webpack5": "^10.0.4",
|
|
116
|
+
"@tailwindcss/postcss": "^4.1.14",
|
|
117
|
+
"@types/luxon": "latest",
|
|
118
|
+
"@types/react": "^18.2.0",
|
|
119
|
+
"@types/react-dom": "^18.2.0",
|
|
120
|
+
"@typescript-eslint/eslint-plugin": "latest",
|
|
121
|
+
"@typescript-eslint/parser": "latest",
|
|
122
|
+
"autoprefixer": "^10.4.21",
|
|
123
|
+
"babel-loader": "latest",
|
|
124
|
+
"babel-plugin-module-resolver": "^5.0.0",
|
|
125
|
+
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
126
|
+
"concurrently": "^9.1.2",
|
|
127
|
+
"cross-env": "^7.0.3",
|
|
128
|
+
"crypto-browserify": "^3.12.0",
|
|
129
|
+
"dotenv": "^16.3.1",
|
|
130
|
+
"fixpack": "latest",
|
|
131
|
+
"json-server": "^0.17.4",
|
|
132
|
+
"lunarphase-js": "latest",
|
|
133
|
+
"pm2": "latest",
|
|
134
|
+
"postcss": "^8.5.3",
|
|
135
|
+
"postcss-cli": "^11.0.1",
|
|
136
|
+
"react": "18.2.0",
|
|
137
|
+
"react-dom": "18.2.0",
|
|
138
|
+
"react-use": "17.5.1",
|
|
139
|
+
"storybook": "^10.0.4",
|
|
140
|
+
"tailwindcss": "^4.1.7",
|
|
141
|
+
"ts-loader": "latest",
|
|
142
|
+
"typescript": "latest",
|
|
143
|
+
"webpack": "latest",
|
|
144
|
+
"webpack-cli": "latest"
|
|
145
|
+
},
|
|
146
|
+
"peerDependencies": {
|
|
147
|
+
"react": "latest",
|
|
148
|
+
"react-dom": "latest"
|
|
149
|
+
},
|
|
150
|
+
"engines": {
|
|
151
|
+
"node": ">= 10"
|
|
152
|
+
},
|
|
153
|
+
"bugs": {
|
|
154
|
+
"url": "https://github.com/nobak-net/nobak-design-system/issues",
|
|
155
|
+
"email": "hola@julianclatro.com"
|
|
156
|
+
},
|
|
157
|
+
"xo": {
|
|
158
|
+
"prettier": true,
|
|
159
|
+
"space": true,
|
|
160
|
+
"extends": [
|
|
161
|
+
"xo-lass",
|
|
162
|
+
"xo-react",
|
|
163
|
+
"xo-typescript"
|
|
164
|
+
],
|
|
165
|
+
"parserOptions": {
|
|
166
|
+
"ecmaVersion": 2021,
|
|
167
|
+
"sourceType": "module"
|
|
168
|
+
},
|
|
169
|
+
"webpack": true
|
|
170
|
+
},
|
|
171
|
+
"homepage": "https://github.com/nobak-net/nobak-design-system",
|
|
172
|
+
"volta": {
|
|
173
|
+
"node": "22.16.0"
|
|
174
|
+
},
|
|
175
|
+
"packageManager": "pnpm@8.9.2+sha1.5f2fa48d614263457cf5d7fb7be8b878da318d87"
|
|
176
|
+
}
|