@traefik-labs/faency 13.4.0 → 13.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AriaTable/AriaTable.cjs +13 -5
- package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.constants.cjs +5 -0
- package/dist/components/AriaTable/AriaTable.constants.cjs.map +1 -0
- package/dist/components/AriaTable/AriaTable.constants.js +5 -0
- package/dist/components/AriaTable/AriaTable.constants.js.map +1 -0
- package/dist/components/AriaTable/AriaTable.js +13 -5
- package/dist/components/AriaTable/AriaTable.js.map +1 -1
- package/dist/components/AriaTable/AriaTable.vanilla.cjs +194 -0
- package/dist/components/AriaTable/AriaTable.vanilla.cjs.map +1 -0
- package/dist/components/AriaTable/AriaTable.vanilla.css.cjs +28 -0
- package/dist/components/AriaTable/AriaTable.vanilla.css.cjs.map +1 -0
- package/dist/components/AriaTable/AriaTable.vanilla.css.js +17 -0
- package/dist/components/AriaTable/AriaTable.vanilla.css.js.map +1 -0
- package/dist/components/AriaTable/AriaTable.vanilla.js +185 -0
- package/dist/components/AriaTable/AriaTable.vanilla.js.map +1 -0
- package/dist/components/Badge/Badge.vanilla.cjs +2 -1
- package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.js +2 -1
- package/dist/components/Badge/Badge.vanilla.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.cjs +2 -1
- package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.js +2 -1
- package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
- package/dist/components/Box/Box.vanilla.cjs +2 -1
- package/dist/components/Box/Box.vanilla.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.js +2 -1
- package/dist/components/Box/Box.vanilla.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.cjs +2 -1
- package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.js +2 -1
- package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
- package/dist/components/Button/Button.vanilla.cjs +2 -1
- package/dist/components/Button/Button.vanilla.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.js +2 -1
- package/dist/components/Button/Button.vanilla.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +5 -4
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +5 -4
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
- package/dist/components/Card/Card.vanilla.cjs +2 -1
- package/dist/components/Card/Card.vanilla.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.js +2 -1
- package/dist/components/Card/Card.vanilla.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.cjs +2 -2
- package/dist/components/CodeBlock/CodeBlock.js +2 -2
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +6 -14
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.js +6 -14
- package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.cjs +2 -2
- package/dist/components/Combobox/Combobox.vanilla.cjs.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.js +2 -2
- package/dist/components/Combobox/Combobox.vanilla.js.map +1 -1
- package/dist/components/Container/Container.vanilla.cjs +2 -1
- package/dist/components/Container/Container.vanilla.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.js +2 -1
- package/dist/components/Container/Container.vanilla.js.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.js +1 -1
- package/dist/components/Dialog/Dialog.cjs +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Elevation/Elevation.vanilla.cjs +2 -1
- package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.js +2 -1
- package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
- package/dist/components/Field/Field.cjs +80 -33
- package/dist/components/Field/Field.cjs.map +1 -1
- package/dist/components/Field/Field.js +80 -33
- package/dist/components/Field/Field.js.map +1 -1
- package/dist/components/Field/Field.vanilla.cjs +62 -32
- package/dist/components/Field/Field.vanilla.cjs.map +1 -1
- package/dist/components/Field/Field.vanilla.css.cjs +6 -0
- package/dist/components/Field/Field.vanilla.css.cjs.map +1 -1
- package/dist/components/Field/Field.vanilla.css.js +4 -1
- package/dist/components/Field/Field.vanilla.css.js.map +1 -1
- package/dist/components/Field/Field.vanilla.js +63 -33
- package/dist/components/Field/Field.vanilla.js.map +1 -1
- package/dist/components/Field/FieldContext.cjs +48 -10
- package/dist/components/Field/FieldContext.cjs.map +1 -1
- package/dist/components/Field/FieldContext.js +48 -10
- package/dist/components/Field/FieldContext.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.cjs +2 -1
- package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.js +2 -1
- package/dist/components/Flex/Flex.vanilla.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.cjs +2 -1
- package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.js +2 -1
- package/dist/components/Grid/Grid.vanilla.js.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.cjs +2 -1
- package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.js +2 -1
- package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
- package/dist/components/Image/Image.vanilla.cjs +2 -1
- package/dist/components/Image/Image.vanilla.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.js +2 -1
- package/dist/components/Image/Image.vanilla.js.map +1 -1
- package/dist/components/Input/Input.vanilla.cjs +2 -1
- package/dist/components/Input/Input.vanilla.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.js +2 -1
- package/dist/components/Input/Input.vanilla.js.map +1 -1
- package/dist/components/Label/Label.vanilla.cjs +2 -1
- package/dist/components/Label/Label.vanilla.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.js +2 -1
- package/dist/components/Label/Label.vanilla.js.map +1 -1
- package/dist/components/List/List.cjs +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/Meter/Meter.vanilla.cjs +3 -2
- package/dist/components/Meter/Meter.vanilla.cjs.map +1 -1
- package/dist/components/Meter/Meter.vanilla.js +3 -2
- package/dist/components/Meter/Meter.vanilla.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeItem.cjs +2 -2
- package/dist/components/NavigationTree/NavigationTreeItem.js +2 -2
- package/dist/components/Panel/Panel.vanilla.cjs +2 -1
- package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.js +2 -1
- package/dist/components/Panel/Panel.vanilla.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.cjs +2 -1
- package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.js +2 -1
- package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
- package/dist/components/RowLink/RowLink.cjs +18 -46
- package/dist/components/RowLink/RowLink.cjs.map +1 -1
- package/dist/components/RowLink/RowLink.constants.cjs +7 -0
- package/dist/components/RowLink/RowLink.constants.cjs.map +1 -0
- package/dist/components/RowLink/RowLink.constants.js +6 -0
- package/dist/components/RowLink/RowLink.constants.js.map +1 -0
- package/dist/components/RowLink/RowLink.js +15 -45
- package/dist/components/RowLink/RowLink.js.map +1 -1
- package/dist/components/RowLink/RowLink.utils.cjs +87 -0
- package/dist/components/RowLink/RowLink.utils.cjs.map +1 -0
- package/dist/components/RowLink/RowLink.utils.js +83 -0
- package/dist/components/RowLink/RowLink.utils.js.map +1 -0
- package/dist/components/RowLink/RowLink.vanilla.cjs +21 -0
- package/dist/components/RowLink/RowLink.vanilla.cjs.map +1 -0
- package/dist/components/RowLink/RowLink.vanilla.css.cjs +10 -0
- package/dist/components/RowLink/RowLink.vanilla.css.cjs.map +1 -0
- package/dist/components/RowLink/RowLink.vanilla.css.js +8 -0
- package/dist/components/RowLink/RowLink.vanilla.css.js.map +1 -0
- package/dist/components/RowLink/RowLink.vanilla.js +19 -0
- package/dist/components/RowLink/RowLink.vanilla.js.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs +3 -3
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.js +3 -3
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.js.map +1 -1
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.cjs +2 -1
- package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.js +2 -1
- package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.cjs +3 -2
- package/dist/components/Spinner/Spinner.vanilla.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.js +3 -2
- package/dist/components/Spinner/Spinner.vanilla.js.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.cjs +4 -3
- package/dist/components/SplitLayout/SplitLayout.vanilla.cjs.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.js +4 -3
- package/dist/components/SplitLayout/SplitLayout.vanilla.js.map +1 -1
- package/dist/components/Table/ExpandToggle.vanilla.cjs +30 -0
- package/dist/components/Table/ExpandToggle.vanilla.cjs.map +1 -0
- package/dist/components/Table/ExpandToggle.vanilla.js +27 -0
- package/dist/components/Table/ExpandToggle.vanilla.js.map +1 -0
- package/dist/components/Table/SortButton.vanilla.cjs +38 -0
- package/dist/components/Table/SortButton.vanilla.cjs.map +1 -0
- package/dist/components/Table/SortButton.vanilla.js +35 -0
- package/dist/components/Table/SortButton.vanilla.js.map +1 -0
- package/dist/components/Table/Table.cjs +11 -4
- package/dist/components/Table/Table.cjs.map +1 -1
- package/dist/components/Table/Table.js +11 -4
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/Table.vanilla.cjs +142 -0
- package/dist/components/Table/Table.vanilla.cjs.map +1 -0
- package/dist/components/Table/Table.vanilla.css.cjs +178 -0
- package/dist/components/Table/Table.vanilla.css.cjs.map +1 -0
- package/dist/components/Table/Table.vanilla.css.js +161 -0
- package/dist/components/Table/Table.vanilla.css.js.map +1 -0
- package/dist/components/Table/Table.vanilla.js +133 -0
- package/dist/components/Table/Table.vanilla.js.map +1 -0
- package/dist/components/Table/useTableSort.cjs +60 -0
- package/dist/components/Table/useTableSort.cjs.map +1 -0
- package/dist/components/Table/useTableSort.js +59 -0
- package/dist/components/Table/useTableSort.js.map +1 -0
- package/dist/components/Text/Text.vanilla.cjs +2 -1
- package/dist/components/Text/Text.vanilla.cjs.map +1 -1
- package/dist/components/Text/Text.vanilla.js +2 -1
- package/dist/components/Text/Text.vanilla.js.map +1 -1
- package/dist/components/TextField/TextField.cjs +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/TextField/TextField.vanilla.cjs +1 -1
- package/dist/components/TextField/TextField.vanilla.js +1 -1
- package/dist/components/Textarea/Textarea.cjs +2 -2
- package/dist/components/Textarea/Textarea.js +2 -2
- package/dist/components/Textarea/Textarea.vanilla.cjs +4 -3
- package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.js +4 -3
- package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
- package/dist/components/Toast/Toast.vanilla.cjs +5 -5
- package/dist/components/Toast/Toast.vanilla.cjs.map +1 -1
- package/dist/components/Toast/Toast.vanilla.js +5 -5
- package/dist/components/Toast/Toast.vanilla.js.map +1 -1
- package/dist/components/Toast/ToastProvider.vanilla.cjs +1 -1
- package/dist/components/Toast/ToastProvider.vanilla.js +1 -1
- package/dist/faency.css +3001 -2303
- package/dist/index.cjs +50 -29
- package/dist/index.d.ts +570 -24
- package/dist/index.js +33 -30
- package/dist/styles/cx.cjs +5 -0
- package/dist/styles/cx.cjs.map +1 -0
- package/dist/styles/cx.js +5 -0
- package/dist/styles/cx.js.map +1 -0
- package/dist/styles/themes.css.cjs.map +1 -1
- package/dist/styles/themes.css.js.map +1 -1
- package/dist/styles/tokens.css.cjs +55 -44
- package/dist/styles/tokens.css.cjs.map +1 -1
- package/dist/styles/tokens.css.js +55 -44
- package/dist/styles/tokens.css.js.map +1 -1
- package/dist/styles/useInlineStyle.cjs +16 -0
- package/dist/styles/useInlineStyle.cjs.map +1 -0
- package/dist/styles/useInlineStyle.js +16 -0
- package/dist/styles/useInlineStyle.js.map +1 -0
- package/dist/utils/warnOnce.cjs +13 -0
- package/dist/utils/warnOnce.cjs.map +1 -0
- package/dist/utils/warnOnce.js +13 -0
- package/dist/utils/warnOnce.js.map +1 -0
- package/package.json +10 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.js","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component
|
|
1
|
+
{"version":3,"file":"Label.vanilla.js","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;;AAyBA,IAAM,4BAA4B,YAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAEA,MAAM,cAAc,YAAY;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAEtF,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
const require_stitches_config = require("../../stitches.config.cjs");
|
|
3
|
+
const require_Button = require("../Button/Button.cjs");
|
|
3
4
|
const require_Elevation = require("../Elevation/Elevation.cjs");
|
|
4
5
|
const require_Flex = require("../Flex/Flex.cjs");
|
|
5
|
-
const require_Button = require("../Button/Button.cjs");
|
|
6
6
|
let react = require("react");
|
|
7
7
|
react = require_runtime.__toESM(react, 1);
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "../../stitches.config.js";
|
|
2
|
+
import { BUTTON_BASE_STYLES } from "../Button/Button.js";
|
|
2
3
|
import { elevationVariants } from "../Elevation/Elevation.js";
|
|
3
4
|
import { Flex } from "../Flex/Flex.js";
|
|
4
|
-
import { BUTTON_BASE_STYLES } from "../Button/Button.js";
|
|
5
5
|
import React, { createContext, useContext, useMemo } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// components/List/List.tsx
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
-
const require_resolveColor = require("../../styles/resolveColor.cjs");
|
|
3
2
|
const require_cssProps = require("../../styles/cssProps.cjs");
|
|
3
|
+
const require_cx = require("../../styles/cx.cjs");
|
|
4
|
+
const require_resolveColor = require("../../styles/resolveColor.cjs");
|
|
4
5
|
const require_themeContext = require("../../styles/themeContext.cjs");
|
|
5
6
|
const require_Meter_vanilla_css = require("./Meter.vanilla.css.cjs");
|
|
6
7
|
let react = require("react");
|
|
@@ -37,7 +38,7 @@ var MeterVanilla = (0, react.forwardRef)(({ value, color, segments, max, label,
|
|
|
37
38
|
};
|
|
38
39
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
39
40
|
ref,
|
|
40
|
-
className:
|
|
41
|
+
className: require_cx.cx(require_Meter_vanilla_css.root, className),
|
|
41
42
|
style: {
|
|
42
43
|
...cssStyles,
|
|
43
44
|
...style,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Meter.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","root","assignInlineVars","trackRecipe","segment","resolveColor"],"sources":["../../../components/Meter/Meter.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport React, { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { resolveColor } from '../../styles/resolveColor';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport {\n caption,\n captionLabel,\n captionValue,\n root,\n segment,\n trackRecipe,\n} from './Meter.vanilla.css';\n\nexport type MeterSegmentVanilla = {\n value: number;\n /** A color token such as `$chartStatusGood`, or any CSS color. Defaults to the chart series colors. */\n color?: string;\n /** Shown as a tooltip and read with the meter, e.g. \"404: 30\". */\n label?: string;\n};\n\ntype MeterValueProps = Omit<MeterSegmentVanilla, 'label'> & { segments?: never };\ntype MeterSegmentsProps = { segments: MeterSegmentVanilla[]; value?: never; color?: never };\n\nexport type MeterVanillaProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'color'> &\n CSSProps &\n (MeterValueProps | MeterSegmentsProps) & {\n /** Defaults to 100 with `value`, and to the sum of the values with `segments`. */\n max?: number;\n /** Caption above the bar, on the left. Also the meter's accessible name. */\n label?: string;\n /** Caption above the bar, on the right, e.g. \"42 GB / 100 GB\". */\n valueLabel?: string;\n size?: 'small' | 'medium' | 'large';\n };\n\n// TODO: replace the native `title` on segments with TooltipVanilla once it exists.\nexport const MeterVanilla = forwardRef<HTMLDivElement, MeterVanillaProps>(\n (\n {\n value,\n color,\n segments,\n max,\n label,\n valueLabel,\n size,\n className,\n css,\n style,\n 'aria-label': ariaLabel,\n ...props\n },\n ref,\n ) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const items: MeterSegmentVanilla[] = segments ?? [{ value: value ?? 0, color }];\n const values = items.map((s) => Math.max(0, s.value));\n const total = max ?? (segments ? values.reduce((sum, v) => sum + v, 0) : 100);\n\n let remaining = total;\n const widths = values.map((v) => {\n const shown = Math.min(v, Math.max(0, remaining));\n remaining -= shown;\n return total > 0 ? (shown / total) * 100 : 0;\n });\n\n const name = ariaLabel ?? label;\n const ariaProps =\n items.length === 1\n ? {\n role: 'meter',\n 'aria-valuenow': Math.min(values[0], total),\n 'aria-valuemin': 0,\n 'aria-valuemax': total,\n 'aria-valuetext': valueLabel ?? items[0].label,\n 'aria-label': name ?? items[0].label,\n }\n : {\n role: 'img',\n 'aria-label':\n ariaLabel ??\n [label, items.map((s) => s.label ?? String(s.value)).join(', ')]\n .filter(Boolean)\n .join(': '),\n };\n\n return (\n <div\n ref={ref}\n className={
|
|
1
|
+
{"version":3,"file":"Meter.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","cx","root","assignInlineVars","trackRecipe","segment","resolveColor"],"sources":["../../../components/Meter/Meter.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport React, { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport { resolveColor } from '../../styles/resolveColor';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport {\n caption,\n captionLabel,\n captionValue,\n root,\n segment,\n trackRecipe,\n} from './Meter.vanilla.css';\n\nexport type MeterSegmentVanilla = {\n value: number;\n /** A color token such as `$chartStatusGood`, or any CSS color. Defaults to the chart series colors. */\n color?: string;\n /** Shown as a tooltip and read with the meter, e.g. \"404: 30\". */\n label?: string;\n};\n\ntype MeterValueProps = Omit<MeterSegmentVanilla, 'label'> & { segments?: never };\ntype MeterSegmentsProps = { segments: MeterSegmentVanilla[]; value?: never; color?: never };\n\nexport type MeterVanillaProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'color'> &\n CSSProps &\n (MeterValueProps | MeterSegmentsProps) & {\n /** Defaults to 100 with `value`, and to the sum of the values with `segments`. */\n max?: number;\n /** Caption above the bar, on the left. Also the meter's accessible name. */\n label?: string;\n /** Caption above the bar, on the right, e.g. \"42 GB / 100 GB\". */\n valueLabel?: string;\n size?: 'small' | 'medium' | 'large';\n };\n\n// TODO: replace the native `title` on segments with TooltipVanilla once it exists.\nexport const MeterVanilla = forwardRef<HTMLDivElement, MeterVanillaProps>(\n (\n {\n value,\n color,\n segments,\n max,\n label,\n valueLabel,\n size,\n className,\n css,\n style,\n 'aria-label': ariaLabel,\n ...props\n },\n ref,\n ) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const items: MeterSegmentVanilla[] = segments ?? [{ value: value ?? 0, color }];\n const values = items.map((s) => Math.max(0, s.value));\n const total = max ?? (segments ? values.reduce((sum, v) => sum + v, 0) : 100);\n\n let remaining = total;\n const widths = values.map((v) => {\n const shown = Math.min(v, Math.max(0, remaining));\n remaining -= shown;\n return total > 0 ? (shown / total) * 100 : 0;\n });\n\n const name = ariaLabel ?? label;\n const ariaProps =\n items.length === 1\n ? {\n role: 'meter',\n 'aria-valuenow': Math.min(values[0], total),\n 'aria-valuemin': 0,\n 'aria-valuemax': total,\n 'aria-valuetext': valueLabel ?? items[0].label,\n 'aria-label': name ?? items[0].label,\n }\n : {\n role: 'img',\n 'aria-label':\n ariaLabel ??\n [label, items.map((s) => s.label ?? String(s.value)).join(', ')]\n .filter(Boolean)\n .join(': '),\n };\n\n return (\n <div\n ref={ref}\n className={cx(root, className)}\n style={{ ...cssStyles, ...style, ...assignInlineVars(vars) }}\n {...props}\n >\n {(label || valueLabel) && (\n // Hidden from assistive tech: the meter's name and value text already carry it.\n <div className={caption} aria-hidden>\n {label && <span className={captionLabel}>{label}</span>}\n {valueLabel && <span className={captionValue}>{valueLabel}</span>}\n </div>\n )}\n <div className={trackRecipe({ size })} {...ariaProps}>\n {items.map((s, i) => (\n <div\n key={i}\n className={segment}\n title={s.label}\n style={{\n width: `${widths[i]}%`,\n backgroundColor: s.color && resolveColor(s.color, colors),\n }}\n />\n ))}\n </div>\n </div>\n );\n },\n);\n\nMeterVanilla.displayName = 'MeterVanilla';\n"],"mappings":";;;;;;;;;;;AAwCA,IAAa,gBAAA,GAAeA,MAAAA,WAAAA,EAExB,EACE,OACA,OACA,UACA,KACA,OACA,YACA,MACA,WACA,KACA,OACA,cAAc,WACd,GAAG,SAEL,QACG;CACH,MAAM,EAAE,WAAWC,qBAAAA,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,QAA+B,YAAY,CAAC;EAAE,OAAO,SAAS;EAAG;CAAM,CAAC;CAC9E,MAAM,SAAS,MAAM,KAAK,MAAM,KAAK,IAAI,GAAG,EAAE,KAAK,CAAC;CACpD,MAAM,QAAQ,QAAQ,WAAW,OAAO,QAAQ,KAAK,MAAM,MAAM,GAAG,CAAC,IAAI;CAEzE,IAAI,YAAY;CAChB,MAAM,SAAS,OAAO,KAAK,MAAM;EAC/B,MAAM,QAAQ,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,SAAS,CAAC;EAChD,aAAa;EACb,OAAO,QAAQ,IAAK,QAAQ,QAAS,MAAM;CAC7C,CAAC;CAED,MAAM,OAAO,aAAa;CAC1B,MAAM,YACJ,MAAM,WAAW,IACb;EACE,MAAM;EACN,iBAAiB,KAAK,IAAI,OAAO,IAAI,KAAK;EAC1C,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB,cAAc,MAAM,EAAE,CAAC;EACzC,cAAc,QAAQ,MAAM,EAAE,CAAC;CACjC,IACA;EACE,MAAM;EACN,cACE,aACA,CAAC,OAAO,MAAM,KAAK,MAAM,EAAE,SAAS,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAC7D,OAAO,OAAO,CAAC,CACf,KAAK,IAAI;CAChB;CAEN,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EACO;EACL,WAAWC,WAAAA,GAAGC,0BAAAA,MAAM,SAAS;EAC7B,OAAO;GAAE,GAAG;GAAW,GAAG;GAAO,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;EAAE;EAC3D,GAAI;EAJN,UAAA,EAMI,SAAS,eAET,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;GAAK,WAAA;GAAoB,eAAA;GAAzB,UAAA,CACG,SAAS,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;IAAM,WAAA;IAA0B,UAAA;GAAY,CAAA,GACrD,cAAc,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;IAAM,WAAA;IAA0B,UAAA;GAAiB,CAAA,CAC7D;EAEP,CAAA,GAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,WAAWC,0BAAAA,YAAY,EAAE,KAAK,CAAC;GAAG,GAAI;GACxC,UAAA,MAAM,KAAK,GAAG,MACb,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAEE,WAAWC,0BAAAA;IACX,OAAO,EAAE;IACT,OAAO;KACL,OAAO,GAAG,OAAO,GAAG;KACpB,iBAAiB,EAAE,SAASC,qBAAAA,aAAa,EAAE,OAAO,MAAM;IAC1D;GACD,GAPM,CAON,CACF;EACE,CAAA,CACF;;AAET,CACF;AAEA,aAAa,cAAc"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { resolveColor } from "../../styles/resolveColor.js";
|
|
2
1
|
import { processCSSProp } from "../../styles/cssProps.js";
|
|
2
|
+
import { cx } from "../../styles/cx.js";
|
|
3
|
+
import { resolveColor } from "../../styles/resolveColor.js";
|
|
3
4
|
import { useVanillaExtractTheme } from "../../styles/themeContext.js";
|
|
4
5
|
import { root, segment, trackRecipe } from "./Meter.vanilla.css.js";
|
|
5
6
|
import { forwardRef } from "react";
|
|
@@ -35,7 +36,7 @@ var MeterVanilla = forwardRef(({ value, color, segments, max, label, valueLabel,
|
|
|
35
36
|
};
|
|
36
37
|
return /* @__PURE__ */ jsxs("div", {
|
|
37
38
|
ref,
|
|
38
|
-
className:
|
|
39
|
+
className: cx(root, className),
|
|
39
40
|
style: {
|
|
40
41
|
...cssStyles,
|
|
41
42
|
...style,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Meter.vanilla.js","names":[],"sources":["../../../components/Meter/Meter.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport React, { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { resolveColor } from '../../styles/resolveColor';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport {\n caption,\n captionLabel,\n captionValue,\n root,\n segment,\n trackRecipe,\n} from './Meter.vanilla.css';\n\nexport type MeterSegmentVanilla = {\n value: number;\n /** A color token such as `$chartStatusGood`, or any CSS color. Defaults to the chart series colors. */\n color?: string;\n /** Shown as a tooltip and read with the meter, e.g. \"404: 30\". */\n label?: string;\n};\n\ntype MeterValueProps = Omit<MeterSegmentVanilla, 'label'> & { segments?: never };\ntype MeterSegmentsProps = { segments: MeterSegmentVanilla[]; value?: never; color?: never };\n\nexport type MeterVanillaProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'color'> &\n CSSProps &\n (MeterValueProps | MeterSegmentsProps) & {\n /** Defaults to 100 with `value`, and to the sum of the values with `segments`. */\n max?: number;\n /** Caption above the bar, on the left. Also the meter's accessible name. */\n label?: string;\n /** Caption above the bar, on the right, e.g. \"42 GB / 100 GB\". */\n valueLabel?: string;\n size?: 'small' | 'medium' | 'large';\n };\n\n// TODO: replace the native `title` on segments with TooltipVanilla once it exists.\nexport const MeterVanilla = forwardRef<HTMLDivElement, MeterVanillaProps>(\n (\n {\n value,\n color,\n segments,\n max,\n label,\n valueLabel,\n size,\n className,\n css,\n style,\n 'aria-label': ariaLabel,\n ...props\n },\n ref,\n ) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const items: MeterSegmentVanilla[] = segments ?? [{ value: value ?? 0, color }];\n const values = items.map((s) => Math.max(0, s.value));\n const total = max ?? (segments ? values.reduce((sum, v) => sum + v, 0) : 100);\n\n let remaining = total;\n const widths = values.map((v) => {\n const shown = Math.min(v, Math.max(0, remaining));\n remaining -= shown;\n return total > 0 ? (shown / total) * 100 : 0;\n });\n\n const name = ariaLabel ?? label;\n const ariaProps =\n items.length === 1\n ? {\n role: 'meter',\n 'aria-valuenow': Math.min(values[0], total),\n 'aria-valuemin': 0,\n 'aria-valuemax': total,\n 'aria-valuetext': valueLabel ?? items[0].label,\n 'aria-label': name ?? items[0].label,\n }\n : {\n role: 'img',\n 'aria-label':\n ariaLabel ??\n [label, items.map((s) => s.label ?? String(s.value)).join(', ')]\n .filter(Boolean)\n .join(': '),\n };\n\n return (\n <div\n ref={ref}\n className={
|
|
1
|
+
{"version":3,"file":"Meter.vanilla.js","names":[],"sources":["../../../components/Meter/Meter.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport React, { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport { resolveColor } from '../../styles/resolveColor';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport {\n caption,\n captionLabel,\n captionValue,\n root,\n segment,\n trackRecipe,\n} from './Meter.vanilla.css';\n\nexport type MeterSegmentVanilla = {\n value: number;\n /** A color token such as `$chartStatusGood`, or any CSS color. Defaults to the chart series colors. */\n color?: string;\n /** Shown as a tooltip and read with the meter, e.g. \"404: 30\". */\n label?: string;\n};\n\ntype MeterValueProps = Omit<MeterSegmentVanilla, 'label'> & { segments?: never };\ntype MeterSegmentsProps = { segments: MeterSegmentVanilla[]; value?: never; color?: never };\n\nexport type MeterVanillaProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'color'> &\n CSSProps &\n (MeterValueProps | MeterSegmentsProps) & {\n /** Defaults to 100 with `value`, and to the sum of the values with `segments`. */\n max?: number;\n /** Caption above the bar, on the left. Also the meter's accessible name. */\n label?: string;\n /** Caption above the bar, on the right, e.g. \"42 GB / 100 GB\". */\n valueLabel?: string;\n size?: 'small' | 'medium' | 'large';\n };\n\n// TODO: replace the native `title` on segments with TooltipVanilla once it exists.\nexport const MeterVanilla = forwardRef<HTMLDivElement, MeterVanillaProps>(\n (\n {\n value,\n color,\n segments,\n max,\n label,\n valueLabel,\n size,\n className,\n css,\n style,\n 'aria-label': ariaLabel,\n ...props\n },\n ref,\n ) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const items: MeterSegmentVanilla[] = segments ?? [{ value: value ?? 0, color }];\n const values = items.map((s) => Math.max(0, s.value));\n const total = max ?? (segments ? values.reduce((sum, v) => sum + v, 0) : 100);\n\n let remaining = total;\n const widths = values.map((v) => {\n const shown = Math.min(v, Math.max(0, remaining));\n remaining -= shown;\n return total > 0 ? (shown / total) * 100 : 0;\n });\n\n const name = ariaLabel ?? label;\n const ariaProps =\n items.length === 1\n ? {\n role: 'meter',\n 'aria-valuenow': Math.min(values[0], total),\n 'aria-valuemin': 0,\n 'aria-valuemax': total,\n 'aria-valuetext': valueLabel ?? items[0].label,\n 'aria-label': name ?? items[0].label,\n }\n : {\n role: 'img',\n 'aria-label':\n ariaLabel ??\n [label, items.map((s) => s.label ?? String(s.value)).join(', ')]\n .filter(Boolean)\n .join(': '),\n };\n\n return (\n <div\n ref={ref}\n className={cx(root, className)}\n style={{ ...cssStyles, ...style, ...assignInlineVars(vars) }}\n {...props}\n >\n {(label || valueLabel) && (\n // Hidden from assistive tech: the meter's name and value text already carry it.\n <div className={caption} aria-hidden>\n {label && <span className={captionLabel}>{label}</span>}\n {valueLabel && <span className={captionValue}>{valueLabel}</span>}\n </div>\n )}\n <div className={trackRecipe({ size })} {...ariaProps}>\n {items.map((s, i) => (\n <div\n key={i}\n className={segment}\n title={s.label}\n style={{\n width: `${widths[i]}%`,\n backgroundColor: s.color && resolveColor(s.color, colors),\n }}\n />\n ))}\n </div>\n </div>\n );\n },\n);\n\nMeterVanilla.displayName = 'MeterVanilla';\n"],"mappings":";;;;;;;;;AAwCA,IAAa,eAAe,YAExB,EACE,OACA,OACA,UACA,KACA,OACA,YACA,MACA,WACA,KACA,OACA,cAAc,WACd,GAAG,SAEL,QACG;CACH,MAAM,EAAE,WAAW,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,QAA+B,YAAY,CAAC;EAAE,OAAO,SAAS;EAAG;CAAM,CAAC;CAC9E,MAAM,SAAS,MAAM,KAAK,MAAM,KAAK,IAAI,GAAG,EAAE,KAAK,CAAC;CACpD,MAAM,QAAQ,QAAQ,WAAW,OAAO,QAAQ,KAAK,MAAM,MAAM,GAAG,CAAC,IAAI;CAEzE,IAAI,YAAY;CAChB,MAAM,SAAS,OAAO,KAAK,MAAM;EAC/B,MAAM,QAAQ,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,SAAS,CAAC;EAChD,aAAa;EACb,OAAO,QAAQ,IAAK,QAAQ,QAAS,MAAM;CAC7C,CAAC;CAED,MAAM,OAAO,aAAa;CAC1B,MAAM,YACJ,MAAM,WAAW,IACb;EACE,MAAM;EACN,iBAAiB,KAAK,IAAI,OAAO,IAAI,KAAK;EAC1C,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB,cAAc,MAAM,EAAE,CAAC;EACzC,cAAc,QAAQ,MAAM,EAAE,CAAC;CACjC,IACA;EACE,MAAM;EACN,cACE,aACA,CAAC,OAAO,MAAM,KAAK,MAAM,EAAE,SAAS,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAC7D,OAAO,OAAO,CAAC,CACf,KAAK,IAAI;CAChB;CAEN,OACE,qBAAC,OAAD;EACO;EACL,WAAW,GAAG,MAAM,SAAS;EAC7B,OAAO;GAAE,GAAG;GAAW,GAAG;GAAO,GAAG,iBAAiB,IAAI;EAAE;EAC3D,GAAI;EAJN,UAAA,EAMI,SAAS,eAET,qBAAC,OAAD;GAAK,WAAA;GAAoB,eAAA;GAAzB,UAAA,CACG,SAAS,oBAAC,QAAD;IAAM,WAAA;IAA0B,UAAA;GAAY,CAAA,GACrD,cAAc,oBAAC,QAAD;IAAM,WAAA;IAA0B,UAAA;GAAiB,CAAA,CAC7D;EAEP,CAAA,GAAA,oBAAC,OAAD;GAAK,WAAW,YAAY,EAAE,KAAK,CAAC;GAAG,GAAI;GACxC,UAAA,MAAM,KAAK,GAAG,MACb,oBAAC,OAAD;IAEE,WAAW;IACX,OAAO,EAAE;IACT,OAAO;KACL,OAAO,GAAG,OAAO,GAAG;KACpB,iBAAiB,EAAE,SAAS,aAAa,EAAE,OAAO,MAAM;IAC1D;GACD,GAPM,CAON,CACF;EACE,CAAA,CACF;;AAET,CACF;AAEA,aAAa,cAAc"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
const require_Box = require("../Box/Box.cjs");
|
|
3
3
|
const require_Flex = require("../Flex/Flex.cjs");
|
|
4
|
-
const require_Text = require("../Text/Text.cjs");
|
|
5
4
|
const require_Navigation = require("../Navigation/Navigation.cjs");
|
|
6
|
-
const
|
|
5
|
+
const require_Text = require("../Text/Text.cjs");
|
|
7
6
|
const require_NavigationTreeContainer = require("./NavigationTreeContainer.cjs");
|
|
7
|
+
const require_NavigationTreeContext = require("./NavigationTreeContext.cjs");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_runtime.__toESM(react, 1);
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Box } from "../Box/Box.js";
|
|
2
2
|
import { Flex } from "../Flex/Flex.js";
|
|
3
|
-
import { Text } from "../Text/Text.js";
|
|
4
3
|
import { NavigationItem } from "../Navigation/Navigation.js";
|
|
5
|
-
import {
|
|
4
|
+
import { Text } from "../Text/Text.js";
|
|
6
5
|
import { NavigationTreeContainer } from "./NavigationTreeContainer.js";
|
|
6
|
+
import { useNavigationTree } from "./NavigationTreeContext.js";
|
|
7
7
|
import React, { useMemo, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// components/NavigationTree/NavigationTreeItem.tsx
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_cssProps = require("../../styles/cssProps.cjs");
|
|
2
|
+
const require_cx = require("../../styles/cx.cjs");
|
|
2
3
|
const require_themeContext = require("../../styles/themeContext.cjs");
|
|
3
4
|
const require_Panel_vanilla_css = require("./Panel.vanilla.css.cjs");
|
|
4
5
|
let react = require("react");
|
|
@@ -16,7 +17,7 @@ var PanelVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, sty
|
|
|
16
17
|
};
|
|
17
18
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
18
19
|
ref,
|
|
19
|
-
className:
|
|
20
|
+
className: require_cx.cx(require_Panel_vanilla_css.panelStyle, className),
|
|
20
21
|
style: mergedStyles,
|
|
21
22
|
...props
|
|
22
23
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","panelStyle"],"sources":["../../../components/Panel/Panel.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { panelStyle } from './Panel.vanilla.css';\n\nexport type PanelVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype PanelVanillaComponent = PolymorphicComponent<'div', PanelVanillaProps<ElementType>>;\n\nconst PanelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: PanelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n return (\n <Component
|
|
1
|
+
{"version":3,"file":"Panel.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","cx","panelStyle"],"sources":["../../../components/Panel/Panel.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { panelStyle } from './Panel.vanilla.css';\n\nexport type PanelVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype PanelVanillaComponent = PolymorphicComponent<'div', PanelVanillaProps<ElementType>>;\n\nconst PanelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: PanelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n return (\n <Component ref={ref} className={cx(panelStyle, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nPanelVanillaComponentImpl.displayName = 'PanelVanilla';\n\nexport const PanelVanilla = PanelVanillaComponentImpl as PanelVanillaComponent;\n"],"mappings":";;;;;;;;AAoBA,IAAM,6BAAA,GAA4BA,MAAAA,WAAAA,EAE9B,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAWC,qBAAAA,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAAE;CAEzE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAGC,0BAAAA,YAAY,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEhG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { processCSSProp } from "../../styles/cssProps.js";
|
|
2
|
+
import { cx } from "../../styles/cx.js";
|
|
2
3
|
import { useVanillaExtractTheme } from "../../styles/themeContext.js";
|
|
3
4
|
import { panelStyle } from "./Panel.vanilla.css.js";
|
|
4
5
|
import { forwardRef } from "react";
|
|
@@ -16,7 +17,7 @@ var PanelVanillaComponentImpl = forwardRef(({ as, className, css, style, ...prop
|
|
|
16
17
|
};
|
|
17
18
|
return /* @__PURE__ */ jsx(Component, {
|
|
18
19
|
ref,
|
|
19
|
-
className:
|
|
20
|
+
className: cx(panelStyle, className),
|
|
20
21
|
style: mergedStyles,
|
|
21
22
|
...props
|
|
22
23
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.vanilla.js","names":[],"sources":["../../../components/Panel/Panel.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { panelStyle } from './Panel.vanilla.css';\n\nexport type PanelVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype PanelVanillaComponent = PolymorphicComponent<'div', PanelVanillaProps<ElementType>>;\n\nconst PanelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: PanelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n return (\n <Component
|
|
1
|
+
{"version":3,"file":"Panel.vanilla.js","names":[],"sources":["../../../components/Panel/Panel.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { panelStyle } from './Panel.vanilla.css';\n\nexport type PanelVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype PanelVanillaComponent = PolymorphicComponent<'div', PanelVanillaProps<ElementType>>;\n\nconst PanelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: PanelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n return (\n <Component ref={ref} className={cx(panelStyle, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nPanelVanillaComponentImpl.displayName = 'PanelVanilla';\n\nexport const PanelVanilla = PanelVanillaComponentImpl as PanelVanillaComponent;\n"],"mappings":";;;;;;;;AAoBA,IAAM,4BAA4B,YAE9B,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,GAAG,iBAAiB,IAAI;CAAE;CAEzE,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,YAAY,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEhG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_cssProps = require("../../styles/cssProps.cjs");
|
|
2
|
+
const require_cx = require("../../styles/cx.cjs");
|
|
2
3
|
const require_themeContext = require("../../styles/themeContext.cjs");
|
|
3
4
|
const require_Paragraph_vanilla_css = require("./Paragraph.vanilla.css.cjs");
|
|
4
5
|
let react = require("react");
|
|
@@ -17,7 +18,7 @@ var ParagraphVanillaComponentImpl = (0, react.forwardRef)(({ as, size, className
|
|
|
17
18
|
const recipeClass = require_Paragraph_vanilla_css.paragraphRecipe({ size });
|
|
18
19
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
19
20
|
ref,
|
|
20
|
-
className:
|
|
21
|
+
className: require_cx.cx(recipeClass, className),
|
|
21
22
|
style: mergedStyles,
|
|
22
23
|
...props
|
|
23
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","paragraphRecipe"],"sources":["../../../components/Paragraph/Paragraph.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { paragraphRecipe } from './Paragraph.vanilla.css';\n\ntype ParagraphRecipeVariants = RecipeVariants<typeof paragraphRecipe>;\n\ninterface ParagraphOwnProps extends Omit<ParagraphRecipeVariants, never>, CSSProps {}\n\nexport type ParagraphVanillaProps<C extends ElementType = 'p'> = PolymorphicComponentProps<\n C,\n ParagraphOwnProps\n>;\n\ntype ParagraphVanillaComponent = PolymorphicComponent<'p', ParagraphVanillaProps<ElementType>>;\n\nconst ParagraphVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'p'>(\n { as, size, className, css, style, ...props }: ParagraphVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'p';\n\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = paragraphRecipe({ size });\n\n return (\n <Component
|
|
1
|
+
{"version":3,"file":"Paragraph.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","paragraphRecipe","cx"],"sources":["../../../components/Paragraph/Paragraph.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { paragraphRecipe } from './Paragraph.vanilla.css';\n\ntype ParagraphRecipeVariants = RecipeVariants<typeof paragraphRecipe>;\n\ninterface ParagraphOwnProps extends Omit<ParagraphRecipeVariants, never>, CSSProps {}\n\nexport type ParagraphVanillaProps<C extends ElementType = 'p'> = PolymorphicComponentProps<\n C,\n ParagraphOwnProps\n>;\n\ntype ParagraphVanillaComponent = PolymorphicComponent<'p', ParagraphVanillaProps<ElementType>>;\n\nconst ParagraphVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'p'>(\n { as, size, className, css, style, ...props }: ParagraphVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'p';\n\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = paragraphRecipe({ size });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nParagraphVanillaComponentImpl.displayName = 'ParagraphVanilla';\n\nexport const ParagraphVanilla = ParagraphVanillaComponentImpl as ParagraphVanillaComponent;\n"],"mappings":";;;;;;;;AAyBA,IAAM,iCAAA,GAAgCA,MAAAA,WAAAA,EAElC,EAAE,IAAI,MAAM,WAAW,KAAK,OAAO,GAAG,SACtC,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAWC,qBAAAA,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAC1B;CAEA,MAAM,cAAcC,8BAAAA,gBAAgB,EAAE,KAAK,CAAC;CAE5C,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,8BAA8B,cAAc;AAE5C,IAAa,mBAAmB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { processCSSProp } from "../../styles/cssProps.js";
|
|
2
|
+
import { cx } from "../../styles/cx.js";
|
|
2
3
|
import { useVanillaExtractTheme } from "../../styles/themeContext.js";
|
|
3
4
|
import { paragraphRecipe } from "./Paragraph.vanilla.css.js";
|
|
4
5
|
import { forwardRef } from "react";
|
|
@@ -17,7 +18,7 @@ var ParagraphVanillaComponentImpl = forwardRef(({ as, size, className, css, styl
|
|
|
17
18
|
const recipeClass = paragraphRecipe({ size });
|
|
18
19
|
return /* @__PURE__ */ jsx(Component, {
|
|
19
20
|
ref,
|
|
20
|
-
className:
|
|
21
|
+
className: cx(recipeClass, className),
|
|
21
22
|
style: mergedStyles,
|
|
22
23
|
...props
|
|
23
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.vanilla.js","names":[],"sources":["../../../components/Paragraph/Paragraph.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { paragraphRecipe } from './Paragraph.vanilla.css';\n\ntype ParagraphRecipeVariants = RecipeVariants<typeof paragraphRecipe>;\n\ninterface ParagraphOwnProps extends Omit<ParagraphRecipeVariants, never>, CSSProps {}\n\nexport type ParagraphVanillaProps<C extends ElementType = 'p'> = PolymorphicComponentProps<\n C,\n ParagraphOwnProps\n>;\n\ntype ParagraphVanillaComponent = PolymorphicComponent<'p', ParagraphVanillaProps<ElementType>>;\n\nconst ParagraphVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'p'>(\n { as, size, className, css, style, ...props }: ParagraphVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'p';\n\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = paragraphRecipe({ size });\n\n return (\n <Component
|
|
1
|
+
{"version":3,"file":"Paragraph.vanilla.js","names":[],"sources":["../../../components/Paragraph/Paragraph.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { paragraphRecipe } from './Paragraph.vanilla.css';\n\ntype ParagraphRecipeVariants = RecipeVariants<typeof paragraphRecipe>;\n\ninterface ParagraphOwnProps extends Omit<ParagraphRecipeVariants, never>, CSSProps {}\n\nexport type ParagraphVanillaProps<C extends ElementType = 'p'> = PolymorphicComponentProps<\n C,\n ParagraphOwnProps\n>;\n\ntype ParagraphVanillaComponent = PolymorphicComponent<'p', ParagraphVanillaProps<ElementType>>;\n\nconst ParagraphVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'p'>(\n { as, size, className, css, style, ...props }: ParagraphVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'p';\n\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = paragraphRecipe({ size });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nParagraphVanillaComponentImpl.displayName = 'ParagraphVanilla';\n\nexport const ParagraphVanilla = ParagraphVanillaComponentImpl as ParagraphVanillaComponent;\n"],"mappings":";;;;;;;;AAyBA,IAAM,gCAAgC,YAElC,EAAE,IAAI,MAAM,WAAW,KAAK,OAAO,GAAG,SACtC,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAEA,MAAM,cAAc,gBAAgB,EAAE,KAAK,CAAC;CAE5C,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,8BAA8B,cAAc;AAE5C,IAAa,mBAAmB"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
const require_stitches_config = require("../../stitches.config.cjs");
|
|
3
|
+
const require_RowLink_constants = require("./RowLink.constants.cjs");
|
|
4
|
+
const require_RowLink_utils = require("./RowLink.utils.cjs");
|
|
3
5
|
let react = require("react");
|
|
4
6
|
react = require_runtime.__toESM(react, 1);
|
|
5
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
8
|
let _radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
7
9
|
// components/RowLink/RowLink.tsx
|
|
8
|
-
var ROW_LINK_ATTRIBUTE = "data-row-link";
|
|
9
|
-
var STITCHES_INTERNAL = Symbol.for("sxs.internal");
|
|
10
|
-
var ROW_LINK_Z_INDEX = 1;
|
|
11
|
-
var ROW_LINK_CONTROLS = `:where(a, button, input, select, textarea, [tabindex]):where(:not([${ROW_LINK_ATTRIBUTE}]))`;
|
|
12
10
|
var rowLinkStyles = {
|
|
13
11
|
color: "inherit",
|
|
14
12
|
textDecoration: "none",
|
|
@@ -17,23 +15,30 @@ var rowLinkStyles = {
|
|
|
17
15
|
content: "\"\"",
|
|
18
16
|
position: "absolute",
|
|
19
17
|
inset: 0,
|
|
20
|
-
zIndex:
|
|
18
|
+
zIndex: 1
|
|
21
19
|
},
|
|
22
20
|
"&:focus-visible::after": {
|
|
23
21
|
outlineWidth: "2px",
|
|
24
22
|
outlineStyle: "solid",
|
|
25
23
|
outlineColor: "$focusOutline",
|
|
26
24
|
outlineOffset: "-2px"
|
|
25
|
+
},
|
|
26
|
+
[`&[${require_RowLink_constants.ROW_LINK_ATTRIBUTE}="click"]::after`]: { content: "none" },
|
|
27
|
+
[`&[${require_RowLink_constants.ROW_LINK_ATTRIBUTE}="click"]:focus-visible`]: {
|
|
28
|
+
outlineWidth: "2px",
|
|
29
|
+
outlineStyle: "solid",
|
|
30
|
+
outlineColor: "$focusOutline",
|
|
31
|
+
outlineOffset: "2px"
|
|
27
32
|
}
|
|
28
33
|
};
|
|
29
34
|
var StyledRowLink = require_stitches_config.styled("a", rowLinkStyles);
|
|
30
35
|
var StyledRowLinkSlot = require_stitches_config.styled(_radix_ui_react_slot.Slot, rowLinkStyles);
|
|
31
36
|
/** Styles for a table that can hold a `RowLink`. */
|
|
32
|
-
var rowLinkTableStyles = { [`&:has([${ROW_LINK_ATTRIBUTE}])`]: { isolation: "isolate" } };
|
|
37
|
+
var rowLinkTableStyles = { [`&:has([${require_RowLink_constants.ROW_LINK_ATTRIBUTE}])`]: { isolation: "isolate" } };
|
|
33
38
|
/** Styles for a table row that can hold a `RowLink`. */
|
|
34
39
|
var rowLinkRowStyles = {
|
|
35
|
-
[`&:has([${ROW_LINK_ATTRIBUTE}])`]: { position: "relative" },
|
|
36
|
-
[`&:has([${ROW_LINK_ATTRIBUTE}]) ${ROW_LINK_CONTROLS}`]: {
|
|
40
|
+
[`&:has([${require_RowLink_constants.ROW_LINK_ATTRIBUTE}])`]: { position: "relative" },
|
|
41
|
+
[`&:has([${require_RowLink_constants.ROW_LINK_ATTRIBUTE}]) ${require_RowLink_constants.ROW_LINK_CONTROLS}`]: {
|
|
37
42
|
position: "relative",
|
|
38
43
|
zIndex: 2
|
|
39
44
|
}
|
|
@@ -42,52 +47,19 @@ var rowLinkRowStyles = {
|
|
|
42
47
|
* A link that covers its whole table row, so that a click on the row opens it.
|
|
43
48
|
* Other links and buttons in the row stay above it.
|
|
44
49
|
*/
|
|
45
|
-
var RowLink = react.default.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
50
|
+
var RowLink = react.default.forwardRef(({ asChild, overlay = true, ...props }, forwardedRef) => {
|
|
46
51
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(asChild ? StyledRowLinkSlot : StyledRowLink, {
|
|
47
52
|
ref: forwardedRef,
|
|
48
|
-
[ROW_LINK_ATTRIBUTE]: "",
|
|
53
|
+
[require_RowLink_constants.ROW_LINK_ATTRIBUTE]: overlay ? "" : "click",
|
|
49
54
|
...props
|
|
50
55
|
});
|
|
51
56
|
});
|
|
52
57
|
RowLink.displayName = "RowLink";
|
|
53
|
-
var isCellType = (type, cellType) => {
|
|
54
|
-
if (type === cellType) return true;
|
|
55
|
-
if (!type || typeof type !== "object" && typeof type !== "function") return false;
|
|
56
|
-
const { className, [STITCHES_INTERNAL]: internal } = type;
|
|
57
|
-
const cellClassName = cellType.className;
|
|
58
|
-
return internal?.type === cellType || !!cellClassName && className === cellClassName;
|
|
59
|
-
};
|
|
60
|
-
var warnedMessages = /* @__PURE__ */ new Set();
|
|
61
|
-
var warnOnce = (message) => {
|
|
62
|
-
if (typeof process !== "undefined" && process.env.NODE_ENV === "production") return;
|
|
63
|
-
if (!warnedMessages.has(message)) {
|
|
64
|
-
warnedMessages.add(message);
|
|
65
|
-
console.warn(message);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
58
|
/** Puts the content of the `cellType` cell at `linkCell` in a `RowLink` to `href`. */
|
|
69
|
-
var withRowLink = (children,
|
|
70
|
-
if (href === void 0) return children;
|
|
71
|
-
let cellIndex = -1;
|
|
72
|
-
let linked = false;
|
|
73
|
-
const mapped = react.Children.map(children, (child) => {
|
|
74
|
-
if (!(0, react.isValidElement)(child)) return child;
|
|
75
|
-
cellIndex += 1;
|
|
76
|
-
if (cellIndex !== linkCell || !isCellType(child.type, cellType)) return child;
|
|
77
|
-
linked = true;
|
|
78
|
-
return (0, react.cloneElement)(child, void 0, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RowLink, {
|
|
79
|
-
asChild: true,
|
|
80
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LinkComponent, {
|
|
81
|
-
...linkProps,
|
|
82
|
-
href,
|
|
83
|
-
children: child.props.children
|
|
84
|
-
})
|
|
85
|
-
}));
|
|
86
|
-
});
|
|
87
|
-
if (!linked) warnOnce(`Tr: the child at linkCell ${linkCell} is not a Td, so the row has no link. Use a Td for that cell, or put a RowLink in it.`);
|
|
88
|
-
return mapped;
|
|
89
|
-
};
|
|
59
|
+
var withRowLink = (children, options, cellType) => require_RowLink_utils.mapRowLink(children, options, cellType, RowLink);
|
|
90
60
|
exports.RowLink = RowLink;
|
|
61
|
+
exports.handleRowClick = require_RowLink_utils.handleRowClick;
|
|
62
|
+
exports.openRowLink = require_RowLink_utils.openRowLink;
|
|
91
63
|
exports.rowLinkRowStyles = rowLinkRowStyles;
|
|
92
64
|
exports.rowLinkTableStyles = rowLinkTableStyles;
|
|
93
65
|
exports.withRowLink = withRowLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowLink.cjs","names":["
|
|
1
|
+
{"version":3,"file":"RowLink.cjs","names":["ROW_LINK_ATTRIBUTE","styled","Slot","ROW_LINK_CONTROLS","React","mapRowLink"],"sources":["../../../components/RowLink/RowLink.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport React, { ReactNode } from 'react';\n\nimport { CSS, styled } from '../../stitches.config';\nimport {\n ROW_LINK_ATTRIBUTE,\n ROW_LINK_CONTROL_Z_INDEX,\n ROW_LINK_CONTROLS,\n ROW_LINK_Z_INDEX,\n} from './RowLink.constants';\nimport { mapRowLink, RowLinkShortcutProps } from './RowLink.utils';\n\nexport { ROW_LINK_CONTROL_Z_INDEX };\nexport type { RowLinkShortcutProps } from './RowLink.utils';\nexport { handleRowClick, openRowLink } from './RowLink.utils';\n\nconst rowLinkStyles = {\n color: 'inherit',\n textDecoration: 'none',\n outline: 'none',\n\n '&::after': {\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n zIndex: ROW_LINK_Z_INDEX,\n },\n\n '&:focus-visible::after': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: '$focusOutline',\n outlineOffset: '-2px',\n },\n\n [`&[${ROW_LINK_ATTRIBUTE}=\"click\"]::after`]: {\n content: 'none',\n },\n\n [`&[${ROW_LINK_ATTRIBUTE}=\"click\"]:focus-visible`]: {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: '$focusOutline',\n outlineOffset: '2px',\n },\n};\n\nconst StyledRowLink = styled('a', rowLinkStyles);\nconst StyledRowLinkSlot = styled(Slot, rowLinkStyles);\n\n/** Styles for a table that can hold a `RowLink`. */\nexport const rowLinkTableStyles = {\n [`&:has([${ROW_LINK_ATTRIBUTE}])`]: {\n isolation: 'isolate',\n },\n};\n\n/** Styles for a table row that can hold a `RowLink`. */\nexport const rowLinkRowStyles = {\n [`&:has([${ROW_LINK_ATTRIBUTE}])`]: {\n position: 'relative',\n },\n // Not at zero specificity, so that it wins over the `all: unset` of controls such as Checkbox.\n [`&:has([${ROW_LINK_ATTRIBUTE}]) ${ROW_LINK_CONTROLS}`]: {\n position: 'relative',\n zIndex: ROW_LINK_CONTROL_Z_INDEX,\n },\n};\n\nexport type RowLinkProps = React.ComponentProps<typeof StyledRowLink> & {\n asChild?: boolean;\n css?: CSS;\n /**\n * With `false`, the link does not cover the row. The row opens it on a click instead, so the text of the\n * row keeps its hover, for example a tooltip, and can be selected.\n */\n overlay?: boolean;\n};\n\n/**\n * A link that covers its whole table row, so that a click on the row opens it.\n * Other links and buttons in the row stay above it.\n */\nexport const RowLink = React.forwardRef<HTMLAnchorElement, RowLinkProps>(\n ({ asChild, overlay = true, ...props }, forwardedRef) => {\n const Component = asChild ? StyledRowLinkSlot : StyledRowLink;\n\n return (\n <Component\n ref={forwardedRef}\n {...{ [ROW_LINK_ATTRIBUTE]: overlay ? '' : 'click' }}\n {...props}\n />\n );\n },\n);\n\nRowLink.displayName = 'RowLink';\n\n/** Puts the content of the `cellType` cell at `linkCell` in a `RowLink` to `href`. */\nexport const withRowLink = (\n children: ReactNode,\n options: RowLinkShortcutProps,\n cellType: React.ElementType,\n) => mapRowLink(children, options, cellType, RowLink);\n"],"mappings":";;;;;;;;;AAgBA,IAAM,gBAAgB;CACpB,OAAO;CACP,gBAAgB;CAChB,SAAS;CAET,YAAY;EACV,SAAS;EACT,UAAU;EACV,OAAO;EACP,QAAA;CACF;CAEA,0BAA0B;EACxB,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;CACjB;EAEC,KAAKA,0BAAAA,mBAAmB,oBAAoB,EAC3C,SAAS,OACX;EAEC,KAAKA,0BAAAA,mBAAmB,2BAA2B;EAClD,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;CACjB;AACF;AAEA,IAAM,gBAAgBC,wBAAAA,OAAO,KAAK,aAAa;AAC/C,IAAM,oBAAoBA,wBAAAA,OAAOC,qBAAAA,MAAM,aAAa;;AAGpD,IAAa,qBAAqB,GAC/B,UAAUF,0BAAAA,mBAAmB,MAAM,EAClC,WAAW,UACb,EACF;;AAGA,IAAa,mBAAmB;EAC7B,UAAUA,0BAAAA,mBAAmB,MAAM,EAClC,UAAU,WACZ;EAEC,UAAUA,0BAAAA,mBAAmB,KAAKG,0BAAAA,sBAAsB;EACvD,UAAU;EACV,QAAA;CACF;AACF;;;;;AAgBA,IAAa,UAAUC,MAAAA,QAAM,YAC1B,EAAE,SAAS,UAAU,MAAM,GAAG,SAAS,iBAAiB;CAGvD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAHgB,UAAU,oBAAoB,eAG9C;EACE,KAAK;GACEJ,0BAAAA,qBAAqB,UAAU,KAAK;EAC3C,GAAI;CACL,CAAA;AAEL,CACF;AAEA,QAAQ,cAAc;;AAGtB,IAAa,eACX,UACA,SACA,aACGK,sBAAAA,WAAW,UAAU,SAAS,UAAU,OAAO"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// components/RowLink/RowLink.constants.ts
|
|
2
|
+
var ROW_LINK_ATTRIBUTE = "data-row-link";
|
|
3
|
+
var ROW_LINK_CONTROLS = `:where(a, button, input, select, textarea, [tabindex]):where(:not([${ROW_LINK_ATTRIBUTE}]))`;
|
|
4
|
+
exports.ROW_LINK_ATTRIBUTE = ROW_LINK_ATTRIBUTE;
|
|
5
|
+
exports.ROW_LINK_CONTROLS = ROW_LINK_CONTROLS;
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=RowLink.constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowLink.constants.cjs","names":[],"sources":["../../../components/RowLink/RowLink.constants.ts"],"sourcesContent":["export const ROW_LINK_ATTRIBUTE = 'data-row-link';\n\nexport const ROW_LINK_Z_INDEX = 1;\nexport const ROW_LINK_CONTROL_Z_INDEX = 2;\nexport const ROW_LINK_CONTROLS = `:where(a, button, input, select, textarea, [tabindex]):where(:not([${ROW_LINK_ATTRIBUTE}]))`;\n"],"mappings":";AAAA,IAAa,qBAAqB;AAIlC,IAAa,oBAAoB,sEAAsE,mBAAmB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// components/RowLink/RowLink.constants.ts
|
|
2
|
+
var ROW_LINK_ATTRIBUTE = "data-row-link";
|
|
3
|
+
var ROW_LINK_CONTROLS = `:where(a, button, input, select, textarea, [tabindex]):where(:not([${ROW_LINK_ATTRIBUTE}]))`;
|
|
4
|
+
export { ROW_LINK_ATTRIBUTE, ROW_LINK_CONTROLS };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=RowLink.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowLink.constants.js","names":[],"sources":["../../../components/RowLink/RowLink.constants.ts"],"sourcesContent":["export const ROW_LINK_ATTRIBUTE = 'data-row-link';\n\nexport const ROW_LINK_Z_INDEX = 1;\nexport const ROW_LINK_CONTROL_Z_INDEX = 2;\nexport const ROW_LINK_CONTROLS = `:where(a, button, input, select, textarea, [tabindex]):where(:not([${ROW_LINK_ATTRIBUTE}]))`;\n"],"mappings":";AAAA,IAAa,qBAAqB;AAIlC,IAAa,oBAAoB,sEAAsE,mBAAmB"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { styled } from "../../stitches.config.js";
|
|
2
|
-
import
|
|
2
|
+
import { ROW_LINK_ATTRIBUTE, ROW_LINK_CONTROLS } from "./RowLink.constants.js";
|
|
3
|
+
import { handleRowClick, mapRowLink, openRowLink } from "./RowLink.utils.js";
|
|
4
|
+
import React from "react";
|
|
3
5
|
import { jsx } from "react/jsx-runtime";
|
|
4
6
|
import { Slot } from "@radix-ui/react-slot";
|
|
5
7
|
// components/RowLink/RowLink.tsx
|
|
6
|
-
var ROW_LINK_ATTRIBUTE = "data-row-link";
|
|
7
|
-
var STITCHES_INTERNAL = Symbol.for("sxs.internal");
|
|
8
|
-
var ROW_LINK_Z_INDEX = 1;
|
|
9
|
-
var ROW_LINK_CONTROLS = `:where(a, button, input, select, textarea, [tabindex]):where(:not([${ROW_LINK_ATTRIBUTE}]))`;
|
|
10
8
|
var rowLinkStyles = {
|
|
11
9
|
color: "inherit",
|
|
12
10
|
textDecoration: "none",
|
|
@@ -15,13 +13,20 @@ var rowLinkStyles = {
|
|
|
15
13
|
content: "\"\"",
|
|
16
14
|
position: "absolute",
|
|
17
15
|
inset: 0,
|
|
18
|
-
zIndex:
|
|
16
|
+
zIndex: 1
|
|
19
17
|
},
|
|
20
18
|
"&:focus-visible::after": {
|
|
21
19
|
outlineWidth: "2px",
|
|
22
20
|
outlineStyle: "solid",
|
|
23
21
|
outlineColor: "$focusOutline",
|
|
24
22
|
outlineOffset: "-2px"
|
|
23
|
+
},
|
|
24
|
+
[`&[${ROW_LINK_ATTRIBUTE}="click"]::after`]: { content: "none" },
|
|
25
|
+
[`&[${ROW_LINK_ATTRIBUTE}="click"]:focus-visible`]: {
|
|
26
|
+
outlineWidth: "2px",
|
|
27
|
+
outlineStyle: "solid",
|
|
28
|
+
outlineColor: "$focusOutline",
|
|
29
|
+
outlineOffset: "2px"
|
|
25
30
|
}
|
|
26
31
|
};
|
|
27
32
|
var StyledRowLink = styled("a", rowLinkStyles);
|
|
@@ -40,51 +45,16 @@ var rowLinkRowStyles = {
|
|
|
40
45
|
* A link that covers its whole table row, so that a click on the row opens it.
|
|
41
46
|
* Other links and buttons in the row stay above it.
|
|
42
47
|
*/
|
|
43
|
-
var RowLink = React.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
48
|
+
var RowLink = React.forwardRef(({ asChild, overlay = true, ...props }, forwardedRef) => {
|
|
44
49
|
return /* @__PURE__ */ jsx(asChild ? StyledRowLinkSlot : StyledRowLink, {
|
|
45
50
|
ref: forwardedRef,
|
|
46
|
-
[ROW_LINK_ATTRIBUTE]: "",
|
|
51
|
+
[ROW_LINK_ATTRIBUTE]: overlay ? "" : "click",
|
|
47
52
|
...props
|
|
48
53
|
});
|
|
49
54
|
});
|
|
50
55
|
RowLink.displayName = "RowLink";
|
|
51
|
-
var isCellType = (type, cellType) => {
|
|
52
|
-
if (type === cellType) return true;
|
|
53
|
-
if (!type || typeof type !== "object" && typeof type !== "function") return false;
|
|
54
|
-
const { className, [STITCHES_INTERNAL]: internal } = type;
|
|
55
|
-
const cellClassName = cellType.className;
|
|
56
|
-
return internal?.type === cellType || !!cellClassName && className === cellClassName;
|
|
57
|
-
};
|
|
58
|
-
var warnedMessages = /* @__PURE__ */ new Set();
|
|
59
|
-
var warnOnce = (message) => {
|
|
60
|
-
if (typeof process !== "undefined" && process.env.NODE_ENV === "production") return;
|
|
61
|
-
if (!warnedMessages.has(message)) {
|
|
62
|
-
warnedMessages.add(message);
|
|
63
|
-
console.warn(message);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
56
|
/** Puts the content of the `cellType` cell at `linkCell` in a `RowLink` to `href`. */
|
|
67
|
-
var withRowLink = (children,
|
|
68
|
-
|
|
69
|
-
let cellIndex = -1;
|
|
70
|
-
let linked = false;
|
|
71
|
-
const mapped = Children.map(children, (child) => {
|
|
72
|
-
if (!isValidElement(child)) return child;
|
|
73
|
-
cellIndex += 1;
|
|
74
|
-
if (cellIndex !== linkCell || !isCellType(child.type, cellType)) return child;
|
|
75
|
-
linked = true;
|
|
76
|
-
return cloneElement(child, void 0, /* @__PURE__ */ jsx(RowLink, {
|
|
77
|
-
asChild: true,
|
|
78
|
-
children: /* @__PURE__ */ jsx(LinkComponent, {
|
|
79
|
-
...linkProps,
|
|
80
|
-
href,
|
|
81
|
-
children: child.props.children
|
|
82
|
-
})
|
|
83
|
-
}));
|
|
84
|
-
});
|
|
85
|
-
if (!linked) warnOnce(`Tr: the child at linkCell ${linkCell} is not a Td, so the row has no link. Use a Td for that cell, or put a RowLink in it.`);
|
|
86
|
-
return mapped;
|
|
87
|
-
};
|
|
88
|
-
export { RowLink, rowLinkRowStyles, rowLinkTableStyles, withRowLink };
|
|
57
|
+
var withRowLink = (children, options, cellType) => mapRowLink(children, options, cellType, RowLink);
|
|
58
|
+
export { RowLink, handleRowClick, openRowLink, rowLinkRowStyles, rowLinkTableStyles, withRowLink };
|
|
89
59
|
|
|
90
60
|
//# sourceMappingURL=RowLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowLink.js","names":[],"sources":["../../../components/RowLink/RowLink.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport React, {
|
|
1
|
+
{"version":3,"file":"RowLink.js","names":[],"sources":["../../../components/RowLink/RowLink.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport React, { ReactNode } from 'react';\n\nimport { CSS, styled } from '../../stitches.config';\nimport {\n ROW_LINK_ATTRIBUTE,\n ROW_LINK_CONTROL_Z_INDEX,\n ROW_LINK_CONTROLS,\n ROW_LINK_Z_INDEX,\n} from './RowLink.constants';\nimport { mapRowLink, RowLinkShortcutProps } from './RowLink.utils';\n\nexport { ROW_LINK_CONTROL_Z_INDEX };\nexport type { RowLinkShortcutProps } from './RowLink.utils';\nexport { handleRowClick, openRowLink } from './RowLink.utils';\n\nconst rowLinkStyles = {\n color: 'inherit',\n textDecoration: 'none',\n outline: 'none',\n\n '&::after': {\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n zIndex: ROW_LINK_Z_INDEX,\n },\n\n '&:focus-visible::after': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: '$focusOutline',\n outlineOffset: '-2px',\n },\n\n [`&[${ROW_LINK_ATTRIBUTE}=\"click\"]::after`]: {\n content: 'none',\n },\n\n [`&[${ROW_LINK_ATTRIBUTE}=\"click\"]:focus-visible`]: {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: '$focusOutline',\n outlineOffset: '2px',\n },\n};\n\nconst StyledRowLink = styled('a', rowLinkStyles);\nconst StyledRowLinkSlot = styled(Slot, rowLinkStyles);\n\n/** Styles for a table that can hold a `RowLink`. */\nexport const rowLinkTableStyles = {\n [`&:has([${ROW_LINK_ATTRIBUTE}])`]: {\n isolation: 'isolate',\n },\n};\n\n/** Styles for a table row that can hold a `RowLink`. */\nexport const rowLinkRowStyles = {\n [`&:has([${ROW_LINK_ATTRIBUTE}])`]: {\n position: 'relative',\n },\n // Not at zero specificity, so that it wins over the `all: unset` of controls such as Checkbox.\n [`&:has([${ROW_LINK_ATTRIBUTE}]) ${ROW_LINK_CONTROLS}`]: {\n position: 'relative',\n zIndex: ROW_LINK_CONTROL_Z_INDEX,\n },\n};\n\nexport type RowLinkProps = React.ComponentProps<typeof StyledRowLink> & {\n asChild?: boolean;\n css?: CSS;\n /**\n * With `false`, the link does not cover the row. The row opens it on a click instead, so the text of the\n * row keeps its hover, for example a tooltip, and can be selected.\n */\n overlay?: boolean;\n};\n\n/**\n * A link that covers its whole table row, so that a click on the row opens it.\n * Other links and buttons in the row stay above it.\n */\nexport const RowLink = React.forwardRef<HTMLAnchorElement, RowLinkProps>(\n ({ asChild, overlay = true, ...props }, forwardedRef) => {\n const Component = asChild ? StyledRowLinkSlot : StyledRowLink;\n\n return (\n <Component\n ref={forwardedRef}\n {...{ [ROW_LINK_ATTRIBUTE]: overlay ? '' : 'click' }}\n {...props}\n />\n );\n },\n);\n\nRowLink.displayName = 'RowLink';\n\n/** Puts the content of the `cellType` cell at `linkCell` in a `RowLink` to `href`. */\nexport const withRowLink = (\n children: ReactNode,\n options: RowLinkShortcutProps,\n cellType: React.ElementType,\n) => mapRowLink(children, options, cellType, RowLink);\n"],"mappings":";;;;;;;AAgBA,IAAM,gBAAgB;CACpB,OAAO;CACP,gBAAgB;CAChB,SAAS;CAET,YAAY;EACV,SAAS;EACT,UAAU;EACV,OAAO;EACP,QAAA;CACF;CAEA,0BAA0B;EACxB,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;CACjB;EAEC,KAAK,mBAAmB,oBAAoB,EAC3C,SAAS,OACX;EAEC,KAAK,mBAAmB,2BAA2B;EAClD,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;CACjB;AACF;AAEA,IAAM,gBAAgB,OAAO,KAAK,aAAa;AAC/C,IAAM,oBAAoB,OAAO,MAAM,aAAa;;AAGpD,IAAa,qBAAqB,GAC/B,UAAU,mBAAmB,MAAM,EAClC,WAAW,UACb,EACF;;AAGA,IAAa,mBAAmB;EAC7B,UAAU,mBAAmB,MAAM,EAClC,UAAU,WACZ;EAEC,UAAU,mBAAmB,KAAK,sBAAsB;EACvD,UAAU;EACV,QAAA;CACF;AACF;;;;;AAgBA,IAAa,UAAU,MAAM,YAC1B,EAAE,SAAS,UAAU,MAAM,GAAG,SAAS,iBAAiB;CAGvD,OACE,oBAHgB,UAAU,oBAAoB,eAG9C;EACE,KAAK;GACE,qBAAqB,UAAU,KAAK;EAC3C,GAAI;CACL,CAAA;AAEL,CACF;AAEA,QAAQ,cAAc;;AAGtB,IAAa,eACX,UACA,SACA,aACG,WAAW,UAAU,SAAS,UAAU,OAAO"}
|