rei-kit 2.3.0 → 2.3.1

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/README.md CHANGED
@@ -87,7 +87,7 @@ styles included and Vue left out. Minified, gzip -9:
87
87
 
88
88
  | Kit | JS | CSS | Total |
89
89
  | -------------------- | ---------: | ----------: | ----------: |
90
- | **rei-kit 2.3.0** | **3.1 KB** | **15.2 KB** | **18.4 KB** |
90
+ | **rei-kit 2.3.1** | **3.1 KB** | **15.2 KB** | **18.4 KB** |
91
91
  | element-plus 2.14.6 | 27.3 KB | 6.0 KB | 33.3 KB |
92
92
  | naive-ui 2.45.3 | 51.2 KB | — | 51.2 KB |
93
93
  | primevue 5.0.1 | 53.6 KB | — | 53.6 KB |
@@ -124,7 +124,7 @@ Each claim here is enforced by something that fails, not by a promise.
124
124
 
125
125
  ## Status
126
126
 
127
- **v2.3.0 — three consumers.**
127
+ **v2.3.1 — three consumers.**
128
128
 
129
129
  | | |
130
130
  | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -140,10 +140,72 @@ the package's promise written down.
140
140
 
141
141
  ## Install
142
142
 
143
+ rei-kit is the third thing you install, after a Vue app and Tailwind CSS.
144
+ From an empty folder:
145
+
146
+ **1. A Vue app** — skip this if you have one. `vue-ts` for TypeScript, `vue`
147
+ for JavaScript.
148
+
143
149
  ```sh
144
- pnpm add rei-kit
150
+ pnpm create vite my-app --template vue-ts
145
151
  ```
146
152
 
