@yamada-ui/react 2.3.0 → 2.3.1-dev-20261030085350
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/cjs/components/segmented-control/segmented-control.cjs +3 -7
- package/dist/cjs/components/segmented-control/segmented-control.cjs.map +1 -1
- package/dist/cjs/components/toggle/toggle.style.cjs +2 -0
- package/dist/cjs/components/toggle/toggle.style.cjs.map +1 -1
- package/dist/esm/components/segmented-control/segmented-control.js +3 -7
- package/dist/esm/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/esm/components/toggle/toggle.style.js +2 -0
- package/dist/esm/components/toggle/toggle.style.js.map +1 -1
- package/dist/types/components/avatar/avatar.d.ts +3 -3
- package/dist/types/components/avatar/avatar.style.d.ts +1 -1
- package/dist/types/components/carousel/carousel.style.d.ts +2 -2
- package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
- package/dist/types/components/checkbox-card/checkbox-card.d.ts +3 -3
- package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
- package/dist/types/components/empty-state/empty-state.style.d.ts +2 -2
- package/dist/types/components/field/field.style.d.ts +2 -2
- package/dist/types/components/fieldset/fieldset.style.d.ts +1 -1
- package/dist/types/components/menu/menu.style.d.ts +2 -2
- package/dist/types/components/radio-card/radio-card.d.ts +3 -3
- package/dist/types/components/radio-card/radio-card.style.d.ts +1 -1
- package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
- package/dist/types/components/steps/steps.style.d.ts +1 -1
- package/dist/types/components/timeline/timeline.d.ts +1 -1
- package/dist/types/components/timeline/timeline.style.d.ts +1 -1
- package/dist/types/components/toggle/toggle.d.ts +6 -0
- package/dist/types/components/toggle/toggle.style.d.ts +2 -0
- package/dist/types/components/tree/tree.style.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
const require_factory = require("../../core/system/factory.cjs");
|
|
3
|
+
const require_props = require("../../core/components/props.cjs");
|
|
3
4
|
const require_create_component = require("../../core/components/create-component.cjs");
|
|
4
5
|
const require_factory$1 = require("../motion/factory.cjs");
|
|
5
6
|
const require_hooks_use_value_index = require("../../hooks/use-value/index.cjs");
|
|
@@ -79,13 +80,8 @@ const SegmentedControlItem = withContext(({ children, indicatorProps, ...rest })
|
|
|
79
80
|
}, "item")((props) => {
|
|
80
81
|
const { indicatorProps, itemProps } = useComponentContext();
|
|
81
82
|
return {
|
|
82
|
-
...itemProps,
|
|
83
|
-
|
|
84
|
-
indicatorProps: {
|
|
85
|
-
...indicatorProps,
|
|
86
|
-
...itemProps?.indicatorProps,
|
|
87
|
-
...props.indicatorProps
|
|
88
|
-
}
|
|
83
|
+
...require_props.mergeProps(itemProps, props)(),
|
|
84
|
+
indicatorProps: require_props.mergeProps(indicatorProps, itemProps?.indicatorProps, props.indicatorProps)()
|
|
89
85
|
};
|
|
90
86
|
});
|
|
91
87
|
const SegmentedControlIndicator = withContext(({ transition, ...props }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented-control.cjs","names":["createSlotComponent","segmentedControlStyle","useValue","useSegmentedControl","useMemo","SegmentedControlContext","SegmentedControlDescendantsContext","LayoutGroup","styled","useSegmentedControlItem","motion"],"sources":["../../../../src/components/segmented-control/segmented-control.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement, ReactNode } from \"react\"\nimport type { GenericsComponent, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { SegmentedControlStyle } from \"./segmented-control.style\"\nimport type {\n UseSegmentedControlItemProps,\n UseSegmentedControlProps,\n} from \"./use-segmented-control\"\nimport { LayoutGroup } from \"motion/react\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { motion } from \"../motion\"\nimport { segmentedControlStyle } from \"./segmented-control.style\"\nimport {\n SegmentedControlContext,\n SegmentedControlDescendantsContext,\n useSegmentedControl,\n useSegmentedControlItem,\n} from \"./use-segmented-control\"\n\nexport interface SegmentedControlItem extends SegmentedControlItemProps {\n label?: ReactNode\n}\n\ninterface ComponentContext extends Pick<\n SegmentedControlRootProps,\n \"indicatorProps\" | \"itemProps\"\n> {}\n\nexport interface SegmentedControlRootProps<Y extends string = string>\n extends\n Omit<HTMLStyledProps, \"defaultValue\" | \"onChange\">,\n ThemeProps<SegmentedControlStyle>,\n Omit<UseSegmentedControlProps<Y>, \"orientation\"> {\n /**\n * If provided, generate segmented control buttons but based on items.\n *\n * @default []\n */\n items?: SegmentedControlItem[]\n /**\n * Props for the indicator component.\n */\n indicatorProps?: SegmentedControlIndicatorProps\n /**\n * Props for the item component.\n */\n itemProps?: Omit<SegmentedControlItemProps, \"value\">\n}\n\nconst {\n ComponentContext,\n PropsContext: SegmentedControlPropsContext,\n useComponentContext,\n usePropsContext: useSegmentedControlPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<\n SegmentedControlRootProps,\n SegmentedControlStyle,\n ComponentContext\n>(\"segmented-control\", segmentedControlStyle)\n\nexport { SegmentedControlPropsContext, useSegmentedControlPropsContext }\n\n/**\n * `SegmentedControl` is a component used for allowing users to select one option from multiple choices.\n *\n * @see https://yamada-ui.com/docs/components/segmented-control\n */\nexport const SegmentedControlRoot = withProvider(\n ({\n children,\n items = [],\n orientation: orientationProp,\n indicatorProps,\n itemProps,\n ...rest\n }) => {\n const computedOrientation = useValue(orientationProp)\n const {\n id,\n name,\n descendants,\n disabled,\n orientation,\n readOnly,\n setValue,\n value,\n getRootProps,\n } = useSegmentedControl({ orientation: computedOrientation, ...rest })\n const cloneChildren = useMemo(() => {\n if (children) return children\n else\n return items.map(({ label, ...rest }, index) => (\n <SegmentedControlItem key={index} {...rest}>\n {label}\n </SegmentedControlItem>\n ))\n }, [children, items])\n const context = useMemo(\n () => ({ id, name, disabled, orientation, readOnly, setValue, value }),\n [id, name, disabled, readOnly, orientation, setValue, value],\n )\n const componentContext = useMemo(\n () => ({ indicatorProps, itemProps }),\n [itemProps, indicatorProps],\n )\n\n return (\n <SegmentedControlContext value={context}>\n <ComponentContext value={componentContext}>\n <SegmentedControlDescendantsContext value={descendants}>\n <LayoutGroup id={id}>\n <styled.div {...getRootProps()}>{cloneChildren}</styled.div>\n </LayoutGroup>\n </SegmentedControlDescendantsContext>\n </ComponentContext>\n </SegmentedControlContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)() as GenericsComponent<{\n <Y extends string = string>(props: SegmentedControlRootProps<Y>): ReactElement\n}>\n\nexport interface SegmentedControlItemProps<Y extends string = string>\n extends HTMLStyledProps<\"label\">, UseSegmentedControlItemProps<Y> {\n /**\n * Props for the indicator component.\n */\n indicatorProps?: SegmentedControlIndicatorProps\n}\n\nexport const SegmentedControlItem = withContext<\n \"label\",\n SegmentedControlItemProps\n>(({ children, indicatorProps, ...rest }) => {\n const { checked, getInputProps, getLabelProps } =\n useSegmentedControlItem(rest)\n\n return (\n <styled.label {...getLabelProps()}>\n <styled.input {...getInputProps()} />\n\n <styled.span>{children}</styled.span>\n\n {checked ? <SegmentedControlIndicator {...indicatorProps} /> : null}\n </styled.label>\n )\n}, \"item\")((props) => {\n const { indicatorProps, itemProps } = useComponentContext()\n\n return {\n ...itemProps
|
|
1
|
+
{"version":3,"file":"segmented-control.cjs","names":["createSlotComponent","segmentedControlStyle","useValue","useSegmentedControl","useMemo","SegmentedControlContext","SegmentedControlDescendantsContext","LayoutGroup","styled","useSegmentedControlItem","mergeProps","motion"],"sources":["../../../../src/components/segmented-control/segmented-control.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement, ReactNode } from \"react\"\nimport type { GenericsComponent, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { SegmentedControlStyle } from \"./segmented-control.style\"\nimport type {\n UseSegmentedControlItemProps,\n UseSegmentedControlProps,\n} from \"./use-segmented-control\"\nimport { LayoutGroup } from \"motion/react\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, mergeProps, styled } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { motion } from \"../motion\"\nimport { segmentedControlStyle } from \"./segmented-control.style\"\nimport {\n SegmentedControlContext,\n SegmentedControlDescendantsContext,\n useSegmentedControl,\n useSegmentedControlItem,\n} from \"./use-segmented-control\"\n\nexport interface SegmentedControlItem extends SegmentedControlItemProps {\n label?: ReactNode\n}\n\ninterface ComponentContext extends Pick<\n SegmentedControlRootProps,\n \"indicatorProps\" | \"itemProps\"\n> {}\n\nexport interface SegmentedControlRootProps<Y extends string = string>\n extends\n Omit<HTMLStyledProps, \"defaultValue\" | \"onChange\">,\n ThemeProps<SegmentedControlStyle>,\n Omit<UseSegmentedControlProps<Y>, \"orientation\"> {\n /**\n * If provided, generate segmented control buttons but based on items.\n *\n * @default []\n */\n items?: SegmentedControlItem[]\n /**\n * Props for the indicator component.\n */\n indicatorProps?: SegmentedControlIndicatorProps\n /**\n * Props for the item component.\n */\n itemProps?: Omit<SegmentedControlItemProps, \"value\">\n}\n\nconst {\n ComponentContext,\n PropsContext: SegmentedControlPropsContext,\n useComponentContext,\n usePropsContext: useSegmentedControlPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<\n SegmentedControlRootProps,\n SegmentedControlStyle,\n ComponentContext\n>(\"segmented-control\", segmentedControlStyle)\n\nexport { SegmentedControlPropsContext, useSegmentedControlPropsContext }\n\n/**\n * `SegmentedControl` is a component used for allowing users to select one option from multiple choices.\n *\n * @see https://yamada-ui.com/docs/components/segmented-control\n */\nexport const SegmentedControlRoot = withProvider(\n ({\n children,\n items = [],\n orientation: orientationProp,\n indicatorProps,\n itemProps,\n ...rest\n }) => {\n const computedOrientation = useValue(orientationProp)\n const {\n id,\n name,\n descendants,\n disabled,\n orientation,\n readOnly,\n setValue,\n value,\n getRootProps,\n } = useSegmentedControl({ orientation: computedOrientation, ...rest })\n const cloneChildren = useMemo(() => {\n if (children) return children\n else\n return items.map(({ label, ...rest }, index) => (\n <SegmentedControlItem key={index} {...rest}>\n {label}\n </SegmentedControlItem>\n ))\n }, [children, items])\n const context = useMemo(\n () => ({ id, name, disabled, orientation, readOnly, setValue, value }),\n [id, name, disabled, readOnly, orientation, setValue, value],\n )\n const componentContext = useMemo(\n () => ({ indicatorProps, itemProps }),\n [itemProps, indicatorProps],\n )\n\n return (\n <SegmentedControlContext value={context}>\n <ComponentContext value={componentContext}>\n <SegmentedControlDescendantsContext value={descendants}>\n <LayoutGroup id={id}>\n <styled.div {...getRootProps()}>{cloneChildren}</styled.div>\n </LayoutGroup>\n </SegmentedControlDescendantsContext>\n </ComponentContext>\n </SegmentedControlContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)() as GenericsComponent<{\n <Y extends string = string>(props: SegmentedControlRootProps<Y>): ReactElement\n}>\n\nexport interface SegmentedControlItemProps<Y extends string = string>\n extends HTMLStyledProps<\"label\">, UseSegmentedControlItemProps<Y> {\n /**\n * Props for the indicator component.\n */\n indicatorProps?: SegmentedControlIndicatorProps\n}\n\nexport const SegmentedControlItem = withContext<\n \"label\",\n SegmentedControlItemProps\n>(({ children, indicatorProps, ...rest }) => {\n const { checked, getInputProps, getLabelProps } =\n useSegmentedControlItem(rest)\n\n return (\n <styled.label {...getLabelProps()}>\n <styled.input {...getInputProps()} />\n\n <styled.span>{children}</styled.span>\n\n {checked ? <SegmentedControlIndicator {...indicatorProps} /> : null}\n </styled.label>\n )\n}, \"item\")((props) => {\n const { indicatorProps, itemProps } = useComponentContext()\n\n return {\n ...mergeProps(itemProps, props)(),\n indicatorProps: mergeProps(\n indicatorProps,\n itemProps?.indicatorProps,\n props.indicatorProps,\n )(),\n }\n}) as GenericsComponent<{\n <Y extends string = string>(props: SegmentedControlItemProps<Y>): ReactElement\n}>\n\ninterface SegmentedControlIndicatorProps extends HTMLMotionProps {}\n\nconst SegmentedControlIndicator = withContext<\n \"div\",\n SegmentedControlIndicatorProps\n>(({ transition, ...props }) => {\n return (\n <motion.div\n layoutDependency={false}\n layoutId=\"indicator\"\n transition={{ duration: 0.2, ...transition }}\n {...props}\n />\n )\n}, \"indicator\")()\n"],"mappings":";;;;;;;;;;;;AAqDA,MAAM,EACJ,kBACA,cAAc,8BACd,qBACA,iBAAiB,iCACjB,aACA,iBACEA,yBAAAA,oBAIF,qBAAqBC,gCAAAA,qBAAqB;;;;;;AAS5C,MAAa,uBAAuB,cACjC,EACC,UACA,QAAQ,CAAC,GACT,aAAa,iBACb,gBACA,WACA,GAAG,WACC;CACJ,MAAM,sBAAsBC,8BAAAA,SAAS,eAAe;CACpD,MAAM,EACJ,IACA,MACA,aACA,UACA,aACA,UACA,UACA,OACA,iBACEC,8BAAAA,oBAAoB;EAAE,aAAa;EAAqB,GAAG;CAAK,CAAC;CACrE,MAAM,iBAAA,GAAgBC,MAAAA,QAAAA,OAAc;EAClC,IAAI,UAAU,OAAO;OAEnB,OAAO,MAAM,KAAK,EAAE,OAAO,GAAG,QAAQ,UACpC,iBAAA,GAAA,kBAAA,IAAA,CAAC,sBAAD;GAAkC,GAAI;GACnC,UAAA;EACmB,GAFK,KAEL,CACvB;CACL,GAAG,CAAC,UAAU,KAAK,CAAC;CACpB,MAAM,WAAA,GAAUA,MAAAA,QAAAA,QACP;EAAE;EAAI;EAAM;EAAU;EAAa;EAAU;EAAU;CAAM,IACpE;EAAC;EAAI;EAAM;EAAU;EAAU;EAAa;EAAU;CAAK,CAC7D;CACA,MAAM,oBAAA,GAAmBA,MAAAA,QAAAA,QAChB;EAAE;EAAgB;CAAU,IACnC,CAAC,WAAW,cAAc,CAC5B;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,8BAAAA,yBAAD;EAAyB,OAAO;EAC9B,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,kBAAD;GAAkB,OAAO;GACvB,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,8BAAAA,oCAAD;IAAoC,OAAO;IACzC,UAAA,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20,7 @@ fullRounded: { true: { root: { rounded: "full" } } } },
|
|
|
20
20
|
ghost: { root: {
|
|
21
21
|
_checked: {
|
|
22
22
|
layerStyle: "solid",
|
|
23
|
+
borderWidth: "1px",
|
|
23
24
|
_invalid: {
|
|
24
25
|
borderColor: "{error-border-color}",
|
|
25
26
|
borderWidth: "1px"
|
|
@@ -84,6 +85,7 @@ fullRounded: { true: { root: { rounded: "full" } } } },
|
|
|
84
85
|
surface: { root: {
|
|
85
86
|
_checked: {
|
|
86
87
|
layerStyle: "solid",
|
|
88
|
+
borderWidth: "1px",
|
|
87
89
|
_invalid: { borderColor: "{error-border-color}" }
|
|
88
90
|
},
|
|
89
91
|
_notChecked: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.style.cjs","names":["defineComponentSlotStyle","iconButtonStyle"],"sources":["../../../../src/components/toggle/toggle.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\nimport { iconButtonStyle } from \"../button\"\n\nexport const toggleStyle = defineComponentSlotStyle({\n base: {\n group: {},\n root: {\n \"--error-border-color\": \"colors.border.error\",\n gap: \"2\",\n },\n },\n\n props: {\n /**\n * If true, the toggle button is full rounded. Else, it'll be slightly round.\n *\n * @default false\n */\n fullRounded: {\n true: {\n root: {\n rounded: \"full\",\n },\n },\n },\n },\n\n variants: {\n ghost: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"ghost\",\n _hover: {\n layerStyle: \"ghost.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n outline: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n borderColor: \"colorScheme.solid\",\n borderWidth: \"1px\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n _notChecked: {\n layerStyle: \"outline\",\n _hover: {\n layerStyle: \"outline.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n },\n solid: {\n root: {\n _checked: {\n layerStyle: \"subtle\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"solid\",\n _hover: {\n layerStyle: \"solid.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n subtle: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"subtle\",\n _hover: {\n layerStyle: \"subtle.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n surface: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n _notChecked: {\n layerStyle: \"surface\",\n _hover: {\n layerStyle: \"surface.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n },\n },\n\n sizes: {\n xs: {\n root: {\n ...iconButtonStyle.sizes?.xs,\n gap: \"1\",\n },\n },\n sm: {\n root: {\n ...iconButtonStyle.sizes?.sm,\n gap: \"2\",\n },\n },\n md: {\n root: {\n ...iconButtonStyle.sizes?.md,\n gap: \"2\",\n },\n },\n lg: {\n root: {\n ...iconButtonStyle.sizes?.lg,\n gap: \"2.5\",\n },\n },\n xl: {\n root: {\n ...iconButtonStyle.sizes?.xl,\n gap: \"3\",\n },\n },\n \"2xl\": {\n root: {\n ...iconButtonStyle.sizes?.[\"2xl\"],\n gap: \"3\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"ghost\",\n },\n})\n\nexport type ToggleStyle = typeof toggleStyle\n"],"mappings":";;;AAGA,MAAa,cAAcA,eAAAA,yBAAyB;CAClD,MAAM;EACJ,OAAO,CAAC;EACR,MAAM;GACJ,wBAAwB;GACxB,KAAK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EACF,MAAM;GACJ,GAAGA,0BAAAA,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,IAAI,EACF,MAAM;GACJ,GAAGA,0BAAAA,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,IAAI,EACF,MAAM;GACJ,GAAGA,0BAAAA,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,OAAO,EACL,MAAM;GACJ,GAAGA,0BAAAA,gBAAgB,QAAQ;GAC3B,KAAK;EACP,EACF;CACF;CAEA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"toggle.style.cjs","names":["defineComponentSlotStyle","iconButtonStyle"],"sources":["../../../../src/components/toggle/toggle.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\nimport { iconButtonStyle } from \"../button\"\n\nexport const toggleStyle = defineComponentSlotStyle({\n base: {\n group: {},\n root: {\n \"--error-border-color\": \"colors.border.error\",\n gap: \"2\",\n },\n },\n\n props: {\n /**\n * If true, the toggle button is full rounded. Else, it'll be slightly round.\n *\n * @default false\n */\n fullRounded: {\n true: {\n root: {\n rounded: \"full\",\n },\n },\n },\n },\n\n variants: {\n ghost: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n borderWidth: \"1px\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"ghost\",\n _hover: {\n layerStyle: \"ghost.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n outline: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n borderColor: \"colorScheme.solid\",\n borderWidth: \"1px\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n _notChecked: {\n layerStyle: \"outline\",\n _hover: {\n layerStyle: \"outline.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n },\n solid: {\n root: {\n _checked: {\n layerStyle: \"subtle\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"solid\",\n _hover: {\n layerStyle: \"solid.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n subtle: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"subtle\",\n _hover: {\n layerStyle: \"subtle.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n surface: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n borderWidth: \"1px\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n _notChecked: {\n layerStyle: \"surface\",\n _hover: {\n layerStyle: \"surface.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n },\n },\n\n sizes: {\n xs: {\n root: {\n ...iconButtonStyle.sizes?.xs,\n gap: \"1\",\n },\n },\n sm: {\n root: {\n ...iconButtonStyle.sizes?.sm,\n gap: \"2\",\n },\n },\n md: {\n root: {\n ...iconButtonStyle.sizes?.md,\n gap: \"2\",\n },\n },\n lg: {\n root: {\n ...iconButtonStyle.sizes?.lg,\n gap: \"2.5\",\n },\n },\n xl: {\n root: {\n ...iconButtonStyle.sizes?.xl,\n gap: \"3\",\n },\n },\n \"2xl\": {\n root: {\n ...iconButtonStyle.sizes?.[\"2xl\"],\n gap: \"3\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"ghost\",\n },\n})\n\nexport type ToggleStyle = typeof toggleStyle\n"],"mappings":";;;AAGA,MAAa,cAAcA,eAAAA,yBAAyB;CAClD,MAAM;EACJ,OAAO,CAAC;EACR,MAAM;GACJ,wBAAwB;GACxB,KAAK;EACP;CACF;CAEA,OAAO;;;;;;AAML,aAAa,EACX,MAAM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AAA,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,IAAI,EACF,MAAM;GACJ,GAAGA,0BAAAA,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,IAAI,EACF,MAAM;GACJ,GAAGA,0BAAAA,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,OAAO,EACL,MAAM;GACJ,GAAGA,0BAAAA,gBAAgB,QAAQ;GAC3B,KAAK;EACP,EACF;CACF;CAEA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { styled } from "../../core/system/factory.js";
|
|
3
|
+
import { mergeProps } from "../../core/components/props.js";
|
|
3
4
|
import { createSlotComponent } from "../../core/components/create-component.js";
|
|
4
5
|
import { motion as motion$1 } from "../motion/factory.js";
|
|
5
6
|
import { useValue } from "../../hooks/use-value/index.js";
|
|
@@ -79,13 +80,8 @@ const SegmentedControlItem = withContext(({ children, indicatorProps, ...rest })
|
|
|
79
80
|
}, "item")((props) => {
|
|
80
81
|
const { indicatorProps, itemProps } = useComponentContext();
|
|
81
82
|
return {
|
|
82
|
-
...itemProps,
|
|
83
|
-
|
|
84
|
-
indicatorProps: {
|
|
85
|
-
...indicatorProps,
|
|
86
|
-
...itemProps?.indicatorProps,
|
|
87
|
-
...props.indicatorProps
|
|
88
|
-
}
|
|
83
|
+
...mergeProps(itemProps, props)(),
|
|
84
|
+
indicatorProps: mergeProps(indicatorProps, itemProps?.indicatorProps, props.indicatorProps)()
|
|
89
85
|
};
|
|
90
86
|
});
|
|
91
87
|
const SegmentedControlIndicator = withContext(({ transition, ...props }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented-control.js","names":["motion"],"sources":["../../../../src/components/segmented-control/segmented-control.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement, ReactNode } from \"react\"\nimport type { GenericsComponent, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { SegmentedControlStyle } from \"./segmented-control.style\"\nimport type {\n UseSegmentedControlItemProps,\n UseSegmentedControlProps,\n} from \"./use-segmented-control\"\nimport { LayoutGroup } from \"motion/react\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, styled } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { motion } from \"../motion\"\nimport { segmentedControlStyle } from \"./segmented-control.style\"\nimport {\n SegmentedControlContext,\n SegmentedControlDescendantsContext,\n useSegmentedControl,\n useSegmentedControlItem,\n} from \"./use-segmented-control\"\n\nexport interface SegmentedControlItem extends SegmentedControlItemProps {\n label?: ReactNode\n}\n\ninterface ComponentContext extends Pick<\n SegmentedControlRootProps,\n \"indicatorProps\" | \"itemProps\"\n> {}\n\nexport interface SegmentedControlRootProps<Y extends string = string>\n extends\n Omit<HTMLStyledProps, \"defaultValue\" | \"onChange\">,\n ThemeProps<SegmentedControlStyle>,\n Omit<UseSegmentedControlProps<Y>, \"orientation\"> {\n /**\n * If provided, generate segmented control buttons but based on items.\n *\n * @default []\n */\n items?: SegmentedControlItem[]\n /**\n * Props for the indicator component.\n */\n indicatorProps?: SegmentedControlIndicatorProps\n /**\n * Props for the item component.\n */\n itemProps?: Omit<SegmentedControlItemProps, \"value\">\n}\n\nconst {\n ComponentContext,\n PropsContext: SegmentedControlPropsContext,\n useComponentContext,\n usePropsContext: useSegmentedControlPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<\n SegmentedControlRootProps,\n SegmentedControlStyle,\n ComponentContext\n>(\"segmented-control\", segmentedControlStyle)\n\nexport { SegmentedControlPropsContext, useSegmentedControlPropsContext }\n\n/**\n * `SegmentedControl` is a component used for allowing users to select one option from multiple choices.\n *\n * @see https://yamada-ui.com/docs/components/segmented-control\n */\nexport const SegmentedControlRoot = withProvider(\n ({\n children,\n items = [],\n orientation: orientationProp,\n indicatorProps,\n itemProps,\n ...rest\n }) => {\n const computedOrientation = useValue(orientationProp)\n const {\n id,\n name,\n descendants,\n disabled,\n orientation,\n readOnly,\n setValue,\n value,\n getRootProps,\n } = useSegmentedControl({ orientation: computedOrientation, ...rest })\n const cloneChildren = useMemo(() => {\n if (children) return children\n else\n return items.map(({ label, ...rest }, index) => (\n <SegmentedControlItem key={index} {...rest}>\n {label}\n </SegmentedControlItem>\n ))\n }, [children, items])\n const context = useMemo(\n () => ({ id, name, disabled, orientation, readOnly, setValue, value }),\n [id, name, disabled, readOnly, orientation, setValue, value],\n )\n const componentContext = useMemo(\n () => ({ indicatorProps, itemProps }),\n [itemProps, indicatorProps],\n )\n\n return (\n <SegmentedControlContext value={context}>\n <ComponentContext value={componentContext}>\n <SegmentedControlDescendantsContext value={descendants}>\n <LayoutGroup id={id}>\n <styled.div {...getRootProps()}>{cloneChildren}</styled.div>\n </LayoutGroup>\n </SegmentedControlDescendantsContext>\n </ComponentContext>\n </SegmentedControlContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)() as GenericsComponent<{\n <Y extends string = string>(props: SegmentedControlRootProps<Y>): ReactElement\n}>\n\nexport interface SegmentedControlItemProps<Y extends string = string>\n extends HTMLStyledProps<\"label\">, UseSegmentedControlItemProps<Y> {\n /**\n * Props for the indicator component.\n */\n indicatorProps?: SegmentedControlIndicatorProps\n}\n\nexport const SegmentedControlItem = withContext<\n \"label\",\n SegmentedControlItemProps\n>(({ children, indicatorProps, ...rest }) => {\n const { checked, getInputProps, getLabelProps } =\n useSegmentedControlItem(rest)\n\n return (\n <styled.label {...getLabelProps()}>\n <styled.input {...getInputProps()} />\n\n <styled.span>{children}</styled.span>\n\n {checked ? <SegmentedControlIndicator {...indicatorProps} /> : null}\n </styled.label>\n )\n}, \"item\")((props) => {\n const { indicatorProps, itemProps } = useComponentContext()\n\n return {\n ...itemProps
|
|
1
|
+
{"version":3,"file":"segmented-control.js","names":["motion"],"sources":["../../../../src/components/segmented-control/segmented-control.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement, ReactNode } from \"react\"\nimport type { GenericsComponent, HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { HTMLMotionProps } from \"../motion\"\nimport type { SegmentedControlStyle } from \"./segmented-control.style\"\nimport type {\n UseSegmentedControlItemProps,\n UseSegmentedControlProps,\n} from \"./use-segmented-control\"\nimport { LayoutGroup } from \"motion/react\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, mergeProps, styled } from \"../../core\"\nimport { useValue } from \"../../hooks/use-value\"\nimport { motion } from \"../motion\"\nimport { segmentedControlStyle } from \"./segmented-control.style\"\nimport {\n SegmentedControlContext,\n SegmentedControlDescendantsContext,\n useSegmentedControl,\n useSegmentedControlItem,\n} from \"./use-segmented-control\"\n\nexport interface SegmentedControlItem extends SegmentedControlItemProps {\n label?: ReactNode\n}\n\ninterface ComponentContext extends Pick<\n SegmentedControlRootProps,\n \"indicatorProps\" | \"itemProps\"\n> {}\n\nexport interface SegmentedControlRootProps<Y extends string = string>\n extends\n Omit<HTMLStyledProps, \"defaultValue\" | \"onChange\">,\n ThemeProps<SegmentedControlStyle>,\n Omit<UseSegmentedControlProps<Y>, \"orientation\"> {\n /**\n * If provided, generate segmented control buttons but based on items.\n *\n * @default []\n */\n items?: SegmentedControlItem[]\n /**\n * Props for the indicator component.\n */\n indicatorProps?: SegmentedControlIndicatorProps\n /**\n * Props for the item component.\n */\n itemProps?: Omit<SegmentedControlItemProps, \"value\">\n}\n\nconst {\n ComponentContext,\n PropsContext: SegmentedControlPropsContext,\n useComponentContext,\n usePropsContext: useSegmentedControlPropsContext,\n withContext,\n withProvider,\n} = createSlotComponent<\n SegmentedControlRootProps,\n SegmentedControlStyle,\n ComponentContext\n>(\"segmented-control\", segmentedControlStyle)\n\nexport { SegmentedControlPropsContext, useSegmentedControlPropsContext }\n\n/**\n * `SegmentedControl` is a component used for allowing users to select one option from multiple choices.\n *\n * @see https://yamada-ui.com/docs/components/segmented-control\n */\nexport const SegmentedControlRoot = withProvider(\n ({\n children,\n items = [],\n orientation: orientationProp,\n indicatorProps,\n itemProps,\n ...rest\n }) => {\n const computedOrientation = useValue(orientationProp)\n const {\n id,\n name,\n descendants,\n disabled,\n orientation,\n readOnly,\n setValue,\n value,\n getRootProps,\n } = useSegmentedControl({ orientation: computedOrientation, ...rest })\n const cloneChildren = useMemo(() => {\n if (children) return children\n else\n return items.map(({ label, ...rest }, index) => (\n <SegmentedControlItem key={index} {...rest}>\n {label}\n </SegmentedControlItem>\n ))\n }, [children, items])\n const context = useMemo(\n () => ({ id, name, disabled, orientation, readOnly, setValue, value }),\n [id, name, disabled, readOnly, orientation, setValue, value],\n )\n const componentContext = useMemo(\n () => ({ indicatorProps, itemProps }),\n [itemProps, indicatorProps],\n )\n\n return (\n <SegmentedControlContext value={context}>\n <ComponentContext value={componentContext}>\n <SegmentedControlDescendantsContext value={descendants}>\n <LayoutGroup id={id}>\n <styled.div {...getRootProps()}>{cloneChildren}</styled.div>\n </LayoutGroup>\n </SegmentedControlDescendantsContext>\n </ComponentContext>\n </SegmentedControlContext>\n )\n },\n \"root\",\n { transferProps: [\"orientation\"] },\n)() as GenericsComponent<{\n <Y extends string = string>(props: SegmentedControlRootProps<Y>): ReactElement\n}>\n\nexport interface SegmentedControlItemProps<Y extends string = string>\n extends HTMLStyledProps<\"label\">, UseSegmentedControlItemProps<Y> {\n /**\n * Props for the indicator component.\n */\n indicatorProps?: SegmentedControlIndicatorProps\n}\n\nexport const SegmentedControlItem = withContext<\n \"label\",\n SegmentedControlItemProps\n>(({ children, indicatorProps, ...rest }) => {\n const { checked, getInputProps, getLabelProps } =\n useSegmentedControlItem(rest)\n\n return (\n <styled.label {...getLabelProps()}>\n <styled.input {...getInputProps()} />\n\n <styled.span>{children}</styled.span>\n\n {checked ? <SegmentedControlIndicator {...indicatorProps} /> : null}\n </styled.label>\n )\n}, \"item\")((props) => {\n const { indicatorProps, itemProps } = useComponentContext()\n\n return {\n ...mergeProps(itemProps, props)(),\n indicatorProps: mergeProps(\n indicatorProps,\n itemProps?.indicatorProps,\n props.indicatorProps,\n )(),\n }\n}) as GenericsComponent<{\n <Y extends string = string>(props: SegmentedControlItemProps<Y>): ReactElement\n}>\n\ninterface SegmentedControlIndicatorProps extends HTMLMotionProps {}\n\nconst SegmentedControlIndicator = withContext<\n \"div\",\n SegmentedControlIndicatorProps\n>(({ transition, ...props }) => {\n return (\n <motion.div\n layoutDependency={false}\n layoutId=\"indicator\"\n transition={{ duration: 0.2, ...transition }}\n {...props}\n />\n )\n}, \"indicator\")()\n"],"mappings":";;;;;;;;;;;;AAqDA,MAAM,EACJ,kBACA,cAAc,8BACd,qBACA,iBAAiB,iCACjB,aACA,iBACE,oBAIF,qBAAqB,qBAAqB;;;;;;AAS5C,MAAa,uBAAuB,cACjC,EACC,UACA,QAAQ,CAAC,GACT,aAAa,iBACb,gBACA,WACA,GAAG,WACC;CACJ,MAAM,sBAAsB,SAAS,eAAe;CACpD,MAAM,EACJ,IACA,MACA,aACA,UACA,aACA,UACA,UACA,OACA,iBACE,oBAAoB;EAAE,aAAa;EAAqB,GAAG;CAAK,CAAC;CACrE,MAAM,gBAAgB,cAAc;EAClC,IAAI,UAAU,OAAO;OAEnB,OAAO,MAAM,KAAK,EAAE,OAAO,GAAG,QAAQ,UACpC,oBAAC,sBAAD;GAAkC,GAAI;GACnC,UAAA;EACmB,GAFK,KAEL,CACvB;CACL,GAAG,CAAC,UAAU,KAAK,CAAC;CACpB,MAAM,UAAU,eACP;EAAE;EAAI;EAAM;EAAU;EAAa;EAAU;EAAU;CAAM,IACpE;EAAC;EAAI;EAAM;EAAU;EAAU;EAAa;EAAU;CAAK,CAC7D;CACA,MAAM,mBAAmB,eAChB;EAAE;EAAgB;CAAU,IACnC,CAAC,WAAW,cAAc,CAC5B;CAEA,OACE,oBAAC,yBAAD;EAAyB,OAAO;EAC9B,UAAA,oBAAC,kBAAD;GAAkB,OAAO;GACvB,UAAA,oBAAC,oCAAD;IAAoC,OAAO;IACzC,UAAA,oBAAC,aAAD;KAAiB;KACf,UAAA,oBAAC,OAAO,KAAR;MAAY,GAAI,aAAa;MAAI,UAAA;KAA0B,CAAA;IAChD,CAAA;GACqB,CAAA;EACpB,CAAA;CACK,CAAA;AAE7B,GACA,QACA,EAAE,eAAe,CAAC,aAAa,EAAE,CACnC,CAAC,CAAC;AAYF,MAAa,uBAAuB,aAGjC,EAAE,UAAU,gBAAgB,GAAG,WAAW;CAC3C,MAAM,EAAE,SAAS,eAAe,kBAC9B,wBAAwB,IAAI;CAE9B,OACE,qBAAC,OAAO,OAAR;EAAc,GAAI,cAAc;EAAhC,UAAA;GACE,oBAAC,OAAO,OAAR,EAAc,GAAI,cAAc,EAAI,CAAA;GAEpC,oBAAC,OAAO,MAAR,EAAc,SAAsB,CAAA;GAEnC,UAAU,oBAAC,2BAAD,EAA2B,GAAI,eAAiB,CAAA,IAAI;EACnD;;AAElB,GAAG,MAAM,CAAC,EAAE,UAAU;CACpB,MAAM,EAAE,gBAAgB,cAAc,oBAAoB;CAE1D,OAAO;EACL,GAAG,WAAW,WAAW,KAAK,CAAC,CAAC;EAChC,gBAAgB,WACd,gBACA,WAAW,gBACX,MAAM,cACR,CAAC,CAAC;CACJ;AACF,CAAC;AAMD,MAAM,4BAA4B,aAG/B,EAAE,YAAY,GAAG,YAAY;CAC9B,OACE,oBAACA,SAAO,KAAR;EACE,kBAAkB;EAClB,UAAS;EACT,YAAY;GAAE,UAAU;GAAK,GAAG;EAAW;EAC3C,GAAI;CACL,CAAA;AAEL,GAAG,WAAW,CAAC,CAAC"}
|
|
@@ -20,6 +20,7 @@ fullRounded: { true: { root: { rounded: "full" } } } },
|
|
|
20
20
|
ghost: { root: {
|
|
21
21
|
_checked: {
|
|
22
22
|
layerStyle: "solid",
|
|
23
|
+
borderWidth: "1px",
|
|
23
24
|
_invalid: {
|
|
24
25
|
borderColor: "{error-border-color}",
|
|
25
26
|
borderWidth: "1px"
|
|
@@ -84,6 +85,7 @@ fullRounded: { true: { root: { rounded: "full" } } } },
|
|
|
84
85
|
surface: { root: {
|
|
85
86
|
_checked: {
|
|
86
87
|
layerStyle: "solid",
|
|
88
|
+
borderWidth: "1px",
|
|
87
89
|
_invalid: { borderColor: "{error-border-color}" }
|
|
88
90
|
},
|
|
89
91
|
_notChecked: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.style.js","names":[],"sources":["../../../../src/components/toggle/toggle.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\nimport { iconButtonStyle } from \"../button\"\n\nexport const toggleStyle = defineComponentSlotStyle({\n base: {\n group: {},\n root: {\n \"--error-border-color\": \"colors.border.error\",\n gap: \"2\",\n },\n },\n\n props: {\n /**\n * If true, the toggle button is full rounded. Else, it'll be slightly round.\n *\n * @default false\n */\n fullRounded: {\n true: {\n root: {\n rounded: \"full\",\n },\n },\n },\n },\n\n variants: {\n ghost: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"ghost\",\n _hover: {\n layerStyle: \"ghost.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n outline: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n borderColor: \"colorScheme.solid\",\n borderWidth: \"1px\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n _notChecked: {\n layerStyle: \"outline\",\n _hover: {\n layerStyle: \"outline.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n },\n solid: {\n root: {\n _checked: {\n layerStyle: \"subtle\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"solid\",\n _hover: {\n layerStyle: \"solid.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n subtle: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"subtle\",\n _hover: {\n layerStyle: \"subtle.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n surface: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n _notChecked: {\n layerStyle: \"surface\",\n _hover: {\n layerStyle: \"surface.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n },\n },\n\n sizes: {\n xs: {\n root: {\n ...iconButtonStyle.sizes?.xs,\n gap: \"1\",\n },\n },\n sm: {\n root: {\n ...iconButtonStyle.sizes?.sm,\n gap: \"2\",\n },\n },\n md: {\n root: {\n ...iconButtonStyle.sizes?.md,\n gap: \"2\",\n },\n },\n lg: {\n root: {\n ...iconButtonStyle.sizes?.lg,\n gap: \"2.5\",\n },\n },\n xl: {\n root: {\n ...iconButtonStyle.sizes?.xl,\n gap: \"3\",\n },\n },\n \"2xl\": {\n root: {\n ...iconButtonStyle.sizes?.[\"2xl\"],\n gap: \"3\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"ghost\",\n },\n})\n\nexport type ToggleStyle = typeof toggleStyle\n"],"mappings":";;;AAGA,MAAa,cAAc,yBAAyB;CAClD,MAAM;EACJ,OAAO,CAAC;EACR,MAAM;GACJ,wBAAwB;GACxB,KAAK;EACP;CACF;CAEA,OAAO;;;;;;AAML,aAAa,EACX,MAAM,EACJ,MAAM,EACJ,SAAS,OACX,EACF,EACF,EACF;CAEA,UAAU;EACR,OAAO,EACL,MAAM;GACJ,UAAU;IACR,YAAY;IACZ,UAAU;KACR,aAAa;KACb,aAAa;IACf;GACF;GACA,aAAa;IACX,YAAY;IACZ,QAAQ,EACN,YAAY,cACd;IACA,UAAU;KACR,aAAa;KACb,aAAa;IACf;GACF;EACF,EACF;EAC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;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"toggle.style.js","names":[],"sources":["../../../../src/components/toggle/toggle.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\nimport { iconButtonStyle } from \"../button\"\n\nexport const toggleStyle = defineComponentSlotStyle({\n base: {\n group: {},\n root: {\n \"--error-border-color\": \"colors.border.error\",\n gap: \"2\",\n },\n },\n\n props: {\n /**\n * If true, the toggle button is full rounded. Else, it'll be slightly round.\n *\n * @default false\n */\n fullRounded: {\n true: {\n root: {\n rounded: \"full\",\n },\n },\n },\n },\n\n variants: {\n ghost: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n borderWidth: \"1px\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"ghost\",\n _hover: {\n layerStyle: \"ghost.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n outline: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n borderColor: \"colorScheme.solid\",\n borderWidth: \"1px\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n _notChecked: {\n layerStyle: \"outline\",\n _hover: {\n layerStyle: \"outline.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n },\n solid: {\n root: {\n _checked: {\n layerStyle: \"subtle\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"solid\",\n _hover: {\n layerStyle: \"solid.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n subtle: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n _notChecked: {\n layerStyle: \"subtle\",\n _hover: {\n layerStyle: \"subtle.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n },\n },\n surface: {\n root: {\n _checked: {\n layerStyle: \"solid\",\n borderWidth: \"1px\",\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n _notChecked: {\n layerStyle: \"surface\",\n _hover: {\n layerStyle: \"surface.hover\",\n },\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n },\n },\n\n sizes: {\n xs: {\n root: {\n ...iconButtonStyle.sizes?.xs,\n gap: \"1\",\n },\n },\n sm: {\n root: {\n ...iconButtonStyle.sizes?.sm,\n gap: \"2\",\n },\n },\n md: {\n root: {\n ...iconButtonStyle.sizes?.md,\n gap: \"2\",\n },\n },\n lg: {\n root: {\n ...iconButtonStyle.sizes?.lg,\n gap: \"2.5\",\n },\n },\n xl: {\n root: {\n ...iconButtonStyle.sizes?.xl,\n gap: \"3\",\n },\n },\n \"2xl\": {\n root: {\n ...iconButtonStyle.sizes?.[\"2xl\"],\n gap: \"3\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"ghost\",\n },\n})\n\nexport type ToggleStyle = typeof toggleStyle\n"],"mappings":";;;AAGA,MAAa,cAAc,yBAAyB;CAClD,MAAM;EACJ,OAAO,CAAC;EACR,MAAM;GACJ,wBAAwB;GACxB,KAAK;EACP;CACF;CAEA,OAAO;;;;;;AAML,aAAa,EACX,MAAM,EACJ,MAAM,EACJ,SAAS,OACX,EACF,EACF,EACF;CAEA,UAAU;EACR,OAAO,EACL,MAAM;GACJ,UAAU;IACR,YAAY;IACZ,aAAa;IACb,UAAU;KACR,aAAa;KACb,aAAa;IACf;GACF;GACA,aAAa;IACX,YAAY;IACZ,QAAQ,EACN,YAAY,cACd;IACA,UAAU;KACR,aAAa;KACb,aAAa;IACf;GACF;EACF,EACF;EACA,SAAS,EACP,MAAM;GACJ,UAAU;IACR,YAAY;IACZ,aAAa;IACb,aAAa;IACb,UAAU,EACR,aAAa,uBACf;GACF;GACA,aAAa;IACX,YAAY;IACZ,QAAQ,EACN,YAAY,gBACd;IACA,UAAU,EACR,aAAa,uBACf;GACF;EACF,EACF;EACA,OAAO,EACL,MAAM;GACJ,UAAU;IACR,YAAY;IACZ,UAAU;KACR,aAAa;KACb,aAAa;IACf;GACF;GACA,aAAa;IACX,YAAY;IACZ,QAAQ,EACN,YAAY,cACd;IACA,UAAU;KACR,aAAa;KACb,aAAa;IACf;GACF;EACF,EACF;EACA,QAAQ,EACN,MAAM;GACJ,UAAU;IACR,YAAY;IACZ,UAAU;KACR,aAAa;KACb,aAAa;IACf;GACF;GACA,aAAa;IACX,YAAY;IACZ,QAAQ,EACN,YAAY,eACd;IACA,UAAU;KACR,aAAa;KACb,aAAa;IACf;GACF;EACF,EACF;EACA,SAAS,EACP,MAAM;GACJ,UAAU;IACR,YAAY;IACZ,aAAa;IACb,UAAU,EACR,aAAa,uBACf;GACF;GACA,aAAa;IACX,YAAY;IACZ,QAAQ,EACN,YAAY,gBACd;IACA,UAAU,EACR,aAAa,uBACf;GACF;EACF,EACF;CACF;CAEA,OAAO;EACL,IAAI,EACF,MAAM;GACJ,GAAG,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,IAAI,EACF,MAAM;GACJ,GAAG,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,IAAI,EACF,MAAM;GACJ,GAAG,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,IAAI,EACF,MAAM;GACJ,GAAG,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,IAAI,EACF,MAAM;GACJ,GAAG,gBAAgB,OAAO;GAC1B,KAAK;EACP,EACF;EACA,OAAO,EACL,MAAM;GACJ,GAAG,gBAAgB,QAAQ;GAC3B,KAAK;EACP,EACF;CACF;CAEA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
|
|
@@ -22,7 +22,7 @@ export interface AvatarProps extends HTMLStyledProps, ThemeProps<AvatarStyle>, U
|
|
|
22
22
|
*/
|
|
23
23
|
imageProps?: AvatarImageProps;
|
|
24
24
|
}
|
|
25
|
-
declare const component: <H extends As | "fragment" = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "
|
|
25
|
+
declare const component: <H extends As | "fragment" = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
|
|
26
26
|
shape: {
|
|
27
27
|
circle: {
|
|
28
28
|
root: {
|
|
@@ -141,7 +141,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
-
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, AvatarPropsContext: import("react").Context<Partial<AvatarProps> | undefined>, useAvatarPropsContext: () => Partial<AvatarProps> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "
|
|
144
|
+
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, AvatarPropsContext: import("react").Context<Partial<AvatarProps> | undefined>, useAvatarPropsContext: () => Partial<AvatarProps> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
|
|
145
145
|
shape: {
|
|
146
146
|
circle: {
|
|
147
147
|
root: {
|
|
@@ -260,7 +260,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
|
-
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, import("@yamada-ui/utils").Merge<WithoutThemeProps<Y, ComponentSlotStyle<"image" | "group" | "
|
|
263
|
+
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, import("@yamada-ui/utils").Merge<WithoutThemeProps<Y, ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
|
|
264
264
|
shape: {
|
|
265
265
|
circle: {
|
|
266
266
|
root: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
//#region src/components/avatar/avatar.style.d.ts
|
|
4
|
-
export declare const avatarStyle: ComponentSlotStyle<"image" | "group" | "
|
|
4
|
+
export declare const avatarStyle: ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
|
|
5
5
|
/**
|
|
6
6
|
* The shape of the component
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
|
2
2
|
import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
//#region src/components/carousel/carousel.style.d.ts
|
|
5
|
-
export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "root" | "
|
|
5
|
+
export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "root" | "item" | "indicator" | "trigger" | "prev" | "indicators", CSSPropObject<CSSSlotObject<"list" | "next" | "root" | "item" | "indicator" | "trigger" | "prev" | "indicators">>, {
|
|
6
6
|
sm: {
|
|
7
7
|
root: {
|
|
8
8
|
h: "sm";
|
|
@@ -18,7 +18,7 @@ export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "root"
|
|
|
18
18
|
h: "lg";
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
}, CSSModifierObject<CSSSlotObject<"list" | "next" | "root" | "
|
|
21
|
+
}, CSSModifierObject<CSSSlotObject<"list" | "next" | "root" | "item" | "indicator" | "trigger" | "prev" | "indicators">>>;
|
|
22
22
|
export type CarouselStyle = typeof carouselStyle;
|
|
23
23
|
//#endregion
|
|
24
24
|
//# sourceMappingURL=carousel.style.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
|
2
2
|
import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
//#region src/components/chart/polar-chart.style.d.ts
|
|
5
|
-
export declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "
|
|
5
|
+
export declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector", CSSPropObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>>;
|
|
6
6
|
export type PolarChartStyle = typeof polarChartStyle;
|
|
7
7
|
//#endregion
|
|
8
8
|
//# sourceMappingURL=polar-chart.style.d.ts.map
|
|
@@ -64,7 +64,7 @@ export interface CheckboxCardRootProps<Y extends string = string> extends Merge<
|
|
|
64
64
|
*/
|
|
65
65
|
rootProps?: HTMLStyledProps<"label">;
|
|
66
66
|
}
|
|
67
|
-
declare const component: <H extends As | "fragment" = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "
|
|
67
|
+
declare const component: <H extends As | "fragment" = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
68
68
|
justify: {
|
|
69
69
|
end: {
|
|
70
70
|
addon: {
|
|
@@ -210,7 +210,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
212
|
};
|
|
213
|
-
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, CheckboxCardPropsContext: import("react").Context<Partial<CheckboxCardRootProps<string>> | undefined>, useCheckboxCardPropsContext: () => Partial<CheckboxCardRootProps<string>> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "
|
|
213
|
+
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, CheckboxCardPropsContext: import("react").Context<Partial<CheckboxCardRootProps<string>> | undefined>, useCheckboxCardPropsContext: () => Partial<CheckboxCardRootProps<string>> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
214
214
|
justify: {
|
|
215
215
|
end: {
|
|
216
216
|
addon: {
|
|
@@ -356,7 +356,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
358
|
};
|
|
359
|
-
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root" | "
|
|
359
|
+
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
360
360
|
justify: {
|
|
361
361
|
end: {
|
|
362
362
|
addon: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
//#region src/components/checkbox-card/checkbox-card.style.d.ts
|
|
4
|
-
export declare const checkboxCardStyle: ComponentSlotStyle<"group" | "root" | "
|
|
4
|
+
export declare const checkboxCardStyle: ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
5
5
|
/**
|
|
6
6
|
* The justify indicator of the component
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
|
2
2
|
import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
//#region src/components/empty-state/empty-state.style.d.ts
|
|
5
|
-
export declare const emptyState: ComponentSlotStyle<"title" | "content" | "root" | "
|
|
5
|
+
export declare const emptyState: ComponentSlotStyle<"title" | "content" | "root" | "description" | "indicator", CSSPropObject<CSSSlotObject<"title" | "content" | "root" | "description" | "indicator">>, {
|
|
6
6
|
sm: {
|
|
7
7
|
content: {
|
|
8
8
|
gap: "xs";
|
|
@@ -48,7 +48,7 @@ export declare const emptyState: ComponentSlotStyle<"title" | "content" | "root"
|
|
|
48
48
|
fontSize: "xl";
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "root" | "
|
|
51
|
+
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "root" | "description" | "indicator">>>;
|
|
52
52
|
export type EmptyState = typeof emptyState;
|
|
53
53
|
//#endregion
|
|
54
54
|
//# sourceMappingURL=empty-state.style.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
|
2
2
|
import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
//#region src/components/field/field.style.d.ts
|
|
5
|
-
export declare const fieldStyle: ComponentSlotStyle<"label" | "root" | "
|
|
5
|
+
export declare const fieldStyle: ComponentSlotStyle<"label" | "root" | "errorMessage" | "helperMessage" | "requiredIndicator", {
|
|
6
6
|
/**
|
|
7
7
|
* The orientation of the field.
|
|
8
8
|
*/
|
|
@@ -36,7 +36,7 @@ export declare const fieldStyle: ComponentSlotStyle<"label" | "root" | "helperMe
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
}, CSSModifierObject<CSSSlotObject<"label" | "root" | "
|
|
39
|
+
}, CSSModifierObject<CSSSlotObject<"label" | "root" | "errorMessage" | "helperMessage" | "requiredIndicator">>, CSSModifierObject<CSSSlotObject<"label" | "root" | "errorMessage" | "helperMessage" | "requiredIndicator">>>;
|
|
40
40
|
export type FieldStyle = typeof fieldStyle;
|
|
41
41
|
//#endregion
|
|
42
42
|
//# sourceMappingURL=field.style.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
|
2
2
|
import { CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
//#region src/components/fieldset/fieldset.style.d.ts
|
|
5
|
-
export declare const fieldsetStyle: ComponentSlotStyle<"header" | "legend" | "content" | "root" | "
|
|
5
|
+
export declare const fieldsetStyle: ComponentSlotStyle<"header" | "legend" | "content" | "root" | "errorMessage" | "helperMessage", CSSPropObject<CSSSlotObject<"header" | "legend" | "content" | "root" | "errorMessage" | "helperMessage">>, {
|
|
6
6
|
sm: {
|
|
7
7
|
content: {
|
|
8
8
|
gap: "3";
|
|
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
|
2
2
|
import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
//#region src/components/menu/menu.style.d.ts
|
|
5
|
-
export declare const menuStyle: ComponentSlotStyle<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "
|
|
5
|
+
export declare const menuStyle: ComponentSlotStyle<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "item" | "indicator", CSSPropObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "item" | "indicator">>, {
|
|
6
6
|
sm: {
|
|
7
7
|
command: {
|
|
8
8
|
fontSize: "2xs";
|
|
@@ -87,7 +87,7 @@ export declare const menuStyle: ComponentSlotStyle<"footer" | "header" | "label"
|
|
|
87
87
|
px: "2";
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
}, CSSModifierObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "
|
|
90
|
+
}, CSSModifierObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "item" | "indicator">>>;
|
|
91
91
|
export type MenuStyle = typeof menuStyle;
|
|
92
92
|
//#endregion
|
|
93
93
|
//# sourceMappingURL=menu.style.d.ts.map
|
|
@@ -56,7 +56,7 @@ export interface RadioCardRootProps<Y extends string = string> extends Merge<HTM
|
|
|
56
56
|
*/
|
|
57
57
|
rootProps?: HTMLStyledProps<"label">;
|
|
58
58
|
}
|
|
59
|
-
declare const component: <H extends As | "fragment" = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "
|
|
59
|
+
declare const component: <H extends As | "fragment" = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
60
60
|
justify: {
|
|
61
61
|
end: {
|
|
62
62
|
addon: {
|
|
@@ -229,7 +229,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
231
|
};
|
|
232
|
-
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, RadioCardPropsContext: import("react").Context<Partial<RadioCardRootProps<string>> | undefined>, useRadioCardPropsContext: () => Partial<RadioCardRootProps<string>> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "
|
|
232
|
+
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, RadioCardPropsContext: import("react").Context<Partial<RadioCardRootProps<string>> | undefined>, useRadioCardPropsContext: () => Partial<RadioCardRootProps<string>> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
233
233
|
justify: {
|
|
234
234
|
end: {
|
|
235
235
|
addon: {
|
|
@@ -402,7 +402,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
402
402
|
};
|
|
403
403
|
};
|
|
404
404
|
};
|
|
405
|
-
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root" | "
|
|
405
|
+
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
406
406
|
justify: {
|
|
407
407
|
end: {
|
|
408
408
|
addon: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
//#region src/components/radio-card/radio-card.style.d.ts
|
|
4
|
-
export declare const radioCardStyle: ComponentSlotStyle<"group" | "root" | "
|
|
4
|
+
export declare const radioCardStyle: ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
5
5
|
/**
|
|
6
6
|
* The justify indicator of the component
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
|
2
2
|
import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
4
|
//#region src/components/segmented-control/segmented-control.style.d.ts
|
|
5
|
-
export declare const segmentedControlStyle: ComponentSlotStyle<"root" | "
|
|
5
|
+
export declare const segmentedControlStyle: ComponentSlotStyle<"root" | "item" | "indicator", {
|
|
6
6
|
/**
|
|
7
7
|
* If `true`, the segmented control will be full rounded.
|
|
8
8
|
*
|
|
@@ -114,7 +114,7 @@ export declare const segmentedControlStyle: ComponentSlotStyle<"root" | "indicat
|
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
}, CSSModifierObject<CSSSlotObject<"root" | "
|
|
117
|
+
}, CSSModifierObject<CSSSlotObject<"root" | "item" | "indicator">>>;
|
|
118
118
|
export type SegmentedControlStyle = typeof segmentedControlStyle;
|
|
119
119
|
//#endregion
|
|
120
120
|
//# sourceMappingURL=segmented-control.style.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
//#region src/components/steps/steps.style.d.ts
|
|
4
|
-
export declare const stepsStyle: ComponentSlotStyle<"title" | "list" | "separator" | "root" | "
|
|
4
|
+
export declare const stepsStyle: ComponentSlotStyle<"title" | "list" | "separator" | "root" | "item" | "description" | "indicator", {
|
|
5
5
|
/**
|
|
6
6
|
* The orientation of the steps.
|
|
7
7
|
*
|
|
@@ -62,7 +62,7 @@ declare const TimelinePropsContext: import("react").Context<Partial<TimelineRoot
|
|
|
62
62
|
*
|
|
63
63
|
* @see https://yamada-ui.com/docs/components/timeline
|
|
64
64
|
*/
|
|
65
|
-
export declare const TimelineRoot: Component<({ variant: variantProp, children, index, items, ...rest }: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "root" | "
|
|
65
|
+
export declare const TimelineRoot: Component<({ variant: variantProp, children, index, items, ...rest }: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "root" | "item" | "description" | "indicator" | "connector", {
|
|
66
66
|
align: {
|
|
67
67
|
center: {
|
|
68
68
|
content: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
//#region src/components/timeline/timeline.style.d.ts
|
|
4
|
-
export declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "root" | "
|
|
4
|
+
export declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "root" | "item" | "description" | "indicator" | "connector", {
|
|
5
5
|
/**
|
|
6
6
|
* The alignment of the timeline.
|
|
7
7
|
*
|
|
@@ -69,6 +69,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
69
69
|
root: {
|
|
70
70
|
_checked: {
|
|
71
71
|
layerStyle: "solid";
|
|
72
|
+
borderWidth: "1px";
|
|
72
73
|
_invalid: {
|
|
73
74
|
borderColor: "{error-border-color}";
|
|
74
75
|
borderWidth: "1px";
|
|
@@ -153,6 +154,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
153
154
|
root: {
|
|
154
155
|
_checked: {
|
|
155
156
|
layerStyle: "solid";
|
|
157
|
+
borderWidth: "1px";
|
|
156
158
|
_invalid: {
|
|
157
159
|
borderColor: "{error-border-color}";
|
|
158
160
|
};
|
|
@@ -224,6 +226,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
224
226
|
root: {
|
|
225
227
|
_checked: {
|
|
226
228
|
layerStyle: "solid";
|
|
229
|
+
borderWidth: "1px";
|
|
227
230
|
_invalid: {
|
|
228
231
|
borderColor: "{error-border-color}";
|
|
229
232
|
borderWidth: "1px";
|
|
@@ -308,6 +311,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
308
311
|
root: {
|
|
309
312
|
_checked: {
|
|
310
313
|
layerStyle: "solid";
|
|
314
|
+
borderWidth: "1px";
|
|
311
315
|
_invalid: {
|
|
312
316
|
borderColor: "{error-border-color}";
|
|
313
317
|
};
|
|
@@ -379,6 +383,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
379
383
|
root: {
|
|
380
384
|
_checked: {
|
|
381
385
|
layerStyle: "solid";
|
|
386
|
+
borderWidth: "1px";
|
|
382
387
|
_invalid: {
|
|
383
388
|
borderColor: "{error-border-color}";
|
|
384
389
|
borderWidth: "1px";
|
|
@@ -463,6 +468,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
|
|
|
463
468
|
root: {
|
|
464
469
|
_checked: {
|
|
465
470
|
layerStyle: "solid";
|
|
471
|
+
borderWidth: "1px";
|
|
466
472
|
_invalid: {
|
|
467
473
|
borderColor: "{error-border-color}";
|
|
468
474
|
};
|
|
@@ -62,6 +62,7 @@ export declare const toggleStyle: ComponentSlotStyle<"group" | "root", {
|
|
|
62
62
|
root: {
|
|
63
63
|
_checked: {
|
|
64
64
|
layerStyle: "solid";
|
|
65
|
+
borderWidth: "1px";
|
|
65
66
|
_invalid: {
|
|
66
67
|
borderColor: "{error-border-color}";
|
|
67
68
|
borderWidth: "1px";
|
|
@@ -146,6 +147,7 @@ export declare const toggleStyle: ComponentSlotStyle<"group" | "root", {
|
|
|
146
147
|
root: {
|
|
147
148
|
_checked: {
|
|
148
149
|
layerStyle: "solid";
|
|
150
|
+
borderWidth: "1px";
|
|
149
151
|
_invalid: {
|
|
150
152
|
borderColor: "{error-border-color}";
|
|
151
153
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
//#region src/components/tree/tree.style.d.ts
|
|
4
|
-
export declare const treeStyle: ComponentSlotStyle<"label" | "checkbox" | "group" | "end" | "start" | "element" | "root" | "
|
|
4
|
+
export declare const treeStyle: ComponentSlotStyle<"label" | "checkbox" | "group" | "end" | "start" | "element" | "root" | "item" | "indicator", {
|
|
5
5
|
/**
|
|
6
6
|
* The shape of the component
|
|
7
7
|
*
|
package/package.json
CHANGED