@youcan/celeste 0.6.57 → 0.6.59

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 (102) hide show
  1. package/dist/celeste.css +155 -18
  2. package/dist/cjs/chunks/index.js +245 -1
  3. package/dist/cjs/chunks/pagination-first.js +32 -0
  4. package/dist/cjs/chunks/pagination-item.js +32 -0
  5. package/dist/cjs/chunks/pagination-last.js +32 -0
  6. package/dist/cjs/chunks/pagination-next.js +32 -0
  7. package/dist/cjs/chunks/pagination-previous.js +32 -0
  8. package/dist/cjs/index.js +24 -0
  9. package/dist/cjs/pagination-content.js +30 -0
  10. package/dist/cjs/pagination-ellipsis.js +34 -0
  11. package/dist/cjs/pagination-first.js +3 -0
  12. package/dist/cjs/pagination-item.js +3 -0
  13. package/dist/cjs/pagination-last.js +3 -0
  14. package/dist/cjs/pagination-next.js +3 -0
  15. package/dist/cjs/pagination-previous.js +3 -0
  16. package/dist/cjs/pagination.js +59 -0
  17. package/dist/components/index.d.ts +1 -0
  18. package/dist/components/pagination/index.d.ts +16 -0
  19. package/dist/components/pagination/pagination-content.d.ts +21 -0
  20. package/dist/components/pagination/pagination-ellipsis.d.ts +14 -0
  21. package/dist/components/pagination/pagination-first.d.ts +14 -0
  22. package/dist/components/pagination/pagination-item.d.ts +16 -0
  23. package/dist/components/pagination/pagination-last.d.ts +14 -0
  24. package/dist/components/pagination/pagination-next.d.ts +14 -0
  25. package/dist/components/pagination/pagination-previous.d.ts +14 -0
  26. package/dist/components/pagination/pagination.d.ts +32 -0
  27. package/dist/es/checkbox-card.js +1 -1
  28. package/dist/es/checkbox-label.js +1 -1
  29. package/dist/es/chunks/index.js +309 -65
  30. package/dist/es/chunks/index3.js +1 -1
  31. package/dist/es/chunks/pagination-first.js +33 -0
  32. package/dist/es/chunks/pagination-item.js +33 -0
  33. package/dist/es/chunks/pagination-last.js +33 -0
  34. package/dist/es/chunks/pagination-next.js +33 -0
  35. package/dist/es/chunks/pagination-previous.js +33 -0
  36. package/dist/es/combobox-group.js +1 -1
  37. package/dist/es/combobox-input.js +1 -1
  38. package/dist/es/combobox-item.js +1 -1
  39. package/dist/es/combobox-list.js +1 -1
  40. package/dist/es/combobox-root.js +1 -1
  41. package/dist/es/combobox-separator.js +1 -1
  42. package/dist/es/combobox-trigger.js +1 -1
  43. package/dist/es/command-group.js +1 -1
  44. package/dist/es/command-input.js +1 -1
  45. package/dist/es/command-item.js +1 -1
  46. package/dist/es/command-list.js +1 -1
  47. package/dist/es/command-root.js +1 -1
  48. package/dist/es/command-separator.js +1 -1
  49. package/dist/es/digit-input-slot.js +1 -1
  50. package/dist/es/digit-input.js +1 -1
  51. package/dist/es/dropdown-menu-content.js +1 -1
  52. package/dist/es/dropdown-menu-group.js +1 -1
  53. package/dist/es/dropdown-menu-item.js +1 -1
  54. package/dist/es/dropdown-menu-label.js +1 -1
  55. package/dist/es/dropdown-menu-separator.js +1 -1
  56. package/dist/es/dropdown-menu-sub-content.js +1 -1
  57. package/dist/es/dropdown-menu-sub-trigger.js +1 -1
  58. package/dist/es/dropdown-menu-trigger.js +1 -1
  59. package/dist/es/dropdown-menu.js +1 -1
  60. package/dist/es/index.js +51 -27
  61. package/dist/es/label.js +1 -1
  62. package/dist/es/modal-content.js +1 -1
  63. package/dist/es/modal-header.js +1 -1
  64. package/dist/es/pagination-content.js +31 -0
  65. package/dist/es/pagination-ellipsis.js +35 -0
  66. package/dist/es/pagination-first.js +4 -0
  67. package/dist/es/pagination-item.js +4 -0
  68. package/dist/es/pagination-last.js +4 -0
  69. package/dist/es/pagination-next.js +4 -0
  70. package/dist/es/pagination-previous.js +4 -0
  71. package/dist/es/pagination.js +60 -0
  72. package/dist/es/popover-content.js +1 -1
  73. package/dist/es/popover-trigger.js +1 -1
  74. package/dist/es/progress-bar.js +1 -1
  75. package/dist/es/progress-circle.js +1 -1
  76. package/dist/es/radio-group-card.js +1 -1
  77. package/dist/es/radio-group-label.js +1 -1
  78. package/dist/es/scroll-bar.js +1 -1
  79. package/dist/es/segmented-control-item.js +1 -1
  80. package/dist/es/segmented-control.js +1 -1
  81. package/dist/es/select-content.js +1 -1
  82. package/dist/es/select-item.js +1 -1
  83. package/dist/es/select-trigger.js +1 -1
  84. package/dist/es/select-value.js +1 -1
  85. package/dist/es/tab-menu-content.js +1 -1
  86. package/dist/es/tab-menu-item.js +1 -1
  87. package/dist/es/tab-menu-list.js +1 -1
  88. package/dist/es/tab-menu.js +1 -1
  89. package/dist/es/tooltip.js +1 -1
  90. package/package.json +3 -3
  91. package/src/components/index.ts +1 -0
  92. package/src/components/pagination/index.ts +23 -0
  93. package/src/components/pagination/pagination-content.vue +36 -0
  94. package/src/components/pagination/pagination-ellipsis.vue +47 -0
  95. package/src/components/pagination/pagination-first.vue +29 -0
  96. package/src/components/pagination/pagination-item.vue +28 -0
  97. package/src/components/pagination/pagination-last.vue +29 -0
  98. package/src/components/pagination/pagination-next.vue +29 -0
  99. package/src/components/pagination/pagination-previous.vue +33 -0
  100. package/src/components/pagination/pagination.vue +157 -0
  101. package/src/components/pagination/stories/pagination.stories.ts +154 -0
  102. package/src/components/switch/switch.vue +34 -16
