@youcan/celeste 0.6.21 → 0.6.23

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 (38) hide show
  1. package/dist/celeste.css +396 -419
  2. package/dist/cjs/color-picker.js +1 -2
  3. package/dist/cjs/combobox-input.js +4 -8
  4. package/dist/cjs/combobox-list.js +3 -2
  5. package/dist/cjs/combobox-trigger.js +2 -1
  6. package/dist/cjs/combobox.js +29 -23
  7. package/dist/cjs/index.js +0 -3
  8. package/dist/cjs/text-input-affix.js +1 -2
  9. package/dist/cjs/text-input-button.js +2 -3
  10. package/dist/cjs/text-input.js +81 -4
  11. package/dist/components/combobox/combobox.d.ts +1 -0
  12. package/dist/components/dropdown/dropdown.d.ts +1 -1
  13. package/dist/components/text-input/index.d.ts +0 -2
  14. package/dist/components/text-input/text-input-affix.d.ts +1 -4
  15. package/dist/components/text-input/text-input.d.ts +6 -1
  16. package/dist/es/color-picker.js +1 -2
  17. package/dist/es/combobox-input.js +5 -9
  18. package/dist/es/combobox-list.js +3 -2
  19. package/dist/es/combobox-trigger.js +2 -1
  20. package/dist/es/combobox.js +30 -24
  21. package/dist/es/index.js +3 -6
  22. package/dist/es/text-input-affix.js +1 -2
  23. package/dist/es/text-input-button.js +2 -3
  24. package/dist/es/text-input.js +82 -5
  25. package/package.json +3 -3
  26. package/src/components/combobox/combobox-input.vue +3 -2
  27. package/src/components/combobox/combobox-list.vue +15 -35
  28. package/src/components/combobox/combobox-trigger.vue +1 -0
  29. package/src/components/combobox/combobox.vue +9 -4
  30. package/src/components/text-input/index.ts +0 -3
  31. package/src/components/text-input/stories/text-input.stories.ts +142 -45
  32. package/src/components/text-input/text-input-affix.vue +5 -12
  33. package/src/components/text-input/text-input-button.vue +8 -3
  34. package/src/components/text-input/text-input.vue +129 -64
  35. package/dist/cjs/text-input-icon.js +0 -29
  36. package/dist/components/text-input/text-input-icon.d.ts +0 -10
  37. package/dist/es/text-input-icon.js +0 -30
  38. package/src/components/text-input/text-input-icon.vue +0 -37
@@ -1,29 +0,0 @@
1
- "use strict";
2
- const Mo = require("vue");
3
- const useDelegatedProps = require("./use-delegated-props.js");
4
- const clsx = require("./chunks/clsx.js");
5
- ;/* empty css */
6
- const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
7
- const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
8
- __name: "text-input-icon",
9
- props: {
10
- icon: {},
11
- position: { default: "start" },
12
- class: {}
13
- },
14
- setup(__props) {
15
- const props = __props;
16
- const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
17
- return (_ctx, _cache) => {
18
- return Mo.openBlock(), Mo.createElementBlock("div", Mo.mergeProps(Mo.unref(delegatedProps), {
19
- class: Mo.unref(clsx.clsx)("celeste-text-input-icon", props.class)
20
- }), [
21
- Mo.createElementVNode("i", {
22
- class: Mo.normalizeClass(_ctx.icon)
23
- }, null, 2)
24
- ], 16);
25
- };
26
- }
27
- });
28
- const TextInputIcon = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-3b859b72"]]);
29
- module.exports = TextInputIcon;
@@ -1,10 +0,0 @@
1
- import { HTMLAttributes } from 'vue';
2
- type __VLS_Props = {
3
- icon: string;
4
- position?: 'start' | 'end';
5
- class?: HTMLAttributes['class'];
6
- };
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
- position: "start" | "end";
9
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
10
- export default _default;
@@ -1,30 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass } from "vue";
2
- import { useDelegatedProps } from "./use-delegated-props.js";
3
- import { c as clsx } from "./chunks/clsx.js";
4
- /* empty css */
5
- import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "text-input-icon",
8
- props: {
9
- icon: {},
10
- position: { default: "start" },
11
- class: {}
12
- },
13
- setup(__props) {
14
- const props = __props;
15
- const delegatedProps = useDelegatedProps(props, "class");
16
- return (_ctx, _cache) => {
17
- return openBlock(), createElementBlock("div", mergeProps(unref(delegatedProps), {
18
- class: unref(clsx)("celeste-text-input-icon", props.class)
19
- }), [
20
- createElementVNode("i", {
21
- class: normalizeClass(_ctx.icon)
22
- }, null, 2)
23
- ], 16);
24
- };
25
- }
26
- });
27
- const TextInputIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3b859b72"]]);
28
- export {
29
- TextInputIcon as default
30
- };
@@ -1,37 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from 'vue';
3
- import { useDelegatedProps } from '@/composables/use-delegated-props';
4
- import clsx from 'clsx';
5
-
6
- const props = withDefaults(defineProps<{
7
- icon: string;
8
- position?: 'start' | 'end';
9
- class?: HTMLAttributes['class'];
10
- }>(), {
11
- position: 'start',
12
- });
13
- const delegatedProps = useDelegatedProps(props, 'class');
14
- </script>
15
-
16
- <template>
17
- <div v-bind="delegatedProps" :class="clsx('celeste-text-input-icon', props.class)">
18
- <i :class="icon" />
19
- </div>
20
- </template>
21
-
22
- <style scoped lang="scss">
23
- .celeste-text-input-icon {
24
- display: flex;
25
- align-items: center;
26
- color: var(--color-text-sub-600);
27
-
28
- &[position='start'] {
29
- order: -1;
30
- }
31
-
32
- & > i {
33
- width: 20px;
34
- height: 20px;
35
- }
36
- }
37
- </style>