@homebound/beam 2.181.1 → 2.182.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Css.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Properties as Properties1 } from "csstype";
2
2
  /** Given a type X, and the user's proposed type T, only allow keys in X and nothing else. */
3
3
  export declare type Only<X, T> = X & Record<Exclude<keyof T, keyof X>, never>;
4
4
  export declare type Properties = Properties1;
5
- export declare type Typography = "tiny" | "tinyEm" | "xs" | "xsEm" | "sm" | "smEm" | "base" | "baseEm" | "lg" | "lgEm" | "xl" | "xlEm" | "xl2" | "xl2Em" | "xl3" | "xl3Em" | "xl4" | "xl4Em" | "xl5" | "xl5Em";
5
+ export declare type Typography = "tiny" | "tinyMd" | "tinySb" | "tinyBd" | "xs" | "xsMd" | "xsSb" | "xsBd" | "sm" | "smMd" | "smSb" | "smBd" | "base" | "baseMd" | "baseSb" | "baseBd" | "lg" | "lgMd" | "lgSb" | "lgBd" | "xl" | "xlMd" | "xlSb" | "xlBd" | "xl2" | "xl2Md" | "xl2Sb" | "xl2Bd" | "xl3" | "xl3Md" | "xl3Sb" | "xl3Bd" | "xl4" | "xl4Md" | "xl4Sb" | "xl4Bd" | "xl5" | "xl5Md" | "xl5Sb" | "xl5Bd";
6
6
  declare type Opts<T> = {
7
7
  rules: T;
8
8
  enabled: boolean;
@@ -2389,7 +2389,21 @@ declare class CssBuilder<T extends Properties1> {
2389
2389
  } & {
2390
2390
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2391
2391
  }>;
2392
- get tinyEm(): CssBuilder<T & {
2392
+ get tinyMd(): CssBuilder<T & {
2393
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2394
+ } & {
2395
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2396
+ } & {
2397
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2398
+ }>;
2399
+ get tinySb(): CssBuilder<T & {
2400
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2401
+ } & {
2402
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2403
+ } & {
2404
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2405
+ }>;
2406
+ get tinyBd(): CssBuilder<T & {
2393
2407
  fontWeight: import("csstype").Property.FontWeight | undefined;
2394
2408
  } & {
2395
2409
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2403,7 +2417,21 @@ declare class CssBuilder<T extends Properties1> {
2403
2417
  } & {
2404
2418
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2405
2419
  }>;
2406
- get xsEm(): CssBuilder<T & {
2420
+ get xsMd(): CssBuilder<T & {
2421
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2422
+ } & {
2423
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2424
+ } & {
2425
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2426
+ }>;
2427
+ get xsSb(): CssBuilder<T & {
2428
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2429
+ } & {
2430
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2431
+ } & {
2432
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2433
+ }>;
2434
+ get xsBd(): CssBuilder<T & {
2407
2435
  fontWeight: import("csstype").Property.FontWeight | undefined;
2408
2436
  } & {
2409
2437
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2417,7 +2445,21 @@ declare class CssBuilder<T extends Properties1> {
2417
2445
  } & {
2418
2446
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2419
2447
  }>;
2420
- get smEm(): CssBuilder<T & {
2448
+ get smMd(): CssBuilder<T & {
2449
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2450
+ } & {
2451
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2452
+ } & {
2453
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2454
+ }>;
2455
+ get smSb(): CssBuilder<T & {
2456
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2457
+ } & {
2458
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2459
+ } & {
2460
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2461
+ }>;
2462
+ get smBd(): CssBuilder<T & {
2421
2463
  fontWeight: import("csstype").Property.FontWeight | undefined;
2422
2464
  } & {
2423
2465
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2431,7 +2473,21 @@ declare class CssBuilder<T extends Properties1> {
2431
2473
  } & {
2432
2474
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2433
2475
  }>;
2434
- get baseEm(): CssBuilder<T & {
2476
+ get baseMd(): CssBuilder<T & {
2477
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2478
+ } & {
2479
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2480
+ } & {
2481
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2482
+ }>;
2483
+ get baseSb(): CssBuilder<T & {
2484
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2485
+ } & {
2486
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2487
+ } & {
2488
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2489
+ }>;
2490
+ get baseBd(): CssBuilder<T & {
2435
2491
  fontWeight: import("csstype").Property.FontWeight | undefined;
2436
2492
  } & {
2437
2493
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2445,7 +2501,21 @@ declare class CssBuilder<T extends Properties1> {
2445
2501
  } & {
2446
2502
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2447
2503
  }>;
2448
- get lgEm(): CssBuilder<T & {
2504
+ get lgMd(): CssBuilder<T & {
2505
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2506
+ } & {
2507
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2508
+ } & {
2509
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2510
+ }>;
2511
+ get lgSb(): CssBuilder<T & {
2512
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2513
+ } & {
2514
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2515
+ } & {
2516
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2517
+ }>;
2518
+ get lgBd(): CssBuilder<T & {
2449
2519
  fontWeight: import("csstype").Property.FontWeight | undefined;
2450
2520
  } & {
2451
2521
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2459,7 +2529,21 @@ declare class CssBuilder<T extends Properties1> {
2459
2529
  } & {
2460
2530
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2461
2531
  }>;
2462
- get xlEm(): CssBuilder<T & {
2532
+ get xlMd(): CssBuilder<T & {
2533
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2534
+ } & {
2535
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2536
+ } & {
2537
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2538
+ }>;
2539
+ get xlSb(): CssBuilder<T & {
2540
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2541
+ } & {
2542
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2543
+ } & {
2544
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2545
+ }>;
2546
+ get xlBd(): CssBuilder<T & {
2463
2547
  fontWeight: import("csstype").Property.FontWeight | undefined;
2464
2548
  } & {
2465
2549
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2473,7 +2557,21 @@ declare class CssBuilder<T extends Properties1> {
2473
2557
  } & {
2474
2558
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2475
2559
  }>;
2476
- get xl2Em(): CssBuilder<T & {
2560
+ get xl2Md(): CssBuilder<T & {
2561
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2562
+ } & {
2563
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2564
+ } & {
2565
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2566
+ }>;
2567
+ get xl2Sb(): CssBuilder<T & {
2568
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2569
+ } & {
2570
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2571
+ } & {
2572
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2573
+ }>;
2574
+ get xl2Bd(): CssBuilder<T & {
2477
2575
  fontWeight: import("csstype").Property.FontWeight | undefined;
2478
2576
  } & {
2479
2577
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2487,7 +2585,21 @@ declare class CssBuilder<T extends Properties1> {
2487
2585
  } & {
2488
2586
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2489
2587
  }>;
2490
- get xl3Em(): CssBuilder<T & {
2588
+ get xl3Md(): CssBuilder<T & {
2589
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2590
+ } & {
2591
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2592
+ } & {
2593
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2594
+ }>;
2595
+ get xl3Sb(): CssBuilder<T & {
2596
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2597
+ } & {
2598
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2599
+ } & {
2600
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2601
+ }>;
2602
+ get xl3Bd(): CssBuilder<T & {
2491
2603
  fontWeight: import("csstype").Property.FontWeight | undefined;
2492
2604
  } & {
2493
2605
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2501,7 +2613,21 @@ declare class CssBuilder<T extends Properties1> {
2501
2613
  } & {
2502
2614
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2503
2615
  }>;
2504
- get xl4Em(): CssBuilder<T & {
2616
+ get xl4Md(): CssBuilder<T & {
2617
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2618
+ } & {
2619
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2620
+ } & {
2621
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2622
+ }>;
2623
+ get xl4Sb(): CssBuilder<T & {
2624
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2625
+ } & {
2626
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2627
+ } & {
2628
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2629
+ }>;
2630
+ get xl4Bd(): CssBuilder<T & {
2505
2631
  fontWeight: import("csstype").Property.FontWeight | undefined;
2506
2632
  } & {
2507
2633
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2515,7 +2641,21 @@ declare class CssBuilder<T extends Properties1> {
2515
2641
  } & {
2516
2642
  lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2517
2643
  }>;
2518
- get xl5Em(): CssBuilder<T & {
2644
+ get xl5Md(): CssBuilder<T & {
2645
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2646
+ } & {
2647
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2648
+ } & {
2649
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2650
+ }>;
2651
+ get xl5Sb(): CssBuilder<T & {
2652
+ fontWeight: import("csstype").Property.FontWeight | undefined;
2653
+ } & {
2654
+ fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
2655
+ } & {
2656
+ lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
2657
+ }>;
2658
+ get xl5Bd(): CssBuilder<T & {
2519
2659
  fontWeight: import("csstype").Property.FontWeight | undefined;
2520
2660
  } & {
2521
2661
  fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
@@ -2943,9 +3083,17 @@ export declare type Xss<P extends keyof Properties> = Pick<Properties, P>;
2943
3083
  export declare const Css: CssBuilder<{}>;
2944
3084
  export declare type Margin = "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft";
2945
3085
  export declare type Padding = "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft";
3086
+ export declare type Font = "fontSize" | "fontWeight" | "lineHeight";
2946
3087
  declare type Brand<K, T> = K & {
2947
3088
  __brand: T;
2948
3089
  };
2949
3090
  declare type Breakpoint = Brand<string, "Breakpoint">;
2950
3091
  export declare const print: Breakpoint;
3092
+ export declare const sm: Breakpoint;
3093
+ export declare const md: Breakpoint;
3094
+ export declare const smOrMd: Breakpoint;
3095
+ export declare const mdAndUp: Breakpoint;
3096
+ export declare const mdAndDown: Breakpoint;
3097
+ export declare const lg: Breakpoint;
3098
+ export declare const mdOrLg: Breakpoint;
2951
3099
  export {};
package/dist/Css.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.print = exports.Css = exports.Palette = exports.px = exports.increment = exports.maybeInc = void 0;
3
+ exports.mdOrLg = exports.lg = exports.mdAndDown = exports.mdAndUp = exports.smOrMd = exports.md = exports.sm = exports.print = exports.Css = exports.Palette = exports.px = exports.increment = exports.maybeInc = void 0;
4
4
  // prettier-ignore
5
5
  class CssBuilder {
6
6
  constructor(opts) {
@@ -735,25 +735,45 @@ class CssBuilder {
735
735
  tt(value) { return this.add("textTransform", value); }
736
736
  // typeScale
737
737
  get tiny() { return this.add("fontWeight", 400).add("fontSize", "10px").add("lineHeight", "14px"); }
738
- get tinyEm() { return this.add("fontWeight", 600).add("fontSize", "10px").add("lineHeight", "14px"); }
738
+ get tinyMd() { return this.add("fontWeight", 500).add("fontSize", "10px").add("lineHeight", "14px"); }
739
+ get tinySb() { return this.add("fontWeight", 600).add("fontSize", "10px").add("lineHeight", "14px"); }
740
+ get tinyBd() { return this.add("fontWeight", 700).add("fontSize", "10px").add("lineHeight", "14px"); }
739
741
  get xs() { return this.add("fontWeight", 400).add("fontSize", "12px").add("lineHeight", "16px"); }
740
- get xsEm() { return this.add("fontWeight", 500).add("fontSize", "12px").add("lineHeight", "16px"); }
742
+ get xsMd() { return this.add("fontWeight", 500).add("fontSize", "12px").add("lineHeight", "16px"); }
743
+ get xsSb() { return this.add("fontWeight", 600).add("fontSize", "12px").add("lineHeight", "16px"); }
744
+ get xsBd() { return this.add("fontWeight", 700).add("fontSize", "12px").add("lineHeight", "16px"); }
741
745
  get sm() { return this.add("fontWeight", 400).add("fontSize", "14px").add("lineHeight", "20px"); }
742
- get smEm() { return this.add("fontWeight", 500).add("fontSize", "14px").add("lineHeight", "20px"); }
746
+ get smMd() { return this.add("fontWeight", 500).add("fontSize", "14px").add("lineHeight", "20px"); }
747
+ get smSb() { return this.add("fontWeight", 600).add("fontSize", "14px").add("lineHeight", "20px"); }
748
+ get smBd() { return this.add("fontWeight", 700).add("fontSize", "14px").add("lineHeight", "20px"); }
743
749
  get base() { return this.add("fontWeight", 400).add("fontSize", "16px").add("lineHeight", "24px"); }
744
- get baseEm() { return this.add("fontWeight", 500).add("fontSize", "16px").add("lineHeight", "24px"); }
750
+ get baseMd() { return this.add("fontWeight", 500).add("fontSize", "16px").add("lineHeight", "24px"); }
751
+ get baseSb() { return this.add("fontWeight", 600).add("fontSize", "16px").add("lineHeight", "24px"); }
752
+ get baseBd() { return this.add("fontWeight", 700).add("fontSize", "16px").add("lineHeight", "24px"); }
745
753
  get lg() { return this.add("fontWeight", 400).add("fontSize", "18px").add("lineHeight", "28px"); }
746
- get lgEm() { return this.add("fontWeight", 600).add("fontSize", "18px").add("lineHeight", "28px"); }
754
+ get lgMd() { return this.add("fontWeight", 500).add("fontSize", "18px").add("lineHeight", "28px"); }
755
+ get lgSb() { return this.add("fontWeight", 600).add("fontSize", "18px").add("lineHeight", "28px"); }
756
+ get lgBd() { return this.add("fontWeight", 700).add("fontSize", "18px").add("lineHeight", "28px"); }
747
757
  get xl() { return this.add("fontWeight", 400).add("fontSize", "20px").add("lineHeight", "28px"); }
748
- get xlEm() { return this.add("fontWeight", 600).add("fontSize", "20px").add("lineHeight", "28px"); }
758
+ get xlMd() { return this.add("fontWeight", 500).add("fontSize", "20px").add("lineHeight", "28px"); }
759
+ get xlSb() { return this.add("fontWeight", 600).add("fontSize", "20px").add("lineHeight", "28px"); }
760
+ get xlBd() { return this.add("fontWeight", 700).add("fontSize", "20px").add("lineHeight", "28px"); }
749
761
  get xl2() { return this.add("fontWeight", 400).add("fontSize", "24px").add("lineHeight", "32px"); }
750
- get xl2Em() { return this.add("fontWeight", 600).add("fontSize", "24px").add("lineHeight", "32px"); }
762
+ get xl2Md() { return this.add("fontWeight", 500).add("fontSize", "24px").add("lineHeight", "32px"); }
763
+ get xl2Sb() { return this.add("fontWeight", 600).add("fontSize", "24px").add("lineHeight", "32px"); }
764
+ get xl2Bd() { return this.add("fontWeight", 700).add("fontSize", "24px").add("lineHeight", "32px"); }
751
765
  get xl3() { return this.add("fontWeight", 400).add("fontSize", "30px").add("lineHeight", "36px"); }
752
- get xl3Em() { return this.add("fontWeight", 600).add("fontSize", "30px").add("lineHeight", "36px"); }
766
+ get xl3Md() { return this.add("fontWeight", 500).add("fontSize", "30px").add("lineHeight", "36px"); }
767
+ get xl3Sb() { return this.add("fontWeight", 600).add("fontSize", "30px").add("lineHeight", "36px"); }
768
+ get xl3Bd() { return this.add("fontWeight", 700).add("fontSize", "30px").add("lineHeight", "36px"); }
753
769
  get xl4() { return this.add("fontWeight", 400).add("fontSize", "36px").add("lineHeight", "40px"); }
754
- get xl4Em() { return this.add("fontWeight", 600).add("fontSize", "36px").add("lineHeight", "40px"); }
770
+ get xl4Md() { return this.add("fontWeight", 500).add("fontSize", "36px").add("lineHeight", "40px"); }
771
+ get xl4Sb() { return this.add("fontWeight", 600).add("fontSize", "36px").add("lineHeight", "40px"); }
772
+ get xl4Bd() { return this.add("fontWeight", 700).add("fontSize", "36px").add("lineHeight", "40px"); }
755
773
  get xl5() { return this.add("fontWeight", 400).add("fontSize", "48px").add("lineHeight", "48px"); }
756
- get xl5Em() { return this.add("fontWeight", 600).add("fontSize", "48px").add("lineHeight", "48px"); }
774
+ get xl5Md() { return this.add("fontWeight", 500).add("fontSize", "48px").add("lineHeight", "48px"); }
775
+ get xl5Sb() { return this.add("fontWeight", 600).add("fontSize", "48px").add("lineHeight", "48px"); }
776
+ get xl5Bd() { return this.add("fontWeight", 700).add("fontSize", "48px").add("lineHeight", "48px"); }
757
777
  // typography
758
778
  get measure() { return this.add("maxWidth", "30em"); }
759
779
  get measureWide() { return this.add("maxWidth", "34em"); }
@@ -995,3 +1015,10 @@ var Palette;
995
1015
  /** An entry point for Css expressions. CssBuilder is immutable so this is safe to share. */
996
1016
  exports.Css = new CssBuilder({ rules: {}, enabled: true, important: false, selector: undefined });
997
1017
  exports.print = "@media print";
1018
+ exports.sm = "@media screen and (max-width:599px)";
1019
+ exports.md = "@media screen and (min-width:600px) and (max-width:959px)";
1020
+ exports.smOrMd = "@media screen and (max-width:959px)";
1021
+ exports.mdAndUp = "@media screen and (min-width:600px)";
1022
+ exports.mdAndDown = "@media screen and (max-width:959px)";
1023
+ exports.lg = "@media screen and (min-width:960px)";
1024
+ exports.mdOrLg = "@media screen and (min-width:600px)";
@@ -12,12 +12,14 @@ function Accordion(props) {
12
12
  const id = (0, utils_1.useId)();
13
13
  const [expanded, setExpanded] = (0, react_1.useState)(defaultExpanded);
14
14
  const { isFocusVisible, focusProps } = (0, react_aria_1.useFocusRing)();
15
- (0, react_1.useEffect)(() => { setExpanded(defaultExpanded); }, [defaultExpanded]);
15
+ (0, react_1.useEffect)(() => {
16
+ setExpanded(defaultExpanded);
17
+ }, [defaultExpanded]);
16
18
  return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, testIds.container, { css: {
17
19
  ...index_1.Css.bGray400.if(topBorder).bt.if(bottomBorder).bb.$,
18
20
  ...(size ? index_1.Css.wPx(accordionSizes[size]).$ : {}),
19
21
  } }, { children: [(0, jsx_runtime_1.jsxs)("button", Object.assign({}, testIds.title, focusProps, { "aria-controls": id, "aria-expanded": expanded, disabled: disabled, css: {
20
- ...index_1.Css.df.jcsb.gap2.aic.w100.p2.baseEm.outline("none").addIn(":hover", index_1.Css.bgGray100.$).$,
22
+ ...index_1.Css.df.jcsb.gap2.aic.w100.p2.baseMd.outline("none").addIn(":hover", index_1.Css.bgGray100.$).$,
21
23
  ...(disabled && index_1.Css.gray500.$),
22
24
  ...(isFocusVisible && index_1.Css.boxShadow(`inset 0 0 0 2px ${index_1.Palette.LightBlue700}`).$),
23
25
  }, onClick: () => {
@@ -29,7 +31,9 @@ function Accordion(props) {
29
31
  transform: expanded ? "rotate(180deg)" : "rotate(0deg)",
30
32
  } }, { children: (0, jsx_runtime_1.jsx)(index_1.Icon, { icon: "chevronDown" }, void 0) }), void 0)] }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({}, testIds.details, { id: id, "aria-hidden": !expanded, css: {
31
33
  // Use max-height for grow/shrink animation (remove close animation for AccordionList to avoid delays)
32
- ...index_1.Css.overflowHidden.maxhPx(1000).add("transition", `max-height ${expanded || !index ? "250ms" : "0"} ease-in-out`).$,
34
+ ...index_1.Css.overflowHidden
35
+ .maxhPx(1000)
36
+ .add("transition", `max-height ${expanded || !index ? "250ms" : "0"} ease-in-out`).$,
33
37
  ...(!expanded || disabled ? index_1.Css.maxh0.$ : {}),
34
38
  } }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ css: index_1.Css.px2.pb2.pt1.$ }, { children: children }), void 0) }), void 0)] }), void 0));
35
39
  }
@@ -40,5 +40,5 @@ function AutoSaveIndicator({ hideOnIdle, doNotReset }) {
40
40
  }
41
41
  exports.AutoSaveIndicator = AutoSaveIndicator;
42
42
  function Indicator({ text, icon, color }) {
43
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ "data-testid": "autoSave", css: Css_1.Css.df.gap1.aic.gray700.smEm.$ }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: icon, color: color }, void 0), text] }), void 0));
43
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ "data-testid": "autoSave", css: Css_1.Css.df.gap1.aic.gray700.smMd.$ }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: icon, color: color }, void 0), text] }), void 0));
44
44
  }
