@radui/ui 0.0.3 → 0.0.5
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/README.md +70 -0
- package/dist/components/Accordion.js +81 -0
- package/dist/components/Avatar.js +153 -0
- package/dist/components/AvatarFallback.d.ts +8 -0
- package/dist/components/AvatarFallback.d.ts.map +1 -0
- package/dist/components/AvatarImage.d.ts +10 -0
- package/dist/components/AvatarImage.d.ts.map +1 -0
- package/dist/components/AvatarRoot.d.ts +8 -0
- package/dist/components/AvatarRoot.d.ts.map +1 -0
- package/dist/components/Badge.js +80 -0
- package/dist/components/BlockQuote.js +75 -0
- package/dist/components/Button.js +69 -0
- package/dist/{Callout.js → components/Callout.js} +46 -17
- package/dist/{Code.js → components/Code.js} +2 -4
- package/dist/{Dropdown.js → components/Dropdown.js} +66 -8
- package/dist/components/Em.js +75 -0
- package/dist/{Heading.js → components/Heading.js} +24 -20
- package/dist/components/Kbd.js +74 -0
- package/dist/components/Link.js +81 -0
- package/dist/components/Quote.js +75 -0
- package/dist/components/Separator.js +33 -0
- package/dist/{Strong.js → components/Strong.js} +2 -4
- package/dist/components/Tabs.js +231 -0
- package/dist/components/Text.js +80 -0
- package/dist/{TextArea.js → components/TextArea.js} +2 -1
- package/dist/{Tooltip.js → components/Tooltip.js} +143 -61
- package/dist/themes/default.css +2 -0
- package/dist/themes/default.css.map +1 -0
- package/package.json +24 -9
- package/dist/Accordion.js +0 -26
- package/dist/Avatar.js +0 -67
- package/dist/Badge.js +0 -51
- package/dist/BlockQuote.js +0 -47
- package/dist/Button.js +0 -40
- package/dist/Em.js +0 -47
- package/dist/Kbd.js +0 -46
- package/dist/Link.js +0 -51
- package/dist/Quote.js +0 -47
- package/dist/Separator.js +0 -32
- package/dist/Tabs.js +0 -146
- package/dist/Text.js +0 -51
- package/dist/themes/main.css/default.css +0 -2
- package/dist/themes/main.css/default.css.map +0 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
|
|
4
|
+
function _iterableToArrayLimit(r, l) {
|
|
5
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
6
|
+
if (null != t) {
|
|
7
|
+
var e,
|
|
8
|
+
n,
|
|
9
|
+
i,
|
|
10
|
+
u,
|
|
11
|
+
a = [],
|
|
12
|
+
f = !0,
|
|
13
|
+
o = !1;
|
|
14
|
+
try {
|
|
15
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
16
|
+
if (Object(t) !== t) return;
|
|
17
|
+
f = !1;
|
|
18
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
19
|
+
} catch (r) {
|
|
20
|
+
o = !0, n = r;
|
|
21
|
+
} finally {
|
|
22
|
+
try {
|
|
23
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
24
|
+
} finally {
|
|
25
|
+
if (o) throw n;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return a;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function _extends() {
|
|
32
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
33
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
34
|
+
var source = arguments[i];
|
|
35
|
+
for (var key in source) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
37
|
+
target[key] = source[key];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return target;
|
|
42
|
+
};
|
|
43
|
+
return _extends.apply(this, arguments);
|
|
44
|
+
}
|
|
45
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
46
|
+
if (source == null) return {};
|
|
47
|
+
var target = {};
|
|
48
|
+
var sourceKeys = Object.keys(source);
|
|
49
|
+
var key, i;
|
|
50
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
51
|
+
key = sourceKeys[i];
|
|
52
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
53
|
+
target[key] = source[key];
|
|
54
|
+
}
|
|
55
|
+
return target;
|
|
56
|
+
}
|
|
57
|
+
function _objectWithoutProperties(source, excluded) {
|
|
58
|
+
if (source == null) return {};
|
|
59
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
60
|
+
var key, i;
|
|
61
|
+
if (Object.getOwnPropertySymbols) {
|
|
62
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
63
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
64
|
+
key = sourceSymbolKeys[i];
|
|
65
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
66
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
67
|
+
target[key] = source[key];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return target;
|
|
71
|
+
}
|
|
72
|
+
function _slicedToArray(arr, i) {
|
|
73
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
74
|
+
}
|
|
75
|
+
function _arrayWithHoles(arr) {
|
|
76
|
+
if (Array.isArray(arr)) return arr;
|
|
77
|
+
}
|
|
78
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
79
|
+
if (!o) return;
|
|
80
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
81
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
82
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
83
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
84
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
85
|
+
}
|
|
86
|
+
function _arrayLikeToArray(arr, len) {
|
|
87
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
88
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
89
|
+
return arr2;
|
|
90
|
+
}
|
|
91
|
+
function _nonIterableRest() {
|
|
92
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
var RAD_UI_CLASS_PREFIX = 'rad-ui';
|
|
96
|
+
var customClassSwitcher = function customClassSwitcher(customRootClass) {
|
|
97
|
+
var componentName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
98
|
+
// applies a custom root class the user provides, else applies the default rad-ui classes to the component
|
|
99
|
+
// rad ui's classes are based on this logic
|
|
100
|
+
|
|
101
|
+
// add dashes between capitalized words
|
|
102
|
+
var componentClassName = componentName.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
103
|
+
if (customRootClass) return customRootClass;
|
|
104
|
+
if (componentName) return "".concat(RAD_UI_CLASS_PREFIX, "-").concat(componentClassName);
|
|
105
|
+
return '';
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
var _excluded$2 = ["tab", "setActiveTab", "activeTab", "className", "customRootClass"];
|
|
109
|
+
var COMPONENT_NAME$3 = 'TabTrigger';
|
|
110
|
+
var TabTrigger = function TabTrigger(_ref) {
|
|
111
|
+
var tab = _ref.tab,
|
|
112
|
+
setActiveTab = _ref.setActiveTab,
|
|
113
|
+
activeTab = _ref.activeTab,
|
|
114
|
+
_ref$className = _ref.className,
|
|
115
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
116
|
+
customRootClass = _ref.customRootClass,
|
|
117
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
118
|
+
var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME$3);
|
|
119
|
+
var isActive = activeTab === tab.value;
|
|
120
|
+
var handleClick = function handleClick(tab) {
|
|
121
|
+
setActiveTab(tab.value);
|
|
122
|
+
};
|
|
123
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
124
|
+
role: "tab",
|
|
125
|
+
className: "".concat(rootClass, " ").concat(isActive ? 'active' : '', " ").concat(className)
|
|
126
|
+
}, props, {
|
|
127
|
+
onClick: function onClick() {
|
|
128
|
+
return handleClick(tab);
|
|
129
|
+
}
|
|
130
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
131
|
+
className: "".concat(rootClass, "-inner")
|
|
132
|
+
}, tab.label));
|
|
133
|
+
};
|
|
134
|
+
TabTrigger.displayName = 'TabTrigger';
|
|
135
|
+
|
|
136
|
+
var COMPONENT_NAME$2 = 'TabList';
|
|
137
|
+
var TabList = function TabList(_ref) {
|
|
138
|
+
var _ref$tabs = _ref.tabs,
|
|
139
|
+
tabs = _ref$tabs === void 0 ? [] : _ref$tabs,
|
|
140
|
+
_ref$className = _ref.className,
|
|
141
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
142
|
+
setActiveTab = _ref.setActiveTab,
|
|
143
|
+
activeTab = _ref.activeTab,
|
|
144
|
+
_ref$customRootClass = _ref.customRootClass,
|
|
145
|
+
customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass;
|
|
146
|
+
var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME$2);
|
|
147
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
148
|
+
role: "tablist",
|
|
149
|
+
"aria-orientation": "horizontal",
|
|
150
|
+
"aria-label": "todo",
|
|
151
|
+
className: "".concat(rootClass, " ").concat(className)
|
|
152
|
+
}, tabs.map(function (tab, index) {
|
|
153
|
+
return /*#__PURE__*/React.createElement(TabTrigger, {
|
|
154
|
+
activeTab: activeTab,
|
|
155
|
+
setActiveTab: setActiveTab,
|
|
156
|
+
key: index,
|
|
157
|
+
tab: tab,
|
|
158
|
+
index: index
|
|
159
|
+
});
|
|
160
|
+
}));
|
|
161
|
+
};
|
|
162
|
+
TabList.displayName = COMPONENT_NAME$2;
|
|
163
|
+
|
|
164
|
+
var COMPONENT_NAME$1 = 'TabContent';
|
|
165
|
+
var TabContent = function TabContent(_ref) {
|
|
166
|
+
var _ref$tabs = _ref.tabs,
|
|
167
|
+
tabs = _ref$tabs === void 0 ? [] : _ref$tabs,
|
|
168
|
+
activeTab = _ref.activeTab,
|
|
169
|
+
_ref$className = _ref.className,
|
|
170
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
171
|
+
_ref$customRootClass = _ref.customRootClass,
|
|
172
|
+
customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass;
|
|
173
|
+
var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME$1);
|
|
174
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
175
|
+
className: "".concat(rootClass, " ").concat(className)
|
|
176
|
+
}, tabs.map(function (tab, index) {
|
|
177
|
+
if (tab.value === activeTab) {
|
|
178
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
179
|
+
key: index
|
|
180
|
+
}, tab.content);
|
|
181
|
+
}
|
|
182
|
+
return null;
|
|
183
|
+
}));
|
|
184
|
+
};
|
|
185
|
+
TabContent.displayName = COMPONENT_NAME$1;
|
|
186
|
+
|
|
187
|
+
var _excluded$1 = ["children", "customRootClass", "className", "color"];
|
|
188
|
+
var COMPONENT_NAME = 'TabRoot';
|
|
189
|
+
var TabRoot = function TabRoot(_ref) {
|
|
190
|
+
var children = _ref.children,
|
|
191
|
+
_ref$customRootClass = _ref.customRootClass,
|
|
192
|
+
customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass,
|
|
193
|
+
_ref$className = _ref.className,
|
|
194
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
195
|
+
_ref$color = _ref.color,
|
|
196
|
+
color = _ref$color === void 0 ? undefined : _ref$color,
|
|
197
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
198
|
+
var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME);
|
|
199
|
+
if (color) {
|
|
200
|
+
props['data-accent-color'] = color;
|
|
201
|
+
}
|
|
202
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
203
|
+
className: "".concat(rootClass, " ").concat(className)
|
|
204
|
+
}, props), children);
|
|
205
|
+
};
|
|
206
|
+
TabRoot.displayName = COMPONENT_NAME;
|
|
207
|
+
|
|
208
|
+
var _excluded = ["tabs"];
|
|
209
|
+
var Tabs = function Tabs(_ref) {
|
|
210
|
+
var _ref$tabs = _ref.tabs,
|
|
211
|
+
tabs = _ref$tabs === void 0 ? [] : _ref$tabs,
|
|
212
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
213
|
+
// This should be a value <`tabs.value`> that is passed in from the parent component
|
|
214
|
+
var _useState = useState(tabs[0].value || ''),
|
|
215
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
216
|
+
activeTab = _useState2[0],
|
|
217
|
+
setActiveTab = _useState2[1];
|
|
218
|
+
return /*#__PURE__*/React.createElement(TabRoot, props, /*#__PURE__*/React.createElement(TabList, {
|
|
219
|
+
activeTab: activeTab,
|
|
220
|
+
setActiveTab: setActiveTab,
|
|
221
|
+
tabs: tabs
|
|
222
|
+
}), /*#__PURE__*/React.createElement(TabContent, {
|
|
223
|
+
activeTab: activeTab,
|
|
224
|
+
tabs: tabs
|
|
225
|
+
}));
|
|
226
|
+
};
|
|
227
|
+
Tabs.List = TabList;
|
|
228
|
+
Tabs.Content = TabContent;
|
|
229
|
+
Tabs.Root = TabRoot;
|
|
230
|
+
|
|
231
|
+
export { Tabs as default };
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
|
|
61
|
+
// Can be rendered as p, label, div, span, etc.
|
|
62
|
+
// TODO: Add as prop support
|
|
63
|
+
// TODO: Add a core reusable function to check and render an as prop
|
|
64
|
+
|
|
65
|
+
var COMPONENT_NAME = 'Text';
|
|
66
|
+
var Text = function Text(_ref) {
|
|
67
|
+
var children = _ref.children,
|
|
68
|
+
_ref$customRootClass = _ref.customRootClass,
|
|
69
|
+
customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass,
|
|
70
|
+
_ref$className = _ref.className,
|
|
71
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
72
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
73
|
+
var rootClass = customClassSwitcher(customRootClass, COMPONENT_NAME);
|
|
74
|
+
return /*#__PURE__*/React.createElement("p", _extends({
|
|
75
|
+
className: "".concat(rootClass, " ").concat(className)
|
|
76
|
+
}, props), children);
|
|
77
|
+
};
|
|
78
|
+
Text.displayName = COMPONENT_NAME;
|
|
79
|
+
|
|
80
|
+
export { Text as default };
|
|
@@ -3,6 +3,33 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import { useLayoutEffect, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import * as ReactDOM from 'react-dom';
|
|
5
5
|
|
|
6
|
+
function _iterableToArrayLimit(r, l) {
|
|
7
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (null != t) {
|
|
9
|
+
var e,
|
|
10
|
+
n,
|
|
11
|
+
i,
|
|
12
|
+
u,
|
|
13
|
+
a = [],
|
|
14
|
+
f = !0,
|
|
15
|
+
o = !1;
|
|
16
|
+
try {
|
|
17
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
18
|
+
if (Object(t) !== t) return;
|
|
19
|
+
f = !1;
|
|
20
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
21
|
+
} catch (r) {
|
|
22
|
+
o = !0, n = r;
|
|
23
|
+
} finally {
|
|
24
|
+
try {
|
|
25
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
26
|
+
} finally {
|
|
27
|
+
if (o) throw n;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return a;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
6
33
|
function _extends$1() {
|
|
7
34
|
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
8
35
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -17,17 +44,66 @@ function _extends$1() {
|
|
|
17
44
|
};
|
|
18
45
|
return _extends$1.apply(this, arguments);
|
|
19
46
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
47
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
48
|
+
if (source == null) return {};
|
|
49
|
+
var target = {};
|
|
50
|
+
var sourceKeys = Object.keys(source);
|
|
51
|
+
var key, i;
|
|
52
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
53
|
+
key = sourceKeys[i];
|
|
54
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
55
|
+
target[key] = source[key];
|
|
56
|
+
}
|
|
57
|
+
return target;
|
|
58
|
+
}
|
|
59
|
+
function _objectWithoutProperties(source, excluded) {
|
|
60
|
+
if (source == null) return {};
|
|
61
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
62
|
+
var key, i;
|
|
63
|
+
if (Object.getOwnPropertySymbols) {
|
|
64
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
65
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
66
|
+
key = sourceSymbolKeys[i];
|
|
67
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
68
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
69
|
+
target[key] = source[key];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return target;
|
|
73
|
+
}
|
|
74
|
+
function _slicedToArray(arr, i) {
|
|
75
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
76
|
+
}
|
|
77
|
+
function _arrayWithHoles(arr) {
|
|
78
|
+
if (Array.isArray(arr)) return arr;
|
|
79
|
+
}
|
|
80
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
81
|
+
if (!o) return;
|
|
82
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
83
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
84
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
85
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
86
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
87
|
+
}
|
|
88
|
+
function _arrayLikeToArray(arr, len) {
|
|
89
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
90
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
91
|
+
return arr2;
|
|
92
|
+
}
|
|
93
|
+
function _nonIterableRest() {
|
|
94
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
var RAD_UI_CLASS_PREFIX = 'rad-ui';
|
|
98
|
+
var customClassSwitcher = function customClassSwitcher(customRootClass) {
|
|
99
|
+
var componentName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
24
100
|
// applies a custom root class the user provides, else applies the default rad-ui classes to the component
|
|
25
101
|
// rad ui's classes are based on this logic
|
|
26
102
|
|
|
27
103
|
// add dashes between capitalized words
|
|
28
|
-
|
|
104
|
+
var componentClassName = componentName.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
29
105
|
if (customRootClass) return customRootClass;
|
|
30
|
-
if (componentName) return
|
|
106
|
+
if (componentName) return "".concat(RAD_UI_CLASS_PREFIX, "-").concat(componentClassName);
|
|
31
107
|
return '';
|
|
32
108
|
};
|
|
33
109
|
|
|
@@ -2633,80 +2709,86 @@ function useRole(context, props) {
|
|
|
2633
2709
|
}, [enabled, role, ariaRole, open, floatingId, referenceId, isNested]);
|
|
2634
2710
|
}
|
|
2635
2711
|
|
|
2712
|
+
var _excluded$1 = ["popperName", "customRootClass", "className", "children", "open", "hoverDelay", "showArrow", "pop"];
|
|
2713
|
+
|
|
2636
2714
|
// TODO : Use Floating Portal?
|
|
2637
2715
|
// TODO : Collisions dont seem to be working as expected, need to investigate
|
|
2638
2716
|
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
popperName = '',
|
|
2644
|
-
customRootClass =
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2717
|
+
var ARROW_HEIGHT = 7;
|
|
2718
|
+
var GAP = 2;
|
|
2719
|
+
var Popper = function Popper(_ref) {
|
|
2720
|
+
var _ref$popperName = _ref.popperName,
|
|
2721
|
+
popperName = _ref$popperName === void 0 ? '' : _ref$popperName,
|
|
2722
|
+
_ref$customRootClass = _ref.customRootClass,
|
|
2723
|
+
customRootClass = _ref$customRootClass === void 0 ? '' : _ref$customRootClass,
|
|
2724
|
+
_ref$className = _ref.className,
|
|
2725
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2726
|
+
children = _ref.children,
|
|
2727
|
+
_ref$open = _ref.open,
|
|
2728
|
+
open = _ref$open === void 0 ? false : _ref$open;
|
|
2729
|
+
_ref.hoverDelay;
|
|
2730
|
+
var _ref$showArrow = _ref.showArrow,
|
|
2731
|
+
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
2732
|
+
_ref$pop = _ref.pop,
|
|
2733
|
+
pop = _ref$pop === void 0 ? /*#__PURE__*/React.createElement(React.Fragment, null) : _ref$pop;
|
|
2734
|
+
_objectWithoutProperties(_ref, _excluded$1);
|
|
2735
|
+
var rootClass = customClassSwitcher(customRootClass, popperName);
|
|
2736
|
+
var arrowRef = useRef(null);
|
|
2737
|
+
var _useState = useState(open),
|
|
2738
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2739
|
+
isOpen = _useState2[0],
|
|
2740
|
+
setIsOpen = _useState2[1];
|
|
2741
|
+
var _useFloating = useFloating({
|
|
2742
|
+
open: isOpen,
|
|
2743
|
+
middleware: [arrow({
|
|
2744
|
+
element: arrowRef
|
|
2745
|
+
}), offset(ARROW_HEIGHT + GAP),
|
|
2746
|
+
// autoPlacement({
|
|
2747
|
+
// crossAxis: 'center',
|
|
2748
|
+
// alignment: 'start',
|
|
2749
|
+
// autoAlignment: true,
|
|
2750
|
+
// allowedPlacements: ['top', 'bottom', 'left', 'right'],
|
|
2751
|
+
// padding: 5,
|
|
2752
|
+
// }),
|
|
2753
|
+
flip()],
|
|
2754
|
+
onOpenChange: setIsOpen,
|
|
2755
|
+
placement: 'top'
|
|
2756
|
+
}),
|
|
2757
|
+
refs = _useFloating.refs,
|
|
2758
|
+
floatingStyles = _useFloating.floatingStyles,
|
|
2759
|
+
context = _useFloating.context;
|
|
2760
|
+
var role = useRole(context);
|
|
2761
|
+
var dismiss = useDismiss(context);
|
|
2762
|
+
var hover = useHover(context, {
|
|
2679
2763
|
// delay: hoverDelay,
|
|
2680
2764
|
});
|
|
2681
|
-
|
|
2682
|
-
getReferenceProps,
|
|
2683
|
-
getFloatingProps
|
|
2684
|
-
} = useInteractions([hover, role, dismiss]);
|
|
2765
|
+
var _useInteractions = useInteractions([hover, role, dismiss]),
|
|
2766
|
+
getReferenceProps = _useInteractions.getReferenceProps,
|
|
2767
|
+
getFloatingProps = _useInteractions.getFloatingProps;
|
|
2685
2768
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", _extends$1({
|
|
2686
|
-
className:
|
|
2769
|
+
className: "".concat(rootClass, "-reference-element ").concat(className),
|
|
2687
2770
|
ref: refs.setReference
|
|
2688
2771
|
}, getReferenceProps({
|
|
2689
|
-
onClick: ()
|
|
2772
|
+
onClick: function onClick() {
|
|
2690
2773
|
console.log('click');
|
|
2691
2774
|
}
|
|
2692
2775
|
})), children), isOpen && /*#__PURE__*/React.createElement("div", _extends$1({
|
|
2693
|
-
className:
|
|
2776
|
+
className: "".concat(rootClass, "-floating-element"),
|
|
2694
2777
|
ref: refs.setFloating,
|
|
2695
2778
|
style: floatingStyles
|
|
2696
2779
|
}, getFloatingProps()), showArrow && /*#__PURE__*/React.createElement(FloatingArrow, {
|
|
2697
|
-
className:
|
|
2780
|
+
className: "rad-ui-arrow ".concat(rootClass, "-arrow"),
|
|
2698
2781
|
ref: arrowRef,
|
|
2699
2782
|
context: context
|
|
2700
2783
|
}), pop));
|
|
2701
2784
|
};
|
|
2702
2785
|
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
label
|
|
2708
|
-
|
|
2709
|
-
} = _ref;
|
|
2786
|
+
var _excluded = ["children", "label"];
|
|
2787
|
+
var COMPONENT_NAME = 'Tooltip';
|
|
2788
|
+
var Tooltip = function Tooltip(_ref) {
|
|
2789
|
+
var children = _ref.children;
|
|
2790
|
+
_ref.label;
|
|
2791
|
+
var props = _objectWithoutProperties(_ref, _excluded);
|
|
2710
2792
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Popper, _extends$1({
|
|
2711
2793
|
popperName: COMPONENT_NAME,
|
|
2712
2794
|
pop: 'hello'
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.rad-ui-avatar-root{position:relative;display:inline-flex;width:32px;height:32px;border-radius:8px;overflow:hidden}.rad-ui-avatar-root .rad-ui-avatar{display:flex;flex-grow:1;position:relative;z-index:1;width:100%;height:100%}.rad-ui-avatar-root .rad-ui-avatar-fallback{display:flex;align-items:center;justify-content:center;color:var(--rad-ui-color-accent-900);background-color:var(--rad-ui-color-accent-500);position:absolute;top:0;left:0;width:100%;height:100%}a:focus,button:active,button:focus,input:active,input:focus,textarea:active,textarea:focus{outline:1px solid var(--rad-ui-color-accent-300);outline-style:groove}::selection{background-color:var(--rad-ui-color-accent-300);color:var(--rad-ui-color-accent-950)}.rad-ui-button{height:32px;border-radius:4px;display:flex;align-items:center;justify-content:center;padding:0 12px}.button-solid{background-color:var(--rad-ui-color-accent-900);color:#fff}.button-solid:hover{background-color:var(--rad-ui-color-accent-950)}.button-soft{color:var(--rad-ui-color-accent-900);background-color:var(--rad-ui-color-accent-400)}.button-soft:hover{background-color:var(--rad-ui-color-accent-500)}.button-outline{background-color:transparent;color:var(--rad-ui-color-accent-900);border:1px solid var(--rad-ui-color-accent-900)}.button-outline:hover{border-color:var(--rad-ui-color-accent-950)}.button-ghost{background-color:transparent;color:var(--rad-ui-color-accent-900)}.button-ghost:hover{border-color:var(--rad-ui-color-accent-950);background-color:var(--rad-ui-color-accent-300)}.rui-code-root{color:var(--rad-ui-color-accent-950);background-color:var(--rad-ui-color-accent-400);padding:1px 10px;display:inline-block;border-radius:4px;font-size:12px}.rad-ui-block-quote{border-color:var(--rad-ui-color-accent-600);border-left-width:.5rem;padding-left:12px}.rad-ui-tab-list{display:flex;box-shadow:inset 0 -1px 0 0 var(--rad-ui-color-gray-500)}.rad-ui-tab-trigger.active{color:var(--rad-ui-color-accent-950);border-bottom:2px solid var(--rad-ui-color-accent-900)}.rad-ui-tab-trigger{color:var(--rad-ui-color-accent-600);font-family:inherit;padding:10px;display:flex;height:42px;font-size:15px;line-height:1;cursor:pointer}.rad-ui-tab-trigger:hover{color:var(--rad-ui-color-accent-900)}.rad-ui-tab-trigger-inner{padding:4px 8px}.rad-ui-tab-trigger:hover>.rad-ui-tab-trigger-inner{background-color:var(--rad-ui-color-accent-200);border-radius:4px}.rad-ui-tab-content{padding:20px 0;color:var(--rad-ui-color-gray-1000)}.rad-ui-separator{background-color:var(--rad-ui-color-gray-600)}.rad-ui-separator-vertical{margin:0 8px;width:1px}.rad-ui-separator-horizontal{margin:8px 0;height:1px}.rad-ui-badge{background-color:var(--rad-ui-color-accent-300);color:var(--rad-ui-color-accent-950);padding:4px 8px;display:flex;align-items:center;justify-content:center;font-weight:600;border-radius:4px}.rad-ui-h1{font-weight:700;font-size:60px;letter-spacing:-3.5px;line-height:72px}.rad-ui-h2{font-weight:700;font-size:54px;letter-spacing:-3px;line-height:62px}.rad-ui-h3{font-weight:700;font-size:48px;letter-spacing:-2px;line-height:54px}.rad-ui-h4{font-weight:700;font-size:42px;letter-spacing:-1px;line-height:48px}.rad-ui-h5{font-weight:700;font-size:36px;letter-spacing:-.5px;line-height:42px}.rad-ui-h6{font-weight:700;font-size:32px;line-height:36px}.rad-ui-text{font-size:16px;line-height:24px}.rad-ui-link{color:var(--rad-ui-color-accent-800);cursor:pointer}.rad-ui-link:hover{color:var(--rad-ui-color-accent-900);text-decoration:underline;text-decoration-color:var(--rad-ui-color-accent-600)}.rad-ui-callout{padding:16px;border-radius:8px;background-color:var(--rad-ui-color-accent-200);color:var(--rad-ui-color-accent-950);display:flex;align-items:center;font-weight:300;font-size:14px;gap:8px}.rad-ui-tooltip-floating-element{background-color:var(--rad-ui-color-gray-1000);color:var(--rad-ui-color-gray-100);padding:4px 12px;border-radius:8px}.rad-ui-arrow{fill:var(--rad-ui-color-gray-1000)}.rad-ui-kbd{user-select:none;font-weight:400;font-family:inherit;background-color:var(--rad-ui-color-gray-50);color:var(--rad-ui-color-gray-950);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:4px;border:1px solid var(--rad-ui-color-gray-500);box-shadow:0 0 3px 1px var(--rad-ui-color-gray-400);padding:4px 8px}
|
|
2
|
+
/*# sourceMappingURL=/default.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["components/avatar.scss","default.scss"],"names":[],"mappings":"AAAA,oBACI,iBAAkB,CAClB,mBAAoB,CACpB,UAAU,CACV,WAAW,CACX,iBAAkB,CAClB,eAAgB,CANpB,mCASQ,YAAa,CACb,WAAY,CACZ,iBAAkB,CAClB,SAAU,CACV,UAAW,CACX,WAAW,CAdnB,4CAkBQ,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,oCAAqC,CACrC,+CAAgD,CAChD,iBAAkB,CAClB,KAAO,CACP,MAAQ,CACR,UAAW,CACX,WAAW,CCxBnB,2FACI,gDAAiD,CACjD,oBAEqB,CAGzB,YACI,+CAAgD,CAChD,oCAAqC,CAIzC,eACI,WAAY,CACZ,iBAAkB,CAClB,YAAY,CACZ,kBAAkB,CAClB,sBAAsB,CACtB,cAAgB,CAEpB,cACI,+CAAgD,CAChD,UAAY,CAEhB,oBACI,+CAAgD,CAIpD,aACI,oCAAqC,CACrC,+CAAiD,CAErD,mBACI,+CAAiD,CAKrD,gBACI,4BAA6B,CAC7B,oCAAqC,CACrC,+CAAgD,CAEpD,sBACI,2CAA2C,CAI/C,cACI,4BAA6B,CAC7B,oCAAqC,CAEzC,oBACI,2CAA2C,CAC3C,+CAAgD,CAKpD,eACI,oCAAqC,CACrC,+CAAgD,CAChD,gBAAgB,CAChB,oBAAqB,CACrB,iBAAkB,CAClB,cAAc,CAKlB,oBACI,2CAA4C,CAC5C,uBAAyB,CACzB,iBAAiB,CAQrB,iBACI,YAAa,CACb,wDAAyD,CAI7D,2BACI,oCAAqC,CACrC,sDAAsD,CAE1D,oBACI,oCAAqC,CACrC,mBAAoB,CACpB,YAAkB,CAElB,YAAa,CACb,WAAW,CACX,cAAe,CACf,aAAc,CACd,cAAe,CAEnB,0BACI,oCAAqC,CAGzC,0BACI,eAAe,CAEnB,oDACI,+CAAgD,CAChD,iBAAkB,CAGtB,oBACI,cAAgB,CAChB,mCAAqC,CAKzC,kBACI,6CAA8C,CAGlD,2BACI,YAAe,CACf,SAAU,CAGd,6BACI,YAAe,CACf,UAAW,CAIf,cACI,+CAAgD,CAChD,oCAAqC,CACrC,eAAe,CACf,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,eAAgB,CAChB,iBAAkB,CAItB,WACI,eAAiB,CACjB,cAAe,CACf,qBAAsB,CACtB,gBAAgB,CAGpB,WACI,eAAiB,CACjB,cAAe,CACf,mBAAoB,CACpB,gBAAgB,CAGpB,WACI,eAAiB,CACjB,cAAe,CACf,mBAAoB,CACpB,gBAAgB,CAGpB,WACI,eAAiB,CACjB,cAAe,CACf,mBAAoB,CACpB,gBAAgB,CAGpB,WACI,eAAiB,CACjB,cAAe,CACf,oBAAsB,CACtB,gBAAgB,CAGpB,WACI,eAAiB,CACjB,cAAe,CAEf,gBAAgB,CAGpB,aACI,cAAe,CACf,gBAAiB,CAGrB,aACI,oCAAqC,CACrC,cAAe,CAEnB,mBACI,oCAAqC,CACrC,yBAA2B,CAC3B,oDAAqD,CAGzD,gBACG,YAAY,CACZ,iBAAiB,CAChB,+CAAgD,CAChD,oCAAqC,CACrC,YAAa,CACb,kBAAmB,CACnB,eAAgB,CAChB,cAAe,CACf,OAAO,CAQX,iCACI,8CAA8C,CAC9C,kCAAmC,CACnC,gBAAiB,CACjB,iBAAkB,CAGtB,cACI,kCAAmC,CAGvC,YACI,gBAAiB,CACjB,eAAgB,CAChB,mBAAoB,CACpB,4CAA6C,CAC7C,kCAAmC,CACnC,mBAAoB,CACpB,kBAAmB,CACnB,sBAAuB,CACvB,kBAAmB,CACnB,iBAAkB,CAClB,6CAA8C,CAC9C,mDAAyD,CACzD,eAAgB","file":"default.css","sourceRoot":"../../styles/themes","sourcesContent":[".rad-ui-avatar-root{\n position: relative;\n display: inline-flex;\n width:32px;\n height:32px;\n border-radius: 8px;\n overflow: hidden;\n\n .rad-ui-avatar{\n display: flex;\n flex-grow: 1;\n position: relative;\n z-index: 1;\n width: 100%;\n height:100%;\n }\n\n .rad-ui-avatar-fallback{\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--rad-ui-color-accent-900);\n background-color: var(--rad-ui-color-accent-500);\n position: absolute;\n top:0px;\n left:0px;\n width: 100%;\n height:100%;\n }\n}\n\n\n","@import \"./components/avatar.scss\";\n\n\nbutton:active, button:focus, input:active, input:focus, textarea:active, textarea:focus,a:focus {\n outline: 1px solid var(--rad-ui-color-accent-300);\n outline-style:groove;\n\n /* outline:0 none; */\n}\n\n::selection{\n background-color: var(--rad-ui-color-accent-300);\n color: var(--rad-ui-color-accent-950);\n\n}\n\n.rad-ui-button{\n height: 32px;\n border-radius: 4px;\n display:flex;\n align-items:center;\n justify-content:center;\n padding:0px 12px;\n}\n.button-solid{\n background-color: var(--rad-ui-color-accent-900);\n color: white;\n}\n.button-solid:hover{\n background-color: var(--rad-ui-color-accent-950);\n}\n\n/** Soft */\n.button-soft{\n color: var(--rad-ui-color-accent-900);\n background-color: var(--rad-ui-color-accent-400);\n}\n.button-soft:hover{\n background-color: var(--rad-ui-color-accent-500);\n}\n\n\n/**Outline */\n.button-outline{\n background-color: transparent;\n color: var(--rad-ui-color-accent-900);\n border: 1px solid var(--rad-ui-color-accent-900);\n}\n.button-outline:hover{\n border-color:var(--rad-ui-color-accent-950) ;\n}\n\n/**Ghost */\n.button-ghost{\n background-color: transparent;\n color: var(--rad-ui-color-accent-900);\n}\n.button-ghost:hover{\n border-color:var(--rad-ui-color-accent-950) ;\n background-color: var(--rad-ui-color-accent-300);\n}\n\n\n\n.rui-code-root{\n color: var(--rad-ui-color-accent-950);\n background-color: var(--rad-ui-color-accent-400);\n padding:1px 10px;\n display: inline-block;\n border-radius: 4px;\n font-size:12px;\n}\n\n\n\n.rad-ui-block-quote{\n border-color: var(--rad-ui-color-accent-600);\n border-left-width: 0.5rem;\n padding-left:12px;\n}\n\n\n/** TABS */\n.rad-ui-tab-root{\n\n}\n.rad-ui-tab-list{\n display: flex;\n box-shadow: inset 0 -1px 0 0 var(--rad-ui-color-gray-500);\n}\n\n\n.rad-ui-tab-trigger.active{\n color: var(--rad-ui-color-accent-950);\n border-bottom:2px solid var(--rad-ui-color-accent-900);\n}\n.rad-ui-tab-trigger {\n color: var(--rad-ui-color-accent-600);\n font-family: inherit;\n padding: 10px 10px;\n\n display: flex;\n height:42px;\n font-size: 15px;\n line-height: 1;\n cursor: pointer;\n}\n.rad-ui-tab-trigger:hover{\n color: var(--rad-ui-color-accent-900);\n}\n\n.rad-ui-tab-trigger-inner{\n padding:4px 8px;\n}\n.rad-ui-tab-trigger:hover > .rad-ui-tab-trigger-inner{\n background-color: var(--rad-ui-color-accent-200);\n border-radius: 4px;\n}\n\n.rad-ui-tab-content{\n padding:20px 0px;\n color : var(--rad-ui-color-gray-1000);\n}\n\n\n/** Separator */\n.rad-ui-separator {\n background-color: var(--rad-ui-color-gray-600);\n}\n\n.rad-ui-separator-vertical{\n margin: 0px 8px;\n width: 1px;\n}\n\n.rad-ui-separator-horizontal{\n margin: 8px 0px;\n height: 1px;\n}\n\n/** Badge */\n.rad-ui-badge {\n background-color: var(--rad-ui-color-accent-300);\n color: var(--rad-ui-color-accent-950);\n padding:4px 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: 600;\n border-radius: 4px;\n}\n\n\n.rad-ui-h1{\n font-weight: bold;\n font-size: 60px;\n letter-spacing: -3.5px;\n line-height:72px;\n}\n\n.rad-ui-h2{\n font-weight: bold;\n font-size: 54px;\n letter-spacing: -3px;\n line-height:62px;\n}\n\n.rad-ui-h3{\n font-weight: bold;\n font-size: 48px;\n letter-spacing: -2px;\n line-height:54px;\n}\n\n.rad-ui-h4{\n font-weight: bold;\n font-size: 42px;\n letter-spacing: -1px;\n line-height:48px;\n}\n\n.rad-ui-h5{\n font-weight: bold;\n font-size: 36px;\n letter-spacing: -0.5px;\n line-height:42px;\n}\n\n.rad-ui-h6{\n font-weight: bold;\n font-size: 32px;\n\n line-height:36px;\n}\n\n.rad-ui-text{\n font-size: 16px;\n line-height: 24px;\n}\n\n.rad-ui-link {\n color: var(--rad-ui-color-accent-800);\n cursor: pointer;\n}\n.rad-ui-link:hover {\n color: var(--rad-ui-color-accent-900);\n text-decoration: underline ;\n text-decoration-color: var(--rad-ui-color-accent-600);\n}\n\n.rad-ui-callout {\n padding:16px;\n border-radius:8px;\n background-color: var(--rad-ui-color-accent-200);\n color: var(--rad-ui-color-accent-950);\n display: flex;\n align-items: center;\n font-weight: 300;\n font-size: 14px;\n gap:8px;\n}\n.rad-ui-tooltip{\n \n}\n.rad-ui-tooltip-reference-element{\n\n}\n.rad-ui-tooltip-floating-element{\n background-color:var(--rad-ui-color-gray-1000); \n color: var(--rad-ui-color-gray-100);\n padding: 4px 12px;\n border-radius: 8px;\n}\n\n.rad-ui-arrow{\n fill: var(--rad-ui-color-gray-1000);\n}\n\n.rad-ui-kbd{\n user-select: none;\n font-weight: 400;\n font-family: inherit;\n background-color: var(--rad-ui-color-gray-50);\n color: var(--rad-ui-color-gray-950);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n white-space: nowrap;\n border-radius: 4px;\n border: 1px solid var(--rad-ui-color-gray-500);\n box-shadow: 0px 0px 3px 1px var(--rad-ui-color-gray-400);\n padding: 4px 8px;\n\n \n}"]}
|