153
+ **2. Tailwind CSS 4**, with its Vite plugin:
154
+
155
+ ```sh
156
+ pnpm add -D tailwindcss @tailwindcss/vite
157
+ ```
158
+
159
+ ```ts
160
+ // vite.config.ts
161
+ import { defineConfig } from 'vite'
162
+ import vue from '@vitejs/plugin-vue'
163
+ import tailwindcss from '@tailwindcss/vite'
164
+
165
+ export default defineConfig({
166
+ plugins: [vue(), tailwindcss()],
167
+ })
168
+ ```
169
+
170
+ **3. rei-kit**, with the icon set a few components draw with:
171
+
172
+ ```sh
173
+ pnpm add rei-kit lucide-vue-next
174
+ ```
175
+
176
+ **4. The styles** — replace your stylesheet's contents with two lines (more
177
+ under [Wiring the styles](#wiring-the-styles)):
178
+
179
+ ```css
180
+ @import 'tailwindcss';
181
+ @import 'rei-kit/mobile.css'; /* or rei-kit/web.css for a site */
182
+ ```
183
+
184
+ **5. A component:**
185
+
186
+ ```vue
187
+ <script setup lang="ts">
188
+ import { BaseButton, useToast, ToastHost } from 'rei-kit'
189
+
190
+ const toast = useToast()
191
+ </script>
192
+
193
+ <template>
194
+ <BaseButton @click="toast.success('Saved')">Save</BaseButton>
195
+ <ToastHost close-label="Close" />
196
+ </template>
197
+ ```
198
+
199
+ **TypeScript or JavaScript.** The package ships its own declarations, so
200
+ TypeScript gets autocomplete and checking with no `@types` package, and every
201
+ prop's type shows in the editor. In JavaScript the same code works — drop
202
+ `lang="ts"`. [Every component has a copyable sample in both](https://ramazandogna.github.io/rei-kit/#api).
203
+
204
+ **Runs on** Vue 3.5+, Tailwind CSS 4, Vite 5.2+ (or any bundler Tailwind 4
205
+ supports), and the browsers Tailwind 4 targets: Safari 16.4+, Chrome 111+,
206
+ Firefox 128+. Server rendering and prerendering work — nothing touches the
207
+ browser on import.
208
+
147
209
  Everything the kit expects from the app is a peer dependency, so the app's copy
148
210
  is the only copy:
149
211
 
@@ -487,6 +549,12 @@ git push --follow-tags
487
549
  Then write the release into `PATCHNOTES.md` — what a consumer gains, and what
488
550
  they have to do to take it.
489
551
 
552
+ ## Author
553
+
554
+ Made by **Ramazan Doğan** — [github.com/ramazandogna](https://github.com/ramazandogna),
555
+ doganrmzn40 [ at ] gmail.com. Issues and ideas are welcome on
556
+ [GitHub](https://github.com/ramazandogna/rei-kit/issues).
557
+
490
558
  ## License
491
559
 
492
560
  MIT
package/dist/index.js CHANGED
@@ -2056,7 +2056,7 @@ function createI18nRuntime(options) {
2056
2056
  *
2057
2057
  * The fallback keeps `vitest` and `vite dev` honest, where no define runs.
2058
2058
  */
2059
- var VERSION = "2.3.0";
2059
+ var VERSION = "2.3.1";
2060
2060
  //#endregion
2061
2061
  export { AppError, BaseAlert_default as BaseAlert, BaseAvatar_default as BaseAvatar, BaseBadge_default as BaseBadge, BaseButton_default as BaseButton, BaseCard_default as BaseCard, BaseCheckbox_default as BaseCheckbox, BaseCombobox_default as BaseCombobox, BaseInput_default as BaseInput, BaseMenu_default as BaseMenu, BaseRadioGroup_default as BaseRadioGroup, BaseSelect_default as BaseSelect, BaseSheet_default as BaseSheet, BaseSlider_default as BaseSlider, BaseSpinner_default as BaseSpinner, BaseSwitch_default as BaseSwitch, BaseTable_default as BaseTable, BaseTextarea_default as BaseTextarea, EmptyState_default as EmptyState, ErrorBoundary_default as ErrorBoundary, FormField_default as FormField, GoogleButton_default as GoogleButton, LocaleLinks_default as LocaleLinks, MATERIALS, PALETTES, PageContainer_default as PageContainer, PageHeader_default as PageHeader, PriceCard_default as PriceCard, ProgressBar_default as ProgressBar, SHEET_ROOT_ID, SectionHeading_default as SectionHeading, SegmentedControl_default as SegmentedControl, SettingsGroup_default as SettingsGroup, SettingsRow_default as SettingsRow, SkeletonList_default as SkeletonList, StatCard_default as StatCard, TabBar_default as TabBar, ToastHost_default as ToastHost, ToneDot_default as ToneDot, VERSION, addDays, applyMaterial, applyPalette, applyTheme, createI18nRuntime, downloadJson, eachDayOfYear, ensureSheetRoot, formatDate, formatNumber, fromDateKey, isApplePortable, isInstalled, isMaterial, isPaletteName, isThemePreference, lastNDays, leadingBlanks, needsIosInstall, readStoredTheme, registerErrorMapper, relativeDayLabel, safeRedirect, setFormatLocale, setMaterialStorageKey, setPaletteStorageKey, setThemeStorageKey, startOfWeek, tapFeedback, toAppError, toDateKey, toRedirectPath, todayKey, useDebouncedCallback, useDragScroll, useMaterial, useMediaQuery, useOnline, usePalette, useTheme, useToast, useToday, useVisualViewport };
2062
2062
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rei-kit",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "One kit, every look. 59 accessible Vue 3 + Tailwind 4 components, four materials (quiet, glass, brutal, soft) and ten WCAG-checked palettes, each switched with one attribute.",
5
5
  "keywords": [
6
6
  "vue",
@@ -88,8 +88,8 @@
88
88
  "dev": "vite build --watch",
89
89
  "build": "run-s type-check build-only",
90
90
  "build-only": "vite build && node scripts/verify-bundle.mjs",
91
- "showcase": "node scripts/extract-props.mjs && vite --config vite.showcase.config.ts",
92
- "showcase:build": "node scripts/extract-props.mjs && vite build --config vite.showcase.config.ts",
91
+ "showcase": "node scripts/extract-props.mjs && node scripts/extract-examples.mjs && vite --config vite.showcase.config.ts",
92
+ "showcase:build": "node scripts/extract-props.mjs && node scripts/extract-examples.mjs && vite build --config vite.showcase.config.ts",
93
93
  "type-check": "vue-tsc --build",
94
94
  "test:unit": "vitest",
95
95
  "test:ci": "vitest run",