@dreamcommerce/aurora 3.1.61 → 3.1.62-1

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.
Files changed (19) hide show
  1. package/build/cjs/packages/aurora/src/components/divider/divider_variants.js +1 -1
  2. package/build/cjs/packages/aurora/src/components/input/input.js +4 -7
  3. package/build/cjs/packages/aurora/src/components/input/input.js.map +1 -1
  4. package/build/cjs/packages/aurora/src/components/input/input_variants.js +1 -11
  5. package/build/cjs/packages/aurora/src/components/input/input_variants.js.map +1 -1
  6. package/build/cjs/packages/aurora/src/components/slider/components/slider_input.js +0 -1
  7. package/build/cjs/packages/aurora/src/components/slider/components/slider_input.js.map +1 -1
  8. package/build/esm/packages/aurora/src/components/divider/divider_variants.js +1 -1
  9. package/build/esm/packages/aurora/src/components/input/input.js +4 -7
  10. package/build/esm/packages/aurora/src/components/input/input.js.map +1 -1
  11. package/build/esm/packages/aurora/src/components/input/input_types.d.ts +2 -2
  12. package/build/esm/packages/aurora/src/components/input/input_types.js +1 -1
  13. package/build/esm/packages/aurora/src/components/input/input_types.js.map +1 -1
  14. package/build/esm/packages/aurora/src/components/input/input_variants.d.ts +1 -3
  15. package/build/esm/packages/aurora/src/components/input/input_variants.js +1 -11
  16. package/build/esm/packages/aurora/src/components/input/input_variants.js.map +1 -1
  17. package/build/esm/packages/aurora/src/components/slider/components/slider_input.js +0 -1
  18. package/build/esm/packages/aurora/src/components/slider/components/slider_input.js.map +1 -1
  19. package/package.json +1 -1
@@ -10,7 +10,7 @@ var divider_constants = require('./divider_constants.js');
10
10
  var dividerVariants = index.cva('', {
11
11
  variants: {
12
12
  thickness: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, divider_constants.DIVIDER_THICKNESS['1'], ''), divider_constants.DIVIDER_THICKNESS['2'], ''), divider_constants.DIVIDER_THICKNESS['4'], ''), divider_constants.DIVIDER_THICKNESS['8'], ''),
13
- variant: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, divider_constants.DIVIDER_VARIANTS.default, "aurora-bg-neutral-200"), divider_constants.DIVIDER_VARIANTS.subtle, "aurora-bg-neutral-100"), divider_constants.DIVIDER_VARIANTS.strong, 'aurora-bg--neutral-500'), divider_constants.DIVIDER_VARIANTS.transparent, 'aurora-bg-transparent'),
13
+ variant: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, divider_constants.DIVIDER_VARIANTS.default, "aurora-bg-neutral-200"), divider_constants.DIVIDER_VARIANTS.subtle, "aurora-bg-neutral-100"), divider_constants.DIVIDER_VARIANTS.strong, 'aurora-bg-neutral-500'), divider_constants.DIVIDER_VARIANTS.transparent, 'aurora-bg-transparent'),
14
14
  orientation: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, divider_constants.DIVIDER_ORIENTATION.horizontal, 'aurora-w-full'), divider_constants.DIVIDER_ORIENTATION.vertical, 'aurora-h-full')
15
15
  },
16
16
  compoundVariants: [{
@@ -11,12 +11,13 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
 
12
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
13
 
14
- var _excluded = ["preElement", "postElement", "errors", "className", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "inputSize", "onChange", "onKeyDown", "onKeyUp"];
14
+ var _excluded = ["preElement", "postElement", "errors", "className", "inputClassName", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "onChange", "onKeyDown", "onKeyUp"];
15
15
  var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
16
16
  var preElement = _ref.preElement,
17
17
  postElement = _ref.postElement,
18
18
  errors = _ref.errors,
19
19
  className = _ref.className,
20
+ inputClassName = _ref.inputClassName,
20
21
  id = _ref.id,
21
22
  name = _ref.name,
22
23
  value = _ref.value,
@@ -27,8 +28,6 @@ var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, re
27
28
  readOnly = _ref.readOnly,
28
29
  type = _ref.type,
29
30
  hasCursorPointer = _ref.hasCursorPointer,
30
- _ref$inputSize = _ref.inputSize,
31
- inputSize = _ref$inputSize === void 0 ? 'md' : _ref$inputSize,
32
31
  onChange = _ref.onChange,
33
32
  onKeyDown = _ref.onKeyDown,
34
33
  onKeyUp = _ref.onKeyUp,
@@ -54,11 +53,9 @@ var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, re
54
53
  onKeyDown: onKeyDown,
55
54
  onKeyUp: onKeyUp,
56
55
  type: type,
57
- className: cn.cn(input_variants.inputElementVariants({
58
- inputSize: inputSize
59
- }), {
56
+ className: cn.cn(input_variants.inputElementVariants(), {
60
57
  'aurora-cursor-pointer': hasCursorPointer
61
- })
58
+ }, inputClassName)
62
59
  })), postElement && /*#__PURE__*/React__default['default'].createElement("div", {
63
60
  className: "aurora-flex aurora-h-full aurora-right-0 aurora-pr-2 aurora-items-center"
64
61
  }, postElement));
