@nadicodeai/ui 12.1.241 → 12.1.242

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.
@@ -0,0 +1,30 @@
1
+ import * as React from "react";
2
+ type FolderFieldProps = {
3
+ /** Names the field above its button: *Folder*. */
4
+ label: string;
5
+ /** The button that opens the system's folder picker: *Choose folder*. */
6
+ buttonLabel: string;
7
+ /** The folder chosen, as the product words it, under the button; none before a choice. */
8
+ chosen?: string | undefined;
9
+ /** Every file of the folder chosen, each with its `webkitRelativePath`; none when the choice is cancelled. */
10
+ onFolderChange: (files: File[]) => void;
11
+ /** The native input, for a form that reads its files when it sends. */
12
+ inputRef?: React.Ref<HTMLInputElement>;
13
+ /** The files are sent under this name with the form; unnamed, the caller sends what it keeps. */
14
+ name?: string;
15
+ disabled?: boolean;
16
+ };
17
+ /**
18
+ * A folder the person chooses from their computer, as one field of a form.
19
+ *
20
+ * @family Inputs
21
+ * @when A form that takes a whole folder at once, with its tree of files: the Portal's Library Publish, where a skill, a plugin or an Agent template is the folder that holds it.
22
+ * @instead One file or a picture is that field's own control, such as the avatar's `AvatarUploadButton`. Text a person types is `Input`.
23
+ * @behaviour The label, then an outline button that opens the system's folder picker through a hidden native `<input type="file" webkitdirectory multiple>`, which stays inside the form. A choice gives the caller every file of the folder, each with its path from the folder (`<folder>/<path inside it>`) as `webkitRelativePath`; the field keeps no list of its own. Under the button, the chosen folder as the caller words it. A field's limits belong to the form's description or to the refusal that meets them, never to a line under the field. With `name` the browser sends every file with the form; without it, the caller sends the files it keeps. `disabled` holds the button and the input, as a form's fieldset does while it sends.
24
+ * @words The product words the label (a noun, *Folder*), the button (*Choose folder*) and the chosen line (*quote-builder: 12 files, 48 kB*); the kit holds no copy.
25
+ * @access A real button named by `buttonLabel`, described by the chosen line, in the tab order where the field stands; the native input is hidden and labelled by the field's label. The picker is the system's own dialog, with its keyboard.
26
+ */
27
+ declare function FolderField({ buttonLabel, chosen, disabled, inputRef, label, name, onFolderChange, }: FolderFieldProps): React.JSX.Element;
28
+ export { FolderField };
29
+ export type { FolderFieldProps };
30
+ //# sourceMappingURL=folder-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-field.d.ts","sourceRoot":"","sources":["../../src/components/folder-field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,gBAAgB,GAAG;IACtB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,WAAW,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,8GAA8G;IAC9G,cAAc,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACxC,uEAAuE;IACvE,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACvC,iGAAiG;IACjG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;;GASG;AACH,iBAAS,WAAW,CAAC,EACnB,WAAW,EACX,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,cAAc,GACf,EAAE,gBAAgB,qBA+BlB;AAED,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { Button } from "./button.js";
5
+ import { Field, FieldDescription, FieldLabel } from "./field.js";
6
+ const DIRECTORY = { webkitdirectory: "" };
7
+ /**
8
+ * A folder the person chooses from their computer, as one field of a form.
9
+ *
10
+ * @family Inputs
11
+ * @when A form that takes a whole folder at once, with its tree of files: the Portal's Library Publish, where a skill, a plugin or an Agent template is the folder that holds it.
12
+ * @instead One file or a picture is that field's own control, such as the avatar's `AvatarUploadButton`. Text a person types is `Input`.
13
+ * @behaviour The label, then an outline button that opens the system's folder picker through a hidden native `<input type="file" webkitdirectory multiple>`, which stays inside the form. A choice gives the caller every file of the folder, each with its path from the folder (`<folder>/<path inside it>`) as `webkitRelativePath`; the field keeps no list of its own. Under the button, the chosen folder as the caller words it. A field's limits belong to the form's description or to the refusal that meets them, never to a line under the field. With `name` the browser sends every file with the form; without it, the caller sends the files it keeps. `disabled` holds the button and the input, as a form's fieldset does while it sends.
14
+ * @words The product words the label (a noun, *Folder*), the button (*Choose folder*) and the chosen line (*quote-builder: 12 files, 48 kB*); the kit holds no copy.
15
+ * @access A real button named by `buttonLabel`, described by the chosen line, in the tab order where the field stands; the native input is hidden and labelled by the field's label. The picker is the system's own dialog, with its keyboard.
16
+ */
17
+ function FolderField({ buttonLabel, chosen, disabled, inputRef, label, name, onFolderChange, }) {
18
+ const id = React.useId();
19
+ const described = chosen ? `${id}-chosen` : undefined;
20
+ return (_jsxs(Field, { "data-slot": "folder-field", children: [_jsx(FieldLabel, { htmlFor: `${id}-input`, children: label }), _jsx("div", { "data-slot": "folder-field-choose", children: _jsx(Button, { "aria-describedby": described, disabled: disabled, onClick: () => document.getElementById(`${id}-input`)?.click(), type: "button", variant: "outline", children: buttonLabel }) }), _jsx("input", { ...DIRECTORY, disabled: disabled, hidden: true, id: `${id}-input`, multiple: true, name: name, onChange: (event) => onFolderChange(Array.from(event.currentTarget.files ?? [])), ref: inputRef, type: "file" }), chosen ? _jsx(FieldDescription, { id: `${id}-chosen`, children: chosen }) : null] }));
21
+ }
22
+ export { FolderField };
@@ -151,6 +151,7 @@ export declare const SPECIMENS: {
151
151
  InputGroup: () => import("react").JSX.Element;
152
152
  InputOTP: () => import("react").JSX.Element;
153
153
  Label: () => import("react").JSX.Element;
154
+ FolderField: () => import("react").JSX.Element;
154
155
  NativeSelect: () => import("react").JSX.Element;
155
156
  SettingsRows: () => import("react").JSX.Element;
156
157
  SettingsField: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
@@ -15,6 +15,7 @@ export declare const INPUTS: {
15
15
  InputGroup: typeof InputGroupSpecimen;
16
16
  InputOTP: typeof InputOTPSpecimen;
17
17
  Label: () => import("react").JSX.Element;
18
+ FolderField: () => import("react").JSX.Element;
18
19
  NativeSelect: () => import("react").JSX.Element;
19
20
  SettingsRows: typeof SettingsRowsSpecimen;
20
21
  SettingsField: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/inputs.tsx"],"names":[],"mappings":"AA+BA,iBAAS,gBAAgB,gCAgBxB;AAED,iBAAS,wBAAwB,gCAqBhC;AAED,iBAAS,sBAAsB,gCAiC9B;AAED,iBAAS,kBAAkB,gCAqC1B;AAED,iBAAS,gBAAgB,gCA2BxB;AAED,iBAAS,cAAc,gCAuCtB;AAqBD,iBAAS,oBAAoB,gCAoD5B;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CAkIQ,CAAC"}
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/inputs.tsx"],"names":[],"mappings":"AAgCA,iBAAS,gBAAgB,gCAgBxB;AAED,iBAAS,wBAAwB,gCAqBhC;AAED,iBAAS,sBAAsB,gCAiC9B;AAED,iBAAS,kBAAkB,gCAqC1B;AAED,iBAAS,gBAAgB,gCA2BxB;AAED,iBAAS,cAAc,gCAuCtB;AAqBD,iBAAS,oBAAoB,gCAoD5B;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA6IQ,CAAC"}
@@ -7,6 +7,7 @@ import { Calendar } from "../../components/calendar.js";
7
7
  import { ClearableInput } from "../../components/clearable-input.js";
8
8
  import { CollectionSearch } from "../../components/collection-search.js";
9
9
  import { Field, FieldDescription, FieldError, FieldLabel } from "../../components/field.js";
10
+ import { FolderField } from "../../components/folder-field.js";
10
11
  import { Form } from "../../components/form.js";
11
12
  import { Input } from "../../components/input.js";
12
13
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, } from "../../components/input-group.js";
@@ -98,6 +99,7 @@ export const INPUTS = {
98
99
  InputGroup: InputGroupSpecimen,
99
100
  InputOTP: InputOTPSpecimen,
100
101
  Label: () => (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Switch, { id: "showcase-approvals" }), _jsx(Label, { htmlFor: "showcase-approvals", children: "Approvals" })] })),
