Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
contents: read
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4

- name: Setup node env 🏗
uses: actions/setup-node@v4
Expand Down Expand Up @@ -62,12 +62,12 @@ jobs:
actions: write
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4

- name: Setup node env 🏗
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
actions: write
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4

- name: Setup node env 🏗
uses: actions/setup-node@v4
Expand Down
21 changes: 7 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
Expand All @@ -37,13 +37,13 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
Expand All @@ -55,17 +55,10 @@ jobs:
- name: Build 👨🏻‍💻
run: pnpm run build:prod

- name: publish to npm
run: |
{
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
echo "registry=https://registry.npmjs.org/"
echo "always-auth=true"
} >> ~/.npmrc
npm whoami
- name: Install npm 11
run: npm install -g npm@11

pnpm -r publish --access=public --no-git-checks
rm ~/.npmrc
- name: publish to npm
run: pnpm -r publish --access=public --no-git-checks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
22 changes: 11 additions & 11 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
"@rotki/ui-library": "workspace:*",
"pinia": "3.0.3",
"tailwindcss": "3.4.17",
"vue": "3.5.16",
"vue-i18n": "11.1.5",
"vue": "3.5.19",
"vue-i18n": "11.1.11",
"vue-router": "4.5.1"
},
"devDependencies": {
"@tsconfig/node22": "22.0.2",
"@types/node": "22.15.30",
"@vitejs/plugin-vue": "5.2.4",
"@types/node": "22.17.2",
"@vitejs/plugin-vue": "6.0.1",
"@vue/tsconfig": "0.7.0",
"autoprefixer": "10.4.21",
"cypress": "14.4.1",
"postcss": "8.5.4",
"start-server-and-test": "2.0.12",
"typescript": "5.8.3",
"unplugin-auto-import": "19.3.0",
"vite": "6.3.5",
"vue-tsc": "2.2.10"
"cypress": "15.0.0",
"postcss": "8.5.6",
"start-server-and-test": "2.0.13",
"typescript": "5.9.2",
"unplugin-auto-import": "20.0.0",
"vite": "7.1.3",
"vue-tsc": "3.0.6"
}
}
2 changes: 1 addition & 1 deletion example/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import { RouterView } from 'vue-router';
import AppFooter from '@/components/AppFooter.vue';
import AppFootNav from '@/components/AppFootNav.vue';
import AppNav from '@/components/AppNav.vue';
import AppSideNav from '@/components/AppSideNav.vue';
import { RouterView } from 'vue-router';

