@radui/ui 0.0.10 → 0.0.12

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 (39) hide show
  1. package/dist/components/Accordion/shards/AccordionContent.d.ts +10 -0
  2. package/dist/components/Accordion/shards/AccordionContent.d.ts.map +1 -0
  3. package/dist/components/Accordion/shards/AccordionHeader.d.ts +8 -0
  4. package/dist/components/Accordion/shards/AccordionHeader.d.ts.map +1 -0
  5. package/dist/components/Accordion/shards/AccordionItem.d.ts +9 -0
  6. package/dist/components/Accordion/shards/AccordionItem.d.ts.map +1 -0
  7. package/dist/components/Accordion/shards/AccordionRoot.d.ts +8 -0
  8. package/dist/components/Accordion/shards/AccordionRoot.d.ts.map +1 -0
  9. package/dist/components/Accordion/shards/AccordionTrigger.d.ts +11 -0
  10. package/dist/components/Accordion/shards/AccordionTrigger.d.ts.map +1 -0
  11. package/dist/components/Accordion.js +1 -81
  12. package/dist/components/Avatar/shards/AvatarFallback.d.ts.map +1 -0
  13. package/dist/components/Avatar/shards/AvatarImage.d.ts.map +1 -0
  14. package/dist/components/Avatar/shards/AvatarRoot.d.ts.map +1 -0
  15. package/dist/components/Avatar.js +1 -165
  16. package/dist/components/Badge.js +1 -80
  17. package/dist/components/BlockQuote.js +1 -75
  18. package/dist/components/Button.js +1 -69
  19. package/dist/components/Callout.js +1 -95
  20. package/dist/components/Code.js +1 -11
  21. package/dist/components/Dropdown.js +1 -1809
  22. package/dist/components/Em.js +1 -75
  23. package/dist/components/Heading.js +1 -80
  24. package/dist/components/Kbd.js +1 -74
  25. package/dist/components/Link.js +1 -81
  26. package/dist/components/Quote.js +1 -75
  27. package/dist/components/Separator.js +1 -33
  28. package/dist/components/Strong.js +1 -7
  29. package/dist/components/Tabs.js +1 -231
  30. package/dist/components/Text.js +1 -80
  31. package/dist/components/TextArea.js +1 -9
  32. package/dist/components/Tooltip.js +1 -58
  33. package/package.json +14 -3
  34. package/dist/components/AvatarFallback.d.ts.map +0 -1
  35. package/dist/components/AvatarImage.d.ts.map +0 -1
  36. package/dist/components/AvatarRoot.d.ts.map +0 -1
  37. /package/dist/components/{AvatarFallback.d.ts → Avatar/shards/AvatarFallback.d.ts} +0 -0
  38. /package/dist/components/{AvatarImage.d.ts → Avatar/shards/AvatarImage.d.ts} +0 -0
  39. /package/dist/components/{AvatarRoot.d.ts → Avatar/shards/AvatarRoot.d.ts} +0 -0
