analytica-frontend-lib 1.0.66 → 1.0.68

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/Menu/Menu.tsx"],"sourcesContent":["import { create, StoreApi, useStore } from 'zustand';\nimport {\n ReactNode,\n useEffect,\n useRef,\n forwardRef,\n HTMLAttributes,\n KeyboardEvent,\n MouseEvent,\n ReactElement,\n isValidElement,\n Children,\n cloneElement,\n useState,\n} from 'react';\nimport { CaretLeft, CaretRight } from 'phosphor-react';\n\ntype MenuVariant = 'menu' | 'menu2' | 'breadcrumb';\n\ninterface MenuStore {\n value: string;\n setValue: (value: string) => void;\n onValueChange?: (value: string) => void;\n}\n\ntype MenuStoreApi = StoreApi<MenuStore>;\n\nconst createMenuStore = (\n onValueChange?: (value: string) => void\n): MenuStoreApi =>\n create<MenuStore>((set) => ({\n value: '',\n setValue: (value) => {\n set({ value });\n onValueChange?.(value);\n },\n onValueChange,\n }));\n\nexport const useMenuStore = (externalStore?: MenuStoreApi) => {\n if (!externalStore) throw new Error('MenuItem must be inside Menu');\n return externalStore;\n};\n\ninterface MenuProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactNode;\n defaultValue: string;\n value?: string;\n variant?: MenuVariant;\n onValueChange?: (value: string) => void;\n}\n\nconst VARIANT_CLASSES = {\n menu: 'bg-background shadow-soft-shadow-1 px-6',\n menu2: '',\n breadcrumb: '',\n};\n\nconst Menu = forwardRef<HTMLDivElement, MenuProps>(\n (\n {\n className,\n children,\n defaultValue,\n value: propValue,\n variant = 'menu',\n onValueChange,\n ...props\n },\n ref\n ) => {\n const storeRef = useRef<MenuStoreApi>(null);\n storeRef.current ??= createMenuStore(onValueChange);\n const store = storeRef.current;\n const { setValue } = useStore(store, (s) => s);\n\n useEffect(() => {\n setValue(propValue ?? defaultValue);\n }, [defaultValue, propValue, setValue]);\n\n const baseClasses = 'w-full py-2 flex flex-row items-center justify-center';\n const variantClasses = VARIANT_CLASSES[variant];\n\n return (\n <div\n ref={ref}\n className={`\n ${baseClasses}\n ${variantClasses}\n ${className ?? ''}\n `}\n {...props}\n >\n {injectStore(children, store)}\n </div>\n );\n }\n);\nMenu.displayName = 'Menu';\n\ninterface MenuContentProps extends HTMLAttributes<HTMLUListElement> {\n children: ReactNode;\n variant?: MenuVariant;\n}\n\nconst MenuContent = forwardRef<HTMLUListElement, MenuContentProps>(\n ({ className, children, variant = 'menu', ...props }, ref) => {\n const baseClasses = 'w-full flex flex-row items-center gap-2';\n\n const variantClasses =\n variant === 'menu2' ? 'overflow-x-auto scroll-smooth' : '';\n\n return (\n <ul\n ref={ref}\n className={`\n ${baseClasses}\n ${variantClasses}\n ${variant == 'breadcrumb' ? 'flex-wrap' : ''}\n ${className ?? ''}\n `}\n style={\n variant === 'menu2'\n ? { scrollbarWidth: 'none', msOverflowStyle: 'none' }\n : undefined\n }\n {...props}\n >\n {children}\n </ul>\n );\n }\n);\nMenuContent.displayName = 'MenuContent';\n\ninterface MenuItemProps extends HTMLAttributes<HTMLLIElement> {\n value: string;\n disabled?: boolean;\n store?: MenuStoreApi;\n variant?: MenuVariant;\n separator?: boolean;\n}\n\nconst MenuItem = forwardRef<HTMLLIElement, MenuItemProps>(\n (\n {\n className,\n children,\n value,\n disabled = false,\n store: externalStore,\n variant = 'menu',\n separator = false,\n ...props\n },\n ref\n ) => {\n const store = useMenuStore(externalStore);\n const { value: selectedValue, setValue } = useStore(store, (s) => s);\n\n const handleClick = (\n e: MouseEvent<HTMLLIElement> | KeyboardEvent<HTMLLIElement>\n ) => {\n if (!disabled) {\n setValue(value);\n }\n props.onClick?.(e as MouseEvent<HTMLLIElement>);\n };\n\n const commonProps = {\n role: 'menuitem',\n 'aria-disabled': disabled,\n ref,\n onClick: handleClick,\n onKeyDown: (e: KeyboardEvent<HTMLLIElement>) => {\n if (['Enter', ' '].includes(e.key)) handleClick(e);\n },\n tabIndex: disabled ? -1 : 0,\n onMouseDown: (e: MouseEvent<HTMLLIElement>) => {\n e.preventDefault();\n },\n ...props,\n };\n\n const variants: Record<string, ReactNode> = {\n menu: (\n <li\n data-variant=\"menu\"\n className={`\n w-full flex flex-col items-center justify-center gap-0.5 py-1 px-2 rounded-sm font-medium text-xs\n [&>svg]:size-6 cursor-pointer hover:bg-primary-600 hover:text-text\n focus:outline-none focus:border-indicator-info focus:border-2\n ${selectedValue === value ? 'bg-primary-50 text-primary-950' : 'text-text-950'}\n ${className ?? ''}\n `}\n {...commonProps}\n >\n {children}\n </li>\n ),\n menu2: (\n <li\n data-variant=\"menu2\"\n className={`\n w-full flex flex-col items-center px-2 pt-4 gap-3 border-b-4 border-transparent cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg\n focus:outline-none focus:border-indicator-info focus:border-2 \n ${selectedValue === value ? '' : 'pb-4'}\n `}\n {...commonProps}\n >\n <span\n className={`flex flex-row items-center gap-2 px-4 text-text-950 text-xs font-bold ${className ?? ''}`}\n >\n {children}\n </span>\n {selectedValue === value && (\n <div className=\"h-1 w-full bg-primary-950 rounded-lg\" />\n )}\n </li>\n ),\n breadcrumb: (\n <li\n data-variant=\"breadcrumb\"\n className={`\n flex flex-row gap-2 items-center w-fit p-2 rounded-lg hover:text-primary-600 cursor-pointer font-bold text-xs\n focus:outline-none focus:border-indicator-info focus:border-2\n ${selectedValue === value ? 'text-text-950' : 'text-text-600'}\n ${className ?? ''}\n `}\n {...commonProps}\n >\n <span\n className={`\n border-b border-text-600 hover:border-primary-600 text-inherit text-xs\n ${selectedValue === value ? 'border-b-0 font-bold' : 'border-b-text-600'}\n `}\n >\n {children}\n </span>\n\n {separator && (\n <CaretRight\n size={16}\n className=\"text-text-600\"\n data-testid=\"separator\"\n />\n )}\n </li>\n ),\n };\n\n return variants[variant] ?? variants['menu'];\n }\n);\nMenuItem.displayName = 'MenuItem';\n\nconst MenuItemIcon = ({\n className,\n icon,\n ...props\n}: HTMLAttributes<HTMLSpanElement> & { icon: ReactNode }) => (\n <span\n className={`\n bg-background-500 w-[21px] h-[21px] flex items-center justify-center\n [&>svg]:w-[17px] [&>svg]:h-[17px] rounded-sm ${className ?? ''}\n `}\n {...props}\n >\n {icon}\n </span>\n);\n\nexport const internalScroll = (\n container: HTMLUListElement | null,\n direction: 'left' | 'right'\n) => {\n if (!container) return;\n container.scrollBy({\n left: direction === 'left' ? -150 : 150,\n behavior: 'smooth',\n });\n};\n\nexport const internalCheckScroll = (\n container: HTMLUListElement | null,\n setShowLeftArrow: (v: boolean) => void,\n setShowRightArrow: (v: boolean) => void\n) => {\n if (!container) return;\n const { scrollLeft, scrollWidth, clientWidth } = container;\n setShowLeftArrow(scrollLeft > 0);\n setShowRightArrow(scrollLeft + clientWidth < scrollWidth);\n};\n\ninterface MenuOverflowProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactNode;\n defaultValue: string;\n value?: string;\n onValueChange?: (value: string) => void;\n}\n\nconst MenuOverflow = ({\n children,\n className,\n defaultValue,\n value,\n onValueChange,\n ...props\n}: MenuOverflowProps) => {\n const containerRef = useRef<HTMLUListElement>(null);\n const [showLeftArrow, setShowLeftArrow] = useState(false);\n const [showRightArrow, setShowRightArrow] = useState(false);\n\n useEffect(() => {\n const checkScroll = () =>\n internalCheckScroll(\n containerRef.current,\n setShowLeftArrow,\n setShowRightArrow\n );\n checkScroll();\n const container = containerRef.current;\n container?.addEventListener('scroll', checkScroll);\n window.addEventListener('resize', checkScroll);\n return () => {\n container?.removeEventListener('scroll', checkScroll);\n window.removeEventListener('resize', checkScroll);\n };\n }, []);\n\n return (\n <div\n data-testid=\"menu-overflow-wrapper\"\n className={`relative w-full overflow-hidden ${className ?? ''}`}\n >\n {showLeftArrow && (\n <button\n onClick={() => internalScroll(containerRef.current, 'left')}\n className=\"absolute left-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer\"\n data-testid=\"scroll-left-button\"\n >\n <CaretLeft size={16} />\n <span className=\"sr-only\">Scroll left</span>\n </button>\n )}\n\n <Menu\n defaultValue={defaultValue}\n onValueChange={onValueChange}\n value={value}\n variant=\"menu2\"\n {...props}\n >\n <MenuContent ref={containerRef} variant=\"menu2\">\n {children}\n </MenuContent>\n </Menu>\n\n {showRightArrow && (\n <button\n onClick={() => internalScroll(containerRef.current, 'right')}\n className=\"absolute right-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer\"\n data-testid=\"scroll-right-button\"\n >\n <CaretRight size={16} />\n <span className=\"sr-only\">Scroll right</span>\n </button>\n )}\n </div>\n );\n};\n\nconst injectStore = (children: ReactNode, store: MenuStoreApi): ReactNode =>\n Children.map(children, (child) => {\n if (!isValidElement(child)) return child;\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n const typedChild = child as ReactElement<any>;\n const shouldInject = typedChild.type === MenuItem;\n return cloneElement(typedChild, {\n ...(shouldInject ? { store } : {}),\n ...(typedChild.props.children\n ? { children: injectStore(typedChild.props.children, store) }\n : {}),\n });\n });\n\nexport default Menu;\nexport { Menu, MenuContent, MenuItem, MenuOverflow, MenuItemIcon };\n"],"mappings":";AAAA,SAAS,QAAkB,gBAAgB;AAC3C;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EAKA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,kBAAkB;AAqEhC,cAqHE,YArHF;AAzDN,IAAM,kBAAkB,CACtB,kBAEA,OAAkB,CAAC,SAAS;AAAA,EAC1B,OAAO;AAAA,EACP,UAAU,CAAC,UAAU;AACnB,QAAI,EAAE,MAAM,CAAC;AACb,oBAAgB,KAAK;AAAA,EACvB;AAAA,EACA;AACF,EAAE;AAEG,IAAM,eAAe,CAAC,kBAAiC;AAC5D,MAAI,CAAC,cAAe,OAAM,IAAI,MAAM,8BAA8B;AAClE,SAAO;AACT;AAUA,IAAM,kBAAkB;AAAA,EACtB,MAAM;AA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;AAEnC,QAAM,aAAa;AACnB,QAAM,eAAe,WAAW,SAAS;AACzC,SAAO,aAAa,YAAY;AAAA,IAC9B,GAAI,eAAe,EAAE,MAAM,IAAI,CAAC;AAAA,IAChC,GAAI,WAAW,MAAM,WACjB,EAAE,UAAU,YAAY,WAAW,MAAM,UAAU,KAAK,EAAE,IAC1D,CAAC;AAAA,EACP,CAAC;AACH,CAAC;AAEH,IAAO,eAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/Menu/Menu.tsx"],"sourcesContent":["import { create, StoreApi, useStore } from 'zustand';\nimport {\n ReactNode,\n useEffect,\n useRef,\n forwardRef,\n HTMLAttributes,\n KeyboardEvent,\n MouseEvent,\n ReactElement,\n isValidElement,\n Children,\n cloneElement,\n useState,\n} from 'react';\nimport { CaretLeft, CaretRight } from 'phosphor-react';\n\ntype MenuVariant = 'menu' | 'menu2' | 'breadcrumb';\n\ninterface MenuStore {\n value: string;\n setValue: (value: string) => void;\n onValueChange?: (value: string) => void;\n}\n\ntype MenuStoreApi = StoreApi<MenuStore>;\n\nconst createMenuStore = (\n onValueChange?: (value: string) => void\n): MenuStoreApi =>\n create<MenuStore>((set) => ({\n value: '',\n setValue: (value) => {\n set({ value });\n onValueChange?.(value);\n },\n onValueChange,\n }));\n\nexport const useMenuStore = (externalStore?: MenuStoreApi) => {\n if (!externalStore) throw new Error('MenuItem must be inside Menu');\n return externalStore;\n};\n\ninterface MenuProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactNode;\n defaultValue: string;\n value?: string;\n variant?: MenuVariant;\n onValueChange?: (value: string) => void;\n}\n\nconst VARIANT_CLASSES = {\n menu: 'bg-background shadow-soft-shadow-1 px-6',\n menu2: '',\n breadcrumb: '',\n};\n\nconst Menu = forwardRef<HTMLDivElement, MenuProps>(\n (\n {\n className,\n children,\n defaultValue,\n value: propValue,\n variant = 'menu',\n onValueChange,\n ...props\n },\n ref\n ) => {\n const storeRef = useRef<MenuStoreApi>(null);\n storeRef.current ??= createMenuStore(onValueChange);\n const store = storeRef.current;\n const { setValue } = useStore(store, (s) => s);\n\n useEffect(() => {\n setValue(propValue ?? defaultValue);\n }, [defaultValue, propValue, setValue]);\n\n const baseClasses = 'w-full py-2 flex flex-row items-center justify-center';\n const variantClasses = VARIANT_CLASSES[variant];\n\n return (\n <div\n ref={ref}\n className={`\n ${baseClasses}\n ${variantClasses}\n ${className ?? ''}\n `}\n {...props}\n >\n {injectStore(children, store)}\n </div>\n );\n }\n);\nMenu.displayName = 'Menu';\n\ninterface MenuContentProps extends HTMLAttributes<HTMLUListElement> {\n children: ReactNode;\n variant?: MenuVariant;\n}\n\nconst MenuContent = forwardRef<HTMLUListElement, MenuContentProps>(\n ({ className, children, variant = 'menu', ...props }, ref) => {\n const baseClasses = 'w-full flex flex-row items-center gap-2';\n\n const variantClasses =\n variant === 'menu2' ? 'overflow-x-auto scroll-smooth' : '';\n\n return (\n <ul\n ref={ref}\n className={`\n ${baseClasses}\n ${variantClasses}\n ${variant == 'breadcrumb' ? 'flex-wrap' : ''}\n ${className ?? ''}\n `}\n style={\n variant === 'menu2'\n ? { scrollbarWidth: 'none', msOverflowStyle: 'none' }\n : undefined\n }\n {...props}\n >\n {children}\n </ul>\n );\n }\n);\nMenuContent.displayName = 'MenuContent';\n\ninterface MenuItemProps extends HTMLAttributes<HTMLLIElement> {\n value: string;\n disabled?: boolean;\n store?: MenuStoreApi;\n variant?: MenuVariant;\n separator?: boolean;\n}\n\nconst MenuItem = forwardRef<HTMLLIElement, MenuItemProps>(\n (\n {\n className,\n children,\n value,\n disabled = false,\n store: externalStore,\n variant = 'menu',\n separator = false,\n ...props\n },\n ref\n ) => {\n const store = useMenuStore(externalStore);\n const { value: selectedValue, setValue } = useStore(store, (s) => s);\n\n const handleClick = (\n e: MouseEvent<HTMLLIElement> | KeyboardEvent<HTMLLIElement>\n ) => {\n if (!disabled) {\n setValue(value);\n }\n props.onClick?.(e as MouseEvent<HTMLLIElement>);\n };\n\n const commonProps = {\n role: 'menuitem',\n 'aria-disabled': disabled,\n ref,\n onClick: handleClick,\n onKeyDown: (e: KeyboardEvent<HTMLLIElement>) => {\n if (['Enter', ' '].includes(e.key)) handleClick(e);\n },\n tabIndex: disabled ? -1 : 0,\n onMouseDown: (e: MouseEvent<HTMLLIElement>) => {\n e.preventDefault();\n },\n ...props,\n };\n\n const variants: Record<string, ReactNode> = {\n menu: (\n <li\n data-variant=\"menu\"\n className={`\n w-full flex flex-col items-center justify-center gap-0.5 py-1 px-2 rounded-sm font-medium text-xs\n [&>svg]:size-6 cursor-pointer hover:bg-primary-600 hover:text-text\n focus:outline-none focus:border-indicator-info focus:border-2\n ${selectedValue === value ? 'bg-primary-50 text-primary-950' : 'text-text-950'}\n ${className ?? ''}\n `}\n {...commonProps}\n >\n {children}\n </li>\n ),\n menu2: (\n <li\n data-variant=\"menu2\"\n className={`\n w-full flex flex-col items-center px-2 pt-4 gap-3 cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg\n focus:outline-none focus:border-indicator-info focus:border-2 \n ${selectedValue === value ? '' : 'pb-4'}\n `}\n {...commonProps}\n >\n <span\n className={`flex flex-row items-center gap-2 px-4 text-text-950 text-xs font-bold ${className ?? ''}`}\n >\n {children}\n </span>\n {selectedValue === value && (\n <div className=\"h-1 w-full bg-primary-950 rounded-lg\" />\n )}\n </li>\n ),\n breadcrumb: (\n <li\n data-variant=\"breadcrumb\"\n className={`\n flex flex-row gap-2 items-center w-fit p-2 rounded-lg hover:text-primary-600 cursor-pointer font-bold text-xs\n focus:outline-none focus:border-indicator-info focus:border-2\n ${selectedValue === value ? 'text-text-950' : 'text-text-600'}\n ${className ?? ''}\n `}\n {...commonProps}\n >\n <span\n className={`\n border-b border-text-600 hover:border-primary-600 text-inherit text-xs\n ${selectedValue === value ? 'border-b-0 font-bold' : 'border-b-text-600'}\n `}\n >\n {children}\n </span>\n\n {separator && (\n <CaretRight\n size={16}\n className=\"text-text-600\"\n data-testid=\"separator\"\n />\n )}\n </li>\n ),\n };\n\n return variants[variant] ?? variants['menu'];\n }\n);\nMenuItem.displayName = 'MenuItem';\n\nconst MenuItemIcon = ({\n className,\n icon,\n ...props\n}: HTMLAttributes<HTMLSpanElement> & { icon: ReactNode }) => (\n <span\n className={`\n bg-background-500 w-[21px] h-[21px] flex items-center justify-center\n [&>svg]:w-[17px] [&>svg]:h-[17px] rounded-sm ${className ?? ''}\n `}\n {...props}\n >\n {icon}\n </span>\n);\n\nexport const internalScroll = (\n container: HTMLUListElement | null,\n direction: 'left' | 'right'\n) => {\n if (!container) return;\n container.scrollBy({\n left: direction === 'left' ? -150 : 150,\n behavior: 'smooth',\n });\n};\n\nexport const internalCheckScroll = (\n container: HTMLUListElement | null,\n setShowLeftArrow: (v: boolean) => void,\n setShowRightArrow: (v: boolean) => void\n) => {\n if (!container) return;\n const { scrollLeft, scrollWidth, clientWidth } = container;\n setShowLeftArrow(scrollLeft > 0);\n setShowRightArrow(scrollLeft + clientWidth < scrollWidth);\n};\n\ninterface MenuOverflowProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactNode;\n defaultValue: string;\n value?: string;\n onValueChange?: (value: string) => void;\n}\n\nconst MenuOverflow = ({\n children,\n className,\n defaultValue,\n value,\n onValueChange,\n ...props\n}: MenuOverflowProps) => {\n const containerRef = useRef<HTMLUListElement>(null);\n const [showLeftArrow, setShowLeftArrow] = useState(false);\n const [showRightArrow, setShowRightArrow] = useState(false);\n\n useEffect(() => {\n const checkScroll = () =>\n internalCheckScroll(\n containerRef.current,\n setShowLeftArrow,\n setShowRightArrow\n );\n checkScroll();\n const container = containerRef.current;\n container?.addEventListener('scroll', checkScroll);\n window.addEventListener('resize', checkScroll);\n return () => {\n container?.removeEventListener('scroll', checkScroll);\n window.removeEventListener('resize', checkScroll);\n };\n }, []);\n\n return (\n <div\n data-testid=\"menu-overflow-wrapper\"\n className={`relative w-full overflow-hidden ${className ?? ''}`}\n >\n {showLeftArrow && (\n <button\n onClick={() => internalScroll(containerRef.current, 'left')}\n className=\"absolute left-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer\"\n data-testid=\"scroll-left-button\"\n >\n <CaretLeft size={16} />\n <span className=\"sr-only\">Scroll left</span>\n </button>\n )}\n\n <Menu\n defaultValue={defaultValue}\n onValueChange={onValueChange}\n value={value}\n variant=\"menu2\"\n {...props}\n >\n <MenuContent ref={containerRef} variant=\"menu2\">\n {children}\n </MenuContent>\n </Menu>\n\n {showRightArrow && (\n <button\n onClick={() => internalScroll(containerRef.current, 'right')}\n className=\"absolute right-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer\"\n data-testid=\"scroll-right-button\"\n >\n <CaretRight size={16} />\n <span className=\"sr-only\">Scroll right</span>\n </button>\n )}\n </div>\n );\n};\n\nconst injectStore = (children: ReactNode, store: MenuStoreApi): ReactNode =>\n Children.map(children, (child) => {\n if (!isValidElement(child)) return child;\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n const typedChild = child as ReactElement<any>;\n const shouldInject = typedChild.type === MenuItem;\n return cloneElement(typedChild, {\n ...(shouldInject ? { store } : {}),\n ...(typedChild.props.children\n ? { children: injectStore(typedChild.props.children, store) }\n : {}),\n });\n });\n\nexport default Menu;\nexport { Menu, MenuContent, MenuItem, MenuOverflow, MenuItemIcon };\n"],"mappings":";AAAA,SAAS,QAAkB,gBAAgB;AAC3C;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EAKA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,kBAAkB;AAqEhC,cAqHE,YArHF;AAzDN,IAAM,kBAAkB,CACtB,kBAEA,OAAkB,CAAC,SAAS;AAAA,EAC1B,OAAO;AAAA,EACP,UAAU,CAAC,UAAU;AACnB,QAAI,EAAE,MAAM,CAAC;AACb,oBAAgB,KAAK;AAAA,EACvB;AAAA,EACA;AACF,EAAE;AAEG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A;AAAA;AAAA,EAEJ;AAEJ;AAEA,IAAM,cAAc,CAAC,UAAqB,UACxC,SAAS,IAAI,UAAU,CAAC,UAAU;AAChC,MAAI,CAAC,eAAe,KAAK,EAAG,QAAO;AAEnC,QAAM,aAAa;AACnB,QAAM,eAAe,WAAW,SAAS;AACzC,SAAO,aAAa,YAAY;AAAA,IAC9B,GAAI,eAAe,EAAE,MAAM,IAAI,CAAC;AAAA,IAChC,GAAI,WAAW,MAAM,WACjB,EAAE,UAAU,YAAY,WAAW,MAAM,UAAU,KAAK,EAAE,IAC1D,CAAC;AAAA,EACP,CAAC;AACH,CAAC;AAEH,IAAO,eAAQ;","names":[]}
package/dist/index.css CHANGED
@@ -1333,10 +1333,6 @@
1333
1333
  border-bottom-style: var(--tw-border-style);
1334
1334
  border-bottom-width: 2px;
1335
1335
  }
