@boostdev/design-system-components 2.2.0 → 2.2.1
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/client.cjs +60 -55
- package/dist/client.css +537 -537
- package/dist/client.js +60 -55
- package/dist/index.cjs +60 -55
- package/dist/index.css +537 -537
- package/dist/index.js +60 -55
- package/dist/web-components/index.js +2 -0
- package/package.json +1 -1
- package/src/components/layout/Grid/Grid.spec.tsx +14 -0
- package/src/components/layout/Grid/Grid.tsx +10 -3
- package/src/components/layout/Grid/GridItem.tsx +2 -2
- package/src/components/layout/Grid/masonry.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useId, useState } from "react";
|
|
3
3
|
|
|
4
4
|
// src/components/ui/Accordion/Accordion.module.css
|
|
5
|
-
var Accordion_default = {"component":"
|
|
5
|
+
var Accordion_default = {"component":"bds221Accordion-component","accordion":"bds221Accordion-accordion","item":"bds221Accordion-item","heading":"bds221Accordion-heading","trigger":"bds221Accordion-trigger","triggerLabel":"bds221Accordion-triggerLabel","chevron":"bds221Accordion-chevron","--open":"bds221Accordion---open","panel":"bds221Accordion-panel","panelContent":"bds221Accordion-panelContent"};
|
|
6
6
|
|
|
7
7
|
// src/components/ui/Accordion/Accordion.tsx
|
|
8
8
|
import { cn } from "@boostdev/design-system-foundation";
|
|
@@ -71,7 +71,7 @@ function Accordion({
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// src/components/ui/Alert/Alert.module.css
|
|
74
|
-
var Alert_default = {"component":"
|
|
74
|
+
var Alert_default = {"component":"bds221Alert-component","alert":"bds221Alert-alert","--variant_info":"bds221Alert---variant_info","--variant_success":"bds221Alert---variant_success","--variant_warning":"bds221Alert---variant_warning","--variant_error":"bds221Alert---variant_error","icon":"bds221Alert-icon","content":"bds221Alert-content","title":"bds221Alert-title","dismiss":"bds221Alert-dismiss"};
|
|
75
75
|
|
|
76
76
|
// src/components/ui/Alert/Alert.tsx
|
|
77
77
|
import { cn as cn2 } from "@boostdev/design-system-foundation";
|
|
@@ -116,7 +116,7 @@ function Alert({
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
// src/components/ui/Avatar/Avatar.module.css
|
|
119
|
-
var Avatar_default = {"component":"
|
|
119
|
+
var Avatar_default = {"component":"bds221Avatar-component","avatar":"bds221Avatar-avatar","--fallback":"bds221Avatar---fallback","--size_small":"bds221Avatar---size_small","--size_medium":"bds221Avatar---size_medium","--size_large":"bds221Avatar---size_large","image":"bds221Avatar-image","initials":"bds221Avatar-initials"};
|
|
120
120
|
|
|
121
121
|
// src/components/ui/Avatar/Avatar.tsx
|
|
122
122
|
import { cn as cn3 } from "@boostdev/design-system-foundation";
|
|
@@ -143,7 +143,7 @@ function Avatar({ src, alt, name, size = "medium", className, ...rest }) {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
// src/components/ui/Badge/Badge.module.css
|
|
146
|
-
var Badge_default = {"component":"
|
|
146
|
+
var Badge_default = {"component":"bds221Badge-component","badge":"bds221Badge-badge","--variant_primary":"bds221Badge---variant_primary","--variant_secondary":"bds221Badge---variant_secondary","--variant_success":"bds221Badge---variant_success","--variant_error":"bds221Badge---variant_error","--variant_warning":"bds221Badge---variant_warning"};
|
|
147
147
|
|
|
148
148
|
// src/components/ui/Badge/Badge.tsx
|
|
149
149
|
import { cn as cn4 } from "@boostdev/design-system-foundation";
|
|
@@ -153,7 +153,7 @@ function Badge({ children, variant = "primary", className, ...rest }) {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
156
|
-
var Breadcrumb_default = {"component":"
|
|
156
|
+
var Breadcrumb_default = {"component":"bds221Breadcrumb-component","breadcrumb":"bds221Breadcrumb-breadcrumb","list":"bds221Breadcrumb-list","item":"bds221Breadcrumb-item","link":"bds221Breadcrumb-link","separator":"bds221Breadcrumb-separator","current":"bds221Breadcrumb-current"};
|
|
157
157
|
|
|
158
158
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
159
159
|
import { cn as cn5 } from "@boostdev/design-system-foundation";
|
|
@@ -169,7 +169,7 @@ function Breadcrumb({ items, className, ...rest }) {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
// src/components/ui/Collapsible/Collapsible.module.css
|
|
172
|
-
var Collapsible_default = {"component":"
|
|
172
|
+
var Collapsible_default = {"component":"bds221Collapsible-component","collapsible":"bds221Collapsible-collapsible","summary":"bds221Collapsible-summary","summaryContent":"bds221Collapsible-summaryContent","icon":"bds221Collapsible-icon","content":"bds221Collapsible-content"};
|
|
173
173
|
|
|
174
174
|
// src/components/ui/Collapsible/Collapsible.tsx
|
|
175
175
|
import { cn as cn6 } from "@boostdev/design-system-foundation";
|
|
@@ -210,7 +210,7 @@ function Collapsible({
|
|
|
210
210
|
import { useState as useState2, useId as useId2 } from "react";
|
|
211
211
|
|
|
212
212
|
// src/components/ui/Calendar/Calendar.module.css
|
|
213
|
-
var Calendar_default = {"component":"
|
|
213
|
+
var Calendar_default = {"component":"bds221Calendar-component","calendar":"bds221Calendar-calendar","header":"bds221Calendar-header","monthYear":"bds221Calendar-monthYear","navBtn":"bds221Calendar-navBtn","grid":"bds221Calendar-grid","weekday":"bds221Calendar-weekday","empty":"bds221Calendar-empty","day":"bds221Calendar-day","disabled":"bds221Calendar-disabled","selected":"bds221Calendar-selected","today":"bds221Calendar-today"};
|
|
214
214
|
|
|
215
215
|
// src/components/ui/Calendar/Calendar.tsx
|
|
216
216
|
import { cn as cn7 } from "@boostdev/design-system-foundation";
|
|
@@ -385,7 +385,7 @@ function Calendar({ value, defaultValue, min, max, onChange, className, ...rest
|
|
|
385
385
|
import { useRef, useId as useId3 } from "react";
|
|
386
386
|
|
|
387
387
|
// src/components/ui/Carousel/Carousel.module.css
|
|
388
|
-
var Carousel_default = {"component":"
|
|
388
|
+
var Carousel_default = {"component":"bds221Carousel-component","carousel":"bds221Carousel-carousel","track":"bds221Carousel-track","slide":"bds221Carousel-slide","navBtn":"bds221Carousel-navBtn"};
|
|
389
389
|
|
|
390
390
|
// src/components/ui/Carousel/Carousel.tsx
|
|
391
391
|
import { cn as cn8 } from "@boostdev/design-system-foundation";
|
|
@@ -438,7 +438,7 @@ function Carousel({ items, label, className, ...rest }) {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
441
|
-
var DescriptionList_default = {"component":"
|
|
441
|
+
var DescriptionList_default = {"component":"bds221DescriptionList-component","list":"bds221DescriptionList-list","group":"bds221DescriptionList-group","term":"bds221DescriptionList-term","details":"bds221DescriptionList-details","--layout_inline":"bds221DescriptionList---layout_inline"};
|
|
442
442
|
|
|
443
443
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
444
444
|
import { cn as cn9 } from "@boostdev/design-system-foundation";
|
|
@@ -451,7 +451,7 @@ function DescriptionList({ items, layout = "stacked", className, ...rest }) {
|
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
// src/components/ui/Link/Link.module.css
|
|
454
|
-
var Link_default = {"component":"
|
|
454
|
+
var Link_default = {"component":"bds221Link-component","link":"bds221Link-link","--variant_default":"bds221Link---variant_default","--variant_subtle":"bds221Link---variant_subtle","--variant_standalone":"bds221Link---variant_standalone","externalLabel":"bds221Link-externalLabel"};
|
|
455
455
|
|
|
456
456
|
// src/components/ui/Link/Link.tsx
|
|
457
457
|
import { cn as cn10 } from "@boostdev/design-system-foundation";
|
|
@@ -482,7 +482,7 @@ function Link({
|
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
// src/components/ui/Loading/Loading.module.css
|
|
485
|
-
var Loading_default = {"component":"
|
|
485
|
+
var Loading_default = {"component":"bds221Loading-component","loading":"bds221Loading-loading","spinner":"bds221Loading-spinner","--size_small":"bds221Loading---size_small","--size_large":"bds221Loading---size_large"};
|
|
486
486
|
|
|
487
487
|
// src/components/ui/Loading/Loading.tsx
|
|
488
488
|
import { cn as cn11 } from "@boostdev/design-system-foundation";
|
|
@@ -492,7 +492,7 @@ function Loading({ size = "medium", className, ...rest }) {
|
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
495
|
-
var NotificationBanner_default = {"component":"
|
|
495
|
+
var NotificationBanner_default = {"component":"bds221NotificationBanner-component","banner":"bds221NotificationBanner-banner","--variant_info":"bds221NotificationBanner---variant_info","--variant_success":"bds221NotificationBanner---variant_success","--variant_warning":"bds221NotificationBanner---variant_warning","--variant_error":"bds221NotificationBanner---variant_error","content":"bds221NotificationBanner-content","action":"bds221NotificationBanner-action","dismiss":"bds221NotificationBanner-dismiss"};
|
|
496
496
|
|
|
497
497
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
498
498
|
import { cn as cn12 } from "@boostdev/design-system-foundation";
|
|
@@ -533,7 +533,7 @@ function NotificationBanner({
|
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
// src/components/ui/Pagination/Pagination.module.css
|
|
536
|
-
var Pagination_default = {"component":"
|
|
536
|
+
var Pagination_default = {"component":"bds221Pagination-component","pagination":"bds221Pagination-pagination","list":"bds221Pagination-list","button":"bds221Pagination-button","--active":"bds221Pagination---active","--nav":"bds221Pagination---nav","ellipsis":"bds221Pagination-ellipsis"};
|
|
537
537
|
|
|
538
538
|
// src/components/ui/Pagination/Pagination.tsx
|
|
539
539
|
import { cn as cn13 } from "@boostdev/design-system-foundation";
|
|
@@ -598,7 +598,7 @@ function Pagination({
|
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
// src/components/ui/Progress/Progress.module.css
|
|
601
|
-
var Progress_default = {"component":"
|
|
601
|
+
var Progress_default = {"component":"bds221Progress-component","container":"bds221Progress-container","labelRow":"bds221Progress-labelRow","value":"bds221Progress-value","track":"bds221Progress-track","--size_small":"bds221Progress---size_small","--size_medium":"bds221Progress---size_medium","--size_large":"bds221Progress---size_large","fill":"bds221Progress-fill"};
|
|
602
602
|
|
|
603
603
|
// src/components/ui/Progress/Progress.tsx
|
|
604
604
|
import { cn as cn14 } from "@boostdev/design-system-foundation";
|
|
@@ -637,7 +637,7 @@ function Progress({
|
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
640
|
-
var ProgressCircle_default = {"component":"
|
|
640
|
+
var ProgressCircle_default = {"component":"bds221ProgressCircle-component","wrapper":"bds221ProgressCircle-wrapper","svg":"bds221ProgressCircle-svg","track":"bds221ProgressCircle-track","fill":"bds221ProgressCircle-fill","value":"bds221ProgressCircle-value","--size_small":"bds221ProgressCircle---size_small","--size_medium":"bds221ProgressCircle---size_medium","--size_large":"bds221ProgressCircle---size_large"};
|
|
641
641
|
|
|
642
642
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
643
643
|
import { cn as cn15 } from "@boostdev/design-system-foundation";
|
|
@@ -718,7 +718,7 @@ function ProgressCircle({
|
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
// src/components/ui/Separator/Separator.module.css
|
|
721
|
-
var Separator_default = {"component":"
|
|
721
|
+
var Separator_default = {"component":"bds221Separator-component","separator":"bds221Separator-separator","--horizontal":"bds221Separator---horizontal","--vertical":"bds221Separator---vertical"};
|
|
722
722
|
|
|
723
723
|
// src/components/ui/Separator/Separator.tsx
|
|
724
724
|
import { cn as cn16 } from "@boostdev/design-system-foundation";
|
|
@@ -742,7 +742,7 @@ function Separator({ orientation = "horizontal", className, ...rest }) {
|
|
|
742
742
|
import { cn as cn17 } from "@boostdev/design-system-foundation";
|
|
743
743
|
|
|
744
744
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
745
|
-
var Skeleton_default = {"component":"
|
|
745
|
+
var Skeleton_default = {"component":"bds221Skeleton-component","skeleton":"bds221Skeleton-skeleton"};
|
|
746
746
|
|
|
747
747
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
748
748
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
@@ -751,7 +751,7 @@ function Skeleton({ className, ...rest }) {
|
|
|
751
751
|
}
|
|
752
752
|
|
|
753
753
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
754
|
-
var SkipLink_default = {"component":"
|
|
754
|
+
var SkipLink_default = {"component":"bds221SkipLink-component","skipLink":"bds221SkipLink-skipLink"};
|
|
755
755
|
|
|
756
756
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
757
757
|
import { cn as cn18 } from "@boostdev/design-system-foundation";
|
|
@@ -761,7 +761,7 @@ function SkipLink({ href = "#main", children = "Skip to main content", className
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
// src/components/ui/Table/Table.module.css
|
|
764
|
-
var Table_default = {"component":"
|
|
764
|
+
var Table_default = {"component":"bds221Table-component","wrapper":"bds221Table-wrapper","table":"bds221Table-table","caption":"bds221Table-caption","thead":"bds221Table-thead","th":"bds221Table-th","--sortable":"bds221Table---sortable","sortButton":"bds221Table-sortButton","sortIcon":"bds221Table-sortIcon","--sort-active":"bds221Table---sort-active","--sort-desc":"bds221Table---sort-desc","tbody":"bds221Table-tbody","tr":"bds221Table-tr","td":"bds221Table-td"};
|
|
765
765
|
|
|
766
766
|
// src/components/ui/Table/Table.tsx
|
|
767
767
|
import { cn as cn19 } from "@boostdev/design-system-foundation";
|
|
@@ -831,7 +831,7 @@ function Table({
|
|
|
831
831
|
import { useId as useId4, useRef as useRef2, useState as useState3 } from "react";
|
|
832
832
|
|
|
833
833
|
// src/components/ui/Tabs/Tabs.module.css
|
|
834
|
-
var Tabs_default = {"component":"
|
|
834
|
+
var Tabs_default = {"component":"bds221Tabs-component","tabs":"bds221Tabs-tabs","tabList":"bds221Tabs-tabList","tab":"bds221Tabs-tab","--active":"bds221Tabs---active","panel":"bds221Tabs-panel"};
|
|
835
835
|
|
|
836
836
|
// src/components/ui/Tabs/Tabs.tsx
|
|
837
837
|
import { cn as cn20 } from "@boostdev/design-system-foundation";
|
|
@@ -911,7 +911,7 @@ function Tabs({ tabs, defaultTab, className, ...rest }) {
|
|
|
911
911
|
import { cloneElement, isValidElement, useId as useId5, useState as useState4 } from "react";
|
|
912
912
|
|
|
913
913
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
914
|
-
var Tooltip_default = {"component":"
|
|
914
|
+
var Tooltip_default = {"component":"bds221Tooltip-component","wrapper":"bds221Tooltip-wrapper","tooltip":"bds221Tooltip-tooltip","--placement_top":"bds221Tooltip---placement_top","--placement_bottom":"bds221Tooltip---placement_bottom","--placement_left":"bds221Tooltip---placement_left","--placement_right":"bds221Tooltip---placement_right"};
|
|
915
915
|
|
|
916
916
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
917
917
|
import { cn as cn21 } from "@boostdev/design-system-foundation";
|
|
@@ -955,7 +955,7 @@ function Tooltip({
|
|
|
955
955
|
}
|
|
956
956
|
|
|
957
957
|
// src/components/ui/Typography/Typography.module.css
|
|
958
|
-
var Typography_default = {"component":"
|
|
958
|
+
var Typography_default = {"component":"bds221Typography-component","typography":"bds221Typography-typography","--h1":"bds221Typography---h1","--h2":"bds221Typography---h2","--h3":"bds221Typography---h3","--body":"bds221Typography---body","--body_s":"bds221Typography---body_s"};
|
|
959
959
|
|
|
960
960
|
// src/components/ui/Typography/Typography.tsx
|
|
961
961
|
import { cn as cn22 } from "@boostdev/design-system-foundation";
|
|
@@ -973,7 +973,7 @@ function Typography({ variant = "body", component, children, className, ...rest
|
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
// src/components/interaction/Button/Button.module.css
|
|
976
|
-
var Button_default = {"component":"
|
|
976
|
+
var Button_default = {"component":"bds221Button-component","button":"bds221Button-button","--default":"bds221Button---default","--outline":"bds221Button---outline","--ghost":"bds221Button---ghost","--size_small":"bds221Button---size_small","--size_medium":"bds221Button---size_medium","--size_large":"bds221Button---size_large","--hasPulse":"bds221Button---hasPulse","iconStart":"bds221Button-iconStart","iconEnd":"bds221Button-iconEnd","--iconOnly":"bds221Button---iconOnly"};
|
|
977
977
|
|
|
978
978
|
// src/components/interaction/Button/Button.tsx
|
|
979
979
|
import { cn as cn23 } from "@boostdev/design-system-foundation";
|
|
@@ -1090,7 +1090,7 @@ function installInvokerCommandsPolyfill() {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
1092
|
// src/components/interaction/Command/Command.module.css
|
|
1093
|
-
var Command_default = {"component":"
|
|
1093
|
+
var Command_default = {"component":"bds221Command-component","dialog":"bds221Command-dialog","palette":"bds221Command-palette","searchRow":"bds221Command-searchRow","searchIcon":"bds221Command-searchIcon","search":"bds221Command-search","escHint":"bds221Command-escHint","list":"bds221Command-list","groupList":"bds221Command-groupList","group":"bds221Command-group","item":"bds221Command-item","itemActive":"bds221Command-itemActive","itemLabel":"bds221Command-itemLabel","itemDesc":"bds221Command-itemDesc","shortcut":"bds221Command-shortcut","empty":"bds221Command-empty"};
|
|
1094
1094
|
|
|
1095
1095
|
// src/components/interaction/Command/Command.tsx
|
|
1096
1096
|
import { cn as cn24 } from "@boostdev/design-system-foundation";
|
|
@@ -1267,7 +1267,7 @@ function Command({
|
|
|
1267
1267
|
import { useEffect as useEffect2, useId as useId7, useRef as useRef4 } from "react";
|
|
1268
1268
|
|
|
1269
1269
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1270
|
-
var Dialog_default = {"component":"
|
|
1270
|
+
var Dialog_default = {"component":"bds221Dialog-component","dialog":"bds221Dialog-dialog","dialogContent":"bds221Dialog-dialogContent","closeButton":"bds221Dialog-closeButton"};
|
|
1271
1271
|
|
|
1272
1272
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1273
1273
|
import { cn as cn25 } from "@boostdev/design-system-foundation";
|
|
@@ -1373,7 +1373,7 @@ function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClo
|
|
|
1373
1373
|
import { useEffect as useEffect3, useId as useId8, useRef as useRef5 } from "react";
|
|
1374
1374
|
|
|
1375
1375
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1376
|
-
var Drawer_default = {"component":"
|
|
1376
|
+
var Drawer_default = {"component":"bds221Drawer-component","drawer":"bds221Drawer-drawer","--side_left":"bds221Drawer---side_left","header":"bds221Drawer-header","closeButton":"bds221Drawer-closeButton","body":"bds221Drawer-body"};
|
|
1377
1377
|
|
|
1378
1378
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1379
1379
|
import { cn as cn26 } from "@boostdev/design-system-foundation";
|
|
@@ -1481,7 +1481,7 @@ import {
|
|
|
1481
1481
|
} from "react";
|
|
1482
1482
|
|
|
1483
1483
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1484
|
-
var DropdownMenu_default = {"component":"
|
|
1484
|
+
var DropdownMenu_default = {"component":"bds221DropdownMenu-component","wrapper":"bds221DropdownMenu-wrapper","menu":"bds221DropdownMenu-menu","--placement_bottom-start":"bds221DropdownMenu---placement_bottom-start","--placement_bottom-end":"bds221DropdownMenu---placement_bottom-end","separator":"bds221DropdownMenu-separator","item":"bds221DropdownMenu-item","icon":"bds221DropdownMenu-icon"};
|
|
1485
1485
|
|
|
1486
1486
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1487
1487
|
import { cn as cn27 } from "@boostdev/design-system-foundation";
|
|
@@ -1602,7 +1602,7 @@ import {
|
|
|
1602
1602
|
} from "react";
|
|
1603
1603
|
|
|
1604
1604
|
// src/components/interaction/Popover/Popover.module.css
|
|
1605
|
-
var Popover_default = {"component":"
|
|
1605
|
+
var Popover_default = {"component":"bds221Popover-component","wrapper":"bds221Popover-wrapper","panel":"bds221Popover-panel","g":"bds221Popover-g"};
|
|
1606
1606
|
|
|
1607
1607
|
// src/components/interaction/Popover/Popover.tsx
|
|
1608
1608
|
import { cn as cn28 } from "@boostdev/design-system-foundation";
|
|
@@ -1687,7 +1687,7 @@ function Popover({
|
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
// src/components/interaction/Rating/Rating.module.css
|
|
1690
|
-
var Rating_default = {"component":"
|
|
1690
|
+
var Rating_default = {"component":"bds221Rating-component","rating":"bds221Rating-rating","star":"bds221Rating-star","--filled":"bds221Rating---filled"};
|
|
1691
1691
|
|
|
1692
1692
|
// src/components/interaction/Rating/Rating.tsx
|
|
1693
1693
|
import { cn as cn29 } from "@boostdev/design-system-foundation";
|
|
@@ -1719,7 +1719,7 @@ function Rating({ value, max = 5, className, ...rest }) {
|
|
|
1719
1719
|
import { useState as useState8, useEffect as useEffect6, createContext, useContext, useCallback, useMemo as useMemo2, useRef as useRef8 } from "react";
|
|
1720
1720
|
|
|
1721
1721
|
// src/components/interaction/Toast/Toast.module.css
|
|
1722
|
-
var Toast_default = {"component":"
|
|
1722
|
+
var Toast_default = {"component":"bds221Toast-component","toastContainer":"bds221Toast-toastContainer","toast":"bds221Toast-toast","--variant_success":"bds221Toast---variant_success","--variant_warning":"bds221Toast---variant_warning","--variant_info":"bds221Toast---variant_info","--variant_error":"bds221Toast---variant_error","message":"bds221Toast-message","closeButton":"bds221Toast-closeButton"};
|
|
1723
1723
|
|
|
1724
1724
|
// src/components/interaction/Toast/Toast.tsx
|
|
1725
1725
|
import { cn as cn30 } from "@boostdev/design-system-foundation";
|
|
@@ -1797,10 +1797,10 @@ function useToast() {
|
|
|
1797
1797
|
import { useId as useId11 } from "react";
|
|
1798
1798
|
|
|
1799
1799
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1800
|
-
var Checkbox_default = {"component":"
|
|
1800
|
+
var Checkbox_default = {"component":"bds221Checkbox-component","checkboxGroup":"bds221Checkbox-checkboxGroup","inputWrapper":"bds221Checkbox-inputWrapper","checkbox":"bds221Checkbox-checkbox","checkboxError":"bds221Checkbox-checkboxError"};
|
|
1801
1801
|
|
|
1802
1802
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1803
|
-
var Message_default = {"component":"
|
|
1803
|
+
var Message_default = {"component":"bds221Message-component","error":"bds221Message-error","hint":"bds221Message-hint"};
|
|
1804
1804
|
|
|
1805
1805
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1806
1806
|
import { cn as cn31 } from "@boostdev/design-system-foundation";
|
|
@@ -1811,7 +1811,7 @@ var Message = ({ message, type, inputId, className }) => {
|
|
|
1811
1811
|
};
|
|
1812
1812
|
|
|
1813
1813
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1814
|
-
var Label_default = {"component":"
|
|
1814
|
+
var Label_default = {"component":"bds221Label-component","label":"bds221Label-label"};
|
|
1815
1815
|
|
|
1816
1816
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1817
1817
|
import { cn as cn32 } from "@boostdev/design-system-foundation";
|
|
@@ -1824,7 +1824,7 @@ var Label = ({ label, id, className }) => {
|
|
|
1824
1824
|
import { cn as cn34 } from "@boostdev/design-system-foundation";
|
|
1825
1825
|
|
|
1826
1826
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1827
|
-
var InputContainer_default = {"component":"
|
|
1827
|
+
var InputContainer_default = {"component":"bds221InputContainer-component","container":"bds221InputContainer-container"};
|
|
1828
1828
|
|
|
1829
1829
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1830
1830
|
import { cn as cn33 } from "@boostdev/design-system-foundation";
|
|
@@ -1865,7 +1865,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1865
1865
|
import { useId as useId12 } from "react";
|
|
1866
1866
|
|
|
1867
1867
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
1868
|
-
var CheckboxGroup_default = {"component":"
|
|
1868
|
+
var CheckboxGroup_default = {"component":"bds221CheckboxGroup-component","group":"bds221CheckboxGroup-group","legend":"bds221CheckboxGroup-legend","required":"bds221CheckboxGroup-required","items":"bds221CheckboxGroup-items"};
|
|
1869
1869
|
|
|
1870
1870
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1871
1871
|
import { cn as cn35 } from "@boostdev/design-system-foundation";
|
|
@@ -1913,7 +1913,7 @@ import {
|
|
|
1913
1913
|
} from "react";
|
|
1914
1914
|
|
|
1915
1915
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1916
|
-
var Combobox_default = {"component":"
|
|
1916
|
+
var Combobox_default = {"component":"bds221Combobox-component","formGroup":"bds221Combobox-formGroup","inputWrapper":"bds221Combobox-inputWrapper","input":"bds221Combobox-input","inputError":"bds221Combobox-inputError","chevron":"bds221Combobox-chevron","listbox":"bds221Combobox-listbox","option":"bds221Combobox-option","--highlighted":"bds221Combobox---highlighted","--selected":"bds221Combobox---selected","--disabled":"bds221Combobox---disabled"};
|
|
1917
1917
|
|
|
1918
1918
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1919
1919
|
import { cn as cn36 } from "@boostdev/design-system-foundation";
|
|
@@ -2064,7 +2064,7 @@ function Combobox({
|
|
|
2064
2064
|
import { useId as useId14, useRef as useRef10, useState as useState10 } from "react";
|
|
2065
2065
|
|
|
2066
2066
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
2067
|
-
var FileInput_default = {"component":"
|
|
2067
|
+
var FileInput_default = {"component":"bds221FileInput-component","formGroup":"bds221FileInput-formGroup","fieldLabel":"bds221FileInput-fieldLabel","dropZone":"bds221FileInput-dropZone","isDragging":"bds221FileInput-isDragging","hasError":"bds221FileInput-hasError","isDisabled":"bds221FileInput-isDisabled","icon":"bds221FileInput-icon","prompt":"bds221FileInput-prompt","acceptHint":"bds221FileInput-acceptHint","hiddenInput":"bds221FileInput-hiddenInput"};
|
|
2068
2068
|
|
|
2069
2069
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
2070
2070
|
import { cn as cn37 } from "@boostdev/design-system-foundation";
|
|
@@ -2165,7 +2165,7 @@ function FileInput({
|
|
|
2165
2165
|
import { useId as useId15 } from "react";
|
|
2166
2166
|
|
|
2167
2167
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
2168
|
-
var FormInput_default = {"component":"
|
|
2168
|
+
var FormInput_default = {"component":"bds221FormInput-component","formGroup":"bds221FormInput-formGroup","input":"bds221FormInput-input","inputError":"bds221FormInput-inputError"};
|
|
2169
2169
|
|
|
2170
2170
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2171
2171
|
import { cn as cn38 } from "@boostdev/design-system-foundation";
|
|
@@ -2209,7 +2209,7 @@ function FormInput({
|
|
|
2209
2209
|
import { useId as useId16, useRef as useRef11, useState as useState11 } from "react";
|
|
2210
2210
|
|
|
2211
2211
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2212
|
-
var NumberInput_default = {"component":"
|
|
2212
|
+
var NumberInput_default = {"component":"bds221NumberInput-component","formGroup":"bds221NumberInput-formGroup","inputRow":"bds221NumberInput-inputRow","input":"bds221NumberInput-input","inputError":"bds221NumberInput-inputError","stepper":"bds221NumberInput-stepper"};
|
|
2213
2213
|
|
|
2214
2214
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2215
2215
|
import { cn as cn39 } from "@boostdev/design-system-foundation";
|
|
@@ -2314,7 +2314,7 @@ function NumberInput({
|
|
|
2314
2314
|
import { useId as useId17 } from "react";
|
|
2315
2315
|
|
|
2316
2316
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2317
|
-
var Radio_default = {"component":"
|
|
2317
|
+
var Radio_default = {"component":"bds221Radio-component","radioGroup":"bds221Radio-radioGroup","inputWrapper":"bds221Radio-inputWrapper","textWrapper":"bds221Radio-textWrapper","description":"bds221Radio-description","radio":"bds221Radio-radio","radioError":"bds221Radio-radioError"};
|
|
2318
2318
|
|
|
2319
2319
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2320
2320
|
import { cn as cn40 } from "@boostdev/design-system-foundation";
|
|
@@ -2352,7 +2352,7 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2352
2352
|
import { useId as useId18 } from "react";
|
|
2353
2353
|
|
|
2354
2354
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2355
|
-
var RadioGroup_default = {"component":"
|
|
2355
|
+
var RadioGroup_default = {"component":"bds221RadioGroup-component","group":"bds221RadioGroup-group","legend":"bds221RadioGroup-legend","required":"bds221RadioGroup-required","items":"bds221RadioGroup-items"};
|
|
2356
2356
|
|
|
2357
2357
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2358
2358
|
import { cn as cn41 } from "@boostdev/design-system-foundation";
|
|
@@ -2394,7 +2394,7 @@ function RadioGroup({
|
|
|
2394
2394
|
import { Children, cloneElement as cloneElement4, isValidElement as isValidElement4 } from "react";
|
|
2395
2395
|
|
|
2396
2396
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2397
|
-
var SegmentedControl_default = {"component":"
|
|
2397
|
+
var SegmentedControl_default = {"component":"bds221SegmentedControl-component","control":"bds221SegmentedControl-control","thumb":"bds221SegmentedControl-thumb","indicator":"bds221SegmentedControl-indicator","item":"bds221SegmentedControl-item","--active":"bds221SegmentedControl---active","--disabled":"bds221SegmentedControl---disabled","--size_small":"bds221SegmentedControl---size_small","--size_large":"bds221SegmentedControl---size_large","--variant_outline":"bds221SegmentedControl---variant_outline"};
|
|
2398
2398
|
|
|
2399
2399
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2400
2400
|
import { cn as cn42 } from "@boostdev/design-system-foundation";
|
|
@@ -2450,7 +2450,7 @@ function SegmentedControl({
|
|
|
2450
2450
|
import { useId as useId19 } from "react";
|
|
2451
2451
|
|
|
2452
2452
|
// src/components/interaction/form/Select/Select.module.css
|
|
2453
|
-
var Select_default = {"component":"
|
|
2453
|
+
var Select_default = {"component":"bds221Select-component","formGroup":"bds221Select-formGroup","selectWrapper":"bds221Select-selectWrapper","select":"bds221Select-select","selectError":"bds221Select-selectError","chevron":"bds221Select-chevron"};
|
|
2454
2454
|
|
|
2455
2455
|
// src/components/interaction/form/Select/Select.tsx
|
|
2456
2456
|
import { cn as cn43 } from "@boostdev/design-system-foundation";
|
|
@@ -2501,7 +2501,7 @@ function Select({
|
|
|
2501
2501
|
import { useId as useId20, useState as useState12 } from "react";
|
|
2502
2502
|
|
|
2503
2503
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2504
|
-
var Slider_default = {"component":"
|
|
2504
|
+
var Slider_default = {"component":"bds221Slider-component","formGroup":"bds221Slider-formGroup","labelRow":"bds221Slider-labelRow","value":"bds221Slider-value","slider":"bds221Slider-slider","sliderError":"bds221Slider-sliderError"};
|
|
2505
2505
|
|
|
2506
2506
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2507
2507
|
import { cn as cn44 } from "@boostdev/design-system-foundation";
|
|
@@ -2563,7 +2563,7 @@ function Slider({
|
|
|
2563
2563
|
import { useId as useId21 } from "react";
|
|
2564
2564
|
|
|
2565
2565
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2566
|
-
var Switch_default = {"component":"
|
|
2566
|
+
var Switch_default = {"component":"bds221Switch-component","switchGroup":"bds221Switch-switchGroup","--size_small":"bds221Switch---size_small","--size_medium":"bds221Switch---size_medium","--size_large":"bds221Switch---size_large","inputWrapper":"bds221Switch-inputWrapper","trackWrapper":"bds221Switch-trackWrapper","switch":"bds221Switch-switch","track":"bds221Switch-track","thumb":"bds221Switch-thumb","switchError":"bds221Switch-switchError"};
|
|
2567
2567
|
|
|
2568
2568
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2569
2569
|
import { cn as cn45 } from "@boostdev/design-system-foundation";
|
|
@@ -2611,7 +2611,7 @@ function Switch({
|
|
|
2611
2611
|
import { useId as useId22 } from "react";
|
|
2612
2612
|
|
|
2613
2613
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2614
|
-
var Textarea_default = {"component":"
|
|
2614
|
+
var Textarea_default = {"component":"bds221Textarea-component","formGroup":"bds221Textarea-formGroup","textarea":"bds221Textarea-textarea","textareaError":"bds221Textarea-textareaError"};
|
|
2615
2615
|
|
|
2616
2616
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2617
2617
|
import { cn as cn46 } from "@boostdev/design-system-foundation";
|
|
@@ -2650,7 +2650,7 @@ function Textarea({
|
|
|
2650
2650
|
}
|
|
2651
2651
|
|
|
2652
2652
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2653
|
-
var ButtonGroup_default = {"component":"
|
|
2653
|
+
var ButtonGroup_default = {"component":"bds221ButtonGroup-component","buttonGroup":"bds221ButtonGroup-buttonGroup","container":"bds221ButtonGroup-container","--variant_card":"bds221ButtonGroup---variant_card","--variant_flow":"bds221ButtonGroup---variant_flow","--variant_modal":"bds221ButtonGroup---variant_modal","--variant_content":"bds221ButtonGroup---variant_content","--variant_grid":"bds221ButtonGroup---variant_grid"};
|
|
2654
2654
|
|
|
2655
2655
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2656
2656
|
import { cn as cn47 } from "@boostdev/design-system-foundation";
|
|
@@ -2669,7 +2669,7 @@ function ButtonContainer({ children, className, variant, ...rest }) {
|
|
|
2669
2669
|
var ButtonGroup = ButtonContainer;
|
|
2670
2670
|
|
|
2671
2671
|
// src/components/layout/Card/Card.module.css
|
|
2672
|
-
var Card_default = {"component":"
|
|
2672
|
+
var Card_default = {"component":"bds221Card-component","card":"bds221Card-card","--default":"bds221Card---default","--elevated":"bds221Card---elevated","--outlined":"bds221Card---outlined","--clickable":"bds221Card---clickable","--padding-none":"bds221Card---padding-none","--padding-small":"bds221Card---padding-small","--padding-medium":"bds221Card---padding-medium","--padding-large":"bds221Card---padding-large","--padding-extra-large":"bds221Card---padding-extra-large","--text-start":"bds221Card---text-start","--text-center":"bds221Card---text-center","--text-end":"bds221Card---text-end"};
|
|
2673
2673
|
|
|
2674
2674
|
// src/components/layout/Card/Card.tsx
|
|
2675
2675
|
import { cn as cn48 } from "@boostdev/design-system-foundation";
|
|
@@ -2713,7 +2713,7 @@ import {
|
|
|
2713
2713
|
} from "react";
|
|
2714
2714
|
|
|
2715
2715
|
// src/components/layout/Grid/Grid.module.css
|
|
2716
|
-
var Grid_default = {"component":"
|
|
2716
|
+
var Grid_default = {"component":"bds221Grid-component","grid":"bds221Grid-grid","--main":"bds221Grid---main","--page":"bds221Grid---page","--funnel":"bds221Grid---funnel","--custom":"bds221Grid---custom","--centered":"bds221Grid---centered","item":"bds221Grid-item","w3":"bds221Grid-w3","org":"bds221Grid-org","ts":"bds221Grid-ts","--masonry":"bds221Grid---masonry"};
|
|
2717
2717
|
|
|
2718
2718
|
// src/components/layout/Grid/Grid.tsx
|
|
2719
2719
|
import { cn as cn49 } from "@boostdev/design-system-foundation";
|
|
@@ -2738,6 +2738,7 @@ function applyMasonryLayout(container, rawChildren) {
|
|
|
2738
2738
|
child.style.gridRow = "";
|
|
2739
2739
|
child.style.gridRowStart = "";
|
|
2740
2740
|
child.style.gridRowEnd = "";
|
|
2741
|
+
child.style.alignSelf = "start";
|
|
2741
2742
|
}
|
|
2742
2743
|
const heights = children.map((child) => child.offsetHeight);
|
|
2743
2744
|
for (let i = 0; i < children.length; i++) {
|
|
@@ -2754,6 +2755,7 @@ function clearMasonryLayout(container, rawChildren) {
|
|
|
2754
2755
|
child.style.gridRow = "";
|
|
2755
2756
|
child.style.gridRowStart = "";
|
|
2756
2757
|
child.style.gridRowEnd = "";
|
|
2758
|
+
child.style.alignSelf = "";
|
|
2757
2759
|
}
|
|
2758
2760
|
}
|
|
2759
2761
|
function useMasonry(ref, enabled) {
|
|
@@ -2789,9 +2791,11 @@ function useMasonry(ref, enabled) {
|
|
|
2789
2791
|
|
|
2790
2792
|
// src/components/layout/Grid/Grid.tsx
|
|
2791
2793
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
2792
|
-
var
|
|
2793
|
-
|
|
2794
|
-
});
|
|
2794
|
+
var _GridContext;
|
|
2795
|
+
function getGridContext() {
|
|
2796
|
+
_GridContext ??= createContext2({ autoSpanMedia: false });
|
|
2797
|
+
return _GridContext;
|
|
2798
|
+
}
|
|
2795
2799
|
function Grid({
|
|
2796
2800
|
children,
|
|
2797
2801
|
className,
|
|
@@ -2815,6 +2819,7 @@ function Grid({
|
|
|
2815
2819
|
);
|
|
2816
2820
|
const composedStyle = variant === "custom" && columns !== void 0 ? { ...style, ["--grid_columns"]: columns } : style;
|
|
2817
2821
|
const Component = as ?? "div";
|
|
2822
|
+
const GridContext = getGridContext();
|
|
2818
2823
|
const ctx = useMemo4(() => ({ autoSpanMedia }), [autoSpanMedia]);
|
|
2819
2824
|
return /* @__PURE__ */ jsx49(Component, { ref, ...rest, className: classNames, style: composedStyle, children: /* @__PURE__ */ jsx49(GridContext.Provider, { value: ctx, children }) });
|
|
2820
2825
|
}
|
|
@@ -2891,7 +2896,7 @@ function GridItem({
|
|
|
2891
2896
|
style,
|
|
2892
2897
|
...rest
|
|
2893
2898
|
}) {
|
|
2894
|
-
const { autoSpanMedia } = useContext2(
|
|
2899
|
+
const { autoSpanMedia } = useContext2(getGridContext());
|
|
2895
2900
|
const effectiveSpan = columnSpan ?? (autoSpanMedia ? "auto" : "full");
|
|
2896
2901
|
const ref = useRef13(null);
|
|
2897
2902
|
const [autoSpan, setAutoSpan] = useState13("one-quarter");
|
|
@@ -2952,7 +2957,7 @@ function GridItem({
|
|
|
2952
2957
|
}
|
|
2953
2958
|
|
|
2954
2959
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2955
|
-
var SectionHeader_default = {"component":"
|
|
2960
|
+
var SectionHeader_default = {"component":"bds221SectionHeader-component","sectionHeader":"bds221SectionHeader-sectionHeader","title":"bds221SectionHeader-title","subtitle":"bds221SectionHeader-subtitle","--start":"bds221SectionHeader---start","--center":"bds221SectionHeader---center","--end":"bds221SectionHeader---end","--medium":"bds221SectionHeader---medium","--xs":"bds221SectionHeader---xs","--small":"bds221SectionHeader---small","--large":"bds221SectionHeader---large"};
|
|
2956
2961
|
|
|
2957
2962
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2958
2963
|
import { cn as cn51 } from "@boostdev/design-system-foundation";
|
|
@@ -2974,7 +2979,7 @@ function SectionHeader({
|
|
|
2974
2979
|
}
|
|
2975
2980
|
|
|
2976
2981
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2977
|
-
var IconWrapper_default = {"component":"
|
|
2982
|
+
var IconWrapper_default = {"component":"bds221IconWrapper-component","wrapper":"bds221IconWrapper-wrapper"};
|
|
2978
2983
|
|
|
2979
2984
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2980
2985
|
import { cn as cn52 } from "@boostdev/design-system-foundation";
|
|
@@ -146,6 +146,7 @@ function applyMasonryLayout(container, rawChildren) {
|
|
|
146
146
|
child.style.gridRow = "";
|
|
147
147
|
child.style.gridRowStart = "";
|
|
148
148
|
child.style.gridRowEnd = "";
|
|
149
|
+
child.style.alignSelf = "start";
|
|
149
150
|
}
|
|
150
151
|
const heights = children.map((child) => child.offsetHeight);
|
|
151
152
|
for (let i3 = 0; i3 < children.length; i3++) {
|
|
@@ -162,6 +163,7 @@ function clearMasonryLayout(container, rawChildren) {
|
|
|
162
163
|
child.style.gridRow = "";
|
|
163
164
|
child.style.gridRowStart = "";
|
|
164
165
|
child.style.gridRowEnd = "";
|
|
166
|
+
child.style.alignSelf = "";
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
169
|
|
package/package.json
CHANGED
|
@@ -143,6 +143,19 @@ describe('applyMasonryLayout', () => {
|
|
|
143
143
|
expect(hidden.style.gridRowEnd).toBe('');
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
+
it('sets align-self: start on children so they shrink-wrap for measurement and do not stretch into the gap', () => {
|
|
147
|
+
// Regression: without this, default `align-self: stretch` grows every child
|
|
148
|
+
// to fill the 1px grid-auto-rows track, making offsetHeight return 1 and
|
|
149
|
+
// collapsing all items to minimum size.
|
|
150
|
+
const container = makeContainer(10);
|
|
151
|
+
const a = makeItem(100);
|
|
152
|
+
const b = makeItem(50);
|
|
153
|
+
container.append(a, b);
|
|
154
|
+
applyMasonryLayout(container, [a, b]);
|
|
155
|
+
expect(a.style.alignSelf).toBe('start');
|
|
156
|
+
expect(b.style.alignSelf).toBe('start');
|
|
157
|
+
});
|
|
158
|
+
|
|
146
159
|
it('clearMasonryLayout undoes container and child styles', () => {
|
|
147
160
|
const container = makeContainer(10);
|
|
148
161
|
const item = makeItem(50);
|
|
@@ -155,6 +168,7 @@ describe('applyMasonryLayout', () => {
|
|
|
155
168
|
expect(item.style.gridRowEnd).toBe('');
|
|
156
169
|
expect(item.style.gridRowStart).toBe('');
|
|
157
170
|
expect(item.style.gridRow).toBe('');
|
|
171
|
+
expect(item.style.alignSelf).toBe('');
|
|
158
172
|
});
|
|
159
173
|
});
|
|
160
174
|
|