1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | import { Alignment } from "./alignment";
|
17 | import { Elevation } from "./elevation";
|
18 | import { Intent } from "./intent";
|
19 | import { Position } from "./position";
|
20 | var NS = "bp5";
|
21 | if (typeof BLUEPRINT_NAMESPACE !== "undefined") {
|
22 | NS = BLUEPRINT_NAMESPACE;
|
23 | }
|
24 | else if (typeof REACT_APP_BLUEPRINT_NAMESPACE !== "undefined") {
|
25 | NS = REACT_APP_BLUEPRINT_NAMESPACE;
|
26 | }
|
27 |
|
28 | export var ACTIVE = "".concat(NS, "-active");
|
29 | export var ALIGN_LEFT = "".concat(NS, "-align-left");
|
30 | export var ALIGN_RIGHT = "".concat(NS, "-align-right");
|
31 | export var COMPACT = "".concat(NS, "-compact");
|
32 | export var DARK = "".concat(NS, "-dark");
|
33 | export var DISABLED = "".concat(NS, "-disabled");
|
34 | export var FILL = "".concat(NS, "-fill");
|
35 | export var FIXED = "".concat(NS, "-fixed");
|
36 | export var FIXED_TOP = "".concat(NS, "-fixed-top");
|
37 | export var INLINE = "".concat(NS, "-inline");
|
38 | export var INTERACTIVE = "".concat(NS, "-interactive");
|
39 | export var LARGE = "".concat(NS, "-large");
|
40 | export var LOADING = "".concat(NS, "-loading");
|
41 | export var MINIMAL = "".concat(NS, "-minimal");
|
42 | export var OUTLINED = "".concat(NS, "-outlined");
|
43 | export var PADDED = "".concat(NS, "-padded");
|
44 | export var MULTILINE = "".concat(NS, "-multiline");
|
45 | export var READ_ONLY = "".concat(NS, "-read-only");
|
46 | export var ROUND = "".concat(NS, "-round");
|
47 | export var SELECTED = "".concat(NS, "-selected");
|
48 | export var SMALL = "".concat(NS, "-small");
|
49 | export var VERTICAL = "".concat(NS, "-vertical");
|
50 | export var POSITION_TOP = positionClass(Position.TOP);
|
51 | export var POSITION_BOTTOM = positionClass(Position.BOTTOM);
|
52 | export var POSITION_LEFT = positionClass(Position.LEFT);
|
53 | export var POSITION_RIGHT = positionClass(Position.RIGHT);
|
54 | export var ELEVATION_0 = elevationClass(Elevation.ZERO);
|
55 | export var ELEVATION_1 = elevationClass(Elevation.ONE);
|
56 | export var ELEVATION_2 = elevationClass(Elevation.TWO);
|
57 | export var ELEVATION_3 = elevationClass(Elevation.THREE);
|
58 | export var ELEVATION_4 = elevationClass(Elevation.FOUR);
|
59 | export var INTENT_PRIMARY = intentClass(Intent.PRIMARY);
|
60 | export var INTENT_SUCCESS = intentClass(Intent.SUCCESS);
|
61 | export var INTENT_WARNING = intentClass(Intent.WARNING);
|
62 | export var INTENT_DANGER = intentClass(Intent.DANGER);
|
63 | export var FOCUS_DISABLED = "".concat(NS, "-focus-disabled");
|
64 | export var FOCUS_STYLE_MANAGER_IGNORE = "".concat(NS, "-focus-style-manager-ignore");
|
65 |
|
66 | export var UI_TEXT = "".concat(NS, "-ui-text");
|
67 | export var RUNNING_TEXT = "".concat(NS, "-running-text");
|
68 | export var MONOSPACE_TEXT = "".concat(NS, "-monospace-text");
|
69 | export var TEXT_LARGE = "".concat(NS, "-text-large");
|
70 | export var TEXT_SMALL = "".concat(NS, "-text-small");
|
71 | export var TEXT_MUTED = "".concat(NS, "-text-muted");
|
72 | export var TEXT_DISABLED = "".concat(NS, "-text-disabled");
|
73 | export var TEXT_OVERFLOW_ELLIPSIS = "".concat(NS, "-text-overflow-ellipsis");
|
74 |
|
75 | export var BLOCKQUOTE = "".concat(NS, "-blockquote");
|
76 | export var CODE = "".concat(NS, "-code");
|
77 | export var CODE_BLOCK = "".concat(NS, "-code-block");
|
78 | export var HEADING = "".concat(NS, "-heading");
|
79 | export var LIST = "".concat(NS, "-list");
|
80 | export var LIST_UNSTYLED = "".concat(NS, "-list-unstyled");
|
81 | export var RTL = "".concat(NS, "-rtl");
|
82 |
|
83 | export var ALERT = "".concat(NS, "-alert");
|
84 | export var ALERT_BODY = "".concat(ALERT, "-body");
|
85 | export var ALERT_CONTENTS = "".concat(ALERT, "-contents");
|
86 | export var ALERT_FOOTER = "".concat(ALERT, "-footer");
|
87 | export var BREADCRUMB = "".concat(NS, "-breadcrumb");
|
88 | export var BREADCRUMB_CURRENT = "".concat(BREADCRUMB, "-current");
|
89 | export var BREADCRUMBS = "".concat(BREADCRUMB, "s");
|
90 | export var BREADCRUMBS_COLLAPSED = "".concat(BREADCRUMB, "s-collapsed");
|
91 | export var BUTTON = "".concat(NS, "-button");
|
92 | export var BUTTON_GROUP = "".concat(BUTTON, "-group");
|
93 | export var BUTTON_SPINNER = "".concat(BUTTON, "-spinner");
|
94 | export var BUTTON_TEXT = "".concat(BUTTON, "-text");
|
95 | export var CALLOUT = "".concat(NS, "-callout");
|
96 | export var CALLOUT_HAS_BODY_CONTENT = "".concat(CALLOUT, "-has-body-content");
|
97 | export var CALLOUT_ICON = "".concat(CALLOUT, "-icon");
|
98 | export var CARD = "".concat(NS, "-card");
|
99 | export var CARD_LIST = "".concat(NS, "-card-list");
|
100 | export var CARD_LIST_BORDERED = "".concat(CARD_LIST, "-bordered");
|
101 | export var COLLAPSE = "".concat(NS, "-collapse");
|
102 | export var COLLAPSE_BODY = "".concat(COLLAPSE, "-body");
|
103 | export var CONTEXT_MENU = "".concat(NS, "-context-menu");
|
104 | export var CONTEXT_MENU_VIRTUAL_TARGET = "".concat(CONTEXT_MENU, "-virtual-target");
|
105 | export var CONTEXT_MENU_POPOVER = "".concat(CONTEXT_MENU, "-popover");
|
106 | export var CONTEXT_MENU_BACKDROP = "".concat(CONTEXT_MENU, "-backdrop");
|
107 | export var CONTROL_GROUP = "".concat(NS, "-control-group");
|
108 | export var DIALOG = "".concat(NS, "-dialog");
|
109 | export var DIALOG_CONTAINER = "".concat(DIALOG, "-container");
|
110 | export var DIALOG_HEADER = "".concat(DIALOG, "-header");
|
111 | export var DIALOG_BODY = "".concat(DIALOG, "-body");
|
112 | export var DIALOG_BODY_SCROLL_CONTAINER = "".concat(DIALOG, "-body-scroll-container");
|
113 | export var DIALOG_CLOSE_BUTTON = "".concat(DIALOG, "-close-button");
|
114 | export var DIALOG_FOOTER = "".concat(DIALOG, "-footer");
|
115 | export var DIALOG_FOOTER_FIXED = "".concat(DIALOG, "-footer-fixed");
|
116 | export var DIALOG_FOOTER_MAIN_SECTION = "".concat(DIALOG, "-footer-main-section");
|
117 | export var DIALOG_FOOTER_ACTIONS = "".concat(DIALOG, "-footer-actions");
|
118 | export var DIALOG_STEP = "".concat(NS, "-dialog-step");
|
119 | export var DIALOG_STEP_CONTAINER = "".concat(DIALOG_STEP, "-container");
|
120 | export var DIALOG_STEP_TITLE = "".concat(DIALOG_STEP, "-title");
|
121 | export var DIALOG_STEP_ICON = "".concat(DIALOG_STEP, "-icon");
|
122 | export var DIALOG_STEP_VIEWED = "".concat(DIALOG_STEP, "-viewed");
|
123 | export var DIVIDER = "".concat(NS, "-divider");
|
124 | export var DRAWER = "".concat(NS, "-drawer");
|
125 | export var DRAWER_BODY = "".concat(DRAWER, "-body");
|
126 | export var DRAWER_FOOTER = "".concat(DRAWER, "-footer");
|
127 | export var DRAWER_HEADER = "".concat(DRAWER, "-header");
|
128 | export var EDITABLE_TEXT = "".concat(NS, "-editable-text");
|
129 | export var EDITABLE_TEXT_CONTENT = "".concat(EDITABLE_TEXT, "-content");
|
130 | export var EDITABLE_TEXT_EDITING = "".concat(EDITABLE_TEXT, "-editing");
|
131 | export var EDITABLE_TEXT_INPUT = "".concat(EDITABLE_TEXT, "-input");
|
132 | export var EDITABLE_TEXT_PLACEHOLDER = "".concat(EDITABLE_TEXT, "-placeholder");
|
133 | export var FLEX_EXPANDER = "".concat(NS, "-flex-expander");
|
134 | export var HTML_SELECT = "".concat(NS, "-html-select");
|
135 |
|
136 | export var SELECT = "".concat(NS, "-select");
|
137 | export var HTML_TABLE = "".concat(NS, "-html-table");
|
138 | export var HTML_TABLE_BORDERED = "".concat(HTML_TABLE, "-bordered");
|
139 | export var HTML_TABLE_STRIPED = "".concat(HTML_TABLE, "-striped");
|
140 | export var INPUT = "".concat(NS, "-input");
|
141 | export var INPUT_GHOST = "".concat(INPUT, "-ghost");
|
142 | export var INPUT_GROUP = "".concat(INPUT, "-group");
|
143 | export var INPUT_LEFT_CONTAINER = "".concat(INPUT, "-left-container");
|
144 | export var INPUT_ACTION = "".concat(INPUT, "-action");
|
145 | export var RESIZABLE_INPUT_SPAN = "".concat(NS, "-resizable-input-span");
|
146 | export var TEXT_AREA = "".concat(NS, "-text-area");
|
147 | export var TEXT_AREA_AUTO_RESIZE = "".concat(TEXT_AREA, "-auto-resize");
|
148 | export var CONTROL = "".concat(NS, "-control");
|
149 | export var CONTROL_INDICATOR = "".concat(CONTROL, "-indicator");
|
150 | export var CONTROL_INDICATOR_CHILD = "".concat(CONTROL_INDICATOR, "-child");
|
151 | export var CHECKBOX = "".concat(NS, "-checkbox");
|
152 | export var RADIO = "".concat(NS, "-radio");
|
153 | export var SWITCH = "".concat(NS, "-switch");
|
154 | export var SWITCH_INNER_TEXT = "".concat(SWITCH, "-inner-text");
|
155 | export var FILE_INPUT = "".concat(NS, "-file-input");
|
156 | export var FILE_INPUT_HAS_SELECTION = "".concat(NS, "-file-input-has-selection");
|
157 | export var FILE_UPLOAD_INPUT = "".concat(NS, "-file-upload-input");
|
158 | export var FILE_UPLOAD_INPUT_CUSTOM_TEXT = "".concat(NS, "-file-upload-input-custom-text");
|
159 | export var KEY = "".concat(NS, "-key");
|
160 | export var KEY_COMBO = "".concat(KEY, "-combo");
|
161 | export var MODIFIER_KEY = "".concat(NS, "-modifier-key");
|
162 | export var HOTKEY = "".concat(NS, "-hotkey");
|
163 | export var HOTKEY_LABEL = "".concat(HOTKEY, "-label");
|
164 | export var HOTKEY_COLUMN = "".concat(HOTKEY, "-column");
|
165 | export var HOTKEY_DIALOG = "".concat(HOTKEY, "-dialog");
|
166 | export var LABEL = "".concat(NS, "-label");
|
167 | export var FORM_GROUP = "".concat(NS, "-form-group");
|
168 | export var FORM_CONTENT = "".concat(NS, "-form-content");
|
169 | export var FORM_HELPER_TEXT = "".concat(NS, "-form-helper-text");
|
170 | export var FORM_GROUP_SUB_LABEL = "".concat(NS, "-form-group-sub-label");
|
171 | export var MENU = "".concat(NS, "-menu");
|
172 | export var MENU_ITEM = "".concat(MENU, "-item");
|
173 | export var MENU_ITEM_IS_SELECTABLE = "".concat(MENU_ITEM, "-is-selectable");
|
174 | export var MENU_ITEM_SELECTED_ICON = "".concat(MENU_ITEM, "-selected-icon");
|
175 | export var MENU_ITEM_ICON = "".concat(MENU_ITEM, "-icon");
|
176 | export var MENU_ITEM_LABEL = "".concat(MENU_ITEM, "-label");
|
177 | export var MENU_SUBMENU = "".concat(NS, "-submenu");
|
178 | export var MENU_SUBMENU_ICON = "".concat(MENU_SUBMENU, "-icon");
|
179 | export var MENU_DIVIDER = "".concat(MENU, "-divider");
|
180 | export var MENU_HEADER = "".concat(MENU, "-header");
|
181 | export var MULTISTEP_DIALOG = "".concat(NS, "-multistep-dialog");
|
182 | export var MULTISTEP_DIALOG_PANELS = "".concat(MULTISTEP_DIALOG, "-panels");
|
183 | export var MULTISTEP_DIALOG_LEFT_PANEL = "".concat(MULTISTEP_DIALOG, "-left-panel");
|
184 | export var MULTISTEP_DIALOG_RIGHT_PANEL = "".concat(MULTISTEP_DIALOG, "-right-panel");
|
185 | export var MULTISTEP_DIALOG_NAV_TOP = "".concat(MULTISTEP_DIALOG, "-nav-top");
|
186 | export var MULTISTEP_DIALOG_NAV_RIGHT = "".concat(MULTISTEP_DIALOG, "-nav-right");
|
187 | export var SECTION = "".concat(NS, "-section");
|
188 | export var SECTION_COLLAPSED = "".concat(SECTION, "-collapsed");
|
189 | export var SECTION_HEADER = "".concat(SECTION, "-header");
|
190 | export var SECTION_HEADER_LEFT = "".concat(SECTION_HEADER, "-left");
|
191 | export var SECTION_HEADER_TITLE = "".concat(SECTION_HEADER, "-title");
|
192 | export var SECTION_HEADER_SUB_TITLE = "".concat(SECTION_HEADER, "-sub-title");
|
193 | export var SECTION_HEADER_DIVIDER = "".concat(SECTION_HEADER, "-divider");
|
194 | export var SECTION_HEADER_TABS = "".concat(SECTION_HEADER, "-tabs");
|
195 | export var SECTION_HEADER_RIGHT = "".concat(SECTION_HEADER, "-right");
|
196 | export var SECTION_CARD = "".concat(SECTION, "-card");
|
197 | export var NAVBAR = "".concat(NS, "-navbar");
|
198 | export var NAVBAR_GROUP = "".concat(NAVBAR, "-group");
|
199 | export var NAVBAR_HEADING = "".concat(NAVBAR, "-heading");
|
200 | export var NAVBAR_DIVIDER = "".concat(NAVBAR, "-divider");
|
201 | export var NON_IDEAL_STATE = "".concat(NS, "-non-ideal-state");
|
202 | export var NON_IDEAL_STATE_VISUAL = "".concat(NON_IDEAL_STATE, "-visual");
|
203 | export var NON_IDEAL_STATE_TEXT = "".concat(NON_IDEAL_STATE, "-text");
|
204 | export var NUMERIC_INPUT = "".concat(NS, "-numeric-input");
|
205 | export var OVERFLOW_LIST = "".concat(NS, "-overflow-list");
|
206 | export var OVERFLOW_LIST_SPACER = "".concat(OVERFLOW_LIST, "-spacer");
|
207 | export var OVERLAY = "".concat(NS, "-overlay");
|
208 | export var OVERLAY_BACKDROP = "".concat(OVERLAY, "-backdrop");
|
209 | export var OVERLAY_CONTAINER = "".concat(OVERLAY, "-container");
|
210 | export var OVERLAY_CONTENT = "".concat(OVERLAY, "-content");
|
211 | export var OVERLAY_INLINE = "".concat(OVERLAY, "-inline");
|
212 | export var OVERLAY_OPEN = "".concat(OVERLAY, "-open");
|
213 | export var OVERLAY_SCROLL_CONTAINER = "".concat(OVERLAY, "-scroll-container");
|
214 | export var OVERLAY_START_FOCUS_TRAP = "".concat(OVERLAY, "-start-focus-trap");
|
215 | export var OVERLAY_END_FOCUS_TRAP = "".concat(OVERLAY, "-end-focus-trap");
|
216 | export var PANEL_STACK = "".concat(NS, "-panel-stack");
|
217 | export var PANEL_STACK_HEADER = "".concat(PANEL_STACK, "-header");
|
218 | export var PANEL_STACK_HEADER_BACK = "".concat(PANEL_STACK, "-header-back");
|
219 | export var PANEL_STACK_VIEW = "".concat(PANEL_STACK, "-view");
|
220 | export var PANEL_STACK2 = "".concat(NS, "-panel-stack2");
|
221 | export var PANEL_STACK2_HEADER = "".concat(PANEL_STACK, "-header");
|
222 | export var PANEL_STACK2_HEADER_BACK = "".concat(PANEL_STACK, "-header-back");
|
223 | export var PANEL_STACK2_VIEW = "".concat(PANEL_STACK, "-view");
|
224 | export var POPOVER = "".concat(NS, "-popover");
|
225 | export var POPOVER_ARROW = "".concat(POPOVER, "-arrow");
|
226 | export var POPOVER_BACKDROP = "".concat(POPOVER, "-backdrop");
|
227 | export var POPOVER_CAPTURING_DISMISS = "".concat(POPOVER, "-capturing-dismiss");
|
228 | export var POPOVER_CONTENT = "".concat(POPOVER, "-content");
|
229 | export var POPOVER_CONTENT_PLACEMENT = "".concat(POPOVER, "-placement");
|
230 | export var POPOVER_CONTENT_SIZING = "".concat(POPOVER_CONTENT, "-sizing");
|
231 | export var POPOVER_DISMISS = "".concat(POPOVER, "-dismiss");
|
232 | export var POPOVER_DISMISS_OVERRIDE = "".concat(POPOVER_DISMISS, "-override");
|
233 | export var POPOVER_MATCH_TARGET_WIDTH = "".concat(POPOVER, "-match-target-width");
|
234 | export var POPOVER_OPEN = "".concat(POPOVER, "-open");
|
235 | export var POPOVER_POPPER_ESCAPED = "".concat(POPOVER, "-popper-escaped");
|
236 | export var POPOVER_REFERENCE_HIDDEN = "".concat(POPOVER, "-reference-hidden");
|
237 | export var POPOVER_TARGET = "".concat(POPOVER, "-target");
|
238 | export var POPOVER_TRANSITION_CONTAINER = "".concat(POPOVER, "-transition-container");
|
239 |
|
240 | export var POPOVER_WRAPPER = "".concat(POPOVER, "-wrapper");
|
241 | export var PROGRESS_BAR = "".concat(NS, "-progress-bar");
|
242 | export var PROGRESS_METER = "".concat(NS, "-progress-meter");
|
243 | export var PROGRESS_NO_STRIPES = "".concat(NS, "-no-stripes");
|
244 | export var PROGRESS_NO_ANIMATION = "".concat(NS, "-no-animation");
|
245 | export var PORTAL = "".concat(NS, "-portal");
|
246 | export var SKELETON = "".concat(NS, "-skeleton");
|
247 | export var SLIDER = "".concat(NS, "-slider");
|
248 | export var SLIDER_AXIS = "".concat(SLIDER, "-axis");
|
249 | export var SLIDER_HANDLE = "".concat(SLIDER, "-handle");
|
250 | export var SLIDER_LABEL = "".concat(SLIDER, "-label");
|
251 | export var SLIDER_TRACK = "".concat(SLIDER, "-track");
|
252 | export var SLIDER_PROGRESS = "".concat(SLIDER, "-progress");
|
253 | export var START = "".concat(NS, "-start");
|
254 | export var END = "".concat(NS, "-end");
|
255 | export var SPINNER = "".concat(NS, "-spinner");
|
256 | export var SPINNER_ANIMATION = "".concat(SPINNER, "-animation");
|
257 | export var SPINNER_HEAD = "".concat(SPINNER, "-head");
|
258 | export var SPINNER_NO_SPIN = "".concat(NS, "-no-spin");
|
259 | export var SPINNER_TRACK = "".concat(SPINNER, "-track");
|
260 | export var TAB = "".concat(NS, "-tab");
|
261 | export var TAB_ICON = "".concat(TAB, "-icon");
|
262 | export var TAB_TAG = "".concat(TAB, "-tag");
|
263 | export var TAB_INDICATOR = "".concat(TAB, "-indicator");
|
264 | export var TAB_INDICATOR_WRAPPER = "".concat(TAB_INDICATOR, "-wrapper");
|
265 | export var TAB_LIST = "".concat(TAB, "-list");
|
266 | export var TAB_PANEL = "".concat(TAB, "-panel");
|
267 | export var TABS = "".concat(TAB, "s");
|
268 | export var TAG = "".concat(NS, "-tag");
|
269 | export var TAG_REMOVE = "".concat(TAG, "-remove");
|
270 | export var TAG_INPUT = "".concat(NS, "-tag-input");
|
271 | export var TAG_INPUT_ICON = "".concat(TAG_INPUT, "-icon");
|
272 | export var TAG_INPUT_VALUES = "".concat(TAG_INPUT, "-values");
|
273 | export var TOAST = "".concat(NS, "-toast");
|
274 | export var TOAST_CONTAINER = "".concat(TOAST, "-container");
|
275 | export var TOAST_MESSAGE = "".concat(TOAST, "-message");
|
276 | export var TOOLTIP = "".concat(NS, "-tooltip");
|
277 | export var TOOLTIP_INDICATOR = "".concat(TOOLTIP, "-indicator");
|
278 | export var TREE = "".concat(NS, "-tree");
|
279 | export var TREE_NODE = "".concat(NS, "-tree-node");
|
280 | export var TREE_NODE_CARET = "".concat(TREE_NODE, "-caret");
|
281 | export var TREE_NODE_CARET_CLOSED = "".concat(TREE_NODE_CARET, "-closed");
|
282 | export var TREE_NODE_CARET_NONE = "".concat(TREE_NODE_CARET, "-none");
|
283 | export var TREE_NODE_CARET_OPEN = "".concat(TREE_NODE_CARET, "-open");
|
284 | export var TREE_NODE_CONTENT = "".concat(TREE_NODE, "-content");
|
285 | export var TREE_NODE_EXPANDED = "".concat(TREE_NODE, "-expanded");
|
286 | export var TREE_NODE_ICON = "".concat(TREE_NODE, "-icon");
|
287 | export var TREE_NODE_LABEL = "".concat(TREE_NODE, "-label");
|
288 | export var TREE_NODE_LIST = "".concat(TREE_NODE, "-list");
|
289 | export var TREE_NODE_SECONDARY_LABEL = "".concat(TREE_NODE, "-secondary-label");
|
290 | export var TREE_NODE_SELECTED = "".concat(TREE_NODE, "-selected");
|
291 | export var TREE_ROOT = "".concat(NS, "-tree-root");
|
292 | export var ICON = "".concat(NS, "-icon");
|
293 | export var ICON_STANDARD = "".concat(ICON, "-standard");
|
294 | export var ICON_LARGE = "".concat(ICON, "-large");
|
295 |
|
296 |
|
297 |
|
298 |
|
299 | export function getClassNamespace() {
|
300 | return NS;
|
301 | }
|
302 |
|
303 | export function alignmentClass(alignment) {
|
304 | switch (alignment) {
|
305 | case Alignment.LEFT:
|
306 | return ALIGN_LEFT;
|
307 | case Alignment.RIGHT:
|
308 | return ALIGN_RIGHT;
|
309 | default:
|
310 | return undefined;
|
311 | }
|
312 | }
|
313 | export function elevationClass(elevation) {
|
314 | if (elevation === undefined) {
|
315 | return undefined;
|
316 | }
|
317 | return "".concat(NS, "-elevation-").concat(elevation);
|
318 | }
|
319 | export function iconClass(iconName) {
|
320 | if (iconName == null) {
|
321 | return undefined;
|
322 | }
|
323 | return iconName.indexOf("".concat(NS, "-icon-")) === 0 ? iconName : "".concat(NS, "-icon-").concat(iconName);
|
324 | }
|
325 | export function intentClass(intent) {
|
326 | if (intent == null || intent === Intent.NONE) {
|
327 | return undefined;
|
328 | }
|
329 | return "".concat(NS, "-intent-").concat(intent.toLowerCase());
|
330 | }
|
331 | export function positionClass(position) {
|
332 | if (position === undefined) {
|
333 | return undefined;
|
334 | }
|
335 | return "".concat(NS, "-position-").concat(position);
|
336 | }
|
337 |
|
\ | No newline at end of file |