@uipath/apollo-wind 2.59.0 → 2.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +13 -0
  2. package/dist/components/ui/accordion.cjs +1 -0
  3. package/dist/components/ui/accordion.js +1 -0
  4. package/dist/components/ui/datetime-picker.cjs +19 -3
  5. package/dist/components/ui/datetime-picker.d.ts +2 -0
  6. package/dist/components/ui/datetime-picker.js +19 -3
  7. package/dist/components/ui/dialog.cjs +1 -0
  8. package/dist/components/ui/dialog.js +1 -0
  9. package/dist/components/ui/drawer.cjs +1 -1
  10. package/dist/components/ui/drawer.js +1 -1
  11. package/dist/components/ui/field-actions/insert-variable-action.cjs +1 -1
  12. package/dist/components/ui/field-actions/insert-variable-action.d.ts +5 -2
  13. package/dist/components/ui/field-actions/insert-variable-action.js +1 -1
  14. package/dist/components/ui/field-addons/field-menu.cjs +2 -2
  15. package/dist/components/ui/field-addons/field-menu.d.ts +4 -2
  16. package/dist/components/ui/field-addons/field-menu.js +2 -2
  17. package/dist/components/ui/index.cjs +97 -86
  18. package/dist/components/ui/index.d.ts +1 -0
  19. package/dist/components/ui/index.js +1 -0
  20. package/dist/components/ui/lockable-value-field/index.cjs +5 -5
  21. package/dist/components/ui/lockable-value-field/index.d.ts +18 -3
  22. package/dist/components/ui/lockable-value-field/index.js +2 -2
  23. package/dist/components/ui/quick-form-field/components/field-header.cjs +265 -0
  24. package/dist/components/ui/quick-form-field/components/field-header.d.ts +23 -0
  25. package/dist/components/ui/quick-form-field/components/field-header.js +231 -0
  26. package/dist/components/ui/{lockable-value-field → quick-form-field}/components/lock-toggle-button.cjs +3 -3
  27. package/dist/components/ui/{lockable-value-field → quick-form-field}/components/lock-toggle-button.d.ts +4 -1
  28. package/dist/components/ui/{lockable-value-field → quick-form-field}/components/lock-toggle-button.js +3 -3
  29. package/dist/components/ui/quick-form-field/index.cjs +46 -0
  30. package/dist/components/ui/quick-form-field/index.d.ts +3 -0
  31. package/dist/components/ui/quick-form-field/index.js +3 -0
  32. package/dist/components/ui/{lockable-value-field/lockable-value-field.cjs → quick-form-field/quick-form-field.cjs} +190 -119
  33. package/dist/components/ui/quick-form-field/quick-form-field.d.ts +26 -0
  34. package/dist/components/ui/{lockable-value-field/lockable-value-field.js → quick-form-field/quick-form-field.js} +194 -123
  35. package/dist/components/ui/{lockable-value-field → quick-form-field}/types.cjs +70 -0
  36. package/dist/components/ui/quick-form-field/types.d.ts +245 -0
  37. package/dist/components/ui/quick-form-field/types.js +137 -0
  38. package/dist/components/ui/{lockable-value-field → quick-form-field}/utils.cjs +21 -3
  39. package/dist/components/ui/{lockable-value-field → quick-form-field}/utils.d.ts +8 -3
  40. package/dist/components/ui/{lockable-value-field → quick-form-field}/utils.js +19 -4
  41. package/dist/components/ui/sheet.cjs +2 -2
  42. package/dist/components/ui/sheet.js +2 -2
  43. package/dist/index.cjs +9 -2
  44. package/dist/index.d.ts +4 -2
  45. package/dist/index.js +3 -2
  46. package/dist/styles.css +53 -0
  47. package/dist/tailwind.css +72 -0
  48. package/package.json +1 -1
  49. package/dist/components/ui/lockable-value-field/components/field-header.cjs +0 -242
  50. package/dist/components/ui/lockable-value-field/components/field-header.d.ts +0 -19
  51. package/dist/components/ui/lockable-value-field/components/field-header.js +0 -208
  52. package/dist/components/ui/lockable-value-field/lockable-value-field.d.ts +0 -14
  53. package/dist/components/ui/lockable-value-field/types.d.ts +0 -109
  54. package/dist/components/ui/lockable-value-field/types.js +0 -70
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ import { Label, RequiredIndicator } from "./components/ui/label.js";
44
44
  import { Column } from "./components/ui/layout/column.js";
