@treeui/vue 0.19.1 → 0.21.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 (148) hide show
  1. package/dist/components/TAppShell.cjs.map +1 -1
  2. package/dist/components/TAppShell.js.map +1 -1
  3. package/dist/components/TAppShell.vue.d.ts +5 -1
  4. package/dist/components/TAppShell.vue.d.ts.map +1 -1
  5. package/dist/components/TAppShell.vue_vue_type_script_setup_true_lang.cjs +1 -1
  6. package/dist/components/TAppShell.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  7. package/dist/components/TAppShell.vue_vue_type_script_setup_true_lang.js +51 -44
  8. package/dist/components/TAppShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  9. package/dist/components/TBrandLockup.cjs +2 -0
  10. package/dist/components/TBrandLockup.cjs.map +1 -0
  11. package/dist/components/TBrandLockup.js +7 -0
  12. package/dist/components/TBrandLockup.js.map +1 -0
  13. package/dist/components/TBrandLockup.vue.d.ts +43 -0
  14. package/dist/components/TBrandLockup.vue.d.ts.map +1 -0
  15. package/dist/components/TBrandLockup.vue_vue_type_script_setup_true_lang.cjs +2 -0
  16. package/dist/components/TBrandLockup.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  17. package/dist/components/TBrandLockup.vue_vue_type_script_setup_true_lang.js +54 -0
  18. package/dist/components/TBrandLockup.vue_vue_type_script_setup_true_lang.js.map +1 -0
  19. package/dist/components/TButton.cjs.map +1 -1
  20. package/dist/components/TButton.js.map +1 -1
  21. package/dist/components/TButton.vue.d.ts.map +1 -1
  22. package/dist/components/TButton.vue_vue_type_script_setup_true_lang.cjs +1 -1
  23. package/dist/components/TButton.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  24. package/dist/components/TButton.vue_vue_type_script_setup_true_lang.js +36 -32
  25. package/dist/components/TButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  26. package/dist/components/TCard.cjs.map +1 -1
  27. package/dist/components/TCard.js.map +1 -1
  28. package/dist/components/TCard.vue.d.ts +8 -0
  29. package/dist/components/TCard.vue.d.ts.map +1 -1
  30. package/dist/components/TCard.vue_vue_type_script_setup_true_lang.cjs +1 -1
  31. package/dist/components/TCard.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  32. package/dist/components/TCard.vue_vue_type_script_setup_true_lang.js +7 -2
  33. package/dist/components/TCard.vue_vue_type_script_setup_true_lang.js.map +1 -1
  34. package/dist/components/TCheckbox.vue.d.ts +1 -1
  35. package/dist/components/TCheckbox.vue.d.ts.map +1 -1
  36. package/dist/components/TCodeBlock.cjs +2 -0
  37. package/dist/components/TCodeBlock.cjs.map +1 -0
  38. package/dist/components/TCodeBlock.js +7 -0
  39. package/dist/components/TCodeBlock.js.map +1 -0
  40. package/dist/components/TCodeBlock.vue.d.ts +47 -0
  41. package/dist/components/TCodeBlock.vue.d.ts.map +1 -0
  42. package/dist/components/TCodeBlock.vue_vue_type_script_setup_true_lang.cjs +2 -0
  43. package/dist/components/TCodeBlock.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  44. package/dist/components/TCodeBlock.vue_vue_type_script_setup_true_lang.js +53 -0
  45. package/dist/components/TCodeBlock.vue_vue_type_script_setup_true_lang.js.map +1 -0
  46. package/dist/components/TCombobox.vue.d.ts +2 -2
  47. package/dist/components/TCombobox.vue.d.ts.map +1 -1
  48. package/dist/components/TConfirmDialog.vue.d.ts +2 -2
  49. package/dist/components/TDatePicker.vue.d.ts +2 -2
  50. package/dist/components/TDatePicker.vue.d.ts.map +1 -1
  51. package/dist/components/TDateTimePicker.vue.d.ts +4 -4
  52. package/dist/components/TDateTimePicker.vue.d.ts.map +1 -1
  53. package/dist/components/TFileUpload.vue.d.ts +1 -1
  54. package/dist/components/TFileUpload.vue.d.ts.map +1 -1
  55. package/dist/components/TGrid.vue.d.ts +1 -1
  56. package/dist/components/TGrid.vue.d.ts.map +1 -1
  57. package/dist/components/TInput.vue.d.ts +1 -1
  58. package/dist/components/TInput.vue.d.ts.map +1 -1
  59. package/dist/components/TLanguageSelect.vue.d.ts +2 -2
  60. package/dist/components/TLanguageSelect.vue.d.ts.map +1 -1
  61. package/dist/components/TLanguageSelect.vue_vue_type_script_setup_true_lang.cjs +1 -1
  62. package/dist/components/TLanguageSelect.vue_vue_type_script_setup_true_lang.js +15 -15
  63. package/dist/components/TLink.cjs.map +1 -1
  64. package/dist/components/TLink.js.map +1 -1
  65. package/dist/components/TLink.vue.d.ts +8 -0
  66. package/dist/components/TLink.vue.d.ts.map +1 -1
  67. package/dist/components/TLink.vue_vue_type_script_setup_true_lang.cjs +1 -1
  68. package/dist/components/TLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  69. package/dist/components/TLink.vue_vue_type_script_setup_true_lang.js +5 -1
  70. package/dist/components/TLink.vue_vue_type_script_setup_true_lang.js.map +1 -1
  71. package/dist/components/TLinkTile.cjs +2 -0
  72. package/dist/components/TLinkTile.cjs.map +1 -0
  73. package/dist/components/TLinkTile.js +7 -0
  74. package/dist/components/TLinkTile.js.map +1 -0
  75. package/dist/components/TLinkTile.vue.d.ts +41 -0
  76. package/dist/components/TLinkTile.vue.d.ts.map +1 -0
  77. package/dist/components/TLinkTile.vue_vue_type_script_setup_true_lang.cjs +2 -0
  78. package/dist/components/TLinkTile.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  79. package/dist/components/TLinkTile.vue_vue_type_script_setup_true_lang.js +62 -0
  80. package/dist/components/TLinkTile.vue_vue_type_script_setup_true_lang.js.map +1 -0
  81. package/dist/components/TMultiSelect.vue.d.ts +2 -2
  82. package/dist/components/TMultiSelect.vue.d.ts.map +1 -1
  83. package/dist/components/TNavMenu.vue.d.ts +1 -1
  84. package/dist/components/TNavMenu.vue.d.ts.map +1 -1
  85. package/dist/components/TNumberInput.vue.d.ts +1 -1
  86. package/dist/components/TNumberInput.vue.d.ts.map +1 -1
  87. package/dist/components/TPage.vue.d.ts +1 -1
  88. package/dist/components/TPage.vue.d.ts.map +1 -1
  89. package/dist/components/TPageHeader.vue.d.ts +1 -1
  90. package/dist/components/TPageHeader.vue.d.ts.map +1 -1
  91. package/dist/components/TPopover.cjs.map +1 -1
  92. package/dist/components/TPopover.js.map +1 -1
  93. package/dist/components/TPopover.vue.d.ts +4 -1
  94. package/dist/components/TPopover.vue.d.ts.map +1 -1
  95. package/dist/components/TPopover.vue_vue_type_script_setup_true_lang.cjs +1 -1
  96. package/dist/components/TPopover.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  97. package/dist/components/TPopover.vue_vue_type_script_setup_true_lang.js +3 -1
  98. package/dist/components/TPopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
  99. package/dist/components/TRadioGroup.vue.d.ts +1 -1
  100. package/dist/components/TRadioGroup.vue.d.ts.map +1 -1
  101. package/dist/components/TSelect.vue.d.ts +2 -2
  102. package/dist/components/TSelect.vue.d.ts.map +1 -1
  103. package/dist/components/TSidebar.vue.d.ts +1 -1
  104. package/dist/components/TSidebar.vue.d.ts.map +1 -1
  105. package/dist/components/TSparkline.vue.d.ts +1 -1
  106. package/dist/components/TSparkline.vue.d.ts.map +1 -1
  107. package/dist/components/TSplit.vue.d.ts +1 -1
  108. package/dist/components/TSplit.vue.d.ts.map +1 -1
  109. package/dist/components/TStack.cjs.map +1 -1
  110. package/dist/components/TStack.js.map +1 -1
  111. package/dist/components/TStack.vue.d.ts +11 -2
  112. package/dist/components/TStack.vue.d.ts.map +1 -1
  113. package/dist/components/TStack.vue_vue_type_script_setup_true_lang.cjs +1 -1
  114. package/dist/components/TStack.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  115. package/dist/components/TStack.vue_vue_type_script_setup_true_lang.js +3 -1
  116. package/dist/components/TStack.vue_vue_type_script_setup_true_lang.js.map +1 -1
  117. package/dist/components/TSteps.vue.d.ts +1 -1
  118. package/dist/components/TSteps.vue.d.ts.map +1 -1
  119. package/dist/components/TTable.cjs.map +1 -1
  120. package/dist/components/TTable.js.map +1 -1
  121. package/dist/components/TTable.vue.d.ts +16 -0
  122. package/dist/components/TTable.vue.d.ts.map +1 -1
  123. package/dist/components/TTable.vue_vue_type_script_setup_true_lang.cjs +1 -1
  124. package/dist/components/TTable.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  125. package/dist/components/TTable.vue_vue_type_script_setup_true_lang.js +29 -9
  126. package/dist/components/TTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  127. package/dist/components/TText.cjs.map +1 -1
  128. package/dist/components/TText.js.map +1 -1
  129. package/dist/components/TText.vue.d.ts +9 -0
  130. package/dist/components/TText.vue.d.ts.map +1 -1
  131. package/dist/components/TText.vue_vue_type_script_setup_true_lang.cjs +1 -1
  132. package/dist/components/TText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  133. package/dist/components/TText.vue_vue_type_script_setup_true_lang.js +2 -0
  134. package/dist/components/TText.vue_vue_type_script_setup_true_lang.js.map +1 -1
  135. package/dist/components/TTextarea.vue.d.ts +1 -1
  136. package/dist/components/TTextarea.vue.d.ts.map +1 -1
  137. package/dist/components/index.d.ts +8 -4
  138. package/dist/components/index.d.ts.map +1 -1
  139. package/dist/components/index.js +74 -71
  140. package/dist/index.cjs +1 -1
  141. package/dist/index.js +84 -81
  142. package/dist/plugin.cjs +1 -1
  143. package/dist/plugin.cjs.map +1 -1
  144. package/dist/plugin.d.ts.map +1 -1
  145. package/dist/plugin.js +148 -142
  146. package/dist/plugin.js.map +1 -1
  147. package/dist/style.css +1 -1
  148. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"TButton.vue_vue_type_script_setup_true_lang.cjs","names":["$slots"],"sources":["../../src/components/TButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { tv } from '@treeui/utils';\nimport type { TSize, TVariant } from '../types/contracts';\nimport TSpinner from './TSpinner.vue';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TVariant | 'brand';\n size?: TSize;\n disabled?: boolean;\n loading?: boolean;\n /**\n * Accessible announcement while `loading`, forwarded to the spinner.\n * The default is English; pass the active locale's string to localize it.\n */\n loadingLabel?: string;\n /**\n * While `loading`, hide the `icon` slot so the spinner replaces the icon\n * instead of rendering beside it. Set to `false` to keep both visible.\n */\n hideIconWhileLoading?: boolean;\n /**\n * Square, icon-only button. The visible label is dropped, so an accessible\n * name is required — pass `label` (or `aria-label`).\n */\n iconOnly?: boolean;\n /** Accessible name, rendered as `aria-label`. Required when `iconOnly`. */\n label?: string;\n type?: 'button' | 'submit' | 'reset';\n /** Stretch to the full width of the container. */\n block?: boolean;\n /** Content alignment — only meaningful together with `block`. */\n align?: 'start' | 'center' | 'end';\n }>(),\n {\n as: 'button',\n variant: 'solid',\n size: 'md',\n disabled: false,\n loading: false,\n loadingLabel: 'Loading',\n hideIconWhileLoading: true,\n iconOnly: false,\n label: undefined,\n type: 'button',\n block: false,\n align: 'center',\n },\n);\n\nconst emit = defineEmits<{\n click: [event: MouseEvent];\n}>();\n\nconst buttonClass = tv({\n base: 't-button',\n variants: {\n variant: {\n solid: 't-button--solid',\n outline: 't-button--outline',\n ghost: 't-button--ghost',\n soft: 't-button--soft',\n danger: 't-button--danger',\n brand: 't-button--brand',\n },\n size: {\n sm: 't-button--sm',\n md: 't-button--md',\n lg: 't-button--lg',\n },\n },\n});\n\nconst isNativeButton = computed(() => props.as === 'button');\nconst isDisabled = computed(() => props.disabled || props.loading);\n\n// The spinner takes the icon's leading position, so rendering both would show\n// two glyphs and widen the button mid-action.\nconst isIconHidden = computed(() => props.loading && props.hideIconWhileLoading);\n\nconst classes = computed(() =>\n buttonClass({\n variant: props.variant,\n size: props.size,\n class: {\n 'is-loading': props.loading,\n 'is-disabled': isDisabled.value,\n 't-button--block': props.block,\n 't-button--icon': props.iconOnly,\n 't-button--align-start': props.align === 'start',\n 't-button--align-end': props.align === 'end',\n },\n }),\n);\n\nconst onClick = (event: MouseEvent) => {\n if (isDisabled.value) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n emit('click', event);\n};\n</script>\n\n<template>\n <component\n :is=\"as\"\n :type=\"isNativeButton ? type : undefined\"\n :class=\"classes\"\n :disabled=\"isNativeButton ? isDisabled : undefined\"\n :aria-disabled=\"!isNativeButton && isDisabled ? 'true' : undefined\"\n :aria-busy=\"loading || undefined\"\n :aria-label=\"label\"\n :tabindex=\"!isNativeButton && isDisabled ? -1 : undefined\"\n @click=\"onClick\"\n >\n <span\n v-if=\"loading\"\n class=\"t-button__spinner\"\n >\n <TSpinner\n size=\"sm\"\n :label=\"loadingLabel\"\n />\n </span>\n <span\n v-if=\"$slots.icon && !isIconHidden\"\n class=\"t-button__icon\"\n aria-hidden=\"true\"\n >\n <slot name=\"icon\" />\n </span>\n <span\n v-if=\"!iconOnly\"\n class=\"t-button__label\"\n >\n <slot />\n </span>\n </component>\n</template>\n"],"mappings":"0oBAMA,IAAM,EAAQ,EA8CR,EAAO,EAIP,GAAA,EAAA,EAAA,GAAA,CAAiB,CACrB,KAAM,WACN,SAAU,CACR,QAAS,CACP,MAAO,kBACP,QAAS,oBACT,MAAO,kBACP,KAAM,iBACN,OAAQ,mBACR,MAAO,iBACT,EACA,KAAM,CACJ,GAAI,eACJ,GAAI,eACJ,GAAI,cACN,CACF,CACF,CAAC,EAEK,GAAA,EAAA,EAAA,SAAA,KAAgC,EAAM,KAAO,QAAQ,EACrD,GAAA,EAAA,EAAA,SAAA,KAA4B,EAAM,UAAY,EAAM,OAAO,EAI3D,GAAA,EAAA,EAAA,SAAA,KAA8B,EAAM,SAAW,EAAM,oBAAoB,EAEzE,GAAA,EAAA,EAAA,SAAA,KACJ,EAAY,CACV,QAAS,EAAM,QACf,KAAM,EAAM,KACZ,MAAO,CACL,aAAc,EAAM,QACpB,cAAe,EAAW,MAC1B,kBAAmB,EAAM,MACzB,iBAAkB,EAAM,SACxB,wBAAyB,EAAM,QAAU,QACzC,sBAAuB,EAAM,QAAU,KACzC,CACF,CAAC,CACH,EAEM,EAAW,GAAsB,CACrC,GAAI,EAAW,MAAO,CACpB,EAAM,eAAe,EACrB,EAAM,gBAAgB,EACtB,MACF,CAEA,EAAK,QAAS,CAAK,CACrB,kFAKS,EAAA,EAAE,EAAA,CACN,KAAM,EAAA,MAAiB,EAAA,KAAO,IAAA,GAC9B,OAAA,EAAA,EAAA,eAAA,CAAO,EAAA,KAAO,EACd,SAAU,EAAA,MAAiB,EAAA,MAAa,IAAA,GACxC,gBAAa,CAAG,EAAA,OAAkB,EAAA,MAAU,OAAY,IAAA,GACxD,YAAW,EAAA,SAAW,IAAA,GACtB,aAAY,EAAA,MACZ,SAAQ,CAAG,EAAA,OAAkB,EAAA,MAAU,GAAQ,IAAA,GACxC,sCAUD,CAPC,EAAA,UAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAOD,OARP,EAQO,EAAA,EAAA,EAAA,YAAA,CADH,EAAA,QAAA,CAFA,KAAK,KACJ,MAAO,EAAA,mEAIJA,EAAAA,OAAO,MAAI,CAAK,EAAA,QAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAKjB,OANP,EAMO,EAAA,EAAA,EAAA,WAAA,CADe,EAAA,OAAA,MAAA,CAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,EAGb,EAAA,UAGC,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,IAHD,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAIF,OALP,EAKO,EAAA,EAAA,EAAA,WAAA,CADG,EAAA,OAAA,SAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"TButton.vue_vue_type_script_setup_true_lang.cjs","names":["$slots"],"sources":["../../src/components/TButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs, watchEffect } from 'vue';\nimport { tv } from '@treeui/utils';\nimport type { TSize, TVariant } from '../types/contracts';\nimport TSpinner from './TSpinner.vue';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TVariant | 'brand';\n size?: TSize;\n disabled?: boolean;\n loading?: boolean;\n /**\n * Accessible announcement while `loading`, forwarded to the spinner.\n * The default is English; pass the active locale's string to localize it.\n */\n loadingLabel?: string;\n /**\n * While `loading`, hide the `icon` slot so the spinner replaces the icon\n * instead of rendering beside it. Set to `false` to keep both visible.\n */\n hideIconWhileLoading?: boolean;\n /**\n * Square, icon-only button. The visible label is dropped, so an accessible\n * name is required — pass `label` (or `aria-label`).\n */\n iconOnly?: boolean;\n /** Accessible name, rendered as `aria-label`. Required when `iconOnly`. */\n label?: string;\n type?: 'button' | 'submit' | 'reset';\n /** Stretch to the full width of the container. */\n block?: boolean;\n /** Content alignment — only meaningful together with `block`. */\n align?: 'start' | 'center' | 'end';\n }>(),\n {\n as: 'button',\n variant: 'solid',\n size: 'md',\n disabled: false,\n loading: false,\n loadingLabel: 'Loading',\n hideIconWhileLoading: true,\n iconOnly: false,\n label: undefined,\n type: 'button',\n block: false,\n align: 'center',\n },\n);\n\nconst emit = defineEmits<{\n click: [event: MouseEvent];\n}>();\n\nconst buttonClass = tv({\n base: 't-button',\n variants: {\n variant: {\n solid: 't-button--solid',\n outline: 't-button--outline',\n ghost: 't-button--ghost',\n soft: 't-button--soft',\n danger: 't-button--danger',\n brand: 't-button--brand',\n },\n size: {\n sm: 't-button--sm',\n md: 't-button--md',\n lg: 't-button--lg',\n },\n },\n});\n\nconst attrs = useAttrs();\nconst isNativeButton = computed(() => props.as === 'button');\nconst isDisabled = computed(() => props.disabled || props.loading);\n\n// An icon-only button has no visible text and an aria-hidden icon, so without a\n// name it is unlabelled for assistive tech. This is a BARE `process.env.NODE_ENV`\n// compare, inlined (no `typeof process` guard, no function wrapper): the\n// consumer's bundler statically replaces it, so the whole block runs in their\n// dev build and is dead-code-eliminated — string literals included — from their\n// production build. A `typeof process` guard would be `false` in the browser\n// (where `process` does not exist), silently disabling the warning; a function\n// wrapper would be opaque to tree-shaking. TreeUI's own build keeps\n// `process.env.NODE_ENV` as a runtime reference (vite.config `define`) so the\n// decision belongs to the consumer's environment, not this build.\nif (process.env.NODE_ENV !== 'production') {\n watchEffect(() => {\n if (\n props.iconOnly &&\n !props.label &&\n !attrs['aria-label'] &&\n !attrs['aria-labelledby']\n ) {\n console.warn(\n '[TButton] `iconOnly` needs an accessible name — pass the `label` prop (or `aria-label`).',\n );\n }\n });\n}\n\n// The spinner takes the icon's leading position, so rendering both would show\n// two glyphs and widen the button mid-action.\nconst isIconHidden = computed(() => props.loading && props.hideIconWhileLoading);\n\nconst classes = computed(() =>\n buttonClass({\n variant: props.variant,\n size: props.size,\n class: {\n 'is-loading': props.loading,\n 'is-disabled': isDisabled.value,\n 't-button--block': props.block,\n 't-button--icon': props.iconOnly,\n 't-button--align-start': props.align === 'start',\n 't-button--align-end': props.align === 'end',\n },\n }),\n);\n\nconst onClick = (event: MouseEvent) => {\n if (isDisabled.value) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n emit('click', event);\n};\n</script>\n\n<template>\n <component\n :is=\"as\"\n :type=\"isNativeButton ? type : undefined\"\n :class=\"classes\"\n :disabled=\"isNativeButton ? isDisabled : undefined\"\n :aria-disabled=\"!isNativeButton && isDisabled ? 'true' : undefined\"\n :aria-busy=\"loading || undefined\"\n :aria-label=\"label\"\n :tabindex=\"!isNativeButton && isDisabled ? -1 : undefined\"\n @click=\"onClick\"\n >\n <span\n v-if=\"loading\"\n class=\"t-button__spinner\"\n >\n <TSpinner\n size=\"sm\"\n :label=\"loadingLabel\"\n />\n </span>\n <span\n v-if=\"$slots.icon && !isIconHidden\"\n class=\"t-button__icon\"\n aria-hidden=\"true\"\n >\n <slot name=\"icon\" />\n </span>\n <span\n v-if=\"!iconOnly\"\n class=\"t-button__label\"\n >\n <slot />\n </span>\n </component>\n</template>\n"],"mappings":"0oBAMA,IAAM,EAAQ,EA8CR,EAAO,EAIP,GAAA,EAAA,EAAA,GAAA,CAAiB,CACrB,KAAM,WACN,SAAU,CACR,QAAS,CACP,MAAO,kBACP,QAA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EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAOD,OARP,EAQO,EAAA,EAAA,EAAA,YAAA,CADH,EAAA,QAAA,CAFA,KAAK,KACJ,MAAO,EAAA,mEAIJA,EAAAA,OAAO,MAAI,CAAK,EAAA,QAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAKjB,OANP,EAMO,EAAA,EAAA,EAAA,WAAA,CADe,EAAA,OAAA,MAAA,CAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,EAGb,EAAA,UAGC,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,IAHD,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAIF,OALP,EAKO,EAAA,EAAA,EAAA,WAAA,CADG,EAAA,OAAA,SAAA,CAAA,CAAA"}
