@traefik-labs/faency 13.6.0 → 13.7.1

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 (106) hide show
  1. package/README.md +11 -3
  2. package/dist/components/AriaTable/AriaTable.js +4 -4
  3. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  4. package/dist/components/AriaTable/AriaTable.vanilla.css.cjs.map +1 -1
  5. package/dist/components/AriaTable/AriaTable.vanilla.css.js.map +1 -1
  6. package/dist/components/AriaTable/AriaTable.vanilla.js +3 -3
  7. package/dist/components/AriaTable/AriaTable.vanilla.js.map +1 -1
  8. package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
  9. package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
  10. package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
  11. package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
  12. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
  13. package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
  14. package/dist/components/Box/Box.vanilla.css.cjs.map +1 -1
  15. package/dist/components/Box/Box.vanilla.css.js.map +1 -1
  16. package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
  17. package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
  18. package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
  19. package/dist/components/Button/Button.vanilla.css.js.map +1 -1
  20. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs.map +1 -1
  21. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js.map +1 -1
  22. package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
  23. package/dist/components/Card/Card.vanilla.css.js.map +1 -1
  24. package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs.map +1 -1
  25. package/dist/components/CodeBlock/CodeBlock.vanilla.css.js.map +1 -1
  26. package/dist/components/Combobox/Combobox.vanilla.css.cjs.map +1 -1
  27. package/dist/components/Combobox/Combobox.vanilla.css.js.map +1 -1
  28. package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
  29. package/dist/components/Container/Container.vanilla.css.js.map +1 -1
  30. package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
  31. package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
  32. package/dist/components/Field/Field.js +5 -5
  33. package/dist/components/Field/Field.js.map +1 -1
  34. package/dist/components/Field/Field.vanilla.css.cjs.map +1 -1
  35. package/dist/components/Field/Field.vanilla.css.js.map +1 -1
  36. package/dist/components/Field/Field.vanilla.js +5 -5
  37. package/dist/components/Field/Field.vanilla.js.map +1 -1
  38. package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
  39. package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
  40. package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
  41. package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
  42. package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
  43. package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
  44. package/dist/components/Image/Image.vanilla.css.cjs.map +1 -1
  45. package/dist/components/Image/Image.vanilla.css.js.map +1 -1
  46. package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
  47. package/dist/components/Input/Input.vanilla.css.js.map +1 -1
  48. package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
  49. package/dist/components/Label/Label.vanilla.css.js.map +1 -1
  50. package/dist/components/List/List.vanilla.cjs +128 -0
  51. package/dist/components/List/List.vanilla.cjs.map +1 -0
  52. package/dist/components/List/List.vanilla.css.cjs +30 -0
  53. package/dist/components/List/List.vanilla.css.cjs.map +1 -0
  54. package/dist/components/List/List.vanilla.css.js +25 -0
  55. package/dist/components/List/List.vanilla.css.js.map +1 -0
  56. package/dist/components/List/List.vanilla.js +124 -0
  57. package/dist/components/List/List.vanilla.js.map +1 -0
  58. package/dist/components/Meter/Meter.vanilla.css.cjs.map +1 -1
  59. package/dist/components/Meter/Meter.vanilla.css.js.map +1 -1
  60. package/dist/components/Panel/Panel.vanilla.css.cjs.map +1 -1
  61. package/dist/components/Panel/Panel.vanilla.css.js.map +1 -1
  62. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
  63. package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
  64. package/dist/components/RowLink/RowLink.vanilla.css.cjs.map +1 -1
  65. package/dist/components/RowLink/RowLink.vanilla.css.js.map +1 -1
  66. package/dist/components/SegmentedControl/SegmentedControl.vanilla.css.cjs.map +1 -1
  67. package/dist/components/SegmentedControl/SegmentedControl.vanilla.css.js.map +1 -1
  68. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
  69. package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
  70. package/dist/components/Spinner/Spinner.vanilla.css.cjs.map +1 -1
  71. package/dist/components/Spinner/Spinner.vanilla.css.js.map +1 -1
  72. package/dist/components/SplitLayout/SplitLayout.vanilla.css.cjs.map +1 -1
  73. package/dist/components/SplitLayout/SplitLayout.vanilla.css.js.map +1 -1
  74. package/dist/components/SplitLayout/SplitLayout.vanilla.js +2 -2
  75. package/dist/components/SplitLayout/SplitLayout.vanilla.js.map +1 -1
  76. package/dist/components/Table/Table.js +2 -2
  77. package/dist/components/Table/Table.js.map +1 -1
  78. package/dist/components/Table/Table.vanilla.css.cjs.map +1 -1
  79. package/dist/components/Table/Table.vanilla.css.js.map +1 -1
  80. package/dist/components/Table/Table.vanilla.js +2 -2
  81. package/dist/components/Table/Table.vanilla.js.map +1 -1
  82. package/dist/components/Text/Text.vanilla.css.cjs.map +1 -1
  83. package/dist/components/Text/Text.vanilla.css.js.map +1 -1
  84. package/dist/components/TextField/TextField.vanilla.css.cjs.map +1 -1
  85. package/dist/components/TextField/TextField.vanilla.css.js.map +1 -1
  86. package/dist/components/TextField/TextField.vanilla.js +2 -2
  87. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  88. package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
  89. package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
  90. package/dist/components/Toast/Toast.vanilla.css.cjs.map +1 -1
  91. package/dist/components/Toast/Toast.vanilla.css.js.map +1 -1
  92. package/dist/faency.css +2051 -1877
  93. package/dist/index.cjs +4 -0
  94. package/dist/index.d.ts +112 -34
  95. package/dist/index.js +2 -1
  96. package/dist/styles/themes.css.cjs.map +1 -1
  97. package/dist/styles/themes.css.js.map +1 -1
  98. package/dist/styles/tokens.css.cjs +93 -90
  99. package/dist/styles/tokens.css.cjs.map +1 -1
  100. package/dist/styles/tokens.css.js +93 -90
  101. package/dist/styles/tokens.css.js.map +1 -1
  102. package/dist/utils/warnOnce.cjs +8 -1
  103. package/dist/utils/warnOnce.cjs.map +1 -1
  104. package/dist/utils/warnOnce.js +8 -1
  105. package/dist/utils/warnOnce.js.map +1 -1
  106. package/package.json +16 -16
