cck-ui 0.0.1 → 0.0.2

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 (51) hide show
  1. package/dist/index.full.js +39 -1448
  2. package/dist/index.full.min.js +3 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +3 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +7 -1414
  7. package/es/packages/components/button/src/button-custom.mjs +2 -2
  8. package/es/packages/components/button/src/button-custom.mjs.map +1 -1
  9. package/es/packages/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +15 -15
  10. package/es/packages/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  11. package/es/packages/components/button/src/use-button.mjs +3 -3
  12. package/es/packages/components/button/src/use-button.mjs.map +1 -1
  13. package/es/packages/components/form/src/hooks/use-form-common-props.mjs +4 -4
  14. package/es/packages/components/form/src/hooks/use-form-common-props.mjs.map +1 -1
  15. package/es/packages/components/icon/src/icon.vue_vue_type_script_setup_true_lang.mjs +6 -6
  16. package/es/packages/components/icon/src/icon.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  17. package/es/packages/hooks/use-namespace/index.mjs +4 -4
  18. package/es/packages/hooks/use-namespace/index.mjs.map +1 -1
  19. package/es/packages/hooks/use-prop/index.mjs +3 -3
  20. package/es/packages/hooks/use-prop/index.mjs.map +1 -1
  21. package/es/packages/hooks/use-theme/index.mjs +3 -3
  22. package/es/packages/hooks/use-theme/index.mjs.map +1 -1
  23. package/lib/_virtual/_rolldown/runtime.js +0 -33
  24. package/lib/packages/components/button/src/button-custom.js +4 -4
  25. package/lib/packages/components/button/src/button-custom.js.map +1 -1
  26. package/lib/packages/components/button/src/button.vue_vue_type_script_setup_true_lang.js +19 -19
  27. package/lib/packages/components/button/src/button.vue_vue_type_script_setup_true_lang.js.map +1 -1
  28. package/lib/packages/components/button/src/use-button.js +3 -3
  29. package/lib/packages/components/button/src/use-button.js.map +1 -1
  30. package/lib/packages/components/form/src/hooks/use-form-common-props.js +6 -6
  31. package/lib/packages/components/form/src/hooks/use-form-common-props.js.map +1 -1
  32. package/lib/packages/components/icon/src/icon.vue_vue_type_script_setup_true_lang.js +8 -8
  33. package/lib/packages/components/icon/src/icon.vue_vue_type_script_setup_true_lang.js.map +1 -1
  34. package/lib/packages/hooks/use-namespace/index.js +4 -4
  35. package/lib/packages/hooks/use-namespace/index.js.map +1 -1
  36. package/lib/packages/hooks/use-prop/index.js +3 -3
  37. package/lib/packages/hooks/use-prop/index.js.map +1 -1
  38. package/lib/packages/hooks/use-theme/index.js +3 -3
  39. package/lib/packages/hooks/use-theme/index.js.map +1 -1
  40. package/package.json +14 -6
  41. package/es/_virtual/_rolldown/runtime.mjs +0 -27
  42. package/es/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.mjs +0 -22
  43. package/es/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.mjs.map +0 -1
  44. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.js +0 -66
  45. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.js.map +0 -1
  46. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.prod.js +0 -56
  47. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.prod.js.map +0 -1
  48. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index.js +0 -18
  49. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index.js.map +0 -1
  50. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js +0 -14
  51. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"button.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../../../../../../packages/components/button/src/button.vue","../../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <component\n v-bind=\"_props\"\n :class=\"buttonClass\"\n :is=\"tag\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <span :class=\"innerClass\">\n <span data-position=\"left\" v-if=\"$slots['left-section']\">\n <slot name=\"left-section\"></slot>\n </span>\n <span data-position=\"left\" v-else-if=\"leftSection\">\n <component :is=\"leftSection\" />\n </span>\n <span :class=\"labelClass\">\n <slot />\n </span>\n <span data-position=\"right\" v-if=\"$slots['right-section']\">\n <slot name=\"right-section\"></slot>\n </span>\n <span data-position=\"right\" v-else-if=\"rightSection\">\n <component :is=\"rightSection\" />\n </span>\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, useSlots } from 'vue'\nimport type { ButtonProps } from './button.types'\nimport { useNamespace } from '@cck-ui/hooks'\nimport { useButton } from './use-button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'CButton'\n})\n\ndefineSlots<{\n 'left-section': any\n 'right-section': any\n default: any\n}>()\n\nconst slots = useSlots()\n\nconst hasLeftSlot = computed(() => !!slots['left-section'])\nconst hasRightSlot = computed(() => !!slots['right-section'])\n\nconst props = withDefaults(defineProps<ButtonProps>(), {\n radius: '4px',\n size: 'sm',\n tag: 'button',\n variant: 'default'\n})\n\nconst { _disabled, _props, _ref, handleClick } = useButton(props, {\n hasLeftSlot: hasLeftSlot.value,\n hasRightSlot: hasRightSlot.value\n})\n\nconst buttonStyle = useButtonCustomStyle(props)\nconst ns = useNamespace('button')\nconst buttonClass = computed(() => [\n useNamespace('focus').b('auto'),\n !_disabled.value && useNamespace('active').b(),\n ns.e('root'),\n ns.is('loading', props.loading)\n])\nconst innerClass = computed(() => [ns.e('inner')])\nconst labelClass = computed(() => [ns.e('label')])\n\ndefineExpose({\n /** @description if button is disabled */\n disabled: _disabled.value,\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: props.size,\n /** @description button variant */\n variant: props.variant\n})\n</script>\n","<template>\n <component\n v-bind=\"_props\"\n :class=\"buttonClass\"\n :is=\"tag\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <span :class=\"innerClass\">\n <span data-position=\"left\" v-if=\"$slots['left-section']\">\n <slot name=\"left-section\"></slot>\n </span>\n <span data-position=\"left\" v-else-if=\"leftSection\">\n <component :is=\"leftSection\" />\n </span>\n <span :class=\"labelClass\">\n <slot />\n </span>\n <span data-position=\"right\" v-if=\"$slots['right-section']\">\n <slot name=\"right-section\"></slot>\n </span>\n <span data-position=\"right\" v-else-if=\"rightSection\">\n <component :is=\"rightSection\" />\n </span>\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, useSlots } from 'vue'\nimport type { ButtonProps } from './button.types'\nimport { useNamespace } from '@cck-ui/hooks'\nimport { useButton } from './use-button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'CButton'\n})\n\ndefineSlots<{\n 'left-section': any\n 'right-section': any\n default: any\n}>()\n\nconst slots = useSlots()\n\nconst hasLeftSlot = computed(() => !!slots['left-section'])\nconst hasRightSlot = computed(() => !!slots['right-section'])\n\nconst props = withDefaults(defineProps<ButtonProps>(), {\n radius: '4px',\n size: 'sm',\n tag: 'button',\n variant: 'default'\n})\n\nconst { _disabled, _props, _ref, handleClick } = useButton(props, {\n hasLeftSlot: hasLeftSlot.value,\n hasRightSlot: hasRightSlot.value\n})\n\nconst buttonStyle = useButtonCustomStyle(props)\nconst ns = useNamespace('button')\nconst buttonClass = computed(() => [\n useNamespace('focus').b('auto'),\n !_disabled.value && useNamespace('active').b(),\n ns.e('root'),\n ns.is('loading', props.loading)\n])\nconst innerClass = computed(() => [ns.e('inner')])\nconst labelClass = computed(() => [ns.e('label')])\n\ndefineExpose({\n /** @description if button is disabled */\n disabled: _disabled.value,\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: props.size,\n /** @description button variant */\n variant: props.variant\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CA,MAAM,SAAA,GAAA,cAAA,YAAA,SAAA,CAAiB;EAEvB,MAAM,eAAA,GAAA,cAAA,YAAA,SAAA,OAA6B,CAAC,CAAC,MAAM,eAAe;EAC1D,MAAM,gBAAA,GAAA,cAAA,YAAA,SAAA,OAA8B,CAAC,CAAC,MAAM,gBAAgB;EAE5D,MAAM,QAAQ;EAOd,MAAM,EAAE,WAAW,QAAQ,MAAM,gBAAgB,mBAAA,UAAU,OAAO;GAChE,aAAa,YAAY;GACzB,cAAc,aAAa;EAC7B,CAAC;EAED,MAAM,cAAc,sBAAA,qBAAqB,KAAK;EAC9C,MAAM,KAAK,gBAAA,aAAa,QAAQ;EAChC,MAAM,eAAA,GAAA,cAAA,YAAA,SAAA,OAA6B;GACjC,gBAAA,aAAa,OAAO,CAAC,CAAC,EAAE,MAAM;GAC9B,CAAC,UAAU,SAAS,gBAAA,aAAa,QAAQ,CAAC,CAAC,EAAE;GAC7C,GAAG,EAAE,MAAM;GACX,GAAG,GAAG,WAAW,MAAM,OAAO;EAChC,CAAC;EACD,MAAM,cAAA,GAAA,cAAA,YAAA,SAAA,OAA4B,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;EACjD,MAAM,cAAA,GAAA,cAAA,YAAA,SAAA,OAA4B,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;EAEjD,SAAa;;GAEX,UAAU,UAAU;;GAEpB,KAAK;;GAEL,MAAM,MAAM;;GAEZ,SAAS,MAAM;EACjB,CAAC;;wJC9EQ,QAAA,GAAG,IAAA,GAAA,cAAA,YAAA,WAAA,EAAA,GAAA,cAAA,YAAA,MAAA,CAqBE,M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AA,YAAY,CAAA,EAAA,CAAA,MAAA,GAAA,cAAA,YAAA,mBAAA,CAAA,QAAA,IAAA"}