45
45
  import { Grid } from "./components/ui/layout/grid.js";
46
46
  import { Row } from "./components/ui/layout/row.js";
47
- import { FIELD_TYPE_META, FIELD_TYPE_ORDER, LockableValueField } from "./components/ui/lockable-value-field/index.js";
47
+ import { LockableValueField } from "./components/ui/lockable-value-field/index.js";
48
48
  import { DEFAULT_MODEL_PICKER_LABELS, FolderSwitcher, GroupHeader, GroupedOptionList, MODEL_BADGES, ModelOptionRow, ModelPicker, ModelTagChip, PickerPopup, PickerSearchInput, PickerTrigger, VirtualOptionList, defaultCostTier, defaultRowActions, deriveModelTags, filterModels, formatContextWindow, getSubstitutionTarget, groupModels, isTextGenerationModel, optionDomId, resolveHomeGeography, resolveLabels, useModelPickerState } from "./components/ui/model-picker/index.js";
49
49
  import { MultiSelect } from "./components/ui/multi-select.js";
50
50
  import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./components/ui/pagination.js";
@@ -52,6 +52,7 @@ import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./compon
52
52
  import { PortalContainerProvider } from "./components/ui/portal-container.js";
53
53
  import { Progress } from "./components/ui/progress.js";
54
54
  import { $insertTokenAtCursor, DEFAULT_PROMPT_EDITOR_STRINGS, InputTokenNode, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, PromptEditor, ResourceTokenNode, StateTokenNode, TokenPill, TokenPillWithTooltip, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, WORD_JOINER, createInputTokenNode, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, inferTokenTypeFromPath, isPromptTokenNode, normalizeRichTextTokens, normalizeVariablePath, setEditorTokens } from "./components/ui/prompt-editor/index.js";
55
+ import { DEFAULT_QUICK_FORM_FIELD_STRINGS, FIELD_TYPE_META, FIELD_TYPE_ORDER, QuickFormField } from "./components/ui/quick-form-field/index.js";
55
56
  import { RadioGroup, RadioGroupItem } from "./components/ui/radio-group.js";
56
57
  import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./components/ui/resizable.js";
57
58
  import { ScrollArea, ScrollBar } from "./components/ui/scroll-area.js";
@@ -75,4 +76,4 @@ import { Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger
75
76
  import tree_view, { TreeView } from "./components/ui/tree-view.js";
76
77
  import { VariablePicker, VariablePickerContent } from "./components/ui/variable-picker/index.js";
77
78
  import { cn } from "./lib/utils.js";
78
- export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableCell, EmptyState, ExpressionBuilder, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldMenu, tree_view as FileTreeView, FileUpload, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, Label, LockableValueField, MODEL_BADGES, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, VariablePicker, VariablePickerContent, VirtualOptionList, WORD_JOINER, analyticsPlugin, auditPlugin, autoSavePlugin, badgeVariants, builtInValueModes, buttonVariants, cn, createEditableColumn, createInputTokenNode, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, filterModels, formatContextWindow, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getSubstitutionTarget, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inputGroupVariants, isCustomField, isFileField, isPromptTokenNode, isTextGenerationModel, normalizeRichTextTokens, normalizeVariablePath, optionDomId, resolveHomeGeography, resolveLabels, setEditorTokens, spinnerVariants, toast, toggleVariants, useInputGroup, useModelPickerState, useWatch, validationPlugin, workflowPlugin };
79
+ export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableCell, EmptyState, ExpressionBuilder, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldMenu, tree_view as FileTreeView, FileUpload, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, Label, LockableValueField, MODEL_BADGES, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, QuickFormField, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, VariablePicker, VariablePickerContent, VirtualOptionList, WORD_JOINER, analyticsPlugin, auditPlugin, autoSavePlugin, badgeVariants, builtInValueModes, buttonVariants, cn, createEditableColumn, createInputTokenNode, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, filterModels, formatContextWindow, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getSubstitutionTarget, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inputGroupVariants, isCustomField, isFileField, isPromptTokenNode, isTextGenerationModel, normalizeRichTextTokens, normalizeVariablePath, optionDomId, resolveHomeGeography, resolveLabels, setEditorTokens, spinnerVariants, toast, toggleVariants, useInputGroup, useModelPickerState, useWatch, validationPlugin, workflowPlugin };
package/dist/styles.css CHANGED
@@ -881,6 +881,9 @@
881
881
  .mb-4 {
882
882
  margin-bottom: calc(var(--spacing) * 4);
883
883
  }
