+ className={`${styles.container} ${className || ''}`}
+ data-accent-toggle=''
+ {...props}
+ >
{accentColors.map(color => (
)}
- `,
- },
- ],
+ `
+ }
+ ]
};
diff --git a/apps/www/src/content/docs/components/calendar/index.mdx b/apps/www/src/content/docs/components/calendar/index.mdx
index b47d7a9cb..7a5e65d83 100644
--- a/apps/www/src/content/docs/components/calendar/index.mdx
+++ b/apps/www/src/content/docs/components/calendar/index.mdx
@@ -24,14 +24,10 @@ import { Calendar, RangePicker, DatePicker } from '@raystack/apsara'
## RangePicker Props
-The RangePicker supports customizing the popover behavior using the `popoverProps` prop.
-
## DatePicker Props
-The DatePicker supports customizing the popover behavior using the `popoverProps` prop.
-
## Examples
diff --git a/apps/www/src/content/docs/components/calendar/props.ts b/apps/www/src/content/docs/components/calendar/props.ts
index 342b8dbab..0c9f4d63b 100644
--- a/apps/www/src/content/docs/components/calendar/props.ts
+++ b/apps/www/src/content/docs/components/calendar/props.ts
@@ -1,5 +1,4 @@
import { InputFieldProps } from '../input-field/props';
-import { PopoverContentProps } from '../popover/props';
export interface CalendarProps {
/** Number of months to display */
@@ -75,9 +74,6 @@ export interface RangePickerProps {
* If not provided, uses the local timezone.
*/
timeZone?: string;
-
- /** Props for customizing the popover */
- popoverProps?: PopoverContentProps;
}
export interface DatePickerProps {
@@ -118,7 +114,4 @@ export interface DatePickerProps {
* If not provided, uses the local timezone.
*/
timeZone?: string;
-
- /** Props for customizing the popover */
- popoverProps?: PopoverContentProps;
}
diff --git a/apps/www/src/content/docs/components/callout/demo.ts b/apps/www/src/content/docs/components/callout/demo.ts
index b5289a9d8..dc330c6d1 100644
--- a/apps/www/src/content/docs/components/callout/demo.ts
+++ b/apps/www/src/content/docs/components/callout/demo.ts
@@ -1,58 +1,58 @@
-"use client";
+'use client';
-import { getPropsString } from "@/lib/utils";
+import { getPropsString } from '@/lib/utils';
export const getCode = (props: any) => {
const { children, ...rest } = props;
return `
alert("Dismissed")}>${children}`;
};
export const playground = {
- type: "playground",
+ type: 'playground',
controls: {
type: {
- type: "select",
+ type: 'select',
options: [
- "grey",
- "success",
- "alert",
- "gradient",
- "accent",
- "attention",
- "normal",
+ 'grey',
+ 'success',
+ 'alert',
+ 'gradient',
+ 'accent',
+ 'attention',
+ 'normal'
],
- defaultValue: "grey",
- initialValue: "gradient",
+ defaultValue: 'grey',
+ initialValue: 'gradient'
},
children: {
- type: "text",
- initialValue: "A short message",
+ type: 'text',
+ initialValue: 'A short message'
},
icon: {
- type: "icon",
+ type: 'icon'
},
outline: {
- type: "checkbox",
- defaultValue: false,
+ type: 'checkbox',
+ defaultValue: false
},
highContrast: {
- type: "checkbox",
- defaultValue: false,
+ type: 'checkbox',
+ defaultValue: false
},
dismissible: {
- type: "checkbox",
- defaultValue: false,
+ type: 'checkbox',
+ defaultValue: false
},
width: {
- type: "text",
- },
+ type: 'text'
+ }
},
- getCode,
+ getCode
};
export const typeDemo = {
- type: "code",
+ type: 'code',
code: `
Default Callout
@@ -62,44 +62,44 @@ export const typeDemo = {
Accent Callout
Attention Callout
Normal Callout
- `,
+ `
};
export const outlineDemo = {
- type: "code",
+ type: 'code',
code: `
Without Outline Callout
With Outline Callout
- `,
+ `
};
export const highContrastDemo = {
- type: "code",
+ type: 'code',
code: `
Normal Callout
High Contrast Callout
- `,
+ `
};
export const dismissibleDemo = {
- type: "code",
+ type: 'code',
code: `
alert("Dismissed!")}>
Dismissible Callout
- `,
+ `
};
export const actionDemo = {
- type: "code",
+ type: 'code',
code: `
Action}>
A short message to attract user's attention
- `,
+ `
};
export const widthDemo = {
- type: "code",
- code: `
A short message to attract user's attention`,
+ type: 'code',
+ code: `
A short message to attract user's attention`
};
diff --git a/apps/www/src/content/docs/components/callout/props.ts b/apps/www/src/content/docs/components/callout/props.ts
index 4c67bfdcb..d8b30fb1e 100644
--- a/apps/www/src/content/docs/components/callout/props.ts
+++ b/apps/www/src/content/docs/components/callout/props.ts
@@ -4,13 +4,13 @@ export interface CalloutProps {
* @defaultValue "grey"
*/
type?:
- | "grey"
- | "success"
- | "alert"
- | "gradient"
- | "accent"
- | "attention"
- | "normal";
+ | 'grey'
+ | 'success'
+ | 'alert'
+ | 'gradient'
+ | 'accent'
+ | 'attention'
+ | 'normal';
/**
* Whether to show an outline border
diff --git a/apps/www/src/content/docs/components/checkbox/demo.ts b/apps/www/src/content/docs/components/checkbox/demo.ts
index 2b22ef026..3cc2a5765 100644
--- a/apps/www/src/content/docs/components/checkbox/demo.ts
+++ b/apps/www/src/content/docs/components/checkbox/demo.ts
@@ -1,48 +1,48 @@
-"use client";
+'use client';
-import { getPropsString } from "@/lib/utils";
+import { getPropsString } from '@/lib/utils';
export const getCode = (props: any) => {
- if (props.checked === "false") props.checked = false;
- else if (props.checked === "true") props.checked = true;
+ if (props.checked === 'false') props.checked = false;
+ else if (props.checked === 'true') props.checked = true;
return `
`;
};
export const playground = {
- type: "playground",
+ type: 'playground',
controls: {
checked: {
- type: "select",
- options: ["true", "false", "indeterminate"],
- initialValue: "true",
+ type: 'select',
+ options: ['true', 'false', 'indeterminate'],
+ initialValue: 'true'
},
disabled: {
- type: "checkbox",
- defaultValue: false,
- },
+ type: 'checkbox',
+ defaultValue: false
+ }
},
- getCode,
+ getCode
};
export const statesExamples = {
- type: "code",
+ type: 'code',
tabs: [
{
- name: "Basic",
- code: `
`,
+ name: 'Basic',
+ code: `
`
},
{
- name: "Checked",
- code: `
`,
+ name: 'Checked',
+ code: `
`
},
{
- name: "Indeterminate",
- code: `
`,
+ name: 'Indeterminate',
+ code: `
`
},
{
- name: "Disabled",
- code: `
`,
- },
- ],
+ name: 'Disabled',
+ code: `
`
+ }
+ ]
};
diff --git a/apps/www/src/content/docs/components/checkbox/props.ts b/apps/www/src/content/docs/components/checkbox/props.ts
index 84cc90c88..1d2a70bc7 100644
--- a/apps/www/src/content/docs/components/checkbox/props.ts
+++ b/apps/www/src/content/docs/components/checkbox/props.ts
@@ -2,17 +2,17 @@ export interface CheckboxProps {
/**
* The controlled state of the checkbox
*/
- checked?: boolean | "indeterminate";
+ checked?: boolean | 'indeterminate';
/**
* The default state when initially rendered
*/
- defaultChecked?: boolean | "indeterminate";
+ defaultChecked?: boolean | 'indeterminate';
/**
* Event handler called when the state changes
*/
- onCheckedChange?: (checked: boolean | "indeterminate") => void;
+ onCheckedChange?: (checked: boolean | 'indeterminate') => void;
/**
* When true, prevents the user from interacting with the checkbox
diff --git a/apps/www/src/content/docs/components/chip/demo.ts b/apps/www/src/content/docs/components/chip/demo.ts
index a0832afe0..618c22870 100644
--- a/apps/www/src/content/docs/components/chip/demo.ts
+++ b/apps/www/src/content/docs/components/chip/demo.ts
@@ -1,6 +1,6 @@
-"use client";
+'use client';
-import { getPropsString } from "@/lib/utils";
+import { getPropsString } from '@/lib/utils';
export const getCode = (props: any) => {
const { children, ...rest } = props;
@@ -9,102 +9,102 @@ export const getCode = (props: any) => {
};
export const playground = {
- type: "playground",
+ type: 'playground',
controls: {
variant: {
- type: "select",
- options: ["outline", "filled"],
- defaultValue: "outline",
+ type: 'select',
+ options: ['outline', 'filled'],
+ defaultValue: 'outline'
},
size: {
- type: "select",
- options: ["small", "large"],
- defaultValue: "small",
+ type: 'select',
+ options: ['small', 'large'],
+ defaultValue: 'small'
},
color: {
- type: "select",
- options: ["neutral", "accent"],
- defaultValue: "neutral",
+ type: 'select',
+ options: ['neutral', 'accent'],
+ defaultValue: 'neutral'
},
isDismissible: {
- type: "checkbox",
- defaultValue: false,
+ type: 'checkbox',
+ defaultValue: false
},
children: {
- type: "text",
- initialValue: "My Chip",
+ type: 'text',
+ initialValue: 'My Chip'
},
- leadingIcon: { type: "icon" },
- trailingIcon: { type: "icon" },
+ leadingIcon: { type: 'icon' },
+ trailingIcon: { type: 'icon' }
},
- getCode,
+ getCode
};
export const variantsDemo = {
- type: "code",
+ type: 'code',
code: `
Outline
Filled
- `,
+ `
};
export const sizesDemo = {
- type: "code",
+ type: 'code',
code: `
Small
Large
- `,
+ `
};
export const colorDemo = {
- type: "code",
+ type: 'code',
code: `
Outline
Filled
Outline
Filled
- `,
+ `
};
export const dismissableDemo = {
- type: "code",
+ type: 'code',
code: `
alert('dismissed')} ariaLabel="Dismissible chip">Dismissable Chip
alert('dismissed')} ariaLabel="Dismissible chip">Dismissable Chip
alert('dismissed')} ariaLabel="Dismissible chip">Dismissable Chip
- `,
+ `
};
export const iconsDemo = {
- type: "code",
+ type: 'code',
tabs: [
{
- name: "Leading Icon",
+ name: 'Leading Icon',
code: `
Add Item
Selected
-
`,
+
`
},
{
- name: "Trailing Icon",
+ name: 'Trailing Icon',
code: `