1
+ {"version":3,"file":"button.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <component\n v-bind=\"_props\"\n :class=\"buttonClass\"\n :is=\"tag\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <span :class=\"innerClass\">\n <span data-position=\"left\" v-if=\"$slots['left-section']\">\n <slot name=\"left-section\"></slot>\n </span>\n <span data-position=\"left\" v-else-if=\"leftSection\">\n <component :is=\"leftSection\" />\n </span>\n <span :class=\"labelClass\">\n <slot />\n </span>\n <span data-position=\"right\" v-if=\"$slots['right-section']\">\n <slot name=\"right-section\"></slot>\n </span>\n <span data-position=\"right\" v-else-if=\"rightSection\">\n <component :is=\"rightSection\" />\n </span>\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, useSlots } from 'vue'\nimport type { ButtonProps } from './button.types'\nimport { useNamespace } from '@cck-ui/hooks'\nimport { useButton } from './use-button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'CButton'\n})\n\ndefineSlots<{\n 'left-section': any\n 'right-section': any\n default: any\n}>()\n\nconst slots = useSlots()\n\nconst hasLeftSlot = computed(() => !!slots['left-section'])\nconst hasRightSlot = computed(() => !!slots['right-section'])\n\nconst props = withDefaults(defineProps<ButtonProps>(), {\n radius: '4px',\n size: 'sm',\n tag: 'button',\n variant: 'default'\n})\n\nconst { _disabled, _props, _ref, handleClick } = useButton(props, {\n hasLeftSlot: hasLeftSlot.value,\n hasRightSlot: hasRightSlot.value\n})\n\nconst buttonStyle = useButtonCustomStyle(props)\nconst ns = useNamespace('button')\nconst buttonClass = computed(() => [\n useNamespace('focus').b('auto'),\n !_disabled.value && useNamespace('active').b(),\n ns.e('root'),\n ns.is('loading', props.loading)\n])\nconst innerClass = computed(() => [ns.e('inner')])\nconst labelClass = computed(() => [ns.e('label')])\n\ndefineExpose({\n /** @description if button is disabled */\n disabled: _disabled.value,\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: props.size,\n /** @description button variant */\n variant: props.variant\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CA,MAAM,SAAA,GAAA,IAAA,SAAA,CAAiB;EAEvB,MAAM,eAAA,GAAA,IAAA,SAAA,OAA6B,CAAC,CAAC,MAAM,eAAe;EAC1D,MAAM,gBAAA,GAAA,IAAA,SAAA,OAA8B,CAAC,CAAC,MAAM,gBAAgB;EAE5D,MAAM,QAAQ;EAOd,MAAM,EAAE,WAAW,QAAQ,MAAM,gBAAgB,mBAAA,UAAU,OAAO;GAChE,aAAa,YAAY;GACzB,cAAc,aAAa;EAC7B,CAAC;EAED,MAAM,cAAc,sBAAA,qBAAqB,KAAK;EAC9C,MAAM,KAAK,cAAA,aAAa,QAAQ;EAChC,MAAM,eAAA,GAAA,IAAA,SAAA,OAA6B;GACjC,cAAA,aAAa,OAAO,CAAC,CAAC,EAAE,MAAM;GAC9B,CAAC,UAAU,SAAS,cAAA,aAAa,QAAQ,CAAC,CAAC,EAAE;GAC7C,GAAG,EAAE,MAAM;GACX,GAAG,GAAG,WAAW,MAAM,OAAO;EAChC,CAAC;EACD,MAAM,cAAA,GAAA,IAAA,SAAA,OAA4B,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;EACjD,MAAM,cAAA,GAAA,IAAA,SAAA,OAA4B,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;EAEjD,SAAa;;GAEX,UAAU,UAAU;;GAEpB,KAAK;;GAEL,MAAM,MAAM;;GAEZ,SAAS,MAAM;EACjB,CAAC;;sFA9EQ,QAAA,GAAG,IAAA,GAAA,IAAA,WAAA,EAAA,GAAA,IAAA,MAAA,CAqBE,MAAA,GAvBI;I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../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js");
3
2
  const require_use_form_common_props = require("../../form/src/hooks/use-form-common-props.js");
3
+ let vue = require("vue");
4
4
  //#region ../../packages/components/button/src/use-button.ts
