@tanstack/devtools-ui 0.5.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/BricolageGrotesque-Bold-BIJrwikb.ttf +0 -0
- package/dist/assets/Inter-latin-BwkfbSeq.woff2 +0 -0
- package/dist/esm/assets/fonts/BricolageGrotesque-Bold.js +6 -0
- package/dist/esm/assets/fonts/BricolageGrotesque-Bold.js.map +1 -0
- package/dist/esm/assets/fonts/Inter-latin.js +6 -0
- package/dist/esm/assets/fonts/Inter-latin.js.map +1 -0
- package/dist/esm/components/button.js +3 -3
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/checkbox.js +16 -10
- package/dist/esm/components/checkbox.js.map +1 -1
- package/dist/esm/components/header.js +4 -4
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/icons.d.ts +1 -1
- package/dist/esm/components/icons.js +4 -8
- package/dist/esm/components/icons.js.map +1 -1
- package/dist/esm/components/input.js +16 -9
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/logo.js +3 -3
- package/dist/esm/components/logo.js.map +1 -1
- package/dist/esm/components/main-panel.js +3 -3
- package/dist/esm/components/main-panel.js.map +1 -1
- package/dist/esm/components/section.js +6 -6
- package/dist/esm/components/section.js.map +1 -1
- package/dist/esm/components/select.js +24 -13
- package/dist/esm/components/select.js.map +1 -1
- package/dist/esm/components/tag.js +3 -3
- package/dist/esm/components/tag.js.map +1 -1
- package/dist/esm/components/theme.d.ts +1 -1
- package/dist/esm/components/theme.js +15 -5
- package/dist/esm/components/theme.js.map +1 -1
- package/dist/esm/components/tree.js +114 -62
- package/dist/esm/components/tree.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/internal.d.ts +2 -0
- package/dist/esm/internal.js +2 -0
- package/dist/esm/styles/semantic-theme.d.ts +420 -0
- package/dist/esm/styles/semantic-theme.js +283 -0
- package/dist/esm/styles/semantic-theme.js.map +1 -0
- package/dist/esm/styles/use-styles.d.ts +3 -1
- package/dist/esm/styles/use-styles.js +304 -372
- package/dist/esm/styles/use-styles.js.map +1 -1
- package/package.json +15 -3
- package/src/assets/fonts/OFL-Bricolage-Grotesque.txt +93 -0
- package/src/assets/fonts/OFL-Inter.txt +92 -0
- package/src/components/button.tsx +3 -3
- package/src/components/checkbox.tsx +9 -5
- package/src/components/header.tsx +10 -4
- package/src/components/icons.tsx +5 -5
- package/src/components/input.tsx +14 -5
- package/src/components/logo.tsx +3 -2
- package/src/components/main-panel.tsx +3 -2
- package/src/components/section.tsx +15 -7
- package/src/components/select.tsx +29 -10
- package/src/components/tag.tsx +7 -3
- package/src/components/theme.tsx +18 -5
- package/src/components/tree.tsx +96 -29
- package/src/index.ts +1 -1
- package/src/internal.ts +11 -0
- package/src/styles/semantic-theme.ts +345 -0
- package/src/styles/use-styles.ts +318 -310
- package/dist/esm/styles/tokens.js +0 -301
- package/dist/esm/styles/tokens.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-styles.js","names":[],"sources":["../../../src/styles/use-styles.ts"],"sourcesContent":["import * as goober from 'goober'\nimport { createEffect, createSignal } from 'solid-js'\nimport { useTheme } from '../components/theme'\nimport { tokens } from './tokens'\n\nimport type { TanStackDevtoolsTheme } from '../components/theme'\nimport type { ButtonVariant } from '../components/button'\n\nconst buttonVariantColors: Record<\n ButtonVariant,\n {\n bg: { light: string; dark: string }\n hover: { light: string; dark: string }\n active: { light: string; dark: string }\n text: { light: string; dark: string }\n border: { light: string; dark: string }\n outline: { light: string; dark: string }\n outlineHover: { light: string; dark: string }\n }\n> = {\n primary: {\n bg: { light: tokens.colors.gray[900], dark: tokens.colors.gray[100] },\n hover: { light: tokens.colors.gray[800], dark: tokens.colors.gray[200] },\n active: { light: tokens.colors.gray[700], dark: tokens.colors.gray[300] },\n text: { light: '#fff', dark: tokens.colors.gray[900] },\n border: { light: tokens.colors.gray[800], dark: tokens.colors.gray[200] },\n outline: {\n light: tokens.colors.gray[900],\n dark: tokens.colors.gray[100],\n },\n outlineHover: {\n light: tokens.colors.gray[800],\n dark: tokens.colors.gray[200],\n },\n },\n secondary: {\n bg: { light: tokens.colors.gray[100], dark: tokens.colors.gray[100] },\n hover: { light: tokens.colors.gray[200], dark: tokens.colors.gray[200] },\n active: { light: tokens.colors.gray[300], dark: tokens.colors.gray[300] },\n text: { light: tokens.colors.gray[900], dark: tokens.colors.gray[900] },\n border: { light: tokens.colors.gray[300], dark: tokens.colors.gray[300] },\n outline: {\n light: tokens.colors.gray[700],\n dark: tokens.colors.gray[300],\n },\n outlineHover: {\n light: tokens.colors.gray[800],\n dark: tokens.colors.gray[200],\n },\n },\n info: {\n bg: { light: tokens.colors.blue[500], dark: tokens.colors.blue[500] },\n hover: { light: tokens.colors.blue[600], dark: tokens.colors.blue[600] },\n active: { light: tokens.colors.blue[700], dark: tokens.colors.blue[700] },\n text: { light: '#fff', dark: '#fff' },\n border: { light: tokens.colors.blue[500], dark: tokens.colors.blue[500] },\n outline: {\n light: tokens.colors.blue[700],\n dark: tokens.colors.blue[300],\n },\n outlineHover: {\n light: tokens.colors.blue[600],\n dark: tokens.colors.blue[200],\n },\n },\n warning: {\n bg: { light: tokens.colors.yellow[500], dark: tokens.colors.yellow[500] },\n hover: {\n light: tokens.colors.yellow[600],\n dark: tokens.colors.yellow[600],\n },\n active: {\n light: tokens.colors.yellow[700],\n dark: tokens.colors.yellow[700],\n },\n text: { light: '#fff', dark: '#fff' },\n border: {\n light: tokens.colors.yellow[500],\n dark: tokens.colors.yellow[500],\n },\n outline: {\n light: tokens.colors.yellow[700],\n dark: tokens.colors.yellow[300],\n },\n outlineHover: {\n light: tokens.colors.yellow[600],\n dark: tokens.colors.yellow[200],\n },\n },\n danger: {\n bg: { light: tokens.colors.red[500], dark: tokens.colors.red[500] },\n hover: { light: tokens.colors.red[600], dark: tokens.colors.red[600] },\n active: { light: tokens.colors.red[700], dark: tokens.colors.red[700] },\n text: { light: '#fff', dark: '#fff' },\n border: { light: tokens.colors.red[500], dark: tokens.colors.red[500] },\n outline: {\n light: tokens.colors.red[700],\n dark: tokens.colors.red[300],\n },\n outlineHover: {\n light: tokens.colors.red[600],\n dark: tokens.colors.red[200],\n },\n },\n success: {\n bg: { light: tokens.colors.green[500], dark: tokens.colors.green[500] },\n hover: { light: tokens.colors.green[600], dark: tokens.colors.green[600] },\n active: { light: tokens.colors.green[700], dark: tokens.colors.green[700] },\n text: { light: '#fff', dark: '#fff' },\n border: { light: tokens.colors.green[500], dark: tokens.colors.green[500] },\n outline: {\n light: tokens.colors.green[700],\n dark: tokens.colors.green[300],\n },\n outlineHover: {\n light: tokens.colors.green[600],\n dark: tokens.colors.green[200],\n },\n },\n}\nexport const css = goober.css\nconst stylesFactory = (theme: TanStackDevtoolsTheme) => {\n const { colors, font, size, border } = tokens\n const { fontFamily } = font\n\n const t = (light: string, dark: string) => (theme === 'light' ? light : dark)\n const buildButtonVariant = (variant: ButtonVariant) => {\n const v = buttonVariantColors[variant]\n const outlineColor = t(v.outline.light, v.outline.dark)\n const outlineHoverColor = t(v.outlineHover.light, v.outlineHover.dark)\n const solidBg = t(v.bg.light, v.bg.dark)\n const solidHover = t(v.hover.light, v.hover.dark)\n const solidActive = t(v.active.light, v.active.dark)\n const solidText = t(v.text.light, v.text.dark)\n const solidBorder = t(v.border.light, v.border.dark)\n\n return {\n ghost: css`\n background: transparent;\n color: ${outlineColor};\n border-color: transparent;\n &:hover {\n background: ${t(colors.gray[100], colors.darkGray[800])};\n color: ${outlineHoverColor};\n }\n &:active {\n background: ${t(colors.gray[200], colors.darkGray[700])};\n color: ${outlineHoverColor};\n }\n `,\n outline: css`\n background: transparent;\n color: ${outlineColor};\n border-color: ${outlineColor};\n &:hover {\n background: ${t(colors.gray[50], colors.darkGray[800])};\n color: ${outlineHoverColor};\n border-color: ${outlineHoverColor};\n }\n &:active {\n background: ${t(colors.gray[100], colors.darkGray[700])};\n color: ${outlineHoverColor};\n border-color: ${outlineHoverColor};\n }\n `,\n solid: css`\n background: ${solidBg};\n color: ${solidText};\n border-color: ${solidBorder};\n &:hover {\n background: ${solidHover};\n border-color: ${solidHover};\n box-shadow: ${t(\n tokens.shadow.xs('rgb(0 0 0 / 0.12)'),\n tokens.shadow.xs('rgb(0 0 0 / 0.5)'),\n )};\n }\n &:active {\n background: ${solidActive};\n border-color: ${solidActive};\n box-shadow: ${t(\n tokens.shadow.inner('rgb(0 0 0 / 0.2)'),\n tokens.shadow.inner('rgb(0 0 0 / 0.6)'),\n )};\n }\n `,\n }\n }\n const buttonVariants: Record<\n ButtonVariant,\n { ghost: string; outline: string; solid: string }\n > = {\n primary: buildButtonVariant('primary'),\n secondary: buildButtonVariant('secondary'),\n info: buildButtonVariant('info'),\n warning: buildButtonVariant('warning'),\n danger: buildButtonVariant('danger'),\n success: buildButtonVariant('success'),\n }\n\n const wrapperSize = 320\n\n return {\n logo: css`\n cursor: pointer;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n border: none;\n width: ${size[12]};\n height: ${size[12]};\n font-family: ${fontFamily.sans};\n gap: ${tokens.size[0.5]};\n padding: 0;\n &:hover {\n opacity: 0.7;\n }\n `,\n\n selectWrapper: css`\n width: 100%;\n max-width: ${wrapperSize}px;\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n `,\n selectContainer: css`\n width: 100%;\n `,\n selectLabel: css`\n font-size: 0.875rem;\n font-weight: 500;\n color: ${t(colors.gray[900], colors.gray[100])};\n text-align: left;\n `,\n selectDescription: css`\n font-size: 0.8rem;\n color: ${t(colors.gray[500], colors.gray[400])};\n margin: 0;\n line-height: 1.3;\n text-align: left;\n `,\n select: css`\n appearance: none;\n width: 100%;\n padding: 0.5rem 3rem 0.5rem 0.75rem;\n border-radius: 0.375rem;\n background-color: ${t(colors.gray[50], colors.darkGray[800])};\n color: ${t(colors.gray[900], colors.gray[100])};\n border: 1px solid ${t(colors.gray[200], colors.gray[800])};\n font-size: 0.875rem;\n transition: all 0.15s ease;\n cursor: pointer;\n\n /* Custom arrow */\n background-image: url(\"data:image/svg+xml;utf8,<svg fill='%236b7280' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>\");\n background-repeat: no-repeat;\n background-position: right 0.75rem center;\n background-size: 1.25rem;\n\n &:hover {\n border-color: ${t(colors.gray[300], colors.gray[700])};\n }\n\n &:focus {\n outline: none;\n border-color: ${colors.gray[400]};\n box-shadow: 0 0 0 3px ${t(colors.gray[200], colors.gray[800])};\n }\n `,\n inputWrapper: css`\n width: 100%;\n max-width: ${wrapperSize}px;\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n `,\n inputContainer: css`\n width: 100%;\n `,\n inputLabel: css`\n font-size: 0.875rem;\n font-weight: 500;\n color: ${t(colors.gray[900], colors.gray[100])};\n text-align: left;\n `,\n inputDescription: css`\n font-size: 0.8rem;\n color: ${t(colors.gray[500], colors.gray[400])};\n margin: 0;\n line-height: 1.3;\n text-align: left;\n `,\n input: css`\n appearance: none;\n box-sizing: border-box;\n width: 100%;\n padding: 0.5rem 0.75rem;\n border-radius: 0.375rem;\n background-color: ${t(colors.gray[50], colors.darkGray[800])};\n color: ${t(colors.gray[900], colors.gray[100])};\n border: 1px solid ${t(colors.gray[200], colors.gray[800])};\n font-size: 0.875rem;\n font-family: ${fontFamily.mono};\n transition: all 0.15s ease;\n\n &::placeholder {\n color: ${t(colors.gray[400], colors.gray[500])};\n }\n\n &:hover {\n border-color: ${t(colors.gray[300], colors.gray[700])};\n }\n\n &:focus {\n outline: none;\n border-color: ${t(colors.gray[400], colors.gray[600])};\n box-shadow: 0 0 0 3px ${t(colors.gray[200], colors.gray[800])};\n }\n `,\n checkboxWrapper: css`\n display: flex;\n align-items: flex-start;\n gap: 0.75rem;\n cursor: pointer;\n user-select: none;\n padding: 0.375rem;\n border-radius: 0.375rem;\n transition: background-color 0.15s ease;\n\n &:hover {\n background-color: ${t(colors.gray[50], colors.darkGray[900])};\n }\n `,\n checkboxContainer: css`\n width: 100%;\n `,\n checkboxLabelContainer: css`\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n flex: 1;\n `,\n checkbox: css`\n appearance: none;\n width: 1.25rem;\n height: 1.25rem;\n border: 2px solid ${t(colors.gray[300], colors.gray[700])};\n border-radius: 0.25rem;\n background-color: ${t(colors.gray[50], colors.darkGray[800])};\n display: grid;\n place-items: center;\n transition: all 0.15s ease;\n flex-shrink: 0;\n margin-top: 0.125rem;\n\n &:hover {\n border-color: ${t(colors.gray[400], colors.gray[600])};\n }\n\n &:checked {\n background-color: ${t(colors.gray[900], colors.gray[100])};\n border-color: ${t(colors.gray[900], colors.gray[100])};\n }\n\n &:checked::after {\n content: '';\n width: 0.4rem;\n height: 0.6rem;\n border: solid ${t('#fff', colors.gray[900])};\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n margin-top: -3px;\n }\n `,\n checkboxLabel: css`\n color: ${t(colors.gray[900], colors.gray[100])};\n font-size: 0.875rem;\n font-weight: 500;\n line-height: 1.4;\n text-align: left;\n `,\n checkboxDescription: css`\n color: ${t(colors.gray[500], colors.gray[400])};\n font-size: 0.8rem;\n line-height: 1.3;\n text-align: left;\n `,\n button: {\n base: css`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-family: ${tokens.font.fontFamily.sans};\n font-size: 0.8rem;\n font-weight: 500;\n border-radius: 0.375rem;\n padding: 0.375rem 0.75rem;\n cursor: pointer;\n transition:\n background 0.15s,\n color 0.15s,\n border 0.15s,\n box-shadow 0.15s;\n outline: none;\n border-width: 1px;\n border-style: solid;\n `,\n variant(variant: ButtonVariant, outline?: boolean, ghost?: boolean) {\n const v = buttonVariants[variant]\n if (ghost) {\n return v.ghost\n }\n if (outline) {\n return v.outline\n }\n return v.solid\n },\n },\n tag: {\n dot: (color: keyof typeof tokens.colors) => css`\n width: ${tokens.size[1.5]};\n height: ${tokens.size[1.5]};\n border-radius: ${tokens.border.radius.full};\n background-color: ${t(\n tokens.colors[color][500],\n tokens.colors[color][500],\n )};\n `,\n base: css`\n display: flex;\n gap: ${tokens.size[1.5]};\n box-sizing: border-box;\n height: ${tokens.size[6.5]};\n background: ${t(colors.gray[50], colors.darkGray[500])};\n color: ${t(colors.gray[700], colors.gray[300])};\n border-radius: ${tokens.border.radius.sm};\n font-size: ${font.size.sm};\n padding: ${tokens.size[1]};\n padding-left: ${tokens.size[1.5]};\n align-items: center;\n font-weight: ${font.weight.medium};\n border: ${t('1px solid ' + colors.gray[300], '1px solid transparent')};\n user-select: none;\n position: relative;\n &:focus-visible {\n outline-offset: 2px;\n outline: 2px solid ${t(colors.blue[700], colors.blue[800])};\n }\n `,\n label: css`\n font-size: ${font.size.xs};\n `,\n count: css`\n font-size: ${font.size.xs};\n padding: 0 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${t(colors.gray[500], colors.gray[400])};\n background-color: ${t(colors.gray[200], colors.darkGray[300])};\n border-radius: 2px;\n font-variant-numeric: tabular-nums;\n height: ${tokens.size[4.5]};\n `,\n },\n tree: {\n info: css`\n color: ${t(colors.gray[500], colors.gray[500])};\n font-size: ${font.size.xs};\n margin-right: ${size[1]};\n `,\n actionButton: css`\n background-color: transparent;\n color: ${t(colors.gray[500], colors.gray[500])};\n border: none;\n display: inline-flex;\n padding: 0;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: ${size[3]};\n height: ${size[3]};\n position: relative;\n z-index: 1;\n\n &:hover svg {\n color: ${t(colors.gray[600], colors.gray[400])};\n }\n\n &:focus-visible {\n border-radius: ${border.radius.xs};\n outline: 2px solid ${t(colors.blue[700], colors.blue[800])};\n outline-offset: 2px;\n }\n `,\n expanderContainer: css`\n position: relative;\n `,\n expander: css`\n position: absolute;\n cursor: pointer;\n left: -16px;\n top: 3px;\n & path {\n stroke: ${t(colors.blue[400], colors.blue[300])};\n }\n & svg {\n width: ${size[3]};\n height: ${size[3]};\n }\n\n display: inline-flex;\n align-items: center;\n transition: all 0.1s ease;\n `,\n expandedLine: (hasBorder: boolean) => css`\n display: block;\n padding-left: 0.75rem;\n margin-left: -0.7rem;\n ${hasBorder\n ? `border-left: 1px solid ${t(colors.blue[400], colors.blue[300])};`\n : ''}\n `,\n collapsible: css`\n cursor: pointer;\n transition: all 0.2s ease;\n &:hover {\n background-color: ${t(colors.gray[100], colors.darkGray[700])};\n border-radius: ${tokens.border.radius.sm};\n padding: 0 ${tokens.size[1]};\n }\n `,\n actions: css`\n display: inline-flex;\n margin-left: ${size[2]};\n gap: ${size[2]};\n align-items: center;\n & svg {\n height: 12px;\n width: 12px;\n }\n `,\n valueCollapsed: css`\n color: ${t(colors.gray[500], colors.gray[400])};\n `,\n valueFunction: css`\n color: ${t(colors.cyan[500], colors.cyan[400])};\n `,\n valueString: css`\n color: ${t(colors.green[500], colors.green[400])};\n `,\n valueNumber: css`\n color: ${t(colors.yellow[500], colors.yellow[400])};\n `,\n valueBoolean: css`\n color: ${t(colors.pink[500], colors.pink[400])};\n `,\n valueNull: css`\n color: ${t(colors.gray[500], colors.gray[400])};\n font-style: italic;\n `,\n valueKey: css`\n color: ${t(colors.blue[400], colors.blue[300])};\n `,\n valueBraces: css`\n color: ${colors.gray[500]};\n `,\n valueContainer: (isRoot: boolean) => css`\n display: block;\n margin-left: ${isRoot ? '0' : '1rem'};\n\n &:not(:hover) .actions {\n display: none;\n }\n\n &:hover .actions {\n display: inline-flex;\n }\n `,\n },\n header: {\n row: css`\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: ${tokens.size[2]} ${tokens.size[2.5]};\n gap: ${tokens.size[2.5]};\n border-bottom: ${t(colors.gray[300], colors.darkGray[500])} 1px solid;\n align-items: center;\n `,\n logoAndToggleContainer: css`\n display: flex;\n gap: ${tokens.size[3]};\n align-items: center;\n & > button {\n padding: 0;\n background: transparent;\n border: none;\n display: flex;\n gap: ${size[0.5]};\n flex-direction: column;\n }\n `,\n logo: css`\n cursor: pointer;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n border: none;\n gap: ${tokens.size[0.5]};\n padding: 0;\n &:hover {\n opacity: 0.7;\n }\n &:focus-visible {\n outline-offset: 4px;\n border-radius: ${border.radius.xs};\n outline: 2px solid ${colors.blue[800]};\n }\n `,\n tanstackLogo: css`\n font-size: ${font.size.md};\n font-weight: ${font.weight.bold};\n line-height: ${font.lineHeight.xs};\n white-space: nowrap;\n color: ${t(colors.gray[700], colors.gray[300])};\n `,\n flavorLogo: (flavorLight: string, flavorDark: string) => css`\n font-weight: ${font.weight.semibold};\n font-size: ${font.size.xs};\n background: linear-gradient(to right, ${t(flavorLight, flavorDark)});\n background-clip: text;\n -webkit-background-clip: text;\n line-height: 1;\n -webkit-text-fill-color: transparent;\n white-space: nowrap;\n `,\n },\n section: {\n main: css`\n margin-bottom: 1.5rem;\n padding: 1rem;\n background-color: ${t(colors.gray[50], colors.darkGray[800])};\n border: 1px solid ${t(colors.gray[200], colors.gray[800])};\n border-radius: 0.5rem;\n box-shadow: none;\n `,\n title: css`\n font-size: 1rem;\n font-weight: 600;\n color: ${t(colors.gray[900], colors.gray[100])};\n margin: 0 0 0.75rem 0;\n padding-bottom: 0.5rem;\n border-bottom: 1px solid ${t(colors.gray[200], colors.gray[800])};\n display: flex;\n align-items: center;\n gap: 0.5rem;\n text-align: left;\n `,\n icon: css`\n height: 18px;\n width: 18px;\n & > svg {\n height: 100%;\n width: 100%;\n }\n color: ${t(colors.gray[700], colors.gray[400])};\n `,\n description: css`\n color: ${t(colors.gray[500], colors.gray[400])};\n font-size: 0.8rem;\n margin: 0 0 1rem 0;\n line-height: 1.4;\n text-align: left;\n `,\n },\n mainPanel: {\n panel: (withPadding: boolean) => css`\n padding: ${withPadding ? tokens.size[3] : 0};\n background: ${t(colors.gray[50], colors.darkGray[700])};\n overflow-y: auto;\n height: 100%;\n `,\n },\n }\n}\n\nexport function useStyles() {\n const { theme } = useTheme()\n const [styles, setStyles] = createSignal(stylesFactory(theme()))\n createEffect(() => {\n setSty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AO,KAAK,KAAK;;;GAG1C,cAAc,GAAG;qBACF,KAAK,KAAK,GAAG;uBACX,KAAK,OAAO,KAAK;uBACjB,KAAK,WAAW,GAAG;;iBAEzB,EAAE,OAAO,KAAK,MAAM,OAAO,KAAK,KAAK,CAAC;;GAEjD,aAAa,aAAqB,eAAuB,GAAG;uBAC3C,KAAK,OAAO,SAAS;qBACvB,KAAK,KAAK,GAAG;gDACc,EAAE,aAAa,WAAW,CAAC;;;;;;;GAOtE;EACD,SAAS;GACP,MAAM,GAAG;;;4BAGa,EAAE,OAAO,KAAK,KAAK,OAAO,SAAS,KAAK,CAAC;4BACzC,EAAE,OAAO,KAAK,MAAM,OAAO,KAAK,KAAK,CAAC;;;;GAI5D,OAAO,GAAG;;;iBAGC,EAAE,OAAO,KAAK,MAAM,OAAO,KAAK,KAAK,CAAC;;;mCAGpB,EAAE,OAAO,KAAK,MAAM,OAAO,KAAK,KAAK,CAAC;;;;;;GAMnE,MAAM,GAAG;;;;;;;iBAOE,EAAE,OAAO,KAAK,MAAM,OAAO,KAAK,KAAK,CAAC;;GAEjD,aAAa,GAAG;iBACL,EAAE,OAAO,KAAK,MAAM,OAAO,KAAK,KAAK,CAAC;;;;;;GAMlD;EACD,WAAW,EACT,QAAQ,gBAAyB,GAAG;mBACvB,cAAc,OAAO,KAAK,KAAK,EAAE;sBAC9B,EAAE,OAAO,KAAK,KAAK,OAAO,SAAS,KAAK,CAAC;;;SAI1D;EACF;;AAGH,SAAgB,YAAY;CAC1B,MAAM,EAAE,UAAU,UAAU;CAC5B,MAAM,CAAC,QAAQ,aAAa,aAAa,cAAc,OAAO,CAAC,CAAC;CAChE,mBAAmB;EACjB,UAAU,cAAc,OAAO,CAAC,CAAC;GACjC;CACF,OAAO"}
|
|
1
|
+
{"version":3,"file":"use-styles.js","names":[],"sources":["../../../src/styles/use-styles.ts"],"sourcesContent":["import * as goober from 'goober'\nimport { createEffect, createSignal } from 'solid-js'\nimport { createTheme } from '../components/theme'\nimport { resolveSemanticTheme } from './semantic-theme'\nimport type { tokens } from './tokens'\n\nimport type { TanStackDevtoolsTheme } from '../components/theme'\nimport type { ButtonVariant } from '../components/button'\n\nexport const css = goober.css\nconst stylesFactory = (theme: TanStackDevtoolsTheme) => {\n const semantic = resolveSemanticTheme(theme)\n\n const t = (light: string, dark: string) => (theme === 'light' ? light : dark)\n const buildButtonVariant = (variant: ButtonVariant) => {\n const statusRole =\n variant === 'danger'\n ? 'error'\n : variant === 'primary' || variant === 'secondary'\n ? 'neutral'\n : variant\n const status = semantic.color.status[statusRole]\n const outlineColor = status.text\n const outlineHoverColor = status.text\n const solidBg = status.solidFill\n const solidHover = status.border\n const solidActive = status.solidFill\n const solidText = status.onFill\n const solidBorder = status.border\n\n return {\n ghost: css`\n background: transparent;\n color: ${outlineColor};\n border-color: transparent;\n &:hover {\n background: ${semantic.color.state.hover};\n color: ${outlineHoverColor};\n }\n &:active {\n background: ${semantic.color.state.pressed};\n color: ${outlineHoverColor};\n }\n `,\n outline: css`\n background: transparent;\n color: ${outlineColor};\n border-color: ${outlineColor};\n &:hover {\n background: ${semantic.color.state.hover};\n color: ${outlineHoverColor};\n border-color: ${outlineHoverColor};\n }\n &:active {\n background: ${semantic.color.state.pressed};\n color: ${outlineHoverColor};\n border-color: ${outlineHoverColor};\n }\n `,\n solid: css`\n background: ${solidBg};\n color: ${solidText};\n border-color: ${solidBorder};\n &:hover {\n background: ${solidHover};\n border-color: ${solidHover};\n box-shadow: ${semantic.shadow.xs};\n }\n &:active {\n background: ${solidActive};\n border-color: ${solidActive};\n box-shadow: ${semantic.shadow.sm};\n }\n `,\n }\n }\n const buttonVariants: Record<\n ButtonVariant,\n { ghost: string; outline: string; solid: string }\n > = {\n primary: buildButtonVariant('primary'),\n secondary: buildButtonVariant('secondary'),\n info: buildButtonVariant('info'),\n warning: buildButtonVariant('warning'),\n danger: buildButtonVariant('danger'),\n success: buildButtonVariant('success'),\n }\n\n const wrapperSize = 320\n const legacyTagColor = (color: keyof typeof tokens.colors) => {\n const semanticRole =\n color === 'red'\n ? 'error'\n : color === 'yellow'\n ? 'warning'\n : color === 'green'\n ? 'success'\n : color === 'blue' || color === 'cyan' || color === 'teal'\n ? 'info'\n : 'neutral'\n return semantic.color.status[semanticRole].solidFill\n }\n\n return {\n logo: css`\n cursor: pointer;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n border: none;\n width: 48px;\n height: 48px;\n font-family: ${semantic.font.body};\n gap: ${semantic.gap.tight};\n padding: 0;\n &:hover {\n opacity: 0.7;\n }\n `,\n\n selectWrapper: css`\n width: 100%;\n max-width: ${wrapperSize}px;\n display: flex;\n flex-direction: column;\n gap: ${semantic.gap.tight};\n `,\n selectContainer: css`\n width: 100%;\n &::selection,\n & *::selection {\n background: ${semantic.color.state.selectionFill};\n color: ${semantic.color.state.selectionText};\n }\n `,\n selectLabel: css`\n font: ${semantic.type.labelSm.weight} ${semantic.type.labelSm.size} /\n ${semantic.type.labelSm.lineHeight} ${semantic.font.body};\n letter-spacing: ${semantic.type.labelSm.tracking};\n color: ${semantic.color.text.primary};\n text-align: left;\n `,\n selectDescription: css`\n font: ${semantic.type.bodyXs.weight} ${semantic.type.bodyXs.size} /\n ${semantic.type.bodyXs.lineHeight} ${semantic.font.body};\n color: ${semantic.color.text.secondary};\n margin: 0;\n text-align: left;\n `,\n select: css`\n /* The platform chevron is drawn in the OS accent, which reads as foreign\n next to the rest of the panel — draw our own from currentColor instead\n so it follows the theme. */\n appearance: none;\n -webkit-appearance: none;\n width: 100%;\n box-sizing: border-box;\n padding: ${semantic.padding.controlBlock} 28px\n ${semantic.padding.controlBlock} ${semantic.padding.controlInline};\n border-radius: ${semantic.radius.control};\n background-color: ${semantic.color.surface.elevated};\n background-image:\n linear-gradient(45deg, transparent 50%, currentColor 50%),\n linear-gradient(135deg, currentColor 50%, transparent 50%);\n background-position:\n right 14px center,\n right 9px center;\n background-size:\n 5px 5px,\n 5px 5px;\n background-repeat: no-repeat;\n color: ${semantic.color.text.primary};\n border: 1px solid ${semantic.color.border.control};\n font: ${semantic.type.bodySm.weight} ${semantic.type.bodySm.size} /\n ${semantic.type.bodySm.lineHeight} ${semantic.font.body};\n transition:\n border-color 0.15s ease,\n background-color 0.15s ease;\n cursor: pointer;\n\n &:hover {\n border-color: ${semantic.color.border.focus};\n }\n\n &:focus-visible {\n outline: 2px solid ${semantic.color.border.focus};\n outline-offset: 2px;\n }\n /* The custom chevron is decorative; let the platform draw its own when\n the user forces system colours. */\n @media (forced-colors: active) {\n appearance: auto;\n background-image: none;\n }\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n `,\n inputWrapper: css`\n width: 100%;\n max-width: ${wrapperSize}px;\n display: flex;\n flex-direction: column;\n gap: ${semantic.gap.tight};\n `,\n inputContainer: css`\n width: 100%;\n &::selection,\n & *::selection {\n background: ${semantic.color.state.selectionFill};\n color: ${semantic.color.state.selectionText};\n }\n `,\n inputLabel: css`\n font: ${semantic.type.labelSm.weight} ${semantic.type.labelSm.size} /\n ${semantic.type.labelSm.lineHeight} ${semantic.font.body};\n letter-spacing: ${semantic.type.labelSm.tracking};\n color: ${semantic.color.text.primary};\n text-align: left;\n `,\n inputDescription: css`\n font: ${semantic.type.bodyXs.weight} ${semantic.type.bodyXs.size} /\n ${semantic.type.bodyXs.lineHeight} ${semantic.font.body};\n color: ${semantic.color.text.secondary};\n margin: 0;\n text-align: left;\n `,\n input: css`\n appearance: none;\n box-sizing: border-box;\n width: 100%;\n padding: ${semantic.padding.controlBlock}\n ${semantic.padding.controlInline};\n border-radius: ${semantic.radius.control};\n background-color: ${semantic.color.surface.elevated};\n color: ${semantic.color.text.primary};\n border: 1px solid ${semantic.color.border.control};\n font: ${semantic.type.bodySm.weight} ${semantic.type.bodySm.size} /\n ${semantic.type.bodySm.lineHeight} ${semantic.font.body};\n transition: all 0.15s ease;\n\n &::placeholder {\n color: ${semantic.color.text.secondary};\n }\n\n &:hover {\n border-color: ${semantic.color.border.focus};\n }\n\n &:focus {\n outline: 2px solid ${semantic.color.border.focus};\n outline-offset: 2px;\n }\n `,\n checkboxWrapper: css`\n display: flex;\n align-items: flex-start;\n gap: ${semantic.gap.control};\n cursor: pointer;\n user-select: none;\n padding: ${semantic.padding.controlBlock}\n ${semantic.padding.controlInline};\n border-radius: ${semantic.radius.control};\n transition: background-color 0.15s ease;\n\n &:hover {\n background-color: ${semantic.color.state.hover};\n }\n `,\n checkboxContainer: css`\n width: 100%;\n &::selection,\n & *::selection {\n background: ${semantic.color.state.selectionFill};\n color: ${semantic.color.state.selectionText};\n }\n `,\n checkboxLabelContainer: css`\n display: flex;\n flex-direction: column;\n gap: ${semantic.gap.tight};\n flex: 1;\n `,\n checkbox: css`\n appearance: none;\n width: ${semantic.space[4]};\n height: ${semantic.space[4]};\n border: 2px solid ${semantic.color.border.control};\n border-radius: ${semantic.radius.control};\n background-color: ${semantic.color.surface.elevated};\n display: grid;\n place-items: center;\n transition: all 0.15s ease;\n flex-shrink: 0;\n margin-top: ${semantic.space[1]};\n\n &:hover {\n border-color: ${semantic.color.border.focus};\n }\n\n &:focus-visible {\n outline: 2px solid ${semantic.color.border.focus};\n outline-offset: 2px;\n }\n\n &:checked {\n background-color: ${semantic.color.state.selectionFill};\n border-color: ${semantic.color.state.selectionFill};\n }\n\n &:checked::after {\n content: '';\n width: ${semantic.space[1]};\n height: ${semantic.space[2]};\n border: solid ${semantic.color.state.selectionText};\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n margin-top: -3px;\n }\n `,\n checkboxLabel: css`\n color: ${semantic.color.text.primary};\n font: ${semantic.type.labelSm.weight} ${semantic.type.labelSm.size} /\n ${semantic.type.labelSm.lineHeight} ${semantic.font.body};\n letter-spacing: ${semantic.type.labelSm.tracking};\n text-align: left;\n `,\n checkboxDescription: css`\n color: ${semantic.color.text.secondary};\n font: ${semantic.type.bodyXs.weight} ${semantic.type.bodyXs.size} /\n ${semantic.type.bodyXs.lineHeight} ${semantic.font.body};\n text-align: left;\n `,\n button: {\n base: css`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-family: ${semantic.font.body};\n font-size: ${semantic.type.bodyXs.size};\n line-height: ${semantic.type.bodyXs.lineHeight};\n font-weight: ${semantic.type.labelSm.weight};\n border-radius: ${semantic.radius.control};\n padding: ${semantic.padding.controlBlock}\n ${semantic.padding.controlInline};\n cursor: pointer;\n transition:\n background 0.15s,\n color 0.15s,\n border 0.15s,\n box-shadow 0.15s;\n &:focus-visible {\n outline: 2px solid ${semantic.color.border.focus};\n outline-offset: 2px;\n }\n border-width: 1px;\n border-style: solid;\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n }\n `,\n variant(variant: ButtonVariant, outline?: boolean, ghost?: boolean) {\n const v = buttonVariants[variant]\n if (ghost) {\n return v.ghost\n }\n if (outline) {\n return v.outline\n }\n return v.solid\n },\n },\n tag: {\n dot: (color: keyof typeof tokens.colors) => css`\n width: ${semantic.space[1]};\n height: ${semantic.space[1]};\n border-radius: 9999px;\n background-color: ${legacyTagColor(color)};\n `,\n base: css`\n display: flex;\n gap: ${semantic.gap.tight};\n box-sizing: border-box;\n background: ${semantic.color.surface.subtle};\n color: ${semantic.color.text.primary};\n border-radius: ${semantic.radius.control};\n font-size: ${semantic.type.bodyXs.size};\n line-height: ${semantic.type.bodyXs.lineHeight};\n font-family: ${semantic.font.body};\n padding: ${semantic.padding.controlBlock}\n ${semantic.padding.controlInline};\n align-items: center;\n font-weight: ${semantic.type.labelSm.weight};\n border: 1px solid ${semantic.color.border.control};\n user-select: none;\n position: relative;\n &::selection,\n & *::selection {\n background: ${semantic.color.state.selectionFill};\n color: ${semantic.color.state.selectionText};\n }\n &:focus-visible {\n outline-offset: 2px;\n outline: 2px solid ${semantic.color.border.focus};\n }\n `,\n label: css`\n font-size: ${semantic.type.bodyXs.size};\n line-height: ${semantic.type.bodyXs.lineHeight};\n font-family: ${semantic.font.body};\n letter-spacing: ${semantic.type.labelSm.tracking};\n `,\n count: css`\n font-size: ${semantic.type.bodyXs.size};\n padding: 0 ${semantic.space[1]};\n display: flex;\n align-items: center;\n justify-content: center;\n color: ${semantic.color.text.secondary};\n background-color: ${semantic.color.state.hover};\n border-radius: ${semantic.radius.control};\n line-height: ${semantic.type.bodyXs.lineHeight};\n font-family: ${semantic.font.body};\n font-variant-numeric: tabular-nums;\n min-height: ${semantic.space[4]};\n `,\n },\n tree: {\n info: css`\n color: ${semantic.color.text.secondary};\n font-size: ${semantic.type.bodyXs.size};\n margin-right: ${semantic.space[1]};\n `,\n actionButton: css`\n background-color: transparent;\n color: ${semantic.color.text.secondary};\n border: none;\n display: inline-flex;\n padding: 0;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: ${semantic.space[3]};\n height: ${semantic.space[3]};\n position: relative;\n z-index: 1;\n\n &:hover svg {\n color: ${semantic.color.text.primary};\n }\n\n &:focus-visible {\n border-radius: ${semantic.radius.control};\n outline: 2px solid ${semantic.color.border.focus};\n outline-offset: 2px;\n }\n `,\n actionSuccess: css`\n color: ${semantic.color.status.success.text};\n `,\n actionError: css`\n color: ${semantic.color.status.error.text};\n `,\n expanderContainer: css`\n position: relative;\n `,\n expander: css`\n position: absolute;\n cursor: pointer;\n left: -16px;\n top: 3px;\n & path {\n stroke: ${semantic.color.text.link};\n }\n & svg {\n width: ${semantic.space[3]};\n height: ${semantic.space[3]};\n }\n\n display: inline-flex;\n align-items: center;\n transition: all 0.1s ease;\n &:focus-visible {\n border-radius: ${semantic.radius.control};\n outline: 2px solid ${semantic.color.border.focus};\n outline-offset: 2px;\n }\n `,\n expandedLine: (hasBorder: boolean) => css`\n display: block;\n padding-left: ${semantic.space[3]};\n margin-left: -${semantic.space[3]};\n ${hasBorder\n ? `border-left: 1px solid ${semantic.color.border.decorative};`\n : ''}\n `,\n collapsible: css`\n cursor: pointer;\n transition: all 0.2s ease;\n &:hover {\n background-color: ${semantic.color.state.hover};\n border-radius: ${semantic.radius.control};\n padding: 0 ${semantic.space[1]};\n }\n `,\n actions: css`\n display: inline-flex;\n margin-left: ${semantic.space[2]};\n gap: ${semantic.gap.control};\n align-items: center;\n & svg {\n height: 12px;\n width: 12px;\n }\n `,\n valueCollapsed: css`\n color: ${semantic.color.text.secondary};\n `,\n valueFunction: css`\n color: ${semantic.color.syntax.keyword};\n `,\n valueString: css`\n color: ${semantic.color.syntax.string};\n `,\n valueNumber: css`\n color: ${semantic.color.syntax.number};\n `,\n valueBoolean: css`\n color: ${semantic.color.syntax.keyword};\n `,\n valueNull: css`\n color: ${semantic.color.syntax.comment};\n font-style: italic;\n `,\n valueKey: css`\n color: ${semantic.color.syntax.property};\n `,\n valueBraces: css`\n color: ${semantic.color.syntax.punctuation};\n `,\n valueContainer: (isRoot: boolean) => css`\n display: block;\n font-family: ${semantic.font.mono};\n &::selection,\n & *::selection {\n background: ${semantic.color.state.selectionFill};\n color: ${semantic.color.state.selectionText};\n }\n & [data-tsd-syntax]::selection {\n background: ${semantic.color.syntax.selectionFill};\n color: ${semantic.color.syntax.selectionText};\n }\n margin-left: ${isRoot ? '0' : semantic.space[4]};\n\n &:not(:hover) .actions {\n display: none;\n }\n\n &:hover .actions {\n display: inline-flex;\n }\n `,\n },\n header: {\n row: css`\n display: flex;\n justify-content: space-between;\n align-items: center;\n &::selection,\n & *::selection {\n background: ${semantic.color.state.selectionFill};\n color: ${semantic.color.state.selectionText};\n }\n padding: ${semantic.space[2]} ${semantic.space[3]};\n gap: ${semantic.gap.control};\n background: ${semantic.color.surface.elevated};\n color: ${semantic.color.text.primary};\n border-bottom: ${semantic.color.border.decorative} 1px solid;\n align-items: center;\n `,\n logoAndToggleContainer: css`\n display: flex;\n gap: ${semantic.gap.section};\n align-items: center;\n & > button {\n padding: 0;\n background: transparent;\n border: none;\n display: flex;\n gap: ${semantic.gap.tight};\n flex-direction: column;\n }\n `,\n logo: css`\n cursor: pointer;\n display: flex;\n flex-direction: column;\n background-color: transparent;\n border: none;\n gap: ${semantic.gap.tight};\n padding: 0;\n &:hover {\n opacity: 0.7;\n }\n &:focus-visible {\n outline-offset: 2px;\n border-radius: ${semantic.radius.control};\n outline: 2px solid ${semantic.color.border.focus};\n }\n `,\n tanstackLogo: css`\n font-size: ${semantic.type.headingPane.size};\n line-height: ${semantic.type.headingPane.lineHeight};\n font-family: ${semantic.font.display};\n font-weight: ${semantic.type.headingPane.weight};\n white-space: nowrap;\n color: ${semantic.color.text.primary};\n `,\n flavorLogo: (flavorLight: string, flavorDark: string) => css`\n font-weight: ${semantic.type.labelSm.weight};\n font-size: ${semantic.type.labelSm.size};\n line-height: ${semantic.type.labelSm.lineHeight};\n font-family: ${semantic.font.body};\n letter-spacing: ${semantic.type.labelSm.tracking};\n color: ${t(flavorLight, flavorDark)};\n white-space: nowrap;\n `,\n },\n section: {\n main: css`\n margin-bottom: ${semantic.space[4]};\n padding: ${semantic.space[4]};\n background-color: ${semantic.color.surface.subtle};\n border: 1px solid ${semantic.color.border.decorative};\n border-radius: ${semantic.radius.overlay};\n box-shadow: ${semantic.shadow.xs};\n &::selection,\n & *::selection {\n background: ${semantic.color.state.selectionFill};\n color: ${semantic.color.state.selectionText};\n }\n `,\n title: css`\n font-size: ${semantic.type.headingPane.size};\n line-height: ${semantic.type.headingPane.lineHeight};\n font-weight: ${semantic.type.headingPane.weight};\n color: ${semantic.color.text.primary};\n font-family: ${semantic.font.display};\n margin: 0 0 ${semantic.space[3]} 0;\n padding-bottom: ${semantic.space[2]};\n border-bottom: 1px solid ${semantic.color.border.decorative};\n display: flex;\n align-items: center;\n gap: ${semantic.gap.control};\n text-align: left;\n `,\n icon: css`\n height: 18px;\n width: 18px;\n & > svg {\n height: 100%;\n width: 100%;\n }\n color: ${semantic.color.text.secondary};\n `,\n description: css`\n color: ${semantic.color.text.secondary};\n font: ${semantic.type.bodyXs.weight} ${semantic.type.bodyXs.size} /\n ${semantic.type.bodyXs.lineHeight} ${semantic.font.body};\n margin: 0 0 ${semantic.space[4]} 0;\n text-align: left;\n `,\n },\n mainPanel: {\n panel: (withPadding: boolean) => css`\n /* space[4] keeps the panel's own gutter equal to the workbench gutter,\n so a destination's content lines up with the tab strip above it. */\n padding: ${withPadding ? semantic.space[4] : 0};\n background: ${semantic.color.surface.workspace};\n color: ${semantic.color.text.primary};\n overflow-y: auto;\n /* Keep a scroll gesture inside the devtools instead of chaining it on\n to the host page once this panel hits its end. */\n overscroll-behavior: contain;\n height: 100%;\n &::selection,\n & *::selection {\n background: ${semantic.color.state.selectionFill};\n color: ${semantic.color.state.selectionText};\n }\n `,\n },\n }\n}\n\nexport function createStyles() {\n const { theme } = createTheme()\n const [styles, setStyles] = createSignal(stylesFactory(theme()))\n createEffect(() => {\n setStyles(stylesFactory(theme()))\n })\n return styles\n}\n"],"mappings":";;;;;AASA,IAAa,MAAM,OAAO;AAC1B,IAAM,iBAAiB,UAAiC;CACtD,MAAM,WAAW,qBAAqB,MAAM;CAE5C,MAAM,KAAK,OAAe,SAAkB,UAAU,UAAU,QAAQ;CACxE,MAAM,sBAAsB,YAA2B;EACrD,MAAM,aACJ,YAAY,WACR,UACA,YAAY,aAAa,YAAY,cACnC,YACA;EACR,MAAM,SAAS,SAAS,MAAM,OAAO;EACrC,MAAM,eAAe,OAAO;EAC5B,MAAM,oBAAoB,OAAO;EACjC,MAAM,UAAU,OAAO;EACvB,MAAM,aAAa,OAAO;EAC1B,MAAM,cAAc,OAAO;EAC3B,MAAM,YAAY,OAAO;EACzB,MAAM,cAAc,OAAO;EAE3B,OAAO;GACL,OAAO,GAAG;;iBAEC,aAAa;;;wBAGN,SAAS,MAAM,MAAM,MAAM;mBAChC,kBAAkB;;;wBAGb,SAAS,MAAM,MAAM,QAAQ;mBAClC,kBAAkB;;;GAG/B,SAAS,GAAG;;iBAED,aAAa;wBACN,aAAa;;wBAEb,SAAS,MAAM,MAAM,MAAM;mBAChC,kBAAkB;0BACX,kBAAkB;;;wBAGpB,SAAS,MAAM,MAAM,QAAQ;mBAClC,kBAAkB;0BACX,kBAAkB;;;GAGtC,OAAO,GAAG;sBACM,QAAQ;iBACb,UAAU;wBACH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AU,aAAa;CAC/B,MAAM,CAAC,QAAQ,aAAa,aAAa,cAAc,OAAO,CAAC,CAAC;CAChE,mBAAmB;EACjB,UAAU,cAAc,OAAO,CAAC,CAAC;GACjC;CACF,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/devtools-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "TanStack Devtools UI is a set of UI components for building devtool panels for your application.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"directory": "packages/devtools-ui"
|
|
11
11
|
},
|
|
12
12
|
"homepage": "https://tanstack.com/devtools",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/TanStack/devtools/issues"
|
|
15
|
+
},
|
|
13
16
|
"funding": {
|
|
14
17
|
"type": "github",
|
|
15
18
|
"url": "https://github.com/sponsors/tannerlinsley"
|
|
@@ -33,6 +36,12 @@
|
|
|
33
36
|
"default": "./dist/esm/icons.js"
|
|
34
37
|
}
|
|
35
38
|
},
|
|
39
|
+
"./internal": {
|
|
40
|
+
"import": {
|
|
41
|
+
"types": "./dist/esm/internal.d.ts",
|
|
42
|
+
"default": "./dist/esm/internal.js"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
36
45
|
"./package.json": "./package.json"
|
|
37
46
|
},
|
|
38
47
|
"sideEffects": false,
|
|
@@ -41,7 +50,9 @@
|
|
|
41
50
|
},
|
|
42
51
|
"files": [
|
|
43
52
|
"dist/",
|
|
44
|
-
"src"
|
|
53
|
+
"src",
|
|
54
|
+
"!src/assets/fonts/*.ttf",
|
|
55
|
+
"!src/assets/fonts/*.woff2"
|
|
45
56
|
],
|
|
46
57
|
"dependencies": {
|
|
47
58
|
"clsx": "^2.1.1",
|
|
@@ -62,7 +73,8 @@
|
|
|
62
73
|
"test:lib": "vitest",
|
|
63
74
|
"test:lib:dev": "pnpm test:lib --watch",
|
|
64
75
|
"test:types": "tsc",
|
|
65
|
-
"test:
|
|
76
|
+
"test:assets": "pnpm build && node ./scripts/check-font-assets.mjs",
|
|
77
|
+
"test:build": "pnpm test:assets && publint --strict",
|
|
66
78
|
"build": "vite build"
|
|
67
79
|
}
|
|
68
80
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2022 The Bricolage Grotesque Project Authors (https://github.com/ateliertriay/bricolage)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font creation
|
|
14
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
15
|
+
open framework in which fonts may be shared and improved in partnership
|
|
16
|
+
with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply
|
|
25
|
+
to any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software components as
|
|
36
|
+
distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
39
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
40
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
41
|
+
new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION AND CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
49
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
50
|
+
Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components,
|
|
53
|
+
in Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
64
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
65
|
+
presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created
|
|
77
|
+
using the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createMemo } from 'solid-js'
|
|
2
2
|
import clsx from 'clsx'
|
|
3
|
-
import {
|
|
3
|
+
import { createStyles } from '../styles/use-styles'
|
|
4
4
|
|
|
5
5
|
// types
|
|
6
6
|
import type { JSX } from 'solid-js'
|
|
@@ -20,7 +20,7 @@ type ButtonProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
20
20
|
className?: string
|
|
21
21
|
}
|
|
22
22
|
export function Button(props: ButtonProps) {
|
|
23
|
-
const styles =
|
|
23
|
+
const styles = createStyles()
|
|
24
24
|
|
|
25
25
|
const classes = createMemo(() => {
|
|
26
26
|
const variant = props.variant || 'primary'
|
|
@@ -32,7 +32,7 @@ export function Button(props: ButtonProps) {
|
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
|
-
<button {...props} class={classes()}>
|
|
35
|
+
<button data-tsd-control {...props} class={classes()}>
|
|
36
36
|
{props.children}
|
|
37
37
|
</button>
|
|
38
38
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createSignal } from 'solid-js'
|
|
2
|
-
import {
|
|
1
|
+
import { createSignal, createUniqueId } from 'solid-js'
|
|
2
|
+
import { createStyles } from '../styles/use-styles'
|
|
3
3
|
|
|
4
4
|
interface CheckboxProps {
|
|
5
5
|
label?: string
|
|
@@ -9,8 +9,9 @@ interface CheckboxProps {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function Checkbox(props: CheckboxProps) {
|
|
12
|
-
const styles =
|
|
12
|
+
const styles = createStyles()
|
|
13
13
|
const [isChecked, setIsChecked] = createSignal(props.checked || false)
|
|
14
|
+
const descriptionId = `${createUniqueId()}-description`
|
|
14
15
|
|
|
15
16
|
const handleChange = (e: Event) => {
|
|
16
17
|
const checked = (e.target as HTMLInputElement).checked
|
|
@@ -22,8 +23,11 @@ export function Checkbox(props: CheckboxProps) {
|
|
|
22
23
|
<div class={styles().checkboxContainer}>
|
|
23
24
|
<label class={styles().checkboxWrapper}>
|
|
24
25
|
<input
|
|
26
|
+
data-tsd-control
|
|
27
|
+
data-tsd-selected={isChecked() ? 'true' : undefined}
|
|
28
|
+
aria-describedby={props.description ? descriptionId : undefined}
|
|
25
29
|
type="checkbox"
|
|
26
|
-
checked={isChecked()}
|
|
30
|
+
checked={props.checked ?? isChecked()}
|
|
27
31
|
class={styles().checkbox}
|
|
28
32
|
onInput={handleChange}
|
|
29
33
|
/>
|
|
@@ -32,7 +36,7 @@ export function Checkbox(props: CheckboxProps) {
|
|
|
32
36
|
<span class={styles().checkboxLabel}>{props.label}</span>
|
|
33
37
|
)}
|
|
34
38
|
{props.description && (
|
|
35
|
-
<span class={styles().checkboxDescription}>
|
|
39
|
+
<span id={descriptionId} class={styles().checkboxDescription}>
|
|
36
40
|
{props.description}
|
|
37
41
|
</span>
|
|
38
42
|
)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import clsx from 'clsx'
|
|
2
|
-
import {
|
|
2
|
+
import { createStyles } from '../styles/use-styles'
|
|
3
3
|
import type { JSX } from 'solid-js/jsx-runtime'
|
|
4
4
|
|
|
5
5
|
export function Header({
|
|
@@ -7,9 +7,11 @@ export function Header({
|
|
|
7
7
|
class: className,
|
|
8
8
|
...rest
|
|
9
9
|
}: JSX.IntrinsicElements['header']) {
|
|
10
|
-
const styles =
|
|
10
|
+
const styles = createStyles()
|
|
11
11
|
return (
|
|
12
12
|
<header
|
|
13
|
+
data-tsd-surface
|
|
14
|
+
data-tsd-separator
|
|
13
15
|
class={clsx(styles().header.row, 'tsqd-header', className)}
|
|
14
16
|
{...rest}
|
|
15
17
|
>
|
|
@@ -30,10 +32,14 @@ export function HeaderLogo({
|
|
|
30
32
|
}
|
|
31
33
|
onClick?: JSX.EventHandler<HTMLButtonElement, MouseEvent>
|
|
32
34
|
}) {
|
|
33
|
-
const styles =
|
|
35
|
+
const styles = createStyles()
|
|
34
36
|
return (
|
|
35
37
|
<div class={styles().header.logoAndToggleContainer}>
|
|
36
|
-
<button
|
|
38
|
+
<button
|
|
39
|
+
data-tsd-control
|
|
40
|
+
class={clsx(styles().header.logo)}
|
|
41
|
+
onClick={onClick}
|
|
42
|
+
>
|
|
37
43
|
<span class={clsx(styles().header.tanstackLogo)}>TANSTACK</span>
|
|
38
44
|
<span
|
|
39
45
|
class={clsx(styles().header.flavorLogo(flavor.light, flavor.dark))}
|
package/src/components/icons.tsx
CHANGED
|
@@ -698,7 +698,7 @@ export function PiP() {
|
|
|
698
698
|
)
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
export function CopiedCopier(
|
|
701
|
+
export function CopiedCopier(_props: { theme: TanStackDevtoolsTheme }) {
|
|
702
702
|
return (
|
|
703
703
|
<svg
|
|
704
704
|
width="24"
|
|
@@ -709,7 +709,7 @@ export function CopiedCopier(props: { theme: TanStackDevtoolsTheme }) {
|
|
|
709
709
|
>
|
|
710
710
|
<path
|
|
711
711
|
d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"
|
|
712
|
-
stroke=
|
|
712
|
+
stroke="currentColor"
|
|
713
713
|
stroke-width="2"
|
|
714
714
|
stroke-linecap="round"
|
|
715
715
|
stroke-linejoin="round"
|
|
@@ -729,7 +729,7 @@ export function ErrorCopier() {
|
|
|
729
729
|
>
|
|
730
730
|
<path
|
|
731
731
|
d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"
|
|
732
|
-
stroke="
|
|
732
|
+
stroke="currentColor"
|
|
733
733
|
stroke-width="2"
|
|
734
734
|
stroke-linecap="round"
|
|
735
735
|
stroke-linejoin="round"
|
|
@@ -770,7 +770,7 @@ export function Check(props: { checked: boolean; theme: TanStackDevtoolsTheme })
|
|
|
770
770
|
>
|
|
771
771
|
<path
|
|
772
772
|
d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"
|
|
773
|
-
stroke=
|
|
773
|
+
stroke="currentColor"
|
|
774
774
|
stroke-width="2"
|
|
775
775
|
stroke-linecap="round"
|
|
776
776
|
stroke-linejoin="round"
|
|
@@ -787,7 +787,7 @@ export function Check(props: { checked: boolean; theme: TanStackDevtoolsTheme })
|
|
|
787
787
|
>
|
|
788
788
|
<path
|
|
789
789
|
d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"
|
|
790
|
-
stroke=
|
|
790
|
+
stroke="currentColor"
|
|
791
791
|
stroke-width="2"
|
|
792
792
|
stroke-linecap="round"
|
|
793
793
|
stroke-linejoin="round"
|
package/src/components/input.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createSignal } from 'solid-js'
|
|
2
|
-
import {
|
|
1
|
+
import { createSignal, createUniqueId } from 'solid-js'
|
|
2
|
+
import { createStyles } from '../styles/use-styles'
|
|
3
3
|
|
|
4
4
|
interface InputProps {
|
|
5
5
|
label?: string
|
|
@@ -11,8 +11,10 @@ interface InputProps {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export function Input(props: InputProps) {
|
|
14
|
-
const styles =
|
|
14
|
+
const styles = createStyles()
|
|
15
15
|
const [val, setVal] = createSignal(props.value || '')
|
|
16
|
+
const id = createUniqueId()
|
|
17
|
+
const descriptionId = `${id}-description`
|
|
16
18
|
|
|
17
19
|
const handleChange = (e: Event) => {
|
|
18
20
|
const value = (e.target as HTMLInputElement).value
|
|
@@ -24,12 +26,19 @@ export function Input(props: InputProps) {
|
|
|
24
26
|
<div class={styles().inputContainer}>
|
|
25
27
|
<div class={styles().inputWrapper}>
|
|
26
28
|
{props.label && (
|
|
27
|
-
<label class={styles().inputLabel}>
|
|
29
|
+
<label for={id} class={styles().inputLabel}>
|
|
30
|
+
{props.label}
|
|
31
|
+
</label>
|
|
28
32
|
)}
|
|
29
33
|
{props.description && (
|
|
30
|
-
<p class={styles().inputDescription}>
|
|
34
|
+
<p id={descriptionId} class={styles().inputDescription}>
|
|
35
|
+
{props.description}
|
|
36
|
+
</p>
|
|
31
37
|
)}
|
|
32
38
|
<input
|
|
39
|
+
id={id}
|
|
40
|
+
data-tsd-control
|
|
41
|
+
aria-describedby={props.description ? descriptionId : undefined}
|
|
33
42
|
type={props.type || 'text'}
|
|
34
43
|
class={styles().input}
|
|
35
44
|
value={val()}
|
package/src/components/logo.tsx
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { createUniqueId } from 'solid-js'
|
|
2
|
-
import {
|
|
2
|
+
import { createStyles } from '../styles/use-styles'
|
|
3
3
|
|
|
4
4
|
export function TanStackLogo() {
|
|
5
5
|
const id = createUniqueId()
|
|
6
|
-
const styles =
|
|
6
|
+
const styles = createStyles()
|
|
7
7
|
return (
|
|
8
8
|
<svg
|
|
9
|
+
data-tsd-surface
|
|
9
10
|
class={styles().logo}
|
|
10
11
|
xmlns="http://www.w3.org/2000/svg"
|
|
11
12
|
enable-background="new 0 0 634 633"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import clsx from 'clsx'
|
|
2
|
-
import {
|
|
2
|
+
import { createStyles } from '../styles/use-styles'
|
|
3
3
|
import type { JSX } from 'solid-js/jsx-runtime'
|
|
4
4
|
|
|
5
5
|
type PanelProps = JSX.IntrinsicElements['div'] & {
|
|
@@ -14,10 +14,11 @@ export const MainPanel = ({
|
|
|
14
14
|
class: classStyles,
|
|
15
15
|
withPadding,
|
|
16
16
|
}: PanelProps) => {
|
|
17
|
-
const styles =
|
|
17
|
+
const styles = createStyles()
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
20
|
<div
|
|
21
|
+
data-tsd-surface
|
|
21
22
|
class={clsx(
|
|
22
23
|
styles().mainPanel.panel(Boolean(withPadding)),
|
|
23
24
|
className,
|