@glasshome/ui 1.35.4 → 1.36.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/lib/balance-rows.d.ts +7 -0
- package/dist/solid/index.d.ts +1 -1
- package/dist/solid/index.js +1591 -1537
- package/dist/solid/media-store.d.ts +14 -3
- package/package.json +1 -1
- package/src/lib/balance-rows.ts +62 -0
- package/src/solid/image-picker.tsx +39 -15
- package/src/solid/index.ts +3 -0
- package/src/solid/media-store.ts +28 -8
- package/src/solid/schema-form.tsx +4 -6
- package/src/solid/toggle-group.tsx +14 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Classes for the element holding the items: one row, then the balanced grid once `data-wrapped` is set. */
|
|
2
|
+
export declare const BALANCED_ROWS = "grid grid-flow-col auto-cols-[minmax(max-content,1fr)] data-[wrapped]:grid-flow-row data-[wrapped]:grid-cols-[repeat(var(--balance-columns),minmax(max-content,1fr))]";
|
|
3
|
+
/**
|
|
4
|
+
* Lays `items` out in `BALANCED_ROWS`. `sizer` is the element that fills its line once wrapped
|
|
5
|
+
* (it takes `data-wrapped` too); `item` selects the items among `items`' children.
|
|
6
|
+
*/
|
|
7
|
+
export declare function balanceRows(sizer: HTMLElement, items: HTMLElement, item: string): () => void;
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export { Label } from "./label.js";
|
|
|
56
56
|
export { createListReorder, dragTargetIndex, type ListReorder, type ListReorderOptions, } from "./list-reorder.js";
|
|
57
57
|
export { Logo } from "./logo.js";
|
|
58
58
|
export { mediaIndexErrorCopy, mediaStoreErrorCopy, toMediaStoreError } from "./media-copy.js";
|
|
59
|
-
export { type BrokenMedia, createBrokenMedia, type ImagePreset, imagePreset, imageUrl, isMediaImage, MEDIA_PAGE_SIZE, type MediaIndex, type MediaQuotaUsage, type MediaStore, MediaStoreContext, MediaStoreError, type MediaStoreErrorKind, type MediaVariant, mediaUrl, presetValue, provideMediaStore, type StoredMedia, sortMediaForClearing, useMediaStore, } from "./media-store.js";
|
|
59
|
+
export { type BrokenMedia, createBrokenMedia, type ImagePreset, imagePreset, imageUrl, isMediaImage, MEDIA_PAGE_SIZE, type MediaIndex, type MediaQuotaUsage, type MediaStore, MediaStoreContext, MediaStoreError, type MediaStoreErrorKind, type MediaUrls, MediaUrlsContext, type MediaVariant, mediaUrl, presetValue, provideMediaStore, provideMediaUrls, type StoredMedia, sortMediaForClearing, useMediaStore, } from "./media-store.js";
|
|
60
60
|
export { MediaTile, type MediaTileProps } from "./media-tile.js";
|
|
61
61
|
export { NumberField } from "./number-field.js";
|
|
62
62
|
export { HeroOption, OptionCard, OptionCardGroup, OptionChoice } from "./option-card.js";
|