@@ -27,8 +27,8 @@ const sizeToFallbackTypeScale = {
27
27
  xl: "xl3",
28
28
  };
29
29
  const sizeToTypeScale = {
30
- sm: "baseEm",
31
- md: "baseEm",
30
+ sm: "baseMd",
31
+ md: "baseMd",
32
32
  lg: "lg",
33
33
  xl: "xl3",
34
34
  };
@@ -24,6 +24,6 @@ function FilterModal(props) {
24
24
  exports.FilterModal = FilterModal;
25
25
  // Wraps a filter component to be displayed in the Filter Modal
26
26
  function ModalFilterItem({ label, children }) {
27
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.mb4.if(!label).bt.bGray200.$ }, { children: [label && (0, jsx_runtime_1.jsx)("h2", Object.assign({ css: Css_1.Css.baseEm.mb2.$ }, { children: label }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ css: Css_1.Css.if(!label).pt3.$ }, { children: children }), void 0)] }), void 0));
27
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.mb4.if(!label).bt.bGray200.$ }, { children: [label && (0, jsx_runtime_1.jsx)("h2", Object.assign({ css: Css_1.Css.baseMd.mb2.$ }, { children: label }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ css: Css_1.Css.if(!label).pt3.$ }, { children: children }), void 0)] }), void 0));
28
28
  }
