reshaped 3.9.0-canary.1 → 3.9.0-canary.10
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/bundle.css +1 -1
- package/dist/bundle.js +2 -31
- package/dist/cli/theming/index.js +4 -4
- package/dist/cli/theming/reshaped.config.js +1 -1
- package/dist/components/Accordion/Accordion.types.d.ts +1 -1
- package/dist/components/Accordion/AccordionControlled.js +2 -2
- package/dist/components/Accordion/AccordionTrigger.js +2 -2
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/ActionBar/ActionBar.js +1 -1
- package/dist/components/ActionBar/ActionBar.types.d.ts +1 -1
- package/dist/components/Actionable/Actionable.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/Alert.types.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +6 -6
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +3 -3
- package/dist/components/Avatar/Avatar.js +9 -26
- package/dist/components/Avatar/Avatar.module.css +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Badge/Badge.module.css +1 -1
- package/dist/components/Badge/Badge.types.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsItem.js +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.types.d.ts +3 -3
- package/dist/components/Calendar/Calendar.types.d.ts +25 -6
- package/dist/components/Calendar/CalendarControlled.js +45 -10
- package/dist/components/Calendar/CalendarControls.js +11 -11
- package/dist/components/Calendar/CalendarDate.js +13 -11
- package/dist/components/Calendar/CalendarMonth.js +3 -3
- package/dist/components/Calendar/CalendarYear.js +1 -1
- package/dist/components/Calendar/useCalendarKeyboardNavigation.js +1 -1
- package/dist/components/Card/Card.js +2 -2
- package/dist/components/Card/Card.types.d.ts +1 -1
- package/dist/components/Carousel/Carousel.js +4 -4
- package/dist/components/Carousel/Carousel.types.d.ts +1 -1
- package/dist/components/Carousel/CarouselControl.d.ts +1 -1
- package/dist/components/Carousel/CarouselControl.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +5 -15
- package/dist/components/CheckboxGroup/CheckboxGroup.types.d.ts +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Container/Container.types.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/components/Dismissible/Dismissible.js +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +5 -5
- package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +4 -4
- package/dist/components/FileUpload/FileUpload.js +9 -7
- package/dist/components/FileUpload/FileUpload.module.css +1 -1
- package/dist/components/FileUpload/FileUpload.types.d.ts +3 -1
- package/dist/components/Flyout/Flyout.constants.d.ts +2 -3
- package/dist/components/Flyout/Flyout.js +1 -1
- package/dist/components/Flyout/Flyout.module.css +1 -1
- package/dist/components/Flyout/Flyout.types.d.ts +6 -7
- package/dist/components/Flyout/FlyoutContent.js +7 -7
- package/dist/components/Flyout/FlyoutControlled.js +14 -9
- package/dist/components/Flyout/index.d.ts +1 -1
- package/dist/components/Flyout/index.js +1 -1
- package/dist/components/Flyout/useFlyout.d.ts +2 -2
- package/dist/components/Flyout/useFlyout.js +5 -18
- package/dist/components/Flyout/utilities/calculatePosition.d.ts +6 -6
- package/dist/components/Flyout/utilities/calculatePosition.js +6 -6
- package/dist/components/Flyout/utilities/flyout.d.ts +1 -1
- package/dist/components/Flyout/utilities/flyout.js +5 -2
- package/dist/components/FormControl/FormControlCaption.js +1 -1
- package/dist/components/FormControl/FormControlLabel.js +1 -1
- package/dist/components/FormControl/index.d.ts +2 -2
- package/dist/components/FormControl/index.js +2 -2
- package/dist/components/Grid/Grid.js +1 -1
- package/dist/components/Grid/Grid.types.d.ts +2 -2
- package/dist/components/HiddenInput/HiddenInput.js +34 -0
- package/dist/components/HiddenInput/HiddenInput.types.d.ts +26 -0
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Image/Image.js +14 -9
- package/dist/components/Image/Image.module.css +1 -1
- package/dist/components/Image/Image.types.d.ts +4 -2
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/MenuItem/MenuItem.js +1 -1
- package/dist/components/MenuItem/MenuItem.types.d.ts +2 -2
- package/dist/components/Modal/Modal.js +8 -8
- package/dist/components/Modal/Modal.module.css +1 -1
- package/dist/components/Modal/Modal.types.d.ts +1 -1
- package/dist/components/NumberField/NumberFieldControlled.js +7 -7
- package/dist/components/Overlay/Overlay.js +8 -8
- package/dist/components/PinField/PinFieldControlled.js +4 -4
- package/dist/components/Popover/Popover.js +3 -3
- package/dist/components/Popover/Popover.module.css +1 -1
- package/dist/components/Popover/Popover.types.d.ts +2 -2
- package/dist/components/Radio/Radio.js +5 -15
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +1 -1
- package/dist/components/Reshaped/Reshaped.js +4 -4
- package/dist/components/Reshaped/Reshaped.types.d.ts +1 -1
- package/dist/components/Resizable/Resizable.js +2 -2
- package/dist/components/Resizable/Resizable.types.d.ts +1 -1
- package/dist/components/Resizable/ResizableHandle.js +1 -1
- package/dist/components/Scrim/Scrim.js +4 -3
- package/dist/components/Scrim/Scrim.module.css +1 -1
- package/dist/components/Scrim/Scrim.types.d.ts +2 -1
- package/dist/components/ScrollArea/ScrollArea.js +5 -5
- package/dist/components/Select/Select.types.d.ts +3 -3
- package/dist/components/Select/SelectCustomControlled.js +6 -3
- package/dist/components/Select/SelectEndContent.js +1 -1
- package/dist/components/Select/SelectGroup.js +1 -1
- package/dist/components/Select/SelectNative.js +2 -2
- package/dist/components/Select/SelectRoot.js +1 -1
- package/dist/components/Select/SelectTrigger.js +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Slider/SliderControlled.js +7 -7
- package/dist/components/Slider/SliderThumb.js +3 -3
- package/dist/components/Stepper/Stepper.js +4 -4
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Tabs/Tabs.module.css +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +4 -2
- package/dist/components/Tabs/TabsContext.d.ts +1 -0
- package/dist/components/Tabs/TabsControlled.js +2 -1
- package/dist/components/Tabs/TabsItem.js +4 -4
- package/dist/components/Tabs/TabsList.js +17 -13
- package/dist/components/Tabs/TabsPanel.js +3 -3
- package/dist/components/Text/Text.js +3 -3
- package/dist/components/Text/Text.module.css +1 -1
- package/dist/components/Text/Text.types.d.ts +2 -0
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextArea/TextArea.types.d.ts +1 -1
- package/dist/components/TextField/TextField.js +2 -2
- package/dist/components/TextField/TextField.types.d.ts +2 -2
- package/dist/components/Theme/GlobalColorMode.js +1 -1
- package/dist/components/Theme/Theme.js +2 -2
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Toast/Toast.js +2 -2
- package/dist/components/Toast/Toast.types.d.ts +1 -1
- package/dist/components/Toast/ToastContainer.js +3 -3
- package/dist/components/Toast/ToastProvider.js +1 -1
- package/dist/components/Toast/ToastRegion.js +2 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.types.d.ts +1 -1
- package/dist/components/ToggleButtonGroup/ToggleButtonGroupControlled.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +5 -3
- package/dist/components/View/View.js +2 -2
- package/dist/components/View/View.types.d.ts +1 -1
- package/dist/components/_private/Expandable/Expandable.js +2 -2
- package/dist/components/_private/Portal/Portal.js +1 -1
- package/dist/config/tailwind.js +2 -2
- package/dist/hooks/_private/useDrag.js +4 -4
- package/dist/hooks/_private/useFadeSide.js +1 -1
- package/dist/hooks/useResponsiveClientValue.js +1 -1
- package/dist/styles/mixin.js +1 -1
- package/dist/tests/ThemesPlayground.js +16 -16
- package/dist/themes/_generator/definitions/slate.js +1 -1
- package/dist/themes/_generator/tokens/color/utilities/generateColors.d.ts +1 -1
- package/dist/themes/_generator/tokens/color/utilities/generateMetaColors.d.ts +1 -1
- package/dist/themes/_generator/tokens/color/utilities/generateMetaColors.js +1 -1
- package/dist/themes/_generator/tokens/font/font.types.d.ts +2 -2
- package/dist/themes/_generator/tokens/transforms.js +1 -1
- package/dist/themes/_generator/tokens/types.d.ts +3 -3
- package/dist/themes/_generator/transform.d.ts +1 -1
- package/dist/themes/_generator/transform.js +3 -3
- package/dist/themes/index.d.ts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/utilities/a11y/TrapFocus.js +4 -4
- package/dist/utilities/scroll/lock.js +1 -1
- package/dist/utilities/scroll/lockStandard.js +1 -1
- package/dist/utilities/storybook/Example.js +1 -1
- package/package.json +4 -2
- package/dist/components/_private/HiddenInput/HiddenInput.js +0 -10
- package/dist/components/_private/HiddenInput/HiddenInput.types.d.ts +0 -15
- /package/dist/components/{_private/HiddenInput → HiddenInput}/HiddenInput.d.ts +0 -0
- /package/dist/components/{_private/HiddenInput → HiddenInput}/HiddenInput.module.css +0 -0
- /package/dist/components/{_private/HiddenInput → HiddenInput}/HiddenInput.types.js +0 -0
- /package/dist/components/{_private/HiddenInput → HiddenInput}/index.d.ts +0 -0
- /package/dist/components/{_private/HiddenInput → HiddenInput}/index.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { classNames, responsiveClassNames } from "../../utilities/props.js";
|
|
3
2
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
3
|
+
import { classNames, responsiveClassNames } from "../../utilities/props.js";
|
|
4
4
|
import s from "./Text.module.css";
|
|
5
5
|
const tagMap = {
|
|
6
6
|
"title-1": "h1",
|
|
@@ -11,13 +11,13 @@ const tagMap = {
|
|
|
11
11
|
"title-6": "h6",
|
|
12
12
|
};
|
|
13
13
|
const Text = (props) => {
|
|
14
|
-
const { variant, color, weight, align, decoration, maxLines, wrap, monospace, children, className, attributes, } = props;
|
|
14
|
+
const { variant, color, weight, align, decoration, maxLines, wrap, monospace, numeric, children, className, attributes, } = props;
|
|
15
15
|
const largestVariant = typeof variant === "string" ? variant : variant?.xl || variant?.l || variant?.m || variant?.s;
|
|
16
16
|
const mixinStyles = resolveMixin({ textAlign: align });
|
|
17
17
|
// Using any here to let TS save on type resolving, otherwise TS throws an error due to the type complexity
|
|
18
18
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
19
|
const TagName = props.as || (largestVariant && tagMap[largestVariant]) || "div";
|
|
20
|
-
const rootClassName = classNames(s.root, color && s[`--color-${color}`], ...responsiveClassNames(s, "--variant", variant), ...responsiveClassNames(s, "--weight", weight), decoration && s[`--decoration-${decoration}`], maxLines !== undefined && s[`--clamp`], maxLines === 1 && s["--break-all"], wrap && s[`--wrap-${wrap}`], monospace && s["--monospace"], className, mixinStyles.classNames);
|
|
20
|
+
const rootClassName = classNames(s.root, color && s[`--color-${color}`], ...responsiveClassNames(s, "--variant", variant), ...responsiveClassNames(s, "--weight", weight), decoration && s[`--decoration-${decoration}`], maxLines !== undefined && s[`--clamp`], maxLines === 1 && s["--break-all"], wrap && s[`--wrap-${wrap}`], monospace && s["--monospace"], numeric && s["--numeric"], className, mixinStyles.classNames);
|
|
21
21
|
const style = {
|
|
22
22
|
...attributes?.style,
|
|
23
23
|
...mixinStyles.variables,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer rs.text.reset{.root{font-family:unset;font-size:unset;font-style:normal;font-weight:unset;letter-spacing:0;margin:0;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none}}.root{transition:color var(--rs-duration-fast) var(--rs-easing-standard)}.--clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--rs-text-lines);overflow:hidden}.--break-all{word-break:break-all}.--wrap-balance{text-wrap:balance}.--variant-title-1{font-family:var(--rs-font-family-title-1);font-size:var(--rs-font-size-title-1);font-weight:var(--rs-font-weight-title-1);letter-spacing:var(--rs-letter-spacing-title-1);line-height:var(--rs-line-height-title-1)}.--variant-title-2{font-family:var(--rs-font-family-title-2);font-size:var(--rs-font-size-title-2);font-weight:var(--rs-font-weight-title-2);letter-spacing:var(--rs-letter-spacing-title-2);line-height:var(--rs-line-height-title-2)}.--variant-title-3{font-family:var(--rs-font-family-title-3);font-size:var(--rs-font-size-title-3);font-weight:var(--rs-font-weight-title-3);letter-spacing:var(--rs-letter-spacing-title-3);line-height:var(--rs-line-height-title-3)}.--variant-title-4{font-family:var(--rs-font-family-title-4);font-size:var(--rs-font-size-title-4);font-weight:var(--rs-font-weight-title-4);letter-spacing:var(--rs-letter-spacing-title-4);line-height:var(--rs-line-height-title-4)}.--variant-title-5{font-family:var(--rs-font-family-title-5);font-size:var(--rs-font-size-title-5);font-weight:var(--rs-font-weight-title-5);letter-spacing:var(--rs-letter-spacing-title-5);line-height:var(--rs-line-height-title-5)}.--variant-title-6{font-family:var(--rs-font-family-title-6);font-size:var(--rs-font-size-title-6);font-weight:var(--rs-font-weight-title-6);letter-spacing:var(--rs-letter-spacing-title-6);line-height:var(--rs-line-height-title-6)}.--variant-featured-1{font-family:var(--rs-font-family-featured-1);font-size:var(--rs-font-size-featured-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-1);line-height:var(--rs-line-height-featured-1)}.--variant-featured-2{font-family:var(--rs-font-family-featured-2);font-size:var(--rs-font-size-featured-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-2);line-height:var(--rs-line-height-featured-2)}.--variant-featured-3{font-family:var(--rs-font-family-featured-3);font-size:var(--rs-font-size-featured-3);letter-spacing:var(--rs-letter-spacing-featured-3);line-height:var(--rs-line-height-featured-3)}.--variant-body-1,.--variant-featured-3{font-weight:var(--rs-font-weight-regular)}.--variant-body-1{font-family:var(--rs-font-family-body-1);font-size:var(--rs-font-size-body-1);letter-spacing:var(--rs-letter-spacing-body-1);line-height:var(--rs-line-height-body-1)}.--variant-body-2{font-family:var(--rs-font-family-body-2);font-size:var(--rs-font-size-body-2);letter-spacing:var(--rs-letter-spacing-body-2);line-height:var(--rs-line-height-body-2)}.--variant-body-2,.--variant-body-3{font-weight:var(--rs-font-weight-regular)}.--variant-body-3{font-family:var(--rs-font-family-body-3);font-size:var(--rs-font-size-body-3);letter-spacing:var(--rs-letter-spacing-body-3);line-height:var(--rs-line-height-body-3)}.--variant-caption-1{font-family:var(--rs-font-family-caption-1);font-size:var(--rs-font-size-caption-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-1);line-height:var(--rs-line-height-caption-1)}.--variant-caption-2{font-family:var(--rs-font-family-caption-2);font-size:var(--rs-font-size-caption-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-2);line-height:var(--rs-line-height-caption-2)}.--weight-regular{font-weight:var(--rs-font-weight-regular)!important}.--weight-medium{font-weight:var(--rs-font-weight-medium)!important}.--weight-bold{font-weight:var(--rs-font-weight-bold)!important}.--color-neutral{color:var(--rs-color-foreground-neutral)}.--color-neutral-faded{color:var(--rs-color-foreground-neutral-faded)}.--color-primary{color:var(--rs-color-foreground-primary)}.--color-warning{color:var(--rs-color-foreground-warning)}.--color-positive{color:var(--rs-color-foreground-positive)}.--color-critical{color:var(--rs-color-foreground-critical)}.--color-disabled{color:var(--rs-color-foreground-disabled)}.--decoration-line-through{text-decoration:line-through}.--monospace{font-family:var(--rs-font-family-monospace)}@media (--rs-viewport-m ){.--variant-title-1--m{font-family:var(--rs-font-family-title-1);font-size:var(--rs-font-size-title-1);font-weight:var(--rs-font-weight-title-1);letter-spacing:var(--rs-letter-spacing-title-1);line-height:var(--rs-line-height-title-1)}.--variant-title-2--m{font-family:var(--rs-font-family-title-2);font-size:var(--rs-font-size-title-2);font-weight:var(--rs-font-weight-title-2);letter-spacing:var(--rs-letter-spacing-title-2);line-height:var(--rs-line-height-title-2)}.--variant-title-3--m{font-family:var(--rs-font-family-title-3);font-size:var(--rs-font-size-title-3);font-weight:var(--rs-font-weight-title-3);letter-spacing:var(--rs-letter-spacing-title-3);line-height:var(--rs-line-height-title-3)}.--variant-title-4--m{font-family:var(--rs-font-family-title-4);font-size:var(--rs-font-size-title-4);font-weight:var(--rs-font-weight-title-4);letter-spacing:var(--rs-letter-spacing-title-4);line-height:var(--rs-line-height-title-4)}.--variant-title-5--m{font-family:var(--rs-font-family-title-5);font-size:var(--rs-font-size-title-5);font-weight:var(--rs-font-weight-title-5);letter-spacing:var(--rs-letter-spacing-title-5);line-height:var(--rs-line-height-title-5)}.--variant-title-6--m{font-family:var(--rs-font-family-title-6);font-size:var(--rs-font-size-title-6);font-weight:var(--rs-font-weight-title-6);letter-spacing:var(--rs-letter-spacing-title-6);line-height:var(--rs-line-height-title-6)}.--variant-featured-1--m{font-family:var(--rs-font-family-featured-1);font-size:var(--rs-font-size-featured-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-1);line-height:var(--rs-line-height-featured-1)}.--variant-featured-2--m{font-family:var(--rs-font-family-featured-2);font-size:var(--rs-font-size-featured-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-2);line-height:var(--rs-line-height-featured-2)}.--variant-featured-3--m{font-family:var(--rs-font-family-featured-3);font-size:var(--rs-font-size-featured-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-3);line-height:var(--rs-line-height-featured-3)}.--variant-body-1--m{font-family:var(--rs-font-family-body-1);font-size:var(--rs-font-size-body-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-1);line-height:var(--rs-line-height-body-1)}.--variant-body-2--m{font-family:var(--rs-font-family-body-2);font-size:var(--rs-font-size-body-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-2);line-height:var(--rs-line-height-body-2)}.--variant-body-3--m{font-family:var(--rs-font-family-body-3);font-size:var(--rs-font-size-body-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-3);line-height:var(--rs-line-height-body-3)}.--variant-caption-1--m{font-family:var(--rs-font-family-caption-1);font-size:var(--rs-font-size-caption-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-1);line-height:var(--rs-line-height-caption-1)}.--variant-caption-2--m{font-family:var(--rs-font-family-caption-2);font-size:var(--rs-font-size-caption-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-2);line-height:var(--rs-line-height-caption-2)}.--weight-regular--m{font-weight:var(--rs-font-weight-regular)!important}.--weight-medium--m{font-weight:var(--rs-font-weight-medium)!important}.--weight-bold--m{font-weight:var(--rs-font-weight-bold)!important}}@media (--rs-viewport-l ){.--variant-title-1--l{font-family:var(--rs-font-family-title-1);font-size:var(--rs-font-size-title-1);font-weight:var(--rs-font-weight-title-1);letter-spacing:var(--rs-letter-spacing-title-1);line-height:var(--rs-line-height-title-1)}.--variant-title-2--l{font-family:var(--rs-font-family-title-2);font-size:var(--rs-font-size-title-2);font-weight:var(--rs-font-weight-title-2);letter-spacing:var(--rs-letter-spacing-title-2);line-height:var(--rs-line-height-title-2)}.--variant-title-3--l{font-family:var(--rs-font-family-title-3);font-size:var(--rs-font-size-title-3);font-weight:var(--rs-font-weight-title-3);letter-spacing:var(--rs-letter-spacing-title-3);line-height:var(--rs-line-height-title-3)}.--variant-title-4--l{font-family:var(--rs-font-family-title-4);font-size:var(--rs-font-size-title-4);font-weight:var(--rs-font-weight-title-4);letter-spacing:var(--rs-letter-spacing-title-4);line-height:var(--rs-line-height-title-4)}.--variant-title-5--l{font-family:var(--rs-font-family-title-5);font-size:var(--rs-font-size-title-5);font-weight:var(--rs-font-weight-title-5);letter-spacing:var(--rs-letter-spacing-title-5);line-height:var(--rs-line-height-title-5)}.--variant-title-6--l{font-family:var(--rs-font-family-title-6);font-size:var(--rs-font-size-title-6);font-weight:var(--rs-font-weight-title-6);letter-spacing:var(--rs-letter-spacing-title-6);line-height:var(--rs-line-height-title-6)}.--variant-featured-1--l{font-family:var(--rs-font-family-featured-1);font-size:var(--rs-font-size-featured-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-1);line-height:var(--rs-line-height-featured-1)}.--variant-featured-2--l{font-family:var(--rs-font-family-featured-2);font-size:var(--rs-font-size-featured-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-2);line-height:var(--rs-line-height-featured-2)}.--variant-featured-3--l{font-family:var(--rs-font-family-featured-3);font-size:var(--rs-font-size-featured-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-3);line-height:var(--rs-line-height-featured-3)}.--variant-body-1--l{font-family:var(--rs-font-family-body-1);font-size:var(--rs-font-size-body-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-1);line-height:var(--rs-line-height-body-1)}.--variant-body-2--l{font-family:var(--rs-font-family-body-2);font-size:var(--rs-font-size-body-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-2);line-height:var(--rs-line-height-body-2)}.--variant-body-3--l{font-family:var(--rs-font-family-body-3);font-size:var(--rs-font-size-body-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-3);line-height:var(--rs-line-height-body-3)}.--variant-caption-1--l{font-family:var(--rs-font-family-caption-1);font-size:var(--rs-font-size-caption-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-1);line-height:var(--rs-line-height-caption-1)}.--variant-caption-2--l{font-family:var(--rs-font-family-caption-2);font-size:var(--rs-font-size-caption-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-2);line-height:var(--rs-line-height-caption-2)}.--weight-regular--l{font-weight:var(--rs-font-weight-regular)!important}.--weight-medium--l{font-weight:var(--rs-font-weight-medium)!important}.--weight-bold--l{font-weight:var(--rs-font-weight-bold)!important}}@media (--rs-viewport-xl ){.--variant-title-1--xl{font-family:var(--rs-font-family-title-1);font-size:var(--rs-font-size-title-1);font-weight:var(--rs-font-weight-title-1);letter-spacing:var(--rs-letter-spacing-title-1);line-height:var(--rs-line-height-title-1)}.--variant-title-2--xl{font-family:var(--rs-font-family-title-2);font-size:var(--rs-font-size-title-2);font-weight:var(--rs-font-weight-title-2);letter-spacing:var(--rs-letter-spacing-title-2);line-height:var(--rs-line-height-title-2)}.--variant-title-3--xl{font-family:var(--rs-font-family-title-3);font-size:var(--rs-font-size-title-3);font-weight:var(--rs-font-weight-title-3);letter-spacing:var(--rs-letter-spacing-title-3);line-height:var(--rs-line-height-title-3)}.--variant-title-4--xl{font-family:var(--rs-font-family-title-4);font-size:var(--rs-font-size-title-4);font-weight:var(--rs-font-weight-title-4);letter-spacing:var(--rs-letter-spacing-title-4);line-height:var(--rs-line-height-title-4)}.--variant-title-5--xl{font-family:var(--rs-font-family-title-5);font-size:var(--rs-font-size-title-5);font-weight:var(--rs-font-weight-title-5);letter-spacing:var(--rs-letter-spacing-title-5);line-height:var(--rs-line-height-title-5)}.--variant-title-6--xl{font-family:var(--rs-font-family-title-6);font-size:var(--rs-font-size-title-6);font-weight:var(--rs-font-weight-title-6);letter-spacing:var(--rs-letter-spacing-title-6);line-height:var(--rs-line-height-title-6)}.--variant-featured-1--xl{font-family:var(--rs-font-family-featured-1);font-size:var(--rs-font-size-featured-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-1);line-height:var(--rs-line-height-featured-1)}.--variant-featured-2--xl{font-family:var(--rs-font-family-featured-2);font-size:var(--rs-font-size-featured-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-2);line-height:var(--rs-line-height-featured-2)}.--variant-featured-3--xl{font-family:var(--rs-font-family-featured-3);font-size:var(--rs-font-size-featured-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-3);line-height:var(--rs-line-height-featured-3)}.--variant-body-1--xl{font-family:var(--rs-font-family-body-1);font-size:var(--rs-font-size-body-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-1);line-height:var(--rs-line-height-body-1)}.--variant-body-2--xl{font-family:var(--rs-font-family-body-2);font-size:var(--rs-font-size-body-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-2);line-height:var(--rs-line-height-body-2)}.--variant-body-3--xl{font-family:var(--rs-font-family-body-3);font-size:var(--rs-font-size-body-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-3);line-height:var(--rs-line-height-body-3)}.--variant-caption-1--xl{font-family:var(--rs-font-family-caption-1);font-size:var(--rs-font-size-caption-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-1);line-height:var(--rs-line-height-caption-1)}.--variant-caption-2--xl{font-family:var(--rs-font-family-caption-2);font-size:var(--rs-font-size-caption-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-2);line-height:var(--rs-line-height-caption-2)}.--weight-regular--xl{font-weight:var(--rs-font-weight-regular)!important}.--weight-medium--xl{font-weight:var(--rs-font-weight-medium)!important}.--weight-bold--xl{font-weight:var(--rs-font-weight-bold)!important}}
|
|
1
|
+
@layer rs.text.reset{.root{font-family:unset;font-size:unset;font-style:normal;font-weight:unset;letter-spacing:0;margin:0;padding:0;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none}}.root{transition:color var(--rs-duration-fast) var(--rs-easing-standard)}.--clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--rs-text-lines);overflow:hidden}.--break-all{word-break:break-all}.--wrap-balance{text-wrap:balance}.--numeric{font-variant-numeric:tabular-nums}.--variant-title-1{font-family:var(--rs-font-family-title-1);font-size:var(--rs-font-size-title-1);font-weight:var(--rs-font-weight-title-1);letter-spacing:var(--rs-letter-spacing-title-1);line-height:var(--rs-line-height-title-1)}.--variant-title-2{font-family:var(--rs-font-family-title-2);font-size:var(--rs-font-size-title-2);font-weight:var(--rs-font-weight-title-2);letter-spacing:var(--rs-letter-spacing-title-2);line-height:var(--rs-line-height-title-2)}.--variant-title-3{font-family:var(--rs-font-family-title-3);font-size:var(--rs-font-size-title-3);font-weight:var(--rs-font-weight-title-3);letter-spacing:var(--rs-letter-spacing-title-3);line-height:var(--rs-line-height-title-3)}.--variant-title-4{font-family:var(--rs-font-family-title-4);font-size:var(--rs-font-size-title-4);font-weight:var(--rs-font-weight-title-4);letter-spacing:var(--rs-letter-spacing-title-4);line-height:var(--rs-line-height-title-4)}.--variant-title-5{font-family:var(--rs-font-family-title-5);font-size:var(--rs-font-size-title-5);font-weight:var(--rs-font-weight-title-5);letter-spacing:var(--rs-letter-spacing-title-5);line-height:var(--rs-line-height-title-5)}.--variant-title-6{font-family:var(--rs-font-family-title-6);font-size:var(--rs-font-size-title-6);font-weight:var(--rs-font-weight-title-6);letter-spacing:var(--rs-letter-spacing-title-6);line-height:var(--rs-line-height-title-6)}.--variant-featured-1{font-family:var(--rs-font-family-featured-1);font-size:var(--rs-font-size-featured-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-1);line-height:var(--rs-line-height-featured-1)}.--variant-featured-2{font-family:var(--rs-font-family-featured-2);font-size:var(--rs-font-size-featured-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-2);line-height:var(--rs-line-height-featured-2)}.--variant-featured-3{font-family:var(--rs-font-family-featured-3);font-size:var(--rs-font-size-featured-3);letter-spacing:var(--rs-letter-spacing-featured-3);line-height:var(--rs-line-height-featured-3)}.--variant-body-1,.--variant-featured-3{font-weight:var(--rs-font-weight-regular)}.--variant-body-1{font-family:var(--rs-font-family-body-1);font-size:var(--rs-font-size-body-1);letter-spacing:var(--rs-letter-spacing-body-1);line-height:var(--rs-line-height-body-1)}.--variant-body-2{font-family:var(--rs-font-family-body-2);font-size:var(--rs-font-size-body-2);letter-spacing:var(--rs-letter-spacing-body-2);line-height:var(--rs-line-height-body-2)}.--variant-body-2,.--variant-body-3{font-weight:var(--rs-font-weight-regular)}.--variant-body-3{font-family:var(--rs-font-family-body-3);font-size:var(--rs-font-size-body-3);letter-spacing:var(--rs-letter-spacing-body-3);line-height:var(--rs-line-height-body-3)}.--variant-caption-1{font-family:var(--rs-font-family-caption-1);font-size:var(--rs-font-size-caption-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-1);line-height:var(--rs-line-height-caption-1)}.--variant-caption-2{font-family:var(--rs-font-family-caption-2);font-size:var(--rs-font-size-caption-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-2);line-height:var(--rs-line-height-caption-2)}.--weight-regular{font-weight:var(--rs-font-weight-regular)!important}.--weight-medium{font-weight:var(--rs-font-weight-medium)!important}.--weight-bold{font-weight:var(--rs-font-weight-bold)!important}.--color-neutral{color:var(--rs-color-foreground-neutral)}.--color-neutral-faded{color:var(--rs-color-foreground-neutral-faded)}.--color-primary{color:var(--rs-color-foreground-primary)}.--color-warning{color:var(--rs-color-foreground-warning)}.--color-positive{color:var(--rs-color-foreground-positive)}.--color-critical{color:var(--rs-color-foreground-critical)}.--color-disabled{color:var(--rs-color-foreground-disabled)}.--decoration-line-through{text-decoration:line-through}.--monospace{font-family:var(--rs-font-family-monospace)}@media (--rs-viewport-m ){.--variant-title-1--m{font-family:var(--rs-font-family-title-1);font-size:var(--rs-font-size-title-1);font-weight:var(--rs-font-weight-title-1);letter-spacing:var(--rs-letter-spacing-title-1);line-height:var(--rs-line-height-title-1)}.--variant-title-2--m{font-family:var(--rs-font-family-title-2);font-size:var(--rs-font-size-title-2);font-weight:var(--rs-font-weight-title-2);letter-spacing:var(--rs-letter-spacing-title-2);line-height:var(--rs-line-height-title-2)}.--variant-title-3--m{font-family:var(--rs-font-family-title-3);font-size:var(--rs-font-size-title-3);font-weight:var(--rs-font-weight-title-3);letter-spacing:var(--rs-letter-spacing-title-3);line-height:var(--rs-line-height-title-3)}.--variant-title-4--m{font-family:var(--rs-font-family-title-4);font-size:var(--rs-font-size-title-4);font-weight:var(--rs-font-weight-title-4);letter-spacing:var(--rs-letter-spacing-title-4);line-height:var(--rs-line-height-title-4)}.--variant-title-5--m{font-family:var(--rs-font-family-title-5);font-size:var(--rs-font-size-title-5);font-weight:var(--rs-font-weight-title-5);letter-spacing:var(--rs-letter-spacing-title-5);line-height:var(--rs-line-height-title-5)}.--variant-title-6--m{font-family:var(--rs-font-family-title-6);font-size:var(--rs-font-size-title-6);font-weight:var(--rs-font-weight-title-6);letter-spacing:var(--rs-letter-spacing-title-6);line-height:var(--rs-line-height-title-6)}.--variant-featured-1--m{font-family:var(--rs-font-family-featured-1);font-size:var(--rs-font-size-featured-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-1);line-height:var(--rs-line-height-featured-1)}.--variant-featured-2--m{font-family:var(--rs-font-family-featured-2);font-size:var(--rs-font-size-featured-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-2);line-height:var(--rs-line-height-featured-2)}.--variant-featured-3--m{font-family:var(--rs-font-family-featured-3);font-size:var(--rs-font-size-featured-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-3);line-height:var(--rs-line-height-featured-3)}.--variant-body-1--m{font-family:var(--rs-font-family-body-1);font-size:var(--rs-font-size-body-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-1);line-height:var(--rs-line-height-body-1)}.--variant-body-2--m{font-family:var(--rs-font-family-body-2);font-size:var(--rs-font-size-body-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-2);line-height:var(--rs-line-height-body-2)}.--variant-body-3--m{font-family:var(--rs-font-family-body-3);font-size:var(--rs-font-size-body-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-3);line-height:var(--rs-line-height-body-3)}.--variant-caption-1--m{font-family:var(--rs-font-family-caption-1);font-size:var(--rs-font-size-caption-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-1);line-height:var(--rs-line-height-caption-1)}.--variant-caption-2--m{font-family:var(--rs-font-family-caption-2);font-size:var(--rs-font-size-caption-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-2);line-height:var(--rs-line-height-caption-2)}.--weight-regular--m{font-weight:var(--rs-font-weight-regular)!important}.--weight-medium--m{font-weight:var(--rs-font-weight-medium)!important}.--weight-bold--m{font-weight:var(--rs-font-weight-bold)!important}}@media (--rs-viewport-l ){.--variant-title-1--l{font-family:var(--rs-font-family-title-1);font-size:var(--rs-font-size-title-1);font-weight:var(--rs-font-weight-title-1);letter-spacing:var(--rs-letter-spacing-title-1);line-height:var(--rs-line-height-title-1)}.--variant-title-2--l{font-family:var(--rs-font-family-title-2);font-size:var(--rs-font-size-title-2);font-weight:var(--rs-font-weight-title-2);letter-spacing:var(--rs-letter-spacing-title-2);line-height:var(--rs-line-height-title-2)}.--variant-title-3--l{font-family:var(--rs-font-family-title-3);font-size:var(--rs-font-size-title-3);font-weight:var(--rs-font-weight-title-3);letter-spacing:var(--rs-letter-spacing-title-3);line-height:var(--rs-line-height-title-3)}.--variant-title-4--l{font-family:var(--rs-font-family-title-4);font-size:var(--rs-font-size-title-4);font-weight:var(--rs-font-weight-title-4);letter-spacing:var(--rs-letter-spacing-title-4);line-height:var(--rs-line-height-title-4)}.--variant-title-5--l{font-family:var(--rs-font-family-title-5);font-size:var(--rs-font-size-title-5);font-weight:var(--rs-font-weight-title-5);letter-spacing:var(--rs-letter-spacing-title-5);line-height:var(--rs-line-height-title-5)}.--variant-title-6--l{font-family:var(--rs-font-family-title-6);font-size:var(--rs-font-size-title-6);font-weight:var(--rs-font-weight-title-6);letter-spacing:var(--rs-letter-spacing-title-6);line-height:var(--rs-line-height-title-6)}.--variant-featured-1--l{font-family:var(--rs-font-family-featured-1);font-size:var(--rs-font-size-featured-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-1);line-height:var(--rs-line-height-featured-1)}.--variant-featured-2--l{font-family:var(--rs-font-family-featured-2);font-size:var(--rs-font-size-featured-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-2);line-height:var(--rs-line-height-featured-2)}.--variant-featured-3--l{font-family:var(--rs-font-family-featured-3);font-size:var(--rs-font-size-featured-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-3);line-height:var(--rs-line-height-featured-3)}.--variant-body-1--l{font-family:var(--rs-font-family-body-1);font-size:var(--rs-font-size-body-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-1);line-height:var(--rs-line-height-body-1)}.--variant-body-2--l{font-family:var(--rs-font-family-body-2);font-size:var(--rs-font-size-body-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-2);line-height:var(--rs-line-height-body-2)}.--variant-body-3--l{font-family:var(--rs-font-family-body-3);font-size:var(--rs-font-size-body-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-3);line-height:var(--rs-line-height-body-3)}.--variant-caption-1--l{font-family:var(--rs-font-family-caption-1);font-size:var(--rs-font-size-caption-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-1);line-height:var(--rs-line-height-caption-1)}.--variant-caption-2--l{font-family:var(--rs-font-family-caption-2);font-size:var(--rs-font-size-caption-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-2);line-height:var(--rs-line-height-caption-2)}.--weight-regular--l{font-weight:var(--rs-font-weight-regular)!important}.--weight-medium--l{font-weight:var(--rs-font-weight-medium)!important}.--weight-bold--l{font-weight:var(--rs-font-weight-bold)!important}}@media (--rs-viewport-xl ){.--variant-title-1--xl{font-family:var(--rs-font-family-title-1);font-size:var(--rs-font-size-title-1);font-weight:var(--rs-font-weight-title-1);letter-spacing:var(--rs-letter-spacing-title-1);line-height:var(--rs-line-height-title-1)}.--variant-title-2--xl{font-family:var(--rs-font-family-title-2);font-size:var(--rs-font-size-title-2);font-weight:var(--rs-font-weight-title-2);letter-spacing:var(--rs-letter-spacing-title-2);line-height:var(--rs-line-height-title-2)}.--variant-title-3--xl{font-family:var(--rs-font-family-title-3);font-size:var(--rs-font-size-title-3);font-weight:var(--rs-font-weight-title-3);letter-spacing:var(--rs-letter-spacing-title-3);line-height:var(--rs-line-height-title-3)}.--variant-title-4--xl{font-family:var(--rs-font-family-title-4);font-size:var(--rs-font-size-title-4);font-weight:var(--rs-font-weight-title-4);letter-spacing:var(--rs-letter-spacing-title-4);line-height:var(--rs-line-height-title-4)}.--variant-title-5--xl{font-family:var(--rs-font-family-title-5);font-size:var(--rs-font-size-title-5);font-weight:var(--rs-font-weight-title-5);letter-spacing:var(--rs-letter-spacing-title-5);line-height:var(--rs-line-height-title-5)}.--variant-title-6--xl{font-family:var(--rs-font-family-title-6);font-size:var(--rs-font-size-title-6);font-weight:var(--rs-font-weight-title-6);letter-spacing:var(--rs-letter-spacing-title-6);line-height:var(--rs-line-height-title-6)}.--variant-featured-1--xl{font-family:var(--rs-font-family-featured-1);font-size:var(--rs-font-size-featured-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-1);line-height:var(--rs-line-height-featured-1)}.--variant-featured-2--xl{font-family:var(--rs-font-family-featured-2);font-size:var(--rs-font-size-featured-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-2);line-height:var(--rs-line-height-featured-2)}.--variant-featured-3--xl{font-family:var(--rs-font-family-featured-3);font-size:var(--rs-font-size-featured-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-featured-3);line-height:var(--rs-line-height-featured-3)}.--variant-body-1--xl{font-family:var(--rs-font-family-body-1);font-size:var(--rs-font-size-body-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-1);line-height:var(--rs-line-height-body-1)}.--variant-body-2--xl{font-family:var(--rs-font-family-body-2);font-size:var(--rs-font-size-body-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-2);line-height:var(--rs-line-height-body-2)}.--variant-body-3--xl{font-family:var(--rs-font-family-body-3);font-size:var(--rs-font-size-body-3);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-body-3);line-height:var(--rs-line-height-body-3)}.--variant-caption-1--xl{font-family:var(--rs-font-family-caption-1);font-size:var(--rs-font-size-caption-1);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-1);line-height:var(--rs-line-height-caption-1)}.--variant-caption-2--xl{font-family:var(--rs-font-family-caption-2);font-size:var(--rs-font-size-caption-2);font-weight:var(--rs-font-weight-regular);letter-spacing:var(--rs-letter-spacing-caption-2);line-height:var(--rs-line-height-caption-2)}.--weight-regular--xl{font-weight:var(--rs-font-weight-regular)!important}.--weight-medium--xl{font-weight:var(--rs-font-weight-medium)!important}.--weight-bold--xl{font-weight:var(--rs-font-weight-bold)!important}}
|
|
@@ -18,6 +18,8 @@ export type Props<TagName extends keyof React.JSX.IntrinsicElements = "div"> = {
|
|
|
18
18
|
decoration?: "line-through";
|
|
19
19
|
/** Maximum number of lines to render, used for text truncation */
|
|
20
20
|
maxLines?: number;
|
|
21
|
+
/** Render as a numeric value to preserve the width of each character */
|
|
22
|
+
numeric?: true;
|
|
21
23
|
/** Render as a different html tag */
|
|
22
24
|
as?: TagName;
|
|
23
25
|
/** Node for inserting children */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { classNames, responsiveClassNames } from "../../utilities/props.js";
|
|
5
4
|
import { useFormControl } from "../FormControl/index.js";
|
|
6
5
|
import useElementId from "../../hooks/useElementId.js";
|
|
6
|
+
import { classNames, responsiveClassNames } from "../../utilities/props.js";
|
|
7
7
|
import s from "./TextArea.module.css";
|
|
8
8
|
const TextArea = (props) => {
|
|
9
9
|
const { onChange, onFocus, onBlur, name, value, defaultValue, placeholder, size = "medium", variant = "outline", resize, className, attributes, } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type * as G from "../../types/global";
|
|
3
2
|
import { type FormControlProps } from "../FormControl";
|
|
3
|
+
import type * as G from "../../types/global";
|
|
4
4
|
type Size = G.Responsive<"medium" | "large" | "xlarge">;
|
|
5
5
|
type BaseProps = {
|
|
6
6
|
/** Unique identifier for the text area */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { classNames, responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
|
|
5
|
-
import useElementId from "../../hooks/useElementId.js";
|
|
6
4
|
import { useFormControl } from "../FormControl/index.js";
|
|
7
5
|
import Icon from "../Icon/index.js";
|
|
6
|
+
import useElementId from "../../hooks/useElementId.js";
|
|
7
|
+
import { classNames, responsiveClassNames, responsivePropDependency } from "../../utilities/props.js";
|
|
8
8
|
import s from "./TextField.module.css";
|
|
9
9
|
const TextFieldSlot = (props) => {
|
|
10
10
|
const { slot, icon, size, affix, position, id } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import type * as G from "../../types/global";
|
|
3
1
|
import type { FormControlProps } from "../FormControl";
|
|
4
2
|
import type { IconProps } from "../Icon";
|
|
3
|
+
import type React from "react";
|
|
4
|
+
import type * as G from "../../types/global";
|
|
5
5
|
type Size = G.Responsive<"small" | "medium" | "large" | "xlarge">;
|
|
6
6
|
export type BaseProps = {
|
|
7
7
|
/** Unique identifier for the text field */
|
|
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
5
5
|
import { enableTransitions, disableTransitions, onNextFrame } from "../../utilities/animation.js";
|
|
6
|
-
import { useGlobalColorMode } from "./useTheme.js";
|
|
7
6
|
import { GlobalColorModeContext } from "./Theme.context.js";
|
|
8
7
|
import { getRootThemeEl } from "./Theme.utilities.js";
|
|
8
|
+
import { useGlobalColorMode } from "./useTheme.js";
|
|
9
9
|
const GlobalColorMode = (props) => {
|
|
10
10
|
const { defaultMode, mode: passedMode, scopeRef, children } = props;
|
|
11
11
|
const [mode, setMode] = React.useState(defaultMode);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { classNames } from "../../utilities/props.js";
|
|
5
4
|
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
5
|
+
import { classNames } from "../../utilities/props.js";
|
|
6
6
|
import { ThemeContext } from "./Theme.context.js";
|
|
7
|
+
import s from "./Theme.module.css";
|
|
7
8
|
import { getRootThemeEl } from "./Theme.utilities.js";
|
|
8
9
|
import { useTheme, useGlobalColorMode } from "./useTheme.js";
|
|
9
|
-
import s from "./Theme.module.css";
|
|
10
10
|
const getThemeAttribute = (theme) => {
|
|
11
11
|
if (typeof theme === "string")
|
|
12
12
|
return theme;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { isValidElement } from "react";
|
|
3
|
-
import { classNames } from "../../utilities/props.js";
|
|
4
3
|
import View from "../View/index.js";
|
|
4
|
+
import { classNames } from "../../utilities/props.js";
|
|
5
5
|
import s from "./Timeline.module.css";
|
|
6
6
|
export const TimelineItem = (props) => {
|
|
7
7
|
const { children, markerSlot, className, attributes } = props;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { createElement as _createElement } from "react";
|
|
3
3
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
import React from "react";
|
|
5
|
-
import View from "../View/index.js";
|
|
6
5
|
import Button from "../Button/index.js";
|
|
7
6
|
import Icon from "../Icon/index.js";
|
|
8
|
-
import Theme from "../Theme/index.js";
|
|
9
7
|
import Text from "../Text/index.js";
|
|
8
|
+
import Theme from "../Theme/index.js";
|
|
9
|
+
import View from "../View/index.js";
|
|
10
10
|
import s from "./Toast.module.css";
|
|
11
11
|
const Toast = (props) => {
|
|
12
12
|
const { size = "small", text, children, color = "inverted", icon, title, actionsSlot, startSlot, collapsed, className, attributes, } = props;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { classNames } from "../../utilities/props.js";
|
|
5
|
-
import { onNextFrame } from "../../utilities/animation.js";
|
|
6
4
|
import { checkKeyboardMode, TrapFocus } from "../../utilities/a11y/index.js";
|
|
5
|
+
import { onNextFrame } from "../../utilities/animation.js";
|
|
6
|
+
import { classNames } from "../../utilities/props.js";
|
|
7
7
|
import Toast from "./Toast.js";
|
|
8
|
-
import ToastContext from "./Toast.context.js";
|
|
9
8
|
import { timeouts } from "./Toast.constants.js";
|
|
9
|
+
import ToastContext from "./Toast.context.js";
|
|
10
10
|
import s from "./Toast.module.css";
|
|
11
11
|
const ToastContainer = (props) => {
|
|
12
12
|
const { toastProps, id, status, inspected, index } = props;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
+
import { positions, defaultContextData } from "./Toast.constants.js";
|
|
4
5
|
import ToastContext from "./Toast.context.js";
|
|
5
6
|
import ToastRegion from "./ToastRegion.js";
|
|
6
7
|
import useToast from "./useToast.js";
|
|
7
|
-
import { positions, defaultContextData } from "./Toast.constants.js";
|
|
8
8
|
let counter = 0;
|
|
9
9
|
const generateId = () => `__rs-toast-${counter++}`;
|
|
10
10
|
const toastReducer = (state, action) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { classNames } from "../../utilities/props.js";
|
|
5
4
|
import { focusableSelector } from "../../utilities/a11y/index.js";
|
|
6
|
-
import
|
|
5
|
+
import { classNames } from "../../utilities/props.js";
|
|
7
6
|
import ToastContext from "./Toast.context.js";
|
|
8
7
|
import s from "./Toast.module.css";
|
|
8
|
+
import ToastContainer from "./ToastContainer.js";
|
|
9
9
|
const ToastRegion = (props) => {
|
|
10
10
|
const { position, nested } = props;
|
|
11
11
|
const { queues, options } = React.useContext(ToastContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
1
|
import type { ButtonGroupProps } from "../Button";
|
|
3
2
|
import type { ToggleButtonProps } from "../ToggleButton";
|
|
3
|
+
import type React from "react";
|
|
4
4
|
type BaseProps = {
|
|
5
5
|
/** Selection mode for the toggle button group
|
|
6
6
|
* @default "single"
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Button from "../Button/index.js";
|
|
5
|
-
import Context from "./ToggleButtonGroup.context.js";
|
|
6
5
|
import useKeyboardArrowNavigation from "../../hooks/useKeyboardArrowNavigation.js";
|
|
6
|
+
import Context from "./ToggleButtonGroup.context.js";
|
|
7
7
|
const ToggleButtonGroupControlled = (props) => {
|
|
8
8
|
const { onChange, value, selectionMode = "single", children, color, selectedColor, ...buttonGroupProps } = props;
|
|
9
9
|
const rootRef = React.useRef(null);
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Theme from "../Theme/index.js";
|
|
4
|
-
import Text from "../Text/index.js";
|
|
5
3
|
import Flyout from "../Flyout/index.js";
|
|
4
|
+
import Text from "../Text/index.js";
|
|
5
|
+
import Theme from "../Theme/index.js";
|
|
6
6
|
import s from "./Tooltip.module.css";
|
|
7
7
|
const Tooltip = (props) => {
|
|
8
8
|
const { text, children, position = "bottom", color = "inverted", ...flyoutProps } = props;
|
|
9
9
|
if (!text)
|
|
10
10
|
return children({ ref: null });
|
|
11
|
-
return (_jsxs(Flyout, { ...flyoutProps, position: position, triggerType: "hover",
|
|
11
|
+
return (_jsxs(Flyout, { ...flyoutProps, position: position, triggerType: "hover",
|
|
12
|
+
// Disable group timeouts by default since it's not controlled by the default user events
|
|
13
|
+
groupTimeouts: flyoutProps.active === undefined ? true : false, children: [_jsx(Flyout.Trigger, { children: children }), _jsx(Flyout.Content, { children: _jsx(Theme, { colorMode: color, children: _jsx(Text, { variant: "caption-1", className: s.root, children: text }) }) })] }));
|
|
12
14
|
};
|
|
13
15
|
Tooltip.displayName = "Tooltip";
|
|
14
16
|
export default Tooltip;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createElement as _createElement } from "react";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { isValidElement } from "react";
|
|
4
|
-
import { classNames, responsiveClassNames, responsiveVariables } from "../../utilities/props.js";
|
|
5
4
|
import Divider from "../Divider/index.js";
|
|
6
5
|
import Hidden from "../Hidden/index.js";
|
|
7
|
-
import s from "./View.module.css";
|
|
8
6
|
import { resolveMixin } from "../../styles/mixin.js";
|
|
7
|
+
import { classNames, responsiveClassNames, responsiveVariables } from "../../utilities/props.js";
|
|
8
|
+
import s from "./View.module.css";
|
|
9
9
|
export const ViewItem = (props) => {
|
|
10
10
|
const { columns, grow, shrink, gapBefore,
|
|
11
11
|
// Using any here to let TS save on type resolving, otherwise TS throws an error due to the type complexity
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type * as G from "../../types/global";
|
|
3
2
|
import type * as TStyles from "../../styles/types";
|
|
3
|
+
import type * as G from "../../types/global";
|
|
4
4
|
type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "auto";
|
|
5
5
|
export type Direction = "row" | "column" | "row-reverse" | "column-reverse";
|
|
6
6
|
export type Props<TagName extends keyof React.JSX.IntrinsicElements = "div"> = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { classNames } from "../../../utilities/props.js";
|
|
5
|
-
import { onNextFrame } from "../../../utilities/animation.js";
|
|
6
4
|
import useIsomorphicLayoutEffect from "../../../hooks/useIsomorphicLayoutEffect.js";
|
|
5
|
+
import { onNextFrame } from "../../../utilities/animation.js";
|
|
6
|
+
import { classNames } from "../../../utilities/props.js";
|
|
7
7
|
import s from "./Expandable.module.css";
|
|
8
8
|
const Expandable = (props) => {
|
|
9
9
|
const { children, active, attributes } = props;
|
|
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import ReactDOM from "react-dom";
|
|
5
5
|
import Theme from "../../Theme/index.js";
|
|
6
|
-
import s from "./Portal.module.css";
|
|
7
6
|
import useIsomorphicLayoutEffect from "../../../hooks/useIsomorphicLayoutEffect.js";
|
|
8
7
|
import useToggle from "../../../hooks/useToggle.js";
|
|
8
|
+
import s from "./Portal.module.css";
|
|
9
9
|
const PortalScopeContext = React.createContext({});
|
|
10
10
|
export const usePortalScope = () => {
|
|
11
11
|
return React.useContext(PortalScopeContext);
|
package/dist/config/tailwind.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { bgWithDynamicForeground } from "../themes/_generator/constants.js";
|
|
1
2
|
import reshapedDefinition from "../themes/_generator/definitions/reshaped.js";
|
|
2
|
-
import { camelToKebab } from "../utilities/string.js";
|
|
3
3
|
import mergeDefinitions from "../themes/_generator/utilities/mergeDefinitions.js";
|
|
4
|
-
import {
|
|
4
|
+
import { camelToKebab } from "../utilities/string.js";
|
|
5
5
|
export const getTheme = (theme) => {
|
|
6
6
|
const config = {
|
|
7
7
|
backgroundColor: {},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import * as keys from "../../constants/keys.js";
|
|
4
|
+
import useHandlerRef from "../useHandlerRef.js";
|
|
5
|
+
import useHotkeys from "../useHotkeys.js";
|
|
6
|
+
import useToggle from "../useToggle.js";
|
|
3
7
|
import { disableUserSelect, enableUserSelect } from "../../utilities/dom/index.js";
|
|
4
8
|
import { disableScroll, enableScroll } from "../../utilities/scroll/index.js";
|
|
5
|
-
import useToggle from "../useToggle.js";
|
|
6
|
-
import useHotkeys from "../useHotkeys.js";
|
|
7
|
-
import useHandlerRef from "../useHandlerRef.js";
|
|
8
|
-
import * as keys from "../../constants/keys.js";
|
|
9
9
|
const useDrag = (cb, options) => {
|
|
10
10
|
const { disabled, containerRef: passedContainerRef, orientation = "all" } = options || {};
|
|
11
11
|
const cbRef = useHandlerRef(cb);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import useRTL from "../useRTL.js";
|
|
4
3
|
import useIsomorphicLayoutEffect from "../useIsomorphicLayoutEffect.js";
|
|
4
|
+
import useRTL from "../useRTL.js";
|
|
5
5
|
import { rafThrottle } from "../../utilities/helpers.js";
|
|
6
6
|
const useFadeSide = (scrollableRef, options = {}) => {
|
|
7
7
|
const { disabled } = options;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import defaultBreakpoints from "../constants/breakpoints.js";
|
|
3
4
|
import { SingletonEnvironmentContext } from "./_private/useSingletonEnvironment.js";
|
|
4
5
|
import useIsomorphicLayoutEffect from "./useIsomorphicLayoutEffect.js";
|
|
5
|
-
import defaultBreakpoints from "../constants/breakpoints.js";
|
|
6
6
|
const useResponsiveClientValue = (value) => {
|
|
7
7
|
const { defaultViewport } = React.useContext(SingletonEnvironmentContext);
|
|
8
8
|
const [viewport, setViewport] = React.useState(defaultViewport);
|
package/dist/styles/mixin.js
CHANGED
|
@@ -9,11 +9,11 @@ import maxHeight from "./resolvers/maxHeight/index.js";
|
|
|
9
9
|
import maxWidth from "./resolvers/maxWidth/index.js";
|
|
10
10
|
import minHeight from "./resolvers/minHeight/index.js";
|
|
11
11
|
import minWidth from "./resolvers/minWidth/index.js";
|
|
12
|
+
import padding, { paddingTop, paddingBottom, paddingStart, paddingEnd, paddingInline, paddingBlock, } from "./resolvers/padding/index.js";
|
|
12
13
|
import position from "./resolvers/position/index.js";
|
|
13
14
|
import radius from "./resolvers/radius/index.js";
|
|
14
15
|
import textAlign from "./resolvers/textAlign/index.js";
|
|
15
16
|
import width from "./resolvers/width/index.js";
|
|
16
|
-
import padding, { paddingTop, paddingBottom, paddingStart, paddingEnd, paddingInline, paddingBlock, } from "./resolvers/padding/index.js";
|
|
17
17
|
const mixinMap = {
|
|
18
18
|
align,
|
|
19
19
|
aspectRatio,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Alert from "../components/Alert/index.js";
|
|
4
|
+
import Avatar from "../components/Avatar/index.js";
|
|
5
|
+
import Badge from "../components/Badge/index.js";
|
|
6
6
|
import Button from "../components/Button/index.js";
|
|
7
|
+
import Card from "../components/Card/index.js";
|
|
8
|
+
import Checkbox from "../components/Checkbox/index.js";
|
|
9
|
+
import CheckboxGroup from "../components/CheckboxGroup/index.js";
|
|
10
|
+
import Divider from "../components/Divider/index.js";
|
|
11
|
+
import DropdownMenu from "../components/DropdownMenu/index.js";
|
|
12
|
+
import FormControl from "../components/FormControl/index.js";
|
|
7
13
|
import Grid from "../components/Grid/index.js";
|
|
8
|
-
import Avatar from "../components/Avatar/index.js";
|
|
9
14
|
import Image from "../components/Image/index.js";
|
|
10
|
-
import IconChevronRight from "../icons/ChevronRight.js";
|
|
11
|
-
import TextField from "../components/TextField/index.js";
|
|
12
|
-
import FormControl from "../components/FormControl/index.js";
|
|
13
15
|
import Link from "../components/Link/index.js";
|
|
14
|
-
import useToggle from "../hooks/useToggle.js";
|
|
15
16
|
import Switch from "../components/Switch/index.js";
|
|
16
|
-
import Badge from "../components/Badge/index.js";
|
|
17
|
-
import Alert from "../components/Alert/index.js";
|
|
18
|
-
import IconZap from "../icons/Zap.js";
|
|
19
|
-
import CheckboxGroup from "../components/CheckboxGroup/index.js";
|
|
20
|
-
import Checkbox from "../components/Checkbox/index.js";
|
|
21
|
-
import React from "react";
|
|
22
17
|
import Table from "../components/Table/index.js";
|
|
23
|
-
import
|
|
18
|
+
import Text from "../components/Text/index.js";
|
|
19
|
+
import TextField from "../components/TextField/index.js";
|
|
20
|
+
import View from "../components/View/index.js";
|
|
21
|
+
import useToggle from "../hooks/useToggle.js";
|
|
24
22
|
import IconChevronDown from "../icons/ChevronDown.js";
|
|
23
|
+
import IconChevronRight from "../icons/ChevronRight.js";
|
|
24
|
+
import IconZap from "../icons/Zap.js";
|
|
25
25
|
const Color = (props) => {
|
|
26
26
|
return (_jsx(View, { padding: 2, height: 25, gap: 2, direction: "row", borderRadius: "medium", backgroundColor: props.backgroundColor, borderColor: props.borderColor, attributes: {
|
|
27
27
|
style: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PassedThemeDefinition } from "../../types";
|
|
2
1
|
import { type ColorValue, Hue } from "../color.types";
|
|
2
|
+
import type { PassedThemeDefinition } from "../../types";
|
|
3
3
|
declare const generateColors: (args?: Partial<Record<Hue, ColorValue>>) => NonNullable<PassedThemeDefinition["color"]>;
|
|
4
4
|
export default generateColors;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as T from "../../../types";
|
|
2
1
|
import { PassedThemeDefinition } from "../../types";
|
|
2
|
+
import type * as T from "../../../types";
|
|
3
3
|
declare const generateMetaColors: (definition: PassedThemeDefinition, themeOptions?: T.PublicOptions["themeOptions"]) => PassedThemeDefinition["color"] | undefined;
|
|
4
4
|
export default generateMetaColors;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { capitalize } from "../../../../../utilities/string.js";
|
|
2
2
|
import { bgWithDynamicForeground } from "../../../constants.js";
|
|
3
|
-
import { hexToOklch, oklchToRgb, tokenToOklchToken } from "./convert.js";
|
|
4
3
|
import { getOnColor } from "./a11y.js";
|
|
4
|
+
import { hexToOklch, oklchToRgb, tokenToOklchToken } from "./convert.js";
|
|
5
5
|
const whiteColor = hexToOklch("#ffffff");
|
|
6
6
|
const blackColor = hexToOklch("#000000");
|
|
7
7
|
const generateMetaColors = (definition, themeOptions = {}) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type * as TUnit from "../unit/unit.types";
|
|
2
|
-
import type * as TFontWeight from "../fontWeight/fontWeight.types";
|
|
3
1
|
import type * as TFontFamily from "../fontFamily/fontFamily.types";
|
|
2
|
+
import type * as TFontWeight from "../fontWeight/fontWeight.types";
|
|
3
|
+
import type * as TUnit from "../unit/unit.types";
|
|
4
4
|
export type Name = "title1" | "title2" | "title3" | "title4" | "title5" | "title6" | "featured1" | "featured2" | "featured3" | "body1" | "body2" | "body3" | "caption1" | "caption2";
|
|
5
5
|
export type Token = {
|
|
6
6
|
fontSize: TUnit.Token;
|
|
@@ -4,9 +4,9 @@ import easing from "./easing/easing.transforms.js";
|
|
|
4
4
|
import font from "./font/font.transforms.js";
|
|
5
5
|
import fontFamily from "./fontFamily/fontFamily.transforms.js";
|
|
6
6
|
import fontWeight from "./fontWeight/fontWeight.transforms.js";
|
|
7
|
+
import radius from "./radius/radius.transforms.js";
|
|
7
8
|
import shadow from "./shadow/shadow.transforms.js";
|
|
8
9
|
import unit from "./unit/unit.transforms.js";
|
|
9
|
-
import radius from "./radius/radius.transforms.js";
|
|
10
10
|
import viewport from "./viewport/viewport.transforms.js";
|
|
11
11
|
import zIndex from "./zIndex/zIndex.transforms.js";
|
|
12
12
|
export const css = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { PartialDeep, PrivateOptions } from "../types";
|
|
2
|
+
import * as TZIndex from "./zIndex/zIndex.types";
|
|
1
3
|
import type * as TColor from "./color/color.types";
|
|
2
4
|
import type * as TDuration from "./duration/duration.types";
|
|
3
5
|
import type * as TEasing from "./easing/easing.types";
|
|
4
6
|
import type * as TFont from "./font/font.types";
|
|
5
7
|
import type * as TFontFamily from "./fontFamily/fontFamily.types";
|
|
6
8
|
import type * as TFontWeight from "./fontWeight/fontWeight.types";
|
|
9
|
+
import type * as TRadius from "./radius/radius.types";
|
|
7
10
|
import type * as TShadow from "./shadow/shadow.types";
|
|
8
11
|
import type * as TUnit from "./unit/unit.types";
|
|
9
|
-
import type * as TRadius from "./radius/radius.types";
|
|
10
12
|
import type * as TViewport from "./viewport/viewport.types";
|
|
11
|
-
import * as TZIndex from "./zIndex/zIndex.types";
|
|
12
|
-
import { PartialDeep, PrivateOptions } from "../types";
|
|
13
13
|
export type TokenType = "fontFamily" | "fontWeight" | "unit" | "radius" | "viewport" | "font" | "color" | "duration" | "easing" | "shadow" | "zIndex";
|
|
14
14
|
type TokenSet<Name extends string, Token> = Record<Name, Token> & {
|
|
15
15
|
[tokenName: string]: Token;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as T from "./types";
|
|
2
1
|
import type { PassedThemeDefinition, GeneratedThemeDefinition } from "./tokens/types";
|
|
2
|
+
import type * as T from "./types";
|
|
3
3
|
declare const transform: (name: string, definition: PassedThemeDefinition, options: T.PrivateOptions) => {
|
|
4
4
|
variables: string;
|
|
5
5
|
media: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { formatHex8, formatHex } from "culori/fn";
|
|
2
|
+
import generateMetaColors from "./tokens/color/utilities/generateMetaColors.js";
|
|
2
3
|
import { variablesTemplate, mediaTemplate } from "./tokens/css.js";
|
|
4
|
+
import * as transforms from "./tokens/transforms.js";
|
|
3
5
|
import { generateUnits } from "./tokens/unit/utilities/generate.js";
|
|
4
|
-
import generateMetaColors from "./tokens/color/utilities/generateMetaColors.js";
|
|
5
|
-
import { formatHex8, formatHex } from "culori/fn";
|
|
6
6
|
const transform = (name, definition, options) => {
|
|
7
7
|
const { isFragment, themeOptions } = options;
|
|
8
8
|
const generatedUnits = generateUnits(definition);
|
package/dist/themes/index.d.ts
CHANGED
package/dist/types/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PassedThemeDefinition } from "../themes/_generator/tokens/types";
|
|
2
1
|
import type { HexColor, Hue, OklchColor } from "../themes/_generator/tokens/color/color.types";
|
|
2
|
+
import type { PassedThemeDefinition } from "../themes/_generator/tokens/types";
|
|
3
3
|
export type ReshapedConfig = {
|
|
4
4
|
themes?: Record<string, PassedThemeDefinition>;
|
|
5
5
|
themeFragments?: Record<string, PassedThemeDefinition>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import Chain from "../Chain.js";
|
|
3
2
|
import * as keys from "../../constants/keys.js";
|
|
4
|
-
import
|
|
5
|
-
import { getActiveElement, getFocusableElements, focusElement, getFocusData } from "./focus.js";
|
|
3
|
+
import Chain from "../Chain.js";
|
|
6
4
|
import { getShadowRoot } from "../dom/index.js";
|
|
5
|
+
import { getActiveElement, getFocusableElements, focusElement, getFocusData } from "./focus.js";
|
|
7
6
|
import { checkKeyboardMode } from "./keyboardMode.js";
|
|
7
|
+
import TrapScreenReader from "./TrapScreenReader.js";
|
|
8
8
|
class TrapFocus {
|
|
9
9
|
static chain = new Chain();
|
|
10
10
|
#chainId;
|
|
@@ -45,7 +45,7 @@ class TrapFocus {
|
|
|
45
45
|
target: isPrev ? "prev" : "next",
|
|
46
46
|
options: {
|
|
47
47
|
additionalElement: includeTrigger ? this.#trigger : undefined,
|
|
48
|
-
circular:
|
|
48
|
+
circular: true,
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
51
|
// Release the trap when tab is used in navigation modes that support arrows
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isIOS } from "../platform.js";
|
|
2
1
|
import { findClosestScrollableContainer } from "../dom/index.js";
|
|
2
|
+
import { isIOS } from "../platform.js";
|
|
3
3
|
import lockSafariScroll from "./lockSafari.js";
|
|
4
4
|
import lockStandardScroll from "./lockStandard.js";
|
|
5
5
|
let bodyLockedCount = 0;
|