@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.
- package/dist/celeste.css +155 -18
- package/dist/cjs/chunks/index.js +245 -1
- package/dist/cjs/chunks/pagination-first.js +32 -0
- package/dist/cjs/chunks/pagination-item.js +32 -0
- package/dist/cjs/chunks/pagination-last.js +32 -0
- package/dist/cjs/chunks/pagination-next.js +32 -0
- package/dist/cjs/chunks/pagination-previous.js +32 -0
- package/dist/cjs/index.js +24 -0
- package/dist/cjs/pagination-content.js +30 -0
- package/dist/cjs/pagination-ellipsis.js +34 -0
- package/dist/cjs/pagination-first.js +3 -0
- package/dist/cjs/pagination-item.js +3 -0
- package/dist/cjs/pagination-last.js +3 -0
- package/dist/cjs/pagination-next.js +3 -0
- package/dist/cjs/pagination-previous.js +3 -0
- package/dist/cjs/pagination.js +59 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/pagination/index.d.ts +16 -0
- package/dist/components/pagination/pagination-content.d.ts +21 -0
- package/dist/components/pagination/pagination-ellipsis.d.ts +14 -0
- package/dist/components/pagination/pagination-first.d.ts +14 -0
- package/dist/components/pagination/pagination-item.d.ts +16 -0
- package/dist/components/pagination/pagination-last.d.ts +14 -0
- package/dist/components/pagination/pagination-next.d.ts +14 -0
- package/dist/components/pagination/pagination-previous.d.ts +14 -0
- package/dist/components/pagination/pagination.d.ts +32 -0
- package/dist/es/checkbox-card.js +1 -1
- package/dist/es/checkbox-label.js +1 -1
- package/dist/es/chunks/index.js +309 -65
- package/dist/es/chunks/index3.js +1 -1
- package/dist/es/chunks/pagination-first.js +33 -0
- package/dist/es/chunks/pagination-item.js +33 -0
- package/dist/es/chunks/pagination-last.js +33 -0
- package/dist/es/chunks/pagination-next.js +33 -0
- package/dist/es/chunks/pagination-previous.js +33 -0
- package/dist/es/combobox-group.js +1 -1
- package/dist/es/combobox-input.js +1 -1
- package/dist/es/combobox-item.js +1 -1
- package/dist/es/combobox-list.js +1 -1
- package/dist/es/combobox-root.js +1 -1
- package/dist/es/combobox-separator.js +1 -1
- package/dist/es/combobox-trigger.js +1 -1
- package/dist/es/command-group.js +1 -1
- package/dist/es/command-input.js +1 -1
- package/dist/es/command-item.js +1 -1
- package/dist/es/command-list.js +1 -1
- package/dist/es/command-root.js +1 -1
- package/dist/es/command-separator.js +1 -1
- package/dist/es/digit-input-slot.js +1 -1
- package/dist/es/digit-input.js +1 -1
- package/dist/es/dropdown-menu-content.js +1 -1
- package/dist/es/dropdown-menu-group.js +1 -1
- package/dist/es/dropdown-menu-item.js +1 -1
- package/dist/es/dropdown-menu-label.js +1 -1
- package/dist/es/dropdown-menu-separator.js +1 -1
- package/dist/es/dropdown-menu-sub-content.js +1 -1
- package/dist/es/dropdown-menu-sub-trigger.js +1 -1
- package/dist/es/dropdown-menu-trigger.js +1 -1
- package/dist/es/dropdown-menu.js +1 -1
- package/dist/es/index.js +51 -27
- package/dist/es/label.js +1 -1
- package/dist/es/modal-content.js +1 -1
- package/dist/es/modal-header.js +1 -1
- package/dist/es/pagination-content.js +31 -0
- package/dist/es/pagination-ellipsis.js +35 -0
- package/dist/es/pagination-first.js +4 -0
- package/dist/es/pagination-item.js +4 -0
- package/dist/es/pagination-last.js +4 -0
- package/dist/es/pagination-next.js +4 -0
- package/dist/es/pagination-previous.js +4 -0
- package/dist/es/pagination.js +60 -0
- package/dist/es/popover-content.js +1 -1
- package/dist/es/popover-trigger.js +1 -1
- package/dist/es/progress-bar.js +1 -1
- package/dist/es/progress-circle.js +1 -1
- package/dist/es/radio-group-card.js +1 -1
- package/dist/es/radio-group-label.js +1 -1
- package/dist/es/scroll-bar.js +1 -1
- package/dist/es/segmented-control-item.js +1 -1
- package/dist/es/segmented-control.js +1 -1
- package/dist/es/select-content.js +1 -1
- package/dist/es/select-item.js +1 -1
- package/dist/es/select-trigger.js +1 -1
- package/dist/es/select-value.js +1 -1
- package/dist/es/tab-menu-content.js +1 -1
- package/dist/es/tab-menu-item.js +1 -1
- package/dist/es/tab-menu-list.js +1 -1
- package/dist/es/tab-menu.js +1 -1
- package/dist/es/tooltip.js +1 -1
- package/package.json +3 -3
- package/src/components/index.ts +1 -0
- package/src/components/pagination/index.ts +23 -0
- package/src/components/pagination/pagination-content.vue +36 -0
- package/src/components/pagination/pagination-ellipsis.vue +47 -0
- package/src/components/pagination/pagination-first.vue +29 -0
- package/src/components/pagination/pagination-item.vue +28 -0
- package/src/components/pagination/pagination-last.vue +29 -0
- package/src/components/pagination/pagination-next.vue +29 -0
- package/src/components/pagination/pagination-previous.vue +33 -0
- package/src/components/pagination/pagination.vue +157 -0
- package/src/components/pagination/stories/pagination.stories.ts +154 -0
- package/src/components/switch/switch.vue +34 -16
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
+
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
+
import { x as xe, ar as by } from "./chunks/index.js";
|
|
4
|
+
import { r as reactiveOmit } from "./chunks/index2.js";
|
|
5
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "celeste-pagination-leading"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_2 = { class: "celeste-pagination-center" };
|
|
11
|
+
const _hoisted_3 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "celeste-pagination-trailing"
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
__name: "pagination",
|
|
17
|
+
props: {
|
|
18
|
+
class: {},
|
|
19
|
+
variant: { default: "basic" },
|
|
20
|
+
page: {},
|
|
21
|
+
defaultPage: {},
|
|
22
|
+
itemsPerPage: {},
|
|
23
|
+
total: {},
|
|
24
|
+
siblingCount: {},
|
|
25
|
+
disabled: { type: Boolean },
|
|
26
|
+
showEdges: { type: Boolean },
|
|
27
|
+
asChild: { type: Boolean },
|
|
28
|
+
as: {}
|
|
29
|
+
},
|
|
30
|
+
emits: ["update:page"],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const emits = __emit;
|
|
34
|
+
const delegated = reactiveOmit(props, "class");
|
|
35
|
+
const forwarded = xe(delegated, emits);
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createBlock(unref(by), mergeProps(unref(forwarded), {
|
|
38
|
+
"data-slot": "pagination",
|
|
39
|
+
class: unref(clsx)("celeste-pagination", `celeste-pagination-variant-${props.variant}`, props.class)
|
|
40
|
+
}), {
|
|
41
|
+
default: withCtx((sprops) => [
|
|
42
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
43
|
+
renderSlot(_ctx.$slots, "leading", normalizeProps(guardReactiveProps(sprops)), void 0, true)
|
|
44
|
+
])) : createCommentVNode("", true),
|
|
45
|
+
createElementVNode("div", _hoisted_2, [
|
|
46
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(sprops)), void 0, true)
|
|
47
|
+
]),
|
|
48
|
+
_ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
49
|
+
renderSlot(_ctx.$slots, "trailing", normalizeProps(guardReactiveProps(sprops)), void 0, true)
|
|
50
|
+
])) : createCommentVNode("", true)
|
|
51
|
+
]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 16, ["class"]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const pagination = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0511c5ac"]]);
|
|
58
|
+
export {
|
|
59
|
+
pagination as default
|
|
60
|
+
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, m
|
|
|
2
2
|
import CompactButton from "./compact-button.js";
|
|
3
3
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
4
4
|
import { c as clsx } from "./chunks/clsx.js";
|
|
5
|
-
import { x as xe,
|
|
5
|
+
import { x as xe, as as bs, at as ws, au as _s, av as xs } from "./chunks/index.js";
|
|
6
6
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
7
|
const _hoisted_1 = ["data-icon-size"];
|
|
8
8
|
const _hoisted_2 = { class: "celeste-popover-title" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { aw as gs } from "./chunks/index.js";
|
|
3
3
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "popover-trigger",
|
package/dist/es/progress-bar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useCssVars, computed, openBlock, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, renderSlot, createTextVNode, createVNode, unref, mergeProps, withCtx } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ax as By, ay as Iy } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _hoisted_1 = ["data-layout"];
|
|
7
7
|
const _hoisted_2 = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useCssVars, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, createElementBlock, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ax as By, ay as Iy } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _hoisted_1 = ["width", "height"];
|
|
7
7
|
const _hoisted_2 = ["cx", "cy", "r"];
|
|
@@ -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 {
|
|
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-radio-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 {
|
|
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 = {
|
package/dist/es/scroll-bar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode } from "vue";
|
|
2
2
|
import { c as clsx } from "./chunks/clsx.js";
|
|
3
|
-
import {
|
|
3
|
+
import { aQ as My, aR as Vy } from "./chunks/index.js";
|
|
4
4
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "scroll-bar",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { az as sv } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "segmented-control-item",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import { x as xe,
|
|
4
|
+
import { x as xe, aA as lv } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "segmented-control",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, mergeProps, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import { x as xe,
|
|
4
|
+
import { x as xe, aB as zy, aC as Ky, aD as Xy } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "select-content",
|
package/dist/es/select-item.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, createElementVNode } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { aE as jy, aF as Yy, aG as Uy } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "select-item",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createVNode, createElementVNode } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { aH as Ly, aI as eg } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "select-trigger",
|
package/dist/es/select-value.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { aJ as Qy } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "select-value",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { V as bg } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "tab-menu-content",
|
package/dist/es/tab-menu-item.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, createCommentVNode } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import { A as At,
|
|
4
|
+
import { A as At, U as Cg } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
key: 0,
|
package/dist/es/tab-menu-list.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { useDelegatedProps } from "./use-delegated-props.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { M as gg } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "tab-menu-list",
|
package/dist/es/tab-menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
-
import { x as xe,
|
|
2
|
+
import { x as xe, L as yg } from "./chunks/index.js";
|
|
3
3
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "tab-menu",
|
package/dist/es/tooltip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, mergeProps, renderSlot, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import CompactButton from "./compact-button.js";
|
|
3
3
|
import { c as clsx } from "./chunks/clsx.js";
|
|
4
|
-
import { x as xe,
|
|
4
|
+
import { x as xe, aK as Lg, aL as zg, aM as Kg, aN as jg, aO as Hg, aP as Wg } from "./chunks/index.js";
|
|
5
5
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
6
6
|
const _hoisted_1 = { class: "celeste-tooltip-content-box" };
|
|
7
7
|
const _hoisted_2 = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youcan/celeste",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.59",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"youcan",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"radix-vue": "^1.9.12",
|
|
45
45
|
"tinycolor2": "^1.6.0",
|
|
46
46
|
"vue-sonner": "^2.0.2",
|
|
47
|
-
"@youcan/celeste-icons": "0.6.
|
|
48
|
-
"@youcan/celeste-tokens": "0.6.
|
|
47
|
+
"@youcan/celeste-icons": "0.6.59",
|
|
48
|
+
"@youcan/celeste-tokens": "0.6.59"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@chromatic-com/storybook": "^4.1.1",
|
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './pagination-content.vue';
|
|
2
|
+
export { default as PaginationContent } from './pagination-content.vue';
|
|
3
|
+
|
|
4
|
+
export * from './pagination-ellipsis.vue';
|
|
5
|
+
export { default as PaginationEllipsis } from './pagination-ellipsis.vue';
|
|
6
|
+
|
|
7
|
+
export * from './pagination-first.vue';
|
|
8
|
+
export { default as PaginationFirst } from './pagination-first.vue';
|
|
9
|
+
|
|
10
|
+
export * from './pagination-item.vue';
|
|
11
|
+
export { default as PaginationItem } from './pagination-item.vue';
|
|
12
|
+
|
|
13
|
+
export * from './pagination-last.vue';
|
|
14
|
+
export { default as PaginationLast } from './pagination-last.vue';
|
|
15
|
+
|
|
16
|
+
export * from './pagination-next.vue';
|
|
17
|
+
export { default as PaginationNext } from './pagination-next.vue';
|
|
18
|
+
|
|
19
|
+
export * from './pagination-previous.vue';
|
|
20
|
+
export { default as PaginationPrevious } from './pagination-previous.vue';
|
|
21
|
+
|
|
22
|
+
export * from './pagination.vue';
|
|
23
|
+
export { default as Pagination } from './pagination.vue';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { PaginationList, type PaginationListProps } from 'radix-vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PaginationContentProps>();
|
|
8
|
+
|
|
9
|
+
const delegated = reactiveOmit(props, 'class');
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
export interface PaginationContentProps extends PaginationListProps {
|
|
14
|
+
class?: HTMLAttributes['class'];
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<PaginationList
|
|
20
|
+
v-slot="sprops"
|
|
21
|
+
data-slot="pagination-content"
|
|
22
|
+
v-bind="delegated"
|
|
23
|
+
:class="clsx('celeste-pagination-content', props.class)"
|
|
24
|
+
>
|
|
25
|
+
<slot v-bind="sprops" />
|
|
26
|
+
</PaginationList>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<style scoped>
|
|
30
|
+
.celeste-pagination-content {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: var(--spacing-8);
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { PaginationEllipsis, type PaginationEllipsisProps as PrimitivePaginationEllipsisProps } from 'radix-vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PaginationEllipsisProps>();
|
|
8
|
+
|
|
9
|
+
const delegated = reactiveOmit(props, 'class');
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
export interface PaginationEllipsisProps extends PrimitivePaginationEllipsisProps {
|
|
14
|
+
class?: HTMLAttributes['class'];
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<PaginationEllipsis
|
|
20
|
+
v-bind="delegated"
|
|
21
|
+
:class="clsx('celeste-pagination-element', 'celeste-pagination-ellipsis', props.class)"
|
|
22
|
+
data-slot="pagination-ellipsis"
|
|
23
|
+
>
|
|
24
|
+
<slot>
|
|
25
|
+
<span class="celeste-pagination-ellipsis-dots">...</span>
|
|
26
|
+
<span class="celeste-pagination-ellipsis-sr">More pages</span>
|
|
27
|
+
</slot>
|
|
28
|
+
</PaginationEllipsis>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<style lang="scss" scoped>
|
|
32
|
+
.celeste-pagination-ellipsis {
|
|
33
|
+
user-select: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.celeste-pagination-ellipsis .celeste-pagination-ellipsis-sr {
|
|
37
|
+
position: absolute;
|
|
38
|
+
width: 1px;
|
|
39
|
+
height: 1px;
|
|
40
|
+
margin: -1px;
|
|
41
|
+
padding: 0;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
clip: rect(0, 0, 0, 0);
|
|
44
|
+
border-width: 0;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { PaginationFirst, type PaginationFirstProps as PrimitivePaginationFirstProps, useForwardProps } from 'radix-vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PaginationFirstProps>();
|
|
8
|
+
|
|
9
|
+
const delegated = reactiveOmit(props, 'class');
|
|
10
|
+
const forwarded = useForwardProps(delegated);
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script lang="ts">
|
|
14
|
+
export interface PaginationFirstProps extends PrimitivePaginationFirstProps {
|
|
15
|
+
class?: HTMLAttributes['class'];
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<PaginationFirst
|
|
21
|
+
:class="clsx('celeste-pagination-element', 'celeste-pagination-first', props.class)"
|
|
22
|
+
data-slot="pagination-first"
|
|
23
|
+
v-bind="forwarded"
|
|
24
|
+
>
|
|
25
|
+
<slot>
|
|
26
|
+
<i class="i-celeste-arrow-left-double-line" />
|
|
27
|
+
</slot>
|
|
28
|
+
</PaginationFirst>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { PaginationListItem, type PaginationListItemProps } from 'radix-vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PaginationItemProps>();
|
|
8
|
+
|
|
9
|
+
const delegated = reactiveOmit(props, 'class', 'isActive', 'disabled');
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
export interface PaginationItemProps extends PaginationListItemProps {
|
|
14
|
+
class?: HTMLAttributes['class'];
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<PaginationListItem
|
|
22
|
+
v-bind="delegated"
|
|
23
|
+
data-slot="pagination-item"
|
|
24
|
+
:class="clsx('celeste-pagination-element', 'celeste-pagination-item', props.class, { 'celeste-pagination-item-active': props.isActive }, props.disabled && 'celeste-pagination-item-disabled')"
|
|
25
|
+
>
|
|
26
|
+
<slot />
|
|
27
|
+
</PaginationListItem>
|
|
28
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { PaginationLast, type PaginationLastProps as PrimitivePaginationLastProps, useForwardProps } from 'radix-vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PaginationLastProps>();
|
|
8
|
+
|
|
9
|
+
const delegated = reactiveOmit(props, 'class');
|
|
10
|
+
const forwarded = useForwardProps(delegated);
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script lang="ts">
|
|
14
|
+
export interface PaginationLastProps extends PrimitivePaginationLastProps {
|
|
15
|
+
class?: HTMLAttributes['class'];
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<PaginationLast
|
|
21
|
+
:class="clsx('celeste-pagination-element', 'celeste-pagination-last', props.class)"
|
|
22
|
+
data-slot="pagination-last"
|
|
23
|
+
v-bind="forwarded"
|
|
24
|
+
>
|
|
25
|
+
<slot>
|
|
26
|
+
<i class="i-celeste-arrow-right-double-line" />
|
|
27
|
+
</slot>
|
|
28
|
+
</PaginationLast>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { PaginationNext, type PaginationNextProps as PrimitivePaginationNextProps, useForwardProps } from 'radix-vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PaginationNextProps>();
|
|
8
|
+
|
|
9
|
+
const delegated = reactiveOmit(props, 'class');
|
|
10
|
+
const forwarded = useForwardProps(delegated);
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script lang="ts">
|
|
14
|
+
export interface PaginationNextProps extends PrimitivePaginationNextProps {
|
|
15
|
+
class?: HTMLAttributes['class'];
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<PaginationNext
|
|
21
|
+
:class="clsx('celeste-pagination-element', 'celeste-pagination-next', props.class)"
|
|
22
|
+
data-slot="pagination-next"
|
|
23
|
+
v-bind="forwarded"
|
|
24
|
+
>
|
|
25
|
+
<slot>
|
|
26
|
+
<i class="i-celeste-arrow-right-s-line" />
|
|
27
|
+
</slot>
|
|
28
|
+
</PaginationNext>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import {
|
|
6
|
+
PaginationPrev as PaginationPrevious,
|
|
7
|
+
type PaginationPrevProps as PrimitivePaginationPreviousProps,
|
|
8
|
+
useForwardProps,
|
|
9
|
+
} from 'radix-vue';
|
|
10
|
+
|
|
11
|
+
const props = defineProps<PaginationPreviousProps>();
|
|
12
|
+
|
|
13
|
+
const delegated = reactiveOmit(props, 'class');
|
|
14
|
+
const forwarded = useForwardProps(delegated);
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<script lang="ts">
|
|
18
|
+
export interface PaginationPreviousProps extends PrimitivePaginationPreviousProps {
|
|
19
|
+
class?: HTMLAttributes['class'];
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<PaginationPrevious
|
|
25
|
+
:class="clsx('celeste-pagination-element', 'celeste-pagination-previous', props.class)"
|
|
26
|
+
data-slot="pagination-previous"
|
|
27
|
+
v-bind="forwarded"
|
|
28
|
+
>
|
|
29
|
+
<slot>
|
|
30
|
+
<i class="i-celeste-arrow-left-s-line" />
|
|
31
|
+
</slot>
|
|
32
|
+
</PaginationPrevious>
|
|
33
|
+
</template>
|