@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,510 @@
|
|
|
1
|
+
var _colors, _colors2;
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
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); }
|
|
8
|
+
/**
|
|
9
|
+
* Advanced Typography Patterns for Fintech Applications
|
|
10
|
+
* Extends the base typography system with advanced patterns and utilities
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { globalTypography } from "./typography";
|
|
14
|
+
import { space } from "./space";
|
|
15
|
+
|
|
16
|
+
// Define a type for the theme to access colors safely
|
|
17
|
+
|
|
18
|
+
// ====================
|
|
19
|
+
// Type Definitions
|
|
20
|
+
// ====================
|
|
21
|
+
|
|
22
|
+
// Create a local BaseTypography object with proper typing
|
|
23
|
+
var BaseTypography = {
|
|
24
|
+
// Basic text styles
|
|
25
|
+
displayLarge: {
|
|
26
|
+
fontFamily: globalTypography.fontFamily.sans,
|
|
27
|
+
fontSize: globalTypography.fontSize[1200],
|
|
28
|
+
fontWeight: globalTypography.fontWeight.regular,
|
|
29
|
+
lineHeight: globalTypography.lineHeight.tight,
|
|
30
|
+
letterSpacing: globalTypography.letterSpacing.tight
|
|
31
|
+
},
|
|
32
|
+
displayMedium: {
|
|
33
|
+
fontFamily: globalTypography.fontFamily.sans,
|
|
34
|
+
fontSize: globalTypography.fontSize[1100],
|
|
35
|
+
fontWeight: globalTypography.fontWeight.regular,
|
|
36
|
+
lineHeight: globalTypography.lineHeight.tight
|
|
37
|
+
},
|
|
38
|
+
displaySmall: {
|
|
39
|
+
fontFamily: globalTypography.fontFamily.sans,
|
|
40
|
+
fontSize: globalTypography.fontSize[900],
|
|
41
|
+
fontWeight: globalTypography.fontWeight.regular,
|
|
42
|
+
lineHeight: globalTypography.lineHeight.tight
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// ====================
|
|
47
|
+
// Type Definitions
|
|
48
|
+
// ====================
|
|
49
|
+
|
|
50
|
+
// ====================
|
|
51
|
+
// Contextual Typography
|
|
52
|
+
// ====================
|
|
53
|
+
|
|
54
|
+
// ===========================
|
|
55
|
+
// CONTEXTUAL TYPOGRAPHY TOKENS
|
|
56
|
+
// Typography that adapts based on context and state
|
|
57
|
+
// ===========================
|
|
58
|
+
|
|
59
|
+
export var contextualTypography = {
|
|
60
|
+
// Typography that changes based on data state
|
|
61
|
+
dataState: {
|
|
62
|
+
// Loading state typography (subtle, muted)
|
|
63
|
+
loading: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
64
|
+
fontSize: globalTypography.fontSize[100],
|
|
65
|
+
letterSpacing: globalTypography.letterSpacing.wide
|
|
66
|
+
}),
|
|
67
|
+
// Error state typography (attention-grabbing)
|
|
68
|
+
error: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
69
|
+
fontWeight: globalTypography.fontWeight.medium,
|
|
70
|
+
letterSpacing: globalTypography.letterSpacing.normal
|
|
71
|
+
}),
|
|
72
|
+
// Success state typography (confident)
|
|
73
|
+
success: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
74
|
+
fontWeight: globalTypography.fontWeight.semibold,
|
|
75
|
+
letterSpacing: globalTypography.letterSpacing.normal
|
|
76
|
+
}),
|
|
77
|
+
// Empty state typography (encouraging)
|
|
78
|
+
empty: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
79
|
+
fontSize: globalTypography.fontSize[300],
|
|
80
|
+
lineHeight: globalTypography.lineHeight.relaxed
|
|
81
|
+
})
|
|
82
|
+
},
|
|
83
|
+
// Typography for different user experience levels
|
|
84
|
+
userLevel: {
|
|
85
|
+
// Beginner users - clearer, larger text
|
|
86
|
+
beginner: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
87
|
+
fontSize: globalTypography.fontSize[300],
|
|
88
|
+
lineHeight: globalTypography.lineHeight.relaxed
|
|
89
|
+
}),
|
|
90
|
+
// Expert users - more compact, information-dense
|
|
91
|
+
expert: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
92
|
+
fontSize: globalTypography.fontSize[200],
|
|
93
|
+
lineHeight: globalTypography.lineHeight.normal
|
|
94
|
+
}),
|
|
95
|
+
// Professional traders - ultra-dense, optimized for speed
|
|
96
|
+
trader: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
97
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
98
|
+
fontSize: globalTypography.fontSize[100],
|
|
99
|
+
lineHeight: globalTypography.lineHeight.tight
|
|
100
|
+
})
|
|
101
|
+
},
|
|
102
|
+
// Typography for different urgency levels
|
|
103
|
+
urgency: {
|
|
104
|
+
// Low urgency - relaxed, easy reading
|
|
105
|
+
low: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
106
|
+
lineHeight: globalTypography.lineHeight.relaxed
|
|
107
|
+
}),
|
|
108
|
+
// Medium urgency - standard attention
|
|
109
|
+
medium: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
110
|
+
fontWeight: globalTypography.fontWeight.medium
|
|
111
|
+
}),
|
|
112
|
+
// High urgency - demands attention
|
|
113
|
+
high: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
114
|
+
fontWeight: globalTypography.fontWeight.semibold,
|
|
115
|
+
letterSpacing: globalTypography.letterSpacing.wide,
|
|
116
|
+
textTransform: 'uppercase'
|
|
117
|
+
}),
|
|
118
|
+
// Critical urgency - maximum attention
|
|
119
|
+
critical: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
120
|
+
fontWeight: globalTypography.fontWeight.bold,
|
|
121
|
+
fontSize: globalTypography.fontSize[300],
|
|
122
|
+
letterSpacing: globalTypography.letterSpacing.wide * 1.5,
|
|
123
|
+
textTransform: 'uppercase'
|
|
124
|
+
})
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
// ===========================
|
|
129
|
+
// PROGRESSIVE TYPOGRAPHY SCALES
|
|
130
|
+
// Typography that scales based on importance or hierarchy
|
|
131
|
+
// ===========================
|
|
132
|
+
|
|
133
|
+
export var progressiveTypography = {
|
|
134
|
+
// Financial hierarchy - typography that emphasizes monetary importance
|
|
135
|
+
financialHierarchy: {
|
|
136
|
+
// Primary account balance
|
|
137
|
+
primary: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
138
|
+
fontSize: globalTypography.fontSize[1000],
|
|
139
|
+
fontWeight: globalTypography.fontWeight.bold
|
|
140
|
+
}),
|
|
141
|
+
// Secondary balances (savings, investments)
|
|
142
|
+
secondary: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
143
|
+
fontSize: globalTypography.fontSize[600]
|
|
144
|
+
}),
|
|
145
|
+
// Tertiary amounts (pending, fees)
|
|
146
|
+
tertiary: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
147
|
+
fontSize: globalTypography.fontSize[400]
|
|
148
|
+
}),
|
|
149
|
+
// Micro amounts (interest, cents)
|
|
150
|
+
micro: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
151
|
+
fontSize: globalTypography.fontSize[200]
|
|
152
|
+
})
|
|
153
|
+
},
|
|
154
|
+
// Risk hierarchy - typography that emphasizes risk levels
|
|
155
|
+
riskHierarchy: {
|
|
156
|
+
minimal: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
157
|
+
fontWeight: globalTypography.fontWeight.regular
|
|
158
|
+
}),
|
|
159
|
+
low: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
160
|
+
fontWeight: globalTypography.fontWeight.medium
|
|
161
|
+
}),
|
|
162
|
+
moderate: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
163
|
+
fontWeight: globalTypography.fontWeight.semibold,
|
|
164
|
+
letterSpacing: globalTypography.letterSpacing.wide
|
|
165
|
+
}),
|
|
166
|
+
high: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
167
|
+
fontWeight: globalTypography.fontWeight.bold,
|
|
168
|
+
fontSize: globalTypography.fontSize[300],
|
|
169
|
+
letterSpacing: globalTypography.letterSpacing.wide
|
|
170
|
+
}),
|
|
171
|
+
critical: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
172
|
+
fontWeight: globalTypography.fontWeight.extrabold,
|
|
173
|
+
fontSize: globalTypography.fontSize[400],
|
|
174
|
+
letterSpacing: globalTypography.letterSpacing.wide * 1.5,
|
|
175
|
+
// Wider spacing for critical items
|
|
176
|
+
textTransform: 'uppercase'
|
|
177
|
+
})
|
|
178
|
+
},
|
|
179
|
+
// Transaction hierarchy - typography for different transaction types
|
|
180
|
+
transactionHierarchy: {
|
|
181
|
+
// Major transactions (large transfers, investments)
|
|
182
|
+
major: _objectSpread(_objectSpread({}, BaseTypography.displayLarge), {}, {
|
|
183
|
+
fontWeight: globalTypography.fontWeight.bold
|
|
184
|
+
}),
|
|
185
|
+
// Standard transactions (regular payments)
|
|
186
|
+
standard: _objectSpread(_objectSpread({}, BaseTypography.displayMedium), {}, {
|
|
187
|
+
fontWeight: globalTypography.fontWeight.semibold
|
|
188
|
+
}),
|
|
189
|
+
// Minor transactions (fees, adjustments)
|
|
190
|
+
minor: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
191
|
+
fontWeight: globalTypography.fontWeight.medium
|
|
192
|
+
}),
|
|
193
|
+
// Micro transactions (rewards, interest)
|
|
194
|
+
micro: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
195
|
+
fontSize: globalTypography.fontSize[100],
|
|
196
|
+
fontWeight: globalTypography.fontWeight.regular
|
|
197
|
+
})
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// ===========================
|
|
202
|
+
// SPECIALIZED TYPOGRAPHY UTILITIES
|
|
203
|
+
// Advanced utilities for complex typography scenarios
|
|
204
|
+
// ===========================
|
|
205
|
+
|
|
206
|
+
// ===========================
|
|
207
|
+
// TYPOGRAPHY UTILITIES
|
|
208
|
+
// Advanced utilities for complex typography scenarios
|
|
209
|
+
// ===========================
|
|
210
|
+
|
|
211
|
+
export var advancedTypographyUtils = {
|
|
212
|
+
/**
|
|
213
|
+
* Apply contextual typography based on user level
|
|
214
|
+
*/
|
|
215
|
+
applyUserLevelAdjustments: function applyUserLevelAdjustments(baseStyle, userLevel) {
|
|
216
|
+
var userLevelStyles = {
|
|
217
|
+
beginner: {
|
|
218
|
+
fontSizeMultiplier: 1.1,
|
|
219
|
+
lineHeightMultiplier: 1.2,
|
|
220
|
+
letterSpacingAdjustment: 0.01
|
|
221
|
+
},
|
|
222
|
+
intermediate: {
|
|
223
|
+
fontSizeMultiplier: 1.0,
|
|
224
|
+
lineHeightMultiplier: 1.1,
|
|
225
|
+
letterSpacingAdjustment: 0
|
|
226
|
+
},
|
|
227
|
+
expert: {
|
|
228
|
+
fontSizeMultiplier: 0.95,
|
|
229
|
+
lineHeightMultiplier: 1.0,
|
|
230
|
+
letterSpacingAdjustment: -0.005
|
|
231
|
+
},
|
|
232
|
+
trader: {
|
|
233
|
+
fontSizeMultiplier: 0.9,
|
|
234
|
+
lineHeightMultiplier: 0.9,
|
|
235
|
+
letterSpacingAdjustment: -0.01
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
var adjustments = userLevelStyles[userLevel];
|
|
239
|
+
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
240
|
+
fontSize: (baseStyle.fontSize || globalTypography.fontSize[200]) * adjustments.fontSizeMultiplier,
|
|
241
|
+
lineHeight: (baseStyle.lineHeight || globalTypography.lineHeight.normal) * adjustments.lineHeightMultiplier,
|
|
242
|
+
letterSpacing: (baseStyle.letterSpacing || 0) + adjustments.letterSpacingAdjustment
|
|
243
|
+
});
|
|
244
|
+
},
|
|
245
|
+
/**
|
|
246
|
+
* Get typography based on financial amount significance
|
|
247
|
+
*/
|
|
248
|
+
getFinancialHierarchy: function getFinancialHierarchy(amount, userAccountBalance) {
|
|
249
|
+
var percentage = Math.abs(amount) / userAccountBalance;
|
|
250
|
+
if (percentage >= 0.5) {
|
|
251
|
+
return progressiveTypography.financialHierarchy.primary;
|
|
252
|
+
} else if (percentage >= 0.1) {
|
|
253
|
+
return progressiveTypography.financialHierarchy.secondary;
|
|
254
|
+
} else if (percentage >= 0.01) {
|
|
255
|
+
return progressiveTypography.financialHierarchy.tertiary;
|
|
256
|
+
}
|
|
257
|
+
return progressiveTypography.financialHierarchy.micro;
|
|
258
|
+
},
|
|
259
|
+
/**
|
|
260
|
+
* Get typography based on urgency level
|
|
261
|
+
*/
|
|
262
|
+
getUrgencyTypography: function getUrgencyTypography(baseStyle, urgency) {
|
|
263
|
+
var urgencyAdjustments = contextualTypography.urgency[urgency];
|
|
264
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyle), urgencyAdjustments), {}, {
|
|
265
|
+
fontSize: baseStyle.fontSize,
|
|
266
|
+
fontFamily: baseStyle.fontFamily
|
|
267
|
+
});
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* Create animated typography that scales based on state
|
|
271
|
+
*/
|
|
272
|
+
createAnimatedTextStyle: function createAnimatedTextStyle(baseStyle, animationState) {
|
|
273
|
+
var scaleMap = {
|
|
274
|
+
entering: 0.8,
|
|
275
|
+
active: 1.0,
|
|
276
|
+
exiting: 0.9
|
|
277
|
+
};
|
|
278
|
+
var opacityMap = {
|
|
279
|
+
entering: 0.6,
|
|
280
|
+
active: 1.0,
|
|
281
|
+
exiting: 0.8
|
|
282
|
+
};
|
|
283
|
+
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
284
|
+
transform: [{
|
|
285
|
+
scale: scaleMap[animationState]
|
|
286
|
+
}],
|
|
287
|
+
opacity: opacityMap[animationState]
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
* Create typography with enhanced contrast for accessibility
|
|
292
|
+
*/
|
|
293
|
+
createHighContrastStyle: function createHighContrastStyle(baseStyle, contrastLevel) {
|
|
294
|
+
var adjustments = {
|
|
295
|
+
standard: {
|
|
296
|
+
fontWeight: 0,
|
|
297
|
+
letterSpacing: 0
|
|
298
|
+
},
|
|
299
|
+
enhanced: {
|
|
300
|
+
fontWeight: 100,
|
|
301
|
+
letterSpacing: 0.01
|
|
302
|
+
},
|
|
303
|
+
maximum: {
|
|
304
|
+
fontWeight: 200,
|
|
305
|
+
letterSpacing: 0.02
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
var adjustment = adjustments[contrastLevel];
|
|
309
|
+
var baseWeight = typeof baseStyle.fontWeight === 'number' ? baseStyle.fontWeight : globalTypography.fontWeight.regular;
|
|
310
|
+
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
311
|
+
fontWeight: Math.min(baseWeight + adjustment.fontWeight, globalTypography.fontWeight.black),
|
|
312
|
+
letterSpacing: (baseStyle.letterSpacing || 0) + adjustment.letterSpacing
|
|
313
|
+
});
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* Create typography for dense data display
|
|
317
|
+
*/
|
|
318
|
+
createDenseDataStyle: function createDenseDataStyle(baseStyle, density) {
|
|
319
|
+
var densityMap = {
|
|
320
|
+
comfortable: {
|
|
321
|
+
fontSize: 1.0,
|
|
322
|
+
lineHeight: 1.5,
|
|
323
|
+
letterSpacing: 0
|
|
324
|
+
},
|
|
325
|
+
compact: {
|
|
326
|
+
fontSize: 0.95,
|
|
327
|
+
lineHeight: 1.3,
|
|
328
|
+
letterSpacing: -0.005
|
|
329
|
+
},
|
|
330
|
+
dense: {
|
|
331
|
+
fontSize: 0.9,
|
|
332
|
+
lineHeight: 1.2,
|
|
333
|
+
letterSpacing: -0.01
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
var adjustments = densityMap[density];
|
|
337
|
+
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
338
|
+
fontSize: (baseStyle.fontSize || globalTypography.fontSize[200]) * adjustments.fontSize,
|
|
339
|
+
lineHeight: adjustments.lineHeight,
|
|
340
|
+
letterSpacing: (baseStyle.letterSpacing || 0) + adjustments.letterSpacing
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
// ===========================
|
|
346
|
+
// TYPOGRAPHY PRESETS
|
|
347
|
+
// Pre-configured typography combinations for specific use cases
|
|
348
|
+
// ===========================
|
|
349
|
+
|
|
350
|
+
export var typographyPresets = {
|
|
351
|
+
// Dashboard widget typography
|
|
352
|
+
dashboardWidget: {
|
|
353
|
+
title: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
354
|
+
fontSize: globalTypography.fontSize[400],
|
|
355
|
+
fontWeight: globalTypography.fontWeight.semibold
|
|
356
|
+
}),
|
|
357
|
+
value: _objectSpread(_objectSpread({}, BaseTypography.displayMedium), {}, {
|
|
358
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
359
|
+
fontSize: globalTypography.fontSize[600]
|
|
360
|
+
}),
|
|
361
|
+
change: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
362
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
363
|
+
fontSize: globalTypography.fontSize[200]
|
|
364
|
+
}),
|
|
365
|
+
subtitle: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
366
|
+
fontSize: globalTypography.fontSize[100],
|
|
367
|
+
color: ((_colors = globalTypography.colors) === null || _colors === void 0 || (_colors = _colors.text) === null || _colors === void 0 ? void 0 : _colors.secondary) || '#64748b'
|
|
368
|
+
})
|
|
369
|
+
},
|
|
370
|
+
// Transaction list item typography
|
|
371
|
+
transactionListItem: {
|
|
372
|
+
description: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
373
|
+
fontSize: globalTypography.fontSize[200],
|
|
374
|
+
fontWeight: globalTypography.fontWeight.medium
|
|
375
|
+
}),
|
|
376
|
+
amount: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
377
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
378
|
+
fontSize: globalTypography.fontSize[300],
|
|
379
|
+
fontWeight: globalTypography.fontWeight.semibold
|
|
380
|
+
}),
|
|
381
|
+
date: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
382
|
+
fontSize: globalTypography.fontSize[100],
|
|
383
|
+
color: ((_colors2 = globalTypography.colors) === null || _colors2 === void 0 || (_colors2 = _colors2.text) === null || _colors2 === void 0 ? void 0 : _colors2.secondary) || '#64748b'
|
|
384
|
+
}),
|
|
385
|
+
status: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
386
|
+
fontSize: globalTypography.fontSize[75],
|
|
387
|
+
letterSpacing: globalTypography.letterSpacing.wide * 1.5,
|
|
388
|
+
textTransform: 'uppercase',
|
|
389
|
+
fontWeight: globalTypography.fontWeight.medium
|
|
390
|
+
})
|
|
391
|
+
},
|
|
392
|
+
// Account card typography
|
|
393
|
+
accountCard: {
|
|
394
|
+
accountName: _objectSpread(_objectSpread({}, BaseTypography.displayMedium), {}, {
|
|
395
|
+
fontSize: globalTypography.fontSize[300],
|
|
396
|
+
fontWeight: globalTypography.fontWeight.semibold
|
|
397
|
+
}),
|
|
398
|
+
accountNumber: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
399
|
+
fontFamily: globalTypography.fontFamily.mono,
|
|
400
|
+
fontSize: globalTypography.fontSize[100],
|
|
401
|
+
opacity: 0.8
|
|
402
|
+
}),
|
|
403
|
+
balance: _objectSpread(_objectSpread({}, BaseTypography.displayLarge), {}, {
|
|
404
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
405
|
+
fontSize: globalTypography.fontSize[700],
|
|
406
|
+
fontWeight: globalTypography.fontWeight.bold
|
|
407
|
+
}),
|
|
408
|
+
balanceChange: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
409
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
410
|
+
fontSize: globalTypography.fontSize[200]
|
|
411
|
+
})
|
|
412
|
+
},
|
|
413
|
+
// Market data typography
|
|
414
|
+
marketData: {
|
|
415
|
+
symbol: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
416
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
417
|
+
fontSize: globalTypography.fontSize[200],
|
|
418
|
+
fontWeight: globalTypography.fontWeight.bold
|
|
419
|
+
}),
|
|
420
|
+
price: _objectSpread(_objectSpread({}, BaseTypography.displayMedium), {}, {
|
|
421
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
422
|
+
fontSize: globalTypography.fontSize[500],
|
|
423
|
+
fontWeight: globalTypography.fontWeight.semibold
|
|
424
|
+
}),
|
|
425
|
+
change: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
426
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
427
|
+
fontSize: globalTypography.fontSize[300]
|
|
428
|
+
}),
|
|
429
|
+
volume: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
430
|
+
fontFamily: globalTypography.fontFamily.tabular,
|
|
431
|
+
fontSize: globalTypography.fontSize[100],
|
|
432
|
+
opacity: 0.8
|
|
433
|
+
})
|
|
434
|
+
},
|
|
435
|
+
// Legal document typography
|
|
436
|
+
legalDocument: {
|
|
437
|
+
title: _objectSpread(_objectSpread({}, BaseTypography.displayLarge), {}, {
|
|
438
|
+
fontSize: globalTypography.fontSize[700],
|
|
439
|
+
lineHeight: globalTypography.lineHeight.tight,
|
|
440
|
+
fontWeight: globalTypography.fontWeight.bold,
|
|
441
|
+
marginBottom: space[400]
|
|
442
|
+
}),
|
|
443
|
+
section: _objectSpread(_objectSpread({}, BaseTypography.displayMedium), {}, {
|
|
444
|
+
fontSize: globalTypography.fontSize[400],
|
|
445
|
+
lineHeight: globalTypography.lineHeight.tight,
|
|
446
|
+
fontWeight: globalTypography.fontWeight.semibold,
|
|
447
|
+
marginTop: space[500],
|
|
448
|
+
marginBottom: space[300]
|
|
449
|
+
}),
|
|
450
|
+
body: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
451
|
+
lineHeight: globalTypography.lineHeight.relaxed,
|
|
452
|
+
marginBottom: space[300]
|
|
453
|
+
}),
|
|
454
|
+
disclaimer: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
455
|
+
fontSize: globalTypography.fontSize[100],
|
|
456
|
+
lineHeight: globalTypography.lineHeight.normal,
|
|
457
|
+
fontStyle: 'italic',
|
|
458
|
+
opacity: 0.8
|
|
459
|
+
})
|
|
460
|
+
},
|
|
461
|
+
// Form typography
|
|
462
|
+
form: {
|
|
463
|
+
title: _objectSpread(_objectSpread({}, BaseTypography.displayLarge), {}, {
|
|
464
|
+
fontSize: globalTypography.fontSize[600],
|
|
465
|
+
fontWeight: globalTypography.fontWeight.bold,
|
|
466
|
+
marginBottom: 24 // Using a fixed value since space is not available
|
|
467
|
+
}),
|
|
468
|
+
fieldLabel: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
469
|
+
fontSize: globalTypography.fontSize[100],
|
|
470
|
+
fontWeight: globalTypography.fontWeight.semibold,
|
|
471
|
+
marginBottom: 4,
|
|
472
|
+
display: 'block'
|
|
473
|
+
}),
|
|
474
|
+
fieldInput: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
475
|
+
fontSize: globalTypography.fontSize[200],
|
|
476
|
+
padding: 12,
|
|
477
|
+
borderWidth: 1,
|
|
478
|
+
borderRadius: 6,
|
|
479
|
+
borderColor: '#e2e8f0'
|
|
480
|
+
}),
|
|
481
|
+
helpText: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
482
|
+
fontSize: globalTypography.fontSize[100],
|
|
483
|
+
lineHeight: globalTypography.lineHeight.normal,
|
|
484
|
+
color: '#64748b',
|
|
485
|
+
marginTop: 4
|
|
486
|
+
}),
|
|
487
|
+
errorMessage: _objectSpread(_objectSpread({}, BaseTypography.displaySmall), {}, {
|
|
488
|
+
fontSize: globalTypography.fontSize[100],
|
|
489
|
+
fontWeight: globalTypography.fontWeight.medium,
|
|
490
|
+
color: '#ef4444',
|
|
491
|
+
marginTop: 4
|
|
492
|
+
})
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
// ===========================
|
|
497
|
+
// TYPE EXPORTS
|
|
498
|
+
// ===========================
|
|
499
|
+
|
|
500
|
+
// ===========================
|
|
501
|
+
// MAIN EXPORT
|
|
502
|
+
// ===========================
|
|
503
|
+
|
|
504
|
+
var advancedTypography = {
|
|
505
|
+
contextual: contextualTypography,
|
|
506
|
+
progressive: progressiveTypography,
|
|
507
|
+
presets: typographyPresets,
|
|
508
|
+
utils: advancedTypographyUtils
|
|
509
|
+
};
|
|
510
|
+
export default advancedTypography;
|