@@ -0,0 +1,16 @@
1
+ export * from './pagination-content';
2
+ export { default as PaginationContent } from './pagination-content';
3
+ export * from './pagination-ellipsis';
4
+ export { default as PaginationEllipsis } from './pagination-ellipsis';
5
+ export * from './pagination-first';
6
+ export { default as PaginationFirst } from './pagination-first';
7
+ export * from './pagination-item';
8
+ export { default as PaginationItem } from './pagination-item';
9
+ export * from './pagination-last';
10
+ export { default as PaginationLast } from './pagination-last';
11
+ export * from './pagination-next';
12
+ export { default as PaginationNext } from './pagination-next';
13
+ export * from './pagination-previous';
14
+ export { default as PaginationPrevious } from './pagination-previous';
15
+ export * from './pagination';
16
+ export { default as Pagination } from './pagination';
@@ -0,0 +1,21 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PaginationListProps } from 'radix-vue';
3
+ export interface PaginationContentProps extends PaginationListProps {
4
+ class?: HTMLAttributes['class'];
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<PaginationContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PaginationContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
7
+ default?(_: {
8
+ items: ({
9
+ type: "ellipsis";
10
+ } | {
11
+ type: "page";
12
+ value: number;
13
+ })[];
14
+ }): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PaginationEllipsisProps as PrimitivePaginationEllipsisProps } from 'radix-vue';
3
+ export interface PaginationEllipsisProps extends PrimitivePaginationEllipsisProps {
4
+ class?: HTMLAttributes['class'];
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<PaginationEllipsisProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PaginationEllipsisProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
7
+ default?(_: {}): any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_WithTemplateSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PaginationFirstProps as PrimitivePaginationFirstProps } from 'radix-vue';
3
+ export interface PaginationFirstProps extends PrimitivePaginationFirstProps {
4
+ class?: HTMLAttributes['class'];
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<PaginationFirstProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PaginationFirstProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
7
+ default?(_: {}): any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_WithTemplateSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,16 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PaginationListItemProps } from 'radix-vue';
3
+ export interface PaginationItemProps extends PaginationListItemProps {
4
+ class?: HTMLAttributes['class'];
5
+ isActive?: boolean;
6
+ disabled?: boolean;
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<PaginationItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PaginationItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
9
+ default?(_: {}): any;
10
+ }>;
11
+ export default _default;
12
+ type __VLS_WithTemplateSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PaginationLastProps as PrimitivePaginationLastProps } from 'radix-vue';
3
+ export interface PaginationLastProps extends PrimitivePaginationLastProps {
4
+ class?: HTMLAttributes['class'];
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<PaginationLastProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PaginationLastProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
7
+ default?(_: {}): any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_WithTemplateSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PaginationNextProps as PrimitivePaginationNextProps } from 'radix-vue';
3
+ export interface PaginationNextProps extends PrimitivePaginationNextProps {
4
+ class?: HTMLAttributes['class'];
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<PaginationNextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PaginationNextProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
7
+ default?(_: {}): any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_WithTemplateSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PaginationPrevProps as PrimitivePaginationPreviousProps } from 'radix-vue';
3
+ export interface PaginationPreviousProps extends PrimitivePaginationPreviousProps {
4
+ class?: HTMLAttributes['class'];
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<PaginationPreviousProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PaginationPreviousProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
7
+ default?(_: {}): any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_WithTemplateSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
@@ -0,0 +1,32 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { PaginationRootProps } from 'radix-vue';
3
+ export interface PaginationProps extends PaginationRootProps {
4
+ class?: HTMLAttributes['class'];
5
+ variant: 'basic' | 'rounded' | 'group';
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<PaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:page": (value: number) => any;
9
+ }, string, import('vue').PublicProps, Readonly<PaginationProps> & Readonly<{
10
+ "onUpdate:page"?: ((value: number) => any) | undefined;
11
+ }>, {
12
+ variant: "basic" | "rounded" | "group";
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
14
+ leading?(_: {
15
+ page: number;
16
+ pageCount: number;
17
+ }): any;
18
+ default?(_: {
19
+ page: number;
20
+ pageCount: number;
21
+ }): any;
22
+ trailing?(_: {
23
+ page: number;
24
+ pageCount: number;
25
+ }): any;
26
+ }>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, normalizeClass, Fragment, createElementVNode, renderSlot, createCommentVNode, createVNode } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { P as Oh, l as O } from "./chunks/index.js";
4
+ import { X as Oh, l as O } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _hoisted_1 = { class: "celeste-checkbox-card-content" };
7
7
  const _hoisted_2 = { role: "presentation" };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, createElementVNode, createCommentVNode } from "vue";