5
5
  const useButton = (props, slots) => {
6
6
  const _disabled = require_use_form_common_props.useFormDisabled();
7
- const _ref = (0, require_index.vue_exports.ref)();
7
+ const _ref = (0, vue.ref)();
8
8
  const { hasLeftSlot, hasRightSlot } = slots;
9
9
  const hasLeftSection = hasLeftSlot || !!props.leftSection;
10
10
  const hasRightSection = hasRightSlot || !!props.rightSection;
11
- const _props = (0, require_index.vue_exports.computed)(() => {
11
+ const _props = (0, vue.computed)(() => {
12
12
  const _attrs = {
13
13
  "data-disabled": _disabled.value || props.loading || void 0,
14
14
  "data-block": props.fullWidth || void 0,
@@ -1 +1 @@
1
- {"version":3,"file":"use-button.js","names":["useFormDisabled"],"sources":["../../../../../../../packages/components/button/src/use-button.ts"],"sourcesContent":["import {} from '@cck-ui/components'\nimport { computed, ref } from 'vue'\nimport { ButtonProps } from './button.types'\nimport { useFormDisabled } from '@cck-ui/components/form'\n\nexport const useButton = (\n props: ButtonProps,\n slots: {\n hasLeftSlot: boolean\n hasRightSlot: boolean\n }\n) => {\n const _disabled = useFormDisabled()\n const _ref = ref<HTMLButtonElement>()\n\n const { hasLeftSlot, hasRightSlot } = slots\n\n const hasLeftSection = hasLeftSlot || !!props.leftSection\n const hasRightSection = hasRightSlot || !!props.rightSection\n\n const _props = computed(() => {\n const _attrs: Record<string, any> = {\n 'data-disabled': _disabled.value || props.loading || undefined,\n 'data-block': props.fullWidth || undefined,\n 'data-size': props.size && props.size !== 'sm' ? props.size : undefined,\n 'data-with-left-section': hasLeftSection || undefined,\n 'data-with-right-section': hasRightSection || undefined,\n 'data-variant': props.variant || 'default'\n }\n if (props.tag === 'button') {\n _attrs['aria-disabled'] = _disabled.value || props.loading || undefined\n _attrs['disabled'] = _disabled.value || props.loading\n }\n return _attrs\n })\n\n const handleClick = (evt: MouseEvent) => {\n if (_disabled.value || props.loading) {\n evt.stopPropagation()\n return\n }\n }\n\n return {\n _disabled,\n _ref,\n _props,\n handleClick\n }\n}\n"],"mappings":";;;;AAKA,MAAa,aACX,OACA,UAIG;CACH,MAAM,YAAYA,8BAAAA,gBAAgB;CAClC,MAAM,QAAA,GAAA,cAAA,YAAA,IAAA,CAA8B;CAEpC,MAAM,EAAE,aAAa,iBAAiB;CAEtC,MAAM,iBAAiB,eAAe,CAAC,CAAC,MAAM;CAC9C,MAAM,kBAAkB,gBAAgB,CAAC,CAAC,MAAM;CAEhD,MAAM,UAAA,GAAA,cAAA,YAAA,SAAA,OAAwB;EAC5B,MAAM,SAA8B;GAClC,iBAAiB,UAAU,SAAS,MAAM,WAAW,KAAA;GACrD,cAAc,MAAM,aAAa,KAAA;GACjC,aAAa,MAAM,QAAQ,MAAM,SAAS,OAAO,MAAM,OAAO,KAAA;GAC9D,0BAA0B,kBAAkB,KAAA;GAC5C,2BAA2B,mBAAmB,KAAA;GAC9C,gBAAgB,MAAM,WAAW;EACnC;EACA,IAAI,MAAM,QAAQ,UAAU;GAC1B,OAAO,mBAAmB,UAAU,SAAS,MAAM,WAAW,KAAA;GAC9D,OAAO,cAAc,UAAU,SAAS,MAAM;EAChD;EACA,OAAO;CACT,CAAC;CAED,MAAM,eAAe,QAAoB;EACvC,IAAI,UAAU,SAAS,MAAM,SAAS;GACpC,IAAI,gBAAgB;GACpB;EACF;CACF;CAEA,OAAO;EACL;EACA;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"use-button.js","names":["useFormDisabled"],"sources":["../../../../../../../packages/components/button/src/use-button.ts"],"sourcesContent":["import {} from '@cck-ui/components'\nimport { computed, ref } from 'vue'\nimport { ButtonProps } from './button.types'\nimport { useFormDisabled } from '@cck-ui/components/form'\n\nexport const useButton = (\n props: ButtonProps,\n slots: {\n hasLeftSlot: boolean\n hasRightSlot: boolean\n }\n) => {\n const _disabled = useFormDisabled()\n const _ref = ref<HTMLButtonElement>()\n\n const { hasLeftSlot, hasRightSlot } = slots\n\n const hasLeftSection = hasLeftSlot || !!props.leftSection\n const hasRightSection = hasRightSlot || !!props.rightSection\n\n const _props = computed(() => {\n const _attrs: Record<string, any> = {\n 'data-disabled': _disabled.value || props.loading || undefined,\n 'data-block': props.fullWidth || undefined,\n 'data-size': props.size && props.size !== 'sm' ? props.size : undefined,\n 'data-with-left-section': hasLeftSection || undefined,\n 'data-with-right-section': hasRightSection || undefined,\n 'data-variant': props.variant || 'default'\n }\n if (props.tag === 'button') {\n _attrs['aria-disabled'] = _disabled.value || props.loading || undefined\n _attrs['disabled'] = _disabled.value || props.loading\n }\n return _attrs\n })\n\n const handleClick = (evt: MouseEvent) => {\n if (_disabled.value || props.loading) {\n evt.stopPropagation()\n return\n }\n }\n\n return {\n _disabled,\n _ref,\n _props,\n handleClick\n }\n}\n"],"mappings":";;;;AAKA,MAAa,aACX,OACA,UAIG;CACH,MAAM,YAAYA,8BAAAA,gBAAgB;CAClC,MAAM,QAAA,GAAA,IAAA,IAAA,CAA8B;CAEpC,MAAM,EAAE,aAAa,iBAAiB;CAEtC,MAAM,iBAAiB,eAAe,CAAC,CAAC,MAAM;CAC9C,MAAM,kBAAkB,gBAAgB,CAAC,CAAC,MAAM;CAEhD,MAAM,UAAA,GAAA,IAAA,SAAA,OAAwB;EAC5B,MAAM,SAA8B;GAClC,iBAAiB,UAAU,SAAS,MAAM,WAAW,KAAA;GACrD,cAAc,MAAM,aAAa,KAAA;GACjC,aAAa,MAAM,QAAQ,MAAM,SAAS,OAAO,MAAM,OAAO,KAAA;GAC9D,0BAA0B,kBAAkB,KAAA;GAC5C,2BAA2B,mBAAmB,KAAA;GAC9C,gBAAgB,MAAM,WAAW;EACnC;EACA,IAAI,MAAM,QAAQ,UAAU;GAC1B,OAAO,mBAAmB,UAAU,SAAS,MAAM,WAAW,KAAA;GAC9D,OAAO,cAAc,UAAU,SAAS,MAAM;EAChD;EACA,OAAO;CACT,CAAC;CAED,MAAM,eAAe,QAAoB;EACvC,IAAI,UAAU,SAAS,MAAM,SAAS;GACpC,IAAI,gBAAgB;GACpB;EACF;CACF;CAEA,OAAO;EACL;EACA;EACA;EACA;CACF;AACF"}
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_index = require("../../../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js");
3
- const require_index$1 = require("../../../../hooks/use-prop/index.js");
2
+ const require_index = require("../../../../hooks/use-prop/index.js");
4
3
  const require_constants = require("../constants.js");
4
+ let vue = require("vue");
5
5
  //#region ../../packages/components/form/src/hooks/use-form-common-props.ts
6
6
  const useFormDisabled = (fallback) => {
7
- const disabled = require_index$1.useProp("disabled");
8
- const form = (0, require_index.vue_exports.inject)(require_constants.formContextKey, void 0);
9
- return (0, require_index.vue_exports.computed)(() => {
10
- return disabled.value ?? (0, require_index.vue_exports.unref)(fallback) ?? form?.disabled ?? false;
7
+ const disabled = require_index.useProp("disabled");
8
+ const form = (0, vue.inject)(require_constants.formContextKey, void 0);
9
+ return (0, vue.computed)(() => {
10
+ return disabled.value ?? (0, vue.unref)(fallback) ?? form?.disabled ?? false;
11
11
  });
12
12
  };
13
13
  const useDisabled = useFormDisabled;
@@ -1 +1 @@
1
- {"version":3,"file":"use-form-common-props.js","names":["useProp","formContextKey"],"sources":["../../../../../../../../packages/components/form/src/hooks/use-form-common-props.ts"],"sourcesContent":["import { useProp } from '@cck-ui/hooks'\nimport { computed, inject, MaybeRef, unref } from 'vue'\nimport { formContextKey } from '../constants'\n\nexport const useFormDisabled = (fallback?: MaybeRef<boolean | undefined>) => {\n const disabled = useProp<boolean>('disabled')\n const form = inject(formContextKey, undefined)\n\n return computed(() => {\n return disabled.value ?? unref(fallback) ?? form?.disabled ?? false\n })\n}\n\nexport const useDisabled = useFormDisabled\n"],"mappings":";;;;;AAIA,MAAa,mBAAmB,aAA6C;CAC3E,MAAM,WAAWA,gBAAAA,QAAiB,UAAU;CAC5C,MAAM,QAAA,GAAA,cAAA,YAAA,OAAA,CAAcC,kBAAAA,gBAAgB,KAAA,CAAS;CAE7C,QAAA,GAAA,cAAA,YAAA,SAAA,OAAsB;EACpB,OAAO,SAAS,UAAA,GAAA,cAAA,YAAA,MAAA,CAAe,QAAQ,KAAK,MAAM,YAAY;CAChE,CAAC;AACH;AAEA,MAAa,cAAc"}
1
+ {"version":3,"file":"use-form-common-props.js","names":["useProp","formContextKey"],"sources":["../../../../../../../../packages/components/form/src/hooks/use-form-common-props.ts"],"sourcesContent":["import { useProp } from '@cck-ui/hooks'\nimport { computed, inject, MaybeRef, unref } from 'vue'\nimport { formContextKey } from '../constants'\n\nexport const useFormDisabled = (fallback?: MaybeRef<boolean | undefined>) => {\n const disabled = useProp<boolean>('disabled')\n const form = inject(formContextKey, undefined)\n\n return computed(() => {\n return disabled.value ?? unref(fallback) ?? form?.disabled ?? false\n })\n}\n\nexport const useDisabled = useFormDisabled\n"],"mappings":";;;;;AAIA,MAAa,mBAAmB,aAA6C;CAC3E,MAAM,WAAWA,cAAAA,QAAiB,UAAU;CAC5C,MAAM,QAAA,GAAA,IAAA,OAAA,CAAcC,kBAAAA,gBAAgB,KAAA,CAAS;CAE7C,QAAA,GAAA,IAAA,SAAA,OAAsB;EACpB,OAAO,SAAS,UAAA,GAAA,IAAA,MAAA,CAAe,QAAQ,KAAK,MAAM,YAAY;CAChE,CAAC;AACH;AAEA,MAAa,cAAc"}
@@ -1,9 +1,9 @@
1
1
  const require_types = require("../../../utils/types.js");
2
2
  const require_style = require("../../../utils/dom/style.js");
3
- const require_index = require("../../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js");
4
- const require_index$1 = require("../../../hooks/use-namespace/index.js");
3
+ const require_index = require("../../../hooks/use-namespace/index.js");
4
+ let vue = require("vue");
5
5
  //#region ../../packages/components/icon/src/icon.vue?vue&type=script&setup=true&lang.ts
6
- var icon_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, require_index.vue_exports.defineComponent)({
6
+ var icon_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
7
7
  name: "CIcon",
8
8
  inheritAttrs: false,
9
9
  __name: "icon",
@@ -19,8 +19,8 @@ var icon_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, require
19
19
  },
20
20
  setup(__props) {
21
21
  const props = __props;
22
- const ns = require_index$1.useNamespace("icon");
23
- const style = (0, require_index.vue_exports.computed)(() => {
22
+ const ns = require_index.useNamespace("icon");
23
+ const style = (0, vue.computed)(() => {
24
24
  const { size, color } = props;
25
25
  if (!size && !color) return {};
26
26
  return {
@@ -29,10 +29,10 @@ var icon_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, require
29
29
  };
30
30
  });
31
31
  return (_ctx, _cache) => {
32
- return (0, require_index.vue_exports.openBlock)(), (0, require_index.vue_exports.createElementBlock)("i", (0, require_index.vue_exports.mergeProps)({
33
- class: (0, require_index.vue_exports.unref)(ns).b(),
32
+ return (0, vue.openBlock)(), (0, vue.createElementBlock)("i", (0, vue.mergeProps)({
33
+ class: (0, vue.unref)(ns).b(),
34
34
  style: style.value
35
- }, _ctx.$attrs), [(0, require_index.vue_exports.renderSlot)(_ctx.$slots, "default")], 16);
35
+ }, _ctx.$attrs), [(0, vue.renderSlot)(_ctx.$slots, "default")], 16);
36
36
  };
37
37
  }
38
38
  });
@@ -1 +1 @@
1
- {"version":3,"file":"icon.vue_vue_type_script_setup_true_lang.js","names":["$attrs"],"sources":["../../../../../../../packages/components/icon/src/icon.vue","../../../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<template>\n <i :class=\"ns.b()\" :style=\"style\" v-bind=\"$attrs\">\n <slot />\n </i>\n</template>\n\n<script setup lang=\"ts\">\nimport { type CSSProperties, computed } from 'vue'\nimport { useNamespace } from '@cck-ui/hooks'\nimport { addUnit, isUndefined } from '@cck-ui/utils'\nimport { type IconProps } from './icon.types'\n\ndefineOptions({\n name: 'CIcon',\n inheritAttrs: false\n})\nconst props = defineProps<IconProps>()\nconst ns = useNamespace('icon')\n\nconst style = computed<CSSProperties>(() => {\n const { size, color } = props\n if (!size && !color) return {}\n\n return {\n fontSize: isUndefined(size) ? undefined : addUnit(size),\n '--color': color\n }\n})\n</script>\n","<template>\n <i :class=\"ns.b()\" :style=\"style\" v-bind=\"$attrs\">\n <slot />\n </i>\n</template>\n\n<script setup lang=\"ts\">\nimport { type CSSProperties, computed } from 'vue'\nimport { useNamespace } from '@cck-ui/hooks'\nimport { addUnit, isUndefined } from '@cck-ui/utils'\nimport { type IconProps } from './icon.types'\n\ndefineOptions({\n name: 'CIcon',\n inheritAttrs: false\n})\nconst props = defineProps<IconProps>()\nconst ns = useNamespace('icon')\n\nconst style = computed<CSSProperties>(() => {\n const { size, color } = props\n if (!size && !color) return {}\n\n return {\n fontSize: isUndefined(size) ? undefined : addUnit(size),\n '--color': color\n }\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,QAAQ;EACd,MAAM,KAAK,gBAAA,aAAa,MAAM;EAE9B,MAAM,SAAA,GAAA,cAAA,YAAA,SAAA,OAAsC;GAC1C,MAAM,EAAE,MAAM,UAAU;GACxB,IAAI,CAAC,QAAQ,CAAC,OAAO,OAAO,CAAC;GAE7B,OAAO;IACL,UAAU,cAAA,YAAY,IAAI,IAAI,KAAA,IAAY,cAAA,QAAQ,IAAI;IACtD,WAAW;GACb;EACF,CAAC;;wGCxBK,MAAA,GAAA,cAAA,YAAA,WAAA,CAAA;IAFA,QAAA,GAAA,cAAA,YAAA,MAAA,CAAO,EAAA,CAAE,CAAC,EAAC;IAAK,OAAO,MAAA;MAAeA,KAAAA,MAAM,GAAA,EAAA,GAAA,cAAA,YAAA,WAAA,CACtC,KAAA,QAAA,SAAA,CAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"icon.vue_vue_type_script_setup_true_lang.js","names":["$attrs"],"sources":["../../../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<template>\n <i :class=\"ns.b()\" :style=\"style\" v-bind=\"$attrs\">\n <slot />\n </i>\n</template>\n\n<script setup lang=\"ts\">\nimport { type CSSProperties, computed } from 'vue'\nimport { useNamespace } from '@cck-ui/hooks'\nimport { addUnit, isUndefined } from '@cck-ui/utils'\nimport { type IconProps } from './icon.types'\n\ndefineOptions({\n name: 'CIcon',\n inheritAttrs: false\n})\nconst props = defineProps<IconProps>()\nconst ns = useNamespace('icon')\n\nconst style = computed<CSSProperties>(() => {\n const { size, color } = props\n if (!size && !color) return {}\n\n return {\n fontSize: isUndefined(size) ? undefined : addUnit(size),\n '--color': color\n }\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,QAAQ;EACd,MAAM,KAAK,cAAA,aAAa,MAAM;EAE9B,MAAM,SAAA,GAAA,IAAA,SAAA,OAAsC;GAC1C,MAAM,EAAE,MAAM,UAAU;GACxB,IAAI,CAAC,QAAQ,CAAC,OAAO,OAAO,CAAC;GAE7B,OAAO;IACL,UAAU,cAAA,YAAY,IAAI,IAAI,KAAA,IAAY,cAAA,QAAQ,IAAI;IACtD,WAAW;GACb;EACF,CAAC;;4DAxBK,MAAA,GAAA,IAAA,WAAA,CAAA;IAFA,QAAA,GAAA,IAAA,MAAA,CAAO,EAAA,CAAE,CAAC,EAAC;IAAK,OAAO,MAAA;MAAeA,KAAAA,MAAM,GAAA,EAAA,GAAA,IAAA,WAAA,CACtC,KAAA,QAAA,SAAA,CAAA,GAAA,EAAA"}
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_index = require("../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js");
2
+ let vue = require("vue");
3
3
  //#region ../../packages/hooks/use-namespace/index.ts
4
4
  const defaultNamespace = "c";
5
5
  const statePrefix = "is-";
@@ -12,9 +12,9 @@ const _bem = (namespace, block, blockSuffix, element, modifier) => {
12
12
  };
13
13
  const namespaceContextKey = Symbol("namespaceContextKey");
14
14
  const useGetDerivedNamespace = (namespaceOverrides) => {
15
- const derivedNamespace = namespaceOverrides || ((0, require_index.vue_exports.getCurrentInstance)() ? (0, require_index.vue_exports.inject)(namespaceContextKey, (0, require_index.vue_exports.ref)("c")) : (0, require_index.vue_exports.ref)("c"));
16
- return (0, require_index.vue_exports.computed)(() => {
17
- return (0, require_index.vue_exports.unref)(derivedNamespace) || "c";
15
+ const derivedNamespace = namespaceOverrides || ((0, vue.getCurrentInstance)() ? (0, vue.inject)(namespaceContextKey, (0, vue.ref)("c")) : (0, vue.ref)("c"));
16
+ return (0, vue.computed)(() => {
17
+ return (0, vue.unref)(derivedNamespace) || "c";
18
18
  });
19
19
  };
20
20
  const useNamespace = (block, namespaceOverrides) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, ref, unref } from 'vue'\n\nimport type { InjectionKey, Ref } from 'vue'\n\nexport const defaultNamespace = 'c'\nconst statePrefix = 'is-'\n\nconst _bem = (\n namespace: string,\n block: string,\n blockSuffix: string,\n element: string,\n modifier: string\n) => {\n let cls = `${namespace}-${block}`\n if (blockSuffix) {\n cls += `-${blockSuffix}`\n }\n if (element) {\n cls += `__${element}`\n }\n if (modifier) {\n cls += `--${modifier}`\n }\n return cls\n}\n\nexport const namespaceContextKey: InjectionKey<Ref<string | undefined>> =\n Symbol('namespaceContextKey')\n\nexport const useGetDerivedNamespace = (\n namespaceOverrides?: Ref<string | undefined>\n) => {\n const derivedNamespace =\n namespaceOverrides ||\n (getCurrentInstance()\n ? inject(namespaceContextKey, ref(defaultNamespace))\n : ref(defaultNamespace))\n const namespace = computed(() => {\n return unref(derivedNamespace) || defaultNamespace\n })\n return namespace\n}\n\nexport const useNamespace = (\n block: string,\n namespaceOverrides?: Ref<string | undefined>\n) => {\n const namespace = useGetDerivedNamespace(namespaceOverrides)\n const b = (blockSuffix = '') =>\n _bem(namespace.value, block, blockSuffix, '', '')\n const e = (element?: string) =>\n element ? _bem(namespace.value, block, '', element, '') : ''\n const m = (modifier?: string) =>\n modifier ? _bem(namespace.value, block, '', '', modifier) : ''\n const be = (blockSuffix?: string, element?: string) =>\n blockSuffix && element\n ? _bem(namespace.value, block, blockSuffix, element, '')\n : ''\n const em = (element?: string, modifier?: string) =>\n element && modifier\n ? _bem(namespace.value, block, '', element, modifier)\n : ''\n const bm = (blockSuffix?: string, modifier?: string) =>\n blockSuffix && modifier\n ? _bem(namespace.value, block, blockSuffix, '', modifier)\n : ''\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\n blockSuffix && element && modifier\n ? _bem(namespace.value, block, blockSuffix, element, modifier)\n : ''\n const is: {\n (name: string, state: boolean | undefined): string\n (name: string): string\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true\n return name && state ? `${statePrefix}${name}` : ''\n }\n\n // for css var\n // --el-xxx: value;\n const cssVar = (object: Record<string, string>) => {\n const styles: Record<string, string> = {}\n for (const key in object) {\n if (object[key]) {\n styles[`--${namespace.value}-${key}`] = object[key]\n }\n }\n return styles\n }\n // with block\n const cssVarBlock = (object: Record<string, string>) => {\n const styles: Record<string, string> = {}\n for (const key in object) {\n if (object[key]) {\n styles[`--${namespace.value}-${block}-${key}`] = object[key]\n }\n }\n return styles\n }\n\n const cssVarName = (name: string) => `--${namespace.value}-${name}`\n const cssVarBlockName = (name: string) =>\n `--${namespace.value}-${block}-${name}`\n\n return {\n namespace,\n b,\n e,\n m,\n be,\n em,\n bm,\n bem,\n is,\n // css\n cssVar,\n cssVarName,\n cssVarBlock,\n cssVarBlockName\n }\n}\n\nexport type UseNamespaceReturn = ReturnType<typeof useNamespace>\n"],"mappings":";;;AAIA,MAAa,mBAAmB;AAChC,MAAM,cAAc;AAEpB,MAAM,QACJ,WACA,OACA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MAAM,QAAQ,KAAK,UAAU,IAAI,KAAK,KAAM;EAC5C,OAAO,QAAQ,QAAQ,GAAG,cAAc,SAAS;CACnD;CAIA,MAAM,UAAU,WAAmC;EACjD,MAAM,SAAiC,CAAC;EACxC,KAAK,MAAM,OAAO,QAChB,IAAI,OAAO,MACT,OAAO,KAAK,UAAU,MAAM,GAAG,SAAS,OAAO;EAGnD,OAAO;CACT;CAEA,MAAM,eAAe,WAAmC;EACtD,MAAM,SAAiC,CAAC;EACxC,KAAK,MAAM,OAAO,QAChB,IAAI,OAAO,MACT,OAAO,KAAK,UAAU,MAAM,GAAG,MAAM,GAAG,SAAS,OAAO;EAG5D,OAAO;CACT;CAEA,MAAM,cAAc,SAAiB,KAAK,UAAU,MAAM,GAAG;CAC7D,MAAM,mBAAmB,SACvB,KAAK,UAAU,MAAM,GAAG,MAAM,GAAG;CAEnC,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, ref, unref } from 'vue'\n\nimport type { InjectionKey, Ref } from 'vue'\n\nexport const defaultNamespace = 'c'\nconst statePrefix = 'is-'\n\nconst _bem = (\n namespace: string,\n block: string,\n blockSuffix: string,\n element: string,\n modifier: string\n) => {\n let cls = `${namespace}-${block}`\n if (blockSuffix) {\n cls += `-${blockSuffix}`\n }\n if (element) {\n cls += `__${element}`\n }\n if (modifier) {\n cls += `--${modifier}`\n }\n return cls\n}\n\nexport const namespaceContextKey: InjectionKey<Ref<string | undefined>> =\n Symbol('namespaceContextKey')\n\nexport const useGetDerivedNamespace = (\n namespaceOverrides?: Ref<string | undefined>\n) => {\n const derivedNamespace =\n namespaceOverrides ||\n (getCurrentInstance()\n ? inject(namespaceContextKey, ref(defaultNamespace))\n : ref(defaultNamespace))\n const namespace = computed(() => {\n return unref(derivedNamespace) || defaultNamespace\n })\n return namespace\n}\n\nexport const useNamespace = (\n block: string,\n namespaceOverrides?: Ref<string | undefined>\n) => {\n const namespace = useGetDerivedNamespace(namespaceOverrides)\n const b = (blockSuffix = '') =>\n _bem(namespace.value, block, blockSuffix, '', '')\n const e = (element?: string) =>\n element ? _bem(namespace.value, block, '', element, '') : ''\n const m = (modifier?: string) =>\n modifier ? _bem(namespace.value, block, '', '', modifier) : ''\n const be = (blockSuffix?: string, element?: string) =>\n blockSuffix && element\n ? _bem(namespace.value, block, blockSuffix, element, '')\n : ''\n const em = (element?: string, modifier?: string) =>\n element && modifier\n ? _bem(namespace.value, block, '', element, modifier)\n : ''\n const bm = (blockSuffix?: string, modifier?: string) =>\n blockSuffix && modifier\n ? _bem(namespace.value, block, blockSuffix, '', modifier)\n : ''\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\n blockSuffix && element && modifier\n ? _bem(namespace.value, block, blockSuffix, element, modifier)\n : ''\n const is: {\n (name: string, state: boolean | undefined): string\n (name: string): string\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true\n return name && state ? `${statePrefix}${name}` : ''\n }\n\n // for css var\n // --el-xxx: value;\n const cssVar = (object: Record<string, string>) => {\n const styles: Record<string, string> = {}\n for (const key in object) {\n if (object[key]) {\n styles[`--${namespace.value}-${key}`] = object[key]\n }\n }\n return styles\n }\n // with block\n const cssVarBlock = (object: Record<string, string>) => {\n const styles: Record<string, string> = {}\n for (const key in object) {\n if (object[key]) {\n styles[`--${namespace.value}-${block}-${key}`] = object[key]\n }\n }\n return styles\n }\n\n const cssVarName = (name: string) => `--${namespace.value}-${name}`\n const cssVarBlockName = (name: string) =>\n `--${namespace.value}-${block}-${name}`\n\n return {\n namespace,\n b,\n e,\n m,\n be,\n em,\n bm,\n bem,\n is,\n // css\n cssVar,\n cssVarName,\n cssVarBlock,\n cssVarBlockName\n }\n}\n\nexport type UseNamespaceReturn = ReturnType<typeof useNamespace>\n"],"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,MAAM,MAGD,MAAc,GAAG,SAAqC;EACzD,MAAM,QAAQ,KAAK,UAAU,IAAI,KAAK,KAAM;EAC5C,OAAO,QAAQ,QAAQ,GAAG,cAAc,SAAS;CACnD;CAIA,MAAM,UAAU,WAAmC;EACjD,MAAM,SAAiC,CAAC;EACxC,KAAK,MAAM,OAAO,QAChB,IAAI,OAAO,MACT,OAAO,KAAK,UAAU,MAAM,GAAG,SAAS,OAAO;EAGnD,OAAO;CACT;CAEA,MAAM,eAAe,WAAmC;EACtD,MAAM,SAAiC,CAAC;EACxC,KAAK,MAAM,OAAO,QAChB,IAAI,OAAO,MACT,OAAO,KAAK,UAAU,MAAM,GAAG,MAAM,GAAG,SAAS,OAAO;EAG5D,OAAO;CACT;CAEA,MAAM,cAAc,SAAiB,KAAK,UAAU,MAAM,GAAG;CAC7D,MAAM,mBAAmB,SACvB,KAAK,UAAU,MAAM,GAAG,MAAM,GAAG;CAEnC,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;CACF;AACF"}
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_index = require("../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js");
2
+ let vue = require("vue");
3
3
  //#region ../../packages/hooks/use-prop/index.ts
4
4
  const useProp = (name) => {
5
- const vm = (0, require_index.vue_exports.getCurrentInstance)();
6
- return (0, require_index.vue_exports.computed)(() => (vm?.proxy?.$props)?.[name]);
5
+ const vm = (0, vue.getCurrentInstance)();
6
+ return (0, vue.computed)(() => (vm?.proxy?.$props)?.[name]);
7
7
  };
8
8
  //#endregion
9
9
  exports.useProp = useProp;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../packages/hooks/use-prop/index.ts"],"sourcesContent":["import { computed, getCurrentInstance } from 'vue'\nimport type { ComputedRef } from 'vue'\n\nexport const useProp = <T>(name: string): ComputedRef<T | undefined> => {\n const vm = getCurrentInstance()\n return computed(() => (vm?.proxy?.$props as any)?.[name])\n}\n"],"mappings":";;;AAGA,MAAa,WAAc,SAA6C;CACtE,MAAM,MAAA,GAAA,cAAA,YAAA,mBAAA,CAAwB;CAC9B,QAAA,GAAA,cAAA,YAAA,SAAA,QAAuB,IAAI,OAAO,OAAA,GAAiB,KAAK;AAC1D"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../packages/hooks/use-prop/index.ts"],"sourcesContent":["import { computed, getCurrentInstance } from 'vue'\nimport type { ComputedRef } from 'vue'\n\nexport const useProp = <T>(name: string): ComputedRef<T | undefined> => {\n const vm = getCurrentInstance()\n return computed(() => (vm?.proxy?.$props as any)?.[name])\n}\n"],"mappings":";;;AAGA,MAAa,WAAc,SAA6C;CACtE,MAAM,MAAA,GAAA,IAAA,mBAAA,CAAwB;CAC9B,QAAA,GAAA,IAAA,SAAA,QAAuB,IAAI,OAAO,OAAA,GAAiB,KAAK;AAC1D"}
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_index = require("../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js");
2
+ let vue = require("vue");
3
3
  //#region ../../packages/hooks/use-theme/index.ts
4
4
  const getCurrentScheme = () => {
5
5
  if (typeof document === "undefined") return "light";
6
6
  return document.documentElement.dataset.cColorScheme === "dark" ? "dark" : "light";
7
7
  };
8
- const colorScheme = (0, require_index.vue_exports.ref)(getCurrentScheme());
8
+ const colorScheme = (0, vue.ref)(getCurrentScheme());
9
9
  if (typeof window !== "undefined") new MutationObserver(() => {
10
10
  const newScheme = getCurrentScheme();
11
11
  if (newScheme !== colorScheme.value) colorScheme.value = newScheme;
@@ -13,7 +13,7 @@ if (typeof window !== "undefined") new MutationObserver(() => {
13
13
  attributes: true,
14
14
  attributeFilter: ["data-c-color-scheme"]
15
15
  });
16
- const useColorScheme = () => (0, require_index.vue_exports.readonly)(colorScheme);
16
+ const useColorScheme = () => (0, vue.readonly)(colorScheme);
17
17
  //#endregion
18
18
  exports.useColorScheme = useColorScheme;
19
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../packages/hooks/use-theme/index.ts"],"sourcesContent":["import { readonly, ref } from 'vue'\n\nexport type ColorScheme = 'light' | 'dark'\n\nconst getCurrentScheme = (): ColorScheme => {\n if (typeof document === 'undefined') return 'light'\n const scheme = document.documentElement.dataset.cColorScheme\n return scheme === 'dark' ? 'dark' : 'light'\n}\n\nconst colorScheme = ref<ColorScheme>(getCurrentScheme())\n\nif (typeof window !== 'undefined') {\n const observer = new MutationObserver(() => {\n const newScheme = getCurrentScheme()\n if (newScheme !== colorScheme.value) {\n colorScheme.value = newScheme\n }\n })\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['data-c-color-scheme']\n })\n}\n\nexport const useColorScheme = () => readonly(colorScheme)\n"],"mappings":";;;AAIA,MAAM,yBAAsC;CAC1C,IAAI,OAAO,aAAa,aAAa,OAAO;CAE5C,OADe,SAAS,gBAAgB,QAAQ,iBAC9B,SAAS,SAAS;AACtC;AAEA,MAAM,eAAA,GAAA,cAAA,YAAA,IAAA,CAA+B,iBAAiB,CAAC;AAEvD,IAAI,OAAO,WAAW,aAOpB,IANqB,uBAAuB;CAC1C,MAAM,YAAY,iBAAiB;CACnC,IAAI,cAAc,YAAY,OAC5B,YAAY,QAAQ;AAExB,CACO,CAAC,CAAC,QAAQ,SAAS,iBAAiB;CACzC,YAAY;CACZ,iBAAiB,CAAC,qBAAqB;AACzC,CAAC;AAGH,MAAa,wBAAA,GAAA,cAAA,YAAA,SAAA,CAAgC,WAAW"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../packages/hooks/use-theme/index.ts"],"sourcesContent":["import { readonly, ref } from 'vue'\n\nexport type ColorScheme = 'light' | 'dark'\n\nconst getCurrentScheme = (): ColorScheme => {\n if (typeof document === 'undefined') return 'light'\n const scheme = document.documentElement.dataset.cColorScheme\n return scheme === 'dark' ? 'dark' : 'light'\n}\n\nconst colorScheme = ref<ColorScheme>(getCurrentScheme())\n\nif (typeof window !== 'undefined') {\n const observer = new MutationObserver(() => {\n const newScheme = getCurrentScheme()\n if (newScheme !== colorScheme.value) {\n colorScheme.value = newScheme\n }\n })\n observer.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['data-c-color-scheme']\n })\n}\n\nexport const useColorScheme = () => readonly(colorScheme)\n"],"mappings":";;;AAIA,MAAM,yBAAsC;CAC1C,IAAI,OAAO,aAAa,aAAa,OAAO;CAE5C,OADe,SAAS,gBAAgB,QAAQ,iBAC9B,SAAS,SAAS;AACtC;AAEA,MAAM,eAAA,GAAA,IAAA,IAAA,CAA+B,iBAAiB,CAAC;AAEvD,IAAI,OAAO,WAAW,aAOpB,IANqB,uBAAuB;CAC1C,MAAM,YAAY,iBAAiB;CACnC,IAAI,cAAc,YAAY,OAC5B,YAAY,QAAQ;AAExB,CACO,CAAC,CAAC,QAAQ,SAAS,iBAAiB;CACzC,YAAY;CACZ,iBAAiB,CAAC,qBAAqB;AACzC,CAAC;AAGH,MAAa,wBAAA,GAAA,IAAA,SAAA,CAAgC,WAAW"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cck-ui",
3
- "version": "0.0.1",
4
- "description": "",
3
+ "version": "0.0.2",
4
+ "description": "Another Vue 3 Component Library",
5
5
  "keywords": [
6
6
  "cck-ui",
7
7
  "cck",
@@ -63,7 +63,15 @@
63
63
  "directory": "../../dist/cck-ui"
64
64
  },
65
65
  "style": "dist/index.css",
66
- "author": "",
67
- "license": "ISC",
68
- "type": "module"
69
- }
66
+ "sideEffects": [
67
+ "dist/*",
68
+ "theme-slate/**/*.css",
69
+ "theme-slate/src/**/*.scss",
70
+ "es/components/*/style/*",
71
+ "lib/components/*/style/*"
72
+ ],
73
+ "peerDependencies": {
74
+ "vue": "^3.5.0"
75
+ },
76
+ "license": "ISC"
77
+ }
@@ -1,27 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __exportAll = (all, no_symbols) => {
7
- let target = {};
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
13
- return target;
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
17
- key = keys[i];
18
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
- get: ((k) => from[k]).bind(null, key),
20
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
- });
22
- }
23
- return to;
24
- };
25
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
26
- //#endregion
27
- export { __exportAll, __reExport };
@@ -1,22 +0,0 @@
1
- import { __exportAll, __reExport } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
- export * from "@vue/runtime-dom";
3
- //#region ../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
4
- /**
5
- * vue v3.5.35
6
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
7
- * @license MIT
8
- **/
9
- var vue_runtime_esm_bundler_exports = /* @__PURE__ */ __exportAll({ compile: () => compile });
10
- import * as import__vue_runtime_dom from "@vue/runtime-dom";
11
- __reExport(vue_runtime_esm_bundler_exports, import__vue_runtime_dom);
12
- function initDev() {
13
- initCustomFormatter();
14
- }
15
- initDev();
16
- const compile = () => {
17
- warn("Runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".");
18
- };
19
- //#endregion
20
- export { vue_runtime_esm_bundler_exports };
21
-
22
- //# sourceMappingURL=vue.runtime.esm-bundler.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vue.runtime.esm-bundler.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.js"],"sourcesContent":["/**\n* vue v3.5.35\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nimport { initCustomFormatter, warn } from '@vue/runtime-dom';\nexport * from '@vue/runtime-dom';\n\nfunction initDev() {\n {\n initCustomFormatter();\n }\n}\n\nif (!!(process.env.NODE_ENV !== \"production\")) {\n initDev();\n}\nconst compile = () => {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".` )\n );\n }\n};\n\nexport { compile };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AAQA,SAAS,UAAU;CAEf,oBAAoB;AAExB;AAGE,QAAQ;AAEV,MAAM,gBAAgB;CAElB,KACE,wIACF;AAEJ"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- //#region ../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.js
3
- /**
4
- * vue v3.5.35
5
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
- * @license MIT
7
- **/
8
- var require_vue_cjs = /* @__PURE__ */ require("../../../../../../_virtual/_rolldown/runtime.js").__commonJSMin(((exports) => {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- var compilerDom = require("@vue/compiler-dom");
11
- var runtimeDom = require("@vue/runtime-dom");
12
- var shared = require("@vue/shared");
13
- function _interopNamespaceDefault(e) {
14
- var n = Object.create(null);
15
- if (e) for (var k in e) n[k] = e[k];
16
- n.default = e;
17
- return Object.freeze(n);
18
- }
19
- var runtimeDom__namespace = /*#__PURE__*/ _interopNamespaceDefault(runtimeDom);
20
- const compileCache = /* @__PURE__ */ Object.create(null);
21
- function compileToFunction(template, options) {
22
- if (!shared.isString(template)) if (template.nodeType) template = template.innerHTML;
23
- else {
24
- runtimeDom.warn(`invalid template option: `, template);
25
- return shared.NOOP;
26
- }
27
- const key = shared.genCacheKey(template, options);
28
- const cached = compileCache[key];
29
- if (cached) return cached;
30
- if (template[0] === "#") {
31
- const el = document.querySelector(template);
32
- if (!el) runtimeDom.warn(`Template element not found or is empty: ${template}`);
33
- template = el ? el.innerHTML : ``;
34
- }
35
- const opts = shared.extend({
36
- hoistStatic: true,
37
- onError,
38
- onWarn: (e) => onError(e, true)
39
- }, options);
40
- if (!opts.isCustomElement && typeof customElements !== "undefined") opts.isCustomElement = (tag) => !!customElements.get(tag);
41
- const { code } = compilerDom.compile(template, opts);
42
- function onError(err, asWarning = false) {
43
- const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
44
- const codeFrame = err.loc && shared.generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);
45
- runtimeDom.warn(codeFrame ? `${message}
46
- ${codeFrame}` : message);
47
- }
48
- const render = new Function("Vue", code)(runtimeDom__namespace);
49
- render._rc = true;
50
- return compileCache[key] = render;
51
- }
52
- runtimeDom.registerRuntimeCompiler(compileToFunction);
53
- exports.compile = compileToFunction;
54
- Object.keys(runtimeDom).forEach(function(k) {
55
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
56
- });
57
- }));
58
- //#endregion
59
- Object.defineProperty(exports, "default", {
60
- enumerable: true,
61
- get: function() {
62
- return require_vue_cjs();
63
- }
64
- });
65
-
66
- //# sourceMappingURL=vue.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vue.cjs.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.js"],"sourcesContent":["/**\n* vue v3.5.35\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar compilerDom = require('@vue/compiler-dom');\nvar runtimeDom = require('@vue/runtime-dom');\nvar shared = require('@vue/shared');\n\nfunction _interopNamespaceDefault(e) {\n var n = Object.create(null);\n if (e) {\n for (var k in e) {\n n[k] = e[k];\n }\n }\n n.default = e;\n return Object.freeze(n);\n}\n\nvar runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);\n\nconst compileCache = /* @__PURE__ */ Object.create(null);\nfunction compileToFunction(template, options) {\n if (!shared.isString(template)) {\n if (template.nodeType) {\n template = template.innerHTML;\n } else {\n runtimeDom.warn(`invalid template option: `, template);\n return shared.NOOP;\n }\n }\n const key = shared.genCacheKey(template, options);\n const cached = compileCache[key];\n if (cached) {\n return cached;\n }\n if (template[0] === \"#\") {\n const el = document.querySelector(template);\n if (!el) {\n runtimeDom.warn(`Template element not found or is empty: ${template}`);\n }\n template = el ? el.innerHTML : ``;\n }\n const opts = shared.extend(\n {\n hoistStatic: true,\n onError: onError ,\n onWarn: (e) => onError(e, true) \n },\n options\n );\n if (!opts.isCustomElement && typeof customElements !== \"undefined\") {\n opts.isCustomElement = (tag) => !!customElements.get(tag);\n }\n const { code } = compilerDom.compile(template, opts);\n function onError(err, asWarning = false) {\n const message = asWarning ? err.message : `Template compilation error: ${err.message}`;\n const codeFrame = err.loc && shared.generateCodeFrame(\n template,\n err.loc.start.offset,\n err.loc.end.offset\n );\n runtimeDom.warn(codeFrame ? `${message}\n${codeFrame}` : message);\n }\n const render = new Function(\"Vue\", code)(runtimeDom__namespace);\n render._rc = true;\n return compileCache[key] = render;\n}\nruntimeDom.registerRuntimeCompiler(compileToFunction);\n\nexports.compile = compileToFunction;\nObject.keys(runtimeDom).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];\n});\n"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BAClC,UACA,IAAI,IAAI,MAAM,QACd,IAAI,IAAI,IAAI,MACd;GACA,WAAW,KAAK,YAAY,GAAG,QAAQ;EACzC,cAAc,OAAO;EACrB;EACA,MAAM,SAAS,IAAI,SAAS,OAAO,IAAI,CAAC,CAAC,qBAAqB;EAC9D,OAAO,MAAM;EACb,OAAO,aAAa,OAAO;CAC7B;CACA,WAAW,wBAAwB,iBAAiB;CAEpD,QAAQ,UAAU;CAClB,OAAO,KAAK,UAAU,CAAC,CAAC,QAAQ,SAAU,GAAG;EAC3C,IAAI,MAAM,aAAa,CAAC,OAAO,UAAU,eAAe,KAAK,SAAS,CAAC,GAAG,QAAQ,KAAK,WAAW;CACpG,CAAC"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- //#region ../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.prod.js
3
- /**
4
- * vue v3.5.35
5
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
- * @license MIT
7
- **/
8
- var require_vue_cjs_prod = /* @__PURE__ */ require("../../../../../../_virtual/_rolldown/runtime.js").__commonJSMin(((exports) => {
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- var compilerDom = require("@vue/compiler-dom");
11
- var runtimeDom = require("@vue/runtime-dom");
12
- var shared = require("@vue/shared");
13
- function _interopNamespaceDefault(e) {
14
- var n = Object.create(null);
15
- if (e) for (var k in e) n[k] = e[k];
16
- n.default = e;
17
- return Object.freeze(n);
18
- }
19
- var runtimeDom__namespace = /*#__PURE__*/ _interopNamespaceDefault(runtimeDom);
20
- const compileCache = /* @__PURE__ */ Object.create(null);
21
- function compileToFunction(template, options) {
22
- if (!shared.isString(template)) if (template.nodeType) template = template.innerHTML;
23
- else return shared.NOOP;
24
- const key = shared.genCacheKey(template, options);
25
- const cached = compileCache[key];
26
- if (cached) return cached;
27
- if (template[0] === "#") {
28
- const el = document.querySelector(template);
29
- template = el ? el.innerHTML : ``;
30
- }
31
- const opts = shared.extend({
32
- hoistStatic: true,
33
- onError: void 0,
34
- onWarn: shared.NOOP
35
- }, options);
36
- if (!opts.isCustomElement && typeof customElements !== "undefined") opts.isCustomElement = (tag) => !!customElements.get(tag);
37
- const { code } = compilerDom.compile(template, opts);
38
- const render = new Function("Vue", code)(runtimeDom__namespace);
39
- render._rc = true;
40
- return compileCache[key] = render;
41
- }
42
- runtimeDom.registerRuntimeCompiler(compileToFunction);
43
- exports.compile = compileToFunction;
44
- Object.keys(runtimeDom).forEach(function(k) {
45
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
46
- });
47
- }));
48
- //#endregion
49
- Object.defineProperty(exports, "default", {
50
- enumerable: true,
51
- get: function() {
52
- return require_vue_cjs_prod();
53
- }
54
- });
55
-
56
- //# sourceMappingURL=vue.cjs.prod.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vue.cjs.prod.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.prod.js"],"sourcesContent":["/**\n* vue v3.5.35\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar compilerDom = require('@vue/compiler-dom');\nvar runtimeDom = require('@vue/runtime-dom');\nvar shared = require('@vue/shared');\n\nfunction _interopNamespaceDefault(e) {\n var n = Object.create(null);\n if (e) {\n for (var k in e) {\n n[k] = e[k];\n }\n }\n n.default = e;\n return Object.freeze(n);\n}\n\nvar runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);\n\nconst compileCache = /* @__PURE__ */ Object.create(null);\nfunction compileToFunction(template, options) {\n if (!shared.isString(template)) {\n if (template.nodeType) {\n template = template.innerHTML;\n } else {\n return shared.NOOP;\n }\n }\n const key = shared.genCacheKey(template, options);\n const cached = compileCache[key];\n if (cached) {\n return cached;\n }\n if (template[0] === \"#\") {\n const el = document.querySelector(template);\n template = el ? el.innerHTML : ``;\n }\n const opts = shared.extend(\n {\n hoistStatic: true,\n onError: void 0,\n onWarn: shared.NOOP\n },\n options\n );\n if (!opts.isCustomElement && typeof customElements !== \"undefined\") {\n opts.isCustomElement = (tag) => !!customElements.get(tag);\n }\n const { code } = compilerDom.compile(template, opts);\n const render = new Function(\"Vue\", code)(runtimeDom__namespace);\n render._rc = true;\n return compileCache[key] = render;\n}\nruntimeDom.registerRuntimeCompiler(compileToFunction);\n\nexports.compile = compileToFunction;\nObject.keys(runtimeDom).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];\n});\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;CAOA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAE5D,IAAI,cAAc,QAAQ,mBAAmB;CAC7C,IAAI,aAAa,QAAQ,kBAAkB;CAC3C,IAAI,SAAS,QAAQ,aAAa;CAElC,SAAS,yBAAyB,GAAG;EACnC,IAAI,IAAI,OAAO,OAAO,IAAI;EAC1B,IAAI,GACF,KAAK,IAAI,KAAK,GACZ,EAAE,KAAK,EAAE;EAGb,EAAE,UAAU;EACZ,OAAO,OAAO,OAAO,CAAC;CACxB;CAEA,IAAI,wBAAqC,uCAAyB,UAAU;CAE5E,MAAM,eAA+B,uBAAO,OAAO,IAAI;CACvD,SAAS,kBAAkB,UAAU,SAAS;EAC5C,IAAI,CAAC,OAAO,SAAS,QAAQ,GAC3B,IAAI,SAAS,UACX,WAAW,SAAS;OAEpB,OAAO,OAAO;EAGlB,MAAM,MAAM,OAAO,YAAY,UAAU,OAAO;EAChD,MAAM,SAAS,aAAa;EAC5B,IAAI,QACF,OAAO;EAET,IAAI,SAAS,OAAO,KAAK;GACvB,MAAM,KAAK,SAAS,cAAc,QAAQ;GAC1C,WAAW,KAAK,GAAG,YAAY;EACjC;EACA,MAAM,OAAO,OAAO,OAClB;GACE,aAAa;GACb,SAAS,KAAK;GACd,QAAQ,OAAO;EACjB,GACA,OACF;EACA,IAAI,CAAC,KAAK,mBAAmB,OAAO,mBAAmB,aACrD,KAAK,mBAAmB,QAAQ,CAAC,CAAC,eAAe,IAAI,GAAG;EAE1D,MAAM,EAAE,SAAS,YAAY,QAAQ,UAAU,IAAI;EACnD,MAAM,SAAS,IAAI,SAAS,OAAO,IAAI,CAAC,CAAC,qBAAqB;EAC9D,OAAO,MAAM;EACb,OAAO,aAAa,OAAO;CAC7B;CACA,WAAW,wBAAwB,iBAAiB;CAEpD,QAAQ,UAAU;CAClB,OAAO,KAAK,UAAU,CAAC,CAAC,QAAQ,SAAU,GAAG;EAC3C,IAAI,MAAM,aAAa,CAAC,OAAO,UAAU,eAAe,KAAK,SAAS,CAAC,GAAG,QAAQ,KAAK,WAAW;CACpG,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
3
- const require_vue_cjs_prod$1 = require("./dist/vue.cjs.prod.js");
4
- const require_vue_cjs$1 = require("./dist/vue.cjs.js");
5
- //#region ../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index.js
6
- var require_vue = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
7
- if (process.env.NODE_ENV === "production") module.exports = require_vue_cjs_prod$1.default;
8
- else module.exports = require_vue_cjs$1.default;
9
- }));
10
- //#endregion
11
- Object.defineProperty(exports, "default", {
12
- enumerable: true,
13
- get: function() {
14
- return require_vue();
15
- }
16
- });
17
-
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index.js"],"sourcesContent":["'use strict'\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./dist/vue.cjs.prod.js')\n} else {\n module.exports = require('./dist/vue.cjs.js')\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAEA,IAAI,QAAQ,IAAI,aAAa,cAC3B,OAAO,UAAA,uBAAA;MAEP,OAAO,UAAA,kBAAA"}
@@ -1,14 +0,0 @@
1
- const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
2
- const require_index = require("./index.js");
3
- //#region ../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index.mjs
4
- var vue_exports = /* @__PURE__ */ require_runtime.__exportAll({});
5
- require_runtime.__reExport(vue_exports, /* @__PURE__ */ require_runtime.__toESM(require_index.default(), 1));
6
- //#endregion
7
- Object.defineProperty(exports, "vue_exports", {
8
- enumerable: true,
9
- get: function() {
10
- return vue_exports;
11
- }
12
- });
13
-
14
- //# sourceMappingURL=index2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index2.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index.mjs"],"sourcesContent":["export * from './index.js'\n"],"x_google_ignoreList":[0],"mappings":""}