@@ -1,75 +1 @@
1
- 'use client';
2
- import React from 'react';
3
-
4
- function _extends() {
5
- _extends = Object.assign ? Object.assign.bind() : function (target) {
6
- for (var i = 1; i < arguments.length; i++) {
7
- var source = arguments[i];
8
- for (var key in source) {
9
- if (Object.prototype.hasOwnProperty.call(source, key)) {
10
- target[key] = source[key];
11
- }
12
- }
13
- }
14
- return target;
15
- };
16
- return _extends.apply(this, arguments);
17
- }
18
- function _objectWithoutPropertiesLoose(source, excluded) {
19
- if (source == null) return {};
20
- var target = {};
21
- var sourceKeys = Object.keys(source);
22
- var key, i;
23
- for (i = 0; i < sourceKeys.length; i++) {
24
- key = sourceKeys[i];
25
- if (excluded.indexOf(key) >= 0) continue;
26
- target[key] = source[key];
27
- }
28
- return target;
29
- }
30
- function _objectWithoutProperties(source, excluded) {
31
- if (source == null) return {};
32
- var target = _objectWithoutPropertiesLoose(source, excluded);
33
- var key, i;
34
- if (Object.getOwnPropertySymbols) {
35
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
36
- for (i = 0; i < sourceSymbolKeys.length; i++) {
37
- key = sourceSymbolKeys[i];
38
- if (excluded.indexOf(key) >= 0) continue;
39
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
40
- target[key] = source[key];
41
- }
42
- }
43
- return target;
44
- }
45
-
46
- var RAD_UI_CLASS_PREFIX = 'rad-ui';
47
- var customClassSwitcher = function customClassSwitcher(customRootClass) {
48
- var componentName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
49
- // applies a custom root class the user provides, else applies the default rad-ui classes to the component
50
- // rad ui's classes are based on this logic
51
-
52
- // add dashes between capitalized words
53
- var componentClassName = componentName.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
54
- if (customRootClass) return customRootClass;
55
- if (componentName) return "".concat(RAD_UI_CLASS_PREFIX, "-").concat(componentClassName);
56
- return '';
57
- };
58
-
59
- var _excluded = ["children", "customRootClass", "className"];
60
- var COMPONENT_NAME = 'Em';
61
- var Em = function Em(_ref) {
62
- var children = _ref.children,
63
- _ref$customRootClass = _ref.customRootClass,
64
- customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass,
65
- _ref$className = _ref.className,
66
- className = _ref$className === void 0 ? '' : _ref$className,
67
- props = _objectWithoutProperties(_ref, _excluded);
68
- var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME);
69
- return /*#__PURE__*/React.createElement("em", _extends({
70
- className: "".concat(rootClass, " ").concat(className)
71
- }, props), children);
72
- };
73
- Em.displayName = COMPONENT_NAME;
74
-
75
- export { Em as default };
1
+ 'use client';import t from"react";function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.apply(this,arguments)}function r(t,e){if(null==t)return{};var r,n,a=function(t,e){if(null==t)return{};var r,n,a={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}var n=["children","customRootClass","className"],a=function(a){var o=a.children,c=a.customRootClass,l=void 0===c?"":c,s=a.className,i=void 0===s?"":s,u=r(a,n),f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return t||(e?"".concat("rad-ui","-").concat(r):"")}(l,"Em");return t.createElement("em",e({className:"".concat(f," ").concat(i)},u),o)};a.displayName="Em";export{a as default};
@@ -1,80 +1 @@
1
- 'use client';
2
- import React from 'react';
3
-
4
- function _extends() {
5
- _extends = Object.assign ? Object.assign.bind() : function (target) {
6
- for (var i = 1; i < arguments.length; i++) {
7
- var source = arguments[i];
8
- for (var key in source) {
9
- if (Object.prototype.hasOwnProperty.call(source, key)) {
10
- target[key] = source[key];
11
- }
12
- }
13
- }
14
- return target;
15
- };
16
- return _extends.apply(this, arguments);
17
- }
18
-
19
- var RAD_UI_CLASS_PREFIX = 'rad-ui';
20
- var customClassSwitcher = function customClassSwitcher(customRootClass) {
21
- var componentName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
22
- // applies a custom root class the user provides, else applies the default rad-ui classes to the component
23
- // rad ui's classes are based on this logic
24
-
25
- // add dashes between capitalized words
26
- var componentClassName = componentName.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
27
- if (customRootClass) return customRootClass;
28
- if (componentName) return "".concat(RAD_UI_CLASS_PREFIX, "-").concat(componentClassName);
29
- return '';
30
- };
31
-
32
- var RENDER_AS_ENUMS = [{
33
- label: 'H1',
34
- tag: 'h1'
35
- }, {
36
- label: 'H2',
37
- tag: 'h2'
38
- }, {
39
- label: 'H3',
40
- tag: 'h3'
41
- }, {
42
- label: 'H4',
43
- tag: 'h4'
44
- }, {
45
- label: 'H5',
46
- tag: 'h5'
47
- }, {
48
- label: 'H6',
49
- tag: 'h6'
50
- }];
51
- var Heading = function Heading(_ref) {
52
- var children = _ref.children,
53
- _ref$as = _ref.as,
54
- as = _ref$as === void 0 ? undefined : _ref$as,
55
- _ref$customRootClass = _ref.customRootClass,
56
- customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass,
57
- _ref$className = _ref.className,
58
- className = _ref$className === void 0 ? '' : _ref$className;
59
- var rootClass = customClassSwitcher(customRootClass, as || 'h1');
60
- for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
61
- props[_key - 1] = arguments[_key];
62
- }
63
- if (as !== undefined && RENDER_AS_ENUMS.find(function (item) {
64
- return item.tag === as;
65
- })) {
66
- var _RENDER_AS_ENUMS$find = RENDER_AS_ENUMS.find(function (item) {
67
- return item.tag === as;
68
- }),
69
- Tag = _RENDER_AS_ENUMS$find.tag;
70
- return /*#__PURE__*/React.createElement(Tag, _extends({
71
- className: "".concat(rootClass, " ").concat(className)
72
- }, props), children);
73
- }
74
- return /*#__PURE__*/React.createElement("h1", _extends({
75
- className: "".concat(rootClass, " ").concat(className)
76
- }, props), children);
77
- };
78
- Heading.displayName = 'Heading';
79
-
80
- export { Heading as default };
1
+ 'use client';import a from"react";function t(){return t=Object.assign?Object.assign.bind():function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n])}return a},t.apply(this,arguments)}var e=[{label:"H1",tag:"h1"},{label:"H2",tag:"h2"},{label:"H3",tag:"h3"},{label:"H4",tag:"h4"},{label:"H5",tag:"h5"},{label:"H6",tag:"h6"}],n=function(n){for(var r=n.children,o=n.as,c=void 0===o?void 0:o,l=n.customRootClass,i=void 0===l?"":l,s=n.className,g=void 0===s?"":s,u=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return a||(t?"".concat("rad-ui","-").concat(e):"")}(i,c||"h1"),d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];if(void 0!==c&&e.find((function(a){return a.tag===c}))){var v=e.find((function(a){return a.tag===c})).tag;return a.createElement(v,t({className:"".concat(u," ").concat(g)},f),r)}return a.createElement("h1",t({className:"".concat(u," ").concat(g)},f),r)};n.displayName="Heading";export{n as default};
@@ -1,74 +1 @@
1
- 'use client';
2
- import React from 'react';
3
-
4
- function _extends() {
5
- _extends = Object.assign ? Object.assign.bind() : function (target) {
6
- for (var i = 1; i < arguments.length; i++) {
7
- var source = arguments[i];
8
- for (var key in source) {
9
- if (Object.prototype.hasOwnProperty.call(source, key)) {
10
- target[key] = source[key];
11
- }
12
- }
13
- }
14
- return target;
15
- };
16
- return _extends.apply(this, arguments);
17
- }
18
- function _objectWithoutPropertiesLoose(source, excluded) {
19
- if (source == null) return {};
20
- var target = {};
21
- var sourceKeys = Object.keys(source);
22
- var key, i;
23
- for (i = 0; i < sourceKeys.length; i++) {
24
- key = sourceKeys[i];
25
- if (excluded.indexOf(key) >= 0) continue;
26
- target[key] = source[key];
27
- }
28
- return target;
29
- }
30
- function _objectWithoutProperties(source, excluded) {
31
- if (source == null) return {};
32
- var target = _objectWithoutPropertiesLoose(source, excluded);
33
- var key, i;
34
- if (Object.getOwnPropertySymbols) {
35
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
36
- for (i = 0; i < sourceSymbolKeys.length; i++) {
37
- key = sourceSymbolKeys[i];
38
- if (excluded.indexOf(key) >= 0) continue;
39
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
40
- target[key] = source[key];
41
- }
42
- }
43
- return target;
44
- }
45
-
46
- var RAD_UI_CLASS_PREFIX = 'rad-ui';
47
- var customClassSwitcher = function customClassSwitcher(customRootClass) {
48
- var componentName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
49
- // applies a custom root class the user provides, else applies the default rad-ui classes to the component
50
- // rad ui's classes are based on this logic
51
-
52
- // add dashes between capitalized words
53
- var componentClassName = componentName.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
54
- if (customRootClass) return customRootClass;
55
- if (componentName) return "".concat(RAD_UI_CLASS_PREFIX, "-").concat(componentClassName);
56
- return '';
57
- };
58
-
59
- var _excluded = ["children", "customRootClass", "className"];
60
- var COMPONENT_NAME = 'Kbd';
61
- var Kbd = function Kbd(_ref) {
62
- var children = _ref.children,
63
- _ref$customRootClass = _ref.customRootClass,
64
- customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass,
65
- _ref$className = _ref.className,
66
- className = _ref$className === void 0 ? '' : _ref$className,
67
- rest = _objectWithoutProperties(_ref, _excluded);
68
- var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME);
69
- return /*#__PURE__*/React.createElement("kbd", _extends({
70
- className: "".concat(rootClass, " ").concat(className)
71
- }, rest), children);
72
- };
73
-
74
- export { Kbd as default };
1
+ 'use client';import t from"react";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},r.apply(this,arguments)}function e(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e=a[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}var n=["children","customRootClass","className"],o=function(o){var a=o.children,c=o.customRootClass,l=void 0===c?"":c,s=o.className,i=void 0===s?"":s,u=e(o,n),f=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return t||(r?"".concat("rad-ui","-").concat(e):"")}(l,"Kbd");return t.createElement("kbd",r({className:"".concat(f," ").concat(i)},u),a)};export{o as default};
@@ -1,81 +1 @@
1
- 'use client';
2
- import React from 'react';
3
-
4
- function _extends() {
5
- _extends = Object.assign ? Object.assign.bind() : function (target) {
6
- for (var i = 1; i < arguments.length; i++) {
7
- var source = arguments[i];
8
- for (var key in source) {
9
- if (Object.prototype.hasOwnProperty.call(source, key)) {
10
- target[key] = source[key];
11
- }
12
- }
13
- }
14
- return target;
15
- };
16
- return _extends.apply(this, arguments);
17
- }
18
- function _objectWithoutPropertiesLoose(source, excluded) {
19
- if (source == null) return {};
20
- var target = {};
21
- var sourceKeys = Object.keys(source);
22
- var key, i;
23
- for (i = 0; i < sourceKeys.length; i++) {
24
- key = sourceKeys[i];
25
- if (excluded.indexOf(key) >= 0) continue;
26
- target[key] = source[key];
27
- }
28
- return target;
29
- }
30
- function _objectWithoutProperties(source, excluded) {
31
- if (source == null) return {};
32
- var target = _objectWithoutPropertiesLoose(source, excluded);
33
- var key, i;
34
- if (Object.getOwnPropertySymbols) {
35
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
36
- for (i = 0; i < sourceSymbolKeys.length; i++) {
37
- key = sourceSymbolKeys[i];
38
- if (excluded.indexOf(key) >= 0) continue;
39
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
40
- target[key] = source[key];
41
- }
42
- }
43
- return target;
44
- }
45
-
46
- var RAD_UI_CLASS_PREFIX = 'rad-ui';
47
- var customClassSwitcher = function customClassSwitcher(customRootClass) {
48
- var componentName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
49
- // applies a custom root class the user provides, else applies the default rad-ui classes to the component
50
- // rad ui's classes are based on this logic
51
-
52
- // add dashes between capitalized words
53
- var componentClassName = componentName.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
54
- if (customRootClass) return customRootClass;
55
- if (componentName) return "".concat(RAD_UI_CLASS_PREFIX, "-").concat(componentClassName);
56
- return '';
57
- };
58
-
59
- var _excluded = ["children", "href", "alt", "customRootClass", "className"];
60
- var COMPONENT_NAME = 'Link';
61
- var Link = function Link(_ref) {
62
- var children = _ref.children,
63
- _ref$href = _ref.href,
64
- href = _ref$href === void 0 ? '#' : _ref$href,
65
- _ref$alt = _ref.alt,
66
- alt = _ref$alt === void 0 ? '' : _ref$alt,
67
- _ref$customRootClass = _ref.customRootClass,
68
- customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass,
69
- _ref$className = _ref.className,
70
- className = _ref$className === void 0 ? '' : _ref$className,
71
- props = _objectWithoutProperties(_ref, _excluded);
72
- var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME);
73
- return /*#__PURE__*/React.createElement("a", _extends({
74
- href: href,
75
- alt: alt,
76
- className: "".concat(rootClass, " ").concat(className)
77
- }, props), children);
78
- };
79
- Link.displayName = COMPONENT_NAME;
80
-
81
- export { Link as default };
1
+ 'use client';import t from"react";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},r.apply(this,arguments)}function e(t,r){if(null==t)return{};var e,n,a=function(t,r){if(null==t)return{};var e,n,a={},o=Object.keys(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)>=0||(a[e]=t[e]);return a}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)e=o[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}var n=["children","href","alt","customRootClass","className"],a="Link",o=function(o){var c=o.children,l=o.href,i=void 0===l?"#":l,s=o.alt,u=void 0===s?"":s,f=o.customRootClass,p=void 0===f?"":f,v=o.className,d=void 0===v?"":v,m=e(o,n),O=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return t||(r?"".concat("rad-ui","-").concat(e):"")}(p,a);return t.createElement("a",r({href:i,alt:u,className:"".concat(O," ").concat(d)},m),c)};o.displayName=a;export{o as default};
@@ -1,75 +1 @@
1
- 'use client';
2
- import React from 'react';
3
-
4
- function _extends() {
5
- _extends = Object.assign ? Object.assign.bind() : function (target) {
6
- for (var i = 1; i < arguments.length; i++) {
7
- var source = arguments[i];
8
- for (var key in source) {
9
- if (Object.prototype.hasOwnProperty.call(source, key)) {
10
- target[key] = source[key];
11
- }
12
- }
13
- }
14
- return target;
15
- };
16
- return _extends.apply(this, arguments);
17
- }
18
- function _objectWithoutPropertiesLoose(source, excluded) {
19
- if (source == null) return {};
20
- var target = {};
21
- var sourceKeys = Object.keys(source);
22
- var key, i;
23
- for (i = 0; i < sourceKeys.length; i++) {
24
- key = sourceKeys[i];
25
- if (excluded.indexOf(key) >= 0) continue;
26
- target[key] = source[key];
27
- }
28
- return target;
29
- }
30
- function _objectWithoutProperties(source, excluded) {
31
- if (source == null) return {};
32
- var target = _objectWithoutPropertiesLoose(source, excluded);
33
- var key, i;
34
- if (Object.getOwnPropertySymbols) {
35
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
36
- for (i = 0; i < sourceSymbolKeys.length; i++) {
37
- key = sourceSymbolKeys[i];
38
- if (excluded.indexOf(key) >= 0) continue;
39
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
40
- target[key] = source[key];
41
- }
42
- }
43
- return target;
44
- }
45
-
46
- var RAD_UI_CLASS_PREFIX = 'rad-ui';
47
- var customClassSwitcher = function customClassSwitcher(customRootClass) {
48
- var componentName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
49
- // applies a custom root class the user provides, else applies the default rad-ui classes to the component
50
- // rad ui's classes are based on this logic
51
-
52
- // add dashes between capitalized words
53
- var componentClassName = componentName.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
54
- if (customRootClass) return customRootClass;
55
- if (componentName) return "".concat(RAD_UI_CLASS_PREFIX, "-").concat(componentClassName);
56
- return '';
57
- };
58
-
59
- var _excluded = ["children", "customRootClass", "className"];
60
- var COMPONENT_NAME = 'Quote';
61
- var Quote = function Quote(_ref) {
62
- var children = _ref.children,
63
- _ref$customRootClass = _ref.customRootClass,
64
- customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass,
65
- _ref$className = _ref.className,
66
- className = _ref$className === void 0 ? '' : _ref$className,
67
- props = _objectWithoutProperties(_ref, _excluded);
68
- var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME);
69
- return /*#__PURE__*/React.createElement("q", _extends({
70
- className: "".concat(rootClass, " ").concat(className)
71
- }, props), children);
72
- };
73
- Quote.displayName = COMPONENT_NAME;
74
-
75
- export { Quote as default };
1
+ 'use client';import t from"react";function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.apply(this,arguments)}function r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var n=["children","customRootClass","className"],o="Quote",a=function(a){var c=a.children,l=a.customRootClass,s=void 0===l?"":l,i=a.className,u=void 0===i?"":i,f=r(a,n),p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return t||(e?"".concat("rad-ui","-").concat(r):"")}(s,o);return t.createElement("q",e({className:"".concat(p," ").concat(u)},f),c)};a.displayName=o;export{a as default};
@@ -1,33 +1 @@
1
- 'use client';
2
- import React from 'react';
3
-
4
- var RAD_UI_CLASS_PREFIX = 'rad-ui';
5
- var customClassSwitcher = function customClassSwitcher(customRootClass) {
6
- var componentName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
7
- // applies a custom root class the user provides, else applies the default rad-ui classes to the component
8
- // rad ui's classes are based on this logic
9
-
10
- // add dashes between capitalized words
11
- var componentClassName = componentName.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
12
- if (customRootClass) return customRootClass;
13
- if (componentName) return "".concat(RAD_UI_CLASS_PREFIX, "-").concat(componentClassName);
14
- return '';
15
- };
16
-
17
- var COMPONENT_NAME = 'Separator';
18
- var Separator = function Separator(_ref) {
19
- var _ref$orientation = _ref.orientation,
20
- orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation,
21
- _ref$className = _ref.className,
22
- className = _ref$className === void 0 ? '' : _ref$className,
23
- _ref$customRootClass = _ref.customRootClass,
24
- customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass;
25
- var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME);
26
- var orientationClass = orientation === 'vertical' ? "".concat(rootClass, "-vertical") : "".concat(rootClass, "-horizontal");
27
- return /*#__PURE__*/React.createElement("div", {
28
- className: "".concat(rootClass, " ").concat(orientationClass, " ").concat(className)
29
- });
30
- };
31
- Separator.displayName = COMPONENT_NAME;
32
-
33
- export { Separator as default };
1
+ 'use client';import a from"react";var o="Separator",t=function(t){var c=t.orientation,r=void 0===c?"horizontal":c,e=t.className,n=void 0===e?"":e,i=t.customRootClass,l=function(a){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return a||(o?"".concat("rad-ui","-").concat(t):"")}(void 0===i?"":i,o),s="".concat(l,"vertical"===r?"-vertical":"-horizontal");return a.createElement("div",{className:"".concat(l," ").concat(s," ").concat(n)})};t.displayName=o;export{t as default};
@@ -1,7 +1 @@
1
- 'use client';
2
- var Strong = function Strong(_ref) {
3
- var children = _ref.children;
4
- return /*#__PURE__*/React.createElement("strong", null, children);
5
- };
6
-
7
- export { Strong as default };
1
+ 'use client';var e=function(e){var r=e.children;return React.createElement("strong",null,r)};export{e as default};