@gridui/task 1.1.0 → 1.2.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 +12 -2
- package/dist/index.js.map +2 -2
- package/dist/shared/tool-call-context.d.ts +6 -0
- package/dist/styled.js +4 -0
- package/dist/styles.css +486 -0
- package/dist/styles.local.css +166 -0
- package/dist/tool-call/tool-call.d.ts +6 -0
- package/dist/tool-call-details/tool-call-details.d.ts +6 -0
- package/dist/tool-call-summary/tool-call-summary.d.ts +6 -0
- package/docs/catalog.json +3 -2
- package/package.json +13 -8
package/README.md
CHANGED
|
@@ -3,18 +3,28 @@
|
|
|
3
3
|
Dashboard family. Public API: `ApprovalPanel`, `ApprovalPanelProps`, `TaskStep`, `TaskTimeline`, `TaskTimelineProps`, `ToolCall`, `ToolCallProps`, `ToolCallStatus`, `ToolCallSummary`, `ToolCallSummaryProps`, `ToolCallDetails`, `ToolCallDetailsProps`.
|
|
4
4
|
|
|
5
5
|
Import components from `@gridui/task` and load `@gridui/task/styles.css` after Theme.
|
|
6
|
-
|
|
6
|
+
Applications own routes, labels, state persistence, and branding.
|
|
7
7
|
|
|
8
8
|
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-dashboard/task/.changeset/history).
|
|
9
9
|
|
|
10
10
|
TaskTimeline detail rows and settled ApprovalPanel records compose the public
|
|
11
|
-
Disclosure.
|
|
11
|
+
Disclosure. Disclosure styles are included in Task styles. Native
|
|
12
12
|
summary focus, keyboard interaction, and retained server-rendered context stay
|
|
13
13
|
with Disclosure; Task owns decision state, callbacks, and dense spacing.
|
|
14
14
|
|
|
15
15
|
TaskTimeline rows share the palette’s structural border color in every state.
|
|
16
16
|
Failed steps emphasize their status label with the danger foreground color.
|
|
17
17
|
|
|
18
|
+
## Styles
|
|
19
|
+
|
|
20
|
+
Load Theme once. Use `@gridui/task/styled` for automatic component CSS in
|
|
21
|
+
CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/task/styles.css`.
|
|
22
|
+
Both entries expose the same root API. The standalone stylesheet includes component
|
|
23
|
+
dependency styles; Theme/reset remain separate. See the
|
|
24
|
+
[integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
|
|
25
|
+
for static HTML loading, SSR limits, and avoiding duplicate CSS.
|
|
26
|
+
|
|
27
|
+
|
|
18
28
|
## Tool calls
|
|
19
29
|
|
|
20
30
|
Use `ToolCall` for one invocation and `TaskTimeline` for a sequence of tasks.
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/shared/style.ts", "../src/approval-panel/style.ts", "../src/approval-panel/approval-panel.tsx", "../src/task-timeline/style.ts", "../src/task-timeline/task-timeline.tsx", "../src/shared/tool-call-context.ts", "../src/tool-call/tool-call.tsx", "../src/tool-call-summary/tool-call-summary.tsx", "../src/tool-call-details/tool-call-details.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * @author WMXPY\n * @package Task\n * @namespace Shared\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const taskHeadingStyles = cva(\"gridui-u-task--flex gridui-u-task--min-w-0 gridui-u-task--flex-wrap gridui-u-task--items-baseline gridui-u-task--justify-between gridui-u-task--gap-gridui-8 gridui-u-task--wrap-anywhere\");\n\nexport const taskMetaStyles = cva(\"gridui-u-task--text-muted gridui-u-task--type-caption\");\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace ApprovalPanel\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const taskActionsStyles = cva(\"gridui-u-task--mt-gridui-16 gridui-u-task--flex gridui-u-task--flex-wrap gridui-u-task--justify-end gridui-u-task--gap-gridui-8\");\n\nexport const approvalStyles = cva(\"gridui-u-task--min-w-0 gridui-u-task--border gridui-u-task--border-border gridui-u-task--bg-background gridui-u-task--p-gridui-16 gridui-u-task--text-foreground gridui-u-task--wrap-anywhere\");\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace ApprovalPanel\n * @description Approval Panel\n */\n\nimport { taskHeadingStyles, taskMetaStyles } from \"../shared/style\";\nimport { approvalStyles, taskActionsStyles } from \"./style\";\nimport { Button } from \"@gridui/button\";\nimport { Disclosure } from \"@gridui/disclosure\";\nimport { cn } from \"@gridui/style-utils\";\nimport { type ComponentPropsWithRef, type FC, type ReactNode, useId, useLayoutEffect, useRef } from \"react\";\n\nexport type ApprovalPanelProps = Omit<ComponentPropsWithRef<\"section\">, \"title\"> & {\n readonly title: string;\n readonly description?: ReactNode;\n readonly status: \"pending\" | \"submitting\" | \"approved\" | \"denied\" | \"failed\" | \"blocked\";\n readonly statusLabel: string;\n readonly approveLabel: string;\n readonly denyLabel: string;\n readonly recordLabel: string;\n readonly onDecision: (decision: \"approve\" | \"deny\") => void;\n readonly disabled?: boolean;\n readonly error?: ReactNode;\n};\n\nexport const ApprovalPanel: FC<ApprovalPanelProps> = (props: ApprovalPanelProps) => {\n const {\n title,\n description,\n status,\n statusLabel,\n approveLabel,\n denyLabel,\n recordLabel,\n onDecision,\n disabled = false,\n error,\n children,\n className,\n ...restProps\n } = props;\n const id = useId();\n const record = useRef<HTMLElement>(null);\n const requested = useRef(false);\n const settled = status === \"approved\" || status === \"denied\" || status === \"blocked\";\n useLayoutEffect(() => {\n if (settled && requested.current) {\n record.current?.focus();\n requested.current = false;\n }\n }, [settled]);\n const decide = (decision: \"approve\" | \"deny\") => {\n if (!disabled && (status === \"pending\" || status === \"failed\")) {\n requested.current = true;\n onDecision(decision);\n }\n };\n return (<section\n {...restProps}\n aria-labelledby={id}\n className={cn(approvalStyles(), className)}\n data-state={status}\n >\n <div\n className={taskHeadingStyles()}\n >\n <strong\n id={id}\n >\n {title}\n </strong>\n <span\n role=\"status\"\n className={taskMetaStyles()}\n >\n {statusLabel}\n </span>\n </div>\n {settled ? (<Disclosure\n label={recordLabel}\n style={{\n font: \"inherit\",\n letterSpacing: \"inherit\",\n }}\n summaryPaddingBlock={8}\n summaryPaddingInline={0}\n contentPadding={0}\n summaryClassName={cn(\"gridui-u-task--text-inherit\")}\n summaryProps={{ ref: record }}\n >\n {description}\n {children}\n </Disclosure>) : (<div>\n {description}\n {children}\n {error && (<div\n role=\"alert\"\n >\n {error}\n </div>)}\n <div\n className={taskActionsStyles()}\n >\n <Button\n variant=\"secondary\"\n disabled={disabled || status === \"submitting\"}\n onClick={() => {\n decide(\"deny\");\n }}\n >\n {denyLabel}\n </Button>\n <Button\n disabled={disabled || status === \"submitting\"}\n loading={status === \"submitting\"}\n onClick={() => {\n decide(\"approve\");\n }}\n >\n {approveLabel}\n </Button>\n </div>\n </div>)}\n </section>);\n};\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace TaskTimeline\n * @description Style\n */\n\nimport { taskMetaStyles } from \"../shared/style\";\nimport { cva } from \"class-variance-authority\";\n\nexport const taskListStyles = cva(\"gridui-u-task--m-0 gridui-u-task--list-decimal gridui-u-task--ps-gridui-32\");\n\nexport const taskItemStyles = cva(\"gridui-u-task--min-w-0 gridui-u-task--border-b gridui-u-task--border-border gridui-u-task--py-gridui-16 gridui-u-task--pe-gridui-16 gridui-u-task--wrap-anywhere\");\n\nexport const taskDetailsStyles = cva(\"gridui-u-task--my-gridui-8\");\n\nexport const taskStatusStyles = cva(taskMetaStyles(), {\n variants: {\n failed: {\n true: \"gridui-u-task--text-status-danger-text\",\n },\n },\n});\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace TaskTimeline\n * @description Task Timeline\n */\n\nimport { taskHeadingStyles, taskMetaStyles } from \"../shared/style\";\nimport { taskDetailsStyles, taskItemStyles, taskListStyles, taskStatusStyles } from \"./style\";\nimport { Button } from \"@gridui/button\";\nimport { Disclosure } from \"@gridui/disclosure\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC, ReactNode } from \"react\";\n\nexport type TaskStep = {\n readonly id: string;\n readonly title: string;\n readonly status: \"pending\" | \"running\" | \"completed\" | \"failed\" | \"cancelled\" | \"waiting\";\n readonly statusLabel: string;\n readonly description?: ReactNode;\n readonly durationLabel?: string;\n readonly details?: ReactNode;\n readonly detailsLabel?: string;\n readonly action?: {\n readonly label: string;\n readonly onAction: () => void;\n readonly disabled?: boolean;\n };\n};\n\nexport type TaskTimelineProps = Omit<ComponentPropsWithRef<\"ol\">, \"children\"> & {\n readonly steps: readonly TaskStep[];\n readonly label: string;\n readonly disabled?: boolean;\n};\n\nexport const TaskTimeline: FC<TaskTimelineProps> = (props: TaskTimelineProps) => {\n const { steps, label, disabled = false, className, ...restProps } = props;\n return (<ol\n {...restProps}\n aria-label={label}\n className={cn(taskListStyles(), className)}\n >\n {steps.map(step => {\n return (<li\n key={step.id}\n className={taskItemStyles()}\n data-state={step.status}\n aria-current={step.status === \"running\" || step.status === \"waiting\" ? \"step\" : undefined}\n >\n <div\n className={taskHeadingStyles()}\n >\n <strong>\n {step.title}\n </strong>\n <span\n className={cn(taskStatusStyles({ failed: step.status === \"failed\" }))}\n >\n {step.statusLabel}\n </span>\n </div>\n {step.description}\n {step.durationLabel && (<span\n className={taskMetaStyles()}\n >\n {step.durationLabel}\n </span>)}\n {step.details !== undefined && (<Disclosure\n className={taskDetailsStyles()}\n label={step.detailsLabel ?? step.title}\n style={{\n font: \"inherit\",\n letterSpacing: \"inherit\",\n }}\n summaryPaddingBlock={8}\n summaryPaddingInline={0}\n contentPadding={0}\n summaryClassName={cn(\"gridui-u-task--min-h-0 gridui-u-task--text-inherit\")}\n >\n {step.details}\n </Disclosure>)}\n {step.action && (<Button\n variant=\"secondary\"\n disabled={disabled || step.action.disabled || step.status === \"running\"}\n onClick={step.action.onAction}\n >\n {step.action.label}\n </Button>)}\n </li>);\n })}\n </ol>);\n};\n", "import { createContext, type ReactNode, useContext } from \"react\";\n\nexport type ToolCallStatus = \"pending\" | \"input-streaming\" | \"waiting\" | \"running\" | \"completed\" | \"failed\" | \"cancelled\";\n\nexport type ToolCallContext = {\n readonly title: string;\n readonly status: ToolCallStatus;\n readonly statusLabel: string;\n readonly description: ReactNode;\n readonly durationLabel: string | undefined;\n readonly open: boolean;\n readonly setOpen: (open: boolean) => void;\n readonly summaryId: string;\n readonly detailsId: string;\n};\n\nexport const toolCallContext = createContext<ToolCallContext | null>(null);\n\nexport const useToolCall = (): ToolCallContext => {\n const context = useContext(toolCallContext);\n if (!context) {\n throw new Error(\"ToolCall parts require a ToolCall.\");\n }\n return context;\n};\n", "import { toolCallContext, type ToolCallStatus } from \"../shared/tool-call-context\";\nimport { cn } from \"@gridui/style-utils\";\nimport { type ComponentPropsWithRef, type FC, type ReactNode, useId, useLayoutEffect, useState } from \"react\";\n\nexport type ToolCallProps = Omit<ComponentPropsWithRef<\"div\">, \"title\" | \"children\"> & {\n readonly title: string;\n readonly status: ToolCallStatus;\n readonly statusLabel: string;\n readonly description?: ReactNode;\n readonly durationLabel?: string;\n readonly open?: boolean;\n readonly defaultOpen?: boolean;\n readonly onOpenChange?: (open: boolean) => void;\n readonly children: ReactNode;\n};\n\nexport const ToolCall: FC<ToolCallProps> = (props: ToolCallProps) => {\n const { title, status, statusLabel, description, durationLabel, open: controlledOpen,\n defaultOpen = false, onOpenChange, children, className, ...restProps } = props;\n const id = useId();\n const summaryId = `${id}-summary`;\n const detailsId = `${id}-details`;\n const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);\n const open = controlledOpen ?? uncontrolledOpen;\n const setOpen = (nextOpen: boolean) => {\n if (controlledOpen === undefined) {\n setUncontrolledOpen(nextOpen);\n }\n onOpenChange?.(nextOpen);\n };\n\n useLayoutEffect(() => {\n // A host can collapse the panel while focus is still in retained content.\n if (!open && document.getElementById(detailsId)?.contains(document.activeElement)) {\n document.getElementById(summaryId)?.focus();\n }\n }, [open, detailsId, summaryId]);\n\n return (<toolCallContext.Provider value={{ title, status, statusLabel, description,\n durationLabel, open, setOpen, summaryId, detailsId }}>\n <div {...restProps} data-state={status} className={cn(\"gridui-u-task--min-w-0 gridui-u-task--type-body gridui-u-task--wrap-anywhere\", className)}>\n {children}\n </div>\n </toolCallContext.Provider>);\n};\n", "import { taskHeadingStyles, taskMetaStyles } from \"../shared/style\";\nimport { useToolCall } from \"../shared/tool-call-context\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC, ReactNode } from \"react\";\n\nexport type ToolCallSummaryProps = Omit<ComponentPropsWithRef<\"div\">, \"children\"> & {\n /** Use a static title when details are always visible. */\n readonly collapsible?: boolean;\n /** Actions stay outside the disclosure button. The host owns their availability. */\n readonly actions?: ReactNode;\n};\n\nexport const ToolCallSummary: FC<ToolCallSummaryProps> = (props: ToolCallSummaryProps) => {\n const { collapsible = true, actions, className, ...restProps } = props;\n const call = useToolCall();\n return (<div {...restProps} className={cn(\"gridui-u-task--flex gridui-u-task--min-w-0 gridui-u-task--flex-col gridui-u-task--gap-gridui-8\", className)}>\n <div className={taskHeadingStyles()}>\n {collapsible ? (<button\n type=\"button\"\n id={call.summaryId}\n className={cn(\"gridui-tool-call-trigger gridui-u-task--flex gridui-u-task--min-h-11 gridui-u-task--min-w-0 gridui-u-task--items-center gridui-u-task--gap-gridui-8 gridui-u-task--border-0 gridui-u-task--bg-transparent gridui-u-task--p-0 gridui-u-task--text-start gridui-u-task--text-foreground gridui-u-task--wrap-anywhere gridui-u-task--cursor-pointer\")}\n aria-expanded={call.open}\n aria-controls={call.detailsId}\n onClick={() => { call.setOpen(!call.open); }}\n >\n <span className={cn(\"gridui-tool-call-chevron\")} aria-hidden=\"true\" />\n <strong className={cn(\"gridui-u-task--font-medium\")}>{call.title}</strong>\n </button>) : (<strong id={call.summaryId} className={cn(\"gridui-u-task--font-medium\")}>{call.title}</strong>)}\n <span role=\"status\" className={cn(taskMetaStyles(), call.status === \"failed\" && \"gridui-u-task--text-status-danger-text\")}>\n {call.statusLabel}\n </span>\n </div>\n {(call.description !== undefined || call.durationLabel !== undefined || actions !== undefined) && (\n <div className={taskHeadingStyles()}>\n <div className={cn(\"gridui-u-task--flex gridui-u-task--min-w-0 gridui-u-task--flex-wrap gridui-u-task--items-baseline gridui-u-task--gap-gridui-8\")}>\n {call.description}\n {call.durationLabel !== undefined && (<span className={taskMetaStyles()}>{call.durationLabel}</span>)}\n </div>\n {actions}\n </div>\n )}\n </div>);\n};\n", "import { useToolCall } from \"../shared/tool-call-context\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ToolCallDetailsProps = Omit<ComponentPropsWithRef<\"div\">, \"id\" | \"hidden\" | \"aria-labelledby\" | \"aria-busy\">;\n\nexport const ToolCallDetails: FC<ToolCallDetailsProps> = (props: ToolCallDetailsProps) => {\n const { className, ...restProps } = props;\n const call = useToolCall();\n return (<div\n {...restProps}\n id={call.detailsId}\n hidden={!call.open}\n aria-labelledby={call.summaryId}\n aria-busy={call.status === \"input-streaming\" || call.status === \"running\" || undefined}\n className={cn(\"gridui-tool-call-details gridui-u-task--min-w-0\", className)}\n />);\n};\n"],
|
|
5
|
-
"mappings": ";AAOA,SAAS,WAAW;AAEb,IAAM,oBAAoB,IAAI,2LAA2L;AAEzN,IAAM,iBAAiB,IAAI,uDAAuD;;;ACJzF,SAAS,OAAAA,YAAW;AAEb,IAAM,oBAAoBA,KAAI,iIAAiI;AAE/J,IAAM,iBAAiBA,KAAI,+LAA+L;;;ACFjO,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAC3B,SAAS,UAAU;AACnB,SAA8D,OAAO,iBAAiB,cAAc;AAqD5F,SAGI,KAHJ;AAtCD,IAAM,gBAAwC,CAAC,UAA8B;AAChF,QAAM;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACP,IAAI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AAK,WAAW,aAAa,KAAK,WAAW,YAAY,SAAS;AAAA,YAEhF;AAAA,8BAAAA;AAAA,gBAAC;AAAA;AAAA,kBACG,WAAW,kBAAkB;AAAA,kBAE7B;AAAA,oCAAAD,KAAC,YACI,eAAK,OACV;AAAA,oBACA,gBAAAA;AAAA,sBAAC;AAAA;AAAA,wBACG,WAAWD,IAAG,iBAAiB,EAAE,QAAQ,KAAK,WAAW,SAAS,CAAC,CAAC;AAAA,wBAEnE,eAAK;AAAA;AAAA,oBACV;AAAA;AAAA;AAAA,cACJ;AAAA,cACC,KAAK;AAAA,cACL,KAAK,iBAAkB,gBAAAC;AAAA,gBAAC;AAAA;AAAA,kBACrB,WAAW,eAAe;AAAA,kBAEzB,eAAK;AAAA;AAAA,cACV;AAAA,cACC,KAAK,YAAY,UAAc,gBAAAA;AAAA,gBAACF;AAAA,gBAAA;AAAA,kBAC7B,WAAW,kBAAkB;AAAA,kBAC7B,OAAO,KAAK,gBAAgB,KAAK;AAAA,kBACjC,OAAO;AAAA,oBACH,MAAM;AAAA,oBACN,eAAe;AAAA,kBACnB;AAAA,kBACA,qBAAqB;AAAA,kBACrB,sBAAsB;AAAA,kBACtB,gBAAgB;AAAA,kBAChB,kBAAkBC,IAAG,oDAAoD;AAAA,kBAExE,eAAK;AAAA;AAAA,cACV;AAAA,cACC,KAAK,UAAW,gBAAAC;AAAA,gBAACH;AAAA,gBAAA;AAAA,kBACd,SAAQ;AAAA,kBACR,UAAU,YAAY,KAAK,OAAO,YAAY,KAAK,WAAW;AAAA,kBAC9D,SAAS,KAAK,OAAO;AAAA,kBAEpB,eAAK,OAAO;AAAA;AAAA,cACjB;AAAA;AAAA;AAAA,UA3CK,KAAK;AAAA,QA4Cd;AAAA,MACJ,CAAC;AAAA;AAAA,EACL;AACJ;;;
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Task\n * @namespace Shared\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const taskHeadingStyles = cva(\"gridui-u-task--flex gridui-u-task--min-w-0 gridui-u-task--flex-wrap gridui-u-task--items-baseline gridui-u-task--justify-between gridui-u-task--gap-gridui-8 gridui-u-task--wrap-anywhere\");\n\nexport const taskMetaStyles = cva(\"gridui-u-task--text-muted gridui-u-task--type-caption\");\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace ApprovalPanel\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const taskActionsStyles = cva(\"gridui-u-task--mt-gridui-16 gridui-u-task--flex gridui-u-task--flex-wrap gridui-u-task--justify-end gridui-u-task--gap-gridui-8\");\n\nexport const approvalStyles = cva(\"gridui-u-task--min-w-0 gridui-u-task--border gridui-u-task--border-border gridui-u-task--bg-background gridui-u-task--p-gridui-16 gridui-u-task--text-foreground gridui-u-task--wrap-anywhere\");\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace ApprovalPanel\n * @description Approval Panel\n */\n\nimport { taskHeadingStyles, taskMetaStyles } from \"../shared/style\";\nimport { approvalStyles, taskActionsStyles } from \"./style\";\nimport { Button } from \"@gridui/button\";\nimport { Disclosure } from \"@gridui/disclosure\";\nimport { cn } from \"@gridui/style-utils\";\nimport { type ComponentPropsWithRef, type FC, type ReactNode, useId, useLayoutEffect, useRef } from \"react\";\n\nexport type ApprovalPanelProps = Omit<ComponentPropsWithRef<\"section\">, \"title\"> & {\n readonly title: string;\n readonly description?: ReactNode;\n readonly status: \"pending\" | \"submitting\" | \"approved\" | \"denied\" | \"failed\" | \"blocked\";\n readonly statusLabel: string;\n readonly approveLabel: string;\n readonly denyLabel: string;\n readonly recordLabel: string;\n readonly onDecision: (decision: \"approve\" | \"deny\") => void;\n readonly disabled?: boolean;\n readonly error?: ReactNode;\n};\n\nexport const ApprovalPanel: FC<ApprovalPanelProps> = (props: ApprovalPanelProps) => {\n const {\n title,\n description,\n status,\n statusLabel,\n approveLabel,\n denyLabel,\n recordLabel,\n onDecision,\n disabled = false,\n error,\n children,\n className,\n ...restProps\n } = props;\n const id = useId();\n const record = useRef<HTMLElement>(null);\n const requested = useRef(false);\n const settled = status === \"approved\" || status === \"denied\" || status === \"blocked\";\n useLayoutEffect(() => {\n if (settled && requested.current) {\n record.current?.focus();\n requested.current = false;\n }\n }, [settled]);\n const decide = (decision: \"approve\" | \"deny\") => {\n if (!disabled && (status === \"pending\" || status === \"failed\")) {\n requested.current = true;\n onDecision(decision);\n }\n };\n return (<section\n {...restProps}\n aria-labelledby={id}\n className={cn(approvalStyles(), className)}\n data-state={status}\n >\n <div\n className={taskHeadingStyles()}\n >\n <strong\n id={id}\n >\n {title}\n </strong>\n <span\n role=\"status\"\n className={taskMetaStyles()}\n >\n {statusLabel}\n </span>\n </div>\n {settled ? (<Disclosure\n label={recordLabel}\n style={{\n font: \"inherit\",\n letterSpacing: \"inherit\",\n }}\n summaryPaddingBlock={8}\n summaryPaddingInline={0}\n contentPadding={0}\n summaryClassName={cn(\"gridui-u-task--text-inherit\")}\n summaryProps={{ ref: record }}\n >\n {description}\n {children}\n </Disclosure>) : (<div>\n {description}\n {children}\n {error && (<div\n role=\"alert\"\n >\n {error}\n </div>)}\n <div\n className={taskActionsStyles()}\n >\n <Button\n variant=\"secondary\"\n disabled={disabled || status === \"submitting\"}\n onClick={() => {\n decide(\"deny\");\n }}\n >\n {denyLabel}\n </Button>\n <Button\n disabled={disabled || status === \"submitting\"}\n loading={status === \"submitting\"}\n onClick={() => {\n decide(\"approve\");\n }}\n >\n {approveLabel}\n </Button>\n </div>\n </div>)}\n </section>);\n};\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace TaskTimeline\n * @description Style\n */\n\nimport { taskMetaStyles } from \"../shared/style\";\nimport { cva } from \"class-variance-authority\";\n\nexport const taskListStyles = cva(\"gridui-u-task--m-0 gridui-u-task--list-decimal gridui-u-task--ps-gridui-32\");\n\nexport const taskItemStyles = cva(\"gridui-u-task--min-w-0 gridui-u-task--border-b gridui-u-task--border-border gridui-u-task--py-gridui-16 gridui-u-task--pe-gridui-16 gridui-u-task--wrap-anywhere\");\n\nexport const taskDetailsStyles = cva(\"gridui-u-task--my-gridui-8\");\n\nexport const taskStatusStyles = cva(taskMetaStyles(), {\n variants: {\n failed: {\n true: \"gridui-u-task--text-status-danger-text\",\n },\n },\n});\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace TaskTimeline\n * @description Task Timeline\n */\n\nimport { taskHeadingStyles, taskMetaStyles } from \"../shared/style\";\nimport { taskDetailsStyles, taskItemStyles, taskListStyles, taskStatusStyles } from \"./style\";\nimport { Button } from \"@gridui/button\";\nimport { Disclosure } from \"@gridui/disclosure\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC, ReactNode } from \"react\";\n\nexport type TaskStep = {\n readonly id: string;\n readonly title: string;\n readonly status: \"pending\" | \"running\" | \"completed\" | \"failed\" | \"cancelled\" | \"waiting\";\n readonly statusLabel: string;\n readonly description?: ReactNode;\n readonly durationLabel?: string;\n readonly details?: ReactNode;\n readonly detailsLabel?: string;\n readonly action?: {\n readonly label: string;\n readonly onAction: () => void;\n readonly disabled?: boolean;\n };\n};\n\nexport type TaskTimelineProps = Omit<ComponentPropsWithRef<\"ol\">, \"children\"> & {\n readonly steps: readonly TaskStep[];\n readonly label: string;\n readonly disabled?: boolean;\n};\n\nexport const TaskTimeline: FC<TaskTimelineProps> = (props: TaskTimelineProps) => {\n const { steps, label, disabled = false, className, ...restProps } = props;\n return (<ol\n {...restProps}\n aria-label={label}\n className={cn(taskListStyles(), className)}\n >\n {steps.map(step => {\n return (<li\n key={step.id}\n className={taskItemStyles()}\n data-state={step.status}\n aria-current={step.status === \"running\" || step.status === \"waiting\" ? \"step\" : undefined}\n >\n <div\n className={taskHeadingStyles()}\n >\n <strong>\n {step.title}\n </strong>\n <span\n className={cn(taskStatusStyles({ failed: step.status === \"failed\" }))}\n >\n {step.statusLabel}\n </span>\n </div>\n {step.description}\n {step.durationLabel && (<span\n className={taskMetaStyles()}\n >\n {step.durationLabel}\n </span>)}\n {step.details !== undefined && (<Disclosure\n className={taskDetailsStyles()}\n label={step.detailsLabel ?? step.title}\n style={{\n font: \"inherit\",\n letterSpacing: \"inherit\",\n }}\n summaryPaddingBlock={8}\n summaryPaddingInline={0}\n contentPadding={0}\n summaryClassName={cn(\"gridui-u-task--min-h-0 gridui-u-task--text-inherit\")}\n >\n {step.details}\n </Disclosure>)}\n {step.action && (<Button\n variant=\"secondary\"\n disabled={disabled || step.action.disabled || step.status === \"running\"}\n onClick={step.action.onAction}\n >\n {step.action.label}\n </Button>)}\n </li>);\n })}\n </ol>);\n};\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace Shared\n * @description Tool Call Context\n */\n\nimport { createContext, type ReactNode, useContext } from \"react\";\n\nexport type ToolCallStatus = \"pending\" | \"input-streaming\" | \"waiting\" | \"running\" | \"completed\" | \"failed\" | \"cancelled\";\n\nexport type ToolCallContext = {\n readonly title: string;\n readonly status: ToolCallStatus;\n readonly statusLabel: string;\n readonly description: ReactNode;\n readonly durationLabel: string | undefined;\n readonly open: boolean;\n readonly setOpen: (open: boolean) => void;\n readonly summaryId: string;\n readonly detailsId: string;\n};\n\nexport const toolCallContext = createContext<ToolCallContext | null>(null);\n\nexport const useToolCall = (): ToolCallContext => {\n const context = useContext(toolCallContext);\n if (!context) {\n throw new Error(\"ToolCall parts require a ToolCall.\");\n }\n return context;\n};\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace ToolCall\n * @description Tool Call\n */\n\nimport { toolCallContext, type ToolCallStatus } from \"../shared/tool-call-context\";\nimport { cn } from \"@gridui/style-utils\";\nimport { type ComponentPropsWithRef, type FC, type ReactNode, useId, useLayoutEffect, useState } from \"react\";\n\nexport type ToolCallProps = Omit<ComponentPropsWithRef<\"div\">, \"title\" | \"children\"> & {\n readonly title: string;\n readonly status: ToolCallStatus;\n readonly statusLabel: string;\n readonly description?: ReactNode;\n readonly durationLabel?: string;\n readonly open?: boolean;\n readonly defaultOpen?: boolean;\n readonly onOpenChange?: (open: boolean) => void;\n readonly children: ReactNode;\n};\n\nexport const ToolCall: FC<ToolCallProps> = (props: ToolCallProps) => {\n const { title, status, statusLabel, description, durationLabel, open: controlledOpen,\n defaultOpen = false, onOpenChange, children, className, ...restProps } = props;\n const id = useId();\n const summaryId = `${id}-summary`;\n const detailsId = `${id}-details`;\n const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);\n const open = controlledOpen ?? uncontrolledOpen;\n const setOpen = (nextOpen: boolean) => {\n if (controlledOpen === undefined) {\n setUncontrolledOpen(nextOpen);\n }\n onOpenChange?.(nextOpen);\n };\n\n useLayoutEffect(() => {\n // A host can collapse the panel while focus is still in retained content.\n if (!open && document.getElementById(detailsId)?.contains(document.activeElement)) {\n document.getElementById(summaryId)?.focus();\n }\n }, [open, detailsId, summaryId]);\n\n return (<toolCallContext.Provider value={{ title, status, statusLabel, description,\n durationLabel, open, setOpen, summaryId, detailsId }}>\n <div {...restProps} data-state={status} className={cn(\"gridui-u-task--min-w-0 gridui-u-task--type-body gridui-u-task--wrap-anywhere\", className)}>\n {children}\n </div>\n </toolCallContext.Provider>);\n};\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace ToolCallSummary\n * @description Tool Call Summary\n */\n\nimport { taskHeadingStyles, taskMetaStyles } from \"../shared/style\";\nimport { useToolCall } from \"../shared/tool-call-context\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC, ReactNode } from \"react\";\n\nexport type ToolCallSummaryProps = Omit<ComponentPropsWithRef<\"div\">, \"children\"> & {\n /** Use a static title when details are always visible. */\n readonly collapsible?: boolean;\n /** Actions stay outside the disclosure button. The host owns their availability. */\n readonly actions?: ReactNode;\n};\n\nexport const ToolCallSummary: FC<ToolCallSummaryProps> = (props: ToolCallSummaryProps) => {\n const { collapsible = true, actions, className, ...restProps } = props;\n const call = useToolCall();\n return (<div {...restProps} className={cn(\"gridui-u-task--flex gridui-u-task--min-w-0 gridui-u-task--flex-col gridui-u-task--gap-gridui-8\", className)}>\n <div className={taskHeadingStyles()}>\n {collapsible ? (<button\n type=\"button\"\n id={call.summaryId}\n className={cn(\"gridui-tool-call-trigger gridui-u-task--flex gridui-u-task--min-h-11 gridui-u-task--min-w-0 gridui-u-task--items-center gridui-u-task--gap-gridui-8 gridui-u-task--border-0 gridui-u-task--bg-transparent gridui-u-task--p-0 gridui-u-task--text-start gridui-u-task--text-foreground gridui-u-task--wrap-anywhere gridui-u-task--cursor-pointer\")}\n aria-expanded={call.open}\n aria-controls={call.detailsId}\n onClick={() => { call.setOpen(!call.open); }}\n >\n <span className={cn(\"gridui-tool-call-chevron\")} aria-hidden=\"true\" />\n <strong className={cn(\"gridui-u-task--font-medium\")}>{call.title}</strong>\n </button>) : (<strong id={call.summaryId} className={cn(\"gridui-u-task--font-medium\")}>{call.title}</strong>)}\n <span role=\"status\" className={cn(taskMetaStyles(), call.status === \"failed\" && \"gridui-u-task--text-status-danger-text\")}>\n {call.statusLabel}\n </span>\n </div>\n {(call.description !== undefined || call.durationLabel !== undefined || actions !== undefined) && (\n <div className={taskHeadingStyles()}>\n <div className={cn(\"gridui-u-task--flex gridui-u-task--min-w-0 gridui-u-task--flex-wrap gridui-u-task--items-baseline gridui-u-task--gap-gridui-8\")}>\n {call.description}\n {call.durationLabel !== undefined && (<span className={taskMetaStyles()}>{call.durationLabel}</span>)}\n </div>\n {actions}\n </div>\n )}\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Task\n * @namespace ToolCallDetails\n * @description Tool Call Details\n */\n\nimport { useToolCall } from \"../shared/tool-call-context\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type ToolCallDetailsProps = Omit<ComponentPropsWithRef<\"div\">, \"id\" | \"hidden\" | \"aria-labelledby\" | \"aria-busy\">;\n\nexport const ToolCallDetails: FC<ToolCallDetailsProps> = (props: ToolCallDetailsProps) => {\n const { className, ...restProps } = props;\n const call = useToolCall();\n return (<div\n {...restProps}\n id={call.detailsId}\n hidden={!call.open}\n aria-labelledby={call.summaryId}\n aria-busy={call.status === \"input-streaming\" || call.status === \"running\" || undefined}\n className={cn(\"gridui-tool-call-details gridui-u-task--min-w-0\", className)}\n />);\n};\n"],
|
|
5
|
+
"mappings": ";AAOA,SAAS,WAAW;AAEb,IAAM,oBAAoB,IAAI,2LAA2L;AAEzN,IAAM,iBAAiB,IAAI,uDAAuD;;;ACJzF,SAAS,OAAAA,YAAW;AAEb,IAAM,oBAAoBA,KAAI,iIAAiI;AAE/J,IAAM,iBAAiBA,KAAI,+LAA+L;;;ACFjO,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAC3B,SAAS,UAAU;AACnB,SAA8D,OAAO,iBAAiB,cAAc;AAqD5F,SAGI,KAHJ;AAtCD,IAAM,gBAAwC,CAAC,UAA8B;AAChF,QAAM;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACP,IAAI;AACJ,QAAM,KAAK,MAAM;AACjB,QAAM,SAAS,OAAoB,IAAI;AACvC,QAAM,YAAY,OAAO,KAAK;AAC9B,QAAM,UAAU,WAAW,cAAc,WAAW,YAAY,WAAW;AAC3E,kBAAgB,MAAM;AAClB,QAAI,WAAW,UAAU,SAAS;AAC9B,aAAO,SAAS,MAAM;AACtB,gBAAU,UAAU;AAAA,IACxB;AAAA,EACJ,GAAG,CAAC,OAAO,CAAC;AACZ,QAAM,SAAS,CAAC,aAAiC;AAC7C,QAAI,CAAC,aAAa,WAAW,aAAa,WAAW,WAAW;AAC5D,gBAAU,UAAU;AACpB,iBAAW,QAAQ;AAAA,IACvB;AAAA,EACJ;AACA,SAAQ;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ,mBAAiB;AAAA,MACjB,WAAW,GAAG,eAAe,GAAG,SAAS;AAAA,MACzC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2
|
+
* @author WMXPY
|
|
3
|
+
* @package Task
|
|
4
|
+
* @namespace Shared
|
|
5
|
+
* @description Tool Call Context
|
|
6
|
+
*/
|
|
1
7
|
import { type ReactNode } from "react";
|
|
2
8
|
export type ToolCallStatus = "pending" | "input-streaming" | "waiting" | "running" | "completed" | "failed" | "cancelled";
|
|
3
9
|
export type ToolCallContext = {
|
package/dist/styled.js
ADDED
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,489 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--spacing: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@layer utilities {
|
|
10
|
+
.gridui-u-button--pointer-events-none {
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
.gridui-u-button--inline-flex {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
}
|
|
16
|
+
.gridui-u-button--h-full {
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
.gridui-u-button--h-gridui-control {
|
|
20
|
+
height: var(--gridui-control-min-height);
|
|
21
|
+
}
|
|
22
|
+
.gridui-u-button--min-h-18 {
|
|
23
|
+
min-height: calc(var(--spacing) * 18);
|
|
24
|
+
}
|
|
25
|
+
.gridui-u-button--min-h-gridui-control {
|
|
26
|
+
min-height: var(--gridui-control-min-height);
|
|
27
|
+
}
|
|
28
|
+
.gridui-u-button--min-h-gridui-control-large {
|
|
29
|
+
min-height: var(--gridui-control-min-height-large);
|
|
30
|
+
}
|
|
31
|
+
.gridui-u-button--min-h-gridui-control-small {
|
|
32
|
+
min-height: var(--gridui-control-min-height-small);
|
|
33
|
+
}
|
|
34
|
+
.gridui-u-button--w-fit {
|
|
35
|
+
width: fit-content;
|
|
36
|
+
}
|
|
37
|
+
.gridui-u-button--w-full {
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
.gridui-u-button--w-gridui-64 {
|
|
41
|
+
width: var(--gridui-space-64);
|
|
42
|
+
}
|
|
43
|
+
.gridui-u-button--w-gridui-control {
|
|
44
|
+
width: var(--gridui-control-min-height);
|
|
45
|
+
}
|
|
46
|
+
.gridui-u-button--w-gridui-control-large {
|
|
47
|
+
width: var(--gridui-control-min-height-large);
|
|
48
|
+
}
|
|
49
|
+
.gridui-u-button--w-gridui-control-small {
|
|
50
|
+
width: var(--gridui-control-min-height-small);
|
|
51
|
+
}
|
|
52
|
+
.gridui-u-button--max-w-full {
|
|
53
|
+
max-width: 100%;
|
|
54
|
+
}
|
|
55
|
+
.gridui-u-button--min-w-0 {
|
|
56
|
+
min-width: 0px;
|
|
57
|
+
}
|
|
58
|
+
.gridui-u-button--min-w-gridui-24 {
|
|
59
|
+
min-width: var(--gridui-space-24);
|
|
60
|
+
}
|
|
61
|
+
.gridui-u-button--flex-1 {
|
|
62
|
+
flex: 1;
|
|
63
|
+
}
|
|
64
|
+
.gridui-u-button--shrink-0 {
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
}
|
|
67
|
+
.gridui-u-button--cursor-pointer {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
.gridui-u-button--flex-col {
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
}
|
|
73
|
+
.gridui-u-button--items-center {
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
.gridui-u-button--items-stretch {
|
|
77
|
+
align-items: stretch;
|
|
78
|
+
}
|
|
79
|
+
.gridui-u-button--justify-between {
|
|
80
|
+
justify-content: space-between;
|
|
81
|
+
}
|
|
82
|
+
.gridui-u-button--justify-center {
|
|
83
|
+
justify-content: center;
|
|
84
|
+
}
|
|
85
|
+
.gridui-u-button--justify-start {
|
|
86
|
+
justify-content: flex-start;
|
|
87
|
+
}
|
|
88
|
+
.gridui-u-button--gap-0 {
|
|
89
|
+
gap: 0px;
|
|
90
|
+
}
|
|
91
|
+
.gridui-u-button--gap-gridui-8 {
|
|
92
|
+
gap: var(--gridui-space-8);
|
|
93
|
+
}
|
|
94
|
+
.gridui-u-button--gap-gridui-32 {
|
|
95
|
+
gap: var(--gridui-space-32);
|
|
96
|
+
}
|
|
97
|
+
.gridui-u-button--self-stretch {
|
|
98
|
+
align-self: stretch;
|
|
99
|
+
}
|
|
100
|
+
.gridui-u-button--rounded-control {
|
|
101
|
+
border-radius: var(--gridui-control-radius);
|
|
102
|
+
}
|
|
103
|
+
.gridui-u-button--rounded-none {
|
|
104
|
+
border-radius: 0;
|
|
105
|
+
}
|
|
106
|
+
.gridui-u-button--border-0 {
|
|
107
|
+
border-style: var(--tw-border-style);
|
|
108
|
+
border-width: 0px;
|
|
109
|
+
}
|
|
110
|
+
.gridui-u-button--border-b {
|
|
111
|
+
border-bottom-style: var(--tw-border-style);
|
|
112
|
+
border-bottom-width: 1px;
|
|
113
|
+
}
|
|
114
|
+
.gridui-u-button--border-accent-background {
|
|
115
|
+
border-color: var(--gridui-accent-background);
|
|
116
|
+
}
|
|
117
|
+
.gridui-u-button--border-control-border {
|
|
118
|
+
border-color: var(--gridui-control-border);
|
|
119
|
+
}
|
|
120
|
+
.gridui-u-button--border-foreground {
|
|
121
|
+
border-color: var(--gridui-foreground);
|
|
122
|
+
}
|
|
123
|
+
.gridui-u-button--bg-accent-background {
|
|
124
|
+
background-color: var(--gridui-accent-background);
|
|
125
|
+
}
|
|
126
|
+
.gridui-u-button--bg-selection-background {
|
|
127
|
+
background-color: var(--gridui-selection-background);
|
|
128
|
+
}
|
|
129
|
+
.gridui-u-button--bg-transparent {
|
|
130
|
+
background-color: transparent;
|
|
131
|
+
}
|
|
132
|
+
.gridui-u-button--p-0 {
|
|
133
|
+
padding: 0px;
|
|
134
|
+
}
|
|
135
|
+
.gridui-u-button--px-0 {
|
|
136
|
+
padding-inline: 0px;
|
|
137
|
+
}
|
|
138
|
+
.gridui-u-button--px-gridui-8 {
|
|
139
|
+
padding-inline: var(--gridui-space-8);
|
|
140
|
+
}
|
|
141
|
+
.gridui-u-button--px-gridui-16 {
|
|
142
|
+
padding-inline: var(--gridui-space-16);
|
|
143
|
+
}
|
|
144
|
+
.gridui-u-button--px-gridui-24 {
|
|
145
|
+
padding-inline: var(--gridui-space-24);
|
|
146
|
+
}
|
|
147
|
+
.gridui-u-button--py-gridui-4 {
|
|
148
|
+
padding-block: var(--gridui-space-4);
|
|
149
|
+
}
|
|
150
|
+
.gridui-u-button--py-gridui-8 {
|
|
151
|
+
padding-block: var(--gridui-space-8);
|
|
152
|
+
}
|
|
153
|
+
.gridui-u-button--py-gridui-16 {
|
|
154
|
+
padding-block: var(--gridui-space-16);
|
|
155
|
+
}
|
|
156
|
+
.gridui-u-button--text-center {
|
|
157
|
+
text-align: center;
|
|
158
|
+
}
|
|
159
|
+
.gridui-u-button--text-left {
|
|
160
|
+
text-align: left;
|
|
161
|
+
}
|
|
162
|
+
.gridui-u-button--text-start {
|
|
163
|
+
text-align: start;
|
|
164
|
+
}
|
|
165
|
+
.gridui-u-button--type-supporting {
|
|
166
|
+
font: var(--gridui-type-supporting);
|
|
167
|
+
font-family: var(--gridui-font-body);
|
|
168
|
+
letter-spacing: normal;
|
|
169
|
+
}
|
|
170
|
+
.gridui-u-button--type-ui {
|
|
171
|
+
font: var(--gridui-type-ui);
|
|
172
|
+
font-family: var(--gridui-font-body);
|
|
173
|
+
letter-spacing: normal;
|
|
174
|
+
}
|
|
175
|
+
.gridui-u-button--wrap-anywhere {
|
|
176
|
+
overflow-wrap: anywhere;
|
|
177
|
+
}
|
|
178
|
+
.gridui-u-button--text-accent-foreground {
|
|
179
|
+
color: var(--gridui-accent-foreground);
|
|
180
|
+
}
|
|
181
|
+
.gridui-u-button--text-foreground {
|
|
182
|
+
color: var(--gridui-foreground);
|
|
183
|
+
}
|
|
184
|
+
.gridui-u-button--no-underline {
|
|
185
|
+
text-decoration-line: none;
|
|
186
|
+
}
|
|
187
|
+
.gridui-u-button--\[transition-property\:var\(--gridui-motion-transition\,color\,background-color\,border-color\,text-decoration-color\,fill\,stroke\)\] {
|
|
188
|
+
transition-property: var(--gridui-motion-transition,color,background-color,border-color,text-decoration-color,fill,stroke);
|
|
189
|
+
}
|
|
190
|
+
.gridui-u-button--duration-\[calc\(var\(--gridui-motion-duration-quick\)\*var\(--gridui-motion-factor\,1\)\)\] {
|
|
191
|
+
--tw-duration: calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1));
|
|
192
|
+
transition-duration: calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1));
|
|
193
|
+
}
|
|
194
|
+
.gridui-u-button--ease-\(--gridui-motion-ease-out\) {
|
|
195
|
+
--tw-ease: var(--gridui-motion-ease-out);
|
|
196
|
+
transition-timing-function: var(--gridui-motion-ease-out);
|
|
197
|
+
}
|
|
198
|
+
.gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-icon-size\)\] {
|
|
199
|
+
--gridui-button-icon-size: var(--gridui-icon-size);
|
|
200
|
+
}
|
|
201
|
+
.gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-icon-size-large\)\] {
|
|
202
|
+
--gridui-button-icon-size: var(--gridui-icon-size-large);
|
|
203
|
+
}
|
|
204
|
+
.gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-space-32\)\] {
|
|
205
|
+
--gridui-button-icon-size: var(--gridui-space-32);
|
|
206
|
+
}
|
|
207
|
+
.gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-space-48\)\] {
|
|
208
|
+
--gridui-button-icon-size: var(--gridui-space-48);
|
|
209
|
+
}
|
|
210
|
+
@media (hover: hover) {
|
|
211
|
+
.gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:hover\:bg-accent-hover:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):hover {
|
|
212
|
+
background-color: var(--gridui-accent-hover);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
.gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:active\:bg-accent-pressed:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):active {
|
|
216
|
+
background-color: var(--gridui-accent-pressed);
|
|
217
|
+
}
|
|
218
|
+
.gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:active\:bg-surface-pressed:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):active {
|
|
219
|
+
background-color: var(--gridui-surface-pressed);
|
|
220
|
+
}
|
|
221
|
+
.gridui-u-button--disabled\:cursor-not-allowed:disabled {
|
|
222
|
+
cursor: not-allowed;
|
|
223
|
+
}
|
|
224
|
+
.gridui-u-button--aria-disabled\:cursor-not-allowed[aria-disabled="true"] {
|
|
225
|
+
cursor: not-allowed;
|
|
226
|
+
}
|
|
227
|
+
.gridui-u-button--data-disabled\:cursor-not-allowed[data-disabled] {
|
|
228
|
+
cursor: not-allowed;
|
|
229
|
+
}
|
|
230
|
+
.gridui-u-button--data-gridui-busy\:cursor-wait[data-gridui-busy] {
|
|
231
|
+
cursor: wait;
|
|
232
|
+
}
|
|
233
|
+
@media (prefers-reduced-motion: reduce) {
|
|
234
|
+
.gridui-u-button--motion-reduce\:transition-none {
|
|
235
|
+
transition-property: none;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
.gridui-u-button--\[\&_\>_span\]\:whitespace-nowrap > span {
|
|
239
|
+
white-space: nowrap;
|
|
240
|
+
}
|
|
241
|
+
.gridui-u-button--\[\&_\>_span\]\:\[writing-mode\:vertical-rl\] > span {
|
|
242
|
+
writing-mode: vertical-rl;
|
|
243
|
+
}
|
|
244
|
+
.gridui-u-button--\[\&_svg\]\:pointer-events-none svg {
|
|
245
|
+
pointer-events: none;
|
|
246
|
+
}
|
|
247
|
+
.gridui-u-button--\[\&_svg\]\:h-\(--gridui-button-icon-size\) svg {
|
|
248
|
+
height: var(--gridui-button-icon-size);
|
|
249
|
+
}
|
|
250
|
+
.gridui-u-button--\[\&_svg\]\:w-\(--gridui-button-icon-size\) svg {
|
|
251
|
+
width: var(--gridui-button-icon-size);
|
|
252
|
+
}
|
|
253
|
+
.gridui-u-button--\[\&_svg\]\:shrink-0 svg {
|
|
254
|
+
flex-shrink: 0;
|
|
255
|
+
}
|
|
256
|
+
.gridui-u-button--\[\&\.gridui-button-extra-large\]\:h-18.gridui-button-extra-large {
|
|
257
|
+
height: calc(var(--spacing) * 18);
|
|
258
|
+
}
|
|
259
|
+
.gridui-u-button--\[\&\.gridui-button-extra-large\]\:w-18.gridui-button-extra-large {
|
|
260
|
+
width: calc(var(--spacing) * 18);
|
|
261
|
+
}
|
|
262
|
+
.gridui-u-button--\[\&\.gridui-button-large\]\:h-gridui-control-large.gridui-button-large {
|
|
263
|
+
height: var(--gridui-control-min-height-large);
|
|
264
|
+
}
|
|
265
|
+
.gridui-u-button--\[\&\.gridui-button-large\]\:w-gridui-control-large.gridui-button-large {
|
|
266
|
+
width: var(--gridui-control-min-height-large);
|
|
267
|
+
}
|
|
268
|
+
.gridui-u-button--\[\&\.gridui-button-small\]\:h-gridui-control-small.gridui-button-small {
|
|
269
|
+
height: var(--gridui-control-min-height-small);
|
|
270
|
+
}
|
|
271
|
+
.gridui-u-button--\[\&\.gridui-button-small\]\:w-gridui-control-small.gridui-button-small {
|
|
272
|
+
width: var(--gridui-control-min-height-small);
|
|
273
|
+
}
|
|
274
|
+
@media (pointer: coarse) {
|
|
275
|
+
.gridui-u-button--pointer-coarse\:\[\&\.gridui-button-small\]\:h-gridui-control.gridui-button-small {
|
|
276
|
+
height: var(--gridui-control-min-height);
|
|
277
|
+
}
|
|
278
|
+
.gridui-u-button--pointer-coarse\:\[\&\.gridui-button-small\]\:w-gridui-control.gridui-button-small {
|
|
279
|
+
width: var(--gridui-control-min-height);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
@layer components {
|
|
284
|
+
.gridui-button {
|
|
285
|
+
border: 1px solid transparent;
|
|
286
|
+
}
|
|
287
|
+
.gridui-button-cell {
|
|
288
|
+
border: 0;
|
|
289
|
+
}
|
|
290
|
+
.gridui-button-label-content {
|
|
291
|
+
display: inline-flex;
|
|
292
|
+
min-width: 0;
|
|
293
|
+
flex-direction: inherit;
|
|
294
|
+
align-items: inherit;
|
|
295
|
+
justify-content: inherit;
|
|
296
|
+
gap: inherit;
|
|
297
|
+
}
|
|
298
|
+
.gridui-button-body {
|
|
299
|
+
display: inline-flex;
|
|
300
|
+
flex: 1;
|
|
301
|
+
min-width: 0;
|
|
302
|
+
flex-direction: inherit;
|
|
303
|
+
align-items: inherit;
|
|
304
|
+
justify-content: inherit;
|
|
305
|
+
gap: inherit;
|
|
306
|
+
}
|
|
307
|
+
.gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-content, .gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-start-region > .gridui-button-content, .gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-end-region > .gridui-button-content {
|
|
308
|
+
opacity: 0.5;
|
|
309
|
+
}
|
|
310
|
+
.gridui-button-start-region {
|
|
311
|
+
min-width: calc(var(--gridui-button-icon-size) + var(--gridui-space-16));
|
|
312
|
+
border-inline-end: 1px solid;
|
|
313
|
+
border-color: inherit;
|
|
314
|
+
}
|
|
315
|
+
.gridui-button-end-region {
|
|
316
|
+
border-inline-start: 1px solid;
|
|
317
|
+
border-color: inherit;
|
|
318
|
+
}
|
|
319
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
320
|
+
.gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]) .gridui-button-end-icon {
|
|
321
|
+
transition: var(--gridui-motion-transition, transform calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out));
|
|
322
|
+
}
|
|
323
|
+
.gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]):hover .gridui-button-end-icon {
|
|
324
|
+
transform: var(--gridui-motion-transform, translate(var(--gridui-space-4), calc(-1 * var(--gridui-space-4))));
|
|
325
|
+
}
|
|
326
|
+
.gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]):dir(rtl):hover .gridui-button-end-icon {
|
|
327
|
+
transform: var(--gridui-motion-transform, translate(calc(-1 * var(--gridui-space-4)), calc(-1 * var(--gridui-space-4))));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
.gridui-button-group {
|
|
331
|
+
--gridui-button-group-padding-block: var(--gridui-space-24);
|
|
332
|
+
container: gridui-button-group / inline-size;
|
|
333
|
+
min-width: 0;
|
|
334
|
+
}
|
|
335
|
+
.gridui-button-group-items {
|
|
336
|
+
display: grid;
|
|
337
|
+
grid-auto-flow: column;
|
|
338
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
339
|
+
align-items: stretch;
|
|
340
|
+
}
|
|
341
|
+
.gridui-button-group-items[data-layout="standard"] {
|
|
342
|
+
gap: var(--gridui-space-8);
|
|
343
|
+
}
|
|
344
|
+
.gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item]:not([hidden]) ~ [data-gridui-button-group-item]:not([hidden])::before {
|
|
345
|
+
position: absolute;
|
|
346
|
+
inset-block: 0;
|
|
347
|
+
inset-inline-start: 0;
|
|
348
|
+
width: 1px;
|
|
349
|
+
background: var(--gridui-button-group-border, var(--gridui-border));
|
|
350
|
+
pointer-events: none;
|
|
351
|
+
content: "";
|
|
352
|
+
}
|
|
353
|
+
@container gridui-button-group (max-width: 20rem) {
|
|
354
|
+
.gridui-button-group-items {
|
|
355
|
+
grid-auto-flow: row;
|
|
356
|
+
grid-auto-rows: 1fr;
|
|
357
|
+
}
|
|
358
|
+
.gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item]:not([hidden]) ~ [data-gridui-button-group-item]:not([hidden])::before {
|
|
359
|
+
inset-block: 0 auto;
|
|
360
|
+
inset-inline: 0;
|
|
361
|
+
width: auto;
|
|
362
|
+
height: 1px;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
@layer utilities {
|
|
367
|
+
.gridui-button-group-items > [data-gridui-button-group-item] {
|
|
368
|
+
position: relative;
|
|
369
|
+
width: 100%;
|
|
370
|
+
height: 100%;
|
|
371
|
+
min-width: 0;
|
|
372
|
+
}
|
|
373
|
+
.gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item] {
|
|
374
|
+
min-height: 2.75rem;
|
|
375
|
+
padding: var(--gridui-button-group-padding-block) var(--gridui-space-24);
|
|
376
|
+
border: 0;
|
|
377
|
+
border-radius: 0;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
@property --tw-border-style {
|
|
381
|
+
syntax: "*";
|
|
382
|
+
inherits: false;
|
|
383
|
+
initial-value: solid;
|
|
384
|
+
}
|
|
385
|
+
@property --tw-duration {
|
|
386
|
+
syntax: "*";
|
|
387
|
+
inherits: false;
|
|
388
|
+
}
|
|
389
|
+
@property --tw-ease {
|
|
390
|
+
syntax: "*";
|
|
391
|
+
inherits: false;
|
|
392
|
+
}
|
|
393
|
+
@layer properties {
|
|
394
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
395
|
+
*, ::before, ::after, ::backdrop {
|
|
396
|
+
--tw-border-style: solid;
|
|
397
|
+
--tw-duration: initial;
|
|
398
|
+
--tw-ease: initial;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
404
|
+
@layer theme, base, components, utilities;
|
|
405
|
+
@layer theme {
|
|
406
|
+
:root, :host {
|
|
407
|
+
--spacing: 0.25rem;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
@layer utilities {
|
|
411
|
+
.gridui-u-disclosure--box-border {
|
|
412
|
+
box-sizing: border-box;
|
|
413
|
+
}
|
|
414
|
+
.gridui-u-disclosure--block {
|
|
415
|
+
display: block;
|
|
416
|
+
}
|
|
417
|
+
.gridui-u-disclosure--min-h-11 {
|
|
418
|
+
min-height: calc(var(--spacing) * 11);
|
|
419
|
+
}
|
|
420
|
+
.gridui-u-disclosure--w-full {
|
|
421
|
+
width: 100%;
|
|
422
|
+
}
|
|
423
|
+
.gridui-u-disclosure--max-w-full {
|
|
424
|
+
max-width: 100%;
|
|
425
|
+
}
|
|
426
|
+
.gridui-u-disclosure--min-w-0 {
|
|
427
|
+
min-width: 0px;
|
|
428
|
+
}
|
|
429
|
+
.gridui-u-disclosure--cursor-pointer {
|
|
430
|
+
cursor: pointer;
|
|
431
|
+
}
|
|
432
|
+
.gridui-u-disclosure--type-body {
|
|
433
|
+
font: var(--gridui-type-body);
|
|
434
|
+
font-family: var(--gridui-font-body);
|
|
435
|
+
letter-spacing: normal;
|
|
436
|
+
}
|
|
437
|
+
.gridui-u-disclosure--wrap-anywhere {
|
|
438
|
+
overflow-wrap: anywhere;
|
|
439
|
+
}
|
|
440
|
+
.gridui-u-disclosure--text-link {
|
|
441
|
+
color: var(--gridui-link);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
@layer components {
|
|
445
|
+
.gridui-disclosure[open]::details-content {
|
|
446
|
+
display: contents;
|
|
447
|
+
}
|
|
448
|
+
.gridui-disclosure > .gridui-disclosure-summary {
|
|
449
|
+
padding-block: var(--gridui-disclosure-block);
|
|
450
|
+
padding-inline: var(--gridui-disclosure-inline);
|
|
451
|
+
}
|
|
452
|
+
.gridui-disclosure > .gridui-disclosure-content {
|
|
453
|
+
box-sizing: border-box;
|
|
454
|
+
min-width: 0;
|
|
455
|
+
max-width: 100%;
|
|
456
|
+
padding: var(--gridui-disclosure-content);
|
|
457
|
+
}
|
|
458
|
+
@media (min-width: 40rem) {
|
|
459
|
+
.gridui-disclosure > .gridui-disclosure-summary {
|
|
460
|
+
padding-block: var(--gridui-disclosure-block-sm);
|
|
461
|
+
padding-inline: var(--gridui-disclosure-inline-sm);
|
|
462
|
+
}
|
|
463
|
+
.gridui-disclosure > .gridui-disclosure-content {
|
|
464
|
+
padding: var(--gridui-disclosure-content-sm);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
@media (min-width: 48rem) {
|
|
468
|
+
.gridui-disclosure > .gridui-disclosure-summary {
|
|
469
|
+
padding-block: var(--gridui-disclosure-block-md);
|
|
470
|
+
padding-inline: var(--gridui-disclosure-inline-md);
|
|
471
|
+
}
|
|
472
|
+
.gridui-disclosure > .gridui-disclosure-content {
|
|
473
|
+
padding: var(--gridui-disclosure-content-md);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
@media (min-width: 64rem) {
|
|
477
|
+
.gridui-disclosure > .gridui-disclosure-summary {
|
|
478
|
+
padding-block: var(--gridui-disclosure-block-lg);
|
|
479
|
+
padding-inline: var(--gridui-disclosure-inline-lg);
|
|
480
|
+
}
|
|
481
|
+
.gridui-disclosure > .gridui-disclosure-content {
|
|
482
|
+
padding: var(--gridui-disclosure-content-lg);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
1
487
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
488
|
@layer properties;
|
|
3
489
|
@layer theme, base, components, utilities;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--spacing: 0.25rem;
|
|
7
|
+
--font-weight-medium: 500;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
@layer utilities {
|
|
11
|
+
.gridui-u-task--m-0 {
|
|
12
|
+
margin: 0px;
|
|
13
|
+
}
|
|
14
|
+
.gridui-u-task--my-gridui-8 {
|
|
15
|
+
margin-block: var(--gridui-space-8);
|
|
16
|
+
}
|
|
17
|
+
.gridui-u-task--mt-gridui-16 {
|
|
18
|
+
margin-top: var(--gridui-space-16);
|
|
19
|
+
}
|
|
20
|
+
.gridui-u-task--flex {
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
.gridui-u-task--min-h-0 {
|
|
24
|
+
min-height: 0px;
|
|
25
|
+
}
|
|
26
|
+
.gridui-u-task--min-h-11 {
|
|
27
|
+
min-height: calc(var(--spacing) * 11);
|
|
28
|
+
}
|
|
29
|
+
.gridui-u-task--min-w-0 {
|
|
30
|
+
min-width: 0px;
|
|
31
|
+
}
|
|
32
|
+
.gridui-u-task--cursor-pointer {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.gridui-u-task--list-decimal {
|
|
36
|
+
list-style-type: decimal;
|
|
37
|
+
}
|
|
38
|
+
.gridui-u-task--flex-col {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
}
|
|
41
|
+
.gridui-u-task--flex-wrap {
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
}
|
|
44
|
+
.gridui-u-task--items-baseline {
|
|
45
|
+
align-items: baseline;
|
|
46
|
+
}
|
|
47
|
+
.gridui-u-task--items-center {
|
|
48
|
+
align-items: center;
|
|
49
|
+
}
|
|
50
|
+
.gridui-u-task--justify-between {
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
}
|
|
53
|
+
.gridui-u-task--justify-end {
|
|
54
|
+
justify-content: flex-end;
|
|
55
|
+
}
|
|
56
|
+
.gridui-u-task--gap-gridui-8 {
|
|
57
|
+
gap: var(--gridui-space-8);
|
|
58
|
+
}
|
|
59
|
+
.gridui-u-task--border {
|
|
60
|
+
border-style: var(--tw-border-style);
|
|
61
|
+
border-width: 1px;
|
|
62
|
+
}
|
|
63
|
+
.gridui-u-task--border-0 {
|
|
64
|
+
border-style: var(--tw-border-style);
|
|
65
|
+
border-width: 0px;
|
|
66
|
+
}
|
|
67
|
+
.gridui-u-task--border-b {
|
|
68
|
+
border-bottom-style: var(--tw-border-style);
|
|
69
|
+
border-bottom-width: 1px;
|
|
70
|
+
}
|
|
71
|
+
.gridui-u-task--border-border {
|
|
72
|
+
border-color: var(--gridui-border);
|
|
73
|
+
}
|
|
74
|
+
.gridui-u-task--bg-background {
|
|
75
|
+
background-color: var(--gridui-background);
|
|
76
|
+
}
|
|
77
|
+
.gridui-u-task--bg-transparent {
|
|
78
|
+
background-color: transparent;
|
|
79
|
+
}
|
|
80
|
+
.gridui-u-task--p-0 {
|
|
81
|
+
padding: 0px;
|
|
82
|
+
}
|
|
83
|
+
.gridui-u-task--p-gridui-16 {
|
|
84
|
+
padding: var(--gridui-space-16);
|
|
85
|
+
}
|
|
86
|
+
.gridui-u-task--py-gridui-16 {
|
|
87
|
+
padding-block: var(--gridui-space-16);
|
|
88
|
+
}
|
|
89
|
+
.gridui-u-task--ps-gridui-32 {
|
|
90
|
+
padding-inline-start: var(--gridui-space-32);
|
|
91
|
+
}
|
|
92
|
+
.gridui-u-task--pe-gridui-16 {
|
|
93
|
+
padding-inline-end: var(--gridui-space-16);
|
|
94
|
+
}
|
|
95
|
+
.gridui-u-task--text-start {
|
|
96
|
+
text-align: start;
|
|
97
|
+
}
|
|
98
|
+
.gridui-u-task--type-body {
|
|
99
|
+
font: var(--gridui-type-body);
|
|
100
|
+
font-family: var(--gridui-font-body);
|
|
101
|
+
letter-spacing: normal;
|
|
102
|
+
}
|
|
103
|
+
.gridui-u-task--type-caption {
|
|
104
|
+
font: var(--gridui-type-caption);
|
|
105
|
+
font-family: var(--gridui-font-body);
|
|
106
|
+
letter-spacing: normal;
|
|
107
|
+
}
|
|
108
|
+
.gridui-u-task--font-medium {
|
|
109
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
110
|
+
font-weight: var(--font-weight-medium);
|
|
111
|
+
}
|
|
112
|
+
.gridui-u-task--wrap-anywhere {
|
|
113
|
+
overflow-wrap: anywhere;
|
|
114
|
+
}
|
|
115
|
+
.gridui-u-task--text-foreground {
|
|
116
|
+
color: var(--gridui-foreground);
|
|
117
|
+
}
|
|
118
|
+
.gridui-u-task--text-inherit {
|
|
119
|
+
color: inherit;
|
|
120
|
+
}
|
|
121
|
+
.gridui-u-task--text-muted {
|
|
122
|
+
color: var(--gridui-muted);
|
|
123
|
+
}
|
|
124
|
+
.gridui-u-task--text-status-danger-text {
|
|
125
|
+
color: var(--gridui-status-danger-text);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@layer components {
|
|
129
|
+
.gridui-tool-call-trigger {
|
|
130
|
+
font: inherit;
|
|
131
|
+
}
|
|
132
|
+
.gridui-tool-call-chevron {
|
|
133
|
+
inline-size: 0.375rem;
|
|
134
|
+
block-size: 0.375rem;
|
|
135
|
+
flex: none;
|
|
136
|
+
border-block-start: 1px solid currentColor;
|
|
137
|
+
border-inline-end: 1px solid currentColor;
|
|
138
|
+
rotate: 45deg;
|
|
139
|
+
}
|
|
140
|
+
.gridui-tool-call-trigger:dir(rtl) .gridui-tool-call-chevron {
|
|
141
|
+
rotate: -135deg;
|
|
142
|
+
}
|
|
143
|
+
.gridui-tool-call-trigger[aria-expanded="true"] .gridui-tool-call-chevron {
|
|
144
|
+
rotate: 135deg;
|
|
145
|
+
}
|
|
146
|
+
.gridui-tool-call-details[hidden] {
|
|
147
|
+
display: none !important;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@property --tw-border-style {
|
|
151
|
+
syntax: "*";
|
|
152
|
+
inherits: false;
|
|
153
|
+
initial-value: solid;
|
|
154
|
+
}
|
|
155
|
+
@property --tw-font-weight {
|
|
156
|
+
syntax: "*";
|
|
157
|
+
inherits: false;
|
|
158
|
+
}
|
|
159
|
+
@layer properties {
|
|
160
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
161
|
+
*, ::before, ::after, ::backdrop {
|
|
162
|
+
--tw-border-style: solid;
|
|
163
|
+
--tw-font-weight: initial;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Task
|
|
4
|
+
* @namespace ToolCall
|
|
5
|
+
* @description Tool Call
|
|
6
|
+
*/
|
|
1
7
|
import { type ToolCallStatus } from "../shared/tool-call-context";
|
|
2
8
|
import { type ComponentPropsWithRef, type FC, type ReactNode } from "react";
|
|
3
9
|
export type ToolCallProps = Omit<ComponentPropsWithRef<"div">, "title" | "children"> & {
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Task
|
|
4
|
+
* @namespace ToolCallDetails
|
|
5
|
+
* @description Tool Call Details
|
|
6
|
+
*/
|
|
1
7
|
import type { ComponentPropsWithRef, FC } from "react";
|
|
2
8
|
export type ToolCallDetailsProps = Omit<ComponentPropsWithRef<"div">, "id" | "hidden" | "aria-labelledby" | "aria-busy">;
|
|
3
9
|
export declare const ToolCallDetails: FC<ToolCallDetailsProps>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Task
|
|
4
|
+
* @namespace ToolCallSummary
|
|
5
|
+
* @description Tool Call Summary
|
|
6
|
+
*/
|
|
1
7
|
import type { ComponentPropsWithRef, FC, ReactNode } from "react";
|
|
2
8
|
export type ToolCallSummaryProps = Omit<ComponentPropsWithRef<"div">, "children"> & {
|
|
3
9
|
/** Use a static title when details are always visible. */
|
package/docs/catalog.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/task",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"category": "dashboard",
|
|
6
6
|
"description": "GridUI React task",
|
|
7
|
-
"usage": "TaskTimeline detail rows and settled ApprovalPanel records compose the public Disclosure.
|
|
7
|
+
"usage": "TaskTimeline detail rows and settled ApprovalPanel records compose the public Disclosure. Disclosure styles are included in Task styles. Native summary focus, keyboard interaction, and retained server-rendered context stay with Disclosure; Task owns decision state, callbacks, and dense spacing.",
|
|
8
8
|
"documentation": [
|
|
9
9
|
"README.md",
|
|
10
10
|
"docs/reference/README.md",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"@gridui/disclosure/styles.css",
|
|
83
83
|
"@gridui/task/styles.css"
|
|
84
84
|
],
|
|
85
|
+
"styledImport": "@gridui/task/styled",
|
|
85
86
|
"examples": [
|
|
86
87
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-dashboard/task/stories/approvals.mdx",
|
|
87
88
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-dashboard/task/stories/getting-started.mdx",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/task",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "GridUI React task",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +10,19 @@
|
|
|
10
10
|
"docs"
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": [
|
|
13
|
-
"**/*.css"
|
|
13
|
+
"**/*.css",
|
|
14
|
+
"./dist/styled.js"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/index.js"
|
|
19
20
|
},
|
|
20
|
-
"./styles.css": "./dist/styles.css"
|
|
21
|
+
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./styled": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/styled.js"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"publishConfig": {
|
|
23
28
|
"access": "public"
|
|
@@ -27,16 +32,16 @@
|
|
|
27
32
|
"react-dom": "^19.2.0"
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@gridui/button": "^5.
|
|
31
|
-
"@gridui/disclosure": "^2.0
|
|
35
|
+
"@gridui/button": "^5.2.0",
|
|
36
|
+
"@gridui/disclosure": "^2.1.0",
|
|
32
37
|
"@gridui/style-utils": "^4.0.0",
|
|
33
|
-
"@gridui/theme": "^
|
|
38
|
+
"@gridui/theme": "^4.0.0",
|
|
34
39
|
"class-variance-authority": "0.7.1"
|
|
35
40
|
},
|
|
36
41
|
"devDependencies": {
|
|
37
42
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
38
|
-
"@gridui/code-view": "1.0
|
|
39
|
-
"@gridui/grid": "3.
|
|
43
|
+
"@gridui/code-view": "1.1.0",
|
|
44
|
+
"@gridui/grid": "3.2.0",
|
|
40
45
|
"@jest/globals": "30.5.2",
|
|
41
46
|
"@storybook/react-vite": "10.6.7",
|
|
42
47
|
"@types/jest": "30.0.0",
|