@dreamcommerce/aurora 3.0.0-180 → 3.0.0-182

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.
@@ -6,7 +6,7 @@ var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBa
6
6
  var index = require('../../../../../external/class-variance-authority/dist/index.mjs.js');
7
7
  var message_box_constants = require('./message_box_constants.js');
8
8
 
9
- var messageBoxVariants = index.cva('aurora-p-2 aurora-border aurora-text-s aurora-relative aurora-flex aurora-items-center aurora-justify-center', {
9
+ var messageBoxVariants = index.cva('aurora-p-2 aurora-border aurora-text-xs aurora-relative aurora-flex aurora-items-center aurora-justify-center', {
10
10
  variants: {
11
11
  variant: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, message_box_constants.MESSAGE_BOX_VARIANTS.info, 'aurora-bg-primary-subtle aurora-border-info'), message_box_constants.MESSAGE_BOX_VARIANTS.warning, 'aurora-bg-warning-subtle aurora-border-focus'), message_box_constants.MESSAGE_BOX_VARIANTS.success, 'aurora-bg-success-subtle aurora-border-success'), message_box_constants.MESSAGE_BOX_VARIANTS.critical, 'aurora-bg-danger-subtle aurora-border-danger'), message_box_constants.MESSAGE_BOX_VARIANTS.subtle, 'aurora-bg')
12
12
  },
@@ -12,9 +12,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
 
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
 
15
- var _excluded = ["className", "width", "children", "TriggerButton", "side", "onScroll", "onClickOutside"];
15
+ var _excluded = ["wrapperClassName", "contentClassName", "width", "children", "TriggerButton", "side", "onScroll", "onClickOutside"];
16
16
  var PersistentSidebar = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
17
- var className = _ref.className,
17
+ var wrapperClassName = _ref.wrapperClassName,
18
+ contentClassName = _ref.contentClassName,
18
19
  width = _ref.width,
19
20
  children = _ref.children,
20
21
  TriggerButton = _ref.TriggerButton,
@@ -46,7 +47,7 @@ var PersistentSidebar = /*#__PURE__*/React__default['default'].forwardRef(functi
46
47
  });
47
48
  return /*#__PURE__*/React__default['default'].createElement("aside", _rollupPluginBabelHelpers.objectSpread2({
48
49
  "aria-expanded": open,
49
- className: cn.cn('aurora-relative aurora-transition-all aurora-duration-200'),
50
+ className: cn.cn('aurora-relative aurora-transition-all aurora-duration-200', wrapperClassName),
50
51
  style: {
51
52
  width: open ? width : 0,
52
53
  maxWidth: open ? width : 0,
@@ -55,7 +56,7 @@ var PersistentSidebar = /*#__PURE__*/React__default['default'].forwardRef(functi
55
56
  }, props), TriggerButton ? TriggerButton : null, /*#__PURE__*/React__default['default'].createElement("div", {
56
57
  onScroll: onScroll,
57
58
  ref: sidebarRef,
58
- className: cn.cn('aurora-overflow-auto aurora-h-full aurora-w-full custom-scrollbar', className)
59
+ className: cn.cn('aurora-overflow-auto aurora-h-full aurora-w-full custom-scrollbar', contentClassName)
59
60
  }, children));
60
61
  });
61
62
  PersistentSidebar.displayName = 'PersistentSidebar';
@@ -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;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;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 @@ import { defineProperty as _defineProperty } from '../../../../../_virtual/_roll
2
2
  import { cva } from '../../../../../external/class-variance-authority/dist/index.mjs.js';
3
3
  import { MESSAGE_BOX_VARIANTS } from './message_box_constants.js';
4
4
 
5
- var messageBoxVariants = cva('aurora-p-2 aurora-border aurora-text-s aurora-relative aurora-flex aurora-items-center aurora-justify-center', {
5
+ var messageBoxVariants = cva('aurora-p-2 aurora-border aurora-text-xs aurora-relative aurora-flex aurora-items-center aurora-justify-center', {
6
6
  variants: {
7
7
  variant: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, MESSAGE_BOX_VARIANTS.info, 'aurora-bg-primary-subtle aurora-border-info'), MESSAGE_BOX_VARIANTS.warning, 'aurora-bg-warning-subtle aurora-border-focus'), MESSAGE_BOX_VARIANTS.success, 'aurora-bg-success-subtle aurora-border-success'), MESSAGE_BOX_VARIANTS.critical, 'aurora-bg-danger-subtle aurora-border-danger'), MESSAGE_BOX_VARIANTS.subtle, 'aurora-bg')
8
8
  },
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  export declare const PersistentSidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
3
3
  width?: string | undefined;
4
- className?: string | undefined;
4
+ wrapperClassName?: string | undefined;
5
+ contentClassName?: string | undefined;
5
6
  side?: "left" | "right" | undefined;
6
7
  TriggerButton?: React.ReactNode;
7
8
  onClickOutside?: import("../sidebar_types_types").TSidebarOnClickOutside | undefined;
@@ -4,9 +4,10 @@ import { cn } from '../../../utilities/cn.js';
4
4
  import { useClickOutside } from '../../../hooks/use_click_outside.js';
5
5
  import { useSidebar } from '../hooks/use_sidebar.js';
6
6
 
7
- var _excluded = ["className", "width", "children", "TriggerButton", "side", "onScroll", "onClickOutside"];
7
+ var _excluded = ["wrapperClassName", "contentClassName", "width", "children", "TriggerButton", "side", "onScroll", "onClickOutside"];
8
8
  var PersistentSidebar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
9
- var className = _ref.className,
9
+ var wrapperClassName = _ref.wrapperClassName,
10
+ contentClassName = _ref.contentClassName,
10
11
  width = _ref.width,
11
12
  children = _ref.children,
12
13
  TriggerButton = _ref.TriggerButton,
@@ -38,7 +39,7 @@ var PersistentSidebar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
38
39
  });
39
40
  return /*#__PURE__*/React.createElement("aside", _objectSpread2({
40
41
  "aria-expanded": open,
41
- className: cn('aurora-relative aurora-transition-all aurora-duration-200'),
42
+ className: cn('aurora-relative aurora-transition-all aurora-duration-200', wrapperClassName),
42
43
  style: {
43
44
  width: open ? width : 0,
44
45
  maxWidth: open ? width : 0,
@@ -47,7 +48,7 @@ var PersistentSidebar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
47
48
  }, props), TriggerButton ? TriggerButton : null, /*#__PURE__*/React.createElement("div", {
48
49
  onScroll: onScroll,
49
50
  ref: sidebarRef,
50
- className: cn('aurora-overflow-auto aurora-h-full aurora-w-full custom-scrollbar', className)
51
+ className: cn('aurora-overflow-auto aurora-h-full aurora-w-full custom-scrollbar', contentClassName)
51
52
  }, children));
52
53
  });
53
54
  PersistentSidebar.displayName = 'PersistentSidebar';
@@ -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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  import { TSidebarOnClickOutside, TSidebarSide } from "../sidebar_types_types";
3
3
  export declare type TPersistentSidebarProps = {
4
4
  width?: string;
5
- className?: string;
5
+ wrapperClassName?: string;
6
+ contentClassName?: string;
6
7
  side?: TSidebarSide;
7
8
  TriggerButton?: React.ReactNode;
8
9
  onClickOutside?: TSidebarOnClickOutside;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "3.0.0-180",
5
+ "version": "3.0.0-182",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",