102
+ FolderField: () => (_jsxs("div", { className: "grid max-w-sm gap-4", children: [_jsx(FolderField, { buttonLabel: "Choose folder", label: "Folder", onFolderChange: nothing }), _jsx(FolderField, { buttonLabel: "Choose folder", chosen: "quote-builder: 12 files, 48 kB", label: "Folder", onFolderChange: nothing })] })),
101
103
  NativeSelect: () => (_jsxs("div", { className: "grid max-w-sm gap-4", children: [_jsxs(NativeSelect, { defaultValue: "Europe/Rome", id: "showcase-zone", label: "Time zone", children: [_jsx(NativeSelectOption, { value: "Europe/London", children: "London" }), _jsx(NativeSelectOption, { value: "Europe/Rome", children: "Rome" }), _jsx(NativeSelectOption, { value: "America/New_York", children: "New York" }), _jsx(NativeSelectOption, { value: "Asia/Tokyo", children: "Tokyo" })] }), _jsxs(NativeSelect, { "aria-label": "Time zone, large", defaultValue: "Europe/Rome", prefix: _jsx(Clock, { "aria-hidden": "true" }), size: "lg", children: [_jsx(NativeSelectOption, { value: "Europe/London", children: "London" }), _jsx(NativeSelectOption, { value: "Europe/Rome", children: "Rome" }), _jsx(NativeSelectOption, { value: "America/New_York", children: "New York" }), _jsx(NativeSelectOption, { value: "Asia/Tokyo", children: "Tokyo" })] })] })),
