@openfin/ui-library 0.31.3-alpha.1759174206 → 0.31.3-alpha.20251106164713
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/README.md +2 -2
- package/package.json +12 -46
- package/dist/assets/fonts/Inter-Italic.woff2 +0 -0
- package/dist/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/dist/assets/fonts/index.d.ts +0 -2
- package/dist/assets/index.d.ts +0 -1
- package/dist/components/controls/Button/button.d.ts +0 -35
- package/dist/components/controls/Button/button.variants.d.ts +0 -64
- package/dist/components/controls/Button/index.d.ts +0 -2
- package/dist/components/controls/ClickableNavigation/clickableNavigation.d.ts +0 -11
- package/dist/components/controls/ClickableNavigation/index.d.ts +0 -1
- package/dist/components/controls/CollapsibleCard/cardContainer.d.ts +0 -6
- package/dist/components/controls/CollapsibleCard/collapsibleCard.d.ts +0 -19
- package/dist/components/controls/CollapsibleCard/index.d.ts +0 -1
- package/dist/components/controls/ExpandableButton/expandDirection.d.ts +0 -4
- package/dist/components/controls/ExpandableButton/expandableButton.d.ts +0 -16
- package/dist/components/controls/ExpandableButton/expandablePanel.d.ts +0 -14
- package/dist/components/controls/ExpandableButton/expandablePanel.setup.d.ts +0 -2
- package/dist/components/controls/ExpandableButton/index.d.ts +0 -2
- package/dist/components/controls/Menus/ContentMenu/ContentMenu.d.ts +0 -52
- package/dist/components/controls/Menus/ContentMenu/ContentMenuColumn/ContentMenuColumn.d.ts +0 -17
- package/dist/components/controls/Menus/ContentMenu/ContentMenuContext.d.ts +0 -5
- package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/ContentMenuItem.d.ts +0 -56
- package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/IconWithFallback.d.ts +0 -7
- package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/useImageLoader.d.ts +0 -8
- package/dist/components/controls/Menus/ContentMenu/Tooltip/Tooltip.d.ts +0 -7
- package/dist/components/controls/Menus/ContentMenu/index.d.ts +0 -1
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenu.d.ts +0 -96
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/ColorLinkingContextMenuWidget.d.ts +0 -10
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/CustomContextMenuItem.d.ts +0 -11
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/NormalCustomContextMenuItem.d.ts +0 -6
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/RootMenuHeader.d.ts +0 -5
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/SeparatorCustomContextMenuItem.d.ts +0 -2
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/SubmenuHeaderCustomContextMenuItem.d.ts +0 -8
- package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/WidgetCustomContextMenuItem.d.ts +0 -5
- package/dist/components/controls/Menus/CustomContextMenu/index.d.ts +0 -1
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuKeyboardNavigation.d.ts +0 -17
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuKeyboardNavigation.test.d.ts +0 -1
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuNavigation.d.ts +0 -25
- package/dist/components/controls/Menus/CustomContextMenu/useContextMenuNavigation.test.d.ts +0 -1
- package/dist/components/controls/Menus/CustomContextMenu/useResizeContextMenu.d.ts +0 -10
- package/dist/components/controls/Menus/CustomContextMenu/useResizeContextMenu.test.d.ts +0 -1
- package/dist/components/controls/Menus/CustomContextMenu/utils.d.ts +0 -3
- package/dist/components/controls/Menus/common.d.ts +0 -80
- package/dist/components/controls/Toggle/index.d.ts +0 -1
- package/dist/components/controls/Toggle/toggle.d.ts +0 -10
- package/dist/components/elements/Badge/badge.d.ts +0 -18
- package/dist/components/elements/Badge/index.d.ts +0 -1
- package/dist/components/elements/Calendar/calendar.d.ts +0 -8
- package/dist/components/elements/Calendar/index.d.ts +0 -1
- package/dist/components/elements/DropdownMenu/dropdownButton.d.ts +0 -15
- package/dist/components/elements/DropdownMenu/dropdownMenu.d.ts +0 -16
- package/dist/components/elements/DropdownMenu/index.d.ts +0 -3
- package/dist/components/elements/DropdownMenu/menu.d.ts +0 -67
- package/dist/components/elements/DropdownMenu/optionTitle.d.ts +0 -15
- package/dist/components/elements/Icon/icon.d.ts +0 -19
- package/dist/components/elements/Icon/icon.variants.d.ts +0 -28
- package/dist/components/elements/Icon/index.d.ts +0 -1
- package/dist/components/elements/Icon/openfin/BellFilledIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/BellIcon.d.ts +0 -6
- package/dist/components/elements/Icon/openfin/BlockedIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/BookmarkFilled.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/BookmarkOutlined.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/BrokenLinkIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/ChevronDownIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/ChevronLeftIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/ChevronRightIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/ChevronUpIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/CollectionIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/ContentAppIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/EnterpriseGlobeIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/ExclamationCircledFilledIcon.d.ts +0 -4
- package/dist/components/elements/Icon/openfin/FallbackGlobeIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/FilledCircleIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/FilterIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/FloppyDiskIcon.d.ts +0 -5
- package/dist/components/elements/Icon/openfin/FragmentsIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/LightBulbFilledIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/LightBulbOutlinedIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/LockedClosedFilledIcon.d.ts +0 -5
- package/dist/components/elements/Icon/openfin/MinimizeIcon.d.ts +0 -5
- package/dist/components/elements/Icon/openfin/OpenFinIcon.d.ts +0 -5
- package/dist/components/elements/Icon/openfin/PageIcon.d.ts +0 -5
- package/dist/components/elements/Icon/openfin/RedDotIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/StackIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/StorefrontIcon.d.ts +0 -2
- package/dist/components/elements/Icon/openfin/SupertabIcon.d.ts +0 -5
- package/dist/components/elements/Icon/openfin/WorkspaceIcon.d.ts +0 -5
- package/dist/components/elements/Icon/openfin/index.d.ts +0 -30
- package/dist/components/elements/IconWithBadge/iconWithBadge.d.ts +0 -5
- package/dist/components/elements/IconWithBadge/index.d.ts +0 -1
- package/dist/components/elements/Label/label.d.ts +0 -11
- package/dist/components/elements/Loader/index.d.ts +0 -2
- package/dist/components/elements/Loader/loader.d.ts +0 -4
- package/dist/components/elements/Loader/openfinLoader.d.ts +0 -4
- package/dist/components/helper/ValidationError.d.ts +0 -6
- package/dist/components/input/BaseInput/baseInput.d.ts +0 -29
- package/dist/components/input/BaseInput/index.d.ts +0 -1
- package/dist/components/input/Checkbox/checkbox.d.ts +0 -12
- package/dist/components/input/Checkbox/checkbox.variants.d.ts +0 -21
- package/dist/components/input/Checkbox/index.d.ts +0 -1
- package/dist/components/input/CheckboxGroup/checkboxGroup.d.ts +0 -15
- package/dist/components/input/CheckboxGroup/index.d.ts +0 -1
- package/dist/components/input/DateInput/dateInput.d.ts +0 -14
- package/dist/components/input/DateInput/index.d.ts +0 -1
- package/dist/components/input/NumberInput/index.d.ts +0 -1
- package/dist/components/input/NumberInput/numberInput.d.ts +0 -27
- package/dist/components/input/RadioGroup/index.d.ts +0 -1
- package/dist/components/input/RadioGroup/radioGroup.d.ts +0 -15
- package/dist/components/input/RadioInput/index.d.ts +0 -1
- package/dist/components/input/RadioInput/radioInput.d.ts +0 -14
- package/dist/components/input/RawInput/index.d.ts +0 -1
- package/dist/components/input/RawInput/rawInput.d.ts +0 -4
- package/dist/components/input/TextArea/index.d.ts +0 -1
- package/dist/components/input/TextArea/textArea.d.ts +0 -12
- package/dist/components/input/TextInput/index.d.ts +0 -1
- package/dist/components/input/TextInput/textInput.d.ts +0 -14
- package/dist/components/layout/Box/box.d.ts +0 -41
- package/dist/components/layout/Box/index.d.ts +0 -1
- package/dist/components/layout/Box/types.d.ts +0 -7
- package/dist/components/layout/DefinitionList/definitionList.d.ts +0 -10
- package/dist/components/layout/DefinitionList/index.d.ts +0 -1
- package/dist/components/layout/HamburgerNavigation/hamburgerNavigation.d.ts +0 -13
- package/dist/components/layout/HamburgerNavigation/index.d.ts +0 -2
- package/dist/components/layout/HamburgerNavigation/sidebarMenu.d.ts +0 -12
- package/dist/components/layout/TabList/index.d.ts +0 -1
- package/dist/components/layout/TabList/tab.d.ts +0 -8
- package/dist/components/layout/TabList/tabList.d.ts +0 -13
- package/dist/components/system/GlobalStyles/globalStyles.d.ts +0 -5
- package/dist/components/system/GlobalStyles/globalStyles.spec.d.ts +0 -1
- package/dist/components/system/GlobalStyles/index.d.ts +0 -1
- package/dist/components/system/HOC/index.d.ts +0 -4
- package/dist/components/system/ThemeProvider/index.d.ts +0 -2
- package/dist/components/system/ThemeProvider/lib/colors.d.ts +0 -4
- package/dist/components/system/ThemeProvider/lib/constants.d.ts +0 -214
- package/dist/components/system/ThemeProvider/lib/createFontFaceCss.d.ts +0 -11
- package/dist/components/system/ThemeProvider/lib/createTheme.d.ts +0 -9
- package/dist/components/system/ThemeProvider/lib/helpers.d.ts +0 -35
- package/dist/components/system/ThemeProvider/lib/iconSet.d.ts +0 -355
- package/dist/components/system/ThemeProvider/lib/index.d.ts +0 -10
- package/dist/components/system/ThemeProvider/lib/interface.d.ts +0 -23
- package/dist/components/system/ThemeProvider/lib/mixins.d.ts +0 -16
- package/dist/components/system/ThemeProvider/lib/palette.d.ts +0 -42
- package/dist/components/system/ThemeProvider/lib/types.d.ts +0 -42
- package/dist/components/system/ThemeProvider/theme/index.d.ts +0 -1
- package/dist/components/system/ThemeProvider/theme/openfin.d.ts +0 -9
- package/dist/components/system/ThemeProvider/themeProvider.d.ts +0 -20
- package/dist/components/system/ThemeProvider/themeProvider.spec.d.ts +0 -1
- package/dist/components/system/index.d.ts +0 -3
- package/dist/components/templates/CascadingDropdownMenu/cascadingDropdownMenu.d.ts +0 -1
- package/dist/components/templates/ContactCard/ContactStatusIcon.d.ts +0 -7
- package/dist/components/templates/ContactCard/PresenceIcons.d.ts +0 -4
- package/dist/components/templates/ContactCard/contactCard.d.ts +0 -30
- package/dist/components/templates/ContactCard/index.d.ts +0 -1
- package/dist/components/templates/utils/name.d.ts +0 -1
- package/dist/components/typography/Heading/heading.d.ts +0 -1668
- package/dist/components/typography/Heading/index.d.ts +0 -1
- package/dist/components/typography/Text/index.d.ts +0 -1
- package/dist/components/typography/Text/text.d.ts +0 -21
- package/dist/hooks/useColorScheme.d.ts +0 -19
- package/dist/hooks/useDropdownKeyboardNavigation.d.ts +0 -16
- package/dist/hooks/useMediaQuery.d.ts +0 -12
- package/dist/hooks/usePrevious.d.ts +0 -1
- package/dist/hooks/useTheme.d.ts +0 -8
- package/dist/index.d.ts +0 -36
- package/dist/index.js +0 -1565
- package/dist/index.js.LICENSE.txt +0 -19
- package/dist/lib/color-generator.d.ts +0 -7
- package/dist/lib/color-generator.spec.d.ts +0 -1
- package/dist/lib/math.d.ts +0 -13
- package/dist/lib/whenFin.d.ts +0 -6
- package/dist/lib/whenFin.spec.d.ts +0 -1
- package/dist/storybookHelpers.d.ts +0 -78
- package/dist/theme.d.ts +0 -3
- package/dist/theme.js +0 -1
- package/dist/types/index.d.ts +0 -3
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color --
|
|
3
|
-
* Color maps names to values.
|
|
4
|
-
* This is the "raw" store of all OpenFin colors
|
|
5
|
-
* referenced by their Figma names.
|
|
6
|
-
*
|
|
7
|
-
* This is the only place Color values should be defined
|
|
8
|
-
*/
|
|
9
|
-
export declare const Color: {
|
|
10
|
-
readonly white: "#FFFFFF";
|
|
11
|
-
readonly lightGray1: "#FAFBFE";
|
|
12
|
-
readonly lightGray2: "#F3F5F8";
|
|
13
|
-
readonly lightGray3: "#ECEEF1";
|
|
14
|
-
readonly lightGray4: "#DDDFE4";
|
|
15
|
-
readonly lightGray5: "#C9CBD2";
|
|
16
|
-
readonly neutralGray: "#7D808A";
|
|
17
|
-
readonly neutralGray80: "rgba(125,128,138,0.8)";
|
|
18
|
-
readonly silverGray: "#C0C1C2";
|
|
19
|
-
readonly darkGray1: "#53565F";
|
|
20
|
-
readonly darkGray2: "#383A40";
|
|
21
|
-
readonly darkGray3: "#2F3136";
|
|
22
|
-
readonly darkGray4: "#24262B";
|
|
23
|
-
readonly darkGray5: "#1E1F23";
|
|
24
|
-
readonly darkGray6: "#111214";
|
|
25
|
-
readonly openFinDarkest: "#3D39CD";
|
|
26
|
-
readonly openFinDarker: "#4642E0";
|
|
27
|
-
readonly openFin: "#504CFF";
|
|
28
|
-
readonly openFinLight: "#5254FB";
|
|
29
|
-
readonly openFinLighter: "#5C5EFE";
|
|
30
|
-
readonly openFinLightest: "#6864FF";
|
|
31
|
-
readonly functional1: "#207735";
|
|
32
|
-
readonly functional2: "#46C8F1";
|
|
33
|
-
readonly functional3: "#0A76D3";
|
|
34
|
-
readonly functional4: "#6CADE5";
|
|
35
|
-
readonly functional5: "#0A76D3";
|
|
36
|
-
readonly functional6: "#882BFE";
|
|
37
|
-
readonly functional7: "#F31818";
|
|
38
|
-
readonly functional8: "#C93400";
|
|
39
|
-
readonly functional9: "#FF5E60";
|
|
40
|
-
readonly functional10: "#F48F00";
|
|
41
|
-
readonly purple: "#8C61FF";
|
|
42
|
-
readonly lightblue: "#36C3FE";
|
|
43
|
-
readonly aqua: "#00CC88";
|
|
44
|
-
readonly yellow: "#FFEB00";
|
|
45
|
-
readonly salmon: "#FF8C4C";
|
|
46
|
-
readonly pink: "#FF5E60";
|
|
47
|
-
readonly lightpink: "#FF8FB8";
|
|
48
|
-
readonly white00: "rgba(255,255,255,0.0)";
|
|
49
|
-
readonly white10: "rgba(255,255,255,0.1)";
|
|
50
|
-
readonly white20: "rgba(255,255,255,0.2)";
|
|
51
|
-
readonly white30: "rgba(255,255,255,0.3)";
|
|
52
|
-
readonly white40: "rgba(255,255,255,0.4)";
|
|
53
|
-
readonly white50: "rgba(255,255,255,0.5)";
|
|
54
|
-
readonly white60: "rgba(255,255,255,0.6)";
|
|
55
|
-
readonly white70: "rgba(255,255,255,0.7)";
|
|
56
|
-
readonly white80: "rgba(255,255,255,0.8)";
|
|
57
|
-
readonly white90: "rgba(255,255,255,0.9)";
|
|
58
|
-
readonly black00: "rgba(0,0,0,0.0)";
|
|
59
|
-
readonly black10: "rgba(0,0,0,0.1)";
|
|
60
|
-
readonly black20: "rgba(0,0,0,0.2)";
|
|
61
|
-
readonly black30: "rgba(0,0,0,0.3)";
|
|
62
|
-
readonly black40: "rgba(0,0,0,0.4)";
|
|
63
|
-
readonly black50: "rgba(0,0,0,0.5)";
|
|
64
|
-
readonly black60: "rgba(0,0,0,0.6)";
|
|
65
|
-
readonly black70: "rgba(0,0,0,0.7)";
|
|
66
|
-
readonly black80: "rgba(0,0,0,0.8)";
|
|
67
|
-
readonly black90: "rgba(0,0,0,0.9)";
|
|
68
|
-
readonly transparent: "transparent";
|
|
69
|
-
readonly openFinActive: "#4642FF";
|
|
70
|
-
readonly openFinHover: "#6965FF";
|
|
71
|
-
readonly lightGray4Active: "#D7DADF";
|
|
72
|
-
readonly lightGray4Hover: "#EBECEF";
|
|
73
|
-
readonly darkGray2Active: "#33353B";
|
|
74
|
-
readonly darkGray2Hover: "#44464E";
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Size --
|
|
78
|
-
* Common keys used to describe a range of values
|
|
79
|
-
* - Unit, UnitPx, Shadow, FontSize
|
|
80
|
-
*/
|
|
81
|
-
export declare const Size: {
|
|
82
|
-
readonly xsmall: "xsmall";
|
|
83
|
-
readonly small: "small";
|
|
84
|
-
readonly base: "base";
|
|
85
|
-
readonly large: "large";
|
|
86
|
-
readonly xlarge: "xlarge";
|
|
87
|
-
readonly xxlarge: "xxlarge";
|
|
88
|
-
readonly xxxlarge: "xxxlarge";
|
|
89
|
-
readonly xxxxlarge: "xxxxlarge";
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* SizeName --
|
|
93
|
-
* Primarly a Storybook Helper for displaying human-friendly size names
|
|
94
|
-
* It's more intuitive to maintain this if it lives here
|
|
95
|
-
*/
|
|
96
|
-
export declare const SizeName: {
|
|
97
|
-
readonly xsmall: "Extra Small";
|
|
98
|
-
readonly small: "Small";
|
|
99
|
-
readonly base: "Base";
|
|
100
|
-
readonly large: "Large";
|
|
101
|
-
readonly xlarge: "Extra Large";
|
|
102
|
-
readonly xxlarge: "2X Large";
|
|
103
|
-
readonly xxxlarge: "3X Large";
|
|
104
|
-
readonly xxxxlarge: "4X Large";
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* Unit --
|
|
108
|
-
* Design System works on a 4px Grid
|
|
109
|
-
* Units are represented as numbers here for convienence in Javascript, e.g. `Unit.base * 4`
|
|
110
|
-
*/
|
|
111
|
-
export declare const Unit: {
|
|
112
|
-
readonly xsmall: 4;
|
|
113
|
-
readonly small: 8;
|
|
114
|
-
readonly base: 12;
|
|
115
|
-
readonly large: 16;
|
|
116
|
-
readonly xlarge: 20;
|
|
117
|
-
readonly xxlarge: 24;
|
|
118
|
-
readonly xxxlarge: 32;
|
|
119
|
-
readonly xxxxlarge: 48;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* UnitPx / "px" --
|
|
123
|
-
* Design System works on a 4px Grid
|
|
124
|
-
* UnitPx includes the px suffix for convenience in Styled Components
|
|
125
|
-
*/
|
|
126
|
-
export declare const UnitPx: {
|
|
127
|
-
readonly xsmall: "4px";
|
|
128
|
-
readonly small: "8px";
|
|
129
|
-
readonly base: "12px";
|
|
130
|
-
readonly large: "16px";
|
|
131
|
-
readonly xlarge: "20px";
|
|
132
|
-
readonly xxlarge: "24px";
|
|
133
|
-
readonly xxxlarge: "32px";
|
|
134
|
-
readonly xxxxlarge: "48px";
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* Radius --
|
|
138
|
-
* The border radius values supported in the design system
|
|
139
|
-
*/
|
|
140
|
-
export declare const Radius: {
|
|
141
|
-
readonly xsmall: "2px";
|
|
142
|
-
readonly small: "4px";
|
|
143
|
-
readonly base: "8px";
|
|
144
|
-
readonly large: "24px";
|
|
145
|
-
readonly pill: "100vh";
|
|
146
|
-
readonly round: "50%";
|
|
147
|
-
readonly none: "0";
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* Shadow --
|
|
151
|
-
* Design System drop shadows
|
|
152
|
-
* Note: This does not include any `text-shadow`
|
|
153
|
-
*/
|
|
154
|
-
export declare const Shadow: {
|
|
155
|
-
base: string;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Design System uses "Inter" and we include @font-face definitions to load a CDN hosted version of the font
|
|
159
|
-
* The rest of the stack includes reasonable fallbacks for contingency cases where the CDN asset fails to load
|
|
160
|
-
*/
|
|
161
|
-
export declare const FontFamily: string;
|
|
162
|
-
/**
|
|
163
|
-
* FontSize --
|
|
164
|
-
* Design System font sizes using standard scale
|
|
165
|
-
*/
|
|
166
|
-
export declare const FontSize: {
|
|
167
|
-
readonly xsmall: "8px";
|
|
168
|
-
readonly small: "10px";
|
|
169
|
-
readonly base: "12px";
|
|
170
|
-
readonly large: "14px";
|
|
171
|
-
readonly xlarge: "16px";
|
|
172
|
-
readonly xxlarge: "18px";
|
|
173
|
-
readonly xxxlarge: "20px";
|
|
174
|
-
readonly xxxxlarge: "40px";
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* FontWeight --
|
|
178
|
-
* Design System font weights (three)
|
|
179
|
-
*/
|
|
180
|
-
export declare const FontWeight: {
|
|
181
|
-
readonly normal: 400;
|
|
182
|
-
readonly bold: 600;
|
|
183
|
-
};
|
|
184
|
-
/**
|
|
185
|
-
* LineHeight --
|
|
186
|
-
* Read about "unitless" line-height
|
|
187
|
-
* @link https://css-tricks.com/almanac/properties/l/line-height/#unitless-line-heights
|
|
188
|
-
*/
|
|
189
|
-
export declare const LineHeight: {
|
|
190
|
-
readonly ui: 1;
|
|
191
|
-
readonly heading: 1.2;
|
|
192
|
-
readonly text: 1.5;
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* Transitions --
|
|
196
|
-
* Design System transition easings because UI motion feels better if everything moves the same way.
|
|
197
|
-
*/
|
|
198
|
-
export declare const Transition: {
|
|
199
|
-
readonly base: "200ms cubic-bezier(0.16, 1, 0.3, 1)";
|
|
200
|
-
readonly none: "0ms";
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* IconSize --
|
|
204
|
-
* Design System standard set of icon sizes
|
|
205
|
-
*/
|
|
206
|
-
export declare const IconSize: {
|
|
207
|
-
readonly xsmall: "8px";
|
|
208
|
-
readonly small: "12px";
|
|
209
|
-
readonly base: "15px";
|
|
210
|
-
readonly large: "20px";
|
|
211
|
-
readonly xlarge: "24px";
|
|
212
|
-
readonly xxlarge: "32px";
|
|
213
|
-
readonly xxxlarge: "48px";
|
|
214
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FlattenSimpleInterpolation } from 'styled-components';
|
|
2
|
-
export interface ImportFonts {
|
|
3
|
-
regular: string;
|
|
4
|
-
italic: string;
|
|
5
|
-
semiBold: string;
|
|
6
|
-
semiBoldItalic: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Import global fonts using your own config.
|
|
10
|
-
*/
|
|
11
|
-
export declare function createFontFaceCss(fonts: ImportFonts): FlattenSimpleInterpolation;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PaletteType } from '../lib/types';
|
|
2
|
-
import type { DefaultTheme } from 'styled-components';
|
|
3
|
-
/**
|
|
4
|
-
* Create a theme by accepting an incomplete theme object and deriving the remaining colors based on button colors.
|
|
5
|
-
*
|
|
6
|
-
* @param {Partial<PaletteType>} palettePartial The provided theme keys, whether we or the end user defined them.
|
|
7
|
-
* @returns {DefaultTheme}
|
|
8
|
-
*/
|
|
9
|
-
export declare const createTheme: (palettePartial: Partial<PaletteType>) => DefaultTheme;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DefaultTheme, StyledProps } from 'styled-components';
|
|
2
|
-
import { StatusType } from '../../HOC';
|
|
3
|
-
import { Palette } from './palette';
|
|
4
|
-
export type ComponentVariants = {
|
|
5
|
-
[key: string]: {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Get the CSS associated with a variant key
|
|
11
|
-
* @param variants -- Component variants data structure
|
|
12
|
-
* @param variantProp -- The key (enum) for looking up the variant value
|
|
13
|
-
* @todo This needs to be typed better
|
|
14
|
-
*/
|
|
15
|
-
export declare const getVariantCSS: (variants: ComponentVariants, variantProp: string) => (props: StyledProps<any>) => any;
|
|
16
|
-
/**
|
|
17
|
-
* Build :root { --var } key value pairs from Palette
|
|
18
|
-
*/
|
|
19
|
-
export declare const getRootCssVars: ({ theme }: {
|
|
20
|
-
theme: DefaultTheme;
|
|
21
|
-
}) => string;
|
|
22
|
-
/**
|
|
23
|
-
* Retrive the correct palette value based on the provided status type.
|
|
24
|
-
* Falls back to optionally provided palette key, then to 'inherit'.
|
|
25
|
-
*/
|
|
26
|
-
export declare const getStatusColor: (theme: DefaultTheme, status?: StatusType, defaultKey?: keyof typeof Palette) => string;
|
|
27
|
-
/**
|
|
28
|
-
* A list of languages supported by the OpenFin UI.
|
|
29
|
-
*/
|
|
30
|
-
export declare const SUPPORTED_LANGUAGES: readonly ["en-US", "ja-JP", "zh-CN", "ko-KR", "ru-RU", "de-DE", "zh-Hant"];
|
|
31
|
-
/**
|
|
32
|
-
* The type of the supported languages.
|
|
33
|
-
* @link supportedLanguages
|
|
34
|
-
*/
|
|
35
|
-
export type Languages = typeof SUPPORTED_LANGUAGES[number];
|