29
29
  exports.ModalFilterItem = ModalFilterItem;
@@ -33,7 +33,7 @@ function Filters(props) {
33
33
  // Return list of filter components. `onSelect` should update the `filter`
34
34
  return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ css: {
35
35
  ...(vertical ? Css_1.Css.df.fdc.childGap2.$ : Css_1.Css.df.aic.childGap1.$),
36
- } }, testId, { children: [maybeGroupByField, (0, utils_1.safeEntries)(pageFilters).map(([key, f]) => ((0, jsx_runtime_1.jsx)("div", { children: f.render(filter[key], (value) => onChange((0, Filters_1.updateFilter)(filter, key, value)), testId, false, vertical) }, key))), Object.keys(modalFilters).length > 0 && ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ label: "More Filters", endAdornment: numModalFilters > 0 && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.wPx(16).hPx(16).fs0.br100.bgLightBlue700.white.tinyEm.df.aic.jcc.$ }, { children: numModalFilters }), void 0)), variant: "secondary", onClick: () => openModal({
36
+ } }, testId, { children: [maybeGroupByField, (0, utils_1.safeEntries)(pageFilters).map(([key, f]) => ((0, jsx_runtime_1.jsx)("div", { children: f.render(filter[key], (value) => onChange((0, Filters_1.updateFilter)(filter, key, value)), testId, false, vertical) }, key))), Object.keys(modalFilters).length > 0 && ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ label: "More Filters", endAdornment: numModalFilters > 0 && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.wPx(16).hPx(16).fs0.br100.bgLightBlue700.white.tinySb.df.aic.jcc.$ }, { children: numModalFilters }), void 0)), variant: "secondary", onClick: () => openModal({
37
37
  // Spreading `props` to pass along `data-testid`
38
38
  content: (0, jsx_runtime_1.jsx)(Filters_1.FilterModal, Object.assign({}, props, { filter: filter, onApply: onChange, filters: modalFilters }), void 0),
39
39
  }) }, testId.moreFiltersBtn), void 0)), Object.keys(filter).length > 0 && ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ label: "Clear", variant: "tertiary", onClick: () => onChange({}) }, testId.clearBtn), void 0) }, void 0))] }), void 0));
