UNPKG

20.1 kBJavaScriptView Raw
1"use strict";
2/*
3 * Copyright 2015 Palantir Technologies, Inc. All rights reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17var _a, _b, _c, _d;
18Object.defineProperty(exports, "__esModule", { value: true });
19exports.ALERT_BODY = exports.ALERT = exports.FIXED_POSITIONING_CONTAINING_BLOCK = exports.RTL = exports.LIST_UNSTYLED = exports.LIST = exports.HEADING = exports.CODE_BLOCK = exports.CODE = exports.BLOCKQUOTE = exports.TEXT_OVERFLOW_ELLIPSIS = exports.TEXT_DISABLED = exports.TEXT_MUTED = exports.TEXT_SMALL = exports.TEXT_LARGE = exports.MONOSPACE_TEXT = exports.RUNNING_TEXT = exports.UI_TEXT = exports.FOCUS_DISABLED = exports.INTENT_DANGER = exports.INTENT_WARNING = exports.INTENT_SUCCESS = exports.INTENT_PRIMARY = exports.ELEVATION_4 = exports.ELEVATION_3 = exports.ELEVATION_2 = exports.ELEVATION_1 = exports.ELEVATION_0 = exports.POSITION_RIGHT = exports.POSITION_LEFT = exports.POSITION_BOTTOM = exports.POSITION_TOP = exports.VERTICAL = exports.SMALL = exports.ROUND = exports.MULTILINE = exports.OUTLINED = exports.MINIMAL = exports.LOADING = exports.LARGE = exports.INTERACTIVE = exports.INLINE = exports.FIXED_TOP = exports.FIXED = exports.FILL = exports.DISABLED = exports.DARK = exports.ALIGN_RIGHT = exports.ALIGN_LEFT = exports.ACTIVE = void 0;
20exports.INPUT_GHOST = exports.INPUT = exports.HTML_TABLE_STRIPED = exports.HTML_TABLE_CONDENSED = exports.HTML_TABLE_BORDERED = exports.HTML_TABLE = exports.SELECT = exports.HTML_SELECT = exports.FLEX_EXPANDER = exports.EDITABLE_TEXT_PLACEHOLDER = exports.EDITABLE_TEXT_INPUT = exports.EDITABLE_TEXT_EDITING = exports.EDITABLE_TEXT_CONTENT = exports.EDITABLE_TEXT = exports.DRAWER_HEADER = exports.DRAWER_FOOTER = exports.DRAWER_BODY = exports.DRAWER = exports.DIVIDER = exports.DIALOG_STEP_VIEWED = exports.DIALOG_STEP_ICON = exports.DIALOG_STEP_TITLE = exports.DIALOG_STEP_CONTAINER = exports.DIALOG_STEP = exports.DIALOG_HEADER = exports.DIALOG_FOOTER_ACTIONS = exports.DIALOG_FOOTER = exports.DIALOG_CLOSE_BUTTON = exports.DIALOG_BODY = exports.DIALOG_CONTAINER = exports.DIALOG = exports.CONTROL_GROUP = exports.CONTEXT_MENU_POPOVER_TARGET = exports.CONTEXT_MENU = exports.COLLAPSIBLE_LIST = exports.COLLAPSE_BODY = exports.COLLAPSE = exports.CARD = exports.CALLOUT_ICON = exports.CALLOUT = exports.BUTTON_TEXT = exports.BUTTON_SPINNER = exports.BUTTON_GROUP = exports.BUTTON = exports.BREADCRUMBS_COLLAPSED = exports.BREADCRUMBS = exports.BREADCRUMB_CURRENT = exports.BREADCRUMB = exports.ALERT_FOOTER = exports.ALERT_CONTENTS = void 0;
21exports.OVERLAY_INLINE = exports.OVERLAY_CONTENT = exports.OVERLAY_CONTAINER = exports.OVERLAY_BACKDROP = exports.OVERLAY = exports.OVERFLOW_LIST_SPACER = exports.OVERFLOW_LIST = exports.NUMERIC_INPUT = exports.NON_IDEAL_STATE_VISUAL = exports.NON_IDEAL_STATE = exports.NAVBAR_DIVIDER = exports.NAVBAR_HEADING = exports.NAVBAR_GROUP = exports.NAVBAR = exports.MULTISTEP_DIALOG_FOOTER = exports.MULTISTEP_DIALOG_RIGHT_PANEL = exports.MULTISTEP_DIALOG_LEFT_PANEL = exports.MULTISTEP_DIALOG_PANELS = exports.MULTISTEP_DIALOG = exports.MENU_HEADER = exports.MENU_DIVIDER = exports.MENU_SUBMENU = exports.MENU_ITEM_LABEL = exports.MENU_ITEM = exports.MENU = exports.FORM_HELPER_TEXT = exports.FORM_CONTENT = exports.FORM_GROUP = exports.LABEL = exports.HOTKEY_DIALOG = exports.HOTKEY_COLUMN = exports.HOTKEY_LABEL = exports.HOTKEY = exports.MODIFIER_KEY = exports.KEY_COMBO = exports.KEY = exports.FILE_UPLOAD_INPUT_CUSTOM_TEXT = exports.FILE_UPLOAD_INPUT = exports.FILE_INPUT_HAS_SELECTION = exports.FILE_INPUT = exports.SWITCH_INNER_TEXT = exports.SWITCH = exports.RADIO = exports.CHECKBOX = exports.CONTROL_INDICATOR_CHILD = exports.CONTROL_INDICATOR = exports.CONTROL = exports.INPUT_ACTION = exports.INPUT_LEFT_CONTAINER = exports.INPUT_GROUP = void 0;
22exports.TAG = exports.TABS = exports.TAB_PANEL = exports.TAB_LIST = exports.TAB_INDICATOR_WRAPPER = exports.TAB_INDICATOR = exports.TAB = exports.SPINNER_TRACK = exports.SPINNER_NO_SPIN = exports.SPINNER_HEAD = exports.SPINNER_ANIMATION = exports.SPINNER = exports.END = exports.START = exports.SLIDER_PROGRESS = exports.SLIDER_TRACK = exports.SLIDER_LABEL = exports.SLIDER_HANDLE = exports.SLIDER_AXIS = exports.SLIDER = exports.SKELETON = exports.PORTAL = exports.PROGRESS_NO_ANIMATION = exports.PROGRESS_NO_STRIPES = exports.PROGRESS_METER = exports.PROGRESS_BAR = exports.TRANSITION_CONTAINER = exports.POPOVER_WRAPPER = exports.POPOVER_TARGET = exports.POPOVER_OPEN = exports.POPOVER_DISMISS_OVERRIDE = exports.POPOVER_DISMISS = exports.POPOVER_CONTENT_SIZING = exports.POPOVER_CONTENT = exports.POPOVER_CAPTURING_DISMISS = exports.POPOVER_BACKDROP = exports.POPOVER_ARROW = exports.POPOVER = exports.PANEL_STACK2_VIEW = exports.PANEL_STACK2_HEADER_BACK = exports.PANEL_STACK2_HEADER = exports.PANEL_STACK2 = exports.PANEL_STACK_VIEW = exports.PANEL_STACK_HEADER_BACK = exports.PANEL_STACK_HEADER = exports.PANEL_STACK = exports.OVERLAY_END_FOCUS_TRAP = exports.OVERLAY_START_FOCUS_TRAP = exports.OVERLAY_SCROLL_CONTAINER = exports.OVERLAY_OPEN = void 0;
23exports.positionClass = exports.intentClass = exports.iconClass = exports.elevationClass = exports.alignmentClass = exports.getClassNamespace = exports.ICON_LARGE = exports.ICON_STANDARD = exports.ICON = exports.TREE_ROOT = exports.TREE_NODE_SELECTED = exports.TREE_NODE_SECONDARY_LABEL = exports.TREE_NODE_LIST = exports.TREE_NODE_LABEL = exports.TREE_NODE_ICON = exports.TREE_NODE_EXPANDED = exports.TREE_NODE_CONTENT = exports.TREE_NODE_CARET_OPEN = exports.TREE_NODE_CARET_NONE = exports.TREE_NODE_CARET_CLOSED = exports.TREE_NODE_CARET = exports.TREE_NODE = exports.TREE = exports.TOOLTIP_INDICATOR = exports.TOOLTIP = exports.TOAST_MESSAGE = exports.TOAST_CONTAINER = exports.TOAST = exports.TAG_INPUT_VALUES = exports.TAG_INPUT_ICON = exports.TAG_INPUT = exports.TAG_REMOVE = void 0;
24var alignment_1 = require("./alignment");
25var elevation_1 = require("./elevation");
26var intent_1 = require("./intent");
27var position_1 = require("./position");
28var NS = "bp3";
29if (typeof process !== "undefined") {
30 NS = (_d = (_b = (_a = process.env) === null || _a === void 0 ? void 0 : _a.BLUEPRINT_NAMESPACE) !== null && _b !== void 0 ? _b : (_c = process.env) === null || _c === void 0 ? void 0 : _c.REACT_APP_BLUEPRINT_NAMESPACE) !== null && _d !== void 0 ? _d : NS;
31}
32// modifiers
33exports.ACTIVE = NS + "-active";
34exports.ALIGN_LEFT = NS + "-align-left";
35exports.ALIGN_RIGHT = NS + "-align-right";
36exports.DARK = NS + "-dark";
37exports.DISABLED = NS + "-disabled";
38exports.FILL = NS + "-fill";
39exports.FIXED = NS + "-fixed";
40exports.FIXED_TOP = NS + "-fixed-top";
41exports.INLINE = NS + "-inline";
42exports.INTERACTIVE = NS + "-interactive";
43exports.LARGE = NS + "-large";
44exports.LOADING = NS + "-loading";
45exports.MINIMAL = NS + "-minimal";
46exports.OUTLINED = NS + "-outlined";
47exports.MULTILINE = NS + "-multiline";
48exports.ROUND = NS + "-round";
49exports.SMALL = NS + "-small";
50exports.VERTICAL = NS + "-vertical";
51exports.POSITION_TOP = positionClass(position_1.Position.TOP);
52exports.POSITION_BOTTOM = positionClass(position_1.Position.BOTTOM);
53exports.POSITION_LEFT = positionClass(position_1.Position.LEFT);
54exports.POSITION_RIGHT = positionClass(position_1.Position.RIGHT);
55exports.ELEVATION_0 = elevationClass(elevation_1.Elevation.ZERO);
56exports.ELEVATION_1 = elevationClass(elevation_1.Elevation.ONE);
57exports.ELEVATION_2 = elevationClass(elevation_1.Elevation.TWO);
58exports.ELEVATION_3 = elevationClass(elevation_1.Elevation.THREE);
59exports.ELEVATION_4 = elevationClass(elevation_1.Elevation.FOUR);
60exports.INTENT_PRIMARY = intentClass(intent_1.Intent.PRIMARY);
61exports.INTENT_SUCCESS = intentClass(intent_1.Intent.SUCCESS);
62exports.INTENT_WARNING = intentClass(intent_1.Intent.WARNING);
63exports.INTENT_DANGER = intentClass(intent_1.Intent.DANGER);
64exports.FOCUS_DISABLED = NS + "-focus-disabled";
65// text utilities
66exports.UI_TEXT = NS + "-ui-text";
67exports.RUNNING_TEXT = NS + "-running-text";
68exports.MONOSPACE_TEXT = NS + "-monospace-text";
69exports.TEXT_LARGE = NS + "-text-large";
70exports.TEXT_SMALL = NS + "-text-small";
71exports.TEXT_MUTED = NS + "-text-muted";
72exports.TEXT_DISABLED = NS + "-text-disabled";
73exports.TEXT_OVERFLOW_ELLIPSIS = NS + "-text-overflow-ellipsis";
74// textual elements
75exports.BLOCKQUOTE = NS + "-blockquote";
76exports.CODE = NS + "-code";
77exports.CODE_BLOCK = NS + "-code-block";
78exports.HEADING = NS + "-heading";
79exports.LIST = NS + "-list";
80exports.LIST_UNSTYLED = NS + "-list-unstyled";
81exports.RTL = NS + "-rtl";
82// layout utilities
83/**
84 * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
85 * @deprecated this is no longer needed for ContextMenu2, will be removed in v4.0
86 */
87exports.FIXED_POSITIONING_CONTAINING_BLOCK = NS + "-fixed-positioning-containing-block";
88// components
89exports.ALERT = NS + "-alert";
90exports.ALERT_BODY = exports.ALERT + "-body";
91exports.ALERT_CONTENTS = exports.ALERT + "-contents";
92exports.ALERT_FOOTER = exports.ALERT + "-footer";
93exports.BREADCRUMB = NS + "-breadcrumb";
94exports.BREADCRUMB_CURRENT = exports.BREADCRUMB + "-current";
95exports.BREADCRUMBS = exports.BREADCRUMB + "s";
96exports.BREADCRUMBS_COLLAPSED = exports.BREADCRUMB + "s-collapsed";
97exports.BUTTON = NS + "-button";
98exports.BUTTON_GROUP = exports.BUTTON + "-group";
99exports.BUTTON_SPINNER = exports.BUTTON + "-spinner";
100exports.BUTTON_TEXT = exports.BUTTON + "-text";
101exports.CALLOUT = NS + "-callout";
102exports.CALLOUT_ICON = exports.CALLOUT + "-icon";
103exports.CARD = NS + "-card";
104exports.COLLAPSE = NS + "-collapse";
105exports.COLLAPSE_BODY = exports.COLLAPSE + "-body";
106exports.COLLAPSIBLE_LIST = NS + "-collapse-list";
107exports.CONTEXT_MENU = NS + "-context-menu";
108exports.CONTEXT_MENU_POPOVER_TARGET = exports.CONTEXT_MENU + "-popover-target";
109exports.CONTROL_GROUP = NS + "-control-group";
110exports.DIALOG = NS + "-dialog";
111exports.DIALOG_CONTAINER = exports.DIALOG + "-container";
112exports.DIALOG_BODY = exports.DIALOG + "-body";
113exports.DIALOG_CLOSE_BUTTON = exports.DIALOG + "-close-button";
114exports.DIALOG_FOOTER = exports.DIALOG + "-footer";
115exports.DIALOG_FOOTER_ACTIONS = exports.DIALOG + "-footer-actions";
116exports.DIALOG_HEADER = exports.DIALOG + "-header";
117exports.DIALOG_STEP = NS + "-dialog-step";
118exports.DIALOG_STEP_CONTAINER = exports.DIALOG_STEP + "-container";
119exports.DIALOG_STEP_TITLE = exports.DIALOG_STEP + "-title";
120exports.DIALOG_STEP_ICON = exports.DIALOG_STEP + "-icon";
121exports.DIALOG_STEP_VIEWED = exports.DIALOG_STEP + "-viewed";
122exports.DIVIDER = NS + "-divider";
123exports.DRAWER = NS + "-drawer";
124exports.DRAWER_BODY = exports.DRAWER + "-body";
125exports.DRAWER_FOOTER = exports.DRAWER + "-footer";
126exports.DRAWER_HEADER = exports.DRAWER + "-header";
127exports.EDITABLE_TEXT = NS + "-editable-text";
128exports.EDITABLE_TEXT_CONTENT = exports.EDITABLE_TEXT + "-content";
129exports.EDITABLE_TEXT_EDITING = exports.EDITABLE_TEXT + "-editing";
130exports.EDITABLE_TEXT_INPUT = exports.EDITABLE_TEXT + "-input";
131exports.EDITABLE_TEXT_PLACEHOLDER = exports.EDITABLE_TEXT + "-placeholder";
132exports.FLEX_EXPANDER = NS + "-flex-expander";
133exports.HTML_SELECT = NS + "-html-select";
134/** @deprecated prefer `<HTMLSelect>` component */
135exports.SELECT = NS + "-select";
136exports.HTML_TABLE = NS + "-html-table";
137exports.HTML_TABLE_BORDERED = exports.HTML_TABLE + "-bordered";
138exports.HTML_TABLE_CONDENSED = exports.HTML_TABLE + "-condensed";
139exports.HTML_TABLE_STRIPED = exports.HTML_TABLE + "-striped";
140exports.INPUT = NS + "-input";
141exports.INPUT_GHOST = exports.INPUT + "-ghost";
142exports.INPUT_GROUP = exports.INPUT + "-group";
143exports.INPUT_LEFT_CONTAINER = exports.INPUT + "-left-container";
144exports.INPUT_ACTION = exports.INPUT + "-action";
145exports.CONTROL = NS + "-control";
146exports.CONTROL_INDICATOR = exports.CONTROL + "-indicator";
147exports.CONTROL_INDICATOR_CHILD = exports.CONTROL_INDICATOR + "-child";
148exports.CHECKBOX = NS + "-checkbox";
149exports.RADIO = NS + "-radio";
150exports.SWITCH = NS + "-switch";
151exports.SWITCH_INNER_TEXT = exports.SWITCH + "-inner-text";
152exports.FILE_INPUT = NS + "-file-input";
153exports.FILE_INPUT_HAS_SELECTION = NS + "-file-input-has-selection";
154exports.FILE_UPLOAD_INPUT = NS + "-file-upload-input";
155exports.FILE_UPLOAD_INPUT_CUSTOM_TEXT = NS + "-file-upload-input-custom-text";
156exports.KEY = NS + "-key";
157exports.KEY_COMBO = exports.KEY + "-combo";
158exports.MODIFIER_KEY = NS + "-modifier-key";
159exports.HOTKEY = NS + "-hotkey";
160exports.HOTKEY_LABEL = exports.HOTKEY + "-label";
161exports.HOTKEY_COLUMN = exports.HOTKEY + "-column";
162exports.HOTKEY_DIALOG = exports.HOTKEY + "-dialog";
163exports.LABEL = NS + "-label";
164exports.FORM_GROUP = NS + "-form-group";
165exports.FORM_CONTENT = NS + "-form-content";
166exports.FORM_HELPER_TEXT = NS + "-form-helper-text";
167exports.MENU = NS + "-menu";
168exports.MENU_ITEM = exports.MENU + "-item";
169exports.MENU_ITEM_LABEL = exports.MENU_ITEM + "-label";
170exports.MENU_SUBMENU = NS + "-submenu";
171exports.MENU_DIVIDER = exports.MENU + "-divider";
172exports.MENU_HEADER = exports.MENU + "-header";
173exports.MULTISTEP_DIALOG = NS + "-multistep-dialog";
174exports.MULTISTEP_DIALOG_PANELS = exports.MULTISTEP_DIALOG + "-panels";
175exports.MULTISTEP_DIALOG_LEFT_PANEL = exports.MULTISTEP_DIALOG + "-left-panel";
176exports.MULTISTEP_DIALOG_RIGHT_PANEL = exports.MULTISTEP_DIALOG + "-right-panel";
177exports.MULTISTEP_DIALOG_FOOTER = exports.MULTISTEP_DIALOG + "-footer";
178exports.NAVBAR = NS + "-navbar";
179exports.NAVBAR_GROUP = exports.NAVBAR + "-group";
180exports.NAVBAR_HEADING = exports.NAVBAR + "-heading";
181exports.NAVBAR_DIVIDER = exports.NAVBAR + "-divider";
182exports.NON_IDEAL_STATE = NS + "-non-ideal-state";
183exports.NON_IDEAL_STATE_VISUAL = exports.NON_IDEAL_STATE + "-visual";
184exports.NUMERIC_INPUT = NS + "-numeric-input";
185exports.OVERFLOW_LIST = NS + "-overflow-list";
186exports.OVERFLOW_LIST_SPACER = exports.OVERFLOW_LIST + "-spacer";
187exports.OVERLAY = NS + "-overlay";
188exports.OVERLAY_BACKDROP = exports.OVERLAY + "-backdrop";
189exports.OVERLAY_CONTAINER = exports.OVERLAY + "-container";
190exports.OVERLAY_CONTENT = exports.OVERLAY + "-content";
191exports.OVERLAY_INLINE = exports.OVERLAY + "-inline";
192exports.OVERLAY_OPEN = exports.OVERLAY + "-open";
193exports.OVERLAY_SCROLL_CONTAINER = exports.OVERLAY + "-scroll-container";
194exports.OVERLAY_START_FOCUS_TRAP = exports.OVERLAY + "-start-focus-trap";
195exports.OVERLAY_END_FOCUS_TRAP = exports.OVERLAY + "-end-focus-trap";
196exports.PANEL_STACK = NS + "-panel-stack";
197exports.PANEL_STACK_HEADER = exports.PANEL_STACK + "-header";
198exports.PANEL_STACK_HEADER_BACK = exports.PANEL_STACK + "-header-back";
199exports.PANEL_STACK_VIEW = exports.PANEL_STACK + "-view";
200exports.PANEL_STACK2 = NS + "-panel-stack2";
201exports.PANEL_STACK2_HEADER = exports.PANEL_STACK + "-header";
202exports.PANEL_STACK2_HEADER_BACK = exports.PANEL_STACK + "-header-back";
203exports.PANEL_STACK2_VIEW = exports.PANEL_STACK + "-view";
204exports.POPOVER = NS + "-popover";
205exports.POPOVER_ARROW = exports.POPOVER + "-arrow";
206exports.POPOVER_BACKDROP = exports.POPOVER + "-backdrop";
207exports.POPOVER_CAPTURING_DISMISS = exports.POPOVER + "-capturing-dismiss";
208exports.POPOVER_CONTENT = exports.POPOVER + "-content";
209exports.POPOVER_CONTENT_SIZING = exports.POPOVER_CONTENT + "-sizing";
210exports.POPOVER_DISMISS = exports.POPOVER + "-dismiss";
211exports.POPOVER_DISMISS_OVERRIDE = exports.POPOVER_DISMISS + "-override";
212exports.POPOVER_OPEN = exports.POPOVER + "-open";
213exports.POPOVER_TARGET = exports.POPOVER + "-target";
214exports.POPOVER_WRAPPER = exports.POPOVER + "-wrapper";
215exports.TRANSITION_CONTAINER = NS + "-transition-container";
216exports.PROGRESS_BAR = NS + "-progress-bar";
217exports.PROGRESS_METER = NS + "-progress-meter";
218exports.PROGRESS_NO_STRIPES = NS + "-no-stripes";
219exports.PROGRESS_NO_ANIMATION = NS + "-no-animation";
220exports.PORTAL = NS + "-portal";
221exports.SKELETON = NS + "-skeleton";
222exports.SLIDER = NS + "-slider";
223exports.SLIDER_AXIS = exports.SLIDER + "-axis";
224exports.SLIDER_HANDLE = exports.SLIDER + "-handle";
225exports.SLIDER_LABEL = exports.SLIDER + "-label";
226exports.SLIDER_TRACK = exports.SLIDER + "-track";
227exports.SLIDER_PROGRESS = exports.SLIDER + "-progress";
228exports.START = NS + "-start";
229exports.END = NS + "-end";
230exports.SPINNER = NS + "-spinner";
231exports.SPINNER_ANIMATION = exports.SPINNER + "-animation";
232exports.SPINNER_HEAD = exports.SPINNER + "-head";
233exports.SPINNER_NO_SPIN = NS + "-no-spin";
234exports.SPINNER_TRACK = exports.SPINNER + "-track";
235exports.TAB = NS + "-tab";
236exports.TAB_INDICATOR = exports.TAB + "-indicator";
237exports.TAB_INDICATOR_WRAPPER = exports.TAB_INDICATOR + "-wrapper";
238exports.TAB_LIST = exports.TAB + "-list";
239exports.TAB_PANEL = exports.TAB + "-panel";
240exports.TABS = exports.TAB + "s";
241exports.TAG = NS + "-tag";
242exports.TAG_REMOVE = exports.TAG + "-remove";
243exports.TAG_INPUT = NS + "-tag-input";
244exports.TAG_INPUT_ICON = exports.TAG_INPUT + "-icon";
245exports.TAG_INPUT_VALUES = exports.TAG_INPUT + "-values";
246exports.TOAST = NS + "-toast";
247exports.TOAST_CONTAINER = exports.TOAST + "-container";
248exports.TOAST_MESSAGE = exports.TOAST + "-message";
249exports.TOOLTIP = NS + "-tooltip";
250exports.TOOLTIP_INDICATOR = exports.TOOLTIP + "-indicator";
251exports.TREE = NS + "-tree";
252exports.TREE_NODE = NS + "-tree-node";
253exports.TREE_NODE_CARET = exports.TREE_NODE + "-caret";
254exports.TREE_NODE_CARET_CLOSED = exports.TREE_NODE_CARET + "-closed";
255exports.TREE_NODE_CARET_NONE = exports.TREE_NODE_CARET + "-none";
256exports.TREE_NODE_CARET_OPEN = exports.TREE_NODE_CARET + "-open";
257exports.TREE_NODE_CONTENT = exports.TREE_NODE + "-content";
258exports.TREE_NODE_EXPANDED = exports.TREE_NODE + "-expanded";
259exports.TREE_NODE_ICON = exports.TREE_NODE + "-icon";
260exports.TREE_NODE_LABEL = exports.TREE_NODE + "-label";
261exports.TREE_NODE_LIST = exports.TREE_NODE + "-list";
262exports.TREE_NODE_SECONDARY_LABEL = exports.TREE_NODE + "-secondary-label";
263exports.TREE_NODE_SELECTED = exports.TREE_NODE + "-selected";
264exports.TREE_ROOT = NS + "-tree-root";
265exports.ICON = NS + "-icon";
266/** @deprecated use <Icon> components and iconName prop APIs instead */
267exports.ICON_STANDARD = exports.ICON + "-standard";
268/** @deprecated use <Icon> components and iconName prop APIs instead */
269exports.ICON_LARGE = exports.ICON + "-large";
270/**
271 * Returns the namespace prefix for all Blueprint CSS classes.
272 * Customize this namespace at build time with the `process.env.BLUEPRINT_NAMESPACE` environment variable.
273 */
274function getClassNamespace() {
275 return NS;
276}
277exports.getClassNamespace = getClassNamespace;
278/** Return CSS class for alignment. */
279function alignmentClass(alignment) {
280 switch (alignment) {
281 case alignment_1.Alignment.LEFT:
282 return exports.ALIGN_LEFT;
283 case alignment_1.Alignment.RIGHT:
284 return exports.ALIGN_RIGHT;
285 default:
286 return undefined;
287 }
288}
289exports.alignmentClass = alignmentClass;
290function elevationClass(elevation) {
291 if (elevation === undefined) {
292 return undefined;
293 }
294 return NS + "-elevation-" + elevation;
295}
296exports.elevationClass = elevationClass;
297function iconClass(iconName) {
298 if (iconName == null) {
299 return undefined;
300 }
301 return iconName.indexOf(NS + "-icon-") === 0 ? iconName : NS + "-icon-" + iconName;
302}
303exports.iconClass = iconClass;
304function intentClass(intent) {
305 if (intent == null || intent === intent_1.Intent.NONE) {
306 return undefined;
307 }
308 return NS + "-intent-" + intent.toLowerCase();
309}
310exports.intentClass = intentClass;
311function positionClass(position) {
312 if (position === undefined) {
313 return undefined;
314 }
315 return NS + "-position-" + position;
316}
317exports.positionClass = positionClass;
318//# sourceMappingURL=classes.js.map
\No newline at end of file