@ultraviolet/plus 3.4.5 → 3.5.0
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/dist/.vite/license.md +3 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/defineProperty.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js +28 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js +18 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutPropertiesLoose.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPrimitive.js +17 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPropertyKey.js +12 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/typeof.js +14 -0
- package/dist/_virtual/_rolldown/runtime.js +9 -0
- package/dist/components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.js +111 -137
- package/dist/components/CodeEditor/styles.css.js +18 -15
- package/dist/components/ContentCard/Skeleton.d.ts.map +1 -1
- package/dist/components/ContentCard/Skeleton.js +31 -27
- package/dist/components/ContentCard/index.js +107 -140
- package/dist/components/ContentCard/styles.css.d.ts +1 -1
- package/dist/components/ContentCard/styles.css.js +24 -19
- package/dist/components/ContentCardGroup/Card.js +55 -69
- package/dist/components/ContentCardGroup/SkeletonCard.js +28 -14
- package/dist/components/ContentCardGroup/index.d.ts +7 -7
- package/dist/components/ContentCardGroup/index.js +20 -25
- package/dist/components/ContentCardGroup/styles.css.js +6 -11
- package/dist/components/Conversation/index.d.ts +29 -23
- package/dist/components/Conversation/index.d.ts.map +1 -1
- package/dist/components/Conversation/index.js +46 -48
- package/dist/components/Conversation/styles.css.js +18 -13
- package/dist/components/CustomerSatisfaction/assets/1-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/1-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/index.d.ts +1 -1
- package/dist/components/CustomerSatisfaction/index.d.ts.map +1 -1
- package/dist/components/CustomerSatisfaction/index.js +85 -100
- package/dist/components/CustomerSatisfaction/styles.css.js +18 -6
- package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/CustomUnitInput.js +39 -52
- package/dist/components/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Item.js +223 -323
- package/dist/components/EstimateCost/Components/LineThrough.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/LineThrough.js +16 -16
- package/dist/components/EstimateCost/Components/NumberInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/NumberInput.js +33 -37
- package/dist/components/EstimateCost/Components/Region.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Region.js +34 -57
- package/dist/components/EstimateCost/Components/Regular.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Regular.js +21 -26
- package/dist/components/EstimateCost/Components/Strong.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Strong.js +14 -19
- package/dist/components/EstimateCost/Components/Unit.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Unit.js +47 -40
- package/dist/components/EstimateCost/Components/Zone.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Zone.js +33 -55
- package/dist/components/EstimateCost/Components/components.css.js +122 -86
- package/dist/components/EstimateCost/EstimateCost.d.ts +138 -121
- package/dist/components/EstimateCost/EstimateCost.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCost.js +79 -124
- package/dist/components/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +284 -394
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.js +30 -37
- package/dist/components/EstimateCost/OverlayComponent.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayComponent.js +95 -93
- package/dist/components/EstimateCost/OverlayContext.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayContext.js +12 -10
- package/dist/components/EstimateCost/constants.js +19 -21
- package/dist/components/EstimateCost/helper.d.ts +2 -2
- package/dist/components/EstimateCost/helper.d.ts.map +1 -1
- package/dist/components/EstimateCost/helper.js +9 -14
- package/dist/components/EstimateCost/locales/en.js +24 -23
- package/dist/components/EstimateCost/styles.css.d.ts +2 -2
- package/dist/components/EstimateCost/styles.css.js +50 -36
- package/dist/components/EstimateCost/types.d.ts +1 -1
- package/dist/components/EstimateCost/types.d.ts.map +1 -1
- package/dist/components/FAQ/index.d.ts.map +1 -1
- package/dist/components/FAQ/index.js +37 -31
- package/dist/components/FAQ/styles.css.js +6 -4
- package/dist/components/InfoTable/InfoTable.d.ts +10 -13
- package/dist/components/InfoTable/InfoTable.d.ts.map +1 -1
- package/dist/components/InfoTable/InfoTable.js +24 -15
- package/dist/components/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Cell.js +37 -45
- package/dist/components/InfoTable/components/Row.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Row.js +19 -27
- package/dist/components/InfoTable/context.d.ts +1 -1
- package/dist/components/InfoTable/context.d.ts.map +1 -1
- package/dist/components/InfoTable/context.js +5 -3
- package/dist/components/InfoTable/styles.css.js +6 -10
- package/dist/components/Navigation/Footer.d.ts.map +1 -1
- package/dist/components/Navigation/Footer.js +59 -75
- package/dist/components/Navigation/Header.d.ts.map +1 -1
- package/dist/components/Navigation/Header.js +20 -17
- package/dist/components/Navigation/Navigation.d.ts +46 -43
- package/dist/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/components/Navigation/Navigation.js +23 -27
- package/dist/components/Navigation/NavigationContent.d.ts +1 -1
- package/dist/components/Navigation/NavigationContent.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationContent.js +100 -138
- package/dist/components/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationProvider.js +116 -165
- package/dist/components/Navigation/components/Group.d.ts.map +1 -1
- package/dist/components/Navigation/components/Group.js +36 -43
- package/dist/components/Navigation/components/Item.d.ts +1 -1
- package/dist/components/Navigation/components/Item.d.ts.map +1 -1
- package/dist/components/Navigation/components/Item.js +440 -607
- package/dist/components/Navigation/components/ItemProvider.d.ts.map +1 -1
- package/dist/components/Navigation/components/ItemProvider.js +13 -8
- package/dist/components/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/components/Navigation/components/PinnedItems.js +101 -132
- package/dist/components/Navigation/components/Separator.js +10 -7
- package/dist/components/Navigation/components/ShowHide.d.ts +1 -1
- package/dist/components/Navigation/components/ShowHide.d.ts.map +1 -1
- package/dist/components/Navigation/components/ShowHide.js +51 -75
- package/dist/components/Navigation/components/items.css.js +72 -30
- package/dist/components/Navigation/components/styles.css.js +23 -13
- package/dist/components/Navigation/locales/en.js +12 -11
- package/dist/components/Navigation/styles.css.js +29 -14
- package/dist/components/Navigation/variables.css.js +4 -4
- package/dist/components/OfferList/OfferList.d.ts +5 -51
- package/dist/components/OfferList/OfferList.d.ts.map +1 -1
- package/dist/components/OfferList/OfferList.js +11 -78
- package/dist/components/OrderSummary/index.d.ts +5 -2
- package/dist/components/OrderSummary/index.d.ts.map +1 -1
- package/dist/components/OrderSummary/index.js +11 -204
- package/dist/components/Plans/index.d.ts +5 -21
- package/dist/components/Plans/index.d.ts.map +1 -1
- package/dist/components/Plans/index.js +11 -214
- package/dist/components/SteppedListCard/index.d.ts +5 -1
- package/dist/components/SteppedListCard/index.d.ts.map +1 -1
- package/dist/components/SteppedListCard/index.js +11 -0
- package/dist/index.js +5 -21
- package/dist/plus.css +2 -1
- package/package.json +8 -7
- package/LICENSE +0 -189
- package/dist/components/CustomerSatisfaction/assets/1-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.js +0 -4
- package/dist/components/Navigation/constants.js +0 -10
- package/dist/components/OfferList/OfferListProvider.d.ts +0 -30
- package/dist/components/OfferList/OfferListProvider.d.ts.map +0 -1
- package/dist/components/OfferList/OfferListProvider.js +0 -48
- package/dist/components/OfferList/components/Banner.d.ts +0 -13
- package/dist/components/OfferList/components/Banner.d.ts.map +0 -1
- package/dist/components/OfferList/components/Banner.js +0 -43
- package/dist/components/OfferList/components/Cell.d.ts +0 -4
- package/dist/components/OfferList/components/Cell.d.ts.map +0 -1
- package/dist/components/OfferList/components/Cell.js +0 -35
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts +0 -9
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts.map +0 -1
- package/dist/components/OfferList/components/OfferListRowProvider.js +0 -10
- package/dist/components/OfferList/components/Row.d.ts +0 -18
- package/dist/components/OfferList/components/Row.d.ts.map +0 -1
- package/dist/components/OfferList/components/Row.js +0 -258
- package/dist/components/OfferList/styles.css.d.ts +0 -44
- package/dist/components/OfferList/styles.css.d.ts.map +0 -1
- package/dist/components/OfferList/styles.css.js +0 -40
- package/dist/components/OrderSummary/NonScrollableContent.d.ts +0 -20
- package/dist/components/OrderSummary/NonScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/NonScrollableContent.js +0 -136
- package/dist/components/OrderSummary/Provider.d.ts +0 -15
- package/dist/components/OrderSummary/Provider.d.ts.map +0 -1
- package/dist/components/OrderSummary/Provider.js +0 -15
- package/dist/components/OrderSummary/ScrollableContent.d.ts +0 -2
- package/dist/components/OrderSummary/ScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/ScrollableContent.js +0 -314
- package/dist/components/OrderSummary/constants.d.ts +0 -3
- package/dist/components/OrderSummary/constants.d.ts.map +0 -1
- package/dist/components/OrderSummary/constants.js +0 -18
- package/dist/components/OrderSummary/helpers.d.ts +0 -28
- package/dist/components/OrderSummary/helpers.d.ts.map +0 -1
- package/dist/components/OrderSummary/helpers.js +0 -156
- package/dist/components/OrderSummary/locales/en.d.ts +0 -11
- package/dist/components/OrderSummary/locales/en.d.ts.map +0 -1
- package/dist/components/OrderSummary/locales/en.js +0 -12
- package/dist/components/OrderSummary/styles.css.d.ts +0 -21
- package/dist/components/OrderSummary/styles.css.d.ts.map +0 -1
- package/dist/components/OrderSummary/styles.css.js +0 -26
- package/dist/components/OrderSummary/types.d.ts +0 -125
- package/dist/components/OrderSummary/types.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.d.ts +0 -7
- package/dist/components/Plans/FeatureHint.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.js +0 -42
- package/dist/components/Plans/PlanHeader.d.ts +0 -14
- package/dist/components/Plans/PlanHeader.d.ts.map +0 -1
- package/dist/components/Plans/PlanHeader.js +0 -96
- package/dist/components/Plans/locales/en.d.ts +0 -7
- package/dist/components/Plans/locales/en.d.ts.map +0 -1
- package/dist/components/Plans/locales/en.js +0 -8
- package/dist/components/Plans/styles.css.d.ts +0 -67
- package/dist/components/Plans/styles.css.d.ts.map +0 -1
- package/dist/components/Plans/styles.css.js +0 -26
- package/dist/components/Plans/types.d.ts +0 -38
- package/dist/components/Plans/types.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.d.ts +0 -23
- package/dist/components/SteppedListCard/Step.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.js +0 -61
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +0 -69
- package/dist/components/SteppedListCard/SteppedListCard.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListCard.js +0 -105
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +0 -12
- package/dist/components/SteppedListCard/SteppedListContent.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListContent.js +0 -53
- package/dist/components/SteppedListCard/helper.d.ts +0 -27
- package/dist/components/SteppedListCard/helper.d.ts.map +0 -1
- package/dist/components/SteppedListCard/helper.js +0 -41
- package/dist/components/SteppedListCard/styles.css.d.ts +0 -9
- package/dist/components/SteppedListCard/styles.css.d.ts.map +0 -1
- package/dist/components/SteppedListCard/styles.css.js +0 -19
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __name } from "../../_rolldown/runtime.js";
|
|
2
|
+
import { toPropertyKey } from "./toPropertyKey.js";
|
|
3
|
+
|
|
4
|
+
//#region \0@oxc-project+runtime@0.113.0/helpers/defineProperty.js
|
|
5
|
+
function _defineProperty(e, r, t) {
|
|
6
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7
|
+
value: t,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : e[r] = t, e;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _defineProperty };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __name } from "../../_rolldown/runtime.js";
|
|
2
|
+
import { _defineProperty } from "./defineProperty.js";
|
|
3
|
+
|
|
4
|
+
//#region \0@oxc-project+runtime@0.113.0/helpers/objectSpread2.js
|
|
5
|
+
function ownKeys(e, r) {
|
|
6
|
+
var t = Object.keys(e);
|
|
7
|
+
if (Object.getOwnPropertySymbols) {
|
|
8
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
9
|
+
r && (o = o.filter(function(r) {
|
|
10
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
11
|
+
})), t.push.apply(t, o);
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
function _objectSpread2(e) {
|
|
16
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
17
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
18
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
19
|
+
_defineProperty(e, r, t[r]);
|
|
20
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
21
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _objectSpread2 };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __name } from "../../_rolldown/runtime.js";
|
|
2
|
+
import { _objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
|
|
3
|
+
|
|
4
|
+
//#region \0@oxc-project+runtime@0.113.0/helpers/objectWithoutProperties.js
|
|
5
|
+
function _objectWithoutProperties(e, t) {
|
|
6
|
+
if (null == e) return {};
|
|
7
|
+
var o;
|
|
8
|
+
var r;
|
|
9
|
+
var i = _objectWithoutPropertiesLoose(e, t);
|
|
10
|
+
if (Object.getOwnPropertySymbols) {
|
|
11
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
12
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
13
|
+
}
|
|
14
|
+
return i;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _objectWithoutProperties };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __name } from "../../_rolldown/runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region \0@oxc-project+runtime@0.113.0/helpers/objectWithoutPropertiesLoose.js
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
5
|
+
if (null == r) return {};
|
|
6
|
+
var t = {};
|
|
7
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
8
|
+
if (e.includes(n)) continue;
|
|
9
|
+
t[n] = r[n];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _objectWithoutPropertiesLoose };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __name } from "../../_rolldown/runtime.js";
|
|
2
|
+
import { _typeof } from "./typeof.js";
|
|
3
|
+
|
|
4
|
+
//#region \0@oxc-project+runtime@0.113.0/helpers/toPrimitive.js
|
|
5
|
+
function toPrimitive(t, r) {
|
|
6
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
7
|
+
var e = t[Symbol.toPrimitive];
|
|
8
|
+
if (void 0 !== e) {
|
|
9
|
+
var i = e.call(t, r || "default");
|
|
10
|
+
if ("object" != _typeof(i)) return i;
|
|
11
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12
|
+
}
|
|
13
|
+
return ("string" === r ? String : Number)(t);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { toPrimitive };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __name } from "../../_rolldown/runtime.js";
|
|
2
|
+
import { _typeof } from "./typeof.js";
|
|
3
|
+
import { toPrimitive } from "./toPrimitive.js";
|
|
4
|
+
|
|
5
|
+
//#region \0@oxc-project+runtime@0.113.0/helpers/toPropertyKey.js
|
|
6
|
+
function toPropertyKey(t) {
|
|
7
|
+
var i = toPrimitive(t, "string");
|
|
8
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { toPropertyKey };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __name } from "../../_rolldown/runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region \0@oxc-project+runtime@0.113.0/helpers/typeof.js
|
|
4
|
+
function _typeof(o) {
|
|
5
|
+
"@babel/helpers - typeof";
|
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
7
|
+
return typeof o;
|
|
8
|
+
} : function(o) {
|
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
+
}, _typeof(o);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { _typeof };
|
|
@@ -34,6 +34,6 @@ type CodeEditorProps = {
|
|
|
34
34
|
lineNumbers?: boolean;
|
|
35
35
|
style?: CSSProperties;
|
|
36
36
|
};
|
|
37
|
-
export declare const CodeEditor: ({ value, onChange, extensions, onBlur, height, readOnly, autoCompletion, disabled, label, copyButton, id, helper, labelDescription, expandableHeight, hideText, showText,
|
|
37
|
+
export declare const CodeEditor: ({ value, onChange, extensions, onBlur, height, readOnly, autoCompletion, disabled, label, copyButton, id, helper, labelDescription, expandableHeight, hideText, showText, 'aria-label': ariaLabel, 'data-testid': dataTestId, className, error, lineNumbers, style, }: CodeEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
38
|
export {};
|
|
39
39
|
//# sourceMappingURL=CodeEditor.d.ts.map
|
|
@@ -1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CAAA;AAED,eAAO,MAAM,UAAU,qUA+ItB,CAAA"}
|
|
@@ -1,144 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { animatedArrowIcon, centeredText, codeEditor, codeEditorWrapper, copyButton, disabledStack, maxHeightVar, showMoreButton, showMoreContainer } from "./styles.css.js";
|
|
3
4
|
import { langs } from "@uiw/codemirror-extensions-langs";
|
|
4
5
|
import { material } from "@uiw/codemirror-theme-material";
|
|
5
6
|
import CodeMirror from "@uiw/react-codemirror";
|
|
6
7
|
import { ArrowDownIcon } from "@ultraviolet/icons/ArrowDownIcon";
|
|
7
|
-
import { CopyButton,
|
|
8
|
+
import { CopyButton, Expandable, Label, Stack, Text } from "@ultraviolet/ui";
|
|
8
9
|
import { cn } from "@ultraviolet/utils";
|
|
9
10
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
children: /* @__PURE__ */ jsxs(
|
|
115
|
-
Text,
|
|
116
|
-
{
|
|
117
|
-
as: "span",
|
|
118
|
-
className: centeredText,
|
|
119
|
-
sentiment: "neutral",
|
|
120
|
-
variant: "bodySmallStrong",
|
|
121
|
-
children: [
|
|
122
|
-
expanded ? hideText : showText,
|
|
123
|
-
" ",
|
|
124
|
-
/* @__PURE__ */ jsx(
|
|
125
|
-
ArrowDownIcon,
|
|
126
|
-
{
|
|
127
|
-
className: animatedArrowIcon[expanded ? "true" : "false"]
|
|
128
|
-
}
|
|
129
|
-
)
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
}
|
|
134
|
-
) }) : null
|
|
135
|
-
] }),
|
|
136
|
-
error && typeof error !== "boolean" ? /* @__PURE__ */ jsx(Text, { as: "span", sentiment: "danger", variant: "caption", children: error }) : null,
|
|
137
|
-
!error && helper ? /* @__PURE__ */ jsx(Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "caption", children: helper }) : null
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
};
|
|
142
|
-
export {
|
|
143
|
-
CodeEditor
|
|
11
|
+
import { useMemo, useState } from "react";
|
|
12
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
|
|
14
|
+
//#region src/components/CodeEditor/CodeEditor.tsx
|
|
15
|
+
const CodeEditor = ({ value, onChange, extensions = "js", onBlur, height, readOnly, autoCompletion, disabled = false, label, copyButton: copyButton$1, id, helper, labelDescription, expandableHeight, hideText = "Hide", showText = "Show", "aria-label": ariaLabel, "data-testid": dataTestId, className, error, lineNumbers = true, style }) => {
|
|
16
|
+
var _langs$extensions;
|
|
17
|
+
var _langs$extensions2;
|
|
18
|
+
const [expanded, setExpanded] = useState(false);
|
|
19
|
+
const expandableEnabled = expandableHeight !== void 0;
|
|
20
|
+
const expandableHeightComputed = useMemo(() => {
|
|
21
|
+
if (!expanded && expandableHeight) return typeof expandableHeight === "string" ? expandableHeight : `${expandableHeight}px`;
|
|
22
|
+
return "none";
|
|
23
|
+
}, [expandableHeight, expanded]);
|
|
24
|
+
const isEditable = !(disabled && readOnly) && (!expandableEnabled || expanded);
|
|
25
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(CodeMirror, {
|
|
26
|
+
"aria-disabled": disabled,
|
|
27
|
+
"aria-label": ariaLabel,
|
|
28
|
+
basicSetup: {
|
|
29
|
+
autocompletion: autoCompletion,
|
|
30
|
+
highlightActiveLine: false,
|
|
31
|
+
highlightActiveLineGutter: false,
|
|
32
|
+
lineNumbers
|
|
33
|
+
},
|
|
34
|
+
className,
|
|
35
|
+
"data-testid": dataTestId,
|
|
36
|
+
editable: isEditable,
|
|
37
|
+
extensions: [(_langs$extensions = (_langs$extensions2 = langs[extensions]) === null || _langs$extensions2 === void 0 ? void 0 : _langs$extensions2.call(langs)) !== null && _langs$extensions !== void 0 ? _langs$extensions : langs["sh"]],
|
|
38
|
+
height: expandableEnabled ? void 0 : height,
|
|
39
|
+
id,
|
|
40
|
+
onBlur,
|
|
41
|
+
onChange,
|
|
42
|
+
onUpdate: () => {
|
|
43
|
+
if (disabled) {
|
|
44
|
+
var _document$getSelectio;
|
|
45
|
+
(_document$getSelectio = document.getSelection()) === null || _document$getSelectio === void 0 || _document$getSelectio.empty();
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
readOnly: readOnly || disabled,
|
|
49
|
+
theme: material,
|
|
50
|
+
value,
|
|
51
|
+
width: "100%"
|
|
52
|
+
}), copyButton$1 && !disabled ? /* @__PURE__ */ jsx(CopyButton, {
|
|
53
|
+
bordered: true,
|
|
54
|
+
className: copyButton,
|
|
55
|
+
sentiment: "neutral",
|
|
56
|
+
size: "small",
|
|
57
|
+
value,
|
|
58
|
+
children: typeof copyButton$1 === "string" ? copyButton$1 : void 0
|
|
59
|
+
}) : null] });
|
|
60
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
61
|
+
className: cn(disabled ? disabledStack : ""),
|
|
62
|
+
gap: .5,
|
|
63
|
+
style,
|
|
64
|
+
children: [
|
|
65
|
+
label ? /* @__PURE__ */ jsx(Label, {
|
|
66
|
+
labelDescription,
|
|
67
|
+
children: label
|
|
68
|
+
}) : null,
|
|
69
|
+
/* @__PURE__ */ jsxs("div", {
|
|
70
|
+
className: codeEditorWrapper,
|
|
71
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
72
|
+
className: cn(codeEditor[disabled ? "disabled" : "default"]),
|
|
73
|
+
style: assignInlineVars({ [maxHeightVar]: expandableHeightComputed }),
|
|
74
|
+
children: expandableEnabled ? /* @__PURE__ */ jsx(Expandable, {
|
|
75
|
+
minHeight: expandableHeight,
|
|
76
|
+
opened: expanded,
|
|
77
|
+
children: content
|
|
78
|
+
}) : content
|
|
79
|
+
}), expandableEnabled ? /* @__PURE__ */ jsx("div", {
|
|
80
|
+
className: showMoreContainer[expanded ? "true" : "false"],
|
|
81
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
82
|
+
"aria-expanded": expanded,
|
|
83
|
+
className: showMoreButton,
|
|
84
|
+
onClick: () => setExpanded((prevState) => !prevState),
|
|
85
|
+
type: "button",
|
|
86
|
+
children: /* @__PURE__ */ jsxs(Text, {
|
|
87
|
+
as: "span",
|
|
88
|
+
className: centeredText,
|
|
89
|
+
sentiment: "neutral",
|
|
90
|
+
variant: "bodySmallStrong",
|
|
91
|
+
children: [
|
|
92
|
+
expanded ? hideText : showText,
|
|
93
|
+
"\xA0",
|
|
94
|
+
/* @__PURE__ */ jsx(ArrowDownIcon, { className: animatedArrowIcon[expanded ? "true" : "false"] })
|
|
95
|
+
]
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
}) : null]
|
|
99
|
+
}),
|
|
100
|
+
error && typeof error !== "boolean" ? /* @__PURE__ */ jsx(Text, {
|
|
101
|
+
as: "span",
|
|
102
|
+
sentiment: "danger",
|
|
103
|
+
variant: "caption",
|
|
104
|
+
children: error
|
|
105
|
+
}) : null,
|
|
106
|
+
!error && helper ? /* @__PURE__ */ jsx(Text, {
|
|
107
|
+
as: "span",
|
|
108
|
+
prominence: "weak",
|
|
109
|
+
sentiment: "neutral",
|
|
110
|
+
variant: "caption",
|
|
111
|
+
children: helper
|
|
112
|
+
}) : null
|
|
113
|
+
]
|
|
114
|
+
});
|
|
144
115
|
};
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
export { CodeEditor };
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
/* empty css
|
|
1
|
+
/* empty css */
|
|
2
|
+
|
|
3
|
+
//#region src/components/CodeEditor/styles.css.ts
|
|
2
4
|
var maxHeightVar = "var(--uv_plus_1sui13x0)";
|
|
3
5
|
var disabledStack = "uv_plus_1sui13x1";
|
|
4
6
|
var copyButton = "uv_plus_1sui13x2";
|
|
5
|
-
var codeEditor = {
|
|
6
|
-
|
|
7
|
+
var codeEditor = {
|
|
8
|
+
"default": "uv_plus_1sui13x4 uv_plus_1sui13x3",
|
|
9
|
+
disabled: "uv_plus_1sui13x5 uv_plus_1sui13x3"
|
|
10
|
+
};
|
|
11
|
+
var showMoreContainer = {
|
|
12
|
+
false: "uv_plus_1sui13x7 uv_plus_1sui13x6",
|
|
13
|
+
true: "uv_plus_1sui13x8 uv_plus_1sui13x6"
|
|
14
|
+
};
|
|
7
15
|
var showMoreButton = "uv_plus_1sui13x9";
|
|
8
16
|
var centeredText = "uv_plus_1sui13xa";
|
|
9
|
-
var animatedArrowIcon = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
animatedArrowIcon,
|
|
13
|
-
centeredText,
|
|
14
|
-
codeEditor,
|
|
15
|
-
codeEditorWrapper,
|
|
16
|
-
copyButton,
|
|
17
|
-
disabledStack,
|
|
18
|
-
maxHeightVar,
|
|
19
|
-
showMoreButton,
|
|
20
|
-
showMoreContainer
|
|
17
|
+
var animatedArrowIcon = {
|
|
18
|
+
false: "uv_plus_1sui13xb",
|
|
19
|
+
true: "uv_plus_1sui13xc"
|
|
21
20
|
};
|
|
21
|
+
var codeEditorWrapper = "uv_plus_1sui13xd";
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { animatedArrowIcon, centeredText, codeEditor, codeEditorWrapper, copyButton, disabledStack, maxHeightVar, showMoreButton, showMoreContainer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ContentCard/Skeleton.tsx"],"names":[],"mappings":"AAWA,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ContentCard/Skeleton.tsx"],"names":[],"mappings":"AAWA,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,QAAQ,2EAkBpB,CAAA"}
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { paddedStack, skeletonHeightVar, skeletonImage, skeletonWidthVar } from "./styles.css.js";
|
|
4
|
+
import { Skeleton, Stack } from "@ultraviolet/ui";
|
|
4
5
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/ContentCard/Skeleton.tsx
|
|
9
|
+
const Skeleton$1 = /* @__PURE__ */ __name(({ direction }) => /* @__PURE__ */ jsxs(Stack, {
|
|
10
|
+
direction,
|
|
11
|
+
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
12
|
+
className: skeletonImage[direction],
|
|
13
|
+
style: assignInlineVars({
|
|
14
|
+
[skeletonHeightVar]: direction === "column" ? "120px" : "unset",
|
|
15
|
+
[skeletonWidthVar]: direction === "row" ? "220px" : "100%"
|
|
16
|
+
}),
|
|
17
|
+
variant: "square"
|
|
18
|
+
}), /* @__PURE__ */ jsxs(Stack, {
|
|
19
|
+
className: paddedStack,
|
|
20
|
+
gap: 2,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
|
|
23
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
|
|
24
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
|
|
25
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
|
|
26
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "line" })
|
|
27
|
+
]
|
|
28
|
+
})]
|
|
29
|
+
}), "Skeleton");
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Skeleton$1 as Skeleton };
|