@yamada-ui/react 2.2.9-dev-20261005115337 → 2.2.9-dev-20261005184249

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.
@@ -105,7 +105,10 @@ const nativeTableStyle = require("../../core/system/config.cjs").defineComponent
105
105
  *
106
106
  * @default false
107
107
  */
108
- withColumnBorders: { true: { tr: { "& th, td": { borderRightWidth: "1px" } } } }
108
+ withColumnBorders: { true: { tr: {
109
+ "& th, td": { borderRightWidth: "1px" },
110
+ _lastChild: { borderRightWidth: "0" }
111
+ } } }
109
112
  },
110
113
  variants: {
111
114
  line: {
@@ -1 +1 @@
1
- {"version":3,"file":"native-table.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/native-table/native-table.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const nativeTableStyle = defineComponentSlotStyle({\n base: {\n caption: {\n \"&[data-placement='end']\": {\n mt: \"sm\",\n },\n \"&[data-placement='start']\": {\n mb: \"sm\",\n },\n color: \"fg.muted\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n textAlign: \"center\",\n },\n col: {},\n colgroup: {},\n root: {\n borderCollapse: \"collapse\",\n fontVariantNumeric: \"lining-nums tabular-nums\",\n h: \"full\",\n w: \"full\",\n },\n scrollArea: {\n display: \"block\",\n maxW: \"full\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n whiteSpace: \"nowrap\",\n },\n tbody: {},\n td: {\n px: \"{space-x}\",\n py: \"{space-y}\",\n verticalAlign: \"top\",\n _numeric: {\n textAlign: \"end\",\n },\n },\n tfoot: {\n \"& td\": {\n fontWeight: \"medium\",\n textAlign: \"start\",\n verticalAlign: \"middle\",\n },\n },\n th: {\n fontWeight: \"medium\",\n px: \"{space-x}\",\n py: \"{space-y}\",\n textAlign: \"start\",\n verticalAlign: \"middle\",\n _numeric: {\n textAlign: \"end\",\n },\n },\n thead: {},\n tr: {\n _disabled: {\n layerStyle: \"disabled\",\n },\n },\n },\n\n props: {\n /**\n * If `true`, highlight the row when the table row is hovered.\n *\n * @default false\n */\n highlightOnHover: {\n true: {\n tbody: {\n \"& tr\": {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _hover: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n },\n /**\n * If `true`, highlight the row when the table row is selected.\n *\n * @default false\n */\n highlightOnSelected: {\n true: {\n tbody: {\n \"& tr\": {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _selected: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n },\n /**\n * If `true`, display the sticky footer.\n *\n * @default false\n */\n stickyFooter: {\n true: {\n tfoot: {\n \"& tr\": {\n bottom: \"0\",\n position: \"sticky\",\n zIndex: \"yamcha\",\n },\n },\n },\n },\n /**\n * If `true`, display the sticky header.\n *\n * @default false\n */\n stickyHeader: {\n true: {\n thead: {\n \"& tr\": {\n position: \"sticky\",\n top: \"0\",\n zIndex: \"yamcha\",\n },\n },\n },\n },\n /**\n * If `true`, display striped rows.\n *\n * @default false\n */\n striped: {\n true: {},\n },\n /**\n * If `true`, display the outer border of the table.\n *\n * @default false\n */\n withBorder: {\n true: {\n root: { borderWidth: \"1px\" },\n },\n },\n /**\n * If `true`, display line on the columns of the table.\n *\n * @default false\n */\n withColumnBorders: {\n true: {\n tr: { \"& th, td\": { borderRightWidth: \"1px\" } },\n },\n },\n },\n\n variants: {\n line: {\n tbody: {\n \"& tr:not(:first-of-type)\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n \"& tr:only-child\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n tfoot: {\n \"& tr\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n thead: {\n \"& tr\": { \"& th, td\": { borderBottomWidth: \"1px\" } },\n },\n },\n outline: {\n root: {\n borderWidth: \"1px\",\n },\n scrollArea: {\n borderWidth: \"1px\",\n },\n tbody: {\n \"& tr:not(:first-of-type)\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n \"& tr:only-child\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n tfoot: {\n \"& tr\": {\n \"&:first-of-type\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n bg: \"colorScheme.bg\",\n },\n },\n thead: {\n \"& tr\": {\n \"&:last-of-type\": { \"& th, td\": { borderBottomWidth: \"1px\" } },\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n\n sizes: {\n sm: {\n root: { fontSize: \"xs\" },\n td: { \"--space-x\": \"spaces.2\", \"--space-y\": \"spaces.1\" },\n th: { \"--space-x\": \"spaces.2\", \"--space-y\": \"spaces.1\" },\n },\n md: {\n root: { fontSize: \"sm\" },\n td: { \"--space-x\": \"spaces.3\", \"--space-y\": \"spaces.2\" },\n th: { \"--space-x\": \"spaces.3\", \"--space-y\": \"spaces.2\" },\n },\n lg: {\n root: { fontSize: \"md\" },\n td: { \"--space-x\": \"spaces.4\", \"--space-y\": \"spaces.3\" },\n th: { \"--space-x\": \"spaces.4\", \"--space-y\": \"spaces.3\" },\n },\n },\n\n compounds: [\n {\n css: {\n tbody: {\n \"& tr\": {\n _odd: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n variant: \"line\",\n layer: \"props\",\n striped: true,\n },\n {\n css: {\n tbody: {\n \"& tr\": {\n _even: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n variant: \"outline\",\n layer: \"props\",\n striped: true,\n },\n {\n css: {\n root: {\n borderWidth: \"0\",\n },\n },\n variant: \"outline\",\n withScrollArea: true,\n },\n ],\n\n defaultProps: {\n size: \"md\",\n variant: \"line\",\n },\n})\n\nexport type NativeTableStyle = typeof nativeTableStyle\n"],"mappings":";AAEA,MAAa,yDAAmBA,CAAAA,CAAAA,yBAAyB;CACvD,MAAM;EACJ,SAAS;GACP,2BAA2B,EACzB,IAAI,KACN;GACA,6BAA6B,EAC3B,IAAI,KACN;GACA,OAAO;GACP,UAAU;GACV,YAAY;GACZ,WAAW;EAC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AAO,EACL,IAAI,iBACN,EACF,EACF,EACF;GACA,SAAS;GACT,OAAO;GACP,SAAS;EACX;EACA;GACE,KAAK,EACH,MAAM,EACJ,aAAa,IACf,EACF;GACA,SAAS;GACT,gBAAgB;EAClB;CACF;CAEA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
1
+ {"version":3,"file":"native-table.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/native-table/native-table.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const nativeTableStyle = defineComponentSlotStyle({\n base: {\n caption: {\n \"&[data-placement='end']\": {\n mt: \"sm\",\n },\n \"&[data-placement='start']\": {\n mb: \"sm\",\n },\n color: \"fg.muted\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n textAlign: \"center\",\n },\n col: {},\n colgroup: {},\n root: {\n borderCollapse: \"collapse\",\n fontVariantNumeric: \"lining-nums tabular-nums\",\n h: \"full\",\n w: \"full\",\n },\n scrollArea: {\n display: \"block\",\n maxW: \"full\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n whiteSpace: \"nowrap\",\n },\n tbody: {},\n td: {\n px: \"{space-x}\",\n py: \"{space-y}\",\n verticalAlign: \"top\",\n _numeric: {\n textAlign: \"end\",\n },\n },\n tfoot: {\n \"& td\": {\n fontWeight: \"medium\",\n textAlign: \"start\",\n verticalAlign: \"middle\",\n },\n },\n th: {\n fontWeight: \"medium\",\n px: \"{space-x}\",\n py: \"{space-y}\",\n textAlign: \"start\",\n verticalAlign: \"middle\",\n _numeric: {\n textAlign: \"end\",\n },\n },\n thead: {},\n tr: {\n _disabled: {\n layerStyle: \"disabled\",\n },\n },\n },\n\n props: {\n /**\n * If `true`, highlight the row when the table row is hovered.\n *\n * @default false\n */\n highlightOnHover: {\n true: {\n tbody: {\n \"& tr\": {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _hover: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n },\n /**\n * If `true`, highlight the row when the table row is selected.\n *\n * @default false\n */\n highlightOnSelected: {\n true: {\n tbody: {\n \"& tr\": {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _selected: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n },\n /**\n * If `true`, display the sticky footer.\n *\n * @default false\n */\n stickyFooter: {\n true: {\n tfoot: {\n \"& tr\": {\n bottom: \"0\",\n position: \"sticky\",\n zIndex: \"yamcha\",\n },\n },\n },\n },\n /**\n * If `true`, display the sticky header.\n *\n * @default false\n */\n stickyHeader: {\n true: {\n thead: {\n \"& tr\": {\n position: \"sticky\",\n top: \"0\",\n zIndex: \"yamcha\",\n },\n },\n },\n },\n /**\n * If `true`, display striped rows.\n *\n * @default false\n */\n striped: {\n true: {},\n },\n /**\n * If `true`, display the outer border of the table.\n *\n * @default false\n */\n withBorder: {\n true: {\n root: { borderWidth: \"1px\" },\n },\n },\n /**\n * If `true`, display line on the columns of the table.\n *\n * @default false\n */\n withColumnBorders: {\n true: {\n tr: {\n \"& th, td\": { borderRightWidth: \"1px\" },\n _lastChild: { borderRightWidth: \"0\" },\n },\n },\n },\n },\n\n variants: {\n line: {\n tbody: {\n \"& tr:not(:first-of-type)\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n \"& tr:only-child\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n tfoot: {\n \"& tr\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n thead: {\n \"& tr\": { \"& th, td\": { borderBottomWidth: \"1px\" } },\n },\n },\n outline: {\n root: {\n borderWidth: \"1px\",\n },\n scrollArea: {\n borderWidth: \"1px\",\n },\n tbody: {\n \"& tr:not(:first-of-type)\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n \"& tr:only-child\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n tfoot: {\n \"& tr\": {\n \"&:first-of-type\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n bg: \"colorScheme.bg\",\n },\n },\n thead: {\n \"& tr\": {\n \"&:last-of-type\": { \"& th, td\": { borderBottomWidth: \"1px\" } },\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n\n sizes: {\n sm: {\n root: { fontSize: \"xs\" },\n td: { \"--space-x\": \"spaces.2\", \"--space-y\": \"spaces.1\" },\n th: { \"--space-x\": \"spaces.2\", \"--space-y\": \"spaces.1\" },\n },\n md: {\n root: { fontSize: \"sm\" },\n td: { \"--space-x\": \"spaces.3\", \"--space-y\": \"spaces.2\" },\n th: { \"--space-x\": \"spaces.3\", \"--space-y\": \"spaces.2\" },\n },\n lg: {\n root: { fontSize: \"md\" },\n td: { \"--space-x\": \"spaces.4\", \"--space-y\": \"spaces.3\" },\n th: { \"--space-x\": \"spaces.4\", \"--space-y\": \"spaces.3\" },\n },\n },\n\n compounds: [\n {\n css: {\n tbody: {\n \"& tr\": {\n _odd: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n variant: \"line\",\n layer: \"props\",\n striped: true,\n },\n {\n css: {\n tbody: {\n \"& tr\": {\n _even: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n variant: \"outline\",\n layer: \"props\",\n striped: true,\n },\n {\n css: {\n root: {\n borderWidth: \"0\",\n },\n },\n variant: \"outline\",\n withScrollArea: true,\n },\n ],\n\n defaultProps: {\n size: \"md\",\n variant: \"line\",\n },\n})\n\nexport type NativeTableStyle = typeof nativeTableStyle\n"],"mappings":";AAEA,MAAa,yDAAmBA,CAAAA,CAAAA,yBAAyB;CACvD,MAAM;EACJ,SAAS;GACP,2BAA2B,EACzB,IAAI,KACN;GACA,6BAA6B,EAC3B,IAAI,KACN;GACA,OAAO;GACP,UAAU;GACV,YAAY;GACZ,WAAW;EACb;EACA,KAAK,CAAC;EACN,UAAU,CAAC;EACX,MAAM;GACJ,gBAAgB;GAChB,oBAAoB;GACpB,GAAG;GACH,GAAG;EACL;EACA,YAAY;GACV,SAAS;GACT,MAAM;GACN,UAAU;GACV,yBAAyB;GACzB,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,gBAAgB;EAClB;CACF;CAEA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
@@ -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?: SegmentedControlItemProps\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,\n ...props,\n indicatorProps: {\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,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,MAAM,CAAC,EAAE,UAAU;CACpB,MAAM,EAAE,gBAAgB,cAAc,oBAAoB;CAE1D,OAAO;EACL,GAAG;EACH,GAAG;EACH,gBAAgB;GACd,GAAG;GACH,GAAG,WAAW;GACd,GAAG,MAAM;EACX;CACF;AACF,CAAC;AAMD,MAAM,4BAA4B,aAG/B,EAAE,YAAY,GAAG,YAAY;CAC9B,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACE,kBAAAA,OAAO,KAAR;EACE,kBAAkB;EAClB,UAAS;EACT,YAAY;GAAE,UAAU;GAAK,GAAG;EAAW;EAC3C,GAAI;CACL,CAAA;AAEL,GAAG,WAAW,CAAC,CAAC"}
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,\n ...props,\n indicatorProps: {\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,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A,kBAAA,KAAA,CAACD,gBAAAA,OAAO,OAAR;EAAc,GAAI,cAAc;EAAhC,UAAA;GACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,OAAR,EAAc,GAAI,cAAc,EAAI,CAAA;GAEpC,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,OAAO,MAAR,EAAc,SAAsB,CAAA;GAEnC,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,2BAAD,EAA2B,GAAI,eAAiB,CAAA,IAAI;EACnD;;AAElB,GAAG,MAAM,CAAC,EAAE,UAAU;CACpB,MAAM,EAAE,gBAAgB,cAAc,oBAAoB;CAE1D,OAAO;EACL,GAAG;EACH,GAAG;EACH,gBAAgB;GACd,GAAG;GACH,GAAG,WAAW;GACd,GAAG,MAAM;EACX;CACF;AACF,CAAC;AAMD,MAAM,4BAA4B,aAG/B,EAAE,YAAY,GAAG,YAAY;CAC9B,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACE,kBAAAA,OAAO,KAAR;EACE,kBAAkB;EAClB,UAAS;EACT,YAAY;GAAE,UAAU;GAAK,GAAG;EAAW;EAC3C,GAAI;CACL,CAAA;AAEL,GAAG,WAAW,CAAC,CAAC"}
@@ -106,7 +106,10 @@ const nativeTableStyle = defineComponentSlotStyle({
106
106
  *
107
107
  * @default false
108
108
  */
109
- withColumnBorders: { true: { tr: { "& th, td": { borderRightWidth: "1px" } } } }
109
+ withColumnBorders: { true: { tr: {
110
+ "& th, td": { borderRightWidth: "1px" },
111
+ _lastChild: { borderRightWidth: "0" }
112
+ } } }
110
113
  },
111
114
  variants: {
112
115
  line: {
@@ -1 +1 @@
1
- {"version":3,"file":"native-table.style.js","names":[],"sources":["../../../../src/components/native-table/native-table.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const nativeTableStyle = defineComponentSlotStyle({\n base: {\n caption: {\n \"&[data-placement='end']\": {\n mt: \"sm\",\n },\n \"&[data-placement='start']\": {\n mb: \"sm\",\n },\n color: \"fg.muted\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n textAlign: \"center\",\n },\n col: {},\n colgroup: {},\n root: {\n borderCollapse: \"collapse\",\n fontVariantNumeric: \"lining-nums tabular-nums\",\n h: \"full\",\n w: \"full\",\n },\n scrollArea: {\n display: \"block\",\n maxW: \"full\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n whiteSpace: \"nowrap\",\n },\n tbody: {},\n td: {\n px: \"{space-x}\",\n py: \"{space-y}\",\n verticalAlign: \"top\",\n _numeric: {\n textAlign: \"end\",\n },\n },\n tfoot: {\n \"& td\": {\n fontWeight: \"medium\",\n textAlign: \"start\",\n verticalAlign: \"middle\",\n },\n },\n th: {\n fontWeight: \"medium\",\n px: \"{space-x}\",\n py: \"{space-y}\",\n textAlign: \"start\",\n verticalAlign: \"middle\",\n _numeric: {\n textAlign: \"end\",\n },\n },\n thead: {},\n tr: {\n _disabled: {\n layerStyle: \"disabled\",\n },\n },\n },\n\n props: {\n /**\n * If `true`, highlight the row when the table row is hovered.\n *\n * @default false\n */\n highlightOnHover: {\n true: {\n tbody: {\n \"& tr\": {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _hover: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n },\n /**\n * If `true`, highlight the row when the table row is selected.\n *\n * @default false\n */\n highlightOnSelected: {\n true: {\n tbody: {\n \"& tr\": {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _selected: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n },\n /**\n * If `true`, display the sticky footer.\n *\n * @default false\n */\n stickyFooter: {\n true: {\n tfoot: {\n \"& tr\": {\n bottom: \"0\",\n position: \"sticky\",\n zIndex: \"yamcha\",\n },\n },\n },\n },\n /**\n * If `true`, display the sticky header.\n *\n * @default false\n */\n stickyHeader: {\n true: {\n thead: {\n \"& tr\": {\n position: \"sticky\",\n top: \"0\",\n zIndex: \"yamcha\",\n },\n },\n },\n },\n /**\n * If `true`, display striped rows.\n *\n * @default false\n */\n striped: {\n true: {},\n },\n /**\n * If `true`, display the outer border of the table.\n *\n * @default false\n */\n withBorder: {\n true: {\n root: { borderWidth: \"1px\" },\n },\n },\n /**\n * If `true`, display line on the columns of the table.\n *\n * @default false\n */\n withColumnBorders: {\n true: {\n tr: { \"& th, td\": { borderRightWidth: \"1px\" } },\n },\n },\n },\n\n variants: {\n line: {\n tbody: {\n \"& tr:not(:first-of-type)\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n \"& tr:only-child\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n tfoot: {\n \"& tr\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n thead: {\n \"& tr\": { \"& th, td\": { borderBottomWidth: \"1px\" } },\n },\n },\n outline: {\n root: {\n borderWidth: \"1px\",\n },\n scrollArea: {\n borderWidth: \"1px\",\n },\n tbody: {\n \"& tr:not(:first-of-type)\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n \"& tr:only-child\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n tfoot: {\n \"& tr\": {\n \"&:first-of-type\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n bg: \"colorScheme.bg\",\n },\n },\n thead: {\n \"& tr\": {\n \"&:last-of-type\": { \"& th, td\": { borderBottomWidth: \"1px\" } },\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n\n sizes: {\n sm: {\n root: { fontSize: \"xs\" },\n td: { \"--space-x\": \"spaces.2\", \"--space-y\": \"spaces.1\" },\n th: { \"--space-x\": \"spaces.2\", \"--space-y\": \"spaces.1\" },\n },\n md: {\n root: { fontSize: \"sm\" },\n td: { \"--space-x\": \"spaces.3\", \"--space-y\": \"spaces.2\" },\n th: { \"--space-x\": \"spaces.3\", \"--space-y\": \"spaces.2\" },\n },\n lg: {\n root: { fontSize: \"md\" },\n td: { \"--space-x\": \"spaces.4\", \"--space-y\": \"spaces.3\" },\n th: { \"--space-x\": \"spaces.4\", \"--space-y\": \"spaces.3\" },\n },\n },\n\n compounds: [\n {\n css: {\n tbody: {\n \"& tr\": {\n _odd: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n variant: \"line\",\n layer: \"props\",\n striped: true,\n },\n {\n css: {\n tbody: {\n \"& tr\": {\n _even: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n variant: \"outline\",\n layer: \"props\",\n striped: true,\n },\n {\n css: {\n root: {\n borderWidth: \"0\",\n },\n },\n variant: \"outline\",\n withScrollArea: true,\n },\n ],\n\n defaultProps: {\n size: \"md\",\n variant: \"line\",\n },\n})\n\nexport type NativeTableStyle = typeof nativeTableStyle\n"],"mappings":";;AAEA,MAAa,mBAAmB,yBAAyB;CACvD,MAAM;EACJ,SAAS;GACP,2BAA2B,EACzB,IAAI,KACN;GACA,6BAA6B,EAC3B,IAAI,KACN;GACA,OAAO;GACP,UAAU;GACV,YAAY;GACZ,WAAW;EACb;EACA,KAAK,CAAC;EACN,UAAU,CAAC;EACX,MAAM;GACJ,gBAAgB;GAChB,oBAAoB;GACpB,GAAG;GACH,GAAG;EACL;EACA,YAAY;GACV,SAAS;GACT,MAAM;GACN,UAAU;GACV,yBAAyB;GACzB,YAAY;EACd;EACA,OAAO,CAAC;EACR,IAAI;GACF,IAAI;GACJ,IAAI;GACJ,eAAe;GACf,UAAU,EACR,WAAW,MACb;EACF;EACA,OAAO,EACL,QAAQ;GACN,YAAY;GACZ,WAAW;GACX,eAAe;EACjB,EACF;EACA,IAAI;GACF,YAAY;GACZ,IAAI;GACJ,IAAI;GACJ,WAAW;GACX,eAAe;GACf,UAAU,EACR,WAAW,MACb;EACF;EACA,OAAO,CAAC;EACR,IAAI,EACF,WAAW,EACT,YAAY,WACd,EACF;CACF;CAEA,OAAO;;;;;;EAML,kBAAkB,EAChB,MAAM,EACJ,OAAO,EACL,QAAQ;GACN,oBAAoB;GACpB,oBAAoB;GACpB,QAAQ,EACN,IAAI,iBACN;EACF,EACF,EACF,E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F;CACF;CAEA,OAAO;EACL,IAAI;GACF,MAAM,EAAE,UAAU,KAAK;GACvB,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;GACvD,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;EACzD;EACA,IAAI;GACF,MAAM,EAAE,UAAU,KAAK;GACvB,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;GACvD,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;EACzD;EACA,IAAI;GACF,MAAM,EAAE,UAAU,KAAK;GACvB,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;GACvD,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;EACzD;CACF;CAEA,WAAW;EACT;GACE,KAAK,EACH,OAAO,EACL,QAAQ,EACN,MAAM,EACJ,IAAI,iBACN,EACF,EACF,EACF;GACA,SAAS;GACT,OAAO;GACP,SAAS;EACX;EACA;GACE,KAAK,EACH,OAAO,EACL,QAAQ,EACN,OAAO,EACL,IAAI,iBACN,EACF,EACF,EACF;GACA,SAAS;GACT,OAAO;GACP,SAAS;EACX;EACA;GACE,KAAK,EACH,MAAM,EACJ,aAAa,IACf,EACF;GACA,SAAS;GACT,gBAAgB;EAClB;CACF;CAEA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
1
+ {"version":3,"file":"native-table.style.js","names":[],"sources":["../../../../src/components/native-table/native-table.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const nativeTableStyle = defineComponentSlotStyle({\n base: {\n caption: {\n \"&[data-placement='end']\": {\n mt: \"sm\",\n },\n \"&[data-placement='start']\": {\n mb: \"sm\",\n },\n color: \"fg.muted\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n textAlign: \"center\",\n },\n col: {},\n colgroup: {},\n root: {\n borderCollapse: \"collapse\",\n fontVariantNumeric: \"lining-nums tabular-nums\",\n h: \"full\",\n w: \"full\",\n },\n scrollArea: {\n display: \"block\",\n maxW: \"full\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n whiteSpace: \"nowrap\",\n },\n tbody: {},\n td: {\n px: \"{space-x}\",\n py: \"{space-y}\",\n verticalAlign: \"top\",\n _numeric: {\n textAlign: \"end\",\n },\n },\n tfoot: {\n \"& td\": {\n fontWeight: \"medium\",\n textAlign: \"start\",\n verticalAlign: \"middle\",\n },\n },\n th: {\n fontWeight: \"medium\",\n px: \"{space-x}\",\n py: \"{space-y}\",\n textAlign: \"start\",\n verticalAlign: \"middle\",\n _numeric: {\n textAlign: \"end\",\n },\n },\n thead: {},\n tr: {\n _disabled: {\n layerStyle: \"disabled\",\n },\n },\n },\n\n props: {\n /**\n * If `true`, highlight the row when the table row is hovered.\n *\n * @default false\n */\n highlightOnHover: {\n true: {\n tbody: {\n \"& tr\": {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _hover: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n },\n /**\n * If `true`, highlight the row when the table row is selected.\n *\n * @default false\n */\n highlightOnSelected: {\n true: {\n tbody: {\n \"& tr\": {\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n _selected: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n },\n /**\n * If `true`, display the sticky footer.\n *\n * @default false\n */\n stickyFooter: {\n true: {\n tfoot: {\n \"& tr\": {\n bottom: \"0\",\n position: \"sticky\",\n zIndex: \"yamcha\",\n },\n },\n },\n },\n /**\n * If `true`, display the sticky header.\n *\n * @default false\n */\n stickyHeader: {\n true: {\n thead: {\n \"& tr\": {\n position: \"sticky\",\n top: \"0\",\n zIndex: \"yamcha\",\n },\n },\n },\n },\n /**\n * If `true`, display striped rows.\n *\n * @default false\n */\n striped: {\n true: {},\n },\n /**\n * If `true`, display the outer border of the table.\n *\n * @default false\n */\n withBorder: {\n true: {\n root: { borderWidth: \"1px\" },\n },\n },\n /**\n * If `true`, display line on the columns of the table.\n *\n * @default false\n */\n withColumnBorders: {\n true: {\n tr: {\n \"& th, td\": { borderRightWidth: \"1px\" },\n _lastChild: { borderRightWidth: \"0\" },\n },\n },\n },\n },\n\n variants: {\n line: {\n tbody: {\n \"& tr:not(:first-of-type)\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n \"& tr:only-child\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n tfoot: {\n \"& tr\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n thead: {\n \"& tr\": { \"& th, td\": { borderBottomWidth: \"1px\" } },\n },\n },\n outline: {\n root: {\n borderWidth: \"1px\",\n },\n scrollArea: {\n borderWidth: \"1px\",\n },\n tbody: {\n \"& tr:not(:first-of-type)\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n \"& tr:only-child\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n },\n tfoot: {\n \"& tr\": {\n \"&:first-of-type\": { \"& th, td\": { borderTopWidth: \"1px\" } },\n bg: \"colorScheme.bg\",\n },\n },\n thead: {\n \"& tr\": {\n \"&:last-of-type\": { \"& th, td\": { borderBottomWidth: \"1px\" } },\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n\n sizes: {\n sm: {\n root: { fontSize: \"xs\" },\n td: { \"--space-x\": \"spaces.2\", \"--space-y\": \"spaces.1\" },\n th: { \"--space-x\": \"spaces.2\", \"--space-y\": \"spaces.1\" },\n },\n md: {\n root: { fontSize: \"sm\" },\n td: { \"--space-x\": \"spaces.3\", \"--space-y\": \"spaces.2\" },\n th: { \"--space-x\": \"spaces.3\", \"--space-y\": \"spaces.2\" },\n },\n lg: {\n root: { fontSize: \"md\" },\n td: { \"--space-x\": \"spaces.4\", \"--space-y\": \"spaces.3\" },\n th: { \"--space-x\": \"spaces.4\", \"--space-y\": \"spaces.3\" },\n },\n },\n\n compounds: [\n {\n css: {\n tbody: {\n \"& tr\": {\n _odd: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n variant: \"line\",\n layer: \"props\",\n striped: true,\n },\n {\n css: {\n tbody: {\n \"& tr\": {\n _even: {\n bg: \"colorScheme.bg\",\n },\n },\n },\n },\n variant: \"outline\",\n layer: \"props\",\n striped: true,\n },\n {\n css: {\n root: {\n borderWidth: \"0\",\n },\n },\n variant: \"outline\",\n withScrollArea: true,\n },\n ],\n\n defaultProps: {\n size: \"md\",\n variant: \"line\",\n },\n})\n\nexport type NativeTableStyle = typeof nativeTableStyle\n"],"mappings":";;AAEA,MAAa,mBAAmB,yBAAyB;CACvD,MAAM;EACJ,SAAS;GACP,2BAA2B,EACzB,IAAI,KACN;GACA,6BAA6B,EAC3B,IAAI,KACN;GACA,OAAO;GACP,UAAU;GACV,YAAY;GACZ,WAAW;EACb;EACA,KAAK,CAAC;EACN,UAAU,CAAC;EACX,MAAM;GACJ,gBAAgB;GAChB,oBAAoB;GACpB,GAAG;GACH,GAAG;EACL;EACA,YAAY;GACV,SAAS;GACT,MAAM;GACN,UAAU;GACV,yBAAyB;GACzB,YAAY;EACd;EACA,OAAO,CAAC;EACR,IAAI;GACF,IAAI;GACJ,IAAI;GACJ,eAAe;GACf,UAAU,EACR,WAAW,MACb;EACF;EACA,OAAO,EACL,QAAQ;GACN,YAAY;GACZ,WAAW;GACX,eAAe;EACjB,EACF;EACA,IAAI;GACF,YAAY;GACZ,IAAI;GACJ,IAAI;GACJ,WAAW;GACX,eAAe;GACf,UAAU,EACR,WAAW,MACb;EACF;EACA,OAAO,CAAC;EACR,IAAI,EACF,WAAW,EACT,YAAY,WACd,EACF;CACF;CAEA,OAAO;;;;;;EAML,kBAAkB,EAChB,MAAM,EACJ,OAAO,EACL,QAAQ;GACN,oBAAoB;GACpB,oBAAoB;GACpB,QAAQ,EACN,IAAI,iBACN;EACF,EACF,EACF,EACF;;;;;;EAMA,qBAAqB,EACnB,MAAM,EACJ,OAAO,EACL,QAAQ;GACN,oBAAoB;GACpB,oBAAoB;GACpB,WAAW,EACT,IAAI,iBACN;EACF,EACF,EACF,EACF;;;;;;EAMA,cAAc,EACZ,MAAM,EACJ,OAAO,EACL,QAAQ;GACN,QA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AM,EAAE,UAAU,KAAK;GACvB,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;GACvD,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;EACzD;EACA,IAAI;GACF,MAAM,EAAE,UAAU,KAAK;GACvB,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;GACvD,IAAI;IAAE,aAAa;IAAY,aAAa;GAAW;EACzD;CACF;CAEA,WAAW;EACT;GACE,KAAK,EACH,OAAO,EACL,QAAQ,EACN,MAAM,EACJ,IAAI,iBACN,EACF,EACF,EACF;GACA,SAAS;GACT,OAAO;GACP,SAAS;EACX;EACA;GACE,KAAK,EACH,OAAO,EACL,QAAQ,EACN,OAAO,EACL,IAAI,iBACN,EACF,EACF,EACF;GACA,SAAS;GACT,OAAO;GACP,SAAS;EACX;EACA;GACE,KAAK,EACH,MAAM,EACJ,aAAa,IACf,EACF;GACA,SAAS;GACT,gBAAgB;EAClB;CACF;CAEA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
@@ -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?: SegmentedControlItemProps\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,\n ...props,\n indicatorProps: {\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,gBAC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B,CAAA,IAAI;EACnD;;AAElB,GAAG,MAAM,CAAC,EAAE,UAAU;CACpB,MAAM,EAAE,gBAAgB,cAAc,oBAAoB;CAE1D,OAAO;EACL,GAAG;EACH,GAAG;EACH,gBAAgB;GACd,GAAG;GACH,GAAG,WAAW;GACd,GAAG,MAAM;EACX;CACF;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"}
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,\n ...props,\n indicatorProps: {\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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D,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"}
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.types.js";
2
2
  import { CSSPropObject, CSSSlotObject } from "../../core/css/index.types.js";
3
3
  import "../../index.js";
4
4
  //#region src/components/autocomplete/autocomplete.style.d.ts
5
- export declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "empty" | "valueText", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "empty" | "valueText">>, {
5
+ export declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "valueText" | "empty", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "valueText" | "empty">>, {
6
6
  xs: {
7
7
  empty: {
8
8
  gap: "1.5";
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.types.js";
2
2
  import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.types.js";
3
3
  import "../../index.js";
4
4
  //#region src/components/calendar/calendar.style.d.ts
5
- export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "control" | "weekday" | "day" | "months" | "years" | "weeks" | "prev", {
5
+ export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "prev" | "control" | "weekday" | "day" | "months" | "years" | "weeks", {
6
6
  /**
7
7
  * If `true`, the calendar will be fixed rows.
8
8
  *
@@ -74,7 +74,7 @@ export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "ce
74
74
  "--font-size": "fontSizes.xl";
75
75
  };
76
76
  };
77
- }, CSSModifierObject<CSSSlotObject<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "control" | "weekday" | "day" | "months" | "years" | "weeks" | "prev">>>;
77
+ }, CSSModifierObject<CSSSlotObject<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "prev" | "control" | "weekday" | "day" | "months" | "years" | "weeks">>>;
78
78
  export type CalendarStyle = typeof calendarStyle;
79
79
  //#endregion
80
80
  //# sourceMappingURL=calendar.style.d.ts.map
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.types.js";
2
2
  import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.types.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" | "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">>>;
5
+ export declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector", CSSPropObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "pie" | "radar" | "radial" | "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
@@ -23,7 +23,7 @@ declare const EditablePropsContext: import("react").Context<Partial<EditableRoot
23
23
  *
24
24
  * @see https://yamada-ui.com/docs/components/editable
25
25
  */
26
- export declare const EditableRoot: Component<({ children, errorBorderColor, focusBorderColor, ...props }: WithoutThemeProps<EditableRootProps, ComponentSlotStyle<"input" | "textarea" | "root" | "control" | "preview", CSSPropObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>>, keyof EditableRootProps>) => import("react").JSX.Element, EditableRootProps>;
26
+ export declare const EditableRoot: Component<({ children, errorBorderColor, focusBorderColor, ...props }: WithoutThemeProps<EditableRootProps, ComponentSlotStyle<"input" | "textarea" | "root" | "preview" | "control", CSSPropObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>>, keyof EditableRootProps>) => import("react").JSX.Element, EditableRootProps>;
27
27
  export interface EditablePreviewProps extends HTMLStyledProps<"span"> {}
28
28
  export declare const EditablePreview: Component<"span", EditablePreviewProps>;
29
29
  export interface EditableInputProps extends HTMLStyledProps<"input"> {}
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.types.js";
2
2
  import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.types.js";
3
3
  import "../../index.js";
4
4
  //#region src/components/editable/editable.style.d.ts
5
- export declare const editableStyle: ComponentSlotStyle<"input" | "textarea" | "root" | "control" | "preview", CSSPropObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>>;
5
+ export declare const editableStyle: ComponentSlotStyle<"input" | "textarea" | "root" | "preview" | "control", CSSPropObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>>;
6
6
  export type EditableStyle = typeof editableStyle;
7
7
  //#endregion
8
8
  //# sourceMappingURL=editable.style.d.ts.map
@@ -17,7 +17,7 @@ export declare const useFieldProps: <Y extends HTMLElement, M extends Dict>({ id
17
17
  disabled: boolean | undefined;
18
18
  readOnly: boolean | undefined;
19
19
  required: boolean | undefined;
20
- } & Omit<M & UseFieldProps<Y>, "disabled" | "readOnly" | "invalid" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "name" | "required" | "notSupportReadOnly">;
20
+ } & Omit<M & UseFieldProps<Y>, "disabled" | "readOnly" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "invalid" | "name" | "required" | "notSupportReadOnly">;
21
21
  ariaProps: {
22
22
  "aria-describedby": any;
23
23
  "aria-disabled": (boolean | "true" | "false") | undefined;
@@ -92,6 +92,9 @@ export declare const NativeTableRoot: Component<({ withScrollArea, scrollAreaPro
92
92
  "& th, td": {
93
93
  borderRightWidth: "1px";
94
94
  };
95
+ _lastChild: {
96
+ borderRightWidth: "0";
97
+ };
95
98
  };
96
99
  };
97
100
  };
@@ -101,6 +101,9 @@ export declare const nativeTableStyle: ComponentSlotStyle<"caption" | "col" | "c
101
101
  "& th, td": {
102
102
  borderRightWidth: "1px";
103
103
  };
104
+ _lastChild: {
105
+ borderRightWidth: "0";
106
+ };
104
107
  };
105
108
  };
106
109
  };
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.types.js";
2
2
  import { CSSPropObject, CSSSlotObject } from "../../core/css/index.types.js";
3
3
  import "../../index.js";
4
4
  //#region src/components/number-input/number-input.style.d.ts
5
- export declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "decrement" | "increment" | "field" | "control", CSSPropObject<CSSSlotObject<"button" | "root" | "decrement" | "increment" | "field" | "control">>, {
5
+ export declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "field" | "decrement" | "increment" | "control", CSSPropObject<CSSSlotObject<"button" | "root" | "field" | "decrement" | "increment" | "control">>, {
6
6
  xs: {
7
7
  control: {
8
8
  boxSize: "calc({--height} - {spaces.2})";
@@ -24,7 +24,7 @@ export interface SegmentedControlRootProps<Y extends string = string> extends Om
24
24
  /**
25
25
  * Props for the item component.
26
26
  */
27
- itemProps?: SegmentedControlItemProps;
27
+ itemProps?: Omit<SegmentedControlItemProps, "value">;
28
28
  }
29
29
  declare const SegmentedControlPropsContext: import("react").Context<Partial<SegmentedControlRootProps<string>> | undefined>, useSegmentedControlPropsContext: () => Partial<SegmentedControlRootProps<string>> | undefined;
30
30
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/react",
3
3
  "type": "module",
4
- "version": "2.2.9-dev-20261005115337",
4
+ "version": "2.2.9-dev-20261005184249",
5
5
  "description": "React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion",
6
6
  "keywords": [
7
7
  "yamada",
@@ -147,7 +147,7 @@
147
147
  "scroll-into-view-if-needed": "^3.1.0",
148
148
  "sonner": "^2.0.8",
149
149
  "uqr": "^0.1.3",
150
- "@yamada-ui/utils": "2.1.7-dev-20261005115337"
150
+ "@yamada-ui/utils": "2.1.7-dev-20261005184249"
151
151
  },
152
152
  "devDependencies": {
153
153
  "@babel/parser": "^7.29.9",