@traefik-labs/faency 13.7.1 → 13.8.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.
Files changed (175) hide show
  1. package/README.md +1 -2
  2. package/dist/components/AriaTable/AriaTable.cjs +48 -22
  3. package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
  4. package/dist/components/AriaTable/AriaTable.js +49 -23
  5. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  6. package/dist/components/AriaTable/AriaTable.vanilla.cjs +8 -4
  7. package/dist/components/AriaTable/AriaTable.vanilla.cjs.map +1 -1
  8. package/dist/components/AriaTable/AriaTable.vanilla.js +8 -4
  9. package/dist/components/AriaTable/AriaTable.vanilla.js.map +1 -1
  10. package/dist/components/Avatar/Avatar.vanilla.cjs +5 -2
  11. package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
  12. package/dist/components/Avatar/Avatar.vanilla.js +5 -2
  13. package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
  14. package/dist/components/Badge/Badge.vanilla.cjs +2 -10
  15. package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
  16. package/dist/components/Badge/Badge.vanilla.js +2 -10
  17. package/dist/components/Badge/Badge.vanilla.js.map +1 -1
  18. package/dist/components/Blockquote/Blockquote.vanilla.cjs +5 -11
  19. package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
  20. package/dist/components/Blockquote/Blockquote.vanilla.js +5 -11
  21. package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
  22. package/dist/components/Box/Box.vanilla.cjs +2 -10
  23. package/dist/components/Box/Box.vanilla.cjs.map +1 -1
  24. package/dist/components/Box/Box.vanilla.js +2 -10
  25. package/dist/components/Box/Box.vanilla.js.map +1 -1
  26. package/dist/components/Bubble/Bubble.vanilla.cjs +2 -10
  27. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
  28. package/dist/components/Bubble/Bubble.vanilla.js +2 -10
  29. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
  30. package/dist/components/Button/Button.vanilla.cjs +2 -10
  31. package/dist/components/Button/Button.vanilla.cjs.map +1 -1
  32. package/dist/components/Button/Button.vanilla.js +2 -10
  33. package/dist/components/Button/Button.vanilla.js.map +1 -1
  34. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +3 -17
  35. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  36. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +3 -17
  37. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
  38. package/dist/components/Card/Card.vanilla.cjs +6 -11
  39. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  40. package/dist/components/Card/Card.vanilla.js +6 -11
  41. package/dist/components/Card/Card.vanilla.js.map +1 -1
  42. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +3 -6
  43. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
  44. package/dist/components/CodeBlock/CodeBlock.vanilla.js +3 -6
  45. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  46. package/dist/components/Combobox/Combobox.vanilla.cjs +3 -10
  47. package/dist/components/Combobox/Combobox.vanilla.cjs.map +1 -1
  48. package/dist/components/Combobox/Combobox.vanilla.js +3 -10
  49. package/dist/components/Combobox/Combobox.vanilla.js.map +1 -1
  50. package/dist/components/Container/Container.vanilla.cjs +5 -11
  51. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  52. package/dist/components/Container/Container.vanilla.js +5 -11
  53. package/dist/components/Container/Container.vanilla.js.map +1 -1
  54. package/dist/components/Elevation/Elevation.vanilla.cjs +5 -11
  55. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  56. package/dist/components/Elevation/Elevation.vanilla.js +5 -11
  57. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  58. package/dist/components/Field/Field.vanilla.cjs +3 -9
  59. package/dist/components/Field/Field.vanilla.cjs.map +1 -1
  60. package/dist/components/Field/Field.vanilla.js +3 -9
  61. package/dist/components/Field/Field.vanilla.js.map +1 -1
  62. package/dist/components/Flex/Flex.vanilla.cjs +5 -11
  63. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  64. package/dist/components/Flex/Flex.vanilla.js +5 -11
  65. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  66. package/dist/components/Grid/Grid.vanilla.cjs +7 -11
  67. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  68. package/dist/components/Grid/Grid.vanilla.js +7 -11
  69. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  70. package/dist/components/Heading/Heading.vanilla.cjs +35 -0
  71. package/dist/components/Heading/Heading.vanilla.cjs.map +1 -0
  72. package/dist/components/Heading/Heading.vanilla.css.cjs +85 -0
  73. package/dist/components/Heading/Heading.vanilla.css.cjs.map +1 -0
  74. package/dist/components/Heading/Heading.vanilla.css.js +74 -0
  75. package/dist/components/Heading/Heading.vanilla.css.js.map +1 -0
  76. package/dist/components/Heading/Heading.vanilla.js +30 -0
  77. package/dist/components/Heading/Heading.vanilla.js.map +1 -0
  78. package/dist/components/IconButton/IconButton.vanilla.cjs +5 -11
  79. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  80. package/dist/components/IconButton/IconButton.vanilla.js +5 -11
  81. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  82. package/dist/components/Image/Image.vanilla.cjs +2 -10
  83. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  84. package/dist/components/Image/Image.vanilla.js +2 -10
  85. package/dist/components/Image/Image.vanilla.js.map +1 -1
  86. package/dist/components/Input/Input.vanilla.cjs +2 -10
  87. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  88. package/dist/components/Input/Input.vanilla.js +2 -10
  89. package/dist/components/Input/Input.vanilla.js.map +1 -1
  90. package/dist/components/Label/Label.vanilla.cjs +5 -11
  91. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  92. package/dist/components/Label/Label.vanilla.js +5 -11
  93. package/dist/components/Label/Label.vanilla.js.map +1 -1
  94. package/dist/components/List/List.vanilla.cjs +10 -18
  95. package/dist/components/List/List.vanilla.cjs.map +1 -1
  96. package/dist/components/List/List.vanilla.js +7 -15
  97. package/dist/components/List/List.vanilla.js.map +1 -1
  98. package/dist/components/Meter/Meter.vanilla.cjs +3 -8
  99. package/dist/components/Meter/Meter.vanilla.cjs.map +1 -1
  100. package/dist/components/Meter/Meter.vanilla.js +3 -8
  101. package/dist/components/Meter/Meter.vanilla.js.map +1 -1
  102. package/dist/components/Panel/Panel.vanilla.cjs +2 -10
  103. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  104. package/dist/components/Panel/Panel.vanilla.js +2 -10
  105. package/dist/components/Panel/Panel.vanilla.js.map +1 -1
  106. package/dist/components/Paragraph/Paragraph.vanilla.cjs +5 -11
  107. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  108. package/dist/components/Paragraph/Paragraph.vanilla.js +5 -11
  109. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  110. package/dist/components/RowLink/RowLink.vanilla.cjs.map +1 -1
  111. package/dist/components/RowLink/RowLink.vanilla.js.map +1 -1
  112. package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs +3 -14
  113. package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs.map +1 -1
  114. package/dist/components/SegmentedControl/SegmentedControl.vanilla.js +3 -14
  115. package/dist/components/SegmentedControl/SegmentedControl.vanilla.js.map +1 -1
  116. package/dist/components/Select/Select.vanilla.cjs +136 -0
  117. package/dist/components/Select/Select.vanilla.cjs.map +1 -0
  118. package/dist/components/Select/Select.vanilla.css.cjs +69 -0
  119. package/dist/components/Select/Select.vanilla.css.cjs.map +1 -0
  120. package/dist/components/Select/Select.vanilla.css.js +58 -0
  121. package/dist/components/Select/Select.vanilla.css.js.map +1 -0
  122. package/dist/components/Select/Select.vanilla.js +129 -0
  123. package/dist/components/Select/Select.vanilla.js.map +1 -0
  124. package/dist/components/Skeleton/Skeleton.vanilla.cjs +2 -10
  125. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  126. package/dist/components/Skeleton/Skeleton.vanilla.js +2 -10
  127. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  128. package/dist/components/Spinner/Spinner.vanilla.cjs +3 -6
  129. package/dist/components/Spinner/Spinner.vanilla.cjs.map +1 -1
  130. package/dist/components/Spinner/Spinner.vanilla.js +3 -6
  131. package/dist/components/Spinner/Spinner.vanilla.js.map +1 -1
  132. package/dist/components/SplitLayout/SplitLayout.vanilla.cjs +3 -10
  133. package/dist/components/SplitLayout/SplitLayout.vanilla.cjs.map +1 -1
  134. package/dist/components/SplitLayout/SplitLayout.vanilla.js +3 -10
  135. package/dist/components/SplitLayout/SplitLayout.vanilla.js.map +1 -1
  136. package/dist/components/Switch/Switch.vanilla.cjs +70 -0
  137. package/dist/components/Switch/Switch.vanilla.cjs.map +1 -0
  138. package/dist/components/Switch/Switch.vanilla.css.cjs +17 -0
  139. package/dist/components/Switch/Switch.vanilla.css.cjs.map +1 -0
  140. package/dist/components/Switch/Switch.vanilla.css.js +17 -0
  141. package/dist/components/Switch/Switch.vanilla.css.js.map +1 -0
  142. package/dist/components/Switch/Switch.vanilla.js +68 -0
  143. package/dist/components/Switch/Switch.vanilla.js.map +1 -0
  144. package/dist/components/Table/Table.vanilla.cjs +8 -4
  145. package/dist/components/Table/Table.vanilla.cjs.map +1 -1
  146. package/dist/components/Table/Table.vanilla.js +8 -4
  147. package/dist/components/Table/Table.vanilla.js.map +1 -1
  148. package/dist/components/Text/Text.vanilla.cjs +5 -11
  149. package/dist/components/Text/Text.vanilla.cjs.map +1 -1
  150. package/dist/components/Text/Text.vanilla.js +5 -11
  151. package/dist/components/Text/Text.vanilla.js.map +1 -1
  152. package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
  153. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  154. package/dist/components/Textarea/Textarea.vanilla.cjs +2 -10
  155. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  156. package/dist/components/Textarea/Textarea.vanilla.js +2 -10
  157. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  158. package/dist/components/Toast/Toast.vanilla.cjs +4 -15
  159. package/dist/components/Toast/Toast.vanilla.cjs.map +1 -1
  160. package/dist/components/Toast/Toast.vanilla.js +4 -15
  161. package/dist/components/Toast/Toast.vanilla.js.map +1 -1
  162. package/dist/faency.css +3098 -2517
  163. package/dist/index.cjs +17 -0
  164. package/dist/index.d.cts +36968 -0
  165. package/dist/index.d.ts +416 -94
  166. package/dist/index.js +5 -1
  167. package/dist/styles/recipeVariants.cjs +15 -0
  168. package/dist/styles/recipeVariants.cjs.map +1 -0
  169. package/dist/styles/recipeVariants.js +15 -0
  170. package/dist/styles/recipeVariants.js.map +1 -0
  171. package/dist/styles/themeContext.cjs.map +1 -1
  172. package/dist/styles/themeContext.js.map +1 -1
  173. package/dist/styles/tokens.css.cjs +146 -133
  174. package/dist/styles/tokens.css.js +146 -133
  175. package/package.json +18 -7
