@nurix/ui-component-library 1.1.3-stage.111 → 1.1.3-stage.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +36 -4
- package/dist/index.mjs +35 -4
- package/dist/styles.css +12 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -388,10 +388,23 @@ interface AccordionTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonE
|
|
|
388
388
|
}
|
|
389
389
|
interface AccordionContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
390
390
|
}
|
|
391
|
+
interface AccordionSectionTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
392
|
+
/**
|
|
393
|
+
* Label shown inside the pill (Figma: "Summary"). Children override.
|
|
394
|
+
*/
|
|
395
|
+
label?: React$1.ReactNode;
|
|
396
|
+
}
|
|
391
397
|
|
|
392
398
|
declare function Accordion<TType extends AccordionType = "single">({ className, type, collapsible, value, defaultValue, onValueChange, disabled, ...props }: AccordionProps<TType>): react_jsx_runtime.JSX.Element;
|
|
393
399
|
declare const AccordionItem: React$1.ForwardRefExoticComponent<AccordionItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
394
400
|
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
401
|
+
/**
|
|
402
|
+
* Section-separator trigger (Figma 6128:5627). A compact pill that separates
|
|
403
|
+
* sections within a card or page. Use in place of `AccordionTrigger` inside
|
|
404
|
+
* an `AccordionItem` — it wires into the same Radix state and flips the
|
|
405
|
+
* chevron when `data-state=open`.
|
|
406
|
+
*/
|
|
407
|
+
declare const AccordionSectionTrigger: React$1.ForwardRefExoticComponent<AccordionSectionTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
395
408
|
declare const AccordionContent: React$1.ForwardRefExoticComponent<AccordionContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
396
409
|
declare function AccordionContentPlaceholder({ className, children, }: {
|
|
397
410
|
className?: string;
|
|
@@ -2705,4 +2718,4 @@ interface PopoverProps {
|
|
|
2705
2718
|
*/
|
|
2706
2719
|
declare const Popover: React$1.ForwardRefExoticComponent<PopoverProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2707
2720
|
|
|
2708
|
-
export { Accordion, AccordionContent, AccordionContentPlaceholder, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionValue, AudioPlayer, type AudioPlayerProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, type BackButtonPosition, Badge, type BadgeProps, type BadgeVariant, Button, type ButtonBorderRadius, ButtonList, type ButtonListItem, type ButtonListProps, type ButtonProps, type ButtonSize, type ButtonVariant, type CellContent, type CellTextContent, ChatBubbleAgent, type ChatBubbleAgentProps, ChatBubbleUser, type ChatBubbleUserProps, Checkbox, type CheckboxProps, type ColumnDef, ColumnWidth, CompoundFilterSelect, type CompoundFilterSelectProps, type CompoundFilterToggleOption, DEFAULT_THEME, DataTable, type DataTableProps, type DatePreset, Dialog, DialogBody, type DialogBodyProps, DialogFooter, type DialogFooterProps, DialogHeader, DialogHeaderNavigation, type DialogHeaderNavigationProps, type DialogHeaderNavigationVariant, type DialogHeaderProps, DialogIcon, type DialogIconProps, type DialogProps, type DialogSize, type DialogType, EmptyState, type EmptyStateIllustrationPosition, type EmptyStateIllustrationSize, type EmptyStateProps, FileInput, type FileInputProps, type FilterItem, type FilterItemWithSection, FilterListItem, type FilterListItemProps, FilterSelect, type FilterSelectProps, type IconColor, IconPicker, type IconPickerProps, type IconSize, IconWrapper, type IconWrapperProps, Input, type InputBorderRadius, type InputForceState, InputGroup, type InputGroupBorderRadius, type InputGroupForceState, type InputGroupProps, type InputProps, type InputVariant, JSON_EDITOR_LANGUAGE_OPTIONS, JsonEditor, type JsonEditorLanguage, type JsonEditorProps, KeyValueEditor, type KeyValueEditorProps, type KeyValuePair, LegoLandWrapper, type LegoLandWrapperProps, List, type ListBorderRadius, type ListNavItemProps, ListNavigation, type ListNavigationProps, type ListProps, type ListType, type ListVariant, MONACO_OPTIONS, MONACO_OPTIONS_DIALOG, NestedButtonGroup, type NestedButtonGroupProps, NumberBadge, type NumberBadgeProps, type NumberBadgeVariant, NurixThemeProvider, Pagination, type PaginationProps, PlaySelect, type PlaySelectAudioItem, type PlaySelectProps, PlaybackControl, type PlaybackControlProps, type PlaybackState, Popover, type PopoverAlign, type PopoverProps, type PopoverShadow, type PopoverSide, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, type SelectContentItem, SelectFormLabel, SelectGroup, type SelectGroupProps, SelectItem, SelectLabel, type SelectLabelProps, type SelectMenuItemProps, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, ShadowDOMWrapper, type ShowToastOptions, type SortDirection, type SortState, Spinner, type SpinnerProps, type SpinnerSize, type StepItem, type StepState, Stepper, StepperBar, type StepperBarProps, type StepperProps, type SupportingTextType, Surface, type SurfaceBackground, SurfaceBody, type SurfaceBodyProps, SurfaceFooter, type SurfaceFooterProps, SurfaceHeader, type SurfaceHeaderProps, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type TabVariant, type TableAction, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TagBadge, type TagBadgeProps, type TagOption, Textarea, type TextareaBorderRadius, type TextareaForceState, type TextareaProps, ThemeProvider, Toast, type ToastProps, type ToastVariant, Toaster, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Typography, type TypographyProps, type TypographySize, type TypographyTone, type TypographyVariant, type TypographyWeight, type UsePlaySelectProps, type UseSelectProps, enhanceJsonError, showToast, useJsonEditor, usePlaySelect, useSelect, useTheme };
|
|
2721
|
+
export { Accordion, AccordionContent, AccordionContentPlaceholder, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionSectionTrigger, type AccordionSectionTriggerProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionValue, AudioPlayer, type AudioPlayerProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, type BackButtonPosition, Badge, type BadgeProps, type BadgeVariant, Button, type ButtonBorderRadius, ButtonList, type ButtonListItem, type ButtonListProps, type ButtonProps, type ButtonSize, type ButtonVariant, type CellContent, type CellTextContent, ChatBubbleAgent, type ChatBubbleAgentProps, ChatBubbleUser, type ChatBubbleUserProps, Checkbox, type CheckboxProps, type ColumnDef, ColumnWidth, CompoundFilterSelect, type CompoundFilterSelectProps, type CompoundFilterToggleOption, DEFAULT_THEME, DataTable, type DataTableProps, type DatePreset, Dialog, DialogBody, type DialogBodyProps, DialogFooter, type DialogFooterProps, DialogHeader, DialogHeaderNavigation, type DialogHeaderNavigationProps, type DialogHeaderNavigationVariant, type DialogHeaderProps, DialogIcon, type DialogIconProps, type DialogProps, type DialogSize, type DialogType, EmptyState, type EmptyStateIllustrationPosition, type EmptyStateIllustrationSize, type EmptyStateProps, FileInput, type FileInputProps, type FilterItem, type FilterItemWithSection, FilterListItem, type FilterListItemProps, FilterSelect, type FilterSelectProps, type IconColor, IconPicker, type IconPickerProps, type IconSize, IconWrapper, type IconWrapperProps, Input, type InputBorderRadius, type InputForceState, InputGroup, type InputGroupBorderRadius, type InputGroupForceState, type InputGroupProps, type InputProps, type InputVariant, JSON_EDITOR_LANGUAGE_OPTIONS, JsonEditor, type JsonEditorLanguage, type JsonEditorProps, KeyValueEditor, type KeyValueEditorProps, type KeyValuePair, LegoLandWrapper, type LegoLandWrapperProps, List, type ListBorderRadius, type ListNavItemProps, ListNavigation, type ListNavigationProps, type ListProps, type ListType, type ListVariant, MONACO_OPTIONS, MONACO_OPTIONS_DIALOG, NestedButtonGroup, type NestedButtonGroupProps, NumberBadge, type NumberBadgeProps, type NumberBadgeVariant, NurixThemeProvider, Pagination, type PaginationProps, PlaySelect, type PlaySelectAudioItem, type PlaySelectProps, PlaybackControl, type PlaybackControlProps, type PlaybackState, Popover, type PopoverAlign, type PopoverProps, type PopoverShadow, type PopoverSide, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, type SelectContentItem, SelectFormLabel, SelectGroup, type SelectGroupProps, SelectItem, SelectLabel, type SelectLabelProps, type SelectMenuItemProps, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, ShadowDOMWrapper, type ShowToastOptions, type SortDirection, type SortState, Spinner, type SpinnerProps, type SpinnerSize, type StepItem, type StepState, Stepper, StepperBar, type StepperBarProps, type StepperProps, type SupportingTextType, Surface, type SurfaceBackground, SurfaceBody, type SurfaceBodyProps, SurfaceFooter, type SurfaceFooterProps, SurfaceHeader, type SurfaceHeaderProps, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type TabVariant, type TableAction, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TagBadge, type TagBadgeProps, type TagOption, Textarea, type TextareaBorderRadius, type TextareaForceState, type TextareaProps, ThemeProvider, Toast, type ToastProps, type ToastVariant, Toaster, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Typography, type TypographyProps, type TypographySize, type TypographyTone, type TypographyVariant, type TypographyWeight, type UsePlaySelectProps, type UseSelectProps, enhanceJsonError, showToast, useJsonEditor, usePlaySelect, useSelect, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -388,10 +388,23 @@ interface AccordionTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonE
|
|
|
388
388
|
}
|
|
389
389
|
interface AccordionContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
390
390
|
}
|
|
391
|
+
interface AccordionSectionTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
392
|
+
/**
|
|
393
|
+
* Label shown inside the pill (Figma: "Summary"). Children override.
|
|
394
|
+
*/
|
|
395
|
+
label?: React$1.ReactNode;
|
|
396
|
+
}
|
|
391
397
|
|
|
392
398
|
declare function Accordion<TType extends AccordionType = "single">({ className, type, collapsible, value, defaultValue, onValueChange, disabled, ...props }: AccordionProps<TType>): react_jsx_runtime.JSX.Element;
|
|
393
399
|
declare const AccordionItem: React$1.ForwardRefExoticComponent<AccordionItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
394
400
|
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
401
|
+
/**
|
|
402
|
+
* Section-separator trigger (Figma 6128:5627). A compact pill that separates
|
|
403
|
+
* sections within a card or page. Use in place of `AccordionTrigger` inside
|
|
404
|
+
* an `AccordionItem` — it wires into the same Radix state and flips the
|
|
405
|
+
* chevron when `data-state=open`.
|
|
406
|
+
*/
|
|
407
|
+
declare const AccordionSectionTrigger: React$1.ForwardRefExoticComponent<AccordionSectionTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
395
408
|
declare const AccordionContent: React$1.ForwardRefExoticComponent<AccordionContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
396
409
|
declare function AccordionContentPlaceholder({ className, children, }: {
|
|
397
410
|
className?: string;
|
|
@@ -2705,4 +2718,4 @@ interface PopoverProps {
|
|
|
2705
2718
|
*/
|
|
2706
2719
|
declare const Popover: React$1.ForwardRefExoticComponent<PopoverProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2707
2720
|
|
|
2708
|
-
export { Accordion, AccordionContent, AccordionContentPlaceholder, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionValue, AudioPlayer, type AudioPlayerProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, type BackButtonPosition, Badge, type BadgeProps, type BadgeVariant, Button, type ButtonBorderRadius, ButtonList, type ButtonListItem, type ButtonListProps, type ButtonProps, type ButtonSize, type ButtonVariant, type CellContent, type CellTextContent, ChatBubbleAgent, type ChatBubbleAgentProps, ChatBubbleUser, type ChatBubbleUserProps, Checkbox, type CheckboxProps, type ColumnDef, ColumnWidth, CompoundFilterSelect, type CompoundFilterSelectProps, type CompoundFilterToggleOption, DEFAULT_THEME, DataTable, type DataTableProps, type DatePreset, Dialog, DialogBody, type DialogBodyProps, DialogFooter, type DialogFooterProps, DialogHeader, DialogHeaderNavigation, type DialogHeaderNavigationProps, type DialogHeaderNavigationVariant, type DialogHeaderProps, DialogIcon, type DialogIconProps, type DialogProps, type DialogSize, type DialogType, EmptyState, type EmptyStateIllustrationPosition, type EmptyStateIllustrationSize, type EmptyStateProps, FileInput, type FileInputProps, type FilterItem, type FilterItemWithSection, FilterListItem, type FilterListItemProps, FilterSelect, type FilterSelectProps, type IconColor, IconPicker, type IconPickerProps, type IconSize, IconWrapper, type IconWrapperProps, Input, type InputBorderRadius, type InputForceState, InputGroup, type InputGroupBorderRadius, type InputGroupForceState, type InputGroupProps, type InputProps, type InputVariant, JSON_EDITOR_LANGUAGE_OPTIONS, JsonEditor, type JsonEditorLanguage, type JsonEditorProps, KeyValueEditor, type KeyValueEditorProps, type KeyValuePair, LegoLandWrapper, type LegoLandWrapperProps, List, type ListBorderRadius, type ListNavItemProps, ListNavigation, type ListNavigationProps, type ListProps, type ListType, type ListVariant, MONACO_OPTIONS, MONACO_OPTIONS_DIALOG, NestedButtonGroup, type NestedButtonGroupProps, NumberBadge, type NumberBadgeProps, type NumberBadgeVariant, NurixThemeProvider, Pagination, type PaginationProps, PlaySelect, type PlaySelectAudioItem, type PlaySelectProps, PlaybackControl, type PlaybackControlProps, type PlaybackState, Popover, type PopoverAlign, type PopoverProps, type PopoverShadow, type PopoverSide, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, type SelectContentItem, SelectFormLabel, SelectGroup, type SelectGroupProps, SelectItem, SelectLabel, type SelectLabelProps, type SelectMenuItemProps, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, ShadowDOMWrapper, type ShowToastOptions, type SortDirection, type SortState, Spinner, type SpinnerProps, type SpinnerSize, type StepItem, type StepState, Stepper, StepperBar, type StepperBarProps, type StepperProps, type SupportingTextType, Surface, type SurfaceBackground, SurfaceBody, type SurfaceBodyProps, SurfaceFooter, type SurfaceFooterProps, SurfaceHeader, type SurfaceHeaderProps, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type TabVariant, type TableAction, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TagBadge, type TagBadgeProps, type TagOption, Textarea, type TextareaBorderRadius, type TextareaForceState, type TextareaProps, ThemeProvider, Toast, type ToastProps, type ToastVariant, Toaster, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Typography, type TypographyProps, type TypographySize, type TypographyTone, type TypographyVariant, type TypographyWeight, type UsePlaySelectProps, type UseSelectProps, enhanceJsonError, showToast, useJsonEditor, usePlaySelect, useSelect, useTheme };
|
|
2721
|
+
export { Accordion, AccordionContent, AccordionContentPlaceholder, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionSectionTrigger, type AccordionSectionTriggerProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionValue, AudioPlayer, type AudioPlayerProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarShape, type AvatarSize, type BackButtonPosition, Badge, type BadgeProps, type BadgeVariant, Button, type ButtonBorderRadius, ButtonList, type ButtonListItem, type ButtonListProps, type ButtonProps, type ButtonSize, type ButtonVariant, type CellContent, type CellTextContent, ChatBubbleAgent, type ChatBubbleAgentProps, ChatBubbleUser, type ChatBubbleUserProps, Checkbox, type CheckboxProps, type ColumnDef, ColumnWidth, CompoundFilterSelect, type CompoundFilterSelectProps, type CompoundFilterToggleOption, DEFAULT_THEME, DataTable, type DataTableProps, type DatePreset, Dialog, DialogBody, type DialogBodyProps, DialogFooter, type DialogFooterProps, DialogHeader, DialogHeaderNavigation, type DialogHeaderNavigationProps, type DialogHeaderNavigationVariant, type DialogHeaderProps, DialogIcon, type DialogIconProps, type DialogProps, type DialogSize, type DialogType, EmptyState, type EmptyStateIllustrationPosition, type EmptyStateIllustrationSize, type EmptyStateProps, FileInput, type FileInputProps, type FilterItem, type FilterItemWithSection, FilterListItem, type FilterListItemProps, FilterSelect, type FilterSelectProps, type IconColor, IconPicker, type IconPickerProps, type IconSize, IconWrapper, type IconWrapperProps, Input, type InputBorderRadius, type InputForceState, InputGroup, type InputGroupBorderRadius, type InputGroupForceState, type InputGroupProps, type InputProps, type InputVariant, JSON_EDITOR_LANGUAGE_OPTIONS, JsonEditor, type JsonEditorLanguage, type JsonEditorProps, KeyValueEditor, type KeyValueEditorProps, type KeyValuePair, LegoLandWrapper, type LegoLandWrapperProps, List, type ListBorderRadius, type ListNavItemProps, ListNavigation, type ListNavigationProps, type ListProps, type ListType, type ListVariant, MONACO_OPTIONS, MONACO_OPTIONS_DIALOG, NestedButtonGroup, type NestedButtonGroupProps, NumberBadge, type NumberBadgeProps, type NumberBadgeVariant, NurixThemeProvider, Pagination, type PaginationProps, PlaySelect, type PlaySelectAudioItem, type PlaySelectProps, PlaybackControl, type PlaybackControlProps, type PlaybackState, Popover, type PopoverAlign, type PopoverProps, type PopoverShadow, type PopoverSide, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, type SelectContentItem, SelectFormLabel, SelectGroup, type SelectGroupProps, SelectItem, SelectLabel, type SelectLabelProps, type SelectMenuItemProps, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, ShadowDOMWrapper, type ShowToastOptions, type SortDirection, type SortState, Spinner, type SpinnerProps, type SpinnerSize, type StepItem, type StepState, Stepper, StepperBar, type StepperBarProps, type StepperProps, type SupportingTextType, Surface, type SurfaceBackground, SurfaceBody, type SurfaceBodyProps, SurfaceFooter, type SurfaceFooterProps, SurfaceHeader, type SurfaceHeaderProps, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type TabVariant, type TableAction, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TagBadge, type TagBadgeProps, type TagOption, Textarea, type TextareaBorderRadius, type TextareaForceState, type TextareaProps, ThemeProvider, Toast, type ToastProps, type ToastVariant, Toaster, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Typography, type TypographyProps, type TypographySize, type TypographyTone, type TypographyVariant, type TypographyWeight, type UsePlaySelectProps, type UseSelectProps, enhanceJsonError, showToast, useJsonEditor, usePlaySelect, useSelect, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -6489,6 +6489,7 @@ __export(index_exports, {
|
|
|
6489
6489
|
AccordionContent: () => AccordionContent,
|
|
6490
6490
|
AccordionContentPlaceholder: () => AccordionContentPlaceholder,
|
|
6491
6491
|
AccordionItem: () => AccordionItem,
|
|
6492
|
+
AccordionSectionTrigger: () => AccordionSectionTrigger,
|
|
6492
6493
|
AccordionTrigger: () => AccordionTrigger,
|
|
6493
6494
|
AudioPlayer: () => AudioPlayer,
|
|
6494
6495
|
Avatar: () => Avatar,
|
|
@@ -8338,7 +8339,14 @@ var ACCORDION_TOKENS = {
|
|
|
8338
8339
|
contentWrap: "overflow-hidden data-[state=closed]:hidden",
|
|
8339
8340
|
contentInner: "pb-4 pt-0",
|
|
8340
8341
|
contentCard: "bg-token-dark-grey rounded-3xl h-[172px] w-full flex items-center justify-center",
|
|
8341
|
-
contentCardText: "text-sm font-normal leading-5 text-fg-black"
|
|
8342
|
+
contentCardText: "text-sm font-normal leading-5 text-fg-black",
|
|
8343
|
+
// --- Section Separator (Figma 6128:5627) ---
|
|
8344
|
+
// Pill-shaped trigger used to separate sections within a card/page.
|
|
8345
|
+
// Heading/H5: text-sm / semibold / leading-5. px-2 py-1.5, gap-2, rounded-full.
|
|
8346
|
+
// Hover: interaction/hov-solid-primary (#fafafa).
|
|
8347
|
+
// Pressed: interaction/pressed-opacity-secondary (rgba(10,10,10,0.1)).
|
|
8348
|
+
sectionTrigger: "inline-flex items-center gap-2 px-2 py-1.5 rounded-full overflow-hidden bg-transparent text-sm font-semibold leading-5 text-fg-black transition-colors cursor-pointer hover:bg-interaction-hov-solid-primary active:bg-interaction-pressed-opacity-secondary focus-visible:outline focus-visible:outline-2 focus-visible:outline-token-brand focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
8349
|
+
sectionTriggerChevron: "shrink-0 size-4 text-fg-black transition-transform duration-200"
|
|
8342
8350
|
};
|
|
8343
8351
|
|
|
8344
8352
|
// src/accordion/useAccordion.ts
|
|
@@ -8387,7 +8395,7 @@ function useAccordion({
|
|
|
8387
8395
|
const radixValue = React13.useMemo(() => {
|
|
8388
8396
|
var _a5;
|
|
8389
8397
|
if (type === "multiple") return openValues;
|
|
8390
|
-
return (_a5 = openValues[0]) != null ? _a5 :
|
|
8398
|
+
return (_a5 = openValues[0]) != null ? _a5 : "";
|
|
8391
8399
|
}, [openValues, type]);
|
|
8392
8400
|
const onRadixValueChange = React13.useCallback(
|
|
8393
8401
|
(next) => {
|
|
@@ -8490,6 +8498,25 @@ var AccordionTrigger = React14.forwardRef(({ className, children, description, a
|
|
|
8490
8498
|
}
|
|
8491
8499
|
) }));
|
|
8492
8500
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
8501
|
+
var AccordionSectionTrigger = React14.forwardRef(({ className, children, label, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
8502
|
+
AccordionPrimitive.Trigger,
|
|
8503
|
+
{
|
|
8504
|
+
ref,
|
|
8505
|
+
className: cn(ACCORDION_TOKENS.sectionTrigger, className),
|
|
8506
|
+
...props,
|
|
8507
|
+
children: [
|
|
8508
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "whitespace-nowrap", children: children != null ? children : label }),
|
|
8509
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
8510
|
+
import_lucide_react4.ChevronDown,
|
|
8511
|
+
{
|
|
8512
|
+
className: ACCORDION_TOKENS.sectionTriggerChevron,
|
|
8513
|
+
"aria-hidden": "true"
|
|
8514
|
+
}
|
|
8515
|
+
)
|
|
8516
|
+
]
|
|
8517
|
+
}
|
|
8518
|
+
) }));
|
|
8519
|
+
AccordionSectionTrigger.displayName = "AccordionSectionTrigger";
|
|
8493
8520
|
var AccordionContent = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
8494
8521
|
AccordionPrimitive.Content,
|
|
8495
8522
|
{
|
|
@@ -11333,8 +11360,12 @@ var TABLE_TOKENS = {
|
|
|
11333
11360
|
// Sticky cells paint bg-token-white by default, but the selected state must
|
|
11334
11361
|
// win so the rounded highlight spans pinned + non-pinned cells seamlessly.
|
|
11335
11362
|
stickyCell: "sticky z-20 bg-token-white group-data-[selected=true]:bg-interaction-in-focus-solid",
|
|
11336
|
-
/** Right
|
|
11337
|
-
|
|
11363
|
+
/** Right divider on last pinned column.
|
|
11364
|
+
* Drawn via box-shadow (not border-r): `border-collapse: collapse` on the
|
|
11365
|
+
* table causes the collapsed border on sticky cells to drop out while
|
|
11366
|
+
* unpinned columns scroll underneath. An inset shadow paints with the
|
|
11367
|
+
* element itself and stays visible through the scroll. */
|
|
11368
|
+
pinnedLastBorder: "shadow-[inset_-1px_0_0_0_hsl(var(--border-xlight))]",
|
|
11338
11369
|
// ── Checkbox column — Figma: w-40, px-12 py-8
|
|
11339
11370
|
checkboxCell: "w-10 px-3 py-2",
|
|
11340
11371
|
// ── Actions column ──
|
|
@@ -15584,6 +15615,7 @@ Popover.displayName = "Popover";
|
|
|
15584
15615
|
AccordionContent,
|
|
15585
15616
|
AccordionContentPlaceholder,
|
|
15586
15617
|
AccordionItem,
|
|
15618
|
+
AccordionSectionTrigger,
|
|
15587
15619
|
AccordionTrigger,
|
|
15588
15620
|
AudioPlayer,
|
|
15589
15621
|
Avatar,
|
package/dist/index.mjs
CHANGED
|
@@ -8236,7 +8236,14 @@ var ACCORDION_TOKENS = {
|
|
|
8236
8236
|
contentWrap: "overflow-hidden data-[state=closed]:hidden",
|
|
8237
8237
|
contentInner: "pb-4 pt-0",
|
|
8238
8238
|
contentCard: "bg-token-dark-grey rounded-3xl h-[172px] w-full flex items-center justify-center",
|
|
8239
|
-
contentCardText: "text-sm font-normal leading-5 text-fg-black"
|
|
8239
|
+
contentCardText: "text-sm font-normal leading-5 text-fg-black",
|
|
8240
|
+
// --- Section Separator (Figma 6128:5627) ---
|
|
8241
|
+
// Pill-shaped trigger used to separate sections within a card/page.
|
|
8242
|
+
// Heading/H5: text-sm / semibold / leading-5. px-2 py-1.5, gap-2, rounded-full.
|
|
8243
|
+
// Hover: interaction/hov-solid-primary (#fafafa).
|
|
8244
|
+
// Pressed: interaction/pressed-opacity-secondary (rgba(10,10,10,0.1)).
|
|
8245
|
+
sectionTrigger: "inline-flex items-center gap-2 px-2 py-1.5 rounded-full overflow-hidden bg-transparent text-sm font-semibold leading-5 text-fg-black transition-colors cursor-pointer hover:bg-interaction-hov-solid-primary active:bg-interaction-pressed-opacity-secondary focus-visible:outline focus-visible:outline-2 focus-visible:outline-token-brand focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
8246
|
+
sectionTriggerChevron: "shrink-0 size-4 text-fg-black transition-transform duration-200"
|
|
8240
8247
|
};
|
|
8241
8248
|
|
|
8242
8249
|
// src/accordion/useAccordion.ts
|
|
@@ -8285,7 +8292,7 @@ function useAccordion({
|
|
|
8285
8292
|
const radixValue = React13.useMemo(() => {
|
|
8286
8293
|
var _a5;
|
|
8287
8294
|
if (type === "multiple") return openValues;
|
|
8288
|
-
return (_a5 = openValues[0]) != null ? _a5 :
|
|
8295
|
+
return (_a5 = openValues[0]) != null ? _a5 : "";
|
|
8289
8296
|
}, [openValues, type]);
|
|
8290
8297
|
const onRadixValueChange = React13.useCallback(
|
|
8291
8298
|
(next) => {
|
|
@@ -8388,6 +8395,25 @@ var AccordionTrigger = React14.forwardRef(({ className, children, description, a
|
|
|
8388
8395
|
}
|
|
8389
8396
|
) }));
|
|
8390
8397
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
8398
|
+
var AccordionSectionTrigger = React14.forwardRef(({ className, children, label, ...props }, ref) => /* @__PURE__ */ jsx11(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs9(
|
|
8399
|
+
AccordionPrimitive.Trigger,
|
|
8400
|
+
{
|
|
8401
|
+
ref,
|
|
8402
|
+
className: cn(ACCORDION_TOKENS.sectionTrigger, className),
|
|
8403
|
+
...props,
|
|
8404
|
+
children: [
|
|
8405
|
+
/* @__PURE__ */ jsx11("span", { className: "whitespace-nowrap", children: children != null ? children : label }),
|
|
8406
|
+
/* @__PURE__ */ jsx11(
|
|
8407
|
+
ChevronDown,
|
|
8408
|
+
{
|
|
8409
|
+
className: ACCORDION_TOKENS.sectionTriggerChevron,
|
|
8410
|
+
"aria-hidden": "true"
|
|
8411
|
+
}
|
|
8412
|
+
)
|
|
8413
|
+
]
|
|
8414
|
+
}
|
|
8415
|
+
) }));
|
|
8416
|
+
AccordionSectionTrigger.displayName = "AccordionSectionTrigger";
|
|
8391
8417
|
var AccordionContent = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
8392
8418
|
AccordionPrimitive.Content,
|
|
8393
8419
|
{
|
|
@@ -11239,8 +11265,12 @@ var TABLE_TOKENS = {
|
|
|
11239
11265
|
// Sticky cells paint bg-token-white by default, but the selected state must
|
|
11240
11266
|
// win so the rounded highlight spans pinned + non-pinned cells seamlessly.
|
|
11241
11267
|
stickyCell: "sticky z-20 bg-token-white group-data-[selected=true]:bg-interaction-in-focus-solid",
|
|
11242
|
-
/** Right
|
|
11243
|
-
|
|
11268
|
+
/** Right divider on last pinned column.
|
|
11269
|
+
* Drawn via box-shadow (not border-r): `border-collapse: collapse` on the
|
|
11270
|
+
* table causes the collapsed border on sticky cells to drop out while
|
|
11271
|
+
* unpinned columns scroll underneath. An inset shadow paints with the
|
|
11272
|
+
* element itself and stays visible through the scroll. */
|
|
11273
|
+
pinnedLastBorder: "shadow-[inset_-1px_0_0_0_hsl(var(--border-xlight))]",
|
|
11244
11274
|
// ── Checkbox column — Figma: w-40, px-12 py-8
|
|
11245
11275
|
checkboxCell: "w-10 px-3 py-2",
|
|
11246
11276
|
// ── Actions column ──
|
|
@@ -15489,6 +15519,7 @@ export {
|
|
|
15489
15519
|
AccordionContent,
|
|
15490
15520
|
AccordionContentPlaceholder,
|
|
15491
15521
|
AccordionItem,
|
|
15522
|
+
AccordionSectionTrigger,
|
|
15492
15523
|
AccordionTrigger,
|
|
15493
15524
|
AudioPlayer,
|
|
15494
15525
|
Avatar,
|
package/dist/styles.css
CHANGED
|
@@ -218,6 +218,9 @@
|
|
|
218
218
|
.lego-land .pointer-events-none {
|
|
219
219
|
pointer-events: none;
|
|
220
220
|
}
|
|
221
|
+
.lego-land .collapse {
|
|
222
|
+
visibility: collapse;
|
|
223
|
+
}
|
|
221
224
|
.lego-land .visible {
|
|
222
225
|
visibility: visible;
|
|
223
226
|
}
|
|
@@ -1836,6 +1839,10 @@
|
|
|
1836
1839
|
--tw-shadow: 0px 4px 6px 0px var(--tw-shadow-color, rgba(0,0,0,0.1)), 0px 10px 15px 0px var(--tw-shadow-color, rgba(0,0,0,0.1));
|
|
1837
1840
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1838
1841
|
}
|
|
1842
|
+
.lego-land .shadow-\[inset_-1px_0_0_0_hsl\(var\(--border-xlight\)\)\] {
|
|
1843
|
+
--tw-shadow: inset -1px 0 0 0 var(--tw-shadow-color, hsl(var(--border-xlight)));
|
|
1844
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1845
|
+
}
|
|
1839
1846
|
.lego-land .shadow-lg {
|
|
1840
1847
|
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1841
1848
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2726,6 +2733,11 @@
|
|
|
2726
2733
|
rotate: 180deg;
|
|
2727
2734
|
}
|
|
2728
2735
|
}
|
|
2736
|
+
.lego-land .\[\&\[data-state\=open\]\>svg\]\:rotate-180 {
|
|
2737
|
+
.lego-land &[data-state=open]>svg {
|
|
2738
|
+
rotate: 180deg;
|
|
2739
|
+
}
|
|
2740
|
+
}
|
|
2729
2741
|
}
|
|
2730
2742
|
.lego-land .rdp-root {
|
|
2731
2743
|
--rdp-accent-color: blue;
|