@olenbetong/synergi-react 0.7.1 → 0.7.2
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/esm/ob.react.js +91 -225
- package/dist/esm/ob.react.min.css.map +1 -1
- package/dist/iife/ob.react.js +91 -225
- package/dist/iife/ob.react.min.css.map +1 -1
- package/package.json +3 -3
package/dist/esm/ob.react.js
CHANGED
|
@@ -2209,16 +2209,7 @@ var clsx_m_default = clsx;
|
|
|
2209
2209
|
// src/Checkbox/index.tsx
|
|
2210
2210
|
var import_react = __toESM(require_react(), 1);
|
|
2211
2211
|
function Mark(props) {
|
|
2212
|
-
return /* @__PURE__ */ React.createElement("svg", {
|
|
2213
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2214
|
-
width: "24",
|
|
2215
|
-
height: "24",
|
|
2216
|
-
viewBox: "0 0 24 24",
|
|
2217
|
-
...props
|
|
2218
|
-
}, /* @__PURE__ */ React.createElement("path", {
|
|
2219
|
-
d: "M20.285 2L9 13.567 3.714 8.556 0 12.272 9 21 24 5.715z",
|
|
2220
|
-
fill: "currentColor"
|
|
2221
|
-
}));
|
|
2212
|
+
return /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M20.285 2L9 13.567 3.714 8.556 0 12.272 9 21 24 5.715z", fill: "currentColor" }));
|
|
2222
2213
|
}
|
|
2223
2214
|
var Checkbox = (0, import_react.forwardRef)(function Checkbox2({ className, disabled = false, id, onChange = () => null, title, value, ...other }, ref) {
|
|
2224
2215
|
const inputId = (0, import_react.useId)() + (id ?? "");
|
|
@@ -2251,28 +2242,19 @@ var Checkbox = (0, import_react.forwardRef)(function Checkbox2({ className, disa
|
|
|
2251
2242
|
}
|
|
2252
2243
|
}
|
|
2253
2244
|
}
|
|
2254
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
htmlFor: `#${inputId}`,
|
|
2268
|
-
className: "ObCheckbox-label",
|
|
2269
|
-
onKeyDown: handleKeyDown,
|
|
2270
|
-
onClick: handleClick
|
|
2271
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
2272
|
-
className: "ObCheckbox-box"
|
|
2273
|
-
}, /* @__PURE__ */ React.createElement(Mark, {
|
|
2274
|
-
className: "ObCheckbox-mark"
|
|
2275
|
-
}))));
|
|
2245
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx_m_default("ObCheckbox-root", disabled && "Ob-disabled", className), title }, /* @__PURE__ */ React.createElement(
|
|
2246
|
+
"input",
|
|
2247
|
+
{
|
|
2248
|
+
className: "ObCheckbox-input",
|
|
2249
|
+
id: inputId,
|
|
2250
|
+
type: "checkbox",
|
|
2251
|
+
onChange: handleInputChanged,
|
|
2252
|
+
checked: value,
|
|
2253
|
+
disabled,
|
|
2254
|
+
ref: input,
|
|
2255
|
+
...other
|
|
2256
|
+
}
|
|
2257
|
+
), /* @__PURE__ */ React.createElement("label", { htmlFor: `#${inputId}`, className: "ObCheckbox-label", onKeyDown: handleKeyDown, onClick: handleClick }, /* @__PURE__ */ React.createElement("div", { className: "ObCheckbox-box" }, /* @__PURE__ */ React.createElement(Mark, { className: "ObCheckbox-mark" }))));
|
|
2276
2258
|
});
|
|
2277
2259
|
|
|
2278
2260
|
// src/ColorCard/index.tsx
|
|
@@ -2284,11 +2266,7 @@ function ColorCard({
|
|
|
2284
2266
|
...other
|
|
2285
2267
|
}) {
|
|
2286
2268
|
const BaseElement = Component ? Component : href ? "a" : "div";
|
|
2287
|
-
return /* @__PURE__ */ React.createElement(BaseElement, {
|
|
2288
|
-
className: clsx_m_default("ObColorCard-root", className),
|
|
2289
|
-
href,
|
|
2290
|
-
...other
|
|
2291
|
-
}, children);
|
|
2269
|
+
return /* @__PURE__ */ React.createElement(BaseElement, { className: clsx_m_default("ObColorCard-root", className), href, ...other }, children);
|
|
2292
2270
|
}
|
|
2293
2271
|
function CardColumn({
|
|
2294
2272
|
children,
|
|
@@ -2296,10 +2274,7 @@ function CardColumn({
|
|
|
2296
2274
|
minor,
|
|
2297
2275
|
...other
|
|
2298
2276
|
}) {
|
|
2299
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2300
|
-
className: clsx_m_default("ObColorCard-column", minor && "ObColorCard-minor", className),
|
|
2301
|
-
...other
|
|
2302
|
-
}, children);
|
|
2277
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx_m_default("ObColorCard-column", minor && "ObColorCard-minor", className), ...other }, children);
|
|
2303
2278
|
}
|
|
2304
2279
|
function CardDetail({
|
|
2305
2280
|
children,
|
|
@@ -2308,20 +2283,10 @@ function CardDetail({
|
|
|
2308
2283
|
primary,
|
|
2309
2284
|
...other
|
|
2310
2285
|
}) {
|
|
2311
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2312
|
-
className: clsx_m_default("ObColorCard-detail", primary && "ObColorCard-primary", className),
|
|
2313
|
-
...other
|
|
2314
|
-
}, label && /* @__PURE__ */ React.createElement("div", {
|
|
2315
|
-
className: "ObColorCard-detailLabel"
|
|
2316
|
-
}, label), /* @__PURE__ */ React.createElement("div", {
|
|
2317
|
-
className: "ObColorCard-detailValue"
|
|
2318
|
-
}, children));
|
|
2286
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx_m_default("ObColorCard-detail", primary && "ObColorCard-primary", className), ...other }, label && /* @__PURE__ */ React.createElement("div", { className: "ObColorCard-detailLabel" }, label), /* @__PURE__ */ React.createElement("div", { className: "ObColorCard-detailValue" }, children));
|
|
2319
2287
|
}
|
|
2320
2288
|
function CardLabel({ children, className, ...other }) {
|
|
2321
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2322
|
-
className: clsx_m_default("ObColorCard-label", className),
|
|
2323
|
-
...other
|
|
2324
|
-
}, children);
|
|
2289
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx_m_default("ObColorCard-label", className), ...other }, children);
|
|
2325
2290
|
}
|
|
2326
2291
|
|
|
2327
2292
|
// src/DateNavigator/index.tsx
|
|
@@ -2332,31 +2297,29 @@ function getUiCulture() {
|
|
|
2332
2297
|
}
|
|
2333
2298
|
function Arrow(props) {
|
|
2334
2299
|
const { direction, ...rest } = props;
|
|
2335
|
-
return /* @__PURE__ */ React.createElement(
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
"aria-hidden": "true",
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
|
|
2359
|
-
}))));
|
|
2300
|
+
return /* @__PURE__ */ React.createElement(
|
|
2301
|
+
"button",
|
|
2302
|
+
{
|
|
2303
|
+
className: clsx_m_default(
|
|
2304
|
+
"ObDateNavigator-arrow",
|
|
2305
|
+
direction === "left" ? "ObDateNavigator-arrowLeft" : "ObDateNavigator-arrowRight"
|
|
2306
|
+
),
|
|
2307
|
+
...rest
|
|
2308
|
+
},
|
|
2309
|
+
/* @__PURE__ */ React.createElement("span", { className: "ObDateNavigator-icon" }, direction === "left" ? /* @__PURE__ */ React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 320 512" }, /* @__PURE__ */ React.createElement(
|
|
2310
|
+
"path",
|
|
2311
|
+
{
|
|
2312
|
+
fill: "currentColor",
|
|
2313
|
+
d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"
|
|
2314
|
+
}
|
|
2315
|
+
)) : /* @__PURE__ */ React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 320 512" }, /* @__PURE__ */ React.createElement(
|
|
2316
|
+
"path",
|
|
2317
|
+
{
|
|
2318
|
+
fill: "currentColor",
|
|
2319
|
+
d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
|
|
2320
|
+
}
|
|
2321
|
+
)))
|
|
2322
|
+
);
|
|
2360
2323
|
}
|
|
2361
2324
|
var formatter = new Intl.DateTimeFormat(getUiCulture(), {
|
|
2362
2325
|
weekday: "short",
|
|
@@ -2392,25 +2355,12 @@ function DateNavigator({ date: dateProp, onChange }) {
|
|
|
2392
2355
|
setInternalDate(date2);
|
|
2393
2356
|
}
|
|
2394
2357
|
}
|
|
2395
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2396
|
-
className: "ObDateNavigator-root"
|
|
2397
|
-
}, /* @__PURE__ */ React.createElement(Arrow, {
|
|
2398
|
-
direction: "left",
|
|
2399
|
-
onClick: () => handleDateChanged(new Date(dateUtc - oneDay))
|
|
2400
|
-
}), /* @__PURE__ */ React.createElement("div", {
|
|
2401
|
-
className: "ObDateNavigator-date"
|
|
2402
|
-
}, text), /* @__PURE__ */ React.createElement(Arrow, {
|
|
2403
|
-
direction: "right",
|
|
2404
|
-
onClick: () => handleDateChanged(new Date(dateUtc + oneDay))
|
|
2405
|
-
}));
|
|
2358
|
+
return /* @__PURE__ */ React.createElement("div", { className: "ObDateNavigator-root" }, /* @__PURE__ */ React.createElement(Arrow, { direction: "left", onClick: () => handleDateChanged(new Date(dateUtc - oneDay)) }), /* @__PURE__ */ React.createElement("div", { className: "ObDateNavigator-date" }, text), /* @__PURE__ */ React.createElement(Arrow, { direction: "right", onClick: () => handleDateChanged(new Date(dateUtc + oneDay)) }));
|
|
2406
2359
|
}
|
|
2407
2360
|
|
|
2408
2361
|
// src/LinkedCardList/index.tsx
|
|
2409
2362
|
function List({ children, className, ...other }) {
|
|
2410
|
-
return /* @__PURE__ */ React.createElement("ul", {
|
|
2411
|
-
className: clsx_m_default("ObLinkedList-root", className),
|
|
2412
|
-
...other
|
|
2413
|
-
}, children);
|
|
2363
|
+
return /* @__PURE__ */ React.createElement("ul", { className: clsx_m_default("ObLinkedList-root", className), ...other }, children);
|
|
2414
2364
|
}
|
|
2415
2365
|
function ListItem({
|
|
2416
2366
|
children,
|
|
@@ -2418,72 +2368,41 @@ function ListItem({
|
|
|
2418
2368
|
label,
|
|
2419
2369
|
...other
|
|
2420
2370
|
}) {
|
|
2421
|
-
return /* @__PURE__ */ React.createElement("li", {
|
|
2422
|
-
className: clsx_m_default("ObLinkedList-item", className),
|
|
2423
|
-
...other
|
|
2424
|
-
}, label && /* @__PURE__ */ React.createElement("div", {
|
|
2425
|
-
className: "ObLinkedList-leftColumn"
|
|
2426
|
-
}, label), /* @__PURE__ */ React.createElement("div", {
|
|
2427
|
-
className: "ObLinkedList-line"
|
|
2428
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
2429
|
-
className: "ObLinkedList-bullet"
|
|
2430
|
-
})), /* @__PURE__ */ React.createElement("div", {
|
|
2431
|
-
className: "ObLinkedList-rightColumn"
|
|
2432
|
-
}, children));
|
|
2371
|
+
return /* @__PURE__ */ React.createElement("li", { className: clsx_m_default("ObLinkedList-item", className), ...other }, label && /* @__PURE__ */ React.createElement("div", { className: "ObLinkedList-leftColumn" }, label), /* @__PURE__ */ React.createElement("div", { className: "ObLinkedList-line" }, /* @__PURE__ */ React.createElement("div", { className: "ObLinkedList-bullet" })), /* @__PURE__ */ React.createElement("div", { className: "ObLinkedList-rightColumn" }, children));
|
|
2433
2372
|
}
|
|
2434
2373
|
function Card({ as, children, className, ...other }) {
|
|
2435
2374
|
const Component = as || "div";
|
|
2436
|
-
return /* @__PURE__ */ React.createElement(Component, {
|
|
2437
|
-
className: clsx_m_default("ObLinkedList-card", className),
|
|
2438
|
-
...other
|
|
2439
|
-
}, children);
|
|
2375
|
+
return /* @__PURE__ */ React.createElement(Component, { className: clsx_m_default("ObLinkedList-card", className), ...other }, children);
|
|
2440
2376
|
}
|
|
2441
2377
|
|
|
2442
2378
|
// src/PageBanner/index.tsx
|
|
2443
2379
|
var import_react3 = __toESM(require_react(), 1);
|
|
2444
2380
|
function PageBanner({ as, className, children, ...other }) {
|
|
2445
2381
|
const Component = as ? as : "section";
|
|
2446
|
-
return /* @__PURE__ */ import_react3.default.createElement(Component, {
|
|
2447
|
-
className: clsx_m_default("ObPageBanner-root", className),
|
|
2448
|
-
...other
|
|
2449
|
-
}, /* @__PURE__ */ import_react3.default.createElement("div", {
|
|
2450
|
-
className: "container px-0"
|
|
2451
|
-
}, /* @__PURE__ */ import_react3.default.createElement("div", {
|
|
2452
|
-
className: "ObPageBanner-pageBannerInner"
|
|
2453
|
-
}, children)));
|
|
2382
|
+
return /* @__PURE__ */ import_react3.default.createElement(Component, { className: clsx_m_default("ObPageBanner-root", className), ...other }, /* @__PURE__ */ import_react3.default.createElement("div", { className: "container px-0" }, /* @__PURE__ */ import_react3.default.createElement("div", { className: "ObPageBanner-pageBannerInner" }, children)));
|
|
2454
2383
|
}
|
|
2455
2384
|
var BannerImage = import_react3.default.forwardRef(function BannerImage2(props, ref) {
|
|
2456
2385
|
const { className, ...other } = props;
|
|
2457
|
-
return /* @__PURE__ */ import_react3.default.createElement("img", {
|
|
2458
|
-
ref,
|
|
2459
|
-
className: clsx_m_default("ObPageBanner-bannerImage", className),
|
|
2460
|
-
...other
|
|
2461
|
-
});
|
|
2386
|
+
return /* @__PURE__ */ import_react3.default.createElement("img", { ref, className: clsx_m_default("ObPageBanner-bannerImage", className), ...other });
|
|
2462
2387
|
});
|
|
2463
2388
|
function TabList({ as, className, children, sticky, ...other }) {
|
|
2464
2389
|
const Component = as ? as : "nav";
|
|
2465
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
className: "ObPageBanner-tabListInner"
|
|
2472
|
-
|
|
2390
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
2391
|
+
Component,
|
|
2392
|
+
{
|
|
2393
|
+
className: clsx_m_default("ObPageBanner-pageBanner", "ObPageBanner-tabList", sticky && "sticky", className),
|
|
2394
|
+
...other
|
|
2395
|
+
},
|
|
2396
|
+
/* @__PURE__ */ import_react3.default.createElement("div", { className: "container px-0" }, /* @__PURE__ */ import_react3.default.createElement("div", { className: "ObPageBanner-tabListInner" }, children))
|
|
2397
|
+
);
|
|
2473
2398
|
}
|
|
2474
2399
|
function Tab({ active, as, className, children, ...other }) {
|
|
2475
2400
|
const Component = as ? as : "a";
|
|
2476
|
-
return /* @__PURE__ */ import_react3.default.createElement(Component, {
|
|
2477
|
-
className: clsx_m_default("ObPageBanner-tab", active && "active", className),
|
|
2478
|
-
...other
|
|
2479
|
-
}, children);
|
|
2401
|
+
return /* @__PURE__ */ import_react3.default.createElement(Component, { className: clsx_m_default("ObPageBanner-tab", active && "active", className), ...other }, children);
|
|
2480
2402
|
}
|
|
2481
2403
|
function Title({ as, className, children, ...other }) {
|
|
2482
2404
|
const Component = as ? as : "h1";
|
|
2483
|
-
return /* @__PURE__ */ import_react3.default.createElement(Component, {
|
|
2484
|
-
className: clsx_m_default("ObPageBanner-bannerTitle", className),
|
|
2485
|
-
...other
|
|
2486
|
-
}, children);
|
|
2405
|
+
return /* @__PURE__ */ import_react3.default.createElement(Component, { className: clsx_m_default("ObPageBanner-bannerTitle", className), ...other }, children);
|
|
2487
2406
|
}
|
|
2488
2407
|
|
|
2489
2408
|
// src/Portal/index.tsx
|
|
@@ -2512,9 +2431,7 @@ function Portal({ children, root, type = "div" }) {
|
|
|
2512
2431
|
}
|
|
2513
2432
|
}, []);
|
|
2514
2433
|
if (!portalNode.current) {
|
|
2515
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2516
|
-
ref: mountNode
|
|
2517
|
-
});
|
|
2434
|
+
return /* @__PURE__ */ React.createElement("div", { ref: mountNode });
|
|
2518
2435
|
} else {
|
|
2519
2436
|
return (0, import_react_dom.createPortal)(children, portalNode.current);
|
|
2520
2437
|
}
|
|
@@ -2523,11 +2440,7 @@ function Portal({ children, root, type = "div" }) {
|
|
|
2523
2440
|
// src/ProgressBar/index.tsx
|
|
2524
2441
|
var import_react5 = __toESM(require_react(), 1);
|
|
2525
2442
|
var ProgressBar = (0, import_react5.forwardRef)(function ProgressBar2({ className, ...props }, ref) {
|
|
2526
|
-
return /* @__PURE__ */ React.createElement("progress", {
|
|
2527
|
-
className: clsx_m_default("ObProgressBar-root", className),
|
|
2528
|
-
...props,
|
|
2529
|
-
ref
|
|
2530
|
-
});
|
|
2443
|
+
return /* @__PURE__ */ React.createElement("progress", { className: clsx_m_default("ObProgressBar-root", className), ...props, ref });
|
|
2531
2444
|
});
|
|
2532
2445
|
|
|
2533
2446
|
// src/Sidebar/index.tsx
|
|
@@ -2594,43 +2507,37 @@ function Sidebar(props) {
|
|
|
2594
2507
|
};
|
|
2595
2508
|
}, [open]);
|
|
2596
2509
|
const { className: overlayClassName, ...overlayOther } = overlayProps;
|
|
2597
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2510
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2511
|
+
"div",
|
|
2512
|
+
{
|
|
2513
|
+
className: clsx_m_default(
|
|
2514
|
+
"ObSidebar-root",
|
|
2515
|
+
open && "Ob-open",
|
|
2516
|
+
pullRight && "Ob-right",
|
|
2517
|
+
shadow && "ObSidebar-shadow",
|
|
2518
|
+
className
|
|
2519
|
+
),
|
|
2520
|
+
ref: sidebar,
|
|
2521
|
+
tabIndex: -1,
|
|
2522
|
+
...other
|
|
2523
|
+
},
|
|
2524
|
+
(open || !hidden) && children
|
|
2525
|
+
), /* @__PURE__ */ React.createElement(
|
|
2526
|
+
"div",
|
|
2527
|
+
{
|
|
2528
|
+
role: "presentation",
|
|
2529
|
+
tabIndex: -1,
|
|
2530
|
+
className: clsx_m_default("ObSidebar-overlay", open && "Ob-open", overlayClassName),
|
|
2531
|
+
onClick: closeSidebar,
|
|
2532
|
+
...overlayOther
|
|
2533
|
+
}
|
|
2534
|
+
));
|
|
2615
2535
|
}
|
|
2616
2536
|
|
|
2617
2537
|
// src/Spinner/index.tsx
|
|
2618
2538
|
var import_react7 = __toESM(require_react(), 1);
|
|
2619
2539
|
function Spinner({ className = "", fullPage = false, ...rest }) {
|
|
2620
|
-
return /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2621
|
-
className: clsx_m_default(className, fullPage ? "ObSpinner-fullPage" : "ObSpinner-wrapper"),
|
|
2622
|
-
...rest
|
|
2623
|
-
}, /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2624
|
-
className: "ObSpinner-spinner"
|
|
2625
|
-
}, /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2626
|
-
className: "ObSpinner-bullet"
|
|
2627
|
-
}), /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2628
|
-
className: "ObSpinner-bullet"
|
|
2629
|
-
}), /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2630
|
-
className: "ObSpinner-bullet"
|
|
2631
|
-
}), /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2632
|
-
className: "ObSpinner-bullet"
|
|
2633
|
-
})));
|
|
2540
|
+
return /* @__PURE__ */ import_react7.default.createElement("div", { className: clsx_m_default(className, fullPage ? "ObSpinner-fullPage" : "ObSpinner-wrapper"), ...rest }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-spinner" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-bullet" }), /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-bullet" }), /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-bullet" }), /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-bullet" })));
|
|
2634
2541
|
}
|
|
2635
2542
|
|
|
2636
2543
|
// src/SplitContainer/index.tsx
|
|
@@ -2669,27 +2576,17 @@ settingsStore.keys().then(
|
|
|
2669
2576
|
)
|
|
2670
2577
|
);
|
|
2671
2578
|
var Divider = (0, import_react8.forwardRef)(function Divider2(props, ref) {
|
|
2672
|
-
return /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
2673
|
-
tabIndex: 0,
|
|
2674
|
-
className: clsx_m_default("ObSplitContainer-divider", props.className),
|
|
2675
|
-
ref
|
|
2676
|
-
}, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u2022\u2022\u2022"));
|
|
2579
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { tabIndex: 0, className: clsx_m_default("ObSplitContainer-divider", props.className), ref }, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u2022\u2022\u2022"));
|
|
2677
2580
|
});
|
|
2678
2581
|
function SplitRoot({ className, direction, ...props }) {
|
|
2679
|
-
return /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
2680
|
-
className: clsx_m_default(className, "ObSplitContainer-root", direction),
|
|
2681
|
-
...props
|
|
2682
|
-
});
|
|
2582
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { className: clsx_m_default(className, "ObSplitContainer-root", direction), ...props });
|
|
2683
2583
|
}
|
|
2684
2584
|
function SplitPanel(props) {
|
|
2685
2585
|
let style = {
|
|
2686
2586
|
flex: props.fixed ? `0 0 ${Math.floor(props.size)}px` : "1 1 100%",
|
|
2687
2587
|
...props.style
|
|
2688
2588
|
};
|
|
2689
|
-
return /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
2690
|
-
className: clsx_m_default(props.className, "ObSplitContainer-panel"),
|
|
2691
|
-
style
|
|
2692
|
-
}, props.children);
|
|
2589
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { className: clsx_m_default(props.className, "ObSplitContainer-panel"), style }, props.children);
|
|
2693
2590
|
}
|
|
2694
2591
|
function SplitContainer({
|
|
2695
2592
|
className,
|
|
@@ -2790,22 +2687,7 @@ function SplitContainer({
|
|
|
2790
2687
|
};
|
|
2791
2688
|
}
|
|
2792
2689
|
}, [direction, fixedPanel]);
|
|
2793
|
-
return /* @__PURE__ */ import_react8.default.createElement(SplitRoot, {
|
|
2794
|
-
direction,
|
|
2795
|
-
className
|
|
2796
|
-
}, /* @__PURE__ */ import_react8.default.createElement(SplitPanel, {
|
|
2797
|
-
className: panelClassName,
|
|
2798
|
-
fixed: fixedPanel === 1,
|
|
2799
|
-
size: fixedSize
|
|
2800
|
-
}, childrenArray[0]), /* @__PURE__ */ import_react8.default.createElement(Divider, {
|
|
2801
|
-
ref: dividerRef,
|
|
2802
|
-
direction,
|
|
2803
|
-
isDragging
|
|
2804
|
-
}), /* @__PURE__ */ import_react8.default.createElement(SplitPanel, {
|
|
2805
|
-
className: panelClassName,
|
|
2806
|
-
fixed: fixedPanel === 2,
|
|
2807
|
-
size: fixedSize
|
|
2808
|
-
}, childrenArray[1]));
|
|
2690
|
+
return /* @__PURE__ */ import_react8.default.createElement(SplitRoot, { direction, className }, /* @__PURE__ */ import_react8.default.createElement(SplitPanel, { className: panelClassName, fixed: fixedPanel === 1, size: fixedSize }, childrenArray[0]), /* @__PURE__ */ import_react8.default.createElement(Divider, { ref: dividerRef, direction, isDragging }), /* @__PURE__ */ import_react8.default.createElement(SplitPanel, { className: panelClassName, fixed: fixedPanel === 2, size: fixedSize }, childrenArray[1]));
|
|
2809
2691
|
}
|
|
2810
2692
|
|
|
2811
2693
|
// src/useTranslation/index.ts
|
|
@@ -2888,13 +2770,7 @@ function ValueToggleInner({ className, onChange, defaultValue, options, value, .
|
|
|
2888
2770
|
value: (e?.querySelector("input:checked")).value
|
|
2889
2771
|
};
|
|
2890
2772
|
});
|
|
2891
|
-
return /* @__PURE__ */ React.createElement("fieldset", {
|
|
2892
|
-
className,
|
|
2893
|
-
...other
|
|
2894
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
2895
|
-
className: "ObValueToggle-root",
|
|
2896
|
-
ref: wrapperRef
|
|
2897
|
-
}, options.map((option) => {
|
|
2773
|
+
return /* @__PURE__ */ React.createElement("fieldset", { className, ...other }, /* @__PURE__ */ React.createElement("div", { className: "ObValueToggle-root", ref: wrapperRef }, options.map((option) => {
|
|
2898
2774
|
const isObj = typeof option === "object";
|
|
2899
2775
|
const optValue = isObj ? option.value : option;
|
|
2900
2776
|
const props = {
|
|
@@ -2911,17 +2787,7 @@ function ValueToggleInner({ className, onChange, defaultValue, options, value, .
|
|
|
2911
2787
|
if (isObj) {
|
|
2912
2788
|
Object.assign(props, option);
|
|
2913
2789
|
}
|
|
2914
|
-
return /* @__PURE__ */ React.createElement("label", {
|
|
2915
|
-
key: optValue,
|
|
2916
|
-
className: "ObValueToggle-option"
|
|
2917
|
-
}, /* @__PURE__ */ React.createElement("input", {
|
|
2918
|
-
type: "radio",
|
|
2919
|
-
className: "ObValueToggle-input",
|
|
2920
|
-
name: toggleName,
|
|
2921
|
-
...props
|
|
2922
|
-
}), /* @__PURE__ */ React.createElement("span", {
|
|
2923
|
-
className: "ObValueToggle-label"
|
|
2924
|
-
}, isObj ? option.label || optValue : optValue));
|
|
2790
|
+
return /* @__PURE__ */ React.createElement("label", { key: optValue, className: "ObValueToggle-option" }, /* @__PURE__ */ React.createElement("input", { type: "radio", className: "ObValueToggle-input", name: toggleName, ...props }), /* @__PURE__ */ React.createElement("span", { className: "ObValueToggle-label" }, isObj ? option.label || optValue : optValue));
|
|
2925
2791
|
})));
|
|
2926
2792
|
}
|
|
2927
2793
|
var ValueToggle = (0, import_react10.forwardRef)(ValueToggleInner);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Checkbox/index.scss", "../../src/ColorCard/index.scss", "../../src/DateNavigator/index.scss", "../../src/styles/_mixins.scss", "../../src/LinkedCardList/index.scss", "../../src/PageBanner/index.scss", "../../src/styles/_variables.scss", "../../src/ProgressBar/index.scss", "../../src/Sidebar/index.scss", "../../src/Spinner/index.scss", "../../src/SplitContainer/index.scss", "../../src/ValueToggle/index.scss"],
|
|
4
|
-
"sourcesContent": [null, null, null, null, null, null, null, null, null, null, null, null],
|
|
4
|
+
"sourcesContent": [".ObCheckbox-root {\n\t--check-width: 2rem;\n\t--bg-color: var(--brand-dark, rgba(42, 65, 50, 0.5));\n\t--bg-color-hover: var(--brand-primary, rgba(42, 65, 50, 0.8));\n\t--bg-color-selected: var(--brand-light);\n\n\tdisplay: inline-block;\n\theight: var(--check-width);\n\tmargin-bottom: 0;\n\n\t&:focus-within .ObCheckbox-box {\n\t\tborder: 0.1rem solid black;\n\t}\n\n\t&.Ob-disabled {\n\t\t--bg-color: rgba(150, 150, 150, 0.5);\n\t\t--bg-color-hover: var(--bg-color);\n\t}\n}\n\n.ObCheckbox-box {\n\tposition: relative;\n\n\tbackground: var(--bg-color);\n\ttransition: background 300ms ease;\n\n\toverflow: hidden;\n\n\tborder-radius: calc(var(--check-width) / 15);\n\theight: var(--check-width);\n\twidth: var(--check-width);\n\n\t&:hover {\n\t\tbackground: var(--bg-color-hover);\n\t}\n}\n\n.ObCheckbox-label {\n\tposition: relative;\n\tmargin-bottom: 0;\n\toverflow: hidden;\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n\n.ObCheckbox-mark {\n\tcolor: #fff;\n\tdisplay: inline-block;\n\tfont-size: calc(var(--check-width) * 0.4);\n\tleft: 50%;\n\topacity: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 50%;\n\ttransition: all 300ms ease-in-out;\n\ttransition-delay: 0ms;\n\ttransform: translate(-50%, -50%) scale(6);\n}\n\n.ObCheckbox-input {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n\n.check_Label {\n\tmargin-bottom: 0;\n\tflex-grow: 1;\n}\n\n.ObCheckbox-input:checked:not(:disabled) + .ObCheckbox-label {\n\tanimation: animOn 800ms 1 forwards;\n}\n\n.ObCheckbox-input:checked:not(:disabled) + .ObCheckbox-label .ObCheckbox-box {\n\tbackground: var(--bg-color-selected);\n}\n\n.ObCheckbox-input:checked + .ObCheckbox-label .ObCheckbox-box .ObCheckbox-mark {\n\ttransform: translate(-50%, -50%) scale(1);\n\ttransition-delay: 200ms;\n\topacity: 1;\n}\n\n.ObCheckbox-root.Ob-disabled .ObCheckbox-box {\n\tcursor: not-allowed;\n}\n\n@keyframes animOn {\n\t40% {\n\t\ttransform: scaleY(0.4) scaleX(2);\n\t}\n\n\t50% {\n\t\ttransform: scaleY(1.2) scaleX(0.6);\n\t}\n\n\t60% {\n\t\ttransform: scaleY(0.8) scaleX(1.4);\n\t}\n\n\t70% {\n\t\ttransform: scaleY(1.1) scaleX(0.9);\n\t}\n\n\t100% {\n\t\ttransform: scaleY(1) scaleX(1);\n\t}\n}\n", "@import \"../styles/variables\";\n\n.ObColorCard-root {\n\t--bg-color-border: black;\n\t--bg-color-main: white;\n\t--bg-size: 0.75rem;\n\t--card-color: rgb(0, 0, 0);\n\n\talign-items: stretch;\n\tbackground-image: linear-gradient(to right, $brand-primary, $brand-primary 0.75rem, white 0.75rem, white);\n\tbackground-image: linear-gradient(\n\t\tto right,\n\t\tvar(--bg-color-border),\n\t\tvar(--bg-color-border) var(--bg-size),\n\t\tvar(--bg-color-main) var(--bg-size),\n\t\tvar(--bg-color-main)\n\t);\n\tborder-radius: 0.25rem;\n\tbox-shadow: 0 1px 12px rgba(0, 0, 0, 0.15), 0 1px 6px rgba(0, 0, 0, 0.25);\n\tcolor: #666;\n\tcursor: pointer;\n\tdisplay: flex;\n\tfont-family: \"Variable Bahnschrift\", \"Bahnschrift\", \"Open Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n\t\t\"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n\tfont-size: 1rem;\n\tmin-height: 10rem;\n\toverflow: hidden;\n\ttransition: all ease-in-out 300ms;\n\n\t&:nth-of-type(5n + 1) {\n\t\t--bg-color-border: rgb(178, 108, 190);\n\t}\n\t&:nth-of-type(5n + 2) {\n\t\t--bg-color-border: rgb(79, 164, 61);\n\t}\n\t&:nth-of-type(5n + 3) {\n\t\t--bg-color-border: rgb(246, 170, 23);\n\t}\n\t&:nth-of-type(5n + 4) {\n\t\t--bg-color-border: rgb(218, 93, 83);\n\t}\n\t&:nth-of-type(5n + 5) {\n\t\t--bg-color-border: rgb(23, 162, 184);\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\t/*--bg-size: 1rem;*/\n\t\t--bg-color-main: #f5f5f5;\n\n\t\tbox-shadow: 0 3px 18px rgba(0, 0, 0, 0.15), 0 3px 12px rgba(0, 0, 0, 0.25);\n\t\tcolor: #666;\n\t\ttext-decoration: none;\n\t\t/*transform: scale(1.03) translateY(-3px);*/\n\t}\n\n\t@media screen and (min-width: 48rem) {\n\t\tfont-size: 1.2rem;\n\t}\n}\n\n.ObColorCard-column {\n\tdisplay: flex;\n\tflex: 1 1 100%;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 1rem 0;\n\toverflow: hidden;\n\tpadding: 0.5rem 1.5rem 0.5rem 1rem;\n\ttext-overflow: ellipsis;\n\n\t&:first-child {\n\t\tmargin-left: 0.75rem;\n\t\tmargin-left: var(--bg-size);\n\t}\n\n\t&.ObColorCard-minor {\n\t\tborder-right: 1px solid #e3e3e3;\n\t\tflex: 0 0 4rem;\n\t\ttransition: margin ease-in-out 300ms;\n\t}\n\n\t@media screen and (min-width: 48rem) {\n\t\t&.ObColorCard-minor {\n\t\t\tflex: 0 0 8rem;\n\t\t}\n\t}\n}\n\n.ObColorCard-detailLabel {\n\tcolor: #ccc;\n\tfont-size: 0.8rem;\n\ttext-transform: uppercase;\n}\n\n.ObColorCard-detail {\n\t&:not(:last-child) {\n\t\tmargin-right: 1.5rem;\n\t}\n\n\t&.ObColorCard-primary,\n\t&.ObColorCard-primary .ObColorCard-detailValue {\n\t\tfont-size: 1.25rem;\n\t\tfont-weight: 300;\n\t}\n\n\t&.ObColorCard-primary .ObColorCard-detailValue {\n\t\tcolor: unset;\n\t}\n\n\t@media screen and (min-width: 48rem) {\n\t\tfont-size: 1rem;\n\t}\n}\n\n.ObColorCard-detailValue {\n\tcolor: #999;\n}\n\n.ObColorCard-label {\n\tposition: relative;\n\tpadding-left: 1.5rem;\n\t/* white-space: nowrap; */\n\n\t&:not(:last-child) {\n\t\tmargin-bottom: 1rem;\n\n\t\t&::after {\n\t\t\tcontent: \"\";\n\t\t\tposition: absolute;\n\t\t\twidth: 0.2rem;\n\t\t\theight: calc(100% + 1rem);\n\t\t\tborder-left: 0.2rem dotted #666;\n\t\t\tleft: 0.25rem;\n\t\t\ttop: 0.5rem;\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t&::before {\n\t\tbackground: white;\n\t\tborder: 0.2rem solid $brand-primary;\n\t\tborder: 0.2rem solid var(--bg-color-border);\n\t\tborder-radius: 50%;\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\theight: 0.75rem;\n\t\tleft: 0;\n\t\tposition: absolute;\n\t\ttop: 0.3rem;\n\t\twidth: 0.75rem;\n\t\tz-index: 1;\n\t}\n}\n", "@import \"../styles/mixins\";\n\n$date-select-height: 3rem;\n\n.ObDateNavigator-icon {\n\tdisplay: inline-block;\n\n\tsvg {\n\t\twidth: 0.625em;\n\t\tposition: relative;\n\t\ttop: -1px;\n\t}\n}\n\n.ObDateNavigator-root {\n\tbackground-color: hsl(220, 20%, 96%);\n\tbackground-color: var(--block-header-color-bg);\n\tdisplay: flex;\n\tfont-size: 1rem;\n}\n\n.ObDateNavigator-arrow {\n\t@include btn-reset;\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 0 0 $date-select-height;\n\tjustify-content: center;\n\n\theight: $date-select-height;\n\n\tcursor: pointer;\n\ttext-align: center;\n\n\t&:hover {\n\t\tbackground-color: #e3e3e3;\n\t\tbackground-color: var(--block-header-button-hover);\n\t}\n}\n\n.ObDateNavigator-arrowLeft {\n\tborder-right: 1px solid #dddddd;\n\torder: 1;\n}\n\n.ObDateNavigator-arrowRight {\n\tborder-left: 1px solid #dddddd;\n\torder: 3;\n}\n\n.ObDateNavigator-date {\n\tdisplay: flex;\n\tflex: 1 1 100%;\n\tflex-direction: column;\n\tjustify-content: center;\n\torder: 2;\n\n\theight: $date-select-height;\n\n\ttext-align: center;\n}\n", "@mixin btn-reset {\n\tbackground: none;\n\tborder: 0;\n\tcolor: inherit;\n\t/* cursor: default; */\n\tfont: inherit;\n\tline-height: normal;\n\toverflow: visible;\n\tpadding: 0;\n\t-webkit-appearance: button; /* for input */\n\t-webkit-user-select: none; /* for button */\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\n\t&::-moz-focus-inner {\n\t\tborder: 0;\n\t\tpadding: 0;\n\t}\n}\n", "@import \"../styles/variables\";\n\n$bullet-size: 0.7em;\n$line-width: 0.2em;\n\n.ObLinkedList-root {\n\tlist-style-type: none;\n\tmargin-left: 0;\n\tpadding-left: 0;\n}\n\n.ObLinkedList-item {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: row;\n}\n\n.ObLinkedList-leftColumn {\n\tflex: 1 1 4em;\n\tfont-size: 0.75em;\n\tpadding: 0 1em;\n\ttext-align: center;\n}\n\n.ObLinkedList-rightColumn {\n\tflex: 1 1 100%;\n\tpadding: 1em 1em 1em 1.5em;\n}\n\n.ObLinkedList-line {\n\tdisplay: flex;\n\talign-self: stretch;\n\tflex: 0 0 $line-width;\n\tbackground: white;\n\tposition: relative;\n}\n\n.ObLinkedList-bullet {\n\tbackground: white;\n\n\tborder: 1px solid rgba(50, 50, 50, 0.25);\n\tborder-radius: 0.55em;\n\theight: $bullet-size;\n\twidth: $bullet-size;\n\n\tposition: absolute;\n\tleft: 0;\n\ttop: 50%;\n\n\ttransform: translate(calc(-1 * ($bullet-size / 2) + ($line-width / 2)), -50%);\n}\n\n.ObLinkedList-card {\n\tbackground: white;\n\tborder: 1px solid;\n\tborder-color: $color-border-top $color-border-side $color-border-bottom;\n\tborder-radius: 0.1875em;\n\tcolor: inherit;\n\tcursor: pointer;\n\tflex: 100% 1 1;\n\tposition: relative;\n}\n\n.ObLinkedList-card::before {\n\tborder-bottom: 0.5em solid transparent;\n\tborder-right: 1em solid white;\n\tborder-top: 0.5em solid transparent;\n\tcontent: \" \";\n\tfilter: drop-shadow(-1px 0px 1px rgba(50, 50, 50, 0.2));\n\theight: 1em;\n\tleft: -1em;\n\tmargin-top: -0.5em;\n\tposition: absolute;\n\ttop: 50%;\n\twidth: 1em;\n}\n\n.ObLinkedList-card:hover {\n\tbackground-color: $block-color-bg-hover !important;\n\tcolor: inherit;\n\ttext-decoration: inherit;\n}\n\n.ObLinkedList-card:hover::before {\n\tborder-right-color: $block-color-bg-hover !important;\n}\n", "@import \"../styles/variables\";\n\n.ObPageBanner-root {\n\tbackground-color: $brand-primary;\n\tbackground-color: var(--brand-dark);\n\tbox-shadow: 0px 8px 8px rgba(0, 0, 0, 0.2);\n\tcolor: white;\n\n\ta {\n\t\tcolor: hsl(200, 50%, 80%);\n\t}\n}\n\n.ObPageBanner-inner {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\n\t@media screen and (min-width: $screen-md) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t}\n}\n\n.ObPageBanner-plantTitle {\n\tfont-size: 2rem;\n\n\t@media screen and (min-width: $screen-lg) {\n\t\tfont-size: 3rem;\n\t}\n}\n\n.ObPageBanner-bannerImage {\n\talign-self: stretch;\n\tbackground-color: #ddd;\n\tdisplay: inline-block;\n\theight: 20vh;\n\tobject-fit: cover;\n\tobject-position: center center;\n\twidth: 100%;\n\n\t@media screen and (min-width: $screen-sm) {\n\t\talign-self: center;\n\t\tmargin: 0;\n\t\tmargin-right: 1rem;\n\t\tborder: 0.4rem solid white;\n\t\tborder-radius: 50%;\n\t\theight: 150px;\n\t\twidth: 150px;\n\t}\n\n\t@media screen and (min-width: $screen-lg) {\n\t\theight: 250px;\n\t\twidth: 250px;\n\t}\n}\n\n.ObPageBanner-bannerTitle {\n\tmargin-bottom: 1rem;\n\tmargin-top: 1rem;\n\tfont-size: 2rem;\n\n\t@media screen and (min-width: $screen-md) {\n\t\tmargin-top: 0;\n\t}\n\n\t@media screen and (min-width: $screen-lg) {\n\t\tfont-size: 3rem;\n\t}\n}\n\n.ObPageBanner-tabList {\n\t&.sticky {\n\t\tposition: -webkit-sticky;\n\t\tposition: sticky;\n\t\ttop: 0;\n\t\tz-index: 1000;\n\t}\n}\n\n.ObPageBanner-tabListInner {\n\toverflow-x: auto;\n\tscrollbar-width: thin;\n\twhite-space: nowrap;\n}\n\n.ObPageBanner-tab {\n\tborder-bottom: 0.25rem solid transparent;\n\tdisplay: inline-block;\n\tmargin-top: 0.5rem;\n\tmin-width: 8rem;\n\tpadding: 0.5rem 1rem;\n\ttext-align: center;\n\ttext-transform: capitalize;\n\n\t&.active {\n\t\tborder-color: white;\n\t}\n}\n", "$brand-primary: hsl(186, 72%, 24%);\n$brand-light: hsl(186, 72%, 37%);\n$brand-dark: hsl(186, 74%, 20%);\n$brand-tertiary: rgb(68, 69, 84);\n\n$link-color: $brand-primary;\n$link-color-hover: $brand-dark;\n\n$line-height: 1.4;\n\n$color-bg-hover: hsla(186, 72%, 37%, 0.6);\n$color-bg-active: hsla(95, 49%, 71%, 0.2);\n$color-fg-active: black;\n\n$color-border-top: #e5e6e9;\n$color-border-side: #dfe0e4;\n$color-border-bottom: #d0d1d5;\n\n$navbar-height: 40px;\n\n$screen-xs: 0;\n$screen-sm: 576px;\n$screen-md: 768px;\n$screen-lg: 992px;\n$screen-xl: 1200px;\n\n$block-header-color-bg: hsl(220, 20%, 96%);\n$block-header-color-bg-hover: hsl(220, 20%, 92%);\n$block-header-color-fg: hsl(0, 0%, 20%);\n$block-color-bg-alt: hsl(220, 20%, 98%);\n$block-color-bg-hover: hsl(220, 20%, 94%);\n$block-color-border: #e5e5e5;\n\n$block-header-button-hover: hsl(220, 20%, 92%);\n$block-header-button-border: hsl(220, 7%, 82%);\n$block-header-button-active: hsl(220, 20%, 86%);\n\n$sidebar-padding: 0.9375rem;\n$sidebar-width: 18rem;\n$sidebar-fg-color: hsl(0, 0%, 90%);\n$sidebar-bg-color: hsl(186, 74%, 13%);\n$sidebar-header-color: hsl(220, 6%, 70%);\n$sidebar-link-fg-color: white;\n$sidebar-link-fg-active: white;\n$sidebar-link-bg-color: transparent;\n$sidebar-link-bg-hover: hsla(0, 0%, 100%, 0.1);\n$sidebar-link-bg-active: hsl(142, 13%, 13%);\n\n$padding-xs: 0.75rem;\n$padding-sm: 0.9375rem;\n$padding-lg: 1.5rem;\n\n$grid-gutter-width: 30px;\n\n$container-tablet: (720px + $grid-gutter-width);\n$container-sm: $container-tablet;\n$container-desktop: (940px + $grid-gutter-width);\n$container-md: $container-desktop;\n$container-large-desktop: (1140px + $grid-gutter-width);\n$container-lg: $container-large-desktop;\n\n$toolbar-background: linear-gradient(#fefefe, #fafafa); //white;\n$toolbar-height: 3.125rem;\n$toolbar-border-color: #dedede;\n$toolbar-border-width: 1px;\n\n$toolbar-btn-color: hsla(0, 0%, 60%, 0.8);\n$toolbar-btn-hover-color: hsla(0, 0%, 40%, 0.8);\n$toolbar-btn-bg: transparent;\n$toolbar-btn-hover-bg: linear-gradient(hsl(0, 0%, 89%), hsl(0, 0%, 87%));\n", "@import \"../styles/variables\";\n\n.ObProgressBar-root {\n\theight: 1.5em;\n\twidth: 100%;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-color: whiteSmoke;\n\tborder: none;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;\n\tcolor: royalblue;\n\tposition: relative;\n\n\t&::-webkit-progress-bar {\n\t\tbackground-color: whiteSmoke;\n\t\tborder-radius: 3px;\n\t\tbox-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;\n\t}\n\n\t&::-webkit-progress-value {\n\t\tbackground-image: linear-gradient(\n\t\t\t\t135deg,\n\t\t\t\ttransparent,\n\t\t\t\ttransparent 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 66%,\n\t\t\t\ttransparent 66%\n\t\t\t),\n\t\t\tlinear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),\n\t\t\tlinear-gradient(left, var(--brand-primary, $brand-primary), var(--brand-light, $brand-light));\n\t\tbackground-image: -webkit-linear-gradient(\n\t\t\t\t135deg,\n\t\t\t\ttransparent,\n\t\t\t\ttransparent 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 66%,\n\t\t\t\ttransparent 66%\n\t\t\t),\n\t\t\t-webkit-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),\n\t\t\t-webkit-linear-gradient(left, var(--brand-primary), $brand-primary, var(--brand-light, $brand-light));\n\t\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\t\tborder-radius: 3px;\n\t\tposition: relative;\n\t\ttransition: width 0.5s ease-out;\n\t}\n\n\t&::-webkit-progress-value:after {\n\t\tbackground-color: white;\n\t\tcontent: \"\";\n\n\t\tborder-radius: 100%;\n\t\theight: 5px;\n\n\t\tposition: absolute;\n\t\tright: 7px;\n\t\ttop: 7px;\n\t\twidth: 5px;\n\t}\n\n\t&::-moz-progress-bar {\n\t\tbackground-image: linear-gradient(\n\t\t\t\t135deg,\n\t\t\t\ttransparent,\n\t\t\t\ttransparent 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 66%,\n\t\t\t\ttransparent 66%\n\t\t\t),\n\t\t\tlinear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),\n\t\t\tlinear-gradient(left, var(--brand-primary), var(--brand-light));\n\t\tbackground-image: -moz-linear-gradient(\n\t\t\t\t135deg,\n\t\t\t\ttransparent,\n\t\t\t\ttransparent 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 66%,\n\t\t\t\ttransparent 66%\n\t\t\t),\n\t\t\t-moz-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),\n\t\t\t-moz-linear-gradient(left, var(--brand-primary), var(--brand-light));\n\t\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\t\tborder-radius: 3px;\n\t\ttransition: width 0.5s ease-out;\n\t}\n}\n", ".ObSidebar-root {\n\tposition: fixed;\n\tbottom: 0;\n\tleft: 0;\n\ttop: 0;\n\tz-index: 2;\n\n\tbackground-color: white;\n\n\ttransform: translateX(-100%);\n\ttransition: transform 0.2s ease-out;\n\twill-change: transform;\n\n\t&.Ob-right {\n\t\tleft: unset;\n\t\tright: 0;\n\t\ttransform: translateX(100%);\n\t}\n\n\toverflow-y: auto;\n\n\t&.Ob-open {\n\t\ttransform: translateX(0);\n\t}\n\n\t&.ObSidebar-shadow {\n\t\tbox-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);\n\n\t\t&.Ob-right {\n\t\t\tbox-shadow: -2px 2px 4px rgba(0, 0, 0, 0.15);\n\t\t}\n\t}\n}\n\n.ObSidebar-overlay {\n\tposition: fixed;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\ttop: 0;\n\tz-index: 1;\n\n\topacity: 0;\n\tvisibility: hidden;\n\n\ttransition: opacity 0.3s ease-out, visibility 0.3s ease-out;\n\tbackground-color: rgba(0, 0, 0, 0.3);\n\n\t&.Ob-open {\n\t\topacity: 1;\n\t\tvisibility: visible;\n\t}\n}\n", "$bullet-size: 0.5em;\n\n.ObSpinner-root {\n\tdisplay: inline-block;\n}\n\n.ObSpinner-fullPage {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\theight: 100vh;\n\twidth: 100vw;\n}\n\n.ObSpinner-spinner {\n\tdisplay: inline-block;\n\theight: $bullet-size * 1.5;\n\tposition: relative;\n\twidth: $bullet-size * 5;\n}\n\n.ObSpinner-bullet {\n\tanimation-timing-function: cubic-bezier(0, 1, 1, 0);\n\tbackground: #666;\n\tborder-radius: 50%;\n\theight: $bullet-size;\n\tposition: absolute;\n\ttop: 0.2rem;\n\twidth: $bullet-size;\n\n\t&:nth-child(1) {\n\t\tanimation: scaleAnimation 0.6s infinite ease-in-out;\n\t\tleft: $bullet-size * 0.5;\n\t}\n\n\t&:nth-child(2) {\n\t\tanimation: translateAnimation 0.6s infinite ease-in-out;\n\t\tleft: $bullet-size * 0.5;\n\t}\n\n\t&:nth-child(3) {\n\t\tanimation: translateAnimation 0.6s infinite ease-in-out;\n\t\tleft: $bullet-size * 2.4;\n\t}\n\n\t&:nth-child(4) {\n\t\tanimation: scaleAnimation 0.6s infinite ease-in-out reverse;\n\t\tleft: $bullet-size * 4;\n\t}\n}\n\n@keyframes scaleAnimation {\n\tfrom {\n\t\ttransform: scale(0);\n\t}\n\n\tto {\n\t\ttransform: scale(1);\n\t}\n}\n\n@keyframes translateAnimation {\n\tfrom {\n\t\ttransform: translate(0, 0);\n\t}\n\n\tto {\n\t\ttransform: translate($bullet-size * 1.65, 0);\n\t}\n}\n", "/**\nHacky solution to sass output for some reason getting a zero-width space at the beginning, which breaks the first selector\n*/\n.😖 {\n\tdisplay: initial;\n}\n\n.ObSplitContainer-root {\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\twidth: 100%;\n\n\t&.horizontal {\n\t\tflex-direction: row;\n\t}\n}\n\n.ObSplitContainer-panel {\n\toverflow: hidden;\n}\n\n.ObSplitContainer-divider {\n\tflex: 0 0 0.5rem;\n\tbackground-color: transparent;\n\tline-height: 0.75;\n\tcursor: ns-resize;\n\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t&:focus {\n\t\tbackground-color: rgba(0, 0, 0, 0.3);\n\t}\n\n\t.ObSplitContainer-root.horizontal > & {\n\t\tcursor: ew-resize;\n\t\twriting-mode: vertical-lr;\n\t}\n}\n", "@import \"../styles/variables\";\n\n.ObValueToggle-root {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.ObValueToggle-option {\n\tmargin-bottom: 0;\n}\n\n.ObValueToggle-label {\n\tcursor: pointer;\n\tfont-size: 0.8em;\n\tmargin: 0 0.2em;\n\tpadding: 0.3em 0.5em;\n\ttext-transform: uppercase;\n\n\t&:hover {\n\t\tbackground: #ccc;\n\t}\n\n\t.ObValueToggle-input:checked + & {\n\t\t--color-bg: var(--brand-dark);\n\t\tbackground-color: #666;\n\t\tbackground-color: var(--color-bg);\n\t\tcursor: default;\n\t\tcolor: white;\n\t}\n\n\t.ObValueToggle-input:checked:focus-within + & {\n\t\t--color-bg: var(--brand-light);\n\t}\n\n\t.ObValueToggle-input:checked:hover + & {\n\t\tbackground-color: #666;\n\t\tbackground-color: var(--color-bg);\n\t}\n}\n\n.ObValueToggle-input {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tpadding: 0;\n\tmargin: -1px;\n\toverflow: hidden;\n\tclip: rect(0, 0, 0, 0);\n\tborder: 0;\n}\n"],
|
|
5
5
|
"mappings": "iBAAA,iBACC,oBACA,oDACA,6DACA,wCAEA,qBACA,0BACA,gBAEA,8CACC,yBAGD,6BACC,oCACA,kCAIF,gBACC,kBAEA,2BACA,+BAEA,gBAEA,4CACA,0BACA,yBAEA,sBACC,iCAIF,kBACC,kBACA,gBACA,gBAEA,wBACC,aAIF,iBACC,WACA,qBACA,wCACA,SACA,UACA,oBACA,kBACA,QACA,+BACA,qBACA,wCAGD,kBACC,mBACA,qBACA,WACA,gBACA,kBACA,mBACA,UAEA,wBACC,aAIF,aACC,gBACA,YAGD,2DACC,gCAGD,2EACC,oCAGD,6EACC,wCACA,qBACA,UAGD,6CACC,mBAGD,sBAEE,mCAIA,qCAIA,qCAIA,oCAIA,+BClHF,kBACC,yBACA,uBACA,kBACA,2BAEA,oBACA,6GACA,iKARD,qBAgBC,oDACA,WACA,eACA,aACA,6LAEA,eACA,iBACA,gBACA,+BAEA,sCACC,sCAED,sCACC,oCAED,sCACC,qCAED,sCACC,oCAED,sCACC,qCAGD,gDAGC,yBAEA,qDACA,WACA,qBAID,qCAtDD,kBAuDE,kBAIF,oBACC,aACA,cACA,sBACA,8BA/DD,cAiEC,gBAjED,gCAmEC,uBAEA,gCACC,mBACA,2BAGD,sCACC,+BACA,cACA,kCAGD,qCACC,sCACC,eAKH,yBACC,WACA,gBACA,yBAIA,qCACC,oBAGD,yGAEC,kBACA,gBAGD,iEACC,YAGD,qCAfD,oBAgBE,gBAIF,yBACC,WAGD,mBACC,kBACA,oBAGA,oCACC,mBAEA,0CACC,WACA,kBACA,YACA,yBACA,8BACA,YACA,UACA,UAIF,0BACC,iBACA,uCACA,0CA5IF,kBA8IE,WACA,cACA,cACA,OACA,kBACA,UACA,aACA,UCnJF,sBACC,qBAEA,0BACC,aACA,kBACA,SAIF,sBACC,yBACA,8CACA,aACA,eAGD,uBCpBC,gBACA,SACA,cAEA,aACA,mBACA,iBDHD,UCKC,0BACA,yBACA,sBACA,qBDWA,aACA,mBACA,cACA,uBAEA,YAEA,eACA,kBCjBA,yCACC,SDXF,UA6BC,6BACC,yBACA,kDAIF,2BACC,+BACA,QAGD,4BACC,8BACA,QAGD,sBACC,aACA,cACA,sBACA,uBACA,QAEA,YAEA,kBErDD,mBACC,qBACA,cACA,eAGD,mBACC,aACA,mBACA,mBAGD,yBACC,aACA,gBAdD,cAgBC,kBAGD,0BACC,cApBD,0BAwBA,mBACC,aACA,mBACA,cACA,iBACA,kBAGD,qBACC,iBAEA,oCAnCD,oBAqCC,YACA,WAEA,kBACA,OACA,QAEA,iCAGD,mBACC,iBACA,iBACA,qCAlDD,sBAoDC,cACA,eACA,cACA,kBAGD,0BACC,qCACA,6BACA,kCACA,YACA,mDACA,WACA,UACA,iBACA,kBACA,QACA,UAGD,yBACC,mCACA,cACA,wBAGD,gCACC,qCClFD,mBACC,yBACA,mCACA,2BACA,WAEA,qBACC,cAIF,oBACC,aACA,mBACA,sBAEA,qCALD,oBAME,uBACA,oBAIF,yBACC,eAEA,qCAHD,yBAIE,gBAIF,0BACC,mBACA,sBACA,qBACA,YACA,iBACA,8BACA,WAEA,qCATD,0BAUE,kBAxCF,SA0CE,kBACA,yBA3CF,kBA6CE,aACA,aAGD,qCAnBD,0BAoBE,aACA,aAIF,0BACC,mBACA,gBACA,eAEA,qCALD,0BAME,cAGD,qCATD,0BAUE,gBAKD,6BACC,wBACA,gBACA,MACA,aAIF,2BACC,gBACA,qBACA,mBAGD,kBACC,uCACA,qBACA,iBACA,eAxFD,mBA0FC,kBACA,0BAEA,yBACC,kBE9FF,oBACC,aACA,WACA,gBACA,wBACA,yBACA,YAND,kBAQC,iCACA,cACA,kBAEA,0CACC,yBAbF,kBAeE,iCAGD,4CACC,iSAUA,sTAUA,8CAvCF,kBAyCE,kBACA,8BAGD,kDACC,sBACA,WA/CF,mBAkDE,WAEA,kBACA,UACA,QACA,UAGD,uCACC,mPAUA,kQAUA,8CA/EF,kBAiFE,8BCnFF,gBACC,eACA,SACA,OACA,MACA,UAEA,sBAEA,2BACA,kCACA,sBAQA,gBANA,yBACC,WACA,QACA,0BAKD,wBACC,uBAGD,iCACC,iCAEA,0CACC,kCAKH,mBACC,eAnCD,QAwCC,UAEA,UACA,kBAEA,wDACA,2BAEA,2BACC,UACA,mBChDF,gBACC,qBAGD,oBACC,aACA,mBACA,uBAEA,aACA,YAGD,mBACC,qBACA,aACA,kBACA,YAGD,kBACC,gDACA,gBAtBD,kBAwBC,YACA,kBACA,UACA,WAEA,+BACC,kDACA,WAGD,+BACC,sDACA,WAGD,+BACC,sDACA,WAGD,+BACC,0DACA,SAIF,6BAEE,sBAIA,oBAIF,iCAEE,0BAIA,6BCjEF,SACC,gBAGD,uBACC,aACA,sBACA,YACA,WAEA,kCACC,mBAIF,wBACC,gBAGD,0BACC,eACA,6BACA,gBACA,iBAEA,aACA,mBACA,uBAEA,gCACC,2BAGD,4DACC,iBACA,yBCpCF,oBACC,aACA,mBAGD,sBACC,gBAGD,qBACC,eACA,eAXD,gCAcC,yBAEA,2BACC,gBAGD,kDACC,8BACA,sBACA,iCACA,eACA,WAGD,+DACC,+BAGD,wDACC,sBACA,iCAIF,qBACC,kBACA,UACA,WAzCD,sBA4CC,gBACA,mBACA",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/iife/ob.react.js
CHANGED
|
@@ -2242,16 +2242,7 @@ var ob;
|
|
|
2242
2242
|
// src/Checkbox/index.tsx
|
|
2243
2243
|
var import_react = __toESM(require_react(), 1);
|
|
2244
2244
|
function Mark(props) {
|
|
2245
|
-
return /* @__PURE__ */ React.createElement("svg", {
|
|
2246
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2247
|
-
width: "24",
|
|
2248
|
-
height: "24",
|
|
2249
|
-
viewBox: "0 0 24 24",
|
|
2250
|
-
...props
|
|
2251
|
-
}, /* @__PURE__ */ React.createElement("path", {
|
|
2252
|
-
d: "M20.285 2L9 13.567 3.714 8.556 0 12.272 9 21 24 5.715z",
|
|
2253
|
-
fill: "currentColor"
|
|
2254
|
-
}));
|
|
2245
|
+
return /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M20.285 2L9 13.567 3.714 8.556 0 12.272 9 21 24 5.715z", fill: "currentColor" }));
|
|
2255
2246
|
}
|
|
2256
2247
|
var Checkbox = (0, import_react.forwardRef)(function Checkbox2({ className, disabled = false, id, onChange = () => null, title, value, ...other }, ref) {
|
|
2257
2248
|
const inputId = (0, import_react.useId)() + (id ?? "");
|
|
@@ -2284,28 +2275,19 @@ var ob;
|
|
|
2284
2275
|
}
|
|
2285
2276
|
}
|
|
2286
2277
|
}
|
|
2287
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
htmlFor: `#${inputId}`,
|
|
2301
|
-
className: "ObCheckbox-label",
|
|
2302
|
-
onKeyDown: handleKeyDown,
|
|
2303
|
-
onClick: handleClick
|
|
2304
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
2305
|
-
className: "ObCheckbox-box"
|
|
2306
|
-
}, /* @__PURE__ */ React.createElement(Mark, {
|
|
2307
|
-
className: "ObCheckbox-mark"
|
|
2308
|
-
}))));
|
|
2278
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx_m_default("ObCheckbox-root", disabled && "Ob-disabled", className), title }, /* @__PURE__ */ React.createElement(
|
|
2279
|
+
"input",
|
|
2280
|
+
{
|
|
2281
|
+
className: "ObCheckbox-input",
|
|
2282
|
+
id: inputId,
|
|
2283
|
+
type: "checkbox",
|
|
2284
|
+
onChange: handleInputChanged,
|
|
2285
|
+
checked: value,
|
|
2286
|
+
disabled,
|
|
2287
|
+
ref: input,
|
|
2288
|
+
...other
|
|
2289
|
+
}
|
|
2290
|
+
), /* @__PURE__ */ React.createElement("label", { htmlFor: `#${inputId}`, className: "ObCheckbox-label", onKeyDown: handleKeyDown, onClick: handleClick }, /* @__PURE__ */ React.createElement("div", { className: "ObCheckbox-box" }, /* @__PURE__ */ React.createElement(Mark, { className: "ObCheckbox-mark" }))));
|
|
2309
2291
|
});
|
|
2310
2292
|
|
|
2311
2293
|
// src/ColorCard/index.tsx
|
|
@@ -2317,11 +2299,7 @@ var ob;
|
|
|
2317
2299
|
...other
|
|
2318
2300
|
}) {
|
|
2319
2301
|
const BaseElement = Component ? Component : href ? "a" : "div";
|
|
2320
|
-
return /* @__PURE__ */ React.createElement(BaseElement, {
|
|
2321
|
-
className: clsx_m_default("ObColorCard-root", className),
|
|
2322
|
-
href,
|
|
2323
|
-
...other
|
|
2324
|
-
}, children);
|
|
2302
|
+
return /* @__PURE__ */ React.createElement(BaseElement, { className: clsx_m_default("ObColorCard-root", className), href, ...other }, children);
|
|
2325
2303
|
}
|
|
2326
2304
|
function CardColumn({
|
|
2327
2305
|
children,
|
|
@@ -2329,10 +2307,7 @@ var ob;
|
|
|
2329
2307
|
minor,
|
|
2330
2308
|
...other
|
|
2331
2309
|
}) {
|
|
2332
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2333
|
-
className: clsx_m_default("ObColorCard-column", minor && "ObColorCard-minor", className),
|
|
2334
|
-
...other
|
|
2335
|
-
}, children);
|
|
2310
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx_m_default("ObColorCard-column", minor && "ObColorCard-minor", className), ...other }, children);
|
|
2336
2311
|
}
|
|
2337
2312
|
function CardDetail({
|
|
2338
2313
|
children,
|
|
@@ -2341,20 +2316,10 @@ var ob;
|
|
|
2341
2316
|
primary,
|
|
2342
2317
|
...other
|
|
2343
2318
|
}) {
|
|
2344
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2345
|
-
className: clsx_m_default("ObColorCard-detail", primary && "ObColorCard-primary", className),
|
|
2346
|
-
...other
|
|
2347
|
-
}, label && /* @__PURE__ */ React.createElement("div", {
|
|
2348
|
-
className: "ObColorCard-detailLabel"
|
|
2349
|
-
}, label), /* @__PURE__ */ React.createElement("div", {
|
|
2350
|
-
className: "ObColorCard-detailValue"
|
|
2351
|
-
}, children));
|
|
2319
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx_m_default("ObColorCard-detail", primary && "ObColorCard-primary", className), ...other }, label && /* @__PURE__ */ React.createElement("div", { className: "ObColorCard-detailLabel" }, label), /* @__PURE__ */ React.createElement("div", { className: "ObColorCard-detailValue" }, children));
|
|
2352
2320
|
}
|
|
2353
2321
|
function CardLabel({ children, className, ...other }) {
|
|
2354
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2355
|
-
className: clsx_m_default("ObColorCard-label", className),
|
|
2356
|
-
...other
|
|
2357
|
-
}, children);
|
|
2322
|
+
return /* @__PURE__ */ React.createElement("div", { className: clsx_m_default("ObColorCard-label", className), ...other }, children);
|
|
2358
2323
|
}
|
|
2359
2324
|
|
|
2360
2325
|
// src/DateNavigator/index.tsx
|
|
@@ -2365,31 +2330,29 @@ var ob;
|
|
|
2365
2330
|
}
|
|
2366
2331
|
function Arrow(props) {
|
|
2367
2332
|
const { direction, ...rest } = props;
|
|
2368
|
-
return /* @__PURE__ */ React.createElement(
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
"aria-hidden": "true",
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
|
|
2392
|
-
}))));
|
|
2333
|
+
return /* @__PURE__ */ React.createElement(
|
|
2334
|
+
"button",
|
|
2335
|
+
{
|
|
2336
|
+
className: clsx_m_default(
|
|
2337
|
+
"ObDateNavigator-arrow",
|
|
2338
|
+
direction === "left" ? "ObDateNavigator-arrowLeft" : "ObDateNavigator-arrowRight"
|
|
2339
|
+
),
|
|
2340
|
+
...rest
|
|
2341
|
+
},
|
|
2342
|
+
/* @__PURE__ */ React.createElement("span", { className: "ObDateNavigator-icon" }, direction === "left" ? /* @__PURE__ */ React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 320 512" }, /* @__PURE__ */ React.createElement(
|
|
2343
|
+
"path",
|
|
2344
|
+
{
|
|
2345
|
+
fill: "currentColor",
|
|
2346
|
+
d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"
|
|
2347
|
+
}
|
|
2348
|
+
)) : /* @__PURE__ */ React.createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 320 512" }, /* @__PURE__ */ React.createElement(
|
|
2349
|
+
"path",
|
|
2350
|
+
{
|
|
2351
|
+
fill: "currentColor",
|
|
2352
|
+
d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"
|
|
2353
|
+
}
|
|
2354
|
+
)))
|
|
2355
|
+
);
|
|
2393
2356
|
}
|
|
2394
2357
|
var formatter = new Intl.DateTimeFormat(getUiCulture(), {
|
|
2395
2358
|
weekday: "short",
|
|
@@ -2425,25 +2388,12 @@ var ob;
|
|
|
2425
2388
|
setInternalDate(date2);
|
|
2426
2389
|
}
|
|
2427
2390
|
}
|
|
2428
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2429
|
-
className: "ObDateNavigator-root"
|
|
2430
|
-
}, /* @__PURE__ */ React.createElement(Arrow, {
|
|
2431
|
-
direction: "left",
|
|
2432
|
-
onClick: () => handleDateChanged(new Date(dateUtc - oneDay))
|
|
2433
|
-
}), /* @__PURE__ */ React.createElement("div", {
|
|
2434
|
-
className: "ObDateNavigator-date"
|
|
2435
|
-
}, text), /* @__PURE__ */ React.createElement(Arrow, {
|
|
2436
|
-
direction: "right",
|
|
2437
|
-
onClick: () => handleDateChanged(new Date(dateUtc + oneDay))
|
|
2438
|
-
}));
|
|
2391
|
+
return /* @__PURE__ */ React.createElement("div", { className: "ObDateNavigator-root" }, /* @__PURE__ */ React.createElement(Arrow, { direction: "left", onClick: () => handleDateChanged(new Date(dateUtc - oneDay)) }), /* @__PURE__ */ React.createElement("div", { className: "ObDateNavigator-date" }, text), /* @__PURE__ */ React.createElement(Arrow, { direction: "right", onClick: () => handleDateChanged(new Date(dateUtc + oneDay)) }));
|
|
2439
2392
|
}
|
|
2440
2393
|
|
|
2441
2394
|
// src/LinkedCardList/index.tsx
|
|
2442
2395
|
function List({ children, className, ...other }) {
|
|
2443
|
-
return /* @__PURE__ */ React.createElement("ul", {
|
|
2444
|
-
className: clsx_m_default("ObLinkedList-root", className),
|
|
2445
|
-
...other
|
|
2446
|
-
}, children);
|
|
2396
|
+
return /* @__PURE__ */ React.createElement("ul", { className: clsx_m_default("ObLinkedList-root", className), ...other }, children);
|
|
2447
2397
|
}
|
|
2448
2398
|
function ListItem({
|
|
2449
2399
|
children,
|
|
@@ -2451,72 +2401,41 @@ var ob;
|
|
|
2451
2401
|
label,
|
|
2452
2402
|
...other
|
|
2453
2403
|
}) {
|
|
2454
|
-
return /* @__PURE__ */ React.createElement("li", {
|
|
2455
|
-
className: clsx_m_default("ObLinkedList-item", className),
|
|
2456
|
-
...other
|
|
2457
|
-
}, label && /* @__PURE__ */ React.createElement("div", {
|
|
2458
|
-
className: "ObLinkedList-leftColumn"
|
|
2459
|
-
}, label), /* @__PURE__ */ React.createElement("div", {
|
|
2460
|
-
className: "ObLinkedList-line"
|
|
2461
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
2462
|
-
className: "ObLinkedList-bullet"
|
|
2463
|
-
})), /* @__PURE__ */ React.createElement("div", {
|
|
2464
|
-
className: "ObLinkedList-rightColumn"
|
|
2465
|
-
}, children));
|
|
2404
|
+
return /* @__PURE__ */ React.createElement("li", { className: clsx_m_default("ObLinkedList-item", className), ...other }, label && /* @__PURE__ */ React.createElement("div", { className: "ObLinkedList-leftColumn" }, label), /* @__PURE__ */ React.createElement("div", { className: "ObLinkedList-line" }, /* @__PURE__ */ React.createElement("div", { className: "ObLinkedList-bullet" })), /* @__PURE__ */ React.createElement("div", { className: "ObLinkedList-rightColumn" }, children));
|
|
2466
2405
|
}
|
|
2467
2406
|
function Card({ as, children, className, ...other }) {
|
|
2468
2407
|
const Component = as || "div";
|
|
2469
|
-
return /* @__PURE__ */ React.createElement(Component, {
|
|
2470
|
-
className: clsx_m_default("ObLinkedList-card", className),
|
|
2471
|
-
...other
|
|
2472
|
-
}, children);
|
|
2408
|
+
return /* @__PURE__ */ React.createElement(Component, { className: clsx_m_default("ObLinkedList-card", className), ...other }, children);
|
|
2473
2409
|
}
|
|
2474
2410
|
|
|
2475
2411
|
// src/PageBanner/index.tsx
|
|
2476
2412
|
var import_react3 = __toESM(require_react(), 1);
|
|
2477
2413
|
function PageBanner({ as, className, children, ...other }) {
|
|
2478
2414
|
const Component = as ? as : "section";
|
|
2479
|
-
return /* @__PURE__ */ import_react3.default.createElement(Component, {
|
|
2480
|
-
className: clsx_m_default("ObPageBanner-root", className),
|
|
2481
|
-
...other
|
|
2482
|
-
}, /* @__PURE__ */ import_react3.default.createElement("div", {
|
|
2483
|
-
className: "container px-0"
|
|
2484
|
-
}, /* @__PURE__ */ import_react3.default.createElement("div", {
|
|
2485
|
-
className: "ObPageBanner-pageBannerInner"
|
|
2486
|
-
}, children)));
|
|
2415
|
+
return /* @__PURE__ */ import_react3.default.createElement(Component, { className: clsx_m_default("ObPageBanner-root", className), ...other }, /* @__PURE__ */ import_react3.default.createElement("div", { className: "container px-0" }, /* @__PURE__ */ import_react3.default.createElement("div", { className: "ObPageBanner-pageBannerInner" }, children)));
|
|
2487
2416
|
}
|
|
2488
2417
|
var BannerImage = import_react3.default.forwardRef(function BannerImage2(props, ref) {
|
|
2489
2418
|
const { className, ...other } = props;
|
|
2490
|
-
return /* @__PURE__ */ import_react3.default.createElement("img", {
|
|
2491
|
-
ref,
|
|
2492
|
-
className: clsx_m_default("ObPageBanner-bannerImage", className),
|
|
2493
|
-
...other
|
|
2494
|
-
});
|
|
2419
|
+
return /* @__PURE__ */ import_react3.default.createElement("img", { ref, className: clsx_m_default("ObPageBanner-bannerImage", className), ...other });
|
|
2495
2420
|
});
|
|
2496
2421
|
function TabList({ as, className, children, sticky, ...other }) {
|
|
2497
2422
|
const Component = as ? as : "nav";
|
|
2498
|
-
return /* @__PURE__ */ import_react3.default.createElement(
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
className: "ObPageBanner-tabListInner"
|
|
2505
|
-
|
|
2423
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
2424
|
+
Component,
|
|
2425
|
+
{
|
|
2426
|
+
className: clsx_m_default("ObPageBanner-pageBanner", "ObPageBanner-tabList", sticky && "sticky", className),
|
|
2427
|
+
...other
|
|
2428
|
+
},
|
|
2429
|
+
/* @__PURE__ */ import_react3.default.createElement("div", { className: "container px-0" }, /* @__PURE__ */ import_react3.default.createElement("div", { className: "ObPageBanner-tabListInner" }, children))
|
|
2430
|
+
);
|
|
2506
2431
|
}
|
|
2507
2432
|
function Tab({ active, as, className, children, ...other }) {
|
|
2508
2433
|
const Component = as ? as : "a";
|
|
2509
|
-
return /* @__PURE__ */ import_react3.default.createElement(Component, {
|
|
2510
|
-
className: clsx_m_default("ObPageBanner-tab", active && "active", className),
|
|
2511
|
-
...other
|
|
2512
|
-
}, children);
|
|
2434
|
+
return /* @__PURE__ */ import_react3.default.createElement(Component, { className: clsx_m_default("ObPageBanner-tab", active && "active", className), ...other }, children);
|
|
2513
2435
|
}
|
|
2514
2436
|
function Title({ as, className, children, ...other }) {
|
|
2515
2437
|
const Component = as ? as : "h1";
|
|
2516
|
-
return /* @__PURE__ */ import_react3.default.createElement(Component, {
|
|
2517
|
-
className: clsx_m_default("ObPageBanner-bannerTitle", className),
|
|
2518
|
-
...other
|
|
2519
|
-
}, children);
|
|
2438
|
+
return /* @__PURE__ */ import_react3.default.createElement(Component, { className: clsx_m_default("ObPageBanner-bannerTitle", className), ...other }, children);
|
|
2520
2439
|
}
|
|
2521
2440
|
|
|
2522
2441
|
// src/Portal/index.tsx
|
|
@@ -2545,9 +2464,7 @@ var ob;
|
|
|
2545
2464
|
}
|
|
2546
2465
|
}, []);
|
|
2547
2466
|
if (!portalNode.current) {
|
|
2548
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
2549
|
-
ref: mountNode
|
|
2550
|
-
});
|
|
2467
|
+
return /* @__PURE__ */ React.createElement("div", { ref: mountNode });
|
|
2551
2468
|
} else {
|
|
2552
2469
|
return (0, import_react_dom.createPortal)(children, portalNode.current);
|
|
2553
2470
|
}
|
|
@@ -2556,11 +2473,7 @@ var ob;
|
|
|
2556
2473
|
// src/ProgressBar/index.tsx
|
|
2557
2474
|
var import_react5 = __toESM(require_react(), 1);
|
|
2558
2475
|
var ProgressBar = (0, import_react5.forwardRef)(function ProgressBar2({ className, ...props }, ref) {
|
|
2559
|
-
return /* @__PURE__ */ React.createElement("progress", {
|
|
2560
|
-
className: clsx_m_default("ObProgressBar-root", className),
|
|
2561
|
-
...props,
|
|
2562
|
-
ref
|
|
2563
|
-
});
|
|
2476
|
+
return /* @__PURE__ */ React.createElement("progress", { className: clsx_m_default("ObProgressBar-root", className), ...props, ref });
|
|
2564
2477
|
});
|
|
2565
2478
|
|
|
2566
2479
|
// src/Sidebar/index.tsx
|
|
@@ -2627,43 +2540,37 @@ var ob;
|
|
|
2627
2540
|
};
|
|
2628
2541
|
}, [open]);
|
|
2629
2542
|
const { className: overlayClassName, ...overlayOther } = overlayProps;
|
|
2630
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2543
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2544
|
+
"div",
|
|
2545
|
+
{
|
|
2546
|
+
className: clsx_m_default(
|
|
2547
|
+
"ObSidebar-root",
|
|
2548
|
+
open && "Ob-open",
|
|
2549
|
+
pullRight && "Ob-right",
|
|
2550
|
+
shadow && "ObSidebar-shadow",
|
|
2551
|
+
className
|
|
2552
|
+
),
|
|
2553
|
+
ref: sidebar,
|
|
2554
|
+
tabIndex: -1,
|
|
2555
|
+
...other
|
|
2556
|
+
},
|
|
2557
|
+
(open || !hidden) && children
|
|
2558
|
+
), /* @__PURE__ */ React.createElement(
|
|
2559
|
+
"div",
|
|
2560
|
+
{
|
|
2561
|
+
role: "presentation",
|
|
2562
|
+
tabIndex: -1,
|
|
2563
|
+
className: clsx_m_default("ObSidebar-overlay", open && "Ob-open", overlayClassName),
|
|
2564
|
+
onClick: closeSidebar,
|
|
2565
|
+
...overlayOther
|
|
2566
|
+
}
|
|
2567
|
+
));
|
|
2648
2568
|
}
|
|
2649
2569
|
|
|
2650
2570
|
// src/Spinner/index.tsx
|
|
2651
2571
|
var import_react7 = __toESM(require_react(), 1);
|
|
2652
2572
|
function Spinner({ className = "", fullPage = false, ...rest }) {
|
|
2653
|
-
return /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2654
|
-
className: clsx_m_default(className, fullPage ? "ObSpinner-fullPage" : "ObSpinner-wrapper"),
|
|
2655
|
-
...rest
|
|
2656
|
-
}, /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2657
|
-
className: "ObSpinner-spinner"
|
|
2658
|
-
}, /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2659
|
-
className: "ObSpinner-bullet"
|
|
2660
|
-
}), /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2661
|
-
className: "ObSpinner-bullet"
|
|
2662
|
-
}), /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2663
|
-
className: "ObSpinner-bullet"
|
|
2664
|
-
}), /* @__PURE__ */ import_react7.default.createElement("div", {
|
|
2665
|
-
className: "ObSpinner-bullet"
|
|
2666
|
-
})));
|
|
2573
|
+
return /* @__PURE__ */ import_react7.default.createElement("div", { className: clsx_m_default(className, fullPage ? "ObSpinner-fullPage" : "ObSpinner-wrapper"), ...rest }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-spinner" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-bullet" }), /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-bullet" }), /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-bullet" }), /* @__PURE__ */ import_react7.default.createElement("div", { className: "ObSpinner-bullet" })));
|
|
2667
2574
|
}
|
|
2668
2575
|
|
|
2669
2576
|
// src/SplitContainer/index.tsx
|
|
@@ -2702,27 +2609,17 @@ var ob;
|
|
|
2702
2609
|
)
|
|
2703
2610
|
);
|
|
2704
2611
|
var Divider = (0, import_react8.forwardRef)(function Divider2(props, ref) {
|
|
2705
|
-
return /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
2706
|
-
tabIndex: 0,
|
|
2707
|
-
className: clsx_m_default("ObSplitContainer-divider", props.className),
|
|
2708
|
-
ref
|
|
2709
|
-
}, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u2022\u2022\u2022"));
|
|
2612
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { tabIndex: 0, className: clsx_m_default("ObSplitContainer-divider", props.className), ref }, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u2022\u2022\u2022"));
|
|
2710
2613
|
});
|
|
2711
2614
|
function SplitRoot({ className, direction, ...props }) {
|
|
2712
|
-
return /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
2713
|
-
className: clsx_m_default(className, "ObSplitContainer-root", direction),
|
|
2714
|
-
...props
|
|
2715
|
-
});
|
|
2615
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { className: clsx_m_default(className, "ObSplitContainer-root", direction), ...props });
|
|
2716
2616
|
}
|
|
2717
2617
|
function SplitPanel(props) {
|
|
2718
2618
|
let style = {
|
|
2719
2619
|
flex: props.fixed ? `0 0 ${Math.floor(props.size)}px` : "1 1 100%",
|
|
2720
2620
|
...props.style
|
|
2721
2621
|
};
|
|
2722
|
-
return /* @__PURE__ */ import_react8.default.createElement("div", {
|
|
2723
|
-
className: clsx_m_default(props.className, "ObSplitContainer-panel"),
|
|
2724
|
-
style
|
|
2725
|
-
}, props.children);
|
|
2622
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { className: clsx_m_default(props.className, "ObSplitContainer-panel"), style }, props.children);
|
|
2726
2623
|
}
|
|
2727
2624
|
function SplitContainer({
|
|
2728
2625
|
className,
|
|
@@ -2823,22 +2720,7 @@ var ob;
|
|
|
2823
2720
|
};
|
|
2824
2721
|
}
|
|
2825
2722
|
}, [direction, fixedPanel]);
|
|
2826
|
-
return /* @__PURE__ */ import_react8.default.createElement(SplitRoot, {
|
|
2827
|
-
direction,
|
|
2828
|
-
className
|
|
2829
|
-
}, /* @__PURE__ */ import_react8.default.createElement(SplitPanel, {
|
|
2830
|
-
className: panelClassName,
|
|
2831
|
-
fixed: fixedPanel === 1,
|
|
2832
|
-
size: fixedSize
|
|
2833
|
-
}, childrenArray[0]), /* @__PURE__ */ import_react8.default.createElement(Divider, {
|
|
2834
|
-
ref: dividerRef,
|
|
2835
|
-
direction,
|
|
2836
|
-
isDragging
|
|
2837
|
-
}), /* @__PURE__ */ import_react8.default.createElement(SplitPanel, {
|
|
2838
|
-
className: panelClassName,
|
|
2839
|
-
fixed: fixedPanel === 2,
|
|
2840
|
-
size: fixedSize
|
|
2841
|
-
}, childrenArray[1]));
|
|
2723
|
+
return /* @__PURE__ */ import_react8.default.createElement(SplitRoot, { direction, className }, /* @__PURE__ */ import_react8.default.createElement(SplitPanel, { className: panelClassName, fixed: fixedPanel === 1, size: fixedSize }, childrenArray[0]), /* @__PURE__ */ import_react8.default.createElement(Divider, { ref: dividerRef, direction, isDragging }), /* @__PURE__ */ import_react8.default.createElement(SplitPanel, { className: panelClassName, fixed: fixedPanel === 2, size: fixedSize }, childrenArray[1]));
|
|
2842
2724
|
}
|
|
2843
2725
|
|
|
2844
2726
|
// src/useTranslation/index.ts
|
|
@@ -2921,13 +2803,7 @@ var ob;
|
|
|
2921
2803
|
value: (e?.querySelector("input:checked")).value
|
|
2922
2804
|
};
|
|
2923
2805
|
});
|
|
2924
|
-
return /* @__PURE__ */ React.createElement("fieldset", {
|
|
2925
|
-
className,
|
|
2926
|
-
...other
|
|
2927
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
2928
|
-
className: "ObValueToggle-root",
|
|
2929
|
-
ref: wrapperRef
|
|
2930
|
-
}, options.map((option) => {
|
|
2806
|
+
return /* @__PURE__ */ React.createElement("fieldset", { className, ...other }, /* @__PURE__ */ React.createElement("div", { className: "ObValueToggle-root", ref: wrapperRef }, options.map((option) => {
|
|
2931
2807
|
const isObj = typeof option === "object";
|
|
2932
2808
|
const optValue = isObj ? option.value : option;
|
|
2933
2809
|
const props = {
|
|
@@ -2944,17 +2820,7 @@ var ob;
|
|
|
2944
2820
|
if (isObj) {
|
|
2945
2821
|
Object.assign(props, option);
|
|
2946
2822
|
}
|
|
2947
|
-
return /* @__PURE__ */ React.createElement("label", {
|
|
2948
|
-
key: optValue,
|
|
2949
|
-
className: "ObValueToggle-option"
|
|
2950
|
-
}, /* @__PURE__ */ React.createElement("input", {
|
|
2951
|
-
type: "radio",
|
|
2952
|
-
className: "ObValueToggle-input",
|
|
2953
|
-
name: toggleName,
|
|
2954
|
-
...props
|
|
2955
|
-
}), /* @__PURE__ */ React.createElement("span", {
|
|
2956
|
-
className: "ObValueToggle-label"
|
|
2957
|
-
}, isObj ? option.label || optValue : optValue));
|
|
2823
|
+
return /* @__PURE__ */ React.createElement("label", { key: optValue, className: "ObValueToggle-option" }, /* @__PURE__ */ React.createElement("input", { type: "radio", className: "ObValueToggle-input", name: toggleName, ...props }), /* @__PURE__ */ React.createElement("span", { className: "ObValueToggle-label" }, isObj ? option.label || optValue : optValue));
|
|
2958
2824
|
})));
|
|
2959
2825
|
}
|
|
2960
2826
|
var ValueToggle = (0, import_react10.forwardRef)(ValueToggleInner);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Checkbox/index.scss", "../../src/ColorCard/index.scss", "../../src/DateNavigator/index.scss", "../../src/styles/_mixins.scss", "../../src/LinkedCardList/index.scss", "../../src/PageBanner/index.scss", "../../src/styles/_variables.scss", "../../src/ProgressBar/index.scss", "../../src/Sidebar/index.scss", "../../src/Spinner/index.scss", "../../src/SplitContainer/index.scss", "../../src/ValueToggle/index.scss"],
|
|
4
|
-
"sourcesContent": [null, null, null, null, null, null, null, null, null, null, null, null],
|
|
4
|
+
"sourcesContent": [".ObCheckbox-root {\n\t--check-width: 2rem;\n\t--bg-color: var(--brand-dark, rgba(42, 65, 50, 0.5));\n\t--bg-color-hover: var(--brand-primary, rgba(42, 65, 50, 0.8));\n\t--bg-color-selected: var(--brand-light);\n\n\tdisplay: inline-block;\n\theight: var(--check-width);\n\tmargin-bottom: 0;\n\n\t&:focus-within .ObCheckbox-box {\n\t\tborder: 0.1rem solid black;\n\t}\n\n\t&.Ob-disabled {\n\t\t--bg-color: rgba(150, 150, 150, 0.5);\n\t\t--bg-color-hover: var(--bg-color);\n\t}\n}\n\n.ObCheckbox-box {\n\tposition: relative;\n\n\tbackground: var(--bg-color);\n\ttransition: background 300ms ease;\n\n\toverflow: hidden;\n\n\tborder-radius: calc(var(--check-width) / 15);\n\theight: var(--check-width);\n\twidth: var(--check-width);\n\n\t&:hover {\n\t\tbackground: var(--bg-color-hover);\n\t}\n}\n\n.ObCheckbox-label {\n\tposition: relative;\n\tmargin-bottom: 0;\n\toverflow: hidden;\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n\n.ObCheckbox-mark {\n\tcolor: #fff;\n\tdisplay: inline-block;\n\tfont-size: calc(var(--check-width) * 0.4);\n\tleft: 50%;\n\topacity: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 50%;\n\ttransition: all 300ms ease-in-out;\n\ttransition-delay: 0ms;\n\ttransform: translate(-50%, -50%) scale(6);\n}\n\n.ObCheckbox-input {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n\n.check_Label {\n\tmargin-bottom: 0;\n\tflex-grow: 1;\n}\n\n.ObCheckbox-input:checked:not(:disabled) + .ObCheckbox-label {\n\tanimation: animOn 800ms 1 forwards;\n}\n\n.ObCheckbox-input:checked:not(:disabled) + .ObCheckbox-label .ObCheckbox-box {\n\tbackground: var(--bg-color-selected);\n}\n\n.ObCheckbox-input:checked + .ObCheckbox-label .ObCheckbox-box .ObCheckbox-mark {\n\ttransform: translate(-50%, -50%) scale(1);\n\ttransition-delay: 200ms;\n\topacity: 1;\n}\n\n.ObCheckbox-root.Ob-disabled .ObCheckbox-box {\n\tcursor: not-allowed;\n}\n\n@keyframes animOn {\n\t40% {\n\t\ttransform: scaleY(0.4) scaleX(2);\n\t}\n\n\t50% {\n\t\ttransform: scaleY(1.2) scaleX(0.6);\n\t}\n\n\t60% {\n\t\ttransform: scaleY(0.8) scaleX(1.4);\n\t}\n\n\t70% {\n\t\ttransform: scaleY(1.1) scaleX(0.9);\n\t}\n\n\t100% {\n\t\ttransform: scaleY(1) scaleX(1);\n\t}\n}\n", "@import \"../styles/variables\";\n\n.ObColorCard-root {\n\t--bg-color-border: black;\n\t--bg-color-main: white;\n\t--bg-size: 0.75rem;\n\t--card-color: rgb(0, 0, 0);\n\n\talign-items: stretch;\n\tbackground-image: linear-gradient(to right, $brand-primary, $brand-primary 0.75rem, white 0.75rem, white);\n\tbackground-image: linear-gradient(\n\t\tto right,\n\t\tvar(--bg-color-border),\n\t\tvar(--bg-color-border) var(--bg-size),\n\t\tvar(--bg-color-main) var(--bg-size),\n\t\tvar(--bg-color-main)\n\t);\n\tborder-radius: 0.25rem;\n\tbox-shadow: 0 1px 12px rgba(0, 0, 0, 0.15), 0 1px 6px rgba(0, 0, 0, 0.25);\n\tcolor: #666;\n\tcursor: pointer;\n\tdisplay: flex;\n\tfont-family: \"Variable Bahnschrift\", \"Bahnschrift\", \"Open Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n\t\t\"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n\tfont-size: 1rem;\n\tmin-height: 10rem;\n\toverflow: hidden;\n\ttransition: all ease-in-out 300ms;\n\n\t&:nth-of-type(5n + 1) {\n\t\t--bg-color-border: rgb(178, 108, 190);\n\t}\n\t&:nth-of-type(5n + 2) {\n\t\t--bg-color-border: rgb(79, 164, 61);\n\t}\n\t&:nth-of-type(5n + 3) {\n\t\t--bg-color-border: rgb(246, 170, 23);\n\t}\n\t&:nth-of-type(5n + 4) {\n\t\t--bg-color-border: rgb(218, 93, 83);\n\t}\n\t&:nth-of-type(5n + 5) {\n\t\t--bg-color-border: rgb(23, 162, 184);\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\t/*--bg-size: 1rem;*/\n\t\t--bg-color-main: #f5f5f5;\n\n\t\tbox-shadow: 0 3px 18px rgba(0, 0, 0, 0.15), 0 3px 12px rgba(0, 0, 0, 0.25);\n\t\tcolor: #666;\n\t\ttext-decoration: none;\n\t\t/*transform: scale(1.03) translateY(-3px);*/\n\t}\n\n\t@media screen and (min-width: 48rem) {\n\t\tfont-size: 1.2rem;\n\t}\n}\n\n.ObColorCard-column {\n\tdisplay: flex;\n\tflex: 1 1 100%;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 1rem 0;\n\toverflow: hidden;\n\tpadding: 0.5rem 1.5rem 0.5rem 1rem;\n\ttext-overflow: ellipsis;\n\n\t&:first-child {\n\t\tmargin-left: 0.75rem;\n\t\tmargin-left: var(--bg-size);\n\t}\n\n\t&.ObColorCard-minor {\n\t\tborder-right: 1px solid #e3e3e3;\n\t\tflex: 0 0 4rem;\n\t\ttransition: margin ease-in-out 300ms;\n\t}\n\n\t@media screen and (min-width: 48rem) {\n\t\t&.ObColorCard-minor {\n\t\t\tflex: 0 0 8rem;\n\t\t}\n\t}\n}\n\n.ObColorCard-detailLabel {\n\tcolor: #ccc;\n\tfont-size: 0.8rem;\n\ttext-transform: uppercase;\n}\n\n.ObColorCard-detail {\n\t&:not(:last-child) {\n\t\tmargin-right: 1.5rem;\n\t}\n\n\t&.ObColorCard-primary,\n\t&.ObColorCard-primary .ObColorCard-detailValue {\n\t\tfont-size: 1.25rem;\n\t\tfont-weight: 300;\n\t}\n\n\t&.ObColorCard-primary .ObColorCard-detailValue {\n\t\tcolor: unset;\n\t}\n\n\t@media screen and (min-width: 48rem) {\n\t\tfont-size: 1rem;\n\t}\n}\n\n.ObColorCard-detailValue {\n\tcolor: #999;\n}\n\n.ObColorCard-label {\n\tposition: relative;\n\tpadding-left: 1.5rem;\n\t/* white-space: nowrap; */\n\n\t&:not(:last-child) {\n\t\tmargin-bottom: 1rem;\n\n\t\t&::after {\n\t\t\tcontent: \"\";\n\t\t\tposition: absolute;\n\t\t\twidth: 0.2rem;\n\t\t\theight: calc(100% + 1rem);\n\t\t\tborder-left: 0.2rem dotted #666;\n\t\t\tleft: 0.25rem;\n\t\t\ttop: 0.5rem;\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t&::before {\n\t\tbackground: white;\n\t\tborder: 0.2rem solid $brand-primary;\n\t\tborder: 0.2rem solid var(--bg-color-border);\n\t\tborder-radius: 50%;\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\theight: 0.75rem;\n\t\tleft: 0;\n\t\tposition: absolute;\n\t\ttop: 0.3rem;\n\t\twidth: 0.75rem;\n\t\tz-index: 1;\n\t}\n}\n", "@import \"../styles/mixins\";\n\n$date-select-height: 3rem;\n\n.ObDateNavigator-icon {\n\tdisplay: inline-block;\n\n\tsvg {\n\t\twidth: 0.625em;\n\t\tposition: relative;\n\t\ttop: -1px;\n\t}\n}\n\n.ObDateNavigator-root {\n\tbackground-color: hsl(220, 20%, 96%);\n\tbackground-color: var(--block-header-color-bg);\n\tdisplay: flex;\n\tfont-size: 1rem;\n}\n\n.ObDateNavigator-arrow {\n\t@include btn-reset;\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 0 0 $date-select-height;\n\tjustify-content: center;\n\n\theight: $date-select-height;\n\n\tcursor: pointer;\n\ttext-align: center;\n\n\t&:hover {\n\t\tbackground-color: #e3e3e3;\n\t\tbackground-color: var(--block-header-button-hover);\n\t}\n}\n\n.ObDateNavigator-arrowLeft {\n\tborder-right: 1px solid #dddddd;\n\torder: 1;\n}\n\n.ObDateNavigator-arrowRight {\n\tborder-left: 1px solid #dddddd;\n\torder: 3;\n}\n\n.ObDateNavigator-date {\n\tdisplay: flex;\n\tflex: 1 1 100%;\n\tflex-direction: column;\n\tjustify-content: center;\n\torder: 2;\n\n\theight: $date-select-height;\n\n\ttext-align: center;\n}\n", "@mixin btn-reset {\n\tbackground: none;\n\tborder: 0;\n\tcolor: inherit;\n\t/* cursor: default; */\n\tfont: inherit;\n\tline-height: normal;\n\toverflow: visible;\n\tpadding: 0;\n\t-webkit-appearance: button; /* for input */\n\t-webkit-user-select: none; /* for button */\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\n\t&::-moz-focus-inner {\n\t\tborder: 0;\n\t\tpadding: 0;\n\t}\n}\n", "@import \"../styles/variables\";\n\n$bullet-size: 0.7em;\n$line-width: 0.2em;\n\n.ObLinkedList-root {\n\tlist-style-type: none;\n\tmargin-left: 0;\n\tpadding-left: 0;\n}\n\n.ObLinkedList-item {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: row;\n}\n\n.ObLinkedList-leftColumn {\n\tflex: 1 1 4em;\n\tfont-size: 0.75em;\n\tpadding: 0 1em;\n\ttext-align: center;\n}\n\n.ObLinkedList-rightColumn {\n\tflex: 1 1 100%;\n\tpadding: 1em 1em 1em 1.5em;\n}\n\n.ObLinkedList-line {\n\tdisplay: flex;\n\talign-self: stretch;\n\tflex: 0 0 $line-width;\n\tbackground: white;\n\tposition: relative;\n}\n\n.ObLinkedList-bullet {\n\tbackground: white;\n\n\tborder: 1px solid rgba(50, 50, 50, 0.25);\n\tborder-radius: 0.55em;\n\theight: $bullet-size;\n\twidth: $bullet-size;\n\n\tposition: absolute;\n\tleft: 0;\n\ttop: 50%;\n\n\ttransform: translate(calc(-1 * ($bullet-size / 2) + ($line-width / 2)), -50%);\n}\n\n.ObLinkedList-card {\n\tbackground: white;\n\tborder: 1px solid;\n\tborder-color: $color-border-top $color-border-side $color-border-bottom;\n\tborder-radius: 0.1875em;\n\tcolor: inherit;\n\tcursor: pointer;\n\tflex: 100% 1 1;\n\tposition: relative;\n}\n\n.ObLinkedList-card::before {\n\tborder-bottom: 0.5em solid transparent;\n\tborder-right: 1em solid white;\n\tborder-top: 0.5em solid transparent;\n\tcontent: \" \";\n\tfilter: drop-shadow(-1px 0px 1px rgba(50, 50, 50, 0.2));\n\theight: 1em;\n\tleft: -1em;\n\tmargin-top: -0.5em;\n\tposition: absolute;\n\ttop: 50%;\n\twidth: 1em;\n}\n\n.ObLinkedList-card:hover {\n\tbackground-color: $block-color-bg-hover !important;\n\tcolor: inherit;\n\ttext-decoration: inherit;\n}\n\n.ObLinkedList-card:hover::before {\n\tborder-right-color: $block-color-bg-hover !important;\n}\n", "@import \"../styles/variables\";\n\n.ObPageBanner-root {\n\tbackground-color: $brand-primary;\n\tbackground-color: var(--brand-dark);\n\tbox-shadow: 0px 8px 8px rgba(0, 0, 0, 0.2);\n\tcolor: white;\n\n\ta {\n\t\tcolor: hsl(200, 50%, 80%);\n\t}\n}\n\n.ObPageBanner-inner {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\n\t@media screen and (min-width: $screen-md) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t}\n}\n\n.ObPageBanner-plantTitle {\n\tfont-size: 2rem;\n\n\t@media screen and (min-width: $screen-lg) {\n\t\tfont-size: 3rem;\n\t}\n}\n\n.ObPageBanner-bannerImage {\n\talign-self: stretch;\n\tbackground-color: #ddd;\n\tdisplay: inline-block;\n\theight: 20vh;\n\tobject-fit: cover;\n\tobject-position: center center;\n\twidth: 100%;\n\n\t@media screen and (min-width: $screen-sm) {\n\t\talign-self: center;\n\t\tmargin: 0;\n\t\tmargin-right: 1rem;\n\t\tborder: 0.4rem solid white;\n\t\tborder-radius: 50%;\n\t\theight: 150px;\n\t\twidth: 150px;\n\t}\n\n\t@media screen and (min-width: $screen-lg) {\n\t\theight: 250px;\n\t\twidth: 250px;\n\t}\n}\n\n.ObPageBanner-bannerTitle {\n\tmargin-bottom: 1rem;\n\tmargin-top: 1rem;\n\tfont-size: 2rem;\n\n\t@media screen and (min-width: $screen-md) {\n\t\tmargin-top: 0;\n\t}\n\n\t@media screen and (min-width: $screen-lg) {\n\t\tfont-size: 3rem;\n\t}\n}\n\n.ObPageBanner-tabList {\n\t&.sticky {\n\t\tposition: -webkit-sticky;\n\t\tposition: sticky;\n\t\ttop: 0;\n\t\tz-index: 1000;\n\t}\n}\n\n.ObPageBanner-tabListInner {\n\toverflow-x: auto;\n\tscrollbar-width: thin;\n\twhite-space: nowrap;\n}\n\n.ObPageBanner-tab {\n\tborder-bottom: 0.25rem solid transparent;\n\tdisplay: inline-block;\n\tmargin-top: 0.5rem;\n\tmin-width: 8rem;\n\tpadding: 0.5rem 1rem;\n\ttext-align: center;\n\ttext-transform: capitalize;\n\n\t&.active {\n\t\tborder-color: white;\n\t}\n}\n", "$brand-primary: hsl(186, 72%, 24%);\n$brand-light: hsl(186, 72%, 37%);\n$brand-dark: hsl(186, 74%, 20%);\n$brand-tertiary: rgb(68, 69, 84);\n\n$link-color: $brand-primary;\n$link-color-hover: $brand-dark;\n\n$line-height: 1.4;\n\n$color-bg-hover: hsla(186, 72%, 37%, 0.6);\n$color-bg-active: hsla(95, 49%, 71%, 0.2);\n$color-fg-active: black;\n\n$color-border-top: #e5e6e9;\n$color-border-side: #dfe0e4;\n$color-border-bottom: #d0d1d5;\n\n$navbar-height: 40px;\n\n$screen-xs: 0;\n$screen-sm: 576px;\n$screen-md: 768px;\n$screen-lg: 992px;\n$screen-xl: 1200px;\n\n$block-header-color-bg: hsl(220, 20%, 96%);\n$block-header-color-bg-hover: hsl(220, 20%, 92%);\n$block-header-color-fg: hsl(0, 0%, 20%);\n$block-color-bg-alt: hsl(220, 20%, 98%);\n$block-color-bg-hover: hsl(220, 20%, 94%);\n$block-color-border: #e5e5e5;\n\n$block-header-button-hover: hsl(220, 20%, 92%);\n$block-header-button-border: hsl(220, 7%, 82%);\n$block-header-button-active: hsl(220, 20%, 86%);\n\n$sidebar-padding: 0.9375rem;\n$sidebar-width: 18rem;\n$sidebar-fg-color: hsl(0, 0%, 90%);\n$sidebar-bg-color: hsl(186, 74%, 13%);\n$sidebar-header-color: hsl(220, 6%, 70%);\n$sidebar-link-fg-color: white;\n$sidebar-link-fg-active: white;\n$sidebar-link-bg-color: transparent;\n$sidebar-link-bg-hover: hsla(0, 0%, 100%, 0.1);\n$sidebar-link-bg-active: hsl(142, 13%, 13%);\n\n$padding-xs: 0.75rem;\n$padding-sm: 0.9375rem;\n$padding-lg: 1.5rem;\n\n$grid-gutter-width: 30px;\n\n$container-tablet: (720px + $grid-gutter-width);\n$container-sm: $container-tablet;\n$container-desktop: (940px + $grid-gutter-width);\n$container-md: $container-desktop;\n$container-large-desktop: (1140px + $grid-gutter-width);\n$container-lg: $container-large-desktop;\n\n$toolbar-background: linear-gradient(#fefefe, #fafafa); //white;\n$toolbar-height: 3.125rem;\n$toolbar-border-color: #dedede;\n$toolbar-border-width: 1px;\n\n$toolbar-btn-color: hsla(0, 0%, 60%, 0.8);\n$toolbar-btn-hover-color: hsla(0, 0%, 40%, 0.8);\n$toolbar-btn-bg: transparent;\n$toolbar-btn-hover-bg: linear-gradient(hsl(0, 0%, 89%), hsl(0, 0%, 87%));\n", "@import \"../styles/variables\";\n\n.ObProgressBar-root {\n\theight: 1.5em;\n\twidth: 100%;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-color: whiteSmoke;\n\tborder: none;\n\tborder-radius: 3px;\n\tbox-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;\n\tcolor: royalblue;\n\tposition: relative;\n\n\t&::-webkit-progress-bar {\n\t\tbackground-color: whiteSmoke;\n\t\tborder-radius: 3px;\n\t\tbox-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;\n\t}\n\n\t&::-webkit-progress-value {\n\t\tbackground-image: linear-gradient(\n\t\t\t\t135deg,\n\t\t\t\ttransparent,\n\t\t\t\ttransparent 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 66%,\n\t\t\t\ttransparent 66%\n\t\t\t),\n\t\t\tlinear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),\n\t\t\tlinear-gradient(left, var(--brand-primary, $brand-primary), var(--brand-light, $brand-light));\n\t\tbackground-image: -webkit-linear-gradient(\n\t\t\t\t135deg,\n\t\t\t\ttransparent,\n\t\t\t\ttransparent 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 66%,\n\t\t\t\ttransparent 66%\n\t\t\t),\n\t\t\t-webkit-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),\n\t\t\t-webkit-linear-gradient(left, var(--brand-primary), $brand-primary, var(--brand-light, $brand-light));\n\t\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\t\tborder-radius: 3px;\n\t\tposition: relative;\n\t\ttransition: width 0.5s ease-out;\n\t}\n\n\t&::-webkit-progress-value:after {\n\t\tbackground-color: white;\n\t\tcontent: \"\";\n\n\t\tborder-radius: 100%;\n\t\theight: 5px;\n\n\t\tposition: absolute;\n\t\tright: 7px;\n\t\ttop: 7px;\n\t\twidth: 5px;\n\t}\n\n\t&::-moz-progress-bar {\n\t\tbackground-image: linear-gradient(\n\t\t\t\t135deg,\n\t\t\t\ttransparent,\n\t\t\t\ttransparent 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 66%,\n\t\t\t\ttransparent 66%\n\t\t\t),\n\t\t\tlinear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),\n\t\t\tlinear-gradient(left, var(--brand-primary), var(--brand-light));\n\t\tbackground-image: -moz-linear-gradient(\n\t\t\t\t135deg,\n\t\t\t\ttransparent,\n\t\t\t\ttransparent 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 33%,\n\t\t\t\trgba(0, 0, 0, 0.1) 66%,\n\t\t\t\ttransparent 66%\n\t\t\t),\n\t\t\t-moz-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),\n\t\t\t-moz-linear-gradient(left, var(--brand-primary), var(--brand-light));\n\t\tbackground-size: 35px 20px, 100% 100%, 100% 100%;\n\t\tborder-radius: 3px;\n\t\ttransition: width 0.5s ease-out;\n\t}\n}\n", ".ObSidebar-root {\n\tposition: fixed;\n\tbottom: 0;\n\tleft: 0;\n\ttop: 0;\n\tz-index: 2;\n\n\tbackground-color: white;\n\n\ttransform: translateX(-100%);\n\ttransition: transform 0.2s ease-out;\n\twill-change: transform;\n\n\t&.Ob-right {\n\t\tleft: unset;\n\t\tright: 0;\n\t\ttransform: translateX(100%);\n\t}\n\n\toverflow-y: auto;\n\n\t&.Ob-open {\n\t\ttransform: translateX(0);\n\t}\n\n\t&.ObSidebar-shadow {\n\t\tbox-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);\n\n\t\t&.Ob-right {\n\t\t\tbox-shadow: -2px 2px 4px rgba(0, 0, 0, 0.15);\n\t\t}\n\t}\n}\n\n.ObSidebar-overlay {\n\tposition: fixed;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\ttop: 0;\n\tz-index: 1;\n\n\topacity: 0;\n\tvisibility: hidden;\n\n\ttransition: opacity 0.3s ease-out, visibility 0.3s ease-out;\n\tbackground-color: rgba(0, 0, 0, 0.3);\n\n\t&.Ob-open {\n\t\topacity: 1;\n\t\tvisibility: visible;\n\t}\n}\n", "$bullet-size: 0.5em;\n\n.ObSpinner-root {\n\tdisplay: inline-block;\n}\n\n.ObSpinner-fullPage {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\theight: 100vh;\n\twidth: 100vw;\n}\n\n.ObSpinner-spinner {\n\tdisplay: inline-block;\n\theight: $bullet-size * 1.5;\n\tposition: relative;\n\twidth: $bullet-size * 5;\n}\n\n.ObSpinner-bullet {\n\tanimation-timing-function: cubic-bezier(0, 1, 1, 0);\n\tbackground: #666;\n\tborder-radius: 50%;\n\theight: $bullet-size;\n\tposition: absolute;\n\ttop: 0.2rem;\n\twidth: $bullet-size;\n\n\t&:nth-child(1) {\n\t\tanimation: scaleAnimation 0.6s infinite ease-in-out;\n\t\tleft: $bullet-size * 0.5;\n\t}\n\n\t&:nth-child(2) {\n\t\tanimation: translateAnimation 0.6s infinite ease-in-out;\n\t\tleft: $bullet-size * 0.5;\n\t}\n\n\t&:nth-child(3) {\n\t\tanimation: translateAnimation 0.6s infinite ease-in-out;\n\t\tleft: $bullet-size * 2.4;\n\t}\n\n\t&:nth-child(4) {\n\t\tanimation: scaleAnimation 0.6s infinite ease-in-out reverse;\n\t\tleft: $bullet-size * 4;\n\t}\n}\n\n@keyframes scaleAnimation {\n\tfrom {\n\t\ttransform: scale(0);\n\t}\n\n\tto {\n\t\ttransform: scale(1);\n\t}\n}\n\n@keyframes translateAnimation {\n\tfrom {\n\t\ttransform: translate(0, 0);\n\t}\n\n\tto {\n\t\ttransform: translate($bullet-size * 1.65, 0);\n\t}\n}\n", "/**\nHacky solution to sass output for some reason getting a zero-width space at the beginning, which breaks the first selector\n*/\n.😖 {\n\tdisplay: initial;\n}\n\n.ObSplitContainer-root {\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\twidth: 100%;\n\n\t&.horizontal {\n\t\tflex-direction: row;\n\t}\n}\n\n.ObSplitContainer-panel {\n\toverflow: hidden;\n}\n\n.ObSplitContainer-divider {\n\tflex: 0 0 0.5rem;\n\tbackground-color: transparent;\n\tline-height: 0.75;\n\tcursor: ns-resize;\n\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t&:focus {\n\t\tbackground-color: rgba(0, 0, 0, 0.3);\n\t}\n\n\t.ObSplitContainer-root.horizontal > & {\n\t\tcursor: ew-resize;\n\t\twriting-mode: vertical-lr;\n\t}\n}\n", "@import \"../styles/variables\";\n\n.ObValueToggle-root {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.ObValueToggle-option {\n\tmargin-bottom: 0;\n}\n\n.ObValueToggle-label {\n\tcursor: pointer;\n\tfont-size: 0.8em;\n\tmargin: 0 0.2em;\n\tpadding: 0.3em 0.5em;\n\ttext-transform: uppercase;\n\n\t&:hover {\n\t\tbackground: #ccc;\n\t}\n\n\t.ObValueToggle-input:checked + & {\n\t\t--color-bg: var(--brand-dark);\n\t\tbackground-color: #666;\n\t\tbackground-color: var(--color-bg);\n\t\tcursor: default;\n\t\tcolor: white;\n\t}\n\n\t.ObValueToggle-input:checked:focus-within + & {\n\t\t--color-bg: var(--brand-light);\n\t}\n\n\t.ObValueToggle-input:checked:hover + & {\n\t\tbackground-color: #666;\n\t\tbackground-color: var(--color-bg);\n\t}\n}\n\n.ObValueToggle-input {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tpadding: 0;\n\tmargin: -1px;\n\toverflow: hidden;\n\tclip: rect(0, 0, 0, 0);\n\tborder: 0;\n}\n"],
|
|
5
5
|
"mappings": "iBAAA,iBACC,oBACA,oDACA,6DACA,wCAEA,qBACA,0BACA,gBAEA,8CACC,yBAGD,6BACC,oCACA,kCAIF,gBACC,kBAEA,2BACA,+BAEA,gBAEA,4CACA,0BACA,yBAEA,sBACC,iCAIF,kBACC,kBACA,gBACA,gBAEA,wBACC,aAIF,iBACC,WACA,qBACA,wCACA,SACA,UACA,oBACA,kBACA,QACA,+BACA,qBACA,wCAGD,kBACC,mBACA,qBACA,WACA,gBACA,kBACA,mBACA,UAEA,wBACC,aAIF,aACC,gBACA,YAGD,2DACC,gCAGD,2EACC,oCAGD,6EACC,wCACA,qBACA,UAGD,6CACC,mBAGD,sBAEE,mCAIA,qCAIA,qCAIA,oCAIA,+BClHF,kBACC,yBACA,uBACA,kBACA,2BAEA,oBACA,6GACA,iKARD,qBAgBC,oDACA,WACA,eACA,aACA,6LAEA,eACA,iBACA,gBACA,+BAEA,sCACC,sCAED,sCACC,oCAED,sCACC,qCAED,sCACC,oCAED,sCACC,qCAGD,gDAGC,yBAEA,qDACA,WACA,qBAID,qCAtDD,kBAuDE,kBAIF,oBACC,aACA,cACA,sBACA,8BA/DD,cAiEC,gBAjED,gCAmEC,uBAEA,gCACC,mBACA,2BAGD,sCACC,+BACA,cACA,kCAGD,qCACC,sCACC,eAKH,yBACC,WACA,gBACA,yBAIA,qCACC,oBAGD,yGAEC,kBACA,gBAGD,iEACC,YAGD,qCAfD,oBAgBE,gBAIF,yBACC,WAGD,mBACC,kBACA,oBAGA,oCACC,mBAEA,0CACC,WACA,kBACA,YACA,yBACA,8BACA,YACA,UACA,UAIF,0BACC,iBACA,uCACA,0CA5IF,kBA8IE,WACA,cACA,cACA,OACA,kBACA,UACA,aACA,UCnJF,sBACC,qBAEA,0BACC,aACA,kBACA,SAIF,sBACC,yBACA,8CACA,aACA,eAGD,uBCpBC,gBACA,SACA,cAEA,aACA,mBACA,iBDHD,UCKC,0BACA,yBACA,sBACA,qBDWA,aACA,mBACA,cACA,uBAEA,YAEA,eACA,kBCjBA,yCACC,SDXF,UA6BC,6BACC,yBACA,kDAIF,2BACC,+BACA,QAGD,4BACC,8BACA,QAGD,sBACC,aACA,cACA,sBACA,uBACA,QAEA,YAEA,kBErDD,mBACC,qBACA,cACA,eAGD,mBACC,aACA,mBACA,mBAGD,yBACC,aACA,gBAdD,cAgBC,kBAGD,0BACC,cApBD,0BAwBA,mBACC,aACA,mBACA,cACA,iBACA,kBAGD,qBACC,iBAEA,oCAnCD,oBAqCC,YACA,WAEA,kBACA,OACA,QAEA,iCAGD,mBACC,iBACA,iBACA,qCAlDD,sBAoDC,cACA,eACA,cACA,kBAGD,0BACC,qCACA,6BACA,kCACA,YACA,mDACA,WACA,UACA,iBACA,kBACA,QACA,UAGD,yBACC,mCACA,cACA,wBAGD,gCACC,qCClFD,mBACC,yBACA,mCACA,2BACA,WAEA,qBACC,cAIF,oBACC,aACA,mBACA,sBAEA,qCALD,oBAME,uBACA,oBAIF,yBACC,eAEA,qCAHD,yBAIE,gBAIF,0BACC,mBACA,sBACA,qBACA,YACA,iBACA,8BACA,WAEA,qCATD,0BAUE,kBAxCF,SA0CE,kBACA,yBA3CF,kBA6CE,aACA,aAGD,qCAnBD,0BAoBE,aACA,aAIF,0BACC,mBACA,gBACA,eAEA,qCALD,0BAME,cAGD,qCATD,0BAUE,gBAKD,6BACC,wBACA,gBACA,MACA,aAIF,2BACC,gBACA,qBACA,mBAGD,kBACC,uCACA,qBACA,iBACA,eAxFD,mBA0FC,kBACA,0BAEA,yBACC,kBE9FF,oBACC,aACA,WACA,gBACA,wBACA,yBACA,YAND,kBAQC,iCACA,cACA,kBAEA,0CACC,yBAbF,kBAeE,iCAGD,4CACC,iSAUA,sTAUA,8CAvCF,kBAyCE,kBACA,8BAGD,kDACC,sBACA,WA/CF,mBAkDE,WAEA,kBACA,UACA,QACA,UAGD,uCACC,mPAUA,kQAUA,8CA/EF,kBAiFE,8BCnFF,gBACC,eACA,SACA,OACA,MACA,UAEA,sBAEA,2BACA,kCACA,sBAQA,gBANA,yBACC,WACA,QACA,0BAKD,wBACC,uBAGD,iCACC,iCAEA,0CACC,kCAKH,mBACC,eAnCD,QAwCC,UAEA,UACA,kBAEA,wDACA,2BAEA,2BACC,UACA,mBChDF,gBACC,qBAGD,oBACC,aACA,mBACA,uBAEA,aACA,YAGD,mBACC,qBACA,aACA,kBACA,YAGD,kBACC,gDACA,gBAtBD,kBAwBC,YACA,kBACA,UACA,WAEA,+BACC,kDACA,WAGD,+BACC,sDACA,WAGD,+BACC,sDACA,WAGD,+BACC,0DACA,SAIF,6BAEE,sBAIA,oBAIF,iCAEE,0BAIA,6BCjEF,SACC,gBAGD,uBACC,aACA,sBACA,YACA,WAEA,kCACC,mBAIF,wBACC,gBAGD,0BACC,eACA,6BACA,gBACA,iBAEA,aACA,mBACA,uBAEA,gCACC,2BAGD,4DACC,iBACA,yBCpCF,oBACC,aACA,mBAGD,sBACC,gBAGD,qBACC,eACA,eAXD,gCAcC,yBAEA,2BACC,gBAGD,kDACC,8BACA,sBACA,iCACA,eACA,WAGD,+DACC,+BAGD,wDACC,sBACA,iCAIF,qBACC,kBACA,UACA,WAzCD,sBA4CC,gBACA,mBACA",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olenbetong/synergi-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Standalone React component for SynergiWeb and Partner Portal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./es/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"sideEffects": false,
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@olenbetong/appframe-core": "^2.5.
|
|
71
|
+
"@olenbetong/appframe-core": "^2.5.2",
|
|
72
72
|
"clsx": "^1.2.1",
|
|
73
73
|
"localforage": "^1.10.0",
|
|
74
74
|
"mitt": "^3.0.0"
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"replace-in-files": "^3.0.0"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "b15f380e09dac10e7e1893cbecce95945ccc2c7c"
|
|
91
91
|
}
|