884
+ .mb-4\! {
885
+ margin-bottom: calc(var(--spacing) * 4) !important;
886
+ }
884
887
  .mb-6 {
885
888
  margin-bottom: calc(var(--spacing) * 6);
886
889
  }
@@ -3976,6 +3979,10 @@
3976
3979
  font-size: var(--text-xl);
3977
3980
  line-height: var(--tw-leading, var(--text-xl--line-height));
3978
3981
  }
3982
+ .text-xl\! {
3983
+ font-size: var(--text-xl) !important;
3984
+ line-height: var(--tw-leading, var(--text-xl--line-height)) !important;
3985
+ }
3979
3986
  .text-xs {
3980
3987
  font-size: var(--text-xs);
3981
3988
  line-height: var(--tw-leading, var(--text-xs--line-height));
@@ -4063,6 +4070,10 @@
4063
4070
  --tw-font-weight: var(--font-weight-bold);
4064
4071
  font-weight: var(--font-weight-bold);
4065
4072
  }
4073
+ .font-bold\! {
4074
+ --tw-font-weight: var(--font-weight-bold) !important;
4075
+ font-weight: var(--font-weight-bold) !important;
4076
+ }
4066
4077
  .font-light {
4067
4078
  --tw-font-weight: var(--font-weight-light);
4068
4079
  font-weight: var(--font-weight-light);
@@ -10880,6 +10891,48 @@ body.canvas, .canvas {
10880
10891
  background-color: var(--color-border-hover);
10881
10892
  }
10882
10893
  }
10894
+ .mat-typography :is( [data-slot="dialog-content"], [data-slot="sheet-content"], [data-slot="alert-dialog-content"], [data-slot="drawer-content"] ) :where(p) {
10895
+ margin: 0;
10896
+ }
10897
+ .mat-typography :is( [data-slot="dialog-content"], [data-slot="sheet-content"], [data-slot="alert-dialog-content"], [data-slot="drawer-content"] ) :where(h1, h2, h3, h4, h5, h6) {
10898
+ font: inherit;
10899
+ letter-spacing: inherit;
10900
+ margin: 0;
10901
+ }
10902
+ .mat-typography [data-slot="accordion-header"] {
10903
+ font: inherit;
10904
+ letter-spacing: inherit;
10905
+ margin: 0;
10906
+ }
10907
+ .mat-typography :is( [data-slot="dialog-title"], [data-slot="sheet-title"], [data-slot="alert-dialog-title"], [data-slot="drawer-title"] ) {
10908
+ font-family: var(--font-sans);
10909
+ font-size: var(--text-lg);
10910
+ font-weight: var(--font-weight-semibold);
10911
+ line-height: var(--text-lg--line-height);
10912
+ letter-spacing: var(--tracking-normal);
10913
+ margin: 0;
10914
+ }
10915
+ .mat-typography :is([data-slot="dialog-title"], [data-slot="alert-dialog-title"], [data-slot="drawer-title"]) {
10916
+ line-height: 1;
10917
+ }
10918
+ .mat-typography [data-slot="drawer-title"] {
10919
+ letter-spacing: var(--tracking-tight);
10920
+ }
10921
+ .mat-typography [data-slot="dialog-takeover-title"] {
10922
+ font-family: var(--font-sans);
10923
+ font-size: var(--text-sm);
10924
+ font-weight: var(--font-weight-semibold);
10925
+ line-height: var(--text-sm--line-height);
10926
+ letter-spacing: var(--tracking-normal);
10927
+ margin: 0;
10928
+ }
10929
+ .mat-typography [data-slot="alert-title"] {
10930
+ font-size: var(--text-xs);
10931
+ font-weight: var(--font-weight-semibold);
10932
+ line-height: calc(var(--spacing) * 4);
10933
+ letter-spacing: var(--tracking-normal);
10934
+ margin: 0;
10935
+ }
10883
10936
  @property --tw-translate-x {
10884
10937
  syntax: "*";
10885
10938
  inherits: false;
package/dist/tailwind.css CHANGED
@@ -925,3 +925,75 @@ body.canvas, .canvas {
925
925
  background-color: var(--color-border-hover);
926
926
  }
927
927
  }
