@schematichq/schematic-components 0.7.3 → 0.7.4
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.
|
@@ -3017,7 +3017,7 @@ var unitlessKeys = {
|
|
|
3017
3017
|
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
3018
3018
|
var m = "active";
|
|
3019
3019
|
var y = "data-styled-version";
|
|
3020
|
-
var v = "6.1.
|
|
3020
|
+
var v = "6.1.17";
|
|
3021
3021
|
var g = "/*!sc*/\n";
|
|
3022
3022
|
var S = "undefined" != typeof window && "HTMLElement" in window;
|
|
3023
3023
|
var w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
|
|
@@ -3026,7 +3026,7 @@ var E = /invalid hook call/i;
|
|
|
3026
3026
|
var N = /* @__PURE__ */ new Set();
|
|
3027
3027
|
var P = function(t2, n) {
|
|
3028
3028
|
if (true) {
|
|
3029
|
-
var o2 = n ? ' with the id of "'.concat(n, '"') : "", s2 = "The component ".concat(t2).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", i2 = console.error;
|
|
3029
|
+
var o2 = n ? ' with the id of "'.concat(n, '"') : "", s2 = "The component ".concat(t2).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i2 = console.error;
|
|
3030
3030
|
try {
|
|
3031
3031
|
var a2 = true;
|
|
3032
3032
|
console.error = function(t3) {
|
|
@@ -10743,7 +10743,8 @@ function BillingProductPriceTierResponseDataFromJSONTyped(json, ignoreDiscrimina
|
|
|
10743
10743
|
}
|
|
10744
10744
|
return {
|
|
10745
10745
|
flatAmount: json["flat_amount"] == null ? void 0 : json["flat_amount"],
|
|
10746
|
-
perUnitPrice: json["per_unit_price"],
|
|
10746
|
+
perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
|
|
10747
|
+
perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
|
|
10747
10748
|
upTo: json["up_to"] == null ? void 0 : json["up_to"]
|
|
10748
10749
|
};
|
|
10749
10750
|
}
|
|
@@ -13189,7 +13190,7 @@ var EmbedProvider = ({
|
|
|
13189
13190
|
(0, import_react11.useEffect)(() => {
|
|
13190
13191
|
if (accessToken) {
|
|
13191
13192
|
const { headers = {} } = apiConfig ?? {};
|
|
13192
|
-
headers["X-Schematic-Components-Version"] = "0.7.
|
|
13193
|
+
headers["X-Schematic-Components-Version"] = "0.7.4";
|
|
13193
13194
|
headers["X-Schematic-Session-ID"] = sessionIdRef.current;
|
|
13194
13195
|
const config = new Configuration({
|
|
13195
13196
|
...apiConfig,
|
|
@@ -14372,14 +14373,6 @@ var ModalHeader = ({
|
|
|
14372
14373
|
);
|
|
14373
14374
|
};
|
|
14374
14375
|
|
|
14375
|
-
// src/components/ui/progress-bar/styles.ts
|
|
14376
|
-
var Container3 = dt.div`
|
|
14377
|
-
position: relative;
|
|
14378
|
-
display: flex;
|
|
14379
|
-
align-items: center;
|
|
14380
|
-
gap: 1rem;
|
|
14381
|
-
`;
|
|
14382
|
-
|
|
14383
14376
|
// src/components/ui/progress-bar/ProgressBar.tsx
|
|
14384
14377
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
14385
14378
|
var progressColorMap = [
|
|
@@ -14396,7 +14389,6 @@ var ProgressBar = ({
|
|
|
14396
14389
|
total = 0,
|
|
14397
14390
|
color = "gray",
|
|
14398
14391
|
bgColor = "#F2F4F7",
|
|
14399
|
-
barWidth = "100%",
|
|
14400
14392
|
...props
|
|
14401
14393
|
}) => {
|
|
14402
14394
|
const theme = nt();
|
|
@@ -14407,18 +14399,18 @@ var ProgressBar = ({
|
|
|
14407
14399
|
orange: "#DB6769",
|
|
14408
14400
|
red: "#EF4444"
|
|
14409
14401
|
};
|
|
14410
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14419
|
-
|
|
14402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
14403
|
+
Flex,
|
|
14404
|
+
{
|
|
14405
|
+
$position: "relative",
|
|
14406
|
+
$alignItems: "center",
|
|
14407
|
+
$gap: "1rem",
|
|
14408
|
+
$width: "100%",
|
|
14409
|
+
...props,
|
|
14410
|
+
children: [
|
|
14411
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
14412
|
+
Box,
|
|
14420
14413
|
{
|
|
14421
|
-
$position: "relative",
|
|
14422
14414
|
$overflow: "hidden",
|
|
14423
14415
|
$width: "100%",
|
|
14424
14416
|
$height: `${8 / TEXT_BASE_SIZE}rem`,
|
|
@@ -14429,29 +14421,28 @@ var ProgressBar = ({
|
|
|
14429
14421
|
{
|
|
14430
14422
|
$width: `${Math.min(progress, 100)}%`,
|
|
14431
14423
|
$height: "100%",
|
|
14432
|
-
$backgroundColor: barColorMap[color]
|
|
14433
|
-
$borderRadius: "9999px"
|
|
14424
|
+
$backgroundColor: barColorMap[color]
|
|
14434
14425
|
}
|
|
14435
14426
|
)
|
|
14436
14427
|
}
|
|
14428
|
+
),
|
|
14429
|
+
total && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
14430
|
+
Text,
|
|
14431
|
+
{
|
|
14432
|
+
$font: theme.typography.text.fontFamily,
|
|
14433
|
+
$size: 14,
|
|
14434
|
+
$weight: 500,
|
|
14435
|
+
$color: theme.typography.text.color,
|
|
14436
|
+
children: [
|
|
14437
|
+
value,
|
|
14438
|
+
"/",
|
|
14439
|
+
total
|
|
14440
|
+
]
|
|
14441
|
+
}
|
|
14437
14442
|
)
|
|
14438
|
-
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
Text,
|
|
14442
|
-
{
|
|
14443
|
-
$font: theme.typography.text.fontFamily,
|
|
14444
|
-
$size: 14,
|
|
14445
|
-
$weight: 500,
|
|
14446
|
-
$color: theme.typography.text.color,
|
|
14447
|
-
children: [
|
|
14448
|
-
value,
|
|
14449
|
-
"/",
|
|
14450
|
-
total
|
|
14451
|
-
]
|
|
14452
|
-
}
|
|
14453
|
-
)
|
|
14454
|
-
] });
|
|
14443
|
+
]
|
|
14444
|
+
}
|
|
14445
|
+
);
|
|
14455
14446
|
};
|
|
14456
14447
|
|
|
14457
14448
|
// src/components/ui/text/styles.ts
|
|
@@ -14500,7 +14491,9 @@ var import_react19 = require("react");
|
|
|
14500
14491
|
var import_react_dom = require("react-dom");
|
|
14501
14492
|
|
|
14502
14493
|
// src/components/ui/tooltip/styles.ts
|
|
14503
|
-
var Trigger = dt.div
|
|
14494
|
+
var Trigger = dt.div`
|
|
14495
|
+
width: 100%;
|
|
14496
|
+
`;
|
|
14504
14497
|
var coords = (position2) => {
|
|
14505
14498
|
let x2 = 0;
|
|
14506
14499
|
let y2 = 0;
|
|
@@ -14656,13 +14649,15 @@ var Tooltip = ({
|
|
|
14656
14649
|
}
|
|
14657
14650
|
}, [position2]);
|
|
14658
14651
|
(0, import_react19.useLayoutEffect)(() => {
|
|
14659
|
-
updateCoords();
|
|
14660
14652
|
const handleResize = (0, import_debounce.default)(updateCoords, DEBOUNCE_TIMEOUT);
|
|
14661
14653
|
window.addEventListener("resize", handleResize);
|
|
14662
14654
|
return () => {
|
|
14663
14655
|
window.removeEventListener("resize", handleResize);
|
|
14664
14656
|
};
|
|
14665
14657
|
}, [updateCoords]);
|
|
14658
|
+
(0, import_react19.useLayoutEffect)(() => {
|
|
14659
|
+
updateCoords();
|
|
14660
|
+
}, [updateCoords, show]);
|
|
14666
14661
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
14667
14662
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
14668
14663
|
Trigger,
|
|
@@ -16377,7 +16372,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16377
16372
|
};
|
|
16378
16373
|
|
|
16379
16374
|
// node_modules/@stripe/stripe-js/dist/index.mjs
|
|
16380
|
-
var RELEASE_TRAIN = "
|
|
16375
|
+
var RELEASE_TRAIN = "basil";
|
|
16381
16376
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion2(version) {
|
|
16382
16377
|
return version === 3 ? "v3" : version;
|
|
16383
16378
|
};
|
|
@@ -16417,7 +16412,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
|
|
|
16417
16412
|
}
|
|
16418
16413
|
stripe._registerWrapper({
|
|
16419
16414
|
name: "stripe-js",
|
|
16420
|
-
version: "
|
|
16415
|
+
version: "7.0.0",
|
|
16421
16416
|
startTime
|
|
16422
16417
|
});
|
|
16423
16418
|
};
|
|
@@ -16492,7 +16487,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
|
|
|
16492
16487
|
var version = runtimeVersionToUrlVersion(maybeStripe.version);
|
|
16493
16488
|
var expectedVersion = RELEASE_TRAIN;
|
|
16494
16489
|
if (isTestKey && version !== expectedVersion) {
|
|
16495
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
16490
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
16496
16491
|
}
|
|
16497
16492
|
var stripe = maybeStripe.apply(void 0, args);
|
|
16498
16493
|
registerWrapper(stripe, startTime);
|
|
@@ -18940,7 +18935,7 @@ Invoices.displayName = "Invoices";
|
|
|
18940
18935
|
var import_react35 = require("react");
|
|
18941
18936
|
|
|
18942
18937
|
// src/components/elements/metered-features/styles.ts
|
|
18943
|
-
var
|
|
18938
|
+
var Container3 = dt.div`
|
|
18944
18939
|
display: flex;
|
|
18945
18940
|
flex-direction: column;
|
|
18946
18941
|
gap: 1rem;
|
|
@@ -19036,7 +19031,7 @@ var MeteredFeatures = (0, import_react35.forwardRef)(({ className, ...rest }, re
|
|
|
19036
19031
|
if (!shouldShowFeatures) {
|
|
19037
19032
|
return null;
|
|
19038
19033
|
}
|
|
19039
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
19034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Container3, { ref, className, children: featureUsage.map(
|
|
19040
19035
|
({
|
|
19041
19036
|
feature,
|
|
19042
19037
|
priceBehavior,
|
|
@@ -19061,8 +19056,7 @@ var MeteredFeatures = (0, import_react35.forwardRef)(({ className, ...rest }, re
|
|
|
19061
19056
|
color: isOverage ? "blue" : progressColorMap[Math.floor(
|
|
19062
19057
|
Math.min(usage, limit) / limit * (progressColorMap.length - 1)
|
|
19063
19058
|
)],
|
|
19064
|
-
...isOverage && { bgColor: "#EF4444" }
|
|
19065
|
-
$flexGrow: 1
|
|
19059
|
+
...isOverage && { bgColor: "#EF4444" }
|
|
19066
19060
|
}
|
|
19067
19061
|
);
|
|
19068
19062
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Flex, { $flexDirection: "column-reverse", children: [
|
|
@@ -462,7 +462,13 @@ declare interface BillingProductPriceTierResponseData {
|
|
|
462
462
|
* @type {number}
|
|
463
463
|
* @memberof BillingProductPriceTierResponseData
|
|
464
464
|
*/
|
|
465
|
-
perUnitPrice
|
|
465
|
+
perUnitPrice?: number | null;
|
|
466
|
+
/**
|
|
467
|
+
*
|
|
468
|
+
* @type {string}
|
|
469
|
+
* @memberof BillingProductPriceTierResponseData
|
|
470
|
+
*/
|
|
471
|
+
perUnitPriceDecimal?: string | null;
|
|
466
472
|
/**
|
|
467
473
|
*
|
|
468
474
|
* @type {number}
|
|
@@ -4244,7 +4250,7 @@ export declare const PricingTable: ForwardRefExoticComponent<ElementProps & Recu
|
|
|
4244
4250
|
|
|
4245
4251
|
export declare type PricingTableProps = DesignProps_7;
|
|
4246
4252
|
|
|
4247
|
-
export declare const ProgressBar: ({ progress, value, total, color, bgColor,
|
|
4253
|
+
export declare const ProgressBar: ({ progress, value, total, color, bgColor, ...props }: ProgressBarProps) => JSX.Element;
|
|
4248
4254
|
|
|
4249
4255
|
export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
|
|
4250
4256
|
progress: number;
|
|
@@ -4252,7 +4258,6 @@ export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef
|
|
|
4252
4258
|
total?: number | string;
|
|
4253
4259
|
color?: "gray" | "blue" | "yellow" | "orange" | "red";
|
|
4254
4260
|
bgColor?: string;
|
|
4255
|
-
barWidth?: string | number;
|
|
4256
4261
|
}
|
|
4257
4262
|
|
|
4258
4263
|
export declare const progressColorMap: ("blue" | "red" | "yellow")[];
|
|
@@ -2964,7 +2964,7 @@ var unitlessKeys = {
|
|
|
2964
2964
|
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
2965
2965
|
var m = "active";
|
|
2966
2966
|
var y = "data-styled-version";
|
|
2967
|
-
var v = "6.1.
|
|
2967
|
+
var v = "6.1.17";
|
|
2968
2968
|
var g = "/*!sc*/\n";
|
|
2969
2969
|
var S = "undefined" != typeof window && "HTMLElement" in window;
|
|
2970
2970
|
var w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
|
|
@@ -2973,7 +2973,7 @@ var E = /invalid hook call/i;
|
|
|
2973
2973
|
var N = /* @__PURE__ */ new Set();
|
|
2974
2974
|
var P = function(t2, n) {
|
|
2975
2975
|
if (true) {
|
|
2976
|
-
var o2 = n ? ' with the id of "'.concat(n, '"') : "", s2 = "The component ".concat(t2).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", i2 = console.error;
|
|
2976
|
+
var o2 = n ? ' with the id of "'.concat(n, '"') : "", s2 = "The component ".concat(t2).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i2 = console.error;
|
|
2977
2977
|
try {
|
|
2978
2978
|
var a2 = true;
|
|
2979
2979
|
console.error = function(t3) {
|
|
@@ -10690,7 +10690,8 @@ function BillingProductPriceTierResponseDataFromJSONTyped(json, ignoreDiscrimina
|
|
|
10690
10690
|
}
|
|
10691
10691
|
return {
|
|
10692
10692
|
flatAmount: json["flat_amount"] == null ? void 0 : json["flat_amount"],
|
|
10693
|
-
perUnitPrice: json["per_unit_price"],
|
|
10693
|
+
perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
|
|
10694
|
+
perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
|
|
10694
10695
|
upTo: json["up_to"] == null ? void 0 : json["up_to"]
|
|
10695
10696
|
};
|
|
10696
10697
|
}
|
|
@@ -13136,7 +13137,7 @@ var EmbedProvider = ({
|
|
|
13136
13137
|
useEffect2(() => {
|
|
13137
13138
|
if (accessToken) {
|
|
13138
13139
|
const { headers = {} } = apiConfig ?? {};
|
|
13139
|
-
headers["X-Schematic-Components-Version"] = "0.7.
|
|
13140
|
+
headers["X-Schematic-Components-Version"] = "0.7.4";
|
|
13140
13141
|
headers["X-Schematic-Session-ID"] = sessionIdRef.current;
|
|
13141
13142
|
const config = new Configuration({
|
|
13142
13143
|
...apiConfig,
|
|
@@ -14319,14 +14320,6 @@ var ModalHeader = ({
|
|
|
14319
14320
|
);
|
|
14320
14321
|
};
|
|
14321
14322
|
|
|
14322
|
-
// src/components/ui/progress-bar/styles.ts
|
|
14323
|
-
var Container3 = dt.div`
|
|
14324
|
-
position: relative;
|
|
14325
|
-
display: flex;
|
|
14326
|
-
align-items: center;
|
|
14327
|
-
gap: 1rem;
|
|
14328
|
-
`;
|
|
14329
|
-
|
|
14330
14323
|
// src/components/ui/progress-bar/ProgressBar.tsx
|
|
14331
14324
|
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
14332
14325
|
var progressColorMap = [
|
|
@@ -14343,7 +14336,6 @@ var ProgressBar = ({
|
|
|
14343
14336
|
total = 0,
|
|
14344
14337
|
color = "gray",
|
|
14345
14338
|
bgColor = "#F2F4F7",
|
|
14346
|
-
barWidth = "100%",
|
|
14347
14339
|
...props
|
|
14348
14340
|
}) => {
|
|
14349
14341
|
const theme = nt();
|
|
@@ -14354,18 +14346,18 @@ var ProgressBar = ({
|
|
|
14354
14346
|
orange: "#DB6769",
|
|
14355
14347
|
red: "#EF4444"
|
|
14356
14348
|
};
|
|
14357
|
-
return /* @__PURE__ */ jsxs4(
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
|
|
14364
|
-
|
|
14365
|
-
|
|
14366
|
-
|
|
14349
|
+
return /* @__PURE__ */ jsxs4(
|
|
14350
|
+
Flex,
|
|
14351
|
+
{
|
|
14352
|
+
$position: "relative",
|
|
14353
|
+
$alignItems: "center",
|
|
14354
|
+
$gap: "1rem",
|
|
14355
|
+
$width: "100%",
|
|
14356
|
+
...props,
|
|
14357
|
+
children: [
|
|
14358
|
+
/* @__PURE__ */ jsx7(
|
|
14359
|
+
Box,
|
|
14367
14360
|
{
|
|
14368
|
-
$position: "relative",
|
|
14369
14361
|
$overflow: "hidden",
|
|
14370
14362
|
$width: "100%",
|
|
14371
14363
|
$height: `${8 / TEXT_BASE_SIZE}rem`,
|
|
@@ -14376,29 +14368,28 @@ var ProgressBar = ({
|
|
|
14376
14368
|
{
|
|
14377
14369
|
$width: `${Math.min(progress, 100)}%`,
|
|
14378
14370
|
$height: "100%",
|
|
14379
|
-
$backgroundColor: barColorMap[color]
|
|
14380
|
-
$borderRadius: "9999px"
|
|
14371
|
+
$backgroundColor: barColorMap[color]
|
|
14381
14372
|
}
|
|
14382
14373
|
)
|
|
14383
14374
|
}
|
|
14375
|
+
),
|
|
14376
|
+
total && /* @__PURE__ */ jsxs4(
|
|
14377
|
+
Text,
|
|
14378
|
+
{
|
|
14379
|
+
$font: theme.typography.text.fontFamily,
|
|
14380
|
+
$size: 14,
|
|
14381
|
+
$weight: 500,
|
|
14382
|
+
$color: theme.typography.text.color,
|
|
14383
|
+
children: [
|
|
14384
|
+
value,
|
|
14385
|
+
"/",
|
|
14386
|
+
total
|
|
14387
|
+
]
|
|
14388
|
+
}
|
|
14384
14389
|
)
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
Text,
|
|
14389
|
-
{
|
|
14390
|
-
$font: theme.typography.text.fontFamily,
|
|
14391
|
-
$size: 14,
|
|
14392
|
-
$weight: 500,
|
|
14393
|
-
$color: theme.typography.text.color,
|
|
14394
|
-
children: [
|
|
14395
|
-
value,
|
|
14396
|
-
"/",
|
|
14397
|
-
total
|
|
14398
|
-
]
|
|
14399
|
-
}
|
|
14400
|
-
)
|
|
14401
|
-
] });
|
|
14390
|
+
]
|
|
14391
|
+
}
|
|
14392
|
+
);
|
|
14402
14393
|
};
|
|
14403
14394
|
|
|
14404
14395
|
// src/components/ui/text/styles.ts
|
|
@@ -14447,7 +14438,9 @@ import { useCallback as useCallback6, useLayoutEffect as useLayoutEffect3, useRe
|
|
|
14447
14438
|
import { createPortal } from "react-dom";
|
|
14448
14439
|
|
|
14449
14440
|
// src/components/ui/tooltip/styles.ts
|
|
14450
|
-
var Trigger = dt.div
|
|
14441
|
+
var Trigger = dt.div`
|
|
14442
|
+
width: 100%;
|
|
14443
|
+
`;
|
|
14451
14444
|
var coords = (position2) => {
|
|
14452
14445
|
let x2 = 0;
|
|
14453
14446
|
let y2 = 0;
|
|
@@ -14603,13 +14596,15 @@ var Tooltip = ({
|
|
|
14603
14596
|
}
|
|
14604
14597
|
}, [position2]);
|
|
14605
14598
|
useLayoutEffect3(() => {
|
|
14606
|
-
updateCoords();
|
|
14607
14599
|
const handleResize = (0, import_debounce.default)(updateCoords, DEBOUNCE_TIMEOUT);
|
|
14608
14600
|
window.addEventListener("resize", handleResize);
|
|
14609
14601
|
return () => {
|
|
14610
14602
|
window.removeEventListener("resize", handleResize);
|
|
14611
14603
|
};
|
|
14612
14604
|
}, [updateCoords]);
|
|
14605
|
+
useLayoutEffect3(() => {
|
|
14606
|
+
updateCoords();
|
|
14607
|
+
}, [updateCoords, show]);
|
|
14613
14608
|
return /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
14614
14609
|
/* @__PURE__ */ jsx8(
|
|
14615
14610
|
Trigger,
|
|
@@ -16334,7 +16329,7 @@ var AddOns = ({ addOns, toggle, isLoading, period }) => {
|
|
|
16334
16329
|
};
|
|
16335
16330
|
|
|
16336
16331
|
// node_modules/@stripe/stripe-js/dist/index.mjs
|
|
16337
|
-
var RELEASE_TRAIN = "
|
|
16332
|
+
var RELEASE_TRAIN = "basil";
|
|
16338
16333
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion2(version) {
|
|
16339
16334
|
return version === 3 ? "v3" : version;
|
|
16340
16335
|
};
|
|
@@ -16374,7 +16369,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
|
|
|
16374
16369
|
}
|
|
16375
16370
|
stripe._registerWrapper({
|
|
16376
16371
|
name: "stripe-js",
|
|
16377
|
-
version: "
|
|
16372
|
+
version: "7.0.0",
|
|
16378
16373
|
startTime
|
|
16379
16374
|
});
|
|
16380
16375
|
};
|
|
@@ -16449,7 +16444,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
|
|
|
16449
16444
|
var version = runtimeVersionToUrlVersion(maybeStripe.version);
|
|
16450
16445
|
var expectedVersion = RELEASE_TRAIN;
|
|
16451
16446
|
if (isTestKey && version !== expectedVersion) {
|
|
16452
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
16447
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("7.0.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
16453
16448
|
}
|
|
16454
16449
|
var stripe = maybeStripe.apply(void 0, args);
|
|
16455
16450
|
registerWrapper(stripe, startTime);
|
|
@@ -18901,7 +18896,7 @@ Invoices.displayName = "Invoices";
|
|
|
18901
18896
|
import { forwardRef as forwardRef10, useMemo as useMemo10, useRef as useRef8 } from "react";
|
|
18902
18897
|
|
|
18903
18898
|
// src/components/elements/metered-features/styles.ts
|
|
18904
|
-
var
|
|
18899
|
+
var Container3 = dt.div`
|
|
18905
18900
|
display: flex;
|
|
18906
18901
|
flex-direction: column;
|
|
18907
18902
|
gap: 1rem;
|
|
@@ -18997,7 +18992,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
18997
18992
|
if (!shouldShowFeatures) {
|
|
18998
18993
|
return null;
|
|
18999
18994
|
}
|
|
19000
|
-
return /* @__PURE__ */ jsx31(
|
|
18995
|
+
return /* @__PURE__ */ jsx31(Container3, { ref, className, children: featureUsage.map(
|
|
19001
18996
|
({
|
|
19002
18997
|
feature,
|
|
19003
18998
|
priceBehavior,
|
|
@@ -19022,8 +19017,7 @@ var MeteredFeatures = forwardRef10(({ className, ...rest }, ref) => {
|
|
|
19022
19017
|
color: isOverage ? "blue" : progressColorMap[Math.floor(
|
|
19023
19018
|
Math.min(usage, limit) / limit * (progressColorMap.length - 1)
|
|
19024
19019
|
)],
|
|
19025
|
-
...isOverage && { bgColor: "#EF4444" }
|
|
19026
|
-
$flexGrow: 1
|
|
19020
|
+
...isOverage && { bgColor: "#EF4444" }
|
|
19027
19021
|
}
|
|
19028
19022
|
);
|
|
19029
19023
|
return /* @__PURE__ */ jsxs24(Flex, { $flexDirection: "column-reverse", children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"main": "dist/schematic-components.cjs.js",
|
|
5
5
|
"module": "dist/schematic-components.esm.js",
|
|
6
6
|
"types": "dist/schematic-components.d.ts",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"tsc": "npx tsc"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stripe/stripe-js": "^
|
|
33
|
+
"@stripe/stripe-js": "^7.0.0",
|
|
34
34
|
"classnames": "^2.5.1",
|
|
35
35
|
"i18next": "^24.2.3",
|
|
36
36
|
"lodash": "^4.17.21",
|
|
37
37
|
"pako": "^2.1.0",
|
|
38
38
|
"pluralize": "^8.0.0",
|
|
39
39
|
"react-i18next": "^15.4.1",
|
|
40
|
-
"styled-components": "^6.1.
|
|
40
|
+
"styled-components": "^6.1.17",
|
|
41
41
|
"uuid": "^11.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|