@@ -1 +1 @@
1
- {"version":3,"file":"AriaTable.vanilla.js","names":["_Fragment","collapsedContent"],"sources":["../../../components/AriaTable/AriaTable.vanilla.tsx"],"sourcesContent":["import { RecipeVariants } from '@vanilla-extract/recipes';\nimport React, {\n Children,\n forwardRef,\n isValidElement,\n ReactNode,\n useCallback,\n useId,\n useRef,\n useState,\n} from 'react';\n\nimport { CSSProps } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport { useInlineStyle } from '../../styles/useInlineStyle';\nimport { useIsomorphicLayoutEffect } from '../../utils/useIsomorphicLayoutEffect';\nimport {\n handleRowClick,\n mapRowLink,\n openRowLink,\n RowLinkShortcutProps,\n} from '../RowLink/RowLink.utils';\nimport { RowLinkVanilla } from '../RowLink/RowLink.vanilla';\nimport { rowLinkRow, rowLinkTable } from '../RowLink/RowLink.vanilla.css';\nimport { ExpandToggleVanilla, stopEvent } from '../Table/ExpandToggle.vanilla';\nimport { ARIA_SORT, SortButtonVanilla } from '../Table/SortButton.vanilla';\nimport {\n captionRecipe,\n emptyHeaderCell,\n tableRecipe,\n tbody,\n tdRecipe,\n tfoot,\n thead,\n thRecipe,\n toggleCell,\n trRecipe,\n} from '../Table/Table.vanilla.css';\nimport { TableSortProps } from '../Table/useTableSort';\nimport { FULL_COL_SPAN_ATTRIBUTE } from './AriaTable.constants';\nimport {\n ariaCell,\n ariaTable,\n ariaTbody,\n ariaTfoot,\n ariaThead,\n ariaTr,\n collapsedCell,\n collapsedContent as collapsedContentClass,\n collapsedRow,\n collapsibleTable,\n fillerCell,\n fullColSpanCell,\n} from './AriaTable.vanilla.css';\n\ntype TableRecipeVariants = NonNullable<RecipeVariants<typeof tableRecipe>>;\ntype CaptionRecipeVariants = NonNullable<RecipeVariants<typeof captionRecipe>>;\ntype TrRecipeVariants = NonNullable<RecipeVariants<typeof trRecipe>>;\ntype ThRecipeVariants = NonNullable<RecipeVariants<typeof thRecipe>>;\ntype TdRecipeVariants = NonNullable<RecipeVariants<typeof tdRecipe>>;\n\nexport type AriaTableVanillaProps = React.HTMLAttributes<HTMLDivElement> &\n CSSProps &\n TableRecipeVariants & {\n /** Collapses the borders, for a table with collapsible rows. */\n hasCollapsibleChildren?: boolean;\n };\n\nexport const AriaTableVanilla = forwardRef<HTMLDivElement, AriaTableVanillaProps>(\n ({ elevation, hasCollapsibleChildren = false, className, css, style, ...props }, ref) => (\n <div\n ref={ref}\n role=\"table\"\n className={cx(\n tableRecipe({ elevation }),\n ariaTable,\n hasCollapsibleChildren && collapsibleTable,\n rowLinkTable,\n className,\n )}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n);\n\nAriaTableVanilla.displayName = 'AriaTableVanilla';\n\nexport type AriaCaptionVanillaProps = React.HTMLAttributes<HTMLDivElement> &\n CSSProps &\n CaptionRecipeVariants;\n\nexport const AriaCaptionVanilla = forwardRef<HTMLDivElement, AriaCaptionVanillaProps>(\n (\n { size, weight, variant, gradient, transform, noWrap, className, css, style, ...props },\n ref,\n ) => (\n <div\n ref={ref}\n className={cx(\n captionRecipe({ size, weight, variant, gradient, transform, noWrap }),\n className,\n )}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n);\n\nAriaCaptionVanilla.displayName = 'AriaCaptionVanilla';\n\nexport type AriaTableSectionVanillaProps = React.HTMLAttributes<HTMLDivElement> & CSSProps;\n\nconst section = (sectionClass: string, displayName: string) => {\n const Section = forwardRef<HTMLDivElement, AriaTableSectionVanillaProps>(\n ({ className, css, style, ...props }, ref) => (\n <div\n ref={ref}\n role=\"rowgroup\"\n className={cx(sectionClass, className)}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n );\n Section.displayName = displayName;\n return Section;\n};\n\nexport const AriaTheadVanilla = section(cx(thead, ariaThead), 'AriaTheadVanilla');\nexport const AriaTbodyVanilla = section(cx(tbody, ariaTbody), 'AriaTbodyVanilla');\nexport const AriaTfootVanilla = section(cx(tfoot, ariaTfoot), 'AriaTfootVanilla');\n\nexport type AriaThVanillaProps = React.HTMLAttributes<HTMLSpanElement> &\n CSSProps &\n ThRecipeVariants &\n TableSortProps;\n\nexport const AriaThVanilla = forwardRef<HTMLSpanElement, AriaThVanillaProps>(\n (\n {\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n align,\n sort,\n onSort,\n className,\n css,\n style,\n children,\n ...props\n },\n ref,\n ) => (\n <span\n ref={ref}\n role=\"columnheader\"\n aria-sort={sort && ARIA_SORT[sort]}\n className={cx(\n thRecipe({ size, weight, variant, gradient, transform, noWrap, align }),\n ariaCell,\n className,\n )}\n style={useInlineStyle(css, style)}\n {...props}\n >\n {onSort ? (\n <SortButtonVanilla sort={sort} onSort={onSort}>\n {children}\n </SortButtonVanilla>\n ) : (\n children\n )}\n </span>\n ),\n);\n\nAriaThVanilla.displayName = 'AriaThVanilla';\n\nexport type AriaTdVanillaProps = React.HTMLAttributes<HTMLSpanElement> &\n CSSProps &\n TdRecipeVariants & {\n /** Spans the whole row. It must be the only cell of its row. */\n fullColSpan?: boolean;\n };\n\n// The cell is taken out of the row to span it, so an empty filler as tall as the cell holds the row open.\nconst FullColSpanCell = forwardRef<HTMLSpanElement, React.HTMLAttributes<HTMLSpanElement>>(\n ({ className, ...props }, forwardedRef) => {\n const cellRef = useRef<HTMLSpanElement | null>(null);\n const [height, setHeight] = useState(0);\n\n useIsomorphicLayoutEffect(() => {\n const cell = cellRef.current;\n if (!cell || typeof ResizeObserver === 'undefined') {\n return undefined;\n }\n const update = () => setHeight(cell.offsetHeight);\n update();\n const observer = new ResizeObserver(update);\n observer.observe(cell);\n return () => observer.disconnect();\n }, []);\n\n const setRefs = useCallback(\n (node: HTMLSpanElement | null) => {\n cellRef.current = node;\n if (typeof forwardedRef === 'function') {\n forwardedRef(node);\n } else if (forwardedRef) {\n forwardedRef.current = node;\n }\n },\n [forwardedRef],\n );\n\n return (\n <>\n <span aria-hidden className={cx(ariaCell, fillerCell)} style={{ height }} />\n <span\n ref={setRefs}\n role=\"cell\"\n {...{ [FULL_COL_SPAN_ATTRIBUTE]: '' }}\n className={cx(className, fullColSpanCell)}\n {...props}\n />\n </>\n );\n },\n);\n\nFullColSpanCell.displayName = 'FullColSpanCell';\n\nexport const AriaTdVanilla = forwardRef<HTMLSpanElement, AriaTdVanillaProps>(\n ({ fullColSpan = false, subtle, align, className, css, style, ...props }, ref) => {\n const Cell = fullColSpan ? FullColSpanCell : 'span';\n\n return (\n <Cell\n ref={ref}\n role=\"cell\"\n className={cx(tdRecipe({ subtle, align }), ariaCell, className)}\n style={useInlineStyle(css, style)}\n {...props}\n />\n );\n },\n);\n\nAriaTdVanilla.displayName = 'AriaTdVanilla';\n\nconst assertFullColSpanAlone = (children: ReactNode, addedCells: number) => {\n // eslint-disable-next-line @eslint-react/no-children-to-array\n const cells = Children.toArray(children);\n const hasFullColSpan = cells.some(\n (child) => isValidElement<AriaTdVanillaProps>(child) && !!child.props.fullColSpan,\n );\n if (hasFullColSpan && cells.length + addedCells > 1) {\n throw new Error(\n 'AriaTrVanilla: a fullColSpan AriaTdVanilla must be the only cell of its row, without emptyFirstColumn or collapsedContent.',\n );\n }\n};\n\nexport type AriaTrVanillaProps = React.HTMLAttributes<HTMLDivElement> &\n CSSProps &\n TrRecipeVariants &\n RowLinkShortcutProps & {\n /** Content shown in a full-width row below, toggled by a button in a new first cell. */\n collapsedContent?: ReactNode;\n /** Accessible name of the expand button. */\n expandLabel?: string;\n /** Adds an empty first cell, to line up with rows that have an expand button. */\n emptyFirstColumn?: boolean;\n /** Styles the empty first cell as a header, for a row in `AriaTheadVanilla`. */\n tableHead?: boolean;\n };\n\nexport const AriaTrVanilla = forwardRef<HTMLDivElement, AriaTrVanillaProps>(\n (\n {\n collapsedContent,\n expandLabel = 'Expand row',\n emptyFirstColumn = false,\n tableHead = false,\n href,\n linkAs,\n linkCell,\n linkProps,\n linkOverlay,\n interactive,\n active,\n className,\n css,\n style,\n children,\n onClick,\n onAuxClick,\n ...props\n },\n ref,\n ) => {\n const [isOpen, setIsOpen] = useState(false);\n const contentId = useId();\n const inlineStyle = useInlineStyle(css, style);\n const collapsible = !!collapsedContent;\n\n assertFullColSpanAlone(children, Number(emptyFirstColumn) + Number(collapsible));\n\n return (\n <>\n <div\n ref={ref}\n role=\"row\"\n className={cx(\n trRecipe({ interactive: interactive ?? (href !== undefined || undefined), active }),\n ariaTr,\n rowLinkRow,\n className,\n )}\n data-collapsed={collapsible && !isOpen ? '' : undefined}\n style={inlineStyle}\n onClick={(event) => handleRowClick(event, onClick)}\n onAuxClick={(event) => {\n onAuxClick?.(event);\n openRowLink(event);\n }}\n {...props}\n >\n {emptyFirstColumn &&\n (tableHead ? (\n <span role=\"cell\" className={cx(thRecipe(), ariaCell, emptyHeaderCell)} />\n ) : (\n <AriaTdVanilla />\n ))}\n {collapsible && (\n <AriaTdVanilla className={toggleCell} onClick={stopEvent}>\n <ExpandToggleVanilla\n label={expandLabel}\n isOpen={isOpen}\n controls={contentId}\n onToggle={() => setIsOpen((open) => !open)}\n />\n </AriaTdVanilla>\n )}\n {mapRowLink(\n children,\n { href, linkAs, linkCell, linkProps, linkOverlay },\n AriaTdVanilla,\n RowLinkVanilla,\n { row: 'AriaTrVanilla', cell: 'AriaTdVanilla' },\n )}\n </div>\n {collapsible && (\n <AriaTrVanilla className={collapsedRow} data-open={isOpen ? '' : undefined}>\n <AriaTdVanilla\n id={contentId}\n fullColSpan\n className={collapsedCell}\n data-closed={isOpen ? undefined : ''}\n >\n <div className={collapsedContentClass}>{collapsedContent}</div>\n </AriaTdVanilla>\n </AriaTrVanilla>\n )}\n </>\n );\n },\n);\n\nAriaTrVanilla.displayName = 'AriaTrVanilla';\n"],"mappings":"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"}
1
+ {"version":3,"file":"AriaTable.vanilla.js","names":["_Fragment","collapsedContent"],"sources":["../../../components/AriaTable/AriaTable.vanilla.tsx"],"sourcesContent":["import React, {\n Children,\n forwardRef,\n isValidElement,\n ReactNode,\n useCallback,\n useId,\n useRef,\n useState,\n} from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\nimport { useIsomorphicLayoutEffect } from '@/utils/useIsomorphicLayoutEffect';\n\nimport {\n handleRowClick,\n mapRowLink,\n openRowLink,\n RowLinkShortcutProps,\n} from '@/components/RowLink/RowLink.utils';\nimport { RowLinkVanilla } from '@/components/RowLink/RowLink.vanilla';\nimport { rowLinkRow, rowLinkTable } from '@/components/RowLink/RowLink.vanilla.css';\nimport { ExpandToggleVanilla, stopEvent } from '@/components/Table/ExpandToggle.vanilla';\nimport { ARIA_SORT, SortButtonVanilla } from '@/components/Table/SortButton.vanilla';\nimport {\n captionRecipe,\n emptyHeaderCell,\n tableRecipe,\n tbody,\n tdRecipe,\n tfoot,\n thead,\n thRecipe,\n toggleCell,\n trRecipe,\n} from '@/components/Table/Table.vanilla.css';\nimport { TableSortProps } from '@/components/Table/useTableSort';\n\nimport { FULL_COL_SPAN_ATTRIBUTE } from './AriaTable.constants';\nimport {\n ariaCell,\n ariaTable,\n ariaTbody,\n ariaTfoot,\n ariaThead,\n ariaTr,\n collapsedCell,\n collapsedContent as collapsedContentClass,\n collapsedRow,\n collapsibleTable,\n fillerCell,\n fullColSpanCell,\n} from './AriaTable.vanilla.css';\n\nconst captionClass = withVariantKeys(captionRecipe);\nconst tableClass = withVariantKeys(tableRecipe);\nconst thClass = withVariantKeys(thRecipe);\n\ntype TableRecipeVariants = RecipeVariantProps<typeof tableRecipe>;\ntype CaptionRecipeVariants = RecipeVariantProps<typeof captionRecipe>;\ntype TrRecipeVariants = RecipeVariantProps<typeof trRecipe>;\ntype ThRecipeVariants = RecipeVariantProps<typeof thRecipe>;\ntype TdRecipeVariants = RecipeVariantProps<typeof tdRecipe>;\n\nexport type AriaTableVanillaProps = React.HTMLAttributes<HTMLDivElement> &\n CSSProps &\n TableRecipeVariants & {\n /** Collapses the borders, for a table with collapsible rows. */\n hasCollapsibleChildren?: boolean;\n };\n\nexport const AriaTableVanilla = forwardRef<HTMLDivElement, AriaTableVanillaProps>(\n ({ elevation, hasCollapsibleChildren = false, className, css, style, ...props }, ref) => (\n <div\n ref={ref}\n role=\"table\"\n className={cx(\n tableClass({ elevation }),\n ariaTable,\n hasCollapsibleChildren && collapsibleTable,\n rowLinkTable,\n className,\n )}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n);\n\nAriaTableVanilla.displayName = 'AriaTableVanilla';\n\nexport type AriaCaptionVanillaProps = React.HTMLAttributes<HTMLDivElement> &\n CSSProps &\n CaptionRecipeVariants;\n\nexport const AriaCaptionVanilla = forwardRef<HTMLDivElement, AriaCaptionVanillaProps>(\n (\n { size, weight, variant, gradient, transform, noWrap, className, css, style, ...props },\n ref,\n ) => (\n <div\n ref={ref}\n className={cx(\n captionClass({ size, weight, variant, gradient, transform, noWrap }),\n className,\n )}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n);\n\nAriaCaptionVanilla.displayName = 'AriaCaptionVanilla';\n\nexport type AriaTableSectionVanillaProps = React.HTMLAttributes<HTMLDivElement> & CSSProps;\n\nconst section = (sectionClass: string, displayName: string) => {\n const Section = forwardRef<HTMLDivElement, AriaTableSectionVanillaProps>(\n ({ className, css, style, ...props }, ref) => (\n <div\n ref={ref}\n role=\"rowgroup\"\n className={cx(sectionClass, className)}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n );\n Section.displayName = displayName;\n return Section;\n};\n\nexport const AriaTheadVanilla = section(cx(thead, ariaThead), 'AriaTheadVanilla');\nexport const AriaTbodyVanilla = section(cx(tbody, ariaTbody), 'AriaTbodyVanilla');\nexport const AriaTfootVanilla = section(cx(tfoot, ariaTfoot), 'AriaTfootVanilla');\n\nexport type AriaThVanillaProps = React.HTMLAttributes<HTMLSpanElement> &\n CSSProps &\n ThRecipeVariants &\n TableSortProps;\n\nexport const AriaThVanilla = forwardRef<HTMLSpanElement, AriaThVanillaProps>(\n (\n {\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n align,\n sort,\n onSort,\n className,\n css,\n style,\n children,\n ...props\n },\n ref,\n ) => (\n <span\n ref={ref}\n role=\"columnheader\"\n aria-sort={sort && ARIA_SORT[sort]}\n className={cx(\n thClass({ size, weight, variant, gradient, transform, noWrap, align }),\n ariaCell,\n className,\n )}\n style={useInlineStyle(css, style)}\n {...props}\n >\n {onSort ? (\n <SortButtonVanilla sort={sort} onSort={onSort}>\n {children}\n </SortButtonVanilla>\n ) : (\n children\n )}\n </span>\n ),\n);\n\nAriaThVanilla.displayName = 'AriaThVanilla';\n\nexport type AriaTdVanillaProps = React.HTMLAttributes<HTMLSpanElement> &\n CSSProps &\n TdRecipeVariants & {\n /** Spans the whole row. It must be the only cell of its row. */\n fullColSpan?: boolean;\n };\n\n// The cell is taken out of the row to span it, so an empty filler as tall as the cell holds the row open.\nconst FullColSpanCell = forwardRef<HTMLSpanElement, React.HTMLAttributes<HTMLSpanElement>>(\n ({ className, ...props }, forwardedRef) => {\n const cellRef = useRef<HTMLSpanElement | null>(null);\n const [height, setHeight] = useState(0);\n\n useIsomorphicLayoutEffect(() => {\n const cell = cellRef.current;\n if (!cell || typeof ResizeObserver === 'undefined') {\n return undefined;\n }\n const update = () => setHeight(cell.offsetHeight);\n update();\n const observer = new ResizeObserver(update);\n observer.observe(cell);\n return () => observer.disconnect();\n }, []);\n\n const setRefs = useCallback(\n (node: HTMLSpanElement | null) => {\n cellRef.current = node;\n if (typeof forwardedRef === 'function') {\n forwardedRef(node);\n } else if (forwardedRef) {\n forwardedRef.current = node;\n }\n },\n [forwardedRef],\n );\n\n return (\n <>\n <span aria-hidden className={cx(ariaCell, fillerCell)} style={{ height }} />\n <span\n ref={setRefs}\n role=\"cell\"\n {...{ [FULL_COL_SPAN_ATTRIBUTE]: '' }}\n className={cx(className, fullColSpanCell)}\n {...props}\n />\n </>\n );\n },\n);\n\nFullColSpanCell.displayName = 'FullColSpanCell';\n\nexport const AriaTdVanilla = forwardRef<HTMLSpanElement, AriaTdVanillaProps>(\n ({ fullColSpan = false, subtle, align, className, css, style, ...props }, ref) => {\n const Cell = fullColSpan ? FullColSpanCell : 'span';\n\n return (\n <Cell\n ref={ref}\n role=\"cell\"\n className={cx(tdRecipe({ subtle, align }), ariaCell, className)}\n style={useInlineStyle(css, style)}\n {...props}\n />\n );\n },\n);\n\nAriaTdVanilla.displayName = 'AriaTdVanilla';\n\nconst assertFullColSpanAlone = (children: ReactNode, addedCells: number) => {\n // eslint-disable-next-line @eslint-react/no-children-to-array\n const cells = Children.toArray(children);\n const hasFullColSpan = cells.some(\n (child) => isValidElement<AriaTdVanillaProps>(child) && !!child.props.fullColSpan,\n );\n if (hasFullColSpan && cells.length + addedCells > 1) {\n throw new Error(\n 'AriaTrVanilla: a fullColSpan AriaTdVanilla must be the only cell of its row, without emptyFirstColumn or collapsedContent.',\n );\n }\n};\n\nexport type AriaTrVanillaProps = React.HTMLAttributes<HTMLDivElement> &\n CSSProps &\n TrRecipeVariants &\n RowLinkShortcutProps & {\n /** Content shown in a full-width row below, toggled by a button in a new first cell. */\n collapsedContent?: ReactNode;\n /** Accessible name of the expand button. */\n expandLabel?: string;\n /** Adds an empty first cell, to line up with rows that have an expand button. */\n emptyFirstColumn?: boolean;\n /** Styles the empty first cell as a header, for a row in `AriaTheadVanilla`. */\n tableHead?: boolean;\n };\n\nexport const AriaTrVanilla = forwardRef<HTMLDivElement, AriaTrVanillaProps>(\n (\n {\n collapsedContent,\n expandLabel = 'Expand row',\n emptyFirstColumn = false,\n tableHead = false,\n href,\n linkAs,\n linkCell,\n linkProps,\n linkOverlay,\n interactive,\n active,\n className,\n css,\n style,\n children,\n onClick,\n onAuxClick,\n ...props\n },\n ref,\n ) => {\n const [isOpen, setIsOpen] = useState(false);\n const contentId = useId();\n const inlineStyle = useInlineStyle(css, style);\n const collapsible = !!collapsedContent;\n\n assertFullColSpanAlone(children, Number(emptyFirstColumn) + Number(collapsible));\n\n return (\n <>\n <div\n ref={ref}\n role=\"row\"\n className={cx(\n trRecipe({ interactive: interactive ?? (href !== undefined || undefined), active }),\n ariaTr,\n rowLinkRow,\n className,\n )}\n data-collapsed={collapsible && !isOpen ? '' : undefined}\n style={inlineStyle}\n onClick={(event) => handleRowClick(event, onClick)}\n onAuxClick={(event) => {\n onAuxClick?.(event);\n openRowLink(event);\n }}\n {...props}\n >\n {emptyFirstColumn &&\n (tableHead ? (\n <span role=\"cell\" className={cx(thClass(), ariaCell, emptyHeaderCell)} />\n ) : (\n <AriaTdVanilla />\n ))}\n {collapsible && (\n <AriaTdVanilla className={toggleCell} onClick={stopEvent}>\n <ExpandToggleVanilla\n label={expandLabel}\n isOpen={isOpen}\n controls={contentId}\n onToggle={() => setIsOpen((open) => !open)}\n />\n </AriaTdVanilla>\n )}\n {mapRowLink(\n children,\n { href, linkAs, linkCell, linkProps, linkOverlay },\n AriaTdVanilla,\n RowLinkVanilla,\n { row: 'AriaTrVanilla', cell: 'AriaTdVanilla' },\n )}\n </div>\n {collapsible && (\n <AriaTrVanilla className={collapsedRow} data-open={isOpen ? '' : undefined}>\n <AriaTdVanilla\n id={contentId}\n fullColSpan\n className={collapsedCell}\n data-closed={isOpen ? undefined : ''}\n >\n <div className={collapsedContentClass}>{collapsedContent}</div>\n </AriaTdVanilla>\n </AriaTrVanilla>\n )}\n </>\n );\n },\n);\n\nAriaTrVanilla.displayName = 'AriaTrVanilla';\n"],"mappings":"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"}
@@ -1,4 +1,5 @@
1
1
  const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_recipeVariants = require("../../styles/recipeVariants.cjs");
