@homebound/beam 2.417.6 → 2.417.8
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/{chunk-XH44AYND.js → chunk-ZPT2ZR5B.js} +28 -1
- package/dist/chunk-ZPT2ZR5B.js.map +1 -0
- package/dist/index.cjs +286 -152
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +6 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +42 -7
- package/dist/index.d.ts +42 -7
- package/dist/index.js +294 -183
- package/dist/index.js.map +1 -1
- package/dist/utils/rtlUtils.cjs.map +1 -1
- package/dist/utils/rtlUtils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-XH44AYND.js.map +0 -1
package/dist/index.css
CHANGED
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/internal/DatePicker/DatePicker.css"],"sourcesContent":[":root {\n /* Modified by Beam (40 -> 32) */\n --rdp-cell-size: 32px;\n /* Modified by Beam (#0000ff -> Blue700) */\n --rdp-accent-color: rgba(3, 105, 161, 1);\n --rdp-background-color: #e7edff;\n /* Switch to dark colors for dark themes */\n --rdp-accent-color-dark: #3003e1;\n --rdp-background-color-dark: #180270;\n /* Outline border for focused elements */\n --rdp-outline: 2px solid var(--rdp-accent-color);\n /* Outline border for focused and selected elements */\n /* Modified by Beam (rgba(0, 0, 0, 0.75) -> Blue700) */\n --rdp-outline-selected: 2px solid rgba(3, 105, 161, 1);\n}\n\n/* Added in By Beam */\n.rdp-cell:focus-visible {\n outline: 0;\n}\n\n.rdp {\n /* Modified by Beam (1em -> 16px) */\n margin: 16px;\n}\n\n/* Hide elements for devices that are not screen readers */\n.rdp-vhidden {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n position: absolute !important;\n top: 0;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n border: 0 !important;\n}\n\n/* Buttons */\n.rdp-button_reset {\n appearance: none;\n position: relative;\n margin: 0;\n padding: 0;\n cursor: default;\n color: inherit;\n outline: none;\n background: none;\n font: inherit;\n\n -moz-appearance: none;\n -webkit-appearance: none;\n}\n\n.rdp-button {\n border: 2px solid transparent;\n}\n\n.rdp-button[aria-disabled=\"true\"] {\n opacity: 0.25;\n pointer-events: none;\n}\n\n.rdp-button:not([aria-disabled=\"true\"]) {\n cursor: pointer;\n}\n\n.rdp-button:focus,\n.rdp-button:active {\n color: inherit;\n border: var(--rdp-outline);\n background-color: var(--rdp-background-color);\n}\n\n.rdp-button:hover:not([aria-disabled=\"true\"]) {\n background-color: var(--rdp-background-color);\n}\n\n.rdp-months {\n display: flex;\n}\n\n.rdp-month {\n margin: 0 1em;\n}\n\n.rdp-month:first-child {\n margin-left: 0;\n}\n\n.rdp-month:last-child {\n margin-right: 0;\n}\n\n.rdp-table {\n margin: 0;\n max-width: calc(var(--rdp-cell-size) * 7);\n border-collapse: collapse;\n}\n\n.rdp-with_weeknumber .rdp-table {\n max-width: calc(var(--rdp-cell-size) * 8);\n border-collapse: collapse;\n}\n\n.rdp-caption {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0;\n text-align: left;\n}\n\n.rdp-multiple_months .rdp-caption {\n position: relative;\n display: block;\n text-align: center;\n}\n\n.rdp-caption_dropdowns {\n position: relative;\n display: inline-flex;\n}\n\n.rdp-caption_label {\n position: relative;\n z-index: 1;\n display: inline-flex;\n align-items: center;\n margin: 0;\n padding: 0 0.25em;\n white-space: nowrap;\n color: currentColor;\n border: 0;\n border: 2px solid transparent;\n font-family: inherit;\n font-size: 140%;\n font-weight: bold;\n}\n\n.rdp-nav {\n white-space: nowrap;\n}\n\n.rdp-multiple_months .rdp-caption_start .rdp-nav {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n}\n\n.rdp-multiple_months .rdp-caption_end .rdp-nav {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n}\n\n.rdp-nav_button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--rdp-cell-size);\n height: var(--rdp-cell-size);\n padding: 0.25em;\n border-radius: 100%;\n}\n\n/* ---------- */\n/* Dropdowns */\n/* ---------- */\n\n.rdp-dropdown_year,\n.rdp-dropdown_month {\n position: relative;\n display: inline-flex;\n align-items: center;\n}\n\n.rdp-dropdown {\n appearance: none;\n position: absolute;\n z-index: 2;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n margin: 0;\n padding: 0;\n cursor: inherit;\n opacity: 0;\n border: none;\n background-color: transparent;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n.rdp-dropdown[disabled] {\n opacity: unset;\n color: unset;\n}\n\n.rdp-dropdown:focus:not([disabled]) + .rdp-caption_label,\n.rdp-dropdown:active:not([disabled]) + .rdp-caption_label {\n border: var(--rdp-outline);\n border-radius: 6px;\n background-color: var(--rdp-background-color);\n}\n\n.rdp-dropdown_icon {\n margin: 0 0 0 5px;\n}\n\n.rdp-head {\n border: 0;\n}\n\n.rdp-head_row,\n.rdp-row {\n height: 100%;\n}\n\n.rdp-head_cell {\n vertical-align: middle;\n text-transform: uppercase;\n font-size: 0.75em;\n font-weight: 700;\n text-align: center;\n height: 100%;\n height: var(--rdp-cell-size);\n padding: 0;\n}\n\n.rdp-tbody {\n border: 0;\n}\n\n.rdp-tfoot {\n margin: 0.5em;\n}\n\n.rdp-cell {\n width: var(--rdp-cell-size);\n height: 100%;\n height: var(--rdp-cell-size);\n padding: 0;\n text-align: center;\n}\n\n.rdp-weeknumber {\n font-size: 0.75em;\n}\n\n.rdp-weeknumber,\n.rdp-day {\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: var(--rdp-cell-size);\n max-width: var(--rdp-cell-size);\n height: var(--rdp-cell-size);\n margin: 0;\n border: 2px solid transparent;\n border-radius: 100%;\n}\n\n.rdp-day_today:not(.rdp-day_outside) {\n font-weight: bold;\n}\n\n.rdp-day_selected:not([aria-disabled=\"true\"]),\n.rdp-day_selected:focus:not([aria-disabled=\"true\"]),\n.rdp-day_selected:active:not([aria-disabled=\"true\"]),\n.rdp-day_selected:hover:not([aria-disabled=\"true\"]) {\n color: white;\n background-color: var(--rdp-accent-color);\n}\n\n.rdp-day_selected:focus:not([aria-disabled=\"true\"]) {\n border: var(--rdp-outline-selected);\n}\n\n.rdp:not([dir=\"rtl\"]) .rdp-day_range_start:not(.rdp-day_range_end) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.rdp:not([dir=\"rtl\"]) .rdp-day_range_end:not(.rdp-day_range_start) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.rdp[dir=\"rtl\"] .rdp-day_range_start:not(.rdp-day_range_end) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.rdp[dir=\"rtl\"] .rdp-day_range_end:not(.rdp-day_range_start) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.rdp-day_range_end.rdp-day_range_start {\n border-radius: 100%;\n}\n\n.rdp-day_range_middle {\n border-radius: 0;\n}\n"],"mappings":";AAAA;AAEE,mBAAiB;AAEjB,sBAAoB,KAAK,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE;AACtC,0BAAwB;AAExB,2BAAyB;AACzB,+BAA6B;AAE7B,iBAAe,IAAI,MAAM,IAAI;AAG7B,0BAAwB,IAAI,MAAM,KAAK,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE;AACtD;AAGA,CAAC,QAAQ;AACP,WAAS;AACX;AAEA,CAAC;AAEC,UAAQ;AACV;AAGA,CAAC;AACC,cAAY;AACZ,WAAS;AACT,UAAQ;AACR,cAAY;AACZ,UAAQ;AACR,mBAAiB;AACjB,sBAAoB;AACpB,cAAY;AACZ,YAAU;AACV,OAAK;AACL,SA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,CAJC;AAKD,CAAC;AACC,WAAS;AACT,YAAU;AACV,eAAa;AACb,mBAAiB;AACjB,cAAY;AACZ,SAAO,IAAI;AACX,aAAW,IAAI;AACf,UAAQ,IAAI;AACZ,UAAQ;AACR,UAAQ,IAAI,MAAM;AAClB,iBAAe;AACjB;AAEA,CAAC,aAAa,KAAK,CAAC;AAClB,eAAa;AACf;AAEA,CAAC,gBAAgB,KAAK,CAAC;AACvB,CADC,gBACgB,MAAM,KAAK,CAAC;AAC7B,CAFC,gBAEgB,OAAO,KAAK,CAAC;AAC9B,CAHC,gBAGgB,MAAM,KAAK,CAAC;AAC3B,SAAO;AACP,oBAAkB,IAAI;AACxB;AAEA,CARC,gBAQgB,MAAM,KAAK,CAAC;AAC3B,UAAQ,IAAI;AACd;AAEA,CAhRC,GAgRG,KAAK,CAAC,UAAY,CAAC,mBAAmB,KAAK,CAAC;AAC9C,2BAAyB;AACzB,8BAA4B;AAC9B;AAEA,CArRC,GAqRG,KAAK,CAAC,UAAY,CAL0B,iBAKR,KAAK,CALtB;AAMrB,0BAAwB;AACxB,6BAA2B;AAC7B;AAEA,CA1RC,GA0RG,CAAC,SAAW,CAVO,mBAUa,KAAK,CAVO;AAW9C,0BAAwB;AACxB,6BAA2B;AAC7B;AAEA,CA/RC,GA+RG,CAAC,SAAW,CAfgC,iBAed,KAAK,CAfhB;AAgBrB,2BAAyB;AACzB,8BAA4B;AAC9B;AAEA,CApBgD,iBAoB9B,CApBK;AAqBrB,iBAAe;AACjB;AAEA,CAAC;AACC,iBAAe;AACjB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/components/internal/DatePicker/DatePicker.css","../src/components/Copy.css"],"sourcesContent":[":root {\n /* Modified by Beam (40 -> 32) */\n --rdp-cell-size: 32px;\n /* Modified by Beam (#0000ff -> Blue700) */\n --rdp-accent-color: rgba(3, 105, 161, 1);\n --rdp-background-color: #e7edff;\n /* Switch to dark colors for dark themes */\n --rdp-accent-color-dark: #3003e1;\n --rdp-background-color-dark: #180270;\n /* Outline border for focused elements */\n --rdp-outline: 2px solid var(--rdp-accent-color);\n /* Outline border for focused and selected elements */\n /* Modified by Beam (rgba(0, 0, 0, 0.75) -> Blue700) */\n --rdp-outline-selected: 2px solid rgba(3, 105, 161, 1);\n}\n\n/* Added in By Beam */\n.rdp-cell:focus-visible {\n outline: 0;\n}\n\n.rdp {\n /* Modified by Beam (1em -> 16px) */\n margin: 16px;\n}\n\n/* Hide elements for devices that are not screen readers */\n.rdp-vhidden {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n position: absolute !important;\n top: 0;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n border: 0 !important;\n}\n\n/* Buttons */\n.rdp-button_reset {\n appearance: none;\n position: relative;\n margin: 0;\n padding: 0;\n cursor: default;\n color: inherit;\n outline: none;\n background: none;\n font: inherit;\n\n -moz-appearance: none;\n -webkit-appearance: none;\n}\n\n.rdp-button {\n border: 2px solid transparent;\n}\n\n.rdp-button[aria-disabled=\"true\"] {\n opacity: 0.25;\n pointer-events: none;\n}\n\n.rdp-button:not([aria-disabled=\"true\"]) {\n cursor: pointer;\n}\n\n.rdp-button:focus,\n.rdp-button:active {\n color: inherit;\n border: var(--rdp-outline);\n background-color: var(--rdp-background-color);\n}\n\n.rdp-button:hover:not([aria-disabled=\"true\"]) {\n background-color: var(--rdp-background-color);\n}\n\n.rdp-months {\n display: flex;\n}\n\n.rdp-month {\n margin: 0 1em;\n}\n\n.rdp-month:first-child {\n margin-left: 0;\n}\n\n.rdp-month:last-child {\n margin-right: 0;\n}\n\n.rdp-table {\n margin: 0;\n max-width: calc(var(--rdp-cell-size) * 7);\n border-collapse: collapse;\n}\n\n.rdp-with_weeknumber .rdp-table {\n max-width: calc(var(--rdp-cell-size) * 8);\n border-collapse: collapse;\n}\n\n.rdp-caption {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0;\n text-align: left;\n}\n\n.rdp-multiple_months .rdp-caption {\n position: relative;\n display: block;\n text-align: center;\n}\n\n.rdp-caption_dropdowns {\n position: relative;\n display: inline-flex;\n}\n\n.rdp-caption_label {\n position: relative;\n z-index: 1;\n display: inline-flex;\n align-items: center;\n margin: 0;\n padding: 0 0.25em;\n white-space: nowrap;\n color: currentColor;\n border: 0;\n border: 2px solid transparent;\n font-family: inherit;\n font-size: 140%;\n font-weight: bold;\n}\n\n.rdp-nav {\n white-space: nowrap;\n}\n\n.rdp-multiple_months .rdp-caption_start .rdp-nav {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n}\n\n.rdp-multiple_months .rdp-caption_end .rdp-nav {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n}\n\n.rdp-nav_button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--rdp-cell-size);\n height: var(--rdp-cell-size);\n padding: 0.25em;\n border-radius: 100%;\n}\n\n/* ---------- */\n/* Dropdowns */\n/* ---------- */\n\n.rdp-dropdown_year,\n.rdp-dropdown_month {\n position: relative;\n display: inline-flex;\n align-items: center;\n}\n\n.rdp-dropdown {\n appearance: none;\n position: absolute;\n z-index: 2;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n margin: 0;\n padding: 0;\n cursor: inherit;\n opacity: 0;\n border: none;\n background-color: transparent;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n.rdp-dropdown[disabled] {\n opacity: unset;\n color: unset;\n}\n\n.rdp-dropdown:focus:not([disabled]) + .rdp-caption_label,\n.rdp-dropdown:active:not([disabled]) + .rdp-caption_label {\n border: var(--rdp-outline);\n border-radius: 6px;\n background-color: var(--rdp-background-color);\n}\n\n.rdp-dropdown_icon {\n margin: 0 0 0 5px;\n}\n\n.rdp-head {\n border: 0;\n}\n\n.rdp-head_row,\n.rdp-row {\n height: 100%;\n}\n\n.rdp-head_cell {\n vertical-align: middle;\n text-transform: uppercase;\n font-size: 0.75em;\n font-weight: 700;\n text-align: center;\n height: 100%;\n height: var(--rdp-cell-size);\n padding: 0;\n}\n\n.rdp-tbody {\n border: 0;\n}\n\n.rdp-tfoot {\n margin: 0.5em;\n}\n\n.rdp-cell {\n width: var(--rdp-cell-size);\n height: 100%;\n height: var(--rdp-cell-size);\n padding: 0;\n text-align: center;\n}\n\n.rdp-weeknumber {\n font-size: 0.75em;\n}\n\n.rdp-weeknumber,\n.rdp-day {\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: var(--rdp-cell-size);\n max-width: var(--rdp-cell-size);\n height: var(--rdp-cell-size);\n margin: 0;\n border: 2px solid transparent;\n border-radius: 100%;\n}\n\n.rdp-day_today:not(.rdp-day_outside) {\n font-weight: bold;\n}\n\n.rdp-day_selected:not([aria-disabled=\"true\"]),\n.rdp-day_selected:focus:not([aria-disabled=\"true\"]),\n.rdp-day_selected:active:not([aria-disabled=\"true\"]),\n.rdp-day_selected:hover:not([aria-disabled=\"true\"]) {\n color: white;\n background-color: var(--rdp-accent-color);\n}\n\n.rdp-day_selected:focus:not([aria-disabled=\"true\"]) {\n border: var(--rdp-outline-selected);\n}\n\n.rdp:not([dir=\"rtl\"]) .rdp-day_range_start:not(.rdp-day_range_end) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.rdp:not([dir=\"rtl\"]) .rdp-day_range_end:not(.rdp-day_range_start) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.rdp[dir=\"rtl\"] .rdp-day_range_start:not(.rdp-day_range_end) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.rdp[dir=\"rtl\"] .rdp-day_range_end:not(.rdp-day_range_start) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.rdp-day_range_end.rdp-day_range_start {\n border-radius: 100%;\n}\n\n.rdp-day_range_middle {\n border-radius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a,KAAK,CAVO;AAW9C,0BAAwB;AACxB,6BAA2B;AAC7B;AAEA,CA/RC,GA+RG,CAAC,SAAW,CAfgC,iBAed,KAAK,CAfhB;AAgBrB,2BAAyB;AACzB,8BAA4B;AAC9B;AAEA,CApBgD,iBAoB9B,CApBK;AAqBrB,iBAAe;AACjB;AAEA,CAAC;AACC,iBAAe;AACjB;;;AC/TA,CAAC,UAAU,EAAE;AACX,cAAY;AACZ,iBAAe;AACjB;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -4727,7 +4727,12 @@ interface TextFieldInternalProps {
|
|
|
4727
4727
|
interface AvatarButtonProps extends AvatarProps, BeamButtonProps, BeamFocusableProps {
|
|
4728
4728
|
menuTriggerProps?: AriaButtonProps;
|
|
4729
4729
|
buttonRef?: RefObject<HTMLButtonElement>;
|
|
4730
|
-
|
|
4730
|
+
/** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
|
|
4731
|
+
__storyState?: {
|
|
4732
|
+
hovered?: boolean;
|
|
4733
|
+
focusVisible?: boolean;
|
|
4734
|
+
pressed?: boolean;
|
|
4735
|
+
};
|
|
4731
4736
|
}
|
|
4732
4737
|
declare function AvatarButton(props: AvatarButtonProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
4733
4738
|
declare const hoverStyles: {
|
|
@@ -5314,7 +5319,7 @@ declare function applyRowFn<R extends Kinded>(column: GridColumnWithId<R>, row:
|
|
|
5314
5319
|
declare const ASC: "ASC";
|
|
5315
5320
|
declare const DESC: "DESC";
|
|
5316
5321
|
declare const emptyCell: GridCellContent;
|
|
5317
|
-
declare function getFirstOrLastCellCss<R extends Kinded>(style: GridStyle, columnIndex: number, columns: GridColumnWithId<R>[]): Properties;
|
|
5322
|
+
declare function getFirstOrLastCellCss<R extends Kinded>(style: GridStyle, columnIndex: number, columns: GridColumnWithId<R>[], colspan?: number): Properties;
|
|
5318
5323
|
/** A heuristic to detect the result of `React.createElement` / i.e. JSX. */
|
|
5319
5324
|
declare function isJSX(content: any): boolean;
|
|
5320
5325
|
declare function getAlignment(column: GridColumnWithId<any>, maybeContent: ReactNode | GridCellContent): GridCellAlignment;
|
|
@@ -5392,23 +5397,27 @@ type LabelSuffixStyle = {
|
|
|
5392
5397
|
interface GridStyle {
|
|
5393
5398
|
/** Applied to the base div element. */
|
|
5394
5399
|
rootCss?: Properties;
|
|
5395
|
-
/**
|
|
5400
|
+
/**
|
|
5401
|
+
* Applied as the base body-row cell styling (commonly used for row separators).
|
|
5402
|
+
* This is applied to body rows broadly (including the last body row); use
|
|
5403
|
+
* `lastRowCellCss`/`lastRowCss` to adjust/cancel any final-row treatment.
|
|
5404
|
+
*/
|
|
5396
5405
|
betweenRowsCss?: Properties;
|
|
5397
|
-
/** Applied on the last row of the table
|
|
5406
|
+
/** Applied on the last row of the table, typically to override/cancel `betweenRowsCss`. */
|
|
5398
5407
|
lastRowCss?: Properties;
|
|
5399
5408
|
/** Applied on the first row of the table (could be the Header or Totals row). */
|
|
5400
5409
|
firstRowCss?: Properties;
|
|
5401
5410
|
/** Applied to every non-header row of the table */
|
|
5402
5411
|
nonHeaderRowCss?: Properties;
|
|
5403
|
-
/** Applied to the first
|
|
5404
|
-
|
|
5412
|
+
/** Applied to the first body row, i.e. if you want to cancel out `betweenRowsCss`. */
|
|
5413
|
+
firstBodyRowCss?: Properties;
|
|
5405
5414
|
/** Applied to all cell divs (via a selector off the base div). */
|
|
5406
5415
|
cellCss?: Properties;
|
|
5407
5416
|
/**
|
|
5408
5417
|
* Applied to the header row divs.
|
|
5409
5418
|
*
|
|
5410
5419
|
* NOTE `as=virtual`: When using a virtual table with the goal of adding space
|
|
5411
|
-
* between the header and the first row use `
|
|
5420
|
+
* between the header and the first row use `firstBodyRowCss` with a
|
|
5412
5421
|
* margin-top instead. Using `headerCellCss` will not work since the header
|
|
5413
5422
|
* rows are wrapper with Chrome rows.
|
|
5414
5423
|
*/
|
|
@@ -5423,6 +5432,18 @@ interface GridStyle {
|
|
|
5423
5432
|
firstCellCss?: Properties;
|
|
5424
5433
|
/** Applied to the last cell of all rows, i.e. for table-wide padding or right-side borders. */
|
|
5425
5434
|
lastCellCss?: Properties;
|
|
5435
|
+
/** Applied to every cell in the first table-head row (expandableHeader/header/totals). */
|
|
5436
|
+
firstRowCellCss?: Properties;
|
|
5437
|
+
/** Applied to the first cell in the first table-head row. */
|
|
5438
|
+
firstRowFirstCellCss?: Properties;
|
|
5439
|
+
/** Applied to the last cell in the first table-head row. */
|
|
5440
|
+
firstRowLastCellCss?: Properties;
|
|
5441
|
+
/** Applied to every cell in the last table-body row. */
|
|
5442
|
+
lastRowCellCss?: Properties;
|
|
5443
|
+
/** Applied to the first cell in the last table-body row. */
|
|
5444
|
+
lastRowFirstCellCss?: Properties;
|
|
5445
|
+
/** Applied to the last cell in the last table-body row. */
|
|
5446
|
+
lastRowLastCellCss?: Properties;
|
|
5426
5447
|
/** Applied if there is a fallback/overflow message showing. */
|
|
5427
5448
|
firstRowMessageCss?: Properties;
|
|
5428
5449
|
/** Applied on hover if a row has a rowLink/onClick set. */
|
|
@@ -5510,6 +5531,9 @@ interface RowProps<R extends Kinded> {
|
|
|
5510
5531
|
cellHighlight: boolean;
|
|
5511
5532
|
omitRowHover: boolean;
|
|
5512
5533
|
hasExpandableHeader: boolean;
|
|
5534
|
+
isFirstHeadRow: boolean;
|
|
5535
|
+
isFirstBodyRow: boolean;
|
|
5536
|
+
isLastBodyRow: boolean;
|
|
5513
5537
|
resizedWidths: ResizedWidths;
|
|
5514
5538
|
setResizedWidth: (columnId: string, width: number, columnIndex: number) => void;
|
|
5515
5539
|
disableColumnResizing: boolean;
|
|
@@ -6773,6 +6797,11 @@ interface SwitchProps {
|
|
|
6773
6797
|
withIcon?: boolean;
|
|
6774
6798
|
/** Adds tooltip for the switch */
|
|
6775
6799
|
tooltip?: ReactNode;
|
|
6800
|
+
/** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
|
|
6801
|
+
__storyState?: {
|
|
6802
|
+
hovered?: boolean;
|
|
6803
|
+
focusVisible?: boolean;
|
|
6804
|
+
};
|
|
6776
6805
|
}
|
|
6777
6806
|
declare function Switch(props: SwitchProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
6778
6807
|
declare const switchHoverStyles: {
|
|
@@ -6829,6 +6858,12 @@ interface ToggleButtonProps {
|
|
|
6829
6858
|
/** Whether the field is disabled. If a ReactNode, it's treated as a "disabled reason" that's shown in a tooltip. */
|
|
6830
6859
|
disabled?: boolean | ReactNode;
|
|
6831
6860
|
tooltip?: ReactNode;
|
|
6861
|
+
/** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
|
|
6862
|
+
__storyState?: {
|
|
6863
|
+
hovered?: boolean;
|
|
6864
|
+
pressed?: boolean;
|
|
6865
|
+
focusVisible?: boolean;
|
|
6866
|
+
};
|
|
6832
6867
|
}
|
|
6833
6868
|
declare function ToggleButton(props: ToggleButtonProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
6834
6869
|
/** Styles */
|
package/dist/index.d.ts
CHANGED
|
@@ -4727,7 +4727,12 @@ interface TextFieldInternalProps {
|
|
|
4727
4727
|
interface AvatarButtonProps extends AvatarProps, BeamButtonProps, BeamFocusableProps {
|
|
4728
4728
|
menuTriggerProps?: AriaButtonProps;
|
|
4729
4729
|
buttonRef?: RefObject<HTMLButtonElement>;
|
|
4730
|
-
|
|
4730
|
+
/** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
|
|
4731
|
+
__storyState?: {
|
|
4732
|
+
hovered?: boolean;
|
|
4733
|
+
focusVisible?: boolean;
|
|
4734
|
+
pressed?: boolean;
|
|
4735
|
+
};
|
|
4731
4736
|
}
|
|
4732
4737
|
declare function AvatarButton(props: AvatarButtonProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
4733
4738
|
declare const hoverStyles: {
|
|
@@ -5314,7 +5319,7 @@ declare function applyRowFn<R extends Kinded>(column: GridColumnWithId<R>, row:
|
|
|
5314
5319
|
declare const ASC: "ASC";
|
|
5315
5320
|
declare const DESC: "DESC";
|
|
5316
5321
|
declare const emptyCell: GridCellContent;
|
|
5317
|
-
declare function getFirstOrLastCellCss<R extends Kinded>(style: GridStyle, columnIndex: number, columns: GridColumnWithId<R>[]): Properties;
|
|
5322
|
+
declare function getFirstOrLastCellCss<R extends Kinded>(style: GridStyle, columnIndex: number, columns: GridColumnWithId<R>[], colspan?: number): Properties;
|
|
5318
5323
|
/** A heuristic to detect the result of `React.createElement` / i.e. JSX. */
|
|
5319
5324
|
declare function isJSX(content: any): boolean;
|
|
5320
5325
|
declare function getAlignment(column: GridColumnWithId<any>, maybeContent: ReactNode | GridCellContent): GridCellAlignment;
|
|
@@ -5392,23 +5397,27 @@ type LabelSuffixStyle = {
|
|
|
5392
5397
|
interface GridStyle {
|
|
5393
5398
|
/** Applied to the base div element. */
|
|
5394
5399
|
rootCss?: Properties;
|
|
5395
|
-
/**
|
|
5400
|
+
/**
|
|
5401
|
+
* Applied as the base body-row cell styling (commonly used for row separators).
|
|
5402
|
+
* This is applied to body rows broadly (including the last body row); use
|
|
5403
|
+
* `lastRowCellCss`/`lastRowCss` to adjust/cancel any final-row treatment.
|
|
5404
|
+
*/
|
|
5396
5405
|
betweenRowsCss?: Properties;
|
|
5397
|
-
/** Applied on the last row of the table
|
|
5406
|
+
/** Applied on the last row of the table, typically to override/cancel `betweenRowsCss`. */
|
|
5398
5407
|
lastRowCss?: Properties;
|
|
5399
5408
|
/** Applied on the first row of the table (could be the Header or Totals row). */
|
|
5400
5409
|
firstRowCss?: Properties;
|
|
5401
5410
|
/** Applied to every non-header row of the table */
|
|
5402
5411
|
nonHeaderRowCss?: Properties;
|
|
5403
|
-
/** Applied to the first
|
|
5404
|
-
|
|
5412
|
+
/** Applied to the first body row, i.e. if you want to cancel out `betweenRowsCss`. */
|
|
5413
|
+
firstBodyRowCss?: Properties;
|
|
5405
5414
|
/** Applied to all cell divs (via a selector off the base div). */
|
|
5406
5415
|
cellCss?: Properties;
|
|
5407
5416
|
/**
|
|
5408
5417
|
* Applied to the header row divs.
|
|
5409
5418
|
*
|
|
5410
5419
|
* NOTE `as=virtual`: When using a virtual table with the goal of adding space
|
|
5411
|
-
* between the header and the first row use `
|
|
5420
|
+
* between the header and the first row use `firstBodyRowCss` with a
|
|
5412
5421
|
* margin-top instead. Using `headerCellCss` will not work since the header
|
|
5413
5422
|
* rows are wrapper with Chrome rows.
|
|
5414
5423
|
*/
|
|
@@ -5423,6 +5432,18 @@ interface GridStyle {
|
|
|
5423
5432
|
firstCellCss?: Properties;
|
|
5424
5433
|
/** Applied to the last cell of all rows, i.e. for table-wide padding or right-side borders. */
|
|
5425
5434
|
lastCellCss?: Properties;
|
|
5435
|
+
/** Applied to every cell in the first table-head row (expandableHeader/header/totals). */
|
|
5436
|
+
firstRowCellCss?: Properties;
|
|
5437
|
+
/** Applied to the first cell in the first table-head row. */
|
|
5438
|
+
firstRowFirstCellCss?: Properties;
|
|
5439
|
+
/** Applied to the last cell in the first table-head row. */
|
|
5440
|
+
firstRowLastCellCss?: Properties;
|
|
5441
|
+
/** Applied to every cell in the last table-body row. */
|
|
5442
|
+
lastRowCellCss?: Properties;
|
|
5443
|
+
/** Applied to the first cell in the last table-body row. */
|
|
5444
|
+
lastRowFirstCellCss?: Properties;
|
|
5445
|
+
/** Applied to the last cell in the last table-body row. */
|
|
5446
|
+
lastRowLastCellCss?: Properties;
|
|
5426
5447
|
/** Applied if there is a fallback/overflow message showing. */
|
|
5427
5448
|
firstRowMessageCss?: Properties;
|
|
5428
5449
|
/** Applied on hover if a row has a rowLink/onClick set. */
|
|
@@ -5510,6 +5531,9 @@ interface RowProps<R extends Kinded> {
|
|
|
5510
5531
|
cellHighlight: boolean;
|
|
5511
5532
|
omitRowHover: boolean;
|
|
5512
5533
|
hasExpandableHeader: boolean;
|
|
5534
|
+
isFirstHeadRow: boolean;
|
|
5535
|
+
isFirstBodyRow: boolean;
|
|
5536
|
+
isLastBodyRow: boolean;
|
|
5513
5537
|
resizedWidths: ResizedWidths;
|
|
5514
5538
|
setResizedWidth: (columnId: string, width: number, columnIndex: number) => void;
|
|
5515
5539
|
disableColumnResizing: boolean;
|
|
@@ -6773,6 +6797,11 @@ interface SwitchProps {
|
|
|
6773
6797
|
withIcon?: boolean;
|
|
6774
6798
|
/** Adds tooltip for the switch */
|
|
6775
6799
|
tooltip?: ReactNode;
|
|
6800
|
+
/** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
|
|
6801
|
+
__storyState?: {
|
|
6802
|
+
hovered?: boolean;
|
|
6803
|
+
focusVisible?: boolean;
|
|
6804
|
+
};
|
|
6776
6805
|
}
|
|
6777
6806
|
declare function Switch(props: SwitchProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
6778
6807
|
declare const switchHoverStyles: {
|
|
@@ -6829,6 +6858,12 @@ interface ToggleButtonProps {
|
|
|
6829
6858
|
/** Whether the field is disabled. If a ReactNode, it's treated as a "disabled reason" that's shown in a tooltip. */
|
|
6830
6859
|
disabled?: boolean | ReactNode;
|
|
6831
6860
|
tooltip?: ReactNode;
|
|
6861
|
+
/** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
|
|
6862
|
+
__storyState?: {
|
|
6863
|
+
hovered?: boolean;
|
|
6864
|
+
pressed?: boolean;
|
|
6865
|
+
focusVisible?: boolean;
|
|
6866
|
+
};
|
|
6832
6867
|
}
|
|
6833
6868
|
declare function ToggleButton(props: ToggleButtonProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
6834
6869
|
/** Styles */
|