package/README.md CHANGED
@@ -76,10 +76,16 @@ const App = () => (
76
76
 
77
77
  ## How to contribute
78
78
 
79
- - Make sure you have Node 24.14.1+, or if you prefer, you can work in a Docker container:
79
+ - Make sure you have the Node version in `.nvmrc` (`nvm use`), or if you prefer, you can work in a Docker container:
80
80
 
81
81
  ```sh
82
- docker run -it -v $(pwd):/usr/local/src/ -w /usr/local/src/ -p 3000:3000 node:latest bash
82
+ docker run -it --rm -v $(pwd):/usr/local/src/ -v faency-node-modules:/usr/local/src/node_modules -w /usr/local/src/ -p 6006:6006 -p 24678:24678 node:$(sed 's/^v//' .nvmrc) bash
83
+ ```
84
+
85
+ - Enable Corepack, so `yarn` runs the Yarn version set in `package.json`
86
+
87
+ ```sh
88
+ corepack enable
83
89
  ```
84
90
 
85
91
  - Install the project dependencies
@@ -102,7 +108,9 @@ yarn patch-package
102
108
  yarn storybook
103
109
  ```
104
110
 
105
- At this point, Storybook should automatically open up in your browser and you can start coding, it has hot reload so it will automatically re-render whenever a change is detected on the code.
111
+ Storybook opens in your browser and hot reloads whenever the code changes.
112
+
113
+ In the Docker container, run `yarn storybook --host 0.0.0.0` instead. Nothing opens by itself there, so open http://localhost:6006 on your machine.
106
114
 
107
115
  ### Writing stories
108
116
 
@@ -7,7 +7,7 @@ import { Caption as Caption$1, StyledTr as StyledTr$1, Table as Table$1, Tbody a
7
7
  import { ExpandButton } from "../Table/ExpandButton.js";
8
8
  import { ChevronRightIcon } from "@radix-ui/react-icons";
9
9
  import { Children, cloneElement, forwardRef, isValidElement, useId, useMemo, useState } from "react";
10
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
11
  import { Slot } from "@radix-ui/react-slot";
12
12
  // components/AriaTable/AriaTable.tsx
13
13
  var Caption = styled("div", Caption$1, { display: "table-caption" });
@@ -111,7 +111,7 @@ var Tr = forwardRef(({ asChild, children, collapsedContent, expandLabel = "Expan
111
111
  ]);
112
112
  const renderedChildren = useMemo(() => {
113
113
  if (asChild) return cloneElement(children, { ...children?.props }, [TdEl, ...children?.props?.children || []]);
114
- return /* @__PURE__ */ jsxs(Fragment, { children: [TdEl, withRowLink(children, {
114
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [TdEl, withRowLink(children, {
115
115
  href,
116
116
  linkAs,
117
117
  linkCell,
@@ -128,7 +128,7 @@ var Tr = forwardRef(({ asChild, children, collapsedContent, expandLabel = "Expan
128
128
  linkProps,
129
129
  linkOverlay
130
130
  ]);
131
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Component, {
131
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Component, {
132
132
  ref,
133
133
  role: "row",
134
134
  css: !!collapsedContent && !isCollapsed ? {
@@ -164,7 +164,7 @@ var Td = forwardRef(({ fullColSpan, css, ...props }, ref) => {
164
164
  width: "100%",
165
165
  height: "100%"
166
166
  } : {}, [fullColSpan]);
167
- if (fullColSpan) return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FillerTd, {
167
+ if (fullColSpan) return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(FillerTd, {
168
168
  css,
169
169
  ...props
170
170
  }), /* @__PURE__ */ jsx(StyledTd, {
@@ -1 +1 @@
1
- {"version":3,"file":"AriaTable.js","names":["TableCaption","TableTbody","TableTfoot","TableTr","_Fragment","TableTh","TableTd","TableThead","TableTable"],"sources":["../../../components/AriaTable/AriaTable.tsx"],"sourcesContent":["import { ChevronRightIcon } from '@radix-ui/react-icons';\nimport { Slot } from '@radix-ui/react-slot';\nimport React, {\n Children,\n cloneElement,\n ComponentProps,\n ElementRef,\n forwardRef,\n isValidElement,\n ReactNode,\n useId,\n useMemo,\n useState,\n} from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { deepMerge } from '../../utils/deepMerge';\nimport { Box } from '../Box';\nimport {\n handleRowClick,\n openRowLink,\n ROW_LINK_CONTROL_Z_INDEX,\n RowLinkShortcutProps,\n withRowLink,\n} from '../RowLink';\nimport type { TableVariants } from '../Table';\nimport {\n Caption as TableCaption,\n StyledTr as TableTr,\n Table as TableTable,\n Tbody as TableTbody,\n Td as TableTd,\n Tfoot as TableTfoot,\n Th as TableTh,\n Thead as TableThead,\n} from '../Table';\nimport { ExpandButton } from '../Table/ExpandButton';\n\nexport const Caption = styled('div', TableCaption, {\n display: 'table-caption',\n});\n\nconst StyledTbody = styled('div', TableTbody, {\n display: 'table-row-group',\n});\nexport const Tbody = forwardRef<\n ElementRef<typeof StyledTbody>,\n ComponentProps<typeof StyledTbody> & VariantProps<typeof StyledTbody>\n>((props, ref) => <StyledTbody ref={ref} role=\"rowgroup\" {...props} />);\n\nconst StyledTfoot = styled('div', TableTfoot, {\n display: 'table-footer-group',\n});\nexport const Tfoot = forwardRef<\n ElementRef<typeof StyledTfoot>,\n ComponentProps<typeof StyledTfoot> & VariantProps<typeof StyledTfoot>\n>((props, ref) => <StyledTfoot ref={ref} role=\"rowgroup\" {...props} />);\n\nconst StyledTr = styled('div', TableTr, {\n display: 'table-row',\n});\nconst StyledTrSlot = styled(Slot, StyledTr);\n\nconst AnimatedContainer = ({\n id,\n isOpen,\n children,\n}: {\n id: string;\n isOpen: boolean;\n children: ReactNode;\n}) => {\n const appliedStyle = useMemo(\n () =>\n isOpen\n ? {\n transition: 'all 0.2s ease-out, visibility 0s',\n paddingBottom: 0,\n paddingTop: 0,\n border: 'none',\n }\n : {\n transition: 'all 0.2s ease-out, visibility 0s 0.2s',\n padding: '0px 16px',\n pointerEvents: 'none',\n border: 'none',\n visibility: 'hidden',\n },\n [isOpen],\n );\n\n const containerStyle = useMemo(\n () =>\n isOpen\n ? {\n transition: 'all 0.2s ease-out',\n padding: '16px',\n paddingBottom: 0,\n }\n : {\n transition: 'all 0.2s ease-out',\n height: 0,\n overflow: 'hidden',\n padding: '0px 16px',\n },\n [isOpen],\n );\n\n return (\n <StyledTr\n id={id}\n css={isOpen ? { '&:not(:last-child)': { borderBottom: '1px solid $tableRowBorder' } } : {}}\n >\n <Td css={appliedStyle} fullColSpan>\n <Box css={containerStyle}>{children}</Box>\n </Td>\n </StyledTr>\n );\n};\n\nexport type AriaTrProps = ComponentProps<typeof StyledTr> &\n VariantProps<typeof StyledTr> & {\n asChild?: boolean;\n collapsedContent?: React.ReactNode;\n expandLabel?: string;\n emptyFirstColumn?: boolean;\n tableHead?: boolean;\n children?: React.ReactNode;\n } & RowLinkShortcutProps;\n\nexport const Tr = forwardRef<ElementRef<typeof StyledTr>, AriaTrProps>(\n (\n {\n asChild,\n children,\n collapsedContent,\n expandLabel = 'Expand row',\n emptyFirstColumn,\n tableHead,\n css,\n href,\n linkAs,\n linkCell,\n linkProps,\n linkOverlay,\n interactive,\n onClick,\n onAuxClick,\n ...props\n },\n ref,\n ) => {\n if (asChild && href !== undefined) {\n throw new Error('Tr cannot use href with asChild. Use RowLink in a cell instead.');\n }\n const Component = asChild ? StyledTrSlot : StyledTr;\n const [isCollapsed, setIsCollapsed] = useState(false);\n const contentId = useId();\n\n if (!asChild) {\n // eslint-disable-next-line @eslint-react/no-children-to-array\n const arrayChildren = Children.toArray(children);\n const hasColSpanChildren = arrayChildren.some((child) => {\n if (!isValidElement(child)) {\n return false;\n }\n const { fullColSpan } = child.props as TdProps;\n return !!fullColSpan;\n });\n if (hasColSpanChildren && arrayChildren.length > 1) {\n throw new Error('Using fullColSpan is allowed only for a single full width Td.');\n }\n }\n\n const TdEl = useMemo(\n () =>\n emptyFirstColumn ? (\n tableHead ? (\n <Th css={{ width: 24 }} />\n ) : (\n <Td key=\"empty-td\" />\n )\n ) : collapsedContent ? (\n <Td key=\"chevron-td\">\n <Box\n css={{ position: 'relative', zIndex: ROW_LINK_CONTROL_Z_INDEX }}\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n }}\n >\n {asChild ? (\n <ChevronRightIcon\n onClick={() => setIsCollapsed(!isCollapsed)}\n style={{\n cursor: 'pointer',\n transition: 'transform 0.2s ease-out',\n transform: isCollapsed ? 'rotate(90deg)' : 'initial',\n }}\n />\n ) : (\n <ExpandButton\n type=\"button\"\n aria-label={expandLabel}\n aria-expanded={isCollapsed}\n aria-controls={contentId}\n onClick={() => setIsCollapsed(!isCollapsed)}\n >\n <ChevronRightIcon\n aria-hidden\n style={{\n transition: 'transform 0.2s ease-out',\n transform: isCollapsed ? 'rotate(90deg)' : 'initial',\n }}\n />\n </ExpandButton>\n )}\n </Box>\n </Td>\n ) : null,\n // eslint-disable-next-line @eslint-react/exhaustive-deps\n [isCollapsed, asChild, expandLabel],\n );\n\n const renderedChildren = useMemo(() => {\n if (asChild) {\n // eslint-disable-next-line @eslint-react/no-clone-element\n return cloneElement(\n children as any,\n {\n // @ts-ignore: Object is possibly 'null'.\n ...children?.props,\n },\n // @ts-ignore: Object is possibly 'null'.\n [TdEl, ...(children?.props?.children || [])],\n );\n }\n\n return (\n <>\n {TdEl}\n {withRowLink(children, { href, linkAs, linkCell, linkProps, linkOverlay }, Td)}\n </>\n );\n }, [asChild, TdEl, children, href, linkAs, linkCell, linkProps, linkOverlay]);\n\n return (\n <>\n <Component\n ref={ref}\n role=\"row\"\n css={\n !!collapsedContent && !isCollapsed\n ? {\n ...css,\n [`&:nth-last-child(2) > span`]: {\n borderBottom: 'none',\n },\n }\n : { ...css }\n }\n interactive={interactive ?? (href !== undefined || undefined)}\n onClick={(event) => handleRowClick(event, onClick)}\n onAuxClick={(event) => {\n onAuxClick?.(event);\n openRowLink(event);\n }}\n {...props}\n >\n {renderedChildren}\n </Component>\n {!!collapsedContent && (\n <AnimatedContainer id={contentId} isOpen={isCollapsed}>\n {collapsedContent}\n </AnimatedContainer>\n )}\n </>\n );\n },\n);\n\nconst StyledTh = styled('span', TableTh, {\n display: 'table-cell',\n});\n\nexport interface ThProps extends ComponentProps<typeof StyledTh>, VariantProps<typeof StyledTh> {}\n\nexport const Th = forwardRef<ElementRef<typeof StyledTh>, ComponentProps<typeof StyledTh>>(\n (props, ref) => <StyledTh ref={ref} role=\"columnheader\" {...props} />,\n);\n\nconst StyledTd = styled('span', TableTd, {\n display: 'table-cell',\n});\n\nconst FillerTd = styled(StyledTd, {\n visibility: 'hidden',\n});\nexport type TdProps = ComponentProps<typeof StyledTd> &\n VariantProps<typeof StyledTd> &\n VariantProps<typeof TableTd> & {\n fullColSpan?: boolean;\n };\n\nexport const Td = forwardRef<ElementRef<typeof StyledTd>, TdProps>(\n ({ fullColSpan, css, ...props }, ref) => {\n const fullColSpanCss = useMemo(\n () =>\n fullColSpan\n ? {\n position: 'absolute',\n left: 0,\n width: '100%',\n height: '100%',\n }\n : {},\n [fullColSpan],\n );\n if (fullColSpan) {\n return (\n <>\n <FillerTd css={css} {...props} />\n <StyledTd ref={ref} role=\"cell\" css={deepMerge(fullColSpanCss, css)} {...props} />\n </>\n );\n }\n return <StyledTd ref={ref} role=\"cell\" css={css} {...props} />;\n },\n);\n\nconst StyledThead = styled('div', TableThead, {\n display: 'table-header-group',\n});\nexport const Thead = forwardRef<\n ElementRef<typeof StyledThead>,\n ComponentProps<typeof StyledThead> & VariantProps<typeof StyledThead> & NonNullable<unknown>\n>((props, ref) => <StyledThead ref={ref} role=\"rowgroup\" {...props} />);\n\nconst StyledTable = styled('div', TableTable, {\n display: 'table',\n});\nexport const Table = forwardRef<\n ElementRef<typeof StyledTable>,\n ComponentProps<typeof StyledTable> &\n VariantProps<typeof StyledTable> & { hasCollapsibleChildren?: boolean }\n>(({ hasCollapsibleChildren, css, ...props }, ref) => (\n <StyledTable\n ref={ref}\n role=\"table\"\n css={hasCollapsibleChildren ? { borderCollapse: 'collapse', ...css } : css}\n {...props}\n />\n));\n\nexport type AriaTableVariants = VariantProps<typeof Table>;\nexport type AriaTableProps = TableVariants & { children?: React.ReactNode; css?: CSS };\n"],"mappings":";;;;;;;;;;;;AAsCA,IAAa,UAAU,OAAO,OAAOA,WAAc,EACjD,SAAS,gBACX,CAAC;AAED,IAAM,cAAc,OAAO,OAAOC,SAAY,EAC5C,SAAS,kBACX,CAAC;AACD,IAAa,QAAQ,YAGlB,OAAO,QAAQ,oBAAC,aAAD;CAAkB;CAAK,MAAK;CAAW,GAAI;AAAQ,CAAA,CAAC;AAEtE,IAAM,cAAc,OAAO,OAAOC,SAAY,EAC5C,SAAS,qBACX,CAAC;AACD,IAAa,QAAQ,YAGlB,OAAO,QAAQ,oBAAC,aAAD;CAAkB;CAAK,MAAK;CAAW,GAAI;AAAQ,CAAA,CAAC;AAEtE,IAAM,WAAW,OAAO,OAAOC,YAAS,EACtC,SAAS,YACX,CAAC;AACD,IAAM,eAAe,OAAO,MAAM,QAAQ;AAE1C,IAAM,qBAAqB,EACzB,IACA,QACA,eAKI;CACJ,MAAM,eAAe,cAEjB,SACI;EACE,YAAY;EACZ,eAAe;EACf,YAAY;EACZ,QAAQ;CACV,IACA;EACE,YAAY;EACZ,SAAS;EACT,eAAe;EACf,QAAQ;EACR,YAAY;CACd,GACN,CAAC,MAA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TableTh","TableTd","TableThead","TableTable"],"sources":["../../../components/AriaTable/AriaTable.tsx"],"sourcesContent":["import { ChevronRightIcon } from '@radix-ui/react-icons';\nimport { Slot } from '@radix-ui/react-slot';\nimport React, {\n Children,\n cloneElement,\n ComponentProps,\n ElementRef,\n forwardRef,\n isValidElement,\n ReactNode,\n useId,\n useMemo,\n useState,\n} from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { deepMerge } from '../../utils/deepMerge';\nimport { Box } from '../Box';\nimport {\n handleRowClick,\n openRowLink,\n ROW_LINK_CONTROL_Z_INDEX,\n RowLinkShortcutProps,\n withRowLink,\n} from '../RowLink';\nimport type { TableVariants } from '../Table';\nimport {\n Caption as TableCaption,\n StyledTr as TableTr,\n Table as TableTable,\n Tbody as TableTbody,\n Td as TableTd,\n Tfoot as TableTfoot,\n Th as TableTh,\n Thead as TableThead,\n} from '../Table';\nimport { ExpandButton } from '../Table/ExpandButton';\n\nexport const Caption = styled('div', TableCaption, {\n display: 'table-caption',\n});\n\nconst StyledTbody = styled('div', TableTbody, {\n display: 'table-row-group',\n});\nexport const Tbody = forwardRef<\n ElementRef<typeof StyledTbody>,\n ComponentProps<typeof StyledTbody> & VariantProps<typeof StyledTbody>\n>((props, ref) => <StyledTbody ref={ref} role=\"rowgroup\" {...props} />);\n\nconst StyledTfoot = styled('div', TableTfoot, {\n display: 'table-footer-group',\n});\nexport const Tfoot = forwardRef<\n ElementRef<typeof StyledTfoot>,\n ComponentProps<typeof StyledTfoot> & VariantProps<typeof StyledTfoot>\n>((props, ref) => <StyledTfoot ref={ref} role=\"rowgroup\" {...props} />);\n\nconst StyledTr = styled('div', TableTr, {\n display: 'table-row',\n});\nconst StyledTrSlot = styled(Slot, StyledTr);\n\nconst AnimatedContainer = ({\n id,\n isOpen,\n children,\n}: {\n id: string;\n isOpen: boolean;\n children: ReactNode;\n}) => {\n const appliedStyle = useMemo(\n () =>\n isOpen\n ? {\n transition: 'all 0.2s ease-out, visibility 0s',\n paddingBottom: 0,\n paddingTop: 0,\n border: 'none',\n }\n : {\n transition: 'all 0.2s ease-out, visibility 0s 0.2s',\n padding: '0px 16px',\n pointerEvents: 'none',\n border: 'none',\n visibility: 'hidden',\n },\n [isOpen],\n );\n\n const containerStyle = useMemo(\n () =>\n isOpen\n ? {\n transition: 'all 0.2s ease-out',\n padding: '16px',\n paddingBottom: 0,\n }\n : {\n transition: 'all 0.2s ease-out',\n height: 0,\n overflow: 'hidden',\n padding: '0px 16px',\n },\n [isOpen],\n );\n\n return (\n <StyledTr\n id={id}\n css={isOpen ? { '&:not(:last-child)': { borderBottom: '1px solid $tableRowBorder' } } : {}}\n >\n <Td css={appliedStyle} fullColSpan>\n <Box css={containerStyle}>{children}</Box>\n </Td>\n </StyledTr>\n );\n};\n\nexport type AriaTrProps = ComponentProps<typeof StyledTr> &\n VariantProps<typeof StyledTr> & {\n asChild?: boolean;\n collapsedContent?: React.ReactNode;\n expandLabel?: string;\n emptyFirstColumn?: boolean;\n tableHead?: boolean;\n children?: React.ReactNode;\n } & RowLinkShortcutProps;\n\nexport const Tr = forwardRef<ElementRef<typeof StyledTr>, AriaTrProps>(\n (\n {\n asChild,\n children,\n collapsedContent,\n expandLabel = 'Expand row',\n emptyFirstColumn,\n tableHead,\n css,\n href,\n linkAs,\n linkCell,\n linkProps,\n linkOverlay,\n interactive,\n onClick,\n onAuxClick,\n ...props\n },\n ref,\n ) => {\n if (asChild && href !== undefined) {\n throw new Error('Tr cannot use href with asChild. Use RowLink in a cell instead.');\n }\n const Component = asChild ? StyledTrSlot : StyledTr;\n const [isCollapsed, setIsCollapsed] = useState(false);\n const contentId = useId();\n\n if (!asChild) {\n // eslint-disable-next-line @eslint-react/no-children-to-array\n const arrayChildren = Children.toArray(children);\n const hasColSpanChildren = arrayChildren.some((child) => {\n if (!isValidElement(child)) {\n return false;\n }\n const { fullColSpan } = child.props as TdProps;\n return !!fullColSpan;\n });\n if (hasColSpanChildren && arrayChildren.length > 1) {\n throw new Error('Using fullColSpan is allowed only for a single full width Td.');\n }\n }\n\n const TdEl = useMemo(\n () =>\n emptyFirstColumn ? (\n tableHead ? (\n <Th css={{ width: 24 }} />\n ) : (\n <Td key=\"empty-td\" />\n )\n ) : collapsedContent ? (\n <Td key=\"chevron-td\">\n <Box\n css={{ position: 'relative', zIndex: ROW_LINK_CONTROL_Z_INDEX }}\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n }}\n >\n {asChild ? (\n <ChevronRightIcon\n onClick={() => setIsCollapsed(!isCollapsed)}\n style={{\n cursor: 'pointer',\n transition: 'transform 0.2s ease-out',\n transform: isCollapsed ? 'rotate(90deg)' : 'initial',\n }}\n />\n ) : (\n <ExpandButton\n type=\"button\"\n aria-label={expandLabel}\n aria-expanded={isCollapsed}\n aria-controls={contentId}\n onClick={() => setIsCollapsed(!isCollapsed)}\n >\n <ChevronRightIcon\n aria-hidden\n style={{\n transition: 'transform 0.2s ease-out',\n transform: isCollapsed ? 'rotate(90deg)' : 'initial',\n }}\n />\n </ExpandButton>\n )}\n </Box>\n </Td>\n ) : null,\n // eslint-disable-next-line @eslint-react/exhaustive-deps\n [isCollapsed, asChild, expandLabel],\n );\n\n const renderedChildren = useMemo(() => {\n if (asChild) {\n // eslint-disable-next-line @eslint-react/no-clone-element\n return cloneElement(\n children as any,\n {\n // @ts-ignore: Object is possibly 'null'.\n ...children?.props,\n },\n // @ts-ignore: Object is possibly 'null'.\n [TdEl, ...(children?.props?.children || [])],\n );\n }\n\n return (\n <>\n {TdEl}\n {withRowLink(children, { href, linkAs, linkCell, linkProps, linkOverlay }, Td)}\n </>\n );\n }, [asChild, TdEl, children, href, linkAs, linkCell, linkProps, linkOverlay]);\n\n return (\n <>\n <Component\n ref={ref}\n role=\"row\"\n css={\n !!collapsedContent && !isCollapsed\n ? {\n ...css,\n [`&:nth-last-child(2) > span`]: {\n borderBottom: 'none',\n },\n }\n : { ...css }\n }\n interactive={interactive ?? (href !== undefined || undefined)}\n onClick={(event) => handleRowClick(event, onClick)}\n onAuxClick={(event) => {\n onAuxClick?.(event);\n openRowLink(event);\n }}\n {...props}\n >\n {renderedChildren}\n </Component>\n {!!collapsedContent && (\n <AnimatedContainer id={contentId} isOpen={isCollapsed}>\n {collapsedContent}\n </AnimatedContainer>\n )}\n </>\n );\n },\n);\n\nconst StyledTh = styled('span', TableTh, {\n display: 'table-cell',\n});\n\nexport interface ThProps extends ComponentProps<typeof StyledTh>, VariantProps<typeof StyledTh> {}\n\nexport const Th = forwardRef<ElementRef<typeof StyledTh>, ComponentProps<typeof StyledTh>>(\n (props, ref) => <StyledTh ref={ref} role=\"columnheader\" {...props} />,\n);\n\nconst StyledTd = styled('span', TableTd, {\n display: 'table-cell',\n});\n\nconst FillerTd = styled(StyledTd, {\n visibility: 'hidden',\n});\nexport type TdProps = ComponentProps<typeof StyledTd> &\n VariantProps<typeof StyledTd> &\n VariantProps<typeof TableTd> & {\n fullColSpan?: boolean;\n };\n\nexport const Td = forwardRef<ElementRef<typeof StyledTd>, TdProps>(\n ({ fullColSpan, css, ...props }, ref) => {\n const fullColSpanCss = useMemo(\n () =>\n fullColSpan\n ? {\n position: 'absolute',\n left: 0,\n width: '100%',\n height: '100%',\n }\n : {},\n [fullColSpan],\n );\n if (fullColSpan) {\n return (\n <>\n <FillerTd css={css} {...props} />\n <StyledTd ref={ref} role=\"cell\" css={deepMerge(fullColSpanCss, css)} {...props} />\n </>\n );\n }\n return <StyledTd ref={ref} role=\"cell\" css={css} {...props} />;\n },\n);\n\nconst StyledThead = styled('div', TableThead, {\n display: 'table-header-group',\n});\nexport const Thead = forwardRef<\n ElementRef<typeof StyledThead>,\n ComponentProps<typeof StyledThead> & VariantProps<typeof StyledThead> & NonNullable<unknown>\n>((props, ref) => <StyledThead ref={ref} role=\"rowgroup\" {...props} />);\n\nconst StyledTable = styled('div', TableTable, {\n display: 'table',\n});\nexport const Table = forwardRef<\n ElementRef<typeof StyledTable>,\n ComponentProps<typeof StyledTable> &\n VariantProps<typeof StyledTable> & { hasCollapsibleChildren?: boolean }\n>(({ hasCollapsibleChildren, css, ...props }, ref) => (\n <StyledTable\n ref={ref}\n role=\"table\"\n css={hasCollapsibleChildren ? { borderCollapse: 'collapse', ...css } : css}\n {...props}\n />\n));\n\nexport type AriaTableVariants = VariantProps<typeof Table>;\nexport type AriaTableProps = TableVariants & { children?: React.ReactNode; css?: CSS };\n"],"mappings":";;;;;;;;;;;;AAsCA,IAAa,UAAU,OAAO,OAAOA,WAAc,EACjD,SAAS,gBACX,CAAC;AAED,IAAM,cAAc,OAAO,OAAOC,SAAY,EAC5C,SAAS,kBACX,CAAC;AACD,IAAa,QAAQ,YAGlB,OAAO,QAAQ,oBAAC,aAAD;CAAkB;CAAK,MAAK;CAAW,GAAI;AAAQ,CAAA,CAAC;AAEtE,IAAM,cAAc,OAAO,OAAOC,SAAY,EAC5C,SAAS,qBACX,CAAC;AACD,IAAa,QAAQ,YAGlB,OAAO,QAAQ,oBAAC,aAAD;CAAkB;CAAK,MAAK;CAAW,GAAI;AAAQ,CAAA,CAAC;AAEtE,IAAM,WAAW,OAAO,OAAOC,YAAS,EACtC,SAAS,YACX,CAAC;AACD,IAAM,eAAe,OAAO,MAAM,QAAQ;AAE1C,IAAM,qBAAqB,EACzB,IACA,QACA,eAKI;CACJ,MAAM,eAAe,cAEjB,SACI;EACE,YAAY;EACZ,eAAe;EACf,YAAY;EACZ,QAAQ;CACV,IACA;EACE,YAAY;EACZ,SAAS;EACT,eAAe;EACf,QAAQ;EACR,YAAY;CACd,GACN,CAAC,MAAM,CACT;CAEA,MAAM,iBAAiB,cAEnB,SACI;EACE,YAAY;EACZ,SAAS;EACT,eAAe;CACjB,IACA;EACE,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,SAAS;CACX,GACN,CAAC,MAAM,CACT;CAEA,OACE,oBAAC,UAAD;EACM;EACJ,KAAK,SAAS,EAAE,sBAAsB,EAAE,cAAc,4BAA4B,EAAE,IAAI,CAAC;EAEzF,UAAA,oBA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Y,SACd,CAAC;AAOD,IAAa,KAAK,YACf,EAAE,aAAa,KAAK,GAAG,SAAS,QAAQ;CACvC,MAAM,iBAAiB,cAEnB,cACI;EACE,UAAU;EACV,MAAM;EACN,OAAO;EACP,QAAQ;CACV,IACA,CAAC,GACP,CAAC,WAAW,CACd;CACA,IAAI,aACF,OACE,qBAAAF,YAAA,EAAA,UAAA,CACE,oBAAC,UAAD;EAAe;EAAK,GAAI;CAAQ,CAAA,GAChC,oBAAC,UAAD;EAAe;EAAK,MAAK;EAAO,KAAK,UAAU,gBAAgB,GAAG;EAAG,GAAI;CAAQ,CAAA,CACjF,EAAA,CAAA;CAGN,OAAO,oBAAC,UAAD;EAAe;EAAK,MAAK;EAAY;EAAK,GAAI;CAAQ,CAAA;AAC/D,CACF;AAEA,IAAM,cAAc,OAAO,OAAOG,SAAY,EAC5C,SAAS,qBACX,CAAC;AACD,IAAa,QAAQ,YAGlB,OAAO,QAAQ,oBAAC,aAAD;CAAkB;CAAK,MAAK;CAAW,GAAI;AAAQ,CAAA,CAAC;AAEtE,IAAM,cAAc,OAAO,OAAOC,SAAY,EAC5C,SAAS,QACX,CAAC;AACD,IAAa,QAAQ,YAIlB,EAAE,wBAAwB,KAAK,GAAG,SAAS,QAC5C,oBAAC,aAAD;CACO;CACL,MAAK;CACL,KAAK,yBAAyB;EAAE,gBAAgB;EAAY,GAAG;CAAI,IAAI;CACvE,GAAI;AACL,CAAA,CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"AriaTable.vanilla.css.cjs","names":[],"sources":["../../../components/AriaTable/AriaTable.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { tokens } from '../../styles/tokens.css';\nimport { FULL_COL_SPAN_ATTRIBUTE } from './AriaTable.constants';\n\nexport const ariaTable = style({ display: 'table' });\n\nexport const collapsibleTable = style({ borderCollapse: 'collapse' });\n\nexport const ariaThead = style({ display: 'table-header-group' });\nexport const ariaTbody = style({ display: 'table-row-group' });\nexport const ariaTfoot = style({ display: 'table-footer-group' });\n\nexport const ariaTr = style({\n display: 'table-row',\n selectors: {\n // Places the full-width cell against its own row.\n [`&:has(> [${FULL_COL_SPAN_ATTRIBUTE}])`]: {\n position: 'relative',\n },\n },\n});\n\nexport const ariaCell = style({ display: 'table-cell' });\n\nexport const fillerCell = style({ visibility: 'hidden' });\n\nexport const fullColSpanCell = style({\n position: 'absolute',\n left: 0,\n width: '100%',\n});\n\nexport const collapsedRow = style({\n selectors: {\n '&[data-open]:not(:last-child)': {\n borderBottom: `1px solid ${tokens.colors.tableRowBorder}`,\n },\n },\n});\n\n// Visibility switches after the collapse animation, so closed content leaves the tab order.\nexport const collapsedCell = style({\n selectors: {\n '&&': {\n transition: 'all 0.2s ease-out, visibility 0s',\n paddingTop: 0,\n paddingBottom: 0,\n border: 'none',\n },\n '&&[data-closed]': {\n transition: 'all 0.2s ease-out, visibility 0s 0.2s',\n padding: `0 ${tokens.space['3']}`,\n pointerEvents: 'none',\n visibility: 'hidden',\n },\n },\n});\n\nexport const collapsedContent = style({\n boxSizing: 'border-box',\n transition: 'all 0.2s ease-out',\n padding: `${tokens.space['3']} ${tokens.space['3']} 0`,\n selectors: {\n [`${collapsedCell}[data-closed] > &`]: {\n height: 0,\n overflow: 'hidden',\n padding: `0 ${tokens.space['3']}`,\n },\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"AriaTable.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"AriaTable.vanilla.css.js","names":[],"sources":["../../../components/AriaTable/AriaTable.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { tokens } from '../../styles/tokens.css';\nimport { FULL_COL_SPAN_ATTRIBUTE } from './AriaTable.constants';\n\nexport const ariaTable = style({ display: 'table' });\n\nexport const collapsibleTable = style({ borderCollapse: 'collapse' });\n\nexport const ariaThead = style({ display: 'table-header-group' });\nexport const ariaTbody = style({ display: 'table-row-group' });\nexport const ariaTfoot = style({ display: 'table-footer-group' });\n\nexport const ariaTr = style({\n display: 'table-row',\n selectors: {\n // Places the full-width cell against its own row.\n [`&:has(> [${FULL_COL_SPAN_ATTRIBUTE}])`]: {\n position: 'relative',\n },\n },\n});\n\nexport const ariaCell = style({ display: 'table-cell' });\n\nexport const fillerCell = style({ visibility: 'hidden' });\n\nexport const fullColSpanCell = style({\n position: 'absolute',\n left: 0,\n width: '100%',\n});\n\nexport const collapsedRow = style({\n selectors: {\n '&[data-open]:not(:last-child)': {\n borderBottom: `1px solid ${tokens.colors.tableRowBorder}`,\n },\n },\n});\n\n// Visibility switches after the collapse animation, so closed content leaves the tab order.\nexport const collapsedCell = style({\n selectors: {\n '&&': {\n transition: 'all 0.2s ease-out, visibility 0s',\n paddingTop: 0,\n paddingBottom: 0,\n border: 'none',\n },\n '&&[data-closed]': {\n transition: 'all 0.2s ease-out, visibility 0s 0.2s',\n padding: `0 ${tokens.space['3']}`,\n pointerEvents: 'none',\n visibility: 'hidden',\n },\n },\n});\n\nexport const collapsedContent = style({\n boxSizing: 'border-box',\n transition: 'all 0.2s ease-out',\n padding: `${tokens.space['3']} ${tokens.space['3']} 0`,\n selectors: {\n [`${collapsedCell}[data-closed] > &`]: {\n height: 0,\n overflow: 'hidden',\n padding: `0 ${tokens.space['3']}`,\n },\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"AriaTable.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -10,7 +10,7 @@ import { captionRecipe, tableRecipe, tbody, tdRecipe, tfoot, thRecipe, thead, tr
10
10
  import { FULL_COL_SPAN_ATTRIBUTE } from "./AriaTable.constants.js";
11
11
  import { ariaCell, ariaTable, ariaTbody, ariaTfoot, ariaThead, ariaTr, fillerCell, fullColSpanCell } from "./AriaTable.vanilla.css.js";
12
12
  import { Children, forwardRef, isValidElement, useCallback, useId, useRef, useState } from "react";
13
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
14
14
  // components/AriaTable/AriaTable.vanilla.tsx
15
15
  var AriaTableVanilla = forwardRef(({ elevation, hasCollapsibleChildren = false, className, css, style, ...props }, ref) => /* @__PURE__ */ jsx("div", {
16
16
  ref,
@@ -87,7 +87,7 @@ var FullColSpanCell = forwardRef(({ className, ...props }, forwardedRef) => {
87
87
  if (typeof forwardedRef === "function") forwardedRef(node);
88
88
  else if (forwardedRef) forwardedRef.current = node;
89
89
  }, [forwardedRef]);
90
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
90
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
91
91
  "aria-hidden": true,
92
92
  className: cx(ariaCell, fillerCell),
93
93
  style: { height }
@@ -123,7 +123,7 @@ var AriaTrVanilla = forwardRef(({ collapsedContent: collapsedContent$1, expandLa
123
123
  const inlineStyle = useInlineStyle(css, style);
124
124
  const collapsible = !!collapsedContent$1;
125
125
  assertFullColSpanAlone(children, Number(emptyFirstColumn) + Number(collapsible));
126
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
126
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
127
127
  ref,
128
128
  role: "row",
129
129
  className: cx(trRecipe({
@@ -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":";;;;;;;;;;;;;;AAoEA,IAAa,mBAAmB,YAC7B,EAAE,WAAW,yBAAyB,OAAO,WAAW,KAAK,OAAO,GAAG,SAAS,QAC/E,oBAAC,OAAD;CACO;CACL,MAAK;CACL,WAAW,GACT,YAAY,EAAE,UAAU,CAAC,GACzB,WACA,0BAAA,WACA,cACA,SACF;CACA,OAAO,eAAe,KAAK,KAAK;CAChC,GAAI;AACL,CAAA,CAEL;AAEA,iBAAiB,cAAc;AAM/B,IAAa,qBAAqB,YAE9B,EAAE,MAAM,QAAQ,SAAS,UAAU,WAAW,QAAQ,WAAW,KAAK,OAAO,GAAG,SAChF,QAEA,oBAAC,OAAD;CACO;CACL,WAAW,GACT,cAAc;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC,GACpE,SACF;CACA,OAAO,eAAe,KAAK,KAAK;CAChC,GAAI;AACL,CAAA,CAEL;AAEA,mBAAmB,cAAc;AAIjC,IAAM,WAAW,cAAsB,gBAAwB;CAC7D,MAAM,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OAAO,gBAAgB,IAAI,OAAO,WAAW,CAAC;CAE/E,OACE,qBAAAD,UAAA,EAAA,UAAA,CACE,qBAAC,OAAD;EACO;EACL,MAAK;EACL,WAAW,GACT,SAAS;GAAE,aAAa,gBAAgB,SAAS,KAAA,KAAa,KAAA;GAAY;EAAO,CAAC,GAClF,QACA,YACA,SACF;EACA,kBAAgB,eAAe,CAAC,SAAS,KAAK,KAAA;EAC9C,OAAO;EACP,UAAU,UAAU,eAAe,OAAO,OAAO;EACjD,aAAa,UAAU;GACrB,aAAa,KAAK;GAClB,YAAY,KAAK;EACnB;EACA,GAAI;EAhBN,UAAA;GAkBG,qBACE,YACC,oBAAC,QAAD;IAAM,MAAK;IAAO,WAAW,GAAG,SAAS,GAAA,WAAA,YAA4B;GAAI,CAAA,IAEzE,oBAAC,eAAD,CAAgB,CAAA;GAEnB,eACC,oBAAC,eAAD;IAAe,WAAA;IAAuB,SAAS;IAC7C,UAAA,oBAAC,qBAAD;KACE,OAAO;KACC;KACR,UAAU;KACV,gBAAgB,WAAW,SAAS,CAAC,IAAI;IAC1C,CAAA;GACY,CAAA;GAEhB,WACC,UACA;IAAE;IAAM;IAAQ;IAAU;IAAW;GAAY,GACjD,eACA,gBACA;IAAE,KAAK;IAAiB,MAAM;GAAgB,CAChD;EACG;CACJ,CAAA,GAAA,eACC,oBAAC,eAAD;EAAe,WAAA;EAAyB,aAAW,SAAS,KAAK,KAAA;EAC/D,UAAA,oBAAC,eAAD;GACE,IAAI;GACJ,aAAA;GACA,WAAA;GACA,eAAa,SAAS,KAAA,IAAY;GAElC,UAAA,oBAAC,OAAD;IAAK,WAAA;IAAmC,UAAAC;GAAsB,CAAA;EACjD,CAAA;CACF,CAAA,CAEjB,EAAA,CAAA;AAEN,CACF;AAEA,cAAc,cAAc"}
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":";;;;;;;;;;;;;;AAoEA,IAAa,mBAAmB,YAC7B,EAAE,WAAW,yBAAyB,OAAO,WAAW,KAAK,OAAO,GAAG,SAAS,QAC/E,oBAAC,OAAD;CACO;CACL,MAAK;CACL,WAAW,GACT,YAAY,EAAE,UAAU,CAAC,GACzB,WACA,0BAAA,WACA,cACA,SACF;CACA,OAAO,eAAe,KAAK,KAAK;CAChC,GAAI;AACL,CAAA,CAEL;AAEA,iBAAiB,cAAc;AAM/B,IAAa,qBAAqB,YAE9B,EAAE,MAAM,QAAQ,SAAS,UAAU,WAAW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AAA,IAAY;GAElC,UAAA,oBAAC,OAAD;IAAK,WAAA;IAAmC,UAAAC;GAAsB,CAAA;EACjD,CAAA;CACF,CAAA,CAEjB,EAAA,CAAA;AAEN,CACF;AAEA,cAAc,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Avatar/Avatar.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst avatarRoot = style({\n alignItems: 'center',\n justifyContent: 'center',\n verticalAlign: 'middle',\n overflow: 'hidden',\n userSelect: 'none',\n boxSizing: 'border-box',\n display: 'flex',\n flexShrink: 0,\n position: 'relative',\n border: 'none',\n fontFamily: 'inherit',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n padding: '0',\n fontWeight: tokens.fontWeights.medium,\n color: tokens.colors.hiContrast,\n\n selectors: {\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit',\n boxShadow: 'inset 0px 0px 1px rgba(0, 0, 0, 0.12)',\n },\n },\n});\n\nexport const avatarRecipe = recipe({\n base: avatarRoot,\n\n variants: {\n size: {\n '1': {\n width: tokens.sizes['3'],\n height: tokens.sizes['3'],\n },\n '2': {\n width: tokens.sizes['5'],\n height: tokens.sizes['5'],\n },\n '3': {\n width: tokens.sizes['6'],\n height: tokens.sizes['6'],\n },\n '4': {\n width: tokens.sizes['7'],\n height: tokens.sizes['7'],\n },\n '5': {\n width: tokens.sizes['8'],\n height: tokens.sizes['8'],\n },\n '6': {\n width: tokens.sizes['9'],\n height: tokens.sizes['9'],\n },\n },\n variant: {\n gray: {\n backgroundColor: tokens.colors.slate['5'],\n },\n red: {\n backgroundColor: tokens.colors.red['5'],\n },\n purple: {\n backgroundColor: tokens.colors.purple['5'],\n },\n blue: {\n backgroundColor: tokens.colors.blue['5'],\n },\n green: {\n backgroundColor: tokens.colors.green['5'],\n },\n orange: {\n backgroundColor: tokens.colors.orange['5'],\n },\n },\n shape: {\n square: {\n borderRadius: tokens.radii['2'],\n },\n circle: {\n borderRadius: '50%',\n },\n },\n },\n\n defaultVariants: {\n size: '2',\n variant: 'gray',\n shape: 'circle',\n },\n});\n\nexport const avatarImage = style({\n display: 'flex',\n objectFit: 'cover',\n boxSizing: 'border-box',\n height: '100%',\n verticalAlign: 'middle',\n width: '100%',\n});\n\nconst avatarFallbackBase = style({\n textTransform: 'uppercase',\n fontFamily: tokens.fonts.rubik,\n color: tokens.colors.deepBlue['10'],\n});\n\nexport const avatarFallbackRecipe = recipe({\n base: avatarFallbackBase,\n\n variants: {\n size: {\n '1': {\n fontSize: '10px',\n lineHeight: '15px',\n },\n '2': {\n fontSize: tokens.fontSizes['3'],\n },\n '3': {\n fontSize: tokens.fontSizes['6'],\n },\n '4': {\n fontSize: tokens.fontSizes['7'],\n },\n '5': {\n fontSize: tokens.fontSizes['8'],\n },\n '6': {\n fontSize: tokens.fontSizes['9'],\n },\n },\n },\n\n defaultVariants: {\n size: '2',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Avatar.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Avatar/Avatar.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst avatarRoot = style({\n alignItems: 'center',\n justifyContent: 'center',\n verticalAlign: 'middle',\n overflow: 'hidden',\n userSelect: 'none',\n boxSizing: 'border-box',\n display: 'flex',\n flexShrink: 0,\n position: 'relative',\n border: 'none',\n fontFamily: 'inherit',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n padding: '0',\n fontWeight: tokens.fontWeights.medium,\n color: tokens.colors.hiContrast,\n\n selectors: {\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit',\n boxShadow: 'inset 0px 0px 1px rgba(0, 0, 0, 0.12)',\n },\n },\n});\n\nexport const avatarRecipe = recipe({\n base: avatarRoot,\n\n variants: {\n size: {\n '1': {\n width: tokens.sizes['3'],\n height: tokens.sizes['3'],\n },\n '2': {\n width: tokens.sizes['5'],\n height: tokens.sizes['5'],\n },\n '3': {\n width: tokens.sizes['6'],\n height: tokens.sizes['6'],\n },\n '4': {\n width: tokens.sizes['7'],\n height: tokens.sizes['7'],\n },\n '5': {\n width: tokens.sizes['8'],\n height: tokens.sizes['8'],\n },\n '6': {\n width: tokens.sizes['9'],\n height: tokens.sizes['9'],\n },\n },\n variant: {\n gray: {\n backgroundColor: tokens.colors.slate['5'],\n },\n red: {\n backgroundColor: tokens.colors.red['5'],\n },\n purple: {\n backgroundColor: tokens.colors.purple['5'],\n },\n blue: {\n backgroundColor: tokens.colors.blue['5'],\n },\n green: {\n backgroundColor: tokens.colors.green['5'],\n },\n orange: {\n backgroundColor: tokens.colors.orange['5'],\n },\n },\n shape: {\n square: {\n borderRadius: tokens.radii['2'],\n },\n circle: {\n borderRadius: '50%',\n },\n },\n },\n\n defaultVariants: {\n size: '2',\n variant: 'gray',\n shape: 'circle',\n },\n});\n\nexport const avatarImage = style({\n display: 'flex',\n objectFit: 'cover',\n boxSizing: 'border-box',\n height: '100%',\n verticalAlign: 'middle',\n width: '100%',\n});\n\nconst avatarFallbackBase = style({\n textTransform: 'uppercase',\n fontFamily: tokens.fonts.rubik,\n color: tokens.colors.deepBlue['10'],\n});\n\nexport const avatarFallbackRecipe = recipe({\n base: avatarFallbackBase,\n\n variants: {\n size: {\n '1': {\n fontSize: '10px',\n lineHeight: '15px',\n },\n '2': {\n fontSize: tokens.fontSizes['3'],\n },\n '3': {\n fontSize: tokens.fontSizes['6'],\n },\n '4': {\n fontSize: tokens.fontSizes['7'],\n },\n '5': {\n fontSize: tokens.fontSizes['8'],\n },\n '6': {\n fontSize: tokens.fontSizes['9'],\n },\n },\n },\n\n defaultVariants: {\n size: '2',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Avatar.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Badge/Badge.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst baseBadge = style({\n alignItems: 'center',\n appearance: 'none',\n border: 'none',\n boxSizing: 'border-box',\n display: 'inline-flex',\n flexShrink: 0,\n fontFamily: tokens.fonts.rubik,\n fontWeight: tokens.fontWeights.medium,\n justifyContent: 'center',\n lineHeight: '1',\n verticalAlign: 'middle',\n outline: 'none',\n padding: '0',\n textDecoration: 'none',\n userSelect: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n borderRadius: tokens.radii.pill,\n whiteSpace: 'nowrap',\n fontVariantNumeric: 'tabular-nums',\n position: 'relative',\n\n selectors: {\n '&:disabled': {\n backgroundColor: tokens.colors.slate['3'],\n pointerEvents: 'none',\n color: tokens.colors.slate['8'],\n },\n },\n});\n\nconst interactiveBadge = style([\n baseBadge,\n {\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: 'inherit',\n },\n '&:focus-visible': {\n outline: `2px solid ${tokens.colors.primary}`,\n },\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n backgroundColor: tokens.colors.badgeInteractiveBackgroundHover,\n },\n '&:active::before': {\n backgroundColor: tokens.colors.badgeInteractiveBackgroundActive,\n },\n },\n },\n]);\n\nconst colorVariants = {\n gray: {\n backgroundColor: tokens.colors.toneNeutralSurface,\n color: tokens.colors.toneNeutralText,\n border: `1px solid ${tokens.colors.toneNeutralBorder}`,\n },\n red: {\n backgroundColor: tokens.colors.toneDangerSurface,\n color: tokens.colors.toneDangerText,\n border: `1px solid ${tokens.colors.toneDangerBorder}`,\n },\n blue: {\n backgroundColor: tokens.colors.toneInfoSurface,\n color: tokens.colors.toneInfoText,\n border: `1px solid ${tokens.colors.toneInfoBorder}`,\n },\n green: {\n backgroundColor: tokens.colors.toneSuccessSurface,\n color: tokens.colors.toneSuccessText,\n border: `1px solid ${tokens.colors.toneSuccessBorder}`,\n },\n neon: {\n backgroundColor: tokens.colors.neon['3'],\n color: tokens.colors.neon['11'],\n border: `1px solid ${tokens.colors.neon['7']}`,\n },\n orange: {\n backgroundColor: tokens.colors.toneWarningSurface,\n color: tokens.colors.toneWarningText,\n border: `1px solid ${tokens.colors.toneWarningBorder}`,\n },\n purple: {\n backgroundColor: tokens.colors.purple['3'],\n color: tokens.colors.purple['11'],\n border: `1px solid ${tokens.colors.purple['7']}`,\n },\n};\n\nconst alphaBgVariants = [\n {\n variants: { alphaBg: true, variant: 'gray' },\n style: { backgroundColor: tokens.colors.gray.A3 },\n },\n { variants: { alphaBg: true, variant: 'red' }, style: { backgroundColor: tokens.colors.red.A3 } },\n {\n variants: { alphaBg: true, variant: 'blue' },\n style: { backgroundColor: tokens.colors.blue.A3 },\n },\n {\n variants: { alphaBg: true, variant: 'green' },\n style: { backgroundColor: tokens.colors.green.A3 },\n },\n {\n variants: { alphaBg: true, variant: 'neon' },\n style: { backgroundColor: tokens.colors.neon.A3 },\n },\n {\n variants: { alphaBg: true, variant: 'orange' },\n style: { backgroundColor: tokens.colors.orange.A3 },\n },\n {\n variants: { alphaBg: true, variant: 'purple' },\n style: { backgroundColor: tokens.colors.purple.A3 },\n },\n] as const;\n\nexport const badgeRecipe = recipe({\n base: baseBadge,\n\n variants: {\n size: {\n small: {\n height: tokens.sizes['4'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n fontSize: tokens.fontSizes['2'],\n },\n large: {\n height: tokens.sizes['5'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n fontSize: tokens.fontSizes['3'],\n },\n },\n variant: colorVariants,\n alphaBg: {\n true: {},\n },\n borderless: {\n true: {\n border: 'none',\n },\n },\n },\n\n compoundVariants: [...alphaBgVariants],\n\n defaultVariants: {\n size: 'small',\n variant: 'gray',\n borderless: false,\n },\n});\n\nexport const interactiveBadgeRecipe = recipe({\n base: interactiveBadge,\n\n variants: {\n size: {\n small: {\n height: tokens.sizes['4'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n fontSize: tokens.fontSizes['2'],\n },\n large: {\n height: tokens.sizes['5'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n fontSize: tokens.fontSizes['3'],\n },\n },\n variant: colorVariants,\n alphaBg: {\n true: {},\n },\n borderless: {\n true: {\n border: 'none',\n },\n },\n },\n\n compoundVariants: [...alphaBgVariants],\n\n defaultVariants: {\n size: 'small',\n variant: 'gray',\n borderless: false,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Badge.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Badge/Badge.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst baseBadge = style({\n alignItems: 'center',\n appearance: 'none',\n border: 'none',\n boxSizing: 'border-box',\n display: 'inline-flex',\n flexShrink: 0,\n fontFamily: tokens.fonts.rubik,\n fontWeight: tokens.fontWeights.medium,\n justifyContent: 'center',\n lineHeight: '1',\n verticalAlign: 'middle',\n outline: 'none',\n padding: '0',\n textDecoration: 'none',\n userSelect: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n borderRadius: tokens.radii.pill,\n whiteSpace: 'nowrap',\n fontVariantNumeric: 'tabular-nums',\n position: 'relative',\n\n selectors: {\n '&:disabled': {\n backgroundColor: tokens.colors.slate['3'],\n pointerEvents: 'none',\n color: tokens.colors.slate['8'],\n },\n },\n});\n\nconst interactiveBadge = style([\n baseBadge,\n {\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: 'inherit',\n },\n '&:focus-visible': {\n outline: `2px solid ${tokens.colors.primary}`,\n },\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n backgroundColor: tokens.colors.badgeInteractiveBackgroundHover,\n },\n '&:active::before': {\n backgroundColor: tokens.colors.badgeInteractiveBackgroundActive,\n },\n },\n },\n]);\n\nconst colorVariants = {\n gray: {\n backgroundColor: tokens.colors.toneNeutralSurface,\n color: tokens.colors.toneNeutralText,\n border: `1px solid ${tokens.colors.toneNeutralBorder}`,\n },\n red: {\n backgroundColor: tokens.colors.toneDangerSurface,\n color: tokens.colors.toneDangerText,\n border: `1px solid ${tokens.colors.toneDangerBorder}`,\n },\n blue: {\n backgroundColor: tokens.colors.toneInfoSurface,\n color: tokens.colors.toneInfoText,\n border: `1px solid ${tokens.colors.toneInfoBorder}`,\n },\n green: {\n backgroundColor: tokens.colors.toneSuccessSurface,\n color: tokens.colors.toneSuccessText,\n border: `1px solid ${tokens.colors.toneSuccessBorder}`,\n },\n neon: {\n backgroundColor: tokens.colors.neon['3'],\n color: tokens.colors.neon['11'],\n border: `1px solid ${tokens.colors.neon['7']}`,\n },\n orange: {\n backgroundColor: tokens.colors.toneWarningSurface,\n color: tokens.colors.toneWarningText,\n border: `1px solid ${tokens.colors.toneWarningBorder}`,\n },\n purple: {\n backgroundColor: tokens.colors.purple['3'],\n color: tokens.colors.purple['11'],\n border: `1px solid ${tokens.colors.purple['7']}`,\n },\n};\n\nconst alphaBgVariants = [\n {\n variants: { alphaBg: true, variant: 'gray' },\n style: { backgroundColor: tokens.colors.gray.A3 },\n },\n { variants: { alphaBg: true, variant: 'red' }, style: { backgroundColor: tokens.colors.red.A3 } },\n {\n variants: { alphaBg: true, variant: 'blue' },\n style: { backgroundColor: tokens.colors.blue.A3 },\n },\n {\n variants: { alphaBg: true, variant: 'green' },\n style: { backgroundColor: tokens.colors.green.A3 },\n },\n {\n variants: { alphaBg: true, variant: 'neon' },\n style: { backgroundColor: tokens.colors.neon.A3 },\n },\n {\n variants: { alphaBg: true, variant: 'orange' },\n style: { backgroundColor: tokens.colors.orange.A3 },\n },\n {\n variants: { alphaBg: true, variant: 'purple' },\n style: { backgroundColor: tokens.colors.purple.A3 },\n },\n] as const;\n\nexport const badgeRecipe = recipe({\n base: baseBadge,\n\n variants: {\n size: {\n small: {\n height: tokens.sizes['4'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n fontSize: tokens.fontSizes['2'],\n },\n large: {\n height: tokens.sizes['5'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n fontSize: tokens.fontSizes['3'],\n },\n },\n variant: colorVariants,\n alphaBg: {\n true: {},\n },\n borderless: {\n true: {\n border: 'none',\n },\n },\n },\n\n compoundVariants: [...alphaBgVariants],\n\n defaultVariants: {\n size: 'small',\n variant: 'gray',\n borderless: false,\n },\n});\n\nexport const interactiveBadgeRecipe = recipe({\n base: interactiveBadge,\n\n variants: {\n size: {\n small: {\n height: tokens.sizes['4'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n fontSize: tokens.fontSizes['2'],\n },\n large: {\n height: tokens.sizes['5'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n fontSize: tokens.fontSizes['3'],\n },\n },\n variant: colorVariants,\n alphaBg: {\n true: {},\n },\n borderless: {\n true: {\n border: 'none',\n },\n },\n },\n\n compoundVariants: [...alphaBgVariants],\n\n defaultVariants: {\n size: 'small',\n variant: 'gray',\n borderless: false,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Badge.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Blockquote.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Blockquote/Blockquote.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Base blockquote styles (inherits from Text component with blockquote-specific overrides)\nconst blockquoteBase = style({\n lineHeight: '1',\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n display: 'inline-block',\n borderLeft: `2px solid ${tokens.colors.textDefault}`,\n padding: `${tokens.space['2']} ${tokens.space['3']}`,\n});\n\nexport const blockquoteRecipe = recipe({\n base: blockquoteBase,\n\n variants: {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n transform: transformVariants,\n noWrap: noWrapVariants,\n },\n\n defaultVariants: {\n size: '3',\n variant: 'default',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Blockquote.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Blockquote.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Blockquote/Blockquote.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Base blockquote styles (inherits from Text component with blockquote-specific overrides)\nconst blockquoteBase = style({\n lineHeight: '1',\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n display: 'inline-block',\n borderLeft: `2px solid ${tokens.colors.textDefault}`,\n padding: `${tokens.space['2']} ${tokens.space['3']}`,\n});\n\nexport const blockquoteRecipe = recipe({\n base: blockquoteBase,\n\n variants: {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n transform: transformVariants,\n noWrap: noWrapVariants,\n },\n\n defaultVariants: {\n size: '3',\n variant: 'default',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Blockquote.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Box.vanilla.css.cjs","names":[],"sources":["../../../components/Box/Box.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nexport const box = style({\n boxSizing: 'border-box',\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Box.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Box.vanilla.css.js","names":[],"sources":["../../../components/Box/Box.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nexport const box = style({\n boxSizing: 'border-box',\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Box.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Bubble/Bubble.vanilla.css.ts"],"sourcesContent":["import { keyframes, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst bip = keyframes({\n '0%': {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n opacity: 1,\n },\n '100%': {\n top: -8,\n right: -8,\n bottom: -8,\n left: -8,\n opacity: 0,\n },\n});\n\nconst baseBubble = style({\n display: 'inline-block',\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n backgroundColor: tokens.colors.red['8'],\n borderRadius: '50%',\n position: 'relative',\n\n selectors: {\n '&::before': {\n animation: `${bip} 1s ease infinite`,\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n boxShadow: 'inset 0 0 0 1px rgba(255,255,255,.5)',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n backgroundColor: 'rgba(255,255,255,.1)',\n borderRadius: '50%',\n pointerEvents: 'none',\n },\n },\n});\n\nexport const bubbleRecipe = recipe({\n base: baseBubble,\n\n variants: {\n variant: {\n red: {\n backgroundColor: tokens.colors.red['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.red['8'] },\n },\n },\n green: {\n backgroundColor: tokens.colors.green['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.green['8'] },\n },\n },\n orange: {\n backgroundColor: tokens.colors.orange['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.orange['8'] },\n },\n },\n blue: {\n backgroundColor: tokens.colors.blue['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.blue['8'] },\n },\n },\n yellow: {\n backgroundColor: tokens.colors.neon['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.neon['8'] },\n },\n },\n purple: {\n backgroundColor: tokens.colors.purple['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.purple['8'] },\n },\n },\n gray: {\n backgroundColor: tokens.colors.slate['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.slate['8'] },\n },\n },\n },\n size: {\n 'x-small': {\n width: tokens.sizes['1'],\n height: tokens.sizes['1'],\n },\n small: {\n width: tokens.sizes['2'],\n height: tokens.sizes['2'],\n },\n medium: {\n width: tokens.sizes['3'],\n height: tokens.sizes['3'],\n },\n large: {\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n },\n 'x-large': {\n width: tokens.sizes['5'],\n height: tokens.sizes['5'],\n },\n },\n noAnimation: {\n true: {\n selectors: {\n '&::before': { content: 'none' },\n },\n },\n },\n },\n\n defaultVariants: {\n size: 'small',\n noAnimation: false,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Bubble.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Bubble/Bubble.vanilla.css.ts"],"sourcesContent":["import { keyframes, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst bip = keyframes({\n '0%': {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n opacity: 1,\n },\n '100%': {\n top: -8,\n right: -8,\n bottom: -8,\n left: -8,\n opacity: 0,\n },\n});\n\nconst baseBubble = style({\n display: 'inline-block',\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n backgroundColor: tokens.colors.red['8'],\n borderRadius: '50%',\n position: 'relative',\n\n selectors: {\n '&::before': {\n animation: `${bip} 1s ease infinite`,\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n boxShadow: 'inset 0 0 0 1px rgba(255,255,255,.5)',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n backgroundColor: 'rgba(255,255,255,.1)',\n borderRadius: '50%',\n pointerEvents: 'none',\n },\n },\n});\n\nexport const bubbleRecipe = recipe({\n base: baseBubble,\n\n variants: {\n variant: {\n red: {\n backgroundColor: tokens.colors.red['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.red['8'] },\n },\n },\n green: {\n backgroundColor: tokens.colors.green['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.green['8'] },\n },\n },\n orange: {\n backgroundColor: tokens.colors.orange['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.orange['8'] },\n },\n },\n blue: {\n backgroundColor: tokens.colors.blue['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.blue['8'] },\n },\n },\n yellow: {\n backgroundColor: tokens.colors.neon['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.neon['8'] },\n },\n },\n purple: {\n backgroundColor: tokens.colors.purple['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.purple['8'] },\n },\n },\n gray: {\n backgroundColor: tokens.colors.slate['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.slate['8'] },\n },\n },\n },\n size: {\n 'x-small': {\n width: tokens.sizes['1'],\n height: tokens.sizes['1'],\n },\n small: {\n width: tokens.sizes['2'],\n height: tokens.sizes['2'],\n },\n medium: {\n width: tokens.sizes['3'],\n height: tokens.sizes['3'],\n },\n large: {\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n },\n 'x-large': {\n width: tokens.sizes['5'],\n height: tokens.sizes['5'],\n },\n },\n noAnimation: {\n true: {\n selectors: {\n '&::before': { content: 'none' },\n },\n },\n },\n },\n\n defaultVariants: {\n size: 'small',\n noAnimation: false,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Bubble.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Button/Button.vanilla.css.ts"],"sourcesContent":["import { keyframes, style } from '@vanilla-extract/css';\nimport { recipe, RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\n// Background size constants for waiting animation\nconst BG_SIZES = {\n small: tokens.sizes['8'],\n medium: tokens.sizes['9'],\n large: tokens.sizes['10'],\n};\n\n// Keyframe animation for waiting state\nconst backgroundSlide = keyframes({\n '100%': { transform: `translateX(${tokens.sizes['9']})` },\n});\n\nconst backgroundSlideSmall = keyframes({\n '100%': { transform: `translateX(${tokens.sizes['8']})` },\n});\n\nconst backgroundSlideLarge = keyframes({\n '100%': { transform: `translateX(${tokens.sizes['10']})` },\n});\n\n// Base button styles\nconst baseButton = style({\n // Reset\n appearance: 'none',\n all: 'unset',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n // Layout\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n position: 'relative',\n overflow: 'hidden',\n\n // Typography\n fontFamily: tokens.fonts.rubik,\n fontWeight: tokens.fontWeights.medium,\n fontVariantNumeric: 'tabular-nums',\n lineHeight: '1',\n\n // Pseudo-elements for hover/active effects\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.5,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.focusOutline}`,\n },\n '&:focus-visible::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:focus-visible::after': {\n opacity: 0.15,\n },\n '&:active::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:hover::after': {\n opacity: 0.05,\n },\n },\n },\n },\n});\n\nexport const buttonRecipe = recipe({\n base: baseButton,\n\n variants: {\n size: {\n small: {\n borderRadius: tokens.radii.button,\n height: tokens.sizes['5'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n fontSize: tokens.fontSizes['1'],\n lineHeight: tokens.sizes['5'],\n },\n medium: {\n borderRadius: tokens.radii.button,\n height: tokens.sizes['6'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n fontSize: tokens.fontSizes['3'],\n lineHeight: tokens.sizes['6'],\n },\n large: {\n borderRadius: tokens.radii.button,\n height: tokens.sizes['7'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n fontSize: tokens.fontSizes['3'],\n lineHeight: tokens.sizes['7'],\n },\n },\n variant: {\n primary: {\n backgroundColor: tokens.colors.primary,\n color: tokens.colors.buttonPrimaryText,\n selectors: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.buttonPrimaryFocusBorder}`,\n },\n },\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover::after': {\n backgroundColor: tokens.colors.primary,\n },\n },\n },\n },\n },\n secondary: {\n backgroundColor: tokens.colors.buttonSecondaryBg,\n color: tokens.colors.buttonSecondaryText,\n boxShadow: `inset 0 0 0 2px ${tokens.colors.buttonSecondaryBorder}`,\n selectors: {\n '&:active': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.buttonSecondaryBorder}`,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.buttonSecondaryFocusBorder}`,\n },\n },\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover::after': {\n backgroundColor: tokens.colors.primary,\n },\n },\n },\n },\n },\n red: {\n backgroundColor: tokens.colors.buttonRedBg,\n color: tokens.colors.buttonRedText,\n selectors: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.buttonRedFocusBg}`,\n },\n },\n },\n },\n state: {\n active: {\n backgroundColor: tokens.colors.deepBlue['5'],\n color: tokens.colors.deepBlue['11'],\n selectors: {\n '&:active': {\n backgroundColor: tokens.colors.deepBlue['5'],\n },\n },\n },\n waiting: {\n backgroundColor: tokens.colors.deepBlue['3'],\n boxShadow: `inset 0 0 0 1px ${tokens.colors.deepBlue['4']}`,\n color: 'transparent',\n overflow: 'hidden',\n pointerEvents: 'none',\n selectors: {\n '&::after': {\n left: '-100%',\n width: '200%',\n backgroundSize: BG_SIZES.medium,\n backgroundImage: `linear-gradient(\n -45deg,\n transparent 33%,\n ${tokens.colors.deepBlue['4']} 33%,\n ${tokens.colors.deepBlue['4']} 66%,\n transparent 66%\n )`,\n animation: `${backgroundSlide} 500ms linear infinite`,\n },\n },\n },\n },\n ghost: {\n true: {\n boxShadow: 'none',\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n boxShadow: 'none',\n },\n },\n },\n },\n },\n },\n rounded: {\n true: {\n borderRadius: tokens.radii.pill,\n },\n },\n },\n\n compoundVariants: [\n // Primary + Ghost\n {\n variants: { variant: 'primary', ghost: true },\n style: {\n color: tokens.colors.primary,\n backgroundColor: 'transparent',\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n color: tokens.colors.buttonPrimaryGhostHoverText,\n backgroundColor: 'transparent',\n },\n },\n },\n },\n },\n },\n // Primary + Active\n {\n variants: { variant: 'primary', state: 'active' },\n style: {\n backgroundColor: tokens.colors.buttonPrimaryFocusBg,\n color: tokens.colors.buttonPrimaryText,\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n // Secondary + Waiting\n {\n variants: { variant: 'secondary', state: 'waiting' },\n style: {\n backgroundColor: tokens.colors.deepBlue['3'],\n color: 'transparent',\n },\n },\n // Secondary + Ghost\n {\n variants: { variant: 'secondary', ghost: true },\n style: {\n backgroundColor: 'transparent',\n color: tokens.colors.buttonSecondaryText,\n boxShadow: 'none',\n },\n },\n // Red + Waiting\n {\n variants: { variant: 'red', state: 'waiting' },\n style: {\n backgroundColor: tokens.colors.deepBlue['3'],\n color: 'transparent',\n },\n },\n // Red + Active\n {\n variants: { variant: 'red', state: 'active' },\n style: {\n backgroundColor: tokens.colors.buttonRedFocusBg,\n color: tokens.colors.buttonRedText,\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n // Red + Ghost\n {\n variants: { variant: 'red', ghost: true },\n style: {\n color: tokens.colors.buttonRedBg,\n backgroundColor: 'transparent',\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n color: tokens.colors.buttonRedHoverText,\n backgroundColor: 'transparent',\n },\n },\n },\n },\n },\n },\n // Small + Waiting (specific animation)\n {\n variants: { size: 'small', state: 'waiting' },\n style: {\n selectors: {\n '&::after': {\n backgroundSize: BG_SIZES.small,\n animation: `${backgroundSlideSmall} 500ms linear infinite`,\n },\n },\n },\n },\n // Large + Waiting (specific animation)\n {\n variants: { size: 'large', state: 'waiting' },\n style: {\n selectors: {\n '&::after': {\n backgroundSize: BG_SIZES.large,\n animation: `${backgroundSlideLarge} 500ms linear infinite`,\n },\n },\n },\n },\n ],\n\n defaultVariants: {\n size: 'medium',\n variant: 'primary',\n },\n});\n\nexport type ButtonRecipeVariants = RecipeVariants<typeof buttonRecipe>;\n"],"mappings":""}
1
+ {"version":3,"file":"Button.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Button/Button.vanilla.css.ts"],"sourcesContent":["import { keyframes, style } from '@vanilla-extract/css';\nimport { recipe, RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\n// Background size constants for waiting animation\nconst BG_SIZES = {\n small: tokens.sizes['8'],\n medium: tokens.sizes['9'],\n large: tokens.sizes['10'],\n};\n\n// Keyframe animation for waiting state\nconst backgroundSlide = keyframes({\n '100%': { transform: `translateX(${tokens.sizes['9']})` },\n});\n\nconst backgroundSlideSmall = keyframes({\n '100%': { transform: `translateX(${tokens.sizes['8']})` },\n});\n\nconst backgroundSlideLarge = keyframes({\n '100%': { transform: `translateX(${tokens.sizes['10']})` },\n});\n\n// Base button styles\nconst baseButton = style({\n // Reset\n appearance: 'none',\n all: 'unset',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n // Layout\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n position: 'relative',\n overflow: 'hidden',\n\n // Typography\n fontFamily: tokens.fonts.rubik,\n fontWeight: tokens.fontWeights.medium,\n fontVariantNumeric: 'tabular-nums',\n lineHeight: '1',\n\n // Pseudo-elements for hover/active effects\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.5,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.focusOutline}`,\n },\n '&:focus-visible::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:focus-visible::after': {\n opacity: 0.15,\n },\n '&:active::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:hover::after': {\n opacity: 0.05,\n },\n },\n },\n },\n});\n\nexport const buttonRecipe = recipe({\n base: baseButton,\n\n variants: {\n size: {\n small: {\n borderRadius: tokens.radii.button,\n height: tokens.sizes['5'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n fontSize: tokens.fontSizes['1'],\n lineHeight: tokens.sizes['5'],\n },\n medium: {\n borderRadius: tokens.radii.button,\n height: tokens.sizes['6'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n fontSize: tokens.fontSizes['3'],\n lineHeight: tokens.sizes['6'],\n },\n large: {\n borderRadius: tokens.radii.button,\n height: tokens.sizes['7'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n fontSize: tokens.fontSizes['3'],\n lineHeight: tokens.sizes['7'],\n },\n },\n variant: {\n primary: {\n backgroundColor: tokens.colors.primary,\n color: tokens.colors.buttonPrimaryText,\n selectors: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.buttonPrimaryFocusBorder}`,\n },\n },\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover::after': {\n backgroundColor: tokens.colors.primary,\n },\n },\n },\n },\n },\n secondary: {\n backgroundColor: tokens.colors.buttonSecondaryBg,\n color: tokens.colors.buttonSecondaryText,\n boxShadow: `inset 0 0 0 2px ${tokens.colors.buttonSecondaryBorder}`,\n selectors: {\n '&:active': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.buttonSecondaryBorder}`,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.buttonSecondaryFocusBorder}`,\n },\n },\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover::after': {\n backgroundColor: tokens.colors.primary,\n },\n },\n },\n },\n },\n red: {\n backgroundColor: tokens.colors.buttonRedBg,\n color: tokens.colors.buttonRedText,\n selectors: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.buttonRedFocusBg}`,\n },\n },\n },\n },\n state: {\n active: {\n backgroundColor: tokens.colors.deepBlue['5'],\n color: tokens.colors.deepBlue['11'],\n selectors: {\n '&:active': {\n backgroundColor: tokens.colors.deepBlue['5'],\n },\n },\n },\n waiting: {\n backgroundColor: tokens.colors.deepBlue['3'],\n boxShadow: `inset 0 0 0 1px ${tokens.colors.deepBlue['4']}`,\n color: 'transparent',\n overflow: 'hidden',\n pointerEvents: 'none',\n selectors: {\n '&::after': {\n left: '-100%',\n width: '200%',\n backgroundSize: BG_SIZES.medium,\n backgroundImage: `linear-gradient(\n -45deg,\n transparent 33%,\n ${tokens.colors.deepBlue['4']} 33%,\n ${tokens.colors.deepBlue['4']} 66%,\n transparent 66%\n )`,\n animation: `${backgroundSlide} 500ms linear infinite`,\n },\n },\n },\n },\n ghost: {\n true: {\n boxShadow: 'none',\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n boxShadow: 'none',\n },\n },\n },\n },\n },\n },\n rounded: {\n true: {\n borderRadius: tokens.radii.pill,\n },\n },\n },\n\n compoundVariants: [\n // Primary + Ghost\n {\n variants: { variant: 'primary', ghost: true },\n style: {\n color: tokens.colors.primary,\n backgroundColor: 'transparent',\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n color: tokens.colors.buttonPrimaryGhostHoverText,\n backgroundColor: 'transparent',\n },\n },\n },\n },\n },\n },\n // Primary + Active\n {\n variants: { variant: 'primary', state: 'active' },\n style: {\n backgroundColor: tokens.colors.buttonPrimaryFocusBg,\n color: tokens.colors.buttonPrimaryText,\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n // Secondary + Waiting\n {\n variants: { variant: 'secondary', state: 'waiting' },\n style: {\n backgroundColor: tokens.colors.deepBlue['3'],\n color: 'transparent',\n },\n },\n // Secondary + Ghost\n {\n variants: { variant: 'secondary', ghost: true },\n style: {\n backgroundColor: 'transparent',\n color: tokens.colors.buttonSecondaryText,\n boxShadow: 'none',\n },\n },\n // Red + Waiting\n {\n variants: { variant: 'red', state: 'waiting' },\n style: {\n backgroundColor: tokens.colors.deepBlue['3'],\n color: 'transparent',\n },\n },\n // Red + Active\n {\n variants: { variant: 'red', state: 'active' },\n style: {\n backgroundColor: tokens.colors.buttonRedFocusBg,\n color: tokens.colors.buttonRedText,\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n // Red + Ghost\n {\n variants: { variant: 'red', ghost: true },\n style: {\n color: tokens.colors.buttonRedBg,\n backgroundColor: 'transparent',\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n color: tokens.colors.buttonRedHoverText,\n backgroundColor: 'transparent',\n },\n },\n },\n },\n },\n },\n // Small + Waiting (specific animation)\n {\n variants: { size: 'small', state: 'waiting' },\n style: {\n selectors: {\n '&::after': {\n backgroundSize: BG_SIZES.small,\n animation: `${backgroundSlideSmall} 500ms linear infinite`,\n },\n },\n },\n },\n // Large + Waiting (specific animation)\n {\n variants: { size: 'large', state: 'waiting' },\n style: {\n selectors: {\n '&::after': {\n backgroundSize: BG_SIZES.large,\n animation: `${backgroundSlideLarge} 500ms linear infinite`,\n },\n },\n },\n },\n ],\n\n defaultVariants: {\n size: 'medium',\n variant: 'primary',\n },\n});\n\nexport type ButtonRecipeVariants = RecipeVariants<typeof buttonRecipe>;\n"],"mappings":""}
1
+ {"version":3,"file":"Button.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSwitch.vanilla.css.cjs","names":[],"sources":["../../../components/ButtonSwitch/ButtonSwitch.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { tokens } from '../../styles/tokens.css';\n\nexport const buttonSwitchContainer = style({\n display: 'inline-flex',\n backgroundColor: tokens.colors.buttonSwitchContainerBg,\n borderRadius: tokens.radii['3'],\n padding: '3px',\n gap: tokens.space['1'],\n});\n\nexport const buttonSwitchItem = style({\n display: 'inline-flex',\n backgroundColor: tokens.colors.buttonSwitchOffBg,\n color: tokens.colors.buttonSwitchOffColor,\n padding: tokens.space['1'],\n width: tokens.sizes['10'],\n justifyContent: 'center',\n fontWeight: 600,\n border: 'none',\n position: 'relative',\n\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: tokens.radii['3'],\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: tokens.radii['3'],\n },\n '&:focus-visible': {\n borderRadius: tokens.radii['3'],\n },\n '&:focus-visible::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:focus-visible::after': {\n opacity: 0.15,\n },\n '&[data-state=on]': {\n backgroundColor: tokens.colors.buttonSwitchActiveBg,\n color: tokens.colors.buttonSwitchActiveColor,\n borderRadius: tokens.radii['3'],\n },\n },\n\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:hover::after': {\n opacity: 0.05,\n },\n },\n },\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"ButtonSwitch.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSwitch.vanilla.css.js","names":[],"sources":["../../../components/ButtonSwitch/ButtonSwitch.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { tokens } from '../../styles/tokens.css';\n\nexport const buttonSwitchContainer = style({\n display: 'inline-flex',\n backgroundColor: tokens.colors.buttonSwitchContainerBg,\n borderRadius: tokens.radii['3'],\n padding: '3px',\n gap: tokens.space['1'],\n});\n\nexport const buttonSwitchItem = style({\n display: 'inline-flex',\n backgroundColor: tokens.colors.buttonSwitchOffBg,\n color: tokens.colors.buttonSwitchOffColor,\n padding: tokens.space['1'],\n width: tokens.sizes['10'],\n justifyContent: 'center',\n fontWeight: 600,\n border: 'none',\n position: 'relative',\n\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: tokens.radii['3'],\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: tokens.radii['3'],\n },\n '&:focus-visible': {\n borderRadius: tokens.radii['3'],\n },\n '&:focus-visible::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:focus-visible::after': {\n opacity: 0.15,\n },\n '&[data-state=on]': {\n backgroundColor: tokens.colors.buttonSwitchActiveBg,\n color: tokens.colors.buttonSwitchActiveColor,\n borderRadius: tokens.radii['3'],\n },\n },\n\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:hover::after': {\n opacity: 0.05,\n },\n },\n },\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"ButtonSwitch.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Card/Card.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { breakpoints } from '../../styles/breakpoints.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Elevation variants matching Elevation component\nconst elevationVariants = {\n 0: {\n boxShadow: 'none',\n },\n 1: {\n backgroundColor: tokens.colors['01dp'],\n boxShadow:\n '0 1px 5px 0 hsla(0, 0%, 0%, 0.2), 0 3px 1px -2px hsla(0, 0%, 0%, 0.12), 0 2px 2px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 2: {\n backgroundColor: tokens.colors['02dp'],\n boxShadow:\n '0 2px 4px -1px hsla(0, 0%, 0%, 0.2), 0 1px 10px 0 hsla(0, 0%, 0%, 0.12), 0 4px 5px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 3: {\n backgroundColor: tokens.colors['03dp'],\n boxShadow:\n '0 3px 5px -1px hsla(0, 0%, 0%, 0.2), 0 1px 18px 0 hsla(0, 0%, 0%, 0.12), 0 6px 10px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 4: {\n backgroundColor: tokens.colors['04dp'],\n boxShadow:\n '0 7px 8px -4px hsla(0, 0%, 0%, 0.2), 0 5px 22px 4px hsla(0, 0%, 0%, 0.12), 0 12px 17px 2px hsla(0, 0%, 0%, 0.14)',\n },\n 5: {\n backgroundColor: tokens.colors['05dp'],\n boxShadow:\n '0 11px 15px -7px hsla(0, 0%, 0%, 0.2), 0 9px 46px 8px hsla(0, 0%, 0%, 0.12), 0 24px 38px 3px hsla(0, 0%, 0%, 0.14)',\n },\n} as const;\n\n// Base card styles\nconst cardBase = style({\n appearance: 'none',\n border: 'none',\n boxSizing: 'border-box',\n font: 'inherit',\n lineHeight: '1',\n outline: 'none',\n padding: tokens.space['3'],\n textAlign: 'inherit',\n verticalAlign: 'middle',\n WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',\n backgroundColor: tokens.colors.cardBackground,\n display: 'block',\n textDecoration: 'none',\n color: 'inherit',\n borderRadius: tokens.radii['3'],\n position: 'relative',\n\n '::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: tokens.radii['3'],\n pointerEvents: 'none',\n },\n});\n\nexport const cardRecipe = recipe({\n base: cardBase,\n\n variants: {\n elevation: elevationVariants,\n variant: {\n inner: {\n backgroundColor: tokens.colors.innerCardBgColor,\n },\n ghost: {\n backgroundColor: 'transparent',\n boxShadow: 'none',\n },\n },\n active: {\n true: {\n '::before': {\n outline: `1px solid ${tokens.colors.cardActiveBorder}`,\n backgroundColor: tokens.colors.cardActiveBackground,\n },\n },\n },\n },\n\n defaultVariants: {\n elevation: 1,\n },\n});\n\n// Interactive card styles (for button element)\nconst interactiveCardBase = style([\n cardBase,\n {\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n outline: `1px solid ${tokens.colors.cardHoverBorder}`,\n backgroundColor: tokens.colors.cardHoverBackground,\n },\n },\n },\n },\n selectors: {\n '&:focus': {\n outline: `2px solid ${tokens.colors.primary}`,\n },\n '&:active::before': {\n outline: `1px solid ${tokens.colors.cardActiveBorder}`,\n backgroundColor: tokens.colors.cardActiveBackground,\n },\n },\n },\n]);\n\nexport const interactiveCardRecipe = recipe({\n base: interactiveCardBase,\n\n variants: {\n elevation: elevationVariants,\n variant: {\n inner: {\n backgroundColor: tokens.colors.innerCardBgColor,\n },\n ghost: {\n backgroundColor: 'transparent',\n boxShadow: 'none',\n },\n },\n active: {\n true: {\n '::before': {\n outline: `1px solid ${tokens.colors.cardActiveBorder}`,\n backgroundColor: tokens.colors.cardActiveBackground,\n },\n },\n },\n },\n\n defaultVariants: {\n elevation: 1,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Card.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Card/Card.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { breakpoints } from '../../styles/breakpoints.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Elevation variants matching Elevation component\nconst elevationVariants = {\n 0: {\n boxShadow: 'none',\n },\n 1: {\n backgroundColor: tokens.colors['01dp'],\n boxShadow:\n '0 1px 5px 0 hsla(0, 0%, 0%, 0.2), 0 3px 1px -2px hsla(0, 0%, 0%, 0.12), 0 2px 2px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 2: {\n backgroundColor: tokens.colors['02dp'],\n boxShadow:\n '0 2px 4px -1px hsla(0, 0%, 0%, 0.2), 0 1px 10px 0 hsla(0, 0%, 0%, 0.12), 0 4px 5px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 3: {\n backgroundColor: tokens.colors['03dp'],\n boxShadow:\n '0 3px 5px -1px hsla(0, 0%, 0%, 0.2), 0 1px 18px 0 hsla(0, 0%, 0%, 0.12), 0 6px 10px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 4: {\n backgroundColor: tokens.colors['04dp'],\n boxShadow:\n '0 7px 8px -4px hsla(0, 0%, 0%, 0.2), 0 5px 22px 4px hsla(0, 0%, 0%, 0.12), 0 12px 17px 2px hsla(0, 0%, 0%, 0.14)',\n },\n 5: {\n backgroundColor: tokens.colors['05dp'],\n boxShadow:\n '0 11px 15px -7px hsla(0, 0%, 0%, 0.2), 0 9px 46px 8px hsla(0, 0%, 0%, 0.12), 0 24px 38px 3px hsla(0, 0%, 0%, 0.14)',\n },\n} as const;\n\n// Base card styles\nconst cardBase = style({\n appearance: 'none',\n border: 'none',\n boxSizing: 'border-box',\n font: 'inherit',\n lineHeight: '1',\n outline: 'none',\n padding: tokens.space['3'],\n textAlign: 'inherit',\n verticalAlign: 'middle',\n WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',\n backgroundColor: tokens.colors.cardBackground,\n display: 'block',\n textDecoration: 'none',\n color: 'inherit',\n borderRadius: tokens.radii['3'],\n position: 'relative',\n\n '::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: tokens.radii['3'],\n pointerEvents: 'none',\n },\n});\n\nexport const cardRecipe = recipe({\n base: cardBase,\n\n variants: {\n elevation: elevationVariants,\n variant: {\n inner: {\n backgroundColor: tokens.colors.innerCardBgColor,\n },\n ghost: {\n backgroundColor: 'transparent',\n boxShadow: 'none',\n },\n },\n active: {\n true: {\n '::before': {\n outline: `1px solid ${tokens.colors.cardActiveBorder}`,\n backgroundColor: tokens.colors.cardActiveBackground,\n },\n },\n },\n },\n\n defaultVariants: {\n elevation: 1,\n },\n});\n\n// Interactive card styles (for button element)\nconst interactiveCardBase = style([\n cardBase,\n {\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n outline: `1px solid ${tokens.colors.cardHoverBorder}`,\n backgroundColor: tokens.colors.cardHoverBackground,\n },\n },\n },\n },\n selectors: {\n '&:focus': {\n outline: `2px solid ${tokens.colors.primary}`,\n },\n '&:active::before': {\n outline: `1px solid ${tokens.colors.cardActiveBorder}`,\n backgroundColor: tokens.colors.cardActiveBackground,\n },\n },\n },\n]);\n\nexport const interactiveCardRecipe = recipe({\n base: interactiveCardBase,\n\n variants: {\n elevation: elevationVariants,\n variant: {\n inner: {\n backgroundColor: tokens.colors.innerCardBgColor,\n },\n ghost: {\n backgroundColor: 'transparent',\n boxShadow: 'none',\n },\n },\n active: {\n true: {\n '::before': {\n outline: `1px solid ${tokens.colors.cardActiveBorder}`,\n backgroundColor: tokens.colors.cardActiveBackground,\n },\n },\n },\n },\n\n defaultVariants: {\n elevation: 1,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Card.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlock.vanilla.css.cjs","names":[],"sources":["../../../components/CodeBlock/CodeBlock.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { tokens } from '../../styles/tokens.css';\n\nexport const pre = style({\n margin: 0,\n borderRadius: tokens.radii['2'],\n overflow: 'auto',\n border: `1px solid ${tokens.colors.deepBlue['3']}`,\n fontSize: tokens.fontSizes['2'],\n lineHeight: '1.6',\n});\n\nexport const preNoBorder = style({\n border: 'none',\n});\n\nexport const codeContent = style({\n padding: tokens.space['4'],\n});\n\nexport const codeContentBottomPadding = style({\n paddingBottom: tokens.space['7'],\n});\n\nexport const codeContentTopPadding = style({\n paddingTop: tokens.space['7'],\n});\n\nexport const copyButtonWrapperTop = style({\n position: 'absolute',\n zIndex: 1,\n top: tokens.space['2'],\n right: tokens.space['3'],\n});\n\nexport const copyButtonWrapperTopLeft = style({\n position: 'absolute',\n zIndex: 1,\n top: tokens.space['2'],\n left: tokens.space['3'],\n});\n\nexport const copyButtonWrapperBottomRight = style({\n position: 'absolute',\n zIndex: 1,\n bottom: tokens.space['2'],\n right: tokens.space['3'],\n});\n\nexport const copyButtonWrapperBottomLeft = style({\n position: 'absolute',\n zIndex: 1,\n bottom: tokens.space['2'],\n left: tokens.space['3'],\n});\n"],"mappings":""}
1
+ {"version":3,"file":"CodeBlock.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlock.vanilla.css.js","names":[],"sources":["../../../components/CodeBlock/CodeBlock.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { tokens } from '../../styles/tokens.css';\n\nexport const pre = style({\n margin: 0,\n borderRadius: tokens.radii['2'],\n overflow: 'auto',\n border: `1px solid ${tokens.colors.deepBlue['3']}`,\n fontSize: tokens.fontSizes['2'],\n lineHeight: '1.6',\n});\n\nexport const preNoBorder = style({\n border: 'none',\n});\n\nexport const codeContent = style({\n padding: tokens.space['4'],\n});\n\nexport const codeContentBottomPadding = style({\n paddingBottom: tokens.space['7'],\n});\n\nexport const codeContentTopPadding = style({\n paddingTop: tokens.space['7'],\n});\n\nexport const copyButtonWrapperTop = style({\n position: 'absolute',\n zIndex: 1,\n top: tokens.space['2'],\n right: tokens.space['3'],\n});\n\nexport const copyButtonWrapperTopLeft = style({\n position: 'absolute',\n zIndex: 1,\n top: tokens.space['2'],\n left: tokens.space['3'],\n});\n\nexport const copyButtonWrapperBottomRight = style({\n position: 'absolute',\n zIndex: 1,\n bottom: tokens.space['2'],\n right: tokens.space['3'],\n});\n\nexport const copyButtonWrapperBottomLeft = style({\n position: 'absolute',\n zIndex: 1,\n bottom: tokens.space['2'],\n left: tokens.space['3'],\n});\n"],"mappings":""}
1
+ {"version":3,"file":"CodeBlock.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Combobox/Combobox.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nexport const comboboxAnchor = style({\n width: '100%',\n});\n\nexport const comboboxContent = style({\n boxSizing: 'border-box',\n width: 'var(--radix-popover-trigger-width)',\n maxHeight: 'min(240px, var(--radix-popover-content-available-height))',\n overflowY: 'auto',\n padding: tokens.space['1'],\n backgroundColor: tokens.colors.cardBackground,\n border: `1px solid ${tokens.colors.comboboxContentBorder}`,\n borderRadius: tokens.radii['3'],\n fontFamily: tokens.fonts.rubik,\n outline: 'none',\n});\n\nexport const comboboxListbox = style({\n margin: 0,\n padding: 0,\n listStyle: 'none',\n});\n\nexport const comboboxOptionRecipe = recipe({\n base: {\n paddingBlock: tokens.space['2'],\n paddingInline: tokens.space['2'],\n borderRadius: tokens.radii['2'],\n color: tokens.colors.hiContrast,\n lineHeight: 1.3,\n overflowWrap: 'anywhere',\n cursor: 'pointer',\n\n selectors: {\n '&[data-highlighted]': {\n backgroundColor: tokens.colors.comboboxOptionHighlightBg,\n },\n },\n },\n\n variants: {\n size: {\n small: { fontSize: tokens.fontSizes['1'] },\n medium: { fontSize: tokens.fontSizes['3'] },\n large: { fontSize: tokens.fontSizes['3'] },\n },\n },\n\n defaultVariants: {\n size: 'medium',\n },\n});\n\nexport const comboboxEmptyRecipe = recipe({\n base: {\n paddingBlock: tokens.space['2'],\n paddingInline: tokens.space['2'],\n color: tokens.colors.textSubtle,\n lineHeight: 1.3,\n },\n\n variants: {\n size: {\n small: { fontSize: tokens.fontSizes['1'] },\n medium: { fontSize: tokens.fontSizes['3'] },\n large: { fontSize: tokens.fontSizes['3'] },\n },\n },\n\n defaultVariants: {\n size: 'medium',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Combobox.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Combobox/Combobox.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nexport const comboboxAnchor = style({\n width: '100%',\n});\n\nexport const comboboxContent = style({\n boxSizing: 'border-box',\n width: 'var(--radix-popover-trigger-width)',\n maxHeight: 'min(240px, var(--radix-popover-content-available-height))',\n overflowY: 'auto',\n padding: tokens.space['1'],\n backgroundColor: tokens.colors.cardBackground,\n border: `1px solid ${tokens.colors.comboboxContentBorder}`,\n borderRadius: tokens.radii['3'],\n fontFamily: tokens.fonts.rubik,\n outline: 'none',\n});\n\nexport const comboboxListbox = style({\n margin: 0,\n padding: 0,\n listStyle: 'none',\n});\n\nexport const comboboxOptionRecipe = recipe({\n base: {\n paddingBlock: tokens.space['2'],\n paddingInline: tokens.space['2'],\n borderRadius: tokens.radii['2'],\n color: tokens.colors.hiContrast,\n lineHeight: 1.3,\n overflowWrap: 'anywhere',\n cursor: 'pointer',\n\n selectors: {\n '&[data-highlighted]': {\n backgroundColor: tokens.colors.comboboxOptionHighlightBg,\n },\n },\n },\n\n variants: {\n size: {\n small: { fontSize: tokens.fontSizes['1'] },\n medium: { fontSize: tokens.fontSizes['3'] },\n large: { fontSize: tokens.fontSizes['3'] },\n },\n },\n\n defaultVariants: {\n size: 'medium',\n },\n});\n\nexport const comboboxEmptyRecipe = recipe({\n base: {\n paddingBlock: tokens.space['2'],\n paddingInline: tokens.space['2'],\n color: tokens.colors.textSubtle,\n lineHeight: 1.3,\n },\n\n variants: {\n size: {\n small: { fontSize: tokens.fontSizes['1'] },\n medium: { fontSize: tokens.fontSizes['3'] },\n large: { fontSize: tokens.fontSizes['3'] },\n },\n },\n\n defaultVariants: {\n size: 'medium',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Combobox.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Container.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Container/Container.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles';\n\nconst container = style({\n boxSizing: 'border-box',\n flexShrink: 0,\n marginLeft: 'auto',\n marginRight: 'auto',\n paddingLeft: tokens.space[5],\n paddingRight: tokens.space[5],\n});\n\nexport const containerRecipe = recipe({\n base: container,\n\n variants: {\n size: {\n '1': {\n maxWidth: '425px',\n },\n '2': {\n maxWidth: '768px',\n },\n '3': {\n maxWidth: '1440px',\n },\n '4': {\n maxWidth: 'none',\n },\n },\n noGutter: {\n true: {\n paddingLeft: 0,\n paddingRight: 0,\n },\n },\n },\n defaultVariants: {\n size: '4',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Container.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Container.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Container/Container.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles';\n\nconst container = style({\n boxSizing: 'border-box',\n flexShrink: 0,\n marginLeft: 'auto',\n marginRight: 'auto',\n paddingLeft: tokens.space[5],\n paddingRight: tokens.space[5],\n});\n\nexport const containerRecipe = recipe({\n base: container,\n\n variants: {\n size: {\n '1': {\n maxWidth: '425px',\n },\n '2': {\n maxWidth: '768px',\n },\n '3': {\n maxWidth: '1440px',\n },\n '4': {\n maxWidth: 'none',\n },\n },\n noGutter: {\n true: {\n paddingLeft: 0,\n paddingRight: 0,\n },\n },\n },\n defaultVariants: {\n size: '4',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Container.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Elevation.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Elevation/Elevation.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst elevationBase = style({\n display: 'inline-block',\n});\n\nexport const elevationVariants = {\n 0: {\n boxShadow: 'none',\n },\n 1: {\n backgroundColor: tokens.colors['01dp'],\n boxShadow:\n '0 1px 5px 0 hsla(0, 0%, 0%, 0.2), 0 3px 1px -2px hsla(0, 0%, 0%, 0.12), 0 2px 2px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 2: {\n backgroundColor: tokens.colors['02dp'],\n boxShadow:\n '0 2px 4px -1px hsla(0, 0%, 0%, 0.2), 0 1px 10px 0 hsla(0, 0%, 0%, 0.12), 0 4px 5px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 3: {\n backgroundColor: tokens.colors['03dp'],\n boxShadow:\n '0 3px 5px -1px hsla(0, 0%, 0%, 0.2), 0 1px 18px 0 hsla(0, 0%, 0%, 0.12), 0 6px 10px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 4: {\n backgroundColor: tokens.colors['04dp'],\n boxShadow:\n '0 7px 8px -4px hsla(0, 0%, 0%, 0.2), 0 5px 22px 4px hsla(0, 0%, 0%, 0.12), 0 12px 17px 2px hsla(0, 0%, 0%, 0.14)',\n },\n 5: {\n backgroundColor: tokens.colors['05dp'],\n boxShadow:\n '0 11px 15px -7px hsla(0, 0%, 0%, 0.2), 0 9px 46px 8px hsla(0, 0%, 0%, 0.12), 0 24px 38px 3px hsla(0, 0%, 0%, 0.14)',\n },\n} as const;\n\nexport const elevationRecipe = recipe({\n base: elevationBase,\n\n variants: {\n variant: elevationVariants,\n },\n\n defaultVariants: {\n variant: 1,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Elevation.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Elevation.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Elevation/Elevation.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst elevationBase = style({\n display: 'inline-block',\n});\n\nexport const elevationVariants = {\n 0: {\n boxShadow: 'none',\n },\n 1: {\n backgroundColor: tokens.colors['01dp'],\n boxShadow:\n '0 1px 5px 0 hsla(0, 0%, 0%, 0.2), 0 3px 1px -2px hsla(0, 0%, 0%, 0.12), 0 2px 2px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 2: {\n backgroundColor: tokens.colors['02dp'],\n boxShadow:\n '0 2px 4px -1px hsla(0, 0%, 0%, 0.2), 0 1px 10px 0 hsla(0, 0%, 0%, 0.12), 0 4px 5px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 3: {\n backgroundColor: tokens.colors['03dp'],\n boxShadow:\n '0 3px 5px -1px hsla(0, 0%, 0%, 0.2), 0 1px 18px 0 hsla(0, 0%, 0%, 0.12), 0 6px 10px 0 hsla(0, 0%, 0%, 0.14)',\n },\n 4: {\n backgroundColor: tokens.colors['04dp'],\n boxShadow:\n '0 7px 8px -4px hsla(0, 0%, 0%, 0.2), 0 5px 22px 4px hsla(0, 0%, 0%, 0.12), 0 12px 17px 2px hsla(0, 0%, 0%, 0.14)',\n },\n 5: {\n backgroundColor: tokens.colors['05dp'],\n boxShadow:\n '0 11px 15px -7px hsla(0, 0%, 0%, 0.2), 0 9px 46px 8px hsla(0, 0%, 0%, 0.12), 0 24px 38px 3px hsla(0, 0%, 0%, 0.14)',\n },\n} as const;\n\nexport const elevationRecipe = recipe({\n base: elevationBase,\n\n variants: {\n variant: elevationVariants,\n },\n\n defaultVariants: {\n variant: 1,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Elevation.vanilla.css.js","names":[],"sources":[],"mappings":""}