2
3
  const require_Box_vanilla = require("../Box/Box.vanilla.cjs");
3
4
  const require_Avatar_vanilla_css = require("./Avatar.vanilla.css.cjs");
4
5
  let react = require("react");
@@ -7,13 +8,15 @@ let react_jsx_runtime = require("react/jsx-runtime");
7
8
  let _radix_ui_react_avatar = require("@radix-ui/react-avatar");
8
9
  _radix_ui_react_avatar = require_runtime.__toESM(_radix_ui_react_avatar, 1);
9
10
  // components/Avatar/Avatar.vanilla.tsx
11
+ var avatarClass = require_recipeVariants.withVariantKeys(require_Avatar_vanilla_css.avatarRecipe);
12
+ var avatarFallbackClass = require_recipeVariants.withVariantKeys(require_Avatar_vanilla_css.avatarFallbackRecipe);
10
13
  var AvatarVanillaComponent = (0, react.forwardRef)(({ alt, src, fallback, size, variant, shape, css, style, ...props }, ref) => {
11
- const recipeClass = require_Avatar_vanilla_css.avatarRecipe({
14
+ const recipeClass = avatarClass({
12
15
  size,
13
16
  variant,
14
17
  shape
15
18
  });
16
- const fallbackRecipeClass = require_Avatar_vanilla_css.avatarFallbackRecipe({ size });
19
+ const fallbackRecipeClass = avatarFallbackClass({ size });
17
20
  const wrapperCss = {
18
21
  ...css,
19
22
  position: "relative",
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.vanilla.cjs","names":["forwardRef","avatarRecipe","avatarFallbackRecipe","BoxVanilla","AvatarPrimitive","avatarImage"],"sources":["../../../components/Avatar/Avatar.vanilla.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React, { forwardRef } from 'react';\n\nimport { CSSProps } from '../../styles/cssProps';\nimport { BoxVanilla } from '../Box/Box.vanilla';\nimport { avatarFallbackRecipe, avatarImage, avatarRecipe } from './Avatar.vanilla.css';\n\ntype AvatarRecipeVariants = NonNullable<RecipeVariants<typeof avatarRecipe>>;\n\ninterface AvatarOwnProps extends AvatarRecipeVariants, CSSProps {\n alt?: string;\n src?: string;\n fallback?: React.ReactNode;\n}\n\nexport type AvatarVanillaProps = Omit<\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n keyof AvatarOwnProps\n> &\n AvatarOwnProps;\n\nconst AvatarVanillaComponent = forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n AvatarVanillaProps\n>(({ alt, src, fallback, size, variant, shape, css, style, ...props }, ref) => {\n const recipeClass = avatarRecipe({ size, variant, shape });\n const fallbackRecipeClass = avatarFallbackRecipe({ size });\n\n // This CSS will be processed by the Box component\n const wrapperCss = {\n ...css,\n position: 'relative' as const,\n height: 'fit-content' as const,\n width: 'fit-content' as const,\n };\n\n return (\n <BoxVanilla css={wrapperCss} style={style}>\n <AvatarPrimitive.Root ref={ref} className={recipeClass} {...props}>\n <AvatarPrimitive.Image className={avatarImage} alt={alt} src={src} />\n <AvatarPrimitive.Fallback className={fallbackRecipeClass}>\n {fallback}\n </AvatarPrimitive.Fallback>\n </AvatarPrimitive.Root>\n </BoxVanilla>\n );\n});\n\nAvatarVanillaComponent.displayName = 'AvatarVanilla';\n\nexport const AvatarVanilla = AvatarVanillaComponent;\n"],"mappings":";;;;;;;;;AAsBA,IAAM,0BAAA,GAAyBA,MAAAA,WAAAA,EAG5B,EAAE,KAAK,KAAK,UAAU,MAAM,SAAS,OAAO,KAAK,OAAO,GAAG,SAAS,QAAQ;CAC7E,MAAM,cAAcC,2BAAAA,aAAa;EAAE;EAAM;EAAS;CAAM,CAAC;CACzD,MAAM,sBAAsBC,2BAAAA,qBAAqB,EAAE,KAAK,CAAC;CAGzD,MAAM,aAAa;EACjB,GAAG;EACH,UAAU;EACV,QAAQ;EACR,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,YAAD;EAAY,KAAK;EAAmB;EAClC,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAACC,uBAAgB,MAAjB;GAA2B;GAAK,WAAW;GAAa,GAAI;GAA5D,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,uBAAgB,OAAjB;IAAuB,WAAWC,2BAAAA;IAAkB;IAAU;GAAM,CAAA,GACpE,iBAAA,GAAA,kBAAA,IAAA,CAACD,uBAAgB,UAAjB;IAA0B,WAAW;IAClC,UAAA;GACuB,CAAA,CACN;;CACZ,CAAA;AAEhB,CAAC;AAED,uBAAuB,cAAc;AAErC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Avatar.vanilla.cjs","names":["withVariantKeys","avatarRecipe","avatarFallbackRecipe","forwardRef","BoxVanilla","AvatarPrimitive","avatarImage"],"sources":["../../../components/Avatar/Avatar.vanilla.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport React, { forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\n\nimport { BoxVanilla } from '@/components/Box/Box.vanilla';\n\nimport { avatarFallbackRecipe, avatarImage, avatarRecipe } from './Avatar.vanilla.css';\n\nconst avatarClass = withVariantKeys(avatarRecipe);\nconst avatarFallbackClass = withVariantKeys(avatarFallbackRecipe);\n\ntype AvatarRecipeVariants = RecipeVariantProps<typeof avatarRecipe>;\n\ninterface AvatarOwnProps extends AvatarRecipeVariants, CSSProps {\n alt?: string;\n src?: string;\n fallback?: React.ReactNode;\n}\n\nexport type AvatarVanillaProps = Omit<\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n keyof AvatarOwnProps\n> &\n AvatarOwnProps;\n\nconst AvatarVanillaComponent = forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n AvatarVanillaProps\n>(({ alt, src, fallback, size, variant, shape, css, style, ...props }, ref) => {\n const recipeClass = avatarClass({ size, variant, shape });\n const fallbackRecipeClass = avatarFallbackClass({ size });\n\n // This CSS will be processed by the Box component\n const wrapperCss = {\n ...css,\n position: 'relative' as const,\n height: 'fit-content' as const,\n width: 'fit-content' as const,\n };\n\n return (\n <BoxVanilla css={wrapperCss} style={style}>\n <AvatarPrimitive.Root ref={ref} className={recipeClass} {...props}>\n <AvatarPrimitive.Image className={avatarImage} alt={alt} src={src} />\n <AvatarPrimitive.Fallback className={fallbackRecipeClass}>\n {fallback}\n </AvatarPrimitive.Fallback>\n </AvatarPrimitive.Root>\n </BoxVanilla>\n );\n});\n\nAvatarVanillaComponent.displayName = 'AvatarVanilla';\n\nexport const AvatarVanilla = AvatarVanillaComponent;\n"],"mappings":";;;;;;;;;;AAUA,IAAM,cAAcA,uBAAAA,gBAAgBC,2BAAAA,YAAY;AAChD,IAAM,sBAAsBD,uBAAAA,gBAAgBE,2BAAAA,oBAAoB;AAgBhE,IAAM,0BAAA,GAAyBC,MAAAA,WAAAA,EAG5B,EAAE,KAAK,KAAK,UAAU,MAAM,SAAS,OAAO,KAAK,OAAO,GAAG,SAAS,QAAQ;CAC7E,MAAM,cAAc,YAAY;EAAE;EAAM;EAAS;CAAM,CAAC;CACxD,MAAM,sBAAsB,oBAAoB,EAAE,KAAK,CAAC;CAGxD,MAAM,aAAa;EACjB,GAAG;EACH,UAAU;EACV,QAAQ;EACR,OAAO;CACT;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,YAAD;EAAY,KAAK;EAAmB;EAClC,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAACC,uBAAgB,MAAjB;GAA2B;GAAK,WAAW;GAAa,GAAI;GAA5D,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,uBAAgB,OAAjB;IAAuB,WAAWC,2BAAAA;IAAkB;IAAU;GAAM,CAAA,GACpE,iBAAA,GAAA,kBAAA,IAAA,CAACD,uBAAgB,UAAjB;IAA0B,WAAW;IAClC,UAAA;GACuB,CAAA,CACN;;CACZ,CAAA;AAEhB,CAAC;AAED,uBAAuB,cAAc;AAErC,IAAa,gBAAgB"}
@@ -1,16 +1,19 @@
1
+ import { withVariantKeys } from "../../styles/recipeVariants.js";
1
2
  import { BoxVanilla } from "../Box/Box.vanilla.js";
2
3
  import { avatarFallbackRecipe, avatarImage, avatarRecipe } from "./Avatar.vanilla.css.js";
3
4
  import { forwardRef } from "react";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
6
7
  // components/Avatar/Avatar.vanilla.tsx
8
+ var avatarClass = withVariantKeys(avatarRecipe);
9
+ var avatarFallbackClass = withVariantKeys(avatarFallbackRecipe);
7
10
  var AvatarVanillaComponent = forwardRef(({ alt, src, fallback, size, variant, shape, css, style, ...props }, ref) => {
8
- const recipeClass = avatarRecipe({
11
+ const recipeClass = avatarClass({
9
12
  size,
10
13
  variant,
11
14
  shape
12
15
  });
13
- const fallbackRecipeClass = avatarFallbackRecipe({ size });
16
+ const fallbackRecipeClass = avatarFallbackClass({ size });
14
17
  const wrapperCss = {
15
18
  ...css,
16
19
  position: "relative",
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.vanilla.js","names":[],"sources":["../../../components/Avatar/Avatar.vanilla.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React, { forwardRef } from 'react';\n\nimport { CSSProps } from '../../styles/cssProps';\nimport { BoxVanilla } from '../Box/Box.vanilla';\nimport { avatarFallbackRecipe, avatarImage, avatarRecipe } from './Avatar.vanilla.css';\n\ntype AvatarRecipeVariants = NonNullable<RecipeVariants<typeof avatarRecipe>>;\n\ninterface AvatarOwnProps extends AvatarRecipeVariants, CSSProps {\n alt?: string;\n src?: string;\n fallback?: React.ReactNode;\n}\n\nexport type AvatarVanillaProps = Omit<\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n keyof AvatarOwnProps\n> &\n AvatarOwnProps;\n\nconst AvatarVanillaComponent = forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n AvatarVanillaProps\n>(({ alt, src, fallback, size, variant, shape, css, style, ...props }, ref) => {\n const recipeClass = avatarRecipe({ size, variant, shape });\n const fallbackRecipeClass = avatarFallbackRecipe({ size });\n\n // This CSS will be processed by the Box component\n const wrapperCss = {\n ...css,\n position: 'relative' as const,\n height: 'fit-content' as const,\n width: 'fit-content' as const,\n };\n\n return (\n <BoxVanilla css={wrapperCss} style={style}>\n <AvatarPrimitive.Root ref={ref} className={recipeClass} {...props}>\n <AvatarPrimitive.Image className={avatarImage} alt={alt} src={src} />\n <AvatarPrimitive.Fallback className={fallbackRecipeClass}>\n {fallback}\n </AvatarPrimitive.Fallback>\n </AvatarPrimitive.Root>\n </BoxVanilla>\n );\n});\n\nAvatarVanillaComponent.displayName = 'AvatarVanilla';\n\nexport const AvatarVanilla = AvatarVanillaComponent;\n"],"mappings":";;;;;;AAsBA,IAAM,yBAAyB,YAG5B,EAAE,KAAK,KAAK,UAAU,MAAM,SAAS,OAAO,KAAK,OAAO,GAAG,SAAS,QAAQ;CAC7E,MAAM,cAAc,aAAa;EAAE;EAAM;EAAS;CAAM,CAAC;CACzD,MAAM,sBAAsB,qBAAqB,EAAE,KAAK,CAAC;CAGzD,MAAM,aAAa;EACjB,GAAG;EACH,UAAU;EACV,QAAQ;EACR,OAAO;CACT;CAEA,OACE,oBAAC,YAAD;EAAY,KAAK;EAAmB;EAClC,UAAA,qBAAC,gBAAgB,MAAjB;GAA2B;GAAK,WAAW;GAAa,GAAI;GAA5D,UAAA,CACE,oBAAC,gBAAgB,OAAjB;IAAuB,WAAW;IAAkB;IAAU;GAAM,CAAA,GACpE,oBAAC,gBAAgB,UAAjB;IAA0B,WAAW;IAClC,UAAA;GACuB,CAAA,CACN;;CACZ,CAAA;AAEhB,CAAC;AAED,uBAAuB,cAAc;AAErC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Avatar.vanilla.js","names":[],"sources":["../../../components/Avatar/Avatar.vanilla.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport React, { forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\n\nimport { BoxVanilla } from '@/components/Box/Box.vanilla';\n\nimport { avatarFallbackRecipe, avatarImage, avatarRecipe } from './Avatar.vanilla.css';\n\nconst avatarClass = withVariantKeys(avatarRecipe);\nconst avatarFallbackClass = withVariantKeys(avatarFallbackRecipe);\n\ntype AvatarRecipeVariants = RecipeVariantProps<typeof avatarRecipe>;\n\ninterface AvatarOwnProps extends AvatarRecipeVariants, CSSProps {\n alt?: string;\n src?: string;\n fallback?: React.ReactNode;\n}\n\nexport type AvatarVanillaProps = Omit<\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,\n keyof AvatarOwnProps\n> &\n AvatarOwnProps;\n\nconst AvatarVanillaComponent = forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n AvatarVanillaProps\n>(({ alt, src, fallback, size, variant, shape, css, style, ...props }, ref) => {\n const recipeClass = avatarClass({ size, variant, shape });\n const fallbackRecipeClass = avatarFallbackClass({ size });\n\n // This CSS will be processed by the Box component\n const wrapperCss = {\n ...css,\n position: 'relative' as const,\n height: 'fit-content' as const,\n width: 'fit-content' as const,\n };\n\n return (\n <BoxVanilla css={wrapperCss} style={style}>\n <AvatarPrimitive.Root ref={ref} className={recipeClass} {...props}>\n <AvatarPrimitive.Image className={avatarImage} alt={alt} src={src} />\n <AvatarPrimitive.Fallback className={fallbackRecipeClass}>\n {fallback}\n </AvatarPrimitive.Fallback>\n </AvatarPrimitive.Root>\n </BoxVanilla>\n );\n});\n\nAvatarVanillaComponent.displayName = 'AvatarVanilla';\n\nexport const AvatarVanilla = AvatarVanillaComponent;\n"],"mappings":";;;;;;;AAUA,IAAM,cAAc,gBAAgB,YAAY;AAChD,IAAM,sBAAsB,gBAAgB,oBAAoB;AAgBhE,IAAM,yBAAyB,YAG5B,EAAE,KAAK,KAAK,UAAU,MAAM,SAAS,OAAO,KAAK,OAAO,GAAG,SAAS,QAAQ;CAC7E,MAAM,cAAc,YAAY;EAAE;EAAM;EAAS;CAAM,CAAC;CACxD,MAAM,sBAAsB,oBAAoB,EAAE,KAAK,CAAC;CAGxD,MAAM,aAAa;EACjB,GAAG;EACH,UAAU;EACV,QAAQ;EACR,OAAO;CACT;CAEA,OACE,oBAAC,YAAD;EAAY,KAAK;EAAmB;EAClC,UAAA,qBAAC,gBAAgB,MAAjB;GAA2B;GAAK,WAAW;GAAa,GAAI;GAA5D,UAAA,CACE,oBAAC,gBAAgB,OAAjB;IAAuB,WAAW;IAAkB;IAAU;GAAM,CAAA,GACpE,oBAAC,gBAAgB,UAAjB;IAA0B,WAAW;IAClC,UAAA;GACuB,CAAA,CACN;;CACZ,CAAA;AAEhB,CAAC;AAED,uBAAuB,cAAc;AAErC,IAAa,gBAAgB"}
@@ -1,9 +1,7 @@
1
- const require_cssProps = require("../../styles/cssProps.cjs");
2
1
  const require_cx = require("../../styles/cx.cjs");
3
- const require_themeContext = require("../../styles/themeContext.cjs");
2
+ const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
4
3
  const require_Badge_vanilla_css = require("./Badge.vanilla.css.cjs");
5
4
  let react = require("react");
6
- let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
7
5
  let react_jsx_runtime = require("react/jsx-runtime");
8
6
  // components/Badge/Badge.vanilla.tsx
9
7
  var COLORS = [
@@ -17,13 +15,7 @@ var COLORS = [
17
15
  ];
18
16
  var BadgeVanillaComponentImpl = (0, react.forwardRef)(({ as, interactive, className, css, style, size, variant, alphaBg, borderless, ...props }, ref) => {
19
17
  const Component = as || (interactive ? "button" : "span");
20
- const { colors } = require_themeContext.useVanillaExtractTheme();
21
- const { style: cssStyles, vars } = require_cssProps.processCSSProp(css, colors);
22
- const mergedStyles = {
23
- ...cssStyles,
24
- ...style,
25
- ...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
26
- };
18
+ const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
27
19
  const recipeClass = (interactive ? require_Badge_vanilla_css.interactiveBadgeRecipe : require_Badge_vanilla_css.badgeRecipe)({
28
20
  size,
29
21
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","interactiveBadgeRecipe","badgeRecipe","cx"],"sources":["../../../components/Badge/Badge.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 { badgeRecipe, interactiveBadgeRecipe } from './Badge.vanilla.css';\n\nexport const COLORS = ['gray', 'red', 'blue', 'green', 'neon', 'orange', 'purple'] as const;\n\ntype BadgeRecipeVariants = RecipeVariants<typeof badgeRecipe>;\n\ninterface BadgeOwnProps extends Omit<BadgeRecipeVariants, 'color'>, CSSProps {\n interactive?: boolean;\n}\n\nexport type BadgeVanillaProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n BadgeOwnProps\n>;\n\ntype BadgeVanillaComponent = PolymorphicComponent<'span', BadgeVanillaProps<ElementType>>;\n\nconst BadgeVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'span'>(\n {\n as,\n interactive,\n className,\n css,\n style,\n size,\n variant,\n alphaBg,\n borderless,\n ...props\n }: BadgeVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || (interactive ? 'button' : 'span');\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 recipe = interactive ? interactiveBadgeRecipe : badgeRecipe;\n const recipeClass = recipe({ size, variant, alphaBg, borderless });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBadgeVanillaComponentImpl.displayName = 'BadgeVanilla';\n\nexport const BadgeVanilla = BadgeVanillaComponentImpl as BadgeVanillaComponent;\n"],"mappings":";;;;;;;;AAcA,IAAa,SAAS;CAAC;CAAQ;CAAO;CAAQ;CAAS;CAAQ;CAAU;AAAQ;AAejF,IAAM,6BAAA,GAA4BA,MAAAA,WAAAA,EAE9B,EACE,IACA,aACA,WACA,KACA,OACA,MACA,SACA,SACA,YACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,OAAO,cAAc,WAAW;CAElD,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;CAGA,MAAM,eADS,cAAcC,0BAAAA,yBAAyBC,0BAAAA,YAAAA,CAC3B;EAAE;EAAM;EAAS;EAAS;CAAW,CAAC;CAEjE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
1
+ {"version":3,"file":"Badge.vanilla.cjs","names":["forwardRef","useInlineStyle","interactiveBadgeRecipe","badgeRecipe","cx"],"sources":["../../../components/Badge/Badge.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { badgeRecipe, interactiveBadgeRecipe } from './Badge.vanilla.css';\n\nexport const COLORS = ['gray', 'red', 'blue', 'green', 'neon', 'orange', 'purple'] as const;\n\ntype BadgeRecipeVariants = RecipeVariantProps<typeof badgeRecipe>;\n\ninterface BadgeOwnProps extends Omit<BadgeRecipeVariants, 'color'>, CSSProps {\n interactive?: boolean;\n}\n\nexport type BadgeVanillaProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n BadgeOwnProps\n>;\n\ntype BadgeVanillaComponent = PolymorphicComponent<'span', BadgeVanillaProps<ElementType>>;\n\nconst BadgeVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'span'>(\n {\n as,\n interactive,\n className,\n css,\n style,\n size,\n variant,\n alphaBg,\n borderless,\n ...props\n }: BadgeVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || (interactive ? 'button' : 'span');\n\n const mergedStyles = useInlineStyle(css, style);\n\n const recipe = interactive ? interactiveBadgeRecipe : badgeRecipe;\n const recipeClass = recipe({ size, variant, alphaBg, borderless });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBadgeVanillaComponentImpl.displayName = 'BadgeVanilla';\n\nexport const BadgeVanilla = BadgeVanillaComponentImpl as BadgeVanillaComponent;\n"],"mappings":";;;;;;AAcA,IAAa,SAAS;CAAC;CAAQ;CAAO;CAAQ;CAAS;CAAQ;CAAU;AAAQ;AAejF,IAAM,6BAAA,GAA4BA,MAAAA,WAAAA,EAE9B,EACE,IACA,aACA,WACA,KACA,OACA,MACA,SACA,SACA,YACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,OAAO,cAAc,WAAW;CAElD,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAG9C,MAAM,eADS,cAAcC,0BAAAA,yBAAyBC,0BAAAA,YAAAA,CAC3B;EAAE;EAAM;EAAS;EAAS;CAAW,CAAC;CAEjE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
@@ -1,9 +1,7 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
2
+ import { useInlineStyle } from "../../styles/useInlineStyle.js";
4
3
  import { badgeRecipe, interactiveBadgeRecipe } from "./Badge.vanilla.css.js";
5
4
  import { forwardRef } from "react";
6
- import { assignInlineVars } from "@vanilla-extract/dynamic";
7
5
  import { jsx } from "react/jsx-runtime";
8
6
  // components/Badge/Badge.vanilla.tsx
9
7
  var COLORS = [
@@ -17,13 +15,7 @@ var COLORS = [
17
15
  ];
18
16
  var BadgeVanillaComponentImpl = forwardRef(({ as, interactive, className, css, style, size, variant, alphaBg, borderless, ...props }, ref) => {
19
17
  const Component = as || (interactive ? "button" : "span");
20
- const { colors } = useVanillaExtractTheme();
21
- const { style: cssStyles, vars } = processCSSProp(css, colors);
22
- const mergedStyles = {
23
- ...cssStyles,
24
- ...style,
25
- ...assignInlineVars(vars)
26
- };
18
+ const mergedStyles = useInlineStyle(css, style);
27
19
  const recipeClass = (interactive ? interactiveBadgeRecipe : badgeRecipe)({
28
20
  size,
29
21
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.vanilla.js","names":[],"sources":["../../../components/Badge/Badge.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 { badgeRecipe, interactiveBadgeRecipe } from './Badge.vanilla.css';\n\nexport const COLORS = ['gray', 'red', 'blue', 'green', 'neon', 'orange', 'purple'] as const;\n\ntype BadgeRecipeVariants = RecipeVariants<typeof badgeRecipe>;\n\ninterface BadgeOwnProps extends Omit<BadgeRecipeVariants, 'color'>, CSSProps {\n interactive?: boolean;\n}\n\nexport type BadgeVanillaProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n BadgeOwnProps\n>;\n\ntype BadgeVanillaComponent = PolymorphicComponent<'span', BadgeVanillaProps<ElementType>>;\n\nconst BadgeVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'span'>(\n {\n as,\n interactive,\n className,\n css,\n style,\n size,\n variant,\n alphaBg,\n borderless,\n ...props\n }: BadgeVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || (interactive ? 'button' : 'span');\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 recipe = interactive ? interactiveBadgeRecipe : badgeRecipe;\n const recipeClass = recipe({ size, variant, alphaBg, borderless });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBadgeVanillaComponentImpl.displayName = 'BadgeVanilla';\n\nexport const BadgeVanilla = BadgeVanillaComponentImpl as BadgeVanillaComponent;\n"],"mappings":";;;;;;;;AAcA,IAAa,SAAS;CAAC;CAAQ;CAAO;CAAQ;CAAS;CAAQ;CAAU;AAAQ;AAejF,IAAM,4BAA4B,YAE9B,EACE,IACA,aACA,WACA,KACA,OACA,MACA,SACA,SACA,YACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,OAAO,cAAc,WAAW;CAElD,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;CAGA,MAAM,eADS,cAAc,yBAAyB,YAAA,CAC3B;EAAE;EAAM;EAAS;EAAS;CAAW,CAAC;CAEjE,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
1
+ {"version":3,"file":"Badge.vanilla.js","names":[],"sources":["../../../components/Badge/Badge.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { badgeRecipe, interactiveBadgeRecipe } from './Badge.vanilla.css';\n\nexport const COLORS = ['gray', 'red', 'blue', 'green', 'neon', 'orange', 'purple'] as const;\n\ntype BadgeRecipeVariants = RecipeVariantProps<typeof badgeRecipe>;\n\ninterface BadgeOwnProps extends Omit<BadgeRecipeVariants, 'color'>, CSSProps {\n interactive?: boolean;\n}\n\nexport type BadgeVanillaProps<C extends ElementType = 'span'> = PolymorphicComponentProps<\n C,\n BadgeOwnProps\n>;\n\ntype BadgeVanillaComponent = PolymorphicComponent<'span', BadgeVanillaProps<ElementType>>;\n\nconst BadgeVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'span'>(\n {\n as,\n interactive,\n className,\n css,\n style,\n size,\n variant,\n alphaBg,\n borderless,\n ...props\n }: BadgeVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || (interactive ? 'button' : 'span');\n\n const mergedStyles = useInlineStyle(css, style);\n\n const recipe = interactive ? interactiveBadgeRecipe : badgeRecipe;\n const recipeClass = recipe({ size, variant, alphaBg, borderless });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBadgeVanillaComponentImpl.displayName = 'BadgeVanilla';\n\nexport const BadgeVanilla = BadgeVanillaComponentImpl as BadgeVanillaComponent;\n"],"mappings":";;;;;;AAcA,IAAa,SAAS;CAAC;CAAQ;CAAO;CAAQ;CAAS;CAAQ;CAAU;AAAQ;AAejF,IAAM,4BAA4B,YAE9B,EACE,IACA,aACA,WACA,KACA,OACA,MACA,SACA,SACA,YACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,OAAO,cAAc,WAAW;CAElD,MAAM,eAAe,eAAe,KAAK,KAAK;CAG9C,MAAM,eADS,cAAc,yBAAyB,YAAA,CAC3B;EAAE;EAAM;EAAS;EAAS;CAAW,CAAC;CAEjE,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
@@ -1,21 +1,15 @@
1
- const require_cssProps = require("../../styles/cssProps.cjs");
2
1
  const require_cx = require("../../styles/cx.cjs");
3
- const require_themeContext = require("../../styles/themeContext.cjs");
2
+ const require_recipeVariants = require("../../styles/recipeVariants.cjs");
3
+ const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
4
4
  const require_Blockquote_vanilla_css = require("./Blockquote.vanilla.css.cjs");
5
5
  let react = require("react");
6
- let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
7
6
  let react_jsx_runtime = require("react/jsx-runtime");
8
7
  // components/Blockquote/Blockquote.vanilla.tsx
8
+ var blockquoteClass = require_recipeVariants.withVariantKeys(require_Blockquote_vanilla_css.blockquoteRecipe);
9
9
  var BlockquoteVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
10
10
  const Component = as || "blockquote";
11
- const { colors } = require_themeContext.useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = require_cssProps.processCSSProp(css, colors);
13
- const mergedStyles = {
14
- ...cssStyles,
15
- ...style,
16
- ...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
17
- };
18
- const recipeClass = require_Blockquote_vanilla_css.blockquoteRecipe({
11
+ const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
12
+ const recipeClass = blockquoteClass({
19
13
  size,
20
14
  weight,
21
15
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"Blockquote.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","blockquoteRecipe","cx"],"sources":["../../../components/Blockquote/Blockquote.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 { blockquoteRecipe } from './Blockquote.vanilla.css';\n\ntype BlockquoteRecipeVariants = RecipeVariants<typeof blockquoteRecipe>;\n\ninterface BlockquoteOwnProps extends Omit<BlockquoteRecipeVariants, never>, CSSProps {}\n\nexport type BlockquoteVanillaProps<C extends ElementType = 'blockquote'> =\n PolymorphicComponentProps<C, BlockquoteOwnProps>;\n\ntype BlockquoteComponent = PolymorphicComponent<'blockquote', BlockquoteVanillaProps<ElementType>>;\n\nconst BlockquoteVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'blockquote'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: BlockquoteVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = (as || 'blockquote') as ElementType;\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 = blockquoteRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBlockquoteVanillaComponentImpl.displayName = 'BlockquoteVanilla';\n\nexport const BlockquoteVanilla = BlockquoteVanillaComponentImpl as BlockquoteComponent;\n"],"mappings":";;;;;;;;AAuBA,IAAM,kCAAA,GAAiCA,MAAAA,WAAAA,EAEnC,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAa,MAAM;CACzB,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,+BAAAA,iBAAiB;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAE3F,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
1
+ {"version":3,"file":"Blockquote.vanilla.cjs","names":["withVariantKeys","blockquoteRecipe","forwardRef","useInlineStyle","cx"],"sources":["../../../components/Blockquote/Blockquote.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { blockquoteRecipe } from './Blockquote.vanilla.css';\n\nconst blockquoteClass = withVariantKeys(blockquoteRecipe);\n\ntype BlockquoteRecipeVariants = RecipeVariantProps<typeof blockquoteRecipe>;\n\ninterface BlockquoteOwnProps extends BlockquoteRecipeVariants, CSSProps {}\n\nexport type BlockquoteVanillaProps<C extends ElementType = 'blockquote'> =\n PolymorphicComponentProps<C, BlockquoteOwnProps>;\n\ntype BlockquoteComponent = PolymorphicComponent<'blockquote', BlockquoteVanillaProps<ElementType>>;\n\nconst BlockquoteVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'blockquote'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: BlockquoteVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = (as || 'blockquote') as ElementType;\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = blockquoteClass({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBlockquoteVanillaComponentImpl.displayName = 'BlockquoteVanilla';\n\nexport const BlockquoteVanilla = BlockquoteVanillaComponentImpl as BlockquoteComponent;\n"],"mappings":";;;;;;;AAcA,IAAM,kBAAkBA,uBAAAA,gBAAgBC,+BAAAA,gBAAgB;AAWxD,IAAM,kCAAA,GAAiCC,MAAAA,WAAAA,EAEnC,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAa,MAAM;CACzB,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAc,gBAAgB;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAE1F,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
@@ -1,21 +1,15 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
2
+ import { withVariantKeys } from "../../styles/recipeVariants.js";
3
+ import { useInlineStyle } from "../../styles/useInlineStyle.js";
4
4
  import { blockquoteRecipe } from "./Blockquote.vanilla.css.js";
5
5
  import { forwardRef } from "react";
6
- import { assignInlineVars } from "@vanilla-extract/dynamic";
7
6
  import { jsx } from "react/jsx-runtime";
8
7
  // components/Blockquote/Blockquote.vanilla.tsx
8
+ var blockquoteClass = withVariantKeys(blockquoteRecipe);
9
9
  var BlockquoteVanillaComponentImpl = forwardRef(({ as, className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
10
10
  const Component = as || "blockquote";
11
- const { colors } = useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = processCSSProp(css, colors);
13
- const mergedStyles = {
14
- ...cssStyles,
15
- ...style,
16
- ...assignInlineVars(vars)
17
- };
18
- const recipeClass = blockquoteRecipe({
11
+ const mergedStyles = useInlineStyle(css, style);
12
+ const recipeClass = blockquoteClass({
19
13
  size,
20
14
  weight,
21
15
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"Blockquote.vanilla.js","names":[],"sources":["../../../components/Blockquote/Blockquote.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 { blockquoteRecipe } from './Blockquote.vanilla.css';\n\ntype BlockquoteRecipeVariants = RecipeVariants<typeof blockquoteRecipe>;\n\ninterface BlockquoteOwnProps extends Omit<BlockquoteRecipeVariants, never>, CSSProps {}\n\nexport type BlockquoteVanillaProps<C extends ElementType = 'blockquote'> =\n PolymorphicComponentProps<C, BlockquoteOwnProps>;\n\ntype BlockquoteComponent = PolymorphicComponent<'blockquote', BlockquoteVanillaProps<ElementType>>;\n\nconst BlockquoteVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'blockquote'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: BlockquoteVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = (as || 'blockquote') as ElementType;\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 = blockquoteRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBlockquoteVanillaComponentImpl.displayName = 'BlockquoteVanilla';\n\nexport const BlockquoteVanilla = BlockquoteVanillaComponentImpl as BlockquoteComponent;\n"],"mappings":";;;;;;;;AAuBA,IAAM,iCAAiC,YAEnC,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAa,MAAM;CACzB,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,iBAAiB;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAE3F,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
1
+ {"version":3,"file":"Blockquote.vanilla.js","names":[],"sources":["../../../components/Blockquote/Blockquote.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { blockquoteRecipe } from './Blockquote.vanilla.css';\n\nconst blockquoteClass = withVariantKeys(blockquoteRecipe);\n\ntype BlockquoteRecipeVariants = RecipeVariantProps<typeof blockquoteRecipe>;\n\ninterface BlockquoteOwnProps extends BlockquoteRecipeVariants, CSSProps {}\n\nexport type BlockquoteVanillaProps<C extends ElementType = 'blockquote'> =\n PolymorphicComponentProps<C, BlockquoteOwnProps>;\n\ntype BlockquoteComponent = PolymorphicComponent<'blockquote', BlockquoteVanillaProps<ElementType>>;\n\nconst BlockquoteVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'blockquote'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: BlockquoteVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = (as || 'blockquote') as ElementType;\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = blockquoteClass({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBlockquoteVanillaComponentImpl.displayName = 'BlockquoteVanilla';\n\nexport const BlockquoteVanilla = BlockquoteVanillaComponentImpl as BlockquoteComponent;\n"],"mappings":";;;;;;;AAcA,IAAM,kBAAkB,gBAAgB,gBAAgB;AAWxD,IAAM,iCAAiC,YAEnC,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAa,MAAM;CACzB,MAAM,eAAe,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAc,gBAAgB;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAE1F,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
@@ -1,20 +1,12 @@
1
- const require_cssProps = require("../../styles/cssProps.cjs");
2
1
  const require_cx = require("../../styles/cx.cjs");
3
- const require_themeContext = require("../../styles/themeContext.cjs");
2
+ const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
4
3
  const require_Box_vanilla_css = require("./Box.vanilla.css.cjs");
5
4
  let react = require("react");
6
- let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
7
5
  let react_jsx_runtime = require("react/jsx-runtime");
8
6
  // components/Box/Box.vanilla.tsx
9
7
  var BoxVanillaComponent = (0, react.forwardRef)(({ as, className, css, style, ...props }, ref) => {
10
8
  const Component = as || "div";
11
- const { colors } = require_themeContext.useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = require_cssProps.processCSSProp(css, colors);
13
- const mergedStyles = {
14
- ...cssStyles,
15
- ...style,
16
- ...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
17
- };
9
+ const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
18
10
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
19
11
  ref,
20
12
  className: require_cx.cx(require_Box_vanilla_css.box, className),
@@ -1 +1 @@
1
- {"version":3,"file":"Box.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","cx","box"],"sources":["../../../components/Box/Box.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 { box } from './Box.vanilla.css';\n\nexport type BoxProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, CSSProps>;\n\ntype BoxComponent = PolymorphicComponent<'div', BoxProps<ElementType>>;\n\nconst BoxVanillaComponent = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: BoxProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\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 return <Component ref={ref} className={cx(box, className)} style={mergedStyles} {...props} />;\n },\n);\n\nBoxVanillaComponent.displayName = 'BoxVanilla';\n\nexport const BoxVanilla = BoxVanillaComponent as BoxComponent;\n"],"mappings":";;;;;;;;AAiBA,IAAM,uBAAA,GAAsBA,MAAAA,WAAAA,EAExB,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,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,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAGC,wBAAAA,KAAK,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAC9F,CACF;AAEA,oBAAoB,cAAc;AAElC,IAAa,aAAa"}
1
+ {"version":3,"file":"Box.vanilla.cjs","names":["forwardRef","useInlineStyle","cx","box"],"sources":["../../../components/Box/Box.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { box } from './Box.vanilla.css';\n\nexport type BoxProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, CSSProps>;\n\ntype BoxComponent = PolymorphicComponent<'div', BoxProps<ElementType>>;\n\nconst BoxVanillaComponent = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: BoxProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n\n const mergedStyles = useInlineStyle(css, style);\n\n return <Component ref={ref} className={cx(box, className)} style={mergedStyles} {...props} />;\n },\n);\n\nBoxVanillaComponent.displayName = 'BoxVanilla';\n\nexport const BoxVanilla = BoxVanillaComponent as BoxComponent;\n"],"mappings":";;;;;;AAiBA,IAAM,uBAAA,GAAsBA,MAAAA,WAAAA,EAExB,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAE9C,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAGC,wBAAAA,KAAK,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAC9F,CACF;AAEA,oBAAoB,cAAc;AAElC,IAAa,aAAa"}
@@ -1,20 +1,12 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
2
+ import { useInlineStyle } from "../../styles/useInlineStyle.js";
4
3
  import { box } from "./Box.vanilla.css.js";
5
4
  import { forwardRef } from "react";
6
- import { assignInlineVars } from "@vanilla-extract/dynamic";
7
5
  import { jsx } from "react/jsx-runtime";
8
6
  // components/Box/Box.vanilla.tsx
9
7
  var BoxVanillaComponent = forwardRef(({ as, className, css, style, ...props }, ref) => {
10
8
  const Component = as || "div";
11
- const { colors } = useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = processCSSProp(css, colors);
13
- const mergedStyles = {
14
- ...cssStyles,
15
- ...style,
16
- ...assignInlineVars(vars)
17
- };
9
+ const mergedStyles = useInlineStyle(css, style);
18
10
  return /* @__PURE__ */ jsx(Component, {
19
11
  ref,
20
12
  className: cx(box, className),
@@ -1 +1 @@
1
- {"version":3,"file":"Box.vanilla.js","names":[],"sources":["../../../components/Box/Box.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 { box } from './Box.vanilla.css';\n\nexport type BoxProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, CSSProps>;\n\ntype BoxComponent = PolymorphicComponent<'div', BoxProps<ElementType>>;\n\nconst BoxVanillaComponent = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: BoxProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\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 return <Component ref={ref} className={cx(box, className)} style={mergedStyles} {...props} />;\n },\n);\n\nBoxVanillaComponent.displayName = 'BoxVanilla';\n\nexport const BoxVanilla = BoxVanillaComponent as BoxComponent;\n"],"mappings":";;;;;;;;AAiBA,IAAM,sBAAsB,YAExB,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,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,OAAO,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,KAAK,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAC9F,CACF;AAEA,oBAAoB,cAAc;AAElC,IAAa,aAAa"}
1
+ {"version":3,"file":"Box.vanilla.js","names":[],"sources":["../../../components/Box/Box.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { box } from './Box.vanilla.css';\n\nexport type BoxProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, CSSProps>;\n\ntype BoxComponent = PolymorphicComponent<'div', BoxProps<ElementType>>;\n\nconst BoxVanillaComponent = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: BoxProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n\n const mergedStyles = useInlineStyle(css, style);\n\n return <Component ref={ref} className={cx(box, className)} style={mergedStyles} {...props} />;\n },\n);\n\nBoxVanillaComponent.displayName = 'BoxVanilla';\n\nexport const BoxVanilla = BoxVanillaComponent as BoxComponent;\n"],"mappings":";;;;;;AAiBA,IAAM,sBAAsB,YAExB,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,eAAe,eAAe,KAAK,KAAK;CAE9C,OAAO,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,KAAK,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAC9F,CACF;AAEA,oBAAoB,cAAc;AAElC,IAAa,aAAa"}
@@ -1,20 +1,12 @@
1
- const require_cssProps = require("../../styles/cssProps.cjs");
2
1
  const require_cx = require("../../styles/cx.cjs");
3
- const require_themeContext = require("../../styles/themeContext.cjs");
2
+ const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
4
3
  const require_Bubble_vanilla_css = require("./Bubble.vanilla.css.cjs");
5
4
  let react = require("react");
6
- let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
7
5
  let react_jsx_runtime = require("react/jsx-runtime");
8
6
  // components/Bubble/Bubble.vanilla.tsx
9
7
  var BubbleVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, variant, noAnimation, ...props }, ref) => {
10
8
  const Component = as || "div";
11
- const { colors } = require_themeContext.useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = require_cssProps.processCSSProp(css, colors);
13
- const mergedStyles = {
14
- ...cssStyles,
15
- ...style,
16
- ...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
17
- };
9
+ const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
18
10
  const recipeClass = require_Bubble_vanilla_css.bubbleRecipe({
19
11
  size,
20
12
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","bubbleRecipe","cx"],"sources":["../../../components/Bubble/Bubble.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 { bubbleRecipe } from './Bubble.vanilla.css';\n\ntype BubbleRecipeVariants = NonNullable<RecipeVariants<typeof bubbleRecipe>>;\n\ninterface BubbleOwnProps extends BubbleRecipeVariants, CSSProps {}\n\nexport type BubbleVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n BubbleOwnProps\n>;\n\ntype BubbleVanillaComponent = PolymorphicComponent<'div', BubbleVanillaProps<ElementType>>;\n\nconst BubbleVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, size, variant, noAnimation, ...props }: BubbleVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\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 = bubbleRecipe({ size, variant, noAnimation });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBubbleVanillaComponentImpl.displayName = 'BubbleVanilla';\n\nexport const BubbleVanilla = BubbleVanillaComponentImpl as BubbleVanillaComponent;\n"],"mappings":";;;;;;;;AAyBA,IAAM,8BAAA,GAA6BA,MAAAA,WAAAA,EAE/B,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,aAAa,GAAG,SAC5D,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,2BAAAA,aAAa;EAAE;EAAM;EAAS;CAAY,CAAC;CAE/D,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Bubble.vanilla.cjs","names":["forwardRef","useInlineStyle","bubbleRecipe","cx"],"sources":["../../../components/Bubble/Bubble.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { bubbleRecipe } from './Bubble.vanilla.css';\n\ntype BubbleRecipeVariants = RecipeVariantProps<typeof bubbleRecipe>;\n\ninterface BubbleOwnProps extends BubbleRecipeVariants, CSSProps {}\n\nexport type BubbleVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n BubbleOwnProps\n>;\n\ntype BubbleVanillaComponent = PolymorphicComponent<'div', BubbleVanillaProps<ElementType>>;\n\nconst BubbleVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, size, variant, noAnimation, ...props }: BubbleVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = bubbleRecipe({ size, variant, noAnimation });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBubbleVanillaComponentImpl.displayName = 'BubbleVanilla';\n\nexport const BubbleVanilla = BubbleVanillaComponentImpl as BubbleVanillaComponent;\n"],"mappings":";;;;;;AAyBA,IAAM,8BAAA,GAA6BA,MAAAA,WAAAA,EAE/B,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,aAAa,GAAG,SAC5D,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAcC,2BAAAA,aAAa;EAAE;EAAM;EAAS;CAAY,CAAC;CAE/D,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
@@ -1,20 +1,12 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
2
+ import { useInlineStyle } from "../../styles/useInlineStyle.js";
4
3
  import { bubbleRecipe } from "./Bubble.vanilla.css.js";
5
4
  import { forwardRef } from "react";
6
- import { assignInlineVars } from "@vanilla-extract/dynamic";
7
5
  import { jsx } from "react/jsx-runtime";
8
6
  // components/Bubble/Bubble.vanilla.tsx
9
7
  var BubbleVanillaComponentImpl = forwardRef(({ as, className, css, style, size, variant, noAnimation, ...props }, ref) => {
10
8
  const Component = as || "div";
11
- const { colors } = useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = processCSSProp(css, colors);
13
- const mergedStyles = {
14
- ...cssStyles,
15
- ...style,
16
- ...assignInlineVars(vars)
17
- };
9
+ const mergedStyles = useInlineStyle(css, style);
18
10
  const recipeClass = bubbleRecipe({
19
11
  size,
20
12
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vanilla.js","names":[],"sources":["../../../components/Bubble/Bubble.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 { bubbleRecipe } from './Bubble.vanilla.css';\n\ntype BubbleRecipeVariants = NonNullable<RecipeVariants<typeof bubbleRecipe>>;\n\ninterface BubbleOwnProps extends BubbleRecipeVariants, CSSProps {}\n\nexport type BubbleVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n BubbleOwnProps\n>;\n\ntype BubbleVanillaComponent = PolymorphicComponent<'div', BubbleVanillaProps<ElementType>>;\n\nconst BubbleVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, size, variant, noAnimation, ...props }: BubbleVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\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 = bubbleRecipe({ size, variant, noAnimation });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBubbleVanillaComponentImpl.displayName = 'BubbleVanilla';\n\nexport const BubbleVanilla = BubbleVanillaComponentImpl as BubbleVanillaComponent;\n"],"mappings":";;;;;;;;AAyBA,IAAM,6BAA6B,YAE/B,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,aAAa,GAAG,SAC5D,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,aAAa;EAAE;EAAM;EAAS;CAAY,CAAC;CAE/D,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Bubble.vanilla.js","names":[],"sources":["../../../components/Bubble/Bubble.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { bubbleRecipe } from './Bubble.vanilla.css';\n\ntype BubbleRecipeVariants = RecipeVariantProps<typeof bubbleRecipe>;\n\ninterface BubbleOwnProps extends BubbleRecipeVariants, CSSProps {}\n\nexport type BubbleVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n BubbleOwnProps\n>;\n\ntype BubbleVanillaComponent = PolymorphicComponent<'div', BubbleVanillaProps<ElementType>>;\n\nconst BubbleVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, size, variant, noAnimation, ...props }: BubbleVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = bubbleRecipe({ size, variant, noAnimation });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nBubbleVanillaComponentImpl.displayName = 'BubbleVanilla';\n\nexport const BubbleVanilla = BubbleVanillaComponentImpl as BubbleVanillaComponent;\n"],"mappings":";;;;;;AAyBA,IAAM,6BAA6B,YAE/B,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,aAAa,GAAG,SAC5D,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,eAAe,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAc,aAAa;EAAE;EAAM;EAAS;CAAY,CAAC;CAE/D,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
@@ -1,20 +1,12 @@
1
- const require_cssProps = require("../../styles/cssProps.cjs");
2
1
  const require_cx = require("../../styles/cx.cjs");
3
- const require_themeContext = require("../../styles/themeContext.cjs");
2
+ const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
4
3
  const require_Button_vanilla_css = require("./Button.vanilla.css.cjs");
5
4
  let react = require("react");
6
- let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
7
5
  let react_jsx_runtime = require("react/jsx-runtime");
8
6
  // components/Button/Button.vanilla.tsx
9
7
  var ButtonVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, variant, state, ghost, rounded, ...props }, ref) => {
10
8
  const Component = as || "button";
11
- const { colors } = require_themeContext.useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = require_cssProps.processCSSProp(css, colors);
13
- const mergedStyles = {
14
- ...cssStyles,
15
- ...style,
16
- ...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
17
- };
9
+ const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
18
10
  const recipeClass = require_Button_vanilla_css.buttonRecipe({
19
11
  size,
20
12
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"Button.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","buttonRecipe","cx"],"sources":["../../../components/Button/Button.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 { buttonRecipe } from './Button.vanilla.css';\n\ntype ButtonRecipeVariants = RecipeVariants<typeof buttonRecipe>;\n\ninterface ButtonOwnProps extends Omit<ButtonRecipeVariants, never>, CSSProps {}\n\nexport type ButtonVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<\n C,\n ButtonOwnProps\n>;\n\ntype ButtonVanillaComponent = PolymorphicComponent<'button', ButtonVanillaProps<ElementType>>;\n\nconst ButtonVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'button'>(\n {\n as,\n className,\n css,\n style,\n size,\n variant,\n state,\n ghost,\n rounded,\n ...props\n }: ButtonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'button';\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 = buttonRecipe({ size, variant, state, ghost, rounded });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nButtonVanillaComponentImpl.displayName = 'ButtonVanilla';\n\nexport const ButtonVanilla = ButtonVanillaComponentImpl as ButtonVanillaComponent;\n"],"mappings":";;;;;;;;AAyBA,IAAM,8BAAA,GAA6BA,MAAAA,WAAAA,EAE/B,EACE,IACA,WACA,KACA,OACA,MACA,SACA,OACA,OACA,SACA,GAAG,SAEL,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,2BAAAA,aAAa;EAAE;EAAM;EAAS;EAAO;EAAO;CAAQ,CAAC;CAEzE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Button.vanilla.cjs","names":["forwardRef","useInlineStyle","buttonRecipe","cx"],"sources":["../../../components/Button/Button.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { buttonRecipe } from './Button.vanilla.css';\n\ntype ButtonRecipeVariants = RecipeVariantProps<typeof buttonRecipe>;\n\ninterface ButtonOwnProps extends ButtonRecipeVariants, CSSProps {}\n\nexport type ButtonVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<\n C,\n ButtonOwnProps\n>;\n\ntype ButtonVanillaComponent = PolymorphicComponent<'button', ButtonVanillaProps<ElementType>>;\n\nconst ButtonVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'button'>(\n {\n as,\n className,\n css,\n style,\n size,\n variant,\n state,\n ghost,\n rounded,\n ...props\n }: ButtonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'button';\n\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = buttonRecipe({ size, variant, state, ghost, rounded });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nButtonVanillaComponentImpl.displayName = 'ButtonVanilla';\n\nexport const ButtonVanilla = ButtonVanillaComponentImpl as ButtonVanillaComponent;\n"],"mappings":";;;;;;AAyBA,IAAM,8BAAA,GAA6BA,MAAAA,WAAAA,EAE/B,EACE,IACA,WACA,KACA,OACA,MACA,SACA,OACA,OACA,SACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAcC,2BAAAA,aAAa;EAAE;EAAM;EAAS;EAAO;EAAO;CAAQ,CAAC;CAEzE,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
@@ -1,20 +1,12 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
2
+ import { useInlineStyle } from "../../styles/useInlineStyle.js";
4
3
  import { buttonRecipe } from "./Button.vanilla.css.js";
5
4
  import { forwardRef } from "react";
6
- import { assignInlineVars } from "@vanilla-extract/dynamic";
7
5
  import { jsx } from "react/jsx-runtime";
8
6
  // components/Button/Button.vanilla.tsx
9
7
  var ButtonVanillaComponentImpl = forwardRef(({ as, className, css, style, size, variant, state, ghost, rounded, ...props }, ref) => {
10
8
  const Component = as || "button";
11
- const { colors } = useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = processCSSProp(css, colors);
13
- const mergedStyles = {
14
- ...cssStyles,
15
- ...style,
16
- ...assignInlineVars(vars)
17
- };
9
+ const mergedStyles = useInlineStyle(css, style);
18
10
  const recipeClass = buttonRecipe({
19
11
  size,
20
12
  variant,
@@ -1 +1 @@
1
- {"version":3,"file":"Button.vanilla.js","names":[],"sources":["../../../components/Button/Button.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 { buttonRecipe } from './Button.vanilla.css';\n\ntype ButtonRecipeVariants = RecipeVariants<typeof buttonRecipe>;\n\ninterface ButtonOwnProps extends Omit<ButtonRecipeVariants, never>, CSSProps {}\n\nexport type ButtonVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<\n C,\n ButtonOwnProps\n>;\n\ntype ButtonVanillaComponent = PolymorphicComponent<'button', ButtonVanillaProps<ElementType>>;\n\nconst ButtonVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'button'>(\n {\n as,\n className,\n css,\n style,\n size,\n variant,\n state,\n ghost,\n rounded,\n ...props\n }: ButtonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'button';\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 = buttonRecipe({ size, variant, state, ghost, rounded });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nButtonVanillaComponentImpl.displayName = 'ButtonVanilla';\n\nexport const ButtonVanilla = ButtonVanillaComponentImpl as ButtonVanillaComponent;\n"],"mappings":";;;;;;;;AAyBA,IAAM,6BAA6B,YAE/B,EACE,IACA,WACA,KACA,OACA,MACA,SACA,OACA,OACA,SACA,GAAG,SAEL,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,aAAa;EAAE;EAAM;EAAS;EAAO;EAAO;CAAQ,CAAC;CAEzE,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Button.vanilla.js","names":[],"sources":["../../../components/Button/Button.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { buttonRecipe } from './Button.vanilla.css';\n\ntype ButtonRecipeVariants = RecipeVariantProps<typeof buttonRecipe>;\n\ninterface ButtonOwnProps extends ButtonRecipeVariants, CSSProps {}\n\nexport type ButtonVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<\n C,\n ButtonOwnProps\n>;\n\ntype ButtonVanillaComponent = PolymorphicComponent<'button', ButtonVanillaProps<ElementType>>;\n\nconst ButtonVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'button'>(\n {\n as,\n className,\n css,\n style,\n size,\n variant,\n state,\n ghost,\n rounded,\n ...props\n }: ButtonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'button';\n\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = buttonRecipe({ size, variant, state, ghost, rounded });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nButtonVanillaComponentImpl.displayName = 'ButtonVanilla';\n\nexport const ButtonVanilla = ButtonVanillaComponentImpl as ButtonVanillaComponent;\n"],"mappings":";;;;;;AAyBA,IAAM,6BAA6B,YAE/B,EACE,IACA,WACA,KACA,OACA,MACA,SACA,OACA,OACA,SACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,eAAe,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAc,aAAa;EAAE;EAAM;EAAS;EAAO;EAAO;CAAQ,CAAC;CAEzE,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}