baseui
Version:
A React Component library implementing the Base design language
24 lines (21 loc) • 886 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isRTL = exports.isIntrinsic = exports.isFixed = exports.getSegmentPanelId = exports.getSegmentId = void 0;
var _constants = require("./constants");
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
const getSegmentId = (uid, key) => `segments-${uid}-segment-${key}`;
exports.getSegmentId = getSegmentId;
const getSegmentPanelId = (uid, key) => `segments-${uid}-segmentpanel-${key}`;
exports.getSegmentPanelId = getSegmentPanelId;
const isRTL = direction => direction === 'rtl';
exports.isRTL = isRTL;
const isIntrinsic = fill => fill === _constants.FILL.intrinsic;
exports.isIntrinsic = isIntrinsic;
const isFixed = fill => fill === _constants.FILL.fixed;
exports.isFixed = isFixed;