npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rimltempest/riml-ds-vue

v0.3.1

Published

riml-ds の Vue 3.5 ラッパーとプラグイン。CEM とマークアップ契約から生成する

Readme

@rimltempest/riml-ds-vue

riml-ds の Vue 3.5 ラッパーとプラグイン。手で書かない:custom-elements.json(CEM)と マークアップ契約(ADR-0012)から bun run gen が生成する。

導入

bun add @rimltempest/riml-ds-vue @rimltempest/riml-ds-elements \
        @rimltempest/riml-ds-tokens @rimltempest/riml-ds-css
// main.ts
import { rdDesignSystem } from '@rimltempest/riml-ds-vue'

createApp(App).use(rdDesignSystem).mount('#app')

<rd-*> をテンプレートに直接書くなら、Vue のコンパイラに custom element だと教える:

// vite.config.ts
vue({ template: { compilerOptions: { isCustomElement: (tag) => tag.startsWith('rd-') } } })

このパッケージは define を import しない。 強化が要るページで利用側が読む:

import '@rimltempest/riml-ds-elements/dialog/define'

使い方

<template>
  <form method="post" action="/save">
    <RdTextField label="メール" name="email" type="email" required v-model="email" />
    <RdButton type="submit">保存</RdButton>
  </form>
</template>
  • 部品は SFC ではなく defineComponent + h()。契約の木をそのまま描くので、 SSR でも JS 無しでも同じ HTML が出る。
  • ティア A のフォーム部品は v-model(modelValue / update:modelValue)を受ける。
  • <rd-text-field v-model="email"> のように生の要素に付けた v-model は、Vue が value プロパティ + input イベントに束ねる(isCustomElement の設定が要る)。
  • id を渡さなければ name を使う。同名フィールドが 2 つ以上あるページでは id を明示する。
  • 非文字列のプロパティは .prop 修飾子(:items.prop="list")。

/experimental — @status experimental の部品

プラグイン(rdDesignSystem)が app.component() するのは stable な部品だけ。 rd-select / rd-checkbox / rd-disclosure は @rimltempest/riml-ds-vue/experimental の rdExperimentalComponents を利用側が明示的に登録する(semver の対象外。ADR-0009)。

import { rdExperimentalComponents } from '@rimltempest/riml-ds-vue/experimental'
for (const [name, component] of Object.entries(rdExperimentalComponents))
  app.component(name, component)

GlobalComponents の型も登録される部品だけ。<rd-*> を直接書くための IntrinsicElementAttributes は全部品を持つ。 v-model は <input> / <select> / <textarea> を包む部品で効く。

型

@rimltempest/riml-ds-vue を import すると GlobalComponents(<RdButton> の補完)と IntrinsicElementAttributes(<rd-button variant="…"> の補完)が広がる。 型だけ欲しいときは @rimltempest/riml-ds-vue/types。

保守

部品を足す = contract.ts を書く。bun run gen で部品・型・プラグイン登録が揃う。 プラグインは rdComponents(生成物)を回すだけなので手を入れる必要が無い。