928
+
929
+ /* Host Material shield: unlayered so it outranks the host's unlayered typography rules. */
930
+ .mat-typography
931
+ :is(
932
+ [data-slot="dialog-content"],
933
+ [data-slot="sheet-content"],
934
+ [data-slot="alert-dialog-content"],
935
+ [data-slot="drawer-content"]
936
+ )
937
+ :where(p) {
938
+ margin: 0;
939
+ }
940
+
941
+ .mat-typography
942
+ :is(
943
+ [data-slot="dialog-content"],
944
+ [data-slot="sheet-content"],
945
+ [data-slot="alert-dialog-content"],
946
+ [data-slot="drawer-content"]
947
+ )
948
+ :where(h1, h2, h3, h4, h5, h6) {
949
+ font: inherit;
950
+ letter-spacing: inherit;
951
+ margin: 0;
952
+ }
953
+
954
+ .mat-typography [data-slot="accordion-header"] {
955
+ font: inherit;
956
+ letter-spacing: inherit;
957
+ margin: 0;
958
+ }
959
+
960
+ .mat-typography
961
+ :is(
962
+ [data-slot="dialog-title"],
963
+ [data-slot="sheet-title"],
964
+ [data-slot="alert-dialog-title"],
965
+ [data-slot="drawer-title"]
966
+ ) {
967
+ font-family: var(--font-sans);
968
+ font-size: var(--text-lg);
969
+ font-weight: var(--font-weight-semibold);
970
+ line-height: var(--text-lg--line-height);
971
+ letter-spacing: var(--tracking-normal);
972
+ margin: 0;
973
+ }
974
+
975
+ .mat-typography
976
+ :is([data-slot="dialog-title"], [data-slot="alert-dialog-title"], [data-slot="drawer-title"]) {
977
+ line-height: 1;
978
+ }
979
+
980
+ .mat-typography [data-slot="drawer-title"] {
981
+ letter-spacing: var(--tracking-tight);
982
+ }
983
+
984
+ .mat-typography [data-slot="dialog-takeover-title"] {
985
+ font-family: var(--font-sans);
986
+ font-size: var(--text-sm);
987
+ font-weight: var(--font-weight-semibold);
988
+ line-height: var(--text-sm--line-height);
989
+ letter-spacing: var(--tracking-normal);
990
+ margin: 0;
991
+ }
992
+
993
+ .mat-typography [data-slot="alert-title"] {
994
+ font-size: var(--text-xs);
995
+ font-weight: var(--font-weight-semibold);
996
+ line-height: calc(var(--spacing) * 4);
997
+ letter-spacing: var(--tracking-normal);
998
+ margin: 0;
999
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-wind",
3
- "version": "2.59.0",
3
+ "version": "2.60.1",
4
4
  "description": "UiPath wind design system - A Tailwind CSS based React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,242 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.d = (exports1, definition)=>{
5
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
- enumerable: true,
7
- get: definition[key]
8
- });
9
- };
10
- })();
11
- (()=>{
12
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
- })();
14
- (()=>{
15
- __webpack_require__.r = (exports1)=>{
16
- if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
- value: 'Module'
18
- });
19
- Object.defineProperty(exports1, '__esModule', {
20
- value: true
21
- });
22
- };
23
- })();
24
- var __webpack_exports__ = {};
25
- __webpack_require__.r(__webpack_exports__);
26
- __webpack_require__.d(__webpack_exports__, {
27
- FieldHeader: ()=>FieldHeader
28
- });
29
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
- const external_lucide_react_namespaceObject = require("lucide-react");
31
- const external_react_namespaceObject = require("react");
32
- const external_dropdown_menu_cjs_namespaceObject = require("../../dropdown-menu.cjs");
33
- const external_label_cjs_namespaceObject = require("../../label.cjs");
34
- const external_popover_cjs_namespaceObject = require("../../popover.cjs");
35
- const external_switch_cjs_namespaceObject = require("../../switch.cjs");
36
- const external_tooltip_cjs_namespaceObject = require("../../tooltip.cjs");
37
- const index_cjs_namespaceObject = require("../../../../lib/index.cjs");
38
- const ai_assist_action_cjs_namespaceObject = require("../../field-actions/ai-assist-action.cjs");
39
- const collapse_cjs_namespaceObject = require("../../field-actions/collapse.cjs");
40
- const insert_variable_action_cjs_namespaceObject = require("../../field-actions/insert-variable-action.cjs");
41
- const external_types_cjs_namespaceObject = require("../types.cjs");
42
- function toVariableTree(variables) {
43
- return [
44
- {
45
- id: 'vars',
46
- label: '$vars',
47
- type: 'object',
48
- children: variables.map((variable)=>({
49
- id: variable.value,
50
- label: variable.label,
51
- value: variable.value,
52
- type: 'string'
53
- }))
54
- }
55
- ];
56
- }
57
- function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, compact, showFieldActions, showAiAssist, value, onValueChange, variables, onGenerateWithAi, headerActions }) {
58
- const typeMeta = external_types_cjs_namespaceObject.FIELD_TYPE_META[fieldType];
59
- const variableTree = (0, external_react_namespaceObject.useMemo)(()=>toVariableTree(variables), [
60
- variables
61
- ]);
62
- const collapsedTextClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_HIDDEN, compact && '!hidden');
63
- const collapsedPaddingClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_ICON_PADDING, compact && '!px-1.5');
64
- const compactOnlyClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_ONLY, compact && '!block');
65
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
66
- className: "flex items-center gap-1",
67
- children: [
68
- label ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_label_cjs_namespaceObject.Label, {
69
- htmlFor: fieldId,
70
- className: "text-xs font-medium text-foreground",
71
- children: [
72
- fieldLabel,
73
- required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_label_cjs_namespaceObject.RequiredIndicator, {})
74
- ]
75
- }),
76
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipProvider, {
77
- delayDuration: 300,
78
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
79
- className: "ml-auto flex items-center gap-0.5",
80
- children: [
81
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
82
- className: "flex items-center gap-0.5",
83
- children: [
84
- onFieldTypeChange && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenu, {
85
- children: [
86
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_tooltip_cjs_namespaceObject.Tooltip, {
87
- children: [
88
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipTrigger, {
89
- asChild: true,
90
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
91
- asChild: true,
92
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
93
- type: "button",
94
- "aria-label": "Field type",
95
- className: (0, index_cjs_namespaceObject.cn)('flex h-7 items-center gap-1 rounded-lg px-2 text-[11px] text-foreground-subtle transition hover:bg-surface-overlay hover:text-foreground', collapsedPaddingClass),
96
- children: [
97
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(typeMeta.icon, {
98
- size: 12
99
- }),
100
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
101
- className: collapsedTextClass,
102
- children: typeMeta.label
103
- }),
104
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
105
- size: 9,
106
- className: collapsedTextClass
107
- })
108
- ]
109
- })
110
- })
111
- }),
112
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipContent, {
113
- children: "Type"
114
- })
115
- ]
116
- }),
117
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
118
- align: "end",
119
- className: "w-44",
120
- children: external_types_cjs_namespaceObject.FIELD_TYPE_ORDER.map((type)=>{
121
- const meta = external_types_cjs_namespaceObject.FIELD_TYPE_META[type];
122
- const isActive = type === fieldType;
123
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuItem, {
124
- onClick: ()=>onFieldTypeChange(type),
125
- children: [
126
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(meta.icon, {
127
- className: isActive ? 'text-brand' : 'text-foreground-muted'
128
- }),
129
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
130
- className: (0, index_cjs_namespaceObject.cn)(isActive && 'font-medium text-brand'),
131
- children: meta.label
132
- })
133
- ]
134
- }, type);
135
- })
136
- })
137
- ]
138
- }),
139
- onRequiredChange && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
140
- children: [
141
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
142
- className: collapsedTextClass,
143
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_tooltip_cjs_namespaceObject.Tooltip, {
144
- children: [
145
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipTrigger, {
146
- asChild: true,
147
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
148
- className: "inline-flex",
149
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_switch_cjs_namespaceObject.Switch, {
150
- size: "sm",
151
- checked: !!required,
152
- onCheckedChange: onRequiredChange,
153
- className: "data-[state=checked]:bg-brand data-[state=unchecked]:bg-foreground-subtle",
154
- "aria-label": required ? 'Required field' : 'Optional field'
155
- })
156
- })
157
- }),
158
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipContent, {
159
- children: "Required"
160
- })
161
- ]
162
- })
163
- }),
164
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
165
- className: compactOnlyClass,
166
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover, {
167
- children: [
168
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_tooltip_cjs_namespaceObject.Tooltip, {
169
- children: [
170
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipTrigger, {
171
- asChild: true,
172
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger, {
173
- asChild: true,
174
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
175
- type: "button",
176
- "aria-label": required ? 'Required field' : 'Optional field',
177
- className: "grid size-7 place-items-center rounded-lg text-foreground-subtle transition hover:bg-surface-overlay hover:text-foreground",
178
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Asterisk, {
179
- size: 12
180
- })
181
- })
182
- })
183
- }),
184
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipContent, {
185
- children: "Required"
186
- })
187
- ]
188
- }),
189
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent, {
190
- align: "end",
191
- className: "w-48",
192
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
193
- className: "flex items-center justify-between gap-3",
194
- children: [
195
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
196
- className: "text-xs font-medium text-foreground",
197
- children: "Required"
198
- }),
199
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_switch_cjs_namespaceObject.Switch, {
200
- size: "sm",
201
- checked: !!required,
202
- onCheckedChange: onRequiredChange,
203
- className: "data-[state=checked]:bg-brand data-[state=unchecked]:bg-foreground-subtle",
204
- "aria-label": required ? 'Required field' : 'Optional field'
205
- })
206
- ]
207
- })
208
- })
209
- ]
210
- })
211
- })
212
- ]
213
- }),
214
- showFieldActions && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
215
- children: [
216
- showAiAssist && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ai_assist_action_cjs_namespaceObject.AiAssistAction, {
217
- onGenerate: onGenerateWithAi,
218
- hint: `Output: ${typeMeta.label}${typeMeta.supportsExpression ? ' expression' : ' value'}`
219
- }),
220
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(insert_variable_action_cjs_namespaceObject.InsertVariableAction, {
221
- variables: variableTree,
222
- compact: compact,
223
- onInsert: onValueChange && ((variable)=>onValueChange(value ? `${value} ${variable}` : variable))
224
- })
225
- ]
226
- })
227
- ]
228
- }),
229
- headerActions
230
- ]
231
- })
232
- })
233
- ]
234
- });
235
- }
236
- exports.FieldHeader = __webpack_exports__.FieldHeader;
237
- for(var __rspack_i in __webpack_exports__)if (-1 === [
238
- "FieldHeader"
239
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
240
- Object.defineProperty(exports, '__esModule', {
241
- value: true
242
- });
@@ -1,19 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import type { LockableFieldType, LockableValueFieldOption } from '../types';
3
- export declare function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, compact, showFieldActions, showAiAssist, value, onValueChange, variables, onGenerateWithAi, headerActions, }: {
4
- label?: ReactNode;
5
- fieldId: string;
6
- fieldLabel: string;
7
- required?: boolean;
8
- fieldType: LockableFieldType;
9
- onFieldTypeChange?: (fieldType: LockableFieldType) => void;
10
- onRequiredChange?: (required: boolean) => void;
11
- compact?: boolean;
12
- showFieldActions: boolean;
13
- showAiAssist: boolean;
14
- value: string;
15
- onValueChange?: (value: string) => void;
16
- variables: LockableValueFieldOption[];
17
- onGenerateWithAi?: (prompt: string) => void;
18
- headerActions?: ReactNode;
19
- }): import("react/jsx-runtime").JSX.Element;