@uselets/ui 1.2.1 → 1.3.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/README.md +7 -6
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/button-group.d.ts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/carousel.d.ts +12 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/carousel.spec.d.ts +1 -0
- package/dist/components/carousel.spec.js +2 -0
- package/dist/components/carousel.spec.js.map +1 -0
- package/dist/components/center.d.ts +1 -1
- package/dist/components/drawer.d.ts +7 -2
- package/dist/components/drawer.js +1 -1
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/field.spec.js +1 -1
- package/dist/components/flex.d.ts +27 -0
- package/dist/components/flex.js +2 -0
- package/dist/components/flex.js.map +1 -0
- package/dist/components/grid.js +1 -1
- package/dist/components/grid.js.map +1 -1
- package/dist/components/group.js +1 -1
- package/dist/components/group.js.map +1 -1
- package/dist/components/simple-grid.js +1 -1
- package/dist/components/simple-grid.js.map +1 -1
- package/dist/components/skeleton.spec.js +1 -1
- package/dist/components/skeleton.spec.js.map +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/stack.js.map +1 -1
- package/dist/components/theme.js +1 -1
- package/dist/components/theme.js.map +1 -1
- package/dist/components/timeline.d.ts +3 -3
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/dist-QvsLCO1I.js +109 -0
- package/dist/dist-QvsLCO1I.js.map +1 -0
- package/dist/hooks/use-breakpoint-value.spec.js +1 -14
- package/dist/hooks/use-breakpoint-value.spec.js.map +1 -1
- package/dist/hooks/use-breakpoint.spec.js +1 -1
- package/dist/hooks/use-disclosure.spec.js +1 -1
- package/dist/hooks/use-document-visibility.spec.js +1 -1
- package/dist/hooks/use-idle.spec.js +1 -1
- package/dist/hooks/use-interval.spec.js +1 -1
- package/dist/hooks/use-local-storage.spec.js +1 -1
- package/dist/hooks/use-mobile.spec.js +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/magic-string.es-C-uSEkg2.js +15 -0
- package/dist/magic-string.es-C-uSEkg2.js.map +1 -0
- package/dist/{react.esm-B3a5z6DL.js → react.esm-D_dNEsWM.js} +2 -2
- package/dist/{react.esm-B3a5z6DL.js.map → react.esm-D_dNEsWM.js.map} +1 -1
- package/dist/skills/uselets-ui/references/component-catalog.md +10 -7
- package/dist/skills/uselets-ui/references/package-guide.md +3 -1
- package/package.json +1 -1
- package/skills/uselets-ui/references/component-catalog.md +10 -7
- package/skills/uselets-ui/references/package-guide.md +3 -1
|
@@ -119,10 +119,10 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
119
119
|
- Notes: form layout and validation helpers; `Field` automatically provides a generated control id to `FieldLabel` and labelable descendants when explicit ids are omitted
|
|
120
120
|
- `grid`
|
|
121
121
|
- Exports: `Grid`, `GridItem`
|
|
122
|
-
- Notes: 12-column CSS grid by default. `Grid` supports spacing props plus direct `templateRows` and `templateColumns`; `GridItem` defaults to `colSpan={12}` and supports numeric `colSpan` and `rowSpan`. Use `useBreakpointValue` when these values need to change by breakpoint.
|
|
122
|
+
- Notes: 12-column CSS grid by default. `Grid` supports spacing props plus direct `templateRows` and `templateColumns`; spacing values `xs` to `xl` map to `4/8/16/24/32px`; `GridItem` defaults to `colSpan={12}` and supports numeric `colSpan` and `rowSpan`. Use `useBreakpointValue` when these values need to change by breakpoint.
|
|
123
123
|
- `simple-grid`
|
|
124
124
|
- Exports: `SimpleGrid`
|
|
125
|
-
- Notes: simple grid with `cols`, `gap`, `rowGap`, and `columnGap`. `cols` accepts a number; spacing
|
|
125
|
+
- Notes: simple grid with `cols`, `gap`, `rowGap`, and `columnGap`. `cols` accepts a number; spacing values `xs` to `xl` map to `4/8/16/24/32px`. Use `useBreakpointValue` when column count needs responsive values.
|
|
126
126
|
- `visibility`
|
|
127
127
|
- Exports: `HiddenFrom`, `VisibleFrom`
|
|
128
128
|
- Notes: breakpoint visibility wrappers. `HiddenFrom breakpoint="md"` hides at `md` and above; `VisibleFrom breakpoint="md"` shows at `md` and above.
|
|
@@ -175,8 +175,8 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
175
175
|
- `dialog`
|
|
176
176
|
- Exports: `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger`
|
|
177
177
|
- `drawer`
|
|
178
|
-
- Exports: `Drawer`, `DrawerClose`, `DrawerContent`, `DrawerDescription`, `DrawerFooter`, `DrawerHeader`, `DrawerOverlay`, `DrawerPortal`, `DrawerTitle`, `DrawerTrigger`
|
|
179
|
-
- Notes: `Drawer` supports `size: 'sm' | 'md' | 'lg'` with default `md`; `DrawerContent.showCloseButton` controls the automatic close button and defaults to `true`
|
|
178
|
+
- Exports: `Drawer`, `DrawerBody`, `DrawerClose`, `DrawerContent`, `DrawerDescription`, `DrawerFooter`, `DrawerHeader`, `DrawerOverlay`, `DrawerPortal`, `DrawerTitle`, `DrawerTrigger`
|
|
179
|
+
- Notes: `Drawer` supports `size: 'sm' | 'md' | 'lg' | 'xl'` with default `md`; `DrawerBody` provides padded auto-scroll content; `DrawerFooter` stacks actions on mobile and aligns them to the end on larger breakpoints; `DrawerContent.showCloseButton` controls the automatic close button and defaults to `true`
|
|
180
180
|
- `popover`
|
|
181
181
|
- Exports: `Popover`, `PopoverAnchor`, `PopoverContent`, `PopoverDescription`, `PopoverHeader`, `PopoverTitle`, `PopoverTrigger`
|
|
182
182
|
- `hover-card`
|
|
@@ -209,7 +209,7 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
209
209
|
- `card`
|
|
210
210
|
- Exports: `Card`, `CardAction`, `CardContent`, `CardDescription`, `CardFooter`, `CardHeader`, `CardTitle`
|
|
211
211
|
- `carousel`
|
|
212
|
-
- Exports: `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselPrevious`, `CarouselNext`, `useCarousel`
|
|
212
|
+
- Exports: `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselPrevious`, `CarouselNext`, `CarouselIndicators`, `useCarousel`
|
|
213
213
|
- `center`
|
|
214
214
|
- Exports: `Center`, `centerVariants`
|
|
215
215
|
- `chart`
|
|
@@ -218,9 +218,12 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
218
218
|
- Exports: `Collapsible`, `CollapsibleTrigger`, `CollapsibleContent`
|
|
219
219
|
- `container`
|
|
220
220
|
- Exports: `Container`, `containerVariants`
|
|
221
|
+
- `flex`
|
|
222
|
+
- Exports: `Flex`, `flexVariants`
|
|
223
|
+
- Notes: generic flexbox layout primitive. Supports `direction: 'row' | 'row-reverse' | 'column' | 'column-reverse'`, `align: 'start' | 'end' | 'center' | 'baseline' | 'stretch'`, `justify: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly'`, `wrap`, and `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (`4/8/16/24/32px`).
|
|
221
224
|
- `group`
|
|
222
225
|
- Exports: `Group`, `groupVariants`
|
|
223
|
-
- Notes: supports `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` and `wrap`
|
|
226
|
+
- Notes: supports `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (`4/8/16/24/32px`) and `wrap`
|
|
224
227
|
- `kbd`
|
|
225
228
|
- Exports: `Kbd`, `KbdGroup`
|
|
226
229
|
- `resizable`
|
|
@@ -231,7 +234,7 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
231
234
|
- Exports: `Separator`
|
|
232
235
|
- `stack`
|
|
233
236
|
- Exports: `Stack`, `stackVariants`
|
|
234
|
-
- Notes: supports `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'`
|
|
237
|
+
- Notes: supports `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (`4/8/16/24/32px`)
|
|
235
238
|
- `table`
|
|
236
239
|
- Exports: `Table`, `TableHeader`, `TableBody`, `TableFooter`, `TableHead`, `TableRow`, `TableCell`, `TableCaption`
|
|
237
240
|
- `timeline`
|
|
@@ -305,7 +305,9 @@ Choose components by intent:
|
|
|
305
305
|
- typography:
|
|
306
306
|
- `Anchor`, `Code`, `Heading`, `List`, `Text`
|
|
307
307
|
- layout and display:
|
|
308
|
-
- `Card`, `Accordion`, `Collapsible`, `Container`, `Group`, `Stack`, `Center`, `Separator`, `ScrollArea`, `Resizable`, `Table`, `Timeline`, `Chart`, `Carousel`, `Avatar`, `Empty`, `Kbd`
|
|
308
|
+
- `Card`, `Accordion`, `Collapsible`, `Container`, `Flex`, `Group`, `Stack`, `Center`, `Separator`, `ScrollArea`, `Resizable`, `Table`, `Timeline`, `Chart`, `Carousel`, `Avatar`, `Empty`, `Kbd`
|
|
309
|
+
|
|
310
|
+
Layout spacing props named `gap`, `rowGap`, and `columnGap` use the shared `xs` to `xl` scale: `4/8/16/24/32px`.
|
|
309
311
|
|
|
310
312
|
## Inspection workflow
|
|
311
313
|
|
package/package.json
CHANGED
|
@@ -119,10 +119,10 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
119
119
|
- Notes: form layout and validation helpers; `Field` automatically provides a generated control id to `FieldLabel` and labelable descendants when explicit ids are omitted
|
|
120
120
|
- `grid`
|
|
121
121
|
- Exports: `Grid`, `GridItem`
|
|
122
|
-
- Notes: 12-column CSS grid by default. `Grid` supports spacing props plus direct `templateRows` and `templateColumns`; `GridItem` defaults to `colSpan={12}` and supports numeric `colSpan` and `rowSpan`. Use `useBreakpointValue` when these values need to change by breakpoint.
|
|
122
|
+
- Notes: 12-column CSS grid by default. `Grid` supports spacing props plus direct `templateRows` and `templateColumns`; spacing values `xs` to `xl` map to `4/8/16/24/32px`; `GridItem` defaults to `colSpan={12}` and supports numeric `colSpan` and `rowSpan`. Use `useBreakpointValue` when these values need to change by breakpoint.
|
|
123
123
|
- `simple-grid`
|
|
124
124
|
- Exports: `SimpleGrid`
|
|
125
|
-
- Notes: simple grid with `cols`, `gap`, `rowGap`, and `columnGap`. `cols` accepts a number; spacing
|
|
125
|
+
- Notes: simple grid with `cols`, `gap`, `rowGap`, and `columnGap`. `cols` accepts a number; spacing values `xs` to `xl` map to `4/8/16/24/32px`. Use `useBreakpointValue` when column count needs responsive values.
|
|
126
126
|
- `visibility`
|
|
127
127
|
- Exports: `HiddenFrom`, `VisibleFrom`
|
|
128
128
|
- Notes: breakpoint visibility wrappers. `HiddenFrom breakpoint="md"` hides at `md` and above; `VisibleFrom breakpoint="md"` shows at `md` and above.
|
|
@@ -175,8 +175,8 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
175
175
|
- `dialog`
|
|
176
176
|
- Exports: `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger`
|
|
177
177
|
- `drawer`
|
|
178
|
-
- Exports: `Drawer`, `DrawerClose`, `DrawerContent`, `DrawerDescription`, `DrawerFooter`, `DrawerHeader`, `DrawerOverlay`, `DrawerPortal`, `DrawerTitle`, `DrawerTrigger`
|
|
179
|
-
- Notes: `Drawer` supports `size: 'sm' | 'md' | 'lg'` with default `md`; `DrawerContent.showCloseButton` controls the automatic close button and defaults to `true`
|
|
178
|
+
- Exports: `Drawer`, `DrawerBody`, `DrawerClose`, `DrawerContent`, `DrawerDescription`, `DrawerFooter`, `DrawerHeader`, `DrawerOverlay`, `DrawerPortal`, `DrawerTitle`, `DrawerTrigger`
|
|
179
|
+
- Notes: `Drawer` supports `size: 'sm' | 'md' | 'lg' | 'xl'` with default `md`; `DrawerBody` provides padded auto-scroll content; `DrawerFooter` stacks actions on mobile and aligns them to the end on larger breakpoints; `DrawerContent.showCloseButton` controls the automatic close button and defaults to `true`
|
|
180
180
|
- `popover`
|
|
181
181
|
- Exports: `Popover`, `PopoverAnchor`, `PopoverContent`, `PopoverDescription`, `PopoverHeader`, `PopoverTitle`, `PopoverTrigger`
|
|
182
182
|
- `hover-card`
|
|
@@ -209,7 +209,7 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
209
209
|
- `card`
|
|
210
210
|
- Exports: `Card`, `CardAction`, `CardContent`, `CardDescription`, `CardFooter`, `CardHeader`, `CardTitle`
|
|
211
211
|
- `carousel`
|
|
212
|
-
- Exports: `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselPrevious`, `CarouselNext`, `useCarousel`
|
|
212
|
+
- Exports: `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselPrevious`, `CarouselNext`, `CarouselIndicators`, `useCarousel`
|
|
213
213
|
- `center`
|
|
214
214
|
- Exports: `Center`, `centerVariants`
|
|
215
215
|
- `chart`
|
|
@@ -218,9 +218,12 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
218
218
|
- Exports: `Collapsible`, `CollapsibleTrigger`, `CollapsibleContent`
|
|
219
219
|
- `container`
|
|
220
220
|
- Exports: `Container`, `containerVariants`
|
|
221
|
+
- `flex`
|
|
222
|
+
- Exports: `Flex`, `flexVariants`
|
|
223
|
+
- Notes: generic flexbox layout primitive. Supports `direction: 'row' | 'row-reverse' | 'column' | 'column-reverse'`, `align: 'start' | 'end' | 'center' | 'baseline' | 'stretch'`, `justify: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly'`, `wrap`, and `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (`4/8/16/24/32px`).
|
|
221
224
|
- `group`
|
|
222
225
|
- Exports: `Group`, `groupVariants`
|
|
223
|
-
- Notes: supports `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` and `wrap`
|
|
226
|
+
- Notes: supports `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (`4/8/16/24/32px`) and `wrap`
|
|
224
227
|
- `kbd`
|
|
225
228
|
- Exports: `Kbd`, `KbdGroup`
|
|
226
229
|
- `resizable`
|
|
@@ -231,7 +234,7 @@ Unless noted otherwise, each module also exports its public `*Props` types from
|
|
|
231
234
|
- Exports: `Separator`
|
|
232
235
|
- `stack`
|
|
233
236
|
- Exports: `Stack`, `stackVariants`
|
|
234
|
-
- Notes: supports `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'`
|
|
237
|
+
- Notes: supports `gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl'` (`4/8/16/24/32px`)
|
|
235
238
|
- `table`
|
|
236
239
|
- Exports: `Table`, `TableHeader`, `TableBody`, `TableFooter`, `TableHead`, `TableRow`, `TableCell`, `TableCaption`
|
|
237
240
|
- `timeline`
|
|
@@ -305,7 +305,9 @@ Choose components by intent:
|
|
|
305
305
|
- typography:
|
|
306
306
|
- `Anchor`, `Code`, `Heading`, `List`, `Text`
|
|
307
307
|
- layout and display:
|
|
308
|
-
- `Card`, `Accordion`, `Collapsible`, `Container`, `Group`, `Stack`, `Center`, `Separator`, `ScrollArea`, `Resizable`, `Table`, `Timeline`, `Chart`, `Carousel`, `Avatar`, `Empty`, `Kbd`
|
|
308
|
+
- `Card`, `Accordion`, `Collapsible`, `Container`, `Flex`, `Group`, `Stack`, `Center`, `Separator`, `ScrollArea`, `Resizable`, `Table`, `Timeline`, `Chart`, `Carousel`, `Avatar`, `Empty`, `Kbd`
|
|
309
|
+
|
|
310
|
+
Layout spacing props named `gap`, `rowGap`, and `columnGap` use the shared `xs` to `xl` scale: `4/8/16/24/32px`.
|
|
309
311
|
|
|
310
312
|
## Inspection workflow
|
|
311
313
|
|