2
2
  import { useDelegatedProps } from "./use-delegated-props.js";
3
3
  import { c as clsx } from "./chunks/clsx.js";
4
- import { P as Oh, l as O } from "./chunks/index.js";
4
+ import { X as Oh, l as O } from "./chunks/index.js";
5
5
  import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
6
  const _hoisted_1 = { role: "presentation" };
7
7
  const _hoisted_2 = {
@@ -6764,8 +6764,244 @@ const Kc = ["value", "name", "disabled", "required"], [Eo, Hc] = Q("NumberFieldR
6764
6764
  _: 3
6765
6765
  }, 16, ["type", "style", "disabled", "data-disabled", "data-pressed"]));
6766
6766
  }
6767
+ }), [ta, Wc] = Q("PaginationRoot"), by = /* @__PURE__ */ defineComponent({
6768
+ __name: "PaginationRoot",
6769
+ props: {
6770
+ page: {},
6771
+ defaultPage: { default: 1 },
6772
+ itemsPerPage: { default: 10 },
6773
+ total: { default: 0 },
6774
+ siblingCount: { default: 2 },
6775
+ disabled: { type: Boolean },
6776
+ showEdges: { type: Boolean, default: false },
6777
+ asChild: { type: Boolean },
6778
+ as: { default: "nav" }
6779
+ },
6780
+ emits: ["update:page"],
6781
+ setup(a2, { emit: t }) {
6782
+ const e = a2, n = t, { siblingCount: l, disabled: s, showEdges: r } = toRefs(e);
6783
+ R();
6784
+ const i = ne(e, "page", n, {
6785
+ defaultValue: e.defaultPage,
6786
+ passive: e.page === void 0
6787
+ }), u = computed(() => Math.max(1, Math.ceil(e.total / e.itemsPerPage)));
6788
+ return Wc({
6789
+ page: i,
6790
+ onPageChange(d) {
6791
+ i.value = d;
6792
+ },
6793
+ pageCount: u,
6794
+ siblingCount: l,
6795
+ disabled: s,
6796
+ showEdges: r
6797
+ }), (d, c) => (openBlock(), createBlock(unref(O), {
6798
+ as: d.as,
6799
+ "as-child": d.asChild
6800
+ }, {
6801
+ default: withCtx(() => [
6802
+ renderSlot(d.$slots, "default", {
6803
+ page: unref(i),
6804
+ pageCount: u.value
6805
+ })
6806
+ ]),
6807
+ _: 3
6808
+ }, 8, ["as", "as-child"]));
6809
+ }
6810
+ }), Cy = /* @__PURE__ */ defineComponent({
6811
+ __name: "PaginationEllipsis",
6812
+ props: {
6813
+ asChild: { type: Boolean },
6814
+ as: {}
6815
+ },
6816
+ setup(a2) {
6817
+ const t = a2;
6818
+ return R(), (e, n) => (openBlock(), createBlock(unref(O), mergeProps(t, { "data-type": "ellipsis" }), {
6819
+ default: withCtx(() => [
6820
+ renderSlot(e.$slots, "default", {}, () => [
6821
+ createTextVNode("…")
6822
+ ])
6823
+ ]),
6824
+ _: 3
6825
+ }, 16));
6826
+ }
6827
+ }), wy = /* @__PURE__ */ defineComponent({
6828
+ __name: "PaginationFirst",
6829
+ props: {
6830
+ asChild: { type: Boolean },
6831
+ as: { default: "button" }
6832
+ },
6833
+ setup(a2) {
6834
+ const t = a2, e = ta();
6835
+ R();
6836
+ const n = computed(() => e.page.value === 1 || e.disabled.value);
6837
+ return (l, s) => (openBlock(), createBlock(unref(O), mergeProps(t, {
6838
+ "aria-label": "First Page",
6839
+ type: l.as === "button" ? "button" : void 0,
6840
+ disabled: n.value,
6841
+ onClick: s[0] || (s[0] = (r) => !n.value && unref(e).onPageChange(1))
6842
+ }), {
6843
+ default: withCtx(() => [
6844
+ renderSlot(l.$slots, "default", {}, () => [
6845
+ createTextVNode("First page")
6846
+ ])
6847
+ ]),
6848
+ _: 3
6849
+ }, 16, ["type", "disabled"]));
6850
+ }
6851
+ }), _y = /* @__PURE__ */ defineComponent({
6852
+ __name: "PaginationLast",
6853
+ props: {
6854
+ asChild: { type: Boolean },
6855
+ as: { default: "button" }
6856
+ },
6857
+ setup(a2) {
6858
+ const t = a2, e = ta();
6859
+ R();
6860
+ const n = computed(() => e.page.value === e.pageCount.value || e.disabled.value);
6861
+ return (l, s) => (openBlock(), createBlock(unref(O), mergeProps(t, {
6862
+ "aria-label": "Last Page",
6863
+ type: l.as === "button" ? "button" : void 0,
6864
+ disabled: n.value,
6865
+ onClick: s[0] || (s[0] = (r) => !n.value && unref(e).onPageChange(unref(e).pageCount.value))
6866
+ }), {
6867
+ default: withCtx(() => [
6868
+ renderSlot(l.$slots, "default", {}, () => [
6869
+ createTextVNode("Last page")
6870
+ ])
6871
+ ]),
6872
+ _: 3
6873
+ }, 16, ["type", "disabled"]));
6874
+ }
6767
6875
  });