@@ -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;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;AACA;"}
@@ -5,17 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var index = require('../../../../../external/class-variance-authority/dist/index.mjs.js');
6
6
 
7
7
  var inputVariants = index.cva('aurora-relative aurora-flex aurora-items-center aurora-rounded-6 focus aurora-border aurora-bg aurora-text-s aurora-placeholder-neutral-500 aurora-text aurora-border-strong hover:aurora-border-extraStrong active:aurora-border-active disabled:aurora-opacity-50 aurora-w-full');
8
- var inputElementVariants = index.cva('aurora-w-full focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6', {
9
- variants: {
10
- inputSize: {
11
- sm: 'aurora-h-6',
12
- md: 'aurora-h-10'
13
- }
14
- },
15
- defaultVariants: {
16
- inputSize: 'md'
17
- }
18
- });
8
+ var inputElementVariants = index.cva('aurora-w-full aurora-h-10 focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6');
19
9
 
20
10
  exports.inputElementVariants = inputElementVariants;
21
11
  exports.inputVariants = inputVariants;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,oEAAwE;AAC5F;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,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;AACA;"}
@@ -86,7 +86,6 @@ var SliderInput = function SliderInput(_ref) {
86
86
  onBlur: handleBlur,
87
87
  onKeyDown: handleKeyDown,
88
88
  disabled: disabled,
89
- inputSize: "md",
90
89
  postElement: postElement,
91
90
  className: "aurora-w-28 aurora-shrink-0"
92
91
  });
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,7 +6,7 @@ import { DIVIDER_THICKNESS, DIVIDER_VARIANTS, DIVIDER_ORIENTATION } from './divi
6
6
  var dividerVariants = cva('', {
7
7
  variants: {
8
8
  thickness: _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, DIVIDER_THICKNESS['1'], ''), DIVIDER_THICKNESS['2'], ''), DIVIDER_THICKNESS['4'], ''), DIVIDER_THICKNESS['8'], ''),
9
- variant: _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, DIVIDER_VARIANTS.default, "aurora-bg-neutral-200"), DIVIDER_VARIANTS.subtle, "aurora-bg-neutral-100"), DIVIDER_VARIANTS.strong, 'aurora-bg--neutral-500'), DIVIDER_VARIANTS.transparent, 'aurora-bg-transparent'),
9
+ variant: _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, DIVIDER_VARIANTS.default, "aurora-bg-neutral-200"), DIVIDER_VARIANTS.subtle, "aurora-bg-neutral-100"), DIVIDER_VARIANTS.strong, 'aurora-bg-neutral-500'), DIVIDER_VARIANTS.transparent, 'aurora-bg-transparent'),
10
10
  orientation: _defineProperty(_defineProperty({}, DIVIDER_ORIENTATION.horizontal, 'aurora-w-full'), DIVIDER_ORIENTATION.vertical, 'aurora-h-full')
11
11
  },