102
104
  SettingsRows: SettingsRowsSpecimen,
103
105
  SettingsField: () => (_jsx("div", { className: "max-w-md", children: _jsx(SettingsField, { id: "showcase-sender", label: "Sender name", children: ({ controlProps }) => _jsx(Input, { ...controlProps, defaultValue: "Acme Quotes" }) }) })),
@@ -1,4 +1,4 @@
1
- export type UsageName = "ActivityFeed" | "AssistantPanelHeader" | "AssistantWelcome" | "BoardEmpty" | "BoardHeader" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "ConversationCard" | "DrawerSteps" | "EntryPage" | "EntryPicture" | "EntryScene" | "FilterToolbar" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageFrame" | "PageHeader" | "PlanCard" | "ProductBand" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "StepCards" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CompanyCardActions" | "CopyButton" | "LoadMoreButton" | "PageActions" | "RecordCommands" | "RecordContextMenu" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppIcon" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IconTile" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "ColumnFoot" | "CommandDialog" | "DocumentTabs" | "FileTree" | "Footer" | "PlaceCount" | "PortalSidebarFrame" | "ProductShell" | "ProductShellBell" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFoot" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "AgentRow" | "Card" | "CardRow" | "CatalogCard" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FigureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
1
+ export type UsageName = "ActivityFeed" | "AssistantPanelHeader" | "AssistantWelcome" | "BoardEmpty" | "BoardHeader" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "ConversationCard" | "DrawerSteps" | "EntryPage" | "EntryPicture" | "EntryScene" | "FilterToolbar" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageFrame" | "PageHeader" | "PlanCard" | "ProductBand" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "StepCards" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CompanyCardActions" | "CopyButton" | "LoadMoreButton" | "PageActions" | "RecordCommands" | "RecordContextMenu" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "FolderField" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppIcon" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IconTile" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "ColumnFoot" | "CommandDialog" | "DocumentTabs" | "FileTree" | "Footer" | "PlaceCount" | "PortalSidebarFrame" | "ProductShell" | "ProductShellBell" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFoot" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "AgentRow" | "Card" | "CardRow" | "CatalogCard" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FigureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
2
2
  export type UsageFamily = "Compositions" | "Actions" | "Inputs" | "Choices" | "Status" | "Navigation" | "Data" | "Feedback" | "Menus" | "Charts" | "Other";