@@ -16,6 +16,6 @@ exports.Label = react_1.default.memo((props) => {
16
16
  });
17
17
  /** Used for showing labels within text fields. */
18
18
  function InlineLabel({ labelProps, label, contrast, ...others }) {
19
- return ((0, jsx_runtime_1.jsxs)("label", Object.assign({}, labelProps, others, { css: Css_1.Css.smEm.nowrap.gray900.prPx(4).add("color", "currentColor").$ }, { children: [label, ":"] }), void 0));
19
+ return ((0, jsx_runtime_1.jsxs)("label", Object.assign({}, labelProps, others, { css: Css_1.Css.smMd.nowrap.gray900.prPx(4).add("color", "currentColor").$ }, { children: [label, ":"] }), void 0));
20
20
  }
21
21
  exports.InlineLabel = InlineLabel;
@@ -69,7 +69,7 @@ function Modal(props) {
69
69
  .df.fdc.wPx(width)
70
70
  .mhPx(defaultMinHeight)
71
71
  .if(isFixedHeight)
72
- .hPx(height).$, ref: ref }, overlayProps, dialogProps, modalProps, testId, { children: [(0, jsx_runtime_1.jsxs)("header", Object.assign({ css: Css_1.Css.df.p3.fs0.if(drawHeaderBorder).bb.bGray200.$ }, { children: [(0, jsx_runtime_1.jsx)("h1", Object.assign({ css: Css_1.Css.fg1.xl2Em.gray900.$, ref: modalHeaderRef }, titleProps, testId.title), void 0), (0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.fs0.pl1.$ }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, Object.assign({ icon: "x", onClick: closeModal }, testId.titleClose), void 0) }), void 0)] }), void 0), (0, jsx_runtime_1.jsx)("main", Object.assign({ ref: modalBodyRef, css: Css_1.Css.fg1.overflowYAuto.if(hasScroll).bb.bGray200.if(!!forceScrolling).overflowYScroll.$ }, { children: content }), void 0), (0, jsx_runtime_1.jsx)("footer", Object.assign({ css: Css_1.Css.fs0.$ }, { children: (0, jsx_runtime_1.jsx)("div", { ref: modalFooterRef }, void 0) }), void 0)] }), void 0) }), void 0) }), void 0) }, void 0) }, void 0));
72
+ .hPx(height).$, ref: ref }, overlayProps, dialogProps, modalProps, testId, { children: [(0, jsx_runtime_1.jsxs)("header", Object.assign({ css: Css_1.Css.df.p3.fs0.if(drawHeaderBorder).bb.bGray200.$ }, { children: [(0, jsx_runtime_1.jsx)("h1", Object.assign({ css: Css_1.Css.fg1.xl2Sb.gray900.$, ref: modalHeaderRef }, titleProps, testId.title), void 0), (0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.fs0.pl1.$ }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, Object.assign({ icon: "x", onClick: closeModal }, testId.titleClose), void 0) }), void 0)] }), void 0), (0, jsx_runtime_1.jsx)("main", Object.assign({ ref: modalBodyRef, css: Css_1.Css.fg1.overflowYAuto.if(hasScroll).bb.bGray200.if(!!forceScrolling).overflowYScroll.$ }, { children: content }), void 0), (0, jsx_runtime_1.jsx)("footer", Object.assign({ css: Css_1.Css.fs0.$ }, { children: (0, jsx_runtime_1.jsx)("div", { ref: modalFooterRef }, void 0) }), void 0)] }), void 0) }), void 0) }), void 0) }, void 0) }, void 0));
73
73
  }
