UNPKG

@empoleon/spotlight

Version:

Command center components for react and Empoleon

40 lines (36 loc) 1.33 kB
'use strict'; var web = require('solid-js/web'); var solidJs = require('solid-js'); var core = require('@empoleon/core'); var Spotlight_context = require('./Spotlight.context.cjs'); var Spotlight_module = require('./Spotlight.module.css.cjs'); const defaultProps = {}; const SpotlightActionsGroup = core.factory(_props => { const props = core.useProps("SpotlightActionsGroup", defaultProps, _props); const [local, others] = solidJs.splitProps(props, ["className", "style", "styles", "classNames", "label", "children", "ref"]); const ctx = Spotlight_context.useSpotlightContext(); return web.createComponent(core.Box, web.mergeProps(() => ctx.getStyles("actionsGroup", { className: local.className, style: local.style, classNames: local.classNames, styles: local.styles }), { ref(r$) { var _ref$ = local.ref; typeof _ref$ === "function" ? _ref$(r$) : local.ref = r$; } }, others, { get __vars() { return { "--spotlight-label": `'${local.label}'` }; }, get children() { return local.children; } })); }); SpotlightActionsGroup.classes = Spotlight_module; SpotlightActionsGroup.displayName = "@empoleon/core/SpotlightActionsGroup"; exports.SpotlightActionsGroup = SpotlightActionsGroup; //# sourceMappingURL=SpotlightActionsGroup.cjs.map