1336
- .border-b-4 {
1337
- border-bottom-style: var(--tw-border-style);
1338
- border-bottom-width: 4px;
1339
- }
1340
1336
  .border-none {
1341
1337
  --tw-border-style: none;
1342
1338
  border-style: none;
@@ -3122,6 +3118,11 @@
3122
3118
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
3123
3119
  transition-duration: var(--tw-duration, var(--default-transition-duration));
3124
3120
  }
3121
+ .transition-shadow {
3122
+ transition-property: box-shadow;
3123
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
3124
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
3125
+ }
3125
3126
  .transition-transform {
3126
3127
  transition-property:
3127
3128
  transform,
@@ -5526,6 +5527,19 @@
5526
5527
  }
5527
5528
  }
5528
5529
  }
5530
+ .hover\:shadow-soft-shadow-2 {
5531
+ &:hover {
5532
+ @media (hover: hover) {
5533
+ --tw-shadow: 0px 0px 20px var(--tw-shadow-color, rgba(38, 38, 38, 0.1));
5534
+ box-shadow:
5535
+ var(--tw-inset-shadow),
5536
+ var(--tw-inset-ring-shadow),
5537
+ var(--tw-ring-offset-shadow),
5538
+ var(--tw-ring-shadow),
5539
+ var(--tw-shadow);
5540
+ }
5541
+ }
5542
+ }
5529
5543
  .focus\:rounded-sm {
5530
5544
  &:focus {
5531
5545
  border-radius: var(--radius-sm);
@@ -7787,156 +7801,156 @@
7787
7801
  }
7788
7802
  @layer base {
7789
7803
  [data-theme=dark] {
7790
- --color-primary: #a6a6a6;
7791
- --color-primary-50: #afafaf;
7792
- --color-primary-100: #bababa;
7793
- --color-primary-200: #c5c5c5;
7794
- --color-primary-300: #d4d4d4;
7795
- --color-primary-400: #dddddd;
7796
- --color-primary-500: #e6e6e6;
7797
- --color-primary-600: #f0f0f0;
7798
- --color-primary-700: #fafafa;
7799
- --color-primary-800: #fdfdfd;
7800
- --color-primary-900: #fef9f9;
7801
- --color-primary-950: #fdfcfc;
7804
+ --color-primary: #A6A6A6;
7805
+ --color-primary-50: #AFAFAF;
7806
+ --color-primary-100: #BABABA;
7807
+ --color-primary-200: #C5C5C5;
7808
+ --color-primary-300: #D4D4D4;
7809
+ --color-primary-400: #DDDDDD;
7810
+ --color-primary-500: #E6E6E6;
7811
+ --color-primary-600: #F0F0F0;
7812
+ --color-primary-700: #FAFAFA;
7813
+ --color-primary-800: #FDFDFD;
7814
+ --color-primary-900: #FEF9F9;
7815
+ --color-primary-950: #FDFCFC;
7802
7816
  --color-secondary: #141414;
7803
7817
  --color-secondary-50: #171717;
7804
- --color-secondary-100: #1f1f1f;
7818
+ --color-secondary-100: #1F1F1F;
7805
7819
  --color-secondary-200: #272727;
7806
- --color-secondary-300: #2c2c2c;
7820
+ --color-secondary-300: #2C2C2C;
7807
7821
  --color-secondary-400: #383939;
7808
- --color-secondary-500: #3f4040;
7822
+ --color-secondary-500: #3F4040;
7809
7823
  --color-secondary-600: #565656;
7810
7824
  --color-secondary-700: #656565;
7811
7825
  --color-secondary-800: #878787;
7812
7826
  --color-secondary-900: #969696;
7813
- --color-secondary-950: #a4a4a4;
7827
+ --color-secondary-950: #A4A4A4;
7814
7828
  --color-tertiary: #543112;
7815
- --color-tertiary-50: #6c3d13;
7829
+ --color-tertiary-50: #6C3D13;
7816
7830
  --color-tertiary-100: #824917;
7817
- --color-tertiary-200: #b4621a;
7818
- --color-tertiary-300: #d7751f;
7819
- --color-tertiary-400: #e78128;
7820
- --color-tertiary-500: #fb9d4b;
7821
- --color-tertiary-600: #fdb474;
7822
- --color-tertiary-700: #fed1aa;
7823
- --color-tertiary-800: #ffe9d5;
7824
- --color-tertiary-900: #fff2e5;
7825
- --color-tertiary-950: #fffaf5;
7831
+ --color-tertiary-200: #B4621A;
7832
+ --color-tertiary-300: #D7751F;
7833
+ --color-tertiary-400: #E78128;
7834
+ --color-tertiary-500: #FB9D4B;
7835
+ --color-tertiary-600: #FDB474;
7836
+ --color-tertiary-700: #FED1AA;
7837
+ --color-tertiary-800: #FFE9D5;
7838
+ --color-tertiary-900: #FFF2E5;
7839
+ --color-tertiary-950: #FFFAF5;
7826
7840
  --color-text: #171717;
7827
7841
  --color-text-50: #262627;
7828
7842
  --color-text-100: #404040;
7829
7843
  --color-text-200: #525252;
7830
7844
  --color-text-300: #737373;
7831
- --color-text-400: #8c8c8c;
7832
- --color-text-500: #a3a3a3;
7833
- --color-text-600: #d4d4d4;
7834
- --color-text-700: #dbdbdc;
7835
- --color-text-800: #e5e5e5;
7836
- --color-text-900: #f5f5f5;
7837
- --color-text-950: #fefeff;
7845
+ --color-text-400: #8C8C8C;
7846
+ --color-text-500: #A3A3A3;
7847
+ --color-text-600: #D4D4D4;
7848
+ --color-text-700: #DBDBDC;
7849
+ --color-text-800: #E5E5E5;
7850
+ --color-text-900: #F5F5F5;
7851
+ --color-text-950: #FEFEFF;
7838
7852
  --color-background: #121212;
7839
7853
  --color-background-50: #272625;
7840
7854
  --color-background-100: #414040;
7841
7855
  --color-background-200: #535252;
7842
7856
  --color-background-300: #747474;
7843
- --color-background-400: #8e8e8e;
7844
- --color-background-500: #a2a3a3;
7845
- --color-background-600: #d5d4d4;
7846
- --color-background-700: #e5e4e4;
7847
- --color-background-800: #f2f1f1;
7848
- --color-background-900: #f6f6f6;
7849
- --color-background-950: #ffffff;
7857
+ --color-background-400: #8E8E8E;
7858
+ --color-background-500: #A2A3A3;
7859
+ --color-background-600: #D5D4D4;
7860
+ --color-background-700: #E5E4E4;
7861
+ --color-background-800: #F2F1F1;
7862
+ --color-background-900: #F6F6F6;
7863
+ --color-background-950: #FFFFFF;
7850
7864
  --color-background-muted: #333333;
7851
- --color-border: #1a1717;
7865
+ --color-border: #1A1717;
7852
7866
  --color-border-50: #272624;
7853
7867
  --color-border-100: #414141;
7854
7868
  --color-border-200: #535252;
7855
7869
  --color-border-300: #737474;
7856
- --color-border-400: #8c8d8d;
7857
- --color-border-500: #a5a3a3;
7858
- --color-border-600: #d3d3d3;
7859
- --color-border-700: #dddcdb;
7860
- --color-border-800: #e6e6e6;
7861
- --color-border-900: #f3f3f3;
7862
- --color-border-950: #fdfefe;
7863
- --color-success: #1b3224;
7864
- --color-success-50: #14532d;
7870
+ --color-border-400: #8C8D8D;
7871
+ --color-border-500: #A5A3A3;
7872
+ --color-border-600: #D3D3D3;
7873
+ --color-border-700: #DDDCDB;
7874
+ --color-border-800: #E6E6E6;
7875
+ --color-border-900: #F3F3F3;
7876
+ --color-border-950: #FDFEFE;
7877
+ --color-success: #1B3224;
7878
+ --color-success-50: #14532D;
7865
7879
  --color-success-100: #166534;
7866
- --color-success-200: #206f3e;
7867
- --color-success-300: #2a7948;
7880
+ --color-success-200: #206F3E;
7881
+ --color-success-300: #2A7948;
7868
7882
  --color-success-400: #348352;
7869
7883
  --color-success-500: #489766;
7870
- --color-success-600: #66b584;
7871
- --color-success-700: #84d3a2;
7872
- --color-success-800: #a2f1c0;
7873
- --color-success-900: #caffe8;
7874
- --color-success-950: #e4fff4;
7875
- --color-success-background: #1c2b21;
7884
+ --color-success-600: #66B584;
7885
+ --color-success-700: #84D3A2;
7886
+ --color-success-800: #A2F1C0;
7887
+ --color-success-900: #CAFFE8;
7888
+ --color-success-950: #E4FFF4;
7889
+ --color-success-background: #1C2B21;
7876
7890
  --color-error: #531313;
7877
- --color-error-50: #7f1d1d;
7878
- --color-error-100: #991b1b;
7879
- --color-error-200: #b91c1c;
7880
- --color-error-300: #dc2626;
7881
- --color-error-400: #e63535;
7882
- --color-error-500: #ef4444;
7883
- --color-error-600: #f96160;
7884
- --color-error-700: #e55b5a;
7885
- --color-error-800: #fecaca;
7886
- --color-error-900: #fee2e2;
7887
- --color-error-950: #fee9e9;
7888
- --color-error-background: #422b2b;
7889
- --color-warning: #542d12;
7890
- --color-warning-50: #6c3813;
7891
+ --color-error-50: #7F1D1D;
7892
+ --color-error-100: #991B1B;
7893
+ --color-error-200: #B91C1C;
7894
+ --color-error-300: #DC2626;
7895
+ --color-error-400: #E63535;
7896
+ --color-error-500: #EF4444;
7897
+ --color-error-600: #F96160;
7898
+ --color-error-700: #E55B5A;
7899
+ --color-error-800: #FECACA;
7900
+ --color-error-900: #FEE2E2;
7901
+ --color-error-950: #FEE9E9;
7902
+ --color-error-background: #422B2B;
7903
+ --color-warning: #542D12;
7904
+ --color-warning-50: #6C3813;
7891
7905
  --color-warning-100: #824417;
7892
- --color-warning-200: #b45a1a;
7893
- --color-warning-300: #d76c1f;
7894
- --color-warning-400: #e77828;
7895
- --color-warning-500: #fb954b;
7896
- --color-warning-600: #fdad74;
7897
- --color-warning-700: #fecdaa;
7898
- --color-warning-800: #ffe7d5;
7899
- --color-warning-900: #fff4ed;
7900
- --color-warning-950: #fff9f5;
7901
- --color-warning-background: #412f23;
7906
+ --color-warning-200: #B45A1A;
7907
+ --color-warning-300: #D76C1F;
7908
+ --color-warning-400: #E77828;
7909
+ --color-warning-500: #FB954B;
7910
+ --color-warning-600: #FDAD74;
7911
+ --color-warning-700: #FECDAA;
7912
+ --color-warning-800: #FFE7D5;
7913
+ --color-warning-900: #FFF4ED;
7914
+ --color-warning-950: #FFF9F5;
7915
+ --color-warning-background: #412F23;
7902
7916
  --color-info: #032638;
7903
- --color-info-50: #05405d;
7904
- --color-info-100: #075a83;
7905
- --color-info-200: #0973a8;
7906
- --color-info-300: #0b8dcd;
7907
- --color-info-400: #0da6f2;
7908
- --color-info-500: #32b4f4;
7909
- --color-info-600: #57c2f6;
7910
- --color-info-700: #7ccff8;
7911
- --color-info-800: #a2ddfa;
7912
- --color-info-900: #c7ebfc;
7913
- --color-info-950: #ecf8fe;
7914
- --color-info-background: #1a282e;
7915
- --color-indicator-primary: #f7f7f7;
7916
- --color-indicator-info: #a1c7f5;
7917
- --color-indicator-error: #e84645;
7918
- --color-exam-1: #e3f1fb;
7919
- --color-exam-2: #fde5fa;
7920
- --color-exam-3: #fff4d1;
7921
- --color-exam-4: #ddf5e5;
7922
- --color-subject-1: #b7dfff;
7923
- --color-subject-2: #fbd1a5;
7924
- --color-subject-3: #b2e7e8;
7925
- --color-subject-4: #a3d9b1;
7926
- --color-subject-5: #d4f1a8;
7927
- --color-subject-6: #cee5f1;
7928
- --color-subject-7: #b7cce9;
7929
- --color-subject-8: #f3b3c2;
7930
- --color-subject-9: #e9d4fa;
7931
- --color-subject-10: #fbd1e0;
7932
- --color-subject-11: #feec9c;
7933
- --color-subject-12: #e7bff1;
7934
- --color-subject-13: #f4d2c8;
7935
- --color-subject-14: #e7ec85;
7936
- --color-subject-15: #a2d7e2;
7937
- --color-subject-16: #badfc8;
7938
- --color-typography-1: #b00c9e;
7939
- --color-typography-2: #745a07;
7917
+ --color-info-50: #05405D;
7918
+ --color-info-100: #075A83;
7919
+ --color-info-200: #0973A8;
7920
+ --color-info-300: #0B8DCD;
7921
+ --color-info-400: #0DA6F2;
7922
+ --color-info-500: #32B4F4;
7923
+ --color-info-600: #57C2F6;
7924
+ --color-info-700: #7CCFF8;
7925
+ --color-info-800: #A2DDFA;
7926
+ --color-info-900: #C7EBFC;
7927
+ --color-info-950: #ECF8FE;
7928
+ --color-info-background: #1A282E;
7929
+ --color-indicator-primary: #F7F7F7;
7930
+ --color-indicator-info: #A1C7F5;
7931
+ --color-indicator-error: #E84645;
7932
+ --color-exam-1: #125381;
7933
+ --color-exam-2: #801973;
7934
+ --color-exam-3: #B88C00;
7935
+ --color-exam-4: #298A49;
7936
+ --color-subject-1: #0066B8;
7937
+ --color-subject-2: #B46108;
7938
+ --color-subject-3: #2A8C8D;
7939
+ --color-subject-4: #286137;
7940
+ --color-subject-5: #5E8D17;
7941
+ --color-subject-6: #3181AB;
7942
+ --color-subject-7: #5D81B5;
7943
+ --color-subject-8: #A31A3A;
7944
+ --color-subject-9: #6F15B7;
7945
+ --color-subject-10: #C0114F;
7946
+ --color-subject-11: #BB9902;
7947
+ --color-subject-12: #8A24A3;
7948
+ --color-subject-13: #AE4323;
7949
+ --color-subject-14: #9DA319;
7950
+ --color-subject-15: #688C93;
7951
+ --color-subject-16: #4EA76F;
7952
+ --color-typography-1: #FCCFF6;
7953
+ --color-typography-2: #F9E5A4;
7940
7954
  --shadow-hard-shadow-1: -2px 2px 8px rgba(255, 255, 255, 0.1);
7941
7955
  --shadow-hard-shadow-2: 0px 3px 10px rgba(255, 255, 255, 0.1);
7942
7956
  --shadow-hard-shadow-3: 2px 2px 8px rgba(255, 255, 255, 0.1);