6768
- const Gc = ["id", "value", "name", "disabled", "required"], [qc, Yc] = Q("PinInputRoot"), Dy = /* @__PURE__ */ defineComponent({
6876
+ function it(a2, t) {
6877
+ const e = t - a2 + 1;
6878
+ return Array.from({ length: e }, (n, l) => l + a2);
6879
+ }
6880
+ function jc(a2) {
6881
+ return a2.map((t) => typeof t == "number" ? { type: "page", value: t } : { type: "ellipsis" });
6882
+ }
6883
+ const Ba = "ellipsis";
6884
+ function Uc(a2, t, e, n) {
6885
+ const s = t, r = Math.max(a2 - e, 1), i = Math.min(a2 + e, s);
6886
+ if (n) {
6887
+ const d = Math.min(2 * e + 5, t) - 2, c = r > 3 && Math.abs(s - d - 1 + 1) > 2 && Math.abs(r - 1) > 2, f = i < s - 2 && Math.abs(s - d) > 2 && Math.abs(s - i) > 2;
6888
+ if (!c && f)
6889
+ return [...it(1, d), Ba, s];
6890
+ if (c && !f) {
6891
+ const p = it(s - d + 1, s);
6892
+ return [1, Ba, ...p];
6893
+ }
6894
+ if (c && f) {
6895
+ const p = it(r, i);
6896
+ return [1, Ba, ...p, Ba, s];
6897
+ }
6898
+ return it(1, s);
6899
+ } else {
6900
+ const u = e * 2 + 1;
6901
+ return t < u ? it(1, s) : a2 <= e + 1 ? it(1, u) : t - a2 <= e ? it(t - u + 1, s) : it(r, i);
6902
+ }
6903
+ }
6904
+ const xy = /* @__PURE__ */ defineComponent({
6905
+ __name: "PaginationList",
6906
+ props: {
6907
+ asChild: { type: Boolean },
6908
+ as: {}
6909
+ },
6910
+ setup(a2) {
6911
+ const t = a2;
6912
+ R();
6913
+ const e = ta(), n = computed(() => jc(
6914
+ Uc(
6915
+ e.page.value,
6916
+ e.pageCount.value,
6917
+ e.siblingCount.value,
6918
+ e.showEdges.value
6919
+ )
6920
+ ));
6921
+ return (l, s) => (openBlock(), createBlock(unref(O), normalizeProps(guardReactiveProps(t)), {
6922
+ default: withCtx(() => [
6923
+ renderSlot(l.$slots, "default", { items: n.value })
6924
+ ]),
6925
+ _: 3
6926
+ }, 16));
6927
+ }
6928
+ }), Sy = /* @__PURE__ */ defineComponent({
6929
+ __name: "PaginationListItem",
6930
+ props: {
6931
+ value: {},
6932
+ asChild: { type: Boolean },
6933
+ as: { default: "button" }
6934
+ },
6935
+ setup(a2) {
6936
+ const t = a2;
6937
+ R();
6938
+ const e = ta(), n = computed(() => e.page.value === t.value), l = computed(() => e.disabled.value);
6939
+ return (s, r) => (openBlock(), createBlock(unref(O), mergeProps(t, {
6940
+ "data-type": "page",
6941
+ "aria-label": `Page ${s.value}`,
6942
+ "aria-current": n.value ? "page" : void 0,
6943
+ "data-selected": n.value ? "true" : void 0,
6944
+ disabled: l.value,
6945
+ type: s.as === "button" ? "button" : void 0,
6946
+ onClick: r[0] || (r[0] = (i) => !l.value && unref(e).onPageChange(s.value))
6947
+ }), {
6948
+ default: withCtx(() => [
6949
+ renderSlot(s.$slots, "default", {}, () => [
6950
+ createTextVNode(toDisplayString(s.value), 1)
6951
+ ])
6952
+ ]),
6953
+ _: 3
6954
+ }, 16, ["aria-label", "aria-current", "data-selected", "disabled", "type"]));
6955
+ }
6956
+ }), Ey = /* @__PURE__ */ defineComponent({
6957
+ __name: "PaginationNext",
6958
+ props: {
6959
+ asChild: { type: Boolean },
6960
+ as: { default: "button" }
6961
+ },
6962
+ setup(a2) {
6963
+ const t = a2;
6964
+ R();
6965
+ const e = ta(), n = computed(() => e.page.value === e.pageCount.value || e.disabled.value);
6966
+ return (l, s) => (openBlock(), createBlock(unref(O), mergeProps(t, {
6967
+ "aria-label": "Next Page",
6968
+ type: l.as === "button" ? "button" : void 0,
6969
+ disabled: n.value,
6970
+ onClick: s[0] || (s[0] = (r) => !n.value && unref(e).onPageChange(unref(e).page.value + 1))
6971
+ }), {
6972
+ default: withCtx(() => [
6973
+ renderSlot(l.$slots, "default", {}, () => [
6974
+ createTextVNode("Next page")
6975
+ ])
6976
+ ]),
6977
+ _: 3
6978
+ }, 16, ["type", "disabled"]));
6979
+ }
6980
+ }), Py = /* @__PURE__ */ defineComponent({
6981
+ __name: "PaginationPrev",
6982
+ props: {
6983
+ asChild: { type: Boolean },
6984
+ as: { default: "button" }
6985
+ },
6986
+ setup(a2) {
6987
+ const t = a2;
6988
+ R();
6989
+ const e = ta(), n = computed(() => e.page.value === 1 || e.disabled.value);
6990
+ return (l, s) => (openBlock(), createBlock(unref(O), mergeProps(t, {
6991
+ "aria-label": "Previous Page",
6992
+ type: l.as === "button" ? "button" : void 0,
6993
+ disabled: n.value,
6994
+ onClick: s[0] || (s[0] = (r) => !n.value && unref(e).onPageChange(unref(e).page.value - 1))
6995
+ }), {
6996
+ default: withCtx(() => [
6997
+ renderSlot(l.$slots, "default", {}, () => [
6998
+ createTextVNode("Prev page")
6999
+ ])
7000
+ ]),
7001
+ _: 3
7002
+ }, 16, ["type", "disabled"]));
7003
+ }
7004
+ }), Gc = ["id", "value", "name", "disabled", "required"], [qc, Yc] = Q("PinInputRoot"), Dy = /* @__PURE__ */ defineComponent({
6769
7005
  inheritAttrs: false,
6770
7006
  __name: "PinInputRoot",
6771
7007
  props: {
@@ -10374,81 +10610,89 @@ const av = /* @__PURE__ */ defineComponent({
10374
10610
  }
10375
10611
  });
10376
10612
  export {
10377
- Jv as $,
10613
+ Yv as $,
10378
10614
  At as A,
10379
- size as B,
10380
- autoPlacement as C,
10381
- hide as D,
10382
- inline as E,
10615
+ arrow$1 as B,
10616
+ size as C,
10617
+ autoPlacement as D,
10618
+ Ey as E,
10383
10619
  Fy as F,
10384
10620
  Gl as G,
10385
- computePosition as H,
10386
- yg as I,
10387
- gg as J,
10621
+ hide as H,
10622
+ inline as I,
10623
+ computePosition as J,
10388
10624
  Kv as K,
10389
- Cg as L,
10390
- bg as M,
10625
+ yg as L,
10626
+ gg as M,
10391
10627
  Ny as N,
10392
10628
  Oy as O,
10393
- Oh as P,
10629
+ Py as P,
10394
10630
  Qf as Q,
10395
10631
  Ry as R,
10396
- qv as S,
10632
+ Sy as S,
10397
10633
  Ty as T,
10398
- Wv as U,
10399
- Qv as V,
10634
+ Cg as U,
10635
+ bg as V,
10400
10636
  Wy as W,
10401
- nm as X,
10402
- Yv as Y,
10637
+ Oh as X,
10638
+ qv as Y,
10403
10639
  Zv as Z,
10404
- Xv as _,
10640
+ _y as _,
10405
10641
  Gy as a,
10406
- Hv as a0,
10407
- tm as a1,
10408
- Uv as a2,
10409
- $y as a3,
10410
- Dy as a4,
10411
- ih as a5,
10412
- uh as a6,
10413
- fh as a7,
10414
- ch as a8,
10415
- hh as a9,
10416
- eg as aA,
10417
- Qy as aB,
10418
- Lg as aC,
10419
- zg as aD,
10420
- Kg as aE,
10421
- jg as aF,
10422
- Hg as aG,
10423
- Wg as aH,
10424
- My as aI,
10425
- Vy as aJ,
10426
- ph as aa,
10427
- Ch as ab,
10428
- wh as ac,
10429
- rh as ad,
10430
- sh as ae,
10431
- Dv as af,
10432
- Eu as ag,
10433
- xu as ah,
10434
- Pu as ai,
10435
- Du as aj,
10436
- bs as ak,
10437
- ws as al,
10438
- _s as am,
10439
- xs as an,
10440
- gs as ao,
10441
- By as ap,
10442
- Iy as aq,
10443
- sv as ar,
10444
- lv as as,
10445
- zy as at,
10446
- Ky as au,
10447
- Xy as av,
10448
- jy as aw,
10449
- Yy as ax,
10450
- Uy as ay,
10451
- Ly as az,
10642
+ Wv as a0,
10643
+ Qv as a1,
10644
+ nm as a2,
10645
+ Xv as a3,
10646
+ Jv as a4,
10647
+ Hv as a5,
10648
+ tm as a6,
10649
+ Uv as a7,
10650
+ $y as a8,
10651
+ Dy as a9,
10652
+ lv as aA,
10653
+ zy as aB,
10654
+ Ky as aC,
10655
+ Xy as aD,
10656
+ jy as aE,
10657
+ Yy as aF,
10658
+ Uy as aG,
10659
+ Ly as aH,
10660
+ eg as aI,
10661
+ Qy as aJ,
10662
+ Lg as aK,
10663
+ zg as aL,
10664
+ Kg as aM,
10665
+ jg as aN,
10666
+ Hg as aO,
10667
+ Wg as aP,
10668
+ My as aQ,
10669
+ Vy as aR,
10670
+ ih as aa,
10671
+ uh as ab,
10672
+ fh as ac,
10673
+ ch as ad,
10674
+ hh as ae,
10675
+ ph as af,
10676
+ Ch as ag,
10677
+ wh as ah,
10678
+ rh as ai,
10679
+ sh as aj,
10680
+ Dv as ak,
10681
+ Eu as al,
10682
+ xu as am,
10683
+ Pu as an,
10684
+ Du as ao,
10685
+ xy as ap,
10686
+ Cy as aq,
10687
+ by as ar,
10688
+ bs as as,
10689
+ ws as at,
10690
+ _s as au,
10691
+ xs as av,
10692
+ gs as aw,
10693
+ By as ax,
10694
+ Iy as ay,
10695
+ sv as az,
10452
10696
  bh as b,
10453
10697
  tg as c,
10454
10698
  ag as d,
@@ -10470,7 +10714,7 @@ export {
10470
10714
  tu as t,
10471
10715
  shift as u,
10472
10716
  offset as v,
10473
- arrow$1 as w,
10717
+ wy as w,
10474
10718
  xe as x,
10475
10719
  ys as y,
10476
10720
  zv as z
@@ -1,5 +1,5 @@
1
1
  import { P as PluginKey, S as Selection, k as keydownHandler, a as SelectionRange, T as TextSelection, F as Fragment, b as Slice, E as Extension, c as Plugin, i as isTextSelection, p as posToDOMRect, g as getText, d as getTextSerializersFromSchema } from "./index4.js";
2
- import { s as flip, u as shift, v as offset, w as arrow$1, B as size, C as autoPlacement, D as hide, E as inline, H as computePosition } from "./index.js";
2
+ import { s as flip, u as shift, v as offset, B as arrow$1, C as size, D as autoPlacement, H as hide, I as inline, J as computePosition } from "./index.js";
3
3
  import { defineComponent, ref, onMounted, onBeforeUnmount, h, Teleport } from "vue";
4
4
  var readFromCache;
5
5
  var addToCache;
@@ -0,0 +1,33 @@
1
+ import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode } from "vue";
2
+ import { c as clsx } from "./clsx.js";
3
+ import { A as At, w as wy } from "./index.js";
4
+ import { r as reactiveOmit } from "./index2.js";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "pagination-first",
7
+ props: {
8
+ class: {},
9
+ asChild: { type: Boolean },
10
+ as: {}
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const delegated = reactiveOmit(props, "class");
15
+ const forwarded = At(delegated);
16
+ return (_ctx, _cache) => {
17
+ return openBlock(), createBlock(unref(wy), mergeProps({
18
+ class: unref(clsx)("celeste-pagination-element", "celeste-pagination-first", props.class),
19
+ "data-slot": "pagination-first"
20
+ }, unref(forwarded)), {
21
+ default: withCtx(() => [
22
+ renderSlot(_ctx.$slots, "default", {}, () => [
23
+ _cache[0] || (_cache[0] = createElementVNode("i", { class: "i-celeste-arrow-left-double-line" }, null, -1))
24
+ ])
25
+ ]),
26
+ _: 3
27
+ }, 16, ["class"]);
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ _sfc_main as _
33
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
+ import { c as clsx } from "./clsx.js";
3
+ import { S as Sy } from "./index.js";
4
+ import { r as reactiveOmit } from "./index2.js";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "pagination-item",
7
+ props: {
8
+ class: {},
9
+ isActive: { type: Boolean },
10
+ disabled: { type: Boolean },
11
+ value: {},
12
+ asChild: { type: Boolean },
13
+ as: {}
14
+ },
15
+ setup(__props) {
16
+ const props = __props;
17
+ const delegated = reactiveOmit(props, "class", "isActive", "disabled");
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createBlock(unref(Sy), mergeProps(unref(delegated), {
20
+ "data-slot": "pagination-item",
21
+ class: unref(clsx)("celeste-pagination-element", "celeste-pagination-item", props.class, { "celeste-pagination-item-active": props.isActive }, props.disabled && "celeste-pagination-item-disabled")
22
+ }), {
23
+ default: withCtx(() => [
24
+ renderSlot(_ctx.$slots, "default")
25
+ ]),
26
+ _: 3
27
+ }, 16, ["class"]);
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ _sfc_main as _
33
+ };