@atom-learning/components 6.0.0-beta.31 → 6.0.0-beta.33
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/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/action-icon/ActionIcon.js.map +1 -1
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/avatar/AvatarImage.js +1 -1
- package/dist/components/avatar/AvatarImage.js.map +1 -1
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/badge/Badge.js.map +1 -1
- package/dist/components/banner/Banner.d.ts +2 -2
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +95 -91
- package/dist/components/banner/banner-slim/BannerSlim.d.ts +95 -91
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +90 -90
- package/dist/components/checkbox-tree/CheckboxTree.d.ts +344 -344
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/data-table/DataTable.d.ts +21 -21
- package/dist/components/data-table/DataTable.types.d.ts +1 -0
- package/dist/components/data-table/DataTable.types.js.map +1 -1
- package/dist/components/data-table/DataTableContext.js +1 -1
- package/dist/components/data-table/DataTableContext.js.map +1 -1
- package/dist/components/data-table/DataTableHead.js +1 -1
- package/dist/components/data-table/DataTableHeaderCell.js +1 -1
- package/dist/components/data-table/DataTableHeaderCell.js.map +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.js +1 -1
- package/dist/components/data-table/getNewAsyncData.js +1 -1
- package/dist/components/data-table/pagination/Pagination.js +1 -1
- package/dist/components/data-table/pagination/Pagination.js.map +1 -1
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/dialog/DialogFooter.js +1 -1
- package/dist/components/dismissible/index.d.ts +2 -2
- package/dist/components/dismissible-group/index.d.ts +3 -3
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input/Input.d.ts +1 -9
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/keyboard-shortcut/KeyboardShortcut.js +1 -1
- package/dist/components/keyboard-shortcut/KeyboardShortcut.js.map +1 -1
- package/dist/components/keyboard-shortcut/index.d.ts +2 -2
- package/dist/components/label/Label.js +1 -1
- package/dist/components/label/Label.js.map +1 -1
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/loader/Loader.js +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +162 -162
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js.map +1 -1
- package/dist/components/number-input/NumberInput.d.ts +1 -0
- package/dist/components/number-input/NumberInput.js +1 -1
- package/dist/components/number-input/NumberInput.js.map +1 -1
- package/dist/components/number-input/NumberInputStepper.d.ts +2 -1
- package/dist/components/number-input/NumberInputStepper.js +1 -1
- package/dist/components/number-input/NumberInputStepper.js.map +1 -1
- package/dist/components/pagination/PaginationPopover.js +1 -1
- package/dist/components/pagination/PaginationPopover.js.map +1 -1
- package/dist/components/password-field/PasswordField.js +1 -1
- package/dist/components/popover/Popover.d.ts +1 -0
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/popover/Popover.js.map +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/section-message/SectionMessage.js +1 -1
- package/dist/components/section-message/SectionMessage.js.map +1 -1
- package/dist/components/section-message/SectionMessageDescription.js +1 -1
- package/dist/components/section-message/SectionMessageDismiss.js +1 -1
- package/dist/components/section-message/SectionMessageIcon.js +1 -1
- package/dist/components/section-message/SectionMessageLayout.js +1 -1
- package/dist/components/segmented-control/SegmentedControl.d.ts +9 -9
- package/dist/components/segmented-control/SegmentedControlItemList.js +1 -1
- package/dist/components/segmented-control/SegmentedControlItemList.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlRoot.js +1 -1
- package/dist/components/segmented-control/SegmentedControlRoot.js.map +1 -1
- package/dist/components/side-bar/SideBarComponents.d.ts +1 -1
- package/dist/components/skeleton-loader/Skeleton.d.ts +5 -0
- package/dist/components/skeleton-loader/Skeleton.js +2 -0
- package/dist/components/skeleton-loader/Skeleton.js.map +1 -0
- package/dist/components/skeleton-loader/SkeletonButton.d.ts +5 -0
- package/dist/components/skeleton-loader/SkeletonButton.js +2 -0
- package/dist/components/skeleton-loader/SkeletonButton.js.map +1 -0
- package/dist/components/skeleton-loader/SkeletonHeading.d.ts +5 -0
- package/dist/components/skeleton-loader/SkeletonHeading.js +2 -0
- package/dist/components/skeleton-loader/SkeletonHeading.js.map +1 -0
- package/dist/components/skeleton-loader/SkeletonTabs.d.ts +6 -0
- package/dist/components/skeleton-loader/SkeletonTabs.js +2 -0
- package/dist/components/skeleton-loader/SkeletonTabs.js.map +1 -0
- package/dist/components/skeleton-loader/index.d.ts +4 -0
- package/dist/components/skeleton-loader/index.js +2 -0
- package/dist/components/skeleton-loader/index.js.map +1 -0
- package/dist/components/sortable/index.d.ts +3 -3
- package/dist/components/stepper/StepperStepBullet.js +1 -1
- package/dist/components/stepper/StepperStepBullet.js.map +1 -1
- package/dist/components/stepper/StepperStepLabel.d.ts +1 -1
- package/dist/components/stepper/StepperSteps.js +1 -1
- package/dist/components/stepper/StepperSteps.js.map +1 -1
- package/dist/components/table/TableCell.js +1 -1
- package/dist/components/table/TableCell.js.map +1 -1
- package/dist/components/table/TableStickyColumnsContainer.js +1 -1
- package/dist/components/table/TableStickyColumnsContainer.js.map +1 -1
- package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupItem.js +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupItem.js.map +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js.map +1 -1
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/Toast.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +3 -10
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroupItem.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.js.map +1 -1
- package/dist/components/toggle-group/index.d.ts +1 -5
- package/dist/components/tree/Tree.d.ts +243 -243
- package/dist/components/tree/TreeText.js +1 -1
- package/dist/components/tree/TreeText.js.map +1 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/styled.js +1 -1
- package/package.json +11 -6
- package/src/index.css +14 -0
- package/src/responsive-variant-classes.css +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/styled'\nimport { overrideStyledVariantValue } from '~/utilities/override-styled-variant-value/overrideStyledVariantValue'\n\nimport { Flex } from '../flex'\nimport { Text } from '../text'\n\nexport const InputBackground = styled(
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/styled'\nimport { overrideStyledVariantValue } from '~/utilities/override-styled-variant-value/overrideStyledVariantValue'\n\nimport { Flex } from '../flex'\nimport { Text } from '../text'\n\nexport const InputBackground = styled('div', {\n base: [\n 'flex',\n 'text-grey-1000',\n 'transition-[background]',\n 'duration-100',\n 'ease-out',\n 'transition-[border-color]',\n 'duration-100',\n 'ease-out',\n 'w-full'\n ],\n variants: {\n appearance: {\n standard: [\n 'bg-white',\n 'border',\n 'border-grey-800',\n 'focus-within:border-blue-800',\n 'rounded-md'\n ],\n modern: [\n 'bg-grey-100',\n 'border-none',\n 'focus-within:outline-2',\n 'focus-within:outline-blue-800',\n 'focus-within:outline-offset-1',\n 'focus-within:outline-solid',\n 'focus-within:z-1',\n 'rounded-md'\n ]\n },\n size: {\n sm: ['h-8'],\n md: ['h-10'],\n lg: ['h-12'],\n xl: ['h-16']\n },\n disabled: {\n true: ['cursor-not-allowed', 'opacity-30']\n },\n state: {\n error: []\n }\n },\n compoundVariants: [\n {\n state: 'error',\n appearance: 'standard',\n class: ['border-danger']\n },\n {\n state: 'error',\n appearance: 'modern',\n class: ['bg-danger-light', 'focus-within:outline-danger']\n }\n ]\n})\n\nInputBackground.displayName = 'InputBackground'\n\nconst StyledInputText = styled(Text, {\n base: [\n 'appearance-none',\n 'border-none',\n 'bg-none',\n 'bg-transparent',\n 'shadow-none',\n 'box-border',\n 'focus:outline-none',\n 'px-3',\n 'size-full',\n 'placeholder:opacity-100',\n 'placeholder:text-grey-700'\n ]\n})\n\nexport type InputTextProps = Omit<\n React.InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> &\n Omit<React.ComponentProps<typeof StyledInputText>, 'type' | 'as'> & {\n // override default 'type' property to prevent Input from being used to render\n // checkboxes, radios etc — we have dedicated components for them\n type?: 'text' | 'number' | 'email' | 'password' | 'tel' | 'url' | 'search'\n as?: never\n disabled?: boolean\n }\n\nconst toTextSize = {\n sm: 'sm',\n md: 'md',\n lg: 'md',\n xl: 'lg'\n}\n\nexport const InputText = React.forwardRef<HTMLInputElement, InputTextProps>(\n ({ type = 'text', size, ...rest }, ref) => {\n const textSize = React.useMemo(\n () => overrideStyledVariantValue(size, (s) => toTextSize[s]),\n [size]\n )\n\n return (\n <StyledInputText\n ref={ref}\n as=\"input\"\n type={type === 'number' ? 'text' : type}\n inputMode={type === 'number' ? 'numeric' : undefined}\n pattern={type === 'number' ? '[0-9]*' : undefined}\n size={textSize}\n {...(rest as any)}\n />\n )\n }\n)\n\nInputText.displayName = 'InputText'\n\ntype InputBackgroundProps = React.ComponentProps<typeof InputBackground>\nexport type InputProps = Omit<\n React.ComponentProps<typeof InputText>,\n 'size' | 'state' | 'appearance'\n> & {\n size?: InputBackgroundProps['size']\n state?: InputBackgroundProps['state']\n appearance?: InputBackgroundProps['appearance']\n disabled?: boolean\n name?: string\n readOnly?: boolean\n value?: string | number\n onChange?: React.ChangeEventHandler<HTMLInputElement>\n}\n\nexport const Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n {\n className,\n size = 'md',\n appearance = 'standard',\n state,\n disabled,\n ...rest\n },\n ref\n ) => {\n return (\n <InputBackground\n size={size}\n appearance={appearance}\n disabled={disabled}\n state={state}\n className={className}\n >\n <InputText size={size} ref={ref} disabled={disabled} {...rest} />\n </InputBackground>\n )\n }\n)\n\nInput.displayName = 'Input'\n"],"names":["InputBackground","styled","StyledInputText","Text","toTextSize","InputText","React","type","size","rest","ref","textSize","overrideStyledVariantValue","s","Input","className","appearance","state","disabled"],"mappings":"iOAQa,MAAAA,EAAkBC,EAAO,MAAO,CAC3C,KAAM,CACJ,OACA,iBACA,0BACA,eACA,WACA,4BACA,eACA,WACA,QACF,EACA,SAAU,CACR,WAAY,CACV,SAAU,CACR,WACA,SACA,kBACA,+BACA,YACF,EACA,OAAQ,CACN,cACA,cACA,yBACA,gCACA,gCACA,6BACA,mBACA,YACF,CACF,EACA,KAAM,CACJ,GAAI,CAAC,KAAK,EACV,GAAI,CAAC,MAAM,EACX,GAAI,CAAC,MAAM,EACX,GAAI,CAAC,MAAM,CACb,EACA,SAAU,CACR,KAAM,CAAC,qBAAsB,YAAY,CAC3C,EACA,MAAO,CACL,MAAO,CACT,CAAA,CACF,EACA,iBAAkB,CAChB,CACE,MAAO,QACP,WAAY,WACZ,MAAO,CAAC,eAAe,CACzB,EACA,CACE,MAAO,QACP,WAAY,SACZ,MAAO,CAAC,kBAAmB,6BAA6B,CAC1D,CACF,CACF,CAAC,EAEDD,EAAgB,YAAc,kBAE9B,MAAME,EAAkBD,EAAOE,EAAM,CACnC,KAAM,CACJ,kBACA,cACA,UACA,iBACA,cACA,aACA,qBACA,OACA,YACA,0BACA,2BACF,CACF,CAAC,EAcKC,EAAa,CACjB,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,IACN,EAEaC,EAAYC,EAAM,WAC7B,CAAC,CAAE,KAAAC,EAAO,OAAQ,KAAAC,EAAM,GAAGC,CAAK,EAAGC,IAAQ,CACzC,MAAMC,EAAWL,EAAM,QACrB,IAAMM,EAA2BJ,EAAOK,GAAMT,EAAWS,CAAC,CAAC,EAC3D,CAACL,CAAI,CACP,EAEA,OACEF,EAAA,cAACJ,EAAA,CACC,IAAKQ,EACL,GAAG,QACH,KAAMH,IAAS,SAAW,OAASA,EACnC,UAAWA,IAAS,SAAW,UAAY,OAC3C,QAASA,IAAS,SAAW,SAAW,OACxC,KAAMI,EACL,GAAIF,CAAAA,CACP,CAEJ,CACF,EAEAJ,EAAU,YAAc,YAiBjB,MAAMS,EAAQR,EAAM,WACzB,CACE,CACE,UAAAS,EACA,KAAAP,EAAO,KACP,WAAAQ,EAAa,WACb,MAAAC,EACA,SAAAC,EACA,GAAGT,CACL,EACAC,IAGEJ,EAAA,cAACN,EACC,CAAA,KAAMQ,EACN,WAAYQ,EACZ,SAAUE,EACV,MAAOD,EACP,UAAWF,CAAAA,EAEXT,EAAA,cAACD,EAAU,CAAA,KAAMG,EAAM,IAAKE,EAAK,SAAUQ,EAAW,GAAGT,CAAM,CAAA,CACjE,CAGN,EAEAK,EAAM,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Slot as p}from"@radix-ui/react-slot";import*as e from"react";import{styled as w}from"../../styled.js";import{useCallbackRefState as v}from"../../utilities/hooks/useCallbackRef.js";import{Text as
|
|
1
|
+
import{Slot as p}from"@radix-ui/react-slot";import*as e from"react";import{styled as w}from"../../styled.js";import{useCallbackRefState as v}from"../../utilities/hooks/useCallbackRef.js";import{Text as k}from"../text/Text.js";const c=e.forwardRef(({asChild:o,config:s,targetWindow:r=!1,onKeyDown:n,...m},l)=>{const[f,y]=v();e.useImperativeHandle(l,()=>f);const t=e.useCallback(i=>{s.forEach(({shortcut:a,action:u})=>{Object.entries(a).every(([b,h])=>i[b]===h)&&u({event:i,shortcut:a})}),n==null||n(i)},[s,n]);return e.useEffect(()=>(r&&window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}),[r,t]),e.createElement(o?p:"div",{onKeyDown:r?void 0:t,ref:y,...m})});c.displayName="KeyboardShortcut";const x=w(k,{base:["bg-grey-100","text-text-subtle","px-2","py-0.5","min-w-6","min-h-6","font-normal","inline-flex","justify-center","items-center","rounded-md","shrink-0"]}),d=o=>e.createElement(x,{size:"sm",as:"kbd",...o});d.displayName="KeyboardShortcut";export{c as KeyboardShortcut,d as KeyboardShortcutIndicator};
|
|
2
2
|
//# sourceMappingURL=KeyboardShortcut.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardShortcut.js","sources":["../../../src/components/keyboard-shortcut/KeyboardShortcut.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport * as React from 'react'\n\nimport { styled } from '~/styled'\nimport { useCallbackRefState } from '~/utilities/hooks/useCallbackRef'\n\nimport { Text } from '../text'\n\ntype KeyboardEventWindowOrElement =\n | KeyboardEvent\n | React.KeyboardEvent<HTMLDivElement>\ntype ShortcutConfig = Partial<KeyboardEvent>\n\ntype KeyboardShortcutProps = React.HTMLAttributes<HTMLDivElement> & {\n asChild?: boolean\n config: {\n shortcut: ShortcutConfig\n action: ({\n event,\n shortcut\n }: {\n event: KeyboardEvent | React.KeyboardEvent<HTMLDivElement>\n shortcut: ShortcutConfig\n }) => void\n }[]\n targetWindow?: boolean\n onKeyDown?: (e: KeyboardEventWindowOrElement) => void\n}\n\nexport const KeyboardShortcut = React.forwardRef<\n HTMLDivElement,\n KeyboardShortcutProps\n>(({ asChild, config, targetWindow = false, onKeyDown, ...rest }, ref) => {\n const [targetElRef, setTargetElRef] = useCallbackRefState()\n React.useImperativeHandle(ref, () => targetElRef as HTMLDivElement)\n\n const handleOnKeydown = React.useCallback(\n (e: KeyboardEventWindowOrElement) => {\n config.forEach(({ shortcut, action }) => {\n if (Object.entries(shortcut).every(([key, value]) => e[key] === value))\n action({ event: e, shortcut })\n })\n onKeyDown?.(e)\n },\n [config, onKeyDown]\n )\n\n React.useEffect(() => {\n if (targetWindow) window.addEventListener('keydown', handleOnKeydown)\n\n return () => {\n window.removeEventListener('keydown', handleOnKeydown)\n }\n }, [targetWindow, handleOnKeydown])\n\n const Component = asChild ? Slot : 'div'\n\n return (\n <Component\n onKeyDown={targetWindow ? undefined : (handleOnKeydown as any)}\n ref={setTargetElRef}\n {...rest}\n />\n )\n})\n\nKeyboardShortcut.displayName = 'KeyboardShortcut'\n\nconst StyledKeyboardShortcutIndicator = styled(Text, {\n base: [\n 'bg-grey-100',\n 'text-text-subtle',\n 'px-2',\n '
|
|
1
|
+
{"version":3,"file":"KeyboardShortcut.js","sources":["../../../src/components/keyboard-shortcut/KeyboardShortcut.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport * as React from 'react'\n\nimport { styled } from '~/styled'\nimport { useCallbackRefState } from '~/utilities/hooks/useCallbackRef'\n\nimport { Text } from '../text'\n\ntype KeyboardEventWindowOrElement =\n | KeyboardEvent\n | React.KeyboardEvent<HTMLDivElement>\ntype ShortcutConfig = Partial<KeyboardEvent>\n\ntype KeyboardShortcutProps = React.HTMLAttributes<HTMLDivElement> & {\n asChild?: boolean\n config: {\n shortcut: ShortcutConfig\n action: ({\n event,\n shortcut\n }: {\n event: KeyboardEvent | React.KeyboardEvent<HTMLDivElement>\n shortcut: ShortcutConfig\n }) => void\n }[]\n targetWindow?: boolean\n onKeyDown?: (e: KeyboardEventWindowOrElement) => void\n}\n\nexport const KeyboardShortcut = React.forwardRef<\n HTMLDivElement,\n KeyboardShortcutProps\n>(({ asChild, config, targetWindow = false, onKeyDown, ...rest }, ref) => {\n const [targetElRef, setTargetElRef] = useCallbackRefState()\n React.useImperativeHandle(ref, () => targetElRef as HTMLDivElement)\n\n const handleOnKeydown = React.useCallback(\n (e: KeyboardEventWindowOrElement) => {\n config.forEach(({ shortcut, action }) => {\n if (Object.entries(shortcut).every(([key, value]) => e[key] === value))\n action({ event: e, shortcut })\n })\n onKeyDown?.(e)\n },\n [config, onKeyDown]\n )\n\n React.useEffect(() => {\n if (targetWindow) window.addEventListener('keydown', handleOnKeydown)\n\n return () => {\n window.removeEventListener('keydown', handleOnKeydown)\n }\n }, [targetWindow, handleOnKeydown])\n\n const Component = asChild ? Slot : 'div'\n\n return (\n <Component\n onKeyDown={targetWindow ? undefined : (handleOnKeydown as any)}\n ref={setTargetElRef}\n {...rest}\n />\n )\n})\n\nKeyboardShortcut.displayName = 'KeyboardShortcut'\n\nconst StyledKeyboardShortcutIndicator = styled(Text, {\n base: [\n 'bg-grey-100',\n 'text-text-subtle',\n 'px-2',\n 'py-0.5',\n 'min-w-6',\n 'min-h-6',\n 'font-normal',\n 'inline-flex',\n 'justify-center',\n 'items-center',\n 'rounded-md',\n 'shrink-0'\n ]\n})\n\ntype KeyboardShortcutIndicatorProps = React.ComponentProps<\n typeof StyledKeyboardShortcutIndicator\n>\n\nexport const KeyboardShortcutIndicator = (\n props: KeyboardShortcutIndicatorProps\n) => {\n return <StyledKeyboardShortcutIndicator size=\"sm\" as=\"kbd\" {...props} />\n}\n\nKeyboardShortcutIndicator.displayName = 'KeyboardShortcut'\n"],"names":["KeyboardShortcut","React","asChild","config","targetWindow","onKeyDown","rest","ref","targetElRef","setTargetElRef","useCallbackRefState","handleOnKeydown","e","shortcut","action","key","value","Slot","StyledKeyboardShortcutIndicator","styled","Text","KeyboardShortcutIndicator","props"],"mappings":"wOA6BaA,EAAmBC,EAAM,WAGpC,CAAC,CAAE,QAAAC,EAAS,OAAAC,EAAQ,aAAAC,EAAe,GAAO,UAAAC,EAAW,GAAGC,CAAK,EAAGC,IAAQ,CACxE,KAAM,CAACC,EAAaC,CAAc,EAAIC,EACtCT,EAAAA,EAAM,oBAAoBM,EAAK,IAAMC,CAA6B,EAElE,MAAMG,EAAkBV,EAAM,YAC3BW,GAAoC,CACnCT,EAAO,QAAQ,CAAC,CAAE,SAAAU,EAAU,OAAAC,CAAO,IAAM,CACnC,OAAO,QAAQD,CAAQ,EAAE,MAAM,CAAC,CAACE,EAAKC,CAAK,IAAMJ,EAAEG,CAAG,IAAMC,CAAK,GACnEF,EAAO,CAAE,MAAOF,EAAG,SAAAC,CAAS,CAAC,CACjC,CAAC,EACDR,GAAA,MAAAA,EAAYO,CAAAA,CACd,EACA,CAACT,EAAQE,CAAS,CACpB,EAEA,OAAAJ,EAAM,UAAU,KACVG,GAAc,OAAO,iBAAiB,UAAWO,CAAe,EAE7D,IAAM,CACX,OAAO,oBAAoB,UAAWA,CAAe,CACvD,GACC,CAACP,EAAcO,CAAe,CAAC,EAKhCV,EAAA,cAHgBC,EAAUe,EAAO,MAGhC,CACC,UAAWb,EAAe,OAAaO,EACvC,IAAKF,EACJ,GAAGH,CAAAA,CACN,CAEJ,CAAC,EAEDN,EAAiB,YAAc,mBAE/B,MAAMkB,EAAkCC,EAAOC,EAAM,CACnD,KAAM,CACJ,cACA,mBACA,OACA,SACA,UACA,UACA,cACA,cACA,iBACA,eACA,aACA,UACF,CACF,CAAC,EAMYC,EACXC,GAEOrB,EAAA,cAACiB,EAAA,CAAgC,KAAK,KAAK,GAAG,MAAO,GAAGI,CAAO,CAAA,EAGxED,EAA0B,YAAc"}
|
|
@@ -3,7 +3,7 @@ export declare const KeyboardShortcut: import("react").ForwardRefExoticComponent
|
|
|
3
3
|
config: {
|
|
4
4
|
shortcut: Partial<KeyboardEvent>;
|
|
5
5
|
action: ({ event, shortcut }: {
|
|
6
|
-
event: KeyboardEvent |
|
|
6
|
+
event: KeyboardEvent | import("react").KeyboardEvent<HTMLDivElement>;
|
|
7
7
|
shortcut: Partial<KeyboardEvent>;
|
|
8
8
|
}) => void;
|
|
9
9
|
}[];
|
|
@@ -21,7 +21,7 @@ export declare const KeyboardShortcut: import("react").ForwardRefExoticComponent
|
|
|
21
21
|
} & {
|
|
22
22
|
as?: import("react").ElementType;
|
|
23
23
|
}, "as"> & {
|
|
24
|
-
as?: "blockquote" | "caption" | "dd" | "dt" | "figcaption" | "li" | "p" | "span" | "legend" |
|
|
24
|
+
as?: "blockquote" | "caption" | "dd" | "dt" | "figcaption" | "li" | "p" | "span" | "legend" | import("react").ComponentType | import("react").ElementType;
|
|
25
25
|
}, "ref"> & import("react").RefAttributes<HTMLParagraphElement>, never> & {
|
|
26
26
|
as?: import("react").ElementType;
|
|
27
27
|
}): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import{styled as
|
|
1
|
+
import*as e from"react";import{styled as m}from"../../styled.js";const d=m("label",{base:["text-grey-900","font-body","m-0"],variants:{size:{sm:["text-sm","leading-[1.53]","capsize-[0.4056]"],md:["text-md","leading-normal","capsize-[0.3864]"]},type:{block:["block","font-semibold"],inline:["flex","font-normal","max-w-max"]},align:{start:[],center:[]},direction:{reverse:[],row:[]},appearance:{standard:[],modern:[]}},compoundVariants:[{type:"inline",align:"start",class:["items-start"]},{type:"inline",align:"center",class:["items-center"]},{type:"inline",direction:"reverse",class:["flex-row-reverse"]},{type:"inline",direction:"row",class:["flex-row"]},{type:"block",appearance:"modern",class:["font-normal"]}]}),a=({align:t="start",as:n="label",direction:r="row",size:i="md",type:l="block",children:s,required:o,...c})=>e.createElement(d,{as:n,size:i,type:l,align:t,direction:r,...c},s,o&&e.createElement("span",{className:"text-danger ml-1 font-normal","aria-hidden":!0},"*"));a.displayName="Label";export{a as Label};
|
|
2
2
|
//# sourceMappingURL=Label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","sources":["../../../src/components/label/Label.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/styled'\nimport type { Override } from '~/utilities/types'\n\nconst StyledLabel = styled('label', {\n base: ['text-grey-900', 'font-body', 'm-0'],\n variants: {\n size: {\n sm: ['text-sm', 'leading-[1.53]', 'capsize-[0.4056]'],\n md: ['text-md', 'leading-normal', 'capsize-[0.3864]']\n },\n type: {\n block: ['block', 'font-semibold'],\n inline: ['flex', 'font-normal', 'max-w-max']\n },\n align: { start: [], center: [] },\n direction: { reverse: [], row: [] },\n appearance: { standard: [], modern: [] }\n },\n compoundVariants: [\n {\n type: 'inline',\n align: 'start',\n class: ['items-start']\n },\n {\n type: 'inline',\n align: 'center',\n class: ['items-center']\n },\n {\n type: 'inline',\n direction: 'reverse',\n class: ['flex-row-reverse']\n },\n {\n type: 'inline',\n direction: 'row',\n class: ['flex-row']\n },\n {\n type: 'block',\n appearance: 'modern',\n class: ['font-normal']\n }\n ]\n})\n\
|
|
1
|
+
{"version":3,"file":"Label.js","sources":["../../../src/components/label/Label.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/styled'\nimport type { Override } from '~/utilities/types'\n\nconst StyledLabel = styled('label', {\n base: ['text-grey-900', 'font-body', 'm-0'],\n variants: {\n size: {\n sm: ['text-sm', 'leading-[1.53]', 'capsize-[0.4056]'],\n md: ['text-md', 'leading-normal', 'capsize-[0.3864]']\n },\n type: {\n block: ['block', 'font-semibold'],\n inline: ['flex', 'font-normal', 'max-w-max']\n },\n align: { start: [], center: [] },\n direction: { reverse: [], row: [] },\n appearance: { standard: [], modern: [] }\n },\n compoundVariants: [\n {\n type: 'inline',\n align: 'start',\n class: ['items-start']\n },\n {\n type: 'inline',\n align: 'center',\n class: ['items-center']\n },\n {\n type: 'inline',\n direction: 'reverse',\n class: ['flex-row-reverse']\n },\n {\n type: 'inline',\n direction: 'row',\n class: ['flex-row']\n },\n {\n type: 'block',\n appearance: 'modern',\n class: ['font-normal']\n }\n ]\n})\n\nexport type LabelProps = Override<\n React.ComponentPropsWithoutRef<typeof StyledLabel>,\n {\n as?: 'label' | 'legend'\n required?: boolean\n }\n>\n\nexport const Label = ({\n align = 'start',\n as = 'label',\n direction = 'row',\n size = 'md',\n type = 'block',\n children,\n required,\n ...rest\n}: LabelProps) => (\n <StyledLabel\n as={as}\n size={size}\n type={type}\n align={align}\n direction={direction}\n {...rest}\n >\n {children}\n {required && (\n <span className=\"text-danger ml-1 font-normal\" aria-hidden>\n *\n </span>\n )}\n </StyledLabel>\n)\n\nLabel.displayName = 'Label'\n"],"names":["StyledLabel","styled","Label","align","as","direction","size","type","children","required","rest","React"],"mappings":"iEAKA,MAAMA,EAAcC,EAAO,QAAS,CAClC,KAAM,CAAC,gBAAiB,YAAa,KAAK,EAC1C,SAAU,CACR,KAAM,CACJ,GAAI,CAAC,UAAW,iBAAkB,kBAAkB,EACpD,GAAI,CAAC,UAAW,iBAAkB,kBAAkB,CACtD,EACA,KAAM,CACJ,MAAO,CAAC,QAAS,eAAe,EAChC,OAAQ,CAAC,OAAQ,cAAe,WAAW,CAC7C,EACA,MAAO,CAAE,MAAO,CAAA,EAAI,OAAQ,CAAA,CAAG,EAC/B,UAAW,CAAE,QAAS,CAAI,EAAA,IAAK,EAAG,EAClC,WAAY,CAAE,SAAU,CAAA,EAAI,OAAQ,CAAG,CAAA,CACzC,EACA,iBAAkB,CAChB,CACE,KAAM,SACN,MAAO,QACP,MAAO,CAAC,aAAa,CACvB,EACA,CACE,KAAM,SACN,MAAO,SACP,MAAO,CAAC,cAAc,CACxB,EACA,CACE,KAAM,SACN,UAAW,UACX,MAAO,CAAC,kBAAkB,CAC5B,EACA,CACE,KAAM,SACN,UAAW,MACX,MAAO,CAAC,UAAU,CACpB,EACA,CACE,KAAM,QACN,WAAY,SACZ,MAAO,CAAC,aAAa,CACvB,CACF,CACF,CAAC,EAUYC,EAAQ,CAAC,CACpB,MAAAC,EAAQ,QACR,GAAAC,EAAK,QACL,UAAAC,EAAY,MACZ,KAAAC,EAAO,KACP,KAAAC,EAAO,QACP,SAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IACEC,EAAA,cAACX,EAAA,CACC,GAAII,EACJ,KAAME,EACN,KAAMC,EACN,MAAOJ,EACP,UAAWE,EACV,GAAGK,CAAAA,EAEHF,EACAC,GACCE,EAAA,cAAC,OAAK,CAAA,UAAU,+BAA+B,cAAW,EAAA,EAAC,GAE3D,CAEJ,EAGFT,EAAM,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sources":["../../../src/components/link/Link.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/styled'\nimport { NavigatorActions } from '~/types'\nimport { Override } from '~/utilities'\nimport { getExternalAnchorProps } from '~/utilities/uri'\n\nexport const StyledLink = styled(\n 'a',\n {\n base: [\n 'bg-[unset]'
|
|
1
|
+
{"version":3,"file":"Link.js","sources":["../../../src/components/link/Link.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/styled'\nimport { NavigatorActions } from '~/types'\nimport { Override } from '~/utilities'\nimport { getExternalAnchorProps } from '~/utilities/uri'\n\nexport const StyledLink = styled(\n 'a',\n {\n base: [\n 'bg-[unset]',\n 'text-primary-800',\n 'cursor-pointer',\n 'font-body',\n 'no-underline',\n 'focus:text-primary-900',\n 'focus:underline',\n 'hover:text-primary-900',\n 'hover:underline',\n 'active:text-primary-1000',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-30',\n 'disabled:pointer-events-none',\n '[p>&,h1>&,h2>&,h3>&,h4>&,li>&,em>&]:after:content-none',\n '[p>&,h1>&,h2>&,h3>&,h4>&,li>&,em>&]:before:content-none',\n '[p>&,h1>&,h2>&,h3>&,h4>&,li>&,em>&]:text-[100%]/none'\n ],\n variants: {\n size: {\n xs: ['text-xs', 'leading-[1.6]', 'capsize-[0.4364]'],\n sm: ['text-sm', 'leading-[1.53]', 'capsize-[0.4056]'],\n md: ['text-md', 'leading-normal', 'capsize-[0.3864]'],\n lg: ['text-lg', 'leading-[1.52]', 'capsize-[0.3983]'],\n xl: ['text-xl', 'leading-[1.42]', 'capsize-[0.3506]']\n },\n noCapsize: {\n true: ['before:hidden!', 'after:hidden!']\n }\n },\n defaultVariants: {\n size: 'md'\n }\n },\n { enabledResponsiveVariants: true }\n)\n\ntype LinkProps = Override<\n React.ComponentProps<typeof StyledLink>,\n NavigatorActions & { disabled?: boolean }\n>\n\nexport const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(\n ({ as, disabled, href, ...rest }, ref) => (\n <StyledLink\n as={as || (!href ? 'button' : undefined)}\n noCapsize={!href ? true : undefined}\n href={href}\n {...(disabled && { disabled: true })}\n {...rest}\n {...getExternalAnchorProps(href)}\n ref={ref as any}\n />\n )\n)\n\nLink.displayName = 'Link'\n"],"names":["StyledLink","styled","Link","React","as","disabled","href","rest","ref","getExternalAnchorProps"],"mappings":"uIAOa,MAAAA,EAAaC,EACxB,IACA,CACE,KAAM,CACJ,aACA,mBACA,iBACA,YACA,eACA,yBACA,kBACA,yBACA,kBACA,2BACA,8BACA,sBACA,+BACA,yDACA,0DACA,sDACF,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CAAC,UAAW,gBAAiB,kBAAkB,EACnD,GAAI,CAAC,UAAW,iBAAkB,kBAAkB,EACpD,GAAI,CAAC,UAAW,iBAAkB,kBAAkB,EACpD,GAAI,CAAC,UAAW,iBAAkB,kBAAkB,EACpD,GAAI,CAAC,UAAW,iBAAkB,kBAAkB,CACtD,EACA,UAAW,CACT,KAAM,CAAC,iBAAkB,eAAe,CAC1C,CACF,EACA,gBAAiB,CACf,KAAM,IACR,CACF,EACA,CAAE,0BAA2B,EAAK,CACpC,EAOaC,EAAOC,EAAM,WACxB,CAAC,CAAE,GAAAC,EAAI,SAAAC,EAAU,KAAAC,EAAM,GAAGC,CAAK,EAAGC,IAChCL,EAAA,cAACH,EACC,CAAA,GAAII,IAAQE,EAAkB,OAAX,UACnB,UAAYA,EAAc,OAAP,GACnB,KAAMA,EACL,GAAID,GAAY,CAAE,SAAU,EAAK,EACjC,GAAGE,EACH,GAAGE,EAAuBH,CAAI,EAC/B,IAAKE,CAAAA,CACP,CAEJ,EAEAN,EAAK,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as s from"@radix-ui/react-visually-hidden";import n from"clsx";import*as e from"react";import{Flex as o}from"../flex/Flex.js";import{styled as l}from"../../styled.js";const a=l("div",{base:["animate-pulse","bg-current","rounded-full","animation-duration-900","nth-3:animation-delay-300","nth-4:animation-delay-600"],variants:{size:{sm:["size-1","mx-0.5"],md:["size-1.5","mx-0.5"],lg:["size-2","mx-[3px]"]}}}),c=({className:m,message:i="Loading",size:t="md",...r})=>e.createElement(o,{role:"alert",...r,className:n("justify-center",m)},e.createElement(s.Root,null,i),e.createElement(a,{size:t}),e.createElement(a,{size:t}),e.createElement(a,{size:t}));export{c as Loader};
|
|
2
2
|
//# sourceMappingURL=Loader.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"clsx";import*as m from"react";import{Divider as
|
|
1
|
+
import r from"clsx";import*as m from"react";import{Divider as a}from"../../divider/Divider.js";const o=({className:e})=>m.createElement(a,{className:r("w-full",e)});export{o as MarkdownThematicBreak};
|
|
2
2
|
//# sourceMappingURL=MarkdownThematicBreak.js.map
|
|
@@ -10,68 +10,68 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
10
10
|
as?: React.ElementType;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
12
|
Accordion: ({ defaultOpen, open, onOpenChange, disabled, ...rest }: import("@radix-ui/react-collapsible").CollapsibleProps & React.RefAttributes<HTMLDivElement> & {
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
slot?: string | undefined
|
|
13
|
+
children?: React.ReactNode | undefined;
|
|
14
|
+
slot?: string | undefined;
|
|
15
15
|
style?: React.CSSProperties | undefined;
|
|
16
|
-
title?: string | undefined
|
|
16
|
+
title?: string | undefined;
|
|
17
17
|
ref?: React.Ref<HTMLLIElement> | undefined;
|
|
18
|
-
className?: string | undefined
|
|
19
|
-
color?: string | undefined
|
|
20
|
-
id?: string | undefined
|
|
21
|
-
lang?: string | undefined
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
lang?: string | undefined;
|
|
22
22
|
role?: React.AriaRole | undefined;
|
|
23
|
-
tabIndex?: number | undefined
|
|
24
|
-
"aria-activedescendant"?: string | undefined
|
|
23
|
+
tabIndex?: number | undefined;
|
|
24
|
+
"aria-activedescendant"?: string | undefined;
|
|
25
25
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
26
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined
|
|
26
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
27
27
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
28
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined
|
|
29
|
-
"aria-colcount"?: number | undefined
|
|
30
|
-
"aria-colindex"?: number | undefined
|
|
31
|
-
"aria-colspan"?: number | undefined
|
|
32
|
-
"aria-controls"?: string | undefined
|
|
33
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined
|
|
34
|
-
"aria-describedby"?: string | undefined
|
|
35
|
-
"aria-details"?: string | undefined
|
|
28
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
29
|
+
"aria-colcount"?: number | undefined;
|
|
30
|
+
"aria-colindex"?: number | undefined;
|
|
31
|
+
"aria-colspan"?: number | undefined;
|
|
32
|
+
"aria-controls"?: string | undefined;
|
|
33
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
34
|
+
"aria-describedby"?: string | undefined;
|
|
35
|
+
"aria-details"?: string | undefined;
|
|
36
36
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
37
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined
|
|
38
|
-
"aria-errormessage"?: string | undefined
|
|
37
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
38
|
+
"aria-errormessage"?: string | undefined;
|
|
39
39
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
40
|
-
"aria-flowto"?: string | undefined
|
|
40
|
+
"aria-flowto"?: string | undefined;
|
|
41
41
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
42
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined
|
|
42
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
43
43
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
44
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined
|
|
45
|
-
"aria-keyshortcuts"?: string | undefined
|
|
46
|
-
"aria-label"?: string | undefined
|
|
47
|
-
"aria-labelledby"?: string | undefined
|
|
48
|
-
"aria-level"?: number | undefined
|
|
49
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined
|
|
44
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
45
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
46
|
+
"aria-label"?: string | undefined;
|
|
47
|
+
"aria-labelledby"?: string | undefined;
|
|
48
|
+
"aria-level"?: number | undefined;
|
|
49
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
50
50
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
51
51
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
52
52
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
53
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined
|
|
54
|
-
"aria-owns"?: string | undefined
|
|
55
|
-
"aria-placeholder"?: string | undefined
|
|
56
|
-
"aria-posinset"?: number | undefined
|
|
57
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined
|
|
53
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
54
|
+
"aria-owns"?: string | undefined;
|
|
55
|
+
"aria-placeholder"?: string | undefined;
|
|
56
|
+
"aria-posinset"?: number | undefined;
|
|
57
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
58
58
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
59
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined
|
|
59
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
60
60
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
61
|
-
"aria-roledescription"?: string | undefined
|
|
62
|
-
"aria-rowcount"?: number | undefined
|
|
63
|
-
"aria-rowindex"?: number | undefined
|
|
64
|
-
"aria-rowspan"?: number | undefined
|
|
61
|
+
"aria-roledescription"?: string | undefined;
|
|
62
|
+
"aria-rowcount"?: number | undefined;
|
|
63
|
+
"aria-rowindex"?: number | undefined;
|
|
64
|
+
"aria-rowspan"?: number | undefined;
|
|
65
65
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
66
|
-
"aria-setsize"?: number | undefined
|
|
67
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined
|
|
68
|
-
"aria-valuemax"?: number | undefined
|
|
69
|
-
"aria-valuemin"?: number | undefined
|
|
70
|
-
"aria-valuenow"?: number | undefined
|
|
71
|
-
"aria-valuetext"?: string | undefined
|
|
66
|
+
"aria-setsize"?: number | undefined;
|
|
67
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
68
|
+
"aria-valuemax"?: number | undefined;
|
|
69
|
+
"aria-valuemin"?: number | undefined;
|
|
70
|
+
"aria-valuenow"?: number | undefined;
|
|
71
|
+
"aria-valuetext"?: string | undefined;
|
|
72
72
|
dangerouslySetInnerHTML?: {
|
|
73
73
|
__html: string | TrustedHTML;
|
|
74
|
-
} | undefined
|
|
74
|
+
} | undefined;
|
|
75
75
|
onCopy?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
76
76
|
onCopyCapture?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
77
77
|
onCut?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
@@ -233,46 +233,46 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
233
233
|
onTransitionEnd?: React.TransitionEventHandler<HTMLLIElement> | undefined;
|
|
234
234
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLLIElement> | undefined;
|
|
235
235
|
key?: React.Key | null | undefined;
|
|
236
|
-
defaultChecked?: boolean | undefined
|
|
236
|
+
defaultChecked?: boolean | undefined;
|
|
237
237
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
238
|
-
suppressContentEditableWarning?: boolean | undefined
|
|
239
|
-
suppressHydrationWarning?: boolean | undefined
|
|
240
|
-
accessKey?: string | undefined
|
|
241
|
-
autoFocus?: boolean | undefined
|
|
242
|
-
contentEditable?:
|
|
243
|
-
contextMenu?: string | undefined
|
|
244
|
-
dir?: string | undefined
|
|
238
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
239
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
240
|
+
accessKey?: string | undefined;
|
|
241
|
+
autoFocus?: boolean | undefined;
|
|
242
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
243
|
+
contextMenu?: string | undefined;
|
|
244
|
+
dir?: string | undefined;
|
|
245
245
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
246
|
-
hidden?: boolean | undefined
|
|
247
|
-
nonce?: string | undefined
|
|
248
|
-
placeholder?: string | undefined
|
|
246
|
+
hidden?: boolean | undefined;
|
|
247
|
+
nonce?: string | undefined;
|
|
248
|
+
placeholder?: string | undefined;
|
|
249
249
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
250
|
-
translate?: "yes" | "no" | undefined
|
|
251
|
-
radioGroup?: string | undefined
|
|
252
|
-
about?: string | undefined
|
|
253
|
-
content?: string | undefined
|
|
254
|
-
datatype?: string | undefined
|
|
250
|
+
translate?: "yes" | "no" | undefined;
|
|
251
|
+
radioGroup?: string | undefined;
|
|
252
|
+
about?: string | undefined;
|
|
253
|
+
content?: string | undefined;
|
|
254
|
+
datatype?: string | undefined;
|
|
255
255
|
inlist?: any;
|
|
256
|
-
prefix?: string | undefined
|
|
257
|
-
property?: string | undefined
|
|
258
|
-
rel?: string | undefined
|
|
259
|
-
resource?: string | undefined
|
|
260
|
-
rev?: string | undefined
|
|
261
|
-
typeof?: string | undefined
|
|
262
|
-
vocab?: string | undefined
|
|
263
|
-
autoCapitalize?: string | undefined
|
|
264
|
-
autoCorrect?: string | undefined
|
|
265
|
-
autoSave?: string | undefined
|
|
266
|
-
itemProp?: string | undefined
|
|
267
|
-
itemScope?: boolean | undefined
|
|
268
|
-
itemType?: string | undefined
|
|
269
|
-
itemID?: string | undefined
|
|
270
|
-
itemRef?: string | undefined
|
|
271
|
-
results?: number | undefined
|
|
272
|
-
security?: string | undefined
|
|
273
|
-
unselectable?: "on" | "off" | undefined
|
|
274
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined
|
|
275
|
-
is?: string | undefined
|
|
256
|
+
prefix?: string | undefined;
|
|
257
|
+
property?: string | undefined;
|
|
258
|
+
rel?: string | undefined;
|
|
259
|
+
resource?: string | undefined;
|
|
260
|
+
rev?: string | undefined;
|
|
261
|
+
typeof?: string | undefined;
|
|
262
|
+
vocab?: string | undefined;
|
|
263
|
+
autoCapitalize?: string | undefined;
|
|
264
|
+
autoCorrect?: string | undefined;
|
|
265
|
+
autoSave?: string | undefined;
|
|
266
|
+
itemProp?: string | undefined;
|
|
267
|
+
itemScope?: boolean | undefined;
|
|
268
|
+
itemType?: string | undefined;
|
|
269
|
+
itemID?: string | undefined;
|
|
270
|
+
itemRef?: string | undefined;
|
|
271
|
+
results?: number | undefined;
|
|
272
|
+
security?: string | undefined;
|
|
273
|
+
unselectable?: "on" | "off" | undefined;
|
|
274
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
275
|
+
is?: string | undefined;
|
|
276
276
|
asChild?: boolean | undefined;
|
|
277
277
|
}) => JSX.Element;
|
|
278
278
|
AccordionContent: ({ children, ...rest }: import("@radix-ui/react-collapsible").CollapsibleContentProps & React.RefAttributes<HTMLDivElement> & Omit<import("@radix-ui/react-navigation-menu").NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, never> & {
|
|
@@ -284,68 +284,68 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
284
284
|
as?: React.ElementType;
|
|
285
285
|
}) => React.JSX.Element;
|
|
286
286
|
Item: (props: {
|
|
287
|
-
children?: React.ReactNode;
|
|
288
|
-
slot?: string | undefined
|
|
287
|
+
children?: React.ReactNode | undefined;
|
|
288
|
+
slot?: string | undefined;
|
|
289
289
|
style?: React.CSSProperties | undefined;
|
|
290
|
-
title?: string | undefined
|
|
290
|
+
title?: string | undefined;
|
|
291
291
|
ref?: React.Ref<HTMLLIElement> | undefined;
|
|
292
|
-
className?: string | undefined
|
|
293
|
-
color?: string | undefined
|
|
294
|
-
id?: string | undefined
|
|
295
|
-
lang?: string | undefined
|
|
292
|
+
className?: string | undefined;
|
|
293
|
+
color?: string | undefined;
|
|
294
|
+
id?: string | undefined;
|
|
295
|
+
lang?: string | undefined;
|
|
296
296
|
role?: React.AriaRole | undefined;
|
|
297
|
-
tabIndex?: number | undefined
|
|
298
|
-
"aria-activedescendant"?: string | undefined
|
|
297
|
+
tabIndex?: number | undefined;
|
|
298
|
+
"aria-activedescendant"?: string | undefined;
|
|
299
299
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
300
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined
|
|
300
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
301
301
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
302
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined
|
|
303
|
-
"aria-colcount"?: number | undefined
|
|
304
|
-
"aria-colindex"?: number | undefined
|
|
305
|
-
"aria-colspan"?: number | undefined
|
|
306
|
-
"aria-controls"?: string | undefined
|
|
307
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined
|
|
308
|
-
"aria-describedby"?: string | undefined
|
|
309
|
-
"aria-details"?: string | undefined
|
|
302
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
303
|
+
"aria-colcount"?: number | undefined;
|
|
304
|
+
"aria-colindex"?: number | undefined;
|
|
305
|
+
"aria-colspan"?: number | undefined;
|
|
306
|
+
"aria-controls"?: string | undefined;
|
|
307
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
308
|
+
"aria-describedby"?: string | undefined;
|
|
309
|
+
"aria-details"?: string | undefined;
|
|
310
310
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
311
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined
|
|
312
|
-
"aria-errormessage"?: string | undefined
|
|
311
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
312
|
+
"aria-errormessage"?: string | undefined;
|
|
313
313
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
314
|
-
"aria-flowto"?: string | undefined
|
|
314
|
+
"aria-flowto"?: string | undefined;
|
|
315
315
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
316
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined
|
|
316
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
317
317
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
318
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined
|
|
319
|
-
"aria-keyshortcuts"?: string | undefined
|
|
320
|
-
"aria-label"?: string | undefined
|
|
321
|
-
"aria-labelledby"?: string | undefined
|
|
322
|
-
"aria-level"?: number | undefined
|
|
323
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined
|
|
318
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
319
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
320
|
+
"aria-label"?: string | undefined;
|
|
321
|
+
"aria-labelledby"?: string | undefined;
|
|
322
|
+
"aria-level"?: number | undefined;
|
|
323
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
324
324
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
325
325
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
326
326
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
327
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined
|
|
328
|
-
"aria-owns"?: string | undefined
|
|
329
|
-
"aria-placeholder"?: string | undefined
|
|
330
|
-
"aria-posinset"?: number | undefined
|
|
331
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined
|
|
327
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
328
|
+
"aria-owns"?: string | undefined;
|
|
329
|
+
"aria-placeholder"?: string | undefined;
|
|
330
|
+
"aria-posinset"?: number | undefined;
|
|
331
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
332
332
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
333
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined
|
|
333
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
334
334
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
335
|
-
"aria-roledescription"?: string | undefined
|
|
336
|
-
"aria-rowcount"?: number | undefined
|
|
337
|
-
"aria-rowindex"?: number | undefined
|
|
338
|
-
"aria-rowspan"?: number | undefined
|
|
335
|
+
"aria-roledescription"?: string | undefined;
|
|
336
|
+
"aria-rowcount"?: number | undefined;
|
|
337
|
+
"aria-rowindex"?: number | undefined;
|
|
338
|
+
"aria-rowspan"?: number | undefined;
|
|
339
339
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
340
|
-
"aria-setsize"?: number | undefined
|
|
341
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined
|
|
342
|
-
"aria-valuemax"?: number | undefined
|
|
343
|
-
"aria-valuemin"?: number | undefined
|
|
344
|
-
"aria-valuenow"?: number | undefined
|
|
345
|
-
"aria-valuetext"?: string | undefined
|
|
340
|
+
"aria-setsize"?: number | undefined;
|
|
341
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
342
|
+
"aria-valuemax"?: number | undefined;
|
|
343
|
+
"aria-valuemin"?: number | undefined;
|
|
344
|
+
"aria-valuenow"?: number | undefined;
|
|
345
|
+
"aria-valuetext"?: string | undefined;
|
|
346
346
|
dangerouslySetInnerHTML?: {
|
|
347
347
|
__html: string | TrustedHTML;
|
|
348
|
-
} | undefined
|
|
348
|
+
} | undefined;
|
|
349
349
|
onCopy?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
350
350
|
onCopyCapture?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
351
351
|
onCut?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
@@ -507,46 +507,46 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
507
507
|
onTransitionEnd?: React.TransitionEventHandler<HTMLLIElement> | undefined;
|
|
508
508
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLLIElement> | undefined;
|
|
509
509
|
key?: React.Key | null | undefined;
|
|
510
|
-
defaultChecked?: boolean | undefined
|
|
510
|
+
defaultChecked?: boolean | undefined;
|
|
511
511
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
512
|
-
suppressContentEditableWarning?: boolean | undefined
|
|
513
|
-
suppressHydrationWarning?: boolean | undefined
|
|
514
|
-
accessKey?: string | undefined
|
|
515
|
-
autoFocus?: boolean | undefined
|
|
516
|
-
contentEditable?:
|
|
517
|
-
contextMenu?: string | undefined
|
|
518
|
-
dir?: string | undefined
|
|
512
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
513
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
514
|
+
accessKey?: string | undefined;
|
|
515
|
+
autoFocus?: boolean | undefined;
|
|
516
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
517
|
+
contextMenu?: string | undefined;
|
|
518
|
+
dir?: string | undefined;
|
|
519
519
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
520
|
-
hidden?: boolean | undefined
|
|
521
|
-
nonce?: string | undefined
|
|
522
|
-
placeholder?: string | undefined
|
|
520
|
+
hidden?: boolean | undefined;
|
|
521
|
+
nonce?: string | undefined;
|
|
522
|
+
placeholder?: string | undefined;
|
|
523
523
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
524
|
-
translate?: "yes" | "no" | undefined
|
|
525
|
-
radioGroup?: string | undefined
|
|
526
|
-
about?: string | undefined
|
|
527
|
-
content?: string | undefined
|
|
528
|
-
datatype?: string | undefined
|
|
524
|
+
translate?: "yes" | "no" | undefined;
|
|
525
|
+
radioGroup?: string | undefined;
|
|
526
|
+
about?: string | undefined;
|
|
527
|
+
content?: string | undefined;
|
|
528
|
+
datatype?: string | undefined;
|
|
529
529
|
inlist?: any;
|
|
530
|
-
prefix?: string | undefined
|
|
531
|
-
property?: string | undefined
|
|
532
|
-
rel?: string | undefined
|
|
533
|
-
resource?: string | undefined
|
|
534
|
-
rev?: string | undefined
|
|
535
|
-
typeof?: string | undefined
|
|
536
|
-
vocab?: string | undefined
|
|
537
|
-
autoCapitalize?: string | undefined
|
|
538
|
-
autoCorrect?: string | undefined
|
|
539
|
-
autoSave?: string | undefined
|
|
540
|
-
itemProp?: string | undefined
|
|
541
|
-
itemScope?: boolean | undefined
|
|
542
|
-
itemType?: string | undefined
|
|
543
|
-
itemID?: string | undefined
|
|
544
|
-
itemRef?: string | undefined
|
|
545
|
-
results?: number | undefined
|
|
546
|
-
security?: string | undefined
|
|
547
|
-
unselectable?: "on" | "off" | undefined
|
|
548
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined
|
|
549
|
-
is?: string | undefined
|
|
530
|
+
prefix?: string | undefined;
|
|
531
|
+
property?: string | undefined;
|
|
532
|
+
rel?: string | undefined;
|
|
533
|
+
resource?: string | undefined;
|
|
534
|
+
rev?: string | undefined;
|
|
535
|
+
typeof?: string | undefined;
|
|
536
|
+
vocab?: string | undefined;
|
|
537
|
+
autoCapitalize?: string | undefined;
|
|
538
|
+
autoCorrect?: string | undefined;
|
|
539
|
+
autoSave?: string | undefined;
|
|
540
|
+
itemProp?: string | undefined;
|
|
541
|
+
itemScope?: boolean | undefined;
|
|
542
|
+
itemType?: string | undefined;
|
|
543
|
+
itemID?: string | undefined;
|
|
544
|
+
itemRef?: string | undefined;
|
|
545
|
+
results?: number | undefined;
|
|
546
|
+
security?: string | undefined;
|
|
547
|
+
unselectable?: "on" | "off" | undefined;
|
|
548
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
549
|
+
is?: string | undefined;
|
|
550
550
|
asChild?: boolean | undefined;
|
|
551
551
|
}) => JSX.Element;
|
|
552
552
|
ItemContent: ({ children, ...rest }: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=["[--navigation-menu-vertical-item-font-weight:400]","data-[state=open]:[--navigation-menu-vertical-item-font-weight:600]","border-none","outline-none","bg-none","decoration-[inherit]","cursor-pointer","rounded-
|
|
1
|
+
const e=["[--navigation-menu-vertical-item-font-weight:400]","data-[state=open]:[--navigation-menu-vertical-item-font-weight:600]","border-none","outline-none","bg-none","decoration-[inherit]","cursor-pointer","rounded-lg","flex","items-center","p-2","pl-(--navigation-menu-vertical-item-pl)","w-full","text-(--text)","bg-(--background)","disabled:cursor-not-allowed","[text-decoration:unset]","disabled:opacity-30","not-disabled:active:bg-(--background-active)","not-disabled:focus-visible:outline-none","not-disabled:focus-visible:relative","not-disabled:focus-visible:shadow-[var(--color-primary-800)_0px_0px_0px_4px]","not-disabled:focus-visible:shadow-[white_0px_0px_0px_2px]","not-disabled:focus-visible:z-1","not-disabled:hover:bg-(--background-hover)","data-active:bg-(--background-selected)","data-active:text-(--text-selected)","data-active:[--navigation-menu-vertical-item-font-weight:600]"];export{e as navigationMenuVerticalItemStyles};
|
|
2
2
|
//# sourceMappingURL=NavigationMenuVertical.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenuVertical.styles.js","sources":["../../../src/components/navigation-menu-vertical/NavigationMenuVertical.styles.ts"],"sourcesContent":["export const navigationMenuVerticalItemStyles = [\n '[--navigation-menu-vertical-item-font-weight:400]',\n 'data-[state=open]:[--navigation-menu-vertical-item-font-weight:600]',\n 'border-none',\n 'outline-none',\n 'bg-none',\n 'decoration-[inherit]',\n 'cursor-pointer',\n 'rounded-
|
|
1
|
+
{"version":3,"file":"NavigationMenuVertical.styles.js","sources":["../../../src/components/navigation-menu-vertical/NavigationMenuVertical.styles.ts"],"sourcesContent":["export const navigationMenuVerticalItemStyles = [\n '[--navigation-menu-vertical-item-font-weight:400]',\n 'data-[state=open]:[--navigation-menu-vertical-item-font-weight:600]',\n 'border-none',\n 'outline-none',\n 'bg-none',\n 'decoration-[inherit]',\n 'cursor-pointer',\n 'rounded-lg',\n 'flex',\n 'items-center',\n 'p-2',\n 'pl-(--navigation-menu-vertical-item-pl)',\n 'w-full',\n 'text-(--text)',\n 'bg-(--background)',\n 'disabled:cursor-not-allowed',\n '[text-decoration:unset]',\n 'disabled:opacity-30',\n 'not-disabled:active:bg-(--background-active)',\n 'not-disabled:focus-visible:outline-none',\n 'not-disabled:focus-visible:relative',\n 'not-disabled:focus-visible:shadow-[var(--color-primary-800)_0px_0px_0px_4px]',\n 'not-disabled:focus-visible:shadow-[white_0px_0px_0px_2px]',\n 'not-disabled:focus-visible:z-1',\n 'not-disabled:hover:bg-(--background-hover)',\n 'data-active:bg-(--background-selected)',\n 'data-active:text-(--text-selected)',\n 'data-active:[--navigation-menu-vertical-item-font-weight:600]'\n]\n"],"names":["navigationMenuVerticalItemStyles"],"mappings":"AAAO,MAAMA,EAAmC,CAC9C,oDACA,sEACA,cACA,eACA,UACA,uBACA,iBACA,aACA,OACA,eACA,MACA,0CACA,SACA,gBACA,oBACA,8BACA,0BACA,sBACA,+CACA,0CACA,sCACA,+EACA,4DACA,iCACA,6CACA,yCACA,qCACA,+DACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from"react";import{Text as o}from"../text/Text.js";import{styled as i}from"../../styled.js";import"../side-bar/SideBar.js";import{useSidebarState as n}from"../side-bar/SideBarContext.js";const r=i(o,{base:["font-(--navigation-menu-vertical-item-font-weight)","w-max","max-w-40","text-left","motion-safe:duration-125","motion-safe:ease-out","motion-safe:transition-[opacity,translate]"],variants:{isExpanded:{true:["opacity-100","motion-safe:translate-0"],false:["opacity-0","motion-safe:translate-x-2"]}}}),s=t=>{const{isExpanded:e}=n();return a.createElement(r,{size:"md",as:"span",...t,isExpanded:e})};export{s as NavigationMenuVerticalText};
|
|
2
2
|
//# sourceMappingURL=NavigationMenuVerticalText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenuVerticalText.js","sources":["../../../src/components/navigation-menu-vertical/NavigationMenuVerticalText.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Text } from '~/components/text'\nimport { styled } from '~/styled'\n\nimport { useSidebarState } from '../side-bar'\n\nconst StyledNavigationMenuVerticalText = styled(Text, {\n base: [\n 'font-(--navigation-menu-vertical-item-font-weight)',\n '
|
|
1
|
+
{"version":3,"file":"NavigationMenuVerticalText.js","sources":["../../../src/components/navigation-menu-vertical/NavigationMenuVerticalText.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Text } from '~/components/text'\nimport { styled } from '~/styled'\n\nimport { useSidebarState } from '../side-bar'\n\nconst StyledNavigationMenuVerticalText = styled(Text, {\n base: [\n 'font-(--navigation-menu-vertical-item-font-weight)',\n 'w-max',\n 'max-w-40',\n 'text-left',\n 'motion-safe:duration-125',\n 'motion-safe:ease-out',\n 'motion-safe:transition-[opacity,translate]'\n ],\n variants: {\n isExpanded: {\n true: ['opacity-100', 'motion-safe:translate-0'],\n false: ['opacity-0', 'motion-safe:translate-x-2']\n }\n }\n})\n\ntype TStyledNavigationMenuVerticalTextProps = React.ComponentProps<\n typeof StyledNavigationMenuVerticalText\n>\n\nexport const NavigationMenuVerticalText = (\n props: TStyledNavigationMenuVerticalTextProps\n): JSX.Element => {\n const { isExpanded } = useSidebarState()\n\n return (\n <StyledNavigationMenuVerticalText\n size=\"md\"\n as=\"span\"\n {...props}\n isExpanded={isExpanded}\n />\n )\n}\n"],"names":["StyledNavigationMenuVerticalText","styled","Text","NavigationMenuVerticalText","props","isExpanded","useSidebarState","React"],"mappings":"oMAOA,MAAMA,EAAmCC,EAAOC,EAAM,CACpD,KAAM,CACJ,qDACA,QACA,WACA,YACA,2BACA,uBACA,4CACF,EACA,SAAU,CACR,WAAY,CACV,KAAM,CAAC,cAAe,yBAAyB,EAC/C,MAAO,CAAC,YAAa,2BAA2B,CAClD,CACF,CACF,CAAC,EAMYC,EACXC,GACgB,CAChB,KAAM,CAAE,WAAAC,CAAW,EAAIC,IAEvB,OACEC,EAAA,cAACP,EAAA,CACC,KAAK,KACL,GAAG,OACF,GAAGI,EACJ,WAAYC,EACd,CAEJ"}
|