const navigation = ref([
{
Expand Down
8 changes: 7 additions & 1 deletion example/src/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ declare global {
const getActivePinia: typeof import('pinia')['getActivePinia']
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope']
const getCurrentWatcher: typeof import('vue')['getCurrentWatcher']
const h: typeof import('vue')['h']
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
const inject: typeof import('vue')['inject']
Expand All @@ -63,6 +64,7 @@ declare global {
const isReactive: typeof import('vue')['isReactive']
const isReadonly: typeof import('vue')['isReadonly']
const isRef: typeof import('vue')['isRef']
const isShallow: typeof import('vue')['isShallow']
const logicAnd: typeof import('@vueuse/math')['logicAnd']
const logicNot: typeof import('@vueuse/math')['logicNot']
const logicOr: typeof import('@vueuse/math')['logicOr']
Expand Down Expand Up @@ -298,6 +300,7 @@ declare global {
const useThrottleFn: typeof import('@vueuse/core')['useThrottleFn']
const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory']
const useTimeAgo: typeof import('@vueuse/core')['useTimeAgo']
const useTimeAgoIntl: typeof import('@vueuse/core')['useTimeAgoIntl']
const useTimeout: typeof import('@vueuse/core')['useTimeout']
const useTimeoutFn: typeof import('@vueuse/core')['useTimeoutFn']
const useTimeoutPoll: typeof import('@vueuse/core')['useTimeoutPoll']
Expand Down Expand Up @@ -342,7 +345,7 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
import('vue')
// @ts-ignore
export type { ButtonGroupData } from './utils/buttons'
Expand Down Expand Up @@ -394,6 +397,7 @@ declare module 'vue' {
readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
readonly getCurrentWatcher: UnwrapRef<typeof import('vue')['getCurrentWatcher']>
readonly h: UnwrapRef<typeof import('vue')['h']>
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
readonly inject: UnwrapRef<typeof import('vue')['inject']>
Expand All @@ -404,6 +408,7 @@ declare module 'vue' {
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
readonly isShallow: UnwrapRef<typeof import('vue')['isShallow']>
readonly logicAnd: UnwrapRef<typeof import('@vueuse/math')['logicAnd']>
readonly logicNot: UnwrapRef<typeof import('@vueuse/math')['logicNot']>
readonly logicOr: UnwrapRef<typeof import('@vueuse/math')['logicOr']>
Expand Down Expand Up @@ -639,6 +644,7 @@ declare module 'vue' {
readonly useThrottleFn: UnwrapRef<typeof import('@vueuse/core')['useThrottleFn']>
readonly useThrottledRefHistory: UnwrapRef<typeof import('@vueuse/core')['useThrottledRefHistory']>
readonly useTimeAgo: UnwrapRef<typeof import('@vueuse/core')['useTimeAgo']>
readonly useTimeAgoIntl: UnwrapRef<typeof import('@vueuse/core')['useTimeAgoIntl']>
readonly useTimeout: UnwrapRef<typeof import('@vueuse/core')['useTimeout']>
readonly useTimeoutFn: UnwrapRef<typeof import('@vueuse/core')['useTimeoutFn']>
readonly useTimeoutPoll: UnwrapRef<typeof import('@vueuse/core')['useTimeoutPoll']>
Expand Down
4 changes: 2 additions & 2 deletions example/src/components/buttons/ButtonGroups.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang='ts'>
import ComponentGroup from '@/components/ComponentGroup.vue';
import { type ButtonGroupData, generateButtonGroupData } from '@/utils/buttons';
import { RuiButton, RuiButtonGroup, RuiIcon } from '@rotki/ui-library';
import { objectOmit } from '@vueuse/shared';
import ComponentGroup from '@/components/ComponentGroup.vue';
import { type ButtonGroupData, generateButtonGroupData } from '@/utils/buttons';

const attributes: Partial<ButtonGroupData>[] = [
{},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang='ts'>
import type { ButtonGroupData } from '@/utils/buttons';
import ComponentGroup from '@/components/ComponentGroup.vue';
import { RuiButton, RuiButtonGroup, RuiIcon } from '@rotki/ui-library';
import { objectOmit } from '@vueuse/shared';
import ComponentGroup from '@/components/ComponentGroup.vue';

const attributes: Partial<ButtonGroupData>[] = [
{ activeColor: 'warning', required: true },
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/buttons/SingleButtons.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang='ts' setup>
import ComponentGroup from '@/components/ComponentGroup.vue';
import { type ButtonProps, contextColors, type ContextColorsType, RuiButton, RuiIcon, type RuiIcons } from '@rotki/ui-library';
import ComponentGroup from '@/components/ComponentGroup.vue';

interface ExtraProperties {
clicks: number;
Expand Down
4 changes: 2 additions & 2 deletions example/src/components/buttons/ToggleButtonGroups.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang='ts'>
import ComponentGroup from '@/components/ComponentGroup.vue';
import { type ButtonGroupData, generateButtonGroupData } from '@/utils/buttons';
import { RuiButton, RuiButtonGroup, RuiIcon } from '@rotki/ui-library';
import { objectOmit } from '@vueuse/shared';
import ComponentGroup from '@/components/ComponentGroup.vue';
import { type ButtonGroupData, generateButtonGroupData } from '@/utils/buttons';

const attributes: Partial<ButtonGroupData>[] = [
{ activeColor: 'warning' },
Expand Down
4 changes: 2 additions & 2 deletions example/src/components/tables/ApiTables.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script lang="ts" setup>
import type { ExtendedUser, NormalizedUser } from '@/data/tables';
import { columns, fixedColumns, sampleData } from '@/data/table-configs';
import { fakeFetch } from '@/utils/table-utils';
import {
type DataTableOptions,
type DataTableProps,
Expand All @@ -12,6 +10,8 @@ import {
} from '@rotki/ui-library/components';
import { objectOmit, useDebounceFn } from '@vueuse/shared';
import { ref } from 'vue';
import { columns, fixedColumns, sampleData } from '@/data/table-configs';
import { fakeFetch } from '@/utils/table-utils';

const props = defineProps<{
users: NormalizedUser[];
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/tables/BasicTables.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts" setup>
import type { ExtendedUser } from '@/data/tables';
import { columns, fixedColumns, fixedRows } from '@/data/table-configs';
import {
type DataTableProps,
RuiButton,
Expand All @@ -10,6 +9,7 @@ import {
} from '@rotki/ui-library/components';
import { objectOmit } from '@vueuse/shared';
import { ref } from 'vue';
import { columns, fixedColumns, fixedRows } from '@/data/table-configs';

const datatables = ref<{
title: string;
Expand Down
4 changes: 2 additions & 2 deletions example/src/components/tables/EmptyTables.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script lang="ts" setup>
import type { ExtendedUser } from '@/data/tables';
import { fixedColumns, fixedRows } from '@/data/table-configs';
import { removeRow } from '@/utils/table-utils';
import {
type DataTableProps,
RuiButton,
Expand All @@ -10,6 +8,8 @@ import {
} from '@rotki/ui-library/components';
import { objectOmit } from '@vueuse/shared';
import { ref } from 'vue';
import { fixedColumns, fixedRows } from '@/data/table-configs';
import { removeRow } from '@/utils/table-utils';

const emptyTables = ref<{
title: string;
Expand Down
4 changes: 2 additions & 2 deletions example/src/components/tables/ExpandableTables.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script lang="ts" setup>
import type { ExtendedUser } from '@/data/tables';
import { fixedColumns, fixedRows } from '@/data/table-configs';
import { isExpanded, toggleRow } from '@/utils/table-utils';
import {
type DataTableProps,
RuiButton,
Expand All @@ -12,6 +10,8 @@ import {
} from '@rotki/ui-library/components';
import { objectOmit } from '@vueuse/shared';
import { ref } from 'vue';
import { fixedColumns, fixedRows } from '@/data/table-configs';
import { isExpanded, toggleRow } from '@/utils/table-utils';

const expandableTables = ref<{
title: string;
Expand Down
8 changes: 4 additions & 4 deletions example/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import App from '@/App.vue';
import { router } from '@/router';
import { useDefaultsStore } from '@/stores/defaults';

import {
createRui,
createRuiI8nPlugin,
Expand Down Expand Up @@ -30,6 +26,10 @@ import {
} from '@rotki/ui-library';
import { createPinia, storeToRefs } from 'pinia';
import { createI18n } from 'vue-i18n';

import App from '@/App.vue';
import { router } from '@/router';
import { useDefaultsStore } from '@/stores/defaults';
import '@/assets/main.css';
import '@rotki/ui-library/style.css';
import '@fontsource/roboto/latin.css';
Expand Down
3 changes: 1 addition & 2 deletions example/src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable import/max-dependencies */
import ButtonView from '@/views/ButtonView.vue';
import { createRouter, createWebHistory } from 'vue-router';
import ButtonView from '@/views/ButtonView.vue';

export const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
Expand Down
6 changes: 3 additions & 3 deletions example/src/utils/table-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export async function fakeFetch(
api?: boolean,
data: ExtendedUser[] = [],
): Promise<{
data: ExtendedUser[];
total: number;
}> {
data: ExtendedUser[];
total: number;
}> {
await new Promise((resolve) => {
setTimeout(resolve, 1500);
});
Expand Down
2 changes: 1 addition & 1 deletion example/src/views/AccordionView.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import ComponentView from '@/components/ComponentView.vue';
import {
type AccordionsProps,
RuiAccordion,
RuiAccordions,
} from '@rotki/ui-library';
import ComponentView from '@/components/ComponentView.vue';

const accordions = ref<(AccordionsProps & { label: string })[]>([
{
Expand Down
2 changes: 1 addition & 1 deletion example/src/views/AlertView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import ComponentView from '@/components/ComponentView.vue';
import { type AlertProps, RuiAlert } from '@rotki/ui-library';
import ComponentView from '@/components/ComponentView.vue';

interface AlertData extends Omit<AlertProps, 'title' | 'description'> {
clicks?: number;
Expand Down
4 changes: 2 additions & 2 deletions example/src/views/AutoCompleteView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script lang="ts" setup>
import ComponentView from '@/components/ComponentView.vue';
import { createOptions, type SelectOption } from '@/data/options';
import {
type AutoCompleteProps,
RuiAutoComplete,
Expand All @@ -9,6 +7,8 @@ import {
} from '@rotki/ui-library/components';
import { objectOmit } from '@vueuse/shared';
import { ref } from 'vue';
import ComponentView from '@/components/ComponentView.vue';
import { createOptions, type SelectOption } from '@/data/options';

type RuiAutoCompleteProps<TValue = number, TItem = SelectOption> = AutoCompleteProps<TValue, TItem> & {
modelValue: TValue extends Array<infer U> ? U[] : TValue | undefined;
Expand Down
2 changes: 1 addition & 1 deletion example/src/views/BadgeView.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import ComponentView from '@/components/ComponentView.vue';
import {
type BadgeProps,
RuiBadge,
RuiButton,
} from '@rotki/ui-library/components';
import ComponentView from '@/components/ComponentView.vue';

const defaultModelValue = true;
const defaultText = '1';
Expand Down
Loading
Loading