12
12
  compoundVariants: [{
@@ -3,12 +3,13 @@ import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _
3
3
  import { cn } from '../../utilities/cn.js';
4
4
  import { inputVariants, inputElementVariants } from './input_variants.js';
5
5
 
6
- var _excluded = ["preElement", "postElement", "errors", "className", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "inputSize", "onChange", "onKeyDown", "onKeyUp"];
6
+ var _excluded = ["preElement", "postElement", "errors", "className", "inputClassName", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "onChange", "onKeyDown", "onKeyUp"];
7
7
  var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
8
8
  var preElement = _ref.preElement,
9
9
  postElement = _ref.postElement,
10
10
  errors = _ref.errors,
11
11
  className = _ref.className,
12
+ inputClassName = _ref.inputClassName,
12
13
  id = _ref.id,
13
14
  name = _ref.name,
14
15
  value = _ref.value,
@@ -19,8 +20,6 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
19
20
  readOnly = _ref.readOnly,
20
21
  type = _ref.type,
21
22
  hasCursorPointer = _ref.hasCursorPointer,
22
- _ref$inputSize = _ref.inputSize,
23
- inputSize = _ref$inputSize === void 0 ? 'md' : _ref$inputSize,
24
23
  onChange = _ref.onChange,
25
24
  onKeyDown = _ref.onKeyDown,
26
25
  onKeyUp = _ref.onKeyUp,
@@ -46,11 +45,9 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
46
45
  onKeyDown: onKeyDown,
47
46
  onKeyUp: onKeyUp,
48
47
  type: type,
49
- className: cn(inputElementVariants({
50
- inputSize: inputSize
51
- }), {
48
+ className: cn(inputElementVariants(), {
52
49
  'aurora-cursor-pointer': hasCursorPointer
53
- })
50
+ }, inputClassName)
54
51
  })), postElement && /*#__PURE__*/React__default.createElement("div", {
55
52
  className: "aurora-flex aurora-h-full aurora-right-0 aurora-pr-2 aurora-items-center"
56
53
  }, postElement));
@@ -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;"}
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,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface TInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  preElement?: React.ReactNode;
4
4
  postElement?: React.ReactNode;
@@ -6,5 +6,5 @@ export interface TInputProps extends React.InputHTMLAttributes<HTMLInputElement>
6
6
  hasCursorPointer?: boolean;
7
7
  colorName?: string;
8
8
  primary?: boolean;
9
- inputSize?: 'sm' | 'md';
9
+ inputClassName?: string;
10
10
  }
@@ -1,2 +1,2 @@
1
- export {};
1
+ import 'react';
2
2
  //# sourceMappingURL=input_types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input_types.js","sourceRoot":"","sources":["../../../../../../../src/components/input/input_types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"input_types.js","sourceRoot":"","sources":["../../../../../../../src/components/input/input_types.ts"],"names":[],"mappings":"AAAA,OAAkB,OAAO,CAAC"}
@@ -1,4 +1,2 @@
1
1
  export declare const inputVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
- export declare const inputElementVariants: (props?: ({
3
- inputSize?: "sm" | "md" | null | undefined;
4
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
2
+ export declare const inputElementVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
@@ -1,17 +1,7 @@
1
1
  import { cva } from '../../../../../external/class-variance-authority/dist/index.mjs.js';
2
2
 
3
3
  var inputVariants = cva('aurora-relative aurora-flex aurora-items-center aurora-rounded-6 focus aurora-border aurora-bg aurora-text-s aurora-placeholder-neutral-500 aurora-text aurora-border-strong hover:aurora-border-extraStrong active:aurora-border-active disabled:aurora-opacity-50 aurora-w-full');
4
- var inputElementVariants = cva('aurora-w-full focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6', {
5
- variants: {
6
- inputSize: {
7
- sm: 'aurora-h-6',
8
- md: 'aurora-h-10'
9
- }
10
- },
11
- defaultVariants: {
12
- inputSize: 'md'
13
- }
14
- });
4
+ var inputElementVariants = cva('aurora-w-full aurora-h-10 focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6');
15
5
 
16
6
  export { inputElementVariants, inputVariants };
17
7
  //# sourceMappingURL=input_variants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,oBAAoB,oEAAwE;AAC5F;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,oBAAoB,oEAAwE;AAC5F;AACA;AACA;AACA;AACA;"}
@@ -78,7 +78,6 @@ var SliderInput = function SliderInput(_ref) {
78
78
  onBlur: handleBlur,
79
79
  onKeyDown: handleKeyDown,
80
80
  disabled: disabled,
81
- inputSize: "md",
82
81
  postElement: postElement,
83
82
  className: "aurora-w-28 aurora-shrink-0"
84
83
  });
@@ -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;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
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.1.61",
5
+ "version": "3.1.62-1",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",