@gild-ui/react 0.1.0-alpha.0 → 0.1.0-alpha.2
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/Accordion.cjs +2 -2
- package/dist/Accordion.d.cts +1 -1
- package/dist/Accordion.d.mts +2 -2
- package/dist/Accordion.mjs +2 -2
- package/dist/{Accordion.types-D06ViRMj.d.mts → Accordion.types-DxvwAfZc.d.mts} +233 -48
- package/dist/Alert.cjs +2 -2
- package/dist/Alert.d.cts +1 -1
- package/dist/Alert.d.mts +1 -1
- package/dist/Alert.mjs +2 -2
- package/dist/AppBar.cjs +1 -1
- package/dist/AppBar.d.cts +1 -1
- package/dist/AppBar.d.mts +1 -1
- package/dist/AppBar.mjs +1 -1
- package/dist/Autocomplete.cjs +2 -2
- package/dist/Autocomplete.d.cts +1 -1
- package/dist/Autocomplete.d.mts +1 -1
- package/dist/Autocomplete.mjs +2 -2
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.d.cts +1 -1
- package/dist/Avatar.d.mts +1 -1
- package/dist/Avatar.mjs +1 -1
- package/dist/Backdrop.cjs +2 -2
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Backdrop.mjs +2 -2
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.d.cts +1 -1
- package/dist/Badge.d.mts +1 -1
- package/dist/Badge.mjs +1 -1
- package/dist/Breadcrumbs.cjs +2 -2
- package/dist/Breadcrumbs.d.cts +2 -2
- package/dist/Breadcrumbs.d.mts +2 -2
- package/dist/Breadcrumbs.mjs +2 -2
- package/dist/Button.cjs +1 -1
- package/dist/Button.d.cts +2 -50
- package/dist/Button.d.mts +2 -2
- package/dist/Button.mjs +1 -1
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.d.cts +2 -2
- package/dist/ButtonGroup.d.mts +2 -2
- package/dist/ButtonGroup.mjs +1 -1
- package/dist/Card.cjs +2 -2
- package/dist/Card.d.cts +3 -3
- package/dist/Card.d.mts +4 -4
- package/dist/Card.mjs +2 -2
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.d.cts +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/Chip.cjs +2 -2
- package/dist/Chip.d.cts +1 -1
- package/dist/Chip.d.mts +1 -1
- package/dist/Chip.mjs +2 -2
- package/dist/CircularProgress.cjs +1 -1
- package/dist/CircularProgress.d.cts +2 -2
- package/dist/CircularProgress.d.mts +2 -2
- package/dist/CircularProgress.mjs +1 -1
- package/dist/Collapse.cjs +1 -1
- package/dist/Collapse.d.cts +2 -2
- package/dist/Collapse.d.mts +2 -2
- package/dist/Collapse.mjs +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.d.cts +2 -2
- package/dist/Drawer.d.mts +3 -3
- package/dist/Drawer.mjs +1 -1
- package/dist/Fab.cjs +1 -1
- package/dist/Fab.d.cts +2 -2
- package/dist/Fab.d.mts +2 -2
- package/dist/Fab.mjs +1 -1
- package/dist/FabMenu.cjs +2 -2
- package/dist/FabMenu.d.cts +1 -1
- package/dist/FabMenu.d.mts +2 -2
- package/dist/FabMenu.mjs +2 -2
- package/dist/Fade.d.cts +1 -1
- package/dist/Fade.d.mts +1 -1
- package/dist/Flex.cjs +2 -2
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +2 -3
- package/dist/FocusTrap.cjs +1 -1
- package/dist/FocusTrap.d.cts +1 -1
- package/dist/FocusTrap.d.mts +1 -1
- package/dist/FocusTrap.mjs +1 -1
- package/dist/Form.cjs +1 -1
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/Form.mjs +1 -1
- package/dist/FormControl.cjs +1 -1
- package/dist/FormControl.d.cts +1 -1
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControl.mjs +1 -1
- package/dist/FormHelperText.cjs +1 -1
- package/dist/FormHelperText.d.cts +2 -2
- package/dist/FormHelperText.d.mts +2 -2
- package/dist/FormHelperText.mjs +1 -1
- package/dist/FormLabel.cjs +1 -1
- package/dist/FormLabel.d.cts +2 -2
- package/dist/FormLabel.d.mts +2 -2
- package/dist/FormLabel.mjs +1 -1
- package/dist/Global.d.cts +1 -1
- package/dist/Global.d.mts +1 -1
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.d.cts +1 -1
- package/dist/Grid.d.mts +1 -1
- package/dist/Grid.mjs +2 -2
- package/dist/Grow.d.cts +1 -1
- package/dist/Grow.d.mts +1 -1
- package/dist/{Icon-CpmLCuWc.mjs → Icon-DBgqmUb3.mjs} +1 -1
- package/dist/{Icon-D8CNaUwd.cjs → Icon-DPIqGixm.cjs} +1 -1
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.d.cts +2 -2
- package/dist/Icon.d.mts +2 -2
- package/dist/Icon.mjs +1 -1
- package/dist/Image.cjs +1 -1
- package/dist/Image.d.cts +1 -1
- package/dist/Image.d.mts +1 -1
- package/dist/Image.mjs +1 -1
- package/dist/LinearProgress.cjs +1 -1
- package/dist/LinearProgress.d.cts +2 -2
- package/dist/LinearProgress.d.mts +2 -2
- package/dist/LinearProgress.mjs +1 -1
- package/dist/Link.cjs +1 -1
- package/dist/Link.d.cts +2 -2
- package/dist/Link.d.mts +2 -2
- package/dist/Link.mjs +1 -1
- package/dist/{Menu-CEr2M5u0.mjs → Menu-Ca7aUnLg.mjs} +2 -2
- package/dist/{Menu-DA9QNBfE.cjs → Menu-DlPDdIAu.cjs} +2 -2
- package/dist/Menu.cjs +3 -3
- package/dist/Menu.d.cts +2 -2
- package/dist/Menu.d.mts +3 -3
- package/dist/Menu.mjs +3 -3
- package/dist/{MenuItem-D3lzWmIO.cjs → MenuItem-2UwOFsM6.cjs} +3 -3
- package/dist/{MenuItem-DzHB9Es6.mjs → MenuItem-w7D1-AYW.mjs} +3 -3
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.d.cts +2 -2
- package/dist/MenuItem.d.mts +2 -2
- package/dist/MenuItem.mjs +1 -1
- package/dist/{Modal-C5OWwkvp.cjs → Modal-B6_1ugIW.cjs} +2 -2
- package/dist/{Modal-BphaFrcw.mjs → Modal-Ouz9KdOG.mjs} +2 -2
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +9 -48
- package/dist/Modal.d.mts +2 -2
- package/dist/Modal.mjs +1 -1
- package/dist/NativeSelect.cjs +2 -2
- package/dist/NativeSelect.d.cts +2 -2
- package/dist/NativeSelect.d.mts +2 -2
- package/dist/NativeSelect.mjs +2 -2
- package/dist/NavTree.cjs +2 -2
- package/dist/NavTree.d.cts +1 -1
- package/dist/NavTree.d.mts +1 -1
- package/dist/NavTree.mjs +2 -2
- package/dist/NumberInput.cjs +2 -2
- package/dist/NumberInput.d.cts +1 -1
- package/dist/NumberInput.d.mts +1 -1
- package/dist/NumberInput.mjs +2 -2
- package/dist/Pagination.cjs +2 -2
- package/dist/Pagination.d.cts +1 -1
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.mjs +2 -2
- package/dist/Paper.cjs +1 -1
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +2 -2
- package/dist/Paper.mjs +1 -1
- package/dist/{Popover-DsPTeEPx.mjs → Popover-ZsN1txGi.mjs} +2 -2
- package/dist/{Popover-DY0ooIAM.cjs → Popover-d5fip8Fi.cjs} +2 -2
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +2 -2
- package/dist/Popover.d.mts +3 -3
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.cjs +1 -1
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +2 -2
- package/dist/Pressable.mjs +1 -1
- package/dist/Quote.cjs +2 -2
- package/dist/Quote.d.cts +1 -1
- package/dist/Quote.d.mts +1 -1
- package/dist/Quote.mjs +2 -2
- package/dist/Radio.cjs +1 -1
- package/dist/Radio.d.cts +1 -1
- package/dist/Radio.d.mts +1 -1
- package/dist/Radio.mjs +1 -1
- package/dist/RangeInput.cjs +1 -1
- package/dist/RangeInput.d.cts +1 -1
- package/dist/RangeInput.d.mts +1 -1
- package/dist/RangeInput.mjs +1 -1
- package/dist/Rating.cjs +2 -2
- package/dist/Rating.d.cts +1 -1
- package/dist/Rating.d.mts +1 -1
- package/dist/Rating.mjs +2 -2
- package/dist/ScrollArea.cjs +1 -1
- package/dist/ScrollArea.d.cts +1 -1
- package/dist/ScrollArea.d.mts +1 -1
- package/dist/ScrollArea.mjs +1 -1
- package/dist/Select.cjs +3 -3
- package/dist/Select.d.cts +2 -2
- package/dist/Select.d.mts +2 -2
- package/dist/Select.mjs +3 -3
- package/dist/Sidebar.cjs +2 -2
- package/dist/Sidebar.d.cts +2 -2
- package/dist/Sidebar.d.mts +3 -3
- package/dist/Sidebar.mjs +2 -2
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.d.cts +1 -1
- package/dist/Skeleton.d.mts +1 -1
- package/dist/Skeleton.mjs +1 -1
- package/dist/Slide.cjs +7 -1
- package/dist/Slide.d.cts +1 -1
- package/dist/Slide.d.mts +1 -1
- package/dist/Slide.mjs +7 -1
- package/dist/Snackbar.cjs +1 -1
- package/dist/Snackbar.d.cts +2 -2
- package/dist/Snackbar.d.mts +2 -2
- package/dist/Snackbar.mjs +1 -1
- package/dist/StyleSheet.d.cts +1 -1
- package/dist/StyleSheet.d.mts +1 -1
- package/dist/Switch.cjs +1 -1
- package/dist/Switch.d.cts +1 -1
- package/dist/Switch.d.mts +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Table.cjs +3 -3
- package/dist/Table.d.cts +2 -2
- package/dist/Table.d.mts +3 -3
- package/dist/Table.mjs +3 -3
- package/dist/Tabs.cjs +6 -6
- package/dist/Tabs.d.cts +1 -1
- package/dist/Tabs.d.mts +1 -1
- package/dist/Tabs.mjs +6 -6
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.d.cts +2 -81
- package/dist/TextInput.d.mts +2 -81
- package/dist/TextInput.mjs +1 -1
- package/dist/ThemeProvider.d.cts +1 -1
- package/dist/ThemeProvider.d.mts +1 -1
- package/dist/ToggleButton.cjs +1 -1
- package/dist/ToggleButton.d.cts +2 -2
- package/dist/ToggleButton.d.mts +3 -3
- package/dist/ToggleButton.mjs +1 -1
- package/dist/{Tooltip-DQo2zZH0.mjs → Tooltip-Bt5lr52c.mjs} +1 -1
- package/dist/{Tooltip-DaB6bJKM.cjs → Tooltip-CUpZpoC9.cjs} +1 -1
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.d.cts +1 -1
- package/dist/Tooltip.d.mts +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TransferList.cjs +2 -2
- package/dist/TransferList.d.cts +1 -1
- package/dist/TransferList.d.mts +1 -1
- package/dist/TransferList.mjs +2 -2
- package/dist/Typography.cjs +1 -1
- package/dist/Typography.d.cts +2 -29
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +1 -1
- package/dist/{View-DkfIBlcy.cjs → View-DFnZ41Xe.cjs} +7 -15
- package/dist/{View-BmuIFO7p.mjs → View-zuvgW6DP.mjs} +7 -16
- package/dist/View.cjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -1
- package/dist/Zoom.d.cts +1 -1
- package/dist/Zoom.d.mts +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/css.d.cts +1 -1
- package/dist/css.d.mts +1 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-CT311xS9.d.cts → index-B3jHcw5h.d.cts} +2 -2
- package/dist/{index-CKHGDpGJ.d.mts → index-Bf-ZHQLG.d.mts} +2 -2
- package/dist/{index-CD0xu_P6.d.mts → index-CAMwJg71.d.mts} +1 -1
- package/dist/index-CLQt_mOa.d.mts +3 -0
- package/dist/{index-CmG1wW5D.d.mts → index-Cqse4F32.d.mts} +2 -2
- package/dist/index-CsYK-ukA.d.mts +3 -0
- package/dist/{index-CA5HTpT9.d.mts → index-D9Gg2NWm.d.mts} +1 -1
- package/dist/{index-DZFF1vMV.d.cts → index-DPQxIeZF.d.cts} +225 -40
- package/dist/{index-CEtnJkY4.d.cts → index-Dc7XiT_v.d.cts} +1 -1
- package/dist/{index-Blc3XujV.d.mts → index-Djum1XiO.d.mts} +1 -1
- package/dist/{index-Bgd6kxq_.d.mts → index-DtfH-dhY.d.mts} +2 -2
- package/dist/{index-B7LR7Up3.d.mts → index-IB1nBqEO.d.mts} +2 -2
- package/dist/{index-C21GrYkd.d.mts → index-phuw9VpI.d.mts} +9 -48
- package/dist/index-yCzwpbBP.d.mts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/keyframes.d.cts +1 -1
- package/dist/keyframes.d.mts +1 -1
- package/dist/{styled-DnzWP4pc.cjs → styled-Dr3_OY1-.cjs} +15 -1
- package/dist/{styled-nr_qC_Yx.mjs → styled-tLHNvicL.mjs} +15 -1
- package/dist/styled.cjs +1 -1
- package/dist/styled.d.cts +1 -1
- package/dist/styled.d.mts +1 -1
- package/dist/styled.mjs +1 -1
- package/dist/useDefaultProps.d.cts +1 -1
- package/dist/useDefaultProps.d.mts +1 -1
- package/dist/useMediaQuery.d.cts +1 -1
- package/dist/useMediaQuery.d.mts +1 -1
- package/dist/useStyle.d.cts +1 -1
- package/dist/useStyle.d.mts +1 -1
- package/dist/useTheme.d.cts +1 -1
- package/dist/useTheme.d.mts +1 -1
- package/dist/{useTransition-BwpSHKSf.d.mts → useTransition-BzwifRXe.d.mts} +1 -1
- package/dist/{useTransition-B4KGUO9m.d.cts → useTransition-lt8_WKk-.d.cts} +1 -1
- package/dist/withStyle.d.cts +1 -1
- package/dist/withStyle.d.mts +1 -1
- package/dist/withTheme.d.cts +1 -1
- package/dist/withTheme.d.mts +1 -1
- package/package.json +24 -21
- package/dist/index-CWOcMPWz.d.mts +0 -51
- package/dist/index-MfIvwyA4.d.mts +0 -1
- package/dist/index-Tg9lQlVl.d.mts +0 -30
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./LayoutProvider-DFwC1-h0.cjs";
|
|
2
|
-
import { CSSProperties, ComponentClass, ComponentProps, ComponentType, ElementType, FunctionComponent, HTMLAttributes, JSX, ReactElement, ReactNode, Ref } from "react";
|
|
2
|
+
import { ButtonHTMLAttributes, CSSProperties, ChangeEventHandler, ComponentClass, ComponentProps, ComponentType, ElementType, FunctionComponent, HTMLAttributes, InputHTMLAttributes, JSX, ReactElement, ReactNode, Ref, TextareaHTMLAttributes } from "react";
|
|
3
3
|
import * as GildCore from "@gild-ui/core/theme";
|
|
4
|
-
import { ButtonVariants, InputVariantKey, OpenScale, Register, RegisteredTheme, Theme as Theme$1, ThemeBackground, ThemeColor, ThemeDefaults, ThemeFonts, ThemeRadii, ThemeSize, ThemeSpaceKey, ThemeText, ThemeTransitionEasing, ThemeTypography, ThemeZOrder, VariantOf } from "@gild-ui/core/theme";
|
|
4
|
+
import { ButtonVariants, InputVariantKey, OpenScale, Register, RegisteredTheme, Theme as Theme$1, ThemeBackground, ThemeColor, ThemeDefaults, ThemeFonts, ThemeRadii, ThemeSize, ThemeSpaceKey, ThemeText, ThemeTransitionEasing, ThemeTypography, ThemeZOrder, TypographyVariant, VariantOf } from "@gild-ui/core/theme";
|
|
5
5
|
import { CSSObject as CSSObject$1, Global, LiveValue, PropsOf, SheetStyleProp, StyleSheet, StyledStatics, alpha, asIs, configure as configureEngine, css, defineTheme, fallback, keyframes, negate, setNonceSource, useMediaQuery, useStyle, useStyleValue, useTheme, val, variable, withStyle, withTheme } from "@umber-style/react";
|
|
6
|
-
import { BorderProps, FlexboxProps, LayoutFrameProps, LayoutProps, PositionProps, SpaceProps, SpanProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
6
|
+
import { BorderProps, FlexboxProps, LayoutFrameProps, LayoutProps, PositionProps, SpaceProps, SpanProps, TypographyProps as TypographyProps$1 } from "@soroush.tech/styled-system";
|
|
7
7
|
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@umber-style/styled";
|
|
8
8
|
/**
|
|
9
9
|
* Once themes are registered, `T` may have no key the registered themes lack, at any depth: each
|
|
@@ -136,6 +136,31 @@ interface BreadcrumbsOwnerState {
|
|
|
136
136
|
type BreadcrumbsSlot = 'root' | 'list' | 'item' | 'separator' | 'collapsed' | 'collapsedIcon';
|
|
137
137
|
/** What `theme.components.Breadcrumbs` takes. */
|
|
138
138
|
type BreadcrumbsThemeConfig = ComponentConfig<BreadcrumbsOwnerState, BreadcrumbsSlot>;
|
|
139
|
+
/**
|
|
140
|
+
* What the `style` prop of a component takes: the engine's `SheetStyleProp`, so an entry of
|
|
141
|
+
* `StyleSheet.create` (of an object, or a handle `sheet.card` of a sheet of the theme) or a list of
|
|
142
|
+
* them, with `false`, `null` and `undefined` for a condition that is off. A plain style object is not
|
|
143
|
+
* one: it is a type error.
|
|
144
|
+
*/
|
|
145
|
+
type StyleOverride = SheetStyleProp;
|
|
146
|
+
/**
|
|
147
|
+
* What one slot of a component takes in `slotProps`: a `style` (as above), a `className`, and `data-*`
|
|
148
|
+
* and `aria-*` attributes. Nothing a component controls (its handlers, `ref`, `id`, `role`) is here.
|
|
149
|
+
*/
|
|
150
|
+
type SlotOverride = {
|
|
151
|
+
style?: StyleOverride;
|
|
152
|
+
className?: string;
|
|
153
|
+
} & { [K in `data-${string}` | `aria-${string}`]?: string | number | boolean | undefined; };
|
|
154
|
+
/** The `slotProps` of a component: one `SlotOverride` for each slot it declares for the theme (`<Name>Slot`). */
|
|
155
|
+
type SlotProps<Slot extends string> = { [S in Slot]?: SlotOverride; };
|
|
156
|
+
/**
|
|
157
|
+
* A component made by `styled` with its `style` narrowed to `StyleOverride`, for one the library
|
|
158
|
+
* exports: `styled` itself takes any style on the element it makes.
|
|
159
|
+
*/
|
|
160
|
+
type StrictStyled<C extends ElementType & StyledStatics> = FunctionComponent<Omit<ComponentProps<C>, 'style' | 'slotProps'> & {
|
|
161
|
+
style?: StyleOverride;
|
|
162
|
+
slotProps?: SlotProps<'root'>;
|
|
163
|
+
}> & StyledStatics;
|
|
139
164
|
/** The corner shapes of a control or a surface. */
|
|
140
165
|
type ShapeKey$2 = 'square' | 'rounded' | 'pill';
|
|
141
166
|
/** The resolved props Button's styled roots receive - what `ownerState` exposes. */
|
|
@@ -153,6 +178,51 @@ type ButtonVariant = keyof ButtonVariants | VariantOf<'Button'>;
|
|
|
153
178
|
type ButtonSlot = 'root' | 'label' | 'icon' | 'loader';
|
|
154
179
|
/** What `theme.components.Button` takes. */
|
|
155
180
|
type ButtonThemeConfig = ComponentConfig<ButtonOwnerState, ButtonSlot>;
|
|
181
|
+
/** Augmentable via the `ButtonVariants` interface, or defined by a registered theme - style new values through `theme.components.Button.variants`. */
|
|
182
|
+
type ButtonColor = ThemeColor;
|
|
183
|
+
type ButtonSize = keyof AppTheme['sizes'];
|
|
184
|
+
type ButtonShape = 'square' | 'rounded' | 'pill';
|
|
185
|
+
type ButtonLoadingPosition = 'start' | 'end' | 'center';
|
|
186
|
+
/** Valid values for the gap prop - resolves against theme.space. Default: `1` (8px). */
|
|
187
|
+
type GapToken$1 = keyof AppTheme['space'];
|
|
188
|
+
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'style'>, SpaceProps, LayoutProps, BorderProps, TypographyProps$1 {
|
|
189
|
+
/** Visual style - filled, stroked, or ghost. Default: `'contained'`, overridable via `theme.defaults.buttonVariant`. */
|
|
190
|
+
variant?: ButtonVariant;
|
|
191
|
+
/** Color palette - maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
192
|
+
color?: ButtonColor;
|
|
193
|
+
/** Size token - controls padding and font size. Default: `'md'`, overridable via `theme.defaults.size`. */
|
|
194
|
+
size?: ButtonSize;
|
|
195
|
+
/** Gap between icon and label - resolves against theme.space. Default: `1` (8px). */
|
|
196
|
+
gap?: GapToken$1;
|
|
197
|
+
/** Icon rendered before the label. */
|
|
198
|
+
startIcon?: ReactNode;
|
|
199
|
+
/** Icon rendered after the label. */
|
|
200
|
+
endIcon?: ReactNode;
|
|
201
|
+
/** Stretch button to full container width. */
|
|
202
|
+
fullWidth?: boolean;
|
|
203
|
+
/** Shows loading indicator and disables the button. */
|
|
204
|
+
loading?: boolean;
|
|
205
|
+
/** Custom loading element. Default: animated spinner. */
|
|
206
|
+
loadingIndicator?: ReactNode;
|
|
207
|
+
/**
|
|
208
|
+
* Corner shape - sets the default `borderRadius`.
|
|
209
|
+
* `"square"` → 0 · `"rounded"` → `theme.radii.md` (default) · `"pill"` → 9999px
|
|
210
|
+
* The `borderRadius` prop always overrides this.
|
|
211
|
+
*/
|
|
212
|
+
shape?: ButtonShape;
|
|
213
|
+
/** Where the loading indicator appears. Default: `"center"`. */
|
|
214
|
+
loadingPosition?: ButtonLoadingPosition;
|
|
215
|
+
/** The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. */
|
|
216
|
+
href?: string;
|
|
217
|
+
/** Anchor `target` - only meaningful when `href` is set. */
|
|
218
|
+
target?: string;
|
|
219
|
+
/** Anchor `rel` - only meaningful when `href` is set. */
|
|
220
|
+
rel?: string;
|
|
221
|
+
/** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
|
|
222
|
+
style?: StyleOverride;
|
|
223
|
+
/** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
|
|
224
|
+
slotProps?: SlotProps<ButtonSlot>;
|
|
225
|
+
}
|
|
156
226
|
/** The resolved props ButtonGroup's styled elements receive - what `ownerState` exposes. */
|
|
157
227
|
type ButtonGroupOwnerState = Record<string, unknown>;
|
|
158
228
|
/** The slots of ButtonGroup a theme can style with `styleOverrides`. */
|
|
@@ -227,31 +297,6 @@ interface CollapseOwnerState {
|
|
|
227
297
|
type CollapseSlot = 'root' | 'wrapper' | 'inner';
|
|
228
298
|
/** What `theme.components.Collapse` takes. */
|
|
229
299
|
type CollapseThemeConfig = ComponentConfig<CollapseOwnerState, CollapseSlot>;
|
|
230
|
-
/**
|
|
231
|
-
* What the `style` prop of a component takes: the engine's `SheetStyleProp`, so an entry of
|
|
232
|
-
* `StyleSheet.create` (of an object, or a handle `sheet.card` of a sheet of the theme) or a list of
|
|
233
|
-
* them, with `false`, `null` and `undefined` for a condition that is off. A plain style object is not
|
|
234
|
-
* one: it is a type error.
|
|
235
|
-
*/
|
|
236
|
-
type StyleOverride = SheetStyleProp;
|
|
237
|
-
/**
|
|
238
|
-
* What one slot of a component takes in `slotProps`: a `style` (as above), a `className`, and `data-*`
|
|
239
|
-
* and `aria-*` attributes. Nothing a component controls (its handlers, `ref`, `id`, `role`) is here.
|
|
240
|
-
*/
|
|
241
|
-
type SlotOverride = {
|
|
242
|
-
style?: StyleOverride;
|
|
243
|
-
className?: string;
|
|
244
|
-
} & { [K in `data-${string}` | `aria-${string}`]?: string | number | boolean | undefined; };
|
|
245
|
-
/** The `slotProps` of a component: one `SlotOverride` for each slot it declares for the theme (`<Name>Slot`). */
|
|
246
|
-
type SlotProps<Slot extends string> = { [S in Slot]?: SlotOverride; };
|
|
247
|
-
/**
|
|
248
|
-
* A component made by `styled` with its `style` narrowed to `StyleOverride`, for one the library
|
|
249
|
-
* exports: `styled` itself takes any style on the element it makes.
|
|
250
|
-
*/
|
|
251
|
-
type StrictStyled<C extends ElementType & StyledStatics> = FunctionComponent<Omit<ComponentProps<C>, 'style' | 'slotProps'> & {
|
|
252
|
-
style?: StyleOverride;
|
|
253
|
-
slotProps?: SlotProps<'root'>;
|
|
254
|
-
}> & StyledStatics;
|
|
255
300
|
/** The resolved props Paper's styled elements receive - what `ownerState` exposes. */
|
|
256
301
|
type PaperOwnerState = Record<string, unknown>;
|
|
257
302
|
/** The slots of Paper a theme can style with `styleOverrides`. */
|
|
@@ -269,7 +314,7 @@ type ViewBorderWidthToken = keyof Theme['borderWidths'];
|
|
|
269
314
|
/** Valid theme tokens for border-radius. Raw CSS pixel values (e.g. '6px', '9999px') are also accepted. */
|
|
270
315
|
type OrPixels<Token extends PropertyKey> = Token | `${number}px`;
|
|
271
316
|
type ViewBorderRadiusToken = OrPixels<keyof Theme['radii']>;
|
|
272
|
-
interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>, SpaceProps, LayoutProps, TypographyProps, Omit<BorderProps, 'borderColor' | 'borderWidth' | 'borderRadius'>, PositionProps, SpanProps, LayoutFrameProps {
|
|
317
|
+
interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>, SpaceProps, LayoutProps, TypographyProps$1, Omit<BorderProps, 'borderColor' | 'borderWidth' | 'borderRadius'>, PositionProps, SpanProps, LayoutFrameProps {
|
|
273
318
|
/** Overrides the CSS of the element: an entry of `StyleSheet.create`, or a list of them. */
|
|
274
319
|
style?: StyleOverride;
|
|
275
320
|
/** Overrides for the slot a theme can style: `style`, `className`, `data-*` and `aria-*`. */
|
|
@@ -286,16 +331,16 @@ interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>
|
|
|
286
331
|
/** CSS order for flex/grid item placement. Accepts responsive arrays. */
|
|
287
332
|
order?: FlexboxProps['order'];
|
|
288
333
|
}
|
|
289
|
-
declare const View: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, ViewProps, {
|
|
290
|
-
theme?: AppTheme;
|
|
291
|
-
as?: React.ElementType;
|
|
292
|
-
} & import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & object>>;
|
|
293
334
|
/** The resolved props View's styled elements receive - what `ownerState` exposes. */
|
|
294
335
|
type ViewOwnerState = Record<string, unknown>;
|
|
295
336
|
/** The slots of View a theme can style with `styleOverrides`. */
|
|
296
337
|
type ViewSlot = 'root';
|
|
297
338
|
/** What `theme.components.View` takes. */
|
|
298
339
|
type ViewThemeConfig = ComponentConfig<ViewOwnerState, ViewSlot>;
|
|
340
|
+
declare const View: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, ViewProps, {
|
|
341
|
+
theme?: AppTheme;
|
|
342
|
+
as?: React.ElementType;
|
|
343
|
+
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object>>;
|
|
299
344
|
/** Valid values for the gap prop - derived from theme.space keys. */
|
|
300
345
|
type GapToken = keyof Theme['space'];
|
|
301
346
|
/**
|
|
@@ -304,6 +349,12 @@ type GapToken = keyof Theme['space'];
|
|
|
304
349
|
* `flexDirection="row"`. Columns are Grid's: content on the page columns uses `<Grid layout>`.
|
|
305
350
|
*/
|
|
306
351
|
interface FlexProps extends ViewProps, FlexboxProps {}
|
|
352
|
+
/** The resolved props Flex's styled elements receive - what `ownerState` exposes. */
|
|
353
|
+
type FlexOwnerState = Record<string, unknown>;
|
|
354
|
+
/** The slots of Flex a theme can style with `styleOverrides`. */
|
|
355
|
+
type FlexSlot = 'root';
|
|
356
|
+
/** What `theme.components.Flex` takes. */
|
|
357
|
+
type FlexThemeConfig = ComponentConfig<FlexOwnerState, FlexSlot>;
|
|
307
358
|
declare const Flex: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, FlexProps, Omit<Omit<{
|
|
308
359
|
theme?: AppTheme;
|
|
309
360
|
as?: React.ElementType;
|
|
@@ -316,12 +367,6 @@ declare const Flex: StrictStyled<import("@umber-style/react").StyledComponent<im
|
|
|
316
367
|
} & {
|
|
317
368
|
theme?: AppTheme;
|
|
318
369
|
} & object>>;
|
|
319
|
-
/** The resolved props Flex's styled elements receive - what `ownerState` exposes. */
|
|
320
|
-
type FlexOwnerState = Record<string, unknown>;
|
|
321
|
-
/** The slots of Flex a theme can style with `styleOverrides`. */
|
|
322
|
-
type FlexSlot = 'root';
|
|
323
|
-
/** What `theme.components.Flex` takes. */
|
|
324
|
-
type FlexThemeConfig = ComponentConfig<FlexOwnerState, FlexSlot>;
|
|
325
370
|
type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
326
371
|
interface PaperProps extends FlexProps {
|
|
327
372
|
/** Shadow depth - 0 (flat) to 24 (highest). Resolves to theme.shadows[n]. Default: 1. */
|
|
@@ -478,6 +523,45 @@ interface MenuListOwnerState {
|
|
|
478
523
|
type MenuListSlot = 'root';
|
|
479
524
|
/** What `theme.components.MenuList` takes. */
|
|
480
525
|
type MenuListThemeConfig = ComponentConfig<MenuListOwnerState, MenuListSlot>;
|
|
526
|
+
type ModalCloseReason = 'escapeKey' | 'backdropClick';
|
|
527
|
+
type ModalScroll = 'paper' | 'body';
|
|
528
|
+
interface ModalProps {
|
|
529
|
+
/** If true, the modal is shown. */
|
|
530
|
+
isOpen: boolean;
|
|
531
|
+
/** A single content element. */
|
|
532
|
+
children: ReactNode;
|
|
533
|
+
/** Fired on Escape (top modal only) or backdrop click. */
|
|
534
|
+
onClose?: (event: Event | React.SyntheticEvent, reason: ModalCloseReason) => void;
|
|
535
|
+
/** Render the dimmed backdrop. Default: true. */
|
|
536
|
+
hasBackdrop?: boolean;
|
|
537
|
+
/** Keep the children mounted while closed. Default: false. */
|
|
538
|
+
shouldKeepMounted?: boolean;
|
|
539
|
+
/** Portal the modal into `portalContainer`. Default: true. */
|
|
540
|
+
shouldUsePortal?: boolean;
|
|
541
|
+
/** Portal target, or a function returning one. Defaults to the document body. */
|
|
542
|
+
portalContainer?: HTMLElement | (() => HTMLElement | null) | null;
|
|
543
|
+
/** Lock body scroll while open. Default: true. */
|
|
544
|
+
shouldLockScroll?: boolean;
|
|
545
|
+
/** Skip `aria-hidden` on background content - for non-modal popovers whose trigger stays focused. Default: false. */
|
|
546
|
+
disableAriaHidden?: boolean;
|
|
547
|
+
/** Move focus into the modal on open. Default: true. */
|
|
548
|
+
shouldAutoFocus?: boolean;
|
|
549
|
+
/** Trap Tab focus within the modal. Default: true. */
|
|
550
|
+
shouldTrapFocus?: boolean;
|
|
551
|
+
/** Pull focus back into the modal whenever it escapes. Default: true. */
|
|
552
|
+
shouldEnforceFocus?: boolean;
|
|
553
|
+
/** Restore focus to the trigger on close. Default: true. */
|
|
554
|
+
shouldRestoreFocus?: boolean;
|
|
555
|
+
/** How long content scrolls: within the content (`'paper'`) or the whole root (`'body'`). Default: 'paper'. */
|
|
556
|
+
scroll?: ModalScroll;
|
|
557
|
+
/** Stacking layer from `theme.zOrder`. Default: 'modal'. */
|
|
558
|
+
layer?: keyof Theme['zOrder'];
|
|
559
|
+
/** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
|
|
560
|
+
style?: StyleOverride;
|
|
561
|
+
className?: string;
|
|
562
|
+
/** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
|
|
563
|
+
slotProps?: SlotProps<ModalSlot>;
|
|
564
|
+
}
|
|
481
565
|
/** The resolved props Modal's styled elements receive - what `ownerState` exposes. */
|
|
482
566
|
type ModalOwnerState = Record<string, unknown>;
|
|
483
567
|
/** The slots of Modal a theme can style with `styleOverrides`. */
|
|
@@ -771,6 +855,83 @@ type TabsVariant = keyof TabsVariants | VariantOf<'Tabs'>;
|
|
|
771
855
|
type TabsSlot = 'root' | 'list' | 'indicator' | 'startContent' | 'endContent' | 'scrollButton' | 'overflowButton' | 'overflowClose';
|
|
772
856
|
/** What `theme.components.Tabs` takes. */
|
|
773
857
|
type TabsThemeConfig = ComponentConfig<TabsOwnerState, TabsSlot>;
|
|
858
|
+
type TextInputColor = keyof Theme['palette'];
|
|
859
|
+
type TextInputTextColor = keyof Theme['text'];
|
|
860
|
+
type TextInputVariant = 'default' | 'outlined' | 'text' | 'underline';
|
|
861
|
+
type TextInputSize = keyof Theme['sizes'];
|
|
862
|
+
interface TextInputClasses {
|
|
863
|
+
root?: string;
|
|
864
|
+
input?: string;
|
|
865
|
+
}
|
|
866
|
+
interface TextInputProps extends SpaceProps, Pick<LayoutProps, 'width' | 'minWidth' | 'maxWidth'> {
|
|
867
|
+
/** Corner radius - applies only to `default` and `outlined` variants. Resolves against `theme.radii`. */
|
|
868
|
+
borderRadius?: keyof Theme['radii'];
|
|
869
|
+
autoComplete?: string;
|
|
870
|
+
autoFocus?: boolean;
|
|
871
|
+
/** Class names applied to inner elements. `root` targets the wrapper; `input` targets the native element. */
|
|
872
|
+
classes?: TextInputClasses;
|
|
873
|
+
/** Override components for the Root and Input slots. */
|
|
874
|
+
components?: {
|
|
875
|
+
Input?: ElementType;
|
|
876
|
+
Root?: ElementType;
|
|
877
|
+
};
|
|
878
|
+
/** Focus/active border color - resolves to `theme.palette[color].main`. Default: 'primary', overridable via `theme.defaults.color`. */
|
|
879
|
+
color?: TextInputColor;
|
|
880
|
+
/** Text color of the typed value - resolves against `theme.text`. Default: the accent `color`'s `main`. */
|
|
881
|
+
textColor?: TextInputTextColor;
|
|
882
|
+
/** Disables the input. */
|
|
883
|
+
disabled?: boolean;
|
|
884
|
+
/** Marks the field as invalid - applies error border color. */
|
|
885
|
+
error?: boolean;
|
|
886
|
+
/** Stretches the root to fill its container. */
|
|
887
|
+
fullWidth?: boolean;
|
|
888
|
+
id?: string;
|
|
889
|
+
/** Custom component for the input element. Takes priority over `components.Input`. Default: `'input'`. */
|
|
890
|
+
inputComponent?: ElementType;
|
|
891
|
+
/** Native HTML `size` attribute - visible width in character widths. Has no effect with `multiline` or `resize`. */
|
|
892
|
+
inputSize?: number;
|
|
893
|
+
/** Extra props spread onto the native element. Explicit top-level props take priority. */
|
|
894
|
+
inputProps?: Omit<InputHTMLAttributes<HTMLInputElement>, 'style'> & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'style'>;
|
|
895
|
+
/** Maximum rows before the auto-grow textarea starts scrolling. Only applies when `resize` is set. */
|
|
896
|
+
maxRows?: number | string;
|
|
897
|
+
/** Minimum rows for the auto-grow textarea. Only applies when `resize` is set. */
|
|
898
|
+
minRows?: number | string;
|
|
899
|
+
/**
|
|
900
|
+
* Renders a `<textarea>` that grows with its content.
|
|
901
|
+
* Combine with `rows` to fix the height instead of auto-growing.
|
|
902
|
+
*/
|
|
903
|
+
multiline?: boolean;
|
|
904
|
+
name?: string;
|
|
905
|
+
onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
906
|
+
placeholder?: string;
|
|
907
|
+
readOnly?: boolean;
|
|
908
|
+
required?: boolean;
|
|
909
|
+
/** Auto-grows the textarea as content increases. Requires `multiline`. */
|
|
910
|
+
resize?: boolean;
|
|
911
|
+
/** Controls padding and font size. Default: 'md', overridable via `theme.defaults.size`. */
|
|
912
|
+
size?: TextInputSize;
|
|
913
|
+
/**
|
|
914
|
+
* Fixes the textarea height to this many rows. Also enables `multiline`
|
|
915
|
+
* when value is greater than 1. Disables resize.
|
|
916
|
+
*/
|
|
917
|
+
rows?: number | string;
|
|
918
|
+
/** HTML input type. Ignored when multiline. Default: `'text'`. */
|
|
919
|
+
type?: string;
|
|
920
|
+
/**
|
|
921
|
+
* Visual style of the input.
|
|
922
|
+
* - `outlined` / `default` - full border box (default)
|
|
923
|
+
* - `underline` - border on bottom only
|
|
924
|
+
* - `text` - no border, transparent background
|
|
925
|
+
*/
|
|
926
|
+
variant?: TextInputVariant;
|
|
927
|
+
value?: string | number | readonly string[];
|
|
928
|
+
className?: string;
|
|
929
|
+
/** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
|
|
930
|
+
style?: StyleOverride;
|
|
931
|
+
/** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
|
|
932
|
+
slotProps?: SlotProps<TextInputSlot>;
|
|
933
|
+
'data-testid'?: string;
|
|
934
|
+
}
|
|
774
935
|
/** The resolved props TextInput's styled elements receive - what `ownerState` exposes. */
|
|
775
936
|
type TextInputOwnerState = Record<string, unknown>;
|
|
776
937
|
/** The slots of TextInput a theme can style with `styleOverrides`. */
|
|
@@ -834,6 +995,30 @@ interface TransferListOwnerState {
|
|
|
834
995
|
type TransferListSlot = 'root' | 'list' | 'header' | 'title' | 'count' | 'items' | 'item' | 'controls' | 'icon';
|
|
835
996
|
/** What `theme.components.TransferList` takes. */
|
|
836
997
|
type TransferListThemeConfig = ComponentConfig<TransferListOwnerState, TransferListSlot>;
|
|
998
|
+
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
999
|
+
/** Valid values for the color prop - derived from theme.text keys. */
|
|
1000
|
+
type TextColorToken = keyof Theme['text'];
|
|
1001
|
+
/** Valid values for the bg prop - derived from theme.background keys. */
|
|
1002
|
+
type BackgroundToken = keyof Theme['background'];
|
|
1003
|
+
interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'color' | 'style'>, SpaceProps, LayoutProps, TypographyProps$1, FlexboxProps, BorderProps, PositionProps {
|
|
1004
|
+
/** Resolves against theme.text - inherit · initial · primary · secondary · error · success */
|
|
1005
|
+
color?: TextColorToken;
|
|
1006
|
+
/** Resolves against theme.background */
|
|
1007
|
+
bg?: BackgroundToken;
|
|
1008
|
+
/** Overrides the CSS of the element: an entry of `StyleSheet.create`, or a list of them. */
|
|
1009
|
+
style?: StyleOverride;
|
|
1010
|
+
/** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
|
|
1011
|
+
slotProps?: SlotProps<TypographySlot>;
|
|
1012
|
+
opacity?: number;
|
|
1013
|
+
textTransform?: CSSProperties['textTransform'];
|
|
1014
|
+
variant?: TypographyVariant;
|
|
1015
|
+
align?: TypographyAlign;
|
|
1016
|
+
gutterBottom?: boolean;
|
|
1017
|
+
noWrap?: boolean;
|
|
1018
|
+
/** Machine-readable timestamp - forwarded when rendering as `<time>` (`as="time"`). */
|
|
1019
|
+
dateTime?: string;
|
|
1020
|
+
as?: ElementType;
|
|
1021
|
+
}
|
|
837
1022
|
/** The resolved props Typography's styled elements receive - what `ownerState` exposes. */
|
|
838
1023
|
type TypographyOwnerState = Record<string, unknown>;
|
|
839
1024
|
/** The slots of Typography a theme can style with `styleOverrides`. */
|
|
@@ -1111,4 +1296,4 @@ interface CreateThemedStyled extends StyledTags {
|
|
|
1111
1296
|
* customization (`theme.components[name].styleOverrides` / `.variants`).
|
|
1112
1297
|
*/
|
|
1113
1298
|
declare const styled: CreateThemedStyled;
|
|
1114
|
-
export {
|
|
1299
|
+
export { TextInputSize as $, ButtonVariant as $i, ModalCloseReason as $n, ContextMenuOwnerState as $r, SkeletonOwnerState as $t, TextColorToken as A, AccordionSummarySlot as Aa, CircularProgressOwnerState as Ai, PopoverSlot as An, FormLabelSlot as Ar, TableCellSlot as At, TooltipOwnerState as B, AccordionActionsThemeConfig as Ba, CardSlot as Bi, NumberInputThemeConfig as Bn, FormThemeConfig as Br, TabScrollButtonThemeConfig as Bt, ThemeProvider$1 as C, AlertTitleOwnerState as Ca, ViewThemeConfig as Ci, QuoteOwnerState as Cn, IconOwnerState as Cr, TableFooterOwnerState as Ct, Theme as D, AlertSlot as Da, CollapseOwnerState as Di, PressableSlot as Dn, GridSlot as Dr, TableContainerSlot as Dt, ComponentConfig as E, AlertOwnerState as Ea, PaperThemeConfig as Ei, PressableOwnerState as En, GridOwnerState as Er, TableContainerOwnerState as Et, TypographyThemeConfig as F, AccordionDetailsOwnerState as Fa, ChipThemeConfig as Fi, PaginationOwnerState as Fn, FormControlOwnerState as Fr, TableOwnerState as Ft, ToggleButtonGroupThemeConfig as G, ButtonColor as Gi, NavLinkSlot as Gn, FabMenuSlot as Gr, TabSlot as Gt, TooltipThemeConfig as H, AccordionSlot as Ha, ButtonGroupOwnerState as Hi, NavTreeSlot as Hn, FocusTrapSlot as Hr, TabPanelSlot as Ht, TypographyVariant as I, AccordionDetailsSlot as Ia, CheckboxOwnerState as Ii, PaginationSlot as In, FormControlSlot as Ir, TableSlot as It, ToggleButtonThemeConfig as J, ButtonProps as Ji, NavGroupSlot as Jn, FabSlot as Jr, SwitchSlot as Jt, ToggleButtonOwnerState as K, ButtonLoadingPosition as Ki, NavLinkThemeConfig as Kn, FabMenuThemeConfig as Kr, TabThemeConfig as Kt, TransferListOwnerState as L, AccordionDetailsThemeConfig as La, CheckboxSlot as Li, PaginationThemeConfig as Ln, FormControlThemeConfig as Lr, TableThemeConfig as Lt, TypographyOwnerState as M, AccordionGroupOwnerState as Ma, CircularProgressThemeConfig as Mi, PaginationItemOwnerState as Mn, FormHelperTextOwnerState as Mr, TableBodyOwnerState as Mt, TypographyProps as N, AccordionGroupSlot as Na, ChipOwnerState as Ni, PaginationItemSlot as Nn, FormHelperTextSlot as Nr, TableBodySlot as Nt, ThemeComponents as O, AlertThemeConfig as Oa, CollapseSlot as Oi, PressableThemeConfig as On, GridThemeConfig as Or, TableContainerThemeConfig as Ot, TypographySlot as P, AccordionGroupThemeConfig as Pa, ChipSlot as Pi, PaginationItemThemeConfig as Pn, FormHelperTextThemeConfig as Pr, TableBodyThemeConfig as Pt, TextInputProps as Q, ButtonThemeConfig as Qi, NativeSelectThemeConfig as Qn, DrawerThemeConfig as Qr, SnackbarThemeConfig as Qt, TransferListSlot as R, AccordionActionsOwnerState as Ra, CheckboxThemeConfig as Ri, NumberInputOwnerState as Rn, FormOwnerState as Rr, TabScrollButtonOwnerState as Rt, withTheme as S, AppBarThemeConfig as Sa, ViewSlot as Si, RadioThemeConfig as Sn, ImageThemeConfig as Sr, TableHeadThemeConfig as St, CSSObject as T, AlertTitleThemeConfig as Ta, PaperSlot as Ti, QuoteThemeConfig as Tn, IconThemeConfig as Tr, TableFooterThemeConfig as Tt, ToggleButtonGroupOwnerState as U, AccordionThemeConfig as Ua, ButtonGroupSlot as Ui, NavTreeThemeConfig as Un, FocusTrapThemeConfig as Ur, TabPanelThemeConfig as Ut, TooltipSlot as V, AccordionOwnerState as Va, CardThemeConfig as Vi, NavTreeOwnerState as Vn, FocusTrapOwnerState as Vr, TabPanelOwnerState as Vt, ToggleButtonGroupSlot as W, Exact as Wa, ButtonGroupThemeConfig as Wi, NavLinkOwnerState as Wn, FabMenuOwnerState as Wr, TabOwnerState as Wt, TextInputColor as X, ButtonSize as Xi, NativeSelectOwnerState as Xn, DrawerOwnerState as Xr, SnackbarOwnerState as Xt, TextInputClasses as Y, ButtonShape as Yi, NavGroupThemeConfig as Yn, FabThemeConfig as Yr, SwitchThemeConfig as Yt, TextInputOwnerState as Z, ButtonSlot as Zi, NativeSelectSlot as Zn, DrawerSlot as Zr, SnackbarSlot as Zt, useStyleValue as _, AutocompleteOwnerState as _a, ViewBorderRadiusToken as _i, RangeInputOwnerState as _n, LinearProgressOwnerState as _r, TablePaginationOwnerState as _t, LiveValue as a, BreadcrumbsOwnerState as aa, Paper as ai, SidebarOwnerState as an, MenuListOwnerState as ar, TabsSlot as at, variable as b, AppBarOwnerState as ba, ViewOwnerState as bi, RadioOwnerState as bn, ImageOwnerState as br, TableHeadOwnerState as bt, asIs as c, BadgeOwnerState as ca, Flex as ci, SelectOwnerState as cn, MenuItemOwnerState as cr, TableSortLabelOwnerState as ct, defineTheme as d, BackdropOwnerState as da, FlexSlot as di, ScrollAreaOwnerState as dn, MenuDividerOwnerState as dr, TableRowOwnerState as dt, GapToken$1 as ea, ContextMenuSlot as ei, SkeletonSlot as en, ModalOwnerState as er, TextInputSlot as et, fallback as f, BackdropSlot as fa, FlexThemeConfig as fi, ScrollAreaSlot as fn, MenuDividerSlot as fr, TableRowSlot as ft, useStyle as g, AvatarThemeConfig as ga, ViewBorderColorToken as gi, RatingThemeConfig as gn, LinkThemeConfig as gr, TablePaginationActionsThemeConfig as gt, setNonceSource as h, AvatarSlot as ha, ViewBackgroundToken as hi, RatingSlot as hn, LinkSlot as hr, TablePaginationActionsSlot as ht, Global as i, StyleOverride as ia, MenuThemeConfig as ii, SidebarItemThemeConfig as in, ModalThemeConfig as ir, TabsOwnerState as it, TypographyAlign as j, AccordionSummaryThemeConfig as ja, CircularProgressSlot as ji, PopoverThemeConfig as jn, FormLabelThemeConfig as jr, TableCellThemeConfig as jt, BackgroundToken as k, AccordionSummaryOwnerState as ka, CollapseThemeConfig as ki, PopoverOwnerState as kn, FormLabelOwnerState as kr, TableCellOwnerState as kt, configureEngine as l, BadgeSlot as la, FlexOwnerState as li, SelectSlot as ln, MenuItemSlot as lr, TableSortLabelSlot as lt, negate as m, AvatarOwnerState as ma, View as mi, RatingOwnerState as mn, LinkOwnerState as mr, TablePaginationActionsOwnerState as mt, useMediaQuery as n, SlotProps as na, MenuOwnerState as ni, SidebarItemOwnerState as nn, ModalScroll as nr, TextInputThemeConfig as nt, StyleSheet as o, BreadcrumbsSlot as oa, PaperElevation as oi, SidebarSlot as on, MenuListSlot as or, TabsThemeConfig as ot, keyframes as p, BackdropThemeConfig as pa, GapToken as pi, ScrollAreaThemeConfig as pn, MenuDividerThemeConfig as pr, TableRowThemeConfig as pt, ToggleButtonSlot as q, ButtonOwnerState as qi, NavGroupOwnerState as qn, FabOwnerState as qr, SwitchOwnerState as qt, useDefaultProps as r, StrictStyled as ra, MenuSlot as ri, SidebarItemSlot as rn, ModalSlot as rr, TextInputVariant as rt, alpha as s, BreadcrumbsThemeConfig as sa, PaperProps as si, SidebarThemeConfig as sn, MenuListThemeConfig as sr, TabsVariant as st, styled as t, SlotOverride as ta, ContextMenuThemeConfig as ti, SkeletonThemeConfig as tn, ModalProps as tr, TextInputTextColor as tt, css as u, BadgeThemeConfig as ua, FlexProps as ui, SelectThemeConfig as un, MenuItemThemeConfig as ur, TableSortLabelThemeConfig as ut, useTheme as v, AutocompleteSlot as va, ViewBorderWidthToken as vi, RangeInputSlot as vn, LinearProgressSlot as vr, TablePaginationSlot as vt, AppTheme as w, AlertTitleSlot as wa, PaperOwnerState as wi, QuoteSlot as wn, IconSlot as wr, TableFooterSlot as wt, withStyle as x, AppBarSlot as xa, ViewProps as xi, RadioSlot as xn, ImageSlot as xr, TableHeadSlot as xt, val as y, AutocompleteThemeConfig as ya, ViewColorToken as yi, RangeInputThemeConfig as yn, LinearProgressThemeConfig as yr, TablePaginationThemeConfig as yt, TransferListThemeConfig as z, AccordionActionsSlot as za, CardOwnerState as zi, NumberInputSlot as zn, FormSlot as zr, TabScrollButtonSlot as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Theme,
|
|
1
|
+
import { D as Theme, ia as StyleOverride, lr as MenuItemSlot, na as SlotProps } from "./index-DPQxIeZF.cjs";
|
|
2
2
|
import { ElementType, KeyboardEvent, MouseEvent, ReactNode, SyntheticEvent } from "react";
|
|
3
3
|
type MenuItemValue = string | number;
|
|
4
4
|
interface MenuListContextValue {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ha as SlotProps, Wa as StyleOverride, sn as PressableSlot } from "./Accordion.types-DxvwAfZc.mjs";
|
|
2
2
|
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
3
3
|
import { PaletteColor } from "@gild-ui/core/theme";
|
|
4
4
|
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "./index-CLQt_mOa.mjs";
|
|
2
|
+
import { Ha as SlotProps, Wa as StyleOverride, Yi as ButtonColor, ea as ButtonSize, qi as ButtonGroupSlot, ra as ButtonVariant, s as Theme } from "./Accordion.types-DxvwAfZc.mjs";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Ha as SlotProps, Wa as StyleOverride, ir as IconSlot, u as TextColorToken } from "./Accordion.types-DxvwAfZc.mjs";
|
|
2
|
+
import "./index-CsYK-ukA.mjs";
|
|
3
3
|
import { SVGProps } from "react";
|
|
4
4
|
import { ThemeIconSizes } from "@gild-ui/core/theme";
|
|
5
5
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KeyboardEvent, MouseEvent,
|
|
3
|
-
|
|
1
|
+
import { Fn as ModalProps, Nn as ModalCloseReason } from "./Accordion.types-DxvwAfZc.mjs";
|
|
2
|
+
import { KeyboardEvent, MouseEvent, Ref, RefCallback, SyntheticEvent } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @description Accessible overlay primitive: portals its content, dims the page,
|
|
5
|
+
* traps focus, locks scroll, and closes on Escape or backdrop click. The base for
|
|
6
|
+
* higher-level overlays such as Drawer.
|
|
7
|
+
*/
|
|
8
|
+
declare function Modal({ isOpen, children, onClose, hasBackdrop, shouldKeepMounted, shouldUsePortal, portalContainer, shouldLockScroll, disableAriaHidden, shouldAutoFocus, shouldTrapFocus, shouldEnforceFocus, shouldRestoreFocus, scroll, layer, style, className, slotProps }: Readonly<ModalProps>): import("react").JSX.Element | null;
|
|
4
9
|
type EventHandlers = Record<string, ((event: SyntheticEvent) => void) | undefined>;
|
|
5
10
|
interface UseModalParameters {
|
|
6
11
|
/** Whether the modal is shown. */
|
|
@@ -24,50 +29,6 @@ interface UseModalReturnValue {
|
|
|
24
29
|
isTopModal: () => boolean;
|
|
25
30
|
}
|
|
26
31
|
declare function useModal(parameters: UseModalParameters): UseModalReturnValue;
|
|
27
|
-
type ModalScroll = 'paper' | 'body';
|
|
28
|
-
interface ModalProps {
|
|
29
|
-
/** If true, the modal is shown. */
|
|
30
|
-
isOpen: boolean;
|
|
31
|
-
/** A single content element. */
|
|
32
|
-
children: ReactNode;
|
|
33
|
-
/** Fired on Escape (top modal only) or backdrop click. */
|
|
34
|
-
onClose?: (event: Event | React.SyntheticEvent, reason: ModalCloseReason) => void;
|
|
35
|
-
/** Render the dimmed backdrop. Default: true. */
|
|
36
|
-
hasBackdrop?: boolean;
|
|
37
|
-
/** Keep the children mounted while closed. Default: false. */
|
|
38
|
-
shouldKeepMounted?: boolean;
|
|
39
|
-
/** Portal the modal into `portalContainer`. Default: true. */
|
|
40
|
-
shouldUsePortal?: boolean;
|
|
41
|
-
/** Portal target, or a function returning one. Defaults to the document body. */
|
|
42
|
-
portalContainer?: HTMLElement | (() => HTMLElement | null) | null;
|
|
43
|
-
/** Lock body scroll while open. Default: true. */
|
|
44
|
-
shouldLockScroll?: boolean;
|
|
45
|
-
/** Skip `aria-hidden` on background content - for non-modal popovers whose trigger stays focused. Default: false. */
|
|
46
|
-
disableAriaHidden?: boolean;
|
|
47
|
-
/** Move focus into the modal on open. Default: true. */
|
|
48
|
-
shouldAutoFocus?: boolean;
|
|
49
|
-
/** Trap Tab focus within the modal. Default: true. */
|
|
50
|
-
shouldTrapFocus?: boolean;
|
|
51
|
-
/** Pull focus back into the modal whenever it escapes. Default: true. */
|
|
52
|
-
shouldEnforceFocus?: boolean;
|
|
53
|
-
/** Restore focus to the trigger on close. Default: true. */
|
|
54
|
-
shouldRestoreFocus?: boolean;
|
|
55
|
-
/** How long content scrolls: within the content (`'paper'`) or the whole root (`'body'`). Default: 'paper'. */
|
|
56
|
-
scroll?: ModalScroll;
|
|
57
|
-
/** Stacking layer from `theme.zOrder`. Default: 'modal'. */
|
|
58
|
-
layer?: keyof Theme['zOrder'];
|
|
59
|
-
/** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
|
|
60
|
-
style?: StyleOverride;
|
|
61
|
-
className?: string;
|
|
62
|
-
/** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
|
|
63
|
-
slotProps?: SlotProps<ModalSlot>;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* @description Accessible overlay primitive: portals its content, dims the page,
|
|
67
|
-
* traps focus, locks scroll, and closes on Escape or backdrop click. The base for
|
|
68
|
-
* higher-level overlays such as Drawer.
|
|
69
|
-
*/
|
|
70
|
-
declare function Modal({ isOpen, children, onClose, hasBackdrop, shouldKeepMounted, shouldUsePortal, portalContainer, shouldLockScroll, disableAriaHidden, shouldAutoFocus, shouldTrapFocus, shouldEnforceFocus, shouldRestoreFocus, scroll, layer, style, className, slotProps }: Readonly<ModalProps>): import("react").JSX.Element | null;
|
|
71
32
|
/** A modal tracked by the manager: its portal mount node and its root element. */
|
|
72
33
|
interface ManagedModal {
|
|
73
34
|
mount: Element;
|
|
@@ -93,4 +54,4 @@ declare class ModalManager {
|
|
|
93
54
|
remove(modal: ManagedModal, ariaHiddenState?: boolean): number;
|
|
94
55
|
isTopModal(modal: ManagedModal): boolean;
|
|
95
56
|
}
|
|
96
|
-
export { hideFromAria as a,
|
|
57
|
+
export { hideFromAria as a, useModal as c, exposeToAria as i, Modal as l, ManagedModalProps as n, UseModalParameters as o, ModalManager as r, UseModalReturnValue as s, ManagedModal as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Accordion.types-DxvwAfZc.mjs";
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ require("./useTheme.cjs");
|
|
|
5
5
|
const require_useDefaultProps = require("./useDefaultProps-DratGGIL.cjs");
|
|
6
6
|
require("./useDefaultProps.cjs");
|
|
7
7
|
require("./useMediaQuery.cjs");
|
|
8
|
-
const require_styled = require("./styled-
|
|
8
|
+
const require_styled = require("./styled-Dr3_OY1-.cjs");
|
|
9
9
|
require("./styled.cjs");
|
|
10
10
|
require("./css.cjs");
|
|
11
11
|
require("./keyframes.cjs");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as ThemeProvider, E as ComponentConfig, O as ThemeComponents, S as withTheme, T as CSSObject, _ as useStyleValue, a as LiveValue, g as useStyle,
|
|
1
|
+
import { C as ThemeProvider, E as ComponentConfig, O as ThemeComponents, S as withTheme, T as CSSObject, _ as useStyleValue, a as LiveValue, g as useStyle, i as Global, ia as StyleOverride, m as negate, n as useMediaQuery, na as SlotProps, o as StyleSheet, p as keyframes, r as useDefaultProps, s as alpha, t as styled, ta as SlotOverride, u as css, v as useTheme, x as withStyle } from "./index-DPQxIeZF.cjs";
|
|
2
2
|
import { n as LayoutProviderProps, t as LayoutProvider } from "./LayoutProvider-DFwC1-h0.cjs";
|
|
3
3
|
export { type CSSObject, type ComponentConfig, Global, LayoutProvider, type LayoutProviderProps, type LiveValue, type SlotOverride, type SlotProps, type StyleOverride, StyleSheet, type ThemeComponents, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $r as
|
|
1
|
+
import { $r as StyleSheet, Ha as SlotProps, Jr as styled, Qr as LiveValue, Va as SlotOverride, Wa as StyleOverride, Xr as useDefaultProps, Yr as useMediaQuery, Zr as Global, a as CSSObject, c as ThemeComponents, di as useTheme, ei as alpha, gi as ThemeProvider, hi as withTheme, li as useStyle, mi as withStyle, o as ComponentConfig, oi as keyframes, ri as css, si as negate, ui as useStyleValue } from "./Accordion.types-DxvwAfZc.mjs";
|
|
2
2
|
import { n as LayoutProviderProps, t as LayoutProvider } from "./LayoutProvider-DFwC1-h0.mjs";
|
|
3
3
|
export { type CSSObject, type ComponentConfig, Global, LayoutProvider, type LayoutProviderProps, type LiveValue, type SlotOverride, type SlotProps, type StyleOverride, StyleSheet, type ThemeComponents, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import "./useTheme.mjs";
|
|
|
5
5
|
import { t as useDefaultProps } from "./useDefaultProps-BTQGhvfY.mjs";
|
|
6
6
|
import "./useDefaultProps.mjs";
|
|
7
7
|
import { t as useMediaQuery } from "./useMediaQuery-acJak9M3.mjs";
|
|
8
|
-
import { t as styled } from "./styled-
|
|
8
|
+
import { t as styled } from "./styled-tLHNvicL.mjs";
|
|
9
9
|
import "./styled.mjs";
|
|
10
10
|
import "./css.mjs";
|
|
11
11
|
import "./keyframes.mjs";
|
package/dist/keyframes.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { p as keyframes } from "./index-
|
|
1
|
+
import { p as keyframes } from "./index-DPQxIeZF.cjs";
|
|
2
2
|
export { keyframes };
|
package/dist/keyframes.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { oi as keyframes } from "./Accordion.types-DxvwAfZc.mjs";
|
|
2
2
|
export { keyframes };
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
let _umber_style_styled = require("@umber-style/styled");
|
|
2
|
+
let _soroush_tech_styled_system_core = require("@soroush.tech/styled-system/core");
|
|
2
3
|
// src/style/styled.ts
|
|
3
4
|
const resolveStyle = (style, props) => typeof style === "function" ? style({
|
|
4
5
|
theme: props.theme,
|
|
5
6
|
ownerState: props
|
|
6
7
|
}) : style;
|
|
7
8
|
const matchesProps = (props, matcher) => Object.entries(matcher).every(([key, value]) => props[key] === value);
|
|
9
|
+
const orderedBlocks = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
/** The interpolation that closes the system props of a root; exported for its test. */
|
|
11
|
+
const mediaOrder = ({ theme }) => {
|
|
12
|
+
const breakpoints = theme?.breakpoints;
|
|
13
|
+
if (!breakpoints) return {};
|
|
14
|
+
let blocks = orderedBlocks.get(breakpoints);
|
|
15
|
+
if (!blocks) {
|
|
16
|
+
const widths = Object.fromEntries(Object.entries(breakpoints).map(([name, value]) => [name, String(value)]));
|
|
17
|
+
blocks = Object.fromEntries((0, _soroush_tech_styled_system_core.responsiveQueries)(widths).order.map((query) => [query, {}]));
|
|
18
|
+
orderedBlocks.set(breakpoints, blocks);
|
|
19
|
+
}
|
|
20
|
+
return blocks;
|
|
21
|
+
};
|
|
8
22
|
const createThemedStyled = (tag, options = {}) => {
|
|
9
23
|
const { name, slot = "root", systemProps = [], overridesResolver, ...engineOptions } = options;
|
|
10
24
|
const create = (0, _umber_style_styled.styled)(tag, engineOptions);
|
|
@@ -19,7 +33,7 @@ const createThemedStyled = (tag, options = {}) => {
|
|
|
19
33
|
}
|
|
20
34
|
return applied;
|
|
21
35
|
};
|
|
22
|
-
return (...styles) => create(...styles, themeStyles, ...systemProps);
|
|
36
|
+
return (...styles) => create(...styles, themeStyles, ...systemProps, ...systemProps.length > 0 ? [mediaOrder] : []);
|
|
23
37
|
};
|
|
24
38
|
/**
|
|
25
39
|
* The design system's `styled` - the engine's styled plus theme-level component
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import { styled as styled$1 } from "@umber-style/styled";
|
|
2
|
+
import { responsiveQueries } from "@soroush.tech/styled-system/core";
|
|
2
3
|
// src/style/styled.ts
|
|
3
4
|
const resolveStyle = (style, props) => typeof style === "function" ? style({
|
|
4
5
|
theme: props.theme,
|
|
5
6
|
ownerState: props
|
|
6
7
|
}) : style;
|
|
7
8
|
const matchesProps = (props, matcher) => Object.entries(matcher).every(([key, value]) => props[key] === value);
|
|
9
|
+
const orderedBlocks = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
/** The interpolation that closes the system props of a root; exported for its test. */
|
|
11
|
+
const mediaOrder = ({ theme }) => {
|
|
12
|
+
const breakpoints = theme?.breakpoints;
|
|
13
|
+
if (!breakpoints) return {};
|
|
14
|
+
let blocks = orderedBlocks.get(breakpoints);
|
|
15
|
+
if (!blocks) {
|
|
16
|
+
const widths = Object.fromEntries(Object.entries(breakpoints).map(([name, value]) => [name, String(value)]));
|
|
17
|
+
blocks = Object.fromEntries(responsiveQueries(widths).order.map((query) => [query, {}]));
|
|
18
|
+
orderedBlocks.set(breakpoints, blocks);
|
|
19
|
+
}
|
|
20
|
+
return blocks;
|
|
21
|
+
};
|
|
8
22
|
const createThemedStyled = (tag, options = {}) => {
|
|
9
23
|
const { name, slot = "root", systemProps = [], overridesResolver, ...engineOptions } = options;
|
|
10
24
|
const create = styled$1(tag, engineOptions);
|
|
@@ -19,7 +33,7 @@ const createThemedStyled = (tag, options = {}) => {
|
|
|
19
33
|
}
|
|
20
34
|
return applied;
|
|
21
35
|
};
|
|
22
|
-
return (...styles) => create(...styles, themeStyles, ...systemProps);
|
|
36
|
+
return (...styles) => create(...styles, themeStyles, ...systemProps, ...systemProps.length > 0 ? [mediaOrder] : []);
|
|
23
37
|
};
|
|
24
38
|
/**
|
|
25
39
|
* The design system's `styled` - the engine's styled plus theme-level component
|
package/dist/styled.cjs
CHANGED
package/dist/styled.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as styled } from "./index-
|
|
1
|
+
import { t as styled } from "./index-DPQxIeZF.cjs";
|
|
2
2
|
export { styled };
|