{"version":3,"file":"Toolbar.module.mjs","names":[],"sources":["../../../src/components/Toolbar/Toolbar.module.css"],"sourcesContent":[".root {\n  --toolbar-toggle-size-xs: 22px;\n  --toolbar-toggle-size-sm: 26px;\n  --toolbar-toggle-size-md: 30px;\n  --toolbar-toggle-size-lg: 36px;\n  --toolbar-toggle-size-xl: 42px;\n\n  --toolbar-padding-xs: 4px;\n  --toolbar-padding-sm: 5px;\n  --toolbar-padding-md: 6px;\n  --toolbar-padding-lg: 8px;\n  --toolbar-padding-xl: 12px;\n\n  --toolbar-gap-xs: calc(var(--mantine-spacing-xs) / 2);\n  --toolbar-gap-sm: var(--mantine-spacing-xs);\n  --toolbar-gap-md: var(--mantine-spacing-sm);\n  --toolbar-gap-lg: var(--mantine-spacing-sm);\n  --toolbar-gap-xl: var(--mantine-spacing-md);\n\n  --toolbar-toggle-size: var(--toolbar-toggle-size-md);\n  --toolbar-padding: var(--toolbar-padding-md);\n  --toolbar-gap: var(--toolbar-gap-md);\n  --_tr: var(--toolbar-radius, var(--mantine-radius-default));\n  --toolbar-toggle-radius: max(calc(var(--_tr) - var(--toolbar-padding)), min(var(--_tr), 2px));\n\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n  gap: var(--toolbar-gap);\n  background-color: var(--mantine-color-body);\n  border-radius: var(--toolbar-radius, var(--mantine-radius-default));\n  padding: var(--toolbar-padding);\n\n  &:where([data-with-border]) {\n    border: 1px solid;\n\n    @mixin where-light {\n      border-color: var(--mantine-color-gray-4);\n    }\n\n    @mixin where-dark {\n      border-color: var(--mantine-color-dark-4);\n    }\n  }\n\n  &:where([data-orientation='vertical']) {\n    flex-direction: column;\n    align-items: stretch;\n    width: fit-content;\n  }\n}\n\n.group {\n  display: flex;\n  background-color: var(--mantine-color-body);\n\n  & :where([data-toolbar-toggle]) {\n    &:focus-visible {\n      position: relative;\n      z-index: 1;\n    }\n\n    &:not(:only-child):first-child {\n      border-end-end-radius: 0;\n      border-start-end-radius: 0;\n      border-inline-end-width: calc(1px / 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(1px / 2);\n    }\n\n    &:not(:only-child):not(:first-child):not(:last-child) {\n      border-radius: 0;\n      border-inline-width: calc(1px / 2);\n    }\n  }\n\n  &:where([data-orientation='vertical']) {\n    flex-direction: column;\n\n    & :where([data-toolbar-toggle]) {\n      &:not(:only-child):first-child {\n        border-end-start-radius: 0;\n        border-end-end-radius: 0;\n        border-start-end-radius: var(--toolbar-toggle-radius);\n        border-inline-end-width: 1px;\n        border-bottom-width: calc(1px / 2);\n      }\n\n      &:not(:only-child):last-child {\n        border-start-start-radius: 0;\n        border-start-end-radius: 0;\n        border-end-start-radius: var(--toolbar-toggle-radius);\n        border-inline-start-width: 1px;\n        border-top-width: calc(1px / 2);\n      }\n\n      &:not(:only-child):not(:first-child):not(:last-child) {\n        border-radius: 0;\n        border-inline-width: 1px;\n        border-bottom-width: calc(1px / 2);\n        border-top-width: calc(1px / 2);\n      }\n    }\n  }\n}\n\n.toggle {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border-radius: var(--toolbar-toggle-radius);\n  cursor: var(--mantine-cursor-type);\n  appearance: none;\n  text-decoration: none;\n  line-height: 1;\n  user-select: none;\n  font-size: var(--mantine-font-size-xs);\n  width: var(--toolbar-toggle-size);\n  min-width: var(--toolbar-toggle-size);\n  height: var(--toolbar-toggle-size);\n  padding: calc(var(--toolbar-toggle-size) / 5);\n  border: 1px solid;\n  font-weight: var(--mantine-font-weight-medium);\n\n  &:where([data-auto-width]) {\n    width: auto;\n    padding: 0 calc(var(--toolbar-toggle-size) / 4);\n  }\n\n  @mixin where-light {\n    background-color: var(--mantine-color-white);\n    border-color: var(--mantine-color-gray-4);\n    color: var(--mantine-color-gray-7);\n  }\n\n  @mixin where-dark {\n    background-color: var(--mantine-color-dark-6);\n    border-color: var(--mantine-color-dark-4);\n    color: var(--mantine-color-dark-1);\n  }\n\n  @mixin hover {\n    &:where(:not([data-disabled], [data-active])) {\n      @mixin where-light {\n        background-color: var(--mantine-color-gray-0);\n      }\n\n      @mixin where-dark {\n        background-color: var(--mantine-color-dark-5);\n      }\n    }\n  }\n\n  &:where([data-active]) {\n    background-color: var(--toolbar-toggle-active-bg, var(--mantine-primary-color-light));\n    color: var(--toolbar-toggle-active-color, var(--mantine-primary-color-light-color));\n    border-color: transparent;\n\n    @mixin hover {\n      &:where(:not([data-disabled])) {\n        background-color: var(\n          --toolbar-toggle-active-hover,\n          var(--mantine-primary-color-light-hover)\n        );\n      }\n    }\n  }\n\n  &:where([data-disabled]) {\n    cursor: not-allowed;\n    color: var(--mantine-color-disabled-color);\n    background-color: var(--mantine-color-disabled);\n    border-color: transparent;\n  }\n\n  &:where([data-disabled][data-active]) {\n    @mixin where-light {\n      background-color: var(--mantine-color-gray-4);\n      color: var(--mantine-color-gray-6);\n    }\n\n    @mixin where-dark {\n      background-color: var(--mantine-color-dark-4);\n      color: var(--mantine-color-dark-2);\n    }\n  }\n}\n\n.divider {\n  @mixin where-light {\n    background-color: var(--mantine-color-gray-4);\n  }\n\n  @mixin where-dark {\n    background-color: var(--mantine-color-dark-4);\n  }\n\n  &:where([data-orientation='horizontal']) {\n    width: 1px;\n    align-self: stretch;\n  }\n\n  &:where([data-orientation='vertical']) {\n    height: 1px;\n    align-self: stretch;\n  }\n}\n"],"mappings":""}