@dreamcommerce/aurora 3.0.0-4 → 3.0.0-6
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/build/cjs/external/class-variance-authority/dist/index.mjs.js +52 -0
- package/build/cjs/external/class-variance-authority/dist/index.mjs.js.map +1 -0
- package/build/cjs/external/class-variance-authority/external/clsx/dist/clsx.mjs.js +9 -0
- package/build/cjs/external/class-variance-authority/external/clsx/dist/clsx.mjs.js.map +1 -0
- package/build/cjs/external/clsx/dist/clsx.mjs.js +9 -0
- package/build/cjs/external/clsx/dist/clsx.mjs.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/badge/badge.js +2 -2
- package/build/cjs/packages/aurora/src/components/badge/badge.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/box/box.js +1 -1
- package/build/cjs/packages/aurora/src/components/divider/divider.js +2 -2
- package/build/cjs/packages/aurora/src/components/divider/divider.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/sidebar/components/sidebar_trigger.js +2 -2
- package/build/cjs/packages/aurora/src/components/sidebar/components/sidebar_trigger.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/sidebar/context/sidebar_prvider.js +62 -0
- package/build/cjs/packages/aurora/src/components/sidebar/context/sidebar_prvider.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/stack/stack.js +2 -2
- package/build/cjs/packages/aurora/src/components/stack/stack.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/typography/typography.js +2 -2
- package/build/cjs/packages/aurora/src/components/typography/typography.js.map +1 -1
- package/build/cjs/packages/aurora/src/index.js +4 -0
- package/build/cjs/packages/aurora/src/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/utilities/cn.js +1 -1
- package/build/cjs/packages/aurora/src/utilities/cn.js.map +1 -1
- package/build/esm/external/class-variance-authority/dist/index.mjs.js +47 -0
- package/build/esm/external/class-variance-authority/dist/index.mjs.js.map +1 -0
- package/build/esm/external/class-variance-authority/external/clsx/dist/clsx.mjs.js +5 -0
- package/build/esm/external/class-variance-authority/external/clsx/dist/clsx.mjs.js.map +1 -0
- package/build/esm/external/clsx/dist/clsx.mjs.js +5 -0
- package/build/esm/external/clsx/dist/clsx.mjs.js.map +1 -0
- package/build/esm/packages/aurora/src/components/badge/badge.js +1 -1
- package/build/esm/packages/aurora/src/components/badge/badge.js.map +1 -1
- package/build/esm/packages/aurora/src/components/box/box.js +1 -1
- package/build/esm/packages/aurora/src/components/divider/divider.js +1 -1
- package/build/esm/packages/aurora/src/components/divider/divider.js.map +1 -1
- package/build/esm/packages/aurora/src/components/sidebar/components/sidebar_trigger.js +1 -1
- package/build/esm/packages/aurora/src/components/sidebar/components/sidebar_trigger.js.map +1 -1
- package/build/esm/packages/aurora/src/components/sidebar/context/sidebar_prvider.js +56 -35
- package/build/esm/packages/aurora/src/components/sidebar/context/sidebar_prvider.js.map +1 -1
- package/build/esm/packages/aurora/src/components/stack/stack.js +1 -1
- package/build/esm/packages/aurora/src/components/stack/stack.js.map +1 -1
- package/build/esm/packages/aurora/src/components/typography/typography.js +1 -1
- package/build/esm/packages/aurora/src/components/typography/typography.js.map +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +2 -0
- package/build/esm/packages/aurora/src/index.js +2 -0
- package/build/esm/packages/aurora/src/index.js.map +1 -1
- package/build/esm/packages/aurora/src/utilities/cn.js +1 -1
- package/build/esm/packages/aurora/src/utilities/cn.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var clsx = require('../external/clsx/dist/clsx.mjs.js');
|
|
6
|
+
|
|
7
|
+
const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
8
|
+
const cx = clsx.clsx;
|
|
9
|
+
const cva = (base, config)=>{
|
|
10
|
+
return (props)=>{
|
|
11
|
+
var ref;
|
|
12
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
13
|
+
const { variants , defaultVariants } = config;
|
|
14
|
+
const getVariantClassNames = Object.keys(variants).map((variant)=>{
|
|
15
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
16
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
17
|
+
if (variantProp === null) return null;
|
|
18
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
19
|
+
return variants[variant][variantKey];
|
|
20
|
+
});
|
|
21
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
|
|
22
|
+
let [key, value] = param;
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return acc;
|
|
25
|
+
}
|
|
26
|
+
acc[key] = value;
|
|
27
|
+
return acc;
|
|
28
|
+
}, {});
|
|
29
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
|
|
30
|
+
let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
|
|
31
|
+
return Object.entries(compoundVariantOptions).every((param)=>{
|
|
32
|
+
let [key, value] = param;
|
|
33
|
+
return Array.isArray(value) ? value.includes({
|
|
34
|
+
...defaultVariants,
|
|
35
|
+
...propsWithoutUndefined
|
|
36
|
+
}[key]) : ({
|
|
37
|
+
...defaultVariants,
|
|
38
|
+
...propsWithoutUndefined
|
|
39
|
+
})[key] === value;
|
|
40
|
+
}) ? [
|
|
41
|
+
...acc,
|
|
42
|
+
cvClass,
|
|
43
|
+
cvClassName
|
|
44
|
+
] : acc;
|
|
45
|
+
}, []);
|
|
46
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.cva = cva;
|
|
51
|
+
exports.cx = cx;
|
|
52
|
+
//# sourceMappingURL=index.mjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,mBAAmB,mCAAuC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
6
|
+
|
|
7
|
+
exports.clsx = clsx;
|
|
8
|
+
exports.default = clsx;
|
|
9
|
+
//# sourceMappingURL=clsx.mjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
6
|
+
|
|
7
|
+
exports.clsx = clsx;
|
|
8
|
+
exports.default = clsx;
|
|
9
|
+
//# sourceMappingURL=clsx.mjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
-
var
|
|
7
|
+
var index = require('../../../../../external/class-variance-authority/dist/index.mjs.js');
|
|
8
8
|
var cn = require('../../utilities/cn.js');
|
|
9
9
|
var badge_constants = require('./badge_constants.js');
|
|
10
10
|
|
|
11
11
|
var _excluded = ["className", "variant"];
|
|
12
|
-
var badgeVariants =
|
|
12
|
+
var badgeVariants = index.cva('aurora-inline-flex aurora-gap-1.5 aurora-items-center aurora-text-xs aurora-py-0.5 aurora-px-2.5 aurora-rounded-full aurora-font-semibold', {
|
|
13
13
|
variants: {
|
|
14
14
|
variant: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, badge_constants.BADGE_VARIANTS.basic, 'aurora-bg-subtle'), badge_constants.BADGE_VARIANTS.highlighted, 'aurora-bg-highlighted'), badge_constants.BADGE_VARIANTS.success, 'aurora-bg-success aurora-text-inverse'), badge_constants.BADGE_VARIANTS.successGhost, 'aurora-bg-success-subtle aurora-text-success-strong'), badge_constants.BADGE_VARIANTS.danger, 'aurora-bg-danger aurora-text-inverse'), badge_constants.BADGE_VARIANTS.dangerGhost, 'aurora-bg-danger-subtle aurora-text-danger-strong'), badge_constants.BADGE_VARIANTS.warning, 'aurora-bg-warning'), badge_constants.BADGE_VARIANTS.warningGhost, 'aurora-bg-warning-subtle aurora-text-warning-strong'), badge_constants.BADGE_VARIANTS.info, 'aurora-bg-info aurora-text-inverse'), badge_constants.BADGE_VARIANTS.infoGhost, 'aurora-bg-info-subtle aurora-text-info-strong')
|
|
15
15
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -33,7 +33,7 @@ var Box = function Box(_ref) {
|
|
|
33
33
|
var borderWidthWithSides = borderWidth;
|
|
34
34
|
var borderRadiusWithSides = borderRadius;
|
|
35
35
|
return /*#__PURE__*/React__default['default'].createElement(as, {
|
|
36
|
-
className: cn.cn('', (_cn = {}, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_cn, "aurora-bg-".concat(backgroundColor), !!backgroundColor), "aurora-text-".concat(color), !!color), "aurora-border", (!!borderColor || !!borderStyle || !!borderRadius) && !borderWidth), "aurora-border-".concat(borderColor), !!borderColor), "aurora-border-".concat(borderStyle), !!borderStyle), "aurora-border-".concat(borderWidth), !!borderWidth && typeof borderWidth === 'string'), "aurora-border-t-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.t), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.t)), "aurora-border-b-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.b), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.b)), "aurora-border-r-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.r), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.r)), "aurora-border-l-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.l), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.l)),
|
|
36
|
+
className: cn.cn('', (_cn = {}, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_cn, 'aurora-bg', !backgroundColor), "aurora-bg-".concat(backgroundColor), !!backgroundColor), "aurora-text-".concat(color), !!color), "aurora-border", (!!borderColor || !!borderStyle || !!borderRadius) && !borderWidth), "aurora-border-".concat(borderColor), !!borderColor), "aurora-border-".concat(borderStyle), !!borderStyle), "aurora-border-".concat(borderWidth), !!borderWidth && typeof borderWidth === 'string'), "aurora-border-t-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.t), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.t)), "aurora-border-b-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.b), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.b)), "aurora-border-r-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.r), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.r)), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_cn, "aurora-border-l-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.l), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.l)), "aurora-border-x-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.x), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.x)), "aurora-border-y-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.y), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.y)), "aurora-rounded-".concat(borderRadius), !!borderRadius && typeof borderRadius === 'string'), "aurora-rounded-t-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.t), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.t)), "aurora-rounded-b-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.b), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.b)), "aurora-rounded-r-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.r), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.r)), "aurora-rounded-l-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.l), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.l)), "aurora-rounded-tl-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.tl), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.tl)), "aurora-rounded-tr-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.tr), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.tr)), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_cn, "aurora-rounded-bl-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.bl), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.bl)), "aurora-rounded-br-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.br), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.br)), "aurora-rounded-ee-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.ee), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.ee)), "aurora-rounded-es-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.es), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.es)), "aurora-rounded-ss-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.ss), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.ss)), "aurora-rounded-se-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.se), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.se)), "aurora-rounded-s-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.s), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.s)), "aurora-rounded-e-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.e), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.e)), "aurora-shadow-".concat(shadow), !!shadow), "aurora-p-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.p), !!(paddings !== null && paddings !== void 0 && paddings.p)), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_cn, "aurora-pt-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pt), !!(paddings !== null && paddings !== void 0 && paddings.pt)), "aurora-pr-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pr), !!(paddings !== null && paddings !== void 0 && paddings.pr)), "aurora-pb-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pb), !!(paddings !== null && paddings !== void 0 && paddings.pb)), "aurora-pl-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pl), !!(paddings !== null && paddings !== void 0 && paddings.pl)), "aurora-px-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.px), !!(paddings !== null && paddings !== void 0 && paddings.px)), "aurora-py-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.py), !!(paddings !== null && paddings !== void 0 && paddings.py)), "aurora-ps-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.ps), !!(paddings !== null && paddings !== void 0 && paddings.ps)), "aurora-pe-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pe), !!(paddings !== null && paddings !== void 0 && paddings.pe)), "aurora-".concat(position), !!position))),
|
|
37
37
|
style: {
|
|
38
38
|
zIndex: zIndex,
|
|
39
39
|
width: width,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
-
var
|
|
7
|
+
var index = require('../../../../../external/class-variance-authority/dist/index.mjs.js');
|
|
8
8
|
var css_border_color_tokens = require('../../constants/css_tokens/css_border_color_tokens.js');
|
|
9
9
|
var css_border_width_tokens = require('../../constants/css_tokens/css_border_width_tokens.js');
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
|
|
15
|
-
var dividerVariants =
|
|
15
|
+
var dividerVariants = index.cva('', {
|
|
16
16
|
variants: {
|
|
17
17
|
width: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, css_border_width_tokens.CSS_BORDER_WIDTH_TOKENS['0'], 'aurora-border-0'), css_border_width_tokens.CSS_BORDER_WIDTH_TOKENS['1'], 'aurora-border-1'), css_border_width_tokens.CSS_BORDER_WIDTH_TOKENS['2'], 'aurora-border-2'), css_border_width_tokens.CSS_BORDER_WIDTH_TOKENS['4'], 'aurora-border-4'), css_border_width_tokens.CSS_BORDER_WIDTH_TOKENS['8'], 'aurora-border-8'),
|
|
18
18
|
color: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, css_border_color_tokens.CSS_BORDER_COLOR_TOKENS.subtle, 'aurora-border-subtle'), css_border_color_tokens.CSS_BORDER_COLOR_TOKENS.strong, 'aurora-border-strong'), css_border_color_tokens.CSS_BORDER_COLOR_TOKENS.transparent, 'aurora-border-transparent')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
-
var
|
|
7
|
+
var index = require('../../../../../../external/class-variance-authority/dist/index.mjs.js');
|
|
8
8
|
var cn = require('../../../utilities/cn.js');
|
|
9
9
|
var use_sidebar = require('../hooks/use_sidebar.js');
|
|
10
10
|
var sidebar_constants = require('../sidebar_constants.js');
|
|
11
11
|
var chevron_left_icon = require('../../../assets/icons/chevron_left_icon.js');
|
|
12
12
|
var css_color_tokens_values = require('../../../constants/css_tokens/css_color_tokens_values.js');
|
|
13
13
|
|
|
14
|
-
var triggerVariants =
|
|
14
|
+
var triggerVariants = index.cva('aurora-border-solid aurora-border-subtle aurora-bg aurora-py-1 aurora-absolute aurora-top-11 ', {
|
|
15
15
|
variants: {
|
|
16
16
|
side: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, sidebar_constants.SIDEBAR_SIDE.left, '-aurora-right-6 aurora-rounded-tr-2 aurora-rounded-br-2 aurora-border-r aurora-border-t aurora-border-b'), sidebar_constants.SIDEBAR_SIDE.right, '-aurora-left-6 aurora-rounded-tl-2 aurora-rounded-bl-2 aurora-border-l aurora-border-t aurora-border-b')
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,uEAA2E;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
+
var sidebar_context = require('./sidebar_context.js');
|
|
8
|
+
|
|
9
|
+
var _excluded = ["onToggle", "open", "className", "style", "children", "persistentKey"];
|
|
10
|
+
var SidebarProvider = function SidebarProvider(_ref) {
|
|
11
|
+
var onToggle = _ref.onToggle,
|
|
12
|
+
_ref$open = _ref.open,
|
|
13
|
+
openProp = _ref$open === void 0 ? true : _ref$open,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
style = _ref.style,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
persistentKey = _ref.persistentKey,
|
|
18
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
var setPersistedState = function setPersistedState(value) {
|
|
20
|
+
if (!persistentKey) return;
|
|
21
|
+
try {
|
|
22
|
+
localStorage.setItem(persistentKey, String(value));
|
|
23
|
+
} catch (error) {
|
|
24
|
+
console.error('Failed to set persisted state', error);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var _React$useState = React.useState(openProp),
|
|
28
|
+
_React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
|
|
29
|
+
_open = _React$useState2[0],
|
|
30
|
+
_setOpen = _React$useState2[1];
|
|
31
|
+
React.useEffect(function () {
|
|
32
|
+
if (openProp !== undefined && openProp !== _open) setOpen(openProp);
|
|
33
|
+
}, [openProp]);
|
|
34
|
+
React.useEffect(function () {
|
|
35
|
+
setPersistedState(_open);
|
|
36
|
+
}, []);
|
|
37
|
+
var setOpen = function setOpen(open) {
|
|
38
|
+
var nextValue = typeof open === 'function' ? open(_open) : open;
|
|
39
|
+
onToggle === null || onToggle === void 0 ? void 0 : onToggle(nextValue);
|
|
40
|
+
_setOpen(nextValue);
|
|
41
|
+
setPersistedState(nextValue);
|
|
42
|
+
};
|
|
43
|
+
var toggleSidebar = function toggleSidebar() {
|
|
44
|
+
setOpen(function (open) {
|
|
45
|
+
return !open;
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
var contextValue = React.useMemo(function () {
|
|
49
|
+
return {
|
|
50
|
+
open: _open,
|
|
51
|
+
toggleSidebar: toggleSidebar
|
|
52
|
+
};
|
|
53
|
+
}, [open, toggleSidebar]);
|
|
54
|
+
return /*#__PURE__*/React.createElement(sidebar_context.SidebarContext.Provider, {
|
|
55
|
+
value: contextValue
|
|
56
|
+
}, /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.objectSpread2({
|
|
57
|
+
style: style
|
|
58
|
+
}, props), children));
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.SidebarProvider = SidebarProvider;
|
|
62
|
+
//# sourceMappingURL=sidebar_prvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
-
var
|
|
7
|
+
var index = require('../../../../../external/class-variance-authority/dist/index.mjs.js');
|
|
8
8
|
var cn = require('../../utilities/cn.js');
|
|
9
9
|
var stack_constants = require('./stack_constants.js');
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
|
|
15
|
-
var stackVariants =
|
|
15
|
+
var stackVariants = index.cva('aurora-flex', {
|
|
16
16
|
variants: {
|
|
17
17
|
direction: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, stack_constants.STACK_DIRECTION_TYPES.row, 'aurora-flex-row'), stack_constants.STACK_DIRECTION_TYPES.column, 'aurora-flex-col'), stack_constants.STACK_DIRECTION_TYPES.rowReverse, 'aurora-flex-row-reverse'), stack_constants.STACK_DIRECTION_TYPES.columnReverse, 'aurora-flex-col-reverse'),
|
|
18
18
|
wrap: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, stack_constants.STACK_WRAP_TYPES.wrap, 'aurora-flex-wrap'), stack_constants.STACK_WRAP_TYPES.nowrap, 'aurora-flex-nowrap'), stack_constants.STACK_WRAP_TYPES.wrapReverse, 'aurora-flex-wrap-reverse'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
-
var
|
|
7
|
+
var index = require('../../../../../external/class-variance-authority/dist/index.mjs.js');
|
|
8
8
|
var cn = require('../../utilities/cn.js');
|
|
9
9
|
var typography_constants = require('./typography_constants.js');
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
|
|
15
|
-
var typographyVariants =
|
|
15
|
+
var typographyVariants = index.cva('', {
|
|
16
16
|
variants: {
|
|
17
17
|
variant: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, typography_constants.TYPOGRAPHY_COMPONENT_TYPES.h1, 'aurora-text-6xl aurora-font-bold aurora-tracking-4xs'), typography_constants.TYPOGRAPHY_COMPONENT_TYPES.h2, 'aurora-text-5xl aurora-font-bold aurora-tracking-3xs'), typography_constants.TYPOGRAPHY_COMPONENT_TYPES.h3, 'aurora-text-4xl aurora-font-bold aurora-tracking-2xs'), typography_constants.TYPOGRAPHY_COMPONENT_TYPES.h4, 'aurora-text-3xl aurora-font-bold aurora-tracking-xs'), typography_constants.TYPOGRAPHY_COMPONENT_TYPES.h5, 'aurora-text-2xl aurora-font-bold aurora-tracking-s'), typography_constants.TYPOGRAPHY_COMPONENT_TYPES.h6, 'aurora-text-xl aurora-font-bold'), typography_constants.TYPOGRAPHY_COMPONENT_TYPES.p, 'aurora-text-xs'),
|
|
18
18
|
transform: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, typography_constants.TYPOGRAPHY_TRANSFORM_TYPES.uppercase, 'aurora-uppercase'), typography_constants.TYPOGRAPHY_TRANSFORM_TYPES.lowercase, 'aurora-lowercase'), typography_constants.TYPOGRAPHY_TRANSFORM_TYPES.capitalize, 'aurora-capitalize'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -8,8 +8,10 @@ var box_constants = require('./components/box/box_constants.js');
|
|
|
8
8
|
var box = require('./components/box/box.js');
|
|
9
9
|
var typography_constants = require('./components/typography/typography_constants.js');
|
|
10
10
|
var typography = require('./components/typography/typography.js');
|
|
11
|
+
var use_sidebar = require('./components/sidebar/hooks/use_sidebar.js');
|
|
11
12
|
var sidebar_constants = require('./components/sidebar/sidebar_constants.js');
|
|
12
13
|
var sidebar = require('./components/sidebar/sidebar.js');
|
|
14
|
+
var sidebar_prvider = require('./components/sidebar/context/sidebar_prvider.js');
|
|
13
15
|
var divider = require('./components/divider/divider.js');
|
|
14
16
|
var stack_constants = require('./components/stack/stack_constants.js');
|
|
15
17
|
var stack = require('./components/stack/stack.js');
|
|
@@ -24,8 +26,10 @@ exports.TYPOGRAPHY_COMPONENT_TYPES = typography_constants.TYPOGRAPHY_COMPONENT_T
|
|
|
24
26
|
exports.TYPOGRAPHY_TRANSFORM_TYPES = typography_constants.TYPOGRAPHY_TRANSFORM_TYPES;
|
|
25
27
|
exports.TYPOGRAPHY_WEIGHT_TYPES = typography_constants.TYPOGRAPHY_WEIGHT_TYPES;
|
|
26
28
|
exports.Typography = typography.Typography;
|
|
29
|
+
exports.useSidebar = use_sidebar.useSidebar;
|
|
27
30
|
exports.SIDEBAR_SIDE = sidebar_constants.SIDEBAR_SIDE;
|
|
28
31
|
exports.Sidebar = sidebar.Sidebar;
|
|
32
|
+
exports.SidebarProvider = sidebar_prvider.SidebarProvider;
|
|
29
33
|
exports.Divider = divider.Divider;
|
|
30
34
|
exports.STACK_ALIGN_ITEMS_TYPES = stack_constants.STACK_ALIGN_ITEMS_TYPES;
|
|
31
35
|
exports.STACK_DIRECTION_TYPES = stack_constants.STACK_DIRECTION_TYPES;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var clsx = require('clsx');
|
|
5
|
+
var clsx = require('../../../../external/clsx/dist/clsx.mjs.js');
|
|
6
6
|
var bundleCjs = require('../../../../external/tailwind-merge/dist/bundle-cjs.js');
|
|
7
7
|
|
|
8
8
|
function cn() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,mBAAmB,4CAAgD;AACnE,wBAAwB,wDAA4D;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { clsx } from '../external/clsx/dist/clsx.mjs.js';
|
|
2
|
+
|
|
3
|
+
const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
4
|
+
const cx = clsx;
|
|
5
|
+
const cva = (base, config)=>{
|
|
6
|
+
return (props)=>{
|
|
7
|
+
var ref;
|
|
8
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
9
|
+
const { variants , defaultVariants } = config;
|
|
10
|
+
const getVariantClassNames = Object.keys(variants).map((variant)=>{
|
|
11
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
12
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
13
|
+
if (variantProp === null) return null;
|
|
14
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
15
|
+
return variants[variant][variantKey];
|
|
16
|
+
});
|
|
17
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
|
|
18
|
+
let [key, value] = param;
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return acc;
|
|
21
|
+
}
|
|
22
|
+
acc[key] = value;
|
|
23
|
+
return acc;
|
|
24
|
+
}, {});
|
|
25
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
|
|
26
|
+
let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
|
|
27
|
+
return Object.entries(compoundVariantOptions).every((param)=>{
|
|
28
|
+
let [key, value] = param;
|
|
29
|
+
return Array.isArray(value) ? value.includes({
|
|
30
|
+
...defaultVariants,
|
|
31
|
+
...propsWithoutUndefined
|
|
32
|
+
}[key]) : ({
|
|
33
|
+
...defaultVariants,
|
|
34
|
+
...propsWithoutUndefined
|
|
35
|
+
})[key] === value;
|
|
36
|
+
}) ? [
|
|
37
|
+
...acc,
|
|
38
|
+
cvClass,
|
|
39
|
+
cvClassName
|
|
40
|
+
] : acc;
|
|
41
|
+
}, []);
|
|
42
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { cva, cx };
|
|
47
|
+
//# sourceMappingURL=index.mjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,qBAAqB,mCAAuC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2
|
+
|
|
3
|
+
export default clsx;
|
|
4
|
+
export { clsx };
|
|
5
|
+
//# sourceMappingURL=clsx.mjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2
|
+
|
|
3
|
+
export default clsx;
|
|
4
|
+
export { clsx };
|
|
5
|
+
//# sourceMappingURL=clsx.mjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement } from 'react';
|
|
2
2
|
import { defineProperty as _defineProperty, objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cva } from '../../../../../external/class-variance-authority/dist/index.mjs.js';
|
|
4
4
|
import { cn } from '../../utilities/cn.js';
|
|
5
5
|
import { BADGE_VARIANTS } from './badge_constants.js';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -25,7 +25,7 @@ var Box = function Box(_ref) {
|
|
|
25
25
|
var borderWidthWithSides = borderWidth;
|
|
26
26
|
var borderRadiusWithSides = borderRadius;
|
|
27
27
|
return /*#__PURE__*/React.createElement(as, {
|
|
28
|
-
className: cn('', (_cn = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cn, "aurora-bg-".concat(backgroundColor), !!backgroundColor), "aurora-text-".concat(color), !!color), "aurora-border", (!!borderColor || !!borderStyle || !!borderRadius) && !borderWidth), "aurora-border-".concat(borderColor), !!borderColor), "aurora-border-".concat(borderStyle), !!borderStyle), "aurora-border-".concat(borderWidth), !!borderWidth && typeof borderWidth === 'string'), "aurora-border-t-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.t), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.t)), "aurora-border-b-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.b), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.b)), "aurora-border-r-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.r), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.r)), "aurora-border-l-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.l), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.l)),
|
|
28
|
+
className: cn('', (_cn = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cn, 'aurora-bg', !backgroundColor), "aurora-bg-".concat(backgroundColor), !!backgroundColor), "aurora-text-".concat(color), !!color), "aurora-border", (!!borderColor || !!borderStyle || !!borderRadius) && !borderWidth), "aurora-border-".concat(borderColor), !!borderColor), "aurora-border-".concat(borderStyle), !!borderStyle), "aurora-border-".concat(borderWidth), !!borderWidth && typeof borderWidth === 'string'), "aurora-border-t-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.t), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.t)), "aurora-border-b-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.b), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.b)), "aurora-border-r-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.r), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.r)), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cn, "aurora-border-l-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.l), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.l)), "aurora-border-x-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.x), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.x)), "aurora-border-y-".concat(borderWidthWithSides === null || borderWidthWithSides === void 0 ? void 0 : borderWidthWithSides.y), !!(borderWidthWithSides !== null && borderWidthWithSides !== void 0 && borderWidthWithSides.y)), "aurora-rounded-".concat(borderRadius), !!borderRadius && typeof borderRadius === 'string'), "aurora-rounded-t-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.t), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.t)), "aurora-rounded-b-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.b), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.b)), "aurora-rounded-r-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.r), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.r)), "aurora-rounded-l-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.l), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.l)), "aurora-rounded-tl-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.tl), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.tl)), "aurora-rounded-tr-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.tr), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.tr)), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cn, "aurora-rounded-bl-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.bl), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.bl)), "aurora-rounded-br-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.br), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.br)), "aurora-rounded-ee-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.ee), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.ee)), "aurora-rounded-es-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.es), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.es)), "aurora-rounded-ss-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.ss), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.ss)), "aurora-rounded-se-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.se), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.se)), "aurora-rounded-s-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.s), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.s)), "aurora-rounded-e-".concat(borderRadiusWithSides === null || borderRadiusWithSides === void 0 ? void 0 : borderRadiusWithSides.e), !!(borderRadiusWithSides !== null && borderRadiusWithSides !== void 0 && borderRadiusWithSides.e)), "aurora-shadow-".concat(shadow), !!shadow), "aurora-p-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.p), !!(paddings !== null && paddings !== void 0 && paddings.p)), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cn, "aurora-pt-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pt), !!(paddings !== null && paddings !== void 0 && paddings.pt)), "aurora-pr-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pr), !!(paddings !== null && paddings !== void 0 && paddings.pr)), "aurora-pb-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pb), !!(paddings !== null && paddings !== void 0 && paddings.pb)), "aurora-pl-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pl), !!(paddings !== null && paddings !== void 0 && paddings.pl)), "aurora-px-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.px), !!(paddings !== null && paddings !== void 0 && paddings.px)), "aurora-py-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.py), !!(paddings !== null && paddings !== void 0 && paddings.py)), "aurora-ps-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.ps), !!(paddings !== null && paddings !== void 0 && paddings.ps)), "aurora-pe-".concat(paddings === null || paddings === void 0 ? void 0 : paddings.pe), !!(paddings !== null && paddings !== void 0 && paddings.pe)), "aurora-".concat(position), !!position))),
|
|
29
29
|
style: {
|
|
30
30
|
zIndex: zIndex,
|
|
31
31
|
width: width,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cva } from '../../../../../external/class-variance-authority/dist/index.mjs.js';
|
|
4
4
|
import { CSS_BORDER_COLOR_TOKENS } from '../../constants/css_tokens/css_border_color_tokens.js';
|
|
5
5
|
import { CSS_BORDER_WIDTH_TOKENS } from '../../constants/css_tokens/css_border_width_tokens.js';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement } from 'react';
|
|
2
2
|
import { defineProperty as _defineProperty } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cva } from '../../../../../../external/class-variance-authority/dist/index.mjs.js';
|
|
4
4
|
import { cn } from '../../../utilities/cn.js';
|
|
5
5
|
import { useSidebar } from '../hooks/use_sidebar.js';
|
|
6
6
|
import { SIDEBAR_SIDE } from '../sidebar_constants.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,oBAAoB,uEAA2E;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,37 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import '
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { useState, useEffect, useMemo, createElement } from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { SidebarContext } from './sidebar_context.js';
|
|
4
|
+
|
|
5
|
+
var _excluded = ["onToggle", "open", "className", "style", "children", "persistentKey"];
|
|
6
|
+
var SidebarProvider = function SidebarProvider(_ref) {
|
|
7
|
+
var onToggle = _ref.onToggle,
|
|
8
|
+
_ref$open = _ref.open,
|
|
9
|
+
openProp = _ref$open === void 0 ? true : _ref$open,
|
|
10
|
+
className = _ref.className,
|
|
11
|
+
style = _ref.style,
|
|
12
|
+
children = _ref.children,
|
|
13
|
+
persistentKey = _ref.persistentKey,
|
|
14
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
var setPersistedState = function setPersistedState(value) {
|
|
16
|
+
if (!persistentKey) return;
|
|
17
|
+
try {
|
|
18
|
+
localStorage.setItem(persistentKey, String(value));
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.error('Failed to set persisted state', error);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var _React$useState = useState(openProp),
|
|
24
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
25
|
+
_open = _React$useState2[0],
|
|
26
|
+
_setOpen = _React$useState2[1];
|
|
27
|
+
useEffect(function () {
|
|
28
|
+
if (openProp !== undefined && openProp !== _open) setOpen(openProp);
|
|
29
|
+
}, [openProp]);
|
|
30
|
+
useEffect(function () {
|
|
31
|
+
setPersistedState(_open);
|
|
32
|
+
}, []);
|
|
33
|
+
var setOpen = function setOpen(open) {
|
|
34
|
+
var nextValue = typeof open === 'function' ? open(_open) : open;
|
|
35
|
+
onToggle === null || onToggle === void 0 ? void 0 : onToggle(nextValue);
|
|
36
|
+
_setOpen(nextValue);
|
|
37
|
+
setPersistedState(nextValue);
|
|
38
|
+
};
|
|
39
|
+
var toggleSidebar = function toggleSidebar() {
|
|
40
|
+
setOpen(function (open) {
|
|
41
|
+
return !open;
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var contextValue = useMemo(function () {
|
|
45
|
+
return {
|
|
46
|
+
open: _open,
|
|
47
|
+
toggleSidebar: toggleSidebar
|
|
15
48
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const nextValue = typeof open === 'function' ? open(_open) : open;
|
|
23
|
-
onToggle?.(nextValue);
|
|
24
|
-
_setOpen(nextValue);
|
|
25
|
-
setPersistedState(nextValue);
|
|
26
|
-
};
|
|
27
|
-
const toggleSidebar = () => {
|
|
28
|
-
setOpen((open) => !open);
|
|
29
|
-
};
|
|
30
|
-
const contextValue = React.useMemo(() => ({
|
|
31
|
-
open: _open,
|
|
32
|
-
toggleSidebar
|
|
33
|
-
}), [open, toggleSidebar]);
|
|
34
|
-
return (React.createElement(SidebarContext.Provider, { value: contextValue },
|
|
35
|
-
React.createElement("div", { style: style, ...props }, children)));
|
|
49
|
+
}, [open, toggleSidebar]);
|
|
50
|
+
return /*#__PURE__*/createElement(SidebarContext.Provider, {
|
|
51
|
+
value: contextValue
|
|
52
|
+
}, /*#__PURE__*/createElement("div", _objectSpread2({
|
|
53
|
+
style: style
|
|
54
|
+
}, props), children));
|
|
36
55
|
};
|
|
37
|
-
|
|
56
|
+
|
|
57
|
+
export { SidebarProvider };
|
|
58
|
+
//# sourceMappingURL=sidebar_prvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef, useImperativeHandle, useEffect } from 'react';
|
|
2
2
|
import { defineProperty as _defineProperty, slicedToArray as _slicedToArray } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cva } from '../../../../../external/class-variance-authority/dist/index.mjs.js';
|
|
4
4
|
import { cn } from '../../utilities/cn.js';
|
|
5
5
|
import { STACK_DIRECTION_TYPES, STACK_WRAP_TYPES, STACK_ALIGN_ITEMS_TYPES, STACK_JUSTIFY_CONTENT_TYPES } from './stack_constants.js';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cva } from '../../../../../external/class-variance-authority/dist/index.mjs.js';
|
|
4
4
|
import { cn } from '../../utilities/cn.js';
|
|
5
5
|
import { TYPOGRAPHY_COMPONENT_TYPES, TYPOGRAPHY_TRANSFORM_TYPES, TYPOGRAPHY_WEIGHT_TYPES } from './typography_constants.js';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -6,6 +6,8 @@ export { BOX_COMPONENT_TYPES } from "./components/box/box_constants";
|
|
|
6
6
|
export { Typography } from './components/typography/typography';
|
|
7
7
|
export { TYPOGRAPHY_TRANSFORM_TYPES, TYPOGRAPHY_COMPONENT_TYPES, TYPOGRAPHY_WEIGHT_TYPES } from "./components/typography/typography_constants";
|
|
8
8
|
export { Sidebar } from './components/sidebar/sidebar';
|
|
9
|
+
export { SidebarProvider } from "./components/sidebar/context/sidebar_prvider";
|
|
10
|
+
export { useSidebar } from './components/sidebar/hooks/use_sidebar';
|
|
9
11
|
export { SIDEBAR_SIDE } from "./components/sidebar/sidebar_constants";
|
|
10
12
|
export { Divider } from './components/divider/divider';
|
|
11
13
|
export { Stack } from './components/stack/stack';
|
|
@@ -4,8 +4,10 @@ export { BOX_COMPONENT_TYPES } from './components/box/box_constants.js';
|
|
|
4
4
|
export { Box } from './components/box/box.js';
|
|
5
5
|
export { TYPOGRAPHY_COMPONENT_TYPES, TYPOGRAPHY_TRANSFORM_TYPES, TYPOGRAPHY_WEIGHT_TYPES } from './components/typography/typography_constants.js';
|
|
6
6
|
export { Typography } from './components/typography/typography.js';
|
|
7
|
+
export { useSidebar } from './components/sidebar/hooks/use_sidebar.js';
|
|
7
8
|
export { SIDEBAR_SIDE } from './components/sidebar/sidebar_constants.js';
|
|
8
9
|
export { Sidebar } from './components/sidebar/sidebar.js';
|
|
10
|
+
export { SidebarProvider } from './components/sidebar/context/sidebar_prvider.js';
|
|
9
11
|
export { Divider } from './components/divider/divider.js';
|
|
10
12
|
export { STACK_ALIGN_ITEMS_TYPES, STACK_DIRECTION_TYPES, STACK_JUSTIFY_CONTENT_TYPES, STACK_WRAP_TYPES } from './components/stack/stack_constants.js';
|
|
11
13
|
export { Stack } from './components/stack/stack.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,qBAAqB,4CAAgD;AACrE,sBAAsB,wDAA4D;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|