19381938 "description" : " Additional CSS classes merged via `cn()`."
19391939 }
19401940 },
1941- "examples" : [
1942- " <CodeBlock\n lang=\" tsx\"\n code={`const greeting = \" Hello, World!\" ;\n console.log(greeting);`}\n />" ,
1943- " <CodeBlock\n lang=\" tsx\"\n code={`interface User {\n id: string;\n name: string;\n email: string;\n }\n\n const user: User = {\n id: \" 1\" ,\n name: \" John Doe\" ,\n email: \" john@example.com\"\n };`}\n />" ,
1944- " <CodeBlock\n lang=\" bash\"\n code={`npm install @cloudflare/kumo\n pnpm add @cloudflare/kumo`}\n />" ,
1945- " <CodeBlock\n lang=\" jsonc\"\n code={`{\n \" name\" : \" kumo\" ,\n \" version\" : \" 1.0.0\" ,\n \" dependencies\" : {\n \" react\" : \" ^19.0.0\"\n }\n }`}\n />" ,
1946- " <Code\n lang=\" bash\"\n code=\" export API_KEY={{apiKey}}\"\n values={{\n apiKey: { value: \" sk_live_123\" , highlight: true },\n }}\n />"
1947- ],
1941+ "examples" : [],
19481942 "colors" : [
19491943 " bg-kumo-base" ,
19501944 " border-kumo-fill" ,
33543348 "examples" : [
33553349 " <Loader />" ,
33563350 " <div className=\" flex items-center gap-4\" >\n <Loader size=\" sm\" />\n <Loader size=\" base\" />\n <Loader size=\" lg\" />\n </div>" ,
3357- " <Loader size={24} />"
3351+ " <Loader size={24} />" ,
3352+ " <Loader className=\" text-kumo-subtle\" />"
33583353 ],
33593354 "colors" : []
33603355 },
33873382 }
33883383 },
33893384 "examples" : [
3390- " <MenuBar\n isActive=\" bold \"\ n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \" bold\" ,\n tooltip: \" Bold\" ,\n onClick: () => {} ,\n },\n {\n icon: <TextItalicIcon />,\n id: \" italic\" ,\n tooltip: \" Italic\" ,\n onClick: () => {} ,\n },\n ]}\n />" ,
3391- " <MenuBar\n isActive=\" bold \"\ n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \" bold\" ,\n tooltip: \" Bold\" ,\n onClick: () => {} ,\n },\n {\n icon: <TextItalicIcon />,\n id: \" italic\" ,\n tooltip: \" Italic\" ,\n onClick: () => {} ,\n },\n ]}\n />" ,
3392- " <MenuBar\n isActive=\"\"\ n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \" bold\" ,\n tooltip: \" Bold\" ,\n onClick: () => {} ,\n },\n {\n icon: <TextItalicIcon />,\n id: \" italic\" ,\n tooltip: \" Italic\" ,\n onClick: () => {} ,\n },\n ]}\n />"
3385+ " <MenuBar\n isActive={active} \ n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \" bold\" ,\n tooltip: \" Bold\" ,\n onClick: () => setActive(active === \" bold \" ? undefined : \" bold \" ) ,\n },\n {\n icon: <TextItalicIcon />,\n id: \" italic\" ,\n tooltip: \" Italic\" ,\n onClick: () => setActive(active === \" italic \" ? undefined : \" italic \" ) ,\n },\n ]}\n />" ,
3386+ " <MenuBar\n isActive={active} \ n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \" bold\" ,\n tooltip: \" Bold\" ,\n onClick: () => setActive(active === \" bold \" ? undefined : \" bold \" ) ,\n },\n {\n icon: <TextItalicIcon />,\n id: \" italic\" ,\n tooltip: \" Italic\" ,\n onClick: () => setActive(active === \" italic \" ? undefined : \" italic \" ) ,\n },\n ]}\n />" ,
3387+ " <MenuBar\n isActive={active} \ n optionIds\n options={[\n {\n icon: <TextBolderIcon />,\n id: \" bold\" ,\n tooltip: \" Bold\" ,\n onClick: () => setActive(active === \" bold \" ? undefined : \" bold \" ) ,\n },\n {\n icon: <TextItalicIcon />,\n id: \" italic\" ,\n tooltip: \" Italic\" ,\n onClick: () => setActive(active === \" italic \" ? undefined : \" italic \" ) ,\n },\n ]}\n />"
33933388 ],
33943389 "colors" : [
33953390 " bg-kumo-base" ,
34613456 " <Meter label=\" Progress\" value={40} showValue={false} />" ,
34623457 " <Meter label=\" Quota reached\" value={100} />" ,
34633458 " <Meter label=\" Memory usage\" value={15} />" ,
3464- " <Meter\n label=\" Upload progress\"\n value={80}\n indicatorClassName=\" from-green-500 via-green-500 to-green-500 \"\n />"
3459+ " <Meter\n label=\" Upload progress\"\n value={80}\n indicatorClassName=\" from-kumo-success via-kumo-success to-kumo-success \"\n />"
34653460 ],
34663461 "colors" : [
34673462 " bg-kumo-fill" ,
38053800 " text-kumo-danger" ,
38063801 " text-kumo-default" ,
38073802 " text-kumo-subtle"
3808- ]
3803+ ],
3804+ "subComponents" : {
3805+ "Item" : {
3806+ "name" : " Item" ,
3807+ "description" : " Item sub-component" ,
3808+ "props" : {}
3809+ },
3810+ "Group" : {
3811+ "name" : " Group" ,
3812+ "description" : " Group sub-component" ,
3813+ "props" : {
3814+ "legend" : {
3815+ "type" : " string" ,
3816+ "required" : true
3817+ },
3818+ "children" : {
3819+ "type" : " ReactNode" ,
3820+ "required" : true
3821+ },
3822+ "orientation" : {
3823+ "type" : " \" vertical\" | \" horizontal\" " ,
3824+ "optional" : true
3825+ },
3826+ "appearance" : {
3827+ "type" : " KumoRadioAppearance" ,
3828+ "optional" : true
3829+ },
3830+ "error" : {
3831+ "type" : " string" ,
3832+ "optional" : true
3833+ },
3834+ "description" : {
3835+ "type" : " ReactNode" ,
3836+ "optional" : true
3837+ },
3838+ "value" : {
3839+ "type" : " string" ,
3840+ "optional" : true
3841+ },
3842+ "disabled" : {
3843+ "type" : " boolean" ,
3844+ "optional" : true
3845+ },
3846+ "label" : {
3847+ "type" : " \" start\" (default) puts radio before label" ,
3848+ "required" : true
3849+ },
3850+ "Note" : {
3851+ "type" : " In card appearance" ,
3852+ "required" : true
3853+ },
3854+ "controlPosition" : {
3855+ "type" : " RadioControlPosition" ,
3856+ "optional" : true
3857+ },
3858+ "name" : {
3859+ "type" : " string" ,
3860+ "optional" : true
3861+ },
3862+ "className" : {
3863+ "type" : " string" ,
3864+ "optional" : true
3865+ }
3866+ }
3867+ }
3868+ }
38093869 },
38103870 "Select" : {
38113871 "name" : " Select" ,
40844144 " bg-kumo-brand" ,
40854145 " bg-kumo-control" ,
40864146 " outline-kumo-ring" ,
4147+ " ring-kumo-ring" ,
40874148 " text-kumo-default" ,
40884149 " text-kumo-subtle"
40894150 ]
42404301 " <Switch label=\" Disabled\" checked={false} disabled />" ,
42414302 " <Switch\n label=\" Neutral switch\"\n variant=\" neutral\"\n checked={checked}\n onCheckedChange={setChecked}\n />" ,
42424303 " <div className=\" flex flex-col gap-4\" >\n <Switch\n label=\" Neutral off\"\n variant=\" neutral\"\n checked={false}\n onCheckedChange={() => {}}\n />\n <Switch\n label=\" Neutral on\"\n variant=\" neutral\"\n checked={true}\n onCheckedChange={() => {}}\n />\n <Switch\n label=\" Neutral disabled\"\n variant=\" neutral\"\n checked={false}\n disabled\n />\n </div>" ,
4243- " <div className=\" flex flex-col gap-4\" >\n <Switch\n label=\" Default variant\"\n checked={true}\n onCheckedChange={() => {}}\n />\n <Switch\n label=\" Neutral variant\"\n variant=\" neutral\"\n checked={true}\n onCheckedChange={() => {}}\n />\n </div>"
4304+ " <div className=\" flex flex-col gap-4\" >\n <Switch\n label=\" Default variant\"\n checked={true}\n onCheckedChange={() => {}}\n />\n <Switch\n label=\" Neutral variant\"\n variant=\" neutral\"\n checked={true}\n onCheckedChange={() => {}}\n />\n </div>" ,
4305+ " <div className=\" flex flex-col gap-4\" >\n <Switch\n label=\" Small\"\n size=\" sm\"\n checked={true}\n onCheckedChange={() => {}}\n />\n <Switch\n label=\" Base (default)\"\n size=\" base\"\n checked={true}\n onCheckedChange={() => {}}\n />\n <Switch\n label=\" Large\"\n size=\" lg\"\n checked={true}\n onCheckedChange={() => {}}\n />\n </div>"
42444306 ],
42454307 "colors" : [
42464308 " bg-kumo-base" ,
51385200 ]
51395201 }
51405202 }
5141- }
5203+ }
0 commit comments