@taiga-ui/kit 4.81.0 → 4.83.0

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 (135) hide show
  1. package/components/segmented/segmented.component.d.ts +2 -1
  2. package/esm2022/components/avatar/avatar-labeled.component.mjs +7 -4
  3. package/esm2022/components/avatar/avatar-outline.directive.mjs +6 -4
  4. package/esm2022/components/avatar/avatar-stack.component.mjs +5 -3
  5. package/esm2022/components/badge/badge.directive.mjs +6 -4
  6. package/esm2022/components/block/block.directive.mjs +6 -4
  7. package/esm2022/components/checkbox/checkbox.component.mjs +5 -3
  8. package/esm2022/components/chip/chip.directive.mjs +9 -5
  9. package/esm2022/components/comment/comment.directive.mjs +6 -4
  10. package/esm2022/components/compass/compass.component.mjs +5 -3
  11. package/esm2022/components/files/files/files.component.mjs +7 -5
  12. package/esm2022/components/files/files.validators.mjs +3 -3
  13. package/esm2022/components/input-date/input-date.component.mjs +5 -3
  14. package/esm2022/components/input-date-time/input-date-time.component.mjs +7 -3
  15. package/esm2022/components/input-inline/input-inline.component.mjs +6 -3
  16. package/esm2022/components/input-month/input-month.component.mjs +5 -4
  17. package/esm2022/components/input-number/step/input-number-step.component.mjs +5 -3
  18. package/esm2022/components/input-time/input-time.component.mjs +7 -3
  19. package/esm2022/components/like/like.component.mjs +5 -3
  20. package/esm2022/components/message/message.directive.mjs +8 -4
  21. package/esm2022/components/pin/pin.directive.mjs +6 -4
  22. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +6 -4
  23. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +6 -4
  24. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +5 -3
  25. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +6 -4
  26. package/esm2022/components/radio/radio.component.mjs +5 -3
  27. package/esm2022/components/radio-list/radio-list.component.mjs +5 -4
  28. package/esm2022/components/segmented/segmented.component.mjs +10 -4
  29. package/esm2022/components/shrink-wrap/shrink-wrap.component.mjs +6 -3
  30. package/esm2022/components/status/status.directive.mjs +6 -4
  31. package/esm2022/components/switch/switch.component.mjs +5 -3
  32. package/esm2022/components/tabs/tab.directive.mjs +4 -2
  33. package/esm2022/components/tabs/tabs.directive.mjs +6 -4
  34. package/esm2022/components/tiles/tiles.component.mjs +6 -4
  35. package/esm2022/components/toast/toast.directive.mjs +8 -4
  36. package/esm2022/directives/button-group/button-group.directive.mjs +8 -4
  37. package/esm2022/directives/chevron/chevron.directive.mjs +9 -5
  38. package/esm2022/directives/connected/connected.directive.mjs +6 -4
  39. package/esm2022/directives/fade/fade.directive.mjs +6 -4
  40. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +6 -4
  41. package/esm2022/directives/sensitive/sensitive.directive.mjs +6 -4
  42. package/esm2022/directives/shimmer/shimmer.directive.mjs +6 -4
  43. package/esm2022/directives/skeleton/skeleton.directive.mjs +6 -5
  44. package/esm2022/directives/tooltip/tooltip.directive.mjs +6 -4
  45. package/fesm2022/taiga-ui-kit-components-avatar.mjs +13 -8
  46. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-kit-components-badge.mjs +5 -3
  48. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-kit-components-block.mjs +5 -3
  50. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +4 -2
  52. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-kit-components-chip.mjs +8 -4
  54. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-kit-components-comment.mjs +5 -3
  56. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -2
  58. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-kit-components-files.mjs +8 -6
  60. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +6 -2
  62. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-kit-components-input-date.mjs +4 -3
  64. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +5 -2
  66. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-kit-components-input-month.mjs +4 -3
  68. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-kit-components-input-number.mjs +4 -3
  70. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-kit-components-input-time.mjs +6 -2
  72. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-kit-components-like.mjs +4 -2
  74. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-kit-components-message.mjs +7 -3
  76. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-pin.mjs +5 -3
  78. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +5 -3
  80. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-kit-components-preview.mjs +5 -4
  82. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-kit-components-progress.mjs +12 -8
  84. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +4 -3
  86. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-kit-components-radio.mjs +4 -3
  88. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-kit-components-segmented.mjs +9 -4
  90. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs +5 -2
  92. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-kit-components-status.mjs +5 -3
  94. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-kit-components-switch.mjs +4 -2
  96. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-kit-components-tabs.mjs +7 -5
  98. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-kit-components-tiles.mjs +5 -3
  100. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-kit-components-toast.mjs +7 -3
  102. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -3
  104. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +8 -4
  106. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-kit-directives-connected.mjs +5 -3
  108. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-kit-directives-fade.mjs +5 -3
  110. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +5 -3
  112. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +1 -1
  113. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +5 -3
  114. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +5 -3
  116. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +5 -4
  118. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +5 -3
  120. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  121. package/package.json +10 -10
  122. package/styles/components/badge.less +3 -4
  123. package/styles/components/block.less +1 -1
  124. package/styles/components/checkbox.less +1 -1
  125. package/styles/components/chip.less +2 -3
  126. package/styles/components/comment.less +1 -1
  127. package/styles/components/compass.less +1 -1
  128. package/styles/components/like.less +1 -1
  129. package/styles/components/message.less +1 -1
  130. package/styles/components/pin.less +1 -2
  131. package/styles/components/progress-bar.less +1 -1
  132. package/styles/components/radio.less +1 -1
  133. package/styles/components/status.less +3 -1
  134. package/styles/components/switch.less +1 -1
  135. package/styles/components/toast.less +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-tooltip.mjs","sources":["../../../projects/kit/directives/tooltip/tooltip.options.ts","../../../projects/kit/directives/tooltip/tooltip.directive.ts","../../../projects/kit/directives/tooltip/taiga-ui-kit-directives-tooltip.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport const [TUI_TOOLTIP_OPTIONS, tuiTooltipOptionsProvider] = tuiCreateOptions({\n icon: '',\n appearance: 'icon',\n});\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n type DoCheck,\n inject,\n Input,\n type Signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n tuiAppearanceOptionsProvider,\n tuiAppearanceState,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {\n TUI_HINT_OPTIONS,\n TuiHintDescribe,\n TuiHintDirective,\n TuiHintHover,\n} from '@taiga-ui/core/directives/hint';\nimport {TUI_ICON_START} from '@taiga-ui/core/tokens';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\nimport {map} from 'rxjs';\n\nimport {TUI_TOOLTIP_OPTIONS} from './tooltip.options';\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./tooltip.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-tooltip',\n },\n})\nclass TuiTooltipStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiTooltip]',\n providers: [\n tuiAppearanceOptionsProvider(TUI_TOOLTIP_OPTIONS),\n {\n provide: TUI_ICON_START,\n useFactory: () =>\n inject(TUI_TOOLTIP_OPTIONS).icon || inject(TUI_HINT_OPTIONS).icon,\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDescribe,\n inputs: ['tuiHintDescribe: tuiTooltipDescribe'],\n },\n {\n directive: TuiHintDirective,\n inputs: ['tuiHint: tuiTooltip', 'tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n tuiTooltip: '',\n '[attr.data-size]': 'size',\n '(click.prevent)': '0',\n '(mousedown)': 'onClick($event)',\n },\n})\nexport class TuiTooltip implements DoCheck {\n private readonly textfield = inject(TuiTextfieldComponent, {optional: true});\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly describe = inject(TuiHintDescribe);\n private readonly driver = inject(TuiHintHover);\n\n protected readonly nothing = tuiWithStyles(TuiTooltipStyles);\n protected readonly state: Signal<unknown> = tuiAppearanceState(\n toSignal(\n inject(TuiHintHover).pipe(\n map((hover) => (hover ? 'hover' : null)),\n tuiWatch(),\n ),\n {initialValue: null},\n ),\n );\n\n @Input()\n public size: TuiSizeS = 'm';\n\n public ngDoCheck(): void {\n if (this.textfield?.id) {\n this.describe.tuiHintDescribe = this.textfield.id;\n }\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n } else {\n this.driver.toggle();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAEa,CAAC,mBAAmB,EAAE,yBAAyB,CAAC,GAAG,gBAAgB,CAAC;AAC7E,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,UAAU,EAAE,MAAM;AACrB,CAAA;;AC2BD,MAUM,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,iHARR,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gxBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQV,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAVrB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,aAAa;AACvB,qBAAA,EAAA,MAAA,EAAA,CAAA,gxBAAA,CAAA,EAAA,CAAA;;AAIL,MA6Ba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wBACP,4BAA4B,CAAC,mBAAmB,CAAC;AACjD,wBAAA;AACI,4BAAA,OAAO,EAAE,cAAc;AACvB,4BAAA,UAAU,EAAE,MACR,MAAM,CAAC,mBAAmB,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI;AACxE,yBAAA;AACJ,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,iBAAiB;AACjB,wBAAA;AACI,4BAAA,SAAS,EAAE,eAAe;4BAC1B,MAAM,EAAE,CAAC,qCAAqC,CAAC;AAClD,yBAAA;AACD,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,gBAAgB,CAAC;AACzE,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,UAAU,EAAE,EAAE;AACd,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,iBAAiB,EAAE,GAAG;AACtB,wBAAA,aAAa,EAAE,iBAAiB;AACnC,qBAAA;AACJ,iBAAA,CAAA;8BAmBU,IAAI,EAAA,CAAA;sBADV,KAAK;;;AC1FV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-tooltip.mjs","sources":["../../../projects/kit/directives/tooltip/tooltip.options.ts","../../../projects/kit/directives/tooltip/tooltip.directive.ts","../../../projects/kit/directives/tooltip/taiga-ui-kit-directives-tooltip.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport const [TUI_TOOLTIP_OPTIONS, tuiTooltipOptionsProvider] = tuiCreateOptions({\n icon: '',\n appearance: 'icon',\n});\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n type DoCheck,\n inject,\n Input,\n type Signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n tuiAppearanceOptionsProvider,\n tuiAppearanceState,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {\n TUI_HINT_OPTIONS,\n TuiHintDescribe,\n TuiHintDirective,\n TuiHintHover,\n} from '@taiga-ui/core/directives/hint';\nimport {TUI_ICON_START} from '@taiga-ui/core/tokens';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\nimport {map} from 'rxjs';\n\nimport {TUI_TOOLTIP_OPTIONS} from './tooltip.options';\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./tooltip.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-tooltip',\n },\n})\nclass TuiTooltipStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiTooltip]',\n providers: [\n tuiAppearanceOptionsProvider(TUI_TOOLTIP_OPTIONS),\n {\n provide: TUI_ICON_START,\n useFactory: () =>\n inject(TUI_TOOLTIP_OPTIONS).icon || inject(TUI_HINT_OPTIONS).icon,\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDescribe,\n inputs: ['tuiHintDescribe: tuiTooltipDescribe'],\n },\n {\n directive: TuiHintDirective,\n inputs: ['tuiHint: tuiTooltip', 'tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n tuiTooltip: '',\n tuiTooltipV: TUI_VERSION,\n '[attr.data-size]': 'size',\n '(click.prevent)': '0',\n '(mousedown)': 'onClick($event)',\n },\n})\nexport class TuiTooltip implements DoCheck {\n private readonly textfield = inject(TuiTextfieldComponent, {optional: true});\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly describe = inject(TuiHintDescribe);\n private readonly driver = inject(TuiHintHover);\n\n protected readonly nothing = tuiWithStyles(TuiTooltipStyles);\n protected readonly state: Signal<unknown> = tuiAppearanceState(\n toSignal(\n inject(TuiHintHover).pipe(\n map((hover) => (hover ? 'hover' : null)),\n tuiWatch(),\n ),\n {initialValue: null},\n ),\n );\n\n @Input()\n public size: TuiSizeS = 'm';\n\n public ngDoCheck(): void {\n if (this.textfield?.id) {\n this.describe.tuiHintDescribe = this.textfield.id;\n }\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n } else {\n this.driver.toggle();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;MAEa,CAAC,mBAAmB,EAAE,yBAAyB,CAAC,GAAG,gBAAgB,CAAC;AAC7E,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,UAAU,EAAE,MAAM;AACrB,CAAA;;AC4BD,MAUM,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,iHARR,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,o5BAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQV,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAVrB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,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A,EAAA,CAAA;kBA9BtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,SAAS,EAAE;wBACP,4BAA4B,CAAC,mBAAmB,CAAC;AACjD,wBAAA;AACI,4BAAA,OAAO,EAAE,cAAc;AACvB,4BAAA,UAAU,EAAE,MACR,MAAM,CAAC,mBAAmB,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI;AACxE,yBAAA;AACJ,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,iBAAiB;AACjB,wBAAA;AACI,4BAAA,SAAS,EAAE,eAAe;4BAC1B,MAAM,EAAE,CAAC,qCAAqC,CAAC;AAClD,yBAAA;AACD,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,gBAAgB,CAAC;AACzE,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,UAAU,EAAE,EAAE;AACd,wBAAA,WAAW,EAAE,WAAW;AACxB,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,iBAAiB,EAAE,GAAG;AACtB,wBAAA,aAAa,EAAE,iBAAiB;AACnC,qBAAA;AACJ,iBAAA,CAAA;8BAmBU,IAAI,EAAA,CAAA;sBADV,KAAK;;;AC5FV;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/kit",
3
- "version": "4.81.0",
3
+ "version": "4.83.0",
4
4
  "description": "Taiga UI Angular main components kit",
5
5
  "keywords": [
6
6
  "angular",
@@ -227,18 +227,18 @@
227
227
  "esm": "./esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs",
228
228
  "default": "./fesm2022/taiga-ui-kit-components-input-date-multi.mjs"
229
229
  },
230
- "./components/input-date-time": {
231
- "types": "./components/input-date-time/index.d.ts",
232
- "esm2022": "./esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs",
233
- "esm": "./esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs",
234
- "default": "./fesm2022/taiga-ui-kit-components-input-date-time.mjs"
235
- },
236
230
  "./components/input-date-range": {
237
231
  "types": "./components/input-date-range/index.d.ts",
238
232
  "esm2022": "./esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs",
239
233
  "esm": "./esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs",
240
234
  "default": "./fesm2022/taiga-ui-kit-components-input-date-range.mjs"
241
235
  },
236
+ "./components/input-date-time": {
237
+ "types": "./components/input-date-time/index.d.ts",
238
+ "esm2022": "./esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs",
239
+ "esm": "./esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs",
240
+ "default": "./fesm2022/taiga-ui-kit-components-input-date-time.mjs"
241
+ },
242
242
  "./components/input-inline": {
243
243
  "types": "./components/input-inline/index.d.ts",
244
244
  "esm2022": "./esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs",
@@ -685,9 +685,9 @@
685
685
  "@ng-web-apis/intersection-observer": "^4.14.0",
686
686
  "@ng-web-apis/mutation-observer": "^4.14.0",
687
687
  "@ng-web-apis/resize-observer": "^4.14.0",
688
- "@taiga-ui/cdk": "4.81.0",
689
- "@taiga-ui/core": "4.81.0",
690
- "@taiga-ui/i18n": "4.81.0",
688
+ "@taiga-ui/cdk": "4.83.0",
689
+ "@taiga-ui/core": "4.83.0",
690
+ "@taiga-ui/i18n": "4.83.0",
691
691
  "@taiga-ui/polymorpheus": "^4.9.0",
692
692
  "rxjs": ">=7.0.0"
693
693
  },
@@ -16,8 +16,7 @@
16
16
  * @see-also
17
17
  * Icons, Appearance, Chip, Block
18
18
  */
19
- tui-badge,
20
- [tuiBadge] {
19
+ [tuiBadgeV='@{tui-version}'] {
21
20
  --t-icon-size: 1rem;
22
21
  --t-padding: 0 0.5rem;
23
22
  --t-size: var(--tui-height-xs);
@@ -116,12 +115,12 @@ tui-badge,
116
115
  }
117
116
  }
118
117
 
119
- img[tuiBadge] {
118
+ img[tuiBadgeV='@{tui-version}'] {
120
119
  padding: 0;
121
120
  inline-size: var(--t-size);
122
121
  }
123
122
 
124
- tui-icon[tuiBadge] {
123
+ tui-icon[tuiBadgeV='@{tui-version}'] {
125
124
  --t-margin: 0 !important;
126
125
 
127
126
  mask: none;
@@ -19,7 +19,7 @@
19
19
  * @see-also
20
20
  * Icons, Appearance, Link, Button
21
21
  */
22
- [tuiBlock] {
22
+ [tuiBlockV='@{tui-version}'] {
23
23
  --t-height: var(--tui-height-l);
24
24
  --t-radius: var(--tui-radius-l);
25
25
 
@@ -20,7 +20,7 @@
20
20
  * @see-also
21
21
  * Switch, Radio, Appearance
22
22
  */
23
- [tuiCheckbox] {
23
+ [tuiCheckboxV='@{tui-version}'] {
24
24
  --t-size: 1.5rem;
25
25
  --t-radius: var(--tui-radius-s);
26
26
 
@@ -16,8 +16,7 @@
16
16
  * @see-also
17
17
  * Icons, Appearance, Badge, Block
18
18
  */
19
- tui-chip,
20
- [tuiChip] {
19
+ [tuiChipV='@{tui-version}'] {
21
20
  --t-gap: 0.125rem;
22
21
  --t-margin: -0.125rem;
23
22
  --t-icon-size: 1rem;
@@ -136,7 +135,7 @@ tui-chip,
136
135
  }
137
136
  }
138
137
 
139
- input[tuiChip] {
138
+ input[tuiChipV='@{tui-version}'] {
140
139
  .interactive({
141
140
  cursor: text;
142
141
  });
@@ -13,7 +13,7 @@
13
13
  * @example
14
14
  * <label data-direction="top" tuiComment>Amazing product!</label>
15
15
  */
16
- [tuiComment] {
16
+ [tuiCommentV='@{tui-version}'] {
17
17
  position: relative;
18
18
  display: inline-flex;
19
19
  font: var(--tui-font-text-m);
@@ -16,7 +16,7 @@
16
16
  * @see-also
17
17
  * Pin
18
18
  */
19
- tui-compass {
19
+ tui-compass[tuiCompassV='@{tui-version}'] {
20
20
  position: relative;
21
21
  display: inline-block;
22
22
  color: var(--tui-background-accent-1);
@@ -21,7 +21,7 @@
21
21
  * @see-also
22
22
  * Checkbox, Switch, Radio, Appearance
23
23
  */
24
- [tuiLike] {
24
+ [tuiLikeV='@{tui-version}'] {
25
25
  --t-size: var(--tui-height-m);
26
26
  --t-border-width: 0.75rem;
27
27
 
@@ -13,7 +13,7 @@
13
13
  * @see-also
14
14
  * Chip, Badge, Block
15
15
  */
16
- [tuiMessage] {
16
+ [tuiMessageV='@{tui-version}'] {
17
17
  display: inline-flex;
18
18
  padding: 0.5rem 0.625rem;
19
19
  min-block-size: 2.25rem;
@@ -13,8 +13,7 @@
13
13
  * @see-also
14
14
  * Compass
15
15
  */
16
- tui-pin,
17
- [tuiPin] {
16
+ [tuiPinV='@{tui-version}'] {
18
17
  --t-size: 2rem;
19
18
 
20
19
  .transition(~'width, height, border, margin');
@@ -48,7 +48,7 @@
48
48
  }
49
49
  }
50
50
 
51
- [tuiProgressBar] {
51
+ [tuiProgressBarV='@{tui-version}'] {
52
52
  @track-color: var(--tui-background-neutral-2);
53
53
  @progress-color: var(--tui-progress-color, currentColor);
54
54
 
@@ -16,7 +16,7 @@
16
16
  * @see-also
17
17
  * Checkbox, Switch, Appearance
18
18
  */
19
- [tuiRadio] {
19
+ [tuiRadioV='@{tui-version}'] {
20
20
  --t-size: 1.5rem;
21
21
 
22
22
  .transition(~'background, box-shadow');
@@ -1,3 +1,5 @@
1
+ @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
+
1
3
  /**
2
4
  * @name Status
3
5
  * @selector [tuiStatus]
@@ -14,7 +16,7 @@
14
16
  * @see-also
15
17
  * Badge, Chip
16
18
  */
17
- [tuiStatus] {
19
+ [tuiStatusV='@{tui-version}'] {
18
20
  display: inline-flex;
19
21
  align-items: center;
20
22
  gap: 0.5rem;
@@ -19,7 +19,7 @@
19
19
  * @see-also
20
20
  * Checkbox, Radio
21
21
  */
22
- [tuiSwitch] {
22
+ [tuiSwitchV='@{tui-version}'] {
23
23
  .transition(~'background, box-shadow');
24
24
 
25
25
  inline-size: 3rem;
@@ -1,6 +1,6 @@
1
1
  @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
2
 
3
- [tuiToast] {
3
+ [tuiToastV='@{tui-version}'] {
4
4
  .transition(transform);
5
5
 
6
6
  display: flex;