@octaviaflow/core 3.1.0-beta.87 → 3.1.0-beta.88
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/components/ScheduleBuilder/ScheduleBuilder.d.ts +1 -0
- package/dist/components/ScheduleBuilder/ScheduleBuilder.d.ts.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduleBuilder/ScheduleBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAO3D,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ScheduleBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduleBuilder/ScheduleBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAO3D,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAM3D,OAAO,+BAA+B,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExF;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,qEAAqE;IACrE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,kDAAkD;IAClD,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yEAAyE;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AA+FD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,WAAmE,EACnE,KAAK,EACL,UAAU,EACV,IAAW,EACX,QAAgB,EAChB,YAAmB,EACnB,WAAkB,EAClB,KAAK,EACL,SAAS,EACT,EAAE,GACH,EAAE,oBAAoB,2CA0HtB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CA4B7D;AAED,eAAe,eAAe,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -13211,7 +13211,7 @@ var TimezonePicker = (0, import_react73.forwardRef)(
|
|
|
13211
13211
|
TimezonePicker.displayName = "TimezonePicker";
|
|
13212
13212
|
|
|
13213
13213
|
// src/components/ScheduleBuilder/ScheduleBuilder.tsx
|
|
13214
|
-
var import_ScheduleBuilder_module =
|
|
13214
|
+
var import_ScheduleBuilder_module = require("./ScheduleBuilder.module.scss");
|
|
13215
13215
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
13216
13216
|
var FREQUENCY_LABELS = {
|
|
13217
13217
|
immediate: "Immediately",
|
|
@@ -13294,15 +13294,15 @@ function ScheduleBuilder({
|
|
|
13294
13294
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
13295
13295
|
"div",
|
|
13296
13296
|
{
|
|
13297
|
-
className: cn(
|
|
13297
|
+
className: cn("ods-schedule-builder", className),
|
|
13298
13298
|
"data-size": size,
|
|
13299
13299
|
id: baseId,
|
|
13300
13300
|
role: "group",
|
|
13301
13301
|
"aria-label": typeof label === "string" ? label : "Schedule",
|
|
13302
13302
|
"aria-describedby": helperText ? helperId : void 0,
|
|
13303
13303
|
children: [
|
|
13304
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className:
|
|
13305
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className:
|
|
13304
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "ods-schedule-builder__label", children: label }),
|
|
13305
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "ods-schedule-builder__row", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
13306
13306
|
SegmentedControl,
|
|
13307
13307
|
{
|
|
13308
13308
|
"aria-label": "Frequency",
|
|
@@ -13313,7 +13313,7 @@ function ScheduleBuilder({
|
|
|
13313
13313
|
options: frequencies.map((f) => ({ value: f, label: FREQUENCY_LABELS[f] }))
|
|
13314
13314
|
}
|
|
13315
13315
|
) }),
|
|
13316
|
-
(showTime || showZone || frequency === "weekly" || frequency === "monthly") && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className:
|
|
13316
|
+
(showTime || showZone || frequency === "weekly" || frequency === "monthly") && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "ods-schedule-builder__fields", children: [
|
|
13317
13317
|
frequency === "weekly" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
13318
13318
|
MultiSelect,
|
|
13319
13319
|
{
|
|
@@ -13368,11 +13368,11 @@ function ScheduleBuilder({
|
|
|
13368
13368
|
}
|
|
13369
13369
|
)
|
|
13370
13370
|
] }),
|
|
13371
|
-
error ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(InlineMessage, { tone: "danger", children: error }) : showSummary ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className:
|
|
13371
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(InlineMessage, { tone: "danger", children: error }) : showSummary ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "ods-schedule-builder__summary", "aria-live": "polite", children: [
|
|
13372
13372
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons22.CalendarIcon, { size: "sm", "aria-hidden": "true" }),
|
|
13373
13373
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: describeSchedule(value) })
|
|
13374
13374
|
] }) : null,
|
|
13375
|
-
helperText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { id: helperId, className:
|
|
13375
|
+
helperText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { id: helperId, className: "ods-schedule-builder__helper", children: helperText })
|
|
13376
13376
|
]
|
|
13377
13377
|
}
|
|
13378
13378
|
);
|
|
@@ -23796,7 +23796,7 @@ function findOpenTrigger(value, caret, trigger) {
|
|
|
23796
23796
|
function getCaretRect(textarea, caret) {
|
|
23797
23797
|
if (typeof document === "undefined") return null;
|
|
23798
23798
|
const mirror = document.createElement("div");
|
|
23799
|
-
const
|
|
23799
|
+
const styles = window.getComputedStyle(textarea);
|
|
23800
23800
|
for (const prop of [
|
|
23801
23801
|
"boxSizing",
|
|
23802
23802
|
"width",
|
|
@@ -23819,7 +23819,7 @@ function getCaretRect(textarea, caret) {
|
|
|
23819
23819
|
"tabSize",
|
|
23820
23820
|
"whiteSpace"
|
|
23821
23821
|
]) {
|
|
23822
|
-
mirror.style[prop] =
|
|
23822
|
+
mirror.style[prop] = styles[prop];
|
|
23823
23823
|
}
|
|
23824
23824
|
mirror.style.position = "absolute";
|
|
23825
23825
|
mirror.style.visibility = "hidden";
|
|
@@ -23976,7 +23976,7 @@ function getSelectionRect(textarea, start, end) {
|
|
|
23976
23976
|
if (typeof document === "undefined") return null;
|
|
23977
23977
|
if (start === end) return null;
|
|
23978
23978
|
const mirror = document.createElement("div");
|
|
23979
|
-
const
|
|
23979
|
+
const styles = window.getComputedStyle(textarea);
|
|
23980
23980
|
for (const prop of [
|
|
23981
23981
|
"boxSizing",
|
|
23982
23982
|
"width",
|
|
@@ -23999,7 +23999,7 @@ function getSelectionRect(textarea, start, end) {
|
|
|
23999
23999
|
"tabSize",
|
|
24000
24000
|
"whiteSpace"
|
|
24001
24001
|
]) {
|
|
24002
|
-
mirror.style[prop] =
|
|
24002
|
+
mirror.style[prop] = styles[prop];
|
|
24003
24003
|
}
|
|
24004
24004
|
mirror.style.position = "absolute";
|
|
24005
24005
|
mirror.style.visibility = "hidden";
|