74
74
  exports.Modal = Modal;
75
75
  function ModalHeader({ children }) {
@@ -47,7 +47,7 @@ function getNavLinkStyles(variant, contrast) {
47
47
  return navLinkVariantStyles(contrast)[variant];
48
48
  }
49
49
  exports.getNavLinkStyles = getNavLinkStyles;
50
- const baseStyles = Css_1.Css.df.aic.hPx(32).pyPx(6).px1.br4.smEm.outline0.$;
50
+ const baseStyles = Css_1.Css.df.aic.hPx(32).pyPx(6).px1.br4.smMd.outline0.$;
51
51
  const navLinkVariantStyles = (contrast) => ({
52
52
  side: {
53
53
  baseStyles: { ...baseStyles, ...Css_1.Css.gray700.if(contrast).gray600.$ },
@@ -64,5 +64,5 @@ const navLinkVariantStyles = (contrast) => ({
64
64
  focusRingStyles: Css_1.Css.gray500.bgGray900.add("boxShadow", `0px 1px 2px rgba(0, 0, 0, 0.05), 0px 0px 0px 2px #242424, 0px 0px 0px 4px #0EA5E9`).$,
65
65
  hoverStyles: Css_1.Css.gray500.bgGray900.$,
66
66
  pressedStyles: Css_1.Css.gray500.bgGray700.$,
67
- }
67
+ },
68
68
  });
@@ -15,7 +15,7 @@ function ConfirmCloseModal(props) {
15
15
  // after a close and could/will cause other close attempts to fail.
16
16
  modalState.current = undefined;
17
17
  }
18
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.ModalHeader, { children: "Confirm" }, void 0), (0, jsx_runtime_1.jsx)(components_1.ModalBody, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.tc.wPx(400).$ }, { children: [(0, jsx_runtime_1.jsx)("p", Object.assign({ css: Css_1.Css.lgEm.gray900.mb2.$ }, { children: "Are you sure you want to cancel?" }), void 0), (0, jsx_runtime_1.jsx)("p", Object.assign({ css: Css_1.Css.base.gray700.$ }, { children: "Any data you've entered so far will be lost." }), void 0)] }), void 0) }, void 0), (0, jsx_runtime_1.jsx)(components_1.ModalFooter, Object.assign({ xss: Css_1.Css.jcc.$ }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.df.fdc.childGap1.aic.$ }, { children: [(0, jsx_runtime_1.jsx)(components_1.Button, { label: continueText, onClick: closeModal }, void 0), (0, jsx_runtime_1.jsx)(components_1.Button, { variant: "tertiary", label: discardText, onClick: () => {
18
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.ModalHeader, { children: "Confirm" }, void 0), (0, jsx_runtime_1.jsx)(components_1.ModalBody, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.tc.wPx(400).$ }, { children: [(0, jsx_runtime_1.jsx)("p", Object.assign({ css: Css_1.Css.lgSb.gray900.mb2.$ }, { children: "Are you sure you want to cancel?" }), void 0), (0, jsx_runtime_1.jsx)("p", Object.assign({ css: Css_1.Css.base.gray700.$ }, { children: "Any data you've entered so far will be lost." }), void 0)] }), void 0) }, void 0), (0, jsx_runtime_1.jsx)(components_1.ModalFooter, Object.assign({ xss: Css_1.Css.jcc.$ }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.df.fdc.childGap1.aic.$ }, { children: [(0, jsx_runtime_1.jsx)(components_1.Button, { label: continueText, onClick: closeModal }, void 0), (0, jsx_runtime_1.jsx)(components_1.Button, { variant: "tertiary", label: discardText, onClick: () => {
19
19
  // The order of these calls doesn't really matter; close this modal and tell the call to do their close
20
20
  onClose();
21
21
  closeModal();
@@ -59,7 +59,7 @@ function SuperDrawer() {
59
59
  const firstContent = (_b = contentStack.current[0]) === null || _b === void 0 ? void 0 : _b.opts;
60
60
  const { onPrevClick, onNextClick, titleRightContent, titleLeftContent, hideControls } = firstContent !== null && firstContent !== void 0 ? firstContent : {};
61
61
  const isDetail = currentContent !== firstContent;
62
- const title = content === undefined ? '' : currentContent.title || firstContent.title;
62
+ const title = content === undefined ? "" : currentContent.title || firstContent.title;
63
63
  const { width = utils_2.SuperDrawerWidth.Normal } = firstContent !== null && firstContent !== void 0 ? firstContent : {};
64
64
  return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { children: content && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_2.Global, { styles: { body: Css_1.Css.overflowHidden.$ } }, void 0), (0, react_1.createElement)(framer_motion_1.motion.div, { ...testId,
65
65
  // Key is required for framer-motion animations
@@ -80,7 +80,7 @@ function SuperDrawer() {
80
80
  // Custom transitions settings for the translateX animation
81
81
  transition: { ease: "linear", duration: 0.2, delay: 0.2 }, exit: { transition: { ease: "linear", duration: 0.2 }, x: width },
82
82
  // Preventing clicks from triggering parent onClick
83
- onClick: (e) => e.stopPropagation() }, { children: (0, jsx_runtime_1.jsxs)(form_state_1.AutoSaveStatusProvider, { children: [(0, jsx_runtime_1.jsxs)("header", Object.assign({ css: Css_1.Css.df.p3.bb.bGray200.df.aic.jcsb.gap2.$ }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.df.aic.$ }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ css: Css_1.Css.xl2Em.gray900.mr2.$ }, testId.title, { ref: drawerHeaderRef }, { children: !modalState.current && (title || null) }), void 0), !modalState.current && (titleLeftContent || null)] }), void 0), !modalState.current && (
83
+ onClick: (e) => e.stopPropagation() }, { children: (0, jsx_runtime_1.jsxs)(form_state_1.AutoSaveStatusProvider, { children: [(0, jsx_runtime_1.jsxs)("header", Object.assign({ css: Css_1.Css.df.p3.bb.bGray200.df.aic.jcsb.gap2.$ }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.df.aic.$ }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ css: Css_1.Css.xl2Sb.gray900.mr2.$ }, testId.title, { ref: drawerHeaderRef }, { children: !modalState.current && (title || null) }), void 0), !modalState.current && (titleLeftContent || null)] }), void 0), !modalState.current && (
84
84
  // Forcing height to 32px to match title height
85
85
  (0, jsx_runtime_1.jsxs)("div", Object.assign({ css: Css_1.Css.df.childGap3.aic.hPx(32).fs0.$ }, { children: [titleRightContent || null, !hideControls && ((0, jsx_runtime_1.jsx)(components_1.ButtonGroup, Object.assign({ buttons: [
86
86
  {
@@ -84,19 +84,19 @@ class RowState {
84
84
  if (rows !== this.rows) {
85
85
  const currentCollapsedIds = this.collapsedIds;
86
86
  // Create a list of the (maybe) new rows that should be initially collapsed
87
- const maybeNewCollapsedRows = flattenRows(rows).filter((r) => r.initCollapsed);
87
+ const maybeNewCollapsedRowIds = flattenRows(rows)
88
+ .filter((r) => r.initCollapsed)
89
+ .map((r) => r.id);
88
90
  // Check against local storage for collapsed state only if this is the first render of "data" (non-header or totals) rows.
89
91
  const checkLocalStorage = this.persistCollapse && !this.rows.some((r) => r.kind !== "totals" && r.kind !== "header");
90
92
  // If the list of collapsed rows are different, then determine which are net-new rows and should be added to the newCollapsedIds array
91
- if (currentCollapsedIds.length !== maybeNewCollapsedRows.length ||
92
- !currentCollapsedIds.every((id) => maybeNewCollapsedRows.some((r) => r.id === id))) {
93
+ if (currentCollapsedIds.length !== maybeNewCollapsedRowIds.length ||
94
+ !currentCollapsedIds.every((id) => maybeNewCollapsedRowIds.includes(id))) {
93
95
  // Flatten out the existing rows to make checking for new rows easier
94
96
  const flattenedExistingIds = flattenRows(this.rows).map((r) => r.id);
95
- const newCollapsedIds = maybeNewCollapsedRows
96
- .filter((maybeNewRow) => !flattenedExistingIds.includes(maybeNewRow.id) &&
97
+ const newCollapsedIds = maybeNewCollapsedRowIds.filter((maybeNewRowId) => !flattenedExistingIds.includes(maybeNewRowId) &&
97
98
  // Using `!` on `this.persistCollapse!` as `checkLocalStorage` ensures this.persistCollapse is truthy
98
- (!checkLocalStorage || readLocalCollapseState(this.persistCollapse).includes(maybeNewRow.id)))
99
- .map((row) => row.id);
99
+ (!checkLocalStorage || readLocalCollapseState(this.persistCollapse).includes(maybeNewRowId)));
100
100
  // If there are new rows that should be collapsed then update the collapsedRows arrays
101
101
  if (newCollapsedIds.length > 0) {
102
102
  this.collapsedRows.replace(currentCollapsedIds.concat(newCollapsedIds));
@@ -19,7 +19,7 @@ exports.defaultStyle = {
19
19
  /** Tightens up the padding of rows, great for rows that have form elements in them. */
20
20
  exports.condensedStyle = {
21
21
  ...exports.defaultStyle,
22
- headerCellCss: Css_1.Css.bgGray100.tinyEm.$,
22
+ headerCellCss: Css_1.Css.bgGray100.tinySb.$,
23
23
  cellCss: Css_1.Css.aic.sm.py1.px2.$,
24
24
  rootCss: Css_1.Css.dg.gray700.xs.$,
25
25
  firstRowMessageCss: Css_1.Css.tc.py2.$,
@@ -38,7 +38,7 @@ exports.cardStyle = {
38
38
  ...Css_1.Css.add({
39
39
  border: "none",
40
40
  borderRadius: "unset",
41
- }).p1.m0.xsEm.gray700.$,
41
+ }).p1.m0.xsMd.gray700.$,
42
42
  },
43
43
  };
44
44
  function memoizedTableStyles() {
@@ -49,8 +49,8 @@ function memoizedTableStyles() {
49
49
  if (!cache[key]) {
50
50
  const groupedLevels = {
51
51
  0: {
52
- cellCss: Css_1.Css.xsEm.mhPx(56).gray700.bgGray100.boxShadow(`inset 0 -1px 0 ${Css_1.Palette.Gray200}`).$,
53
- firstContentColumn: Css_1.Css.smEm.$,
52
+ cellCss: Css_1.Css.xsMd.mhPx(56).gray700.bgGray100.boxShadow(`inset 0 -1px 0 ${Css_1.Palette.Gray200}`).$,
53
+ firstContentColumn: Css_1.Css.smMd.$,
54
54
  },
55
55
  2: { firstContentColumn: Css_1.Css.tiny.pl3.$ },
56
56
  };
@@ -58,12 +58,12 @@ function memoizedTableStyles() {
58
58
  cache[key] = {
59
59
  emptyCell: "-",
60
60
  firstRowMessageCss: Css_1.Css.tc.py3.$,
61
- headerCellCss: Css_1.Css.gray700.xsEm.bgGray200.aic.nowrap.pxPx(12).hPx(40).$,
62
- totalsCellCss: Css_1.Css.bgWhite.gray700.smEm.hPx(52).pt0.pbPx(12).boxShadow("none").$,
61
+ headerCellCss: Css_1.Css.gray700.xsMd.bgGray200.aic.nowrap.pxPx(12).hPx(40).$,
62
+ totalsCellCss: Css_1.Css.bgWhite.gray700.smMd.hPx(52).pt0.pbPx(12).boxShadow("none").$,
63
63
  cellCss: {
64
64
  ...Css_1.Css.gray900.xs.bgWhite.aic.pxPx(12).boxShadow(`inset 0 -1px 0 ${Css_1.Palette.Gray200}`).$,
65
65
  ...(rowHeight === "flexible" ? Css_1.Css.pyPx(12).$ : Css_1.Css.nowrap.hPx(inlineEditing ? 48 : 36).$),
66
- ...(cellHighlight ? { "&:hover": Css_1.Css.bgGray100.$ } : {})
66
+ ...(cellHighlight ? { "&:hover": Css_1.Css.bgGray100.$ } : {}),
67
67
  },
68
68
  presentationSettings: { borderless: true, typeScale: "xs", wrap: rowHeight === "flexible" },
69
69
  levels: grouped ? groupedLevels : defaultLevels,
@@ -131,7 +131,7 @@ function getTabStyles() {
131
131
  return {
132
132
  baseStyles: Css_1.Css.df.aic.hPx(32).pyPx(verticalPaddingPx).px1.outline0.gray700.add("width", "fit-content")
133
133
  .cursorPointer.sm.$,
134
- activeStyles: Css_1.Css.add(borderBottomStyles).bLightBlue700.smEm.gray900.$,
134
+ activeStyles: Css_1.Css.add(borderBottomStyles).bLightBlue700.smMd.gray900.$,
135
135
  disabledStyles: Css_1.Css.gray400.cursorNotAllowed.$,
136
136
  focusRingStyles: Css_1.Css.bgLightBlue50.bshFocus.$,
137
137
  hoverStyles: Css_1.Css.add(borderBottomStyles).bGray400.$,
@@ -8,7 +8,7 @@ const utils_1 = require("../utils");
8
8
  function Tag({ text, type, xss, ...otherProps }) {
9
9
  const typeStyles = getStyles(type);
10
10
  const tid = (0, utils_1.useTestIds)(otherProps);
11
- return ((0, jsx_runtime_1.jsx)("span", Object.assign({}, tid, { css: { ...Css_1.Css.dib.tinyEm.ttu.px1.pyPx(4).gray900.br4.$, ...typeStyles, ...xss }, title: text }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.lineClamp1.breakAll.$ }, { children: text }), void 0) }), void 0));
11
+ return ((0, jsx_runtime_1.jsx)("span", Object.assign({}, tid, { css: { ...Css_1.Css.dib.tinySb.ttu.px1.pyPx(4).gray900.br4.$, ...typeStyles, ...xss }, title: text }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.lineClamp1.breakAll.$ }, { children: text }), void 0) }), void 0));
12
12
  }
13
13
  exports.Tag = Tag;
14
14
  function getStyles(type) {
@@ -31,3 +31,5 @@ export { TabActions, TabContent, Tabs, TabsWithContent } from "./Tabs";
31
31
  export type { RouteTab, RouteTabWithContent, Tab, TabWithContent } from "./Tabs";
32
32
  export * from "./Tag";
33
33
  export * from "./Tooltip";
34
+ export * from "./Accordion";
35
+ export * from "./AccordionList";
@@ -49,3 +49,5 @@ Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { re
49
49
  Object.defineProperty(exports, "TabsWithContent", { enumerable: true, get: function () { return Tabs_1.TabsWithContent; } });
50
50
  __exportStar(require("./Tag"), exports);
51
51
  __exportStar(require("./Tooltip"), exports);
52
+ __exportStar(require("./Accordion"), exports);
53
+ __exportStar(require("./AccordionList"), exports);
@@ -6,7 +6,7 @@ const Css_1 = require("../Css");
6
6
  function FormHeading(props) {
7
7
  const { title, xss, isFirst = false, ...others } = props;
8
8
  return ((0, jsx_runtime_1.jsx)("h3", Object.assign({ css: {
9
- ...Css_1.Css.baseEm.$,
9
+ ...Css_1.Css.baseMd.$,
10
10
  // Add space before the heading, but only if it's not first.
11
11
  ...(!isFirst && Css_1.Css.mt4.$),
12
12
  ...xss,
@@ -10,6 +10,6 @@ function StaticField(props) {
10
10
  const { label, value, children } = props;
11
11
  const tid = (0, useTestIds_1.useTestIds)(props, (0, defaultTestId_1.defaultTestId)(label));
12
12
  const id = (0, utils_1.useId)();
13
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("label", Object.assign({ css: Css_1.Css.db.sm.gray700.mbPx(4).$, htmlFor: id }, tid.label, { children: label }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ id: id, css: Css_1.Css.smEm.gray900.df.aic.$ }, tid, { children: value || children }), void 0)] }, void 0));
13
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("label", Object.assign({ css: Css_1.Css.db.sm.gray700.mbPx(4).$, htmlFor: id }, tid.label, { children: label }), void 0), (0, jsx_runtime_1.jsx)("div", Object.assign({ id: id, css: Css_1.Css.smMd.gray900.df.aic.$ }, tid, { children: value || children }), void 0)] }, void 0));
14
14
  }
15
15
  exports.StaticField = StaticField;
@@ -47,7 +47,7 @@ const disabledColor = Css_1.Css.gray300.$;
47
47
  const focusRingStyles = Css_1.Css.bshFocus.$;
48
48
  const hoverBorderStyles = Css_1.Css.bLightBlue900.$;
49
49
  const markStyles = { svg: Css_1.Css.absolute.topPx(-1).leftPx(-1).$ };
50
- const labelStyles = Css_1.Css.smEm.$;
50
+ const labelStyles = Css_1.Css.smMd.$;
51
51
  const descStyles = Css_1.Css.sm.gray700.$;
52
52
  const checkmarkSmall = ((0, jsx_runtime_1.jsx)("svg", Object.assign({ width: "16", height: "16" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M6.66669 10.3907L4.47135 8.19533L3.52869 9.138L6.66669 12.276L13.138 5.80467L12.1954 4.862L6.66669 10.3907Z", fill: Css_1.Palette.White }, void 0) }), void 0));
53
53
  const dashSmall = ((0, jsx_runtime_1.jsx)("svg", Object.assign({ width: "16", height: "16" }, { children: (0, jsx_runtime_1.jsx)("rect", { x: "4", y: "7.5", width: "8", height: "1.35", fill: Css_1.Palette.White }, void 0) }), void 0));
@@ -60,7 +60,7 @@ function Radio(props) {
60
60
  ...(isFocusVisible ? exports.radioFocus : {}),
61
61
  // Nudge down so the center of the circle lines up with the label text
62
62
  ...Css_1.Css.mtPx(2).mr1.$,
63
- }, disabled: disabled, "aria-labelledby": labelId }, inputProps, focusProps, others), void 0), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ id: labelId, css: Css_1.Css.smEm.gray800.if(disabled).gray400.$ }, (description ? { "aria-describedby": descriptionId } : {}), { children: label }), void 0), description && ((0, jsx_runtime_1.jsx)("div", Object.assign({ id: descriptionId, css: Css_1.Css.sm.gray700.if(disabled).gray400.$ }, { children: description }), void 0))] }, void 0)] }), void 0));
63
+ }, disabled: disabled, "aria-labelledby": labelId }, inputProps, focusProps, others), void 0), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ id: labelId, css: Css_1.Css.smMd.gray800.if(disabled).gray400.$ }, (description ? { "aria-describedby": descriptionId } : {}), { children: label }), void 0), description && ((0, jsx_runtime_1.jsx)("div", Object.assign({ id: descriptionId, css: Css_1.Css.sm.gray700.if(disabled).gray400.$ }, { children: description }), void 0))] }, void 0)] }), void 0));
64
64
  }
