yukit-web 0.10.5 → 0.10.7
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.
- package/fesm2022/yukit-web-chart.mjs +807 -552
- package/fesm2022/yukit-web-chart.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert.mjs +199 -91
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-badge.mjs +78 -44
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button.mjs +137 -67
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-card.mjs +318 -136
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-command.mjs +752 -260
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-empty.mjs +280 -121
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-field.mjs +670 -301
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input.mjs +62 -30
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-item.mjs +545 -227
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-label.mjs +60 -28
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-marker.mjs +165 -74
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-message.mjs +277 -112
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-popover.mjs +358 -133
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-progress.mjs +126 -58
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-select.mjs +1059 -351
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-separator.mjs +61 -31
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-slider.mjs +139 -59
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-switch.mjs +326 -94
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-table.mjs +374 -177
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-typography.mjs +461 -202
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-utils.mjs +131 -253
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
- package/fesm2022/yukit-web.mjs +24457 -9655
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +9 -9
- package/types/yukit-web-chart.d.ts +184 -125
- package/types/yukit-web-helm-accordion.d.ts +49 -28
- package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
- package/types/yukit-web-helm-alert.d.ts +30 -32
- package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
- package/types/yukit-web-helm-attachment.d.ts +97 -69
- package/types/yukit-web-helm-autocomplete.d.ts +205 -79
- package/types/yukit-web-helm-avatar.d.ts +44 -39
- package/types/yukit-web-helm-badge.d.ts +18 -17
- package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
- package/types/yukit-web-helm-bubble.d.ts +54 -40
- package/types/yukit-web-helm-button-group.d.ts +29 -22
- package/types/yukit-web-helm-button.d.ts +41 -31
- package/types/yukit-web-helm-calendar.d.ts +157 -85
- package/types/yukit-web-helm-card.d.ts +38 -42
- package/types/yukit-web-helm-carousel.d.ts +105 -73
- package/types/yukit-web-helm-checkbox.d.ts +117 -58
- package/types/yukit-web-helm-collapsible.d.ts +34 -19
- package/types/yukit-web-helm-combobox.d.ts +355 -150
- package/types/yukit-web-helm-command.d.ts +140 -73
- package/types/yukit-web-helm-context-menu.d.ts +48 -27
- package/types/yukit-web-helm-date-picker.d.ts +852 -556
- package/types/yukit-web-helm-dialog.d.ts +106 -78
- package/types/yukit-web-helm-drawer.d.ts +90 -61
- package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
- package/types/yukit-web-helm-empty.d.ts +38 -42
- package/types/yukit-web-helm-field.d.ts +122 -91
- package/types/yukit-web-helm-hover-card.d.ts +39 -27
- package/types/yukit-web-helm-input-group.d.ts +63 -41
- package/types/yukit-web-helm-input-otp.d.ts +38 -35
- package/types/yukit-web-helm-input.d.ts +19 -12
- package/types/yukit-web-helm-item.d.ts +90 -82
- package/types/yukit-web-helm-kbd.d.ts +10 -15
- package/types/yukit-web-helm-label.d.ts +14 -11
- package/types/yukit-web-helm-marker.d.ts +26 -27
- package/types/yukit-web-helm-menubar.d.ts +61 -32
- package/types/yukit-web-helm-message.d.ts +34 -38
- package/types/yukit-web-helm-native-select.d.ts +102 -61
- package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
- package/types/yukit-web-helm-pagination.d.ts +344 -166
- package/types/yukit-web-helm-popover.d.ts +62 -42
- package/types/yukit-web-helm-progress.d.ts +27 -20
- package/types/yukit-web-helm-radio-group.d.ts +121 -63
- package/types/yukit-web-helm-resizable.d.ts +46 -24
- package/types/yukit-web-helm-scroll-area.d.ts +6 -10
- package/types/yukit-web-helm-select.d.ts +231 -114
- package/types/yukit-web-helm-separator.d.ts +15 -12
- package/types/yukit-web-helm-sheet.d.ts +94 -65
- package/types/yukit-web-helm-sidebar.d.ts +322 -232
- package/types/yukit-web-helm-skeleton.d.ts +6 -10
- package/types/yukit-web-helm-slider.d.ts +33 -13
- package/types/yukit-web-helm-sonner.d.ts +112 -51
- package/types/yukit-web-helm-spinner.d.ts +24 -17
- package/types/yukit-web-helm-switch.d.ts +89 -51
- package/types/yukit-web-helm-table.d.ts +38 -42
- package/types/yukit-web-helm-tabs.d.ts +116 -60
- package/types/yukit-web-helm-textarea.d.ts +19 -12
- package/types/yukit-web-helm-toggle-group.d.ts +81 -32
- package/types/yukit-web-helm-toggle.d.ts +39 -21
- package/types/yukit-web-helm-tooltip.d.ts +21 -16
- package/types/yukit-web-helm-typography.d.ts +62 -77
- package/types/yukit-web-helm-utils.d.ts +8 -11
- package/types/yukit-web.d.ts +5092 -2351
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-toggle-group.mjs","sources":["../../../projects/yukit-web/helm/toggle-group/src/lib/hlm-toggle-group.token.ts","../../../projects/yukit-web/helm/toggle-group/src/lib/hlm-toggle-group.ts","../../../projects/yukit-web/helm/toggle-group/src/lib/hlm-toggle-group-item.ts","../../../projects/yukit-web/helm/toggle-group/src/index.ts"
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-toggle-group.mjs","names":[],"sources":["../../../projects/yukit-web/helm/toggle-group/src/lib/hlm-toggle-group.token.ts","../../../projects/yukit-web/helm/toggle-group/src/lib/hlm-toggle-group.ts","../../../projects/yukit-web/helm/toggle-group/src/lib/hlm-toggle-group-item.ts","../../../projects/yukit-web/helm/toggle-group/src/index.ts"],"sourcesContent":["import { type ExistingProvider, InjectionToken, type Type, inject } from '@angular/core';\nimport type { HlmToggleGroup } from './hlm-toggle-group';\n\nexport const HlmToggleGroupToken = new InjectionToken<HlmToggleGroup>('HlmToggleGroupToken');\n\nexport function injectHlmToggleGroup(): HlmToggleGroup {\n\treturn inject(HlmToggleGroupToken);\n}\n\nexport function provideHlmToggleGroup(toggleGroup: Type<HlmToggleGroup>): ExistingProvider {\n\treturn { provide: HlmToggleGroupToken, useExisting: toggleGroup };\n}\n","import { NumberInput } from '@angular/cdk/coercion';\nimport { Directive, input, numberAttribute } from '@angular/core';\nimport { BrnToggleGroup } from '@spartan-ng/brain/toggle-group';\nimport { ToggleVariants } from 'yukit-web/helm/toggle';\nimport { classes } from 'yukit-web/helm/utils';\nimport { provideHlmToggleGroup } from './hlm-toggle-group.token';\n\n@Directive({\n\tselector: '[hlmToggleGroup],hlm-toggle-group',\n\tproviders: [provideHlmToggleGroup(HlmToggleGroup)],\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnToggleGroup,\n\t\t\tinputs: ['type', 'value', 'nullable', 'disabled'],\n\t\t\toutputs: ['valueChange'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'toggle-group',\n\t\t'[attr.data-variant]': 'variant()',\n\t\t'[attr.data-size]': 'size()',\n\t\t'[attr.data-spacing]': 'spacing()',\n\t\t'[attr.data-orientation]': 'orientation()',\n\t\t'[style.--gap]': 'spacing()',\n\t},\n})\nexport class HlmToggleGroup {\n\tpublic readonly variant = input<ToggleVariants['variant']>('default');\n\tpublic readonly size = input<ToggleVariants['size']>('default');\n\tpublic readonly spacing = input<number, NumberInput>(0, { transform: numberAttribute });\n\tpublic readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] data-vertical:flex-col data-vertical:items-stretch',\n\t\t);\n\t}\n}\n","import { computed, Directive, input } from '@angular/core';\nimport { BrnToggleGroupItem } from '@spartan-ng/brain/toggle-group';\nimport { toggleVariants, ToggleVariants } from 'yukit-web/helm/toggle';\nimport { classes } from 'yukit-web/helm/utils';\nimport { injectHlmToggleGroup } from './hlm-toggle-group.token';\n\n@Directive({\n\tselector: 'button[hlmToggleGroupItem]',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnToggleGroupItem,\n\t\t\tinputs: ['id', 'value', 'disabled', 'state', 'aria-label', 'type'],\n\t\t\toutputs: ['stateChange'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'toggle-group-item',\n\t\t'[attr.data-variant]': '_variant()',\n\t\t'[attr.data-size]': '_size()',\n\t\t'[attr.data-spacing]': '_toggleGroup.spacing()',\n\t},\n})\nexport class HlmToggleGroupItem {\n\tprotected readonly _toggleGroup = injectHlmToggleGroup();\n\n\tpublic readonly variant = input<ToggleVariants['variant']>('default');\n\tpublic readonly size = input<ToggleVariants['size']>('default');\n\n\tprotected readonly _variant = computed(() => this._toggleGroup.variant() || this.variant());\n\tprotected readonly _size = computed(() => this._toggleGroup.size() || this.size());\n\n\tconstructor() {\n\t\tclasses(() => [\n\t\t\t'group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg shrink-0 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t',\n\t\t\ttoggleVariants({\n\t\t\t\tvariant: this._variant(),\n\t\t\t\tsize: this._size(),\n\t\t\t}),\n\t\t]);\n\t}\n}\n","import { HlmToggleGroup } from './lib/hlm-toggle-group';\nimport { HlmToggleGroupItem } from './lib/hlm-toggle-group-item';\n\nexport * from './lib/hlm-toggle-group';\nexport * from './lib/hlm-toggle-group-item';\nexport * from './lib/hlm-toggle-group.token';\n\nexport const HlmToggleGroupImports = [HlmToggleGroup, HlmToggleGroupItem] as const;\n"],"mappings":";;;;;;AAGA,MAAa,sBAAsB,IAAI,eAA+B,qBAAqB;AAE3F,SAAgB,uBAAoB;CACnC,OAAO,OAAO,mBAAmB;AAClC;AAEA,SAAgB,sBAAsB,aAAiC;CACtE,OAAO;EAAE,SAAS;EAAqB,aAAa;CAAW;AAChE;ACeA,IAAa,iBAAb,MAAa,eAAc;CAM1B,cAAA;EALgB,KAAA,UAAU,MAAiC,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EACrD,KAAA,OAAO,MAA8B,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAC/C,KAAA,UAAU,MAA2B,GAAC;GAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;GAAI,WAAW;EAAe,CAAA;EACpE,KAAA,cAAc,MAAiC,cAAa,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAG3E,cAEE,mMAAmM;CAEtM;CAXY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAc,MAAA,CAAA;GAAA,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KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,eAAA,aAAA;GAAA,CAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAlB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAhB9B,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,gBAAgB,CACf;IACC,WAAW;IACX,QAAQ;KAAC;KAAM;KAAS;KAAY;KAAS;KAAc;IAAM;IACjE,SAAS,CAAC,aAAa;GACvB,CACD;GACD,MAAM;IACL,aAAa;IACb,uBAAuB;IACvB,oBAAoB;IACpB,uBAAuB;GACvB;EACD,CAAA;;;;;;;;;;;;;;;;;;;;;;ACdD,MAAa,wBAAwB,CAAC,gBAAgB,kBAAkB"}
|
|
@@ -1,61 +1,136 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as i1 from
|
|
4
|
-
import { BrnToggle } from
|
|
5
|
-
import { classes } from
|
|
6
|
-
import { cva } from
|
|
7
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive, input } from "@angular/core";
|
|
3
|
+
import * as i1 from "@spartan-ng/brain/toggle";
|
|
4
|
+
import { BrnToggle } from "@spartan-ng/brain/toggle";
|
|
5
|
+
import { classes } from "yukit-web/helm/utils";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
8
7
|
const toggleVariants = cva("hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive data-[state=on]:bg-muted gap-1 rounded-lg text-sm font-medium transition-all [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0", {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-transparent",
|
|
11
|
+
outline: "border-input hover:bg-muted border bg-transparent"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
default: "h-8 min-w-8 px-2.5",
|
|
15
|
+
sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(3.5)]",
|
|
16
|
+
lg: "h-9 min-w-9 px-2.5"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "default",
|
|
21
|
+
size: "default"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var HlmToggle = class HlmToggle {
|
|
25
|
+
constructor() {
|
|
26
|
+
this.variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
27
|
+
this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
28
|
+
classes(() => toggleVariants({
|
|
29
|
+
variant: this.variant(),
|
|
30
|
+
size: this.size()
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
static {
|
|
34
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
35
|
+
minVersion: "12.0.0",
|
|
36
|
+
version: "22.2.4",
|
|
37
|
+
ngImport: i0,
|
|
38
|
+
type: HlmToggle,
|
|
39
|
+
deps: [],
|
|
40
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
static {
|
|
44
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
45
|
+
minVersion: "17.1.0",
|
|
46
|
+
version: "22.2.4",
|
|
47
|
+
type: HlmToggle,
|
|
48
|
+
isStandalone: true,
|
|
49
|
+
selector: "button[hlmToggle]",
|
|
50
|
+
inputs: {
|
|
51
|
+
variant: {
|
|
52
|
+
classPropertyName: "variant",
|
|
53
|
+
publicName: "variant",
|
|
54
|
+
isSignal: true,
|
|
55
|
+
isRequired: false,
|
|
56
|
+
transformFunction: null
|
|
57
|
+
},
|
|
58
|
+
size: {
|
|
59
|
+
classPropertyName: "size",
|
|
60
|
+
publicName: "size",
|
|
61
|
+
isSignal: true,
|
|
62
|
+
isRequired: false,
|
|
63
|
+
transformFunction: null
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
host: { attributes: { "data-slot": "toggle" } },
|
|
67
|
+
hostDirectives: [{
|
|
68
|
+
directive: i1.BrnToggle,
|
|
69
|
+
inputs: [
|
|
70
|
+
"id",
|
|
71
|
+
"id",
|
|
72
|
+
"value",
|
|
73
|
+
"value",
|
|
74
|
+
"disabled",
|
|
75
|
+
"disabled",
|
|
76
|
+
"state",
|
|
77
|
+
"state",
|
|
78
|
+
"aria-label",
|
|
79
|
+
"aria-label",
|
|
80
|
+
"type",
|
|
81
|
+
"type"
|
|
82
|
+
],
|
|
83
|
+
outputs: ["stateChange", "stateChange"]
|
|
84
|
+
}],
|
|
85
|
+
ngImport: i0
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
90
|
+
minVersion: "12.0.0",
|
|
91
|
+
version: "22.2.4",
|
|
92
|
+
ngImport: i0,
|
|
93
|
+
type: HlmToggle,
|
|
94
|
+
decorators: [{
|
|
95
|
+
type: Directive,
|
|
96
|
+
args: [{
|
|
97
|
+
selector: "button[hlmToggle]",
|
|
98
|
+
hostDirectives: [{
|
|
99
|
+
directive: BrnToggle,
|
|
100
|
+
inputs: [
|
|
101
|
+
"id",
|
|
102
|
+
"value",
|
|
103
|
+
"disabled",
|
|
104
|
+
"state",
|
|
105
|
+
"aria-label",
|
|
106
|
+
"type"
|
|
107
|
+
],
|
|
108
|
+
outputs: ["stateChange"]
|
|
109
|
+
}],
|
|
110
|
+
host: { "data-slot": "toggle" }
|
|
111
|
+
}]
|
|
112
|
+
}],
|
|
113
|
+
ctorParameters: () => [],
|
|
114
|
+
propDecorators: {
|
|
115
|
+
variant: [{
|
|
116
|
+
type: i0.Input,
|
|
117
|
+
args: [{
|
|
118
|
+
isSignal: true,
|
|
119
|
+
alias: "variant",
|
|
120
|
+
required: false
|
|
121
|
+
}]
|
|
122
|
+
}],
|
|
123
|
+
size: [{
|
|
124
|
+
type: i0.Input,
|
|
125
|
+
args: [{
|
|
126
|
+
isSignal: true,
|
|
127
|
+
alias: "size",
|
|
128
|
+
required: false
|
|
129
|
+
}]
|
|
130
|
+
}]
|
|
131
|
+
}
|
|
24
132
|
});
|
|
25
|
-
class HlmToggle {
|
|
26
|
-
constructor() {
|
|
27
|
-
this.variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
28
|
-
this.size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
29
|
-
classes(() => toggleVariants({
|
|
30
|
-
variant: this.variant(),
|
|
31
|
-
size: this.size(),
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmToggle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
35
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: HlmToggle, isStandalone: true, selector: "button[hlmToggle]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toggle" } }, hostDirectives: [{ directive: i1.BrnToggle, inputs: ["id", "id", "value", "value", "disabled", "disabled", "state", "state", "aria-label", "aria-label", "type", "type"], outputs: ["stateChange", "stateChange"] }], ngImport: i0 }); }
|
|
36
|
-
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmToggle, decorators: [{
|
|
38
|
-
type: Directive,
|
|
39
|
-
args: [{
|
|
40
|
-
selector: 'button[hlmToggle]',
|
|
41
|
-
hostDirectives: [
|
|
42
|
-
{
|
|
43
|
-
directive: BrnToggle,
|
|
44
|
-
inputs: ['id', 'value', 'disabled', 'state', 'aria-label', 'type'],
|
|
45
|
-
outputs: ['stateChange'],
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
host: {
|
|
49
|
-
'data-slot': 'toggle',
|
|
50
|
-
},
|
|
51
|
-
}]
|
|
52
|
-
}], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
53
|
-
|
|
54
133
|
const HlmToggleImports = [HlmToggle];
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Generated bundle index. Do not edit.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
134
|
export { HlmToggle, HlmToggleImports, toggleVariants };
|
|
61
|
-
|
|
135
|
+
|
|
136
|
+
//# sourceMappingURL=yukit-web-helm-toggle.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-toggle.mjs","sources":["../../../projects/yukit-web/helm/toggle/src/lib/hlm-toggle.ts","../../../projects/yukit-web/helm/toggle/src/index.ts"
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-toggle.mjs","names":[],"sources":["../../../projects/yukit-web/helm/toggle/src/lib/hlm-toggle.ts","../../../projects/yukit-web/helm/toggle/src/index.ts"],"sourcesContent":["import { Directive, input } from '@angular/core';\nimport { BrnToggle } from '@spartan-ng/brain/toggle';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nexport const toggleVariants = cva(\n\t\"hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive data-[state=on]:bg-muted gap-1 rounded-lg text-sm font-medium transition-all [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-transparent',\n\t\t\t\toutline: 'border-input hover:bg-muted border bg-transparent',\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-8 min-w-8 px-2.5',\n\t\t\t\tsm: \"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(3.5)]\",\n\t\t\t\tlg: 'h-9 min-w-9 px-2.5',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t\tsize: 'default',\n\t\t},\n\t},\n);\nexport type ToggleVariants = VariantProps<typeof toggleVariants>;\n\n@Directive({\n\tselector: 'button[hlmToggle]',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnToggle,\n\t\t\tinputs: ['id', 'value', 'disabled', 'state', 'aria-label', 'type'],\n\t\t\toutputs: ['stateChange'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'toggle',\n\t},\n})\nexport class HlmToggle {\n\tpublic readonly variant = input<ToggleVariants['variant']>('default');\n\tpublic readonly size = input<ToggleVariants['size']>('default');\n\tconstructor() {\n\t\tclasses(() =>\n\t\t\ttoggleVariants({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","import { HlmToggle } from './lib/hlm-toggle';\n\nexport * from './lib/hlm-toggle';\n\nexport const HlmToggleImports = [HlmToggle] as const;\n"],"mappings":";;;;;;AAKA,MAAa,iBAAiB,IAC7B,4nBACA;CACC,UAAU;EACT,SAAS;GACR,SAAS;GACT,SAAS;EACT;EACD,MAAM;GACL,SAAS;GACT,IAAI;GACJ,IAAI;EACJ;CACD;CACD,iBAAiB;EAChB,SAAS;EACT,MAAM;CACN;AACD,CAAA;AAiBF,IAAa,YAAb,MAAa,UAAS;CAGrB,cAAA;EAFgB,KAAA,UAAU,MAAiC,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EACrD,KAAA,OAAO,MAA8B,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAE9D,cACC,eAAe;GACd,SAAS,KAAK,QAAO;GACrB,MAAM,KAAK,KAAI;EACf,CAAA,CAAC;CAEJ;CAVY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAS,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAT;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAS,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,MAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,MAAA,EAAA,YAAA,EAAA,aAAA,SAAA,EAAA;GAAA,gBAAA,CAAA;IAAA,WAAA,GAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;IAAA,SAAA,CAAA,eAAA,aAAA;GAAA,CAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAT,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EAbrB,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,gBAAgB,CACf;IACC,WAAW;IACX,QAAQ;KAAC;KAAM;KAAS;KAAY;KAAS;KAAc;IAAM;IACjE,SAAS,CAAC,aAAa;GACvB,CACD;GACD,MAAM,EACL,aAAa,SACb;EACD,CAAA;;;;;;;;;;;;;;;;;;;;;;ACnCD,MAAa,mBAAmB,CAAC,SAAS"}
|
|
@@ -1,57 +1,87 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { Directive } from
|
|
3
|
-
import * as i1 from
|
|
4
|
-
import {
|
|
5
|
-
import { hlm } from
|
|
6
|
-
import { cva } from
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive } from "@angular/core";
|
|
3
|
+
import * as i1 from "@spartan-ng/brain/tooltip";
|
|
4
|
+
import { BrnTooltip, provideBrnTooltipDefaultOptions } from "@spartan-ng/brain/tooltip";
|
|
5
|
+
import { hlm } from "yukit-web/helm/utils";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
const DEFAULT_TOOLTIP_SVG_CLASS = "bg-foreground fill-foreground z-50 block size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]";
|
|
8
|
+
const DEFAULT_TOOLTIP_CONTENT_CLASSES = hlm("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs bg-foreground text-background data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) text-balance");
|
|
9
|
+
const tooltipPositionVariants = cva("absolute", { variants: { position: {
|
|
10
|
+
top: "bottom-0 left-[calc(50%-5px)] translate-y-full",
|
|
11
|
+
bottom: "-top-2.5 left-[calc(50%-5px)] translate-y-0 rotate-180",
|
|
12
|
+
left: "-end-2.5 top-[calc(50%-5px)] translate-y-0 rotate-270 rtl:-rotate-270",
|
|
13
|
+
right: "-start-2.5 top-[calc(50%-5px)] translate-y-0 rotate-90 rtl:-rotate-90"
|
|
14
|
+
} } });
|
|
15
|
+
var HlmTooltip = class HlmTooltip {
|
|
16
|
+
static {
|
|
17
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
18
|
+
minVersion: "12.0.0",
|
|
19
|
+
version: "22.2.4",
|
|
20
|
+
ngImport: i0,
|
|
21
|
+
type: HlmTooltip,
|
|
22
|
+
deps: [],
|
|
23
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static {
|
|
27
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
28
|
+
minVersion: "14.0.0",
|
|
29
|
+
version: "22.2.4",
|
|
30
|
+
type: HlmTooltip,
|
|
31
|
+
isStandalone: true,
|
|
32
|
+
selector: "[hlmTooltip]",
|
|
33
|
+
providers: [provideBrnTooltipDefaultOptions({
|
|
34
|
+
svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
|
|
35
|
+
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
36
|
+
arrowClasses: (position) => hlm(tooltipPositionVariants({ position }))
|
|
37
|
+
})],
|
|
38
|
+
hostDirectives: [{
|
|
39
|
+
directive: i1.BrnTooltip,
|
|
40
|
+
inputs: [
|
|
41
|
+
"brnTooltip",
|
|
42
|
+
"hlmTooltip",
|
|
43
|
+
"position",
|
|
44
|
+
"position",
|
|
45
|
+
"hideDelay",
|
|
46
|
+
"hideDelay",
|
|
47
|
+
"showDelay",
|
|
48
|
+
"showDelay",
|
|
49
|
+
"tooltipDisabled",
|
|
50
|
+
"tooltipDisabled"
|
|
51
|
+
]
|
|
52
|
+
}],
|
|
53
|
+
ngImport: i0
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
58
|
+
minVersion: "12.0.0",
|
|
59
|
+
version: "22.2.4",
|
|
60
|
+
ngImport: i0,
|
|
61
|
+
type: HlmTooltip,
|
|
62
|
+
decorators: [{
|
|
63
|
+
type: Directive,
|
|
64
|
+
args: [{
|
|
65
|
+
selector: "[hlmTooltip]",
|
|
66
|
+
providers: [provideBrnTooltipDefaultOptions({
|
|
67
|
+
svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
|
|
68
|
+
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
69
|
+
arrowClasses: (position) => hlm(tooltipPositionVariants({ position }))
|
|
70
|
+
})],
|
|
71
|
+
hostDirectives: [{
|
|
72
|
+
directive: BrnTooltip,
|
|
73
|
+
inputs: [
|
|
74
|
+
"brnTooltip: hlmTooltip",
|
|
75
|
+
"position",
|
|
76
|
+
"hideDelay",
|
|
77
|
+
"showDelay",
|
|
78
|
+
"tooltipDisabled"
|
|
79
|
+
]
|
|
80
|
+
}]
|
|
81
|
+
}]
|
|
82
|
+
}]
|
|
19
83
|
});
|
|
20
|
-
class HlmTooltip {
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
22
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTooltip, isStandalone: true, selector: "[hlmTooltip]", providers: [
|
|
23
|
-
provideBrnTooltipDefaultOptions({
|
|
24
|
-
svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
|
|
25
|
-
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
26
|
-
arrowClasses: (position) => hlm(tooltipPositionVariants({ position })),
|
|
27
|
-
}),
|
|
28
|
-
], hostDirectives: [{ directive: i1.BrnTooltip, inputs: ["brnTooltip", "hlmTooltip", "position", "position", "hideDelay", "hideDelay", "showDelay", "showDelay", "tooltipDisabled", "tooltipDisabled"] }], ngImport: i0 }); }
|
|
29
|
-
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTooltip, decorators: [{
|
|
31
|
-
type: Directive,
|
|
32
|
-
args: [{
|
|
33
|
-
selector: '[hlmTooltip]',
|
|
34
|
-
providers: [
|
|
35
|
-
provideBrnTooltipDefaultOptions({
|
|
36
|
-
svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
|
|
37
|
-
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
38
|
-
arrowClasses: (position) => hlm(tooltipPositionVariants({ position })),
|
|
39
|
-
}),
|
|
40
|
-
],
|
|
41
|
-
hostDirectives: [
|
|
42
|
-
{
|
|
43
|
-
directive: BrnTooltip,
|
|
44
|
-
inputs: ['brnTooltip: hlmTooltip', 'position', 'hideDelay', 'showDelay', 'tooltipDisabled'],
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
}]
|
|
48
|
-
}] });
|
|
49
|
-
|
|
50
84
|
const HlmTooltipImports = [HlmTooltip];
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Generated bundle index. Do not edit.
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
85
|
export { DEFAULT_TOOLTIP_CONTENT_CLASSES, DEFAULT_TOOLTIP_SVG_CLASS, HlmTooltip, HlmTooltipImports, tooltipPositionVariants };
|
|
57
|
-
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=yukit-web-helm-tooltip.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-tooltip.mjs","sources":["../../../projects/yukit-web/helm/tooltip/src/lib/hlm-tooltip.ts","../../../projects/yukit-web/helm/tooltip/src/index.ts"
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-tooltip.mjs","names":[],"sources":["../../../projects/yukit-web/helm/tooltip/src/lib/hlm-tooltip.ts","../../../projects/yukit-web/helm/tooltip/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnTooltip, BrnTooltipPosition, provideBrnTooltipDefaultOptions } from '@spartan-ng/brain/tooltip';\nimport { hlm } from 'yukit-web/helm/utils';\nimport { cva } from 'class-variance-authority';\n\nexport const DEFAULT_TOOLTIP_SVG_CLASS =\n\t'bg-foreground fill-foreground z-50 block size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]';\n\nexport const DEFAULT_TOOLTIP_CONTENT_CLASSES = hlm(\n\t'data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs bg-foreground text-background data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) text-balance',\n);\n\nexport const tooltipPositionVariants = cva('absolute', {\n\tvariants: {\n\t\tposition: {\n\t\t\ttop: 'bottom-0 left-[calc(50%-5px)] translate-y-full',\n\t\t\tbottom: '-top-2.5 left-[calc(50%-5px)] translate-y-0 rotate-180',\n\t\t\tleft: '-end-2.5 top-[calc(50%-5px)] translate-y-0 rotate-270 rtl:-rotate-270',\n\t\t\tright: '-start-2.5 top-[calc(50%-5px)] translate-y-0 rotate-90 rtl:-rotate-90',\n\t\t},\n\t},\n});\n\n@Directive({\n\tselector: '[hlmTooltip]',\n\tproviders: [\n\t\tprovideBrnTooltipDefaultOptions({\n\t\t\tsvgClasses: DEFAULT_TOOLTIP_SVG_CLASS,\n\t\t\ttooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,\n\t\t\tarrowClasses: (position: BrnTooltipPosition) => hlm(tooltipPositionVariants({ position })),\n\t\t}),\n\t],\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnTooltip,\n\t\t\tinputs: ['brnTooltip: hlmTooltip', 'position', 'hideDelay', 'showDelay', 'tooltipDisabled'],\n\t\t},\n\t],\n})\nexport class HlmTooltip { }\n","import { HlmTooltip } from './lib/hlm-tooltip';\n\nexport * from './lib/hlm-toolt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