@@ -1,18 +1,18 @@
1
1
  import e from "./TSpinner.js";
2
- import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, resolveDynamicComponent as u, withCtx as d } from "vue";
3
- import { tv as f } from "@treeui/utils";
2
+ import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, resolveDynamicComponent as u, useAttrs as d, watchEffect as f, withCtx as p } from "vue";
3
+ import { tv as m } from "@treeui/utils";
4
4
  //#region src/components/TButton.vue?vue&type=script&setup=true&lang.ts
5
- var p = {
5
+ var h = {
6
6
  key: 0,
7
7
  class: "t-button__spinner"
8
- }, m = {
8
+ }, g = {
9
9
  key: 1,
10
10
  class: "t-button__icon",
11
11
  "aria-hidden": "true"
12
- }, h = {
12
+ }, _ = {
13
13
  key: 2,
14
14
  class: "t-button__label"
15
- }, g = /*@__PURE__*/ o({
15
+ }, v = /*@__PURE__*/ o({
16
16
  __name: "TButton",
17
17
  props: {
18
18
  as: { default: "button" },
@@ -44,8 +44,8 @@ var p = {
44
44
  align: { default: "center" }
45
45
  },
46
46
  emits: ["click"],
47
- setup(o, { emit: g }) {
48
- let _ = o, v = g, y = f({
47
+ setup(o, { emit: v }) {
48
+ let y = o, b = v, x = m({
49
49
  base: "t-button",
50
50
  variants: {
51
51
  variant: {
@@ -62,41 +62,45 @@ var p = {
62
62
  lg: "t-button--lg"
63
63
  }
64
64
  }
65
- }), b = t(() => _.as === "button"), x = t(() => _.disabled || _.loading), S = t(() => _.loading && _.hideIconWhileLoading), C = t(() => y({
66
- variant: _.variant,
67
- size: _.size,
65
+ }), S = d(), C = t(() => y.as === "button"), w = t(() => y.disabled || y.loading);
66
+ process.env.NODE_ENV !== "production" && f(() => {
67
+ y.iconOnly && !y.label && !S["aria-label"] && !S["aria-labelledby"] && console.warn("[TButton] `iconOnly` needs an accessible name — pass the `label` prop (or `aria-label`).");
68
+ });
69
+ let T = t(() => y.loading && y.hideIconWhileLoading), E = t(() => x({
70
+ variant: y.variant,
71
+ size: y.size,
68
72
  class: {
69
- "is-loading": _.loading,
70
- "is-disabled": x.value,
71
- "t-button--block": _.block,
72
- "t-button--icon": _.iconOnly,
73
- "t-button--align-start": _.align === "start",
74
- "t-button--align-end": _.align === "end"
73
+ "is-loading": y.loading,
74
+ "is-disabled": w.value,
75
+ "t-button--block": y.block,
76
+ "t-button--icon": y.iconOnly,
77
+ "t-button--align-start": y.align === "start",
78
+ "t-button--align-end": y.align === "end"
75
79
  }
76
- })), w = (e) => {
77
- if (x.value) {
80
+ })), D = (e) => {
81
+ if (w.value) {
78
82
  e.preventDefault(), e.stopPropagation();
79
83
  return;
80
84
  }
81
- v("click", e);
85
+ b("click", e);
82
86
  };
83
- return (t, f) => (c(), n(u(o.as), {
84
- type: b.value ? o.type : void 0,
85
- class: s(C.value),
86
- disabled: b.value ? x.value : void 0,
87
- "aria-disabled": !b.value && x.value ? "true" : void 0,
87
+ return (t, d) => (c(), n(u(o.as), {
88
+ type: C.value ? o.type : void 0,
89
+ class: s(E.value),
90
+ disabled: C.value ? w.value : void 0,
91
+ "aria-disabled": !C.value && w.value ? "true" : void 0,
88
92
  "aria-busy": o.loading || void 0,
89
93
  "aria-label": o.label,
90
- tabindex: !b.value && x.value ? -1 : void 0,
91
- onClick: w
94
+ tabindex: !C.value && w.value ? -1 : void 0,
95
+ onClick: D
92
96
  }, {
93
- default: d(() => [
94
- o.loading ? (c(), i("span", p, [a(e, {
97
+ default: p(() => [
98
+ o.loading ? (c(), i("span", h, [a(e, {
95
99
  size: "sm",
96
100
  label: o.loadingLabel
97
101
  }, null, 8, ["label"])])) : r("", !0),
98
- t.$slots.icon && !S.value ? (c(), i("span", m, [l(t.$slots, "icon")])) : r("", !0),
99
- o.iconOnly ? r("", !0) : (c(), i("span", h, [l(t.$slots, "default")]))
102
+ t.$slots.icon && !T.value ? (c(), i("span", g, [l(t.$slots, "icon")])) : r("", !0),
103
+ o.iconOnly ? r("", !0) : (c(), i("span", _, [l(t.$slots, "default")]))
100
104
  ]),
101
105
  _: 3
102
106
  }, 8, [
@@ -111,6 +115,6 @@ var p = {
111
115
  }
112
116
  });
113
117
  //#endregion
114
- export { g as default };
118
+ export { v as default };
115
119
 
116
120
  //# sourceMappingURL=TButton.vue_vue_type_script_setup_true_lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TButton.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../src/components/TButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { tv } from '@treeui/utils';\nimport type { TSize, TVariant } from '../types/contracts';\nimport TSpinner from './TSpinner.vue';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TVariant | 'brand';\n size?: TSize;\n disabled?: boolean;\n loading?: boolean;\n /**\n * Accessible announcement while `loading`, forwarded to the spinner.\n * The default is English; pass the active locale's string to localize it.\n */\n loadingLabel?: string;\n /**\n * While `loading`, hide the `icon` slot so the spinner replaces the icon\n * instead of rendering beside it. Set to `false` to keep both visible.\n */\n hideIconWhileLoading?: boolean;\n /**\n * Square, icon-only button. The visible label is dropped, so an accessible\n * name is required — pass `label` (or `aria-label`).\n */\n iconOnly?: boolean;\n /** Accessible name, rendered as `aria-label`. Required when `iconOnly`. */\n label?: string;\n type?: 'button' | 'submit' | 'reset';\n /** Stretch to the full width of the container. */\n block?: boolean;\n /** Content alignment — only meaningful together with `block`. */\n align?: 'start' | 'center' | 'end';\n }>(),\n {\n as: 'button',\n variant: 'solid',\n size: 'md',\n disabled: false,\n loading: false,\n loadingLabel: 'Loading',\n hideIconWhileLoading: true,\n iconOnly: false,\n label: undefined,\n type: 'button',\n block: false,\n align: 'center',\n },\n);\n\nconst emit = defineEmits<{\n click: [event: MouseEvent];\n}>();\n\nconst buttonClass = tv({\n base: 't-button',\n variants: {\n variant: {\n solid: 't-button--solid',\n outline: 't-button--outline',\n ghost: 't-button--ghost',\n soft: 't-button--soft',\n danger: 't-button--danger',\n brand: 't-button--brand',\n },\n size: {\n sm: 't-button--sm',\n md: 't-button--md',\n lg: 't-button--lg',\n },\n },\n});\n\nconst isNativeButton = computed(() => props.as === 'button');\nconst isDisabled = computed(() => props.disabled || props.loading);\n\n// The spinner takes the icon's leading position, so rendering both would show\n// two glyphs and widen the button mid-action.\nconst isIconHidden = computed(() => props.loading && props.hideIconWhileLoading);\n\nconst classes = computed(() =>\n buttonClass({\n variant: props.variant,\n size: props.size,\n class: {\n 'is-loading': props.loading,\n 'is-disabled': isDisabled.value,\n 't-button--block': props.block,\n 't-button--icon': props.iconOnly,\n 't-button--align-start': props.align === 'start',\n 't-button--align-end': props.align === 'end',\n },\n }),\n);\n\nconst onClick = (event: MouseEvent) => {\n if (isDisabled.value) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n emit('click', event);\n};\n</script>\n\n<template>\n <component\n :is=\"as\"\n :type=\"isNativeButton ? type : undefined\"\n :class=\"classes\"\n :disabled=\"isNativeButton ? isDisabled : undefined\"\n :aria-disabled=\"!isNativeButton && isDisabled ? 'true' : undefined\"\n :aria-busy=\"loading || undefined\"\n :aria-label=\"label\"\n :tabindex=\"!isNativeButton && isDisabled ? -1 : undefined\"\n @click=\"onClick\"\n >\n <span\n v-if=\"loading\"\n class=\"t-button__spinner\"\n >\n <TSpinner\n size=\"sm\"\n :label=\"loadingLabel\"\n />\n </span>\n <span\n v-if=\"$slots.icon && !isIconHidden\"\n class=\"t-button__icon\"\n aria-hidden=\"true\"\n >\n <slot name=\"icon\" />\n </span>\n <span\n v-if=\"!iconOnly\"\n class=\"t-button__label\"\n >\n <slot />\n </span>\n </component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMA,IAAM,IAAQ,GA8CR,IAAO,GAIP,IAAc,EAAG;GACrB,MAAM;GACN,UAAU;IACR,SAAS;KACP,OAAO;KACP,SAAS;KACT,OAAO;KACP,MAAM;KACN,QAAQ;KACR,OAAO;IACT;IACA,MAAM;KACJ,IAAI;KACJ,IAAI;KACJ,IAAI;IACN;GACF;EACF,CAAC,GAEK,IAAiB,QAAe,EAAM,OAAO,QAAQ,GACrD,IAAa,QAAe,EAAM,YAAY,EAAM,OAAO,GAI3D,IAAe,QAAe,EAAM,WAAW,EAAM,oBAAoB,GAEzE,IAAU,QACd,EAAY;GACV,SAAS,EAAM;GACf,MAAM,EAAM;GACZ,OAAO;IACL,cAAc,EAAM;IACpB,eAAe,EAAW;IAC1B,mBAAmB,EAAM;IACzB,kBAAkB,EAAM;IACxB,yBAAyB,EAAM,UAAU;IACzC,uBAAuB,EAAM,UAAU;GACzC;EACF,CAAC,CACH,GAEM,KAAW,MAAsB;GACrC,IAAI,EAAW,OAAO;IAEpB,AADA,EAAM,eAAe,GACrB,EAAM,gBAAgB;IACtB;GACF;GAEA,EAAK,SAAS,CAAK;EACrB;yBAIE,EAiCY,EAhCL,EAAA,EAAE,GAAA;GACN,MAAM,EAAA,QAAiB,EAAA,OAAO,KAAA;GAC9B,OAAK,EAAE,EAAA,KAAO;GACd,UAAU,EAAA,QAAiB,EAAA,QAAa,KAAA;GACxC,iBAAa,CAAG,EAAA,SAAkB,EAAA,QAAU,SAAY,KAAA;GACxD,aAAW,EAAA,WAAW,KAAA;GACtB,cAAY,EAAA;GACZ,UAAQ,CAAG,EAAA,SAAkB,EAAA,QAAU,KAAQ,KAAA;GACxC;;oBAUD;IAPC,EAAA,WAAA,EAAA,GADR,EAQO,QARP,GAQO,CAJL,EAGE,GAAA;KAFA,MAAK;KACJ,OAAO,EAAA;;IAIJA,EAAAA,OAAO,QAAI,CAAK,EAAA,SAAA,EAAA,GADxB,EAMO,QANP,GAMO,CADL,EAAoB,EAAA,QAAA,MAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA;IAGb,EAAA,WAGC,EAAA,IAAA,EAAA,KAHD,EAAA,GADT,EAKO,QALP,GAKO,CADL,EAAQ,EAAA,QAAA,SAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"TButton.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../src/components/TButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs, watchEffect } from 'vue';\nimport { tv } from '@treeui/utils';\nimport type { TSize, TVariant } from '../types/contracts';\nimport TSpinner from './TSpinner.vue';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TVariant | 'brand';\n size?: TSize;\n disabled?: boolean;\n loading?: boolean;\n /**\n * Accessible announcement while `loading`, forwarded to the spinner.\n * The default is English; pass the active locale's string to localize it.\n */\n loadingLabel?: string;\n /**\n * While `loading`, hide the `icon` slot so the spinner replaces the icon\n * instead of rendering beside it. Set to `false` to keep both visible.\n */\n hideIconWhileLoading?: boolean;\n /**\n * Square, icon-only button. The visible label is dropped, so an accessible\n * name is required — pass `label` (or `aria-label`).\n */\n iconOnly?: boolean;\n /** Accessible name, rendered as `aria-label`. Required when `iconOnly`. */\n label?: string;\n type?: 'button' | 'submit' | 'reset';\n /** Stretch to the full width of the container. */\n block?: boolean;\n /** Content alignment — only meaningful together with `block`. */\n align?: 'start' | 'center' | 'end';\n }>(),\n {\n as: 'button',\n variant: 'solid',\n size: 'md',\n disabled: false,\n loading: false,\n loadingLabel: 'Loading',\n hideIconWhileLoading: true,\n iconOnly: false,\n label: undefined,\n type: 'button',\n block: false,\n align: 'center',\n },\n);\n\nconst emit = defineEmits<{\n click: [event: MouseEvent];\n}>();\n\nconst buttonClass = tv({\n base: 't-button',\n variants: {\n variant: {\n solid: 't-button--solid',\n outline: 't-button--outline',\n ghost: 't-button--ghost',\n soft: 't-button--soft',\n danger: 't-button--danger',\n brand: 't-button--brand',\n },\n size: {\n sm: 't-button--sm',\n md: 't-button--md',\n lg: 't-button--lg',\n },\n },\n});\n\nconst attrs = useAttrs();\nconst isNativeButton = computed(() => props.as === 'button');\nconst isDisabled = computed(() => props.disabled || props.loading);\n\n// An icon-only button has no visible text and an aria-hidden icon, so without a\n// name it is unlabelled for assistive tech. This is a BARE `process.env.NODE_ENV`\n// compare, inlined (no `typeof process` guard, no function wrapper): the\n// consumer's bundler statically replaces it, so the whole block runs in their\n// dev build and is dead-code-eliminated — string literals included — from their\n// production build. A `typeof process` guard would be `false` in the browser\n// (where `process` does not exist), silently disabling the warning; a function\n// wrapper would be opaque to tree-shaking. TreeUI's own build keeps\n// `process.env.NODE_ENV` as a runtime reference (vite.config `define`) so the\n// decision belongs to the consumer's environment, not this build.\nif (process.env.NODE_ENV !== 'production') {\n watchEffect(() => {\n if (\n props.iconOnly &&\n !props.label &&\n !attrs['aria-label'] &&\n !attrs['aria-labelledby']\n ) {\n console.warn(\n '[TButton] `iconOnly` needs an accessible name — pass the `label` prop (or `aria-label`).',\n );\n }\n });\n}\n\n// The spinner takes the icon's leading position, so rendering both would show\n// two glyphs and widen the button mid-action.\nconst isIconHidden = computed(() => props.loading && props.hideIconWhileLoading);\n\nconst classes = computed(() =>\n buttonClass({\n variant: props.variant,\n size: props.size,\n class: {\n 'is-loading': props.loading,\n 'is-disabled': isDisabled.value,\n 't-button--block': props.block,\n 't-button--icon': props.iconOnly,\n 't-button--align-start': props.align === 'start',\n 't-button--align-end': props.align === 'end',\n },\n }),\n);\n\nconst onClick = (event: MouseEvent) => {\n if (isDisabled.value) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n emit('click', event);\n};\n</script>\n\n<template>\n <component\n :is=\"as\"\n :type=\"isNativeButton ? type : undefined\"\n :class=\"classes\"\n :disabled=\"isNativeButton ? isDisabled : undefined\"\n :aria-disabled=\"!isNativeButton && isDisabled ? 'true' : undefined\"\n :aria-busy=\"loading || undefined\"\n :aria-label=\"label\"\n :tabindex=\"!isNativeButton && isDisabled ? -1 : undefined\"\n @click=\"onClick\"\n >\n <span\n v-if=\"loading\"\n class=\"t-button__spinner\"\n >\n <TSpinner\n size=\"sm\"\n :label=\"loadingLabel\"\n />\n </span>\n <span\n v-if=\"$slots.icon && !isIconHidden\"\n class=\"t-button__icon\"\n aria-hidden=\"true\"\n >\n <slot name=\"icon\" />\n </span>\n <span\n v-if=\"!iconOnly\"\n class=\"t-button__label\"\n >\n <slot />\n </span>\n </component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMA,IAAM,IAAQ,GA8CR,IAAO,GAIP,IAAc,EAAG;GACrB,MAAM;GACN,UAAU;IACR,SAAS;KACP,OAAO;KACP,SAAS;KACT,OAAO;KACP,MAAM;KACN,QAAQ;KACR,OAAO;IACT;IACA,MAAM;KACJ,IAAI;KACJ,IAAI;KACJ,IAAI;IACN;GACF;EACF,CAAC,GAEK,IAAQ,EAAS,GACjB,IAAiB,QAAe,EAAM,OAAO,QAAQ,GACrD,IAAa,QAAe,EAAM,YAAY,EAAM,OAAO;EAYjE,AAAA,QAAA,IAAA,aAA6B,gBAC3B,QAAkB;GAChB,AACE,EAAM,YACN,CAAC,EAAM,SACP,CAAC,EAAM,iBACP,CAAC,EAAM,sBAEP,QAAQ,KACN,0FACF;EAEJ,CAAC;EAKH,IAAM,IAAe,QAAe,EAAM,WAAW,EAAM,oBAAoB,GAEzE,IAAU,QACd,EAAY;GACV,SAAS,EAAM;GACf,MAAM,EAAM;GACZ,OAAO;IACL,cAAc,EAAM;IACpB,eAAe,EAAW;IAC1B,mBAAmB,EAAM;IACzB,kBAAkB,EAAM;IACxB,yBAAyB,EAAM,UAAU;IACzC,uBAAuB,EAAM,UAAU;GACzC;EACF,CAAC,CACH,GAEM,KAAW,MAAsB;GACrC,IAAI,EAAW,OAAO;IAEpB,AADA,EAAM,eAAe,GACrB,EAAM,gBAAgB;IACtB;GACF;GAEA,EAAK,SAAS,CAAK;EACrB;yBAIE,EAiCY,EAhCL,EAAA,EAAE,GAAA;GACN,MAAM,EAAA,QAAiB,EAAA,OAAO,KAAA;GAC9B,OAAK,EAAE,EAAA,KAAO;GACd,UAAU,EAAA,QAAiB,EAAA,QAAa,KAAA;GACxC,iBAAa,CAAG,EAAA,SAAkB,EAAA,QAAU,SAAY,KAAA;GACxD,aAAW,EAAA,WAAW,KAAA;GACtB,cAAY,EAAA;GACZ,UAAQ,CAAG,EAAA,SAAkB,EAAA,QAAU,KAAQ,KAAA;GACxC;;oBAUD;IAPC,EAAA,WAAA,EAAA,GADR,EAQO,QARP,GAQO,CAJL,EAGE,GAAA;KAFA,MAAK;KACJ,OAAO,EAAA;;IAIJA,EAAAA,OAAO,QAAI,CAAK,EAAA,SAAA,EAAA,GADxB,EAMO,QANP,GAMO,CADL,EAAoB,EAAA,QAAA,MAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA;IAGb,EAAA,WAGC,EAAA,IAAA,EAAA,KAHD,EAAA,GADT,EAKO,QALP,GAKO,CADL,EAAQ,EAAA,QAAA,SAAA,CAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TCard.cjs","names":[],"sources":["../../src/components/TCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { TCardVariant, TSize } from '../types/contracts';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TCardVariant;\n size?: TSize;\n title?: string;\n }>(),\n {\n as: 'section',\n variant: 'outline',\n size: 'md',\n title: undefined,\n },\n);\n\nconst classes = computed(() => [\n 't-card',\n `t-card--${props.variant}`,\n `t-card--${props.size}`,\n]);\n\nconst hasHeader = computed(() => !!props.title);\n</script>\n\n<template>\n <component\n :is=\"as\"\n :class=\"classes\"\n >\n <header\n v-if=\"$slots.header || hasHeader || $slots.actions\"\n class=\"t-card__header\"\n >\n <slot name=\"header\">\n <span\n v-if=\"title\"\n class=\"t-card__title\"\n >\n {{ title }}\n </span>\n </slot>\n <span\n v-if=\"$slots.actions\"\n class=\"t-card__actions\"\n >\n <slot name=\"actions\" />\n </span>\n </header>\n <div class=\"t-card__body\">\n <slot />\n </div>\n <footer\n v-if=\"$slots.footer\"\n class=\"t-card__footer\"\n >\n <slot name=\"footer\" />\n </footer>\n </component>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"TCard.cjs","names":[],"sources":["../../src/components/TCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { TCardVariant, TSize } from '../types/contracts';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TCardVariant;\n size?: TSize;\n title?: string;\n /**\n * Treat the card as an interactive surface — adds hover elevation and a\n * focus-visible ring. Use with `as=\"a\"` / `as=\"router-link\"` to make the\n * whole card a link without an inner `TLink` (which would underline the\n * card's text via decoration inheritance).\n */\n interactive?: boolean;\n }>(),\n {\n as: 'section',\n variant: 'outline',\n size: 'md',\n title: undefined,\n interactive: false,\n },\n);\n\nconst classes = computed(() => [\n 't-card',\n `t-card--${props.variant}`,\n `t-card--${props.size}`,\n { 't-card--interactive': props.interactive },\n]);\n\nconst hasHeader = computed(() => !!props.title);\n</script>\n\n<template>\n <component\n :is=\"as\"\n :class=\"classes\"\n >\n <header\n v-if=\"$slots.header || hasHeader || $slots.actions\"\n class=\"t-card__header\"\n >\n <slot name=\"header\">\n <span\n v-if=\"title\"\n class=\"t-card__title\"\n >\n {{ title }}\n </span>\n </slot>\n <span\n v-if=\"$slots.actions\"\n class=\"t-card__actions\"\n >\n <slot name=\"actions\" />\n </span>\n </header>\n <div class=\"t-card__body\">\n <slot />\n </div>\n <footer\n v-if=\"$slots.footer\"\n class=\"t-card__footer\"\n >\n <slot name=\"footer\" />\n </footer>\n </component>\n</template>\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"TCard.js","names":[],"sources":["../../src/components/TCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { TCardVariant, TSize } from '../types/contracts';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TCardVariant;\n size?: TSize;\n title?: string;\n }>(),\n {\n as: 'section',\n variant: 'outline',\n size: 'md',\n title: undefined,\n },\n);\n\nconst classes = computed(() => [\n 't-card',\n `t-card--${props.variant}`,\n `t-card--${props.size}`,\n]);\n\nconst hasHeader = computed(() => !!props.title);\n</script>\n\n<template>\n <component\n :is=\"as\"\n :class=\"classes\"\n >\n <header\n v-if=\"$slots.header || hasHeader || $slots.actions\"\n class=\"t-card__header\"\n >\n <slot name=\"header\">\n <span\n v-if=\"title\"\n class=\"t-card__title\"\n >\n {{ title }}\n </span>\n </slot>\n <span\n v-if=\"$slots.actions\"\n class=\"t-card__actions\"\n >\n <slot name=\"actions\" />\n </span>\n </header>\n <div class=\"t-card__body\">\n <slot />\n </div>\n <footer\n v-if=\"$slots.footer\"\n class=\"t-card__footer\"\n >\n <slot name=\"footer\" />\n </footer>\n </component>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"TCard.js","names":[],"sources":["../../src/components/TCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { TCardVariant, TSize } from '../types/contracts';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TCardVariant;\n size?: TSize;\n title?: string;\n /**\n * Treat the card as an interactive surface — adds hover elevation and a\n * focus-visible ring. Use with `as=\"a\"` / `as=\"router-link\"` to make the\n * whole card a link without an inner `TLink` (which would underline the\n * card's text via decoration inheritance).\n */\n interactive?: boolean;\n }>(),\n {\n as: 'section',\n variant: 'outline',\n size: 'md',\n title: undefined,\n interactive: false,\n },\n);\n\nconst classes = computed(() => [\n 't-card',\n `t-card--${props.variant}`,\n `t-card--${props.size}`,\n { 't-card--interactive': props.interactive },\n]);\n\nconst hasHeader = computed(() => !!props.title);\n</script>\n\n<template>\n <component\n :is=\"as\"\n :class=\"classes\"\n >\n <header\n v-if=\"$slots.header || hasHeader || $slots.actions\"\n class=\"t-card__header\"\n >\n <slot name=\"header\">\n <span\n v-if=\"title\"\n class=\"t-card__title\"\n >\n {{ title }}\n </span>\n </slot>\n <span\n v-if=\"$slots.actions\"\n class=\"t-card__actions\"\n >\n <slot name=\"actions\" />\n </span>\n </header>\n <div class=\"t-card__body\">\n <slot />\n </div>\n <footer\n v-if=\"$slots.footer\"\n class=\"t-card__footer\"\n >\n <slot name=\"footer\" />\n </footer>\n </component>\n</template>\n"],"mappings":""}
@@ -4,6 +4,13 @@ type __VLS_Props = {
4
4
  variant?: TCardVariant;
5
5
  size?: TSize;
6
6
  title?: string;
7
+ /**
8
+ * Treat the card as an interactive surface — adds hover elevation and a
9
+ * focus-visible ring. Use with `as="a"` / `as="router-link"` to make the
10
+ * whole card a link without an inner `TLink` (which would underline the
11
+ * card's text via decoration inheritance).
12
+ */
13
+ interactive?: boolean;
7
14
  };
8
15
  declare function __VLS_template(): {
9
16
  attrs: Partial<{}>;
@@ -22,6 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
22
29
  title: string;
23
30
  variant: TCardVariant;
24
31
  as: string;
32
+ interactive: boolean;
25
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
34
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
35
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"TCard.vue.d.ts","sourceRoot":"","sources":["../../src/components/TCard.vue"],"names":[],"mappings":"AAkEA,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE9D,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AA2BJ,iBAAS,cAAc;WAkET,OAAO,IAA6B;;wBAbtB,GAAG;yBACF,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UAhHV,KAAK;WACJ,MAAM;aAFJ,YAAY;QADjB,MAAM;6EA0Hb,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"TCard.vue.d.ts","sourceRoot":"","sources":["../../src/components/TCard.vue"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE9D,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AA8BJ,iBAAS,cAAc;WAkET,OAAO,IAA6B;;wBAbtB,GAAG;yBACF,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UA1HV,KAAK;WACJ,MAAM;aAFJ,YAAY;QADjB,MAAM;iBAUG,OAAO;6EA0HvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,2 +1,2 @@
1
- let e=require("vue");var t={key:0,class:`t-card__header`},n={key:0,class:`t-card__title`},r={key:0,class:`t-card__actions`},i={class:`t-card__body`},a={key:1,class:`t-card__footer`},o=(0,e.defineComponent)({__name:`TCard`,props:{as:{default:`section`},variant:{default:`outline`},size:{default:`md`},title:{default:void 0}},setup(o){let s=o,c=(0,e.computed)(()=>[`t-card`,`t-card--${s.variant}`,`t-card--${s.size}`]),l=(0,e.computed)(()=>!!s.title);return(s,u)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(o.as),{class:(0,e.normalizeClass)(c.value)},{default:(0,e.withCtx)(()=>[s.$slots.header||l.value||s.$slots.actions?((0,e.openBlock)(),(0,e.createElementBlock)(`header`,t,[(0,e.renderSlot)(s.$slots,`header`,{},()=>[o.title?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,n,(0,e.toDisplayString)(o.title),1)):(0,e.createCommentVNode)(``,!0)]),s.$slots.actions?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,r,[(0,e.renderSlot)(s.$slots,`actions`)])):(0,e.createCommentVNode)(``,!0)])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,i,[(0,e.renderSlot)(s.$slots,`default`)]),s.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,a,[(0,e.renderSlot)(s.$slots,`footer`)])):(0,e.createCommentVNode)(``,!0)]),_:3},8,[`class`]))}});exports.default=o;
1
+ let e=require("vue");var t={key:0,class:`t-card__header`},n={key:0,class:`t-card__title`},r={key:0,class:`t-card__actions`},i={class:`t-card__body`},a={key:1,class:`t-card__footer`},o=(0,e.defineComponent)({__name:`TCard`,props:{as:{default:`section`},variant:{default:`outline`},size:{default:`md`},title:{default:void 0},interactive:{type:Boolean,default:!1}},setup(o){let s=o,c=(0,e.computed)(()=>[`t-card`,`t-card--${s.variant}`,`t-card--${s.size}`,{"t-card--interactive":s.interactive}]),l=(0,e.computed)(()=>!!s.title);return(s,u)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(o.as),{class:(0,e.normalizeClass)(c.value)},{default:(0,e.withCtx)(()=>[s.$slots.header||l.value||s.$slots.actions?((0,e.openBlock)(),(0,e.createElementBlock)(`header`,t,[(0,e.renderSlot)(s.$slots,`header`,{},()=>[o.title?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,n,(0,e.toDisplayString)(o.title),1)):(0,e.createCommentVNode)(``,!0)]),s.$slots.actions?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,r,[(0,e.renderSlot)(s.$slots,`actions`)])):(0,e.createCommentVNode)(``,!0)])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,i,[(0,e.renderSlot)(s.$slots,`default`)]),s.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,a,[(0,e.renderSlot)(s.$slots,`footer`)])):(0,e.createCommentVNode)(``,!0)]),_:3},8,[`class`]))}});exports.default=o;
2
2
  //# sourceMappingURL=TCard.vue_vue_type_script_setup_true_lang.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TCard.vue_vue_type_script_setup_true_lang.cjs","names":["$slots"],"sources":["../../src/components/TCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { TCardVariant, TSize } from '../types/contracts';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TCardVariant;\n size?: TSize;\n title?: string;\n }>(),\n {\n as: 'section',\n variant: 'outline',\n size: 'md',\n title: undefined,\n },\n);\n\nconst classes = computed(() => [\n 't-card',\n `t-card--${props.variant}`,\n `t-card--${props.size}`,\n]);\n\nconst hasHeader = computed(() => !!props.title);\n</script>\n\n<template>\n <component\n :is=\"as\"\n :class=\"classes\"\n >\n <header\n v-if=\"$slots.header || hasHeader || $slots.actions\"\n class=\"t-card__header\"\n >\n <slot name=\"header\">\n <span\n v-if=\"title\"\n class=\"t-card__title\"\n >\n {{ title }}\n </span>\n </slot>\n <span\n v-if=\"$slots.actions\"\n class=\"t-card__actions\"\n >\n <slot name=\"actions\" />\n </span>\n </header>\n <div class=\"t-card__body\">\n <slot />\n </div>\n <footer\n v-if=\"$slots.footer\"\n class=\"t-card__footer\"\n >\n <slot name=\"footer\" />\n </footer>\n </component>\n</template>\n"],"mappings":"6UAIA,IAAM,EAAQ,EAeR,GAAA,EAAA,EAAA,SAAA,KAAyB,CAC7B,SACA,WAAW,EAAM,UACjB,WAAW,EAAM,MACnB,CAAC,EAEK,GAAA,EAAA,EAAA,SAAA,KAA2B,CAAC,CAAC,EAAM,KAAK,kFAKrC,EAAA,EAAE,EAAA,CACN,OAAA,EAAA,EAAA,eAAA,CAAO,EAAA,KAAO,CAAA,EAAA,2BAoBN,CAjBDA,EAAAA,OAAO,QAAU,EAAA,OAAaA,EAAAA,OAAO,UAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAiBpC,SAlBT,EAkBS,EAAA,EAAA,EAAA,WAAA,CAPA,EAAA,OAAA,SAAA,CAAA,MAAA,CALG,EAAA,QAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAID,OALP,GAAA,EAAA,EAAA,gBAAA,CAIK,EAAA,KAAK,EAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,CAAA,CAAA,EAIJA,EAAAA,OAAO,UAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAIR,OALP,EAKO,EAAA,EAAA,EAAA,WAAA,CADkB,EAAA,OAAA,SAAA,CAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,CAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,2BAKrB,MAFN,EAEM,EAAA,EAAA,EAAA,WAAA,CADI,EAAA,OAAA,SAAA,CAAA,CAAA,EAGFA,EAAAA,OAAO,SAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAIN,SALT,EAKS,EAAA,EAAA,EAAA,WAAA,CADe,EAAA,OAAA,QAAA,CAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"TCard.vue_vue_type_script_setup_true_lang.cjs","names":["$slots"],"sources":["../../src/components/TCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { TCardVariant, TSize } from '../types/contracts';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TCardVariant;\n size?: TSize;\n title?: string;\n /**\n * Treat the card as an interactive surface — adds hover elevation and a\n * focus-visible ring. Use with `as=\"a\"` / `as=\"router-link\"` to make the\n * whole card a link without an inner `TLink` (which would underline the\n * card's text via decoration inheritance).\n */\n interactive?: boolean;\n }>(),\n {\n as: 'section',\n variant: 'outline',\n size: 'md',\n title: undefined,\n interactive: false,\n },\n);\n\nconst classes = computed(() => [\n 't-card',\n `t-card--${props.variant}`,\n `t-card--${props.size}`,\n { 't-card--interactive': props.interactive },\n]);\n\nconst hasHeader = computed(() => !!props.title);\n</script>\n\n<template>\n <component\n :is=\"as\"\n :class=\"classes\"\n >\n <header\n v-if=\"$slots.header || hasHeader || $slots.actions\"\n class=\"t-card__header\"\n >\n <slot name=\"header\">\n <span\n v-if=\"title\"\n class=\"t-card__title\"\n >\n {{ title }}\n </span>\n </slot>\n <span\n v-if=\"$slots.actions\"\n class=\"t-card__actions\"\n >\n <slot name=\"actions\" />\n </span>\n </header>\n <div class=\"t-card__body\">\n <slot />\n </div>\n <footer\n v-if=\"$slots.footer\"\n class=\"t-card__footer\"\n >\n <slot name=\"footer\" />\n </footer>\n </component>\n</template>\n"],"mappings":"mXAIA,IAAM,EAAQ,EAuBR,GAAA,EAAA,EAAA,SAAA,KAAyB,CAC7B,SACA,WAAW,EAAM,UACjB,WAAW,EAAM,OACjB,CAAE,sBAAuB,EAAM,WAAY,CAC7C,CAAC,EAEK,GAAA,EAAA,EAAA,SAAA,KAA2B,CAAC,CAAC,EAAM,KAAK,kFAKrC,EAAA,EAAE,EAAA,CACN,OAAA,EAAA,EAAA,eAAA,CAAO,EAAA,KAAO,CAAA,EAAA,2BAoBN,CAjBDA,EAAAA,OAAO,QAAU,EAAA,OAAaA,EAAAA,OAAO,UAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAiBpC,SAlBT,EAkBS,EAAA,EAAA,EAAA,WAAA,CAPA,EAAA,OAAA,SAAA,CAAA,MAAA,CALG,EAAA,QAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAID,OALP,GAAA,EAAA,EAAA,gBAAA,CAIK,EAAA,KAAK,EAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,CAAA,CAAA,EAIJA,EAAAA,OAAO,UAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAIR,OALP,EAKO,EAAA,EAAA,EAAA,WAAA,CADkB,EAAA,OAAA,SAAA,CAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,CAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA,2BAKrB,MAFN,EAEM,EAAA,EAAA,EAAA,WAAA,CADI,EAAA,OAAA,SAAA,CAAA,CAAA,EAGFA,EAAAA,OAAO,SAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAIN,SALT,EAKS,EAAA,EAAA,EAAA,WAAA,CADe,EAAA,OAAA,QAAA,CAAA,CAAA,IAAA,EAAA,EAAA,mBAAA,CAAA,GAAA,EAAA"}
@@ -18,13 +18,18 @@ var f = {
18
18
  as: { default: "section" },
19
19
  variant: { default: "outline" },
20
20
  size: { default: "md" },
21
- title: { default: void 0 }
21
+ title: { default: void 0 },
22
+ interactive: {
23
+ type: Boolean,
24
+ default: !1
25
+ }
22
26
  },
23
27
  setup(a) {
24
28
  let _ = a, v = e(() => [
25
29
  "t-card",
26
30
  `t-card--${_.variant}`,
27
- `t-card--${_.size}`
31
+ `t-card--${_.size}`,
32
+ { "t-card--interactive": _.interactive }
28
33
  ]), y = e(() => !!_.title);
29
34
  return (e, _) => (s(), t(l(a.as), { class: o(v.value) }, {
30
35
  default: d(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"TCard.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../src/components/TCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { TCardVariant, TSize } from '../types/contracts';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TCardVariant;\n size?: TSize;\n title?: string;\n }>(),\n {\n as: 'section',\n variant: 'outline',\n size: 'md',\n title: undefined,\n },\n);\n\nconst classes = computed(() => [\n 't-card',\n `t-card--${props.variant}`,\n `t-card--${props.size}`,\n]);\n\nconst hasHeader = computed(() => !!props.title);\n</script>\n\n<template>\n <component\n :is=\"as\"\n :class=\"classes\"\n >\n <header\n v-if=\"$slots.header || hasHeader || $slots.actions\"\n class=\"t-card__header\"\n >\n <slot name=\"header\">\n <span\n v-if=\"title\"\n class=\"t-card__title\"\n >\n {{ title }}\n </span>\n </slot>\n <span\n v-if=\"$slots.actions\"\n class=\"t-card__actions\"\n >\n <slot name=\"actions\" />\n </span>\n </header>\n <div class=\"t-card__body\">\n <slot />\n </div>\n <footer\n v-if=\"$slots.footer\"\n class=\"t-card__footer\"\n >\n <slot name=\"footer\" />\n </footer>\n </component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EAIA,IAAM,IAAQ,GAeR,IAAU,QAAe;GAC7B;GACA,WAAW,EAAM;GACjB,WAAW,EAAM;EACnB,CAAC,GAEK,IAAY,QAAe,CAAC,CAAC,EAAM,KAAK;yBAI5C,EAgCY,EA/BL,EAAA,EAAE,GAAA,EACN,OAAK,EAAE,EAAA,KAAO,EAAA,GAAA;oBAoBN;IAjBDA,EAAAA,OAAO,UAAU,EAAA,SAAaA,EAAAA,OAAO,WAAA,EAAA,GAD7C,EAkBS,UAlBT,GAkBS,CAdP,EAOO,EAAA,QAAA,UAAA,CAAA,SAAA,CALG,EAAA,SAAA,EAAA,GADR,EAKO,QALP,GAKO,EADF,EAAA,KAAK,GAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,CAAA,GAIJA,EAAAA,OAAO,WAAA,EAAA,GADf,EAKO,QALP,GAKO,CADL,EAAuB,EAAA,QAAA,SAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA;IAG3B,EAEM,OAFN,GAEM,CADJ,EAAQ,EAAA,QAAA,SAAA,CAAA,CAAA;IAGFA,EAAAA,OAAO,UAAA,EAAA,GADf,EAKS,UALT,GAKS,CADP,EAAsB,EAAA,QAAA,QAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA"}
1
+ {"version":3,"file":"TCard.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../src/components/TCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { TCardVariant, TSize } from '../types/contracts';\n\nconst props = withDefaults(\n defineProps<{\n as?: string;\n variant?: TCardVariant;\n size?: TSize;\n title?: string;\n /**\n * Treat the card as an interactive surface — adds hover elevation and a\n * focus-visible ring. Use with `as=\"a\"` / `as=\"router-link\"` to make the\n * whole card a link without an inner `TLink` (which would underline the\n * card's text via decoration inheritance).\n */\n interactive?: boolean;\n }>(),\n {\n as: 'section',\n variant: 'outline',\n size: 'md',\n title: undefined,\n interactive: false,\n },\n);\n\nconst classes = computed(() => [\n 't-card',\n `t-card--${props.variant}`,\n `t-card--${props.size}`,\n { 't-card--interactive': props.interactive },\n]);\n\nconst hasHeader = computed(() => !!props.title);\n</script>\n\n<template>\n <component\n :is=\"as\"\n :class=\"classes\"\n >\n <header\n v-if=\"$slots.header || hasHeader || $slots.actions\"\n class=\"t-card__header\"\n >\n <slot name=\"header\">\n <span\n v-if=\"title\"\n class=\"t-card__title\"\n >\n {{ title }}\n </span>\n </slot>\n <span\n v-if=\"$slots.actions\"\n class=\"t-card__actions\"\n >\n <slot name=\"actions\" />\n </span>\n </header>\n <div class=\"t-card__body\">\n <slot />\n </div>\n <footer\n v-if=\"$slots.footer\"\n class=\"t-card__footer\"\n >\n <slot name=\"footer\" />\n </footer>\n </component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;EAIA,IAAM,IAAQ,GAuBR,IAAU,QAAe;GAC7B;GACA,WAAW,EAAM;GACjB,WAAW,EAAM;GACjB,EAAE,uBAAuB,EAAM,YAAY;EAC7C,CAAC,GAEK,IAAY,QAAe,CAAC,CAAC,EAAM,KAAK;yBAI5C,EAgCY,EA/BL,EAAA,EAAE,GAAA,EACN,OAAK,EAAE,EAAA,KAAO,EAAA,GAAA;oBAoBN;IAjBDA,EAAAA,OAAO,UAAU,EAAA,SAAaA,EAAAA,OAAO,WAAA,EAAA,GAD7C,EAkBS,UAlBT,GAkBS,CAdP,EAOO,EAAA,QAAA,UAAA,CAAA,SAAA,CALG,EAAA,SAAA,EAAA,GADR,EAKO,QALP,GAKO,EADF,EAAA,KAAK,GAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,CAAA,GAIJA,EAAAA,OAAO,WAAA,EAAA,GADf,EAKO,QALP,GAKO,CADL,EAAuB,EAAA,QAAA,SAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA;IAG3B,EAEM,OAFN,GAEM,CADJ,EAAQ,EAAA,QAAA,SAAA,CAAA,CAAA;IAGFA,EAAAA,OAAO,UAAA,EAAA,GADf,EAKS,UALT,GAKS,CADP,EAAsB,EAAA,QAAA,QAAA,CAAA,CAAA,KAAA,EAAA,IAAA,EAAA"}
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
25
25
  modelValue: boolean;
26
26
  disabled: boolean;
27
27
  size: TSize;
28
- indeterminate: boolean;
29
28
  invalid: boolean;
29
+ indeterminate: boolean;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
31
  inputRef: HTMLInputElement;
32
32
  }, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"TCheckbox.vue.d.ts","sourceRoot":"","sources":["../../src/components/TCheckbox.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAMhD,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAmEJ,iBAAS,cAAc;WA8ET,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;gBA3KJ,OAAO;cAET,OAAO;UADX,KAAK;mBAEI,OAAO;aACb,OAAO;;;OAgLnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"TCheckbox.vue.d.ts","sourceRoot":"","sources":["../../src/components/TCheckbox.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAMhD,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAmEJ,iBAAS,cAAc;WA8ET,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;gBA3KJ,OAAO;cAET,OAAO;UADX,KAAK;aAGF,OAAO;mBADD,OAAO;;;OAiLzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ var e=require("./TCodeBlock.vue_vue_type_script_setup_true_lang.cjs").default;exports.default=e;
2
+ //# sourceMappingURL=TCodeBlock.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TCodeBlock.cjs","names":[],"sources":["../../src/components/TCodeBlock.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport TIcon from './TIcon.vue';\n\nconst props = withDefaults(\n defineProps<{\n /**\n * Code as a string. Rendered as the block content and used by the built-in\n * copy button. Omit and use the default slot for pre-formatted markup.\n */\n code?: string;\n /**\n * Line wrapping. `false` (default) keeps lines intact and scrolls\n * horizontally — right for logs. `true` wraps long lines (`pre-wrap`) — right\n * for JSON.\n */\n wrap?: boolean;\n /** Max height before the block scrolls vertically. Any CSS length. */\n maxBlockSize?: string;\n /** Show the built-in copy button. Requires `code` (nothing to copy from a slot). */\n copyable?: boolean;\n /** Accessible name for the scrollable region and the copy button. */\n label?: string;\n }>(),\n {\n code: undefined,\n wrap: false,\n maxBlockSize: undefined,\n copyable: false,\n label: 'Code',\n },\n);\n\nconst emit = defineEmits<{\n copy: [text: string];\n}>();\n\nconst copied = ref(false);\nlet resetTimer: ReturnType<typeof setTimeout> | undefined;\n\nconst showCopy = computed(() => props.copyable && props.code != null);\nconst hasToolbar = computed(() => showCopy.value);\n\nconst preStyle = computed(() =>\n props.maxBlockSize ? { maxBlockSize: props.maxBlockSize } : undefined,\n);\n\nconst classes = computed(() => ['t-code-block', { 'is-wrap': props.wrap }]);\n\nasync function onCopy() {\n if (props.code == null) return;\n try {\n await navigator.clipboard?.writeText(props.code);\n emit('copy', props.code);\n copied.value = true;\n clearTimeout(resetTimer);\n resetTimer = setTimeout(() => {\n copied.value = false;\n }, 2000);\n } catch {\n // Clipboard can reject (permissions, insecure context); leave state as-is.\n }\n}\n</script>\n\n<template>\n <div :class=\"classes\">\n <div\n v-if=\"hasToolbar\"\n class=\"t-code-block__toolbar\"\n >\n <button\n v-if=\"showCopy\"\n type=\"button\"\n class=\"t-code-block__copy\"\n :aria-label=\"copied ? 'Copied' : `Copy ${label}`\"\n @click=\"onCopy\"\n >\n <TIcon\n :name=\"copied ? 'check' : 'copy'\"\n :size=\"16\"\n />\n </button>\n </div>\n <pre\n class=\"t-code-block__pre\"\n role=\"region\"\n :aria-label=\"label\"\n tabindex=\"0\"\n :style=\"preStyle\"\n ><code class=\"t-code-block__code\"><slot>{{ code }}</slot></code></pre>\n </div>\n</template>\n"],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import e from "./TCodeBlock.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/components/TCodeBlock.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
6
+
7
+ //# sourceMappingURL=TCodeBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TCodeBlock.js","names":[],"sources":["../../src/components/TCodeBlock.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport TIcon from './TIcon.vue';\n\nconst props = withDefaults(\n defineProps<{\n /**\n * Code as a string. Rendered as the block content and used by the built-in\n * copy button. Omit and use the default slot for pre-formatted markup.\n */\n code?: string;\n /**\n * Line wrapping. `false` (default) keeps lines intact and scrolls\n * horizontally — right for logs. `true` wraps long lines (`pre-wrap`) — right\n * for JSON.\n */\n wrap?: boolean;\n /** Max height before the block scrolls vertically. Any CSS length. */\n maxBlockSize?: string;\n /** Show the built-in copy button. Requires `code` (nothing to copy from a slot). */\n copyable?: boolean;\n /** Accessible name for the scrollable region and the copy button. */\n label?: string;\n }>(),\n {\n code: undefined,\n wrap: false,\n maxBlockSize: undefined,\n copyable: false,\n label: 'Code',\n },\n);\n\nconst emit = defineEmits<{\n copy: [text: string];\n}>();\n\nconst copied = ref(false);\nlet resetTimer: ReturnType<typeof setTimeout> | undefined;\n\nconst showCopy = computed(() => props.copyable && props.code != null);\nconst hasToolbar = computed(() => showCopy.value);\n\nconst preStyle = computed(() =>\n props.maxBlockSize ? { maxBlockSize: props.maxBlockSize } : undefined,\n);\n\nconst classes = computed(() => ['t-code-block', { 'is-wrap': props.wrap }]);\n\nasync function onCopy() {\n if (props.code == null) return;\n try {\n await navigator.clipboard?.writeText(props.code);\n emit('copy', props.code);\n copied.value = true;\n clearTimeout(resetTimer);\n resetTimer = setTimeout(() => {\n copied.value = false;\n }, 2000);\n } catch {\n // Clipboard can reject (permissions, insecure context); leave state as-is.\n }\n}\n</script>\n\n<template>\n <div :class=\"classes\">\n <div\n v-if=\"hasToolbar\"\n class=\"t-code-block__toolbar\"\n >\n <button\n v-if=\"showCopy\"\n type=\"button\"\n class=\"t-code-block__copy\"\n :aria-label=\"copied ? 'Copied' : `Copy ${label}`\"\n @click=\"onCopy\"\n >\n <TIcon\n :name=\"copied ? 'check' : 'copy'\"\n :size=\"16\"\n />\n </button>\n </div>\n <pre\n class=\"t-code-block__pre\"\n role=\"region\"\n :aria-label=\"label\"\n tabindex=\"0\"\n :style=\"preStyle\"\n ><code class=\"t-code-block__code\"><slot>{{ code }}</slot></code></pre>\n </div>\n</template>\n"],"mappings":""}
@@ -0,0 +1,47 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * Code as a string. Rendered as the block content and used by the built-in
4
+ * copy button. Omit and use the default slot for pre-formatted markup.
5
+ */
6
+ code?: string;
7
+ /**
8
+ * Line wrapping. `false` (default) keeps lines intact and scrolls
9
+ * horizontally — right for logs. `true` wraps long lines (`pre-wrap`) — right
10
+ * for JSON.
11
+ */
12
+ wrap?: boolean;
13
+ /** Max height before the block scrolls vertically. Any CSS length. */
14
+ maxBlockSize?: string;
15
+ /** Show the built-in copy button. Requires `code` (nothing to copy from a slot). */
16
+ copyable?: boolean;
17
+ /** Accessible name for the scrollable region and the copy button. */
18
+ label?: string;
19
+ };
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {};
26
+ rootEl: HTMLDivElement;
27
+ };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
+ copy: (text: string) => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onCopy?: ((text: string) => any) | undefined;
33
+ }>, {
34
+ code: string;
35
+ label: string;
36
+ wrap: boolean;
37
+ maxBlockSize: string;
38
+ copyable: boolean;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
40
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
+ export default _default;
42
+ type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
47
+ //# sourceMappingURL=TCodeBlock.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TCodeBlock.vue.d.ts","sourceRoot":"","sources":["../../src/components/TCodeBlock.vue"],"names":[],"mappings":"AAkGA,KAAK,WAAW,GAAG;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAqDJ,iBAAS,cAAc;WA2DT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;UApJV,MAAM;WAYL,MAAM;UANP,OAAO;kBAEC,MAAM;cAEV,OAAO;wFAmJpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ const e=require("./TIcon.cjs");let t=require("vue");var n={key:0,class:`t-code-block__toolbar`},r=[`aria-label`],i=[`aria-label`],a={class:`t-code-block__code`},o=(0,t.defineComponent)({__name:`TCodeBlock`,props:{code:{default:void 0},wrap:{type:Boolean,default:!1},maxBlockSize:{default:void 0},copyable:{type:Boolean,default:!1},label:{default:`Code`}},emits:[`copy`],setup(o,{emit:s}){let c=o,l=s,u=(0,t.ref)(!1),d,f=(0,t.computed)(()=>c.copyable&&c.code!=null),p=(0,t.computed)(()=>f.value),m=(0,t.computed)(()=>c.maxBlockSize?{maxBlockSize:c.maxBlockSize}:void 0),h=(0,t.computed)(()=>[`t-code-block`,{"is-wrap":c.wrap}]);async function g(){if(c.code!=null)try{await navigator.clipboard?.writeText(c.code),l(`copy`,c.code),u.value=!0,clearTimeout(d),d=setTimeout(()=>{u.value=!1},2e3)}catch{}}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(h.value)},[p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,n,[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`t-code-block__copy`,"aria-label":u.value?`Copied`:`Copy ${o.label}`,onClick:g},[(0,t.createVNode)(e.default,{name:u.value?`check`:`copy`,size:16},null,8,[`name`])],8,r)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`pre`,{class:`t-code-block__pre`,role:`region`,"aria-label":o.label,tabindex:`0`,style:(0,t.normalizeStyle)(m.value)},[(0,t.createElementVNode)(`code`,a,[(0,t.renderSlot)(s.$slots,`default`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.code),1)])])],12,i)],2))}});exports.default=o;
2
+ //# sourceMappingURL=TCodeBlock.vue_vue_type_script_setup_true_lang.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TCodeBlock.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../src/components/TCodeBlock.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport TIcon from './TIcon.vue';\n\nconst props = withDefaults(\n defineProps<{\n /**\n * Code as a string. Rendered as the block content and used by the built-in\n * copy button. Omit and use the default slot for pre-formatted markup.\n */\n code?: string;\n /**\n * Line wrapping. `false` (default) keeps lines intact and scrolls\n * horizontally — right for logs. `true` wraps long lines (`pre-wrap`) — right\n * for JSON.\n */\n wrap?: boolean;\n /** Max height before the block scrolls vertically. Any CSS length. */\n maxBlockSize?: string;\n /** Show the built-in copy button. Requires `code` (nothing to copy from a slot). */\n copyable?: boolean;\n /** Accessible name for the scrollable region and the copy button. */\n label?: string;\n }>(),\n {\n code: undefined,\n wrap: false,\n maxBlockSize: undefined,\n copyable: false,\n label: 'Code',\n },\n);\n\nconst emit = defineEmits<{\n copy: [text: string];\n}>();\n\nconst copied = ref(false);\nlet resetTimer: ReturnType<typeof setTimeout> | undefined;\n\nconst showCopy = computed(() => props.copyable && props.code != null);\nconst hasToolbar = computed(() => showCopy.value);\n\nconst preStyle = computed(() =>\n props.maxBlockSize ? { maxBlockSize: props.maxBlockSize } : undefined,\n);\n\nconst classes = computed(() => ['t-code-block', { 'is-wrap': props.wrap }]);\n\nasync function onCopy() {\n if (props.code == null) return;\n try {\n await navigator.clipboard?.writeText(props.code);\n emit('copy', props.code);\n copied.value = true;\n clearTimeout(resetTimer);\n resetTimer = setTimeout(() => {\n copied.value = false;\n }, 2000);\n } catch {\n // Clipboard can reject (permissions, insecure context); leave state as-is.\n }\n}\n</script>\n\n<template>\n <div :class=\"classes\">\n <div\n v-if=\"hasToolbar\"\n class=\"t-code-block__toolbar\"\n >\n <button\n v-if=\"showCopy\"\n type=\"button\"\n class=\"t-code-block__copy\"\n :aria-label=\"copied ? 'Copied' : `Copy ${label}`\"\n @click=\"onCopy\"\n >\n <TIcon\n :name=\"copied ? 'check' : 'copy'\"\n :size=\"16\"\n />\n </button>\n </div>\n <pre\n class=\"t-code-block__pre\"\n role=\"region\"\n :aria-label=\"label\"\n tabindex=\"0\"\n :style=\"preStyle\"\n ><code class=\"t-code-block__code\"><slot>{{ code }}</slot></code></pre>\n </div>\n</template>\n"],"mappings":"oYAIA,IAAM,EAAQ,EA6BR,EAAO,EAIP,GAAA,EAAA,EAAA,IAAA,CAAa,EAAK,EACpB,EAEE,GAAA,EAAA,EAAA,SAAA,KAA0B,EAAM,UAAY,EAAM,MAAQ,IAAI,EAC9D,GAAA,EAAA,EAAA,SAAA,KAA4B,EAAS,KAAK,EAE1C,GAAA,EAAA,EAAA,SAAA,KACJ,EAAM,aAAe,CAAE,aAAc,EAAM,YAAa,EAAI,IAAA,EAC9D,EAEM,GAAA,EAAA,EAAA,SAAA,KAAyB,CAAC,eAAgB,CAAE,UAAW,EAAM,IAAK,CAAC,CAAC,EAE1E,eAAe,GAAS,CAClB,KAAM,MAAQ,KAClB,GAAI,CACF,MAAM,UAAU,WAAW,UAAU,EAAM,IAAI,EAC/C,EAAK,OAAQ,EAAM,IAAI,EACvB,EAAO,MAAQ,GACf,aAAa,CAAU,EACvB,EAAa,eAAiB,CAC5B,EAAO,MAAQ,EACjB,EAAG,GAAI,CACT,MAAQ,CAER,CACF,0DA6BQ,MAAA,CAzBA,OAAA,EAAA,EAAA,eAAA,CAAO,EAAA,KAAO,CAAA,EAAA,CAEV,EAAA,QAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAeF,MAhBN,EAgBM,CAXI,EAAA,QAAA,EAAA,EAAA,UAAA,CAAA,GAAA,EAAA,EAAA,mBAAA,CAUC,SAAA,OATP,KAAK,SACL,MAAM,qBACL,aAAY,EAAA,MAAM,SAAA,QAAsB,EAAA,QACxC,QAAO,sBAKN,EAAA,QAAA,CAFC,KAAM,EAAA,MAAM,QAAA,OACZ,KAAM,wHAUyD,MAAA,CALpE,MAAM,oBACN,KAAK,SACJ,aAAY,EAAA,MACb,SAAS,IACR,OAAA,EAAA,EAAA,eAAA,CAAO,EAAA,KAAQ,6BAC8C,OAA/D,EAA+D,EAAA,EAAA,EAAA,WAAA,CAAP,EAAA,OAAA,UAAA,CAAA,MAAA,EAAA,EAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,gBAAA,CAAd,EAAA,IAAI,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,CAAA,EAAA,CAAA"}
@@ -0,0 +1,53 @@
1
+ import e from "./TIcon.js";
2
+ import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p } from "vue";
3
+ //#region src/components/TCodeBlock.vue?vue&type=script&setup=true&lang.ts
4
+ var m = {
5
+ key: 0,
6
+ class: "t-code-block__toolbar"
7
+ }, h = ["aria-label"], g = ["aria-label"], _ = { class: "t-code-block__code" }, v = /*@__PURE__*/ s({
8
+ __name: "TCodeBlock",
9
+ props: {
10
+ code: { default: void 0 },
11
+ wrap: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ maxBlockSize: { default: void 0 },
16
+ copyable: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ label: { default: "Code" }
21
+ },
22
+ emits: ["copy"],
23
+ setup(s, { emit: v }) {
24
+ let y = s, b = v, x = d(!1), S, C = t(() => y.copyable && y.code != null), w = t(() => C.value), T = t(() => y.maxBlockSize ? { maxBlockSize: y.maxBlockSize } : void 0), E = t(() => ["t-code-block", { "is-wrap": y.wrap }]);
25
+ async function D() {
26
+ if (y.code != null) try {
27
+ await navigator.clipboard?.writeText(y.code), b("copy", y.code), x.value = !0, clearTimeout(S), S = setTimeout(() => {
28
+ x.value = !1;
29
+ }, 2e3);
30
+ } catch {}
31
+ }
32
+ return (t, d) => (u(), r("div", { class: c(E.value) }, [w.value ? (u(), r("div", m, [C.value ? (u(), r("button", {
33
+ key: 0,
34
+ type: "button",
35
+ class: "t-code-block__copy",
36
+ "aria-label": x.value ? "Copied" : `Copy ${s.label}`,
37
+ onClick: D
38
+ }, [o(e, {
39
+ name: x.value ? "check" : "copy",
40
+ size: 16
41
+ }, null, 8, ["name"])], 8, h)) : n("", !0)])) : n("", !0), i("pre", {
42
+ class: "t-code-block__pre",
43
+ role: "region",
44
+ "aria-label": s.label,
45
+ tabindex: "0",
46
+ style: l(T.value)
47
+ }, [i("code", _, [f(t.$slots, "default", {}, () => [a(p(s.code), 1)])])], 12, g)], 2));
48
+ }
49
+ });
50
+ //#endregion
51
+ export { v as default };
52
+
53
+ //# sourceMappingURL=TCodeBlock.vue_vue_type_script_setup_true_lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TCodeBlock.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/components/TCodeBlock.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport TIcon from './TIcon.vue';\n\nconst props = withDefaults(\n defineProps<{\n /**\n * Code as a string. Rendered as the block content and used by the built-in\n * copy button. Omit and use the default slot for pre-formatted markup.\n */\n code?: string;\n /**\n * Line wrapping. `false` (default) keeps lines intact and scrolls\n * horizontally — right for logs. `true` wraps long lines (`pre-wrap`) — right\n * for JSON.\n */\n wrap?: boolean;\n /** Max height before the block scrolls vertically. Any CSS length. */\n maxBlockSize?: string;\n /** Show the built-in copy button. Requires `code` (nothing to copy from a slot). */\n copyable?: boolean;\n /** Accessible name for the scrollable region and the copy button. */\n label?: string;\n }>(),\n {\n code: undefined,\n wrap: false,\n maxBlockSize: undefined,\n copyable: false,\n label: 'Code',\n },\n);\n\nconst emit = defineEmits<{\n copy: [text: string];\n}>();\n\nconst copied = ref(false);\nlet resetTimer: ReturnType<typeof setTimeout> | undefined;\n\nconst showCopy = computed(() => props.copyable && props.code != null);\nconst hasToolbar = computed(() => showCopy.value);\n\nconst preStyle = computed(() =>\n props.maxBlockSize ? { maxBlockSize: props.maxBlockSize } : undefined,\n);\n\nconst classes = computed(() => ['t-code-block', { 'is-wrap': props.wrap }]);\n\nasync function onCopy() {\n if (props.code == null) return;\n try {\n await navigator.clipboard?.writeText(props.code);\n emit('copy', props.code);\n copied.value = true;\n clearTimeout(resetTimer);\n resetTimer = setTimeout(() => {\n copied.value = false;\n }, 2000);\n } catch {\n // Clipboard can reject (permissions, insecure context); leave state as-is.\n }\n}\n</script>\n\n<template>\n <div :class=\"classes\">\n <div\n v-if=\"hasToolbar\"\n class=\"t-code-block__toolbar\"\n >\n <button\n v-if=\"showCopy\"\n type=\"button\"\n class=\"t-code-block__copy\"\n :aria-label=\"copied ? 'Copied' : `Copy ${label}`\"\n @click=\"onCopy\"\n >\n <TIcon\n :name=\"copied ? 'check' : 'copy'\"\n :size=\"16\"\n />\n </button>\n </div>\n <pre\n class=\"t-code-block__pre\"\n role=\"region\"\n :aria-label=\"label\"\n tabindex=\"0\"\n :style=\"preStyle\"\n ><code class=\"t-code-block__code\"><slot>{{ code }}</slot></code></pre>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EAIA,IAAM,IAAQ,GA6BR,IAAO,GAIP,IAAS,EAAI,EAAK,GACpB,GAEE,IAAW,QAAe,EAAM,YAAY,EAAM,QAAQ,IAAI,GAC9D,IAAa,QAAe,EAAS,KAAK,GAE1C,IAAW,QACf,EAAM,eAAe,EAAE,cAAc,EAAM,aAAa,IAAI,KAAA,CAC9D,GAEM,IAAU,QAAe,CAAC,gBAAgB,EAAE,WAAW,EAAM,KAAK,CAAC,CAAC;EAE1E,eAAe,IAAS;GAClB,MAAM,QAAQ,MAClB,IAAI;IAKF,AAJA,MAAM,UAAU,WAAW,UAAU,EAAM,IAAI,GAC/C,EAAK,QAAQ,EAAM,IAAI,GACvB,EAAO,QAAQ,IACf,aAAa,CAAU,GACvB,IAAa,iBAAiB;KAC5B,EAAO,QAAQ;IACjB,GAAG,GAAI;GACT,QAAQ,CAER;EACF;yBAIE,EAyBM,OAAA,EAzBA,OAAK,EAAE,EAAA,KAAO,EAAA,GAAA,CAEV,EAAA,SAAA,EAAA,GADR,EAgBM,OAhBN,GAgBM,CAXI,EAAA,SAAA,EAAA,GADR,EAWS,UAAA;;GATP,MAAK;GACL,OAAM;GACL,cAAY,EAAA,QAAM,WAAA,QAAsB,EAAA;GACxC,SAAO;MAER,EAGE,GAAA;GAFC,MAAM,EAAA,QAAM,UAAA;GACZ,MAAM;6DAIb,EAMsE,OAAA;GALpE,OAAM;GACN,MAAK;GACJ,cAAY,EAAA;GACb,UAAS;GACR,OAAK,EAAE,EAAA,KAAQ;MACjB,EAA+D,QAA/D,GAA+D,CAA9B,EAAuB,EAAA,QAAA,WAAA,CAAA,SAAA,CAAA,EAAA,EAAd,EAAA,IAAI,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA,CAAA,GAAA,CAAA"}
@@ -61,12 +61,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
61
61
  modelValue: string;
62
62
  disabled: boolean;
63
63
  size: TSize;
64
+ placeholder: string;
64
65
  loading: boolean;
66
+ open: boolean;
65
67
  invalid: boolean;
66
68
  options: TComboboxOption[];
67
- open: boolean;
68
69
  defaultOpen: boolean;
69
- placeholder: string;
70
70
  emptyText: string;
71
71
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
72
72
  rootRef: HTMLDivElement;
@@ -1 +1 @@
1
- {"version":3,"file":"TCombobox.vue.d.ts","sourceRoot":"","sources":["../../src/components/TCombobox.vue"],"names":[],"mappings":"AAohBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAOhD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAA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,CAAC;YACxB,QAAQ,EAAE,OAAO,CAAC;YAClB,MAAM,EAAE,OAAO,CAAC;SACjB,KAAK,OAAO;gBACL,CAAC,KAAK,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,KAAK,OAAO;;;;;;EAohB9C;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;gBA7lBJ,MAAM;cAKR,OAAO;UADX,KAAK;iBAIE,MAAM;aAFV,OAAO;UAJV,OAAO;aAKJ,OAAO;aANP,eAAe,EAAE;iBAEb,OAAO;eAMT,MAAM;;;OA6lBpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -45,14 +45,14 @@ declare function __VLS_template(): {
45
45
  };
46
46
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
47
47
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ cancel: () => any;
48
49
  "update:open": (value: boolean) => any;
49
50
  "open-change": (value: boolean) => any;
50
- cancel: () => any;
51
51
  confirm: () => any;
52
52
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
53
+ onCancel?: (() => any) | undefined;
53
54
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
54
55
  "onOpen-change"?: ((value: boolean) => any) | undefined;
55
- onCancel?: (() => any) | undefined;
56
56
  onConfirm?: (() => any) | undefined;
57
57
  }>, {
58
58
  disabled: boolean;
@@ -41,10 +41,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
41
41
  disabled: boolean;
42
42
  size: TSize;
43
43
  id: string;
44
- invalid: boolean;
44
+ placeholder: string;
45
45
  open: boolean;
46
+ invalid: boolean;
46
47
  defaultOpen: boolean;
47
- placeholder: string;
48
48
  locale: string;
49
49
  min: string;
50
50
  max: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TDatePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/TDatePicker.vue"],"names":[],"mappings":"AAgkBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAqBhD,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAgXJ,iBAAS,cAAc;WAuMT,OAAO,IAA6B;;wBAbtB,GAAG;wBACH,GAAG;;;;;;;EAiB9B;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;gBA7mBJ,MAAM;cAIR,OAAO;UADX,KAAK;QAQP,MAAM;aAND,OAAO;UAJV,OAAO;iBACA,OAAO;iBAIP,MAAM;YACX,MAAM;SACT,MAAM;SACN,MAAM;kBACG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CA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YAKZ,MAAM;SACT,MAAM;SACN,MAAM;kBACG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;;;;OA4mB1C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -31,26 +31,26 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
31
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
32
  "update:modelValue": (value: string) => any;
33
33
  select: (value: string) => any;
34
+ change: (value: string) => any;
34
35
  "update:open": (value: boolean) => any;
35
36
  "open-change": (value: boolean) => any;
36
- change: (value: string) => any;
37
37
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
38
38
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
39
39
  onSelect?: ((value: string) => any) | undefined;
40
+ onChange?: ((value: string) => any) | undefined;
40
41
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
41
42
  "onOpen-change"?: ((value: boolean) => any) | undefined;
42
- onChange?: ((value: string) => any) | undefined;
43
43
  }>, {
44
44
  modelValue: string;
45
45
  disabled: boolean;
46
46
  size: TSize;
47
47
  id: string;
48
48
  step: number;
49
+ placeholder: string;
49
50
  loading: boolean;
50
- invalid: boolean;
51
51
  open: boolean;
52
+ invalid: boolean;
52
53
  defaultOpen: boolean;
53
- placeholder: string;
54
54
  locale: string;
55
55
  min: string;
56
56
  max: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TDateTimePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/TDateTimePicker.vue"],"names":[],"mappings":"AA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