{"version":3,"file":"ActionIcon.module.cjs","names":[],"sources":["../../../src/components/ActionIcon/ActionIcon.module.css"],"sourcesContent":[".root {\n  --ai-size-xs: 18px;\n  --ai-size-sm: 22px;\n  --ai-size-md: 28px;\n  --ai-size-lg: 34px;\n  --ai-size-xl: 44px;\n\n  --ai-size-input-xs: 30px;\n  --ai-size-input-sm: 36px;\n  --ai-size-input-md: 42px;\n  --ai-size-input-lg: 50px;\n  --ai-size-input-xl: 60px;\n\n  --ai-size: var(--ai-size-md);\n  --ai-color: var(--mantine-color-white);\n\n  line-height: 1;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  position: relative;\n  user-select: none;\n  overflow: hidden;\n\n  width: var(--ai-size);\n  height: var(--ai-size);\n  min-width: var(--ai-size);\n  min-height: var(--ai-size);\n  border-radius: var(--ai-radius, var(--mantine-radius-default));\n  background: var(--ai-bg, var(--mantine-primary-color-filled));\n  color: var(--ai-color, var(--mantine-color-white));\n  border: var(--ai-bd, rem(1px) solid transparent);\n  cursor: pointer;\n\n  @mixin hover {\n    &:where(:not([data-loading], :disabled, [data-disabled])) {\n      background-color: var(--ai-hover, var(--mantine-primary-color-filled-hover));\n      color: var(--ai-hover-color, var(--ai-color));\n    }\n  }\n\n  &[data-loading] {\n    cursor: not-allowed;\n\n    & .icon {\n      opacity: 0;\n      transform: translateY(100%);\n    }\n  }\n\n  &:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {\n    cursor: not-allowed;\n    border: 1px solid transparent;\n    color: var(--mantine-color-disabled-color);\n    background: var(--mantine-color-disabled);\n\n    &:active {\n      transform: none;\n    }\n  }\n}\n\n.loader {\n  inset: -1px;\n  position: absolute;\n  border-radius: var(--ai-radius, var(--mantine-radius-default));\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  @mixin where-light {\n    background-color: rgba(255, 255, 255, 0.15);\n  }\n\n  @mixin where-dark {\n    background-color: rgba(0, 0, 0, 0.15);\n  }\n}\n\n.group {\n  --ai-border-width: 1px;\n  display: flex;\n\n  & :where(*) {\n    &:focus {\n      position: relative;\n      z-index: 1;\n    }\n  }\n\n  &[data-orientation='horizontal'] {\n    flex-direction: row;\n\n    & .root,\n    & .groupSection {\n      &:not(:only-child):first-child {\n        border-end-end-radius: 0;\n        border-start-end-radius: 0;\n        border-inline-end-width: calc(var(--ai-border-width) / 2);\n      }\n\n      &:not(:only-child):last-child {\n        border-end-start-radius: 0;\n        border-start-start-radius: 0;\n        border-inline-start-width: calc(var(--ai-border-width) / 2);\n      }\n\n      &:not(:only-child):not(:first-child):not(:last-child) {\n        border-radius: 0;\n        border-inline-width: calc(var(--ai-border-width) / 2);\n      }\n    }\n  }\n\n  &[data-orientation='vertical'] {\n    flex-direction: column;\n\n    & .root,\n    & .groupSection {\n      &:not(:only-child):first-child {\n        border-end-start-radius: 0;\n        border-end-end-radius: 0;\n        border-bottom-width: calc(var(--ai-border-width) / 2);\n      }\n\n      &:not(:only-child):last-child {\n        border-start-start-radius: 0;\n        border-start-end-radius: 0;\n        border-top-width: calc(var(--ai-border-width) / 2);\n      }\n\n      &:not(:only-child):not(:first-child):not(:last-child) {\n        border-radius: 0;\n        border-bottom-width: calc(var(--ai-border-width) / 2);\n        border-top-width: calc(var(--ai-border-width) / 2);\n      }\n    }\n  }\n}\n\n.icon {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  transition:\n    transform 150ms ease,\n    opacity 100ms ease;\n  width: 100%;\n  height: 100%;\n}\n\n.groupSection {\n  --section-height-xs: 18px;\n  --section-height-sm: 22px;\n  --section-height-md: 28px;\n  --section-height-lg: 34px;\n  --section-height-xl: 44px;\n\n  --section-height-input-xs: 30px;\n  --section-height-input-sm: 36px;\n  --section-height-input-md: 42px;\n  --section-height-input-lg: 50px;\n  --section-height-input-xl: 60px;\n\n  --section-padding-x-xs: 6px;\n  --section-padding-x-sm: 8px;\n  --section-padding-x-md: 10px;\n  --section-padding-x-lg: 12px;\n  --section-padding-x-xl: 16px;\n\n  --section-height: var(--section-height-sm);\n  --section-padding-x: var(--section-padding-x-sm);\n  --section-color: var(--mantine-color-white);\n\n  font-weight: var(--mantine-font-weight-medium);\n  width: auto;\n  border-radius: var(--section-radius, var(--mantine-radius-default));\n  font-size: var(--section-fz, var(--mantine-font-size-sm));\n  background: var(--section-bg, var(--mantine-primary-color-filled));\n  border: var(--section-bd, rem(1px) solid transparent);\n  color: var(--section-color, var(--mantine-color-white));\n  height: var(--section-height, var(--section-height-sm));\n  padding-inline: var(--section-padding-x, var(--section-padding-x-sm));\n  vertical-align: middle;\n  line-height: 1;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n}\n"],"mappings":""}