softable-pixels-web 1.2.11 → 1.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/ColorPicker-Dc83Om7x.js.map +1 -1
  2. package/dist/ContextMenu-CRd1Fgl0.js.map +1 -1
  3. package/dist/{DatePicker-QLL-43NJ.js → DatePicker-Bl7pIrHR.js} +128 -25
  4. package/dist/DatePicker-Bl7pIrHR.js.map +1 -0
  5. package/dist/{IconButton-qBhQj30V.js → IconButton-BGiieVPY.js} +3 -3
  6. package/dist/IconButton-BGiieVPY.js.map +1 -0
  7. package/dist/{Input-D9FPPcEO.js → Input-7PrKudvj.js} +2 -2
  8. package/dist/{Input-D9FPPcEO.js.map → Input-7PrKudvj.js.map} +1 -1
  9. package/dist/{MaskModule-B9d_CLgH.js → MaskModule-CQXVHDuV.js} +168 -3
  10. package/dist/MaskModule-CQXVHDuV.js.map +1 -0
  11. package/dist/Popover-DwxxEmVF.js.map +1 -1
  12. package/dist/Select-D5EznEQW.js.map +1 -1
  13. package/dist/{TabSwitch-BrFTSD3N.js → TabSwitch-DIHCG0vJ.js} +5 -3
  14. package/dist/TabSwitch-DIHCG0vJ.js.map +1 -0
  15. package/dist/base-popover.d.ts +3 -3
  16. package/dist/breadcrumb.d.ts +1 -1
  17. package/dist/button.d.ts +2 -2
  18. package/dist/checkbox.d.ts +2 -2
  19. package/dist/color-picker.d.ts +1 -1
  20. package/dist/context-menu.d.ts +1 -1
  21. package/dist/date-picker.d.ts +1 -1
  22. package/dist/date-picker.js +2 -1
  23. package/dist/icon-button.d.ts +1 -1
  24. package/dist/icon-button.js +1 -1
  25. package/dist/{index-DWVxezNc.d.ts → index-2hmoLtaJ.d.ts} +3 -2
  26. package/dist/{index-duKRdLdx.d.ts → index-BnNahlXB.d.ts} +4 -2
  27. package/dist/{index-Ba8g7YFv.d.ts → index-Bxm90oSp.d.ts} +3 -2
  28. package/dist/{index-4OeaL4BA.d.ts → index-CLVlLUW1.d.ts} +2 -2
  29. package/dist/{index-CKz33qjm.d.ts → index-Cg9O1rrv.d.ts} +4 -4
  30. package/dist/{index-yetEYul3.d.ts → index-ClRmImX5.d.ts} +2 -2
  31. package/dist/{index-CiB4D7VH.d.ts → index-CsubfLNp.d.ts} +5 -2
  32. package/dist/{index-B-QrzzEt.d.ts → index-CtH8kbOn.d.ts} +3 -3
  33. package/dist/{index-GDD7A_-t.d.ts → index-DHTU_QTw.d.ts} +3 -3
  34. package/dist/{index-BsuIAPD6.d.ts → index-DWfxn3wg.d.ts} +3 -3
  35. package/dist/{index-DZ68m68y.d.ts → index-Glw8jQ-T.d.ts} +6 -2
  36. package/dist/{index-DPF3Lmsv.d.ts → index-WFi4Q5f-.d.ts} +2 -2
  37. package/dist/{index-c9Jj2h1z.d.ts → index-ftKfqd7S.d.ts} +2 -1
  38. package/dist/{index-ece25l8L.d.ts → index-kc3NqscD.d.ts} +3 -3
  39. package/dist/{index-DZWn08ZM.d.ts → index-y5WY0xGq.d.ts} +4 -4
  40. package/dist/index.d.ts +17 -17
  41. package/dist/index.js +5 -5
  42. package/dist/input.d.ts +1 -1
  43. package/dist/input.js +2 -2
  44. package/dist/mask-modules.d.ts +1 -1
  45. package/dist/mask-modules.js +1 -1
  46. package/dist/popover.d.ts +2 -2
  47. package/dist/select.d.ts +2 -2
  48. package/dist/skeleton.d.ts +1 -1
  49. package/dist/tab-switch.d.ts +1 -1
  50. package/dist/tab-switch.js +1 -1
  51. package/dist/text-area.d.ts +1 -1
  52. package/dist/{types-CRiyrGtn.d.ts → types-1ZNOd7Tt.d.ts} +3 -2
  53. package/dist/{types-Cb6hrEtg.d.ts → types-Dr8EuEht.d.ts} +2 -2
  54. package/dist/typography.d.ts +1 -1
  55. package/dist/{useThemedStyles-BVQKnv5r.d.ts → useThemedStyles-B9fVE7Wy.d.ts} +2 -25
  56. package/package.json +1 -1
  57. package/dist/DatePicker-QLL-43NJ.js.map +0 -1
  58. package/dist/IconButton-qBhQj30V.js.map +0 -1
  59. package/dist/MaskModule-B9d_CLgH.js.map +0 -1
  60. package/dist/TabSwitch-BrFTSD3N.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Select-D5EznEQW.js","names":["value","Select: React.FC<SelectProps>"],"sources":["../src/components/commons/inputs/Select/components/OptionItem/styles.ts","../src/components/commons/inputs/Select/components/OptionItem/index.tsx","../src/hooks/useCompositeListNavigation/index.ts","../src/components/commons/inputs/Select/hooks/useSelect/index.ts","../src/components/commons/inputs/Select/styles.ts","../src/components/commons/inputs/Select/types.ts","../src/components/commons/inputs/Select/index.tsx"],"sourcesContent":["import type { OptionItemProps } from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createOptionsStyles(\n props: OptionItemProps & { ['data-active']?: string }\n) {\n const { isSelected } = props\n const isActive = props['data-active'] === 'true'\n const highlighted = isSelected || isActive\n\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n alignItems: 'center',\n textAlign: 'left',\n\n borderRadius: '0.25rem',\n padding: '0.5rem 0.75rem',\n\n cursor: 'pointer',\n transition: 'background-color 0.2s ease-out',\n\n backgroundColor: highlighted\n ? 'var(--px-background-card-hover)'\n : 'transparent',\n\n __rules: {\n '&:hover': {\n backgroundColor: 'var(--px-background-card-hover) !important'\n },\n\n '&:focus': {\n outlineOffset: '-1px',\n outline: '2px solid var(--px-color-primary)'\n }\n }\n },\n\n text: {\n flex: 1,\n\n fontSize: '1rem',\n fontWeight: 500,\n lineHeight: '1.5rem',\n fontFamily: 'inherit',\n color: 'var(--px-text-primary)',\n\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis'\n }\n })\n}\n","/** biome-ignore-all lint/a11y/useSemanticElements: It's a custom select component */\nimport type React from 'react'\nimport { forwardRef } from 'react'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { OptionItemProps } from './types'\n\n// Styles\nimport { createOptionsStyles } from './styles'\n\ntype NativeButtonProps = Omit<\n React.ComponentPropsWithoutRef<'button'>,\n 'onClick'\n>\n\nexport const OptionItem = forwardRef<\n HTMLButtonElement,\n OptionItemProps & NativeButtonProps\n>((props, ref) => {\n const { styles, classes } = useThemedStyles(props, createOptionsStyles)\n\n const { option, isSelected, onClick, ...rest } = props\n\n return (\n <button\n {...rest}\n ref={ref}\n type=\"button\"\n role=\"option\"\n style={styles.container}\n className={classes.container}\n aria-label={option.label}\n aria-selected={isSelected}\n onClick={() => onClick(option.value)}\n >\n <span style={styles.text}>{option.label}</span>\n </button>\n )\n})\n\nOptionItem.displayName = 'OptionItem'\n","// External Libraries\nimport { useCallback, useEffect, useRef, useState } from 'react'\n\nexport type CompositeItemMeta = {\n disabled?: boolean\n hasChildren?: boolean\n onActivate?: () => void\n onOpenChildren?: () => void\n onCloseChildren?: () => void\n}\n\ntype Params = {\n open: boolean\n itemCount: number\n initialIndex?: number\n onCloseByTab?: () => void\n setOpen: (v: boolean) => void\n makeMeta: (index: number) => CompositeItemMeta\n}\n\nfunction findNextEnabled(\n start: number,\n dir: 1 | -1,\n count: number,\n isDisabled: (i: number) => boolean\n) {\n if (count <= 0) return 0\n let i = start\n for (let step = 0; step < count; step++) {\n i = (i + dir + count) % count\n if (!isDisabled(i)) return i\n }\n return start\n}\n\nfunction findFirstEnabled(count: number, isDisabled: (i: number) => boolean) {\n for (let i = 0; i < count; i++) if (!isDisabled(i)) return i\n return 0\n}\n\nexport function useCompositeListNavigation({\n open,\n itemCount,\n initialIndex,\n setOpen,\n makeMeta,\n onCloseByTab\n}: Params) {\n const listRef = useRef<HTMLElement | null>(null)\n const itemRefs = useRef<Array<HTMLButtonElement | null>>([])\n\n const isDisabled = useCallback(\n (i: number) => !!makeMeta(i).disabled,\n [makeMeta]\n )\n\n const [activeIndex, setActiveIndex] = useState(0)\n\n const focusItem = useCallback((i: number) => {\n const el = itemRefs.current[i]\n if (!el) return\n el.focus({ preventScroll: true })\n el.scrollIntoView({ block: 'nearest' })\n }, [])\n\n const openAndFocus = useCallback(\n (index?: number) => {\n setOpen(true)\n\n const next =\n typeof index === 'number'\n ? index\n : typeof initialIndex === 'number'\n ? initialIndex\n : findFirstEnabled(itemCount, isDisabled)\n\n setActiveIndex(next)\n requestAnimationFrame(() => focusItem(next))\n },\n [focusItem, initialIndex, isDisabled, itemCount, setOpen]\n )\n\n useEffect(() => {\n if (!open) return\n requestAnimationFrame(() => focusItem(activeIndex))\n }, [open, activeIndex, focusItem])\n\n const move = useCallback(\n (dir: 1 | -1) => {\n const next = findNextEnabled(activeIndex, dir, itemCount, isDisabled)\n setActiveIndex(next)\n requestAnimationFrame(() => focusItem(next))\n },\n [activeIndex, itemCount, isDisabled, focusItem]\n )\n\n const activate = useCallback(() => {\n const meta = makeMeta(activeIndex)\n if (meta.disabled) return\n meta.onActivate?.()\n }, [activeIndex, makeMeta])\n\n const onListKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n if (!open) return\n\n switch (e.key) {\n case 'Tab': {\n // ✅ fecha e deixa o browser focar o próximo\n // (e NÃO restaura foco pro trigger)\n onCloseByTab?.()\n setOpen(false)\n return\n }\n\n case 'ArrowDown':\n e.preventDefault()\n move(+1)\n return\n\n case 'ArrowUp':\n e.preventDefault()\n move(-1)\n return\n\n case 'Home': {\n e.preventDefault()\n const first = findFirstEnabled(itemCount, isDisabled)\n setActiveIndex(first)\n requestAnimationFrame(() => focusItem(first))\n return\n }\n\n case 'End': {\n e.preventDefault()\n let last = itemCount - 1\n for (let i = itemCount - 1; i >= 0; i--) {\n if (!isDisabled(i)) {\n last = i\n break\n }\n }\n setActiveIndex(last)\n requestAnimationFrame(() => focusItem(last))\n return\n }\n\n case 'Enter':\n case ' ': {\n e.preventDefault()\n activate()\n return\n }\n\n case 'Escape':\n e.preventDefault()\n setOpen(false)\n return\n\n case 'ArrowRight': {\n e.preventDefault()\n const meta = makeMeta(activeIndex)\n if (meta.hasChildren) meta.onOpenChildren?.()\n return\n }\n\n case 'ArrowLeft': {\n e.preventDefault()\n const meta = makeMeta(activeIndex)\n meta.onCloseChildren?.()\n return\n }\n }\n },\n [\n open,\n itemCount,\n activeIndex,\n move,\n setOpen,\n activate,\n makeMeta,\n focusItem,\n isDisabled,\n onCloseByTab\n ]\n )\n\n const getTriggerProps = useCallback(() => {\n return {\n onKeyDown: (e: React.KeyboardEvent) => {\n if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {\n e.preventDefault()\n if (!open) openAndFocus()\n return\n }\n\n if (e.key === 'ArrowUp') {\n e.preventDefault()\n if (!open) openAndFocus(itemCount > 0 ? itemCount - 1 : 0)\n }\n }\n }\n }, [open, openAndFocus, itemCount])\n\n const getListProps = useCallback(() => {\n return {\n ref: (el: HTMLElement | null) => {\n listRef.current = el\n },\n onKeyDown: onListKeyDown\n }\n }, [onListKeyDown])\n\n const getItemProps = useCallback(\n (index: number) => {\n const isActive = index === activeIndex\n return {\n ref: (el: HTMLButtonElement | null) => {\n itemRefs.current[index] = el\n },\n tabIndex: isActive ? 0 : -1,\n 'data-active': isActive ? 'true' : 'false'\n } as const\n },\n [activeIndex]\n )\n\n return {\n activeIndex,\n getListProps,\n getItemProps,\n openAndFocus,\n setActiveIndex,\n getTriggerProps\n }\n}\n","// External Libraries\nimport { useState } from 'react'\n\n// Types\nimport type { SelectProps } from '../../types'\nimport { useCompositeListNavigation } from '@hooks/useCompositeListNavigation'\n\nexport function useSelect({\n value,\n options,\n multiple,\n disabled,\n canClear,\n onChange\n}: SelectProps) {\n // States\n const [open, setOpen] = useState(false)\n\n // Hooks\n const nav = useCompositeListNavigation({\n open,\n itemCount: options.length,\n setOpen: changeOpen,\n makeMeta: makeMeta\n })\n\n // Functions\n function handleOptionClick(option: string) {\n const isAlreadySelected = value.includes(option)\n\n if (!multiple) {\n if (isAlreadySelected) {\n if (canClear) onChange([])\n } else onChange([option])\n\n setOpen(false)\n return\n }\n\n if (isAlreadySelected) {\n if (value.length === 1) {\n if (canClear) onChange([])\n } else onChange(value.filter(v => v !== option))\n } else onChange([...value, option])\n }\n\n function makeMeta(index: number) {\n const opt = options[index]\n return {\n onActivate: () => {\n if (opt) handleOptionClick(opt.value)\n }\n }\n }\n\n function changeOpen(value: boolean) {\n setOpen(value)\n }\n\n function togglePanel() {\n if (disabled) return\n if (!open) nav.openAndFocus()\n }\n\n function closePanel() {\n setOpen(false)\n }\n\n return {\n nav,\n open,\n makeMeta,\n changeOpen,\n togglePanel,\n closePanel,\n handleOptionClick\n }\n}\n","import { styled } from '@hooks/useThemedStyles/types'\nimport type { SelectProps } from './types'\n\nexport function createSelectStyles(props: SelectProps) {\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n position: 'relative',\n\n rowGap: '0.375rem'\n },\n\n content: {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n\n borderWidth: 1,\n columnGap: '0.25rem',\n borderRadius: '0.5rem',\n padding: '0.625rem 0.875rem',\n\n opacity: props.disabled || props.isLoading ? 0.5 : 1,\n cursor: props.isLoading\n ? 'progress'\n : props.disabled\n ? 'not-allowed'\n : 'pointer',\n boxShadow: 'var(--px-shadow-default)',\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n\n __rules: {\n '&:focus-within': {\n outlineOffset: '-1px !important',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'}) !important`\n }\n }\n },\n\n text: {\n flex: 1,\n\n textAlign: 'left',\n\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n\n fontSize: '1rem',\n lineHeight: '1.5rem',\n fontFamily: 'inherit',\n fontWeight: props.value.length ? 500 : 400,\n color: props.value.length\n ? 'var(--px-text-primary)'\n : 'var(--px-text-secondary)'\n },\n\n panel: { width: '100%' }\n })\n}\n","import type {\n StylesOf,\n TextProps,\n LayoutProps,\n MarginProps\n} from '@hooks/useThemedStyles/types'\nimport type { createSelectStyles } from './styles'\nimport type { FloatingOptions } from '@hooks/useFloating/types'\nimport type { PopoverProps } from '@components/commons/toolkit/Popover/types'\n\nexport interface SelectProps extends LayoutProps, MarginProps {\n label: string\n value: string[]\n placeholder?: string\n options: SelectOption[]\n isLoading?: boolean\n\n portalId?: PopoverProps['portalId']\n strategy?: FloatingOptions['strategy']\n scrollContainerId?: FloatingOptions['scrollContainerId']\n absoluteReference?: FloatingOptions['absoluteReference']\n\n canClear?: boolean\n multiple?: boolean\n required?: boolean\n disabled?: boolean\n hideLabel?: boolean\n errorMessage?: string\n maxVisibleItems?: number\n\n startIcon?: React.ReactNode\n styles?: StylesOf<typeof createSelectStyles>\n\n requiredColor?: string\n labelConfig?: TextProps\n\n onChange: (value: string[]) => void\n}\n\nexport interface SelectOption {\n label: string\n value: string\n}\n","/** biome-ignore-all lint/a11y/useSemanticElements: It's a custom select component */\n// External Libraries\nimport type React from 'react'\nimport { useMemo } from 'react'\n\n// Components\nimport { OptionItem } from './components/OptionItem'\nimport { Icon } from '@components/commons/toolkit/Icon'\nimport { Label } from '@components/commons/toolkit/Label'\nimport { ErrorMessage } from '../../toolkit/ErrorMessage'\nimport { Loader } from '@components/commons/toolkit/Loader'\nimport { Typography } from '@components/commons/toolkit/Typography'\nimport { BasePopover } from '@components/commons/structure/BasePopover'\n\n// Hooks\nimport { useSelect } from './hooks/useSelect'\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { SelectProps } from './types'\nimport type { PopoverTriggerRenderProps } from '@components/commons/toolkit/Popover/types'\n\n// Styles\nimport { createSelectStyles } from './styles'\n\nexport * as SelectTypes from './types'\n\nexport const Select: React.FC<SelectProps> = props => {\n const { nav, open, changeOpen, handleOptionClick } = useSelect(props)\n const { styles, classes } = useThemedStyles(props, createSelectStyles, {\n pick: p => [p.disabled, p.errorMessage, p.value, p.isLoading],\n override: props.styles,\n applyCommonProps: true,\n commonSlot: 'container'\n })\n\n const maxVisible = props.maxVisibleItems ?? Infinity\n const optionsMap = useMemo(\n () => new Map(props.options.map(option => [option.value, option.label])),\n [props.options]\n )\n\n // Functions\n function renderContent() {\n if (!props.value?.length) return props.placeholder\n\n const resolvedValues = props.value.map(val => optionsMap.get(val) ?? val)\n const visibleItems = resolvedValues.slice(0, maxVisible)\n const hiddenCount = resolvedValues.length - visibleItems.length\n\n let result = visibleItems.join(', ')\n if (hiddenCount > 0) result += ` +${hiddenCount}`\n return result\n }\n\n function renderTrigger({\n ref,\n ariaExpanded,\n onClick\n }: PopoverTriggerRenderProps) {\n const triggerKeyProps = nav.getTriggerProps()\n\n return (\n <button\n ref={ref as React.RefObject<HTMLButtonElement>}\n dir=\"ltr\"\n type=\"button\"\n role=\"combobox\"\n style={styles.content}\n aria-autocomplete=\"none\"\n aria-label={props.label}\n className={classes.content}\n aria-expanded={ariaExpanded}\n disabled={props.disabled || props.isLoading}\n {...triggerKeyProps}\n onClick={onClick}\n >\n {props.value.length ? props.startIcon : null}\n\n <span id=\"text-content\" style={styles.text}>\n {renderContent()}\n </span>\n\n {props.isLoading ? (\n <Loader size=\"1rem\" color=\"var(--px-color-primary)\" />\n ) : (\n <Icon size=\"sm\" name=\"chevrons-down\" />\n )}\n </button>\n )\n }\n\n function renderOptions() {\n if (props.options.length === 0) {\n return (\n <Typography variant=\"b2\" textAlign=\"center\">\n No options\n </Typography>\n )\n }\n\n return props.options.map((option, idx) => (\n <OptionItem\n key={option.value}\n option={option}\n onClick={handleOptionClick}\n isSelected={props.value.includes(option.value)}\n {...nav.getItemProps(idx)}\n />\n ))\n }\n\n return (\n <div style={styles.container}>\n {props.hideLabel ? null : (\n <Label\n label={props.label}\n required={props.required}\n requiredColor={props.requiredColor}\n {...props.labelConfig}\n />\n )}\n\n <BasePopover\n open={open}\n portalId={props.portalId}\n absoluteReference={props.absoluteReference}\n floatingOptions={{\n viewportMargin: 0,\n strategy: props.strategy,\n scrollContainerId: props.scrollContainerId\n }}\n trigger={renderTrigger}\n onOpenChange={changeOpen}\n >\n <div style={styles.panel} role=\"listbox\" {...nav.getListProps()}>\n {renderOptions()}\n </div>\n </BasePopover>\n\n {props.errorMessage ? (\n <ErrorMessage message={props.errorMessage} />\n ) : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;AAGA,SAAgB,oBACd,OACA;CACA,MAAM,EAAE,eAAe;CACvB,MAAM,WAAW,MAAM,mBAAmB;AAG1C,QAAO,OAAO;EACZ,WAAW;GACT,OAAO;GAEP,SAAS;GACT,YAAY;GACZ,WAAW;GAEX,cAAc;GACd,SAAS;GAET,QAAQ;GACR,YAAY;GAEZ,iBAhBgB,cAAc,WAiB1B,oCACA;GAEJ,SAAS;IACP,WAAW,EACT,iBAAiB,8CAClB;IAED,WAAW;KACT,eAAe;KACf,SAAS;KACV;IACF;GACF;EAED,MAAM;GACJ,MAAM;GAEN,UAAU;GACV,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,OAAO;GAEP,UAAU;GACV,YAAY;GACZ,cAAc;GACf;EACF,CAAC;;;;;ACnCJ,MAAa,aAAa,YAGvB,OAAO,QAAQ;CAChB,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,oBAAoB;CAEvE,MAAM,EAAE,QAAQ,YAAY,SAAS,GAAG,SAAS;AAEjD,QACE,oBAAC;EACC,GAAI;EACC;EACL,MAAK;EACL,MAAK;EACL,OAAO,OAAO;EACd,WAAW,QAAQ;EACnB,cAAY,OAAO;EACnB,iBAAe;EACf,eAAe,QAAQ,OAAO,MAAM;YAEpC,oBAAC;GAAK,OAAO,OAAO;aAAO,OAAO;IAAa;GACxC;EAEX;AAEF,WAAW,cAAc;;;;ACvBzB,SAAS,gBACP,OACA,KACA,OACA,YACA;AACA,KAAI,SAAS,EAAG,QAAO;CACvB,IAAI,IAAI;AACR,MAAK,IAAI,OAAO,GAAG,OAAO,OAAO,QAAQ;AACvC,OAAK,IAAI,MAAM,SAAS;AACxB,MAAI,CAAC,WAAW,EAAE,CAAE,QAAO;;AAE7B,QAAO;;AAGT,SAAS,iBAAiB,OAAe,YA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;KAChB,mBAAmB,MAAM;KAC1B;IACD,SAAS;IACT,cAAc;cAEd,oBAAC;KAAI,OAAO,OAAO;KAAO,MAAK;KAAU,GAAI,IAAI,cAAc;eAC5D,eAAe;MACZ;KACM;GAEb,MAAM,eACL,oBAAC,gBAAa,SAAS,MAAM,eAAgB,GAC3C;;GACA"}
1
+ {"version":3,"file":"Select-D5EznEQW.js","names":["value","Select: React.FC<SelectProps>"],"sources":["../src/components/commons/inputs/Select/components/OptionItem/styles.ts","../src/components/commons/inputs/Select/components/OptionItem/index.tsx","../src/hooks/useCompositeListNavigation/index.ts","../src/components/commons/inputs/Select/hooks/useSelect/index.ts","../src/components/commons/inputs/Select/styles.ts","../src/components/commons/inputs/Select/types.ts","../src/components/commons/inputs/Select/index.tsx"],"sourcesContent":["import type { OptionItemProps } from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createOptionsStyles(\n props: OptionItemProps & { ['data-active']?: string }\n) {\n const { isSelected } = props\n const isActive = props['data-active'] === 'true'\n const highlighted = isSelected || isActive\n\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n alignItems: 'center',\n textAlign: 'left',\n\n borderRadius: '0.25rem',\n padding: '0.5rem 0.75rem',\n\n cursor: 'pointer',\n transition: 'background-color 0.2s ease-out',\n\n backgroundColor: highlighted\n ? 'var(--px-background-card-hover)'\n : 'transparent',\n\n __rules: {\n '&:hover': {\n backgroundColor: 'var(--px-background-card-hover) !important'\n },\n\n '&:focus': {\n outlineOffset: '-1px',\n outline: '2px solid var(--px-color-primary)'\n }\n }\n },\n\n text: {\n flex: 1,\n\n fontSize: '1rem',\n fontWeight: 500,\n lineHeight: '1.5rem',\n fontFamily: 'inherit',\n color: 'var(--px-text-primary)',\n\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis'\n }\n })\n}\n","/** biome-ignore-all lint/a11y/useSemanticElements: It's a custom select component */\nimport type React from 'react'\nimport { forwardRef } from 'react'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { OptionItemProps } from './types'\n\n// Styles\nimport { createOptionsStyles } from './styles'\n\ntype NativeButtonProps = Omit<\n React.ComponentPropsWithoutRef<'button'>,\n 'onClick'\n>\n\nexport const OptionItem = forwardRef<\n HTMLButtonElement,\n OptionItemProps & NativeButtonProps\n>((props, ref) => {\n const { styles, classes } = useThemedStyles(props, createOptionsStyles)\n\n const { option, isSelected, onClick, ...rest } = props\n\n return (\n <button\n {...rest}\n ref={ref}\n type=\"button\"\n role=\"option\"\n style={styles.container}\n className={classes.container}\n aria-label={option.label}\n aria-selected={isSelected}\n onClick={() => onClick(option.value)}\n >\n <span style={styles.text}>{option.label}</span>\n </button>\n )\n})\n\nOptionItem.displayName = 'OptionItem'\n","// External Libraries\nimport { useCallback, useEffect, useRef, useState } from 'react'\n\nexport type CompositeItemMeta = {\n disabled?: boolean\n hasChildren?: boolean\n onActivate?: () => void\n onOpenChildren?: () => void\n onCloseChildren?: () => void\n}\n\ntype Params = {\n open: boolean\n itemCount: number\n initialIndex?: number\n onCloseByTab?: () => void\n setOpen: (v: boolean) => void\n makeMeta: (index: number) => CompositeItemMeta\n}\n\nfunction findNextEnabled(\n start: number,\n dir: 1 | -1,\n count: number,\n isDisabled: (i: number) => boolean\n) {\n if (count <= 0) return 0\n let i = start\n for (let step = 0; step < count; step++) {\n i = (i + dir + count) % count\n if (!isDisabled(i)) return i\n }\n return start\n}\n\nfunction findFirstEnabled(count: number, isDisabled: (i: number) => boolean) {\n for (let i = 0; i < count; i++) if (!isDisabled(i)) return i\n return 0\n}\n\nexport function useCompositeListNavigation({\n open,\n itemCount,\n initialIndex,\n setOpen,\n makeMeta,\n onCloseByTab\n}: Params) {\n const listRef = useRef<HTMLElement | null>(null)\n const itemRefs = useRef<Array<HTMLButtonElement | null>>([])\n\n const isDisabled = useCallback(\n (i: number) => !!makeMeta(i).disabled,\n [makeMeta]\n )\n\n const [activeIndex, setActiveIndex] = useState(0)\n\n const focusItem = useCallback((i: number) => {\n const el = itemRefs.current[i]\n if (!el) return\n el.focus({ preventScroll: true })\n el.scrollIntoView({ block: 'nearest' })\n }, [])\n\n const openAndFocus = useCallback(\n (index?: number) => {\n setOpen(true)\n\n const next =\n typeof index === 'number'\n ? index\n : typeof initialIndex === 'number'\n ? initialIndex\n : findFirstEnabled(itemCount, isDisabled)\n\n setActiveIndex(next)\n requestAnimationFrame(() => focusItem(next))\n },\n [focusItem, initialIndex, isDisabled, itemCount, setOpen]\n )\n\n useEffect(() => {\n if (!open) return\n requestAnimationFrame(() => focusItem(activeIndex))\n }, [open, activeIndex, focusItem])\n\n const move = useCallback(\n (dir: 1 | -1) => {\n const next = findNextEnabled(activeIndex, dir, itemCount, isDisabled)\n setActiveIndex(next)\n requestAnimationFrame(() => focusItem(next))\n },\n [activeIndex, itemCount, isDisabled, focusItem]\n )\n\n const activate = useCallback(() => {\n const meta = makeMeta(activeIndex)\n if (meta.disabled) return\n meta.onActivate?.()\n }, [activeIndex, makeMeta])\n\n const onListKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n if (!open) return\n\n switch (e.key) {\n case 'Tab': {\n // ✅ fecha e deixa o browser focar o próximo\n // (e NÃO restaura foco pro trigger)\n onCloseByTab?.()\n setOpen(false)\n return\n }\n\n case 'ArrowDown':\n e.preventDefault()\n move(+1)\n return\n\n case 'ArrowUp':\n e.preventDefault()\n move(-1)\n return\n\n case 'Home': {\n e.preventDefault()\n const first = findFirstEnabled(itemCount, isDisabled)\n setActiveIndex(first)\n requestAnimationFrame(() => focusItem(first))\n return\n }\n\n case 'End': {\n e.preventDefault()\n let last = itemCount - 1\n for (let i = itemCount - 1; i >= 0; i--) {\n if (!isDisabled(i)) {\n last = i\n break\n }\n }\n setActiveIndex(last)\n requestAnimationFrame(() => focusItem(last))\n return\n }\n\n case 'Enter':\n case ' ': {\n e.preventDefault()\n activate()\n return\n }\n\n case 'Escape':\n e.preventDefault()\n setOpen(false)\n return\n\n case 'ArrowRight': {\n e.preventDefault()\n const meta = makeMeta(activeIndex)\n if (meta.hasChildren) meta.onOpenChildren?.()\n return\n }\n\n case 'ArrowLeft': {\n e.preventDefault()\n const meta = makeMeta(activeIndex)\n meta.onCloseChildren?.()\n return\n }\n }\n },\n [\n open,\n itemCount,\n activeIndex,\n move,\n setOpen,\n activate,\n makeMeta,\n focusItem,\n isDisabled,\n onCloseByTab\n ]\n )\n\n const getTriggerProps = useCallback(() => {\n return {\n onKeyDown: (e: React.KeyboardEvent) => {\n if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {\n e.preventDefault()\n if (!open) openAndFocus()\n return\n }\n\n if (e.key === 'ArrowUp') {\n e.preventDefault()\n if (!open) openAndFocus(itemCount > 0 ? itemCount - 1 : 0)\n }\n }\n }\n }, [open, openAndFocus, itemCount])\n\n const getListProps = useCallback(() => {\n return {\n ref: (el: HTMLElement | null) => {\n listRef.current = el\n },\n onKeyDown: onListKeyDown\n }\n }, [onListKeyDown])\n\n const getItemProps = useCallback(\n (index: number) => {\n const isActive = index === activeIndex\n return {\n ref: (el: HTMLButtonElement | null) => {\n itemRefs.current[index] = el\n },\n tabIndex: isActive ? 0 : -1,\n 'data-active': isActive ? 'true' : 'false'\n } as const\n },\n [activeIndex]\n )\n\n return {\n activeIndex,\n getListProps,\n getItemProps,\n openAndFocus,\n setActiveIndex,\n getTriggerProps\n }\n}\n","// External Libraries\nimport { useState } from 'react'\n\n// Types\nimport type { SelectProps } from '../../types'\nimport { useCompositeListNavigation } from '@hooks/useCompositeListNavigation'\n\nexport function useSelect({\n value,\n options,\n multiple,\n disabled,\n canClear,\n onChange\n}: SelectProps) {\n // States\n const [open, setOpen] = useState(false)\n\n // Hooks\n const nav = useCompositeListNavigation({\n open,\n itemCount: options.length,\n setOpen: changeOpen,\n makeMeta: makeMeta\n })\n\n // Functions\n function handleOptionClick(option: string) {\n const isAlreadySelected = value.includes(option)\n\n if (!multiple) {\n if (isAlreadySelected) {\n if (canClear) onChange([])\n } else onChange([option])\n\n setOpen(false)\n return\n }\n\n if (isAlreadySelected) {\n if (value.length === 1) {\n if (canClear) onChange([])\n } else onChange(value.filter(v => v !== option))\n } else onChange([...value, option])\n }\n\n function makeMeta(index: number) {\n const opt = options[index]\n return {\n onActivate: () => {\n if (opt) handleOptionClick(opt.value)\n }\n }\n }\n\n function changeOpen(value: boolean) {\n setOpen(value)\n }\n\n function togglePanel() {\n if (disabled) return\n if (!open) nav.openAndFocus()\n }\n\n function closePanel() {\n setOpen(false)\n }\n\n return {\n nav,\n open,\n makeMeta,\n changeOpen,\n togglePanel,\n closePanel,\n handleOptionClick\n }\n}\n","import { styled } from '@hooks/useThemedStyles/types'\nimport type { SelectProps } from './types'\n\nexport function createSelectStyles(props: SelectProps) {\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n position: 'relative',\n\n rowGap: '0.375rem'\n },\n\n content: {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n\n borderWidth: 1,\n columnGap: '0.25rem',\n borderRadius: '0.5rem',\n padding: '0.625rem 0.875rem',\n\n opacity: props.disabled || props.isLoading ? 0.5 : 1,\n cursor: props.isLoading\n ? 'progress'\n : props.disabled\n ? 'not-allowed'\n : 'pointer',\n boxShadow: 'var(--px-shadow-default)',\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n\n __rules: {\n '&:focus-within': {\n outlineOffset: '-1px !important',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'}) !important`\n }\n }\n },\n\n text: {\n flex: 1,\n\n textAlign: 'left',\n\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n\n fontSize: '1rem',\n lineHeight: '1.5rem',\n fontFamily: 'inherit',\n fontWeight: props.value.length ? 500 : 400,\n color: props.value.length\n ? 'var(--px-text-primary)'\n : 'var(--px-text-secondary)'\n },\n\n panel: { width: '100%' }\n })\n}\n","import type {\n TextProps,\n LayoutProps,\n MarginProps,\n TypeStyles\n} from '@hooks/useThemedStyles/types'\nimport type { createSelectStyles } from './styles'\nimport type { FloatingOptions } from '@hooks/useFloating/types'\nimport type { PopoverProps } from '@components/commons/toolkit/Popover/types'\n\nexport interface SelectProps extends LayoutProps, MarginProps {\n label: string\n value: string[]\n placeholder?: string\n options: SelectOption[]\n isLoading?: boolean\n\n portalId?: PopoverProps['portalId']\n strategy?: FloatingOptions['strategy']\n scrollContainerId?: FloatingOptions['scrollContainerId']\n absoluteReference?: FloatingOptions['absoluteReference']\n\n canClear?: boolean\n multiple?: boolean\n required?: boolean\n disabled?: boolean\n hideLabel?: boolean\n errorMessage?: string\n maxVisibleItems?: number\n\n startIcon?: React.ReactNode\n styles?: TypeStyles<typeof createSelectStyles>\n\n requiredColor?: string\n labelConfig?: TextProps\n\n onChange: (value: string[]) => void\n}\n\nexport interface SelectOption {\n label: string\n value: string\n}\n","/** biome-ignore-all lint/a11y/useSemanticElements: It's a custom select component */\n// External Libraries\nimport type React from 'react'\nimport { useMemo } from 'react'\n\n// Components\nimport { OptionItem } from './components/OptionItem'\nimport { Icon } from '@components/commons/toolkit/Icon'\nimport { Label } from '@components/commons/toolkit/Label'\nimport { ErrorMessage } from '../../toolkit/ErrorMessage'\nimport { Loader } from '@components/commons/toolkit/Loader'\nimport { Typography } from '@components/commons/toolkit/Typography'\nimport { BasePopover } from '@components/commons/structure/BasePopover'\n\n// Hooks\nimport { useSelect } from './hooks/useSelect'\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { SelectProps } from './types'\nimport type { PopoverTriggerRenderProps } from '@components/commons/toolkit/Popover/types'\n\n// Styles\nimport { createSelectStyles } from './styles'\n\nexport * as SelectTypes from './types'\n\nexport const Select: React.FC<SelectProps> = props => {\n const { nav, open, changeOpen, handleOptionClick } = useSelect(props)\n const { styles, classes } = useThemedStyles(props, createSelectStyles, {\n pick: p => [p.disabled, p.errorMessage, p.value, p.isLoading],\n override: props.styles,\n applyCommonProps: true,\n commonSlot: 'container'\n })\n\n const maxVisible = props.maxVisibleItems ?? Infinity\n const optionsMap = useMemo(\n () => new Map(props.options.map(option => [option.value, option.label])),\n [props.options]\n )\n\n // Functions\n function renderContent() {\n if (!props.value?.length) return props.placeholder\n\n const resolvedValues = props.value.map(val => optionsMap.get(val) ?? val)\n const visibleItems = resolvedValues.slice(0, maxVisible)\n const hiddenCount = resolvedValues.length - visibleItems.length\n\n let result = visibleItems.join(', ')\n if (hiddenCount > 0) result += ` +${hiddenCount}`\n return result\n }\n\n function renderTrigger({\n ref,\n ariaExpanded,\n onClick\n }: PopoverTriggerRenderProps) {\n const triggerKeyProps = nav.getTriggerProps()\n\n return (\n <button\n ref={ref as React.RefObject<HTMLButtonElement>}\n dir=\"ltr\"\n type=\"button\"\n role=\"combobox\"\n style={styles.content}\n aria-autocomplete=\"none\"\n aria-label={props.label}\n className={classes.content}\n aria-expanded={ariaExpanded}\n disabled={props.disabled || props.isLoading}\n {...triggerKeyProps}\n onClick={onClick}\n >\n {props.value.length ? props.startIcon : null}\n\n <span id=\"text-content\" style={styles.text}>\n {renderContent()}\n </span>\n\n {props.isLoading ? (\n <Loader size=\"1rem\" color=\"var(--px-color-primary)\" />\n ) : (\n <Icon size=\"sm\" name=\"chevrons-down\" />\n )}\n </button>\n )\n }\n\n function renderOptions() {\n if (props.options.length === 0) {\n return (\n <Typography variant=\"b2\" textAlign=\"center\">\n No options\n </Typography>\n )\n }\n\n return props.options.map((option, idx) => (\n <OptionItem\n key={option.value}\n option={option}\n onClick={handleOptionClick}\n isSelected={props.value.includes(option.value)}\n {...nav.getItemProps(idx)}\n />\n ))\n }\n\n return (\n <div style={styles.container}>\n {props.hideLabel ? null : (\n <Label\n label={props.label}\n required={props.required}\n requiredColor={props.requiredColor}\n {...props.labelConfig}\n />\n )}\n\n <BasePopover\n open={open}\n portalId={props.portalId}\n absoluteReference={props.absoluteReference}\n floatingOptions={{\n viewportMargin: 0,\n strategy: props.strategy,\n scrollContainerId: props.scrollContainerId\n }}\n trigger={renderTrigger}\n onOpenChange={changeOpen}\n >\n <div style={styles.panel} role=\"listbox\" {...nav.getListProps()}>\n {renderOptions()}\n </div>\n </BasePopover>\n\n {props.errorMessage ? (\n <ErrorMessage message={props.errorMessage} />\n ) : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;AAGA,SAAgB,oBACd,OACA;CACA,MAAM,EAAE,eAAe;CACvB,MAAM,WAAW,MAAM,mBAAmB;AAG1C,QAAO,OAAO;EACZ,WAAW;GACT,OAAO;GAEP,SAAS;GACT,YAAY;GACZ,WAAW;GAEX,cAAc;GACd,SAAS;GAET,QAAQ;GACR,YAAY;GAEZ,iBAhBgB,cAAc,WAiB1B,oCACA;GAEJ,SAAS;IACP,WAAW,EACT,iBAAiB,8CAClB;IAED,WAAW;KACT,eAAe;KACf,SAAS;KACV;IACF;GACF;EAED,MAAM;GACJ,MAAM;GAEN,UAAU;GACV,YAAY;GACZ,YAAY;GACZ,YAAY;GACZ,OAAO;GAEP,UAAU;GACV,YAAY;GACZ,cAAc;GACf;EACF,CAAC;;;;;ACnCJ,MAAa,aAAa,YAGvB,OAAO,QAAQ;CAChB,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,oBAAoB;CAEvE,MAAM,EAAE,QAAQ,YAAY,SAAS,GAAG,SAAS;AAEjD,QACE,oBAAC;EACC,GAAI;EACC;EACL,MAAK;EACL,MAAK;EACL,OAAO,OAAO;EACd,WAAW,QAAQ;EACnB,cAAY,OAAO;EACnB,iBAAe;EACf,eAAe,QAAQ,OAAO,MAAM;YAEpC,oBAAC;GAAK,OAAO,OAAO;aAAO,OAAO;IAAa;GACxC;EAEX;AAEF,WAAW,cAAc;;;;ACvBzB,SAAS,gBACP,OACA,KACA,OACA,YACA;AACA,KAAI,SAAS,EAAG,QAAO;CACvB,IAAI,IAAI;AACR,MAAK,IAAI,OAAO,GAAG,OAAO,OAAO,QAAQ;AACvC,OAAK,IAAI,MAA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,oBAAC;IACO;IACN,UAAU,MAAM;IAChB,mBAAmB,MAAM;IACzB,iBAAiB;KACf,gBAAgB;KAChB,UAAU,MAAM;KAChB,mBAAmB,MAAM;KAC1B;IACD,SAAS;IACT,cAAc;cAEd,oBAAC;KAAI,OAAO,OAAO;KAAO,MAAK;KAAU,GAAI,IAAI,cAAc;eAC5D,eAAe;MACZ;KACM;GAEb,MAAM,eACL,oBAAC,gBAAa,SAAS,MAAM,eAAgB,GAC3C;;GACA"}
@@ -78,14 +78,16 @@ const SwitchItem = (props) => {
78
78
  //#endregion
79
79
  //#region src/components/commons/toolkit/TabSwitch/styles.ts
80
80
  function createTabSwitchStyles(props) {
81
- const { fitContent } = props;
81
+ const { fitContent, backgroundColor, variant } = props;
82
82
  return styled({ container: {
83
83
  display: "flex",
84
+ padding: "3px",
84
85
  flexDirection: "row",
85
86
  alignItems: "center",
86
87
  color: "var(--px-text-primary, #4b5563)",
87
88
  width: fitContent ? "fit-content" : "100%",
88
- borderBottom: "1px solid var(--px-border-primary, #e5e7eb)",
89
+ backgroundColor: backgroundColor ?? "transparent",
90
+ borderBottom: variant === "default" ? "1px solid var(--px-border-primary, #e5e7eb)" : "unset",
89
91
  gap: 0,
90
92
  __rules: { "& svg": { zIndex: 1 } }
91
93
  } });
@@ -120,4 +122,4 @@ const TabSwitch = (props) => {
120
122
 
121
123
  //#endregion
122
124
  export { TabSwitch as t };
123
- //# sourceMappingURL=TabSwitch-BrFTSD3N.js.map
125
+ //# sourceMappingURL=TabSwitch-DIHCG0vJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabSwitch-DIHCG0vJ.js","names":[],"sources":["../src/components/commons/toolkit/TabSwitch/components/TabSwitchItem/styles.ts","../src/components/commons/toolkit/TabSwitch/components/TabSwitchItem/index.tsx","../src/components/commons/toolkit/TabSwitch/styles.ts","../src/components/commons/toolkit/TabSwitch/index.tsx"],"sourcesContent":["// External Libraries\nimport { styled } from '@hooks/useThemedStyles/types'\n\ninterface Params {\n disabled?: boolean\n selected?: boolean\n selectedColor?: string\n variant: 'default' | 'underline'\n}\n\nexport function createTabSwitchItemStyles({\n variant,\n disabled,\n selected,\n selectedColor\n}: Params) {\n const accent = selectedColor ?? 'var(--px-color-primary)'\n\n return styled({\n item: {\n minHeight: '1.25rem',\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n gap: 4,\n background: 'transparent',\n border: 0,\n padding: '8px 10px',\n cursor: disabled ? 'not-allowed' : 'pointer',\n opacity: disabled ? 0.5 : 1,\n userSelect: 'none',\n whiteSpace: 'nowrap',\n __rules: { '& > p': { zIndex: 1 } }\n },\n\n selectedBg:\n variant === 'default'\n ? {\n position: 'absolute',\n inset: 0,\n borderRadius: 6,\n border: '1px solid var(--px-border-primary)',\n background: selected ? accent : 'transparent'\n }\n : {\n position: 'absolute',\n left: 0,\n right: 0,\n bottom: -2,\n height: 2,\n background: selected ? accent : 'transparent'\n }\n })\n}\n","// External Libraries\nimport { motion } from 'framer-motion'\n\n// Components\nimport { Typography } from '@components/commons/toolkit/Typography'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { SwitchOption } from '../../types'\n\n// Styles\nimport { createTabSwitchItemStyles } from './styles'\n\ntype Props<T> = {\n option: SwitchOption<T>\n selected: boolean\n layoutId?: string\n disabled?: boolean\n selectedColor?: string\n selectedLabelColor?: string\n variant: 'default' | 'underline'\n onClick: (value: T) => void\n}\n\nexport const SwitchItem = <T,>(props: Props<T>) => {\n const { option, disabled, selected, layoutId, onClick } = props\n\n const { styles, classes } = useThemedStyles(\n props,\n createTabSwitchItemStyles,\n {\n pick: p => [p.variant, p.selectedColor, p.selectedLabelColor, p.selected]\n }\n )\n\n const isDisabled = disabled || option.disabled\n\n return (\n <button\n type=\"button\"\n style={styles.item}\n className={classes.item}\n tabIndex={isDisabled ? -1 : 0}\n onClick={() => !isDisabled && onClick(option.value)}\n >\n {selected ? (\n <motion.div\n layoutId={layoutId || 'pixel-tabswitch-selected'}\n style={styles.selectedBg}\n />\n ) : null}\n\n {option.icon ? (\n <span style={{ display: 'inline-flex' }}>{option.icon}</span>\n ) : null}\n\n <Typography variant=\"b1\" fontWeight=\"bold\">\n {option.label}\n </Typography>\n </button>\n )\n}\n","// Types\nimport type { TabSwitchProps } from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createTabSwitchStyles<T>(props: TabSwitchProps<T>) {\n const { fitContent, backgroundColor, variant } = props\n\n return styled({\n container: {\n display: 'flex',\n padding: '3px',\n flexDirection: 'row',\n alignItems: 'center',\n color: 'var(--px-text-primary, #4b5563)',\n width: fitContent ? 'fit-content' : '100%',\n backgroundColor: backgroundColor ?? 'transparent',\n borderBottom:\n variant === 'default'\n ? '1px solid var(--px-border-primary, #e5e7eb)'\n : 'unset',\n gap: 0,\n __rules: { '& svg': { zIndex: 1 } }\n }\n })\n}\n","// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Components\nimport { SwitchItem } from './components/TabSwitchItem'\n\n// Types\nimport type { TabSwitchProps } from './types'\n\n// Styles\nimport { createTabSwitchStyles } from './styles'\n\nexport * from './types'\n\nexport const TabSwitch = <T,>(props: TabSwitchProps<T>) => {\n {\n const {\n options,\n disabled,\n layoutId,\n currentValue,\n variant = 'default',\n onChange\n } = props\n\n const { styles, classes } = useThemedStyles(props, createTabSwitchStyles, {\n pick: p => [p.disabled, p.currentValue],\n override: props.styles,\n applyCommonProps: true\n })\n\n return (\n <div style={styles.container} className={classes.container}>\n {options.map(opt => (\n <SwitchItem\n key={String(opt.value)}\n option={opt}\n variant={variant}\n layoutId={layoutId}\n disabled={disabled}\n selectedColor={props.selectedColor}\n selected={currentValue === opt.value}\n selectedLabelColor={props.selectedLabelColor}\n onClick={onChange}\n />\n ))}\n </div>\n )\n }\n}\n"],"mappings":";;;;;;AAUA,SAAgB,0BAA0B,EACxC,SACA,UACA,UACA,iBACS;CACT,MAAM,SAAS,iBAAiB;A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gBAAgB;EACpC,iBAAiB,mBAAmB;EACpC,cACE,YAAY,YACR,gDACA;EACN,KAAK;EACL,SAAS,EAAE,SAAS,EAAE,QAAQ,GAAG,EAAE;EACpC,EACF,CAAC;;;;;ACTJ,MAAa,aAAiB,UAA6B;CACzD;EACE,MAAM,EACJ,SACA,UACA,UACA,cACA,UAAU,WACV,aACE;EAEJ,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,uBAAuB;GACxE,OAAM,MAAK,CAAC,EAAE,UAAU,EAAE,aAAa;GACvC,UAAU,MAAM;GAChB,kBAAkB;GACnB,CAAC;AAEF,SACE,oBAAC;GAAI,OAAO,OAAO;GAAW,WAAW,QAAQ;aAC9C,QAAQ,KAAI,QACX,oBAAC;IAEC,QAAQ;IACC;IACC;IACA;IACV,eAAe,MAAM;IACrB,UAAU,iBAAiB,IAAI;IAC/B,oBAAoB,MAAM;IAC1B,SAAS;MARJ,OAAO,IAAI,MAAM,CAStB,CACF;IACE"}
@@ -1,4 +1,4 @@
1
- import "./types-CRiyrGtn.js";
2
- import "./index-yetEYul3.js";
3
- import { t as BasePopover } from "./index-DPF3Lmsv.js";
1
+ import "./types-1ZNOd7Tt.js";
2
+ import "./index-ClRmImX5.js";
3
+ import { t as BasePopover } from "./index-WFi4Q5f-.js";
4
4
  export { BasePopover };
@@ -1,2 +1,2 @@
1
- import { t as Breadcrumb } from "./index-GDD7A_-t.js";
1
+ import { t as Breadcrumb } from "./index-DHTU_QTw.js";
2
2
  export { Breadcrumb };
package/dist/button.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import "./types-Cb6hrEtg.js";
2
- import { t as Button } from "./index-BsuIAPD6.js";
1
+ import "./types-Dr8EuEht.js";
2
+ import { t as Button } from "./index-DWfxn3wg.js";
3
3
  export { Button };
@@ -1,3 +1,3 @@
1
- import "./types-Cb6hrEtg.js";
2
- import { t as Checkbox } from "./index-4OeaL4BA.js";
1
+ import "./types-Dr8EuEht.js";
2
+ import { t as Checkbox } from "./index-CLVlLUW1.js";
3
3
  export { Checkbox };
@@ -1,2 +1,2 @@
1
- import { n as types_d_exports, t as ColorPicker } from "./index-ece25l8L.js";
1
+ import { n as types_d_exports, t as ColorPicker } from "./index-kc3NqscD.js";
2
2
  export { ColorPicker, types_d_exports as ColorPickerTypes };
@@ -1,2 +1,2 @@
1
- import { n as types_d_exports, t as ContextMenu } from "./index-Ba8g7YFv.js";
1
+ import { n as types_d_exports, t as ContextMenu } from "./index-Bxm90oSp.js";
2
2
  export { ContextMenu, types_d_exports as ContextMenuTypes };
@@ -1,2 +1,2 @@
1
- import { n as types_d_exports, t as DatePicker } from "./index-CiB4D7VH.js";
1
+ import { n as types_d_exports, t as DatePicker } from "./index-CsubfLNp.js";
2
2
  export { DatePicker, types_d_exports as DatePickerTypes };
@@ -4,10 +4,11 @@ import "./useFloating-CS5NHgoq.js";
4
4
  import "./Popover-DwxxEmVF.js";
5
5
  import "./Icon-Ded27Khw.js";
6
6
  import "./Typography-DOmGYHd6.js";
7
- import { n as types_exports, t as DatePicker } from "./DatePicker-QLL-43NJ.js";
7
+ import { n as types_exports, t as DatePicker } from "./DatePicker-Bl7pIrHR.js";
8
8
  import "./BasePopover-BvMT9rNx.js";
9
9
  import "./Label-DYeW5MAo.js";
10
10
  import "./Loader-DD_kbMHz.js";
11
11
  import "./Button-CxAl6MNt.js";
12
+ import "./MaskModule-CQXVHDuV.js";
12
13
 
13
14
  export { DatePicker, types_exports as DatePickerTypes };
@@ -1,2 +1,2 @@
1
- import { t as IconButton } from "./index-duKRdLdx.js";
1
+ import { t as IconButton } from "./index-BnNahlXB.js";
2
2
  export { IconButton };
@@ -1,4 +1,4 @@
1
1
  import "./useThemedStyles-B1E0m8Ih.js";
2
- import { t as IconButton } from "./IconButton-qBhQj30V.js";
2
+ import { t as IconButton } from "./IconButton-BGiieVPY.js";
3
3
 
4
4
  export { IconButton };
@@ -1,4 +1,5 @@
1
1
  import { a as TextProps } from "./styleProps-B2q_-j9h.js";
2
+ import { r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
2
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
4
 
4
5
  //#region src/components/commons/inputs/TextArea/styles.d.ts
@@ -48,7 +49,7 @@ interface TextAreaProps {
48
49
  label?: string;
49
50
  delay?: number;
50
51
  placeholder?: string;
51
- styles?: Partial<ReturnType<typeof createTextAreaStyles>>;
52
+ styles?: TypeStyles<typeof createTextAreaStyles>;
52
53
  required?: boolean;
53
54
  disabled?: boolean;
54
55
  readOnly?: boolean;
@@ -69,4 +70,4 @@ interface TextAreaProps {
69
70
  declare const TextArea: (props: TextAreaProps) => react_jsx_runtime0.JSX.Element;
70
71
  //#endregion
71
72
  export { TextArea as t };
72
- //# sourceMappingURL=index-DWVxezNc.d.ts.map
73
+ //# sourceMappingURL=index-2hmoLtaJ.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
1
2
  import { MouseEvent, ReactNode } from "react";
2
3
 
3
4
  //#region src/components/commons/buttons/IconButton/styles.d.ts
@@ -39,7 +40,8 @@ interface IconButtonProps {
39
40
  variant?: IconButtonVariant;
40
41
  backgroundColor?: string;
41
42
  borderColor?: string;
42
- styles?: Partial<ReturnType<typeof createIconButtonStyles>>;
43
+ rounded?: string;
44
+ styles?: TypeStyles<typeof createIconButtonStyles>;
43
45
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
44
46
  }
45
47
  type IconButtonSize = 'xs' | 'sm' | 'md' | 'lg' | (string & {});
@@ -49,4 +51,4 @@ type IconButtonVariant = 'filled' | 'outlined' | 'ghost';
49
51
  declare const IconButton: React.FC<IconButtonProps>;
50
52
  //#endregion
51
53
  export { IconButton as t };
52
- //# sourceMappingURL=index-duKRdLdx.d.ts.map
54
+ //# sourceMappingURL=index-BnNahlXB.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
1
2
  import { n as Placement } from "./types-C4eY6XF3.js";
2
3
  import { ReactNode } from "react";
3
4
  import * as react_jsx_runtime1 from "react/jsx-runtime";
@@ -63,11 +64,11 @@ interface ContextMenuProps<T> {
63
64
  columnWidth?: number;
64
65
  placement?: Placement;
65
66
  onSelect: (actionId: T) => void;
66
- styles?: Partial<ReturnType<typeof createContextMenuStyles>>;
67
+ styles?: TypeStyles<typeof createContextMenuStyles>;
67
68
  }
68
69
  //#endregion
69
70
  //#region src/components/commons/toolkit/ContextMenu/index.d.ts
70
71
  declare const ContextMenu: <T extends string>(props: ContextMenuProps<T>) => react_jsx_runtime1.JSX.Element;
71
72
  //#endregion
72
73
  export { types_d_exports as n, ContextMenu as t };
73
- //# sourceMappingURL=index-Ba8g7YFv.d.ts.map
74
+ //# sourceMappingURL=index-Bxm90oSp.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as TypographyVariant } from "./types-Cb6hrEtg.js";
1
+ import { n as TypographyVariant } from "./types-Dr8EuEht.js";
2
2
  import React$1 from "react";
3
3
 
4
4
  //#region src/components/commons/toolkit/Checkbox/types.d.ts
@@ -26,4 +26,4 @@ interface CheckboxProps {
26
26
  declare const Checkbox: React$1.FC<CheckboxProps>;
27
27
  //#endregion
28
28
  export { Checkbox as t };
29
- //# sourceMappingURL=index-4OeaL4BA.d.ts.map
29
+ //# sourceMappingURL=index-CLVlLUW1.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-B2q_-j9h.js";
2
- import { r as StylesOf } from "./useThemedStyles-BVQKnv5r.js";
2
+ import { r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
3
3
  import { t as FloatingOptions } from "./types-C4eY6XF3.js";
4
- import { t as PopoverProps } from "./types-CRiyrGtn.js";
4
+ import { t as PopoverProps } from "./types-1ZNOd7Tt.js";
5
5
  import React$1 from "react";
6
6
 
7
7
  //#region src/components/commons/inputs/Select/styles.d.ts
@@ -70,7 +70,7 @@ interface SelectProps extends LayoutProps, MarginProps {
70
70
  errorMessage?: string;
71
71
  maxVisibleItems?: number;
72
72
  startIcon?: React.ReactNode;
73
- styles?: StylesOf<typeof createSelectStyles>;
73
+ styles?: TypeStyles<typeof createSelectStyles>;
74
74
  requiredColor?: string;
75
75
  labelConfig?: TextProps;
76
76
  onChange: (value: string[]) => void;
@@ -84,4 +84,4 @@ interface SelectOption {
84
84
  declare const Select: React$1.FC<SelectProps>;
85
85
  //#endregion
86
86
  export { types_d_exports as n, Select as t };
87
- //# sourceMappingURL=index-CKz33qjm.d.ts.map
87
+ //# sourceMappingURL=index-Cg9O1rrv.d.ts.map
@@ -1,8 +1,8 @@
1
- import { t as PopoverProps } from "./types-CRiyrGtn.js";
1
+ import { t as PopoverProps } from "./types-1ZNOd7Tt.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/commons/toolkit/Popover/index.d.ts
5
5
  declare const Popover: React.FC<PopoverProps>;
6
6
  //#endregion
7
7
  export { Popover as t };
8
- //# sourceMappingURL=index-yetEYul3.d.ts.map
8
+ //# sourceMappingURL=index-ClRmImX5.d.ts.map
@@ -4,6 +4,8 @@ import React from "react";
4
4
  interface CalendarProps {
5
5
  value: PickedDate | undefined;
6
6
  selectionMode: CalendarSelectionMode;
7
+ dateFormat?: string;
8
+ timeFormat?: TimeFormat;
7
9
  isDateTimePicker?: boolean;
8
10
  viewMode?: CalendarViewMode;
9
11
  disablePastDates?: boolean;
@@ -16,8 +18,9 @@ interface PickedDate {
16
18
  type CalendarViewMode = 'single' | 'double';
17
19
  type CalendarSelectionMode = 'single' | 'range';
18
20
  type CalendarNavAction = 'next-month' | 'prev-month' | 'next-year' | 'prev-year';
21
+ type TimeFormat = '24h' | '12h';
19
22
  declare namespace types_d_exports {
20
- export { CalendarNavAction, CalendarProps, CalendarSelectionMode, CalendarViewMode, DatePickerProps, PickedDate };
23
+ export { CalendarNavAction, CalendarProps, CalendarSelectionMode, CalendarViewMode, DatePickerProps, PickedDate, TimeFormat };
21
24
  }
22
25
  interface DatePickerProps {
23
26
  label: string;
@@ -39,4 +42,4 @@ interface DatePickerProps {
39
42
  declare const DatePicker: React.FC<DatePickerProps>;
40
43
  //#endregion
41
44
  export { types_d_exports as n, DatePicker as t };
42
- //# sourceMappingURL=index-CiB4D7VH.d.ts.map
45
+ //# sourceMappingURL=index-CsubfLNp.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as StyleMap } from "./useThemedStyles-BVQKnv5r.js";
1
+ import { n as StyleMap, r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/commons/structure/Skeleton/styles.d.ts
@@ -9,11 +9,11 @@ interface SkeletonProps {
9
9
  width?: string;
10
10
  height?: string;
11
11
  borderRadius?: string;
12
- styles?: Partial<ReturnType<typeof createSkeletonStyles>>;
12
+ styles?: TypeStyles<typeof createSkeletonStyles>;
13
13
  }
14
14
  //#endregion
15
15
  //#region src/components/commons/structure/Skeleton/index.d.ts
16
16
  declare const Skeleton: React.FC<SkeletonProps>;
17
17
  //#endregion
18
18
  export { Skeleton as t };
19
- //# sourceMappingURL=index-B-QrzzEt.d.ts.map
19
+ //# sourceMappingURL=index-CtH8kbOn.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as StyleMap } from "./useThemedStyles-BVQKnv5r.js";
1
+ import { n as StyleMap, r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
2
2
  import React$1 from "react";
3
3
 
4
4
  //#region src/components/commons/structure/Breadcrumb/styles.d.ts
@@ -12,7 +12,7 @@ interface BreadcrumbProps {
12
12
  loadingItemsCount?: number;
13
13
  items: PageOption[];
14
14
  labelSize?: string;
15
- styles?: Partial<ReturnType<typeof createBreadcrumbStyles>>;
15
+ styles?: TypeStyles<typeof createBreadcrumbStyles>;
16
16
  }
17
17
  interface PageOption {
18
18
  href?: string;
@@ -26,4 +26,4 @@ interface PageOption {
26
26
  declare const Breadcrumb: React$1.FC<BreadcrumbProps>;
27
27
  //#endregion
28
28
  export { Breadcrumb as t };
29
- //# sourceMappingURL=index-GDD7A_-t.d.ts.map
29
+ //# sourceMappingURL=index-DHTU_QTw.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { i as PaddingProps, n as LayoutProps } from "./styleProps-B2q_-j9h.js";
2
- import { i as TypeStyles } from "./useThemedStyles-BVQKnv5r.js";
3
- import { n as TypographyVariant } from "./types-Cb6hrEtg.js";
2
+ import { r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
3
+ import { n as TypographyVariant } from "./types-Dr8EuEht.js";
4
4
  import React, { MouseEvent, ReactNode } from "react";
5
5
 
6
6
  //#region src/components/commons/buttons/Button/styles.d.ts
@@ -123,4 +123,4 @@ interface ButtonProps extends PaddingProps, LayoutProps {
123
123
  declare const Button: React.FC<ButtonProps>;
124
124
  //#endregion
125
125
  export { Button as t };
126
- //# sourceMappingURL=index-BsuIAPD6.d.ts.map
126
+ //# sourceMappingURL=index-DWfxn3wg.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import { t as CommonStyleProps } from "./styleProps-B2q_-j9h.js";
2
+ import { r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
2
3
  import { ReactNode } from "react";
3
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
5
 
@@ -6,10 +7,12 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
7
  declare function createTabSwitchStyles<T>(props: TabSwitchProps<T>): {
7
8
  container: {
8
9
  display: "flex";
10
+ padding: string;
9
11
  flexDirection: "row";
10
12
  alignItems: "center";
11
13
  color: "var(--px-text-primary, #4b5563)";
12
14
  width: string;
15
+ backgroundColor: string;
13
16
  borderBottom: string;
14
17
  gap: number;
15
18
  __rules: {
@@ -34,9 +37,10 @@ interface TabSwitchProps<T> extends CommonStyleProps {
34
37
  fitContent?: boolean;
35
38
  layoutId?: string;
36
39
  selectedColor?: string;
40
+ backgroundColor?: string;
37
41
  selectedLabelColor?: string;
38
42
  variant?: 'default' | 'underline';
39
- styles?: Partial<ReturnType<typeof createTabSwitchStyles>>;
43
+ styles?: TypeStyles<typeof createTabSwitchStyles>;
40
44
  onChange: (value: T) => void;
41
45
  }
42
46
  //#endregion
@@ -44,4 +48,4 @@ interface TabSwitchProps<T> extends CommonStyleProps {
44
48
  declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime0.JSX.Element;
45
49
  //#endregion
46
50
  export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
47
- //# sourceMappingURL=index-DZ68m68y.d.ts.map
51
+ //# sourceMappingURL=index-Glw8jQ-T.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as PopoverProps } from "./types-CRiyrGtn.js";
1
+ import { t as PopoverProps } from "./types-1ZNOd7Tt.js";
2
2
  import React, { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/commons/structure/BasePopover/types.d.ts
@@ -19,4 +19,4 @@ interface BasePopoverProps extends Omit<PopoverProps, 'content' | 'hideShadow'>,
19
19
  declare const BasePopover: React.FC<BasePopoverProps>;
20
20
  //#endregion
21
21
  export { BasePopover as t };
22
- //# sourceMappingURL=index-DPF3Lmsv.d.ts.map
22
+ //# sourceMappingURL=index-WFi4Q5f-.d.ts.map
@@ -22,6 +22,7 @@ declare const MaskType: {
22
22
  readonly DOCUMENT: "DOCUMENT";
23
23
  readonly PHONE: "PHONE";
24
24
  readonly DATE: "DATE";
25
+ readonly TIME: "TIME";
25
26
  readonly FLOAT: "FLOAT";
26
27
  readonly INTEGER: "INTEGER";
27
28
  readonly MONEY: "MONEY";
@@ -142,4 +143,4 @@ declare const MaskModule: {
142
143
  };
143
144
  //#endregion
144
145
  export { Locale as n, MaskType as r, MaskModule as t };
145
- //# sourceMappingURL=index-c9Jj2h1z.d.ts.map
146
+ //# sourceMappingURL=index-ftKfqd7S.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-B2q_-j9h.js";
2
- import { r as StylesOf } from "./useThemedStyles-BVQKnv5r.js";
2
+ import { r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
3
3
 
4
4
  //#region src/components/commons/inputs/ColorPicker/styles.d.ts
5
5
  declare function createColorPickerStyles(props: ColorPickerProps): {
@@ -63,7 +63,7 @@ interface ColorPickerProps extends LayoutProps, MarginProps {
63
63
  borderRadius?: string;
64
64
  requiredColor?: string;
65
65
  labelConfig?: TextProps;
66
- styles?: StylesOf<typeof createColorPickerStyles>;
66
+ styles?: TypeStyles<typeof createColorPickerStyles>;
67
67
  onChange: (value: string) => void;
68
68
  }
69
69
  //#endregion
@@ -71,4 +71,4 @@ interface ColorPickerProps extends LayoutProps, MarginProps {
71
71
  declare const ColorPicker: React.FC<ColorPickerProps>;
72
72
  //#endregion
73
73
  export { types_d_exports as n, ColorPicker as t };
74
- //# sourceMappingURL=index-ece25l8L.d.ts.map
74
+ //# sourceMappingURL=index-kc3NqscD.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-B2q_-j9h.js";
2
- import { r as StylesOf } from "./useThemedStyles-BVQKnv5r.js";
3
- import { r as MaskType } from "./index-c9Jj2h1z.js";
2
+ import { r as TypeStyles } from "./useThemedStyles-B9fVE7Wy.js";
3
+ import { r as MaskType } from "./index-ftKfqd7S.js";
4
4
  import * as react0 from "react";
5
5
  import { HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from "react";
6
6
 
@@ -87,7 +87,7 @@ interface InputProps extends LayoutProps, MarginProps {
87
87
  autoCapitalize?: InputHTMLAttributes<HTMLInputElement>['autoCapitalize'];
88
88
  endIcon?: ReactNode;
89
89
  startIcon?: ReactNode;
90
- styles?: StylesOf<typeof createInputStyles>;
90
+ styles?: TypeStyles<typeof createInputStyles>;
91
91
  requiredColor?: string;
92
92
  labelConfig?: TextProps;
93
93
  onChange: (value: string) => void;
@@ -101,4 +101,4 @@ interface InputMethods {
101
101
  declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<InputMethods>>;
102
102
  //#endregion
103
103
  export { Input as t };
104
- //# sourceMappingURL=index-DZWn08ZM.d.ts.map
104
+ //# sourceMappingURL=index-y5WY0xGq.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,27 +1,27 @@
1
- import "./types-Cb6hrEtg.js";
2
- import { t as Button } from "./index-BsuIAPD6.js";
3
- import { t as IconButton } from "./index-duKRdLdx.js";
4
- import { n as types_d_exports$1, t as ColorPicker } from "./index-ece25l8L.js";
5
- import { n as types_d_exports$3, t as DatePicker } from "./index-CiB4D7VH.js";
6
- import { n as Locale, r as MaskType, t as MaskModule } from "./index-c9Jj2h1z.js";
7
- import { t as Input } from "./index-DZWn08ZM.js";
1
+ import "./types-Dr8EuEht.js";
2
+ import { t as Button } from "./index-DWfxn3wg.js";
3
+ import { t as IconButton } from "./index-BnNahlXB.js";
4
+ import { n as types_d_exports$1, t as ColorPicker } from "./index-kc3NqscD.js";
5
+ import { n as types_d_exports$3, t as DatePicker } from "./index-CsubfLNp.js";
6
+ import { n as Locale, r as MaskType, t as MaskModule } from "./index-ftKfqd7S.js";
7
+ import { t as Input } from "./index-y5WY0xGq.js";
8
8
  import { t as SearchInput } from "./index-CHvftTxv.js";
9
- import { n as types_d_exports$5, t as Select } from "./index-CKz33qjm.js";
10
- import { n as types_d_exports$4 } from "./types-CRiyrGtn.js";
11
- import { t as TextArea } from "./index-DWVxezNc.js";
12
- import { t as Popover } from "./index-yetEYul3.js";
13
- import { t as BasePopover } from "./index-DPF3Lmsv.js";
14
- import { t as Breadcrumb } from "./index-GDD7A_-t.js";
15
- import { t as Skeleton } from "./index-B-QrzzEt.js";
9
+ import { n as types_d_exports$5, t as Select } from "./index-Cg9O1rrv.js";
10
+ import { n as types_d_exports$4 } from "./types-1ZNOd7Tt.js";
11
+ import { t as TextArea } from "./index-2hmoLtaJ.js";
12
+ import { t as Popover } from "./index-ClRmImX5.js";
13
+ import { t as BasePopover } from "./index-WFi4Q5f-.js";
14
+ import { t as Breadcrumb } from "./index-DHTU_QTw.js";
15
+ import { t as Skeleton } from "./index-CtH8kbOn.js";
16
16
  import { t as CheckItem } from "./index-D3HezA0l.js";
17
- import { t as Checkbox } from "./index-4OeaL4BA.js";
17
+ import { t as Checkbox } from "./index-CLVlLUW1.js";
18
18
  import { r as types_d_exports } from "./types-DaDG9cRW.js";
19
19
  import { Chip } from "./chip.js";
20
20
  import { t as ChipList } from "./index-CRG-GDQG.js";
21
- import { n as types_d_exports$2, t as ContextMenu } from "./index-Ba8g7YFv.js";
21
+ import { n as types_d_exports$2, t as ContextMenu } from "./index-Bxm90oSp.js";
22
22
  import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
23
23
  import { t as Switch } from "./index-JY4VS1B7.js";
24
- import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-DZ68m68y.js";
24
+ import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-Glw8jQ-T.js";
25
25
  import { Typography } from "./typography.js";
26
26
  import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-vh_aAfJM.js";
27
27
  import { useDismiss } from "./use-dismiss.js";