@photon-ai/pho-ui 4.20.1 → 4.22.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/README.md +1 -1
- package/dist/chunks/{basic-page-B78a6jpw.js → basic-page-BYA1lkzf.js} +13 -13
- package/dist/chunks/basic-page-BYA1lkzf.js.map +1 -0
- package/dist/chunks/{chat-Dfbkf7g8.js → chat-j7XEdKEo.js} +48 -48
- package/dist/chunks/chat-j7XEdKEo.js.map +1 -0
- package/dist/chunks/{checkbox-DpWLbKVS.js → checkbox-D8smFViR.js} +2 -2
- package/dist/chunks/{checkbox-DpWLbKVS.js.map → checkbox-D8smFViR.js.map} +1 -1
- package/dist/chunks/chrome-Dyvv0FVf.js +14 -0
- package/dist/chunks/{chrome-Ds7WykBJ.js.map → chrome-Dyvv0FVf.js.map} +1 -1
- package/dist/chunks/{combobox-OQOi5hlB.js → combobox-C_yfFCFL.js} +2 -2
- package/dist/chunks/{combobox-OQOi5hlB.js.map → combobox-C_yfFCFL.js.map} +1 -1
- package/dist/chunks/{data-table-CAz_8HQw.js → data-table-C1tLUdw0.js} +4 -4
- package/dist/chunks/{data-table-CAz_8HQw.js.map → data-table-C1tLUdw0.js.map} +1 -1
- package/dist/chunks/{date-picker-vJQrTol9.js → date-picker-D-sWo3i8.js} +2 -2
- package/dist/chunks/{date-picker-vJQrTol9.js.map → date-picker-D-sWo3i8.js.map} +1 -1
- package/dist/chunks/{description-list-Duhhralt.js → description-list-DcTvBHzI.js} +6 -6
- package/dist/chunks/{description-list-Duhhralt.js.map → description-list-DcTvBHzI.js.map} +1 -1
- package/dist/chunks/{error-BObcQClz.js → error-BZU9vgnj.js} +2 -2
- package/dist/chunks/{error-BObcQClz.js.map → error-BZU9vgnj.js.map} +1 -1
- package/dist/chunks/{filter-bar-qqCZf1x4.js → filter-bar-CLLonntH.js} +2 -2
- package/dist/chunks/{filter-bar-qqCZf1x4.js.map → filter-bar-CLLonntH.js.map} +1 -1
- package/dist/chunks/{menu-CC3fhf83.js → menu-CZSn8JAX.js} +2 -2
- package/dist/chunks/{menu-CC3fhf83.js.map → menu-CZSn8JAX.js.map} +1 -1
- package/dist/chunks/{popover-B0NBrYV5.js → popover-Dtp9C6Qg.js} +4 -4
- package/dist/chunks/{popover-B0NBrYV5.js.map → popover-Dtp9C6Qg.js.map} +1 -1
- package/dist/chunks/{select-xhSvDNbw.js → select-Dux2SBVc.js} +2 -2
- package/dist/chunks/{select-xhSvDNbw.js.map → select-Dux2SBVc.js.map} +1 -1
- package/dist/chunks/{sidebar-DHYyBBUj.js → sidebar-BsBlAVM9.js} +2 -2
- package/dist/chunks/sidebar-BsBlAVM9.js.map +1 -0
- package/dist/chunks/{stat-VxA1SvS_.js → stat-DUq4roVt.js} +16 -16
- package/dist/chunks/{stat-VxA1SvS_.js.map → stat-DUq4roVt.js.map} +1 -1
- package/dist/chunks/{toast-B1GAdxXP.js → toast-K549iZEX.js} +2 -2
- package/dist/chunks/{toast-B1GAdxXP.js.map → toast-K549iZEX.js.map} +1 -1
- package/dist/chunks/{trace-D9F0sne7.js → trace-5Rh1ade9.js} +2 -2
- package/dist/chunks/{trace-D9F0sne7.js.map → trace-5Rh1ade9.js.map} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.js.map +1 -1
- package/dist/components/autocomplete.js +5 -5
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/chat.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/context-menu.js +5 -5
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/data-table.js +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/description-list.js +1 -1
- package/dist/components/error.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/field.js.map +1 -1
- package/dist/components/fieldset.js +5 -5
- package/dist/components/fieldset.js.map +1 -1
- package/dist/components/filter-bar.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/meter.js +12 -12
- package/dist/components/meter.js.map +1 -1
- package/dist/components/notification.js +1 -1
- package/dist/components/notification.js.map +1 -1
- package/dist/components/phone-input.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +16 -16
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/scope.js +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +16 -16
- package/dist/components/slider.js.map +1 -1
- package/dist/components/stat.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/trace.js +1 -1
- package/dist/index.js +10 -10
- package/dist/sections/basic-page.js +2 -2
- package/dist/sections/sidebar.js +1 -1
- package/dist/src/components/data-table/chrome.d.ts +1 -1
- package/dist/src/sections/sidebar/sidebar.d.ts +7 -2
- package/package.json +1 -1
- package/src/styles/fonts.css +50 -11
- package/src/styles/theme.css +9 -7
- package/dist/chunks/basic-page-B78a6jpw.js.map +0 -1
- package/dist/chunks/chat-Dfbkf7g8.js.map +0 -1
- package/dist/chunks/chrome-Ds7WykBJ.js +0 -14
- package/dist/chunks/sidebar-DHYyBBUj.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","names":["BaseProgress","cn","jsx","Progress$1","Root","className","props","Label","Value","Track","Indicator","Progress"],"sources":["../../src/components/progress/progress.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Progress as BaseProgress } from \"@base-ui/react/progress\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseProgress.Root>) {\n return (\n <BaseProgress.Root\n className={cn(\"flex w-full flex-col gap-2\", className)}\n {...props}\n />\n );\n}\n\nfunction Label({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Label>) {\n return (\n <BaseProgress.Label\n className={cn(\"text-pho-secondary text-base font-medium\"
|
|
1
|
+
{"version":3,"file":"progress.js","names":["BaseProgress","cn","jsx","Progress$1","Root","className","props","Label","Value","Track","Indicator","Progress"],"sources":["../../src/components/progress/progress.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Progress as BaseProgress } from \"@base-ui/react/progress\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseProgress.Root>) {\n return (\n <BaseProgress.Root\n className={cn(\"flex w-full flex-col gap-2\", className)}\n {...props}\n />\n );\n}\n\nfunction Label({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Label>) {\n return (\n <BaseProgress.Label\n className={cn(\n \"text-pho-secondary font-heading text-base font-medium\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Value({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Value>) {\n return (\n <BaseProgress.Value\n className={cn(\"text-pho-secondary text-base tabular-nums\", className)}\n {...props}\n />\n );\n}\n\nfunction Track({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Track>) {\n return (\n <BaseProgress.Track\n className={cn(\n \"bg-pho-secondary relative h-2 w-full overflow-hidden rounded-full\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Indicator({\n className,\n ...props\n}: StyledProps<typeof BaseProgress.Indicator>) {\n return (\n <BaseProgress.Indicator\n className={cn(\n \"bg-pho-brand-solid h-full rounded-full transition-all duration-200 ease-out\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Determinate progress bar built on Base UI `Progress`. Set `value` (0–100, or\n * `null` for indeterminate) on `Progress.Root`; Base UI sizes the indicator.\n * Compose a header row with `Progress.Label` + `Progress.Value`.\n */\nexport const Progress = { Root, Label, Value, Track, Indicator };\n"],"mappings":";;;;;AAYA,SAASI,EAAK,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAAgD;AAC5E,SACE,gBAAAJ,EAACF,EAAa,MAAd;AAAA,IACE,WAAWC,EAAG,8BAA8BI,CAAS;AAAA,IACrD,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASC,EAAM,EACb,WAAAF,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EACT,yDACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASE,EAAM,EACb,WAAAH,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EAAG,6CAA6CI,CAAS;AAAA,IACpE,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASG,EAAM,EACb,WAAAJ,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAa,OAAd;AAAA,IACE,WAAWC,EACT,qEACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASI,EAAU,EACjB,WAAAL,GACA,GAAGC,EAAA,GAC0C;AAC7C,SACE,gBAAAJ,EAACF,EAAa,WAAd;AAAA,IACE,WAAWC,EACT,+EACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAOA,IAAaK,IAAW;AAAA,EAAE,MAAAP;AAAA,EAAM,OAAAG;AAAA,EAAO,OAAAC;AAAA,EAAO,OAAAC;AAAA,EAAO,WAAAC;AAAU"}
|
|
@@ -57,7 +57,7 @@ function P({ title: r, description: e }) {
|
|
|
57
57
|
return /* @__PURE__ */ m("span", {
|
|
58
58
|
className: "flex min-w-0 flex-1 flex-col",
|
|
59
59
|
children: [/* @__PURE__ */ o("span", {
|
|
60
|
-
className: "text-pho-primary block font-medium",
|
|
60
|
+
className: "text-pho-primary font-heading block font-medium",
|
|
61
61
|
children: r
|
|
62
62
|
}), e ? /* @__PURE__ */ o("span", {
|
|
63
63
|
className: "text-pho-description block",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","names":["BaseRadioGroup","BaseRadio","BaseRadio","cn","usePressPulse","CHOICE_INDICATOR_POP_TRANSITION","CHOICE_CARD_PRESS_SCALE","CHOICE_CARD_PRESS_TRANSITION","CHOICE_CARD_BASE","createContext","useContext","jsx","jsxs","motion","Radio$1","RadioGroup$1","RadioGroupDisabledContext","useRadioGroupDisabled","RadioGroup","className","disabled","props","Radio","label","groupDisabled","motionProps","onPointerDown","dotMotionProps","dot","CardCopy","title","description","RadioCard","icon","trailing","hasIcon"],"sources":["../../src/components/radio-group/radio-group.tsx","../../src/components/radio-group/radio-card.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\nimport { RadioGroup as BaseRadioGroup } from \"@base-ui/react/radio-group\";\nimport { Radio as BaseRadio } from \"@base-ui/react/radio\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"../../utils/cn\";\nimport { usePressPulse } from \"../../utils/use-press-pulse\";\nimport { CHOICE_INDICATOR_POP_TRANSITION } from \"../../utils/choice-card\";\n\nexport interface RadioGroupProps extends Omit<\n ComponentProps<typeof BaseRadioGroup>,\n \"className\"\n> {\n className?: string;\n}\n\nconst RadioGroupDisabledContext = createContext(false);\n\n/** Group-level `disabled`, so press pulse skips when the group is locked. */\nexport function useRadioGroupDisabled() {\n return useContext(RadioGroupDisabledContext);\n}\n\n/**\n * Single-choice group built on Base UI `RadioGroup`. Holds `Radio` items;\n * exactly one may be selected. Control with `value` / `onValueChange` or leave\n * uncontrolled with `defaultValue`.\n */\nexport function RadioGroup({ className, disabled, ...props }: RadioGroupProps) {\n return (\n <RadioGroupDisabledContext.Provider value={Boolean(disabled)}>\n <BaseRadioGroup\n disabled={disabled}\n className={cn(\"flex flex-col gap-3\", className)}\n {...props}\n />\n </RadioGroupDisabledContext.Provider>\n );\n}\n\nRadioGroup.displayName = \"RadioGroup\";\n\nexport interface RadioProps extends Omit<\n ComponentProps<typeof BaseRadio.Root>,\n \"className\"\n> {\n className?: string;\n /** Text rendered beside the dot; the whole row selects this option. */\n label?: ReactNode;\n}\n\n/**\n * A single option within a `RadioGroup`. Requires a `value`; pass `label` for a\n * clickable text row or provide an `aria-label`.\n */\nexport function Radio({ className, label, disabled, ...props }: RadioProps) {\n const groupDisabled = useRadioGroupDisabled();\n const { motionProps } = usePressPulse({\n scale: 0.94,\n disabled: Boolean(disabled || groupDisabled),\n });\n // With a label, the whole row is the hit target — press-trigger from there\n // (pointerdown bubbles up from the label text too) so the dot still\n // animates when the text, not the dot itself, is what's clicked.\n const { onPointerDown, ...dotMotionProps } = motionProps;\n\n const dot = (\n <BaseRadio.Root\n disabled={disabled}\n render={\n <motion.span\n {...dotMotionProps}\n onPointerDown={label ? undefined : onPointerDown}\n />\n }\n className={cn(\n \"outline-pho-brand bg-pho-primary ring-pho-primary flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-full ring-1 ring-inset focus-visible:outline-2 focus-visible:outline-offset-2\",\n // Transform stays out — Motion owns the press pulse.\n \"transition-[background-color,box-shadow,color,outline-color] duration-150 ease-out\",\n // group-hover covers hovering the label text, not just the dot itself.\n \"hover:bg-pho-primary-hover hover:ring-pho-ink group-hover:bg-pho-primary-hover group-hover:ring-pho-ink\",\n \"data-[checked]:bg-pho-brand-solid data-[checked]:ring-transparent\",\n \"data-[checked]:hover:bg-pho-brand-solid-hover data-[checked]:group-hover:bg-pho-brand-solid-hover\",\n \"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n {/* The indicator only renders when checked, i.e. always on brand-solid —\n on-brand (light-dark(#fff,#000)) keeps the dot visible in dark mode,\n where brand-solid is white. Pops in rather than appearing flat. */}\n <BaseRadio.Indicator\n render={\n <motion.span\n initial={{ scale: 0 }}\n animate={{ scale: 1 }}\n transition={CHOICE_INDICATOR_POP_TRANSITION}\n />\n }\n className=\"bg-pho-on-brand size-2 rounded-full\"\n />\n </BaseRadio.Root>\n );\n\n if (!label) return dot;\n return (\n <label\n className=\"group flex cursor-pointer items-center gap-2 select-none\"\n onPointerDown={onPointerDown}\n >\n {dot}\n <span className=\"text-pho-secondary text-base\">{label}</span>\n </label>\n );\n}\n\nRadio.displayName = \"Radio\";\n","import { type ComponentProps, type ReactNode } from \"react\";\nimport { Radio as BaseRadio } from \"@base-ui/react/radio\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"../../utils/cn\";\nimport { usePressPulse } from \"../../utils/use-press-pulse\";\nimport {\n CHOICE_CARD_BASE,\n CHOICE_CARD_WITH_ICON,\n CHOICE_CARD_PRESS_SCALE,\n CHOICE_CARD_PRESS_TRANSITION,\n CHOICE_INDICATOR_POP_TRANSITION,\n} from \"../../utils/choice-card\";\nimport { useRadioGroupDisabled } from \"./radio-group\";\n\nexport interface RadioCardProps extends Omit<\n ComponentProps<typeof BaseRadio.Root>,\n \"className\" | \"title\"\n> {\n className?: string;\n /** Tile heading. */\n title: ReactNode;\n /** Supporting copy shown below the title. */\n description?: ReactNode;\n /** Glyph stacked above the title. When set, it replaces the radio dot. */\n icon?: ReactNode;\n /**\n * Glyph at the end of the title row in place of the radio dot, for a\n * choice that adds something rather than picks it — a plus on \"New\n * brand\". The tile's ring still shows it chosen. For tiles without an\n * `icon` (those have no dot to replace).\n */\n trailing?: ReactNode;\n}\n\nfunction CardCopy({\n title,\n description,\n}: {\n title: ReactNode;\n description?: ReactNode;\n}) {\n return (\n <span className=\"flex min-w-0 flex-1 flex-col\">\n <span className=\"text-pho-primary block font-medium\">{title}</span>\n {description ? (\n <span className=\"text-pho-description block\">{description}</span>\n ) : null}\n </span>\n );\n}\n\n/**\n * A `Radio` styled as a bordered, selectable tile — title, optional\n * description, and either a stacked icon above them or, at the end of the\n * title row, the radio dot (or a `trailing` glyph in its place). The tile\n * *is* the radio (see `usePressPulse`); an inner glyph is decorative.\n */\nexport function RadioCard({\n className,\n title,\n description,\n icon,\n trailing,\n disabled,\n ...props\n}: RadioCardProps) {\n const groupDisabled = useRadioGroupDisabled();\n const { motionProps } = usePressPulse({\n scale: CHOICE_CARD_PRESS_SCALE,\n disabled: Boolean(disabled || groupDisabled),\n transition: CHOICE_CARD_PRESS_TRANSITION,\n });\n const hasIcon = icon != null;\n\n return (\n <BaseRadio.Root\n disabled={disabled}\n render={<motion.span {...motionProps} />}\n className={cn(\n CHOICE_CARD_BASE,\n hasIcon && CHOICE_CARD_WITH_ICON,\n className,\n )}\n {...props}\n >\n {hasIcon ? (\n <span\n aria-hidden\n className=\"text-pho-secondary flex size-6 shrink-0 items-center justify-center [&>svg]:size-6\"\n >\n {icon}\n </span>\n ) : null}\n <CardCopy title={title} description={description} />\n {/* The dot sits at the end of the title row, centered on the title's\n line; the same half step from the right edge keeps it square in\n the corner. A trailing glyph takes the same seat at the same size. */}\n {hasIcon ? null : trailing != null && trailing !== false ? (\n <span\n aria-hidden\n data-radio-card-trailing=\"\"\n className=\"text-pho-secondary mt-0.5 mr-0.5 flex size-4 shrink-0 items-center justify-center [&>svg]:size-4\"\n >\n {trailing}\n </span>\n ) : (\n <span\n aria-hidden\n className={cn(\n \"bg-pho-primary ring-pho-primary mt-0.5 mr-0.5 flex size-4 shrink-0 items-center justify-center rounded-full ring-1 ring-inset\",\n \"group-hover:bg-pho-primary-hover group-hover:ring-pho-ink transition-[background-color,box-shadow] duration-150 ease-out\",\n \"group-data-[checked]:bg-pho-brand-solid group-data-[checked]:group-hover:bg-pho-brand-solid-hover group-data-[checked]:ring-transparent\",\n )}\n >\n <BaseRadio.Indicator\n render={\n <motion.span\n initial={{ scale: 0 }}\n animate={{ scale: 1 }}\n transition={CHOICE_INDICATOR_POP_TRANSITION}\n />\n }\n className=\"bg-pho-on-brand size-1.5 rounded-full\"\n />\n </span>\n )}\n </BaseRadio.Root>\n );\n}\n\nRadioCard.displayName = \"RadioCard\";\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"radio-group.js","names":["BaseRadioGroup","BaseRadio","BaseRadio","cn","usePressPulse","CHOICE_INDICATOR_POP_TRANSITION","CHOICE_CARD_PRESS_SCALE","CHOICE_CARD_PRESS_TRANSITION","CHOICE_CARD_BASE","createContext","useContext","jsx","jsxs","motion","Radio$1","RadioGroup$1","RadioGroupDisabledContext","useRadioGroupDisabled","RadioGroup","className","disabled","props","Radio","label","groupDisabled","motionProps","onPointerDown","dotMotionProps","dot","CardCopy","title","description","RadioCard","icon","trailing","hasIcon"],"sources":["../../src/components/radio-group/radio-group.tsx","../../src/components/radio-group/radio-card.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n type ComponentProps,\n type ReactNode,\n} from \"react\";\nimport { RadioGroup as BaseRadioGroup } from \"@base-ui/react/radio-group\";\nimport { Radio as BaseRadio } from \"@base-ui/react/radio\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"../../utils/cn\";\nimport { usePressPulse } from \"../../utils/use-press-pulse\";\nimport { CHOICE_INDICATOR_POP_TRANSITION } from \"../../utils/choice-card\";\n\nexport interface RadioGroupProps extends Omit<\n ComponentProps<typeof BaseRadioGroup>,\n \"className\"\n> {\n className?: string;\n}\n\nconst RadioGroupDisabledContext = createContext(false);\n\n/** Group-level `disabled`, so press pulse skips when the group is locked. */\nexport function useRadioGroupDisabled() {\n return useContext(RadioGroupDisabledContext);\n}\n\n/**\n * Single-choice group built on Base UI `RadioGroup`. Holds `Radio` items;\n * exactly one may be selected. Control with `value` / `onValueChange` or leave\n * uncontrolled with `defaultValue`.\n */\nexport function RadioGroup({ className, disabled, ...props }: RadioGroupProps) {\n return (\n <RadioGroupDisabledContext.Provider value={Boolean(disabled)}>\n <BaseRadioGroup\n disabled={disabled}\n className={cn(\"flex flex-col gap-3\", className)}\n {...props}\n />\n </RadioGroupDisabledContext.Provider>\n );\n}\n\nRadioGroup.displayName = \"RadioGroup\";\n\nexport interface RadioProps extends Omit<\n ComponentProps<typeof BaseRadio.Root>,\n \"className\"\n> {\n className?: string;\n /** Text rendered beside the dot; the whole row selects this option. */\n label?: ReactNode;\n}\n\n/**\n * A single option within a `RadioGroup`. Requires a `value`; pass `label` for a\n * clickable text row or provide an `aria-label`.\n */\nexport function Radio({ className, label, disabled, ...props }: RadioProps) {\n const groupDisabled = useRadioGroupDisabled();\n const { motionProps } = usePressPulse({\n scale: 0.94,\n disabled: Boolean(disabled || groupDisabled),\n });\n // With a label, the whole row is the hit target — press-trigger from there\n // (pointerdown bubbles up from the label text too) so the dot still\n // animates when the text, not the dot itself, is what's clicked.\n const { onPointerDown, ...dotMotionProps } = motionProps;\n\n const dot = (\n <BaseRadio.Root\n disabled={disabled}\n render={\n <motion.span\n {...dotMotionProps}\n onPointerDown={label ? undefined : onPointerDown}\n />\n }\n className={cn(\n \"outline-pho-brand bg-pho-primary ring-pho-primary flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-full ring-1 ring-inset focus-visible:outline-2 focus-visible:outline-offset-2\",\n // Transform stays out — Motion owns the press pulse.\n \"transition-[background-color,box-shadow,color,outline-color] duration-150 ease-out\",\n // group-hover covers hovering the label text, not just the dot itself.\n \"hover:bg-pho-primary-hover hover:ring-pho-ink group-hover:bg-pho-primary-hover group-hover:ring-pho-ink\",\n \"data-[checked]:bg-pho-brand-solid data-[checked]:ring-transparent\",\n \"data-[checked]:hover:bg-pho-brand-solid-hover data-[checked]:group-hover:bg-pho-brand-solid-hover\",\n \"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n {/* The indicator only renders when checked, i.e. always on brand-solid —\n on-brand (light-dark(#fff,#000)) keeps the dot visible in dark mode,\n where brand-solid is white. Pops in rather than appearing flat. */}\n <BaseRadio.Indicator\n render={\n <motion.span\n initial={{ scale: 0 }}\n animate={{ scale: 1 }}\n transition={CHOICE_INDICATOR_POP_TRANSITION}\n />\n }\n className=\"bg-pho-on-brand size-2 rounded-full\"\n />\n </BaseRadio.Root>\n );\n\n if (!label) return dot;\n return (\n <label\n className=\"group flex cursor-pointer items-center gap-2 select-none\"\n onPointerDown={onPointerDown}\n >\n {dot}\n <span className=\"text-pho-secondary text-base\">{label}</span>\n </label>\n );\n}\n\nRadio.displayName = \"Radio\";\n","import { type ComponentProps, type ReactNode } from \"react\";\nimport { Radio as BaseRadio } from \"@base-ui/react/radio\";\nimport { motion } from \"motion/react\";\nimport { cn } from \"../../utils/cn\";\nimport { usePressPulse } from \"../../utils/use-press-pulse\";\nimport {\n CHOICE_CARD_BASE,\n CHOICE_CARD_WITH_ICON,\n CHOICE_CARD_PRESS_SCALE,\n CHOICE_CARD_PRESS_TRANSITION,\n CHOICE_INDICATOR_POP_TRANSITION,\n} from \"../../utils/choice-card\";\nimport { useRadioGroupDisabled } from \"./radio-group\";\n\nexport interface RadioCardProps extends Omit<\n ComponentProps<typeof BaseRadio.Root>,\n \"className\" | \"title\"\n> {\n className?: string;\n /** Tile heading. */\n title: ReactNode;\n /** Supporting copy shown below the title. */\n description?: ReactNode;\n /** Glyph stacked above the title. When set, it replaces the radio dot. */\n icon?: ReactNode;\n /**\n * Glyph at the end of the title row in place of the radio dot, for a\n * choice that adds something rather than picks it — a plus on \"New\n * brand\". The tile's ring still shows it chosen. For tiles without an\n * `icon` (those have no dot to replace).\n */\n trailing?: ReactNode;\n}\n\nfunction CardCopy({\n title,\n description,\n}: {\n title: ReactNode;\n description?: ReactNode;\n}) {\n return (\n <span className=\"flex min-w-0 flex-1 flex-col\">\n <span className=\"text-pho-primary font-heading block font-medium\">\n {title}\n </span>\n {description ? (\n <span className=\"text-pho-description block\">{description}</span>\n ) : null}\n </span>\n );\n}\n\n/**\n * A `Radio` styled as a bordered, selectable tile — title, optional\n * description, and either a stacked icon above them or, at the end of the\n * title row, the radio dot (or a `trailing` glyph in its place). The tile\n * *is* the radio (see `usePressPulse`); an inner glyph is decorative.\n */\nexport function RadioCard({\n className,\n title,\n description,\n icon,\n trailing,\n disabled,\n ...props\n}: RadioCardProps) {\n const groupDisabled = useRadioGroupDisabled();\n const { motionProps } = usePressPulse({\n scale: CHOICE_CARD_PRESS_SCALE,\n disabled: Boolean(disabled || groupDisabled),\n transition: CHOICE_CARD_PRESS_TRANSITION,\n });\n const hasIcon = icon != null;\n\n return (\n <BaseRadio.Root\n disabled={disabled}\n render={<motion.span {...motionProps} />}\n className={cn(\n CHOICE_CARD_BASE,\n hasIcon && CHOICE_CARD_WITH_ICON,\n className,\n )}\n {...props}\n >\n {hasIcon ? (\n <span\n aria-hidden\n className=\"text-pho-secondary flex size-6 shrink-0 items-center justify-center [&>svg]:size-6\"\n >\n {icon}\n </span>\n ) : null}\n <CardCopy title={title} description={description} />\n {/* The dot sits at the end of the title row, centered on the title's\n line; the same half step from the right edge keeps it square in\n the corner. A trailing glyph takes the same seat at the same size. */}\n {hasIcon ? null : trailing != null && trailing !== false ? (\n <span\n aria-hidden\n data-radio-card-trailing=\"\"\n className=\"text-pho-secondary mt-0.5 mr-0.5 flex size-4 shrink-0 items-center justify-center [&>svg]:size-4\"\n >\n {trailing}\n </span>\n ) : (\n <span\n aria-hidden\n className={cn(\n \"bg-pho-primary ring-pho-primary mt-0.5 mr-0.5 flex size-4 shrink-0 items-center justify-center rounded-full ring-1 ring-inset\",\n \"group-hover:bg-pho-primary-hover group-hover:ring-pho-ink transition-[background-color,box-shadow] duration-150 ease-out\",\n \"group-data-[checked]:bg-pho-brand-solid group-data-[checked]:group-hover:bg-pho-brand-solid-hover group-data-[checked]:ring-transparent\",\n )}\n >\n <BaseRadio.Indicator\n render={\n <motion.span\n initial={{ scale: 0 }}\n animate={{ scale: 1 }}\n transition={CHOICE_INDICATOR_POP_TRANSITION}\n />\n }\n className=\"bg-pho-on-brand size-1.5 rounded-full\"\n />\n </span>\n )}\n </BaseRadio.Root>\n );\n}\n\nRadioCard.displayName = \"RadioCard\";\n"],"mappings":"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"}
|
package/dist/components/scope.js
CHANGED
|
@@ -5,11 +5,11 @@ import { u as lt } from "../chunks/button-CLfWdqm-.js";
|
|
|
5
5
|
import { t as ye } from "../chunks/IconCheck-DwSMn1wK.js";
|
|
6
6
|
import { t as it } from "../chunks/IconChevronDown-Cd68NnX2.js";
|
|
7
7
|
import { t as ct } from "../chunks/close-button-Ck4rY1Fp.js";
|
|
8
|
-
import { r as ce } from "../chunks/checkbox-
|
|
8
|
+
import { r as ce } from "../chunks/checkbox-D8smFViR.js";
|
|
9
9
|
import { t as I } from "../chunks/skeleton-CqZlGphn.js";
|
|
10
10
|
import { t as dt } from "../chunks/ghost-search-CMUI2UH0.js";
|
|
11
11
|
import { t as A } from "../chunks/tooltip-4J1PUJmB.js";
|
|
12
|
-
import { t as p } from "../chunks/select-
|
|
12
|
+
import { t as p } from "../chunks/select-Dux2SBVc.js";
|
|
13
13
|
import { useEffect as Ne, useId as ut, useLayoutEffect as pt, useMemo as G, useRef as S, useState as X } from "react";
|
|
14
14
|
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
15
15
|
import { AnimatePresence as H, motion as b, useReducedMotion as ht } from "motion/react";
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as
|
|
2
|
+
import { t as n } from "../chunks/cn-CPbhpG1q.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { jsx as
|
|
4
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
5
5
|
import { Slider as r } from "@base-ui/react/slider";
|
|
6
6
|
function l({ className: e, ...t }) {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
className:
|
|
7
|
+
return /* @__PURE__ */ o(r.Root, {
|
|
8
|
+
className: n("flex w-full flex-col gap-3", e),
|
|
9
9
|
...t
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
function a({ className: e, ...t }) {
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
className:
|
|
13
|
+
return /* @__PURE__ */ o(r.Label, {
|
|
14
|
+
className: n("text-pho-secondary font-heading text-base font-medium", e),
|
|
15
15
|
...t
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
function i({ className: e, ...t }) {
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
className:
|
|
19
|
+
return /* @__PURE__ */ o(r.Value, {
|
|
20
|
+
className: n("text-pho-secondary text-base tabular-nums", e),
|
|
21
21
|
...t
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function u({ className: e, ...t }) {
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
className:
|
|
25
|
+
return /* @__PURE__ */ o(r.Control, {
|
|
26
|
+
className: n("relative flex w-full touch-none items-center py-2 select-none", e),
|
|
27
27
|
...t
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
function s({ className: e, ...t }) {
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
className:
|
|
31
|
+
return /* @__PURE__ */ o(r.Track, {
|
|
32
|
+
className: n("bg-pho-secondary relative h-1.5 w-full rounded-full", e),
|
|
33
33
|
...t
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
function c({ className: e, ...t }) {
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
className:
|
|
37
|
+
return /* @__PURE__ */ o(r.Indicator, {
|
|
38
|
+
className: n("bg-pho-brand-solid rounded-full", e),
|
|
39
39
|
...t
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function f({ className: e, ...t }) {
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
className:
|
|
43
|
+
return /* @__PURE__ */ o(r.Thumb, {
|
|
44
|
+
className: n("outline-pho-brand size-4 rounded-full bg-white ring-1 ring-black/15 transition focus-visible:outline-2 focus-visible:outline-offset-2 data-[disabled]:opacity-50", e),
|
|
45
45
|
...t
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.js","names":["BaseSlider","cn","jsx","Slider$1","Root","className","props","Label","Value","Control","Track","Indicator","Thumb","Slider"],"sources":["../../src/components/slider/slider.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Slider as BaseSlider } from \"@base-ui/react/slider\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseSlider.Root>) {\n return (\n <BaseSlider.Root\n className={cn(\"flex w-full flex-col gap-3\", className)}\n {...props}\n />\n );\n}\n\nfunction Label({ className, ...props }: StyledProps<typeof BaseSlider.Label>) {\n return (\n <BaseSlider.Label\n className={cn(\"text-pho-secondary text-base font-medium\"
|
|
1
|
+
{"version":3,"file":"slider.js","names":["BaseSlider","cn","jsx","Slider$1","Root","className","props","Label","Value","Control","Track","Indicator","Thumb","Slider"],"sources":["../../src/components/slider/slider.tsx"],"sourcesContent":["import { type ComponentProps, type ElementType } from \"react\";\nimport { Slider as BaseSlider } from \"@base-ui/react/slider\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseSlider.Root>) {\n return (\n <BaseSlider.Root\n className={cn(\"flex w-full flex-col gap-3\", className)}\n {...props}\n />\n );\n}\n\nfunction Label({ className, ...props }: StyledProps<typeof BaseSlider.Label>) {\n return (\n <BaseSlider.Label\n className={cn(\n \"text-pho-secondary font-heading text-base font-medium\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Value({ className, ...props }: StyledProps<typeof BaseSlider.Value>) {\n return (\n <BaseSlider.Value\n className={cn(\"text-pho-secondary text-base tabular-nums\", className)}\n {...props}\n />\n );\n}\n\nfunction Control({\n className,\n ...props\n}: StyledProps<typeof BaseSlider.Control>) {\n return (\n <BaseSlider.Control\n className={cn(\n \"relative flex w-full touch-none items-center py-2 select-none\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Track({ className, ...props }: StyledProps<typeof BaseSlider.Track>) {\n return (\n <BaseSlider.Track\n className={cn(\n \"bg-pho-secondary relative h-1.5 w-full rounded-full\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Indicator({\n className,\n ...props\n}: StyledProps<typeof BaseSlider.Indicator>) {\n return (\n <BaseSlider.Indicator\n className={cn(\"bg-pho-brand-solid rounded-full\", className)}\n {...props}\n />\n );\n}\n\nfunction Thumb({ className, ...props }: StyledProps<typeof BaseSlider.Thumb>) {\n return (\n <BaseSlider.Thumb\n // Flat white circle in both modes. The edge is a FIXED black/15\n // hairline: the thumb is always white, and in dark mode it rides a\n // white filled range (brand-solid), where any light-dark ring would\n // resolve white-on-white and vanish.\n className={cn(\n \"outline-pho-brand size-4 rounded-full bg-white ring-1 ring-black/15 transition focus-visible:outline-2 focus-visible:outline-offset-2 data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Slider built on Base UI `Slider` for picking a number (or range) along a\n * track. Compose a header with `Slider.Label` + `Slider.Value`, then\n * `Slider.Control` → `Track` → `Indicator` + `Thumb`. Set `value` /\n * `defaultValue`, `min`, `max`, `step` on `Slider.Root`. For a precise typed\n * number, prefer `NumberField`.\n */\nexport const Slider = {\n Root,\n Label,\n Value,\n Control,\n Track,\n Indicator,\n Thumb,\n};\n"],"mappings":";;;;;AAYA,SAASI,EAAK,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAA8C;AAC1E,SACE,gBAAAJ,EAACF,EAAW,MAAZ;AAAA,IACE,WAAWC,EAAG,8BAA8BI,CAAS;AAAA,IACrD,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASC,EAAM,EAAE,WAAAF,GAAW,GAAGC,EAAA,GAA+C;AAC5E,SACE,gBAAAJ,EAACF,EAAW,OAAZ;AAAA,IACE,WAAWC,EACT,yDACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASE,EAAM,EAAE,WAAAH,GAAW,GAAGC,EAAA,GAA+C;AAC5E,SACE,gBAAAJ,EAACF,EAAW,OAAZ;AAAA,IACE,WAAWC,EAAG,6CAA6CI,CAAS;AAAA,IACpE,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASG,EAAQ,EACf,WAAAJ,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAJ,EAACF,EAAW,SAAZ;AAAA,IACE,WAAWC,EACT,iEACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASI,EAAM,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAA+C;AAC5E,SACE,gBAAAJ,EAACF,EAAW,OAAZ;AAAA,IACE,WAAWC,EACT,uDACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASK,EAAU,EACjB,WAAAN,GACA,GAAGC,EAAA,GACwC;AAC3C,SACE,gBAAAJ,EAACF,EAAW,WAAZ;AAAA,IACE,WAAWC,EAAG,mCAAmCI,CAAS;AAAA,IAC1D,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASM,EAAM,EAAE,WAAAP,GAAW,GAAGC,EAAA,GAA+C;AAC5E,SACE,gBAAAJ,EAACF,EAAW,OAAZ;AAAA,IAKE,WAAWC,EACT,oKACAI,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AASA,IAAaO,IAAS;AAAA,EACpB,MAAAT;AAAA,EACA,OAAAG;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AACF"}
|
package/dist/components/stat.js
CHANGED
package/dist/components/toast.js
CHANGED
package/dist/components/trace.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as s, B as e, C as i, D as n, E as l, F as r, I as t, L as o, M as p, N as c, O as T, P as u, R as I, S, T as m, V as d, _ as v, a as b, b as V, c as w, d as f, f as D, g as L, h as _, i as k, j as x, k as g, l as A, m as E, n as F, o as N, p as y, r as z, s as B, t as O, u as P, v as R, w as W, x as C, y as G, z as K } from "../chunks/trace-
|
|
2
|
+
import { A as s, B as e, C as i, D as n, E as l, F as r, I as t, L as o, M as p, N as c, O as T, P as u, R as I, S, T as m, V as d, _ as v, a as b, b as V, c as w, d as f, f as D, g as L, h as _, i as k, j as x, k as g, l as A, m as E, n as F, o as N, p as y, r as z, s as B, t as O, u as P, v as R, w as W, x as C, y as G, z as K } from "../chunks/trace-5Rh1ade9.js";
|
|
3
3
|
export {
|
|
4
4
|
i as FULL_VIEW,
|
|
5
5
|
y as GEN_AI_KINDS,
|
package/dist/index.js
CHANGED
|
@@ -8,25 +8,25 @@ import { n as V, r as h, t as G } from "./chunks/use-press-pulse-IbNstUT0.js";
|
|
|
8
8
|
import { n as M, t as b } from "./chunks/use-copy-D6JwKUll.js";
|
|
9
9
|
import "./utils.js";
|
|
10
10
|
import { a as k, c as w, d as W, i as y, l as H, n as K, o as x, r as z, s as X, t as Y, u as Z } from "./chunks/button-CLfWdqm-.js";
|
|
11
|
-
import { a as J, c as Q, i as q, l as $, n as aa, o as sa, r as ta, s as ra, t as oa, u as ea } from "./chunks/error-
|
|
12
|
-
import { t as Sa } from "./chunks/chat-
|
|
13
|
-
import { A as _a, B as na, C as ma, D as Aa, E as Ia, F as Ta, I as pa, L as Ra, M as la, N as Ca, O as ua, P as Ba, R as fa, S as Na, T as La, V as Pa, _ as ca, a as Da, b as Oa, c as da, d as ga, f as Va, g as ha, h as Ga, i as Ua, j as Ma, k as ba, l as Fa, m as va, n as ka, o as wa, p as Wa, r as ya, s as Ha, t as Ka, u as xa, v as za, w as Xa, x as Ya, y as Za, z as ja } from "./chunks/trace-
|
|
11
|
+
import { a as J, c as Q, i as q, l as $, n as aa, o as sa, r as ta, s as ra, t as oa, u as ea } from "./chunks/error-BZU9vgnj.js";
|
|
12
|
+
import { t as Sa } from "./chunks/chat-j7XEdKEo.js";
|
|
13
|
+
import { A as _a, B as na, C as ma, D as Aa, E as Ia, F as Ta, I as pa, L as Ra, M as la, N as Ca, O as ua, P as Ba, R as fa, S as Na, T as La, V as Pa, _ as ca, a as Da, b as Oa, c as da, d as ga, f as Va, g as ha, h as Ga, i as Ua, j as Ma, k as ba, l as Fa, m as va, n as ka, o as wa, p as Wa, r as ya, s as Ha, t as Ka, u as xa, v as za, w as Xa, x as Ya, y as Za, z as ja } from "./chunks/trace-5Rh1ade9.js";
|
|
14
14
|
import { a as Qa, c as qa, d as $a, i as as, l as ss, n as ts, o as rs, r as os, s as es, t as is, u as Ss } from "./chunks/code-block-B7MibV6r.js";
|
|
15
|
-
import { n as _s, t as ns } from "./chunks/date-picker-
|
|
15
|
+
import { n as _s, t as ns } from "./chunks/date-picker-D-sWo3i8.js";
|
|
16
16
|
import { n as As, t as Is } from "./chunks/copy-button-BLvirhXk.js";
|
|
17
|
-
import { a as ps, c as Rs, d as ls, i as Cs, l as us, n as Bs, o as fs, r as Ns, s as Ls, t as Ps, u as cs } from "./chunks/sidebar-
|
|
17
|
+
import { a as ps, c as Rs, d as ls, i as Cs, l as us, n as Bs, o as fs, r as Ns, s as Ls, t as Ps, u as cs } from "./chunks/sidebar-BsBlAVM9.js";
|
|
18
18
|
import { t as Os } from "./chunks/input-DWnb33UF.js";
|
|
19
|
-
import { i as gs, n as Vs, r as hs, t as Gs } from "./chunks/filter-bar-
|
|
20
|
-
import { i as Ms } from "./chunks/data-table-
|
|
21
|
-
import { n as Fs, t as vs } from "./chunks/stat-
|
|
19
|
+
import { i as gs, n as Vs, r as hs, t as Gs } from "./chunks/filter-bar-CLLonntH.js";
|
|
20
|
+
import { i as Ms } from "./chunks/data-table-C1tLUdw0.js";
|
|
21
|
+
import { n as Fs, t as vs } from "./chunks/stat-DUq4roVt.js";
|
|
22
22
|
import { t as ws } from "./chunks/calendar-DDWITGo4.js";
|
|
23
23
|
import { t as ys } from "./chunks/close-button-Ck4rY1Fp.js";
|
|
24
24
|
import { t as Ks } from "./chunks/input-group-C3upo2OU.js";
|
|
25
25
|
import { n as zs, t as Xs } from "./chunks/card-Bg2V2B0x.js";
|
|
26
26
|
import { n as Zs, t as js } from "./chunks/dialog-CDL6qY2a.js";
|
|
27
27
|
import { i as Qs, n as qs, r as $s, t as at } from "./chunks/status-view-I_Y6eEyX.js";
|
|
28
|
-
import { t as tt } from "./chunks/description-list-
|
|
29
|
-
import { a as ot, c as et, d as it, f as St, i as Et, l as _t, m as nt, n as mt, o as At, p as It, r as Tt, s as pt, t as Rt, u as lt } from "./chunks/basic-page-
|
|
28
|
+
import { t as tt } from "./chunks/description-list-DcTvBHzI.js";
|
|
29
|
+
import { a as ot, c as et, d as it, f as St, i as Et, l as _t, m as nt, n as mt, o as At, p as It, r as Tt, s as pt, t as Rt, u as lt } from "./chunks/basic-page-BYA1lkzf.js";
|
|
30
30
|
import { a as ut, i as Bt, n as ft, o as Nt, r as Lt, s as Pt, t as ct } from "./chunks/chart-Btnw7KXV.js";
|
|
31
31
|
import "./components/chart.js";
|
|
32
32
|
import { t as dt } from "./chunks/bar-chart-ZNuOoH7c.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as s } from "../chunks/data-table-
|
|
3
|
-
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-
|
|
2
|
+
import { i as s } from "../chunks/data-table-C1tLUdw0.js";
|
|
3
|
+
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-BYA1lkzf.js";
|
|
4
4
|
export {
|
|
5
5
|
D as AUTO_SAVE_DELAY_MS,
|
|
6
6
|
B as BASIC_PAGE_CALLOUT,
|
package/dist/sections/sidebar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as I, c as _, d as S, i as R, l as A, n as B, o as T, r as a, s, t as D, u as N } from "../chunks/sidebar-
|
|
2
|
+
import { a as I, c as _, d as S, i as R, l as A, n as B, o as T, r as a, s, t as D, u as N } from "../chunks/sidebar-BsBlAVM9.js";
|
|
3
3
|
export {
|
|
4
4
|
D as SIDEBAR_HEADER_INSET,
|
|
5
5
|
B as SIDEBAR_ITEM,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/** Same chrome as `BasicPage.Card`, minus its dividers — rows draw their own. */
|
|
15
15
|
export declare const DATA_TABLE_SURFACE = "rounded-base border border-pho-secondary bg-pho-primary";
|
|
16
16
|
/** A header cell: ink, height, weight. Pad it where it sits. */
|
|
17
|
-
export declare const DATA_TABLE_HEADER_CELL = "text-pho-description h-10 text-left align-middle font-normal whitespace-nowrap";
|
|
17
|
+
export declare const DATA_TABLE_HEADER_CELL = "text-pho-description font-heading h-10 text-left align-middle font-normal whitespace-nowrap";
|
|
18
18
|
/** The body: the line under the header, and one between every two rows. */
|
|
19
19
|
export declare const DATA_TABLE_BODY = "divide-pho-secondary border-pho-secondary divide-y border-t";
|
|
20
20
|
export type DataTableSize = "sm" | "base" | "lg";
|
|
@@ -16,8 +16,13 @@ import { Button } from '../../components/button';
|
|
|
16
16
|
* `Root` takes `inset` (`base` | `sm`, default `base`) for the rail's outer
|
|
17
17
|
* padding and header spacing — prefer that over host-app class overrides.
|
|
18
18
|
*/
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The rail itself — sticky, full-height, hairline right edge (no inset). The
|
|
21
|
+
* whole rail speaks in the heading face (`font-heading`, PolySans): nav rows,
|
|
22
|
+
* group labels, search, switcher, and account row; the page beside it keeps
|
|
23
|
+
* the text face.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SIDEBAR_ROOT = "border-pho-secondary bg-pho-page font-heading sticky top-0 flex h-dvh w-64 shrink-0 flex-col border-r";
|
|
21
26
|
/** Outer inset on `Root` — `base` is the docs/default rail; `sm` is tighter. */
|
|
22
27
|
export declare const SIDEBAR_ROOT_INSET: {
|
|
23
28
|
readonly base: "px-4 pt-5 pb-4";
|
package/package.json
CHANGED
package/src/styles/fonts.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Photon brand fonts. PolySans (commercial) is served from the shared asset
|
|
3
3
|
* CDN (assets.photon.codes — public R2, versioned path, immutable caching,
|
|
4
|
-
* CORS enabled).
|
|
4
|
+
* CORS enabled). Geist and Azeret Mono are open Google Fonts, declared below
|
|
5
5
|
* against the Google Fonts CDN (fonts.gstatic.com), one face per script
|
|
6
6
|
* subset with its `unicode-range`. They are spelled out rather than pulled in
|
|
7
7
|
* with an `@import` of Google's stylesheet: once this file is bundled into an
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
* this import and declare the same @font-face rules against your own /fonts/
|
|
14
14
|
* paths — the theme only references the family names.
|
|
15
15
|
*
|
|
16
|
-
* Roles:
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Roles: PolySans names things (`font-heading`) — page, section, card, and
|
|
17
|
+
* step titles at Median 600, the titles of fields and blocks (labels,
|
|
18
|
+
* legends, row labels, column headers), and every row of the sidebar, each
|
|
19
|
+
* at the weight its slot already uses; the `font-display` utility adds
|
|
20
|
+
* `ss02` for dialog and hero titles. Geist carries the rest — body and
|
|
21
|
+
* descriptions at 400, UI controls and links at 600 (`font-medium`). Azeret Mono for code and
|
|
20
22
|
* small labels — always normal case: the system bans all-caps small text
|
|
21
23
|
* for eyebrows, section titles, and descriptions. Instrument Serif (often
|
|
22
24
|
* italic) is the editorial accent.
|
|
@@ -48,10 +50,10 @@
|
|
|
48
50
|
font-display: swap;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
/*
|
|
53
|
+
/* Geist, latin */
|
|
52
54
|
@font-face {
|
|
53
|
-
font-family: "
|
|
54
|
-
src: url("https://fonts.gstatic.com/s/
|
|
55
|
+
font-family: "Geist";
|
|
56
|
+
src: url("https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2")
|
|
55
57
|
format("woff2");
|
|
56
58
|
font-weight: 100 900;
|
|
57
59
|
font-style: normal;
|
|
@@ -62,10 +64,10 @@
|
|
|
62
64
|
U+2215, U+FEFF, U+FFFD;
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
/*
|
|
67
|
+
/* Geist, latin-ext */
|
|
66
68
|
@font-face {
|
|
67
|
-
font-family: "
|
|
68
|
-
src: url("https://fonts.gstatic.com/s/
|
|
69
|
+
font-family: "Geist";
|
|
70
|
+
src: url("https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwSGFWfOw.woff2")
|
|
69
71
|
format("woff2");
|
|
70
72
|
font-weight: 100 900;
|
|
71
73
|
font-style: normal;
|
|
@@ -76,6 +78,43 @@
|
|
|
76
78
|
U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
77
79
|
}
|
|
78
80
|
|
|
81
|
+
/* Geist, cyrillic */
|
|
82
|
+
@font-face {
|
|
83
|
+
font-family: "Geist";
|
|
84
|
+
src: url("https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwYGFWfOw.woff2")
|
|
85
|
+
format("woff2");
|
|
86
|
+
font-weight: 100 900;
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-display: swap;
|
|
89
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Geist, cyrillic-ext */
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: "Geist";
|
|
95
|
+
src: url("https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwRGFWfOw.woff2")
|
|
96
|
+
format("woff2");
|
|
97
|
+
font-weight: 100 900;
|
|
98
|
+
font-style: normal;
|
|
99
|
+
font-display: swap;
|
|
100
|
+
unicode-range:
|
|
101
|
+
U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Geist, vietnamese */
|
|
105
|
+
@font-face {
|
|
106
|
+
font-family: "Geist";
|
|
107
|
+
src: url("https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwTGFWfOw.woff2")
|
|
108
|
+
format("woff2");
|
|
109
|
+
font-weight: 100 900;
|
|
110
|
+
font-style: normal;
|
|
111
|
+
font-display: swap;
|
|
112
|
+
unicode-range:
|
|
113
|
+
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
|
|
114
|
+
U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
|
|
115
|
+
U+1EA0-1EF9, U+20AB;
|
|
116
|
+
}
|
|
117
|
+
|
|
79
118
|
/* Azeret Mono, latin */
|
|
80
119
|
@font-face {
|
|
81
120
|
font-family: "Azeret Mono";
|
package/src/styles/theme.css
CHANGED
|
@@ -25,11 +25,13 @@
|
|
|
25
25
|
|
|
26
26
|
@theme static {
|
|
27
27
|
/* ============================== Fonts ============================== */
|
|
28
|
-
/* Two voices
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
/* Two voices. PolySans names things (`font-heading`): headings, the
|
|
29
|
+
titles of fields and blocks (labels, legends, row labels, column
|
|
30
|
+
headers), the whole sidebar, and display-size figures. Geist carries
|
|
31
|
+
the rest (the default `font-sans`): body, descriptions, values in text,
|
|
32
|
+
and controls. */
|
|
31
33
|
--font-sans:
|
|
32
|
-
"
|
|
34
|
+
"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
|
|
33
35
|
sans-serif;
|
|
34
36
|
--font-heading:
|
|
35
37
|
"PolySans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
|
|
@@ -188,9 +190,9 @@
|
|
|
188
190
|
/* ========================== Font weights ========================== */
|
|
189
191
|
/* CLOSED set — three stops only; nothing else generates a utility:
|
|
190
192
|
font-light (300) display/marketing lines · font-normal (400) body ·
|
|
191
|
-
font-medium (600) UI controls, headings, and hero slogans:
|
|
192
|
-
|
|
193
|
-
font-medium. */
|
|
193
|
+
font-medium (600) UI controls, headings, and hero slogans: Geist
|
|
194
|
+
SemiBold in text, PolySans Median in headings. font-semibold is gone —
|
|
195
|
+
use font-medium. */
|
|
194
196
|
--font-weight-*: initial;
|
|
195
197
|
--font-weight-light: 300;
|
|
196
198
|
--font-weight-normal: 400;
|