{"version":3,"file":"group.style.cjs","names":["defineComponentStyle"],"sources":["../../../../src/components/group/group.style.ts"],"sourcesContent":["import { defineComponentStyle } from \"../../core\"\n\nexport const groupStyle = defineComponentStyle({\n  base: {\n    \"& > *\": {\n      _focusVisible: {\n        zIndex: \"yamcha\",\n      },\n    },\n    display: \"inline-flex\",\n    gap: \"sm\",\n    isolation: \"isolate\",\n    justifyContent: \"start\",\n    position: \"relative\",\n  },\n\n  props: {\n    /**\n     * If `true`, the borderRadius of button that are direct children will be altered to look flushed together.\n     *\n     * @default false\n     */\n    attached: {\n      true: {\n        gap: \"0px !important\",\n      },\n    },\n    /**\n     * If `true`, the children will grow to fill the available space.\n     *\n     * @default false\n     */\n    grow: {\n      true: {\n        \"& > *\": {\n          flex: 1,\n        },\n        display: \"flex\",\n      },\n    },\n    /**\n     * The orientation of the group.\n     *\n     * @default 'horizontal'\n     */\n    orientation: {\n      horizontal: {\n        flexDirection: \"row\",\n      },\n      vertical: {\n        flexDirection: \"column\",\n      },\n    },\n    /**\n     * The stacking order of the group.\n     */\n    stacking: {\n      \"first-on-top\": {\n        \"& > *\": {\n          zIndex: \"calc({--group-count} - {--group-index})\",\n        },\n      },\n      \"last-on-top\": {\n        \"& > *\": {\n          zIndex: \"{--group-index}\",\n        },\n      },\n    },\n  },\n\n  compounds: [\n    {\n      css: {\n        \"& > *[data-group-between]\": {\n          \"& > *[data-group-propagate]\": {\n            borderRightWidth: \"0px !important\",\n            rounded: \"0px !important\",\n          },\n          borderRightWidth: \"0px !important\",\n          rounded: \"0px !important\",\n        },\n        \"& > *[data-group-end]:not([data-group-start])\": {\n          \"& > *[data-group-propagate]\": {\n            roundedLeft: \"0px !important\",\n          },\n          roundedLeft: \"0px !important\",\n        },\n        \"& > *[data-group-start]:not([data-group-end])\": {\n          \"& > *[data-group-propagate]\": {\n            borderRightWidth: \"0px !important\",\n            roundedRight: \"0px !important\",\n          },\n          borderRightWidth: \"0px !important\",\n          roundedRight: \"0px !important\",\n        },\n      },\n      attached: true,\n      orientation: \"horizontal\",\n    },\n    {\n      css: {\n        \"& > *[data-group-between]\": {\n          borderTopWidth: \"0px !important\",\n          rounded: \"0px !important\",\n        },\n        \"& > *[data-group-end]:not([data-group-start])\": {\n          borderTopWidth: \"0px !important\",\n          roundedTop: \"0px !important\",\n        },\n        \"& > *[data-group-start]:not([data-group-end])\": {\n          roundedBottom: \"0px !important\",\n        },\n      },\n      attached: true,\n      orientation: \"vertical\",\n    },\n  ],\n\n  defaultProps: {\n    orientation: \"horizontal\",\n  },\n})\n\nexport type GroupStyle = typeof groupStyle\n"],"mappings":";;;AAEA,MAAa,aAAaA,oCAAqB;CAC7C,MAAM;EACJ,SAAS,EACP,eAAe,EACb,QAAQ,UACT,EACF;EACD,SAAS;EACT,KAAK;EACL,WAAW;EACX,gBAAgB;EAChB,UAAU;EACX;CAED,OAAO;EAML,UAAU,EACR,MAAM,EACJ,KAAK,kBACN,EACF;EAMD,MAAM,EACJ,MAAM;GACJ,SAAS,EACP,MAAM,GACP;GACD,SAAS;GACV,EACF;EAMD,aAAa;GACX,YAAY,EACV,eAAe,OAChB;GACD,UAAU,EACR,eAAe,UAChB;GACF;EAID,UAAU;GACR,gBAAgB,EACd,SAAS,EACP,QAAQ,2CACT,EACF;GACD,eAAe,EACb,SAAS,EACP,QAAQ,mBACT,EACF;GACF;EACF;CAED,WAAW,CACT;EACE,KAAK;GACH,6BAA6B;IAC3B,+BAA+B;KAC7B,kBAAkB;KAClB,SAAS;KACV;IACD,kBAAkB;IAClB,SAAS;IACV;GACD,iDAAiD;IAC/C,+BAA+B,EAC7B,aAAa,kBACd;IACD,aAAa;IACd;GACD,iDAAiD;IAC/C,+BAA+B;KAC7B,kBAAkB;KAClB,cAAc;KACf;IACD,kBAAkB;IAClB,cAAc;IACf;GACF;EACD,UAAU;EACV,aAAa;EACd,EACD;EACE,KAAK;GACH,6BAA6B;IAC3B,gBAAgB;IAChB,SAAS;IACV;GACD,iDAAiD;IAC/C,gBAAgB;IAChB,YAAY;IACb;GACD,iDAAiD,EAC/C,eAAe,kBAChB;GACF;EACD,UAAU;EACV,aAAa;EACd,CACF;CAED,cAAc,EACZ,aAAa,cACd;CACF,CAAC"}