tembro 2.1.10 → 2.1.12
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/components/calendar/calendar.cjs +1 -1
- package/dist/components/calendar/calendar.js +141 -142
- package/dist/components/ui/radio-group/index.cjs +1 -1
- package/dist/components/ui/radio-group/index.js +0 -1
- package/dist/showcase/package-meta.cjs +1 -1
- package/dist/showcase/package-meta.d.ts +3 -3
- package/dist/showcase/package-meta.js +1 -1
- package/dist/showcase/premium/accordion/mock.cjs +1 -1
- package/dist/showcase/premium/accordion/mock.js +1 -1
- package/dist/showcase/premium/avatar/mock.cjs +1 -1
- package/dist/showcase/premium/avatar/mock.js +1 -1
- package/dist/showcase/premium/button/mock.cjs +1 -1
- package/dist/showcase/premium/button/mock.js +1 -1
- package/dist/showcase/premium/calendar-scheduler/mock.cjs +1 -1
- package/dist/showcase/premium/calendar-scheduler/mock.js +1 -1
- package/dist/showcase/premium/carousel/mock.cjs +1 -1
- package/dist/showcase/premium/carousel/mock.js +1 -1
- package/dist/showcase/premium/code-block/mock.cjs +1 -1
- package/dist/showcase/premium/code-block/mock.js +1 -1
- package/dist/showcase/premium/command-bar/mock.cjs +1 -1
- package/dist/showcase/premium/command-bar/mock.js +1 -1
- package/dist/showcase/premium/confirm-dialog/mock.cjs +1 -1
- package/dist/showcase/premium/confirm-dialog/mock.js +1 -1
- package/dist/showcase/premium/copy-button/mock.cjs +1 -1
- package/dist/showcase/premium/copy-button/mock.js +1 -1
- package/dist/showcase/premium/copy-field/mock.cjs +1 -1
- package/dist/showcase/premium/copy-field/mock.js +1 -1
- package/dist/showcase/premium/data-state/mock.cjs +1 -1
- package/dist/showcase/premium/data-state/mock.js +1 -1
- package/dist/showcase/premium/date-picker/mock.cjs +1 -1
- package/dist/showcase/premium/date-picker/mock.js +1 -1
- package/dist/showcase/premium/date-range-picker/mock.cjs +1 -1
- package/dist/showcase/premium/date-range-picker/mock.js +1 -1
- package/dist/showcase/premium/descriptions/mock.cjs +1 -1
- package/dist/showcase/premium/descriptions/mock.js +1 -1
- package/dist/showcase/premium/dialog/mock.cjs +1 -1
- package/dist/showcase/premium/dialog/mock.js +1 -1
- package/dist/showcase/premium/divider/mock.cjs +1 -1
- package/dist/showcase/premium/divider/mock.js +1 -1
- package/dist/showcase/premium/dual-list-picker/mock.cjs +1 -1
- package/dist/showcase/premium/dual-list-picker/mock.js +1 -1
- package/dist/showcase/premium/file-upload/mock.cjs +1 -1
- package/dist/showcase/premium/file-upload/mock.js +1 -1
- package/dist/showcase/premium/image-upload/mock.cjs +1 -1
- package/dist/showcase/premium/image-upload/mock.js +1 -1
- package/dist/showcase/premium/json-input/mock.cjs +1 -1
- package/dist/showcase/premium/json-input/mock.js +1 -1
- package/dist/showcase/premium/kanban-board/mock.cjs +1 -1
- package/dist/showcase/premium/kanban-board/mock.js +1 -1
- package/dist/showcase/premium/list/mock.cjs +1 -1
- package/dist/showcase/premium/list/mock.js +1 -1
- package/dist/showcase/premium/menubar/mock.cjs +1 -1
- package/dist/showcase/premium/menubar/mock.js +1 -1
- package/dist/showcase/premium/modal-shell/mock.cjs +1 -1
- package/dist/showcase/premium/modal-shell/mock.js +1 -1
- package/dist/showcase/premium/navigation-menu/mock.cjs +1 -1
- package/dist/showcase/premium/navigation-menu/mock.js +1 -1
- package/dist/showcase/premium/property-grid/mock.cjs +1 -1
- package/dist/showcase/premium/property-grid/mock.js +1 -1
- package/dist/showcase/premium/qr-code/mock.cjs +1 -1
- package/dist/showcase/premium/qr-code/mock.js +1 -1
- package/dist/showcase/premium/radio-group/mock.cjs +1 -1
- package/dist/showcase/premium/radio-group/mock.js +1 -1
- package/dist/showcase/premium/resizable-panel/mock.cjs +1 -1
- package/dist/showcase/premium/resizable-panel/mock.js +1 -1
- package/dist/showcase/premium/rich-text-editor/mock.cjs +1 -1
- package/dist/showcase/premium/rich-text-editor/mock.js +1 -1
- package/dist/showcase/premium/saved-filter-select/mock.cjs +1 -1
- package/dist/showcase/premium/saved-filter-select/mock.js +1 -1
- package/dist/showcase/premium/section/mock.cjs +1 -1
- package/dist/showcase/premium/section/mock.js +1 -1
- package/dist/showcase/premium/segmented-control/mock.cjs +1 -1
- package/dist/showcase/premium/segmented-control/mock.js +1 -1
- package/dist/showcase/premium/sheet-shell/mock.cjs +1 -1
- package/dist/showcase/premium/sheet-shell/mock.js +1 -1
- package/dist/showcase/premium/skeleton/mock.cjs +1 -1
- package/dist/showcase/premium/skeleton/mock.js +1 -1
- package/dist/showcase/premium/spinner/mock.cjs +1 -1
- package/dist/showcase/premium/spinner/mock.js +1 -1
- package/dist/showcase/premium/statistic/mock.cjs +1 -1
- package/dist/showcase/premium/statistic/mock.js +1 -1
- package/dist/showcase/premium/sticky-footer-bar/mock.cjs +1 -1
- package/dist/showcase/premium/sticky-footer-bar/mock.js +1 -1
- package/dist/showcase/premium/tag/mock.cjs +1 -1
- package/dist/showcase/premium/tag/mock.js +1 -1
- package/dist/showcase/premium/time-picker/mock.cjs +1 -1
- package/dist/showcase/premium/time-picker/mock.js +1 -1
- package/dist/showcase/premium/tour/mock.cjs +1 -1
- package/dist/showcase/premium/tour/mock.js +1 -1
- package/dist/showcase/premium/tree-view/mock.cjs +1 -1
- package/dist/showcase/premium/tree-view/mock.js +1 -1
- package/dist/showcase/premium/typography/mock.cjs +1 -1
- package/dist/showcase/premium/typography/mock.js +1 -1
- package/dist/showcase/site-data.cjs +1 -1
- package/dist/showcase/site-data.js +1 -1
- package/dist/showcase/tembro-registry.json.cjs +1 -1
- package/dist/showcase/tembro-registry.json.js +1 -1
- package/package.json +6 -1
- package/packages/cli/dist/index.cjs +1 -1
- package/packages/cli/vendor/src/components/calendar/calendar.tsx +0 -1
- package/packages/cli/vendor/src/components/ui/radio-group/index.tsx +0 -1
- package/packages/cli/vendor/src/showcase/package-meta.ts +2 -2
- package/packages/cli/vendor/src/showcase/premium/accordion/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/avatar/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/button/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/calendar-scheduler/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/carousel/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/code-block/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/command-bar/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/confirm-dialog/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/copy-button/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/copy-field/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/data-state/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/date-picker/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/date-range-picker/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/descriptions/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/dialog/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/divider/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/dual-list-picker/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/file-upload/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/image-upload/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/json-input/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/kanban-board/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/list/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/menubar/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/modal-shell/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/navigation-menu/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/property-grid/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/qr-code/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/radio-group/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/resizable-panel/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/rich-text-editor/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/saved-filter-select/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/section/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/segmented-control/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/sheet-shell/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/skeleton/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/spinner/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/statistic/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/sticky-footer-bar/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/tag/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/time-picker/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/tour/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/tree-view/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/typography/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/tembro-registry.json +1 -1
- package/registry.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tembro",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12",
|
|
4
4
|
"description": "Reusable React UI kit with dashboard-ready components, CLI registry helpers, and TypeScript support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -103,6 +103,11 @@
|
|
|
103
103
|
"import": "./dist/showcase/*.js",
|
|
104
104
|
"require": "./dist/showcase/*.cjs"
|
|
105
105
|
},
|
|
106
|
+
"./public-component-surface": {
|
|
107
|
+
"types": "./dist/public-component-surface.d.ts",
|
|
108
|
+
"import": "./dist/public-component-surface.js",
|
|
109
|
+
"require": "./dist/public-component-surface.cjs"
|
|
110
|
+
},
|
|
106
111
|
"./registry.json": "./registry.json",
|
|
107
112
|
"./package.json": "./package.json"
|
|
108
113
|
},
|
|
@@ -1180,4 +1180,4 @@ ${t}`),e.forEach(r=>{let i=X[r],n=La(r),o=qa(r,i.category),s=i.registryDependenc
|
|
|
1180
1180
|
${n}`),o.sort().forEach(s=>{let a=X[s],c=La(s),u=qa(s,a.category),l=a.registryDependencies?.length?` -> ${a.registryDependencies.join(", ")}`:"";console.log(` ${s} [${c}/${u}]${l}`);});console.log(`
|
|
1181
1181
|
Status:`),console.log(" stable = safe public API"),console.log(" preview = usable but API may change"),console.log(" experimental = not ready for stable app contracts"),console.log(" internal = helper metadata"),console.log(`
|
|
1182
1182
|
Distribution:`),console.log(" foundation = small runtime-safe primitives, hooks, and helpers"),console.log(" source-copy = copy into app source with init/add and edit locally"),console.log(" system = larger product surfaces, kits, and patterns; prefer source-copy only"),console.log(`
|
|
1183
|
-
Usage:`),console.log(` ${$e("add button input data-table")}`),console.log(` ${$e("add form --overwrite")}`);}var Ua=Me(rt());async function Ly(t){let e=process.cwd(),r=R__default.default.join(e,"tembro.json"),i=Ua.default.existsSync(r)?await Ua.default.readJson(r):{},n=t??i.cssPath??i.globalCssPath??"src/index.css",o=await An({cwd:e,cssPath:n});O.success(`Tembro theme CSS yangilandi: ${o}`);}var Je=Me(rt());var qy={minimal:[{source:"src/lib/utils.ts",target:"{utils}"},{source:"src/components/ui/button",target:"{ui}/button"},{source:"src/components/ui/input",target:"{ui}/input"},{source:"src/components/ui/card",target:"{ui}/card"},{source:"src/components/ui/badge",target:"{ui}/badge"}],dashboard:[{source:"src/lib/utils.ts",target:"{utils}"},{source:"src/components/ui/button",target:"{ui}/button"},{source:"src/components/ui/input",target:"{ui}/input"},{source:"src/components/ui/card",target:"{ui}/card"},{source:"src/components/ui/badge",target:"{ui}/badge"},{source:"src/components/ui/dropdown-menu.tsx",target:"{ui}/dropdown-menu.tsx"},{source:"src/components/ui/skeleton.tsx",target:"{ui}/skeleton.tsx"},{source:"src/components/ui/tabs.tsx",target:"{ui}/tabs.tsx"},{source:"src/components/feedback/page-state.tsx",target:"{components}/feedback/page-state.tsx"},{source:"src/components/filters/filter-bar.tsx",target:"{components}/filters/filter-bar.tsx"},{source:"src/components/display/property-grid.tsx",target:"{components}/display/property-grid.tsx"},{source:"src/components/display/smart-card.tsx",target:"{components}/display/smart-card.tsx"},{source:"src/components/data-table/data-table.tsx",target:"{components}/data-table/data-table.tsx"}]};function dD(t,e="@"){return e==="@"?t:t.replaceAll("@/",`${e}/`)}function hD(t,e){let r=e.paths?.components??"src/components",i=e.paths?.ui??"src/components/ui",n=e.utilsPath??"src/lib/utils.ts";return t.replaceAll("{components}",r).replaceAll("{ui}",i).replaceAll("{utils}",n)}async function By(t,e,r,i){if((await Je.default.stat(t)).isDirectory()){let o=await Je.default.readdir(t,{withFileTypes:true});for(let s of o)await By(R__default.default.join(t,s.name),R__default.default.join(e,s.name),r,i);return}if(i.dryRun){O.info(`[dry-run] ${t} -> ${e}`);return}if(Je.default.existsSync(e)&&!i.overwrite){O.warn(`${e} allaqachon mavjud.`);return}await Je.default.ensureDir(R__default.default.dirname(e)),await Je.default.writeFile(e,dD(await Je.default.readFile(t,"utf8"),r)),O.success(`${e} qo\u2018shildi.`);}async function Uy(t,e={}){let r=qy[t];r||(O.error(`Preset topilmadi: ${t}`),process.exit(1));let i=process.cwd(),n=R__default.default.join(i,"tembro.json");Je.default.existsSync(n)||(O.error("tembro.json topilmadi. Avval init qiling."),process.exit(1));let o=await Je.default.readJson(n),s=In((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));for(let a of r){let c=R__default.default.join(s,a.source),u=R__default.default.join(i,hD(a.target,o));await By(c,u,o.alias,e);}}var Ot=new Tt;Ot.name("tembro").description("Tembro source-copy CLI").version("2.1.
|
|
1183
|
+
Usage:`),console.log(` ${$e("add button input data-table")}`),console.log(` ${$e("add form --overwrite")}`);}var Ua=Me(rt());async function Ly(t){let e=process.cwd(),r=R__default.default.join(e,"tembro.json"),i=Ua.default.existsSync(r)?await Ua.default.readJson(r):{},n=t??i.cssPath??i.globalCssPath??"src/index.css",o=await An({cwd:e,cssPath:n});O.success(`Tembro theme CSS yangilandi: ${o}`);}var Je=Me(rt());var qy={minimal:[{source:"src/lib/utils.ts",target:"{utils}"},{source:"src/components/ui/button",target:"{ui}/button"},{source:"src/components/ui/input",target:"{ui}/input"},{source:"src/components/ui/card",target:"{ui}/card"},{source:"src/components/ui/badge",target:"{ui}/badge"}],dashboard:[{source:"src/lib/utils.ts",target:"{utils}"},{source:"src/components/ui/button",target:"{ui}/button"},{source:"src/components/ui/input",target:"{ui}/input"},{source:"src/components/ui/card",target:"{ui}/card"},{source:"src/components/ui/badge",target:"{ui}/badge"},{source:"src/components/ui/dropdown-menu.tsx",target:"{ui}/dropdown-menu.tsx"},{source:"src/components/ui/skeleton.tsx",target:"{ui}/skeleton.tsx"},{source:"src/components/ui/tabs.tsx",target:"{ui}/tabs.tsx"},{source:"src/components/feedback/page-state.tsx",target:"{components}/feedback/page-state.tsx"},{source:"src/components/filters/filter-bar.tsx",target:"{components}/filters/filter-bar.tsx"},{source:"src/components/display/property-grid.tsx",target:"{components}/display/property-grid.tsx"},{source:"src/components/display/smart-card.tsx",target:"{components}/display/smart-card.tsx"},{source:"src/components/data-table/data-table.tsx",target:"{components}/data-table/data-table.tsx"}]};function dD(t,e="@"){return e==="@"?t:t.replaceAll("@/",`${e}/`)}function hD(t,e){let r=e.paths?.components??"src/components",i=e.paths?.ui??"src/components/ui",n=e.utilsPath??"src/lib/utils.ts";return t.replaceAll("{components}",r).replaceAll("{ui}",i).replaceAll("{utils}",n)}async function By(t,e,r,i){if((await Je.default.stat(t)).isDirectory()){let o=await Je.default.readdir(t,{withFileTypes:true});for(let s of o)await By(R__default.default.join(t,s.name),R__default.default.join(e,s.name),r,i);return}if(i.dryRun){O.info(`[dry-run] ${t} -> ${e}`);return}if(Je.default.existsSync(e)&&!i.overwrite){O.warn(`${e} allaqachon mavjud.`);return}await Je.default.ensureDir(R__default.default.dirname(e)),await Je.default.writeFile(e,dD(await Je.default.readFile(t,"utf8"),r)),O.success(`${e} qo\u2018shildi.`);}async function Uy(t,e={}){let r=qy[t];r||(O.error(`Preset topilmadi: ${t}`),process.exit(1));let i=process.cwd(),n=R__default.default.join(i,"tembro.json");Je.default.existsSync(n)||(O.error("tembro.json topilmadi. Avval init qiling."),process.exit(1));let o=await Je.default.readJson(n),s=In((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));for(let a of r){let c=R__default.default.join(s,a.source),u=R__default.default.join(i,hD(a.target,o));await By(c,u,o.alias,e);}}var Ot=new Tt;Ot.name("tembro").description("Tembro source-copy CLI").version("2.1.12");Ot.command("init").description("Initialize local Tembro source files in your project").option("--template <template>","Project defaults: vite or next","vite").option("--skip-install","Do not install base dependencies").option("-y, --defaults","Use template defaults without interactive prompts").action(Py);Ot.command("preset").description("Add a source-copy preset to your project").argument("<name>","preset name: minimal or dashboard").option("-o, --overwrite","overwrite existing files").option("--dry-run","show files without writing").option("--skip-install","do not install package dependencies").action(Uy);Ot.command("list").description("List available registry components").action(jy);Ot.command("add").description("Copy component source files into your project").argument("[components...]","components to add").option("-o, --overwrite","overwrite existing files").option("--dry-run","show files without writing").option("--skip-install","do not install package dependencies").action($y);Ot.command("theme").description("Write or update Tembro theme CSS in your global CSS file").argument("[cssPath]","global CSS path, default from tembro.json or src/index.css").action(Ly);Ot.parse();
|
|
@@ -466,7 +466,6 @@ function Calendar({
|
|
|
466
466
|
disabled={disabled}
|
|
467
467
|
aria-label={disabledLabel ?? labels?.selectDate?.(dateKey) ?? dateKey}
|
|
468
468
|
aria-current={dateKey === todayKey ? "date" : undefined}
|
|
469
|
-
aria-selected={selected || inRange || inPreviewRange || undefined}
|
|
470
469
|
tabIndex={dateKey === tabbableDateKey ? 0 : -1}
|
|
471
470
|
title={disabledLabel}
|
|
472
471
|
data-selected={selected || undefined}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const PACKAGE_LATEST_VERSION = "2.
|
|
2
|
-
export const PACKAGE_LATEST_RELEASE_DATE = "July
|
|
1
|
+
export const PACKAGE_LATEST_VERSION = "2.1.12"
|
|
2
|
+
export const PACKAGE_LATEST_RELEASE_DATE = "July 9, 2026"
|
|
3
3
|
export const PACKAGE_DEPENDENCY_RANGE = `^${PACKAGE_LATEST_VERSION}`
|
|
4
4
|
|
|
@@ -3,7 +3,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
3
3
|
export const buttonMock: ComponentDemoMock = {
|
|
4
4
|
code: `import * as React from "react"
|
|
5
5
|
import { ArrowRightIcon, DownloadIcon } from "lucide-react"
|
|
6
|
-
import { Button, buttonVariants } from "
|
|
6
|
+
import { Button, buttonVariants } from "tembro"
|
|
7
7
|
|
|
8
8
|
export function BasicExamples() {
|
|
9
9
|
return (
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const confirmDialogMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { Button, ConfirmDialog } from "
|
|
5
|
+
import { Button, ConfirmDialog } from "tembro"
|
|
6
6
|
|
|
7
7
|
export function Example() {
|
|
8
8
|
const [open, setOpen] = useState(false)
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const datePickerMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { DatePicker } from "
|
|
5
|
+
import { DatePicker } from "tembro"
|
|
6
6
|
|
|
7
7
|
export function Example() {
|
|
8
8
|
const [value, setValue] = useState("2026-06-19")
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const dateRangePickerMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { DateRangePicker } from "
|
|
5
|
+
import { DateRangePicker } from "tembro"
|
|
6
6
|
|
|
7
7
|
export function Example() {
|
|
8
8
|
const [value, setValue] = useState({ from: "2026-06-01", to: "2026-06-07" })
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const dialogMock: ComponentDemoMock = {
|
|
4
4
|
code: `import * as React from "react"
|
|
5
|
-
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "
|
|
5
|
+
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "tembro"
|
|
6
6
|
|
|
7
7
|
export function Example() {
|
|
8
8
|
const [open, setOpen] = React.useState(false)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const dualListPickerMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { DualListPicker } from "
|
|
4
|
+
code: `import { DualListPicker } from "tembro"
|
|
5
5
|
|
|
6
6
|
const items = [
|
|
7
7
|
{ label: "Analytics", value: "analytics" },
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const fileUploadMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { FileUpload } from "
|
|
5
|
+
import { FileUpload } from "tembro"
|
|
6
6
|
|
|
7
7
|
export function Example() {
|
|
8
8
|
const [files, setFiles] = useState<File[]>([])
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const imageUploadMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { ImageUpload } from "
|
|
5
|
+
import { ImageUpload } from "tembro"
|
|
6
6
|
|
|
7
7
|
export function Example() {
|
|
8
8
|
const [files, setFiles] = useState<File[]>([])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const jsonInputMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { JsonInput } from "
|
|
4
|
+
code: `import { JsonInput } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return <JsonInput value='{"name":"tembro"}' />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const menubarMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarTrigger } from "
|
|
4
|
+
code: `import { Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarTrigger } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return (
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const modalShellMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { Badge, Button, Input, ModalShell } from "
|
|
5
|
+
import { Badge, Button, Input, ModalShell } from "tembro"
|
|
6
6
|
|
|
7
7
|
export function Example() {
|
|
8
8
|
const [open, setOpen] = useState(false)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const navigationMenuMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { NavigationMenu, NavigationMenuItem, NavigationMenuLink, NavigationMenuList } from "
|
|
4
|
+
code: `import { NavigationMenu, NavigationMenuItem, NavigationMenuLink, NavigationMenuList } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const qrCodeMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { QRCode } from "
|
|
4
|
+
code: `import { QRCode } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return <QRCode value="https://azamat-ui.vercel.app" alt="Azamat UI" />
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const radioGroupMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { RadioGroup } from "
|
|
5
|
+
import { RadioGroup } from "tembro"
|
|
6
6
|
|
|
7
7
|
const planOptions = [
|
|
8
8
|
{ value: "starter", label: "Starter", description: "Good for single workspace setup." },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const resizablePanelMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "
|
|
4
|
+
code: `import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const richTextEditorMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { RichTextEditor } from "
|
|
4
|
+
code: `import { RichTextEditor } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
const [value, setValue] = useState("<p>Start writing...</p>")
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const savedFilterSelectMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { SavedFilterSelect } from "
|
|
5
|
+
import { SavedFilterSelect } from "tembro"
|
|
6
6
|
|
|
7
7
|
const filters = [
|
|
8
8
|
{ value: "billing", label: "Billing", description: "Invoices and payment status" },
|
|
@@ -3,7 +3,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
3
3
|
export const segmentedControlMock: ComponentDemoMock = {
|
|
4
4
|
code: `import * as React from "react"
|
|
5
5
|
import { LayoutGridIcon, Rows3Icon, Table2Icon } from "lucide-react"
|
|
6
|
-
import { SegmentedControl } from "
|
|
6
|
+
import { SegmentedControl } from "tembro"
|
|
7
7
|
|
|
8
8
|
const options = [
|
|
9
9
|
{ value: "board", label: "Board", icon: <LayoutGridIcon className="size-4" /> },
|
|
@@ -2,7 +2,7 @@ import type { ComponentDemoMock } from "../types"
|
|
|
2
2
|
|
|
3
3
|
export const sheetShellMock: ComponentDemoMock = {
|
|
4
4
|
code: `import { useState } from "react"
|
|
5
|
-
import { Button, SheetShell } from "
|
|
5
|
+
import { Button, SheetShell } from "tembro"
|
|
6
6
|
|
|
7
7
|
export function Example() {
|
|
8
8
|
const [openRight, setOpenRight] = useState(false)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const skeletonMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { Skeleton, SkeletonCard, SkeletonText } from "
|
|
4
|
+
code: `import { Skeleton, SkeletonCard, SkeletonText } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const statisticMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { Statistic, StatisticCard, StatisticGrid } from "
|
|
4
|
+
code: `import { Statistic, StatisticCard, StatisticGrid } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const stickyFooterBarMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { Button, StickyFooterBar } from "
|
|
4
|
+
code: `import { Button, StickyFooterBar } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const timePickerMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { DateTimePicker, TimePicker, TimeRangePicker } from "
|
|
4
|
+
code: `import { DateTimePicker, TimePicker, TimeRangePicker } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentDemoMock } from "../types"
|
|
2
2
|
|
|
3
3
|
export const typographyMock: ComponentDemoMock = {
|
|
4
|
-
code: `import { Blockquote, Heading, Mark, Text } from "
|
|
4
|
+
code: `import { Blockquote, Heading, Mark, Text } from "tembro"
|
|
5
5
|
|
|
6
6
|
export function Example() {
|
|
7
7
|
return (
|