65
65
  const whiteCircle = "data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='4'/%3e%3c/svg%3e";
66
66
  // Didn't put these in radioReset yet, are they needed?
@@ -23,7 +23,7 @@ function Switch(props) {
23
23
  title: tooltip,
24
24
  placement: "top",
25
25
  children: ((0, jsx_runtime_1.jsxs)("label", Object.assign({}, hoverProps, { css: {
26
- ...Css_1.Css.relative.cursorPointer.df.w("max-content").smEm.selectNone.$,
26
+ ...Css_1.Css.relative.cursorPointer.df.w("max-content").smMd.selectNone.$,
27
27
  ...(labelStyle === "form" && Css_1.Css.fdc.$),
28
28
  ...(labelStyle === "inline" && Css_1.Css.gap2.aic.$),
29
29
  ...(labelStyle === "filter" && Css_1.Css.jcsb.gap1.aic.w("auto").sm.$),
@@ -18,7 +18,7 @@ function TextFieldBase(props) {
18
18
  var _a, _b, _c, _d, _e, _f, _g;
19
19
  const { fieldProps } = (0, PresentationContext_1.usePresentationContext)();
20
20
  const { label, required, labelProps, hideLabel = (_a = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.hideLabel) !== null && _a !== void 0 ? _a : false, inputProps, inputRef, inputWrapRef, groupProps, compact = (_b = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.compact) !== null && _b !== void 0 ? _b : false, errorMsg, helperText, multiline = false, onChange, onBlur, onFocus, xss, endAdornment, startAdornment, inlineLabel, contrast = false, borderless = (_c = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.borderless) !== null && _c !== void 0 ? _c : false, textAreaMinHeight = 96, clearable = false, tooltip, visuallyDisabled = (_d = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.visuallyDisabled) !== null && _d !== void 0 ? _d : true, } = props;
21
- const typeScale = (_e = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.typeScale) !== null && _e !== void 0 ? _e : (inputProps.readOnly && !hideLabel ? "smEm" : "sm");
21
+ const typeScale = (_e = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.typeScale) !== null && _e !== void 0 ? _e : (inputProps.readOnly && !hideLabel ? "smMd" : "sm");
22
22
  const errorInTooltip = (_f = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.errorInTooltip) !== null && _f !== void 0 ? _f : false;
23
23
  const internalProps = props.internalProps || {};
24
24
  const { compound = false, forceFocus = false, forceHover = false } = internalProps;
@@ -37,7 +37,7 @@ function ToggleButton(props) {
37
37
  ...hoverProps,
38
38
  ...pressProps,
39
39
  css: {
40
- ...Css_1.Css.br4.dif.aic.gap1.bgTransparent.gray500.hPx(32).plPx(4).pr1.relative.cursorPointer.w("max-content").smEm
40
+ ...Css_1.Css.br4.dif.aic.gap1.bgTransparent.gray500.hPx(32).plPx(4).pr1.relative.cursorPointer.w("max-content").smMd
41
41
  .selectNone.$,
42
42
  ...(isHovered && exports.toggleHoverStyles),
43
43
  ...(isPressed && exports.togglePressStyles),
@@ -15,7 +15,7 @@ function SelectFieldInput(props) {
15
15
  const showNumSelection = isMultiSelect && state.selectionManager.selectedKeys.size > 1;
16
16
  // For MultiSelect only show the `fieldDecoration` when input is not in focus.
17
17
  const showFieldDecoration = (!isMultiSelect || (isMultiSelect && !isFocused)) && fieldDecoration && selectedOptions.length === 1;
18
- return ((0, jsx_runtime_1.jsx)(TextFieldBase_1.TextFieldBase, Object.assign({}, otherProps, { inlineLabel: inlineLabel, errorMsg: errorMsg, contrast: contrast, xss: !inlineLabel && !inputProps.readOnly ? Css_1.Css.fw5.$ : {}, startAdornment: (showNumSelection && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.wPx(16).hPx(16).fs0.br100.bgLightBlue700.white.tinyEm.df.aic.jcc.$ }, { children: state.selectionManager.selectedKeys.size }), void 0))) ||
18
+ return ((0, jsx_runtime_1.jsx)(TextFieldBase_1.TextFieldBase, Object.assign({}, otherProps, { inlineLabel: inlineLabel, errorMsg: errorMsg, contrast: contrast, xss: !inlineLabel && !inputProps.readOnly ? Css_1.Css.fw5.$ : {}, startAdornment: (showNumSelection && ((0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.wPx(16).hPx(16).fs0.br100.bgLightBlue700.white.tinySb.df.aic.jcc.$ }, { children: state.selectionManager.selectedKeys.size }), void 0))) ||
19
19
  (showFieldDecoration && fieldDecoration(selectedOptions[0])), endAdornment: !inputProps.readOnly && ((0, jsx_runtime_1.jsx)("button", Object.assign({}, buttonProps, { disabled: inputProps.disabled, ref: buttonRef, css: {
20
20
  ...Css_1.Css.br4.outline0.gray700.if(contrast).gray400.$,
21
21
  ...(inputProps.disabled ? Css_1.Css.cursorNotAllowed.gray400.if(contrast).gray600.$ : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.181.1",
3
+ "version": "2.182.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",