3
3
  export type ComponentUsage = {
4
4
  name: UsageName;
@@ -1 +1 @@
1
- {"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,sBAAsB,GACtB,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,WAAW,GACX,YAAY,GACZ,UAAU,GACV,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,oBAAoB,GACpB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACn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ACpB,kBAAkB,GAClB,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,sBAAsB,GACtB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,GACX,eAAe,GACf,eAAe,GACf,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,YAAY,GACZ,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,EAs8F1C,CAAC"}
1
+ {"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,sBAAsB,GACtB,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ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AO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,EAq9F1C,CAAC"}
@@ -542,6 +542,17 @@ export const USAGE = [
542
542
  words: '"Labels are short Title Case nouns: `Project Name`, `Domain`, `Environment Variable Name`." (https://vercel.com/geist/input) Ours: sentence case, a short noun (*Display name*); a field that may stay empty says so in its label (*Address line 2 (optional)*), never in its placeholder. "Placeholders show an example value (`my-awesome-project`, `example.com`), never instructions like `Enter your project name`." (https://vercel.com/geist/input) "Validation names the field and the constraint, ends in a period, and skips `please` (`Project name is required.`, `Code must be 6 digits.`)." (https://vercel.com/geist/input) Ours: *Enter a full address, like name@company.it.*',
543
543
  access: '`FieldError` is `role="alert"`. The control carries `id`, `aria-invalid`, `aria-describedby` (the error), `disabled` and `required`. "Don’t wrap a labelled `<Input>` in a `Tooltip`; put the explainer on a sibling icon button so the label stays announced." (https://vercel.com/geist/input)',
544
544
  },
545
+ {
546
+ name: "FolderField",
547
+ module: "folder-field",
548
+ family: "Inputs",
549
+ summary: "A folder the person chooses from their computer, as one field of a form.",
550
+ when: "A form that takes a whole folder at once, with its tree of files: the Portal's Library Publish, where a skill, a plugin or an Agent template is the folder that holds it.",
551
+ instead: "One file or a picture is that field's own control, such as the avatar's `AvatarUploadButton`. Text a person types is `Input`.",
552
+ behaviour: "The label, then an outline button that opens the system's folder picker through a hidden native `<input type=\"file\" webkitdirectory multiple>`, which stays inside the form. A choice gives the caller every file of the folder, each with its path from the folder (`<folder>/<path inside it>`) as `webkitRelativePath`; the field keeps no list of its own. Under the button, the chosen folder as the caller words it. A field's limits belong to the form's description or to the refusal that meets them, never to a line under the field. With `name` the browser sends every file with the form; without it, the caller sends the files it keeps. `disabled` holds the button and the input, as a form's fieldset does while it sends.",
553
+ words: "The product words the label (a noun, *Folder*), the button (*Choose folder*) and the chosen line (*quote-builder: 12 files, 48 kB*); the kit holds no copy.",
554
+ access: "A real button named by `buttonLabel`, described by the chosen line, in the tab order where the field stands; the native input is hidden and labelled by the field's label. The picker is the system's own dialog, with its keyboard.",
555
+ },
545
556
  {
546
557
  name: "Form",
547
558
  module: "form",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.241",
3
+ "version": "12.1.242",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#jsx": "./src/jsx/index.ts",
@@ -82,7 +82,7 @@
82
82
  "@headless-tree/react": "1.8.0",
83
83
  "@iconify-icons/logos": "^2.0.3",
84
84
  "@iconify/react": "^6.0.2",
85
- "@nadicodeai/design-system": "12.1.241",
85
+ "@nadicodeai/design-system": "12.1.242",
86
86
  "@tanstack/react-table": "^9.3.1",
87
87
  "@vgpu/wgsl": "0.6.0",
88
88
  "class-variance-authority": "^0.7.1",